@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
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
+
const require_constants = require("./constants-f1GP2eiq.cjs");
|
|
4
|
+
let valibot = require("valibot");
|
|
5
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
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 = 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)));
|
|
28
|
+
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."));
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/entities/client-user/document.ts
|
|
31
|
+
const ClientUserDocument = valibot.object({
|
|
32
|
+
...require_document.BaseDocument.entries,
|
|
33
|
+
scopes: valibot.array(ClientUserScope)
|
|
34
|
+
});
|
|
35
|
+
const ClientUserDocumentStatus = valibot.object({
|
|
36
|
+
verified: valibot.boolean(),
|
|
37
|
+
clientUser: valibot.nullable(valibot.lazy(() => ClientUserDocument)),
|
|
38
|
+
scopes: ClientUserScope
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
Object.defineProperty(exports, "CLIENT_USER_SORT_KEYS", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return CLIENT_USER_SORT_KEYS;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
Object.defineProperty(exports, "ClientUserDocument", {
|
|
48
|
+
enumerable: true,
|
|
49
|
+
get: function() {
|
|
50
|
+
return ClientUserDocument;
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
Object.defineProperty(exports, "ClientUserDocumentStatus", {
|
|
54
|
+
enumerable: true,
|
|
55
|
+
get: function() {
|
|
56
|
+
return ClientUserDocumentStatus;
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
Object.defineProperty(exports, "ClientUserScope", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
get: function() {
|
|
62
|
+
return ClientUserScope;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
Object.defineProperty(exports, "LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function() {
|
|
68
|
+
return LIMIT_CLIENT_USER_PAGINATION_DEFAULT_SIZE_LIMIT;
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function() {
|
|
74
|
+
return LIMIT_CLIENT_USER_PAGINATION_MAX_SIZE_LIMIT;
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports, "QuerySortClientUsers", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return QuerySortClientUsers;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
+
const require_media_upload = require("./media-upload-B6aQYeRM.cjs");
|
|
4
|
+
let valibot = require("valibot");
|
|
5
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
6
|
+
//#region src/entities/client-project/constants.ts
|
|
7
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE = 10;
|
|
8
|
+
const LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE = 100;
|
|
9
|
+
const CLIENT_PROJECT_STATUS = [
|
|
10
|
+
"coming-soon",
|
|
11
|
+
"now-open",
|
|
12
|
+
"for-sale",
|
|
13
|
+
"sold-out",
|
|
14
|
+
"available"
|
|
15
|
+
];
|
|
16
|
+
const CLIENT_PROJECT_PHASES = [
|
|
17
|
+
{
|
|
18
|
+
label: "Brand",
|
|
19
|
+
value: "brand",
|
|
20
|
+
description: "General/Company branded content"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "Phase 1",
|
|
24
|
+
value: "p1",
|
|
25
|
+
description: "Interest list building"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: "Phase 2",
|
|
29
|
+
value: "p2",
|
|
30
|
+
description: "Pre-qualification, pre-sales"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "Phase 3",
|
|
34
|
+
value: "p3",
|
|
35
|
+
description: "Grand opening, now open, available"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "Phase 4",
|
|
39
|
+
value: "p4",
|
|
40
|
+
description: "For sale, maintenance period"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
label: "Phase 5",
|
|
44
|
+
value: "p5",
|
|
45
|
+
description: "Final sale"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
label: "Closed",
|
|
49
|
+
value: "closed",
|
|
50
|
+
description: "Sold out, no longer available"
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
const CLIENT_PROJECT_PHASE_VALUES = [
|
|
54
|
+
"brand",
|
|
55
|
+
"p1",
|
|
56
|
+
"p2",
|
|
57
|
+
"p3",
|
|
58
|
+
"p4",
|
|
59
|
+
"p5",
|
|
60
|
+
"closed"
|
|
61
|
+
];
|
|
62
|
+
const CLIENT_PROJECT_SORT_KEYS = [
|
|
63
|
+
"id",
|
|
64
|
+
"title",
|
|
65
|
+
"slug",
|
|
66
|
+
"is_active",
|
|
67
|
+
"is_hidden",
|
|
68
|
+
"project_phase",
|
|
69
|
+
"project_url",
|
|
70
|
+
"project_type",
|
|
71
|
+
"project_pricing",
|
|
72
|
+
"project_address",
|
|
73
|
+
"phone_number",
|
|
74
|
+
"num_of_models",
|
|
75
|
+
"num_of_units_remain",
|
|
76
|
+
"buyer_profile",
|
|
77
|
+
"social_organic_start_date",
|
|
78
|
+
"paid_media_start_date",
|
|
79
|
+
"go_date",
|
|
80
|
+
"createdAt",
|
|
81
|
+
"updatedAt"
|
|
82
|
+
];
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/entities/client-project/fields.ts
|
|
85
|
+
const QuerySortClientProjects = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_PROJECT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_PROJECT_SORT_KEYS.length)));
|
|
86
|
+
const ClientProjectStatus = valibot.picklist(CLIENT_PROJECT_STATUS);
|
|
87
|
+
const ClientProjectPhase = valibot.picklist(CLIENT_PROJECT_PHASE_VALUES);
|
|
88
|
+
//#endregion
|
|
89
|
+
//#region src/entities/client-project/document.ts
|
|
90
|
+
const ClientProjectDocument = valibot.object({
|
|
91
|
+
...require_document.BaseDocument.entries,
|
|
92
|
+
title: valibot.string(),
|
|
93
|
+
slug: valibot.string(),
|
|
94
|
+
featured_image: valibot.optional(valibot.nullable(valibot.lazy(() => require_media_upload.MediaUploadDocument))),
|
|
95
|
+
is_active: valibot.boolean(),
|
|
96
|
+
is_hidden: valibot.boolean(),
|
|
97
|
+
project_status: valibot.array(ClientProjectStatus),
|
|
98
|
+
project_phase: ClientProjectPhase,
|
|
99
|
+
project_url: valibot.nullable(valibot.string()),
|
|
100
|
+
project_type: valibot.nullable(valibot.string()),
|
|
101
|
+
project_pricing: valibot.nullable(valibot.string()),
|
|
102
|
+
project_address: valibot.nullable(valibot.string()),
|
|
103
|
+
phone_number: valibot.nullable(valibot.string()),
|
|
104
|
+
num_of_models: valibot.nullable(valibot.number()),
|
|
105
|
+
num_of_units_remain: valibot.nullable(valibot.number()),
|
|
106
|
+
buyer_profile: valibot.nullable(valibot.string()),
|
|
107
|
+
social_organic_start_date: valibot.nullable(valibot.string()),
|
|
108
|
+
paid_media_start_date: valibot.nullable(valibot.string()),
|
|
109
|
+
go_date: valibot.nullable(valibot.string())
|
|
110
|
+
});
|
|
111
|
+
//#endregion
|
|
112
|
+
Object.defineProperty(exports, "CLIENT_PROJECT_PHASES", {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: function() {
|
|
115
|
+
return CLIENT_PROJECT_PHASES;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "CLIENT_PROJECT_PHASE_VALUES", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function() {
|
|
121
|
+
return CLIENT_PROJECT_PHASE_VALUES;
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
Object.defineProperty(exports, "CLIENT_PROJECT_SORT_KEYS", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
get: function() {
|
|
127
|
+
return CLIENT_PROJECT_SORT_KEYS;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "CLIENT_PROJECT_STATUS", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function() {
|
|
133
|
+
return CLIENT_PROJECT_STATUS;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
Object.defineProperty(exports, "ClientProjectDocument", {
|
|
137
|
+
enumerable: true,
|
|
138
|
+
get: function() {
|
|
139
|
+
return ClientProjectDocument;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "ClientProjectPhase", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function() {
|
|
145
|
+
return ClientProjectPhase;
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
Object.defineProperty(exports, "ClientProjectStatus", {
|
|
149
|
+
enumerable: true,
|
|
150
|
+
get: function() {
|
|
151
|
+
return ClientProjectStatus;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function() {
|
|
157
|
+
return LIMIT_CLIENT_PROJECT_PAGINATION_DEFAULT_SIZE;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
Object.defineProperty(exports, "LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE", {
|
|
161
|
+
enumerable: true,
|
|
162
|
+
get: function() {
|
|
163
|
+
return LIMIT_CLIENT_PROJECT_PAGINATION_MAX_SIZE;
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "QuerySortClientProjects", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function() {
|
|
169
|
+
return QuerySortClientProjects;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import { r as MediaUploadDocument } from "./media-upload-DiRJksSU.mjs";
|
|
3
|
+
import { SeoMeta } from "./components/shared/index.mjs";
|
|
4
|
+
import * as v from "valibot";
|
|
5
|
+
//#region src/entities/product/document.ts
|
|
6
|
+
const ProductDocument = v.object({
|
|
7
|
+
...BaseDocument.entries,
|
|
8
|
+
seo: v.optional(SeoMeta),
|
|
9
|
+
title: v.string(),
|
|
10
|
+
slug: v.string(),
|
|
11
|
+
introduction: v.string(),
|
|
12
|
+
flyer_link: v.nullable(v.string()),
|
|
13
|
+
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
14
|
+
cta_text: v.string(),
|
|
15
|
+
cta_form_caption: v.string(),
|
|
16
|
+
order: v.number()
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { ProductDocument as t };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
//#region src/entities/client-report/document.ts
|
|
4
|
+
const ClientReportDocument = v.object({
|
|
5
|
+
...BaseDocument.entries,
|
|
6
|
+
title: v.string(),
|
|
7
|
+
report_id: v.string(),
|
|
8
|
+
is_active: v.boolean(),
|
|
9
|
+
is_external: v.boolean(),
|
|
10
|
+
is_hidden: v.boolean(),
|
|
11
|
+
scopes: v.array(v.string())
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { ClientReportDocument as t };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
//#region src/entities/up-role/constants.ts
|
|
4
|
+
const ROLE_TYPES = [
|
|
5
|
+
"authenticated",
|
|
6
|
+
"public",
|
|
7
|
+
"employee",
|
|
8
|
+
"manager",
|
|
9
|
+
"client"
|
|
10
|
+
];
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/entities/up-role/fields.ts
|
|
13
|
+
const RoleType = v.picklist(ROLE_TYPES);
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/entities/up-role/document.ts
|
|
16
|
+
const RoleDocument = v.object({
|
|
17
|
+
...BaseDocument.entries,
|
|
18
|
+
type: RoleType,
|
|
19
|
+
name: v.string(),
|
|
20
|
+
description: v.nullable(v.string())
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
export { RoleType as n, ROLE_TYPES as r, RoleDocument as t };
|