@getcommunity/gc-validators 0.0.271-alpha.7 → 0.0.271-alpha.8
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.d.cts +1 -2
- package/dist/base/index.d.mts +3 -4
- package/dist/components/blocks/index.d.cts +1 -1
- package/dist/components/blocks/index.d.mts +1 -1
- package/dist/components/brand/index.d.cts +1 -1
- package/dist/components/brand/index.d.mts +1 -1
- package/dist/components/shared/index.d.cts +1 -1
- package/dist/components/shared/index.d.mts +1 -1
- package/dist/components/utm/index.d.cts +1 -1
- package/dist/components/utm/index.d.mts +1 -1
- package/dist/{document-Dr5-pbqu.d.mts → document-BVhB_t1g.d.mts} +1 -1
- package/dist/{document-zu6-DmQT.cjs → document-BpfE6S21.cjs} +183 -87
- package/dist/{document-DUHPXtbm.mjs → document-dPYjuVEj.mjs} +136 -88
- package/dist/entities/audit-log/index.d.cts +2 -2
- package/dist/entities/audit-log/index.d.mts +3 -3
- package/dist/entities/blog-page/index.d.mts +1 -1
- package/dist/entities/blog-post/index.d.cts +1 -1
- package/dist/entities/blog-post/index.d.mts +1 -1
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.d.cts +1 -1
- package/dist/entities/category/index.d.mts +1 -1
- package/dist/entities/client/index.cjs +1 -1
- package/dist/entities/client/index.d.cts +1 -1
- package/dist/entities/client/index.d.mts +1 -1
- package/dist/entities/client/index.mjs +1 -1
- package/dist/entities/client-content-pillar/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/client-media-platform/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/client-project/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/client-report/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/client-styleguide/index.cjs +1 -1
- 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 +1 -1
- 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.d.cts +1 -1
- package/dist/entities/comment/index.d.mts +1 -1
- package/dist/entities/content-pillar/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/faq-page/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.cjs +1 -1
- package/dist/entities/gcflytour/index.d.cts +1 -1
- package/dist/entities/gcflytour/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.mjs +1 -1
- package/dist/entities/gcflytour-snap/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/landing-page/index.d.mts +1 -1
- package/dist/entities/media-content-type/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/media-creative-format/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/media-medium/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/media-platform/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/monday-workspace/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/policy-page/index.d.mts +1 -1
- package/dist/entities/product/index.d.cts +1 -1
- package/dist/entities/product/index.d.mts +1 -1
- 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.d.cts +1 -1
- package/dist/entities/tag/index.d.mts +1 -1
- package/dist/entities/team-member/index.d.cts +1 -1
- package/dist/entities/team-member/index.d.mts +1 -1
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/trend/index.d.cts +1 -1
- package/dist/entities/trend/index.d.mts +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-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 +8 -51
- 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 -42
- package/dist/entities/url-redirect/index.d.cts +2 -2
- package/dist/entities/url-redirect/index.d.mts +2 -2
- package/dist/entities/user-account/index.cjs +1 -1
- 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 +1 -1
- package/dist/entities/utm-tracking-link/index.cjs +1 -1
- 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 +1 -1
- package/dist/{index-BCvKbd4C.d.cts → index-87puatMp.d.cts} +6 -6
- package/dist/{index-GUYqdxFh.d.mts → index-CAls2gHf.d.mts} +168 -155
- package/dist/{index-B-CQQO_E.d.mts → index-CJ2_Z1gW.d.mts} +40 -2
- package/dist/{index-COCNx5sv.d.cts → index-D3KnOYr7.d.mts} +3 -3
- package/dist/{index-DB45mxlG.d.mts → index-DJ-0EDJN.d.mts} +1 -1
- package/dist/{index-BIWFngsB.d.mts → index-D_YPjLxv.d.cts} +3 -3
- package/dist/{index-D0PCjo7e.d.mts → index-DnkNzEew.d.mts} +7 -7
- package/dist/{index-j2pTtcNX.d.cts → index-efk0FfOP.d.cts} +39 -1
- package/dist/{index-Cb8BnFcL.d.cts → index-ygBcXT6p.d.cts} +167 -154
- package/dist/permissions/index.d.cts +1 -1
- package/dist/permissions/index.d.mts +1 -1
- package/dist/utilities/index.d.cts +2 -2
- package/dist/utilities/index.d.mts +2 -2
- package/package.json +1 -1
- package/dist/document-BFPtEW5P.d.cts +0 -17
- package/dist/document-DamlTVm7.cjs +0 -19
- package/dist/document-DnA3Nwgh.mjs +0 -12
- package/dist/document-GovGVYRl.d.mts +0 -17
- package/dist/query-Cyv28Ggi.d.cts +0 -41
- package/dist/query-HXwJctNd.d.mts +0 -41
- /package/dist/{document-CH1Od98-.d.mts → document-CbE38CzE.d.mts} +0 -0
- /package/dist/{document-CnKWB70Z.d.cts → document-DtDSYDbn.d.cts} +0 -0
- /package/dist/{document-CpsxYzbB.d.cts → document-i-h3Orv7.d.cts} +0 -0
- /package/dist/{index-Cpbdnd9q.d.cts → index-B3VtiObV.d.mts} +0 -0
- /package/dist/{index-_eItTyFr.d.cts → index-BbwsFaWE.d.cts} +0 -0
- /package/dist/{index-Z_fJ28vW.d.mts → index-CQP_vcmO.d.cts} +0 -0
- /package/dist/{index-BQ_nheAt.d.mts → index-CRoWUxGV.d.cts} +0 -0
- /package/dist/{index-22laZYwt.d.mts → index-D11tQdCv.d.cts} +0 -0
- /package/dist/{index-NBz_zMvQ.d.cts → index-DLICmJ_-.d.mts} +0 -0
- /package/dist/{index-Df7ixqwa.d.cts → index-oCLNrzIj.d.mts} +0 -0
- /package/dist/{json-p1Yf7cEr.d.mts → json-CiA5ZRzc.d.mts} +0 -0
- /package/dist/{media-upload-BEfESsVb.d.mts → media-upload-DKeA1eD-.d.mts} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sn as ClientEntityScope, _n as CLIENT_ENTITY_KEYS, bn as ClientEntityActions, d as Permissions, f as RolesWithPermissions, p as ROLE_PERMISSIONS, u as LCRUDActions, vn as CLIENT_ENTITY_PERMISSIONS, xn as ClientEntityKey, yn as CLIENT_ENTITY_SCOPES } from "../index-ygBcXT6p.cjs";
|
|
2
2
|
export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, ROLE_PERMISSIONS, RolesWithPermissions };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Sn as ClientEntityScope, _n as CLIENT_ENTITY_KEYS, bn as ClientEntityActions, d as Permissions, f as RolesWithPermissions, p as ROLE_PERMISSIONS, u as LCRUDActions, vn as CLIENT_ENTITY_PERMISSIONS, xn as ClientEntityKey, yn as CLIENT_ENTITY_SCOPES } from "../index-CAls2gHf.mjs";
|
|
2
2
|
export { CLIENT_ENTITY_KEYS, CLIENT_ENTITY_PERMISSIONS, CLIENT_ENTITY_SCOPES, ClientEntityActions, ClientEntityKey, ClientEntityScope, LCRUDActions, Permissions, ROLE_PERMISSIONS, RolesWithPermissions };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as StrapiErrorResponse, K as StrapiAttributeErrorResponse } from "../index-
|
|
2
|
-
import {
|
|
1
|
+
import { J as StrapiErrorResponse, K as StrapiAttributeErrorResponse } from "../index-efk0FfOP.cjs";
|
|
2
|
+
import { En as AuthorizedUserDocument, d as Permissions, kn as RoleType, l as ClientUserDocumentStatus } from "../index-ygBcXT6p.cjs";
|
|
3
3
|
import * as v from "valibot";
|
|
4
4
|
|
|
5
5
|
//#region src/utilities/permissions.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { J as StrapiErrorResponse, K as StrapiAttributeErrorResponse } from "../index-
|
|
2
|
-
import {
|
|
1
|
+
import { J as StrapiErrorResponse, K as StrapiAttributeErrorResponse } from "../index-CJ2_Z1gW.mjs";
|
|
2
|
+
import { En as AuthorizedUserDocument, d as Permissions, kn as RoleType, l as ClientUserDocumentStatus } from "../index-CAls2gHf.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.8",
|
|
5
5
|
"author": "Joey Grable <joey@getcommunity.com> (https://joeygrable.com)",
|
|
6
6
|
"contributors": [],
|
|
7
7
|
"type": "module",
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as v from "valibot";
|
|
2
|
-
|
|
3
|
-
//#region src/entities/user-account/document.d.ts
|
|
4
|
-
declare const UserAccountDocument: v.GenericSchema<{
|
|
5
|
-
id: number;
|
|
6
|
-
documentId: string;
|
|
7
|
-
publishedAt?: string;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
updatedAt: string;
|
|
10
|
-
preferred_name: string | null;
|
|
11
|
-
first_name: string;
|
|
12
|
-
last_name: string;
|
|
13
|
-
user?: unknown;
|
|
14
|
-
}>;
|
|
15
|
-
type UserAccountDocument = v.InferOutput<typeof UserAccountDocument>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { UserAccountDocument as t };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const require_chunk = require("./chunk-CKQMccvm.cjs");
|
|
2
|
-
const require_document = require("./document-BAro2Mrj.cjs");
|
|
3
|
-
let valibot = require("valibot");
|
|
4
|
-
valibot = require_chunk.__toESM(valibot, 1);
|
|
5
|
-
//#region src/entities/user-account/document.ts
|
|
6
|
-
const UserAccountDocument = valibot.object({
|
|
7
|
-
...require_document.BaseDocument.entries,
|
|
8
|
-
preferred_name: valibot.nullable(valibot.string()),
|
|
9
|
-
first_name: valibot.string(),
|
|
10
|
-
last_name: valibot.string(),
|
|
11
|
-
user: valibot.optional(valibot.unknown())
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
Object.defineProperty(exports, "UserAccountDocument", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function() {
|
|
17
|
-
return UserAccountDocument;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { t as BaseDocument } from "./document-Bqoi1MdT.mjs";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
//#region src/entities/user-account/document.ts
|
|
4
|
-
const UserAccountDocument = v.object({
|
|
5
|
-
...BaseDocument.entries,
|
|
6
|
-
preferred_name: v.nullable(v.string()),
|
|
7
|
-
first_name: v.string(),
|
|
8
|
-
last_name: v.string(),
|
|
9
|
-
user: v.optional(v.unknown())
|
|
10
|
-
});
|
|
11
|
-
//#endregion
|
|
12
|
-
export { UserAccountDocument as t };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as v from "valibot";
|
|
2
|
-
|
|
3
|
-
//#region src/entities/user-account/document.d.ts
|
|
4
|
-
declare const UserAccountDocument: v.GenericSchema<{
|
|
5
|
-
id: number;
|
|
6
|
-
documentId: string;
|
|
7
|
-
publishedAt?: string;
|
|
8
|
-
createdAt: string;
|
|
9
|
-
updatedAt: string;
|
|
10
|
-
preferred_name: string | null;
|
|
11
|
-
first_name: string;
|
|
12
|
-
last_name: string;
|
|
13
|
-
user?: unknown;
|
|
14
|
-
}>;
|
|
15
|
-
type UserAccountDocument = v.InferOutput<typeof UserAccountDocument>;
|
|
16
|
-
//#endregion
|
|
17
|
-
export { UserAccountDocument as t };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as v from "valibot";
|
|
2
|
-
|
|
3
|
-
//#region src/base/query.d.ts
|
|
4
|
-
declare const QueryStrapiById: v.ObjectSchema<{
|
|
5
|
-
readonly id: v.NumberSchema<undefined>;
|
|
6
|
-
}, undefined>;
|
|
7
|
-
type QueryStrapiById = v.InferOutput<typeof QueryStrapiById>;
|
|
8
|
-
declare const QueryStrapiByDocumentId: v.ObjectSchema<{
|
|
9
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
10
|
-
}, undefined>;
|
|
11
|
-
type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
|
|
12
|
-
declare const QueryStrapiBySlug: v.ObjectSchema<{
|
|
13
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
14
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
15
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
16
|
-
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
|
|
19
|
-
declare const QueryStrapiByEmail: v.ObjectSchema<{
|
|
20
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
21
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
22
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
23
|
-
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
|
|
26
|
-
declare const QueryStrapiByPhone: v.ObjectSchema<{
|
|
27
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
28
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
29
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
30
|
-
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.">]>;
|
|
31
|
-
}, undefined>;
|
|
32
|
-
type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
|
|
33
|
-
declare const QueryStrapiByName: v.ObjectSchema<{
|
|
34
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
35
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
36
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
37
|
-
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
38
|
-
}, undefined>;
|
|
39
|
-
type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { QueryStrapiByPhone as a, QueryStrapiByName as i, QueryStrapiByEmail as n, QueryStrapiBySlug as o, QueryStrapiById as r, QueryStrapiByDocumentId as t };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as v from "valibot";
|
|
2
|
-
|
|
3
|
-
//#region src/base/query.d.ts
|
|
4
|
-
declare const QueryStrapiById: v.ObjectSchema<{
|
|
5
|
-
readonly id: v.NumberSchema<undefined>;
|
|
6
|
-
}, undefined>;
|
|
7
|
-
type QueryStrapiById = v.InferOutput<typeof QueryStrapiById>;
|
|
8
|
-
declare const QueryStrapiByDocumentId: v.ObjectSchema<{
|
|
9
|
-
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
10
|
-
}, undefined>;
|
|
11
|
-
type QueryStrapiByDocumentId = v.InferOutput<typeof QueryStrapiByDocumentId>;
|
|
12
|
-
declare const QueryStrapiBySlug: v.ObjectSchema<{
|
|
13
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
14
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
15
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
16
|
-
readonly slug: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
17
|
-
}, undefined>;
|
|
18
|
-
type QueryStrapiBySlug = v.InferOutput<typeof QueryStrapiBySlug>;
|
|
19
|
-
declare const QueryStrapiByEmail: v.ObjectSchema<{
|
|
20
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
21
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
22
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
23
|
-
readonly email: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 5, undefined>, v.MaxLengthAction<string, 255, undefined>, v.EmailAction<string, undefined>]>;
|
|
24
|
-
}, undefined>;
|
|
25
|
-
type QueryStrapiByEmail = v.InferOutput<typeof QueryStrapiByEmail>;
|
|
26
|
-
declare const QueryStrapiByPhone: v.ObjectSchema<{
|
|
27
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
28
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
29
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
30
|
-
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.">]>;
|
|
31
|
-
}, undefined>;
|
|
32
|
-
type QueryStrapiByPhone = v.InferOutput<typeof QueryStrapiByPhone>;
|
|
33
|
-
declare const QueryStrapiByName: v.ObjectSchema<{
|
|
34
|
-
readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
|
|
35
|
-
readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
36
|
-
readonly sort: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], undefined>, undefined>, v.MaxLengthAction<("id:ASC" | "createdAt:ASC" | "updatedAt:ASC" | "id:DESC" | "createdAt:DESC" | "updatedAt:DESC")[], 3, undefined>]>, undefined>;
|
|
37
|
-
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, number, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
38
|
-
}, undefined>;
|
|
39
|
-
type QueryStrapiByName = v.InferOutput<typeof QueryStrapiByName>;
|
|
40
|
-
//#endregion
|
|
41
|
-
export { QueryStrapiByPhone as a, QueryStrapiByName as i, QueryStrapiByEmail as n, QueryStrapiBySlug as o, QueryStrapiById as r, QueryStrapiByDocumentId as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|