Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions dist/base/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ var BOOKING_COLLECTION = "bookings";
var ROLE_COLLECTION = "roles";
var PERMISSION_COLLECTION = "permissions";
var TRAFFIC_POLICY_COLLECTION = "traffic_policies";
var TAG_COLLECTION = "tags";
var timestampNullableOptional = { _type: "timestamp", nullable: true, optional: true };
var timestampNullable = { _type: "timestamp", nullable: true, optional: true };
var timestampRequired = { _type: "timestamp", nullable: false, optional: false };
Expand All @@ -179,7 +180,9 @@ var tagModelSpec = {
slug: zod.z.string(),
name: zod.z.string(),
description: zod.z.string().nullable().optional(),
color: zod.z.string().nullable().optional()
color: zod.z.string().nullable().optional(),
type: zod.z.string().nullable().optional()
// can be 'partner', 'booking' etc...
};

// src/specs/user.ts
Expand Down Expand Up @@ -976,6 +979,12 @@ var partnerSchemaSpec = markAsSchemaSpec({
nullable: true,
optional: true
},
tag_references: {
_type: "array",
of: { _type: "docRef", collection: TAG_COLLECTION },
nullable: true,
optional: true
},
// Metadata
data: {
_type: "object",
Expand Down Expand Up @@ -1219,6 +1228,9 @@ var loginRequestSchemaSpec = markAsSchemaSpec({
expires_at: timestampRequired
});

// src/specs/tag.ts
var tagSchemaSpec = markAsSchemaSpec(tagModelSpec);

// src/index.client.ts
var HUserSchema = buildClientSchema(userSchemaSpec);
var HBookingSchema = buildClientSchema(bookingSchemaSpec);
Expand All @@ -1243,7 +1255,7 @@ var HFreeEsimSchema = buildClientSchema(freeEsimSchema);
var HAnalyticsSchema = buildClientSchema(analyticsSpec);
var HRoleSchema = buildClientSchema(roleSchemaSpec);
var HPermissionSchema = buildClientSchema(permissionSchemaSpec);
var HTagSchema = buildClientSchema(tagModelSpec);
var HTagSchema = buildClientSchema(tagSchemaSpec);
var HTrafficPolicySchema = buildClientSchema(trafficPolicySpec);
var HTelnaPackageSchema = buildClientSchema(telnaPackageSchema);
var HBondioPackageSchema = buildClientSchema(bondioPackageSchema);
Expand Down
2 changes: 1 addition & 1 deletion dist/base/index.cjs.map

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions dist/base/index.d.cts
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,7 @@ declare const HPartnerSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
created_at: z.ZodEffects<z.ZodDate, Date, Date>;
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
Expand All @@ -2032,6 +2033,7 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}, {
Expand All @@ -2042,10 +2044,12 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}>, "many">;
tag_slugs: z.ZodArray<z.ZodString, "many">;
tag_references: z.ZodArray<z.ZodString, "many">;
data: z.ZodObject<{
source: z.ZodString;
manual: z.ZodBoolean;
Expand Down Expand Up @@ -2274,10 +2278,12 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled: boolean;
events: {
Expand Down Expand Up @@ -2481,10 +2487,12 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled?: boolean | undefined;
url?: string | null | undefined;
Expand Down Expand Up @@ -3782,6 +3790,7 @@ declare const HPartnerAppSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
created_at: z.ZodEffects<z.ZodDate, Date, Date>;
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
Expand All @@ -3795,6 +3804,7 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}, {
Expand All @@ -3805,10 +3815,12 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}>, "many">;
tag_slugs: z.ZodArray<z.ZodString, "many">;
tag_references: z.ZodArray<z.ZodString, "many">;
data: z.ZodObject<{
source: z.ZodString;
manual: z.ZodBoolean;
Expand Down Expand Up @@ -4037,10 +4049,12 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled: boolean;
events: {
Expand Down Expand Up @@ -4244,10 +4258,12 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled?: boolean | undefined;
url?: string | null | undefined;
Expand Down Expand Up @@ -5065,6 +5081,7 @@ declare const HTagSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
created_at: z.ZodEffects<z.ZodDate, Date, Date>;
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
Expand All @@ -5078,6 +5095,7 @@ declare const HTagSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}, {
Expand All @@ -5088,6 +5106,7 @@ declare const HTagSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}>;
Expand Down
19 changes: 19 additions & 0 deletions dist/base/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2019,6 +2019,7 @@ declare const HPartnerSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
created_at: z.ZodEffects<z.ZodDate, Date, Date>;
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
Expand All @@ -2032,6 +2033,7 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}, {
Expand All @@ -2042,10 +2044,12 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}>, "many">;
tag_slugs: z.ZodArray<z.ZodString, "many">;
tag_references: z.ZodArray<z.ZodString, "many">;
data: z.ZodObject<{
source: z.ZodString;
manual: z.ZodBoolean;
Expand Down Expand Up @@ -2274,10 +2278,12 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled: boolean;
events: {
Expand Down Expand Up @@ -2481,10 +2487,12 @@ declare const HPartnerSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled?: boolean | undefined;
url?: string | null | undefined;
Expand Down Expand Up @@ -3782,6 +3790,7 @@ declare const HPartnerAppSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
created_at: z.ZodEffects<z.ZodDate, Date, Date>;
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
Expand All @@ -3795,6 +3804,7 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}, {
Expand All @@ -3805,10 +3815,12 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}>, "many">;
tag_slugs: z.ZodArray<z.ZodString, "many">;
tag_references: z.ZodArray<z.ZodString, "many">;
data: z.ZodObject<{
source: z.ZodString;
manual: z.ZodBoolean;
Expand Down Expand Up @@ -4037,10 +4049,12 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled: boolean;
events: {
Expand Down Expand Up @@ -4244,10 +4258,12 @@ declare const HPartnerAppSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}[];
tag_slugs: string[];
tag_references: string[];
webhook_settings: {
enabled?: boolean | undefined;
url?: string | null | undefined;
Expand Down Expand Up @@ -5065,6 +5081,7 @@ declare const HTagSchema: z.ZodObject<{
name: z.ZodString;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
color: z.ZodOptional<z.ZodNullable<z.ZodString>>;
type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
created_at: z.ZodEffects<z.ZodDate, Date, Date>;
updated_at: z.ZodEffects<z.ZodDate, Date, Date>;
Expand All @@ -5078,6 +5095,7 @@ declare const HTagSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}, {
Expand All @@ -5088,6 +5106,7 @@ declare const HTagSchema: z.ZodObject<{
updated_by: string;
slug: string;
id?: string | null | undefined;
type?: string | null | undefined;
description?: string | null | undefined;
color?: string | null | undefined;
}>;
Expand Down
16 changes: 14 additions & 2 deletions dist/base/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/base/index.js.map

Large diffs are not rendered by default.

Loading
Loading