@getcommunity/gc-validators 0.0.286 → 0.0.288
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 +3 -3
- package/dist/base/index.mjs +3 -3
- package/dist/components/shared/index.cjs +22 -22
- package/dist/components/shared/index.mjs +22 -22
- package/dist/constants/index.cjs +1 -1
- package/dist/constants/index.d.cts +1 -1
- package/dist/constants/index.d.mts +1 -1
- package/dist/constants/index.mjs +1 -1
- package/dist/{document-Cxhs9JXi.d.mts → document-Bs5gh1PK.d.mts} +118 -19
- package/dist/{document-Cv0UyYmb.d.cts → document-DZnOyFC3.d.cts} +118 -19
- package/dist/entities/audit-log/mutation.cjs +1 -1
- package/dist/entities/audit-log/mutation.mjs +1 -1
- package/dist/entities/blog-post/fields.cjs +1 -1
- package/dist/entities/blog-post/fields.mjs +1 -1
- package/dist/entities/blog-post/query.cjs +1 -1
- package/dist/entities/blog-post/query.mjs +1 -1
- package/dist/entities/category/mutation.cjs +1 -1
- package/dist/entities/category/mutation.mjs +1 -1
- package/dist/entities/client/document.cjs +1 -1
- package/dist/entities/client/document.d.cts +1 -1
- package/dist/entities/client/document.d.mts +1 -1
- package/dist/entities/client/document.mjs +1 -1
- package/dist/entities/client/mutation.cjs +1 -1
- package/dist/entities/client/mutation.mjs +1 -1
- package/dist/entities/client-content-pillar/document.cjs +1 -1
- package/dist/entities/client-content-pillar/document.d.cts +1 -1
- package/dist/entities/client-content-pillar/document.d.mts +1 -1
- package/dist/entities/client-content-pillar/document.mjs +1 -1
- package/dist/entities/client-content-pillar/mutation.cjs +1 -1
- package/dist/entities/client-content-pillar/mutation.mjs +1 -1
- package/dist/entities/client-content-pillar/query.cjs +1 -1
- package/dist/entities/client-content-pillar/query.mjs +1 -1
- package/dist/entities/client-media-platform/document.cjs +1 -1
- package/dist/entities/client-media-platform/document.d.cts +1 -1
- package/dist/entities/client-media-platform/document.d.mts +1 -1
- package/dist/entities/client-media-platform/document.mjs +1 -1
- package/dist/entities/client-media-platform/mutation.cjs +1 -1
- package/dist/entities/client-media-platform/mutation.mjs +1 -1
- package/dist/entities/client-media-platform/query.cjs +1 -1
- package/dist/entities/client-media-platform/query.mjs +1 -1
- package/dist/entities/client-project/document.cjs +1 -1
- package/dist/entities/client-project/document.d.cts +1 -1
- package/dist/entities/client-project/document.d.mts +1 -1
- package/dist/entities/client-project/document.mjs +1 -1
- package/dist/entities/client-project/mutation.cjs +1 -1
- package/dist/entities/client-project/mutation.mjs +1 -1
- package/dist/entities/client-report/document.cjs +1 -1
- package/dist/entities/client-report/document.d.cts +1 -1
- package/dist/entities/client-report/document.d.mts +1 -1
- package/dist/entities/client-report/document.mjs +1 -1
- package/dist/entities/client-report/mutation.cjs +1 -1
- package/dist/entities/client-report/mutation.mjs +1 -1
- package/dist/entities/client-report/query.cjs +1 -1
- package/dist/entities/client-report/query.mjs +1 -1
- package/dist/entities/client-styleguide/document.cjs +1 -1
- package/dist/entities/client-styleguide/document.d.cts +1 -1
- package/dist/entities/client-styleguide/document.d.mts +1 -1
- package/dist/entities/client-styleguide/document.mjs +1 -1
- package/dist/entities/client-styleguide/mutation.cjs +1 -1
- package/dist/entities/client-styleguide/mutation.mjs +1 -1
- package/dist/entities/client-styleguide/query.cjs +1 -1
- package/dist/entities/client-styleguide/query.mjs +1 -1
- package/dist/entities/client-user/document.cjs +1 -1
- package/dist/entities/client-user/document.d.cts +1 -1
- package/dist/entities/client-user/document.d.mts +1 -1
- package/dist/entities/client-user/document.mjs +1 -1
- package/dist/entities/client-user/mutation.cjs +1 -1
- package/dist/entities/client-user/mutation.mjs +1 -1
- package/dist/entities/client-user/query.cjs +1 -1
- package/dist/entities/client-user/query.mjs +1 -1
- package/dist/entities/content-pillar/document.cjs +1 -1
- package/dist/entities/content-pillar/document.d.cts +1 -1
- package/dist/entities/content-pillar/document.d.mts +1 -1
- package/dist/entities/content-pillar/document.mjs +1 -1
- package/dist/entities/content-pillar/mutation.cjs +1 -1
- package/dist/entities/content-pillar/mutation.mjs +1 -1
- package/dist/entities/gcflytour/document.cjs +1 -1
- package/dist/entities/gcflytour/document.d.cts +1 -1
- package/dist/entities/gcflytour/document.d.mts +1 -1
- package/dist/entities/gcflytour/document.mjs +1 -1
- package/dist/entities/gcflytour/mutation.cjs +1 -1
- package/dist/entities/gcflytour/mutation.mjs +1 -1
- package/dist/entities/gcflytour/query.cjs +1 -1
- package/dist/entities/gcflytour/query.mjs +1 -1
- package/dist/entities/gcflytour-snap/document.cjs +1 -1
- package/dist/entities/gcflytour-snap/document.d.cts +1 -1
- package/dist/entities/gcflytour-snap/document.d.mts +1 -1
- package/dist/entities/gcflytour-snap/document.mjs +1 -1
- package/dist/entities/gcflytour-snap/mutation.cjs +1 -1
- package/dist/entities/gcflytour-snap/mutation.mjs +1 -1
- package/dist/entities/gcflytour-snap/query.cjs +1 -1
- package/dist/entities/gcflytour-snap/query.mjs +1 -1
- package/dist/entities/lead/mutation.cjs +1 -1
- package/dist/entities/lead/mutation.mjs +1 -1
- package/dist/entities/media-content-type/document.cjs +1 -1
- package/dist/entities/media-content-type/document.d.cts +1 -1
- package/dist/entities/media-content-type/document.d.mts +1 -1
- package/dist/entities/media-content-type/document.mjs +1 -1
- package/dist/entities/media-content-type/mutation.cjs +1 -1
- package/dist/entities/media-content-type/mutation.mjs +1 -1
- package/dist/entities/media-content-type/query.cjs +1 -1
- package/dist/entities/media-content-type/query.mjs +1 -1
- package/dist/entities/media-creative-format/document.cjs +1 -1
- package/dist/entities/media-creative-format/document.d.cts +1 -1
- package/dist/entities/media-creative-format/document.d.mts +1 -1
- package/dist/entities/media-creative-format/document.mjs +1 -1
- package/dist/entities/media-creative-format/mutation.cjs +1 -1
- package/dist/entities/media-creative-format/mutation.mjs +1 -1
- package/dist/entities/media-creative-format/query.cjs +1 -1
- package/dist/entities/media-creative-format/query.mjs +1 -1
- package/dist/entities/media-medium/document.cjs +1 -1
- package/dist/entities/media-medium/document.d.cts +1 -1
- package/dist/entities/media-medium/document.d.mts +1 -1
- package/dist/entities/media-medium/document.mjs +1 -1
- package/dist/entities/media-medium/mutation.cjs +1 -1
- package/dist/entities/media-medium/mutation.mjs +1 -1
- package/dist/entities/media-medium/query.cjs +1 -1
- package/dist/entities/media-medium/query.mjs +1 -1
- package/dist/entities/media-platform/document.cjs +1 -1
- package/dist/entities/media-platform/document.d.cts +1 -1
- package/dist/entities/media-platform/document.d.mts +1 -1
- package/dist/entities/media-platform/document.mjs +1 -1
- package/dist/entities/media-platform/mutation.cjs +1 -1
- package/dist/entities/media-platform/mutation.mjs +1 -1
- package/dist/entities/media-platform/query.cjs +1 -1
- package/dist/entities/media-platform/query.mjs +1 -1
- package/dist/entities/monday-workspace/document.cjs +1 -1
- package/dist/entities/monday-workspace/document.d.cts +1 -1
- package/dist/entities/monday-workspace/document.d.mts +1 -1
- package/dist/entities/monday-workspace/document.mjs +1 -1
- package/dist/entities/monday-workspace/mutation.cjs +1 -1
- package/dist/entities/monday-workspace/mutation.mjs +1 -1
- package/dist/entities/monday-workspace/query.cjs +1 -1
- package/dist/entities/monday-workspace/query.mjs +1 -1
- package/dist/entities/newsletter-signup/mutation.cjs +1 -1
- package/dist/entities/newsletter-signup/mutation.mjs +1 -1
- package/dist/entities/product-highlight/document.cjs +1 -1
- package/dist/entities/product-highlight/document.d.cts +1 -1
- package/dist/entities/product-highlight/document.d.mts +1 -1
- package/dist/entities/product-highlight/document.mjs +1 -1
- package/dist/entities/resume/mutation.cjs +1 -1
- package/dist/entities/resume/mutation.mjs +1 -1
- package/dist/entities/tag/mutation.cjs +1 -1
- package/dist/entities/tag/mutation.mjs +1 -1
- package/dist/entities/trend/mutation.cjs +1 -1
- package/dist/entities/trend/mutation.mjs +1 -1
- package/dist/entities/up-auth/mutation.d.cts +1 -103
- package/dist/entities/up-auth/mutation.d.mts +1 -103
- package/dist/entities/up-permission/document.cjs +1 -1
- package/dist/entities/up-permission/document.d.cts +1 -1
- package/dist/entities/up-permission/document.d.mts +1 -1
- package/dist/entities/up-permission/document.mjs +1 -1
- package/dist/entities/up-role/document.cjs +1 -1
- package/dist/entities/up-role/document.d.cts +1 -1
- package/dist/entities/up-role/document.d.mts +1 -1
- package/dist/entities/up-role/document.mjs +1 -1
- package/dist/entities/up-user/document.cjs +1 -1
- package/dist/entities/up-user/document.d.cts +1 -1
- package/dist/entities/up-user/document.d.mts +1 -1
- package/dist/entities/up-user/document.mjs +1 -1
- package/dist/entities/user-account/document.cjs +1 -1
- package/dist/entities/user-account/document.d.cts +1 -1
- package/dist/entities/user-account/document.d.mts +1 -1
- package/dist/entities/user-account/document.mjs +1 -1
- package/dist/entities/user-account/mutation.cjs +1 -1
- package/dist/entities/user-account/mutation.mjs +1 -1
- package/dist/entities/user-account/query.cjs +1 -1
- package/dist/entities/user-account/query.mjs +1 -1
- package/dist/entities/utm-link-builder/mutation.cjs +1 -1
- package/dist/entities/utm-link-builder/mutation.mjs +1 -1
- package/dist/entities/utm-tracking-link/document.cjs +1 -1
- package/dist/entities/utm-tracking-link/document.d.cts +1 -1
- package/dist/entities/utm-tracking-link/document.d.mts +1 -1
- package/dist/entities/utm-tracking-link/document.mjs +1 -1
- package/dist/entities/utm-tracking-link/mutation.cjs +1 -1
- package/dist/entities/utm-tracking-link/mutation.mjs +1 -1
- package/dist/entities/utm-tracking-link/query.cjs +1 -1
- package/dist/entities/utm-tracking-link/query.mjs +1 -1
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/{query-Do47fHv4.mjs → query-Bflh6Vd8.mjs} +1 -1
- package/dist/{query--hdL0jLk.cjs → query-iF2acn2f.cjs} +1 -1
- package/dist/{relationships-CwgZi4jd.mjs → relationships-fCFeEt1G.mjs} +1 -1
- package/dist/{relationships-C7b2ihtC.cjs → relationships-yGO2L8BR.cjs} +1 -1
- package/dist/{strapi-CnCUbaCr.cjs → strapi-B79JabkQ.cjs} +1 -1
- package/dist/{strapi-BeHKn-hK.mjs → strapi-BgfOZjWn.mjs} +1 -1
- package/dist/{strapi-C2LQu2Rj.mjs → strapi-CbzOOgDf.mjs} +1 -1
- package/dist/{strapi-BlZ6ZCIW.cjs → strapi-So9y0Azv.cjs} +1 -1
- package/dist/utilities/index.d.cts +1 -2
- package/dist/utilities/index.d.mts +1 -2
- package/package.json +7 -6
- package/dist/{document-DmlmGzg1.cjs → document-DdrgMt8B.cjs} +1 -1
- package/dist/{document-D8qKQkPt.mjs → document-u7wNZghX.mjs} +1 -1
package/dist/base/index.cjs
CHANGED
|
@@ -7,9 +7,9 @@ const require_json = require("../json-Tsc8HEYI.cjs");
|
|
|
7
7
|
const require_theme = require("../theme-BNknkRG9.cjs");
|
|
8
8
|
const require_media_upload = require("../media-upload-CZiaeBiQ.cjs");
|
|
9
9
|
const require_sort = require("../sort-CYllFl6q.cjs");
|
|
10
|
-
const require_query = require("../query
|
|
11
|
-
const require_strapi = require("../strapi-
|
|
12
|
-
const require_relationships = require("../relationships-
|
|
10
|
+
const require_query = require("../query-iF2acn2f.cjs");
|
|
11
|
+
const require_strapi = require("../strapi-B79JabkQ.cjs");
|
|
12
|
+
const require_relationships = require("../relationships-yGO2L8BR.cjs");
|
|
13
13
|
let valibot = require("valibot");
|
|
14
14
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
15
15
|
//#region src/base/forms.ts
|
package/dist/base/index.mjs
CHANGED
|
@@ -5,9 +5,9 @@ import { t as JsonSchema } from "../json-BJPzCgmI.mjs";
|
|
|
5
5
|
import { S as StrapiLinkTarget, _ as STRAPI_LINK_REFERRER_POLICY, a as STRAPI_ICON_POSITION, b as StrapiLinkReferrerPolicy, c as STRAPI_THEME_OPTIONS, d as StrapiGapSizes, f as StrapiIconName, g as StrapiThemeOptions, h as StrapiTextColorOptions, i as STRAPI_ICON_NAME, l as StrapiBgColorOptions, m as StrapiLinkType, n as STRAPI_DIRECTION, o as STRAPI_LINK_TYPE, p as StrapiIconPosition, r as STRAPI_GAP_SIZES, s as STRAPI_TEXT_COLOR_OPTIONS, t as STRAPI_BG_COLOR_OPTIONS, u as StrapiDirection, v as STRAPI_LINK_REL, x as StrapiLinkRel, y as STRAPI_LINK_TARGET } from "../theme-Dtb4Jddr.mjs";
|
|
6
6
|
import { n as MediaFormats, r as MediaUploadDocument, t as MediaFormat } from "../media-upload-CnRvtycg.mjs";
|
|
7
7
|
import { n as SORT_ORDER, r as SortOrder, t as QuerySortValues } from "../sort-FYsWXlaD.mjs";
|
|
8
|
-
import { a as QueryStrapiByPhone, i as QueryStrapiByName, n as QueryStrapiByEmail, o as QueryStrapiBySlug, r as QueryStrapiById, s as QueryStrapiPaginated, t as QueryStrapiByDocumentId } from "../query-
|
|
9
|
-
import { i as ValidStrapiSpecialEntity, n as ValidStrapiCollectionEntity, r as ValidStrapiSingleEntity, t as ContentStatus } from "../strapi-
|
|
10
|
-
import { a as AssociateManyEntitiesOptional, c as QueryManyEntities, i as AssociateManyEntities, l as SEntityPosition, n as AssociateEntityPositionDocumentRequest, o as AssociateOneEntity, r as AssociateEntityRelationshipRequest, s as AssociateOneEntityOptional, t as AssociateEntityPosition, u as SSetEntityRelationshipRequest } from "../relationships-
|
|
8
|
+
import { a as QueryStrapiByPhone, i as QueryStrapiByName, n as QueryStrapiByEmail, o as QueryStrapiBySlug, r as QueryStrapiById, s as QueryStrapiPaginated, t as QueryStrapiByDocumentId } from "../query-Bflh6Vd8.mjs";
|
|
9
|
+
import { i as ValidStrapiSpecialEntity, n as ValidStrapiCollectionEntity, r as ValidStrapiSingleEntity, t as ContentStatus } from "../strapi-BgfOZjWn.mjs";
|
|
10
|
+
import { a as AssociateManyEntitiesOptional, c as QueryManyEntities, i as AssociateManyEntities, l as SEntityPosition, n as AssociateEntityPositionDocumentRequest, o as AssociateOneEntity, r as AssociateEntityRelationshipRequest, s as AssociateOneEntityOptional, t as AssociateEntityPosition, u as SSetEntityRelationshipRequest } from "../relationships-fCFeEt1G.mjs";
|
|
11
11
|
import * as v from "valibot";
|
|
12
12
|
//#region src/base/forms.ts
|
|
13
13
|
const FormSelectInputOption = v.object({
|
|
@@ -7,28 +7,6 @@ const require_media_upload = require("../../media-upload-CZiaeBiQ.cjs");
|
|
|
7
7
|
const require_relation = require("../../relation-D8saD46Q.cjs");
|
|
8
8
|
let valibot = require("valibot");
|
|
9
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
10
|
-
//#region src/components/shared/rich-text-block.ts
|
|
11
|
-
const RichTextBlockChildren = valibot.object({
|
|
12
|
-
type: valibot.string(),
|
|
13
|
-
url: valibot.optional(valibot.string()),
|
|
14
|
-
text: valibot.optional(valibot.string()),
|
|
15
|
-
bold: valibot.optional(valibot.boolean()),
|
|
16
|
-
italic: valibot.optional(valibot.boolean()),
|
|
17
|
-
underline: valibot.optional(valibot.boolean())
|
|
18
|
-
});
|
|
19
|
-
const RichTextBlock = valibot.object({
|
|
20
|
-
type: valibot.string(),
|
|
21
|
-
children: valibot.array(RichTextBlockChildren)
|
|
22
|
-
});
|
|
23
|
-
const SharedRichTextBlock = valibot.object({
|
|
24
|
-
...require_component.BaseComponentId.entries,
|
|
25
|
-
content: valibot.optional(valibot.nullable(valibot.array(RichTextBlock)))
|
|
26
|
-
});
|
|
27
|
-
const ComponentSharedRichTextBlock = valibot.object({
|
|
28
|
-
...require_component.BaseComponent.entries,
|
|
29
|
-
...SharedRichTextBlock.entries
|
|
30
|
-
});
|
|
31
|
-
//#endregion
|
|
32
10
|
//#region src/components/shared/link.ts
|
|
33
11
|
const SharedLink = valibot.object({
|
|
34
12
|
...require_component.BaseComponentId.entries,
|
|
@@ -59,6 +37,28 @@ const ComponentSharedButton = valibot.object({
|
|
|
59
37
|
//#region src/components/shared/constants.ts
|
|
60
38
|
const META_SOCIAL_NETWORK = ["Facebook", "Twitter"];
|
|
61
39
|
//#endregion
|
|
40
|
+
//#region src/components/shared/rich-text-block.ts
|
|
41
|
+
const RichTextBlockChildren = valibot.object({
|
|
42
|
+
type: valibot.string(),
|
|
43
|
+
url: valibot.optional(valibot.string()),
|
|
44
|
+
text: valibot.optional(valibot.string()),
|
|
45
|
+
bold: valibot.optional(valibot.boolean()),
|
|
46
|
+
italic: valibot.optional(valibot.boolean()),
|
|
47
|
+
underline: valibot.optional(valibot.boolean())
|
|
48
|
+
});
|
|
49
|
+
const RichTextBlock = valibot.object({
|
|
50
|
+
type: valibot.string(),
|
|
51
|
+
children: valibot.array(RichTextBlockChildren)
|
|
52
|
+
});
|
|
53
|
+
const SharedRichTextBlock = valibot.object({
|
|
54
|
+
...require_component.BaseComponentId.entries,
|
|
55
|
+
content: valibot.optional(valibot.nullable(valibot.array(RichTextBlock)))
|
|
56
|
+
});
|
|
57
|
+
const ComponentSharedRichTextBlock = valibot.object({
|
|
58
|
+
...require_component.BaseComponent.entries,
|
|
59
|
+
...SharedRichTextBlock.entries
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
62
|
//#region src/components/shared/question-answer.ts
|
|
63
63
|
const SharedQuestionAnswer = valibot.object({
|
|
64
64
|
...require_component.BaseComponentId.entries,
|
|
@@ -4,28 +4,6 @@ import { S as StrapiLinkTarget, f as StrapiIconName, g as StrapiThemeOptions, p
|
|
|
4
4
|
import { r as MediaUploadDocument } from "../../media-upload-CnRvtycg.mjs";
|
|
5
5
|
import { r as VDocumentRelationOne } from "../../relation-CleGc56b.mjs";
|
|
6
6
|
import * as v from "valibot";
|
|
7
|
-
//#region src/components/shared/rich-text-block.ts
|
|
8
|
-
const RichTextBlockChildren = v.object({
|
|
9
|
-
type: v.string(),
|
|
10
|
-
url: v.optional(v.string()),
|
|
11
|
-
text: v.optional(v.string()),
|
|
12
|
-
bold: v.optional(v.boolean()),
|
|
13
|
-
italic: v.optional(v.boolean()),
|
|
14
|
-
underline: v.optional(v.boolean())
|
|
15
|
-
});
|
|
16
|
-
const RichTextBlock = v.object({
|
|
17
|
-
type: v.string(),
|
|
18
|
-
children: v.array(RichTextBlockChildren)
|
|
19
|
-
});
|
|
20
|
-
const SharedRichTextBlock = v.object({
|
|
21
|
-
...BaseComponentId.entries,
|
|
22
|
-
content: v.optional(v.nullable(v.array(RichTextBlock)))
|
|
23
|
-
});
|
|
24
|
-
const ComponentSharedRichTextBlock = v.object({
|
|
25
|
-
...BaseComponent.entries,
|
|
26
|
-
...SharedRichTextBlock.entries
|
|
27
|
-
});
|
|
28
|
-
//#endregion
|
|
29
7
|
//#region src/components/shared/link.ts
|
|
30
8
|
const SharedLink = v.object({
|
|
31
9
|
...BaseComponentId.entries,
|
|
@@ -56,6 +34,28 @@ const ComponentSharedButton = v.object({
|
|
|
56
34
|
//#region src/components/shared/constants.ts
|
|
57
35
|
const META_SOCIAL_NETWORK = ["Facebook", "Twitter"];
|
|
58
36
|
//#endregion
|
|
37
|
+
//#region src/components/shared/rich-text-block.ts
|
|
38
|
+
const RichTextBlockChildren = v.object({
|
|
39
|
+
type: v.string(),
|
|
40
|
+
url: v.optional(v.string()),
|
|
41
|
+
text: v.optional(v.string()),
|
|
42
|
+
bold: v.optional(v.boolean()),
|
|
43
|
+
italic: v.optional(v.boolean()),
|
|
44
|
+
underline: v.optional(v.boolean())
|
|
45
|
+
});
|
|
46
|
+
const RichTextBlock = v.object({
|
|
47
|
+
type: v.string(),
|
|
48
|
+
children: v.array(RichTextBlockChildren)
|
|
49
|
+
});
|
|
50
|
+
const SharedRichTextBlock = v.object({
|
|
51
|
+
...BaseComponentId.entries,
|
|
52
|
+
content: v.optional(v.nullable(v.array(RichTextBlock)))
|
|
53
|
+
});
|
|
54
|
+
const ComponentSharedRichTextBlock = v.object({
|
|
55
|
+
...BaseComponent.entries,
|
|
56
|
+
...SharedRichTextBlock.entries
|
|
57
|
+
});
|
|
58
|
+
//#endregion
|
|
59
59
|
//#region src/components/shared/question-answer.ts
|
|
60
60
|
const SharedQuestionAnswer = v.object({
|
|
61
61
|
...BaseComponentId.entries,
|
package/dist/constants/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_pagination = require("../pagination-CDGlCs8j.cjs");
|
|
3
3
|
const require_limits = require("../limits-Drbhufdn.cjs");
|
|
4
4
|
const require_regex = require("../regex-CyP06YBM.cjs");
|
|
5
|
-
const require_strapi = require("../strapi-
|
|
5
|
+
const require_strapi = require("../strapi-So9y0Azv.cjs");
|
|
6
6
|
const require_error_messages = require("../error-messages-CmNKheX2.cjs");
|
|
7
7
|
//#region src/constants/form-generics.ts
|
|
8
8
|
const NUMBER_OF_EMPLOYEE_OPTIONS = [
|
|
@@ -356,7 +356,7 @@ declare const STRAPI_ENTITY_UIDS: {
|
|
|
356
356
|
readonly scopeKey: "gc-fly-tour";
|
|
357
357
|
readonly endpoint: "gc-fly-tours";
|
|
358
358
|
readonly apiType: "collection";
|
|
359
|
-
readonly auditOps:
|
|
359
|
+
readonly auditOps: false;
|
|
360
360
|
readonly verifyOwner: false;
|
|
361
361
|
readonly verifyClientAccess: false;
|
|
362
362
|
readonly verifyScopeAccess: false;
|
|
@@ -356,7 +356,7 @@ declare const STRAPI_ENTITY_UIDS: {
|
|
|
356
356
|
readonly scopeKey: "gc-fly-tour";
|
|
357
357
|
readonly endpoint: "gc-fly-tours";
|
|
358
358
|
readonly apiType: "collection";
|
|
359
|
-
readonly auditOps:
|
|
359
|
+
readonly auditOps: false;
|
|
360
360
|
readonly verifyOwner: false;
|
|
361
361
|
readonly verifyClientAccess: false;
|
|
362
362
|
readonly verifyScopeAccess: false;
|
package/dist/constants/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as LIMIT_PAGINATION_MAX_SIZE, r as LIMIT_TABLE_PAGINATION_DEFAULT_SIZE, t as LIMIT_PAGINATION_DEFAULT_SIZE } from "../pagination-xZGVCCEK.mjs";
|
|
2
2
|
import { A as LIMIT_VAL_100, C as LIMIT_MIN_UTM_ID, D as LIMIT_MIN_VALUE, E as LIMIT_MIN_UTM_TERM, M as LIMIT_VAL_255, N as LIMIT_VAL_32, O as LIMIT_SHORT_STRING_MAX_LENGTH, P as LIMIT_VAL_64, S as LIMIT_MIN_UTM_CREATIVE_FORMAT, T as LIMIT_MIN_UTM_SOURCE, _ as LIMIT_MIN_PASSWORD, a as LIMIT_MAX_PHONE, b as LIMIT_MIN_UTM_CAMPAIGN, c as LIMIT_MAX_UTM_CONTENT, d as LIMIT_MAX_UTM_MEDIUM, f as LIMIT_MAX_UTM_SOURCE, g as LIMIT_MIN_EMAIL, h as LIMIT_MIN_DESTINATION, i as LIMIT_MAX_PASSWORD, j as LIMIT_VAL_20, k as LIMIT_VAL_10, l as LIMIT_MAX_UTM_CREATIVE_FORMAT, m as LIMIT_MEDIUM_STRING_MAX_LENGTH, n as LIMIT_MAX_DESTINATION, o as LIMIT_MAX_USERNAME, p as LIMIT_MAX_UTM_TERM, r as LIMIT_MAX_EMAIL, s as LIMIT_MAX_UTM_CAMPAIGN, t as LIMIT_LONG_STRING_MAX_LENGTH, u as LIMIT_MAX_UTM_ID, v as LIMIT_MIN_PHONE, w as LIMIT_MIN_UTM_MEDIUM, x as LIMIT_MIN_UTM_CONTENT, y as LIMIT_MIN_USERNAME } from "../limits-Dlni_x0-.mjs";
|
|
3
3
|
import { a as REGEX_NANP_PHONE, i as REGEX_BRAND_COLOR_SLUG, n as ERROR_MESSAGE_REGEX_URL_SLUG, o as REGEX_URL_SLUG, r as ERROR_MESSAGE_REGEX_UTM_VALUE, s as REGEX_UTM_VALUE, t as ERROR_MESSAGE_REGEX_PHONE } from "../regex-B0yrJN5-.mjs";
|
|
4
|
-
import { a as STRAPI_SPECIAL_ENTITIES, i as STRAPI_SINGLE_ENTITY_ENDPOINTS, n as STRAPI_COLLECTION_ENTITY_ENDPOINTS, o as getStrapiEntityValues, r as STRAPI_ENTITY_UIDS, t as CONTENT_STATUS } from "../strapi-
|
|
4
|
+
import { a as STRAPI_SPECIAL_ENTITIES, i as STRAPI_SINGLE_ENTITY_ENDPOINTS, n as STRAPI_COLLECTION_ENTITY_ENDPOINTS, o as getStrapiEntityValues, r as STRAPI_ENTITY_UIDS, t as CONTENT_STATUS } from "../strapi-CbzOOgDf.mjs";
|
|
5
5
|
import { a as ERROR_MESSAGE_URL_NO_QUERY_PARAMS, i as ERROR_MESSAGE_ROBOT, n as ERROR_MESSAGE_INVALID_URL, o as ERROR_MESSAGE_URL_PREFIX, r as ERROR_MESSAGE_ONE_PROJECT_STATUS, s as ERROR_MESSAGE_UTM_URL, t as ERROR_MESSAGE_COMMA_SEPPARATED_URLS } from "../error-messages-DhQj-feN.mjs";
|
|
6
6
|
//#region src/constants/form-generics.ts
|
|
7
7
|
const NUMBER_OF_EMPLOYEE_OPTIONS = [
|
|
@@ -5,13 +5,12 @@ import { l as RichTextBlock } from "./index-FZTP1wfp.mjs";
|
|
|
5
5
|
import { n as UtmClassificationKey } from "./index-CBmZNWdq.mjs";
|
|
6
6
|
import { t as TagDocument } from "./document-CN3W2Y2X.mjs";
|
|
7
7
|
import { n as ClientProjectStatus, t as ClientProjectPhase } from "./fields-CX223AFm.mjs";
|
|
8
|
-
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.mjs";
|
|
9
8
|
import { t as RoleType } from "./fields-DNmK-PPG.mjs";
|
|
9
|
+
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.mjs";
|
|
10
10
|
import { t as CommentApprovalStatus } from "./fields-IINGC54h.mjs";
|
|
11
11
|
import { i as CommentThread, n as CommentDocument, t as CommentAuthor } from "./document-DZvXiHqY.mjs";
|
|
12
12
|
import { t as ProductDocument } from "./document-B_ZXYnh3.mjs";
|
|
13
13
|
import * as v from "valibot";
|
|
14
|
-
import { AuthorizedUserDocument as AuthorizedUserDocument$1 } from "~/entities/up-auth/types";
|
|
15
14
|
|
|
16
15
|
//#region src/entities/media-creative-format/document.d.ts
|
|
17
16
|
declare const MediaCreativeFormatDocument: v.GenericSchema<{
|
|
@@ -182,21 +181,6 @@ declare const PermissionDocument: v.GenericSchema<{
|
|
|
182
181
|
}>;
|
|
183
182
|
type PermissionDocument = v.InferOutput<typeof PermissionDocument>;
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region src/entities/up-role/document.d.ts
|
|
186
|
-
declare const RoleDocument: v.GenericSchema<{
|
|
187
|
-
id: number;
|
|
188
|
-
documentId: string;
|
|
189
|
-
publishedAt?: string;
|
|
190
|
-
createdAt: string;
|
|
191
|
-
updatedAt: string;
|
|
192
|
-
type: RoleType;
|
|
193
|
-
name: string;
|
|
194
|
-
description: string | null;
|
|
195
|
-
permissions?: PermissionDocument[] | null;
|
|
196
|
-
users?: UserDocument[] | null;
|
|
197
|
-
}>;
|
|
198
|
-
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
199
|
-
//#endregion
|
|
200
184
|
//#region src/entities/user-account/document.d.ts
|
|
201
185
|
declare const UserAccountDocument: v.GenericSchema<{
|
|
202
186
|
id: number;
|
|
@@ -259,6 +243,121 @@ declare const UserDocument: v.GenericSchema<{
|
|
|
259
243
|
}>;
|
|
260
244
|
type UserDocument = v.InferOutput<typeof UserDocument>;
|
|
261
245
|
//#endregion
|
|
246
|
+
//#region src/entities/up-role/document.d.ts
|
|
247
|
+
declare const RoleDocument: v.GenericSchema<{
|
|
248
|
+
id: number;
|
|
249
|
+
documentId: string;
|
|
250
|
+
publishedAt?: string;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
type: RoleType;
|
|
254
|
+
name: string;
|
|
255
|
+
description: string | null;
|
|
256
|
+
permissions?: PermissionDocument[] | null;
|
|
257
|
+
users?: UserDocument[] | null;
|
|
258
|
+
}>;
|
|
259
|
+
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/entities/up-auth/mutation.d.ts
|
|
262
|
+
type AuthorizedUserDocument = Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links"> & {
|
|
263
|
+
account: Omit<UserAccountDocument, "user">;
|
|
264
|
+
role: Omit<RoleDocument, "users" | "permissions">;
|
|
265
|
+
};
|
|
266
|
+
type UserAuthorizationSuccessResponse = {
|
|
267
|
+
jwt: string;
|
|
268
|
+
refreshToken?: string;
|
|
269
|
+
user: Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links">;
|
|
270
|
+
};
|
|
271
|
+
type UserRefreshAuthorizationSuccessResponse = {
|
|
272
|
+
jwt: string;
|
|
273
|
+
refreshToken: string;
|
|
274
|
+
};
|
|
275
|
+
declare const SUserToken: v.ObjectSchema<{
|
|
276
|
+
readonly token: v.StringSchema<undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
type SUserToken = v.InferOutput<typeof SUserToken>;
|
|
279
|
+
declare const SRefreshUserToken: v.ObjectSchema<{
|
|
280
|
+
readonly refreshToken: v.StringSchema<undefined>;
|
|
281
|
+
}, undefined>;
|
|
282
|
+
type SRefreshUserToken = v.InferOutput<typeof SRefreshUserToken>;
|
|
283
|
+
declare const SLoginUser: v.ObjectSchema<{
|
|
284
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
285
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
286
|
+
}, undefined>;
|
|
287
|
+
type SLoginUser = v.InferOutput<typeof SLoginUser>;
|
|
288
|
+
declare const SRegisterUser: v.ObjectSchema<{
|
|
289
|
+
readonly username: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
290
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
291
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
292
|
+
}, undefined>;
|
|
293
|
+
type SRegisterUser = v.InferOutput<typeof SRegisterUser>;
|
|
294
|
+
declare const SForgotUserPassword: v.ObjectSchema<{
|
|
295
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
296
|
+
}, undefined>;
|
|
297
|
+
type SForgotUserPassword = v.InferOutput<typeof SForgotUserPassword>;
|
|
298
|
+
declare const SRequestConfirmEmail: v.ObjectSchema<{
|
|
299
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
300
|
+
}, undefined>;
|
|
301
|
+
type SRequestConfirmEmail = v.InferOutput<typeof SRequestConfirmEmail>;
|
|
302
|
+
declare const SResetUserPassword: v.ObjectSchema<{
|
|
303
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
304
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
305
|
+
readonly code: v.StringSchema<undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
type SResetUserPassword = v.InferOutput<typeof SResetUserPassword>;
|
|
308
|
+
declare const SChangePassword: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
309
|
+
readonly currentPassword: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
310
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
311
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
312
|
+
}, undefined>, v.BaseValidation<{
|
|
313
|
+
currentPassword: string;
|
|
314
|
+
password: string;
|
|
315
|
+
passwordConfirmation: string;
|
|
316
|
+
}, {
|
|
317
|
+
currentPassword: string;
|
|
318
|
+
password: string;
|
|
319
|
+
passwordConfirmation: string;
|
|
320
|
+
}, v.PartialCheckIssue<{
|
|
321
|
+
password: string;
|
|
322
|
+
passwordConfirmation: string;
|
|
323
|
+
}>>]>;
|
|
324
|
+
type SChangePassword = v.InferOutput<typeof SChangePassword>;
|
|
325
|
+
declare const SAuthRawAccessToken: v.ObjectSchema<{
|
|
326
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
327
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
328
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
329
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
330
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
331
|
+
}, undefined>;
|
|
332
|
+
type SAuthRawAccessToken = v.InferOutput<typeof SAuthRawAccessToken>;
|
|
333
|
+
declare const SAuthConnectProviderRedirectSearch: v.ObjectSchema<{
|
|
334
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
335
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
336
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
337
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
338
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
339
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
340
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
342
|
+
}, undefined>, undefined>;
|
|
343
|
+
}, undefined>;
|
|
344
|
+
type SAuthConnectProviderRedirectSearch = v.InferOutput<typeof SAuthConnectProviderRedirectSearch>;
|
|
345
|
+
declare const SAuthConnectProviderConfirmation: v.ObjectSchema<{
|
|
346
|
+
readonly provider: v.StringSchema<undefined>;
|
|
347
|
+
readonly search: v.ObjectSchema<{
|
|
348
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
349
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
350
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
351
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
352
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
353
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
354
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
355
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
356
|
+
}, undefined>, undefined>;
|
|
357
|
+
}, undefined>;
|
|
358
|
+
}, undefined>;
|
|
359
|
+
type SAuthConnectProviderConfirmation = v.InferOutput<typeof SAuthConnectProviderConfirmation>;
|
|
360
|
+
//#endregion
|
|
262
361
|
//#region src/entities/product-highlight/document.d.ts
|
|
263
362
|
declare const ProductHighlightDocument: v.GenericSchema<{
|
|
264
363
|
id: number;
|
|
@@ -3497,7 +3596,7 @@ declare const ROLE_PERMISSIONS: {
|
|
|
3497
3596
|
//#endregion
|
|
3498
3597
|
//#region src/permissions/types.d.ts
|
|
3499
3598
|
type LCRUDActions = "list" | "create" | "read" | "update" | "delete";
|
|
3500
|
-
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument
|
|
3599
|
+
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument, permissions: ClientUserDocumentStatus, data?: Permissions[Key]["dataType"]) => boolean);
|
|
3501
3600
|
type RolesWithPermissions = { [R in RoleType]: Partial<{ [Key in keyof Permissions]: Partial<{ [Action in Permissions[Key]["action"]]: PermissionCheck<Key> }> }> };
|
|
3502
3601
|
type Permissions = {
|
|
3503
3602
|
"user-account": {
|
|
@@ -3646,4 +3745,4 @@ declare const ClientContentPillarDocument: v.GenericSchema<{
|
|
|
3646
3745
|
}>;
|
|
3647
3746
|
type ClientContentPillarDocument = v.InferOutput<typeof ClientContentPillarDocument>;
|
|
3648
3747
|
//#endregion
|
|
3649
|
-
export {
|
|
3748
|
+
export { RoleDocument as A, MediaMediumDocument as B, SRefreshUserToken as C, SUserToken as D, SResetUserPassword as E, ClientStyleguideDocument as F, MediaCreativeFormatDocument as H, ClientReportDocument as I, ClientProjectDocument as L, UtmTrackingLinkDocument as M, UserAccountDocument as N, UserAuthorizationSuccessResponse as O, PermissionDocument as P, ClientMediaPlatformDocument as R, SLoginUser as S, SRequestConfirmEmail as T, MediaContentTypeDocument as V, SAuthConnectProviderConfirmation as _, LCRUDActions as a, SChangePassword as b, PermissionsEntity as c, ContentPillarDocument as d, GCFlyTourDocument as f, AuthorizedUserDocument as g, ProductHighlightDocument as h, ClientUserDocumentStatus as i, UserDocument as j, UserRefreshAuthorizationSuccessResponse as k, RolesWithPermissions as l, MondayWorkspaceDocument as m, ClientDocument as n, Permissions as o, GCFlyTourSnapDocument as p, ClientUserDocument as r, PermissionsAction as s, ClientContentPillarDocument as t, ROLE_PERMISSIONS as u, SAuthConnectProviderRedirectSearch as v, SRegisterUser as w, SForgotUserPassword as x, SAuthRawAccessToken as y, MediaPlatformDocument as z };
|
|
@@ -5,13 +5,12 @@ import { l as RichTextBlock } from "./index-NJAGJcxy.cjs";
|
|
|
5
5
|
import { n as UtmClassificationKey } from "./index-CBmZNWdq.cjs";
|
|
6
6
|
import { t as TagDocument } from "./document-CN3W2Y2X.cjs";
|
|
7
7
|
import { n as ClientProjectStatus, t as ClientProjectPhase } from "./fields-CX223AFm.cjs";
|
|
8
|
-
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.cjs";
|
|
9
8
|
import { t as RoleType } from "./fields-DNmK-PPG.cjs";
|
|
9
|
+
import { r as CLIENT_ENTITY_PERMISSIONS, s as ClientEntityScope, t as ClientUserScopes } from "./fields-BNrM_SmR.cjs";
|
|
10
10
|
import { t as CommentApprovalStatus } from "./fields-IINGC54h.cjs";
|
|
11
11
|
import { i as CommentThread, n as CommentDocument, t as CommentAuthor } from "./document-B-RLH3la.cjs";
|
|
12
12
|
import { t as ProductDocument } from "./document-C9FkMgj3.cjs";
|
|
13
13
|
import * as v from "valibot";
|
|
14
|
-
import { AuthorizedUserDocument as AuthorizedUserDocument$1 } from "~/entities/up-auth/types";
|
|
15
14
|
|
|
16
15
|
//#region src/entities/media-creative-format/document.d.ts
|
|
17
16
|
declare const MediaCreativeFormatDocument: v.GenericSchema<{
|
|
@@ -182,21 +181,6 @@ declare const PermissionDocument: v.GenericSchema<{
|
|
|
182
181
|
}>;
|
|
183
182
|
type PermissionDocument = v.InferOutput<typeof PermissionDocument>;
|
|
184
183
|
//#endregion
|
|
185
|
-
//#region src/entities/up-role/document.d.ts
|
|
186
|
-
declare const RoleDocument: v.GenericSchema<{
|
|
187
|
-
id: number;
|
|
188
|
-
documentId: string;
|
|
189
|
-
publishedAt?: string;
|
|
190
|
-
createdAt: string;
|
|
191
|
-
updatedAt: string;
|
|
192
|
-
type: RoleType;
|
|
193
|
-
name: string;
|
|
194
|
-
description: string | null;
|
|
195
|
-
permissions?: PermissionDocument[] | null;
|
|
196
|
-
users?: UserDocument[] | null;
|
|
197
|
-
}>;
|
|
198
|
-
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
199
|
-
//#endregion
|
|
200
184
|
//#region src/entities/user-account/document.d.ts
|
|
201
185
|
declare const UserAccountDocument: v.GenericSchema<{
|
|
202
186
|
id: number;
|
|
@@ -259,6 +243,121 @@ declare const UserDocument: v.GenericSchema<{
|
|
|
259
243
|
}>;
|
|
260
244
|
type UserDocument = v.InferOutput<typeof UserDocument>;
|
|
261
245
|
//#endregion
|
|
246
|
+
//#region src/entities/up-role/document.d.ts
|
|
247
|
+
declare const RoleDocument: v.GenericSchema<{
|
|
248
|
+
id: number;
|
|
249
|
+
documentId: string;
|
|
250
|
+
publishedAt?: string;
|
|
251
|
+
createdAt: string;
|
|
252
|
+
updatedAt: string;
|
|
253
|
+
type: RoleType;
|
|
254
|
+
name: string;
|
|
255
|
+
description: string | null;
|
|
256
|
+
permissions?: PermissionDocument[] | null;
|
|
257
|
+
users?: UserDocument[] | null;
|
|
258
|
+
}>;
|
|
259
|
+
type RoleDocument = v.InferOutput<typeof RoleDocument>;
|
|
260
|
+
//#endregion
|
|
261
|
+
//#region src/entities/up-auth/mutation.d.ts
|
|
262
|
+
type AuthorizedUserDocument = Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links"> & {
|
|
263
|
+
account: Omit<UserAccountDocument, "user">;
|
|
264
|
+
role: Omit<RoleDocument, "users" | "permissions">;
|
|
265
|
+
};
|
|
266
|
+
type UserAuthorizationSuccessResponse = {
|
|
267
|
+
jwt: string;
|
|
268
|
+
refreshToken?: string;
|
|
269
|
+
user: Omit<UserDocument, "role" | "account" | "clients" | "utm_tracking_links">;
|
|
270
|
+
};
|
|
271
|
+
type UserRefreshAuthorizationSuccessResponse = {
|
|
272
|
+
jwt: string;
|
|
273
|
+
refreshToken: string;
|
|
274
|
+
};
|
|
275
|
+
declare const SUserToken: v.ObjectSchema<{
|
|
276
|
+
readonly token: v.StringSchema<undefined>;
|
|
277
|
+
}, undefined>;
|
|
278
|
+
type SUserToken = v.InferOutput<typeof SUserToken>;
|
|
279
|
+
declare const SRefreshUserToken: v.ObjectSchema<{
|
|
280
|
+
readonly refreshToken: v.StringSchema<undefined>;
|
|
281
|
+
}, undefined>;
|
|
282
|
+
type SRefreshUserToken = v.InferOutput<typeof SRefreshUserToken>;
|
|
283
|
+
declare const SLoginUser: v.ObjectSchema<{
|
|
284
|
+
readonly identifier: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
285
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
286
|
+
}, undefined>;
|
|
287
|
+
type SLoginUser = v.InferOutput<typeof SLoginUser>;
|
|
288
|
+
declare const SRegisterUser: v.ObjectSchema<{
|
|
289
|
+
readonly username: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>, v.RegexAction<string, string>]>;
|
|
290
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
291
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
292
|
+
}, undefined>;
|
|
293
|
+
type SRegisterUser = v.InferOutput<typeof SRegisterUser>;
|
|
294
|
+
declare const SForgotUserPassword: v.ObjectSchema<{
|
|
295
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
296
|
+
}, undefined>;
|
|
297
|
+
type SForgotUserPassword = v.InferOutput<typeof SForgotUserPassword>;
|
|
298
|
+
declare const SRequestConfirmEmail: v.ObjectSchema<{
|
|
299
|
+
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
300
|
+
}, undefined>;
|
|
301
|
+
type SRequestConfirmEmail = v.InferOutput<typeof SRequestConfirmEmail>;
|
|
302
|
+
declare const SResetUserPassword: v.ObjectSchema<{
|
|
303
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
304
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
305
|
+
readonly code: v.StringSchema<undefined>;
|
|
306
|
+
}, undefined>;
|
|
307
|
+
type SResetUserPassword = v.InferOutput<typeof SResetUserPassword>;
|
|
308
|
+
declare const SChangePassword: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
309
|
+
readonly currentPassword: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
310
|
+
readonly password: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
311
|
+
readonly passwordConfirmation: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
312
|
+
}, undefined>, v.BaseValidation<{
|
|
313
|
+
currentPassword: string;
|
|
314
|
+
password: string;
|
|
315
|
+
passwordConfirmation: string;
|
|
316
|
+
}, {
|
|
317
|
+
currentPassword: string;
|
|
318
|
+
password: string;
|
|
319
|
+
passwordConfirmation: string;
|
|
320
|
+
}, v.PartialCheckIssue<{
|
|
321
|
+
password: string;
|
|
322
|
+
passwordConfirmation: string;
|
|
323
|
+
}>>]>;
|
|
324
|
+
type SChangePassword = v.InferOutput<typeof SChangePassword>;
|
|
325
|
+
declare const SAuthRawAccessToken: v.ObjectSchema<{
|
|
326
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
327
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
328
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
329
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
330
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
331
|
+
}, undefined>;
|
|
332
|
+
type SAuthRawAccessToken = v.InferOutput<typeof SAuthRawAccessToken>;
|
|
333
|
+
declare const SAuthConnectProviderRedirectSearch: v.ObjectSchema<{
|
|
334
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
335
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
336
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
337
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
338
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
339
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
340
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
341
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
342
|
+
}, undefined>, undefined>;
|
|
343
|
+
}, undefined>;
|
|
344
|
+
type SAuthConnectProviderRedirectSearch = v.InferOutput<typeof SAuthConnectProviderRedirectSearch>;
|
|
345
|
+
declare const SAuthConnectProviderConfirmation: v.ObjectSchema<{
|
|
346
|
+
readonly provider: v.StringSchema<undefined>;
|
|
347
|
+
readonly search: v.ObjectSchema<{
|
|
348
|
+
readonly id_token: v.StringSchema<undefined>;
|
|
349
|
+
readonly access_token: v.StringSchema<undefined>;
|
|
350
|
+
readonly raw: v.OptionalSchema<v.ObjectSchema<{
|
|
351
|
+
readonly access_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
352
|
+
readonly expires_in: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>]>, undefined>, undefined>;
|
|
353
|
+
readonly scope: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
354
|
+
readonly token_type: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
355
|
+
readonly id_token: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
356
|
+
}, undefined>, undefined>;
|
|
357
|
+
}, undefined>;
|
|
358
|
+
}, undefined>;
|
|
359
|
+
type SAuthConnectProviderConfirmation = v.InferOutput<typeof SAuthConnectProviderConfirmation>;
|
|
360
|
+
//#endregion
|
|
262
361
|
//#region src/entities/product-highlight/document.d.ts
|
|
263
362
|
declare const ProductHighlightDocument: v.GenericSchema<{
|
|
264
363
|
id: number;
|
|
@@ -3497,7 +3596,7 @@ declare const ROLE_PERMISSIONS: {
|
|
|
3497
3596
|
//#endregion
|
|
3498
3597
|
//#region src/permissions/types.d.ts
|
|
3499
3598
|
type LCRUDActions = "list" | "create" | "read" | "update" | "delete";
|
|
3500
|
-
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument
|
|
3599
|
+
type PermissionCheck<Key extends keyof Permissions> = boolean | ((user: AuthorizedUserDocument, permissions: ClientUserDocumentStatus, data?: Permissions[Key]["dataType"]) => boolean);
|
|
3501
3600
|
type RolesWithPermissions = { [R in RoleType]: Partial<{ [Key in keyof Permissions]: Partial<{ [Action in Permissions[Key]["action"]]: PermissionCheck<Key> }> }> };
|
|
3502
3601
|
type Permissions = {
|
|
3503
3602
|
"user-account": {
|
|
@@ -3646,4 +3745,4 @@ declare const ClientContentPillarDocument: v.GenericSchema<{
|
|
|
3646
3745
|
}>;
|
|
3647
3746
|
type ClientContentPillarDocument = v.InferOutput<typeof ClientContentPillarDocument>;
|
|
3648
3747
|
//#endregion
|
|
3649
|
-
export {
|
|
3748
|
+
export { RoleDocument as A, MediaMediumDocument as B, SRefreshUserToken as C, SUserToken as D, SResetUserPassword as E, ClientStyleguideDocument as F, MediaCreativeFormatDocument as H, ClientReportDocument as I, ClientProjectDocument as L, UtmTrackingLinkDocument as M, UserAccountDocument as N, UserAuthorizationSuccessResponse as O, PermissionDocument as P, ClientMediaPlatformDocument as R, SLoginUser as S, SRequestConfirmEmail as T, MediaContentTypeDocument as V, SAuthConnectProviderConfirmation as _, LCRUDActions as a, SChangePassword as b, PermissionsEntity as c, ContentPillarDocument as d, GCFlyTourDocument as f, AuthorizedUserDocument as g, ProductHighlightDocument as h, ClientUserDocumentStatus as i, UserDocument as j, UserRefreshAuthorizationSuccessResponse as k, RolesWithPermissions as l, MondayWorkspaceDocument as m, ClientDocument as n, Permissions as o, GCFlyTourSnapDocument as p, ClientUserDocument as r, PermissionsAction as s, ClientContentPillarDocument as t, ROLE_PERMISSIONS as u, SAuthConnectProviderRedirectSearch as v, SRegisterUser as w, SForgotUserPassword as x, SAuthRawAccessToken as y, MediaPlatformDocument as z };
|
|
@@ -3,7 +3,7 @@ const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
|
3
3
|
const require_json = require("../../json-Tsc8HEYI.cjs");
|
|
4
4
|
const require_email = require("../../email-dsbWKuhH.cjs");
|
|
5
5
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
6
|
-
const require_relationships = require("../../relationships-
|
|
6
|
+
const require_relationships = require("../../relationships-yGO2L8BR.cjs");
|
|
7
7
|
const require_entities_audit_log_fields = require("./fields.cjs");
|
|
8
8
|
let valibot = require("valibot");
|
|
9
9
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as JsonSchema } from "../../json-BJPzCgmI.mjs";
|
|
2
2
|
import { t as VStringEmail } from "../../email-FSLftR8P.mjs";
|
|
3
3
|
import { i as VStringMax } from "../../string-v2gu3xz0.mjs";
|
|
4
|
-
import { o as AssociateOneEntity } from "../../relationships-
|
|
4
|
+
import { o as AssociateOneEntity } from "../../relationships-fCFeEt1G.mjs";
|
|
5
5
|
import { AuditLogMethod } from "./fields.mjs";
|
|
6
6
|
import * as v from "valibot";
|
|
7
7
|
//#region src/entities/audit-log/mutation.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
|
+
const require_components_forms_index = require("../../components/forms/index.cjs");
|
|
3
4
|
const require_components_shared_index = require("../../components/shared/index.cjs");
|
|
4
5
|
const require_components_blocks_index = require("../../components/blocks/index.cjs");
|
|
5
|
-
const require_components_forms_index = require("../../components/forms/index.cjs");
|
|
6
6
|
const require_components_slideshow_index = require("../../components/slideshow/index.cjs");
|
|
7
7
|
const require_entities_blog_post_constants = require("./constants.cjs");
|
|
8
8
|
let valibot = require("valibot");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ComponentFormSelect } from "../../components/forms/index.mjs";
|
|
1
2
|
import { ComponentSharedRichTextBlock } from "../../components/shared/index.mjs";
|
|
2
3
|
import { ComponentBlockButtonGroup, ComponentBlockContact, ComponentBlockFaq, ComponentBlockFullscreenContent, ComponentBlockGraphicImage, ComponentBlockPullQuote, ComponentBlockSectionTitle, ComponentBlockVideo } from "../../components/blocks/index.mjs";
|
|
3
|
-
import { ComponentFormSelect } from "../../components/forms/index.mjs";
|
|
4
4
|
import { ComponentSlideshow } from "../../components/slideshow/index.mjs";
|
|
5
5
|
import { BLOG_POST_LAYOUT } from "./constants.mjs";
|
|
6
6
|
import * as v from "valibot";
|
|
@@ -3,7 +3,7 @@ const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
|
3
3
|
const require_pagination = require("../../pagination-DhAgQr7d.cjs");
|
|
4
4
|
const require_sort = require("../../sort-CYllFl6q.cjs");
|
|
5
5
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
6
|
-
const require_strapi = require("../../strapi-
|
|
6
|
+
const require_strapi = require("../../strapi-B79JabkQ.cjs");
|
|
7
7
|
let valibot = require("valibot");
|
|
8
8
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
9
|
//#region src/entities/blog-post/query.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as VSize, t as VPage } from "../../pagination-CK-mJT5q.mjs";
|
|
2
2
|
import { t as QuerySortValues } from "../../sort-FYsWXlaD.mjs";
|
|
3
3
|
import { s as VStringShort } from "../../string-v2gu3xz0.mjs";
|
|
4
|
-
import { t as ContentStatus } from "../../strapi-
|
|
4
|
+
import { t as ContentStatus } from "../../strapi-BgfOZjWn.mjs";
|
|
5
5
|
import * as v from "valibot";
|
|
6
6
|
//#region src/entities/blog-post/query.ts
|
|
7
7
|
const QueryStrapiSearchBlogPosts = v.object({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_chunk = require("../../chunk-D6vf50IK.cjs");
|
|
3
3
|
const require_string = require("../../string-AHrZ--r_.cjs");
|
|
4
|
-
const require_relationships = require("../../relationships-
|
|
4
|
+
const require_relationships = require("../../relationships-yGO2L8BR.cjs");
|
|
5
5
|
const require_slug = require("../../slug-BcLLMLTX.cjs");
|
|
6
6
|
let valibot = require("valibot");
|
|
7
7
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as VStringMinMax } from "../../string-v2gu3xz0.mjs";
|
|
2
|
-
import { o as AssociateOneEntity } from "../../relationships-
|
|
2
|
+
import { o as AssociateOneEntity } from "../../relationships-fCFeEt1G.mjs";
|
|
3
3
|
import { t as VStringSlug } from "../../slug-By9EotXj.mjs";
|
|
4
4
|
import * as v from "valibot";
|
|
5
5
|
//#region src/entities/category/mutation.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ClientDocument } from "../../document-
|
|
1
|
+
import { n as ClientDocument } from "../../document-DZnOyFC3.cjs";
|
|
2
2
|
export { ClientDocument };
|