@getcommunity/gc-validators 0.0.288-alpha.2 → 0.0.288-alpha.4

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.
Files changed (167) hide show
  1. package/dist/base/index.cjs +1 -1
  2. package/dist/base/index.d.cts +2 -2
  3. package/dist/base/index.d.mts +2 -2
  4. package/dist/base/index.mjs +1 -1
  5. package/dist/constants/index.d.cts +1 -1
  6. package/dist/constants/index.d.mts +1 -1
  7. package/dist/{document-DKCXrhcv.mjs → document-CMD9cQiK.mjs} +9 -9
  8. package/dist/entities/audit-log/query.cjs +7 -6
  9. package/dist/entities/audit-log/query.d.cts +6 -25
  10. package/dist/entities/audit-log/query.d.mts +6 -25
  11. package/dist/entities/audit-log/query.mjs +2 -1
  12. package/dist/entities/blog-post/document.cjs +1 -1
  13. package/dist/entities/blog-post/document.mjs +1 -1
  14. package/dist/entities/blog-post/fields.cjs +1 -1
  15. package/dist/entities/blog-post/fields.mjs +1 -1
  16. package/dist/entities/blog-post/query.cjs +12 -8
  17. package/dist/entities/blog-post/query.d.cts +9 -21
  18. package/dist/entities/blog-post/query.d.mts +9 -21
  19. package/dist/entities/blog-post/query.mjs +6 -2
  20. package/dist/entities/category/document.cjs +1 -1
  21. package/dist/entities/category/document.mjs +1 -1
  22. package/dist/entities/category/query.cjs +7 -6
  23. package/dist/entities/category/query.d.cts +6 -12
  24. package/dist/entities/category/query.d.mts +6 -12
  25. package/dist/entities/category/query.mjs +2 -1
  26. package/dist/entities/client/query.cjs +6 -5
  27. package/dist/entities/client/query.d.cts +1 -1
  28. package/dist/entities/client/query.d.mts +1 -1
  29. package/dist/entities/client/query.mjs +2 -1
  30. package/dist/entities/client-content-pillar/query.cjs +1 -1
  31. package/dist/entities/client-content-pillar/query.d.cts +1 -1
  32. package/dist/entities/client-content-pillar/query.d.mts +1 -1
  33. package/dist/entities/client-content-pillar/query.mjs +1 -1
  34. package/dist/entities/client-media-platform/query.cjs +1 -1
  35. package/dist/entities/client-media-platform/query.d.cts +1 -1
  36. package/dist/entities/client-media-platform/query.d.mts +1 -1
  37. package/dist/entities/client-media-platform/query.mjs +1 -1
  38. package/dist/entities/client-project/query.cjs +12 -11
  39. package/dist/entities/client-project/query.d.cts +7 -29
  40. package/dist/entities/client-project/query.d.mts +7 -29
  41. package/dist/entities/client-project/query.mjs +2 -1
  42. package/dist/entities/client-report/query.cjs +6 -5
  43. package/dist/entities/client-report/query.d.cts +7 -18
  44. package/dist/entities/client-report/query.d.mts +7 -18
  45. package/dist/entities/client-report/query.mjs +2 -1
  46. package/dist/entities/client-styleguide/query.cjs +6 -5
  47. package/dist/entities/client-styleguide/query.d.cts +7 -14
  48. package/dist/entities/client-styleguide/query.d.mts +7 -14
  49. package/dist/entities/client-styleguide/query.mjs +2 -1
  50. package/dist/entities/client-user/query.cjs +1 -1
  51. package/dist/entities/client-user/query.d.cts +1 -1
  52. package/dist/entities/client-user/query.d.mts +1 -1
  53. package/dist/entities/client-user/query.mjs +1 -1
  54. package/dist/entities/content-pillar/query.cjs +1 -1
  55. package/dist/entities/content-pillar/query.d.cts +1 -1
  56. package/dist/entities/content-pillar/query.d.mts +1 -1
  57. package/dist/entities/content-pillar/query.mjs +1 -1
  58. package/dist/entities/formatter/constants.d.cts +1 -1
  59. package/dist/entities/formatter/constants.d.mts +1 -1
  60. package/dist/entities/formatter/fields.d.cts +4 -4
  61. package/dist/entities/formatter/fields.d.mts +4 -4
  62. package/dist/entities/gcflytour/query.cjs +1 -1
  63. package/dist/entities/gcflytour/query.d.cts +1 -1
  64. package/dist/entities/gcflytour/query.d.mts +1 -1
  65. package/dist/entities/gcflytour/query.mjs +1 -1
  66. package/dist/entities/gcflytour-snap/query.cjs +1 -1
  67. package/dist/entities/gcflytour-snap/query.d.cts +1 -1
  68. package/dist/entities/gcflytour-snap/query.d.mts +1 -1
  69. package/dist/entities/gcflytour-snap/query.mjs +1 -1
  70. package/dist/entities/media-content-type/query.cjs +1 -1
  71. package/dist/entities/media-content-type/query.d.cts +1 -1
  72. package/dist/entities/media-content-type/query.d.mts +1 -1
  73. package/dist/entities/media-content-type/query.mjs +1 -1
  74. package/dist/entities/media-creative-format/query.cjs +1 -1
  75. package/dist/entities/media-creative-format/query.d.cts +1 -1
  76. package/dist/entities/media-creative-format/query.d.mts +1 -1
  77. package/dist/entities/media-creative-format/query.mjs +1 -1
  78. package/dist/entities/media-medium/query.cjs +1 -1
  79. package/dist/entities/media-medium/query.d.cts +1 -1
  80. package/dist/entities/media-medium/query.d.mts +1 -1
  81. package/dist/entities/media-medium/query.mjs +1 -1
  82. package/dist/entities/media-platform/query.cjs +1 -1
  83. package/dist/entities/media-platform/query.d.cts +1 -1
  84. package/dist/entities/media-platform/query.d.mts +1 -1
  85. package/dist/entities/media-platform/query.mjs +1 -1
  86. package/dist/entities/monday-workspace/query.cjs +6 -5
  87. package/dist/entities/monday-workspace/query.d.cts +7 -14
  88. package/dist/entities/monday-workspace/query.d.mts +7 -14
  89. package/dist/entities/monday-workspace/query.mjs +2 -1
  90. package/dist/entities/tag/query.cjs +7 -6
  91. package/dist/entities/tag/query.d.cts +6 -12
  92. package/dist/entities/tag/query.d.mts +6 -12
  93. package/dist/entities/tag/query.mjs +2 -1
  94. package/dist/entities/team-member/document.cjs +1 -1
  95. package/dist/entities/team-member/document.mjs +1 -1
  96. package/dist/entities/team-member/query.cjs +8 -7
  97. package/dist/entities/team-member/query.d.cts +6 -17
  98. package/dist/entities/team-member/query.d.mts +6 -17
  99. package/dist/entities/team-member/query.mjs +2 -1
  100. package/dist/entities/trend/document.cjs +1 -1
  101. package/dist/entities/trend/document.mjs +1 -1
  102. package/dist/entities/up-permission/fields.d.cts +1 -1
  103. package/dist/entities/up-permission/fields.d.mts +1 -1
  104. package/dist/entities/up-role/query.cjs +6 -5
  105. package/dist/entities/up-role/query.d.cts +1 -1
  106. package/dist/entities/up-role/query.d.mts +1 -1
  107. package/dist/entities/up-role/query.mjs +2 -1
  108. package/dist/entities/up-user/query.cjs +1 -1
  109. package/dist/entities/up-user/query.d.cts +1 -1
  110. package/dist/entities/up-user/query.d.mts +1 -1
  111. package/dist/entities/up-user/query.mjs +1 -1
  112. package/dist/entities/url-redirect/query.cjs +6 -5
  113. package/dist/entities/url-redirect/query.d.cts +6 -15
  114. package/dist/entities/url-redirect/query.d.mts +6 -15
  115. package/dist/entities/url-redirect/query.mjs +2 -1
  116. package/dist/entities/user-account/query.cjs +1 -1
  117. package/dist/entities/user-account/query.d.cts +1 -1
  118. package/dist/entities/user-account/query.d.mts +1 -1
  119. package/dist/entities/user-account/query.mjs +1 -1
  120. package/dist/entities/utm-tracking-link/query.cjs +7 -6
  121. package/dist/entities/utm-tracking-link/query.d.cts +8 -30
  122. package/dist/entities/utm-tracking-link/query.d.mts +8 -30
  123. package/dist/entities/utm-tracking-link/query.mjs +3 -2
  124. package/dist/{fields-S54MmK9N.d.mts → fields-BoIWv7BD.d.mts} +1 -1
  125. package/dist/{fields-PCsCdBLK.d.cts → fields-DaAvm6kj.d.cts} +1 -1
  126. package/dist/filters/index.cjs +19 -18
  127. package/dist/filters/index.d.cts +109 -2
  128. package/dist/filters/index.d.mts +109 -2
  129. package/dist/filters/index.mjs +2 -1
  130. package/dist/{string-BzuFgUlq.mjs → identifier-CXlBnKdk.mjs} +1 -35
  131. package/dist/{string-CmrQCAO3.cjs → identifier-Dmax1xo2.cjs} +0 -52
  132. package/dist/{index-S6qdsw3U.d.mts → index-BKBU3KSE.d.mts} +9 -23
  133. package/dist/{index-B3eh9Z-Q.d.cts → index-BgZbDm41.d.cts} +6 -1
  134. package/dist/{index-B3eh9Z-Q.d.mts → index-BgZbDm41.d.mts} +6 -1
  135. package/dist/{index-G2dwQO5K.d.cts → index-C4ndicLs.d.cts} +9 -23
  136. package/dist/{query-C6GwPFXA.d.mts → query-9J5wmu64.d.mts} +12 -33
  137. package/dist/{query-B_0RzvVW.cjs → query-B-6-qAuN.cjs} +12 -11
  138. package/dist/{query-CZWKfQ2W.d.mts → query-BOv5YhYc.d.cts} +16 -26
  139. package/dist/{query-0Z9KdoGa.d.mts → query-BPwlZCZP.d.cts} +14 -32
  140. package/dist/{query-Db1jwzou.d.cts → query-BQkvCQDy.d.mts} +16 -26
  141. package/dist/{query-Du84-6vd.mjs → query-B_Kr4diZ.mjs} +1 -1
  142. package/dist/{query-DxEOf4Ya.d.cts → query-BdS6AzQM.d.mts} +27 -79
  143. package/dist/{query-DAmB2_nm.d.cts → query-BiM_LW7b.d.cts} +12 -33
  144. package/dist/{query-Bi8_XzuT.mjs → query-BkrbXapq.mjs} +2 -1
  145. package/dist/{query-BjiGq9-J.cjs → query-C1EUVVMT.cjs} +27 -26
  146. package/dist/{query-CZV-Qu8U.mjs → query-CQEN_HJN.mjs} +2 -1
  147. package/dist/{query-CJTbiRV2.mjs → query-CSOBMIJi.mjs} +2 -1
  148. package/dist/{query-Dzx1W_xi.cjs → query-CTqyKcbH.cjs} +11 -10
  149. package/dist/{query-X_l9YFS6.d.mts → query-CbCFSDNP.d.cts} +12 -27
  150. package/dist/{query-F1Pi5Frs.d.mts → query-Ck2SJ88F.d.cts} +9 -8
  151. package/dist/{query-gZEGybi3.d.cts → query-DHuJnqmE.d.mts} +14 -32
  152. package/dist/{query-hvHQxwdK.d.mts → query-DIQPfsSq.d.cts} +6 -22
  153. package/dist/{query-ohFZ5p3e.d.cts → query-DQvrkaL2.d.mts} +6 -22
  154. package/dist/{query-Ck0NC_9l.cjs → query-D_xMsBEz.cjs} +11 -10
  155. package/dist/{query-CEvYGQyI.d.cts → query-DlpZHcIM.d.mts} +12 -27
  156. package/dist/{query-BGz5Dj7o.d.cts → query-DzgCwtIj.d.mts} +9 -8
  157. package/dist/{query-C-G04KqP.d.mts → query-PKg23GyY.d.cts} +27 -79
  158. package/dist/{query-DV68iZaG.mjs → query-k67TaoJs.mjs} +2 -1
  159. package/dist/{query-CMOLb-qs.cjs → query-okrI1jn4.cjs} +8 -8
  160. package/dist/string-By4lqNB3.cjs +53 -0
  161. package/dist/string-CHEFvHQa.mjs +36 -0
  162. package/dist/utilities/index.d.cts +1 -1
  163. package/dist/utilities/index.d.mts +1 -1
  164. package/package.json +1 -1
  165. package/dist/index-Bk5hIBoB.d.cts +0 -108
  166. package/dist/index-Bk5hIBoB.d.mts +0 -108
  167. package/dist/{document-D-6H7hBf.cjs → document-C5i7ol4r.cjs} +8 -8
