@getcommunity/gc-validators 0.0.269 → 0.0.271-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/README.md +2 -40
- package/dist/base/index.cjs +106 -0
- package/dist/base/index.d.cts +5 -0
- package/dist/base/index.d.mts +5 -0
- package/dist/base/index.mjs +21 -0
- package/dist/component-BPHZTfVY.mjs +6 -0
- package/dist/component-DLjTD_qK.cjs +19 -0
- package/dist/components/blocks/index.cjs +207 -0
- package/dist/components/blocks/index.d.cts +1322 -0
- package/dist/components/blocks/index.d.mts +1322 -0
- package/dist/components/blocks/index.mjs +175 -0
- package/dist/components/brand/index.cjs +37 -0
- package/dist/components/brand/index.d.cts +315 -0
- package/dist/components/brand/index.d.mts +315 -0
- package/dist/components/brand/index.mjs +31 -0
- package/dist/components/forms/index.cjs +70 -0
- package/dist/components/forms/index.d.cts +333 -0
- package/dist/components/forms/index.d.mts +333 -0
- package/dist/components/forms/index.mjs +58 -0
- package/dist/components/shared/index.cjs +127 -0
- package/dist/components/shared/index.d.cts +917 -0
- package/dist/components/shared/index.d.mts +917 -0
- package/dist/components/shared/index.mjs +107 -0
- package/dist/components/slideshow/index.cjs +129 -0
- package/dist/components/slideshow/index.d.cts +742 -0
- package/dist/components/slideshow/index.d.mts +742 -0
- package/dist/components/slideshow/index.mjs +106 -0
- package/dist/components/utm/index.cjs +55 -0
- package/dist/components/utm/index.d.cts +32 -0
- package/dist/components/utm/index.d.mts +32 -0
- package/dist/components/utm/index.mjs +47 -0
- package/dist/constants/index.cjs +243 -0
- package/dist/constants/index.d.cts +197 -0
- package/dist/constants/index.d.mts +197 -0
- package/dist/constants/index.mjs +182 -0
- package/dist/constants-L2goO7Eg.mjs +85 -0
- package/dist/constants-PBZKggHL.cjs +102 -0
- package/dist/document-BAro2Mrj.cjs +18 -0
- package/dist/document-BAzLIprH.d.mts +100 -0
- package/dist/document-BFukanLe.mjs +54 -0
- package/dist/document-BK1ASowb.d.cts +17 -0
- package/dist/document-BMxLOdrT.d.cts +267 -0
- package/dist/document-BNoXPGwF.d.mts +27 -0
- package/dist/document-B_pJW777.d.mts +30 -0
- package/dist/document-Bd2AyLs8.d.mts +16 -0
- package/dist/document-BezYxNmb.d.cts +16 -0
- package/dist/document-Bj7SRTOn.d.cts +18 -0
- package/dist/document-Bo869pZx.d.mts +18 -0
- package/dist/document-Bpr9mbCs.d.mts +15 -0
- package/dist/document-Bqoi1MdT.mjs +11 -0
- package/dist/document-Bs8c1mok.d.cts +15 -0
- package/dist/document-C0c7azOe.d.mts +434 -0
- package/dist/document-CTTDXzOF.mjs +13 -0
- package/dist/document-CUl_Ys6-.mjs +23 -0
- package/dist/document-CWYzG60q.d.cts +19 -0
- package/dist/document-Ccszj8lR.cjs +20 -0
- package/dist/document-CjNHI7Eb.d.cts +27 -0
- package/dist/document-Cu_HUDC5.mjs +51 -0
- package/dist/document-D-KvyEb5.d.cts +238 -0
- package/dist/document-D2nLVGig.d.mts +238 -0
- package/dist/document-D5yDIDIx.d.mts +15 -0
- package/dist/document-D73dqRle.d.cts +19 -0
- package/dist/document-DA6YVZz-.d.cts +100 -0
- package/dist/document-DJ0YiVte.d.cts +30 -0
- package/dist/document-DMHIUE3J.d.mts +17 -0
- package/dist/document-DN3g0EFx.d.cts +434 -0
- package/dist/document-DWapIF7V.d.cts +12223 -0
- package/dist/document-DYzRVV1C.d.mts +16 -0
- package/dist/document-D_ZMbzn6.d.cts +18 -0
- package/dist/document-DeoRGh7p.d.mts +19 -0
- package/dist/document-DsIPBTG8.cjs +30 -0
- package/dist/document-DsSaMVGb.cjs +106 -0
- package/dist/document-Gx2Vrg_w.d.mts +267 -0
- package/dist/document-IIJpsOIO.d.cts +16 -0
- package/dist/document-WHS8GHY5.d.mts +18 -0
- package/dist/document-dqrWptdY.d.cts +244 -0
- package/dist/document-hEBlSep8.d.cts +15 -0
- package/dist/document-qcC-10Nd.d.mts +12223 -0
- package/dist/document-rbMXLGxt.cjs +103 -0
- package/dist/document-si7GYS5g.d.mts +19 -0
- package/dist/document-vq-7rcU5.d.mts +244 -0
- package/dist/entities/audit-log/index.cjs +127 -0
- package/dist/entities/audit-log/index.d.cts +134 -0
- package/dist/entities/audit-log/index.d.mts +134 -0
- package/dist/entities/audit-log/index.mjs +115 -0
- package/dist/entities/blog-page/index.cjs +16 -0
- package/dist/entities/blog-page/index.d.cts +257 -0
- package/dist/entities/blog-page/index.d.mts +257 -0
- package/dist/entities/blog-page/index.mjs +13 -0
- package/dist/entities/blog-post/index.cjs +33 -0
- package/dist/entities/blog-post/index.d.cts +917 -0
- package/dist/entities/blog-post/index.d.mts +917 -0
- package/dist/entities/blog-post/index.mjs +21 -0
- package/dist/entities/careers-page/index.cjs +16 -0
- package/dist/entities/careers-page/index.d.cts +257 -0
- package/dist/entities/careers-page/index.d.mts +257 -0
- package/dist/entities/careers-page/index.mjs +13 -0
- package/dist/entities/category/index.cjs +63 -0
- package/dist/entities/category/index.d.cts +300 -0
- package/dist/entities/category/index.d.mts +300 -0
- package/dist/entities/category/index.mjs +52 -0
- package/dist/entities/client/index.cjs +96 -0
- package/dist/entities/client/index.d.cts +85 -0
- package/dist/entities/client/index.d.mts +85 -0
- package/dist/entities/client/index.mjs +83 -0
- package/dist/entities/client-content-pillar/index.cjs +70 -0
- package/dist/entities/client-content-pillar/index.d.cts +49 -0
- package/dist/entities/client-content-pillar/index.d.mts +49 -0
- package/dist/entities/client-content-pillar/index.mjs +59 -0
- package/dist/entities/client-media-platform/index.cjs +74 -0
- package/dist/entities/client-media-platform/index.d.cts +53 -0
- package/dist/entities/client-media-platform/index.d.mts +53 -0
- package/dist/entities/client-media-platform/index.mjs +63 -0
- package/dist/entities/client-project/index.cjs +205 -0
- package/dist/entities/client-project/index.d.cts +147 -0
- package/dist/entities/client-project/index.d.mts +147 -0
- package/dist/entities/client-project/index.mjs +188 -0
- package/dist/entities/client-report/index.cjs +82 -0
- package/dist/entities/client-report/index.d.cts +63 -0
- package/dist/entities/client-report/index.d.mts +63 -0
- package/dist/entities/client-report/index.mjs +71 -0
- package/dist/entities/client-styleguide/index.cjs +77 -0
- package/dist/entities/client-styleguide/index.d.cts +48 -0
- package/dist/entities/client-styleguide/index.d.mts +48 -0
- package/dist/entities/client-styleguide/index.mjs +66 -0
- package/dist/entities/client-user/index.cjs +78 -0
- package/dist/entities/client-user/index.d.cts +47 -0
- package/dist/entities/client-user/index.d.mts +47 -0
- package/dist/entities/client-user/index.mjs +64 -0
- package/dist/entities/comment/index.cjs +137 -0
- package/dist/entities/comment/index.d.cts +2 -0
- package/dist/entities/comment/index.d.mts +2 -0
- package/dist/entities/comment/index.mjs +116 -0
- package/dist/entities/content-pillar/index.cjs +59 -0
- package/dist/entities/content-pillar/index.d.cts +50 -0
- package/dist/entities/content-pillar/index.d.mts +50 -0
- package/dist/entities/content-pillar/index.mjs +48 -0
- package/dist/entities/faq-page/index.cjs +17 -0
- package/dist/entities/faq-page/index.d.cts +335 -0
- package/dist/entities/faq-page/index.d.mts +335 -0
- package/dist/entities/faq-page/index.mjs +14 -0
- package/dist/entities/formatter/index.cjs +258 -0
- package/dist/entities/formatter/index.d.cts +121 -0
- package/dist/entities/formatter/index.d.mts +121 -0
- package/dist/entities/formatter/index.mjs +233 -0
- package/dist/entities/gcflytour/index.cjs +79 -0
- package/dist/entities/gcflytour/index.d.cts +61 -0
- package/dist/entities/gcflytour/index.d.mts +61 -0
- package/dist/entities/gcflytour/index.mjs +68 -0
- package/dist/entities/gcflytour-snap/index.cjs +78 -0
- package/dist/entities/gcflytour-snap/index.d.cts +59 -0
- package/dist/entities/gcflytour-snap/index.d.mts +59 -0
- package/dist/entities/gcflytour-snap/index.mjs +67 -0
- package/dist/entities/landing-page/index.cjs +28 -0
- package/dist/entities/landing-page/index.d.cts +479 -0
- package/dist/entities/landing-page/index.d.mts +479 -0
- package/dist/entities/landing-page/index.mjs +25 -0
- package/dist/entities/lead/index.cjs +63 -0
- package/dist/entities/lead/index.d.cts +75 -0
- package/dist/entities/lead/index.d.mts +75 -0
- package/dist/entities/lead/index.mjs +57 -0
- package/dist/entities/media-content-type/index.cjs +100 -0
- package/dist/entities/media-content-type/index.d.cts +66 -0
- package/dist/entities/media-content-type/index.d.mts +66 -0
- package/dist/entities/media-content-type/index.mjs +89 -0
- package/dist/entities/media-creative-format/index.cjs +79 -0
- package/dist/entities/media-creative-format/index.d.cts +54 -0
- package/dist/entities/media-creative-format/index.d.mts +54 -0
- package/dist/entities/media-creative-format/index.mjs +68 -0
- package/dist/entities/media-medium/index.cjs +90 -0
- package/dist/entities/media-medium/index.d.cts +77 -0
- package/dist/entities/media-medium/index.d.mts +77 -0
- package/dist/entities/media-medium/index.mjs +79 -0
- package/dist/entities/media-platform/index.cjs +118 -0
- package/dist/entities/media-platform/index.d.cts +74 -0
- package/dist/entities/media-platform/index.d.mts +74 -0
- package/dist/entities/media-platform/index.mjs +107 -0
- package/dist/entities/monday-workspace/index.cjs +66 -0
- package/dist/entities/monday-workspace/index.d.cts +47 -0
- package/dist/entities/monday-workspace/index.d.mts +47 -0
- package/dist/entities/monday-workspace/index.mjs +55 -0
- package/dist/entities/newsletter-signup/index.cjs +67 -0
- package/dist/entities/newsletter-signup/index.d.cts +76 -0
- package/dist/entities/newsletter-signup/index.d.mts +76 -0
- package/dist/entities/newsletter-signup/index.mjs +60 -0
- package/dist/entities/policy-page/index.cjs +23 -0
- package/dist/entities/policy-page/index.d.cts +331 -0
- package/dist/entities/policy-page/index.d.mts +331 -0
- package/dist/entities/policy-page/index.mjs +20 -0
- package/dist/entities/product/index.cjs +28 -0
- package/dist/entities/product/index.d.cts +325 -0
- package/dist/entities/product/index.d.mts +325 -0
- package/dist/entities/product/index.mjs +23 -0
- package/dist/entities/product-highlight/index.cjs +28 -0
- package/dist/entities/product-highlight/index.d.cts +245 -0
- package/dist/entities/product-highlight/index.d.mts +245 -0
- package/dist/entities/product-highlight/index.mjs +23 -0
- package/dist/entities/resume/index.cjs +129 -0
- package/dist/entities/resume/index.d.cts +198 -0
- package/dist/entities/resume/index.d.mts +198 -0
- package/dist/entities/resume/index.mjs +119 -0
- package/dist/entities/sharpspring/index.cjs +19 -0
- package/dist/entities/sharpspring/index.d.cts +16 -0
- package/dist/entities/sharpspring/index.d.mts +16 -0
- package/dist/entities/sharpspring/index.mjs +16 -0
- package/dist/entities/tag/index.cjs +61 -0
- package/dist/entities/tag/index.d.cts +54 -0
- package/dist/entities/tag/index.d.mts +54 -0
- package/dist/entities/tag/index.mjs +50 -0
- package/dist/entities/team-member/index.cjs +29 -0
- package/dist/entities/team-member/index.d.cts +210 -0
- package/dist/entities/team-member/index.d.mts +210 -0
- package/dist/entities/team-member/index.mjs +17 -0
- package/dist/entities/team-page/index.cjs +16 -0
- package/dist/entities/team-page/index.d.cts +257 -0
- package/dist/entities/team-page/index.d.mts +257 -0
- package/dist/entities/team-page/index.mjs +13 -0
- package/dist/entities/teamwork/index.cjs +74 -0
- package/dist/entities/teamwork/index.d.cts +512 -0
- package/dist/entities/teamwork/index.d.mts +512 -0
- package/dist/entities/teamwork/index.mjs +68 -0
- package/dist/entities/trend/index.cjs +34 -0
- package/dist/entities/trend/index.d.cts +347 -0
- package/dist/entities/trend/index.d.mts +347 -0
- package/dist/entities/trend/index.mjs +28 -0
- package/dist/entities/up-auth/index.cjs +56 -0
- package/dist/entities/up-auth/index.d.cts +2 -0
- package/dist/entities/up-auth/index.d.mts +2 -0
- package/dist/entities/up-auth/index.mjs +44 -0
- package/dist/entities/up-permission/index.cjs +12 -0
- package/dist/entities/up-permission/index.d.cts +14 -0
- package/dist/entities/up-permission/index.d.mts +14 -0
- package/dist/entities/up-permission/index.mjs +9 -0
- package/dist/entities/up-role/index.cjs +28 -0
- package/dist/entities/up-role/index.d.cts +7 -0
- package/dist/entities/up-role/index.d.mts +7 -0
- package/dist/entities/up-role/index.mjs +23 -0
- package/dist/entities/up-user/index.cjs +64 -0
- package/dist/entities/up-user/index.d.cts +38 -0
- package/dist/entities/up-user/index.d.mts +38 -0
- package/dist/entities/up-user/index.mjs +54 -0
- package/dist/entities/upload/index.cjs +35 -0
- package/dist/entities/upload/index.d.cts +31 -0
- package/dist/entities/upload/index.d.mts +31 -0
- package/dist/entities/upload/index.mjs +29 -0
- package/dist/entities/url-redirect/index.cjs +67 -0
- package/dist/entities/url-redirect/index.d.cts +45 -0
- package/dist/entities/url-redirect/index.d.mts +45 -0
- package/dist/entities/url-redirect/index.mjs +54 -0
- package/dist/entities/user-account/index.cjs +48 -0
- package/dist/entities/user-account/index.d.cts +39 -0
- package/dist/entities/user-account/index.d.mts +39 -0
- package/dist/entities/user-account/index.mjs +39 -0
- package/dist/entities/utm-link-builder/index.cjs +84 -0
- package/dist/entities/utm-link-builder/index.d.cts +191 -0
- package/dist/entities/utm-link-builder/index.d.mts +191 -0
- package/dist/entities/utm-link-builder/index.mjs +76 -0
- package/dist/entities/utm-meta/index.cjs +19 -0
- package/dist/entities/utm-meta/index.d.cts +83 -0
- package/dist/entities/utm-meta/index.d.mts +83 -0
- package/dist/entities/utm-meta/index.mjs +16 -0
- package/dist/entities/utm-tracking-link/index.cjs +199 -0
- package/dist/entities/utm-tracking-link/index.d.cts +235 -0
- package/dist/entities/utm-tracking-link/index.d.mts +235 -0
- package/dist/entities/utm-tracking-link/index.mjs +184 -0
- package/dist/fields-BQHSYj70.d.cts +7 -0
- package/dist/fields-qx-5saY5.d.mts +7 -0
- package/dist/fonts-CGSHKgp0.cjs +125 -0
- package/dist/fonts-tMy55UFs.mjs +58 -0
- package/dist/index-CPUGB8lZ.d.mts +95 -0
- package/dist/index-DDYmaYSm.d.mts +200 -0
- package/dist/index-Dl6KBLdT.d.mts +422 -0
- package/dist/index-DmLVZdb3.d.cts +200 -0
- package/dist/index-Dv9bgrpo.d.cts +422 -0
- package/dist/index-H4RC0v4h.d.cts +95 -0
- package/dist/json-BJ8GyrtC.d.cts +9 -0
- package/dist/json-BgewUW_1.cjs +19 -0
- package/dist/json-CTduX6Ak.mjs +12 -0
- package/dist/json-CqAaKeHA.d.mts +9 -0
- package/dist/media-upload-B6aQYeRM.cjs +59 -0
- package/dist/media-upload-DiRJksSU.mjs +40 -0
- package/dist/pagination-4pZafglS.cjs +23 -0
- package/dist/pagination-owwfYJS6.mjs +6 -0
- package/dist/{permissions.cjs → permissions/index.cjs} +6 -89
- package/dist/permissions/index.d.cts +2 -0
- package/dist/permissions/index.d.mts +2 -0
- package/dist/{permissions.mjs → permissions/index.mjs} +3 -86
- package/dist/query.schema-BOn5Kk_p.d.mts +41 -0
- package/dist/query.schema-CItKlb0x.d.cts +41 -0
- package/dist/query.schema-DHTf6rTw.cjs +95 -0
- package/dist/query.schema-YKoOuBnk.mjs +40 -0
- package/dist/regex-BnKGcdS4.mjs +55 -0
- package/dist/regex-Cl5goNwp.cjs +342 -0
- package/dist/relations-C04F46xL.mjs +41 -0
- package/dist/relations-CGu18hfT.cjs +90 -0
- package/dist/response-C-7nyNVD.d.mts +57 -0
- package/dist/response-c6SgLvi9.d.cts +57 -0
- package/dist/strapi-C0DtxJLD.mjs +9 -0
- package/dist/strapi-C7POOPEf.cjs +34 -0
- package/dist/strapi-COeswSwJ.mjs +49 -0
- package/dist/strapi-DmhV7ODq.cjs +72 -0
- package/dist/theme-Ba9vW4PA.cjs +230 -0
- package/dist/theme-BhQd4eMI.mjs +97 -0
- package/dist/{utilities.cjs → utilities/index.cjs} +9 -28
- package/dist/utilities/index.d.cts +24 -0
- package/dist/utilities/index.d.mts +24 -0
- package/dist/{utilities.mjs → utilities/index.mjs} +9 -25
- package/dist/validators-Bc9Is5Sr.cjs +222 -0
- package/dist/validators-P5E_3qzc.mjs +95 -0
- package/package.json +64 -40
- package/dist/constants.cjs +0 -461
- package/dist/constants.d.cts +0 -2
- package/dist/constants.d.mts +0 -2
- package/dist/constants.mjs +0 -353
- package/dist/index-CiWVYf_f.d.cts +0 -291
- package/dist/index-CnH0p5DO.d.mts +0 -4509
- package/dist/index-Cs4i8IvA.d.cts +0 -4509
- package/dist/index-DOR_It7I.d.mts +0 -291
- package/dist/index.cjs +0 -384
- package/dist/index.d.cts +0 -3
- package/dist/index.d.mts +0 -3
- package/dist/index.mjs +0 -6
- package/dist/permissions.d.cts +0 -2
- package/dist/permissions.d.mts +0 -2
- package/dist/schemas.cjs +0 -2326
- package/dist/schemas.d.cts +0 -2
- package/dist/schemas.d.mts +0 -2
- package/dist/schemas.mjs +0 -2068
- package/dist/types.cjs +0 -0
- package/dist/types.d.cts +0 -2
- package/dist/types.d.mts +0 -2
- package/dist/types.mjs +0 -1
- package/dist/utilities.d.cts +0 -2
- package/dist/utilities.d.mts +0 -2
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
+
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
+
const require_components_shared_index = require("./components/shared/index.cjs");
|
|
4
|
+
const require_components_blocks_index = require("./components/blocks/index.cjs");
|
|
5
|
+
const require_components_forms_index = require("./components/forms/index.cjs");
|
|
6
|
+
const require_components_slideshow_index = require("./components/slideshow/index.cjs");
|
|
7
|
+
let valibot = require("valibot");
|
|
8
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
|
+
//#region src/entities/blog-post/constants.ts
|
|
10
|
+
const LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE = 6;
|
|
11
|
+
const LIMIT_BLOG_POST_PAGINATION_MAX_SIZE = 20;
|
|
12
|
+
const BLOG_POST_SORT_KEYS = [
|
|
13
|
+
"id",
|
|
14
|
+
"title",
|
|
15
|
+
"slug",
|
|
16
|
+
"is_live",
|
|
17
|
+
"is_featured",
|
|
18
|
+
"is_public",
|
|
19
|
+
"published",
|
|
20
|
+
"createdAt",
|
|
21
|
+
"updatedAt"
|
|
22
|
+
];
|
|
23
|
+
const BLOG_POST_LAYOUT = ["main-aside", "center-column"];
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/entities/blog-post/fields.ts
|
|
26
|
+
const QuerySortBlogPosts = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(BLOG_POST_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(BLOG_POST_SORT_KEYS.length)));
|
|
27
|
+
const BlogPostLayout = valibot.picklist(BLOG_POST_LAYOUT);
|
|
28
|
+
const BlogPostBlock = valibot.union([
|
|
29
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockSectionTitle),
|
|
30
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockGraphicImage),
|
|
31
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockPullQuote),
|
|
32
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockVideo),
|
|
33
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockFaq),
|
|
34
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockContact),
|
|
35
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockButtonGroup),
|
|
36
|
+
valibot.lazy(() => require_components_blocks_index.ComponentBlockFullscreenContent),
|
|
37
|
+
valibot.lazy(() => require_components_forms_index.ComponentFormSelect),
|
|
38
|
+
valibot.lazy(() => require_components_slideshow_index.ComponentSlideshow),
|
|
39
|
+
valibot.lazy(() => require_components_shared_index.ComponentSharedRichTextBlock)
|
|
40
|
+
]);
|
|
41
|
+
//#endregion
|
|
42
|
+
//#region src/entities/blog-post/document.ts
|
|
43
|
+
const BlogPostDocument = valibot.object({
|
|
44
|
+
...require_document.BaseDocument.entries,
|
|
45
|
+
title: valibot.string(),
|
|
46
|
+
slug: valibot.string(),
|
|
47
|
+
excerpt: valibot.string(),
|
|
48
|
+
published: valibot.string(),
|
|
49
|
+
is_live: valibot.boolean(),
|
|
50
|
+
is_featured: valibot.boolean(),
|
|
51
|
+
is_public: valibot.boolean(),
|
|
52
|
+
seo: valibot.optional(valibot.nullable(require_components_shared_index.SeoMeta)),
|
|
53
|
+
layout: valibot.nullable(BlogPostLayout)
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
Object.defineProperty(exports, "BLOG_POST_LAYOUT", {
|
|
57
|
+
enumerable: true,
|
|
58
|
+
get: function() {
|
|
59
|
+
return BLOG_POST_LAYOUT;
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "BLOG_POST_SORT_KEYS", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function() {
|
|
65
|
+
return BLOG_POST_SORT_KEYS;
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "BlogPostBlock", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function() {
|
|
71
|
+
return BlogPostBlock;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "BlogPostDocument", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function() {
|
|
77
|
+
return BlogPostDocument;
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
Object.defineProperty(exports, "BlogPostLayout", {
|
|
81
|
+
enumerable: true,
|
|
82
|
+
get: function() {
|
|
83
|
+
return BlogPostLayout;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function() {
|
|
89
|
+
return LIMIT_BLOG_POST_PAGINATION_DEFAULT_SIZE;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
Object.defineProperty(exports, "LIMIT_BLOG_POST_PAGINATION_MAX_SIZE", {
|
|
93
|
+
enumerable: true,
|
|
94
|
+
get: function() {
|
|
95
|
+
return LIMIT_BLOG_POST_PAGINATION_MAX_SIZE;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "QuerySortBlogPosts", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function() {
|
|
101
|
+
return QuerySortBlogPosts;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/up-user/document.d.ts
|
|
4
|
+
declare const UserDocument: v.ObjectSchema<{
|
|
5
|
+
readonly username: v.StringSchema<undefined>;
|
|
6
|
+
readonly email: v.StringSchema<undefined>;
|
|
7
|
+
readonly provider: v.StringSchema<undefined>;
|
|
8
|
+
readonly confirmed: v.BooleanSchema<undefined>;
|
|
9
|
+
readonly blocked: v.BooleanSchema<undefined>;
|
|
10
|
+
readonly clerk_user_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly id: v.NumberSchema<undefined>;
|
|
12
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
13
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
15
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
type UserDocument = v.InferOutput<typeof UserDocument>;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { UserDocument as t };
|
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/entities/media-platform/document.d.ts
|
|
4
|
+
declare const MediaPlatformDocument: v.ObjectSchema<{
|
|
5
|
+
readonly title: v.StringSchema<undefined>;
|
|
6
|
+
readonly slug: v.StringSchema<undefined>;
|
|
7
|
+
readonly utm_key: v.StringSchema<undefined>;
|
|
8
|
+
readonly is_active: v.BooleanSchema<undefined>;
|
|
9
|
+
readonly is_organic_social: v.BooleanSchema<undefined>;
|
|
10
|
+
readonly is_paid_media: v.BooleanSchema<undefined>;
|
|
11
|
+
readonly logos: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
12
|
+
readonly light: v.OptionalSchema<v.NullableSchema<v.LazySchema<v.ObjectSchema<{
|
|
13
|
+
readonly name: v.StringSchema<undefined>;
|
|
14
|
+
readonly alternativeText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly caption: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly width: v.NumberSchema<undefined>;
|
|
17
|
+
readonly height: v.NumberSchema<undefined>;
|
|
18
|
+
readonly formats: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
19
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
20
|
+
readonly ext: v.StringSchema<undefined>;
|
|
21
|
+
readonly url: v.StringSchema<undefined>;
|
|
22
|
+
readonly hash: v.StringSchema<undefined>;
|
|
23
|
+
readonly mime: v.StringSchema<undefined>;
|
|
24
|
+
readonly name: v.StringSchema<undefined>;
|
|
25
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly size: v.NumberSchema<undefined>;
|
|
27
|
+
readonly width: v.NumberSchema<undefined>;
|
|
28
|
+
readonly height: v.NumberSchema<undefined>;
|
|
29
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
30
|
+
}, undefined>, undefined>;
|
|
31
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
32
|
+
readonly ext: v.StringSchema<undefined>;
|
|
33
|
+
readonly url: v.StringSchema<undefined>;
|
|
34
|
+
readonly hash: v.StringSchema<undefined>;
|
|
35
|
+
readonly mime: v.StringSchema<undefined>;
|
|
36
|
+
readonly name: v.StringSchema<undefined>;
|
|
37
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly size: v.NumberSchema<undefined>;
|
|
39
|
+
readonly width: v.NumberSchema<undefined>;
|
|
40
|
+
readonly height: v.NumberSchema<undefined>;
|
|
41
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
42
|
+
}, undefined>, undefined>;
|
|
43
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
44
|
+
readonly ext: v.StringSchema<undefined>;
|
|
45
|
+
readonly url: v.StringSchema<undefined>;
|
|
46
|
+
readonly hash: v.StringSchema<undefined>;
|
|
47
|
+
readonly mime: v.StringSchema<undefined>;
|
|
48
|
+
readonly name: v.StringSchema<undefined>;
|
|
49
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
readonly size: v.NumberSchema<undefined>;
|
|
51
|
+
readonly width: v.NumberSchema<undefined>;
|
|
52
|
+
readonly height: v.NumberSchema<undefined>;
|
|
53
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
56
|
+
readonly ext: v.StringSchema<undefined>;
|
|
57
|
+
readonly url: v.StringSchema<undefined>;
|
|
58
|
+
readonly hash: v.StringSchema<undefined>;
|
|
59
|
+
readonly mime: v.StringSchema<undefined>;
|
|
60
|
+
readonly name: v.StringSchema<undefined>;
|
|
61
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly size: v.NumberSchema<undefined>;
|
|
63
|
+
readonly width: v.NumberSchema<undefined>;
|
|
64
|
+
readonly height: v.NumberSchema<undefined>;
|
|
65
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
66
|
+
}, undefined>, undefined>;
|
|
67
|
+
}, undefined>, undefined>, undefined>;
|
|
68
|
+
readonly hash: v.StringSchema<undefined>;
|
|
69
|
+
readonly ext: v.StringSchema<undefined>;
|
|
70
|
+
readonly mime: v.StringSchema<undefined>;
|
|
71
|
+
readonly size: v.NumberSchema<undefined>;
|
|
72
|
+
readonly url: v.StringSchema<undefined>;
|
|
73
|
+
readonly previewUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
74
|
+
readonly provider: v.StringSchema<undefined>;
|
|
75
|
+
readonly provider_metadata: v.NullSchema<undefined>;
|
|
76
|
+
readonly id: v.NumberSchema<undefined>;
|
|
77
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
78
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
80
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
81
|
+
}, undefined>>, undefined>, undefined>;
|
|
82
|
+
readonly dark: v.OptionalSchema<v.NullableSchema<v.LazySchema<v.ObjectSchema<{
|
|
83
|
+
readonly name: v.StringSchema<undefined>;
|
|
84
|
+
readonly alternativeText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly caption: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly width: v.NumberSchema<undefined>;
|
|
87
|
+
readonly height: v.NumberSchema<undefined>;
|
|
88
|
+
readonly formats: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
89
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
90
|
+
readonly ext: v.StringSchema<undefined>;
|
|
91
|
+
readonly url: v.StringSchema<undefined>;
|
|
92
|
+
readonly hash: v.StringSchema<undefined>;
|
|
93
|
+
readonly mime: v.StringSchema<undefined>;
|
|
94
|
+
readonly name: v.StringSchema<undefined>;
|
|
95
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
96
|
+
readonly size: v.NumberSchema<undefined>;
|
|
97
|
+
readonly width: v.NumberSchema<undefined>;
|
|
98
|
+
readonly height: v.NumberSchema<undefined>;
|
|
99
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
100
|
+
}, undefined>, undefined>;
|
|
101
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
102
|
+
readonly ext: v.StringSchema<undefined>;
|
|
103
|
+
readonly url: v.StringSchema<undefined>;
|
|
104
|
+
readonly hash: v.StringSchema<undefined>;
|
|
105
|
+
readonly mime: v.StringSchema<undefined>;
|
|
106
|
+
readonly name: v.StringSchema<undefined>;
|
|
107
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly size: v.NumberSchema<undefined>;
|
|
109
|
+
readonly width: v.NumberSchema<undefined>;
|
|
110
|
+
readonly height: v.NumberSchema<undefined>;
|
|
111
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
112
|
+
}, undefined>, undefined>;
|
|
113
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
114
|
+
readonly ext: v.StringSchema<undefined>;
|
|
115
|
+
readonly url: v.StringSchema<undefined>;
|
|
116
|
+
readonly hash: v.StringSchema<undefined>;
|
|
117
|
+
readonly mime: v.StringSchema<undefined>;
|
|
118
|
+
readonly name: v.StringSchema<undefined>;
|
|
119
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly size: v.NumberSchema<undefined>;
|
|
121
|
+
readonly width: v.NumberSchema<undefined>;
|
|
122
|
+
readonly height: v.NumberSchema<undefined>;
|
|
123
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
124
|
+
}, undefined>, undefined>;
|
|
125
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
126
|
+
readonly ext: v.StringSchema<undefined>;
|
|
127
|
+
readonly url: v.StringSchema<undefined>;
|
|
128
|
+
readonly hash: v.StringSchema<undefined>;
|
|
129
|
+
readonly mime: v.StringSchema<undefined>;
|
|
130
|
+
readonly name: v.StringSchema<undefined>;
|
|
131
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly size: v.NumberSchema<undefined>;
|
|
133
|
+
readonly width: v.NumberSchema<undefined>;
|
|
134
|
+
readonly height: v.NumberSchema<undefined>;
|
|
135
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
136
|
+
}, undefined>, undefined>;
|
|
137
|
+
}, undefined>, undefined>, undefined>;
|
|
138
|
+
readonly hash: v.StringSchema<undefined>;
|
|
139
|
+
readonly ext: v.StringSchema<undefined>;
|
|
140
|
+
readonly mime: v.StringSchema<undefined>;
|
|
141
|
+
readonly size: v.NumberSchema<undefined>;
|
|
142
|
+
readonly url: v.StringSchema<undefined>;
|
|
143
|
+
readonly previewUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
readonly provider: v.StringSchema<undefined>;
|
|
145
|
+
readonly provider_metadata: v.NullSchema<undefined>;
|
|
146
|
+
readonly id: v.NumberSchema<undefined>;
|
|
147
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
148
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
149
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
150
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
151
|
+
}, undefined>>, undefined>, undefined>;
|
|
152
|
+
readonly color: v.ObjectSchema<{
|
|
153
|
+
readonly name: v.StringSchema<undefined>;
|
|
154
|
+
readonly alternativeText: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
155
|
+
readonly caption: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
156
|
+
readonly width: v.NumberSchema<undefined>;
|
|
157
|
+
readonly height: v.NumberSchema<undefined>;
|
|
158
|
+
readonly formats: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
159
|
+
readonly large: v.OptionalSchema<v.ObjectSchema<{
|
|
160
|
+
readonly ext: v.StringSchema<undefined>;
|
|
161
|
+
readonly url: v.StringSchema<undefined>;
|
|
162
|
+
readonly hash: v.StringSchema<undefined>;
|
|
163
|
+
readonly mime: v.StringSchema<undefined>;
|
|
164
|
+
readonly name: v.StringSchema<undefined>;
|
|
165
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
166
|
+
readonly size: v.NumberSchema<undefined>;
|
|
167
|
+
readonly width: v.NumberSchema<undefined>;
|
|
168
|
+
readonly height: v.NumberSchema<undefined>;
|
|
169
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
170
|
+
}, undefined>, undefined>;
|
|
171
|
+
readonly small: v.OptionalSchema<v.ObjectSchema<{
|
|
172
|
+
readonly ext: v.StringSchema<undefined>;
|
|
173
|
+
readonly url: v.StringSchema<undefined>;
|
|
174
|
+
readonly hash: v.StringSchema<undefined>;
|
|
175
|
+
readonly mime: v.StringSchema<undefined>;
|
|
176
|
+
readonly name: v.StringSchema<undefined>;
|
|
177
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
178
|
+
readonly size: v.NumberSchema<undefined>;
|
|
179
|
+
readonly width: v.NumberSchema<undefined>;
|
|
180
|
+
readonly height: v.NumberSchema<undefined>;
|
|
181
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
182
|
+
}, undefined>, undefined>;
|
|
183
|
+
readonly medium: v.OptionalSchema<v.ObjectSchema<{
|
|
184
|
+
readonly ext: v.StringSchema<undefined>;
|
|
185
|
+
readonly url: v.StringSchema<undefined>;
|
|
186
|
+
readonly hash: v.StringSchema<undefined>;
|
|
187
|
+
readonly mime: v.StringSchema<undefined>;
|
|
188
|
+
readonly name: v.StringSchema<undefined>;
|
|
189
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
190
|
+
readonly size: v.NumberSchema<undefined>;
|
|
191
|
+
readonly width: v.NumberSchema<undefined>;
|
|
192
|
+
readonly height: v.NumberSchema<undefined>;
|
|
193
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
194
|
+
}, undefined>, undefined>;
|
|
195
|
+
readonly thumbnail: v.OptionalSchema<v.ObjectSchema<{
|
|
196
|
+
readonly ext: v.StringSchema<undefined>;
|
|
197
|
+
readonly url: v.StringSchema<undefined>;
|
|
198
|
+
readonly hash: v.StringSchema<undefined>;
|
|
199
|
+
readonly mime: v.StringSchema<undefined>;
|
|
200
|
+
readonly name: v.StringSchema<undefined>;
|
|
201
|
+
readonly path: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
+
readonly size: v.NumberSchema<undefined>;
|
|
203
|
+
readonly width: v.NumberSchema<undefined>;
|
|
204
|
+
readonly height: v.NumberSchema<undefined>;
|
|
205
|
+
readonly sizeInBytes: v.NumberSchema<undefined>;
|
|
206
|
+
}, undefined>, undefined>;
|
|
207
|
+
}, undefined>, undefined>, undefined>;
|
|
208
|
+
readonly hash: v.StringSchema<undefined>;
|
|
209
|
+
readonly ext: v.StringSchema<undefined>;
|
|
210
|
+
readonly mime: v.StringSchema<undefined>;
|
|
211
|
+
readonly size: v.NumberSchema<undefined>;
|
|
212
|
+
readonly url: v.StringSchema<undefined>;
|
|
213
|
+
readonly previewUrl: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
214
|
+
readonly provider: v.StringSchema<undefined>;
|
|
215
|
+
readonly provider_metadata: v.NullSchema<undefined>;
|
|
216
|
+
readonly id: v.NumberSchema<undefined>;
|
|
217
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
218
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
219
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
220
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
221
|
+
}, undefined>;
|
|
222
|
+
readonly id: v.NumberSchema<undefined>;
|
|
223
|
+
}, undefined>, undefined>, undefined>;
|
|
224
|
+
readonly description: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
225
|
+
readonly information: v.NullableSchema<v.ArraySchema<v.ObjectSchema<{
|
|
226
|
+
readonly type: v.StringSchema<undefined>;
|
|
227
|
+
readonly children: v.ArraySchema<v.ObjectSchema<{
|
|
228
|
+
readonly type: v.StringSchema<undefined>;
|
|
229
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
230
|
+
readonly text: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
231
|
+
readonly bold: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
232
|
+
readonly italic: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
233
|
+
readonly underline: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
234
|
+
}, undefined>, undefined>;
|
|
235
|
+
}, undefined>, undefined>, undefined>;
|
|
236
|
+
readonly id: v.NumberSchema<undefined>;
|
|
237
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
238
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
239
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
240
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
241
|
+
}, undefined>;
|
|
242
|
+
type MediaPlatformDocument = v.InferOutput<typeof MediaPlatformDocument>;
|
|
243
|
+
//#endregion
|
|
244
|
+
export { MediaPlatformDocument as t };
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_chunk = require("../../chunk-CKQMccvm.cjs");
|
|
3
|
+
const require_document = require("../../document-BAro2Mrj.cjs");
|
|
4
|
+
const require_json = require("../../json-BgewUW_1.cjs");
|
|
5
|
+
const require_validators = require("../../validators-Bc9Is5Sr.cjs");
|
|
6
|
+
const require_relations = require("../../relations-CGu18hfT.cjs");
|
|
7
|
+
let valibot = require("valibot");
|
|
8
|
+
valibot = require_chunk.__toESM(valibot, 1);
|
|
9
|
+
//#region src/entities/audit-log/constants.ts
|
|
10
|
+
const LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE = 20;
|
|
11
|
+
const AUDIT_LOG_SORT_KEYS = [
|
|
12
|
+
"id",
|
|
13
|
+
"method",
|
|
14
|
+
"url",
|
|
15
|
+
"path",
|
|
16
|
+
"request_id",
|
|
17
|
+
"ipaddress",
|
|
18
|
+
"user_agent",
|
|
19
|
+
"route_path",
|
|
20
|
+
"route_handler",
|
|
21
|
+
"actor_type",
|
|
22
|
+
"actor_id",
|
|
23
|
+
"actor_email",
|
|
24
|
+
"entity_action",
|
|
25
|
+
"entity_content_type",
|
|
26
|
+
"entity_id",
|
|
27
|
+
"entity_label",
|
|
28
|
+
"createdAt",
|
|
29
|
+
"updatedAt"
|
|
30
|
+
];
|
|
31
|
+
const AUDIT_LOG_METHODS = [
|
|
32
|
+
"GET",
|
|
33
|
+
"POST",
|
|
34
|
+
"PUT",
|
|
35
|
+
"PATCH",
|
|
36
|
+
"DELETE",
|
|
37
|
+
"UNKNOWN"
|
|
38
|
+
];
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/entities/audit-log/fields.ts
|
|
41
|
+
const QuerySortAuditLogs = valibot.optional(valibot.pipe(valibot.array(valibot.picklist(AUDIT_LOG_SORT_KEYS.flatMap((k) => [`${k}:ASC`, `${k}:DESC`]))), valibot.maxLength(AUDIT_LOG_SORT_KEYS.length)));
|
|
42
|
+
const AuditLogMethod = valibot.picklist(AUDIT_LOG_METHODS);
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/entities/audit-log/mutation.ts
|
|
45
|
+
const CreateAuditLogDocument = valibot.object({
|
|
46
|
+
method: AuditLogMethod,
|
|
47
|
+
url: valibot.string(),
|
|
48
|
+
path: valibot.string(),
|
|
49
|
+
request_id: valibot.nullable(require_validators.VStringMax()),
|
|
50
|
+
ipaddress: valibot.nullable(require_validators.VStringMax(64)),
|
|
51
|
+
user_agent: valibot.nullable(require_validators.VStringMax()),
|
|
52
|
+
route_path: valibot.nullable(require_validators.VStringMax()),
|
|
53
|
+
route_handler: valibot.nullable(require_validators.VStringMax()),
|
|
54
|
+
actor_type: require_validators.VStringMax(),
|
|
55
|
+
actor_id: valibot.nullable(require_validators.VStringMax()),
|
|
56
|
+
actor_email: valibot.nullable(require_validators.VStringEmail()),
|
|
57
|
+
entity_action: require_validators.VStringMax(),
|
|
58
|
+
entity_content_type: require_validators.VStringMax(),
|
|
59
|
+
entity_id: valibot.nullable(require_validators.VStringMax()),
|
|
60
|
+
entity_label: valibot.nullable(require_validators.VStringMax()),
|
|
61
|
+
request_data: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
62
|
+
before: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
63
|
+
after: valibot.optional(valibot.nullable(require_json.JsonSchema))
|
|
64
|
+
});
|
|
65
|
+
const UpdateAuditLogDocument = valibot.object({
|
|
66
|
+
method: valibot.optional(AuditLogMethod),
|
|
67
|
+
url: valibot.optional(valibot.string()),
|
|
68
|
+
path: valibot.optional(valibot.string()),
|
|
69
|
+
request_id: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
70
|
+
ipaddress: valibot.optional(valibot.nullable(require_validators.VStringMax(64))),
|
|
71
|
+
user_agent: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
72
|
+
route_path: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
73
|
+
route_handler: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
74
|
+
actor_type: valibot.optional(require_validators.VStringMax()),
|
|
75
|
+
actor_id: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
76
|
+
actor_email: valibot.optional(valibot.nullable(require_validators.VStringEmail())),
|
|
77
|
+
entity_action: valibot.optional(require_validators.VStringMax()),
|
|
78
|
+
entity_content_type: valibot.optional(require_validators.VStringMax()),
|
|
79
|
+
entity_id: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
80
|
+
entity_label: valibot.optional(valibot.nullable(require_validators.VStringMax())),
|
|
81
|
+
request_data: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
82
|
+
before: valibot.optional(valibot.nullable(require_json.JsonSchema)),
|
|
83
|
+
after: valibot.optional(valibot.nullable(require_json.JsonSchema))
|
|
84
|
+
});
|
|
85
|
+
const UpdateAuditLogDocumentRequest = valibot.object({
|
|
86
|
+
documentId: require_relations.SAssociateOneEntity,
|
|
87
|
+
data: UpdateAuditLogDocument
|
|
88
|
+
});
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/entities/audit-log/document.ts
|
|
91
|
+
const AuditLogDocument = valibot.object({
|
|
92
|
+
...require_document.BaseDocument.entries,
|
|
93
|
+
...CreateAuditLogDocument.entries
|
|
94
|
+
});
|
|
95
|
+
//#endregion
|
|
96
|
+
//#region src/entities/audit-log/query.ts
|
|
97
|
+
const QueryStrapiSearchAuditLogs = valibot.object({
|
|
98
|
+
page: require_validators.VPage(),
|
|
99
|
+
size: require_validators.VSize(20),
|
|
100
|
+
method: valibot.optional(AuditLogMethod),
|
|
101
|
+
url: valibot.optional(valibot.string()),
|
|
102
|
+
path: valibot.optional(valibot.string()),
|
|
103
|
+
request_id: valibot.optional(require_validators.VStringMax()),
|
|
104
|
+
ipaddress: valibot.optional(require_validators.VStringMax(64)),
|
|
105
|
+
user_agent: valibot.optional(require_validators.VStringMax()),
|
|
106
|
+
route_path: valibot.optional(require_validators.VStringMax()),
|
|
107
|
+
route_handler: valibot.optional(require_validators.VStringMax()),
|
|
108
|
+
actor_type: valibot.optional(require_validators.VStringMax()),
|
|
109
|
+
actor_id: valibot.optional(require_validators.VStringMax()),
|
|
110
|
+
actor_email: valibot.optional(require_validators.VStringEmail()),
|
|
111
|
+
entity_action: valibot.optional(require_validators.VStringMax()),
|
|
112
|
+
entity_content_type: valibot.optional(require_validators.VStringMax()),
|
|
113
|
+
entity_id: valibot.optional(require_validators.VStringMax()),
|
|
114
|
+
entity_label: valibot.optional(require_validators.VStringMax()),
|
|
115
|
+
sort: QuerySortAuditLogs
|
|
116
|
+
});
|
|
117
|
+
//#endregion
|
|
118
|
+
exports.AUDIT_LOG_METHODS = AUDIT_LOG_METHODS;
|
|
119
|
+
exports.AUDIT_LOG_SORT_KEYS = AUDIT_LOG_SORT_KEYS;
|
|
120
|
+
exports.AuditLogDocument = AuditLogDocument;
|
|
121
|
+
exports.AuditLogMethod = AuditLogMethod;
|
|
122
|
+
exports.CreateAuditLogDocument = CreateAuditLogDocument;
|
|
123
|
+
exports.LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE = LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE;
|
|
124
|
+
exports.QuerySortAuditLogs = QuerySortAuditLogs;
|
|
125
|
+
exports.QueryStrapiSearchAuditLogs = QueryStrapiSearchAuditLogs;
|
|
126
|
+
exports.UpdateAuditLogDocument = UpdateAuditLogDocument;
|
|
127
|
+
exports.UpdateAuditLogDocumentRequest = UpdateAuditLogDocumentRequest;
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { t as JsonData } from "../../json-BJ8GyrtC.cjs";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
|
|
4
|
+
//#region src/entities/audit-log/constants.d.ts
|
|
5
|
+
declare const LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE = 20;
|
|
6
|
+
declare const AUDIT_LOG_SORT_KEYS: readonly ["id", "method", "url", "path", "request_id", "ipaddress", "user_agent", "route_path", "route_handler", "actor_type", "actor_id", "actor_email", "entity_action", "entity_content_type", "entity_id", "entity_label", "createdAt", "updatedAt"];
|
|
7
|
+
declare const AUDIT_LOG_METHODS: readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"];
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/entities/audit-log/document.d.ts
|
|
10
|
+
declare const AuditLogDocument: v.ObjectSchema<{
|
|
11
|
+
readonly method: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
12
|
+
readonly url: v.StringSchema<undefined>;
|
|
13
|
+
readonly path: v.StringSchema<undefined>;
|
|
14
|
+
readonly request_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
+
readonly ipaddress: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
16
|
+
readonly user_agent: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
17
|
+
readonly route_path: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
+
readonly route_handler: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
+
readonly actor_type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
20
|
+
readonly actor_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
21
|
+
readonly actor_email: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
22
|
+
readonly entity_action: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
23
|
+
readonly entity_content_type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
24
|
+
readonly entity_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
25
|
+
readonly entity_label: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly request_data: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
27
|
+
readonly before: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
28
|
+
readonly after: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
29
|
+
readonly id: v.NumberSchema<undefined>;
|
|
30
|
+
readonly documentId: v.StringSchema<undefined>;
|
|
31
|
+
readonly publishedAt: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly createdAt: v.StringSchema<undefined>;
|
|
33
|
+
readonly updatedAt: v.StringSchema<undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
type AuditLogDocument = v.InferOutput<typeof AuditLogDocument>;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region src/entities/audit-log/fields.d.ts
|
|
38
|
+
declare const QuerySortAuditLogs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], 18, undefined>]>, undefined>;
|
|
39
|
+
type QuerySortAuditLogs = v.InferOutput<typeof QuerySortAuditLogs>;
|
|
40
|
+
declare const AuditLogMethod: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
41
|
+
type AuditLogMethod = v.InferOutput<typeof AuditLogMethod>;
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region src/entities/audit-log/mutation.d.ts
|
|
44
|
+
declare const CreateAuditLogDocument: v.ObjectSchema<{
|
|
45
|
+
readonly method: v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>;
|
|
46
|
+
readonly url: v.StringSchema<undefined>;
|
|
47
|
+
readonly path: v.StringSchema<undefined>;
|
|
48
|
+
readonly request_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
readonly ipaddress: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
50
|
+
readonly user_agent: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
+
readonly route_path: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
52
|
+
readonly route_handler: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
53
|
+
readonly actor_type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
54
|
+
readonly actor_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
|
+
readonly actor_email: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
56
|
+
readonly entity_action: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
57
|
+
readonly entity_content_type: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>;
|
|
58
|
+
readonly entity_id: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
|
+
readonly entity_label: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
60
|
+
readonly request_data: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
61
|
+
readonly before: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
62
|
+
readonly after: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
type CreateAuditLogDocument = v.InferOutput<typeof CreateAuditLogDocument>;
|
|
65
|
+
declare const UpdateAuditLogDocument: v.ObjectSchema<{
|
|
66
|
+
readonly method: v.OptionalSchema<v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>, undefined>;
|
|
67
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
68
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
69
|
+
readonly request_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
70
|
+
readonly ipaddress: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
71
|
+
readonly user_agent: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
72
|
+
readonly route_path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
73
|
+
readonly route_handler: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
74
|
+
readonly actor_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
75
|
+
readonly actor_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
76
|
+
readonly actor_email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;
|
|
77
|
+
readonly entity_action: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
78
|
+
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
79
|
+
readonly entity_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
80
|
+
readonly entity_label: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
81
|
+
readonly request_data: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
82
|
+
readonly before: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
83
|
+
readonly after: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
84
|
+
}, undefined>;
|
|
85
|
+
type UpdateAuditLogDocument = v.InferOutput<typeof UpdateAuditLogDocument>;
|
|
86
|
+
declare const UpdateAuditLogDocumentRequest: v.ObjectSchema<{
|
|
87
|
+
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
88
|
+
readonly data: v.ObjectSchema<{
|
|
89
|
+
readonly method: v.OptionalSchema<v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>, undefined>;
|
|
90
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
91
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
|
+
readonly request_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
93
|
+
readonly ipaddress: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
94
|
+
readonly user_agent: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
95
|
+
readonly route_path: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
96
|
+
readonly route_handler: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
97
|
+
readonly actor_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
98
|
+
readonly actor_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
99
|
+
readonly actor_email: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>, undefined>;
|
|
100
|
+
readonly entity_action: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
|
+
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
|
+
readonly entity_id: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
103
|
+
readonly entity_label: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
104
|
+
readonly request_data: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
105
|
+
readonly before: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
106
|
+
readonly after: v.OptionalSchema<v.NullableSchema<v.GenericSchema<JsonData>, undefined>, undefined>;
|
|
107
|
+
}, undefined>;
|
|
108
|
+
}, undefined>;
|
|
109
|
+
type UpdateAuditLogDocumentRequest = v.InferOutput<typeof UpdateAuditLogDocumentRequest>;
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/entities/audit-log/query.d.ts
|
|
112
|
+
declare const QueryStrapiSearchAuditLogs: v.ObjectSchema<{
|
|
113
|
+
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
114
|
+
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
115
|
+
readonly method: v.OptionalSchema<v.PicklistSchema<readonly ["GET", "POST", "PUT", "PATCH", "DELETE", "UNKNOWN"], undefined>, undefined>;
|
|
116
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
117
|
+
readonly path: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly request_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
119
|
+
readonly ipaddress: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
120
|
+
readonly user_agent: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
121
|
+
readonly route_path: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
122
|
+
readonly route_handler: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
123
|
+
readonly actor_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
124
|
+
readonly actor_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
125
|
+
readonly actor_email: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>, undefined>;
|
|
126
|
+
readonly entity_action: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
127
|
+
readonly entity_content_type: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
128
|
+
readonly entity_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
|
+
readonly entity_label: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
130
|
+
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC" | "url:ASC" | "url:DESC" | "path:ASC" | "method:ASC" | "request_id:ASC" | "ipaddress:ASC" | "user_agent:ASC" | "route_path:ASC" | "route_handler:ASC" | "actor_type:ASC" | "actor_id:ASC" | "actor_email:ASC" | "entity_action:ASC" | "entity_content_type:ASC" | "entity_id:ASC" | "entity_label:ASC" | "path:DESC" | "method:DESC" | "request_id:DESC" | "ipaddress:DESC" | "user_agent:DESC" | "route_path:DESC" | "route_handler:DESC" | "actor_type:DESC" | "actor_id:DESC" | "actor_email:DESC" | "entity_action:DESC" | "entity_content_type:DESC" | "entity_id:DESC" | "entity_label:DESC")[], 18, undefined>]>, undefined>;
|
|
131
|
+
}, undefined>;
|
|
132
|
+
type QueryStrapiSearchAuditLogs = v.InferOutput<typeof QueryStrapiSearchAuditLogs>;
|
|
133
|
+
//#endregion
|
|
134
|
+
export { AUDIT_LOG_METHODS, AUDIT_LOG_SORT_KEYS, AuditLogDocument, AuditLogMethod, CreateAuditLogDocument, LIMIT_AUDIT_LOGS_PAGINATION_MAX_SIZE, QuerySortAuditLogs, QueryStrapiSearchAuditLogs, UpdateAuditLogDocument, UpdateAuditLogDocumentRequest };
|