@getcommunity/gc-validators 0.0.286 → 0.0.288-alpha.0
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/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-D8qKQkPt.mjs → document-BiAMIsiM.mjs} +64 -64
- 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/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/query.cjs +39 -0
- package/dist/entities/client/query.d.cts +641 -1
- package/dist/entities/client/query.d.mts +641 -1
- package/dist/entities/client/query.mjs +38 -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 +2 -2
- package/dist/entities/client-project/mutation.mjs +2 -2
- package/dist/entities/client-project/query.cjs +1 -1
- package/dist/entities/client-project/query.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/filters/index.cjs +206 -0
- package/dist/filters/index.d.cts +484 -0
- package/dist/filters/index.d.mts +484 -0
- package/dist/filters/index.mjs +181 -0
- package/dist/index-CvAzE6rd.d.cts +25 -0
- package/dist/index-CvAzE6rd.d.mts +25 -0
- 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/string-CJYo78-9.cjs +254 -0
- package/dist/string-sEYvBtr0.mjs +133 -0
- package/dist/utilities/index.d.cts +1 -2
- package/dist/utilities/index.d.mts +1 -2
- package/dist/validators/index.cjs +2 -2
- package/dist/validators/index.mjs +2 -2
- package/package.json +20 -6
- package/dist/{document-DmlmGzg1.cjs → document-CHO80cjy.cjs} +63 -63
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({
|
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 = [
|
|
@@ -29,69 +29,6 @@ const ClientContentPillarDocument = v.object({
|
|
|
29
29
|
content_pillar: VDocumentRelationOne(() => ContentPillarDocument)
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
|
-
//#region src/entities/media-creative-format/document.ts
|
|
33
|
-
const MediaCreativeFormatDocument = v.object({
|
|
34
|
-
...BaseDocument.entries,
|
|
35
|
-
title: v.string(),
|
|
36
|
-
slug: v.string(),
|
|
37
|
-
is_active: v.boolean(),
|
|
38
|
-
is_universal: v.boolean(),
|
|
39
|
-
description: v.nullable(v.string()),
|
|
40
|
-
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument))))
|
|
41
|
-
});
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region src/entities/media-content-type/document.ts
|
|
44
|
-
const MediaContentTypeDocument = v.object({
|
|
45
|
-
...BaseDocument.entries,
|
|
46
|
-
title: v.string(),
|
|
47
|
-
slug: v.string(),
|
|
48
|
-
is_active: v.boolean(),
|
|
49
|
-
is_organic_social: v.boolean(),
|
|
50
|
-
is_paid_media: v.boolean(),
|
|
51
|
-
description: v.nullable(v.string()),
|
|
52
|
-
information: v.nullable(v.array(RichTextBlock)),
|
|
53
|
-
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument),
|
|
54
|
-
media_creative_formats: v.optional(v.nullable(v.array(v.lazy(() => MediaCreativeFormatDocument))))
|
|
55
|
-
});
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region src/entities/media-medium/document.ts
|
|
58
|
-
const MediaMediumDocument = v.object({
|
|
59
|
-
...BaseDocument.entries,
|
|
60
|
-
title: v.string(),
|
|
61
|
-
slug: v.string(),
|
|
62
|
-
is_active: v.boolean(),
|
|
63
|
-
is_organic_social: v.boolean(),
|
|
64
|
-
is_paid_media: v.boolean(),
|
|
65
|
-
description: v.nullable(v.string()),
|
|
66
|
-
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument)
|
|
67
|
-
});
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/entities/media-platform/document.ts
|
|
70
|
-
const MediaPlatformDocument = v.object({
|
|
71
|
-
...BaseDocument.entries,
|
|
72
|
-
title: v.string(),
|
|
73
|
-
slug: v.string(),
|
|
74
|
-
utm_key: v.string(),
|
|
75
|
-
is_active: v.boolean(),
|
|
76
|
-
is_organic_social: v.boolean(),
|
|
77
|
-
is_paid_media: v.boolean(),
|
|
78
|
-
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
79
|
-
description: v.nullable(v.string()),
|
|
80
|
-
information: v.nullable(v.array(RichTextBlock)),
|
|
81
|
-
clients: VDocumentRelationMany(() => ClientMediaPlatformDocument),
|
|
82
|
-
media_content_types: VDocumentRelationMany(() => MediaContentTypeDocument),
|
|
83
|
-
media_mediums: VDocumentRelationMany(() => MediaMediumDocument)
|
|
84
|
-
});
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/entities/client-media-platform/document.ts
|
|
87
|
-
const ClientMediaPlatformDocument = v.object({
|
|
88
|
-
...BaseDocument.entries,
|
|
89
|
-
url: v.nullable(v.string()),
|
|
90
|
-
is_active: v.boolean(),
|
|
91
|
-
client: VDocumentRelationOne(() => ClientDocument),
|
|
92
|
-
media_platform: VDocumentRelationOne(() => MediaPlatformDocument)
|
|
93
|
-
});
|
|
94
|
-
//#endregion
|
|
95
32
|
//#region src/entities/client-project/document.ts
|
|
96
33
|
const ClientProjectDocument = v.object({
|
|
97
34
|
...BaseDocument.entries,
|
|
@@ -299,4 +236,67 @@ const ClientDocument = v.object({
|
|
|
299
236
|
gcflytours: VDocumentRelationMany(() => GCFlyTourDocument)
|
|
300
237
|
});
|
|
301
238
|
//#endregion
|
|
302
|
-
|
|
239
|
+
//#region src/entities/media-creative-format/document.ts
|
|
240
|
+
const MediaCreativeFormatDocument = v.object({
|
|
241
|
+
...BaseDocument.entries,
|
|
242
|
+
title: v.string(),
|
|
243
|
+
slug: v.string(),
|
|
244
|
+
is_active: v.boolean(),
|
|
245
|
+
is_universal: v.boolean(),
|
|
246
|
+
description: v.nullable(v.string()),
|
|
247
|
+
media_content_types: v.optional(v.nullable(v.array(v.lazy(() => MediaContentTypeDocument))))
|
|
248
|
+
});
|
|
249
|
+
//#endregion
|
|
250
|
+
//#region src/entities/media-content-type/document.ts
|
|
251
|
+
const MediaContentTypeDocument = v.object({
|
|
252
|
+
...BaseDocument.entries,
|
|
253
|
+
title: v.string(),
|
|
254
|
+
slug: v.string(),
|
|
255
|
+
is_active: v.boolean(),
|
|
256
|
+
is_organic_social: v.boolean(),
|
|
257
|
+
is_paid_media: v.boolean(),
|
|
258
|
+
description: v.nullable(v.string()),
|
|
259
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
260
|
+
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument),
|
|
261
|
+
media_creative_formats: v.optional(v.nullable(v.array(v.lazy(() => MediaCreativeFormatDocument))))
|
|
262
|
+
});
|
|
263
|
+
//#endregion
|
|
264
|
+
//#region src/entities/media-medium/document.ts
|
|
265
|
+
const MediaMediumDocument = v.object({
|
|
266
|
+
...BaseDocument.entries,
|
|
267
|
+
title: v.string(),
|
|
268
|
+
slug: v.string(),
|
|
269
|
+
is_active: v.boolean(),
|
|
270
|
+
is_organic_social: v.boolean(),
|
|
271
|
+
is_paid_media: v.boolean(),
|
|
272
|
+
description: v.nullable(v.string()),
|
|
273
|
+
media_platforms: VDocumentRelationMany(() => MediaPlatformDocument)
|
|
274
|
+
});
|
|
275
|
+
//#endregion
|
|
276
|
+
//#region src/entities/media-platform/document.ts
|
|
277
|
+
const MediaPlatformDocument = v.object({
|
|
278
|
+
...BaseDocument.entries,
|
|
279
|
+
title: v.string(),
|
|
280
|
+
slug: v.string(),
|
|
281
|
+
utm_key: v.string(),
|
|
282
|
+
is_active: v.boolean(),
|
|
283
|
+
is_organic_social: v.boolean(),
|
|
284
|
+
is_paid_media: v.boolean(),
|
|
285
|
+
logos: v.optional(v.nullable(BlockBrandLogos)),
|
|
286
|
+
description: v.nullable(v.string()),
|
|
287
|
+
information: v.nullable(v.array(RichTextBlock)),
|
|
288
|
+
clients: VDocumentRelationMany(() => ClientMediaPlatformDocument),
|
|
289
|
+
media_content_types: VDocumentRelationMany(() => MediaContentTypeDocument),
|
|
290
|
+
media_mediums: VDocumentRelationMany(() => MediaMediumDocument)
|
|
291
|
+
});
|
|
292
|
+
//#endregion
|
|
293
|
+
//#region src/entities/client-media-platform/document.ts
|
|
294
|
+
const ClientMediaPlatformDocument = v.object({
|
|
295
|
+
...BaseDocument.entries,
|
|
296
|
+
url: v.nullable(v.string()),
|
|
297
|
+
is_active: v.boolean(),
|
|
298
|
+
client: VDocumentRelationOne(() => ClientDocument),
|
|
299
|
+
media_platform: VDocumentRelationOne(() => MediaPlatformDocument)
|
|
300
|
+
});
|
|
301
|
+
//#endregion
|
|
302
|
+
export { ContentPillarDocument as S, PermissionDocument as _, MediaCreativeFormatDocument as a, ClientProjectDocument as b, MondayWorkspaceDocument as c, ClientUserDocument as d, ClientUserDocumentStatus as f, RoleDocument as g, UserAccountDocument as h, MediaContentTypeDocument as i, GCFlyTourDocument as l, UtmTrackingLinkDocument as m, MediaPlatformDocument as n, ClientDocument as o, UserDocument as p, MediaMediumDocument as r, ProductHighlightDocument as s, ClientMediaPlatformDocument as t, GCFlyTourSnapDocument as u, ClientStyleguideDocument as v, ClientContentPillarDocument as x, ClientReportDocument as y };
|
|
@@ -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
|
|
@@ -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 };
|