@@ -1,26 +1,26 @@
1
- import { T as StrapiStrictFilterObjectSchema, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, r as StringFilter, y as DateTimeFilter } from "./index-B3eh9Z-Q.cjs";
1
+ import { E as StrapiStrictFilterObjectSchema, T as StrapiLogicalFilter, d as DocumentIdFilter, n as LongStringFilter, p as IdFilter, r as StringFilter, y as DateTimeFilter } from "./index-BgZbDm41.mjs";
2
2
  import * as v from "valibot";
3
3
 
4
4
  //#region src/entities/up-role/query.d.ts
5
5
  declare const FilterRoleType: StrapiStrictFilterObjectSchema<{
6
6
  readonly $notNull: v.LiteralSchema<true, undefined>;
7
7
  readonly $null: v.LiteralSchema<true, undefined>;
8
- readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("client" | "manager" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
9
- readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("client" | "manager" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
8
+ readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("manager" | "client" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
9
+ readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("manager" | "client" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
10
10
  readonly $eq: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
11
11
  readonly $ne: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
12
12
  } & {
13
13
  readonly $not: StrapiStrictFilterObjectSchema<{
14
14
  readonly $notNull: v.LiteralSchema<true, undefined>;
15
15
  readonly $null: v.LiteralSchema<true, undefined>;
16
- readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("client" | "manager" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
17
- readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("client" | "manager" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
16
+ readonly $in: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("manager" | "client" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
17
+ readonly $notIn: v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>, undefined>, v.MinLengthAction<("manager" | "client" | "employee" | "authenticated" | "public")[], 1, undefined>]>;
18
18
  readonly $eq: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
19
19
  readonly $ne: v.PicklistSchema<readonly ["authenticated", "public", "employee", "manager", "client"], undefined>;
20
20
  }>;
21
21
  }>;
22
22
  type FilterRoleType = v.InferOutput<typeof FilterRoleType>;
23
- declare const FilterStrapiRoles: v.GenericSchema<{
23
+ type FilterStrapiRolesFields = {
24
24
  id?: IdFilter;
25
25
  documentId?: DocumentIdFilter;
26
26
  createdAt?: DateTimeFilter;
@@ -28,7 +28,8 @@ declare const FilterStrapiRoles: v.GenericSchema<{
28
28
  type?: FilterRoleType;
29
29
  name?: StringFilter;
30
30
  description?: LongStringFilter;
31
- }>;
32
- type FilterStrapiRoles = v.InferOutput<typeof FilterStrapiRoles>;
31
+ };
32
+ type FilterStrapiRoles = StrapiLogicalFilter<FilterStrapiRolesFields>;
33
+ declare const FilterStrapiRoles: v.GenericSchema<FilterStrapiRoles>;
33
34
  //#endregion
34
35
  export { FilterStrapiRoles as n, FilterRoleType as t };
@@ -1,9 +1,9 @@
1
- import { C as BooleanFilter, d as DocumentIdFilter, h as SlugFilter, n as LongStringFilter, p as IdFilter, r as StringFilter, y as DateTimeFilter } from "./index-B3eh9Z-Q.mjs";
2
- import { n as FilterStrapiClients } from "./query-hvHQxwdK.mjs";
1
+ import { C as BooleanFilter, T as StrapiLogicalFilter, d as DocumentIdFilter, h as SlugFilter, n as LongStringFilter, p as IdFilter, r as StringFilter, y as DateTimeFilter } from "./index-BgZbDm41.cjs";
2
+ import { n as FilterStrapiClients } from "./query-DIQPfsSq.cjs";
3
3
  import * as v from "valibot";
4
4
 
5
5
  //#region src/entities/media-creative-format/query.d.ts
6
- declare const FilterStrapiMediaCreativeFormats: v.GenericSchema<{
6
+ type FilterStrapiMediaCreativeFormatsFields = {
7
7
  id?: IdFilter;
8
8
  documentId?: DocumentIdFilter;
9
9
  createdAt?: DateTimeFilter;
@@ -14,29 +14,19 @@ declare const FilterStrapiMediaCreativeFormats: v.GenericSchema<{
14
14
  is_universal?: BooleanFilter;
15
15
  description?: LongStringFilter;
16
16
  media_content_types?: FilterStrapiMediaContentTypes;
17
- }>;
18
- type FilterStrapiMediaCreativeFormats = v.InferOutput<typeof FilterStrapiMediaCreativeFormats>;
17
+ };
18
+ type FilterStrapiMediaCreativeFormats = StrapiLogicalFilter<FilterStrapiMediaCreativeFormatsFields>;
19
+ declare const FilterStrapiMediaCreativeFormats: v.GenericSchema<FilterStrapiMediaCreativeFormats>;
19
20
  declare const QueryStrapiSearchMediaCreativeFormats: v.ObjectSchema<{
20
21
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
21
22
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
22
23
  readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
23
- readonly f: v.OptionalSchema<v.GenericSchema<{
24
- id?: IdFilter;
25
- documentId?: DocumentIdFilter;
26
- createdAt?: DateTimeFilter;
27
- updatedAt?: DateTimeFilter;
28
- title?: StringFilter;
29
- slug?: SlugFilter;
30
- is_active?: BooleanFilter;
31
- is_universal?: BooleanFilter;
32
- description?: LongStringFilter;
33
- media_content_types?: FilterStrapiMediaContentTypes;
34
- }>, undefined>;
24
+ readonly f: v.OptionalSchema<v.GenericSchema<FilterStrapiMediaCreativeFormats>, undefined>;
35
25
  }, undefined>;
36
26
  type QueryStrapiSearchMediaCreativeFormats = v.InferOutput<typeof QueryStrapiSearchMediaCreativeFormats>;
37
27
  //#endregion
38
28
  //#region src/entities/media-content-type/query.d.ts
39
- declare const FilterStrapiMediaContentTypes: v.GenericSchema<{
29
+ type FilterStrapiMediaContentTypesFields = {
40
30
  id?: IdFilter;
41
31
  documentId?: DocumentIdFilter;
42
32
  createdAt?: DateTimeFilter;
@@ -48,30 +38,19 @@ declare const FilterStrapiMediaContentTypes: v.GenericSchema<{
48
38
  is_paid_media?: BooleanFilter;
49
39
  media_platforms?: FilterStrapiMediaPlatforms;
50
40
  media_creative_formats?: FilterStrapiMediaCreativeFormats;
51
- }>;
52
- type FilterStrapiMediaContentTypes = v.InferOutput<typeof FilterStrapiMediaContentTypes>;
41
+ };
42
+ type FilterStrapiMediaContentTypes = StrapiLogicalFilter<FilterStrapiMediaContentTypesFields>;
43
+ declare const FilterStrapiMediaContentTypes: v.GenericSchema<FilterStrapiMediaContentTypes>;
53
44
  declare const QueryStrapiSearchMediaContentTypes: v.ObjectSchema<{
54
45
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
55
46
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
56
47
  readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
57
- readonly f: v.OptionalSchema<v.GenericSchema<{
58
- id?: IdFilter;
59
- documentId?: DocumentIdFilter;
60
- createdAt?: DateTimeFilter;
61
- updatedAt?: DateTimeFilter;
62
- title?: StringFilter;
63
- slug?: SlugFilter;
64
- is_active?: BooleanFilter;
65
- is_organic_social?: BooleanFilter;
66
- is_paid_media?: BooleanFilter;
67
- media_platforms?: FilterStrapiMediaPlatforms;
68
- media_creative_formats?: FilterStrapiMediaCreativeFormats;
69
- }>, undefined>;
48
+ readonly f: v.OptionalSchema<v.GenericSchema<FilterStrapiMediaContentTypes>, undefined>;
70
49
  }, undefined>;
71
50
  type QueryStrapiSearchMediaContentTypes = v.InferOutput<typeof QueryStrapiSearchMediaContentTypes>;
72
51
  //#endregion
73
52
  //#region src/entities/media-medium/query.d.ts
74
- declare const FilterStrapiMediaMediums: v.GenericSchema<{
53
+ type FilterStrapiMediaMediumsFields = {
75
54
  id?: IdFilter;
76
55
  documentId?: DocumentIdFilter;
77
56
  createdAt?: DateTimeFilter;
@@ -82,29 +61,19 @@ declare const FilterStrapiMediaMediums: v.GenericSchema<{
82
61
  is_organic_social?: BooleanFilter;
83
62
  is_paid_media?: BooleanFilter;
84
63
  media_platforms?: FilterStrapiMediaPlatforms;
85
- }>;
86
- type FilterStrapiMediaMediums = v.InferOutput<typeof FilterStrapiMediaMediums>;
64
+ };
65
+ type FilterStrapiMediaMediums = StrapiLogicalFilter<FilterStrapiMediaMediumsFields>;
66
+ declare const FilterStrapiMediaMediums: v.GenericSchema<FilterStrapiMediaMediums>;
87
67
  declare const QueryStrapiSearchMediaMediums: v.ObjectSchema<{
88
68
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
89
69
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
90
70
  readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
91
- readonly f: v.OptionalSchema<v.GenericSchema<{
92
- id?: IdFilter;
93
- documentId?: DocumentIdFilter;
94
- createdAt?: DateTimeFilter;
95
- updatedAt?: DateTimeFilter;
96
- title?: StringFilter;
97
- slug?: SlugFilter;
98
- is_active?: BooleanFilter;
99
- is_organic_social?: BooleanFilter;
100
- is_paid_media?: BooleanFilter;
101
- media_platforms?: FilterStrapiMediaPlatforms;
102
- }>, undefined>;
71
+ readonly f: v.OptionalSchema<v.GenericSchema<FilterStrapiMediaMediums>, undefined>;
103
72
  }, undefined>;
104
73
  type QueryStrapiSearchMediaMediums = v.InferOutput<typeof QueryStrapiSearchMediaMediums>;
105
74
  //#endregion
106
75
  //#region src/entities/media-platform/query.d.ts
107
- declare const FilterStrapiMediaPlatforms: v.GenericSchema<{
76
+ type FilterStrapiMediaPlatformsFields = {
108
77
  id?: IdFilter;
109
78
  documentId?: DocumentIdFilter;
110
79
  createdAt?: DateTimeFilter;
@@ -118,32 +87,19 @@ declare const FilterStrapiMediaPlatforms: v.GenericSchema<{
118
87
  clients?: FilterStrapiClientMediaPlatforms;
119
88
  media_content_types?: FilterStrapiMediaContentTypes;
120
89
  media_mediums?: FilterStrapiMediaMediums;
121
- }>;
122
- type FilterStrapiMediaPlatforms = v.InferOutput<typeof FilterStrapiMediaPlatforms>;
90
+ };
91
+ type FilterStrapiMediaPlatforms = StrapiLogicalFilter<FilterStrapiMediaPlatformsFields>;
92
+ declare const FilterStrapiMediaPlatforms: v.GenericSchema<FilterStrapiMediaPlatforms>;
123
93
  declare const QueryStrapiSearchMediaPlatforms: v.ObjectSchema<{
124
94
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
125
95
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
126
96
  readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
127
- readonly f: v.OptionalSchema<v.GenericSchema<{
128
- id?: IdFilter;
129
- documentId?: DocumentIdFilter;
130
- createdAt?: DateTimeFilter;
131
- updatedAt?: DateTimeFilter;
132
- title?: StringFilter;
133
- slug?: SlugFilter;
134
- utm_key?: SlugFilter;
135
- is_active?: BooleanFilter;
136
- is_organic_social?: BooleanFilter;
137
- is_paid_media?: BooleanFilter;
138
- clients?: FilterStrapiClientMediaPlatforms;
139
- media_content_types?: FilterStrapiMediaContentTypes;
140
- media_mediums?: FilterStrapiMediaMediums;
141
- }>, undefined>;
97
+ readonly f: v.OptionalSchema<v.GenericSchema<FilterStrapiMediaPlatforms>, undefined>;
142
98
  }, undefined>;
143
99
  type QueryStrapiSearchMediaPlatforms = v.InferOutput<typeof QueryStrapiSearchMediaPlatforms>;
144
100
  //#endregion
145
101
  //#region src/entities/client-media-platform/query.d.ts
146
- declare const FilterStrapiClientMediaPlatforms: v.GenericSchema<{
102
+ type FilterStrapiClientMediaPlatformsFields = {
147
103
  id?: IdFilter;
148
104
  documentId?: DocumentIdFilter;
149
105
  createdAt?: DateTimeFilter;
@@ -152,22 +108,14 @@ declare const FilterStrapiClientMediaPlatforms: v.GenericSchema<{
152
108
  is_active?: BooleanFilter;
153
109
  client?: FilterStrapiClients;
154
110
  media_platform?: FilterStrapiMediaPlatforms;
155
- }>;
156
- type FilterStrapiClientMediaPlatforms = v.InferOutput<typeof FilterStrapiClientMediaPlatforms>;
111
+ };
112
+ type FilterStrapiClientMediaPlatforms = StrapiLogicalFilter<FilterStrapiClientMediaPlatformsFields>;
113
+ declare const FilterStrapiClientMediaPlatforms: v.GenericSchema<FilterStrapiClientMediaPlatforms>;
157
114
  declare const QueryStrapiSearchClientMediaPlatforms: v.ObjectSchema<{
158
115
  readonly page: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, undefined>;
159
116
  readonly size: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
160
117
  readonly sort: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, undefined>, v.SchemaWithPipe<readonly [v.CustomSchema<`${string}:asc` | `${string}:desc`, undefined>, v.TransformAction<`${string}:asc` | `${string}:desc`, (`${string}:asc` | `${string}:desc`)[]>]>], undefined>, undefined>;
161
- readonly f: v.OptionalSchema<v.GenericSchema<{
162
- id?: IdFilter;
163
- documentId?: DocumentIdFilter;
164
- createdAt?: DateTimeFilter;
165
- updatedAt?: DateTimeFilter;
166
- url?: LongStringFilter;
167
- is_active?: BooleanFilter;
168
- client?: FilterStrapiClients;
169
- media_platform?: FilterStrapiMediaPlatforms;
170
- }>, undefined>;
118
+ readonly f: v.OptionalSchema<v.GenericSchema<FilterStrapiClientMediaPlatforms>, undefined>;
171
119
  }, undefined>;
172
120
  type QueryStrapiSearchClientMediaPlatforms = v.InferOutput<typeof QueryStrapiSearchClientMediaPlatforms>;
173
121
  //#endregion
@@ -1,6 +1,7 @@
1
1
  import { t as createStrapiFilterSchema } from "./logical-operators-C0-wSK0P.mjs";
2
- import { _ as DateTimeFilter, c as SlugFilter, i as DocumentIdFilter, n as LongStringFilter, o as IdFilter, r as StringFilter } from "./string-BzuFgUlq.mjs";
2
+ import { n as LongStringFilter, r as StringFilter } from "./string-CHEFvHQa.mjs";
3
3
  import { t as BooleanFilter } from "./boolean-cJxcC8gC.mjs";
4
+ import { a as SlugFilter, m as DateTimeFilter, r as IdFilter, t as DocumentIdFilter } from "./identifier-CXlBnKdk.mjs";
4
5
  import { n as VSize, t as VPage } from "./pagination-CK-mJT5q.mjs";
5
6
  import { t as QuerySortValues } from "./sort-FYsWXlaD.mjs";
6
7
  import { FilterStrapiClients } from "./entities/client/query.mjs";
@@ -1,8 +1,8 @@
1
1
  const require_chunk = require("./chunk-D6vf50IK.cjs");
2
2
  const require_logical_operators = require("./logical-operators-Bku8NPDs.cjs");
3
- const require_string = require("./string-CmrQCAO3.cjs");
3
+ const require_identifier = require("./identifier-Dmax1xo2.cjs");
4
4
  const require_relationships = require("./relationships-BjJkIfbK.cjs");
5
- const require_string$1 = require("./string-AHrZ--r_.cjs");
5
+ const require_string = require("./string-AHrZ--r_.cjs");
6
6
  const require_email = require("./email-dsbWKuhH.cjs");
7
7
  const require_pagination = require("./pagination-DhAgQr7d.cjs");
8
8
  const require_sort = require("./sort-CYllFl6q.cjs");
@@ -11,10 +11,10 @@ let valibot = require("valibot");
11
11
  valibot = require_chunk.__toESM(valibot, 1);
12
12
  //#region src/base/filters.ts
13
13
  const FilterStrapiBase = require_logical_operators.createStrapiFilterSchema({
14
- id: require_string.IdFilter,
15
- documentId: require_string.DocumentIdFilter,
16
- createdAt: require_string.DateTimeFilter,
17
- updatedAt: require_string.DateTimeFilter
14
+ id: require_identifier.IdFilter,
15
+ documentId: require_identifier.DocumentIdFilter,
16
+ createdAt: require_identifier.DateTimeFilter,
17
+ updatedAt: require_identifier.DateTimeFilter
18
18
  });
19
19
  //#endregion
20
20
  //#region src/base/pagination.ts
@@ -29,7 +29,7 @@ const QueryStrapiPaginated = valibot.object({
29
29
  const QueryStrapiById = valibot.object({ id: valibot.number() });
30
30
  const QueryStrapiByDocumentId = valibot.object({ documentId: require_relationships.AssociateOneEntity });
31
31
  const QueryStrapiBySlug = valibot.object({
32
- slug: require_string$1.VStringShort(),
32
+ slug: require_string.VStringShort(),
33
33
  ...QueryStrapiPaginated.entries
34
34
  });
35
35
  const QueryStrapiByEmail = valibot.object({
@@ -41,7 +41,7 @@ const QueryStrapiByPhone = valibot.object({
41
41
  ...QueryStrapiPaginated.entries
42
42
  });
43
43
  const QueryStrapiByName = valibot.object({
44
- name: require_string$1.VStringShort(),
44
+ name: require_string.VStringShort(),
45
45
  ...QueryStrapiPaginated.entries
46
46
  });
47
47
  //#endregion
@@ -0,0 +1,53 @@
1
+ const require_null_operators = require("./null-operators-CyK5Nxn3.cjs");
2
+ const require_limits = require("./limits-Drbhufdn.cjs");
3
+ const require_string = require("./string-AHrZ--r_.cjs");
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 = require_null_operators.createStrapiFieldOperatorSchema({
18
+ ...require_null_operators.createStrapiEqualityOperatorEntries(require_string.VStringMax()),
19
+ ...require_null_operators.createStrapiCaseInsensitiveEqualityOperatorEntries(require_string.VStringMax()),
20
+ ...createStrapiStringMatchingOperatorEntries(require_string.VStringMax()),
21
+ ...require_null_operators.StrapiNullOperatorEntries
22
+ });
23
+ const LongStringFilter = require_null_operators.createStrapiFieldOperatorSchema({
24
+ ...require_null_operators.createStrapiEqualityOperatorEntries(require_string.VStringMax(require_limits.LIMIT_LONG_STRING_MAX_LENGTH)),
25
+ ...require_null_operators.createStrapiCaseInsensitiveEqualityOperatorEntries(require_string.VStringMax(require_limits.LIMIT_LONG_STRING_MAX_LENGTH)),
26
+ ...createStrapiStringMatchingOperatorEntries(require_string.VStringMax(require_limits.LIMIT_LONG_STRING_MAX_LENGTH)),
27
+ ...require_null_operators.StrapiNullOperatorEntries
28
+ });
29
+ const ExactStringFilter = require_null_operators.createStrapiFieldOperatorSchema({
30
+ ...require_null_operators.createStrapiEqualityOperatorEntries(require_string.VStringMax()),
31
+ ...require_null_operators.createStrapiCaseInsensitiveEqualityOperatorEntries(require_string.VStringMax()),
32
+ ...require_null_operators.createStrapiArrayMembershipOperatorEntries(require_string.VStringMax()),
33
+ ...require_null_operators.StrapiNullOperatorEntries
34
+ });
35
+ //#endregion
36
+ Object.defineProperty(exports, "ExactStringFilter", {
37
+ enumerable: true,
38
+ get: function() {
39
+ return ExactStringFilter;
40
+ }
41
+ });
42
+ Object.defineProperty(exports, "LongStringFilter", {
43
+ enumerable: true,
44
+ get: function() {
45
+ return LongStringFilter;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "StringFilter", {
49
+ enumerable: true,
50
+ get: function() {
51
+ return StringFilter;
52
+ }
53
+ });
@@ -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-G2dwQO5K.cjs";
1
+ import { D as StrapiAttributeErrorResponse, k as StrapiErrorResponse } from "../index-C4ndicLs.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-S6qdsw3U.mjs";
1
+ import { D as StrapiAttributeErrorResponse, k as StrapiErrorResponse } from "../index-BKBU3KSE.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.2",
4
+ "version": "0.0.288-alpha.4",
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() {