@getcommunity/gc-validators 0.0.271-alpha.5 → 0.0.271-alpha.7
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.cjs +19 -19
- package/dist/base/index.d.cts +3 -3
- package/dist/base/index.d.mts +4 -4
- package/dist/base/index.mjs +2 -2
- package/dist/components/blocks/index.cjs +16 -14
- package/dist/components/blocks/index.d.cts +2 -1322
- package/dist/components/blocks/index.d.mts +2 -1322
- package/dist/components/blocks/index.mjs +16 -14
- package/dist/components/brand/index.d.cts +1 -314
- package/dist/components/brand/index.d.mts +1 -314
- package/dist/components/forms/index.cjs +10 -8
- package/dist/components/forms/index.d.cts +6 -3
- package/dist/components/forms/index.d.mts +6 -3
- package/dist/components/forms/index.mjs +10 -8
- package/dist/components/shared/index.cjs +3 -1
- package/dist/components/shared/index.d.cts +1 -916
- package/dist/components/shared/index.d.mts +1 -916
- package/dist/components/shared/index.mjs +3 -1
- package/dist/components/slideshow/index.cjs +15 -13
- package/dist/components/slideshow/index.d.cts +7 -5
- package/dist/components/slideshow/index.d.mts +7 -5
- package/dist/components/slideshow/index.mjs +15 -13
- package/dist/components/utm/index.cjs +4 -2
- package/dist/components/utm/index.d.cts +1 -31
- package/dist/components/utm/index.d.mts +1 -31
- package/dist/components/utm/index.mjs +4 -2
- package/dist/document-BFPtEW5P.d.cts +17 -0
- package/dist/{document-Bpr9mbCs.d.mts → document-CH1Od98-.d.mts} +6 -6
- package/dist/document-Ccvtwgy_.cjs +26 -0
- package/dist/{document-Gx2Vrg_w.d.mts → document-CnKWB70Z.d.cts} +158 -104
- package/dist/{document-hEBlSep8.d.cts → document-CpsxYzbB.d.cts} +6 -6
- package/dist/document-CrnqUGRk.cjs +243 -0
- package/dist/document-Cx4Klv8A.mjs +128 -0
- package/dist/document-D060zybc.mjs +19 -0
- package/dist/document-DUHPXtbm.mjs +409 -0
- package/dist/document-DaICHS9G.cjs +17 -0
- package/dist/document-DamlTVm7.cjs +19 -0
- package/dist/document-DnA3Nwgh.mjs +12 -0
- package/dist/{document-BMxLOdrT.d.cts → document-Dr5-pbqu.d.mts} +158 -104
- package/dist/document-GovGVYRl.d.mts +17 -0
- package/dist/document-c3GNPelp.mjs +10 -0
- package/dist/document-zu6-DmQT.cjs +632 -0
- package/dist/entities/audit-log/index.cjs +2 -2
- package/dist/entities/audit-log/index.d.cts +2 -2
- package/dist/entities/audit-log/index.d.mts +3 -3
- package/dist/entities/audit-log/index.mjs +1 -1
- package/dist/entities/blog-page/index.d.mts +1 -1
- package/dist/entities/blog-post/index.cjs +11 -65
- package/dist/entities/blog-post/index.d.cts +1 -1620
- package/dist/entities/blog-post/index.d.mts +1 -1620
- package/dist/entities/blog-post/index.mjs +1 -55
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.cjs +4 -11
- package/dist/entities/category/index.d.cts +3 -14
- package/dist/entities/category/index.d.mts +3 -14
- package/dist/entities/category/index.mjs +2 -9
- package/dist/entities/client/index.cjs +3 -3
- package/dist/entities/client/index.d.cts +1 -84
- package/dist/entities/client/index.d.mts +1 -84
- package/dist/entities/client/index.mjs +2 -2
- package/dist/entities/client-content-pillar/index.cjs +10 -20
- package/dist/entities/client-content-pillar/index.d.cts +1 -48
- package/dist/entities/client-content-pillar/index.d.mts +1 -48
- package/dist/entities/client-content-pillar/index.mjs +2 -12
- package/dist/entities/client-media-platform/index.cjs +10 -17
- package/dist/entities/client-media-platform/index.d.cts +1 -52
- package/dist/entities/client-media-platform/index.d.mts +1 -52
- package/dist/entities/client-media-platform/index.mjs +2 -9
- package/dist/entities/client-project/index.cjs +22 -129
- package/dist/entities/client-project/index.d.cts +1 -146
- package/dist/entities/client-project/index.d.mts +1 -146
- package/dist/entities/client-project/index.mjs +2 -109
- package/dist/entities/client-report/index.cjs +7 -18
- package/dist/entities/client-report/index.d.cts +1 -62
- package/dist/entities/client-report/index.d.mts +1 -62
- package/dist/entities/client-report/index.mjs +2 -13
- package/dist/entities/client-styleguide/index.cjs +7 -27
- package/dist/entities/client-styleguide/index.d.cts +1 -47
- package/dist/entities/client-styleguide/index.d.mts +1 -47
- package/dist/entities/client-styleguide/index.mjs +2 -22
- package/dist/entities/client-user/index.cjs +17 -53
- package/dist/entities/client-user/index.d.cts +1 -46
- package/dist/entities/client-user/index.d.mts +1 -46
- package/dist/entities/client-user/index.mjs +2 -38
- package/dist/entities/comment/index.d.cts +1 -1
- package/dist/entities/content-pillar/index.cjs +5 -5
- package/dist/entities/content-pillar/index.d.cts +1 -49
- package/dist/entities/content-pillar/index.d.mts +1 -49
- package/dist/entities/content-pillar/index.mjs +2 -2
- package/dist/entities/faq-page/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.cjs +9 -19
- package/dist/entities/gcflytour/index.d.cts +1 -60
- package/dist/entities/gcflytour/index.d.mts +1 -60
- package/dist/entities/gcflytour/index.mjs +2 -12
- package/dist/entities/gcflytour-snap/index.cjs +7 -17
- package/dist/entities/gcflytour-snap/index.d.cts +1 -58
- package/dist/entities/gcflytour-snap/index.d.mts +1 -58
- package/dist/entities/gcflytour-snap/index.mjs +2 -12
- package/dist/entities/landing-page/index.d.mts +1 -1
- package/dist/entities/lead/index.cjs +2 -2
- package/dist/entities/lead/index.mjs +1 -1
- package/dist/entities/media-content-type/index.cjs +10 -23
- package/dist/entities/media-content-type/index.d.cts +3 -3
- package/dist/entities/media-content-type/index.d.mts +3 -3
- package/dist/entities/media-content-type/index.mjs +2 -15
- package/dist/entities/media-creative-format/index.cjs +7 -16
- package/dist/entities/media-creative-format/index.d.cts +3 -3
- package/dist/entities/media-creative-format/index.d.mts +3 -3
- package/dist/entities/media-creative-format/index.mjs +2 -11
- package/dist/entities/media-medium/index.cjs +7 -18
- package/dist/entities/media-medium/index.d.cts +3 -18
- package/dist/entities/media-medium/index.d.mts +3 -18
- package/dist/entities/media-medium/index.mjs +2 -13
- package/dist/entities/media-platform/index.cjs +13 -29
- package/dist/entities/media-platform/index.d.cts +1 -73
- package/dist/entities/media-platform/index.d.mts +1 -73
- package/dist/entities/media-platform/index.mjs +2 -18
- package/dist/entities/monday-workspace/index.cjs +7 -14
- package/dist/entities/monday-workspace/index.d.cts +1 -46
- package/dist/entities/monday-workspace/index.d.mts +1 -46
- package/dist/entities/monday-workspace/index.mjs +2 -9
- package/dist/entities/newsletter-signup/index.cjs +2 -2
- package/dist/entities/newsletter-signup/index.mjs +1 -1
- package/dist/entities/policy-page/index.d.mts +1 -1
- package/dist/entities/product/index.cjs +2 -21
- package/dist/entities/product/index.d.cts +1 -319
- package/dist/entities/product/index.d.mts +1 -319
- package/dist/entities/product/index.mjs +1 -18
- package/dist/entities/product-highlight/index.cjs +2 -21
- package/dist/entities/product-highlight/index.d.cts +1 -244
- package/dist/entities/product-highlight/index.d.mts +1 -244
- package/dist/entities/product-highlight/index.mjs +1 -18
- package/dist/entities/resume/index.cjs +2 -2
- package/dist/entities/resume/index.mjs +1 -1
- package/dist/entities/tag/index.cjs +4 -11
- package/dist/entities/tag/index.d.cts +3 -14
- package/dist/entities/tag/index.d.mts +3 -14
- package/dist/entities/tag/index.mjs +2 -9
- package/dist/entities/team-member/index.cjs +1 -1
- package/dist/entities/team-member/index.d.cts +1 -209
- package/dist/entities/team-member/index.d.mts +1 -209
- package/dist/entities/team-member/index.mjs +1 -1
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/trend/index.cjs +4 -18
- package/dist/entities/trend/index.d.cts +1 -333
- package/dist/entities/trend/index.d.mts +1 -333
- package/dist/entities/trend/index.mjs +2 -16
- 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 +2 -11
- package/dist/entities/up-permission/index.d.cts +1 -13
- package/dist/entities/up-permission/index.d.mts +1 -13
- package/dist/entities/up-permission/index.mjs +1 -8
- package/dist/entities/up-role/index.cjs +4 -27
- package/dist/entities/up-role/index.d.cts +1 -2
- package/dist/entities/up-role/index.d.mts +1 -2
- package/dist/entities/up-role/index.mjs +1 -22
- package/dist/entities/up-user/index.cjs +2 -13
- package/dist/entities/up-user/index.d.cts +1 -37
- package/dist/entities/up-user/index.d.mts +1 -37
- package/dist/entities/up-user/index.mjs +1 -12
- 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 +10 -18
- package/dist/entities/user-account/index.d.cts +2 -2
- package/dist/entities/user-account/index.d.mts +2 -2
- package/dist/entities/user-account/index.mjs +3 -11
- package/dist/entities/utm-link-builder/index.cjs +5 -5
- package/dist/entities/utm-link-builder/index.mjs +1 -1
- package/dist/entities/utm-tracking-link/index.cjs +7 -28
- package/dist/entities/utm-tracking-link/index.d.cts +1 -234
- package/dist/entities/utm-tracking-link/index.d.mts +1 -234
- package/dist/entities/utm-tracking-link/index.mjs +2 -23
- package/dist/index-22laZYwt.d.mts +34 -0
- package/dist/{index-Bht1Jd5l.d.mts → index-B-CQQO_E.d.mts} +59 -140
- package/dist/index-BCvKbd4C.d.cts +940 -0
- package/dist/index-BQ_nheAt.d.mts +1324 -0
- package/dist/index-Cb8BnFcL.d.cts +4731 -0
- package/dist/index-Cpbdnd9q.d.cts +317 -0
- package/dist/index-D0PCjo7e.d.mts +940 -0
- package/dist/index-DB45mxlG.d.mts +921 -0
- package/dist/index-Df7ixqwa.d.cts +1324 -0
- package/dist/index-GUYqdxFh.d.mts +4731 -0
- package/dist/index-NBz_zMvQ.d.cts +34 -0
- package/dist/index-Z_fJ28vW.d.mts +317 -0
- package/dist/index-_eItTyFr.d.cts +921 -0
- package/dist/{index-ZBDWYTfn.d.cts → index-j2pTtcNX.d.cts} +58 -139
- package/dist/media-upload-BEfESsVb.d.mts +140 -0
- package/dist/media-upload-D-nP8FR1.d.cts +140 -0
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/{query.schema-DHTf6rTw.cjs → query-7g1AOXN9.cjs} +3 -3
- package/dist/{query.schema-YKoOuBnk.mjs → query-CeUev0uJ.mjs} +2 -2
- package/dist/{query.schema-BOn5Kk_p.d.mts → query-Cyv28Ggi.d.cts} +1 -1
- package/dist/{query.schema-CItKlb0x.d.cts → query-HXwJctNd.d.mts} +1 -1
- package/dist/{relations-C04F46xL.mjs → relationships-BosK0kyG.mjs} +1 -1
- package/dist/{relations-CGu18hfT.cjs → relationships-CWVJebkQ.cjs} +1 -1
- package/dist/utilities/index.d.cts +2 -4
- package/dist/utilities/index.d.mts +2 -4
- package/package.json +1 -1
- package/dist/document-AkydjorI.d.cts +0 -12219
- package/dist/document-BAzLIprH.d.mts +0 -100
- package/dist/document-BK1ASowb.d.cts +0 -17
- package/dist/document-BNoXPGwF.d.mts +0 -27
- package/dist/document-B_pJW777.d.mts +0 -30
- package/dist/document-Bd2AyLs8.d.mts +0 -16
- package/dist/document-BezYxNmb.d.cts +0 -16
- package/dist/document-Bj7SRTOn.d.cts +0 -18
- package/dist/document-Bo869pZx.d.mts +0 -18
- package/dist/document-Bs8c1mok.d.cts +0 -15
- package/dist/document-C0c7azOe.d.mts +0 -434
- package/dist/document-CTTDXzOF.mjs +0 -13
- package/dist/document-CUl_Ys6-.mjs +0 -23
- package/dist/document-CWYzG60q.d.cts +0 -19
- package/dist/document-Ccszj8lR.cjs +0 -20
- package/dist/document-CjNHI7Eb.d.cts +0 -27
- package/dist/document-Cu_HUDC5.mjs +0 -51
- package/dist/document-D-KvyEb5.d.cts +0 -238
- package/dist/document-D2nLVGig.d.mts +0 -238
- package/dist/document-D5yDIDIx.d.mts +0 -15
- package/dist/document-D73dqRle.d.cts +0 -19
- package/dist/document-DA6YVZz-.d.cts +0 -100
- package/dist/document-DJ0YiVte.d.cts +0 -30
- package/dist/document-DMHIUE3J.d.mts +0 -17
- package/dist/document-DN3g0EFx.d.cts +0 -434
- package/dist/document-DYzRVV1C.d.mts +0 -16
- package/dist/document-D_ZMbzn6.d.cts +0 -18
- package/dist/document-DeoRGh7p.d.mts +0 -19
- package/dist/document-DsIPBTG8.cjs +0 -30
- package/dist/document-DsSaMVGb.cjs +0 -106
- package/dist/document-DsT_qkhs.d.mts +0 -12219
- package/dist/document-IIJpsOIO.d.cts +0 -16
- package/dist/document-WHS8GHY5.d.mts +0 -18
- package/dist/document-dqrWptdY.d.cts +0 -244
- package/dist/document-si7GYS5g.d.mts +0 -19
- package/dist/document-vq-7rcU5.d.mts +0 -244
- package/dist/fields-BQHSYj70.d.cts +0 -7
- package/dist/fields-qx-5saY5.d.mts +0 -7
- package/dist/index-BI8tN-QZ.d.mts +0 -99
- package/dist/index-DpYYzY_9.d.cts +0 -99
- package/dist/response-C-7nyNVD.d.mts +0 -57
- package/dist/response-c6SgLvi9.d.cts +0 -57
- /package/dist/{index-D4Mm4D2d.d.cts → index-COCNx5sv.d.cts} +0 -0
- /package/dist/{json-CqAaKeHA.d.mts → json-p1Yf7cEr.d.mts} +0 -0
|
@@ -1,63 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client-report/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE = 10;
|
|
6
|
-
declare const LIMIT_CLIENT_REPORT_PAGINATION_MAX_SIZE = 100;
|
|
7
|
-
declare const CLIENT_REPORT_SORT_KEYS: readonly ["id", "title", "is_active", "is_external", "is_hidden", "createdAt", "updatedAt"];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/entities/client-report/fields.d.ts
|
|
10
|
-
declare const QuerySortClientReports: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:DESC" | "title:ASC" | "title:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_external:ASC" | "is_external:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:DESC" | "title:ASC" | "title:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_external:ASC" | "is_external:DESC")[], 7, undefined>]>, undefined>;
|
|
11
|
-
type QuerySortClientReports = v.InferOutput<typeof QuerySortClientReports>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/entities/client-report/mutation.d.ts
|
|
14
|
-
declare const CreateClientReportDocument: v.ObjectSchema<{
|
|
15
|
-
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
16
|
-
readonly report_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
17
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
18
|
-
readonly is_external: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
19
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, false>;
|
|
20
|
-
readonly scopes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<"Please provide a valid list of scopes.">, undefined>]>, readonly ["user:*"]>;
|
|
21
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
22
|
-
}, undefined>;
|
|
23
|
-
type CreateClientReportDocument = v.InferOutput<typeof CreateClientReportDocument>;
|
|
24
|
-
declare const UpdateClientReportDocument: v.ObjectSchema<{
|
|
25
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
-
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
27
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
28
|
-
readonly is_external: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
29
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
30
|
-
readonly scopes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<"Please provide a valid list of scopes.">, undefined>]>, readonly ["user:*"]>;
|
|
31
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
type UpdateClientReportDocument = v.InferOutput<typeof UpdateClientReportDocument>;
|
|
34
|
-
declare const UpdateClientReportDocumentRequest: v.ObjectSchema<{
|
|
35
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
36
|
-
readonly data: v.ObjectSchema<{
|
|
37
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
38
|
-
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>, undefined>;
|
|
39
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
40
|
-
readonly is_external: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
41
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
-
readonly scopes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<"Please provide a valid list of scopes.">, undefined>]>, readonly ["user:*"]>;
|
|
43
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.MaxLengthAction<string[], 100, undefined>]>, undefined>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
}, undefined>;
|
|
46
|
-
type UpdateClientReportDocumentRequest = v.InferOutput<typeof UpdateClientReportDocumentRequest>;
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/entities/client-report/query.d.ts
|
|
49
|
-
declare const QueryStrapiSearchClientReports: v.ObjectSchema<{
|
|
50
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
51
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
52
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
-
readonly report_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
55
|
-
readonly is_external: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
56
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
57
|
-
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
58
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
59
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:DESC" | "title:ASC" | "title:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_external:ASC" | "is_external:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:DESC" | "title:ASC" | "title:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_external:ASC" | "is_external:DESC")[], 7, undefined>]>, undefined>;
|
|
60
|
-
}, undefined>;
|
|
61
|
-
type QueryStrapiSearchClientReports = v.InferOutput<typeof QueryStrapiSearchClientReports>;
|
|
62
|
-
//#endregion
|
|
1
|
+
import { Bt as CreateClientReportDocument, Gt as LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE, Ht as UpdateClientReportDocumentRequest, Kt as LIMIT_CLIENT_REPORT_PAGINATION_MAX_SIZE, Ut as QuerySortClientReports, Vt as UpdateClientReportDocument, Wt as CLIENT_REPORT_SORT_KEYS, Zn as ClientReportDocument, zt as QueryStrapiSearchClientReports } from "../../index-GUYqdxFh.mjs";
|
|
63
2
|
export { CLIENT_REPORT_SORT_KEYS, ClientReportDocument, CreateClientReportDocument, LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_REPORT_PAGINATION_MAX_SIZE, QuerySortClientReports, QueryStrapiSearchClientReports, UpdateClientReportDocument, UpdateClientReportDocumentRequest };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
1
|
import { n as ERROR_MESSAGE_REGEX_URL_SLUG, o as REGEX_URL_SLUG } from "../../regex-BnKGcdS4.mjs";
|
|
3
2
|
import { d as VStringMinMax, f as VStringMinMaxRegex, i as VSize, l as VStringMax, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
-
import { a as SAssociateOneEntity, i as SAssociateManyEntities, s as SQueryManyEntities } from "../../
|
|
3
|
+
import { a as SAssociateOneEntity, i as SAssociateManyEntities, s as SQueryManyEntities } from "../../relationships-BosK0kyG.mjs";
|
|
4
|
+
import { S as ClientReportDocument } from "../../document-DUHPXtbm.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/client-report/constants.ts
|
|
7
7
|
const LIMIT_CLIENT_REPORT_PAGINATION_DEFAULT_SIZE = 10;
|
|
@@ -16,17 +16,6 @@ const CLIENT_REPORT_SORT_KEYS = [
|
|
|
16
16
|
"updatedAt"
|
|
17
17
|
];
|
|
18
18
|
//#endregion
|
|
19
|
-
//#region src/entities/client-report/document.ts
|
|
20
|
-
const ClientReportDocument = v.object({
|
|
21
|
-
...BaseDocument.entries,
|
|
22
|
-
title: v.string(),
|
|
23
|
-
report_id: v.string(),
|
|
24
|
-
is_active: v.boolean(),
|
|
25
|
-
is_external: v.boolean(),
|
|
26
|
-
is_hidden: v.boolean(),
|
|
27
|
-
scopes: v.array(v.string())
|
|
28
|
-
});
|
|
29
|
-
//#endregion
|
|
30
19
|
//#region src/entities/client-report/fields.ts
|
|
31
20
|
const QuerySortClientReports = v.optional(v.pipe(v.array(v.picklist(CLIENT_REPORT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CLIENT_REPORT_SORT_KEYS.length)));
|
|
32
21
|
//#endregion
|
|
@@ -1,12 +1,9 @@
|
|
|
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
|
-
const require_media_upload = require("../../media-upload-B6aQYeRM.cjs");
|
|
5
3
|
require("../../regex-Cl5goNwp.cjs");
|
|
6
4
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const require_components_brand_index = require("../../components/brand/index.cjs");
|
|
5
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
6
|
+
const require_document = require("../../document-zu6-DmQT.cjs");
|
|
10
7
|
let valibot = require("valibot");
|
|
11
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
12
9
|
//#region src/entities/client-styleguide/constants.ts
|
|
@@ -19,23 +16,6 @@ const CLIENT_STYLEGUIDE_SORT_KEYS = [
|
|
|
19
16
|
"updatedAt"
|
|
20
17
|
];
|
|
21
18
|
//#endregion
|
|
22
|
-
//#region src/entities/client-styleguide/document.ts
|
|
23
|
-
const ClientStyleguideDocument = valibot.object({
|
|
24
|
-
...require_document.BaseDocument.entries,
|
|
25
|
-
title: valibot.string(),
|
|
26
|
-
is_active: valibot.boolean(),
|
|
27
|
-
introduction: valibot.array(require_components_shared_index.RichTextBlock),
|
|
28
|
-
voice: valibot.array(require_components_shared_index.RichTextBlock),
|
|
29
|
-
communication: valibot.array(require_components_shared_index.RichTextBlock),
|
|
30
|
-
brand_elements: valibot.array(require_components_shared_index.RichTextBlock),
|
|
31
|
-
brand_intention: valibot.array(require_components_shared_index.RichTextBlock),
|
|
32
|
-
mood: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
|
|
33
|
-
logos: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
|
|
34
|
-
brand_colors: valibot.optional(valibot.array(require_components_brand_index.ComponentBrandStyleguideColor)),
|
|
35
|
-
brand_fonts: valibot.optional(valibot.array(require_components_brand_index.ComponentBrandStyleguideFont)),
|
|
36
|
-
brand_application: valibot.optional(valibot.array(valibot.lazy(() => require_media_upload.MediaUploadDocument)))
|
|
37
|
-
});
|
|
38
|
-
//#endregion
|
|
39
19
|
//#region src/entities/client-styleguide/fields.ts
|
|
40
20
|
const QuerySortClientStyleguides = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_STYLEGUIDE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_STYLEGUIDE_SORT_KEYS.length)));
|
|
41
21
|
//#endregion
|
|
@@ -43,15 +23,15 @@ const QuerySortClientStyleguides = valibot.optional(valibot.pipe(valibot.array(v
|
|
|
43
23
|
const CreateClientStyleguideDocument = valibot.object({
|
|
44
24
|
title: require_validators.VStringMinMax(1, 255),
|
|
45
25
|
is_active: valibot.optional(valibot.boolean(), true),
|
|
46
|
-
client: valibot.optional(
|
|
26
|
+
client: valibot.optional(require_relationships.SAssociateOneEntity)
|
|
47
27
|
});
|
|
48
28
|
const UpdateClientStyleguideDocument = valibot.object({
|
|
49
29
|
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
50
30
|
is_active: valibot.optional(valibot.boolean()),
|
|
51
|
-
client: valibot.optional(
|
|
31
|
+
client: valibot.optional(require_relationships.SAssociateOneEntity)
|
|
52
32
|
});
|
|
53
33
|
const UpdateClientStyleguideDocumentRequest = valibot.object({
|
|
54
|
-
documentId:
|
|
34
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
55
35
|
data: UpdateClientStyleguideDocument
|
|
56
36
|
});
|
|
57
37
|
//#endregion
|
|
@@ -62,12 +42,12 @@ const QueryStrapiSearchClientStyleguide = valibot.object({
|
|
|
62
42
|
title: valibot.optional(require_validators.VStringMax()),
|
|
63
43
|
is_active: valibot.optional(valibot.boolean()),
|
|
64
44
|
client_id: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
65
|
-
clients: valibot.optional(
|
|
45
|
+
clients: valibot.optional(require_relationships.SQueryManyEntities),
|
|
66
46
|
sort: QuerySortClientStyleguides
|
|
67
47
|
});
|
|
68
48
|
//#endregion
|
|
69
49
|
exports.CLIENT_STYLEGUIDE_SORT_KEYS = CLIENT_STYLEGUIDE_SORT_KEYS;
|
|
70
|
-
exports.ClientStyleguideDocument = ClientStyleguideDocument;
|
|
50
|
+
exports.ClientStyleguideDocument = require_document.ClientStyleguideDocument;
|
|
71
51
|
exports.CreateClientStyleguideDocument = CreateClientStyleguideDocument;
|
|
72
52
|
exports.LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE = LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE;
|
|
73
53
|
exports.LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE = LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE;
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client-styleguide/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE = 10;
|
|
6
|
-
declare const LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE = 100;
|
|
7
|
-
declare const CLIENT_STYLEGUIDE_SORT_KEYS: readonly ["id", "title", "createdAt", "updatedAt"];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/entities/client-styleguide/fields.d.ts
|
|
10
|
-
declare const QuerySortClientStyleguides: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], 4, undefined>]>, undefined>;
|
|
11
|
-
type QuerySortClientStyleguides = v.InferOutput<typeof QuerySortClientStyleguides>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/entities/client-styleguide/mutation.d.ts
|
|
14
|
-
declare const CreateClientStyleguideDocument: v.ObjectSchema<{
|
|
15
|
-
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
16
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
17
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
-
}, undefined>;
|
|
19
|
-
type CreateClientStyleguideDocument = v.InferOutput<typeof CreateClientStyleguideDocument>;
|
|
20
|
-
declare const UpdateClientStyleguideDocument: v.ObjectSchema<{
|
|
21
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
23
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
type UpdateClientStyleguideDocument = v.InferOutput<typeof UpdateClientStyleguideDocument>;
|
|
26
|
-
declare const UpdateClientStyleguideDocumentRequest: v.ObjectSchema<{
|
|
27
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
31
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
}, undefined>;
|
|
34
|
-
type UpdateClientStyleguideDocumentRequest = v.InferOutput<typeof UpdateClientStyleguideDocumentRequest>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/entities/client-styleguide/query.d.ts
|
|
37
|
-
declare const QueryStrapiSearchClientStyleguide: v.ObjectSchema<{
|
|
38
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
39
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
40
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
-
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
44
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], 4, undefined>]>, undefined>;
|
|
45
|
-
}, undefined>;
|
|
46
|
-
type QueryStrapiSearchClientStyleguide = v.InferOutput<typeof QueryStrapiSearchClientStyleguide>;
|
|
47
|
-
//#endregion
|
|
1
|
+
import { Xn as ClientStyleguideDocument, _t as LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE, dt as CreateClientStyleguideDocument, ft as UpdateClientStyleguideDocument, gt as LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE, ht as CLIENT_STYLEGUIDE_SORT_KEYS, mt as QuerySortClientStyleguides, pt as UpdateClientStyleguideDocumentRequest, ut as QueryStrapiSearchClientStyleguide } from "../../index-Cb8BnFcL.cjs";
|
|
48
2
|
export { CLIENT_STYLEGUIDE_SORT_KEYS, ClientStyleguideDocument, CreateClientStyleguideDocument, LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE, QuerySortClientStyleguides, QueryStrapiSearchClientStyleguide, UpdateClientStyleguideDocument, UpdateClientStyleguideDocumentRequest };
|
|
@@ -1,48 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client-styleguide/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE = 10;
|
|
6
|
-
declare const LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE = 100;
|
|
7
|
-
declare const CLIENT_STYLEGUIDE_SORT_KEYS: readonly ["id", "title", "createdAt", "updatedAt"];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/entities/client-styleguide/fields.d.ts
|
|
10
|
-
declare const QuerySortClientStyleguides: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], 4, undefined>]>, undefined>;
|
|
11
|
-
type QuerySortClientStyleguides = v.InferOutput<typeof QuerySortClientStyleguides>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/entities/client-styleguide/mutation.d.ts
|
|
14
|
-
declare const CreateClientStyleguideDocument: v.ObjectSchema<{
|
|
15
|
-
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
16
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, true>;
|
|
17
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
-
}, undefined>;
|
|
19
|
-
type CreateClientStyleguideDocument = v.InferOutput<typeof CreateClientStyleguideDocument>;
|
|
20
|
-
declare const UpdateClientStyleguideDocument: v.ObjectSchema<{
|
|
21
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
22
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
23
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
type UpdateClientStyleguideDocument = v.InferOutput<typeof UpdateClientStyleguideDocument>;
|
|
26
|
-
declare const UpdateClientStyleguideDocumentRequest: v.ObjectSchema<{
|
|
27
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
31
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
-
}, undefined>;
|
|
33
|
-
}, undefined>;
|
|
34
|
-
type UpdateClientStyleguideDocumentRequest = v.InferOutput<typeof UpdateClientStyleguideDocumentRequest>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/entities/client-styleguide/query.d.ts
|
|
37
|
-
declare const QueryStrapiSearchClientStyleguide: v.ObjectSchema<{
|
|
38
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
39
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
40
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
-
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
43
|
-
readonly clients: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>]>, undefined>;
|
|
44
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:ASC" | "title:DESC")[], 4, undefined>]>, undefined>;
|
|
45
|
-
}, undefined>;
|
|
46
|
-
type QueryStrapiSearchClientStyleguide = v.InferOutput<typeof QueryStrapiSearchClientStyleguide>;
|
|
47
|
-
//#endregion
|
|
1
|
+
import { Xn as ClientStyleguideDocument, _t as LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE, dt as CreateClientStyleguideDocument, ft as UpdateClientStyleguideDocument, gt as LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE, ht as CLIENT_STYLEGUIDE_SORT_KEYS, mt as QuerySortClientStyleguides, pt as UpdateClientStyleguideDocumentRequest, ut as QueryStrapiSearchClientStyleguide } from "../../index-GUYqdxFh.mjs";
|
|
48
2
|
export { CLIENT_STYLEGUIDE_SORT_KEYS, ClientStyleguideDocument, CreateClientStyleguideDocument, LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_STYLEGUIDE_PAGINATION_MAX_SIZE, QuerySortClientStyleguides, QueryStrapiSearchClientStyleguide, UpdateClientStyleguideDocument, UpdateClientStyleguideDocumentRequest };
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
|
-
import { r as MediaUploadDocument } from "../../media-upload-DiRJksSU.mjs";
|
|
3
1
|
import "../../regex-BnKGcdS4.mjs";
|
|
4
2
|
import { d as VStringMinMax, i as VSize, l as VStringMax, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
5
|
-
import { a as SAssociateOneEntity, s as SQueryManyEntities } from "../../
|
|
6
|
-
import {
|
|
7
|
-
import { ComponentBrandStyleguideColor, ComponentBrandStyleguideFont } from "../../components/brand/index.mjs";
|
|
3
|
+
import { a as SAssociateOneEntity, s as SQueryManyEntities } from "../../relationships-BosK0kyG.mjs";
|
|
4
|
+
import { x as ClientStyleguideDocument } from "../../document-DUHPXtbm.mjs";
|
|
8
5
|
import * as v from "valibot";
|
|
9
6
|
//#region src/entities/client-styleguide/constants.ts
|
|
10
7
|
const LIMIT_CLIENT_STYLEGUIDE_PAGINATION_DEFAULT_SIZE = 10;
|
|
@@ -16,23 +13,6 @@ const CLIENT_STYLEGUIDE_SORT_KEYS = [
|
|
|
16
13
|
"updatedAt"
|
|
17
14
|
];
|
|
18
15
|
//#endregion
|
|
19
|
-
//#region src/entities/client-styleguide/document.ts
|
|
20
|
-
const ClientStyleguideDocument = v.object({
|
|
21
|
-
...BaseDocument.entries,
|
|
22
|
-
title: v.string(),
|
|
23
|
-
is_active: v.boolean(),
|
|
24
|
-
introduction: v.array(RichTextBlock),
|
|
25
|
-
voice: v.array(RichTextBlock),
|
|
26
|
-
communication: v.array(RichTextBlock),
|
|
27
|
-
brand_elements: v.array(RichTextBlock),
|
|
28
|
-
brand_intention: v.array(RichTextBlock),
|
|
29
|
-
mood: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
30
|
-
logos: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
31
|
-
brand_colors: v.optional(v.array(ComponentBrandStyleguideColor)),
|
|
32
|
-
brand_fonts: v.optional(v.array(ComponentBrandStyleguideFont)),
|
|
33
|
-
brand_application: v.optional(v.array(v.lazy(() => MediaUploadDocument)))
|
|
34
|
-
});
|
|
35
|
-
//#endregion
|
|
36
16
|
//#region src/entities/client-styleguide/fields.ts
|
|
37
17
|
const QuerySortClientStyleguides = v.optional(v.pipe(v.array(v.picklist(CLIENT_STYLEGUIDE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CLIENT_STYLEGUIDE_SORT_KEYS.length)));
|
|
38
18
|
//#endregion
|
|
@@ -1,77 +1,41 @@
|
|
|
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_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
5
|
+
const require_document = require("../../document-zu6-DmQT.cjs");
|
|
7
6
|
let valibot = require("valibot");
|
|
8
7
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
|
-
//#region src/entities/client-user/constants.ts
|
|
10
|
-
const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
|
|
11
|
-
const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
|
|
12
|
-
const CLIENT_USER_SORT_KEYS = [
|
|
13
|
-
"id",
|
|
14
|
-
"client.title",
|
|
15
|
-
"client.teamwork_id",
|
|
16
|
-
"client.teamwork_name",
|
|
17
|
-
"client.is_active",
|
|
18
|
-
"client.allow_create_utm_link",
|
|
19
|
-
"client.is_paid_media",
|
|
20
|
-
"client.is_organic_social",
|
|
21
|
-
"user.username",
|
|
22
|
-
"user.email",
|
|
23
|
-
"user.confirmed",
|
|
24
|
-
"user.blocked",
|
|
25
|
-
"createdAt",
|
|
26
|
-
"updatedAt"
|
|
27
|
-
];
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region src/entities/client-user/fields.ts
|
|
30
|
-
const QuerySortClientUsers = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_USER_SORT_KEYS.length)));
|
|
31
|
-
const ClientUserScope = valibot.pipe(valibot.array(valibot.pipe(valibot.string(), valibot.picklist(require_constants.CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), valibot.maxLength(require_constants.CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."));
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region src/entities/client-user/document.ts
|
|
34
|
-
const ClientUserDocument = valibot.object({
|
|
35
|
-
...require_document.BaseDocument.entries,
|
|
36
|
-
scopes: valibot.array(ClientUserScope)
|
|
37
|
-
});
|
|
38
|
-
const ClientUserDocumentStatus = valibot.object({
|
|
39
|
-
verified: valibot.boolean(),
|
|
40
|
-
clientUser: valibot.nullable(valibot.lazy(() => ClientUserDocument)),
|
|
41
|
-
scopes: ClientUserScope
|
|
42
|
-
});
|
|
43
|
-
//#endregion
|
|
44
8
|
//#region src/entities/client-user/mutation.ts
|
|
45
9
|
const CreateClientUserDocument = valibot.object({
|
|
46
|
-
client: valibot.optional(
|
|
47
|
-
user: valibot.optional(
|
|
48
|
-
scopes: ClientUserScope
|
|
10
|
+
client: valibot.optional(require_relationships.SAssociateOneEntity),
|
|
11
|
+
user: valibot.optional(require_relationships.SAssociateOneEntity),
|
|
12
|
+
scopes: require_document.ClientUserScope
|
|
49
13
|
});
|
|
50
|
-
const UpdateClientUserDocument = valibot.object({ scopes: ClientUserScope });
|
|
14
|
+
const UpdateClientUserDocument = valibot.object({ scopes: require_document.ClientUserScope });
|
|
51
15
|
const UpdateClientUserDocumentRequest = valibot.object({
|
|
52
|
-
documentId:
|
|
16
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
53
17
|
data: UpdateClientUserDocument
|
|
54
18
|
});
|
|
55
19
|
const SVerifyClientUserDocument = valibot.object({
|
|
56
|
-
client:
|
|
57
|
-
user:
|
|
20
|
+
client: require_relationships.SAssociateOneEntity,
|
|
21
|
+
user: require_relationships.SAssociateOneEntity
|
|
58
22
|
});
|
|
59
23
|
//#endregion
|
|
60
24
|
//#region src/entities/client-user/query.ts
|
|
61
25
|
const SQueryListClientUserDocuments = valibot.object({
|
|
62
|
-
documentId:
|
|
26
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
63
27
|
page: require_validators.VPage(),
|
|
64
28
|
size: require_validators.VSize(100)
|
|
65
29
|
});
|
|
66
30
|
//#endregion
|
|
67
|
-
exports.CLIENT_USER_SORT_KEYS = CLIENT_USER_SORT_KEYS;
|
|
68
|
-
exports.ClientUserDocument = ClientUserDocument;
|
|
69
|
-
exports.ClientUserDocumentStatus = ClientUserDocumentStatus;
|
|
70
|
-
exports.ClientUserScope = ClientUserScope;
|
|
31
|
+
exports.CLIENT_USER_SORT_KEYS = require_document.CLIENT_USER_SORT_KEYS;
|
|
32
|
+
exports.ClientUserDocument = require_document.ClientUserDocument;
|
|
33
|
+
exports.ClientUserDocumentStatus = require_document.ClientUserDocumentStatus;
|
|
34
|
+
exports.ClientUserScope = require_document.ClientUserScope;
|
|
71
35
|
exports.CreateClientUserDocument = CreateClientUserDocument;
|
|
72
|
-
exports.LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT;
|
|
73
|
-
exports.LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT;
|
|
74
|
-
exports.QuerySortClientUsers = QuerySortClientUsers;
|
|
36
|
+
exports.LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = require_document.LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT;
|
|
37
|
+
exports.LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = require_document.LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT;
|
|
38
|
+
exports.QuerySortClientUsers = require_document.QuerySortClientUsers;
|
|
75
39
|
exports.SQueryListClientUserDocuments = SQueryListClientUserDocuments;
|
|
76
40
|
exports.SVerifyClientUserDocument = SVerifyClientUserDocument;
|
|
77
41
|
exports.UpdateClientUserDocument = UpdateClientUserDocument;
|
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client-user/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
|
|
6
|
-
declare const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
|
|
7
|
-
declare const CLIENT_USER_SORT_KEYS: readonly ["id", "client.title", "client.teamwork_id", "client.teamwork_name", "client.is_active", "client.allow_create_utm_link", "client.is_paid_media", "client.is_organic_social", "user.username", "user.email", "user.confirmed", "user.blocked", "createdAt", "updatedAt"];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/entities/client-user/fields.d.ts
|
|
10
|
-
declare const QuerySortClientUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "client.title:ASC" | "client.teamwork_id:ASC" | "client.teamwork_name:ASC" | "client.is_active:ASC" | "client.allow_create_utm_link:ASC" | "client.is_paid_media:ASC" | "client.is_organic_social:ASC" | "user.username:ASC" | "user.email:ASC" | "user.confirmed:ASC" | "user.blocked:ASC" | "client.title:DESC" | "client.teamwork_id:DESC" | "client.teamwork_name:DESC" | "client.is_active:DESC" | "client.allow_create_utm_link:DESC" | "client.is_paid_media:DESC" | "client.is_organic_social:DESC" | "user.username:DESC" | "user.email:DESC" | "user.confirmed:DESC" | "user.blocked:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "client.title:ASC" | "client.teamwork_id:ASC" | "client.teamwork_name:ASC" | "client.is_active:ASC" | "client.allow_create_utm_link:ASC" | "client.is_paid_media:ASC" | "client.is_organic_social:ASC" | "user.username:ASC" | "user.email:ASC" | "user.confirmed:ASC" | "user.blocked:ASC" | "client.title:DESC" | "client.teamwork_id:DESC" | "client.teamwork_name:DESC" | "client.is_active:DESC" | "client.allow_create_utm_link:DESC" | "client.is_paid_media:DESC" | "client.is_organic_social:DESC" | "user.username:DESC" | "user.email:DESC" | "user.confirmed:DESC" | "user.blocked:DESC")[], 14, undefined>]>, undefined>;
|
|
11
|
-
type QuerySortClientUsers = v.InferOutput<typeof QuerySortClientUsers>;
|
|
12
|
-
declare const ClientUserScope: 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.">]>;
|
|
13
|
-
type ClientUserScope = v.InferOutput<typeof ClientUserScope>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/entities/client-user/mutation.d.ts
|
|
16
|
-
declare const CreateClientUserDocument: v.ObjectSchema<{
|
|
17
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
-
readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
-
readonly scopes: 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.">]>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
type CreateClientUserDocument = v.InferOutput<typeof CreateClientUserDocument>;
|
|
22
|
-
declare const UpdateClientUserDocument: v.ObjectSchema<{
|
|
23
|
-
readonly scopes: 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.">]>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
type UpdateClientUserDocument = v.InferOutput<typeof UpdateClientUserDocument>;
|
|
26
|
-
declare const UpdateClientUserDocumentRequest: v.ObjectSchema<{
|
|
27
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly scopes: 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.">]>;
|
|
30
|
-
}, undefined>;
|
|
31
|
-
}, undefined>;
|
|
32
|
-
type UpdateClientUserDocumentRequest = v.InferOutput<typeof UpdateClientUserDocumentRequest>;
|
|
33
|
-
declare const SVerifyClientUserDocument: v.ObjectSchema<{
|
|
34
|
-
readonly client: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
35
|
-
readonly user: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
36
|
-
}, undefined>;
|
|
37
|
-
type SVerifyClientUserDocument = v.InferOutput<typeof SVerifyClientUserDocument>;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/entities/client-user/query.d.ts
|
|
40
|
-
declare const SQueryListClientUserDocuments: v.ObjectSchema<{
|
|
41
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
42
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
43
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
type SQueryListClientUserDocuments = v.InferOutput<typeof SQueryListClientUserDocuments>;
|
|
46
|
-
//#endregion
|
|
1
|
+
import { An as CLIENT_USER_SORT_KEYS, Cn as QuerySortClientUsers, Mn as LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, Sn as ClientUserScope, _n as SQueryListClientUserDocuments, bn as UpdateClientUserDocument, c as ClientUserDocument, jn as LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT, l as ClientUserDocumentStatus, vn as CreateClientUserDocument, xn as UpdateClientUserDocumentRequest, yn as SVerifyClientUserDocument } from "../../index-Cb8BnFcL.cjs";
|
|
47
2
|
export { CLIENT_USER_SORT_KEYS, ClientUserDocument, ClientUserDocumentStatus, ClientUserScope, CreateClientUserDocument, LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT, LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, QuerySortClientUsers, SQueryListClientUserDocuments, SVerifyClientUserDocument, UpdateClientUserDocument, UpdateClientUserDocumentRequest };
|
|
@@ -1,47 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client-user/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
|
|
6
|
-
declare const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
|
|
7
|
-
declare const CLIENT_USER_SORT_KEYS: readonly ["id", "client.title", "client.teamwork_id", "client.teamwork_name", "client.is_active", "client.allow_create_utm_link", "client.is_paid_media", "client.is_organic_social", "user.username", "user.email", "user.confirmed", "user.blocked", "createdAt", "updatedAt"];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/entities/client-user/fields.d.ts
|
|
10
|
-
declare const QuerySortClientUsers: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "client.title:ASC" | "client.teamwork_id:ASC" | "client.teamwork_name:ASC" | "client.is_active:ASC" | "client.allow_create_utm_link:ASC" | "client.is_paid_media:ASC" | "client.is_organic_social:ASC" | "user.username:ASC" | "user.email:ASC" | "user.confirmed:ASC" | "user.blocked:ASC" | "client.title:DESC" | "client.teamwork_id:DESC" | "client.teamwork_name:DESC" | "client.is_active:DESC" | "client.allow_create_utm_link:DESC" | "client.is_paid_media:DESC" | "client.is_organic_social:DESC" | "user.username:DESC" | "user.email:DESC" | "user.confirmed:DESC" | "user.blocked:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "client.title:ASC" | "client.teamwork_id:ASC" | "client.teamwork_name:ASC" | "client.is_active:ASC" | "client.allow_create_utm_link:ASC" | "client.is_paid_media:ASC" | "client.is_organic_social:ASC" | "user.username:ASC" | "user.email:ASC" | "user.confirmed:ASC" | "user.blocked:ASC" | "client.title:DESC" | "client.teamwork_id:DESC" | "client.teamwork_name:DESC" | "client.is_active:DESC" | "client.allow_create_utm_link:DESC" | "client.is_paid_media:DESC" | "client.is_organic_social:DESC" | "user.username:DESC" | "user.email:DESC" | "user.confirmed:DESC" | "user.blocked:DESC")[], 14, undefined>]>, undefined>;
|
|
11
|
-
type QuerySortClientUsers = v.InferOutput<typeof QuerySortClientUsers>;
|
|
12
|
-
declare const ClientUserScope: 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.">]>;
|
|
13
|
-
type ClientUserScope = v.InferOutput<typeof ClientUserScope>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/entities/client-user/mutation.d.ts
|
|
16
|
-
declare const CreateClientUserDocument: v.ObjectSchema<{
|
|
17
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
-
readonly user: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
-
readonly scopes: 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.">]>;
|
|
20
|
-
}, undefined>;
|
|
21
|
-
type CreateClientUserDocument = v.InferOutput<typeof CreateClientUserDocument>;
|
|
22
|
-
declare const UpdateClientUserDocument: v.ObjectSchema<{
|
|
23
|
-
readonly scopes: 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.">]>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
type UpdateClientUserDocument = v.InferOutput<typeof UpdateClientUserDocument>;
|
|
26
|
-
declare const UpdateClientUserDocumentRequest: v.ObjectSchema<{
|
|
27
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
28
|
-
readonly data: v.ObjectSchema<{
|
|
29
|
-
readonly scopes: 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.">]>;
|
|
30
|
-
}, undefined>;
|
|
31
|
-
}, undefined>;
|
|
32
|
-
type UpdateClientUserDocumentRequest = v.InferOutput<typeof UpdateClientUserDocumentRequest>;
|
|
33
|
-
declare const SVerifyClientUserDocument: v.ObjectSchema<{
|
|
34
|
-
readonly client: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
35
|
-
readonly user: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
36
|
-
}, undefined>;
|
|
37
|
-
type SVerifyClientUserDocument = v.InferOutput<typeof SVerifyClientUserDocument>;
|
|
38
|
-
//#endregion
|
|
39
|
-
//#region src/entities/client-user/query.d.ts
|
|
40
|
-
declare const SQueryListClientUserDocuments: v.ObjectSchema<{
|
|
41
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
42
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
43
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
type SQueryListClientUserDocuments = v.InferOutput<typeof SQueryListClientUserDocuments>;
|
|
46
|
-
//#endregion
|
|
1
|
+
import { An as CLIENT_USER_SORT_KEYS, Cn as QuerySortClientUsers, Mn as LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, Sn as ClientUserScope, _n as SQueryListClientUserDocuments, bn as UpdateClientUserDocument, c as ClientUserDocument, jn as LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT, l as ClientUserDocumentStatus, vn as CreateClientUserDocument, xn as UpdateClientUserDocumentRequest, yn as SVerifyClientUserDocument } from "../../index-GUYqdxFh.mjs";
|
|
47
2
|
export { CLIENT_USER_SORT_KEYS, ClientUserDocument, ClientUserDocumentStatus, ClientUserScope, CreateClientUserDocument, LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT, LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, QuerySortClientUsers, SQueryListClientUserDocuments, SVerifyClientUserDocument, UpdateClientUserDocument, UpdateClientUserDocumentRequest };
|
|
@@ -1,43 +1,7 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
1
|
import { i as VSize, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
3
|
-
import { a as SAssociateOneEntity } from "../../
|
|
4
|
-
import {
|
|
2
|
+
import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
|
|
3
|
+
import { _ as QuerySortClientUsers, b as LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT, g as ClientUserScope, h as ClientUserDocumentStatus, m as ClientUserDocument, v as CLIENT_USER_SORT_KEYS, y as LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT } from "../../document-DUHPXtbm.mjs";
|
|
5
4
|
import * as v from "valibot";
|
|
6
|
-
//#region src/entities/client-user/constants.ts
|
|
7
|
-
const LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT = 10;
|
|
8
|
-
const LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT = 100;
|
|
9
|
-
const CLIENT_USER_SORT_KEYS = [
|
|
10
|
-
"id",
|
|
11
|
-
"client.title",
|
|
12
|
-
"client.teamwork_id",
|
|
13
|
-
"client.teamwork_name",
|
|
14
|
-
"client.is_active",
|
|
15
|
-
"client.allow_create_utm_link",
|
|
16
|
-
"client.is_paid_media",
|
|
17
|
-
"client.is_organic_social",
|
|
18
|
-
"user.username",
|
|
19
|
-
"user.email",
|
|
20
|
-
"user.confirmed",
|
|
21
|
-
"user.blocked",
|
|
22
|
-
"createdAt",
|
|
23
|
-
"updatedAt"
|
|
24
|
-
];
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/entities/client-user/fields.ts
|
|
27
|
-
const QuerySortClientUsers = v.optional(v.pipe(v.array(v.picklist(CLIENT_USER_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CLIENT_USER_SORT_KEYS.length)));
|
|
28
|
-
const ClientUserScope = v.pipe(v.array(v.pipe(v.string(), v.picklist(CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), v.maxLength(CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."));
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region src/entities/client-user/document.ts
|
|
31
|
-
const ClientUserDocument = v.object({
|
|
32
|
-
...BaseDocument.entries,
|
|
33
|
-
scopes: v.array(ClientUserScope)
|
|
34
|
-
});
|
|
35
|
-
const ClientUserDocumentStatus = v.object({
|
|
36
|
-
verified: v.boolean(),
|
|
37
|
-
clientUser: v.nullable(v.lazy(() => ClientUserDocument)),
|
|
38
|
-
scopes: ClientUserScope
|
|
39
|
-
});
|
|
40
|
-
//#endregion
|
|
41
5
|
//#region src/entities/client-user/mutation.ts
|
|
42
6
|
const CreateClientUserDocument = v.object({
|
|
43
7
|
client: v.optional(SAssociateOneEntity),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-
|
|
1
|
+
import { _ as REPORT_COMMENT_REASON, a as SDeleteCommentDocument, c as CommentAuthor, d as CommentThread, f as CommentApprovalStatus, g as COMMENT_APPROVAL_STATUS_VALUES, h as COMMENT_APPROVAL_STATUS, i as CreateCommentDocument, l as CommentDocument, m as ReportCommentReason, n as QueryStrapiCommentsFlat, o as SReportCommentDocument, p as QuerySortStrapiComments, r as QueryStrapiCommentsInHeirarchy, s as UpdateCommentDocument, t as QueryFilterStrapiComments, u as CommentReportDocument, v as REPORT_COMMENT_REASON_OPTIONS, y as STRAPI_COMMENT_SORT_KEYS } from "../../index-COCNx5sv.cjs";
|
|
2
2
|
export { COMMENT_APPROVAL_STATUS, COMMENT_APPROVAL_STATUS_VALUES, CommentApprovalStatus, CommentAuthor, CommentDocument, CommentReportDocument, CommentThread, CreateCommentDocument, QueryFilterStrapiComments, QuerySortStrapiComments, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, REPORT_COMMENT_REASON, REPORT_COMMENT_REASON_OPTIONS, ReportCommentReason, SDeleteCommentDocument, SReportCommentDocument, STRAPI_COMMENT_SORT_KEYS, UpdateCommentDocument };
|
|
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
const require_regex = require("../../regex-Cl5goNwp.cjs");
|
|
4
4
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
5
|
-
const
|
|
6
|
-
const require_document = require("../../document-
|
|
5
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
6
|
+
const require_document = require("../../document-zu6-DmQT.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/content-pillar/constants.ts
|
|
@@ -25,16 +25,16 @@ const CreateContentPillarDocument = valibot.object({
|
|
|
25
25
|
title: require_validators.VStringMinMax(1, 255),
|
|
26
26
|
slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
|
|
27
27
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
28
|
-
clients: valibot.optional(
|
|
28
|
+
clients: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
29
29
|
});
|
|
30
30
|
const UpdateContentPillarDocument = valibot.object({
|
|
31
31
|
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
32
32
|
slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
|
|
33
33
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
34
|
-
clients: valibot.optional(
|
|
34
|
+
clients: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
35
35
|
});
|
|
36
36
|
const UpdateContentPillarDocumentRequest = valibot.object({
|
|
37
|
-
documentId:
|
|
37
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
38
38
|
data: UpdateContentPillarDocument
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|