@getcommunity/gc-validators 0.0.271-alpha.5 → 0.0.271-alpha.6
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/base/index.d.mts +4 -4
- package/dist/components/shared/index.d.mts +1 -1
- package/dist/document-382ehFRd.mjs +13 -0
- package/dist/document-8oGgjvHp.cjs +21 -0
- package/dist/document-B-BesdbN.cjs +106 -0
- package/dist/document-B0Wfxtx_.cjs +31 -0
- package/dist/document-B3W1HKLY.cjs +42 -0
- package/dist/document-B6m32jys.cjs +26 -0
- package/dist/document-BM56JclD.mjs +19 -0
- package/dist/document-BRxLaO7o.mjs +14 -0
- package/dist/document-B_cRo5-b.mjs +10 -0
- package/dist/document-B_wA1eag.cjs +26 -0
- package/dist/{document-Ccszj8lR.cjs → document-Bbc9ayLX.cjs} +7 -4
- package/dist/document-BqLA3Y8O.cjs +17 -0
- package/dist/{document-DsT_qkhs.d.mts → document-BqfLH_0k.d.mts} +243 -279
- package/dist/document-Bt9GvI0D.mjs +10 -0
- package/dist/document-Bu5YWCAU.cjs +82 -0
- package/dist/document-BvIcrPT7.cjs +171 -0
- package/dist/document-BxOiI95X.mjs +19 -0
- package/dist/document-C3OB0I_l.mjs +14 -0
- package/dist/document-CFlCafnR.mjs +23 -0
- package/dist/{document-AkydjorI.d.cts → document-CLNQhWUt.d.cts} +238 -274
- package/dist/document-CUGxDcNv.mjs +10 -0
- package/dist/document-CXQi4qL-.mjs +39 -0
- package/dist/{document-CTTDXzOF.mjs → document-CaSvsqH_.mjs} +6 -3
- package/dist/document-CfUkGKW8.mjs +9 -0
- package/dist/document-Cp8Pptp9.mjs +23 -0
- package/dist/document-Cww9JKGT.mjs +11 -0
- package/dist/document-D067FSuD.cjs +17 -0
- package/dist/document-D1jsgU3z.cjs +24 -0
- package/dist/document-D2sLfhsG.mjs +12 -0
- package/dist/document-DAt2jaAd.cjs +26 -0
- package/dist/document-DHP4LdYq.cjs +21 -0
- package/dist/document-DM_UVNTr.cjs +35 -0
- package/dist/document-DOF-cc0D.mjs +13 -0
- package/dist/document-DeOzRkxJ.mjs +24 -0
- package/dist/document-DnVLqNHr.cjs +18 -0
- package/dist/document-Dv3TYeB2.cjs +30 -0
- package/dist/document-DwpVkKFH.cjs +16 -0
- package/dist/document-DwsiJVoA.mjs +22 -0
- package/dist/document-DwuQKbb9.cjs +20 -0
- package/dist/document-HWHxKIhw.mjs +17 -0
- package/dist/document-U0OA-83z.cjs +19 -0
- package/dist/document-a6GT3Sh4.mjs +19 -0
- package/dist/document-ahAv6kkH.cjs +17 -0
- package/dist/document-bbO2HaC_.mjs +110 -0
- package/dist/document-cysZuK08.mjs +57 -0
- package/dist/document-llX1moYE.mjs +10 -0
- package/dist/document-mxwQ5HxZ.cjs +17 -0
- package/dist/document-oPQeqMah.cjs +20 -0
- package/dist/document-oUROy-QQ.cjs +21 -0
- package/dist/document-wBWa6c70.mjs +14 -0
- package/dist/entities/audit-log/index.d.cts +2 -2
- package/dist/entities/audit-log/index.d.mts +3 -3
- package/dist/entities/blog-page/index.d.mts +1 -1
- package/dist/entities/blog-post/index.cjs +24 -65
- package/dist/entities/blog-post/index.d.cts +2098 -4
- package/dist/entities/blog-post/index.d.mts +2099 -5
- package/dist/entities/blog-post/index.mjs +14 -56
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.cjs +10 -9
- package/dist/entities/category/index.d.cts +963 -1
- package/dist/entities/category/index.d.mts +963 -1
- package/dist/entities/category/index.mjs +9 -9
- package/dist/entities/client/index.cjs +27 -1
- package/dist/entities/client/index.d.cts +1331 -4
- package/dist/entities/client/index.d.mts +1331 -4
- package/dist/entities/client/index.mjs +27 -2
- package/dist/entities/client-content-pillar/index.cjs +2 -12
- package/dist/entities/client-content-pillar/index.d.cts +2 -2
- package/dist/entities/client-content-pillar/index.d.mts +3 -3
- package/dist/entities/client-content-pillar/index.mjs +1 -11
- package/dist/entities/client-media-platform/index.cjs +12 -9
- package/dist/entities/client-media-platform/index.d.cts +485 -3
- package/dist/entities/client-media-platform/index.d.mts +486 -4
- package/dist/entities/client-media-platform/index.mjs +11 -9
- package/dist/entities/client-project/index.cjs +26 -125
- package/dist/entities/client-project/index.d.cts +332 -3
- package/dist/entities/client-project/index.d.mts +333 -4
- package/dist/entities/client-project/index.mjs +9 -109
- package/dist/entities/client-report/index.cjs +10 -13
- package/dist/entities/client-report/index.d.cts +251 -3
- package/dist/entities/client-report/index.d.mts +252 -4
- package/dist/entities/client-report/index.mjs +9 -13
- package/dist/entities/client-styleguide/index.cjs +10 -22
- package/dist/entities/client-styleguide/index.d.cts +666 -3
- package/dist/entities/client-styleguide/index.d.mts +667 -4
- package/dist/entities/client-styleguide/index.mjs +9 -22
- package/dist/entities/client-user/index.cjs +19 -46
- package/dist/entities/client-user/index.d.cts +246 -2
- package/dist/entities/client-user/index.d.mts +246 -2
- package/dist/entities/client-user/index.mjs +10 -38
- package/dist/entities/comment/index.d.cts +1 -1
- package/dist/entities/comment/index.d.mts +1 -1
- package/dist/entities/content-pillar/index.cjs +8 -1
- package/dist/entities/content-pillar/index.d.cts +289 -4
- package/dist/entities/content-pillar/index.d.mts +289 -4
- package/dist/entities/content-pillar/index.mjs +8 -2
- package/dist/entities/faq-page/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.cjs +12 -12
- package/dist/entities/gcflytour/index.d.cts +263 -4
- package/dist/entities/gcflytour/index.d.mts +263 -4
- package/dist/entities/gcflytour/index.mjs +11 -12
- package/dist/entities/gcflytour-snap/index.cjs +10 -12
- package/dist/entities/gcflytour-snap/index.d.cts +31 -4
- package/dist/entities/gcflytour-snap/index.d.mts +31 -4
- package/dist/entities/gcflytour-snap/index.mjs +9 -12
- package/dist/entities/landing-page/index.d.mts +1 -1
- package/dist/entities/media-content-type/index.cjs +12 -15
- package/dist/entities/media-content-type/index.d.cts +280 -4
- package/dist/entities/media-content-type/index.d.mts +280 -4
- package/dist/entities/media-content-type/index.mjs +11 -15
- package/dist/entities/media-creative-format/index.cjs +10 -11
- package/dist/entities/media-creative-format/index.d.cts +42 -4
- package/dist/entities/media-creative-format/index.d.mts +42 -4
- package/dist/entities/media-creative-format/index.mjs +9 -11
- package/dist/entities/media-medium/index.cjs +10 -13
- package/dist/entities/media-medium/index.d.cts +257 -3
- package/dist/entities/media-medium/index.d.mts +257 -3
- package/dist/entities/media-medium/index.mjs +9 -13
- package/dist/entities/media-platform/index.cjs +14 -18
- package/dist/entities/media-platform/index.d.cts +291 -4
- package/dist/entities/media-platform/index.d.mts +291 -4
- package/dist/entities/media-platform/index.mjs +13 -18
- package/dist/entities/monday-workspace/index.cjs +10 -9
- package/dist/entities/monday-workspace/index.d.cts +248 -4
- package/dist/entities/monday-workspace/index.d.mts +248 -4
- package/dist/entities/monday-workspace/index.mjs +9 -9
- package/dist/entities/policy-page/index.d.mts +1 -1
- package/dist/entities/product/index.cjs +2 -21
- package/dist/entities/product/index.d.mts +1 -1
- package/dist/entities/product/index.mjs +1 -18
- package/dist/entities/product-highlight/index.cjs +12 -16
- package/dist/entities/product-highlight/index.d.cts +795 -1
- package/dist/entities/product-highlight/index.d.mts +795 -1
- package/dist/entities/product-highlight/index.mjs +11 -16
- package/dist/entities/tag/index.cjs +2 -9
- package/dist/entities/tag/index.mjs +1 -8
- package/dist/entities/team-member/index.cjs +23 -13
- package/dist/entities/team-member/index.d.cts +1459 -1
- package/dist/entities/team-member/index.d.mts +1459 -1
- package/dist/entities/team-member/index.mjs +11 -2
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/trend/index.cjs +2 -16
- package/dist/entities/trend/index.mjs +1 -15
- package/dist/entities/up-auth/index.d.cts +1 -1
- package/dist/entities/up-auth/index.d.mts +1 -1
- package/dist/entities/up-permission/index.cjs +8 -6
- package/dist/entities/up-permission/index.d.cts +22 -1
- package/dist/entities/up-permission/index.d.mts +22 -1
- package/dist/entities/up-permission/index.mjs +7 -6
- package/dist/entities/up-role/index.cjs +12 -22
- package/dist/entities/up-role/index.d.cts +37 -2
- package/dist/entities/up-role/index.d.mts +38 -3
- package/dist/entities/up-role/index.mjs +9 -20
- package/dist/entities/up-user/index.cjs +16 -13
- package/dist/entities/up-user/index.d.cts +72 -4
- package/dist/entities/up-user/index.d.mts +72 -4
- package/dist/entities/up-user/index.mjs +15 -13
- package/dist/entities/url-redirect/index.d.cts +2 -2
- package/dist/entities/url-redirect/index.d.mts +2 -2
- package/dist/entities/user-account/index.cjs +9 -10
- package/dist/entities/user-account/index.d.cts +16 -2
- package/dist/entities/user-account/index.d.mts +17 -3
- package/dist/entities/user-account/index.mjs +8 -10
- package/dist/entities/utm-tracking-link/index.cjs +12 -23
- package/dist/entities/utm-tracking-link/index.d.cts +4 -3
- package/dist/entities/utm-tracking-link/index.d.mts +4 -3
- package/dist/entities/utm-tracking-link/index.mjs +11 -23
- package/dist/{index-BIWFngsB.d.mts → index-D6AuLdB6.d.mts} +3 -3
- package/dist/{index-D4Mm4D2d.d.cts → index-Dcwyodut.d.cts} +3 -3
- package/dist/{index-DpYYzY_9.d.cts → index-DfGGyf7_.d.cts} +18 -3
- package/dist/{index-BI8tN-QZ.d.mts → index-Dj9J1FKD.d.mts} +19 -4
- package/dist/{index-Bht1Jd5l.d.mts → index-DxyNYBOY.d.mts} +1 -1
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/relations-CG_9IVCD.d.cts +274 -0
- package/dist/relations-DxgFak1L.d.mts +274 -0
- package/dist/utilities/index.d.cts +3 -3
- package/dist/utilities/index.d.mts +4 -4
- package/package.json +1 -1
- package/dist/document-CWYzG60q.d.cts +0 -19
- package/dist/document-D-KvyEb5.d.cts +0 -238
- package/dist/document-D2nLVGig.d.mts +0 -238
- package/dist/document-si7GYS5g.d.mts +0 -19
- /package/dist/{document-BAzLIprH.d.mts → document-7JBq8iiP.d.mts} +0 -0
- /package/dist/{document-BK1ASowb.d.cts → document-BInCC6Wk.d.cts} +0 -0
- /package/dist/{document-Bpr9mbCs.d.mts → document-BPdwRVjm.d.cts} +0 -0
- /package/dist/{document-D5yDIDIx.d.mts → document-BQ6ulTO1.d.mts} +0 -0
- /package/dist/{document-dqrWptdY.d.cts → document-BdMrLGBL.d.cts} +0 -0
- /package/dist/{document-Bd2AyLs8.d.mts → document-BpFw7FI0.d.mts} +0 -0
- /package/dist/{document-Cu_HUDC5.mjs → document-Bpgteig6.mjs} +0 -0
- /package/dist/{document-Bj7SRTOn.d.cts → document-BumbQ1Eb.d.cts} +0 -0
- /package/dist/{document-C0c7azOe.d.mts → document-C4ofAcKx.d.mts} +0 -0
- /package/dist/{document-DYzRVV1C.d.mts → document-CCcofYd9.d.mts} +0 -0
- /package/dist/{document-CUl_Ys6-.mjs → document-CW3ycXvJ.mjs} +0 -0
- /package/dist/{document-B_pJW777.d.mts → document-Clr6FjtO.d.cts} +0 -0
- /package/dist/{document-BNoXPGwF.d.mts → document-Ct4bnsKU.d.mts} +0 -0
- /package/dist/{document-D_ZMbzn6.d.cts → document-CxeeO4Pl.d.mts} +0 -0
- /package/dist/{document-DJ0YiVte.d.cts → document-DIcd27AR.d.mts} +0 -0
- /package/dist/{document-WHS8GHY5.d.mts → document-DK6Xmvao.d.cts} +0 -0
- /package/dist/{document-vq-7rcU5.d.mts → document-DL4Wayv7.d.mts} +0 -0
- /package/dist/{document-CjNHI7Eb.d.cts → document-DX2Vidl1.d.cts} +0 -0
- /package/dist/{document-hEBlSep8.d.cts → document-DY8Wgy1A.d.mts} +0 -0
- /package/dist/{document-Gx2Vrg_w.d.mts → document-Db1-gtyJ.d.mts} +0 -0
- /package/dist/{document-DsSaMVGb.cjs → document-DgG9DIT2.cjs} +0 -0
- /package/dist/{document-DsIPBTG8.cjs → document-DtBkeafK.cjs} +0 -0
- /package/dist/{document-Bo869pZx.d.mts → document-YDFyLZlN.d.mts} +0 -0
- /package/dist/{document-DeoRGh7p.d.mts → document-bJOLxFq1.d.mts} +0 -0
- /package/dist/{document-IIJpsOIO.d.cts → document-xVdETwbX.d.cts} +0 -0
- /package/dist/{document-DMHIUE3J.d.mts → document-yW376Wot.d.mts} +0 -0
- /package/dist/{fields-BQHSYj70.d.cts → fields-BuP0NSFS.d.mts} +0 -0
- /package/dist/{fields-qx-5saY5.d.mts → fields-ByZAYnAi.d.cts} +0 -0
- /package/dist/{json-CqAaKeHA.d.mts → json-BbJGr6x_.d.mts} +0 -0
- /package/dist/{query.schema-BOn5Kk_p.d.mts → query.schema-DKllKSKC.d.mts} +0 -0
- /package/dist/{response-C-7nyNVD.d.mts → response-BZKHnpHe.d.mts} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as UserDocument } from "../../index-Dj9J1FKD.mjs";
|
|
2
|
+
import { p as ClientEntityScope } from "../../document-BqfLH_0k.mjs";
|
|
2
3
|
import * as v from "valibot";
|
|
3
4
|
|
|
4
5
|
//#region src/entities/up-user/constants.d.ts
|
|
@@ -7,7 +8,7 @@ declare const LIMIT_USER_PAGINATION_MAX_SIZE = 10;
|
|
|
7
8
|
declare const USER_SORT_KEYS: readonly ["id", "username", "email", "confirmed", "blocked", "createdAt", "updatedAt"];
|
|
8
9
|
//#endregion
|
|
9
10
|
//#region src/entities/up-user/fields.d.ts
|
|
10
|
-
declare const QuerySortUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "
|
|
11
|
+
declare const QuerySortUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], 7, undefined>]>, undefined>;
|
|
11
12
|
type QuerySortUsers = v.InferOutput<typeof QuerySortUsers>;
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region src/entities/up-user/mutation.d.ts
|
|
@@ -25,7 +26,7 @@ type CreateUserDocument = v.InferOutput<typeof CreateUserDocument>;
|
|
|
25
26
|
declare const QueryStrapiUsers: v.ObjectSchema<{
|
|
26
27
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
27
28
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
28
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "
|
|
29
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "blocked:DESC" | "username:ASC" | "email:ASC" | "confirmed:ASC" | "username:DESC" | "email:DESC" | "confirmed:DESC")[], 7, undefined>]>, undefined>;
|
|
29
30
|
}, undefined>;
|
|
30
31
|
type QueryStrapiUsers = v.InferOutput<typeof QueryStrapiUsers>;
|
|
31
32
|
declare const QueryStrapiUsersByIdentifier: v.ObjectSchema<{
|
|
@@ -35,4 +36,71 @@ declare const QueryStrapiUsersByIdentifier: v.ObjectSchema<{
|
|
|
35
36
|
}, undefined>;
|
|
36
37
|
type QueryStrapiUsersByIdentifier = v.InferOutput<typeof QueryStrapiUsersByIdentifier>;
|
|
37
38
|
//#endregion
|
|
38
|
-
|
|
39
|
+
//#region src/entities/up-user/relations.d.ts
|
|
40
|
+
declare const UserDocumentWithRelations: v.ObjectSchema<{
|
|
41
|
+
readonly role: v.OptionalSchema<v.NullableSchema<v.LazySchema<v.ObjectSchema<{
|
|
42
|
+
readonly type: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
|
|
43
|
+
readonly name: v.StringSchema<undefined>;
|
|
44
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
45
|
+
readonly id: v.NumberSchema<undefined>;
|
|
46
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
47
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
49
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
50
|
+
}, undefined>>, undefined>, undefined>;
|
|
51
|
+
readonly account: v.OptionalSchema<v.NullableSchema<v.LazySchema<v.ObjectSchema<{
|
|
52
|
+
readonly preferred_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly first_name: v.StringSchema<undefined>;
|
|
54
|
+
readonly last_name: v.StringSchema<undefined>;
|
|
55
|
+
readonly id: v.NumberSchema<undefined>;
|
|
56
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
57
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
58
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
59
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
60
|
+
}, undefined>>, undefined>, undefined>;
|
|
61
|
+
readonly clients: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.LazySchema<v.ObjectSchema<{
|
|
62
|
+
readonly scopes: v.ArraySchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<ClientEntityScope[], undefined>]>, "Please provide a valid list of scopes.">, v.MaxLengthAction<ClientEntityScope[], number, "You cannot provide more scopes than there are available.">]>, undefined>;
|
|
63
|
+
readonly id: v.NumberSchema<undefined>;
|
|
64
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
65
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
67
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
68
|
+
}, undefined>>, undefined>, undefined>, undefined>;
|
|
69
|
+
readonly utm_tracking_links: v.OptionalSchema<v.NullableSchema<v.ArraySchema<v.LazySchema<v.ObjectSchema<{
|
|
70
|
+
readonly url_destination: v.StringSchema<undefined>;
|
|
71
|
+
readonly utm_medium: v.StringSchema<undefined>;
|
|
72
|
+
readonly utm_source: v.StringSchema<undefined>;
|
|
73
|
+
readonly utm_campaign: v.StringSchema<undefined>;
|
|
74
|
+
readonly utm_content: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly utm_creative_format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
76
|
+
readonly utm_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
77
|
+
readonly campaign_phase: v.StringSchema<undefined>;
|
|
78
|
+
readonly campaign_product: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly campaign_targeting: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly campaign_key: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly creative_format: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly creative_format_variants: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
83
|
+
readonly url: v.StringSchema<undefined>;
|
|
84
|
+
readonly is_active: v.BooleanSchema<undefined>;
|
|
85
|
+
readonly notes: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly id: v.NumberSchema<undefined>;
|
|
87
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
88
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
89
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
90
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
91
|
+
}, undefined>>, undefined>, undefined>, undefined>;
|
|
92
|
+
readonly username: v.StringSchema<undefined>;
|
|
93
|
+
readonly email: v.StringSchema<undefined>;
|
|
94
|
+
readonly provider: v.StringSchema<undefined>;
|
|
95
|
+
readonly confirmed: v.BooleanSchema<undefined>;
|
|
96
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
97
|
+
readonly clerk_user_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
98
|
+
readonly id: v.NumberSchema<undefined>;
|
|
99
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
100
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
101
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
102
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
103
|
+
}, undefined>;
|
|
104
|
+
type UserDocumentWithRelations = v.InferOutput<typeof UserDocumentWithRelations>;
|
|
105
|
+
//#endregion
|
|
106
|
+
export { CreateUserDocument, LIMIT_USER_PAGINATION_DEFAULT_SIZE, LIMIT_USER_PAGINATION_MAX_SIZE, QuerySortUsers, QueryStrapiUsers, QueryStrapiUsersByIdentifier, USER_SORT_KEYS, UserDocument, UserDocumentWithRelations };
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
1
|
import { s as REGEX_UTM_VALUE } from "../../regex-BnKGcdS4.mjs";
|
|
3
2
|
import { d as VStringMinMax, f as VStringMinMaxRegex, h as VStringShort, i as VSize, o as VStringEmail, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
3
|
+
import { t as ClientUserDocument } from "../../document-CXQi4qL-.mjs";
|
|
4
|
+
import { t as UtmTrackingLinkDocument } from "../../document-DeOzRkxJ.mjs";
|
|
5
|
+
import { t as RoleDocument } from "../../document-CFlCafnR.mjs";
|
|
6
|
+
import { t as UserDocument } from "../../document-BRxLaO7o.mjs";
|
|
7
|
+
import { t as UserAccountDocument } from "../../document-Cww9JKGT.mjs";
|
|
4
8
|
import * as v from "valibot";
|
|
5
9
|
//#region src/entities/up-user/constants.ts
|
|
6
10
|
const LIMIT_USER_PAGINATION_DEFAULT_SIZE = 10;
|
|
@@ -15,17 +19,6 @@ const USER_SORT_KEYS = [
|
|
|
15
19
|
"updatedAt"
|
|
16
20
|
];
|
|
17
21
|
//#endregion
|
|
18
|
-
//#region src/entities/up-user/document.ts
|
|
19
|
-
const UserDocument = v.object({
|
|
20
|
-
...BaseDocument.entries,
|
|
21
|
-
username: v.string(),
|
|
22
|
-
email: v.string(),
|
|
23
|
-
provider: v.string(),
|
|
24
|
-
confirmed: v.boolean(),
|
|
25
|
-
blocked: v.boolean(),
|
|
26
|
-
clerk_user_id: v.nullable(v.string())
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
22
|
//#region src/entities/up-user/fields.ts
|
|
30
23
|
const QuerySortUsers = v.optional(v.pipe(v.array(v.picklist(USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(USER_SORT_KEYS.length)));
|
|
31
24
|
//#endregion
|
|
@@ -51,4 +44,13 @@ const QueryStrapiUsersByIdentifier = v.object({
|
|
|
51
44
|
size: VSize(10)
|
|
52
45
|
});
|
|
53
46
|
//#endregion
|
|
54
|
-
|
|
47
|
+
//#region src/entities/up-user/relations.ts
|
|
48
|
+
const UserDocumentWithRelations = v.object({
|
|
49
|
+
...UserDocument.entries,
|
|
50
|
+
role: v.optional(v.nullable(v.lazy(() => RoleDocument))),
|
|
51
|
+
account: v.optional(v.nullable(v.lazy(() => UserAccountDocument))),
|
|
52
|
+
clients: v.optional(v.nullable(v.array(v.lazy(() => ClientUserDocument)))),
|
|
53
|
+
utm_tracking_links: v.optional(v.nullable(v.array(v.lazy(() => UtmTrackingLinkDocument))))
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { CreateUserDocument, LIMIT_USER_PAGINATION_DEFAULT_SIZE, LIMIT_USER_PAGINATION_MAX_SIZE, QuerySortUsers, QueryStrapiUsers, QueryStrapiUsersByIdentifier, USER_SORT_KEYS, UserDocument, UserDocumentWithRelations };
|
|
@@ -27,14 +27,14 @@ declare const UrlRedirectStatusCode: v.PicklistSchema<readonly ["found_302", "mo
|
|
|
27
27
|
type UrlRedirectStatusCode = v.InferOutput<typeof UrlRedirectStatusCode>;
|
|
28
28
|
declare const UrlRedirectQueryParams: v.PicklistSchema<readonly ["ignore_and_pass_to_target", "ignore_all_parameters", "exact_match_in_any_order"], undefined>;
|
|
29
29
|
type UrlRedirectQueryParams = v.InferOutput<typeof UrlRedirectQueryParams>;
|
|
30
|
-
declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
30
|
+
declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
|
|
31
31
|
type QuerySortUrlRedirects = v.InferOutput<typeof QuerySortUrlRedirects>;
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/entities/url-redirect/query.d.ts
|
|
34
34
|
declare const QueryStrapiPaginatedUrlRedirects: v.ObjectSchema<{
|
|
35
35
|
readonly page: v.SchemaWithFallback<v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, 1>, 1>;
|
|
36
36
|
readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 100>, 100>;
|
|
37
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
37
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
|
|
38
38
|
}, undefined>;
|
|
39
39
|
type QueryStrapiPaginatedUrlRedirects = v.InferOutput<typeof QueryStrapiPaginatedUrlRedirects>;
|
|
40
40
|
declare const QueryStrapiUrlRedirectsByFrom: v.ObjectSchema<{
|
|
@@ -27,14 +27,14 @@ declare const UrlRedirectStatusCode: v.PicklistSchema<readonly ["found_302", "mo
|
|
|
27
27
|
type UrlRedirectStatusCode = v.InferOutput<typeof UrlRedirectStatusCode>;
|
|
28
28
|
declare const UrlRedirectQueryParams: v.PicklistSchema<readonly ["ignore_and_pass_to_target", "ignore_all_parameters", "exact_match_in_any_order"], undefined>;
|
|
29
29
|
type UrlRedirectQueryParams = v.InferOutput<typeof UrlRedirectQueryParams>;
|
|
30
|
-
declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
30
|
+
declare const QuerySortUrlRedirects: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
|
|
31
31
|
type QuerySortUrlRedirects = v.InferOutput<typeof QuerySortUrlRedirects>;
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/entities/url-redirect/query.d.ts
|
|
34
34
|
declare const QueryStrapiPaginatedUrlRedirects: v.ObjectSchema<{
|
|
35
35
|
readonly page: v.SchemaWithFallback<v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>, 1>, 1>;
|
|
36
36
|
readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 1000, undefined>]>, 100>, 100>;
|
|
37
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
37
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "from:ASC" | "to:ASC" | "status_code:ASC" | "query_params:ASC" | "from:DESC" | "to:DESC" | "status_code:DESC" | "query_params:DESC")[], 8, undefined>]>, undefined>;
|
|
38
38
|
}, undefined>;
|
|
39
39
|
type QueryStrapiPaginatedUrlRedirects = v.InferOutput<typeof QueryStrapiPaginatedUrlRedirects>;
|
|
40
40
|
declare const QueryStrapiUrlRedirectsByFrom: v.ObjectSchema<{
|
|
@@ -1,20 +1,12 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
3
|
const require_query_schema = require("../../query.schema-DHTf6rTw.cjs");
|
|
5
4
|
require("../../regex-Cl5goNwp.cjs");
|
|
6
5
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
7
6
|
const require_relations = require("../../relations-CGu18hfT.cjs");
|
|
7
|
+
const require_document = require("../../document-DnVLqNHr.cjs");
|
|
8
8
|
let valibot = require("valibot");
|
|
9
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
|
-
//#region src/entities/user-account/document.ts
|
|
11
|
-
const UserAccountDocument = valibot.object({
|
|
12
|
-
...require_document.BaseDocument.entries,
|
|
13
|
-
preferred_name: valibot.nullable(valibot.string()),
|
|
14
|
-
first_name: valibot.string(),
|
|
15
|
-
last_name: valibot.string()
|
|
16
|
-
});
|
|
17
|
-
//#endregion
|
|
18
10
|
//#region src/entities/user-account/mutation.ts
|
|
19
11
|
const UpdateUserAccount = valibot.object({
|
|
20
12
|
documentId: require_relations.SAssociateOneEntity,
|
|
@@ -39,10 +31,17 @@ const UpdateUserAccountPreferredName = valibot.object({
|
|
|
39
31
|
const SReadUserAccountById = require_query_schema.QueryStrapiById;
|
|
40
32
|
const SReadUserAccountByDocumentId = require_query_schema.QueryStrapiByDocumentId;
|
|
41
33
|
//#endregion
|
|
34
|
+
//#region src/entities/user-account/relations.ts
|
|
35
|
+
const UserAccountDocumentWithRelations = valibot.object({
|
|
36
|
+
...require_document.UserAccountDocument.entries,
|
|
37
|
+
user: valibot.optional(valibot.unknown())
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
42
40
|
exports.SReadUserAccountByDocumentId = SReadUserAccountByDocumentId;
|
|
43
41
|
exports.SReadUserAccountById = SReadUserAccountById;
|
|
44
42
|
exports.UpdateUserAccount = UpdateUserAccount;
|
|
45
43
|
exports.UpdateUserAccountFirstName = UpdateUserAccountFirstName;
|
|
46
44
|
exports.UpdateUserAccountLastName = UpdateUserAccountLastName;
|
|
47
45
|
exports.UpdateUserAccountPreferredName = UpdateUserAccountPreferredName;
|
|
48
|
-
exports.UserAccountDocument = UserAccountDocument;
|
|
46
|
+
exports.UserAccountDocument = require_document.UserAccountDocument;
|
|
47
|
+
exports.UserAccountDocumentWithRelations = UserAccountDocumentWithRelations;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-CItKlb0x.cjs";
|
|
2
|
-
import { t as UserAccountDocument } from "../../document-
|
|
2
|
+
import { t as UserAccountDocument } from "../../document-xVdETwbX.cjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
5
|
//#region src/entities/user-account/mutation.d.ts
|
|
@@ -36,4 +36,18 @@ declare const SReadUserAccountByDocumentId: v.ObjectSchema<{
|
|
|
36
36
|
}, undefined>;
|
|
37
37
|
type SReadUserAccountByDocumentId = QueryStrapiByDocumentId;
|
|
38
38
|
//#endregion
|
|
39
|
-
|
|
39
|
+
//#region src/entities/user-account/relations.d.ts
|
|
40
|
+
declare const UserAccountDocumentWithRelations: v.ObjectSchema<{
|
|
41
|
+
readonly user: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
42
|
+
readonly preferred_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly first_name: v.StringSchema<undefined>;
|
|
44
|
+
readonly last_name: v.StringSchema<undefined>;
|
|
45
|
+
readonly id: v.NumberSchema<undefined>;
|
|
46
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
47
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
49
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
50
|
+
}, undefined>;
|
|
51
|
+
type UserAccountDocumentWithRelations = v.InferOutput<typeof UserAccountDocumentWithRelations>;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { SReadUserAccountByDocumentId, SReadUserAccountById, UpdateUserAccount, UpdateUserAccountFirstName, UpdateUserAccountLastName, UpdateUserAccountPreferredName, UserAccountDocument, UserAccountDocumentWithRelations };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-
|
|
2
|
-
import { t as UserAccountDocument } from "../../document-
|
|
1
|
+
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-DKllKSKC.mjs";
|
|
2
|
+
import { t as UserAccountDocument } from "../../document-BpFw7FI0.mjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
5
|
//#region src/entities/user-account/mutation.d.ts
|
|
@@ -36,4 +36,18 @@ declare const SReadUserAccountByDocumentId: v.ObjectSchema<{
|
|
|
36
36
|
}, undefined>;
|
|
37
37
|
type SReadUserAccountByDocumentId = QueryStrapiByDocumentId;
|
|
38
38
|
//#endregion
|
|
39
|
-
|
|
39
|
+
//#region src/entities/user-account/relations.d.ts
|
|
40
|
+
declare const UserAccountDocumentWithRelations: v.ObjectSchema<{
|
|
41
|
+
readonly user: v.OptionalSchema<v.UnknownSchema, undefined>;
|
|
42
|
+
readonly preferred_name: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly first_name: v.StringSchema<undefined>;
|
|
44
|
+
readonly last_name: v.StringSchema<undefined>;
|
|
45
|
+
readonly id: v.NumberSchema<undefined>;
|
|
46
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
47
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
49
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
50
|
+
}, undefined>;
|
|
51
|
+
type UserAccountDocumentWithRelations = v.InferOutput<typeof UserAccountDocumentWithRelations>;
|
|
52
|
+
//#endregion
|
|
53
|
+
export { SReadUserAccountByDocumentId, SReadUserAccountById, UpdateUserAccount, UpdateUserAccountFirstName, UpdateUserAccountLastName, UpdateUserAccountPreferredName, UserAccountDocument, UserAccountDocumentWithRelations };
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
1
|
import { r as QueryStrapiById, t as QueryStrapiByDocumentId } from "../../query.schema-YKoOuBnk.mjs";
|
|
3
2
|
import "../../regex-BnKGcdS4.mjs";
|
|
4
3
|
import { d as VStringMinMax } from "../../validators-P5E_3qzc.mjs";
|
|
5
4
|
import { a as SAssociateOneEntity } from "../../relations-C04F46xL.mjs";
|
|
5
|
+
import { t as UserAccountDocument } from "../../document-Cww9JKGT.mjs";
|
|
6
6
|
import * as v from "valibot";
|
|
7
|
-
//#region src/entities/user-account/document.ts
|
|
8
|
-
const UserAccountDocument = v.object({
|
|
9
|
-
...BaseDocument.entries,
|
|
10
|
-
preferred_name: v.nullable(v.string()),
|
|
11
|
-
first_name: v.string(),
|
|
12
|
-
last_name: v.string()
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
7
|
//#region src/entities/user-account/mutation.ts
|
|
16
8
|
const UpdateUserAccount = v.object({
|
|
17
9
|
documentId: SAssociateOneEntity,
|
|
@@ -36,4 +28,10 @@ const UpdateUserAccountPreferredName = v.object({
|
|
|
36
28
|
const SReadUserAccountById = QueryStrapiById;
|
|
37
29
|
const SReadUserAccountByDocumentId = QueryStrapiByDocumentId;
|
|
38
30
|
//#endregion
|
|
39
|
-
|
|
31
|
+
//#region src/entities/user-account/relations.ts
|
|
32
|
+
const UserAccountDocumentWithRelations = v.object({
|
|
33
|
+
...UserAccountDocument.entries,
|
|
34
|
+
user: v.optional(v.unknown())
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
export { SReadUserAccountByDocumentId, SReadUserAccountById, UpdateUserAccount, UpdateUserAccountFirstName, UpdateUserAccountLastName, UpdateUserAccountPreferredName, UserAccountDocument, UserAccountDocumentWithRelations };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
-
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
3
|
const require_regex = require("../../regex-Cl5goNwp.cjs");
|
|
5
4
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
5
|
const require_relations = require("../../relations-CGu18hfT.cjs");
|
|
6
|
+
const require_document = require("../../document-DtBkeafK.cjs");
|
|
7
|
+
const require_document$1 = require("../../document-B0Wfxtx_.cjs");
|
|
8
|
+
const require_document$2 = require("../../document-oUROy-QQ.cjs");
|
|
7
9
|
let valibot = require("valibot");
|
|
8
10
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
11
|
//#region src/entities/utm-tracking-link/constants.ts
|
|
@@ -32,27 +34,6 @@ const UTM_TRACKING_LINK_SORT_KEYS = [
|
|
|
32
34
|
"updatedAt"
|
|
33
35
|
];
|
|
34
36
|
//#endregion
|
|
35
|
-
//#region src/entities/utm-tracking-link/document.ts
|
|
36
|
-
const UtmTrackingLinkDocument = valibot.object({
|
|
37
|
-
...require_document.BaseDocument.entries,
|
|
38
|
-
url_destination: valibot.string(),
|
|
39
|
-
utm_medium: valibot.string(),
|
|
40
|
-
utm_source: valibot.string(),
|
|
41
|
-
utm_campaign: valibot.string(),
|
|
42
|
-
utm_content: valibot.nullable(valibot.string()),
|
|
43
|
-
utm_creative_format: valibot.nullable(valibot.string()),
|
|
44
|
-
utm_id: valibot.nullable(valibot.string()),
|
|
45
|
-
campaign_phase: valibot.string(),
|
|
46
|
-
campaign_product: valibot.nullable(valibot.string()),
|
|
47
|
-
campaign_targeting: valibot.nullable(valibot.string()),
|
|
48
|
-
campaign_key: valibot.nullable(valibot.string()),
|
|
49
|
-
creative_format: valibot.nullable(valibot.string()),
|
|
50
|
-
creative_format_variants: valibot.nullable(valibot.string()),
|
|
51
|
-
url: valibot.string(),
|
|
52
|
-
is_active: valibot.boolean(),
|
|
53
|
-
notes: valibot.nullable(valibot.string())
|
|
54
|
-
});
|
|
55
|
-
//#endregion
|
|
56
37
|
//#region src/entities/utm-tracking-link/fields.ts
|
|
57
38
|
const QuerySortUtmTrackingLinks = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(UTM_TRACKING_LINK_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(UTM_TRACKING_LINK_SORT_KEYS.length)));
|
|
58
39
|
//#endregion
|
|
@@ -184,6 +165,13 @@ const QueryStrapiSearchUtmTrackingLinks = valibot.object({
|
|
|
184
165
|
sort: QuerySortUtmTrackingLinks
|
|
185
166
|
});
|
|
186
167
|
//#endregion
|
|
168
|
+
//#region src/entities/utm-tracking-link/relations.ts
|
|
169
|
+
const UtmTrackingLinkDocumentWithRelations = valibot.object({
|
|
170
|
+
...require_document$1.UtmTrackingLinkDocument.entries,
|
|
171
|
+
creator: valibot.optional(valibot.nullable(valibot.lazy(() => require_document$2.UserDocument))),
|
|
172
|
+
client: valibot.optional(valibot.nullable(valibot.lazy(() => require_document.ClientDocument)))
|
|
173
|
+
});
|
|
174
|
+
//#endregion
|
|
187
175
|
exports.CreateUtmTrackingLinkDocument = CreateUtmTrackingLinkDocument;
|
|
188
176
|
exports.CreateUtmTrackingLinkDocumentRequest = CreateUtmTrackingLinkDocumentRequest;
|
|
189
177
|
exports.CreateUtmTrackingLinkParts = CreateUtmTrackingLinkParts;
|
|
@@ -196,4 +184,5 @@ exports.SReadUtmTrackingLinkDocumentByUrl = SReadUtmTrackingLinkDocumentByUrl;
|
|
|
196
184
|
exports.UTM_TRACKING_LINK_SORT_KEYS = UTM_TRACKING_LINK_SORT_KEYS;
|
|
197
185
|
exports.UpdateUtmTrackingLinkDocument = UpdateUtmTrackingLinkDocument;
|
|
198
186
|
exports.UpdateUtmTrackingLinkDocumentRequest = UpdateUtmTrackingLinkDocumentRequest;
|
|
199
|
-
exports.UtmTrackingLinkDocument = UtmTrackingLinkDocument;
|
|
187
|
+
exports.UtmTrackingLinkDocument = require_document$1.UtmTrackingLinkDocument;
|
|
188
|
+
exports.UtmTrackingLinkDocumentWithRelations = UtmTrackingLinkDocumentWithRelations;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as UtmTrackingLinkDocumentWithRelations } from "../../relations-CG_9IVCD.cjs";
|
|
1
2
|
import * as v from "valibot";
|
|
2
3
|
|
|
3
4
|
//#region src/entities/utm-tracking-link/constants.d.ts
|
|
@@ -32,7 +33,7 @@ declare const UtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
32
33
|
type UtmTrackingLinkDocument = v.InferOutput<typeof UtmTrackingLinkDocument>;
|
|
33
34
|
//#endregion
|
|
34
35
|
//#region src/entities/utm-tracking-link/fields.d.ts
|
|
35
|
-
declare const QuerySortUtmTrackingLinks: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
36
|
+
declare const QuerySortUtmTrackingLinks: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], 20, undefined>]>, undefined>;
|
|
36
37
|
type QuerySortUtmTrackingLinks = v.InferOutput<typeof QuerySortUtmTrackingLinks>;
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region src/entities/utm-tracking-link/mutation.d.ts
|
|
@@ -228,8 +229,8 @@ declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
|
|
|
228
229
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
229
230
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
230
231
|
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
231
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
232
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], 20, undefined>]>, undefined>;
|
|
232
233
|
}, undefined>;
|
|
233
234
|
type QueryStrapiSearchUtmTrackingLinks = v.InferOutput<typeof QueryStrapiSearchUtmTrackingLinks>;
|
|
234
235
|
//#endregion
|
|
235
|
-
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE, LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE, QuerySortUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UTM_TRACKING_LINK_SORT_KEYS, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest, UtmTrackingLinkDocument };
|
|
236
|
+
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE, LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE, QuerySortUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UTM_TRACKING_LINK_SORT_KEYS, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest, UtmTrackingLinkDocument, UtmTrackingLinkDocumentWithRelations };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { t as UtmTrackingLinkDocumentWithRelations } from "../../relations-DxgFak1L.mjs";
|
|
1
2
|
import * as v from "valibot";
|
|
2
3
|
|
|
3
4
|
//#region src/entities/utm-tracking-link/constants.d.ts
|
|
@@ -32,7 +33,7 @@ declare const UtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
32
33
|
type UtmTrackingLinkDocument = v.InferOutput<typeof UtmTrackingLinkDocument>;
|
|
33
34
|
//#endregion
|
|
34
35
|
//#region src/entities/utm-tracking-link/fields.d.ts
|
|
35
|
-
declare const QuerySortUtmTrackingLinks: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
36
|
+
declare const QuerySortUtmTrackingLinks: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], 20, undefined>]>, undefined>;
|
|
36
37
|
type QuerySortUtmTrackingLinks = v.InferOutput<typeof QuerySortUtmTrackingLinks>;
|
|
37
38
|
//#endregion
|
|
38
39
|
//#region src/entities/utm-tracking-link/mutation.d.ts
|
|
@@ -228,8 +229,8 @@ declare const QueryStrapiSearchUtmTrackingLinks: v.ObjectSchema<{
|
|
|
228
229
|
readonly url: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>, undefined>;
|
|
229
230
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
230
231
|
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
231
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
232
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:ASC" | "is_active:DESC" | "url:ASC" | "url:DESC" | "client:ASC" | "utm_content:ASC" | "utm_creative_format:ASC" | "utm_id:ASC" | "campaign_product:ASC" | "campaign_targeting:ASC" | "campaign_key:ASC" | "creative_format:ASC" | "creative_format_variants:ASC" | "url_destination:ASC" | "utm_medium:ASC" | "utm_source:ASC" | "utm_campaign:ASC" | "campaign_phase:ASC" | "creator:ASC" | "client:DESC" | "utm_content:DESC" | "utm_creative_format:DESC" | "utm_id:DESC" | "campaign_product:DESC" | "campaign_targeting:DESC" | "campaign_key:DESC" | "creative_format:DESC" | "creative_format_variants:DESC" | "url_destination:DESC" | "utm_medium:DESC" | "utm_source:DESC" | "utm_campaign:DESC" | "campaign_phase:DESC" | "creator:DESC")[], 20, undefined>]>, undefined>;
|
|
232
233
|
}, undefined>;
|
|
233
234
|
type QueryStrapiSearchUtmTrackingLinks = v.InferOutput<typeof QueryStrapiSearchUtmTrackingLinks>;
|
|
234
235
|
//#endregion
|
|
235
|
-
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE, LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE, QuerySortUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UTM_TRACKING_LINK_SORT_KEYS, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest, UtmTrackingLinkDocument };
|
|
236
|
+
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE, LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE, QuerySortUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UTM_TRACKING_LINK_SORT_KEYS, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest, UtmTrackingLinkDocument, UtmTrackingLinkDocumentWithRelations };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
1
|
import { J as ERROR_MESSAGE_UTM_URL, K as ERROR_MESSAGE_URL_NO_QUERY_PARAMS, U as ERROR_MESSAGE_INVALID_URL, _ as LIMIT_MAX_UTM_ID, c as LIMIT_LONG_STRING_MAX_LENGTH, g as LIMIT_MAX_UTM_CREATIVE_FORMAT, h as LIMIT_MAX_UTM_CONTENT, m as LIMIT_MAX_UTM_CAMPAIGN, r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE, v as LIMIT_MAX_UTM_MEDIUM, y as LIMIT_MAX_UTM_SOURCE } from "../../regex-BnKGcdS4.mjs";
|
|
3
2
|
import { c as VStringLongNullable, d as VStringMinMax, f as VStringMinMaxRegex, g as VStringShortNullable, h as VStringShort, i as VSize, l as VStringMax, r as VPage, x as VStringUrlUtm, y as VStringUrlNoUtm } from "../../validators-P5E_3qzc.mjs";
|
|
4
3
|
import { a as SAssociateOneEntity, s as SQueryManyEntities } from "../../relations-C04F46xL.mjs";
|
|
4
|
+
import { t as ClientDocument } from "../../document-CW3ycXvJ.mjs";
|
|
5
|
+
import { t as UtmTrackingLinkDocument } from "../../document-DeOzRkxJ.mjs";
|
|
6
|
+
import { t as UserDocument } from "../../document-BRxLaO7o.mjs";
|
|
5
7
|
import * as v from "valibot";
|
|
6
8
|
//#region src/entities/utm-tracking-link/constants.ts
|
|
7
9
|
const LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE = 10;
|
|
@@ -29,27 +31,6 @@ const UTM_TRACKING_LINK_SORT_KEYS = [
|
|
|
29
31
|
"updatedAt"
|
|
30
32
|
];
|
|
31
33
|
//#endregion
|
|
32
|
-
//#region src/entities/utm-tracking-link/document.ts
|
|
33
|
-
const UtmTrackingLinkDocument = v.object({
|
|
34
|
-
...BaseDocument.entries,
|
|
35
|
-
url_destination: v.string(),
|
|
36
|
-
utm_medium: v.string(),
|
|
37
|
-
utm_source: v.string(),
|
|
38
|
-
utm_campaign: v.string(),
|
|
39
|
-
utm_content: v.nullable(v.string()),
|
|
40
|
-
utm_creative_format: v.nullable(v.string()),
|
|
41
|
-
utm_id: v.nullable(v.string()),
|
|
42
|
-
campaign_phase: v.string(),
|
|
43
|
-
campaign_product: v.nullable(v.string()),
|
|
44
|
-
campaign_targeting: v.nullable(v.string()),
|
|
45
|
-
campaign_key: v.nullable(v.string()),
|
|
46
|
-
creative_format: v.nullable(v.string()),
|
|
47
|
-
creative_format_variants: v.nullable(v.string()),
|
|
48
|
-
url: v.string(),
|
|
49
|
-
is_active: v.boolean(),
|
|
50
|
-
notes: v.nullable(v.string())
|
|
51
|
-
});
|
|
52
|
-
//#endregion
|
|
53
34
|
//#region src/entities/utm-tracking-link/fields.ts
|
|
54
35
|
const QuerySortUtmTrackingLinks = v.optional(v.pipe(v.array(v.picklist(UTM_TRACKING_LINK_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(UTM_TRACKING_LINK_SORT_KEYS.length)));
|
|
55
36
|
//#endregion
|
|
@@ -181,4 +162,11 @@ const QueryStrapiSearchUtmTrackingLinks = v.object({
|
|
|
181
162
|
sort: QuerySortUtmTrackingLinks
|
|
182
163
|
});
|
|
183
164
|
//#endregion
|
|
184
|
-
|
|
165
|
+
//#region src/entities/utm-tracking-link/relations.ts
|
|
166
|
+
const UtmTrackingLinkDocumentWithRelations = v.object({
|
|
167
|
+
...UtmTrackingLinkDocument.entries,
|
|
168
|
+
creator: v.optional(v.nullable(v.lazy(() => UserDocument))),
|
|
169
|
+
client: v.optional(v.nullable(v.lazy(() => ClientDocument)))
|
|
170
|
+
});
|
|
171
|
+
//#endregion
|
|
172
|
+
export { CreateUtmTrackingLinkDocument, CreateUtmTrackingLinkDocumentRequest, CreateUtmTrackingLinkParts, LIMIT_UTM_TRACKING_LINK_PAGINATION_DEFAULT_SIZE, LIMIT_UTM_TRACKING_LINK_PAGINATION_MAX_SIZE, QuerySortUtmTrackingLinks, QueryStrapiSearchUtmTrackingLinks, SFormCreateMultipleUtmTrackingLinkDocuments, SReadUtmTrackingLinkDocumentByUrl, UTM_TRACKING_LINK_SORT_KEYS, UpdateUtmTrackingLinkDocument, UpdateUtmTrackingLinkDocumentRequest, UtmTrackingLinkDocument, UtmTrackingLinkDocumentWithRelations };
|
|
@@ -20,7 +20,7 @@ declare const CommentApprovalStatus: v.PicklistSchema<("PENDING" | "APPROVED" |
|
|
|
20
20
|
type CommentApprovalStatus = v.InferOutput<typeof CommentApprovalStatus>;
|
|
21
21
|
declare const ReportCommentReason: v.PicklistSchema<("BAD_LANGUAGE" | "DISCRIMINATION" | "OTHER")[], undefined>;
|
|
22
22
|
type ReportCommentReason = v.InferOutput<typeof ReportCommentReason>;
|
|
23
|
-
declare const QuerySortStrapiComments: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "
|
|
23
|
+
declare const QuerySortStrapiComments: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "content:ASC" | "approvalStatus:ASC" | "blockedThread:ASC" | "blocked:DESC" | "content:DESC" | "approvalStatus:DESC" | "blockedThread:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "content:ASC" | "approvalStatus:ASC" | "blockedThread:ASC" | "blocked:DESC" | "content:DESC" | "approvalStatus:DESC" | "blockedThread:DESC")[], 7, undefined>]>, undefined>;
|
|
24
24
|
type QuerySortStrapiComments = v.InferOutput<typeof QuerySortStrapiComments>;
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/entities/comment/document.d.ts
|
|
@@ -137,7 +137,7 @@ declare const QueryFilterStrapiComments: v.ObjectSchema<{
|
|
|
137
137
|
type QueryFilterStrapiComments = v.InferOutput<typeof QueryFilterStrapiComments>;
|
|
138
138
|
declare const QueryStrapiCommentsInHeirarchy: v.ObjectSchema<{
|
|
139
139
|
readonly relation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
140
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "
|
|
140
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "content:ASC" | "approvalStatus:ASC" | "blockedThread:ASC" | "blocked:DESC" | "content:DESC" | "approvalStatus:DESC" | "blockedThread:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "content:ASC" | "approvalStatus:ASC" | "blockedThread:ASC" | "blocked:DESC" | "content:DESC" | "approvalStatus:DESC" | "blockedThread:DESC")[], 7, undefined>]>, undefined>;
|
|
141
141
|
readonly filters: v.OptionalSchema<v.ObjectSchema<{
|
|
142
142
|
readonly approvalStatus: v.OptionalSchema<v.ObjectSchema<{
|
|
143
143
|
readonly eq: v.PicklistSchema<("PENDING" | "APPROVED" | "REJECTED")[], undefined>;
|
|
@@ -193,7 +193,7 @@ declare const QueryStrapiCommentsFlat: v.ObjectSchema<{
|
|
|
193
193
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
194
194
|
readonly pageSize: v.OptionalSchema<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>, undefined>;
|
|
195
195
|
}, undefined>, undefined>;
|
|
196
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "
|
|
196
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "content:ASC" | "approvalStatus:ASC" | "blockedThread:ASC" | "blocked:DESC" | "content:DESC" | "approvalStatus:DESC" | "blockedThread:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "blocked:ASC" | "content:ASC" | "approvalStatus:ASC" | "blockedThread:ASC" | "blocked:DESC" | "content:DESC" | "approvalStatus:DESC" | "blockedThread:DESC")[], 7, undefined>]>, undefined>;
|
|
197
197
|
}, undefined>;
|
|
198
198
|
type QueryStrapiCommentsFlat = v.InferOutput<typeof QueryStrapiCommentsFlat>;
|
|
199
199
|
//#endregion
|