@getcommunity/gc-validators 0.0.287 → 0.0.288-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{document-D8qKQkPt.mjs → document-BiAMIsiM.mjs} +64 -64
- package/dist/{document-Cxhs9JXi.d.mts → document-Bs5gh1PK.d.mts} +118 -19
- package/dist/{document-Cv0UyYmb.d.cts → document-DZnOyFC3.d.cts} +118 -19
- package/dist/entities/client/document.cjs +1 -1
- package/dist/entities/client/document.d.cts +1 -1
- package/dist/entities/client/document.d.mts +1 -1
- package/dist/entities/client/document.mjs +1 -1
- package/dist/entities/client/query.cjs +39 -0
- package/dist/entities/client/query.d.cts +641 -1
- package/dist/entities/client/query.d.mts +641 -1
- package/dist/entities/client/query.mjs +38 -1
- package/dist/entities/client-content-pillar/document.cjs +1 -1
- package/dist/entities/client-content-pillar/document.d.cts +1 -1
- package/dist/entities/client-content-pillar/document.d.mts +1 -1
- package/dist/entities/client-content-pillar/document.mjs +1 -1
- package/dist/entities/client-media-platform/document.cjs +1 -1
- package/dist/entities/client-media-platform/document.d.cts +1 -1
- package/dist/entities/client-media-platform/document.d.mts +1 -1
- package/dist/entities/client-media-platform/document.mjs +1 -1
- package/dist/entities/client-project/document.cjs +1 -1
- package/dist/entities/client-project/document.d.cts +1 -1
- package/dist/entities/client-project/document.d.mts +1 -1
- package/dist/entities/client-project/document.mjs +1 -1
- package/dist/entities/client-project/mutation.cjs +1 -1
- package/dist/entities/client-project/mutation.mjs +1 -1
- package/dist/entities/client-project/query.cjs +1 -1
- package/dist/entities/client-project/query.mjs +1 -1
- package/dist/entities/client-report/document.cjs +1 -1
- package/dist/entities/client-report/document.d.cts +1 -1
- package/dist/entities/client-report/document.d.mts +1 -1
- package/dist/entities/client-report/document.mjs +1 -1
- package/dist/entities/client-styleguide/document.cjs +1 -1
- package/dist/entities/client-styleguide/document.d.cts +1 -1
- package/dist/entities/client-styleguide/document.d.mts +1 -1
- package/dist/entities/client-styleguide/document.mjs +1 -1
- package/dist/entities/client-user/document.cjs +1 -1
- package/dist/entities/client-user/document.d.cts +1 -1
- package/dist/entities/client-user/document.d.mts +1 -1
- package/dist/entities/client-user/document.mjs +1 -1
- package/dist/entities/content-pillar/document.cjs +1 -1
- package/dist/entities/content-pillar/document.d.cts +1 -1
- package/dist/entities/content-pillar/document.d.mts +1 -1
- package/dist/entities/content-pillar/document.mjs +1 -1
- package/dist/entities/formatter/constants.d.cts +1 -1
- package/dist/entities/formatter/constants.d.mts +1 -1
- package/dist/entities/formatter/fields.d.cts +4 -4
- package/dist/entities/formatter/fields.d.mts +4 -4
- package/dist/entities/gcflytour/document.cjs +1 -1
- package/dist/entities/gcflytour/document.d.cts +1 -1
- package/dist/entities/gcflytour/document.d.mts +1 -1
- package/dist/entities/gcflytour/document.mjs +1 -1
- package/dist/entities/gcflytour-snap/document.cjs +1 -1
- package/dist/entities/gcflytour-snap/document.d.cts +1 -1
- package/dist/entities/gcflytour-snap/document.d.mts +1 -1
- package/dist/entities/gcflytour-snap/document.mjs +1 -1
- package/dist/entities/media-content-type/document.cjs +1 -1
- package/dist/entities/media-content-type/document.d.cts +1 -1
- package/dist/entities/media-content-type/document.d.mts +1 -1
- package/dist/entities/media-content-type/document.mjs +1 -1
- package/dist/entities/media-creative-format/document.cjs +1 -1
- package/dist/entities/media-creative-format/document.d.cts +1 -1
- package/dist/entities/media-creative-format/document.d.mts +1 -1
- package/dist/entities/media-creative-format/document.mjs +1 -1
- package/dist/entities/media-medium/document.cjs +1 -1
- package/dist/entities/media-medium/document.d.cts +1 -1
- package/dist/entities/media-medium/document.d.mts +1 -1
- package/dist/entities/media-medium/document.mjs +1 -1
- package/dist/entities/media-platform/document.cjs +1 -1
- package/dist/entities/media-platform/document.d.cts +1 -1
- package/dist/entities/media-platform/document.d.mts +1 -1
- package/dist/entities/media-platform/document.mjs +1 -1
- package/dist/entities/monday-workspace/document.cjs +1 -1
- package/dist/entities/monday-workspace/document.d.cts +1 -1
- package/dist/entities/monday-workspace/document.d.mts +1 -1
- package/dist/entities/monday-workspace/document.mjs +1 -1
- package/dist/entities/product-highlight/document.cjs +1 -1
- package/dist/entities/product-highlight/document.d.cts +1 -1
- package/dist/entities/product-highlight/document.d.mts +1 -1
- package/dist/entities/product-highlight/document.mjs +1 -1
- package/dist/entities/up-auth/mutation.d.cts +1 -103
- package/dist/entities/up-auth/mutation.d.mts +1 -103
- package/dist/entities/up-permission/document.cjs +1 -1
- package/dist/entities/up-permission/document.d.cts +1 -1
- package/dist/entities/up-permission/document.d.mts +1 -1
- package/dist/entities/up-permission/document.mjs +1 -1
- package/dist/entities/up-role/document.cjs +1 -1
- package/dist/entities/up-role/document.d.cts +1 -1
- package/dist/entities/up-role/document.d.mts +1 -1
- package/dist/entities/up-role/document.mjs +1 -1
- package/dist/entities/up-user/document.cjs +1 -1
- package/dist/entities/up-user/document.d.cts +1 -1
- package/dist/entities/up-user/document.d.mts +1 -1
- package/dist/entities/up-user/document.mjs +1 -1
- package/dist/entities/user-account/document.cjs +1 -1
- package/dist/entities/user-account/document.d.cts +1 -1
- package/dist/entities/user-account/document.d.mts +1 -1
- package/dist/entities/user-account/document.mjs +1 -1
- package/dist/entities/utm-tracking-link/document.cjs +1 -1
- package/dist/entities/utm-tracking-link/document.d.cts +1 -1
- package/dist/entities/utm-tracking-link/document.d.mts +1 -1
- package/dist/entities/utm-tracking-link/document.mjs +1 -1
- package/dist/filters/index.cjs +206 -0
- package/dist/filters/index.d.cts +484 -0
- package/dist/filters/index.d.mts +484 -0
- package/dist/filters/index.mjs +181 -0
- package/dist/index-CvAzE6rd.d.cts +25 -0
- package/dist/index-CvAzE6rd.d.mts +25 -0
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/string-CJYo78-9.cjs +254 -0
- package/dist/string-sEYvBtr0.mjs +133 -0
- package/dist/utilities/index.d.cts +1 -2
- package/dist/utilities/index.d.mts +1 -2
- package/dist/validators/index.cjs +2 -2
- package/dist/validators/index.mjs +2 -2
- package/package.json +20 -6
- package/dist/{document-DmlmGzg1.cjs → document-CHO80cjy.cjs} +63 -63
|
@@ -29,69 +29,6 @@ const ClientContentPillarDocument = v.object({
|
|
|
29
29
|
content_pillar: VDocumentRelationOne(() => ContentPillarDocument)
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region src/entities/media-creative-format/document.ts
|
|
33
|
-
const MediaCreativeFormatDocument = v.object({
|
|
34
|
-
...BaseDocument.entries,
|
|
35
|
-
title: v.string(),
|
|
36
|
-
slug: v.string(),
|
|
37
|
-
is_active: v.boolean(),
|
|
38
|
-
is_universal: v.boolean(),
|
|
39
|
-
description: v.nullable(v.string()),
|
|
40
|
-
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument))))
|
|
41
|
-
});
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/entities/media-content-type/document.ts
|
|
44
|
-
const MediaContentTypeDocument = v.object({
|
|
45
|
-
...BaseDocument.entries,
|
|
46
|
-
title: v.string(),
|
|
47
|
-
slug: v.string(),
|
|
48
|
-
is_active: v.boolean(),
|
|
49
|
-
is_organic_social: v.boolean(),
|
|
50
|
-
is_paid_media: v.boolean(),
|
|
51
|
-
description: v.nullable(v.string()),
|
|
52
|
-
information: v.nullable(v.array(RichTextBlock)),
|
|
53
|
-
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument),
|
|
54
|
-
media_creative_formats: v.optional(v.nullable(v.array(v.lazy(() => MediaCreativeFormatDocument))))
|
|
55
|
-
});
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/entities/media-medium/document.ts
|
|
58
|
-
const MediaMediumDocument = v.object({
|
|
59
|
-
...BaseDocument.entries,
|
|
60
|
-
title: v.string(),
|
|
61
|
-
slug: v.string(),
|
|
62
|
-
is_active: v.boolean(),
|
|
63
|
-
is_organic_social: v.boolean(),
|
|
64
|
-
is_paid_media: v.boolean(),
|
|
65
|
-
description: v.nullable(v.string()),
|
|
66
|
-
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument)
|
|
67
|
-
});
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/entities/media-platform/document.ts
|
|
70
|
-
const MediaPlatformDocument = v.object({
|
|
71
|
-
...BaseDocument.entries,
|
|
72
|
-
title: v.string(),
|
|
73
|
-
slug: v.string(),
|
|
74
|
-
utm_key: v.string(),
|
|
75
|
-
is_active: v.boolean(),
|
|
76
|
-
is_organic_social: v.boolean(),
|
|
77
|
-
is_paid_media: v.boolean(),
|
|
78
|
-
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
79
|
-
description: v.nullable(v.string()),
|
|
80
|
-
information: v.nullable(v.array(RichTextBlock)),
|
|
81
|
-
clients: VDocumentRelationMany(() => ClientMediaPlatformDocument),
|
|
82
|
-
media_content_types: VDocumentRelationMany(() => MediaContentTypeDocument),
|
|
83
|
-
media_mediums: VDocumentRelationMany(() => MediaMediumDocument)
|
|
84
|
-
});
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/entities/client-media-platform/document.ts
|
|
87
|
-
const ClientMediaPlatformDocument = v.object({
|
|
88
|
-
...BaseDocument.entries,
|
|
89
|
-
url: v.nullable(v.string()),
|
|
90
|
-
is_active: v.boolean(),
|
|
91
|
-
client: VDocumentRelationOne(() => ClientDocument),
|
|
92
|
-
media_platform: VDocumentRelationOne(() => MediaPlatformDocument)
|
|
93
|
-
});
|
|
94
|
-
//#endregion
|
|
95
32
|
//#region src/entities/client-project/document.ts
|
|
96
33
|
const ClientProjectDocument = v.object({
|
|
97
34
|
...BaseDocument.entries,
|
|
@@ -299,4 +236,67 @@ const ClientDocument = v.object({
|
|
|
299
236
|
gcflytours: VDocumentRelationMany(() => GCFlyTourDocument)
|
|
300
237
|
});
|
|
301
238
|
//#endregion
|
|
302
|
-
|
|
239
|
+
//#region src/entities/media-creative-format/document.ts
|
|
240
|
+
const MediaCreativeFormatDocument = v.object({
|
|
241
|
+
...BaseDocument.entries,
|
|
242
|
+
title: v.string(),
|
|
243
|
+
slug: v.string(),
|
|
244
|
+
is_active: v.boolean(),
|
|
245
|
+
is_universal: v.boolean(),
|
|
246
|
+
description: v.nullable(v.string()),
|
|
247
|
+
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument))))
|
|
248
|
+
});
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/entities/media-content-type/document.ts
|
|
251
|
+
const MediaContentTypeDocument = v.object({
|
|
252
|
+
...BaseDocument.entries,
|
|
253
|
+
title: v.string(),
|
|
254
|
+
slug: v.string(),
|
|
255
|
+
is_active: v.boolean(),
|
|
256
|
+
is_organic_social: v.boolean(),
|
|
257
|
+
is_paid_media: v.boolean(),
|
|
258
|
+
description: v.nullable(v.string()),
|
|
259
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
260
|
+
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument),
|
|
261
|
+
media_creative_formats: v.optional(v.nullable(v.array(v.lazy(() => MediaCreativeFormatDocument))))
|
|
262
|
+
});
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region src/entities/media-medium/document.ts
|
|
265
|
+
const MediaMediumDocument = v.object({
|
|
266
|
+
...BaseDocument.entries,
|
|
267
|
+
title: v.string(),
|
|
268
|
+
slug: v.string(),
|
|
269
|
+
is_active: v.boolean(),
|
|
270
|
+
is_organic_social: v.boolean(),
|
|
271
|
+
is_paid_media: v.boolean(),
|
|
272
|
+
description: v.nullable(v.string()),
|
|
273
|
+
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument)
|
|
274
|
+
});
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region src/entities/media-platform/document.ts
|
|
277
|
+
const MediaPlatformDocument = v.object({
|
|
278
|
+
...BaseDocument.entries,
|
|
279
|
+
title: v.string(),
|
|
280
|
+
slug: v.string(),
|
|
281
|
+
utm_key: v.string(),
|
|
282
|
+
is_active: v.boolean(),
|
|
283
|
+
is_organic_social: v.boolean(),
|
|
284
|
+
is_paid_media: v.boolean(),
|
|
285
|
+
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
286
|
+
description: v.nullable(v.string()),
|
|
287
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
288
|
+
clients: VDocumentRelationMany(() => ClientMediaPlatformDocument),
|
|
289
|
+
media_content_types: VDocumentRelationMany(() => MediaContentTypeDocument),
|
|
290
|
+
media_mediums: VDocumentRelationMany(() => MediaMediumDocument)
|
|
291
|
+
});
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/entities/client-media-platform/document.ts
|
|
294
|
+
const ClientMediaPlatformDocument = v.object({
|
|
295
|
+
...BaseDocument.entries,
|
|
296
|
+
url: v.nullable(v.string()),
|
|
297
|
+
is_active: v.boolean(),
|
|
298
|
+
client: VDocumentRelationOne(() => ClientDocument),
|
|
299
|
+
media_platform: VDocumentRelationOne(() => MediaPlatformDocument)
|
|
300
|
+
});
|
|
301
|
+
//#endregion
|
|
302
|
+
export { ContentPillarDocument as S, PermissionDocument as _, MediaCreativeFormatDocument as a, ClientProjectDocument as b, MondayWorkspaceDocument as c, ClientUserDocument as d, ClientUserDocumentStatus as f, RoleDocument as g, UserAccountDocument as h, MediaContentTypeDocument as i, GCFlyTourDocument as l, UtmTrackingLinkDocument as m, MediaPlatformDocument as n, ClientDocument as o, UserDocument as p, MediaMediumDocument as r, ProductHighlightDocument as s, ClientMediaPlatformDocument as t, GCFlyTourSnapDocument as u, ClientStyleguideDocument as v, ClientContentPillarDocument as x, ClientReportDocument as y };
|
|
@@ -5,13 +5,12 @@ import { l as RichTextBlock } from "./index-FZTP1wfp.mjs";
|
|
|
5
5
|
import { n as UtmClassificationKey } from "./index-CBmZNWdq.mjs";
|
|
6
6
|
import { t as TagDocument } from "./document-CN3W2Y2X.mjs";
|
|
7
7
|
import { n as ClientProjectStatus, t as ClientProjectPhase } from "./fields-CX223AFm.mjs";
|
|
8
|
-
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.mjs";
|
|
9
8
|
import { t as RoleType } from "./fields-DNmK-PPG.mjs";
|
|
9
|
+
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.mjs";
|
|
10
10
|
import { t as CommentApprovalStatus } from "./fields-IINGC54h.mjs";
|
|
11
11
|
import { i as CommentThread, n as CommentDocument, t as CommentAuthor } from "./document-DZvXiHqY.mjs";
|
|
12
12
|
import { t as ProductDocument } from "./document-B_ZXYnh3.mjs";
|
|
13
13
|
import * as v from "valibot";
|
|
14
|
-
import { AuthorizedUserDocument as AuthorizedUserDocument$1 } from "~/entities/up-auth/types";
|
|
15
14
|
|
|
16
15
|
//#region src/entities/media-creative-format/document.d.ts
|
|
17
16
|
declare const MediaCreativeFormatDocument: v.GenericSchema<{
|
|
@@ -182,21 +181,6 @@ declare const PermissionDocument: v.GenericSchema<{
|
|
|
182
181
|
}>;
|
|
183
182
|
type PermissionDocument = v.InferOutput<typeof PermissionDocument>;
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region src/entities/up-role/document.d.ts
|
|
186
|
-
declare const RoleDocument: v.GenericSchema<{
|
|
187
|
-
id: number;
|
|
188
|
-
documentId: string;
|
|
189
|
-
publishedAt?: string;
|
|
190
|
-
createdAt: string;
|
|
191
|
-
updatedAt: string;
|
|
192
|
-
type: RoleType;
|
|
193
|
-
name: string;
|
|
194
|
-
description: string | null;
|
|
195
|
-
permissions?: PermissionDocument[] | null;
|
|
196
|
-
users?: UserDocument[] | null;
|
|
197
|
-
}>;
|
|
198
|
-
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
199
|
-
//#endregion
|
|
200
184
|
//#region src/entities/user-account/document.d.ts
|
|
201
185
|
declare const UserAccountDocument: v.GenericSchema<{
|
|
202
186
|
id: number;
|
|
@@ -259,6 +243,121 @@ declare const UserDocument: v.GenericSchema<{
|
|
|
259
243
|
}>;
|
|
260
244
|
type UserDocument = v.InferOutput<typeof UserDocument>;
|
|
261
245
|
//#endregion
|
|
246
|
+
//#region src/entities/up-role/document.d.ts
|
|
247
|
+
declare const RoleDocument: v.GenericSchema<{
|
|
248
|
+
id: number;
|
|
249
|
+
documentId: string;
|
|
250
|
+
publishedAt?: string;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
type: RoleType;
|
|
254
|
+
name: string;
|
|
255
|
+
description: string | null;
|
|
256
|
+
permissions?: PermissionDocument[] | null;
|
|
257
|
+
users?: UserDocument[] | null;
|
|
258
|
+
}>;
|
|
259
|
+
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/entities/up-auth/mutation.d.ts
|
|
262
|
+
type AuthorizedUserDocument = Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links"> & {
|
|
263
|
+
account: Omit<UserAccountDocument, "user">;
|
|
264
|
+
role: Omit<RoleDocument, "users" | "permissions">;
|
|
265
|
+
};
|
|
266
|
+
type UserAuthorizationSuccessResponse = {
|
|
267
|
+
jwt: string;
|
|
268
|
+
refreshToken?: string;
|
|
269
|
+
user: Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links">;
|
|
270
|
+
};
|
|
271
|
+
type UserRefreshAuthorizationSuccessResponse = {
|
|
272
|
+
jwt: string;
|
|
273
|
+
refreshToken: string;
|
|
274
|
+
};
|
|
275
|
+
declare const SUserToken: v.ObjectSchema<{
|
|
276
|
+
readonly token: v.StringSchema<undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
type SUserToken = v.InferOutput<typeof SUserToken>;
|
|
279
|
+
declare const SRefreshUserToken: v.ObjectSchema<{
|
|
280
|
+
readonly refreshToken: v.StringSchema<undefined>;
|
|
281
|
+
}, undefined>;
|
|
282
|
+
type SRefreshUserToken = v.InferOutput<typeof SRefreshUserToken>;
|
|
283
|
+
declare const SLoginUser: v.ObjectSchema<{
|
|
284
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
285
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
286
|
+
}, undefined>;
|
|
287
|
+
type SLoginUser = v.InferOutput<typeof SLoginUser>;
|
|
288
|
+
declare const SRegisterUser: v.ObjectSchema<{
|
|
289
|
+
readonly username: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
290
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
291
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
292
|
+
}, undefined>;
|
|
293
|
+
type SRegisterUser = v.InferOutput<typeof SRegisterUser>;
|
|
294
|
+
declare const SForgotUserPassword: v.ObjectSchema<{
|
|
295
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
296
|
+
}, undefined>;
|
|
297
|
+
type SForgotUserPassword = v.InferOutput<typeof SForgotUserPassword>;
|
|
298
|
+
declare const SRequestConfirmEmail: v.ObjectSchema<{
|
|
299
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
300
|
+
}, undefined>;
|
|
301
|
+
type SRequestConfirmEmail = v.InferOutput<typeof SRequestConfirmEmail>;
|
|
302
|
+
declare const SResetUserPassword: v.ObjectSchema<{
|
|
303
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
304
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
305
|
+
readonly code: v.StringSchema<undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
type SResetUserPassword = v.InferOutput<typeof SResetUserPassword>;
|
|
308
|
+
declare const SChangePassword: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
309
|
+
readonly currentPassword: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
310
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
311
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
312
|
+
}, undefined>, v.BaseValidation<{
|
|
313
|
+
currentPassword: string;
|
|
314
|
+
password: string;
|
|
315
|
+
passwordConfirmation: string;
|
|
316
|
+
}, {
|
|
317
|
+
currentPassword: string;
|
|
318
|
+
password: string;
|
|
319
|
+
passwordConfirmation: string;
|
|
320
|
+
}, v.PartialCheckIssue<{
|
|
321
|
+
password: string;
|
|
322
|
+
passwordConfirmation: string;
|
|
323
|
+
}>>]>;
|
|
324
|
+
type SChangePassword = v.InferOutput<typeof SChangePassword>;
|
|
325
|
+
declare const SAuthRawAccessToken: v.ObjectSchema<{
|
|
326
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
327
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
328
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
329
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
330
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
331
|
+
}, undefined>;
|
|
332
|
+
type SAuthRawAccessToken = v.InferOutput<typeof SAuthRawAccessToken>;
|
|
333
|
+
declare const SAuthConnectProviderRedirectSearch: v.ObjectSchema<{
|
|
334
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
335
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
336
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
337
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
338
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
339
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
340
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
342
|
+
}, undefined>, undefined>;
|
|
343
|
+
}, undefined>;
|
|
344
|
+
type SAuthConnectProviderRedirectSearch = v.InferOutput<typeof SAuthConnectProviderRedirectSearch>;
|
|
345
|
+
declare const SAuthConnectProviderConfirmation: v.ObjectSchema<{
|
|
346
|
+
readonly provider: v.StringSchema<undefined>;
|
|
347
|
+
readonly search: v.ObjectSchema<{
|
|
348
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
349
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
350
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
351
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
352
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
353
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
354
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
355
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
356
|
+
}, undefined>, undefined>;
|
|
357
|
+
}, undefined>;
|
|
358
|
+
}, undefined>;
|
|
359
|
+
type SAuthConnectProviderConfirmation = v.InferOutput<typeof SAuthConnectProviderConfirmation>;
|
|
360
|
+
//#endregion
|
|
262
361
|
//#region src/entities/product-highlight/document.d.ts
|
|
263
362
|
declare const ProductHighlightDocument: v.GenericSchema<{
|
|
264
363
|
id: number;
|
|
@@ -3497,7 +3596,7 @@ declare const ROLE_PERMISSIONS: {
|
|
|
3497
3596
|
//#endregion
|
|
3498
3597
|
//#region src/permissions/types.d.ts
|
|
3499
3598
|
type LCRUDActions = "list" | "create" | "read" | "update" | "delete";
|
|
3500
|
-
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument
|
|
3599
|
+
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument, permissions: ClientUserDocumentStatus, data?: Permissions[Key]["dataType"]) => boolean);
|
|
3501
3600
|
type RolesWithPermissions = { [R in RoleType]: Partial<{ [Key in keyof Permissions]: Partial<{ [Action in Permissions[Key]["action"]]: PermissionCheck<Key> }> }> };
|
|
3502
3601
|
type Permissions = {
|
|
3503
3602
|
"user-account": {
|
|
@@ -3646,4 +3745,4 @@ declare const ClientContentPillarDocument: v.GenericSchema<{
|
|
|
3646
3745
|
}>;
|
|
3647
3746
|
type ClientContentPillarDocument = v.InferOutput<typeof ClientContentPillarDocument>;
|
|
3648
3747
|
//#endregion
|
|
3649
|
-
export {
|
|
3748
|
+
export { RoleDocument as A, MediaMediumDocument as B, SRefreshUserToken as C, SUserToken as D, SResetUserPassword as E, ClientStyleguideDocument as F, MediaCreativeFormatDocument as H, ClientReportDocument as I, ClientProjectDocument as L, UtmTrackingLinkDocument as M, UserAccountDocument as N, UserAuthorizationSuccessResponse as O, PermissionDocument as P, ClientMediaPlatformDocument as R, SLoginUser as S, SRequestConfirmEmail as T, MediaContentTypeDocument as V, SAuthConnectProviderConfirmation as _, LCRUDActions as a, SChangePassword as b, PermissionsEntity as c, ContentPillarDocument as d, GCFlyTourDocument as f, AuthorizedUserDocument as g, ProductHighlightDocument as h, ClientUserDocumentStatus as i, UserDocument as j, UserRefreshAuthorizationSuccessResponse as k, RolesWithPermissions as l, MondayWorkspaceDocument as m, ClientDocument as n, Permissions as o, GCFlyTourSnapDocument as p, ClientUserDocument as r, PermissionsAction as s, ClientContentPillarDocument as t, ROLE_PERMISSIONS as u, SAuthConnectProviderRedirectSearch as v, SRegisterUser as w, SForgotUserPassword as x, SAuthRawAccessToken as y, MediaPlatformDocument as z };
|
|
@@ -5,13 +5,12 @@ import { l as RichTextBlock } from "./index-NJAGJcxy.cjs";
|
|
|
5
5
|
import { n as UtmClassificationKey } from "./index-CBmZNWdq.cjs";
|
|
6
6
|
import { t as TagDocument } from "./document-CN3W2Y2X.cjs";
|
|
7
7
|
import { n as ClientProjectStatus, t as ClientProjectPhase } from "./fields-CX223AFm.cjs";
|
|
8
|
-
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.cjs";
|
|
9
8
|
import { t as RoleType } from "./fields-DNmK-PPG.cjs";
|
|
9
|
+
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.cjs";
|
|
10
10
|
import { t as CommentApprovalStatus } from "./fields-IINGC54h.cjs";
|
|
11
11
|
import { i as CommentThread, n as CommentDocument, t as CommentAuthor } from "./document-B-RLH3la.cjs";
|
|
12
12
|
import { t as ProductDocument } from "./document-C9FkMgj3.cjs";
|
|
13
13
|
import * as v from "valibot";
|
|
14
|
-
import { AuthorizedUserDocument as AuthorizedUserDocument$1 } from "~/entities/up-auth/types";
|
|
15
14
|
|
|
16
15
|
//#region src/entities/media-creative-format/document.d.ts
|
|
17
16
|
declare const MediaCreativeFormatDocument: v.GenericSchema<{
|
|
@@ -182,21 +181,6 @@ declare const PermissionDocument: v.GenericSchema<{
|
|
|
182
181
|
}>;
|
|
183
182
|
type PermissionDocument = v.InferOutput<typeof PermissionDocument>;
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region src/entities/up-role/document.d.ts
|
|
186
|
-
declare const RoleDocument: v.GenericSchema<{
|
|
187
|
-
id: number;
|
|
188
|
-
documentId: string;
|
|
189
|
-
publishedAt?: string;
|
|
190
|
-
createdAt: string;
|
|
191
|
-
updatedAt: string;
|
|
192
|
-
type: RoleType;
|
|
193
|
-
name: string;
|
|
194
|
-
description: string | null;
|
|
195
|
-
permissions?: PermissionDocument[] | null;
|
|
196
|
-
users?: UserDocument[] | null;
|
|
197
|
-
}>;
|
|
198
|
-
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
199
|
-
//#endregion
|
|
200
184
|
//#region src/entities/user-account/document.d.ts
|
|
201
185
|
declare const UserAccountDocument: v.GenericSchema<{
|
|
202
186
|
id: number;
|
|
@@ -259,6 +243,121 @@ declare const UserDocument: v.GenericSchema<{
|
|
|
259
243
|
}>;
|
|
260
244
|
type UserDocument = v.InferOutput<typeof UserDocument>;
|
|
261
245
|
//#endregion
|
|
246
|
+
//#region src/entities/up-role/document.d.ts
|
|
247
|
+
declare const RoleDocument: v.GenericSchema<{
|
|
248
|
+
id: number;
|
|
249
|
+
documentId: string;
|
|
250
|
+
publishedAt?: string;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
type: RoleType;
|
|
254
|
+
name: string;
|
|
255
|
+
description: string | null;
|
|
256
|
+
permissions?: PermissionDocument[] | null;
|
|
257
|
+
users?: UserDocument[] | null;
|
|
258
|
+
}>;
|
|
259
|
+
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/entities/up-auth/mutation.d.ts
|
|
262
|
+
type AuthorizedUserDocument = Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links"> & {
|
|
263
|
+
account: Omit<UserAccountDocument, "user">;
|
|
264
|
+
role: Omit<RoleDocument, "users" | "permissions">;
|
|
265
|
+
};
|
|
266
|
+
type UserAuthorizationSuccessResponse = {
|
|
267
|
+
jwt: string;
|
|
268
|
+
refreshToken?: string;
|
|
269
|
+
user: Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links">;
|
|
270
|
+
};
|
|
271
|
+
type UserRefreshAuthorizationSuccessResponse = {
|
|
272
|
+
jwt: string;
|
|
273
|
+
refreshToken: string;
|
|
274
|
+
};
|
|
275
|
+
declare const SUserToken: v.ObjectSchema<{
|
|
276
|
+
readonly token: v.StringSchema<undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
type SUserToken = v.InferOutput<typeof SUserToken>;
|
|
279
|
+
declare const SRefreshUserToken: v.ObjectSchema<{
|
|
280
|
+
readonly refreshToken: v.StringSchema<undefined>;
|
|
281
|
+
}, undefined>;
|
|
282
|
+
type SRefreshUserToken = v.InferOutput<typeof SRefreshUserToken>;
|
|
283
|
+
declare const SLoginUser: v.ObjectSchema<{
|
|
284
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
285
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
286
|
+
}, undefined>;
|
|
287
|
+
type SLoginUser = v.InferOutput<typeof SLoginUser>;
|
|
288
|
+
declare const SRegisterUser: v.ObjectSchema<{
|
|
289
|
+
readonly username: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
290
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
291
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
292
|
+
}, undefined>;
|
|
293
|
+
type SRegisterUser = v.InferOutput<typeof SRegisterUser>;
|
|
294
|
+
declare const SForgotUserPassword: v.ObjectSchema<{
|
|
295
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
296
|
+
}, undefined>;
|
|
297
|
+
type SForgotUserPassword = v.InferOutput<typeof SForgotUserPassword>;
|
|
298
|
+
declare const SRequestConfirmEmail: v.ObjectSchema<{
|
|
299
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
300
|
+
}, undefined>;
|
|
301
|
+
type SRequestConfirmEmail = v.InferOutput<typeof SRequestConfirmEmail>;
|
|
302
|
+
declare const SResetUserPassword: v.ObjectSchema<{
|
|
303
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
304
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
305
|
+
readonly code: v.StringSchema<undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
type SResetUserPassword = v.InferOutput<typeof SResetUserPassword>;
|
|
308
|
+
declare const SChangePassword: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
309
|
+
readonly currentPassword: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
310
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
311
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
312
|
+
}, undefined>, v.BaseValidation<{
|
|
313
|
+
currentPassword: string;
|
|
314
|
+
password: string;
|
|
315
|
+
passwordConfirmation: string;
|
|
316
|
+
}, {
|
|
317
|
+
currentPassword: string;
|
|
318
|
+
password: string;
|
|
319
|
+
passwordConfirmation: string;
|
|
320
|
+
}, v.PartialCheckIssue<{
|
|
321
|
+
password: string;
|
|
322
|
+
passwordConfirmation: string;
|
|
323
|
+
}>>]>;
|
|
324
|
+
type SChangePassword = v.InferOutput<typeof SChangePassword>;
|
|
325
|
+
declare const SAuthRawAccessToken: v.ObjectSchema<{
|
|
326
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
327
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
328
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
329
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
330
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
331
|
+
}, undefined>;
|
|
332
|
+
type SAuthRawAccessToken = v.InferOutput<typeof SAuthRawAccessToken>;
|
|
333
|
+
declare const SAuthConnectProviderRedirectSearch: v.ObjectSchema<{
|
|
334
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
335
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
336
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
337
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
338
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
339
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
340
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
342
|
+
}, undefined>, undefined>;
|
|
343
|
+
}, undefined>;
|
|
344
|
+
type SAuthConnectProviderRedirectSearch = v.InferOutput<typeof SAuthConnectProviderRedirectSearch>;
|
|
345
|
+
declare const SAuthConnectProviderConfirmation: v.ObjectSchema<{
|
|
346
|
+
readonly provider: v.StringSchema<undefined>;
|
|
347
|
+
readonly search: v.ObjectSchema<{
|
|
348
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
349
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
350
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
351
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
352
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
353
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
354
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
355
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
356
|
+
}, undefined>, undefined>;
|
|
357
|
+
}, undefined>;
|
|
358
|
+
}, undefined>;
|
|
359
|
+
type SAuthConnectProviderConfirmation = v.InferOutput<typeof SAuthConnectProviderConfirmation>;
|
|
360
|
+
//#endregion
|
|
262
361
|
//#region src/entities/product-highlight/document.d.ts
|
|
263
362
|
declare const ProductHighlightDocument: v.GenericSchema<{
|
|
264
363
|
id: number;
|
|
@@ -3497,7 +3596,7 @@ declare const ROLE_PERMISSIONS: {
|
|
|
3497
3596
|
//#endregion
|
|
3498
3597
|
//#region src/permissions/types.d.ts
|
|
3499
3598
|
type LCRUDActions = "list" | "create" | "read" | "update" | "delete";
|
|
3500
|
-
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument
|
|
3599
|
+
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument, permissions: ClientUserDocumentStatus, data?: Permissions[Key]["dataType"]) => boolean);
|
|
3501
3600
|
type RolesWithPermissions = { [R in RoleType]: Partial<{ [Key in keyof Permissions]: Partial<{ [Action in Permissions[Key]["action"]]: PermissionCheck<Key> }> }> };
|
|
3502
3601
|
type Permissions = {
|
|
3503
3602
|
"user-account": {
|
|
@@ -3646,4 +3745,4 @@ declare const ClientContentPillarDocument: v.GenericSchema<{
|
|
|
3646
3745
|
}>;
|
|
3647
3746
|
type ClientContentPillarDocument = v.InferOutput<typeof ClientContentPillarDocument>;
|
|
3648
3747
|
//#endregion
|
|
3649
|
-
export {
|
|
3748
|
+
export { RoleDocument as A, MediaMediumDocument as B, SRefreshUserToken as C, SUserToken as D, SResetUserPassword as E, ClientStyleguideDocument as F, MediaCreativeFormatDocument as H, ClientReportDocument as I, ClientProjectDocument as L, UtmTrackingLinkDocument as M, UserAccountDocument as N, UserAuthorizationSuccessResponse as O, PermissionDocument as P, ClientMediaPlatformDocument as R, SLoginUser as S, SRequestConfirmEmail as T, MediaContentTypeDocument as V, SAuthConnectProviderConfirmation as _, LCRUDActions as a, SChangePassword as b, PermissionsEntity as c, ContentPillarDocument as d, GCFlyTourDocument as f, AuthorizedUserDocument as g, ProductHighlightDocument as h, ClientUserDocumentStatus as i, UserDocument as j, UserRefreshAuthorizationSuccessResponse as k, RolesWithPermissions as l, MondayWorkspaceDocument as m, ClientDocument as n, Permissions as o, GCFlyTourSnapDocument as p, ClientUserDocument as r, PermissionsAction as s, ClientContentPillarDocument as t, ROLE_PERMISSIONS as u, SAuthConnectProviderRedirectSearch as v, SRegisterUser as w, SForgotUserPassword as x, SAuthRawAccessToken as y, MediaPlatformDocument as z };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ClientDocument } from "../../document-
|
|
1
|
+
import { n as ClientDocument } from "../../document-DZnOyFC3.cjs";
|
|
2
2
|
export { ClientDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ClientDocument } from "../../document-
|
|
1
|
+
import { n as ClientDocument } from "../../document-Bs5gh1PK.mjs";
|
|
2
2
|
export { ClientDocument };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { o as ClientDocument } from "../../document-BiAMIsiM.mjs";
|
|
2
2
|
export { ClientDocument };
|
|
@@ -3,9 +3,24 @@ const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
|
3
3
|
const require_pagination = require("../../pagination-DhAgQr7d.cjs");
|
|
4
4
|
const require_sort = require("../../sort-CYllFl6q.cjs");
|
|
5
5
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
6
|
+
const require_string$1 = require("../../string-CJYo78-9.cjs");
|
|
6
7
|
const require_entities_client_fields = require("./fields.cjs");
|
|
7
8
|
let valibot = require("valibot");
|
|
8
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
|
+
//#region src/filters/primitives/logical-operators.ts
|
|
11
|
+
const createStrapiLogicalFilterEntries = (filter) => ({
|
|
12
|
+
$and: valibot.pipe(valibot.array(filter), valibot.minLength(1)),
|
|
13
|
+
$not: filter,
|
|
14
|
+
$or: valibot.pipe(valibot.array(filter), valibot.minLength(1))
|
|
15
|
+
});
|
|
16
|
+
const createStrapiFilterSchema = (fieldEntries) => {
|
|
17
|
+
const Filter = valibot.lazy(() => require_string$1.createStrapiStrictFilterObject({
|
|
18
|
+
...fieldEntries,
|
|
19
|
+
...createStrapiLogicalFilterEntries(Filter)
|
|
20
|
+
}));
|
|
21
|
+
return Filter;
|
|
22
|
+
};
|
|
23
|
+
//#endregion
|
|
9
24
|
//#region src/entities/client/query.ts
|
|
10
25
|
const QueryStrapiSearchClients = valibot.object({
|
|
11
26
|
page: require_pagination.VPage(),
|
|
@@ -24,5 +39,29 @@ const QueryStrapiSearchClients = valibot.object({
|
|
|
24
39
|
classification: valibot.optional(require_entities_client_fields.ClientClassification),
|
|
25
40
|
sort: valibot.optional(require_sort.QuerySortValues)
|
|
26
41
|
});
|
|
42
|
+
const FilterStrapiClients = createStrapiFilterSchema({
|
|
43
|
+
title: require_string$1.StringFilter,
|
|
44
|
+
teamwork_id: require_string$1.StringFilter,
|
|
45
|
+
teamwork_name: require_string$1.StringFilter,
|
|
46
|
+
gainapp_id: require_string$1.StringFilter,
|
|
47
|
+
utm_sheet_id: require_string$1.StringFilter,
|
|
48
|
+
is_active: require_string$1.BooleanFilter,
|
|
49
|
+
is_hidden: require_string$1.BooleanFilter,
|
|
50
|
+
is_featured: require_string$1.BooleanFilter,
|
|
51
|
+
allow_create_utm_link: require_string$1.BooleanFilter,
|
|
52
|
+
is_paid_media: require_string$1.BooleanFilter,
|
|
53
|
+
is_organic_social: require_string$1.BooleanFilter,
|
|
54
|
+
classification: require_string$1.createPicklistFilter(require_entities_client_fields.ClientClassification),
|
|
55
|
+
createdAt: require_string$1.DateTimeFilter,
|
|
56
|
+
updatedAt: require_string$1.DateTimeFilter
|
|
57
|
+
});
|
|
58
|
+
const QueryStrapiClients = valibot.object({
|
|
59
|
+
page: require_pagination.VPage(),
|
|
60
|
+
size: require_pagination.VSize(),
|
|
61
|
+
sort: valibot.optional(require_sort.QuerySortValues),
|
|
62
|
+
f: valibot.optional(FilterStrapiClients)
|
|
63
|
+
});
|
|
27
64
|
//#endregion
|
|
65
|
+
exports.FilterStrapiClients = FilterStrapiClients;
|
|
66
|
+
exports.QueryStrapiClients = QueryStrapiClients;
|
|
28
67
|
exports.QueryStrapiSearchClients = QueryStrapiSearchClients;
|