@getcommunity/gc-validators 0.0.271-alpha.0 → 0.0.271-alpha.10
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 +16 -0
- package/dist/abac-BeKQtxIF.cjs +648 -0
- package/dist/abac-DPd9oLKR.mjs +643 -0
- package/dist/base/index.cjs +19 -19
- package/dist/base/index.d.cts +2 -3
- package/dist/base/index.d.mts +3 -4
- package/dist/base/index.mjs +2 -2
- package/dist/components/blocks/index.cjs +16 -14
- package/dist/components/blocks/index.d.cts +2 -1322
- package/dist/components/blocks/index.d.mts +2 -1322
- package/dist/components/blocks/index.mjs +16 -14
- package/dist/components/brand/index.d.cts +1 -314
- package/dist/components/brand/index.d.mts +1 -314
- package/dist/components/forms/index.cjs +10 -8
- package/dist/components/forms/index.d.cts +6 -3
- package/dist/components/forms/index.d.mts +6 -3
- package/dist/components/forms/index.mjs +10 -8
- package/dist/components/shared/index.cjs +3 -1
- package/dist/components/shared/index.d.cts +1 -916
- package/dist/components/shared/index.d.mts +1 -916
- package/dist/components/shared/index.mjs +3 -1
- package/dist/components/slideshow/index.cjs +15 -13
- package/dist/components/slideshow/index.d.cts +7 -5
- package/dist/components/slideshow/index.d.mts +7 -5
- package/dist/components/slideshow/index.mjs +15 -13
- package/dist/components/utm/index.cjs +7 -5
- package/dist/components/utm/index.d.cts +2 -32
- package/dist/components/utm/index.d.mts +2 -32
- package/dist/components/utm/index.mjs +7 -5
- package/dist/{document-BMxLOdrT.d.cts → document-BVhB_t1g.d.mts} +158 -104
- package/dist/{document-Bpr9mbCs.d.mts → document-CbE38CzE.d.mts} +6 -6
- package/dist/document-Ccvtwgy_.cjs +26 -0
- package/dist/document-CrnqUGRk.cjs +243 -0
- package/dist/document-Cx4Klv8A.mjs +128 -0
- package/dist/document-D060zybc.mjs +19 -0
- package/dist/document-D7jG_DvK.cjs +728 -0
- package/dist/document-DEUmfrbE.mjs +457 -0
- package/dist/document-DaICHS9G.cjs +17 -0
- package/dist/{document-Gx2Vrg_w.d.mts → document-DtDSYDbn.d.cts} +158 -104
- package/dist/document-c3GNPelp.mjs +10 -0
- package/dist/{document-hEBlSep8.d.cts → document-i-h3Orv7.d.cts} +6 -6
- 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 +3 -3
- package/dist/entities/audit-log/index.mjs +1 -1
- package/dist/entities/blog-page/index.d.mts +1 -1
- package/dist/entities/blog-post/index.cjs +1 -1
- package/dist/entities/blog-post/index.d.cts +1 -916
- package/dist/entities/blog-post/index.d.mts +1 -916
- package/dist/entities/blog-post/index.mjs +1 -1
- package/dist/entities/careers-page/index.d.mts +1 -1
- package/dist/entities/category/index.cjs +4 -13
- package/dist/entities/category/index.d.cts +3 -260
- package/dist/entities/category/index.d.mts +3 -260
- package/dist/entities/category/index.mjs +2 -11
- package/dist/entities/client/index.cjs +3 -3
- package/dist/entities/client/index.d.cts +1 -84
- package/dist/entities/client/index.d.mts +1 -84
- package/dist/entities/client/index.mjs +2 -2
- package/dist/entities/client-content-pillar/index.cjs +10 -20
- package/dist/entities/client-content-pillar/index.d.cts +1 -48
- package/dist/entities/client-content-pillar/index.d.mts +1 -48
- package/dist/entities/client-content-pillar/index.mjs +2 -12
- package/dist/entities/client-media-platform/index.cjs +10 -17
- package/dist/entities/client-media-platform/index.d.cts +1 -52
- package/dist/entities/client-media-platform/index.d.mts +1 -52
- package/dist/entities/client-media-platform/index.mjs +2 -9
- package/dist/entities/client-project/index.cjs +22 -129
- package/dist/entities/client-project/index.d.cts +1 -146
- package/dist/entities/client-project/index.d.mts +1 -146
- package/dist/entities/client-project/index.mjs +2 -109
- package/dist/entities/client-report/index.cjs +7 -18
- package/dist/entities/client-report/index.d.cts +1 -62
- package/dist/entities/client-report/index.d.mts +1 -62
- package/dist/entities/client-report/index.mjs +2 -13
- package/dist/entities/client-styleguide/index.cjs +7 -27
- package/dist/entities/client-styleguide/index.d.cts +1 -47
- package/dist/entities/client-styleguide/index.d.mts +1 -47
- package/dist/entities/client-styleguide/index.mjs +2 -22
- package/dist/entities/client-user/index.cjs +17 -53
- package/dist/entities/client-user/index.d.cts +2 -47
- package/dist/entities/client-user/index.d.mts +2 -47
- package/dist/entities/client-user/index.mjs +5 -41
- 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 +5 -5
- package/dist/entities/content-pillar/index.d.cts +1 -49
- package/dist/entities/content-pillar/index.d.mts +1 -49
- package/dist/entities/content-pillar/index.mjs +2 -2
- package/dist/entities/faq-page/index.d.mts +1 -1
- package/dist/entities/gcflytour/index.cjs +9 -19
- package/dist/entities/gcflytour/index.d.cts +1 -60
- package/dist/entities/gcflytour/index.d.mts +1 -60
- package/dist/entities/gcflytour/index.mjs +2 -12
- package/dist/entities/gcflytour-snap/index.cjs +7 -17
- package/dist/entities/gcflytour-snap/index.d.cts +1 -58
- package/dist/entities/gcflytour-snap/index.d.mts +1 -58
- package/dist/entities/gcflytour-snap/index.mjs +2 -12
- package/dist/entities/landing-page/index.d.cts +1 -0
- package/dist/entities/landing-page/index.d.mts +2 -1
- package/dist/entities/lead/index.cjs +2 -2
- package/dist/entities/lead/index.mjs +1 -1
- package/dist/entities/media-content-type/index.cjs +10 -23
- 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 +2 -15
- package/dist/entities/media-creative-format/index.cjs +7 -16
- 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 +2 -11
- package/dist/entities/media-medium/index.cjs +7 -18
- package/dist/entities/media-medium/index.d.cts +3 -18
- package/dist/entities/media-medium/index.d.mts +3 -18
- package/dist/entities/media-medium/index.mjs +2 -13
- package/dist/entities/media-platform/index.cjs +13 -29
- package/dist/entities/media-platform/index.d.cts +1 -73
- package/dist/entities/media-platform/index.d.mts +1 -73
- package/dist/entities/media-platform/index.mjs +2 -18
- package/dist/entities/monday-workspace/index.cjs +7 -14
- package/dist/entities/monday-workspace/index.d.cts +1 -46
- package/dist/entities/monday-workspace/index.d.mts +1 -46
- package/dist/entities/monday-workspace/index.mjs +2 -9
- package/dist/entities/newsletter-signup/index.cjs +2 -2
- package/dist/entities/newsletter-signup/index.mjs +1 -1
- package/dist/entities/policy-page/index.d.cts +1 -0
- package/dist/entities/policy-page/index.d.mts +2 -1
- package/dist/entities/product/index.cjs +2 -21
- package/dist/entities/product/index.d.cts +1 -319
- package/dist/entities/product/index.d.mts +1 -319
- package/dist/entities/product/index.mjs +1 -18
- package/dist/entities/product-highlight/index.cjs +2 -21
- package/dist/entities/product-highlight/index.d.cts +1 -244
- package/dist/entities/product-highlight/index.d.mts +1 -244
- package/dist/entities/product-highlight/index.mjs +1 -18
- package/dist/entities/resume/index.cjs +2 -2
- package/dist/entities/resume/index.mjs +1 -1
- package/dist/entities/tag/index.cjs +4 -11
- package/dist/entities/tag/index.d.cts +3 -14
- package/dist/entities/tag/index.d.mts +3 -14
- package/dist/entities/tag/index.mjs +2 -9
- package/dist/entities/team-member/index.cjs +1 -1
- package/dist/entities/team-member/index.d.cts +1 -209
- package/dist/entities/team-member/index.d.mts +1 -209
- package/dist/entities/team-member/index.mjs +1 -1
- package/dist/entities/team-page/index.d.mts +1 -1
- package/dist/entities/trend/index.cjs +4 -18
- package/dist/entities/trend/index.d.cts +1 -333
- package/dist/entities/trend/index.d.mts +1 -333
- package/dist/entities/trend/index.mjs +2 -16
- package/dist/entities/up-auth/index.d.cts +2 -2
- package/dist/entities/up-auth/index.d.mts +2 -2
- package/dist/entities/up-permission/index.cjs +2 -11
- package/dist/entities/up-permission/index.d.cts +1 -13
- package/dist/entities/up-permission/index.d.mts +1 -13
- package/dist/entities/up-permission/index.mjs +1 -8
- package/dist/entities/up-role/index.cjs +4 -27
- package/dist/entities/up-role/index.d.cts +1 -2
- package/dist/entities/up-role/index.d.mts +1 -2
- package/dist/entities/up-role/index.mjs +1 -22
- package/dist/entities/up-user/index.cjs +9 -63
- package/dist/entities/up-user/index.d.cts +1 -37
- package/dist/entities/up-user/index.d.mts +1 -37
- package/dist/entities/up-user/index.mjs +1 -53
- 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 +10 -18
- 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 +3 -11
- package/dist/entities/utm-link-builder/index.cjs +9 -8
- package/dist/entities/utm-link-builder/index.d.cts +2 -3
- package/dist/entities/utm-link-builder/index.d.mts +2 -3
- package/dist/entities/utm-link-builder/index.mjs +6 -4
- package/dist/entities/utm-meta/index.d.cts +7 -7
- package/dist/entities/utm-meta/index.d.mts +7 -7
- package/dist/entities/utm-tracking-link/index.cjs +7 -28
- package/dist/entities/utm-tracking-link/index.d.cts +1 -234
- package/dist/entities/utm-tracking-link/index.d.mts +1 -234
- package/dist/entities/utm-tracking-link/index.mjs +2 -23
- package/dist/index-4XzJDMTp.d.mts +4744 -0
- package/dist/index-B3VtiObV.d.mts +317 -0
- package/dist/index-BD4hPqIw.d.cts +940 -0
- package/dist/index-BbwsFaWE.d.cts +921 -0
- package/dist/{index-DDYmaYSm.d.mts → index-Brw4Hq18.d.cts} +3 -3
- package/dist/{index-Dl6KBLdT.d.mts → index-CJ2_Z1gW.d.mts} +99 -142
- package/dist/index-CQP_vcmO.d.cts +317 -0
- package/dist/index-CRoWUxGV.d.cts +1324 -0
- package/dist/index-CrZiM45q.d.cts +4744 -0
- package/dist/index-CygWlTrU.d.mts +940 -0
- package/dist/index-D11tQdCv.d.cts +34 -0
- package/dist/{index-DmLVZdb3.d.cts → index-D6rOxDlM.d.mts} +3 -3
- package/dist/index-DJ-0EDJN.d.mts +921 -0
- package/dist/index-DLICmJ_-.d.mts +34 -0
- package/dist/{index-Dv9bgrpo.d.cts → index-efk0FfOP.d.cts} +98 -141
- package/dist/index-oCLNrzIj.d.mts +1324 -0
- package/dist/media-upload-D-nP8FR1.d.cts +140 -0
- package/dist/media-upload-DKeA1eD-.d.mts +140 -0
- package/dist/permissions/index.cjs +3 -663
- package/dist/permissions/index.d.cts +2 -2
- package/dist/permissions/index.d.mts +2 -2
- package/dist/permissions/index.mjs +3 -661
- package/dist/{query.schema-DHTf6rTw.cjs → query-7g1AOXN9.cjs} +3 -3
- package/dist/{query.schema-YKoOuBnk.mjs → query-CeUev0uJ.mjs} +2 -2
- package/dist/{relations-C04F46xL.mjs → relationships-BosK0kyG.mjs} +1 -1
- package/dist/{relations-CGu18hfT.cjs → relationships-CWVJebkQ.cjs} +1 -1
- package/dist/utilities/index.cjs +20 -0
- package/dist/utilities/index.d.cts +7 -2
- package/dist/utilities/index.d.mts +7 -2
- package/dist/utilities/index.mjs +19 -1
- package/package.json +1 -1
- package/dist/document-BAzLIprH.d.mts +0 -100
- package/dist/document-BFukanLe.mjs +0 -54
- package/dist/document-BK1ASowb.d.cts +0 -17
- package/dist/document-BNoXPGwF.d.mts +0 -27
- package/dist/document-B_pJW777.d.mts +0 -30
- package/dist/document-Bd2AyLs8.d.mts +0 -16
- package/dist/document-BezYxNmb.d.cts +0 -16
- package/dist/document-Bj7SRTOn.d.cts +0 -18
- package/dist/document-Bo869pZx.d.mts +0 -18
- package/dist/document-Bs8c1mok.d.cts +0 -15
- package/dist/document-C0c7azOe.d.mts +0 -434
- package/dist/document-CTTDXzOF.mjs +0 -13
- package/dist/document-CUl_Ys6-.mjs +0 -23
- package/dist/document-CWYzG60q.d.cts +0 -19
- package/dist/document-Ccszj8lR.cjs +0 -20
- package/dist/document-CjNHI7Eb.d.cts +0 -27
- package/dist/document-Cu_HUDC5.mjs +0 -51
- package/dist/document-D-KvyEb5.d.cts +0 -238
- package/dist/document-D2nLVGig.d.mts +0 -238
- package/dist/document-D5yDIDIx.d.mts +0 -15
- package/dist/document-D73dqRle.d.cts +0 -19
- package/dist/document-DA6YVZz-.d.cts +0 -100
- package/dist/document-DJ0YiVte.d.cts +0 -30
- package/dist/document-DMHIUE3J.d.mts +0 -17
- package/dist/document-DN3g0EFx.d.cts +0 -434
- package/dist/document-DWapIF7V.d.cts +0 -12223
- package/dist/document-DYzRVV1C.d.mts +0 -16
- package/dist/document-D_ZMbzn6.d.cts +0 -18
- package/dist/document-DeoRGh7p.d.mts +0 -19
- package/dist/document-DsIPBTG8.cjs +0 -30
- package/dist/document-DsSaMVGb.cjs +0 -106
- package/dist/document-IIJpsOIO.d.cts +0 -16
- package/dist/document-WHS8GHY5.d.mts +0 -18
- package/dist/document-dqrWptdY.d.cts +0 -244
- package/dist/document-qcC-10Nd.d.mts +0 -12223
- package/dist/document-rbMXLGxt.cjs +0 -103
- package/dist/document-si7GYS5g.d.mts +0 -19
- package/dist/document-vq-7rcU5.d.mts +0 -244
- package/dist/fields-BQHSYj70.d.cts +0 -7
- package/dist/fields-qx-5saY5.d.mts +0 -7
- package/dist/index-CPUGB8lZ.d.mts +0 -95
- package/dist/index-H4RC0v4h.d.cts +0 -95
- package/dist/query.schema-BOn5Kk_p.d.mts +0 -41
- package/dist/query.schema-CItKlb0x.d.cts +0 -41
- package/dist/response-C-7nyNVD.d.mts +0 -57
- package/dist/response-c6SgLvi9.d.cts +0 -57
- /package/dist/{constants-L2goO7Eg.mjs → constants-Htf-MeCA.mjs} +0 -0
- /package/dist/{constants-PBZKggHL.cjs → constants-f1GP2eiq.cjs} +0 -0
- /package/dist/{json-CqAaKeHA.d.mts → json-CiA5ZRzc.d.mts} +0 -0
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import * as v from "valibot";
|
|
2
|
-
|
|
3
|
-
//#region src/base/query.schema.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,57 +0,0 @@
|
|
|
1
|
-
//#region src/base/response.d.ts
|
|
2
|
-
type StrapiPagination = {
|
|
3
|
-
page: number;
|
|
4
|
-
pageSize: number;
|
|
5
|
-
pageCount: number;
|
|
6
|
-
total: number;
|
|
7
|
-
};
|
|
8
|
-
type StrapiResponseMeta = {
|
|
9
|
-
pagination?: StrapiPagination;
|
|
10
|
-
token?: string;
|
|
11
|
-
};
|
|
12
|
-
type StrapiResponseMetaWithPagination = Omit<StrapiResponseMeta, "pagination"> & {
|
|
13
|
-
pagination: StrapiPagination;
|
|
14
|
-
};
|
|
15
|
-
type StrapiAttributeErrorKey<T> = {
|
|
16
|
-
message: string;
|
|
17
|
-
name: string;
|
|
18
|
-
path: string[];
|
|
19
|
-
value: T[keyof T];
|
|
20
|
-
};
|
|
21
|
-
type StrapiErrorDetail<T> = {
|
|
22
|
-
status: string | number;
|
|
23
|
-
name: string;
|
|
24
|
-
message: string;
|
|
25
|
-
details: Record<keyof T, string>;
|
|
26
|
-
};
|
|
27
|
-
type StrapiAttributeErrorDetail<T> = {
|
|
28
|
-
status: string | number;
|
|
29
|
-
name: string;
|
|
30
|
-
message: string;
|
|
31
|
-
details: {
|
|
32
|
-
errors: StrapiAttributeErrorKey<T>[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type StrapiSingleResponse<T> = {
|
|
36
|
-
data: T;
|
|
37
|
-
meta?: StrapiResponseMeta;
|
|
38
|
-
error?: undefined;
|
|
39
|
-
};
|
|
40
|
-
type StrapiListResponse<T> = {
|
|
41
|
-
data: T[];
|
|
42
|
-
meta: StrapiResponseMetaWithPagination;
|
|
43
|
-
error?: undefined;
|
|
44
|
-
};
|
|
45
|
-
type StrapiErrorResponse<T> = {
|
|
46
|
-
error: StrapiErrorDetail<T>;
|
|
47
|
-
data: null;
|
|
48
|
-
meta?: undefined;
|
|
49
|
-
};
|
|
50
|
-
type StrapiAttributeErrorResponse<T> = {
|
|
51
|
-
error: StrapiAttributeErrorDetail<T>;
|
|
52
|
-
data: null;
|
|
53
|
-
meta?: undefined;
|
|
54
|
-
};
|
|
55
|
-
type StrapiErrorResult<T> = StrapiErrorResponse<T> | StrapiAttributeErrorResponse<T>;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { StrapiErrorResponse as a, StrapiPagination as c, StrapiSingleResponse as d, StrapiErrorDetail as i, StrapiResponseMeta as l, StrapiAttributeErrorKey as n, StrapiErrorResult as o, StrapiAttributeErrorResponse as r, StrapiListResponse as s, StrapiAttributeErrorDetail as t, StrapiResponseMetaWithPagination as u };
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
//#region src/base/response.d.ts
|
|
2
|
-
type StrapiPagination = {
|
|
3
|
-
page: number;
|
|
4
|
-
pageSize: number;
|
|
5
|
-
pageCount: number;
|
|
6
|
-
total: number;
|
|
7
|
-
};
|
|
8
|
-
type StrapiResponseMeta = {
|
|
9
|
-
pagination?: StrapiPagination;
|
|
10
|
-
token?: string;
|
|
11
|
-
};
|
|
12
|
-
type StrapiResponseMetaWithPagination = Omit<StrapiResponseMeta, "pagination"> & {
|
|
13
|
-
pagination: StrapiPagination;
|
|
14
|
-
};
|
|
15
|
-
type StrapiAttributeErrorKey<T> = {
|
|
16
|
-
message: string;
|
|
17
|
-
name: string;
|
|
18
|
-
path: string[];
|
|
19
|
-
value: T[keyof T];
|
|
20
|
-
};
|
|
21
|
-
type StrapiErrorDetail<T> = {
|
|
22
|
-
status: string | number;
|
|
23
|
-
name: string;
|
|
24
|
-
message: string;
|
|
25
|
-
details: Record<keyof T, string>;
|
|
26
|
-
};
|
|
27
|
-
type StrapiAttributeErrorDetail<T> = {
|
|
28
|
-
status: string | number;
|
|
29
|
-
name: string;
|
|
30
|
-
message: string;
|
|
31
|
-
details: {
|
|
32
|
-
errors: StrapiAttributeErrorKey<T>[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
type StrapiSingleResponse<T> = {
|
|
36
|
-
data: T;
|
|
37
|
-
meta?: StrapiResponseMeta;
|
|
38
|
-
error?: undefined;
|
|
39
|
-
};
|
|
40
|
-
type StrapiListResponse<T> = {
|
|
41
|
-
data: T[];
|
|
42
|
-
meta: StrapiResponseMetaWithPagination;
|
|
43
|
-
error?: undefined;
|
|
44
|
-
};
|
|
45
|
-
type StrapiErrorResponse<T> = {
|
|
46
|
-
error: StrapiErrorDetail<T>;
|
|
47
|
-
data: null;
|
|
48
|
-
meta?: undefined;
|
|
49
|
-
};
|
|
50
|
-
type StrapiAttributeErrorResponse<T> = {
|
|
51
|
-
error: StrapiAttributeErrorDetail<T>;
|
|
52
|
-
data: null;
|
|
53
|
-
meta?: undefined;
|
|
54
|
-
};
|
|
55
|
-
type StrapiErrorResult<T> = StrapiErrorResponse<T> | StrapiAttributeErrorResponse<T>;
|
|
56
|
-
//#endregion
|
|
57
|
-
export { StrapiErrorResponse as a, StrapiPagination as c, StrapiSingleResponse as d, StrapiErrorDetail as i, StrapiResponseMeta as l, StrapiAttributeErrorKey as n, StrapiErrorResult as o, StrapiAttributeErrorResponse as r, StrapiListResponse as s, StrapiAttributeErrorDetail as t, StrapiResponseMetaWithPagination as u };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|