@getcommunity/gc-validators 0.0.288-alpha.2 → 0.0.288-alpha.3
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 +1 -1
- package/dist/base/index.d.cts +2 -2
- package/dist/base/index.d.mts +2 -2
- package/dist/base/index.mjs +1 -1
- package/dist/{document-DKCXrhcv.mjs → document-CMD9cQiK.mjs} +9 -9
- package/dist/entities/audit-log/query.cjs +7 -6
- package/dist/entities/audit-log/query.d.cts +6 -25
- package/dist/entities/audit-log/query.d.mts +6 -25
- package/dist/entities/audit-log/query.mjs +2 -1
- package/dist/entities/blog-post/document.cjs +1 -1
- package/dist/entities/blog-post/document.mjs +1 -1
- package/dist/entities/blog-post/query.cjs +9 -8
- package/dist/entities/blog-post/query.d.cts +6 -21
- package/dist/entities/blog-post/query.d.mts +6 -21
- package/dist/entities/blog-post/query.mjs +2 -1
- package/dist/entities/category/document.cjs +1 -1
- package/dist/entities/category/document.mjs +1 -1
- package/dist/entities/category/query.cjs +7 -6
- package/dist/entities/category/query.d.cts +6 -12
- package/dist/entities/category/query.d.mts +6 -12
- package/dist/entities/category/query.mjs +2 -1
- package/dist/entities/client/query.cjs +6 -5
- package/dist/entities/client/query.d.cts +1 -1
- package/dist/entities/client/query.d.mts +1 -1
- package/dist/entities/client/query.mjs +2 -1
- package/dist/entities/client-content-pillar/query.cjs +1 -1
- package/dist/entities/client-content-pillar/query.d.cts +1 -1
- package/dist/entities/client-content-pillar/query.d.mts +1 -1
- package/dist/entities/client-content-pillar/query.mjs +1 -1
- package/dist/entities/client-media-platform/query.cjs +1 -1
- package/dist/entities/client-media-platform/query.d.cts +1 -1
- package/dist/entities/client-media-platform/query.d.mts +1 -1
- package/dist/entities/client-media-platform/query.mjs +1 -1
- package/dist/entities/client-project/query.cjs +12 -11
- package/dist/entities/client-project/query.d.cts +7 -29
- package/dist/entities/client-project/query.d.mts +7 -29
- package/dist/entities/client-project/query.mjs +2 -1
- package/dist/entities/client-report/query.cjs +6 -5
- package/dist/entities/client-report/query.d.cts +7 -18
- package/dist/entities/client-report/query.d.mts +7 -18
- package/dist/entities/client-report/query.mjs +2 -1
- package/dist/entities/client-styleguide/query.cjs +6 -5
- package/dist/entities/client-styleguide/query.d.cts +7 -14
- package/dist/entities/client-styleguide/query.d.mts +7 -14
- package/dist/entities/client-styleguide/query.mjs +2 -1
- package/dist/entities/client-user/query.cjs +1 -1
- package/dist/entities/client-user/query.d.cts +1 -1
- package/dist/entities/client-user/query.d.mts +1 -1
- package/dist/entities/client-user/query.mjs +1 -1
- package/dist/entities/content-pillar/query.cjs +1 -1
- package/dist/entities/content-pillar/query.d.cts +1 -1
- package/dist/entities/content-pillar/query.d.mts +1 -1
- package/dist/entities/content-pillar/query.mjs +1 -1
- package/dist/entities/formatter/constants.d.cts +1 -1
- package/dist/entities/formatter/constants.d.mts +1 -1
- package/dist/entities/formatter/fields.d.cts +4 -4
- package/dist/entities/formatter/fields.d.mts +4 -4
- package/dist/entities/gcflytour/query.cjs +1 -1
- package/dist/entities/gcflytour/query.d.cts +1 -1
- package/dist/entities/gcflytour/query.d.mts +1 -1
- package/dist/entities/gcflytour/query.mjs +1 -1
- package/dist/entities/gcflytour-snap/query.cjs +1 -1
- package/dist/entities/gcflytour-snap/query.d.cts +1 -1
- package/dist/entities/gcflytour-snap/query.d.mts +1 -1
- package/dist/entities/gcflytour-snap/query.mjs +1 -1
- package/dist/entities/media-content-type/query.cjs +1 -1
- package/dist/entities/media-content-type/query.d.cts +1 -1
- package/dist/entities/media-content-type/query.d.mts +1 -1
- package/dist/entities/media-content-type/query.mjs +1 -1
- package/dist/entities/media-creative-format/query.cjs +1 -1
- package/dist/entities/media-creative-format/query.d.cts +1 -1
- package/dist/entities/media-creative-format/query.d.mts +1 -1
- package/dist/entities/media-creative-format/query.mjs +1 -1
- package/dist/entities/media-medium/query.cjs +1 -1
- package/dist/entities/media-medium/query.d.cts +1 -1
- package/dist/entities/media-medium/query.d.mts +1 -1
- package/dist/entities/media-medium/query.mjs +1 -1
- package/dist/entities/media-platform/query.cjs +1 -1
- package/dist/entities/media-platform/query.d.cts +1 -1
- package/dist/entities/media-platform/query.d.mts +1 -1
- package/dist/entities/media-platform/query.mjs +1 -1
- package/dist/entities/monday-workspace/query.cjs +6 -5
- package/dist/entities/monday-workspace/query.d.cts +7 -14
- package/dist/entities/monday-workspace/query.d.mts +7 -14
- package/dist/entities/monday-workspace/query.mjs +2 -1
- package/dist/entities/tag/query.cjs +7 -6
- package/dist/entities/tag/query.d.cts +6 -12
- package/dist/entities/tag/query.d.mts +6 -12
- package/dist/entities/tag/query.mjs +2 -1
- package/dist/entities/team-member/document.cjs +1 -1
- package/dist/entities/team-member/document.mjs +1 -1
- package/dist/entities/team-member/query.cjs +8 -7
- package/dist/entities/team-member/query.d.cts +6 -17
- package/dist/entities/team-member/query.d.mts +6 -17
- package/dist/entities/team-member/query.mjs +2 -1
- package/dist/entities/trend/document.cjs +1 -1
- package/dist/entities/trend/document.mjs +1 -1
- package/dist/entities/up-permission/fields.d.cts +1 -1
- package/dist/entities/up-permission/fields.d.mts +1 -1
- package/dist/entities/up-role/query.cjs +6 -5
- package/dist/entities/up-role/query.d.cts +1 -1
- package/dist/entities/up-role/query.d.mts +1 -1
- package/dist/entities/up-role/query.mjs +2 -1
- package/dist/entities/up-user/query.cjs +1 -1
- package/dist/entities/up-user/query.d.cts +1 -1
- package/dist/entities/up-user/query.d.mts +1 -1
- package/dist/entities/up-user/query.mjs +1 -1
- package/dist/entities/url-redirect/query.cjs +6 -5
- package/dist/entities/url-redirect/query.d.cts +6 -15
- package/dist/entities/url-redirect/query.d.mts +6 -15
- package/dist/entities/url-redirect/query.mjs +2 -1
- package/dist/entities/user-account/query.cjs +1 -1
- package/dist/entities/user-account/query.d.cts +1 -1
- package/dist/entities/user-account/query.d.mts +1 -1
- package/dist/entities/user-account/query.mjs +1 -1
- package/dist/entities/utm-tracking-link/query.cjs +7 -6
- package/dist/entities/utm-tracking-link/query.d.cts +8 -30
- package/dist/entities/utm-tracking-link/query.d.mts +8 -30
- package/dist/entities/utm-tracking-link/query.mjs +3 -2
- package/dist/{fields-S54MmK9N.d.mts → fields-BoIWv7BD.d.mts} +1 -1
- package/dist/{fields-PCsCdBLK.d.cts → fields-DaAvm6kj.d.cts} +1 -1
- package/dist/filters/index.cjs +19 -18
- package/dist/filters/index.d.cts +109 -2
- package/dist/filters/index.d.mts +109 -2
- package/dist/filters/index.mjs +2 -1
- package/dist/{string-BzuFgUlq.mjs → identifier-CXlBnKdk.mjs} +1 -35
- package/dist/{string-CmrQCAO3.cjs → identifier-Dmax1xo2.cjs} +0 -52
- package/dist/{index-B3eh9Z-Q.d.cts → index-BgZbDm41.d.cts} +6 -1
- package/dist/{index-B3eh9Z-Q.d.mts → index-BgZbDm41.d.mts} +6 -1
- package/dist/{index-G2dwQO5K.d.cts → index-CPxt9kfS.d.cts} +3 -17
- package/dist/{index-S6qdsw3U.d.mts → index-QwaC0W5H.d.mts} +3 -17
- package/dist/{query-F1Pi5Frs.d.mts → query-0MyyHYA2.d.mts} +9 -8
- package/dist/{query-C6GwPFXA.d.mts → query-9J5wmu64.d.mts} +12 -33
- package/dist/{query-B_0RzvVW.cjs → query-B-6-qAuN.cjs} +12 -11
- package/dist/{query-CZWKfQ2W.d.mts → query-BOv5YhYc.d.cts} +16 -26
- package/dist/{query-Db1jwzou.d.cts → query-BQkvCQDy.d.mts} +16 -26
- package/dist/{query-0Z9KdoGa.d.mts → query-BSphap4l.d.mts} +14 -32
- package/dist/{query-Du84-6vd.mjs → query-B_Kr4diZ.mjs} +1 -1
- package/dist/{query-DxEOf4Ya.d.cts → query-BdS6AzQM.d.mts} +27 -79
- package/dist/{query-DAmB2_nm.d.cts → query-BiM_LW7b.d.cts} +12 -33
- package/dist/{query-Bi8_XzuT.mjs → query-BkrbXapq.mjs} +2 -1
- package/dist/{query-BGz5Dj7o.d.cts → query-C0STzKW-.d.cts} +9 -8
- package/dist/{query-BjiGq9-J.cjs → query-C1EUVVMT.cjs} +27 -26
- package/dist/{query-gZEGybi3.d.cts → query-CCAKLxKT.d.cts} +14 -32
- package/dist/{query-CZV-Qu8U.mjs → query-CQEN_HJN.mjs} +2 -1
- package/dist/{query-CJTbiRV2.mjs → query-CSOBMIJi.mjs} +2 -1
- package/dist/{query-Dzx1W_xi.cjs → query-CTqyKcbH.cjs} +11 -10
- package/dist/{query-X_l9YFS6.d.mts → query-CbCFSDNP.d.cts} +12 -27
- package/dist/{query-hvHQxwdK.d.mts → query-DIQPfsSq.d.cts} +6 -22
- package/dist/{query-ohFZ5p3e.d.cts → query-DQvrkaL2.d.mts} +6 -22
- package/dist/{query-Ck0NC_9l.cjs → query-D_xMsBEz.cjs} +11 -10
- package/dist/{query-CEvYGQyI.d.cts → query-DlpZHcIM.d.mts} +12 -27
- package/dist/{query-C-G04KqP.d.mts → query-PKg23GyY.d.cts} +27 -79
- package/dist/{query-DV68iZaG.mjs → query-k67TaoJs.mjs} +2 -1
- package/dist/{query-CMOLb-qs.cjs → query-okrI1jn4.cjs} +8 -8
- package/dist/string-By4lqNB3.cjs +53 -0
- package/dist/string-CHEFvHQa.mjs +36 -0
- package/dist/utilities/index.d.cts +1 -1
- package/dist/utilities/index.d.mts +1 -1
- package/package.json +1 -1
- package/dist/index-Bk5hIBoB.d.cts +0 -108
- package/dist/index-Bk5hIBoB.d.mts +0 -108
- package/dist/{document-D-6H7hBf.cjs → document-C5i7ol4r.cjs} +8 -8
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { i as createStrapiFieldOperatorSchema, n as createStrapiArrayMembershipOperatorEntries, o as createStrapiCaseInsensitiveEqualityOperatorEntries, s as createStrapiEqualityOperatorEntries, t as StrapiNullOperatorEntries } from "./null-operators-DvwH8j8n.mjs";
|
|
2
|
+
import { t as LIMIT_LONG_STRING_MAX_LENGTH } from "./limits-Dlni_x0-.mjs";
|
|
3
|
+
import { i as VStringMax } from "./string-v2gu3xz0.mjs";
|
|
4
|
+
//#region src/filters/primitives/string-matching-operators.ts
|
|
5
|
+
const createStrapiStringMatchingOperatorEntries = (value) => ({
|
|
6
|
+
$contains: value,
|
|
7
|
+
$containsi: value,
|
|
8
|
+
$endsWith: value,
|
|
9
|
+
$endsWithi: value,
|
|
10
|
+
$notContains: value,
|
|
11
|
+
$notContainsi: value,
|
|
12
|
+
$startsWith: value,
|
|
13
|
+
$startsWithi: value
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/filters/generics/string.ts
|
|
17
|
+
const StringFilter = createStrapiFieldOperatorSchema({
|
|
18
|
+
...createStrapiEqualityOperatorEntries(VStringMax()),
|
|
19
|
+
...createStrapiCaseInsensitiveEqualityOperatorEntries(VStringMax()),
|
|
20
|
+
...createStrapiStringMatchingOperatorEntries(VStringMax()),
|
|
21
|
+
...StrapiNullOperatorEntries
|
|
22
|
+
});
|
|
23
|
+
const LongStringFilter = createStrapiFieldOperatorSchema({
|
|
24
|
+
...createStrapiEqualityOperatorEntries(VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)),
|
|
25
|
+
...createStrapiCaseInsensitiveEqualityOperatorEntries(VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)),
|
|
26
|
+
...createStrapiStringMatchingOperatorEntries(VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)),
|
|
27
|
+
...StrapiNullOperatorEntries
|
|
28
|
+
});
|
|
29
|
+
const ExactStringFilter = createStrapiFieldOperatorSchema({
|
|
30
|
+
...createStrapiEqualityOperatorEntries(VStringMax()),
|
|
31
|
+
...createStrapiCaseInsensitiveEqualityOperatorEntries(VStringMax()),
|
|
32
|
+
...createStrapiArrayMembershipOperatorEntries(VStringMax()),
|
|
33
|
+
...StrapiNullOperatorEntries
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { LongStringFilter as n, StringFilter as r, ExactStringFilter as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as StrapiAttributeErrorResponse, k as StrapiErrorResponse } from "../index-
|
|
1
|
+
import { D as StrapiAttributeErrorResponse, k as StrapiErrorResponse } from "../index-CPxt9kfS.cjs";
|
|
2
2
|
import { g as AuthorizedUserDocument, i as ClientUserDocumentStatus, o as Permissions } from "../document-CPHhI3jF.cjs";
|
|
3
3
|
import { t as RoleType } from "../fields-DNmK-PPG.cjs";
|
|
4
4
|
import * as v from "valibot";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as StrapiAttributeErrorResponse, k as StrapiErrorResponse } from "../index-
|
|
1
|
+
import { D as StrapiAttributeErrorResponse, k as StrapiErrorResponse } from "../index-QwaC0W5H.mjs";
|
|
2
2
|
import { g as AuthorizedUserDocument, i as ClientUserDocumentStatus, o as Permissions } from "../document-DHJf5HxE.mjs";
|
|
3
3
|
import { t as RoleType } from "../fields-DNmK-PPG.mjs";
|
|
4
4
|
import * as v from "valibot";
|
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.288-alpha.
|
|
4
|
+
"version": "0.0.288-alpha.3",
|
|
5
5
|
"author": "Joey Grable <joey@getcommunity.com> (https://joeygrable.com)",
|
|
6
6
|
"contributors": [],
|
|
7
7
|
"type": "module",
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
//#region src/filters/constants.d.ts
|
|
2
|
-
declare const STRAPI_FILTER_OPERATORS: {
|
|
3
|
-
readonly $eq: {
|
|
4
|
-
readonly type: "comparison";
|
|
5
|
-
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
6
|
-
};
|
|
7
|
-
readonly $ne: {
|
|
8
|
-
readonly type: "comparison";
|
|
9
|
-
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
10
|
-
};
|
|
11
|
-
readonly $eqi: {
|
|
12
|
-
readonly type: "comparison";
|
|
13
|
-
readonly valueType: readonly ["string"];
|
|
14
|
-
};
|
|
15
|
-
readonly $nei: {
|
|
16
|
-
readonly type: "comparison";
|
|
17
|
-
readonly valueType: readonly ["string"];
|
|
18
|
-
};
|
|
19
|
-
readonly $gt: {
|
|
20
|
-
readonly type: "comparison";
|
|
21
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
22
|
-
};
|
|
23
|
-
readonly $gte: {
|
|
24
|
-
readonly type: "comparison";
|
|
25
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
26
|
-
};
|
|
27
|
-
readonly $lt: {
|
|
28
|
-
readonly type: "comparison";
|
|
29
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
30
|
-
};
|
|
31
|
-
readonly $lte: {
|
|
32
|
-
readonly type: "comparison";
|
|
33
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
34
|
-
};
|
|
35
|
-
readonly $contains: {
|
|
36
|
-
readonly type: "string";
|
|
37
|
-
readonly valueType: readonly ["string"];
|
|
38
|
-
};
|
|
39
|
-
readonly $containsi: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
readonly valueType: readonly ["string"];
|
|
42
|
-
};
|
|
43
|
-
readonly $endsWith: {
|
|
44
|
-
readonly type: "string";
|
|
45
|
-
readonly valueType: readonly ["string"];
|
|
46
|
-
};
|
|
47
|
-
readonly $endsWithi: {
|
|
48
|
-
readonly type: "string";
|
|
49
|
-
readonly valueType: readonly ["string"];
|
|
50
|
-
};
|
|
51
|
-
readonly $notContains: {
|
|
52
|
-
readonly type: "string";
|
|
53
|
-
readonly valueType: readonly ["string"];
|
|
54
|
-
};
|
|
55
|
-
readonly $notContainsi: {
|
|
56
|
-
readonly type: "string";
|
|
57
|
-
readonly valueType: readonly ["string"];
|
|
58
|
-
};
|
|
59
|
-
readonly $startsWith: {
|
|
60
|
-
readonly type: "string";
|
|
61
|
-
readonly valueType: readonly ["string"];
|
|
62
|
-
};
|
|
63
|
-
readonly $startsWithi: {
|
|
64
|
-
readonly type: "string";
|
|
65
|
-
readonly valueType: readonly ["string"];
|
|
66
|
-
};
|
|
67
|
-
readonly $in: {
|
|
68
|
-
readonly type: "array";
|
|
69
|
-
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
70
|
-
};
|
|
71
|
-
readonly $notIn: {
|
|
72
|
-
readonly type: "array";
|
|
73
|
-
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
74
|
-
};
|
|
75
|
-
readonly $between: {
|
|
76
|
-
readonly type: "array";
|
|
77
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
78
|
-
};
|
|
79
|
-
readonly $notNull: {
|
|
80
|
-
readonly type: "null";
|
|
81
|
-
readonly valueType: readonly ["nullable"];
|
|
82
|
-
};
|
|
83
|
-
readonly $null: {
|
|
84
|
-
readonly type: "null";
|
|
85
|
-
readonly valueType: readonly ["nullable"];
|
|
86
|
-
};
|
|
87
|
-
readonly $and: {
|
|
88
|
-
readonly type: "logical";
|
|
89
|
-
readonly valueType: readonly ["join"];
|
|
90
|
-
};
|
|
91
|
-
readonly $not: {
|
|
92
|
-
readonly type: "logical";
|
|
93
|
-
readonly valueType: readonly ["join"];
|
|
94
|
-
};
|
|
95
|
-
readonly $or: {
|
|
96
|
-
readonly type: "logical";
|
|
97
|
-
readonly valueType: readonly ["join"];
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
type StrapiFilterOperandKey = keyof typeof STRAPI_FILTER_OPERATORS;
|
|
101
|
-
type StrapiFilterOperandType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["type"];
|
|
102
|
-
type StrapiFilterOperandValueType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["valueType"];
|
|
103
|
-
type StrapiFilterOperationDef = {
|
|
104
|
-
type: StrapiFilterOperandType;
|
|
105
|
-
valueType: Array<StrapiFilterOperandValueType>;
|
|
106
|
-
};
|
|
107
|
-
//#endregion
|
|
108
|
-
export { StrapiFilterOperationDef as a, StrapiFilterOperandValueType as i, StrapiFilterOperandKey as n, StrapiFilterOperandType as r, STRAPI_FILTER_OPERATORS as t };
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
//#region src/filters/constants.d.ts
|
|
2
|
-
declare const STRAPI_FILTER_OPERATORS: {
|
|
3
|
-
readonly $eq: {
|
|
4
|
-
readonly type: "comparison";
|
|
5
|
-
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
6
|
-
};
|
|
7
|
-
readonly $ne: {
|
|
8
|
-
readonly type: "comparison";
|
|
9
|
-
readonly valueType: readonly ["string", "number", "boolean", "date", "datetime", "picklist"];
|
|
10
|
-
};
|
|
11
|
-
readonly $eqi: {
|
|
12
|
-
readonly type: "comparison";
|
|
13
|
-
readonly valueType: readonly ["string"];
|
|
14
|
-
};
|
|
15
|
-
readonly $nei: {
|
|
16
|
-
readonly type: "comparison";
|
|
17
|
-
readonly valueType: readonly ["string"];
|
|
18
|
-
};
|
|
19
|
-
readonly $gt: {
|
|
20
|
-
readonly type: "comparison";
|
|
21
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
22
|
-
};
|
|
23
|
-
readonly $gte: {
|
|
24
|
-
readonly type: "comparison";
|
|
25
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
26
|
-
};
|
|
27
|
-
readonly $lt: {
|
|
28
|
-
readonly type: "comparison";
|
|
29
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
30
|
-
};
|
|
31
|
-
readonly $lte: {
|
|
32
|
-
readonly type: "comparison";
|
|
33
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
34
|
-
};
|
|
35
|
-
readonly $contains: {
|
|
36
|
-
readonly type: "string";
|
|
37
|
-
readonly valueType: readonly ["string"];
|
|
38
|
-
};
|
|
39
|
-
readonly $containsi: {
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
readonly valueType: readonly ["string"];
|
|
42
|
-
};
|
|
43
|
-
readonly $endsWith: {
|
|
44
|
-
readonly type: "string";
|
|
45
|
-
readonly valueType: readonly ["string"];
|
|
46
|
-
};
|
|
47
|
-
readonly $endsWithi: {
|
|
48
|
-
readonly type: "string";
|
|
49
|
-
readonly valueType: readonly ["string"];
|
|
50
|
-
};
|
|
51
|
-
readonly $notContains: {
|
|
52
|
-
readonly type: "string";
|
|
53
|
-
readonly valueType: readonly ["string"];
|
|
54
|
-
};
|
|
55
|
-
readonly $notContainsi: {
|
|
56
|
-
readonly type: "string";
|
|
57
|
-
readonly valueType: readonly ["string"];
|
|
58
|
-
};
|
|
59
|
-
readonly $startsWith: {
|
|
60
|
-
readonly type: "string";
|
|
61
|
-
readonly valueType: readonly ["string"];
|
|
62
|
-
};
|
|
63
|
-
readonly $startsWithi: {
|
|
64
|
-
readonly type: "string";
|
|
65
|
-
readonly valueType: readonly ["string"];
|
|
66
|
-
};
|
|
67
|
-
readonly $in: {
|
|
68
|
-
readonly type: "array";
|
|
69
|
-
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
70
|
-
};
|
|
71
|
-
readonly $notIn: {
|
|
72
|
-
readonly type: "array";
|
|
73
|
-
readonly valueType: readonly ["string", "number", "date", "picklist"];
|
|
74
|
-
};
|
|
75
|
-
readonly $between: {
|
|
76
|
-
readonly type: "array";
|
|
77
|
-
readonly valueType: readonly ["number", "date", "datetime"];
|
|
78
|
-
};
|
|
79
|
-
readonly $notNull: {
|
|
80
|
-
readonly type: "null";
|
|
81
|
-
readonly valueType: readonly ["nullable"];
|
|
82
|
-
};
|
|
83
|
-
readonly $null: {
|
|
84
|
-
readonly type: "null";
|
|
85
|
-
readonly valueType: readonly ["nullable"];
|
|
86
|
-
};
|
|
87
|
-
readonly $and: {
|
|
88
|
-
readonly type: "logical";
|
|
89
|
-
readonly valueType: readonly ["join"];
|
|
90
|
-
};
|
|
91
|
-
readonly $not: {
|
|
92
|
-
readonly type: "logical";
|
|
93
|
-
readonly valueType: readonly ["join"];
|
|
94
|
-
};
|
|
95
|
-
readonly $or: {
|
|
96
|
-
readonly type: "logical";
|
|
97
|
-
readonly valueType: readonly ["join"];
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
type StrapiFilterOperandKey = keyof typeof STRAPI_FILTER_OPERATORS;
|
|
101
|
-
type StrapiFilterOperandType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["type"];
|
|
102
|
-
type StrapiFilterOperandValueType = (typeof STRAPI_FILTER_OPERATORS)[StrapiFilterOperandKey]["valueType"];
|
|
103
|
-
type StrapiFilterOperationDef = {
|
|
104
|
-
type: StrapiFilterOperandType;
|
|
105
|
-
valueType: Array<StrapiFilterOperandValueType>;
|
|
106
|
-
};
|
|
107
|
-
//#endregion
|
|
108
|
-
export { StrapiFilterOperationDef as a, StrapiFilterOperandValueType as i, StrapiFilterOperandKey as n, StrapiFilterOperandType as r, STRAPI_FILTER_OPERATORS as t };
|
|
@@ -9,6 +9,14 @@ const require_entities_team_member_fields = require("./entities/team-member/fiel
|
|
|
9
9
|
const require_entities_blog_post_fields = require("./entities/blog-post/fields.cjs");
|
|
10
10
|
let valibot = require("valibot");
|
|
11
11
|
valibot = require_chunk.__toESM(valibot, 1);
|
|
12
|
+
//#region src/entities/category/document.ts
|
|
13
|
+
const CategoryDocument = valibot.object({
|
|
14
|
+
...require_document.BaseDocument.entries,
|
|
15
|
+
label: valibot.string(),
|
|
16
|
+
slug: valibot.string(),
|
|
17
|
+
blog_posts: require_relation.VDocumentRelationMany(() => BlogPostDocument)
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
12
20
|
//#region src/entities/trend/document.ts
|
|
13
21
|
const TrendDocument = valibot.object({
|
|
14
22
|
...require_document.BaseDocument.entries,
|
|
@@ -58,14 +66,6 @@ const BlogPostDocument = valibot.object({
|
|
|
58
66
|
related_posts: require_relation.VDocumentRelationMany(() => BlogPostDocument)
|
|
59
67
|
});
|
|
60
68
|
//#endregion
|
|
61
|
-
//#region src/entities/category/document.ts
|
|
62
|
-
const CategoryDocument = valibot.object({
|
|
63
|
-
...require_document.BaseDocument.entries,
|
|
64
|
-
label: valibot.string(),
|
|
65
|
-
slug: valibot.string(),
|
|
66
|
-
blog_posts: require_relation.VDocumentRelationMany(() => BlogPostDocument)
|
|
67
|
-
});
|
|
68
|
-
//#endregion
|
|
69
69
|
Object.defineProperty(exports, "BlogPostDocument", {
|
|
70
70
|
enumerable: true,
|
|
71
71
|
get: function() {
|