@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
|
@@ -3,7 +3,7 @@ const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
|
3
3
|
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
4
|
const require_regex = require("../../regex-Cl5goNwp.cjs");
|
|
5
5
|
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
-
const
|
|
6
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/lead/document.ts
|
|
@@ -53,7 +53,7 @@ const UpdateLeadDocument = valibot.object({
|
|
|
53
53
|
captcha: require_validators.VStringMax(require_regex.LIMIT_LONG_STRING_MAX_LENGTH)
|
|
54
54
|
});
|
|
55
55
|
const UpdateLeadDocumentRequest = valibot.object({
|
|
56
|
-
documentId:
|
|
56
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
57
57
|
data: UpdateLeadDocument
|
|
58
58
|
});
|
|
59
59
|
//#endregion
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as BaseDocument } from "../../document-Bqoi1MdT.mjs";
|
|
2
2
|
import { c as LIMIT_LONG_STRING_MAX_LENGTH, l as LIMIT_MAX_DESTINATION } from "../../regex-BnKGcdS4.mjs";
|
|
3
3
|
import { d as VStringMinMax, l as VStringMax, o as VStringEmail, p as VStringPhone } from "../../validators-P5E_3qzc.mjs";
|
|
4
|
-
import { a as SAssociateOneEntity } from "../../
|
|
4
|
+
import { a as SAssociateOneEntity } from "../../relationships-BosK0kyG.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/lead/document.ts
|
|
7
7
|
const LeadDocument = v.object({
|
|
@@ -1,10 +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
|
|
7
|
-
const
|
|
5
|
+
const require_relationships = require("../../relationships-CWVJebkQ.cjs");
|
|
6
|
+
const require_document = require("../../document-zu6-DmQT.cjs");
|
|
8
7
|
let valibot = require("valibot");
|
|
9
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
9
|
//#region src/entities/media-content-type/constants.ts
|
|
@@ -34,18 +33,6 @@ const MEDIA_CONTENT_TYPE_SORT_KEYS = [
|
|
|
34
33
|
"media_creative_formats.updatedAt"
|
|
35
34
|
];
|
|
36
35
|
//#endregion
|
|
37
|
-
//#region src/entities/media-content-type/document.ts
|
|
38
|
-
const MediaContentTypeDocument = valibot.object({
|
|
39
|
-
...require_document.BaseDocument.entries,
|
|
40
|
-
title: valibot.string(),
|
|
41
|
-
slug: valibot.string(),
|
|
42
|
-
is_active: valibot.boolean(),
|
|
43
|
-
is_organic_social: valibot.boolean(),
|
|
44
|
-
is_paid_media: valibot.boolean(),
|
|
45
|
-
description: valibot.nullable(valibot.string()),
|
|
46
|
-
information: valibot.nullable(valibot.array(require_components_shared_index.RichTextBlock))
|
|
47
|
-
});
|
|
48
|
-
//#endregion
|
|
49
36
|
//#region src/entities/media-content-type/fields.ts
|
|
50
37
|
const QuerySortMediaContentTypes = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_CONTENT_TYPE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_CONTENT_TYPE_SORT_KEYS.length)));
|
|
51
38
|
//#endregion
|
|
@@ -57,8 +44,8 @@ const CreateMediaContentTypeDocument = valibot.object({
|
|
|
57
44
|
is_organic_social: valibot.boolean(),
|
|
58
45
|
is_paid_media: valibot.boolean(),
|
|
59
46
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
60
|
-
media_platforms: valibot.optional(
|
|
61
|
-
media_creative_formats: valibot.optional(
|
|
47
|
+
media_platforms: valibot.optional(require_relationships.SAssociateManyEntities),
|
|
48
|
+
media_creative_formats: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
62
49
|
});
|
|
63
50
|
const UpdateMediaContentTypeDocument = valibot.object({
|
|
64
51
|
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
@@ -67,11 +54,11 @@ const UpdateMediaContentTypeDocument = valibot.object({
|
|
|
67
54
|
is_organic_social: valibot.optional(valibot.boolean()),
|
|
68
55
|
is_paid_media: valibot.optional(valibot.boolean()),
|
|
69
56
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
70
|
-
media_platforms: valibot.optional(
|
|
71
|
-
media_creative_formats: valibot.optional(
|
|
57
|
+
media_platforms: valibot.optional(require_relationships.SAssociateManyEntities),
|
|
58
|
+
media_creative_formats: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
72
59
|
});
|
|
73
60
|
const UpdateMediaContentTypeDocumentRequest = valibot.object({
|
|
74
|
-
documentId:
|
|
61
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
75
62
|
data: UpdateMediaContentTypeDocument
|
|
76
63
|
});
|
|
77
64
|
//#endregion
|
|
@@ -84,8 +71,8 @@ const QueryStrapiSearchMediaContentTypes = valibot.object({
|
|
|
84
71
|
is_active: valibot.optional(valibot.boolean()),
|
|
85
72
|
is_organic_social: valibot.optional(valibot.boolean()),
|
|
86
73
|
is_paid_media: valibot.optional(valibot.boolean()),
|
|
87
|
-
media_platforms: valibot.optional(
|
|
88
|
-
media_creative_formats: valibot.optional(
|
|
74
|
+
media_platforms: valibot.optional(require_relationships.SQueryManyEntities),
|
|
75
|
+
media_creative_formats: valibot.optional(require_relationships.SQueryManyEntities),
|
|
89
76
|
sort: QuerySortMediaContentTypes
|
|
90
77
|
});
|
|
91
78
|
//#endregion
|
|
@@ -93,7 +80,7 @@ exports.CreateMediaContentTypeDocument = CreateMediaContentTypeDocument;
|
|
|
93
80
|
exports.LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE;
|
|
94
81
|
exports.LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE;
|
|
95
82
|
exports.MEDIA_CONTENT_TYPE_SORT_KEYS = MEDIA_CONTENT_TYPE_SORT_KEYS;
|
|
96
|
-
exports.MediaContentTypeDocument = MediaContentTypeDocument;
|
|
83
|
+
exports.MediaContentTypeDocument = require_document.MediaContentTypeDocument;
|
|
97
84
|
exports.QuerySortMediaContentTypes = QuerySortMediaContentTypes;
|
|
98
85
|
exports.QueryStrapiSearchMediaContentTypes = QueryStrapiSearchMediaContentTypes;
|
|
99
86
|
exports.UpdateMediaContentTypeDocument = UpdateMediaContentTypeDocument;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as MediaContentTypeDocument } from "../../index-Cb8BnFcL.cjs";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/media-content-type/constants.d.ts
|
|
@@ -7,7 +7,7 @@ declare const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = 1000;
|
|
|
7
7
|
declare const MEDIA_CONTENT_TYPE_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt", "media_creative_formats.title", "media_creative_formats.slug", "media_creative_formats.is_active", "media_creative_formats.createdAt", "media_creative_formats.updatedAt"];
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/entities/media-content-type/fields.d.ts
|
|
10
|
-
declare const QuerySortMediaContentTypes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
10
|
+
declare const QuerySortMediaContentTypes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
11
11
|
type QuerySortMediaContentTypes = v.InferOutput<typeof QuerySortMediaContentTypes>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/entities/media-content-type/mutation.d.ts
|
|
@@ -59,7 +59,7 @@ declare const QueryStrapiSearchMediaContentTypes: v.ObjectSchema<{
|
|
|
59
59
|
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
60
|
readonly media_platforms: 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>;
|
|
61
61
|
readonly media_creative_formats: 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>;
|
|
62
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
62
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
63
63
|
}, undefined>;
|
|
64
64
|
type QueryStrapiSearchMediaContentTypes = v.InferOutput<typeof QueryStrapiSearchMediaContentTypes>;
|
|
65
65
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ar as MediaContentTypeDocument } from "../../index-GUYqdxFh.mjs";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/media-content-type/constants.d.ts
|
|
@@ -7,7 +7,7 @@ declare const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_MAX_SIZE = 1000;
|
|
|
7
7
|
declare const MEDIA_CONTENT_TYPE_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt", "media_creative_formats.title", "media_creative_formats.slug", "media_creative_formats.is_active", "media_creative_formats.createdAt", "media_creative_formats.updatedAt"];
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/entities/media-content-type/fields.d.ts
|
|
10
|
-
declare const QuerySortMediaContentTypes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
10
|
+
declare const QuerySortMediaContentTypes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
11
11
|
type QuerySortMediaContentTypes = v.InferOutput<typeof QuerySortMediaContentTypes>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/entities/media-content-type/mutation.d.ts
|
|
@@ -59,7 +59,7 @@ declare const QueryStrapiSearchMediaContentTypes: v.ObjectSchema<{
|
|
|
59
59
|
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
60
60
|
readonly media_platforms: 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>;
|
|
61
61
|
readonly media_creative_formats: 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>;
|
|
62
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
62
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "media_creative_formats.title:ASC" | "media_creative_formats.slug:ASC" | "media_creative_formats.is_active:ASC" | "media_creative_formats.createdAt:ASC" | "media_creative_formats.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC" | "media_creative_formats.title:DESC" | "media_creative_formats.slug:DESC" | "media_creative_formats.is_active:DESC" | "media_creative_formats.createdAt:DESC" | "media_creative_formats.updatedAt:DESC")[], 21, undefined>]>, undefined>;
|
|
63
63
|
}, undefined>;
|
|
64
64
|
type QueryStrapiSearchMediaContentTypes = v.InferOutput<typeof QueryStrapiSearchMediaContentTypes>;
|
|
65
65
|
//#endregion
|
|
@@ -1,8 +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 "../../
|
|
5
|
-
import {
|
|
3
|
+
import { a as SAssociateOneEntity, i as SAssociateManyEntities, s as SQueryManyEntities } from "../../relationships-BosK0kyG.mjs";
|
|
4
|
+
import { I as MediaContentTypeDocument } from "../../document-DUHPXtbm.mjs";
|
|
6
5
|
import * as v from "valibot";
|
|
7
6
|
//#region src/entities/media-content-type/constants.ts
|
|
8
7
|
const LIMIT_MEDIA_CONTENT_TYPE_PAGINATION_DEFAULT_SIZE = 100;
|
|
@@ -31,18 +30,6 @@ const MEDIA_CONTENT_TYPE_SORT_KEYS = [
|
|
|
31
30
|
"media_creative_formats.updatedAt"
|
|
32
31
|
];
|
|
33
32
|
//#endregion
|
|
34
|
-
//#region src/entities/media-content-type/document.ts
|
|
35
|
-
const MediaContentTypeDocument = v.object({
|
|
36
|
-
...BaseDocument.entries,
|
|
37
|
-
title: v.string(),
|
|
38
|
-
slug: v.string(),
|
|
39
|
-
is_active: v.boolean(),
|
|
40
|
-
is_organic_social: v.boolean(),
|
|
41
|
-
is_paid_media: v.boolean(),
|
|
42
|
-
description: v.nullable(v.string()),
|
|
43
|
-
information: v.nullable(v.array(RichTextBlock))
|
|
44
|
-
});
|
|
45
|
-
//#endregion
|
|
46
33
|
//#region src/entities/media-content-type/fields.ts
|
|
47
34
|
const QuerySortMediaContentTypes = v.optional(v.pipe(v.array(v.picklist(MEDIA_CONTENT_TYPE_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(MEDIA_CONTENT_TYPE_SORT_KEYS.length)));
|
|
48
35
|
//#endregion
|
|
@@ -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-zu6-DmQT.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/media-creative-format/constants.ts
|
|
@@ -25,15 +25,6 @@ const MEDIA_CREATIVE_FORMAT_SORT_KEYS = [
|
|
|
25
25
|
"media_content_types.updatedAt"
|
|
26
26
|
];
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region src/entities/media-creative-format/document.ts
|
|
29
|
-
const MediaCreativeFormatDocument = valibot.object({
|
|
30
|
-
...require_document.BaseDocument.entries,
|
|
31
|
-
title: valibot.string(),
|
|
32
|
-
slug: valibot.string(),
|
|
33
|
-
is_active: valibot.boolean(),
|
|
34
|
-
description: valibot.nullable(valibot.string())
|
|
35
|
-
});
|
|
36
|
-
//#endregion
|
|
37
28
|
//#region src/entities/media-creative-format/fields.ts
|
|
38
29
|
const QuerySortMediaCreativeFormats = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_CREATIVE_FORMAT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_CREATIVE_FORMAT_SORT_KEYS.length)));
|
|
39
30
|
//#endregion
|
|
@@ -43,17 +34,17 @@ const CreateMediaCreativeFormatDocument = valibot.object({
|
|
|
43
34
|
slug: require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG),
|
|
44
35
|
is_active: valibot.boolean(),
|
|
45
36
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
46
|
-
media_content_types: valibot.optional(
|
|
37
|
+
media_content_types: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
47
38
|
});
|
|
48
39
|
const UpdateMediaCreativeFormatDocument = valibot.object({
|
|
49
40
|
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
50
41
|
slug: valibot.optional(require_validators.VStringMinMaxRegex(1, 255, require_regex.REGEX_URL_SLUG, require_regex.ERROR_MESSAGE_REGEX_URL_SLUG)),
|
|
51
42
|
is_active: valibot.optional(valibot.boolean()),
|
|
52
43
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
53
|
-
media_content_types: valibot.optional(
|
|
44
|
+
media_content_types: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
54
45
|
});
|
|
55
46
|
const UpdateMediaCreativeFormatDocumentRequest = valibot.object({
|
|
56
|
-
documentId:
|
|
47
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
57
48
|
data: UpdateMediaCreativeFormatDocument
|
|
58
49
|
});
|
|
59
50
|
//#endregion
|
|
@@ -64,7 +55,7 @@ const QueryStrapiSearchMediaCreativeFormats = valibot.object({
|
|
|
64
55
|
title: valibot.optional(require_validators.VStringMax()),
|
|
65
56
|
slug: valibot.optional(require_validators.VStringMax()),
|
|
66
57
|
is_active: valibot.optional(valibot.boolean()),
|
|
67
|
-
media_content_types: valibot.optional(
|
|
58
|
+
media_content_types: valibot.optional(require_relationships.SQueryManyEntities),
|
|
68
59
|
sort: QuerySortMediaCreativeFormats
|
|
69
60
|
});
|
|
70
61
|
//#endregion
|
|
@@ -72,7 +63,7 @@ exports.CreateMediaCreativeFormatDocument = CreateMediaCreativeFormatDocument;
|
|
|
72
63
|
exports.LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE = LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE;
|
|
73
64
|
exports.LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE = LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE;
|
|
74
65
|
exports.MEDIA_CREATIVE_FORMAT_SORT_KEYS = MEDIA_CREATIVE_FORMAT_SORT_KEYS;
|
|
75
|
-
exports.MediaCreativeFormatDocument = MediaCreativeFormatDocument;
|
|
66
|
+
exports.MediaCreativeFormatDocument = require_document.MediaCreativeFormatDocument;
|
|
76
67
|
exports.QuerySortMediaCreativeFormats = QuerySortMediaCreativeFormats;
|
|
77
68
|
exports.QueryStrapiSearchMediaCreativeFormats = QueryStrapiSearchMediaCreativeFormats;
|
|
78
69
|
exports.UpdateMediaCreativeFormatDocument = UpdateMediaCreativeFormatDocument;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { or as MediaCreativeFormatDocument } from "../../index-Cb8BnFcL.cjs";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/media-creative-format/constants.d.ts
|
|
@@ -7,7 +7,7 @@ declare const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE = 1000;
|
|
|
7
7
|
declare const MEDIA_CREATIVE_FORMAT_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "createdAt", "updatedAt", "media_content_types.title", "media_content_types.slug", "media_content_types.is_active", "media_content_types.is_organic_social", "media_content_types.is_paid_media", "media_content_types.createdAt", "media_content_types.updatedAt"];
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/entities/media-creative-format/fields.d.ts
|
|
10
|
-
declare const QuerySortMediaCreativeFormats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
10
|
+
declare const QuerySortMediaCreativeFormats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], 13, undefined>]>, undefined>;
|
|
11
11
|
type QuerySortMediaCreativeFormats = v.InferOutput<typeof QuerySortMediaCreativeFormats>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/entities/media-creative-format/mutation.d.ts
|
|
@@ -47,7 +47,7 @@ declare const QueryStrapiSearchMediaCreativeFormats: v.ObjectSchema<{
|
|
|
47
47
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
49
49
|
readonly media_content_types: 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>;
|
|
50
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
50
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], 13, undefined>]>, undefined>;
|
|
51
51
|
}, undefined>;
|
|
52
52
|
type QueryStrapiSearchMediaCreativeFormats = v.InferOutput<typeof QueryStrapiSearchMediaCreativeFormats>;
|
|
53
53
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { or as MediaCreativeFormatDocument } from "../../index-GUYqdxFh.mjs";
|
|
2
2
|
import * as v from "valibot";
|
|
3
3
|
|
|
4
4
|
//#region src/entities/media-creative-format/constants.d.ts
|
|
@@ -7,7 +7,7 @@ declare const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_MAX_SIZE = 1000;
|
|
|
7
7
|
declare const MEDIA_CREATIVE_FORMAT_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "createdAt", "updatedAt", "media_content_types.title", "media_content_types.slug", "media_content_types.is_active", "media_content_types.is_organic_social", "media_content_types.is_paid_media", "media_content_types.createdAt", "media_content_types.updatedAt"];
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/entities/media-creative-format/fields.d.ts
|
|
10
|
-
declare const QuerySortMediaCreativeFormats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
10
|
+
declare const QuerySortMediaCreativeFormats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], 13, undefined>]>, undefined>;
|
|
11
11
|
type QuerySortMediaCreativeFormats = v.InferOutput<typeof QuerySortMediaCreativeFormats>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/entities/media-creative-format/mutation.d.ts
|
|
@@ -47,7 +47,7 @@ declare const QueryStrapiSearchMediaCreativeFormats: v.ObjectSchema<{
|
|
|
47
47
|
readonly slug: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
48
48
|
readonly is_active: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
49
49
|
readonly media_content_types: 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>;
|
|
50
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
50
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "media_content_types.title:ASC" | "media_content_types.slug:ASC" | "media_content_types.is_active:ASC" | "media_content_types.is_organic_social:ASC" | "media_content_types.is_paid_media:ASC" | "media_content_types.createdAt:ASC" | "media_content_types.updatedAt:ASC" | "media_content_types.title:DESC" | "media_content_types.slug:DESC" | "media_content_types.is_active:DESC" | "media_content_types.is_organic_social:DESC" | "media_content_types.is_paid_media:DESC" | "media_content_types.createdAt:DESC" | "media_content_types.updatedAt:DESC")[], 13, undefined>]>, undefined>;
|
|
51
51
|
}, undefined>;
|
|
52
52
|
type QueryStrapiSearchMediaCreativeFormats = v.InferOutput<typeof QueryStrapiSearchMediaCreativeFormats>;
|
|
53
53
|
//#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, i as SAssociateManyEntities, s as SQueryManyEntities } from "../../
|
|
3
|
+
import { a as SAssociateOneEntity, i as SAssociateManyEntities, s as SQueryManyEntities } from "../../relationships-BosK0kyG.mjs";
|
|
4
|
+
import { L as MediaCreativeFormatDocument } from "../../document-DUHPXtbm.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/media-creative-format/constants.ts
|
|
7
7
|
const LIMIT_MEDIA_CREATIVE_FORMAT_PAGINATION_DEFAULT_SIZE = 100;
|
|
@@ -22,15 +22,6 @@ const MEDIA_CREATIVE_FORMAT_SORT_KEYS = [
|
|
|
22
22
|
"media_content_types.updatedAt"
|
|
23
23
|
];
|
|
24
24
|
//#endregion
|
|
25
|
-
//#region src/entities/media-creative-format/document.ts
|
|
26
|
-
const MediaCreativeFormatDocument = v.object({
|
|
27
|
-
...BaseDocument.entries,
|
|
28
|
-
title: v.string(),
|
|
29
|
-
slug: v.string(),
|
|
30
|
-
is_active: v.boolean(),
|
|
31
|
-
description: v.nullable(v.string())
|
|
32
|
-
});
|
|
33
|
-
//#endregion
|
|
34
25
|
//#region src/entities/media-creative-format/fields.ts
|
|
35
26
|
const QuerySortMediaCreativeFormats = v.optional(v.pipe(v.array(v.picklist(MEDIA_CREATIVE_FORMAT_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), v.maxLength(MEDIA_CREATIVE_FORMAT_SORT_KEYS.length)));
|
|
36
27
|
//#endregion
|
|
@@ -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-zu6-DmQT.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/media-medium/constants.ts
|
|
@@ -28,17 +28,6 @@ const MEDIA_MEDIUM_SORT_KEYS = [
|
|
|
28
28
|
"media_platforms.updatedAt"
|
|
29
29
|
];
|
|
30
30
|
//#endregion
|
|
31
|
-
//#region src/entities/media-medium/document.ts
|
|
32
|
-
const MediaMediumDocument = valibot.object({
|
|
33
|
-
...require_document.BaseDocument.entries,
|
|
34
|
-
title: valibot.string(),
|
|
35
|
-
slug: valibot.string(),
|
|
36
|
-
is_active: valibot.boolean(),
|
|
37
|
-
is_organic_social: valibot.boolean(),
|
|
38
|
-
is_paid_media: valibot.boolean(),
|
|
39
|
-
description: valibot.nullable(valibot.string())
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
31
|
//#region src/entities/media-medium/fields.ts
|
|
43
32
|
const QuerySortMediaMediums = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(MEDIA_MEDIUM_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(MEDIA_MEDIUM_SORT_KEYS.length)));
|
|
44
33
|
//#endregion
|
|
@@ -50,7 +39,7 @@ const CreateMediaMediumDocument = valibot.object({
|
|
|
50
39
|
is_organic_social: valibot.boolean(),
|
|
51
40
|
is_paid_media: valibot.boolean(),
|
|
52
41
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
53
|
-
media_platforms: valibot.optional(
|
|
42
|
+
media_platforms: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
54
43
|
});
|
|
55
44
|
const UpdateMediaMediumDocument = valibot.object({
|
|
56
45
|
title: valibot.optional(require_validators.VStringMinMax(1, 255)),
|
|
@@ -59,10 +48,10 @@ const UpdateMediaMediumDocument = valibot.object({
|
|
|
59
48
|
is_organic_social: valibot.optional(valibot.boolean()),
|
|
60
49
|
is_paid_media: valibot.optional(valibot.boolean()),
|
|
61
50
|
description: valibot.optional(valibot.nullable(require_validators.VStringMax(255))),
|
|
62
|
-
media_platforms: valibot.optional(
|
|
51
|
+
media_platforms: valibot.optional(require_relationships.SAssociateManyEntities)
|
|
63
52
|
});
|
|
64
53
|
const UpdateMediaMediumDocumentRequest = valibot.object({
|
|
65
|
-
documentId:
|
|
54
|
+
documentId: require_relationships.SAssociateOneEntity,
|
|
66
55
|
data: UpdateMediaMediumDocument
|
|
67
56
|
});
|
|
68
57
|
//#endregion
|
|
@@ -75,7 +64,7 @@ const QueryStrapiSearchMediaMediums = valibot.object({
|
|
|
75
64
|
is_active: valibot.optional(valibot.boolean()),
|
|
76
65
|
is_organic_social: valibot.optional(valibot.boolean()),
|
|
77
66
|
is_paid_media: valibot.optional(valibot.boolean()),
|
|
78
|
-
media_platforms: valibot.optional(
|
|
67
|
+
media_platforms: valibot.optional(require_relationships.SQueryManyEntities),
|
|
79
68
|
sort: QuerySortMediaMediums
|
|
80
69
|
});
|
|
81
70
|
//#endregion
|
|
@@ -83,7 +72,7 @@ exports.CreateMediaMediumDocument = CreateMediaMediumDocument;
|
|
|
83
72
|
exports.LIMIT_MEDIA_MEDIUM_PAGINATION_DEFAULT_SIZE = LIMIT_MEDIA_MEDIUM_PAGINATION_DEFAULT_SIZE;
|
|
84
73
|
exports.LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE = LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE;
|
|
85
74
|
exports.MEDIA_MEDIUM_SORT_KEYS = MEDIA_MEDIUM_SORT_KEYS;
|
|
86
|
-
exports.MediaMediumDocument = MediaMediumDocument;
|
|
75
|
+
exports.MediaMediumDocument = require_document.MediaMediumDocument;
|
|
87
76
|
exports.QuerySortMediaMediums = QuerySortMediaMediums;
|
|
88
77
|
exports.QueryStrapiSearchMediaMediums = QueryStrapiSearchMediaMediums;
|
|
89
78
|
exports.UpdateMediaMediumDocument = UpdateMediaMediumDocument;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ir as MediaMediumDocument } from "../../index-Cb8BnFcL.cjs";
|
|
1
2
|
import * as v from "valibot";
|
|
2
3
|
|
|
3
4
|
//#region src/entities/media-medium/constants.d.ts
|
|
@@ -5,24 +6,8 @@ declare const LIMIT_MEDIA_MEDIUM_PAGINATION_DEFAULT_SIZE = 100;
|
|
|
5
6
|
declare const LIMIT_MEDIA_MEDIUM_PAGINATION_MAX_SIZE = 1000;
|
|
6
7
|
declare const MEDIA_MEDIUM_SORT_KEYS: readonly ["id", "title", "slug", "is_active", "is_organic_social", "is_paid_media", "createdAt", "updatedAt", "media_platforms.title", "media_platforms.slug", "media_platforms.utm_key", "media_platforms.is_active", "media_platforms.is_organic_social", "media_platforms.is_paid_media", "media_platforms.createdAt", "media_platforms.updatedAt"];
|
|
7
8
|
//#endregion
|
|
8
|
-
//#region src/entities/media-medium/document.d.ts
|
|
9
|
-
declare const MediaMediumDocument: v.ObjectSchema<{
|
|
10
|
-
readonly title: v.StringSchema<undefined>;
|
|
11
|
-
readonly slug: v.StringSchema<undefined>;
|
|
12
|
-
readonly is_active: v.BooleanSchema<undefined>;
|
|
13
|
-
readonly is_organic_social: v.BooleanSchema<undefined>;
|
|
14
|
-
readonly is_paid_media: v.BooleanSchema<undefined>;
|
|
15
|
-
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
16
|
-
readonly id: v.NumberSchema<undefined>;
|
|
17
|
-
readonly documentId: v.StringSchema<undefined>;
|
|
18
|
-
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
19
|
-
readonly createdAt: v.StringSchema<undefined>;
|
|
20
|
-
readonly updatedAt: v.StringSchema<undefined>;
|
|
21
|
-
}, undefined>;
|
|
22
|
-
type MediaMediumDocument = v.InferOutput<typeof MediaMediumDocument>;
|
|
23
|
-
//#endregion
|
|
24
9
|
//#region src/entities/media-medium/fields.d.ts
|
|
25
|
-
declare const QuerySortMediaMediums: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
10
|
+
declare const QuerySortMediaMediums: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], 16, undefined>]>, undefined>;
|
|
26
11
|
type QuerySortMediaMediums = v.InferOutput<typeof QuerySortMediaMediums>;
|
|
27
12
|
//#endregion
|
|
28
13
|
//#region src/entities/media-medium/mutation.d.ts
|
|
@@ -70,7 +55,7 @@ declare const QueryStrapiSearchMediaMediums: v.ObjectSchema<{
|
|
|
70
55
|
readonly is_organic_social: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
71
56
|
readonly is_paid_media: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
72
57
|
readonly media_platforms: 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>;
|
|
73
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "
|
|
58
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "title:ASC" | "slug:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "title:DESC" | "slug:DESC" | "is_active:ASC" | "is_active:DESC" | "is_organic_social:ASC" | "is_paid_media:ASC" | "media_platforms.title:ASC" | "media_platforms.slug:ASC" | "media_platforms.utm_key:ASC" | "media_platforms.is_active:ASC" | "media_platforms.is_organic_social:ASC" | "media_platforms.is_paid_media:ASC" | "media_platforms.createdAt:ASC" | "media_platforms.updatedAt:ASC" | "is_organic_social:DESC" | "is_paid_media:DESC" | "media_platforms.title:DESC" | "media_platforms.slug:DESC" | "media_platforms.utm_key:DESC" | "media_platforms.is_active:DESC" | "media_platforms.is_organic_social:DESC" | "media_platforms.is_paid_media:DESC" | "media_platforms.createdAt:DESC" | "media_platforms.updatedAt:DESC")[], 16, undefined>]>, undefined>;
|
|
74
59
|
}, undefined>;
|
|
75
60
|
type QueryStrapiSearchMediaMediums = v.InferOutput<typeof QueryStrapiSearchMediaMediums>;
|
|
76
61
|
//#endregion
|