@getcommunity/gc-validators 0.0.271-alpha.27 → 0.0.271-alpha.28
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 +2 -2
- package/dist/base/index.d.cts +1 -1
- package/dist/base/index.d.mts +1 -1
- package/dist/base/index.mjs +2 -2
- package/dist/{document-BWso8VC7.mjs → document-CCIFcvUz.mjs} +2 -2
- package/dist/{document-DwkycUz9.cjs → document-CxCEXgLG.cjs} +2 -2
- package/dist/{document-BCbxKqGE.mjs → document-DESBxiaO.mjs} +1 -1
- package/dist/{document-AqtoEbX8.cjs → document-vI8pMwjv.cjs} +1 -1
- package/dist/entities/audit-log/index.cjs +2 -2
- package/dist/entities/audit-log/index.d.cts +2 -2
- package/dist/entities/audit-log/index.d.mts +2 -2
- package/dist/entities/audit-log/index.mjs +2 -2
- package/dist/entities/blog-post/index.cjs +3 -3
- package/dist/entities/blog-post/index.d.cts +1 -1
- package/dist/entities/blog-post/index.d.mts +1 -1
- package/dist/entities/blog-post/index.mjs +3 -3
- package/dist/entities/category/index.cjs +3 -3
- package/dist/entities/category/index.d.cts +3 -3
- package/dist/entities/category/index.d.mts +3 -3
- package/dist/entities/category/index.mjs +3 -3
- package/dist/entities/client/index.cjs +3 -3
- package/dist/entities/client/index.d.cts +1 -1
- package/dist/entities/client/index.d.mts +1 -1
- package/dist/entities/client/index.mjs +3 -3
- package/dist/entities/client-content-pillar/index.cjs +3 -3
- package/dist/entities/client-content-pillar/index.d.cts +1 -1
- package/dist/entities/client-content-pillar/index.d.mts +1 -1
- package/dist/entities/client-content-pillar/index.mjs +3 -3
- package/dist/entities/client-media-platform/index.cjs +3 -3
- package/dist/entities/client-media-platform/index.d.cts +1 -1
- package/dist/entities/client-media-platform/index.d.mts +1 -1
- package/dist/entities/client-media-platform/index.mjs +3 -3
- package/dist/entities/client-project/index.cjs +2 -2
- package/dist/entities/client-project/index.d.cts +1 -1
- package/dist/entities/client-project/index.d.mts +1 -1
- package/dist/entities/client-project/index.mjs +2 -2
- package/dist/entities/client-report/index.cjs +3 -3
- package/dist/entities/client-report/index.d.cts +1 -1
- package/dist/entities/client-report/index.d.mts +1 -1
- package/dist/entities/client-report/index.mjs +3 -3
- package/dist/entities/client-styleguide/index.cjs +3 -3
- package/dist/entities/client-styleguide/index.d.cts +1 -1
- package/dist/entities/client-styleguide/index.d.mts +1 -1
- package/dist/entities/client-styleguide/index.mjs +3 -3
- package/dist/entities/client-user/index.cjs +1 -1
- package/dist/entities/client-user/index.d.cts +1 -1
- package/dist/entities/client-user/index.d.mts +1 -1
- package/dist/entities/client-user/index.mjs +1 -1
- package/dist/entities/comment/index.cjs +3 -3
- package/dist/entities/comment/index.d.cts +1 -1
- package/dist/entities/comment/index.d.mts +1 -1
- package/dist/entities/comment/index.mjs +3 -3
- package/dist/entities/content-pillar/index.cjs +3 -3
- package/dist/entities/content-pillar/index.d.cts +1 -1
- package/dist/entities/content-pillar/index.d.mts +1 -1
- package/dist/entities/content-pillar/index.mjs +3 -3
- package/dist/entities/gcflytour/index.cjs +3 -3
- package/dist/entities/gcflytour/index.d.cts +1 -1
- package/dist/entities/gcflytour/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.mjs +3 -3
- package/dist/entities/gcflytour-snap/index.cjs +3 -3
- package/dist/entities/gcflytour-snap/index.d.cts +1 -1
- package/dist/entities/gcflytour-snap/index.d.mts +1 -1
- package/dist/entities/gcflytour-snap/index.mjs +3 -3
- package/dist/entities/media-content-type/index.cjs +3 -3
- package/dist/entities/media-content-type/index.d.cts +3 -3
- package/dist/entities/media-content-type/index.d.mts +3 -3
- package/dist/entities/media-content-type/index.mjs +3 -3
- package/dist/entities/media-creative-format/index.cjs +3 -3
- package/dist/entities/media-creative-format/index.d.cts +3 -3
- package/dist/entities/media-creative-format/index.d.mts +3 -3
- package/dist/entities/media-creative-format/index.mjs +3 -3
- package/dist/entities/media-medium/index.cjs +3 -3
- package/dist/entities/media-medium/index.d.cts +3 -3
- package/dist/entities/media-medium/index.d.mts +3 -3
- package/dist/entities/media-medium/index.mjs +3 -3
- package/dist/entities/media-platform/index.cjs +3 -3
- package/dist/entities/media-platform/index.d.cts +1 -1
- package/dist/entities/media-platform/index.d.mts +1 -1
- package/dist/entities/media-platform/index.mjs +3 -3
- package/dist/entities/monday-workspace/index.cjs +3 -3
- package/dist/entities/monday-workspace/index.d.cts +1 -1
- package/dist/entities/monday-workspace/index.d.mts +1 -1
- package/dist/entities/monday-workspace/index.mjs +3 -3
- package/dist/entities/product-highlight/index.cjs +1 -1
- package/dist/entities/product-highlight/index.d.cts +1 -1
- package/dist/entities/product-highlight/index.d.mts +1 -1
- package/dist/entities/product-highlight/index.mjs +1 -1
- package/dist/entities/tag/index.cjs +2 -2
- package/dist/entities/tag/index.d.cts +2 -2
- package/dist/entities/tag/index.d.mts +2 -2
- package/dist/entities/tag/index.mjs +2 -2
- package/dist/entities/team-member/index.cjs +3 -3
- package/dist/entities/team-member/index.d.cts +1 -1
- package/dist/entities/team-member/index.d.mts +1 -1
- package/dist/entities/team-member/index.mjs +3 -3
- package/dist/entities/teamwork/index.cjs +1 -1
- package/dist/entities/teamwork/index.d.cts +2 -2
- package/dist/entities/teamwork/index.d.mts +2 -2
- package/dist/entities/teamwork/index.mjs +1 -1
- package/dist/entities/trend/index.cjs +1 -1
- package/dist/entities/trend/index.d.cts +1 -1
- package/dist/entities/trend/index.d.mts +1 -1
- package/dist/entities/trend/index.mjs +1 -1
- package/dist/entities/up-auth/index.cjs +1 -1
- package/dist/entities/up-auth/index.d.cts +1 -1
- package/dist/entities/up-auth/index.d.mts +1 -1
- package/dist/entities/up-auth/index.mjs +1 -1
- package/dist/entities/up-permission/index.cjs +1 -1
- package/dist/entities/up-permission/index.d.cts +1 -1
- package/dist/entities/up-permission/index.d.mts +1 -1
- package/dist/entities/up-permission/index.mjs +1 -1
- package/dist/entities/up-role/index.cjs +1 -1
- package/dist/entities/up-role/index.d.cts +1 -1
- package/dist/entities/up-role/index.d.mts +1 -1
- package/dist/entities/up-role/index.mjs +1 -1
- package/dist/entities/up-user/index.cjs +1 -1
- package/dist/entities/up-user/index.d.cts +1 -1
- package/dist/entities/up-user/index.d.mts +1 -1
- package/dist/entities/up-user/index.mjs +1 -1
- package/dist/entities/url-redirect/index.cjs +2 -2
- package/dist/entities/url-redirect/index.d.cts +2 -2
- package/dist/entities/url-redirect/index.d.mts +2 -2
- package/dist/entities/url-redirect/index.mjs +2 -2
- package/dist/entities/user-account/index.cjs +2 -2
- package/dist/entities/user-account/index.d.cts +2 -2
- package/dist/entities/user-account/index.d.mts +2 -2
- package/dist/entities/user-account/index.mjs +2 -2
- package/dist/entities/utm-tracking-link/index.cjs +3 -3
- package/dist/entities/utm-tracking-link/index.d.cts +1 -1
- package/dist/entities/utm-tracking-link/index.d.mts +1 -1
- package/dist/entities/utm-tracking-link/index.mjs +3 -3
- package/dist/{index-CBW5QmNu.d.cts → index-9S5fRfl_.d.mts} +4 -4
- package/dist/{index-DKFW5ay8.d.mts → index-BQ-q8Rqt.d.cts} +4 -4
- package/dist/{index-D7QXaSOY.d.cts → index-BhOJmpYi.d.cts} +5 -5
- package/dist/{index-C1GoH-4v.d.cts → index-CKbtwmVl.d.cts} +17 -17
- package/dist/{index-ClQOYhKi.d.mts → index-Ceb7nLSG.d.mts} +17 -17
- package/dist/{index-Bjjp-2Sa.d.mts → index-CxuLg4Y8.d.mts} +5 -5
- package/dist/{index-Cqmmzi2g.d.mts → index-DSCV3ifg.d.mts} +3 -3
- package/dist/{index-WN2TBKki.d.cts → index-KxCfd05r.d.cts} +3 -3
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/{query-BR5Ze6T2.mjs → query-BuKHwaMn.mjs} +2 -2
- package/dist/{query-qQ_HLlxx.cjs → query-LyGctccO.cjs} +2 -2
- package/dist/{sort-D3WwshqQ.mjs → sort-BJrzr4Xl.mjs} +1 -1
- package/dist/{sort-CI87SH1y.cjs → sort-DIln8tn5.cjs} +1 -1
- package/dist/utilities/index.d.cts +2 -2
- package/dist/utilities/index.d.mts +2 -2
- package/package.json +1 -1
|
@@ -74,7 +74,7 @@ type QuerySortEntities = v.InferOutput<typeof QuerySortEntities>;
|
|
|
74
74
|
declare const QueryStrapiPaginated: v.ObjectSchema<{
|
|
75
75
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
76
76
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
77
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt"
|
|
77
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>, undefined>;
|
|
78
78
|
}, undefined>;
|
|
79
79
|
type QueryStrapiPaginated = v.InferOutput<typeof QueryStrapiPaginated>;
|
|
80
80
|
//#endregion
|
|
@@ -90,28 +90,28 @@ type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
|
|
|
90
90
|
declare const QueryStrapiBySlug: v.ObjectSchema<{
|
|
91
91
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
92
92
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
93
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt"
|
|
93
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>, undefined>;
|
|
94
94
|
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
95
95
|
}, undefined>;
|
|
96
96
|
type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
|
|
97
97
|
declare const QueryStrapiByEmail: v.ObjectSchema<{
|
|
98
98
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
99
99
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
100
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt"
|
|
100
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>, undefined>;
|
|
101
101
|
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
102
102
|
}, undefined>;
|
|
103
103
|
type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
|
|
104
104
|
declare const QueryStrapiByPhone: v.ObjectSchema<{
|
|
105
105
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
106
106
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
107
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt"
|
|
107
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>, undefined>;
|
|
108
108
|
readonly phone: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 7, undefined>, v.MaxLengthAction<string, 24, undefined>, v.RegexAction<string, "Please provide a valid phone number.">]>;
|
|
109
109
|
}, undefined>;
|
|
110
110
|
type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
|
|
111
111
|
declare const QueryStrapiByName: v.ObjectSchema<{
|
|
112
112
|
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
113
113
|
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
114
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt"
|
|
114
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"id" | "createdAt" | "updatedAt">>, undefined>;
|
|
115
115
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
116
116
|
}, undefined>;
|
|
117
117
|
type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as QuerySortOutput } from "./index-
|
|
1
|
+
import { Z as QuerySortOutput } from "./index-CxuLg4Y8.mjs";
|
|
2
2
|
import { r as MediaUploadDocument } from "./media-upload-DBG7YyU4.mjs";
|
|
3
3
|
import { b as BlockContact } from "./index-Dvu63a8_.mjs";
|
|
4
4
|
import { l as RichTextBlock, s as SeoMeta } from "./index-BSYaAtme.mjs";
|
|
@@ -931,13 +931,13 @@ declare const QueryStrapiSearchBlogPosts: v.ObjectSchema<{
|
|
|
931
931
|
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
932
932
|
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
933
933
|
readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["draft", "published"], undefined>, undefined>;
|
|
934
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public"
|
|
934
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public">>, undefined>;
|
|
935
935
|
}, undefined>;
|
|
936
936
|
type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPosts>;
|
|
937
937
|
declare const QueryStrapiSearchBlogPostsBySlug: v.ObjectSchema<{
|
|
938
938
|
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
939
939
|
readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["draft", "published"], undefined>, "published">;
|
|
940
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public"
|
|
940
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public">>, undefined>;
|
|
941
941
|
}, undefined>;
|
|
942
942
|
type QueryStrapiSearchBlogPostsBySlug = v.InferOutput<typeof QueryStrapiSearchBlogPostsBySlug>;
|
|
943
943
|
//#endregion
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Z as QuerySortOutput } from "./index-
|
|
1
|
+
import { Z as QuerySortOutput } from "./index-BhOJmpYi.cjs";
|
|
2
2
|
import { r as MediaUploadDocument } from "./media-upload-D-nP8FR1.cjs";
|
|
3
3
|
import { b as BlockContact } from "./index-DG_Lwaa7.cjs";
|
|
4
4
|
import { l as RichTextBlock, s as SeoMeta } from "./index-COpLbpQC.cjs";
|
|
@@ -931,13 +931,13 @@ declare const QueryStrapiSearchBlogPosts: v.ObjectSchema<{
|
|
|
931
931
|
readonly category: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>;
|
|
932
932
|
readonly tags: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>, undefined>, undefined>;
|
|
933
933
|
readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["draft", "published"], undefined>, undefined>;
|
|
934
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public"
|
|
934
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public">>, undefined>;
|
|
935
935
|
}, undefined>;
|
|
936
936
|
type QueryStrapiSearchBlogPosts = v.InferOutput<typeof QueryStrapiSearchBlogPosts>;
|
|
937
937
|
declare const QueryStrapiSearchBlogPostsBySlug: v.ObjectSchema<{
|
|
938
938
|
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
939
939
|
readonly status: v.OptionalSchema<v.PicklistSchema<readonly ["draft", "published"], undefined>, "published">;
|
|
940
|
-
readonly sort: v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public"
|
|
940
|
+
readonly sort: v.OptionalSchema<v.GenericSchema<QuerySortOutput<"published" | "id" | "createdAt" | "updatedAt" | "title" | "slug" | "is_featured" | "is_live" | "is_public">>, undefined>;
|
|
941
941
|
}, undefined>;
|
|
942
942
|
type QueryStrapiSearchBlogPostsBySlug = v.InferOutput<typeof QueryStrapiSearchBlogPostsBySlug>;
|
|
943
943
|
//#endregion
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { An as ClientEntityScope, Dn as CLIENT_ENTITY_SCOPES, En as CLIENT_ENTITY_PERMISSIONS, On as ClientEntityActions, Tn as CLIENT_ENTITY_KEYS, d as Permissions, f as PermissionsAction, h as ROLE_PERMISSIONS, kn as ClientEntityKey, m as RolesWithPermissions, p as PermissionsEntity, u as LCRUDActions } from "../index-
|
|
1
|
+
import { An as ClientEntityScope, Dn as CLIENT_ENTITY_SCOPES, En as CLIENT_ENTITY_PERMISSIONS, On as ClientEntityActions, Tn as CLIENT_ENTITY_KEYS, d as Permissions, f as PermissionsAction, h as ROLE_PERMISSIONS, kn as ClientEntityKey, m as RolesWithPermissions, p as PermissionsEntity, u as LCRUDActions } from "../index-CKbtwmVl.cjs";
|
|
2
2
|
export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, PermissionsAction, PermissionsEntity, ROLE_PERMISSIONS, RolesWithPermissions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { An as ClientEntityScope, Dn as CLIENT_ENTITY_SCOPES, En as CLIENT_ENTITY_PERMISSIONS, On as ClientEntityActions, Tn as CLIENT_ENTITY_KEYS, d as Permissions, f as PermissionsAction, h as ROLE_PERMISSIONS, kn as ClientEntityKey, m as RolesWithPermissions, p as PermissionsEntity, u as LCRUDActions } from "../index-
|
|
1
|
+
import { An as ClientEntityScope, Dn as CLIENT_ENTITY_SCOPES, En as CLIENT_ENTITY_PERMISSIONS, On as ClientEntityActions, Tn as CLIENT_ENTITY_KEYS, d as Permissions, f as PermissionsAction, h as ROLE_PERMISSIONS, kn as ClientEntityKey, m as RolesWithPermissions, p as PermissionsEntity, u as LCRUDActions } from "../index-Ceb7nLSG.mjs";
|
|
2
2
|
export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, PermissionsAction, PermissionsEntity, ROLE_PERMISSIONS, RolesWithPermissions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as LIMIT_PAGINATION_MAX_SIZE } from "./pagination-owwfYJS6.mjs";
|
|
2
2
|
import { n as VSize, t as VPage } from "./pagination-D5l_UjyM.mjs";
|
|
3
|
-
import { n as QuerySortEntities } from "./sort-
|
|
3
|
+
import { n as QuerySortEntities } from "./sort-BJrzr4Xl.mjs";
|
|
4
4
|
import { t as VStringEmail } from "./email-Cnyi5Neo.mjs";
|
|
5
5
|
import { t as VStringPhone } from "./phone-C9TNVDm_.mjs";
|
|
6
6
|
import { s as VStringShort } from "./string-BHHnD2Qu.mjs";
|
|
@@ -10,7 +10,7 @@ import * as v from "valibot";
|
|
|
10
10
|
const QueryStrapiPaginated = v.object({
|
|
11
11
|
page: VPage(),
|
|
12
12
|
size: VSize(LIMIT_PAGINATION_MAX_SIZE),
|
|
13
|
-
sort: QuerySortEntities
|
|
13
|
+
sort: v.optional(QuerySortEntities)
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/base/query.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
2
|
const require_pagination = require("./pagination-4pZafglS.cjs");
|
|
3
3
|
const require_pagination$1 = require("./pagination-DWZDPzR4.cjs");
|
|
4
|
-
const require_sort = require("./sort-
|
|
4
|
+
const require_sort = require("./sort-DIln8tn5.cjs");
|
|
5
5
|
const require_email = require("./email-ByTEdUjg.cjs");
|
|
6
6
|
const require_phone = require("./phone-D_ZLG1Qv.cjs");
|
|
7
7
|
const require_string = require("./string-Yn-6xiAZ.cjs");
|
|
@@ -12,7 +12,7 @@ valibot = require_chunk.__toESM(valibot, 1);
|
|
|
12
12
|
const QueryStrapiPaginated = valibot.object({
|
|
13
13
|
page: require_pagination$1.VPage(),
|
|
14
14
|
size: require_pagination$1.VSize(require_pagination.LIMIT_PAGINATION_MAX_SIZE),
|
|
15
|
-
sort: require_sort.QuerySortEntities
|
|
15
|
+
sort: valibot.optional(require_sort.QuerySortEntities)
|
|
16
16
|
});
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/base/query.ts
|
|
@@ -2,7 +2,7 @@ import * as v from "valibot";
|
|
|
2
2
|
//#region src/base/sort.ts
|
|
3
3
|
const createQuerySort = (sortKeys) => {
|
|
4
4
|
const sortOptions = sortKeys.flatMap((key) => [`${key}:ASC`, `${key}:DESC`]);
|
|
5
|
-
return v.
|
|
5
|
+
return v.pipe(v.array(v.picklist(sortOptions)), v.maxLength(sortKeys.length));
|
|
6
6
|
};
|
|
7
7
|
const ENTITY_SORT_KEYS = [
|
|
8
8
|
"id",
|
|
@@ -4,7 +4,7 @@ valibot = require_chunk.__toESM(valibot, 1);
|
|
|
4
4
|
//#region src/base/sort.ts
|
|
5
5
|
const createQuerySort = (sortKeys) => {
|
|
6
6
|
const sortOptions = sortKeys.flatMap((key) => [`${key}:ASC`, `${key}:DESC`]);
|
|
7
|
-
return valibot.
|
|
7
|
+
return valibot.pipe(valibot.array(valibot.picklist(sortOptions)), valibot.maxLength(sortKeys.length));
|
|
8
8
|
};
|
|
9
9
|
const ENTITY_SORT_KEYS = [
|
|
10
10
|
"id",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as StrapiAttributeErrorResponse, T as StrapiErrorResponse } from "../index-
|
|
2
|
-
import { Ln as RoleType, Pn as AuthorizedUserDocument, d as Permissions, l as ClientUserDocumentStatus } from "../index-
|
|
1
|
+
import { C as StrapiAttributeErrorResponse, T as StrapiErrorResponse } from "../index-BhOJmpYi.cjs";
|
|
2
|
+
import { Ln as RoleType, Pn as AuthorizedUserDocument, d as Permissions, l as ClientUserDocumentStatus } from "../index-CKbtwmVl.cjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
5
|
//#region src/utilities/permissions.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as StrapiAttributeErrorResponse, T as StrapiErrorResponse } from "../index-
|
|
2
|
-
import { Ln as RoleType, Pn as AuthorizedUserDocument, d as Permissions, l as ClientUserDocumentStatus } from "../index-
|
|
1
|
+
import { C as StrapiAttributeErrorResponse, T as StrapiErrorResponse } from "../index-CxuLg4Y8.mjs";
|
|
2
|
+
import { Ln as RoleType, Pn as AuthorizedUserDocument, d as Permissions, l as ClientUserDocumentStatus } from "../index-Ceb7nLSG.mjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
5
|
//#region src/utilities/permissions.d.ts
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getcommunity/gc-validators",
|
|
3
3
|
"description": "Schema Validator for GetCommunity web-stack types",
|
|
4
|
-
"version": "0.0.271-alpha.
|
|
4
|
+
"version": "0.0.271-alpha.28",
|
|
5
5
|
"author": "Joey Grable <joey@getcommunity.com> (https://joeygrable.com)",
|
|
6
6
|
"contributors": [],
|
|
7
7
|
"type": "module",
|