@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,61 +1,7 @@
|
|
|
1
|
-
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
|
-
import { r as MediaUploadDocument } from "../../media-upload-DiRJksSU.mjs";
|
|
3
1
|
import { h as VStringShort, i as VSize, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
4
2
|
import { t as ContentStatus } from "../../strapi-C0DtxJLD.mjs";
|
|
5
|
-
import {
|
|
6
|
-
import { ComponentBlockButtonGroup, ComponentBlockContact, ComponentBlockFaq, ComponentBlockFullscreenContent, ComponentBlockGraphicImage, ComponentBlockPullQuote, ComponentBlockSectionTitle, ComponentBlockVideo } from "../../components/blocks/index.mjs";
|
|
7
|
-
import { ComponentFormSelect } from "../../components/forms/index.mjs";
|
|
8
|
-
import { ComponentSlideshow } from "../../components/slideshow/index.mjs";
|
|
3
|
+
import { _ as BLOG_POST_SORT_KEYS, g as BLOG_POST_LAYOUT, i as QuerySortBlogPosts, n as BlogPostBlock, r as BlogPostLayout, t as BlogPostDocument, v as LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE, y as LIMIT_BLOG_POST_PAGINATION_MAX_SIZE } from "../../document-Cx4Klv8A.mjs";
|
|
9
4
|
import * as v from "valibot";
|
|
10
|
-
//#region src/entities/blog-post/constants.ts
|
|
11
|
-
const LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE = 6;
|
|
12
|
-
const LIMIT_BLOG_POST_PAGINATION_MAX_SIZE = 20;
|
|
13
|
-
const BLOG_POST_SORT_KEYS = [
|
|
14
|
-
"id",
|
|
15
|
-
"title",
|
|
16
|
-
"slug",
|
|
17
|
-
"is_live",
|
|
18
|
-
"is_featured",
|
|
19
|
-
"is_public",
|
|
20
|
-
"published",
|
|
21
|
-
"createdAt",
|
|
22
|
-
"updatedAt"
|
|
23
|
-
];
|
|
24
|
-
const BLOG_POST_LAYOUT = ["main-aside", "center-column"];
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/entities/blog-post/fields.ts
|
|
27
|
-
const QuerySortBlogPosts = v.optional(v.pipe(v.array(v.picklist(BLOG_POST_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(BLOG_POST_SORT_KEYS.length)));
|
|
28
|
-
const BlogPostLayout = v.picklist(BLOG_POST_LAYOUT);
|
|
29
|
-
const BlogPostBlock = v.union([
|
|
30
|
-
v.lazy(() => ComponentBlockSectionTitle),
|
|
31
|
-
v.lazy(() => ComponentBlockGraphicImage),
|
|
32
|
-
v.lazy(() => ComponentBlockPullQuote),
|
|
33
|
-
v.lazy(() => ComponentBlockVideo),
|
|
34
|
-
v.lazy(() => ComponentBlockFaq),
|
|
35
|
-
v.lazy(() => ComponentBlockContact),
|
|
36
|
-
v.lazy(() => ComponentBlockButtonGroup),
|
|
37
|
-
v.lazy(() => ComponentBlockFullscreenContent),
|
|
38
|
-
v.lazy(() => ComponentFormSelect),
|
|
39
|
-
v.lazy(() => ComponentSlideshow),
|
|
40
|
-
v.lazy(() => ComponentSharedRichTextBlock)
|
|
41
|
-
]);
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/entities/blog-post/document.ts
|
|
44
|
-
const BlogPostDocument = v.object({
|
|
45
|
-
...BaseDocument.entries,
|
|
46
|
-
title: v.string(),
|
|
47
|
-
slug: v.string(),
|
|
48
|
-
excerpt: v.string(),
|
|
49
|
-
published: v.string(),
|
|
50
|
-
is_live: v.boolean(),
|
|
51
|
-
is_featured: v.boolean(),
|
|
52
|
-
is_public: v.boolean(),
|
|
53
|
-
seo: v.optional(v.nullable(SeoMeta)),
|
|
54
|
-
layout: v.nullable(BlogPostLayout),
|
|
55
|
-
featured_image: v.optional(v.nullable(v.lazy(() => MediaUploadDocument))),
|
|
56
|
-
blocks: v.optional(v.array(v.lazy(() => BlogPostBlock)))
|
|
57
|
-
});
|
|
58
|
-
//#endregion
|
|
59
5
|
//#region src/entities/blog-post/query.ts
|
|
60
6
|
const QueryStrapiSearchBlogPosts = v.object({
|
|
61
7
|
page: VPage(),
|
|
@@ -1,9 +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
3
|
const require_regex = require("../../regex-Cl5goNwp.cjs");
|
|
5
4
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
-
const
|
|
5
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
6
|
+
const require_document = require("../../document-CrnqUGRk.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/category/constants.ts
|
|
@@ -17,13 +17,6 @@ const CATEGORY_SORT_KEYS = [
|
|
|
17
17
|
"updatedAt"
|
|
18
18
|
];
|
|
19
19
|
//#endregion
|
|
20
|
-
//#region src/entities/category/document.ts
|
|
21
|
-
const CategoryDocument = valibot.object({
|
|
22
|
-
...require_document.BaseDocument.entries,
|
|
23
|
-
label: valibot.string(),
|
|
24
|
-
slug: valibot.string()
|
|
25
|
-
});
|
|
26
|
-
//#endregion
|
|
27
20
|
//#region src/entities/category/fields.ts
|
|
28
21
|
const QuerySortCategories = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CATEGORY_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CATEGORY_SORT_KEYS.length)));
|
|
29
22
|
//#endregion
|
|
@@ -37,7 +30,7 @@ const UpdateCategoryDocument = valibot.object({
|
|
|
37
30
|
slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG))
|
|
38
31
|
});
|
|
39
32
|
const UpdateCategoryDocumentRequest = valibot.object({
|
|
40
|
-
documentId:
|
|
33
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
41
34
|
data: UpdateCategoryDocument
|
|
42
35
|
});
|
|
43
36
|
//#endregion
|
|
@@ -51,7 +44,7 @@ const QueryStrapiSearchCategories = valibot.object({
|
|
|
51
44
|
});
|
|
52
45
|
//#endregion
|
|
53
46
|
exports.CATEGORY_SORT_KEYS = CATEGORY_SORT_KEYS;
|
|
54
|
-
exports.CategoryDocument = CategoryDocument;
|
|
47
|
+
exports.CategoryDocument = require_document.CategoryDocument;
|
|
55
48
|
exports.CreateCategoryDocument = CreateCategoryDocument;
|
|
56
49
|
exports.LIMIT_CATEGORIES_PAGINATION_DEFAULT_SIZE = LIMIT_CATEGORIES_PAGINATION_DEFAULT_SIZE;
|
|
57
50
|
exports.LIMIT_CATEGORIES_PAGINATION_MAX_SIZE = LIMIT_CATEGORIES_PAGINATION_MAX_SIZE;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { v as CategoryDocument } from "../../index-BCvKbd4C.cjs";
|
|
1
2
|
import * as v from "valibot";
|
|
2
3
|
|
|
3
4
|
//#region src/entities/category/constants.d.ts
|
|
@@ -5,20 +6,8 @@ declare const LIMIT_CATEGORIES_PAGINATION_DEFAULT_SIZE = 100;
|
|
|
5
6
|
declare const LIMIT_CATEGORIES_PAGINATION_MAX_SIZE = 1000;
|
|
6
7
|
declare const CATEGORY_SORT_KEYS: readonly ["id", "label", "slug", "createdAt", "updatedAt"];
|
|
7
8
|
//#endregion
|
|
8
|
-
//#region src/entities/category/document.d.ts
|
|
9
|
-
declare const CategoryDocument: v.ObjectSchema<{
|
|
10
|
-
readonly label: v.StringSchema<undefined>;
|
|
11
|
-
readonly slug: v.StringSchema<undefined>;
|
|
12
|
-
readonly id: v.NumberSchema<undefined>;
|
|
13
|
-
readonly documentId: v.StringSchema<undefined>;
|
|
14
|
-
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
-
readonly createdAt: v.StringSchema<undefined>;
|
|
16
|
-
readonly updatedAt: v.StringSchema<undefined>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
type CategoryDocument = v.InferOutput<typeof CategoryDocument>;
|
|
19
|
-
//#endregion
|
|
20
9
|
//#region src/entities/category/fields.d.ts
|
|
21
|
-
declare const QuerySortCategories: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:
|
|
10
|
+
declare const QuerySortCategories: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], 5, undefined>]>, undefined>;
|
|
22
11
|
type QuerySortCategories = v.InferOutput<typeof QuerySortCategories>;
|
|
23
12
|
//#endregion
|
|
24
13
|
//#region src/entities/category/mutation.d.ts
|
|
@@ -47,7 +36,7 @@ declare const QueryStrapiSearchCategories: v.ObjectSchema<{
|
|
|
47
36
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
48
37
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
38
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:
|
|
39
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], 5, undefined>]>, undefined>;
|
|
51
40
|
}, undefined>;
|
|
52
41
|
type QueryStrapiSearchCategories = v.InferOutput<typeof QueryStrapiSearchCategories>;
|
|
53
42
|
//#endregion
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { v as CategoryDocument } from "../../index-D0PCjo7e.mjs";
|
|
1
2
|
import * as v from "valibot";
|
|
2
3
|
|
|
3
4
|
//#region src/entities/category/constants.d.ts
|
|
@@ -5,20 +6,8 @@ declare const LIMIT_CATEGORIES_PAGINATION_DEFAULT_SIZE = 100;
|
|
|
5
6
|
declare const LIMIT_CATEGORIES_PAGINATION_MAX_SIZE = 1000;
|
|
6
7
|
declare const CATEGORY_SORT_KEYS: readonly ["id", "label", "slug", "createdAt", "updatedAt"];
|
|
7
8
|
//#endregion
|
|
8
|
-
//#region src/entities/category/document.d.ts
|
|
9
|
-
declare const CategoryDocument: v.ObjectSchema<{
|
|
10
|
-
readonly label: v.StringSchema<undefined>;
|
|
11
|
-
readonly slug: v.StringSchema<undefined>;
|
|
12
|
-
readonly id: v.NumberSchema<undefined>;
|
|
13
|
-
readonly documentId: v.StringSchema<undefined>;
|
|
14
|
-
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
-
readonly createdAt: v.StringSchema<undefined>;
|
|
16
|
-
readonly updatedAt: v.StringSchema<undefined>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
type CategoryDocument = v.InferOutput<typeof CategoryDocument>;
|
|
19
|
-
//#endregion
|
|
20
9
|
//#region src/entities/category/fields.d.ts
|
|
21
|
-
declare const QuerySortCategories: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:
|
|
10
|
+
declare const QuerySortCategories: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], 5, undefined>]>, undefined>;
|
|
22
11
|
type QuerySortCategories = v.InferOutput<typeof QuerySortCategories>;
|
|
23
12
|
//#endregion
|
|
24
13
|
//#region src/entities/category/mutation.d.ts
|
|
@@ -47,7 +36,7 @@ declare const QueryStrapiSearchCategories: v.ObjectSchema<{
|
|
|
47
36
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
48
37
|
readonly label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
38
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:
|
|
39
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "slug:DESC" | "label:ASC" | "label:DESC")[], 5, undefined>]>, undefined>;
|
|
51
40
|
}, undefined>;
|
|
52
41
|
type QueryStrapiSearchCategories = v.InferOutput<typeof QueryStrapiSearchCategories>;
|
|
53
42
|
//#endregion
|
|
@@ -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 } from "../../
|
|
3
|
+
import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
|
|
4
|
+
import { h as CategoryDocument } from "../../document-Cx4Klv8A.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/category/constants.ts
|
|
7
7
|
const LIMIT_CATEGORIES_PAGINATION_DEFAULT_SIZE = 100;
|
|
@@ -14,13 +14,6 @@ const CATEGORY_SORT_KEYS = [
|
|
|
14
14
|
"updatedAt"
|
|
15
15
|
];
|
|
16
16
|
//#endregion
|
|
17
|
-
//#region src/entities/category/document.ts
|
|
18
|
-
const CategoryDocument = v.object({
|
|
19
|
-
...BaseDocument.entries,
|
|
20
|
-
label: v.string(),
|
|
21
|
-
slug: v.string()
|
|
22
|
-
});
|
|
23
|
-
//#endregion
|
|
24
17
|
//#region src/entities/category/fields.ts
|
|
25
18
|
const QuerySortCategories = v.optional(v.pipe(v.array(v.picklist(CATEGORY_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(CATEGORY_SORT_KEYS.length)));
|
|
26
19
|
//#endregion
|
|
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
3
|
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/client/constants.ts
|
|
@@ -60,7 +60,7 @@ const UpdateClientDocument = valibot.object({
|
|
|
60
60
|
classification: valibot.optional(ClientClassification)
|
|
61
61
|
});
|
|
62
62
|
const UpdateClientDocumentRequest = valibot.object({
|
|
63
|
-
documentId:
|
|
63
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
64
64
|
data: UpdateClientDocument
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
@@ -1,85 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE = 20;
|
|
6
|
-
declare const LIMIT_CLIENT_PAGINATION_MAX_SIZE = 100;
|
|
7
|
-
declare const CLIENT_SORT_KEYS: readonly ["id", "title", "teamwork_id", "teamwork_name", "utm_sheet_id", "is_active", "is_hidden", "is_featured", "allow_create_utm_link", "is_organic_social", "is_paid_media", "createdAt", "updatedAt"];
|
|
8
|
-
declare const CLIENT_CLASSIFICATIONS: readonly ["organic", "paid"];
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/entities/client/fields.d.ts
|
|
11
|
-
declare const QuerySortClients: 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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link: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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link:DESC")[], 13, undefined>]>, undefined>;
|
|
12
|
-
type QuerySortClients = v.InferOutput<typeof QuerySortClients>;
|
|
13
|
-
declare const ClientClassification: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/entities/client/mutation.d.ts
|
|
16
|
-
declare const CreateClientDocument: v.ObjectSchema<{
|
|
17
|
-
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
18
|
-
readonly teamwork_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
19
|
-
readonly teamwork_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
20
|
-
readonly gainapp_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
21
|
-
readonly utm_sheet_id: 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.BooleanSchema<undefined>;
|
|
23
|
-
readonly is_hidden: v.BooleanSchema<undefined>;
|
|
24
|
-
readonly is_featured: v.BooleanSchema<undefined>;
|
|
25
|
-
readonly allow_create_utm_link: v.BooleanSchema<undefined>;
|
|
26
|
-
readonly is_organic_social: v.BooleanSchema<undefined>;
|
|
27
|
-
readonly is_paid_media: v.BooleanSchema<undefined>;
|
|
28
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
29
|
-
}, undefined>;
|
|
30
|
-
type CreateClientDocument = v.InferOutput<typeof CreateClientDocument>;
|
|
31
|
-
declare const UpdateClientDocument: v.ObjectSchema<{
|
|
32
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
-
readonly teamwork_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly teamwork_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly gainapp_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
36
|
-
readonly utm_sheet_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
38
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
39
|
-
readonly is_featured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
40
|
-
readonly allow_create_utm_link: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
41
|
-
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
-
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
type UpdateClientDocument = v.InferOutput<typeof UpdateClientDocument>;
|
|
46
|
-
declare const UpdateClientDocumentRequest: v.ObjectSchema<{
|
|
47
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
48
|
-
readonly data: v.ObjectSchema<{
|
|
49
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly teamwork_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
-
readonly teamwork_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
-
readonly gainapp_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
53
|
-
readonly utm_sheet_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
55
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
56
|
-
readonly is_featured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
57
|
-
readonly allow_create_utm_link: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
58
|
-
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
59
|
-
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
61
|
-
}, undefined>;
|
|
62
|
-
}, undefined>;
|
|
63
|
-
type UpdateClientDocumentRequest = v.InferOutput<typeof UpdateClientDocumentRequest>;
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/entities/client/query.d.ts
|
|
66
|
-
declare const QueryStrapiSearchClients: v.ObjectSchema<{
|
|
67
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
68
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
69
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
70
|
-
readonly teamwork_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
-
readonly teamwork_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
-
readonly gainapp_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
readonly utm_sheet_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
74
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
75
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
76
|
-
readonly is_featured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
77
|
-
readonly allow_create_utm_link: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
78
|
-
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
79
|
-
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
80
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
81
|
-
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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link: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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link:DESC")[], 13, undefined>]>, undefined>;
|
|
82
|
-
}, undefined>;
|
|
83
|
-
type QueryStrapiSearchClients = v.InferOutput<typeof QueryStrapiSearchClients>;
|
|
84
|
-
//#endregion
|
|
1
|
+
import { cn as CreateClientDocument, dn as ClientClassification, fn as QuerySortClients, gn as LIMIT_CLIENT_PAGINATION_MAX_SIZE, hn as LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE, ln as UpdateClientDocument, mn as CLIENT_SORT_KEYS, pn as CLIENT_CLASSIFICATIONS, s as ClientDocument, sn as QueryStrapiSearchClients, un as UpdateClientDocumentRequest } from "../../index-Cb8BnFcL.cjs";
|
|
85
2
|
export { CLIENT_CLASSIFICATIONS, CLIENT_SORT_KEYS, ClientClassification, ClientDocument, CreateClientDocument, LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_PAGINATION_MAX_SIZE, QuerySortClients, QueryStrapiSearchClients, UpdateClientDocument, UpdateClientDocumentRequest };
|
|
@@ -1,85 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE = 20;
|
|
6
|
-
declare const LIMIT_CLIENT_PAGINATION_MAX_SIZE = 100;
|
|
7
|
-
declare const CLIENT_SORT_KEYS: readonly ["id", "title", "teamwork_id", "teamwork_name", "utm_sheet_id", "is_active", "is_hidden", "is_featured", "allow_create_utm_link", "is_organic_social", "is_paid_media", "createdAt", "updatedAt"];
|
|
8
|
-
declare const CLIENT_CLASSIFICATIONS: readonly ["organic", "paid"];
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/entities/client/fields.d.ts
|
|
11
|
-
declare const QuerySortClients: 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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link: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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link:DESC")[], 13, undefined>]>, undefined>;
|
|
12
|
-
type QuerySortClients = v.InferOutput<typeof QuerySortClients>;
|
|
13
|
-
declare const ClientClassification: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>;
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region src/entities/client/mutation.d.ts
|
|
16
|
-
declare const CreateClientDocument: v.ObjectSchema<{
|
|
17
|
-
readonly title: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
18
|
-
readonly teamwork_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
19
|
-
readonly teamwork_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
20
|
-
readonly gainapp_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
21
|
-
readonly utm_sheet_id: 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.BooleanSchema<undefined>;
|
|
23
|
-
readonly is_hidden: v.BooleanSchema<undefined>;
|
|
24
|
-
readonly is_featured: v.BooleanSchema<undefined>;
|
|
25
|
-
readonly allow_create_utm_link: v.BooleanSchema<undefined>;
|
|
26
|
-
readonly is_organic_social: v.BooleanSchema<undefined>;
|
|
27
|
-
readonly is_paid_media: v.BooleanSchema<undefined>;
|
|
28
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
29
|
-
}, undefined>;
|
|
30
|
-
type CreateClientDocument = v.InferOutput<typeof CreateClientDocument>;
|
|
31
|
-
declare const UpdateClientDocument: v.ObjectSchema<{
|
|
32
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
33
|
-
readonly teamwork_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
34
|
-
readonly teamwork_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
-
readonly gainapp_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
36
|
-
readonly utm_sheet_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
37
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
38
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
39
|
-
readonly is_featured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
40
|
-
readonly allow_create_utm_link: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
41
|
-
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
42
|
-
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
43
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
44
|
-
}, undefined>;
|
|
45
|
-
type UpdateClientDocument = v.InferOutput<typeof UpdateClientDocument>;
|
|
46
|
-
declare const UpdateClientDocumentRequest: v.ObjectSchema<{
|
|
47
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
48
|
-
readonly data: v.ObjectSchema<{
|
|
49
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
-
readonly teamwork_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
-
readonly teamwork_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
-
readonly gainapp_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
53
|
-
readonly utm_sheet_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
54
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
55
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
56
|
-
readonly is_featured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
57
|
-
readonly allow_create_utm_link: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
58
|
-
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
59
|
-
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
61
|
-
}, undefined>;
|
|
62
|
-
}, undefined>;
|
|
63
|
-
type UpdateClientDocumentRequest = v.InferOutput<typeof UpdateClientDocumentRequest>;
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/entities/client/query.d.ts
|
|
66
|
-
declare const QueryStrapiSearchClients: v.ObjectSchema<{
|
|
67
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
68
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
69
|
-
readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
70
|
-
readonly teamwork_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
71
|
-
readonly teamwork_name: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
72
|
-
readonly gainapp_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
73
|
-
readonly utm_sheet_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
74
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
75
|
-
readonly is_hidden: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
76
|
-
readonly is_featured: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
77
|
-
readonly allow_create_utm_link: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
78
|
-
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
79
|
-
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
80
|
-
readonly classification: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["organic", "paid"], undefined>, undefined>, v.MaxLengthAction<("organic" | "paid")[], 2, undefined>]>, undefined>;
|
|
81
|
-
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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link: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_organic_social:ASC" | "is_paid_media:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "is_hidden:ASC" | "is_hidden:DESC" | "is_featured:ASC" | "teamwork_id:ASC" | "teamwork_name:ASC" | "utm_sheet_id:ASC" | "allow_create_utm_link:ASC" | "is_featured:DESC" | "teamwork_id:DESC" | "teamwork_name:DESC" | "utm_sheet_id:DESC" | "allow_create_utm_link:DESC")[], 13, undefined>]>, undefined>;
|
|
82
|
-
}, undefined>;
|
|
83
|
-
type QueryStrapiSearchClients = v.InferOutput<typeof QueryStrapiSearchClients>;
|
|
84
|
-
//#endregion
|
|
1
|
+
import { cn as CreateClientDocument, dn as ClientClassification, fn as QuerySortClients, gn as LIMIT_CLIENT_PAGINATION_MAX_SIZE, hn as LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE, ln as UpdateClientDocument, mn as CLIENT_SORT_KEYS, pn as CLIENT_CLASSIFICATIONS, s as ClientDocument, sn as QueryStrapiSearchClients, un as UpdateClientDocumentRequest } from "../../index-GUYqdxFh.mjs";
|
|
85
2
|
export { CLIENT_CLASSIFICATIONS, CLIENT_SORT_KEYS, ClientClassification, ClientDocument, CreateClientDocument, LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_PAGINATION_MAX_SIZE, QuerySortClients, QueryStrapiSearchClients, UpdateClientDocument, UpdateClientDocumentRequest };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../regex-BnKGcdS4.mjs";
|
|
2
2
|
import { d as VStringMinMax, i as VSize, l as VStringMax, r as VPage } from "../../validators-P5E_3qzc.mjs";
|
|
3
|
-
import { a as SAssociateOneEntity } from "../../
|
|
4
|
-
import {
|
|
3
|
+
import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
|
|
4
|
+
import { r as ClientDocument } from "../../document-DUHPXtbm.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/client/constants.ts
|
|
7
7
|
const LIMIT_CLIENT_PAGINATION_DEFAULT_SIZE = 20;
|
|
@@ -1,11 +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
3
|
require("../../regex-Cl5goNwp.cjs");
|
|
5
4
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
-
const
|
|
7
|
-
const require_document
|
|
8
|
-
const require_document$2 = require("../../document-Ccszj8lR.cjs");
|
|
5
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
6
|
+
const require_document = require("../../document-zu6-DmQT.cjs");
|
|
9
7
|
let valibot = require("valibot");
|
|
10
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
11
9
|
//#region src/entities/client-content-pillar/constants.ts
|
|
@@ -20,30 +18,22 @@ const CLIENT_CONTENT_PILLAR_SORT_KEYS = [
|
|
|
20
18
|
"updatedAt"
|
|
21
19
|
];
|
|
22
20
|
//#endregion
|
|
23
|
-
//#region src/entities/client-content-pillar/document.ts
|
|
24
|
-
const ClientContentPillarDocument = valibot.object({
|
|
25
|
-
...require_document.BaseDocument.entries,
|
|
26
|
-
is_active: valibot.boolean(),
|
|
27
|
-
client: valibot.optional(valibot.nullable(valibot.lazy(() => require_document$1.ClientDocument))),
|
|
28
|
-
content_pillar: valibot.optional(valibot.nullable(valibot.lazy(() => require_document$2.ContentPillarDocument)))
|
|
29
|
-
});
|
|
30
|
-
//#endregion
|
|
31
21
|
//#region src/entities/client-content-pillar/fields.ts
|
|
32
22
|
const QuerySortClientContentPillars = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(CLIENT_CONTENT_PILLAR_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(CLIENT_CONTENT_PILLAR_SORT_KEYS.length)));
|
|
33
23
|
//#endregion
|
|
34
24
|
//#region src/entities/client-content-pillar/mutation.ts
|
|
35
25
|
const CreateClientContentPillarDocument = valibot.object({
|
|
36
26
|
is_active: valibot.optional(valibot.boolean()),
|
|
37
|
-
client: valibot.optional(
|
|
38
|
-
content_pillar: valibot.optional(
|
|
27
|
+
client: valibot.optional(require_relationships.SAssociateOneEntity),
|
|
28
|
+
content_pillar: valibot.optional(require_relationships.SAssociateOneEntity)
|
|
39
29
|
});
|
|
40
30
|
const UpdateClientContentPillarDocument = valibot.object({
|
|
41
31
|
is_active: valibot.optional(valibot.boolean()),
|
|
42
|
-
client: valibot.optional(
|
|
43
|
-
content_pillar: valibot.optional(
|
|
32
|
+
client: valibot.optional(require_relationships.SAssociateOneEntity),
|
|
33
|
+
content_pillar: valibot.optional(require_relationships.SAssociateOneEntity)
|
|
44
34
|
});
|
|
45
35
|
const UpdateClientContentPillarDocumentRequest = valibot.object({
|
|
46
|
-
documentId:
|
|
36
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
47
37
|
data: UpdateClientContentPillarDocument
|
|
48
38
|
});
|
|
49
39
|
//#endregion
|
|
@@ -53,14 +43,14 @@ const QueryStrapiSearchClientContentPillars = valibot.object({
|
|
|
53
43
|
size: require_validators.VSize(100),
|
|
54
44
|
is_active: valibot.optional(valibot.boolean()),
|
|
55
45
|
client_id: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
56
|
-
clients: valibot.optional(
|
|
46
|
+
clients: valibot.optional(require_relationships.SQueryManyEntities),
|
|
57
47
|
content_pillar_id: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
58
|
-
content_pillars: valibot.optional(
|
|
48
|
+
content_pillars: valibot.optional(require_relationships.SQueryManyEntities),
|
|
59
49
|
sort: QuerySortClientContentPillars
|
|
60
50
|
});
|
|
61
51
|
//#endregion
|
|
62
52
|
exports.CLIENT_CONTENT_PILLAR_SORT_KEYS = CLIENT_CONTENT_PILLAR_SORT_KEYS;
|
|
63
|
-
exports.ClientContentPillarDocument = ClientContentPillarDocument;
|
|
53
|
+
exports.ClientContentPillarDocument = require_document.ClientContentPillarDocument;
|
|
64
54
|
exports.CreateClientContentPillarDocument = CreateClientContentPillarDocument;
|
|
65
55
|
exports.LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE;
|
|
66
56
|
exports.LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_MAX_SIZE;
|
|
@@ -1,49 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
|
|
4
|
-
//#region src/entities/client-content-pillar/constants.d.ts
|
|
5
|
-
declare const LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE = 10;
|
|
6
|
-
declare const LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_MAX_SIZE = 100;
|
|
7
|
-
declare const CLIENT_CONTENT_PILLAR_SORT_KEYS: readonly ["id", "is_active", "content_pillar.title", "content_pillar.slug", "createdAt", "updatedAt"];
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region src/entities/client-content-pillar/fields.d.ts
|
|
10
|
-
declare const QuerySortClientContentPillars: 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" | "content_pillar.title:ASC" | "content_pillar.slug:ASC" | "content_pillar.title:DESC" | "content_pillar.slug:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:DESC" | "content_pillar.title:ASC" | "content_pillar.slug:ASC" | "content_pillar.title:DESC" | "content_pillar.slug:DESC")[], 6, undefined>]>, undefined>;
|
|
11
|
-
type QuerySortClientContentPillars = v.InferOutput<typeof QuerySortClientContentPillars>;
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region src/entities/client-content-pillar/mutation.d.ts
|
|
14
|
-
declare const CreateClientContentPillarDocument: v.ObjectSchema<{
|
|
15
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
16
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
-
readonly content_pillar: 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 CreateClientContentPillarDocument = v.InferOutput<typeof CreateClientContentPillarDocument>;
|
|
20
|
-
declare const UpdateClientContentPillarDocument: v.ObjectSchema<{
|
|
21
|
-
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
22
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
-
readonly content_pillar: 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 UpdateClientContentPillarDocument = v.InferOutput<typeof UpdateClientContentPillarDocument>;
|
|
26
|
-
declare const UpdateClientContentPillarDocumentRequest: 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 is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
30
|
-
readonly client: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
|
-
readonly content_pillar: 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 UpdateClientContentPillarDocumentRequest = v.InferOutput<typeof UpdateClientContentPillarDocumentRequest>;
|
|
35
|
-
//#endregion
|
|
36
|
-
//#region src/entities/client-content-pillar/query.d.ts
|
|
37
|
-
declare const QueryStrapiSearchClientContentPillars: 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 is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
41
|
-
readonly client_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
42
|
-
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>;
|
|
43
|
-
readonly content_pillar_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
-
readonly content_pillars: 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>;
|
|
45
|
-
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" | "content_pillar.title:ASC" | "content_pillar.slug:ASC" | "content_pillar.title:DESC" | "content_pillar.slug:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "is_active:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "is_active:DESC" | "content_pillar.title:ASC" | "content_pillar.slug:ASC" | "content_pillar.title:DESC" | "content_pillar.slug:DESC")[], 6, undefined>]>, undefined>;
|
|
46
|
-
}, undefined>;
|
|
47
|
-
type QueryStrapiSearchClientContentPillars = v.InferOutput<typeof QueryStrapiSearchClientContentPillars>;
|
|
48
|
-
//#endregion
|
|
1
|
+
import { a as QuerySortClientContentPillars, cr as LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, i as UpdateClientContentPillarDocumentRequest, lr as LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, n as CreateClientContentPillarDocument, o as ClientContentPillarDocument, r as UpdateClientContentPillarDocument, sr as CLIENT_CONTENT_PILLAR_SORT_KEYS, t as QueryStrapiSearchClientContentPillars } from "../../index-Cb8BnFcL.cjs";
|
|
49
2
|
export { CLIENT_CONTENT_PILLAR_SORT_KEYS, ClientContentPillarDocument, CreateClientContentPillarDocument, LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_DEFAULT_SIZE, LIMIT_CLIENT_CONTENT_PILLAR_PAGINATION_MAX_SIZE, QuerySortClientContentPillars, QueryStrapiSearchClientContentPillars, UpdateClientContentPillarDocument, UpdateClientContentPillarDocumentRequest };
|