@getcommunity/gc-validators 0.0.228 → 0.0.229
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/{index-dSPeblY2.d.mts → index-CG8TZb-Q.d.mts} +56 -562
- package/dist/{index-CGqdsiYt.d.cts → index-ofl6yAKS.d.cts} +56 -562
- package/dist/index.cjs +0 -8
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/permissions.d.cts +1 -1
- package/dist/permissions.d.mts +1 -1
- package/dist/schemas.cjs +25 -57
- package/dist/schemas.cjs.map +1 -1
- package/dist/schemas.d.cts +2 -2
- package/dist/schemas.d.mts +2 -2
- package/dist/schemas.mjs +26 -50
- package/dist/schemas.mjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/utilities.d.cts +1 -1
- package/dist/utilities.d.mts +1 -1
- package/package.json +1 -1
package/dist/schemas.cjs
CHANGED
|
@@ -125,32 +125,8 @@ const QueryStrapiSearchBlogPostsBySlug = valibot.object({
|
|
|
125
125
|
});
|
|
126
126
|
//#endregion
|
|
127
127
|
//#region src/schemas/core-relations.schemas.ts
|
|
128
|
-
const
|
|
129
|
-
const
|
|
130
|
-
const SAssociateConnectOneEntity = valibot.object({ connect: SEntityRelationString });
|
|
131
|
-
const SAssociateDisonnectOneEntity = valibot.object({ disconnect: SEntityRelationString });
|
|
132
|
-
const SSetOneEntity = valibot.object({ set: SEntityRelationString });
|
|
133
|
-
const SAssociateOneEntity = valibot.union([
|
|
134
|
-
SAssociateConnectOneEntity,
|
|
135
|
-
SAssociateDisonnectOneEntity,
|
|
136
|
-
valibot.object({
|
|
137
|
-
connect: SEntityRelationString,
|
|
138
|
-
disconnect: SEntityRelationString
|
|
139
|
-
}),
|
|
140
|
-
SSetOneEntity
|
|
141
|
-
]);
|
|
142
|
-
const SAssociateConnectManyEntities = valibot.object({ connect: SEntityRelationArray });
|
|
143
|
-
const SAssociateDisconnectManyEntities = valibot.object({ disconnect: SEntityRelationArray });
|
|
144
|
-
const SSetManyEntities = valibot.object({ set: valibot.pipe(valibot.array(SEntityRelationString), valibot.minLength(1)) });
|
|
145
|
-
const SAssociateManyEntities = valibot.union([
|
|
146
|
-
SAssociateDisconnectManyEntities,
|
|
147
|
-
SAssociateConnectManyEntities,
|
|
148
|
-
valibot.object({
|
|
149
|
-
connect: SEntityRelationArray,
|
|
150
|
-
disconnect: SEntityRelationArray
|
|
151
|
-
}),
|
|
152
|
-
SSetManyEntities
|
|
153
|
-
]);
|
|
128
|
+
const SAssociateOneEntity = VStringMinMax(1, 255);
|
|
129
|
+
const SAssociateManyEntities = valibot.pipe(valibot.array(SAssociateOneEntity), valibot.minLength(1), valibot.maxLength(100));
|
|
154
130
|
const SQueryManyEntities = valibot.pipe(valibot.array(VStringMinMax(1, 255)), valibot.minLength(1));
|
|
155
131
|
//#endregion
|
|
156
132
|
//#region src/schemas/category.schemas.ts
|
|
@@ -178,7 +154,7 @@ const SUpdateCategoryDocument = valibot.object({
|
|
|
178
154
|
slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG))
|
|
179
155
|
});
|
|
180
156
|
const SUpdateCategoryDocumentRequest = valibot.object({
|
|
181
|
-
documentId:
|
|
157
|
+
documentId: SAssociateOneEntity,
|
|
182
158
|
data: SUpdateCategoryDocument
|
|
183
159
|
});
|
|
184
160
|
//#endregion
|
|
@@ -213,7 +189,7 @@ const SUpdateClientContentPillarDocument = valibot.object({
|
|
|
213
189
|
content_pillar: valibot.optional(SAssociateOneEntity)
|
|
214
190
|
});
|
|
215
191
|
const SUpdateClientContentPillarDocumentRequest = valibot.object({
|
|
216
|
-
documentId:
|
|
192
|
+
documentId: SAssociateOneEntity,
|
|
217
193
|
data: SUpdateClientContentPillarDocument
|
|
218
194
|
});
|
|
219
195
|
//#endregion
|
|
@@ -252,7 +228,7 @@ const SUpdateClientMediaPlatformDocument = valibot.object({
|
|
|
252
228
|
media_platform: valibot.optional(SAssociateOneEntity)
|
|
253
229
|
});
|
|
254
230
|
const SUpdateClientMediaPlatformDocumentRequest = valibot.object({
|
|
255
|
-
documentId:
|
|
231
|
+
documentId: SAssociateOneEntity,
|
|
256
232
|
data: SUpdateClientMediaPlatformDocument
|
|
257
233
|
});
|
|
258
234
|
//#endregion
|
|
@@ -393,7 +369,7 @@ const SUpdateClientReportDocument = valibot.object({
|
|
|
393
369
|
clients: valibot.optional(SAssociateManyEntities)
|
|
394
370
|
});
|
|
395
371
|
const SUpdateClientReportDocumentRequest = valibot.object({
|
|
396
|
-
documentId:
|
|
372
|
+
documentId: SAssociateOneEntity,
|
|
397
373
|
data: SUpdateClientReportDocument
|
|
398
374
|
});
|
|
399
375
|
//#endregion
|
|
@@ -425,7 +401,7 @@ const SUpdateClientStyleguideDocument = valibot.object({
|
|
|
425
401
|
client: valibot.optional(SAssociateOneEntity)
|
|
426
402
|
});
|
|
427
403
|
const SUpdateClientStyleguideDocumentRequest = valibot.object({
|
|
428
|
-
documentId:
|
|
404
|
+
documentId: SAssociateOneEntity,
|
|
429
405
|
data: SUpdateClientStyleguideDocument
|
|
430
406
|
});
|
|
431
407
|
//#endregion
|
|
@@ -459,12 +435,12 @@ const SCreateClientUserDocument = valibot.object({
|
|
|
459
435
|
});
|
|
460
436
|
const SUpdateClientUserDocument = valibot.object({ scopes: valibot.pipe(valibot.array(valibot.pipe(valibot.string(), valibot.picklist(require_permissions.CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), valibot.maxLength(require_permissions.CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available.")) });
|
|
461
437
|
const SUpdateClientUserDocumentRequest = valibot.object({
|
|
462
|
-
documentId:
|
|
438
|
+
documentId: SAssociateOneEntity,
|
|
463
439
|
data: SUpdateClientUserDocument
|
|
464
440
|
});
|
|
465
441
|
const SVerifyClientUserDocument = valibot.object({
|
|
466
|
-
client:
|
|
467
|
-
user:
|
|
442
|
+
client: SAssociateOneEntity,
|
|
443
|
+
user: SAssociateOneEntity
|
|
468
444
|
});
|
|
469
445
|
//#endregion
|
|
470
446
|
//#region src/schemas/client.schemas.ts
|
|
@@ -530,7 +506,7 @@ const SUpdateClientDocument = valibot.object({
|
|
|
530
506
|
classification: valibot.optional(valibot.pipe(valibot.array(valibot.picklist(require_constants.IsValidClientClassificationSelectOptions)), valibot.maxLength(require_constants.IsValidClientClassificationSelectOptions.length)))
|
|
531
507
|
});
|
|
532
508
|
const SUpdateClientDocumentRequest = valibot.object({
|
|
533
|
-
documentId:
|
|
509
|
+
documentId: SAssociateOneEntity,
|
|
534
510
|
data: SUpdateClientDocument
|
|
535
511
|
});
|
|
536
512
|
//#endregion
|
|
@@ -626,7 +602,7 @@ const SUpdateContentPillarDocument = valibot.object({
|
|
|
626
602
|
clients: valibot.optional(SAssociateManyEntities)
|
|
627
603
|
});
|
|
628
604
|
const SUpdateContentPillarDocumentRequest = valibot.object({
|
|
629
|
-
documentId:
|
|
605
|
+
documentId: SAssociateOneEntity,
|
|
630
606
|
data: SUpdateContentPillarDocument
|
|
631
607
|
});
|
|
632
608
|
//#endregion
|
|
@@ -700,7 +676,7 @@ const SUpdateGCFlyTourSnapDocument = valibot.object({
|
|
|
700
676
|
gcflytour: valibot.optional(SAssociateOneEntity)
|
|
701
677
|
});
|
|
702
678
|
const SUpdateGCFlyTourSnapDocumentRequest = valibot.object({
|
|
703
|
-
documentId:
|
|
679
|
+
documentId: SAssociateOneEntity,
|
|
704
680
|
data: SUpdateGCFlyTourSnapDocument
|
|
705
681
|
});
|
|
706
682
|
//#endregion
|
|
@@ -744,7 +720,7 @@ const SUpdateGCFlyTourDocument = valibot.object({
|
|
|
744
720
|
gcflytour_snaps: valibot.optional(SAssociateManyEntities)
|
|
745
721
|
});
|
|
746
722
|
const SUpdateGCFlyTourDocumentRequest = valibot.object({
|
|
747
|
-
documentId:
|
|
723
|
+
documentId: SAssociateOneEntity,
|
|
748
724
|
data: SUpdateGCFlyTourDocument
|
|
749
725
|
});
|
|
750
726
|
//#endregion
|
|
@@ -778,7 +754,7 @@ const SUpdateLeadDocument = valibot.object({
|
|
|
778
754
|
captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
|
|
779
755
|
});
|
|
780
756
|
const SUpdateLeadRequest = valibot.object({
|
|
781
|
-
documentId:
|
|
757
|
+
documentId: SAssociateOneEntity,
|
|
782
758
|
data: SUpdateLeadDocument
|
|
783
759
|
});
|
|
784
760
|
//#endregion
|
|
@@ -839,7 +815,7 @@ const SUpdateMediaContentTypeDocument = valibot.object({
|
|
|
839
815
|
media_creative_formats: valibot.optional(SAssociateManyEntities)
|
|
840
816
|
});
|
|
841
817
|
const SUpdateMediaContentTypeDocumentRequest = valibot.object({
|
|
842
|
-
documentId:
|
|
818
|
+
documentId: SAssociateOneEntity,
|
|
843
819
|
data: SUpdateMediaContentTypeDocument
|
|
844
820
|
});
|
|
845
821
|
//#endregion
|
|
@@ -884,7 +860,7 @@ const SUpdateMediaCreativeFormatDocument = valibot.object({
|
|
|
884
860
|
media_content_types: valibot.optional(SAssociateManyEntities)
|
|
885
861
|
});
|
|
886
862
|
const SUpdateMediaCreativeFormatDocumentRequest = valibot.object({
|
|
887
|
-
documentId:
|
|
863
|
+
documentId: SAssociateOneEntity,
|
|
888
864
|
data: SUpdateMediaCreativeFormatDocument
|
|
889
865
|
});
|
|
890
866
|
//#endregion
|
|
@@ -947,7 +923,7 @@ const SUpdateMediaPlatformDocument = valibot.object({
|
|
|
947
923
|
media_content_types: valibot.optional(SAssociateManyEntities)
|
|
948
924
|
});
|
|
949
925
|
const SUpdateMediaPlatformDocumentRequest = valibot.object({
|
|
950
|
-
documentId:
|
|
926
|
+
documentId: SAssociateOneEntity,
|
|
951
927
|
data: SUpdateMediaPlatformDocument
|
|
952
928
|
});
|
|
953
929
|
//#endregion
|
|
@@ -1021,7 +997,7 @@ const SUpdateNewsletterSignupDocument = valibot.object({
|
|
|
1021
997
|
captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
|
|
1022
998
|
});
|
|
1023
999
|
const SUpdateNewsletterSignupRequest = valibot.object({
|
|
1024
|
-
documentId:
|
|
1000
|
+
documentId: SAssociateOneEntity,
|
|
1025
1001
|
data: SUpdateNewsletterSignupDocument
|
|
1026
1002
|
});
|
|
1027
1003
|
//#endregion
|
|
@@ -1117,7 +1093,7 @@ const SUpdateResumeInfoDocument = valibot.object({
|
|
|
1117
1093
|
captcha: VStringMax(require_constants.LIMIT_LONG_STRING_MAX_LENGTH)
|
|
1118
1094
|
});
|
|
1119
1095
|
const SUpdateResumeInfoRequest = valibot.object({
|
|
1120
|
-
documentId:
|
|
1096
|
+
documentId: SAssociateOneEntity,
|
|
1121
1097
|
data: SUpdateResumeInfo
|
|
1122
1098
|
});
|
|
1123
1099
|
//#endregion
|
|
@@ -1181,7 +1157,7 @@ const SUpdateTagDocument = valibot.object({
|
|
|
1181
1157
|
slug: valibot.optional(VStringMinMaxRegex(1, 255, require_constants.REGEX_URL_SLUG, require_constants.ERROR_MESSAGE_REGEX_URL_SLUG))
|
|
1182
1158
|
});
|
|
1183
1159
|
const SUpdateTagDocumentRequest = valibot.object({
|
|
1184
|
-
documentId:
|
|
1160
|
+
documentId: SAssociateOneEntity,
|
|
1185
1161
|
data: SUpdateTagDocument
|
|
1186
1162
|
});
|
|
1187
1163
|
//#endregion
|
|
@@ -1305,21 +1281,21 @@ const QueryStrapiUrlRedirectsByFrom = valibot.object({ from: valibot.string() })
|
|
|
1305
1281
|
const SReadUserAccountById = valibot.object({ id: valibot.number() });
|
|
1306
1282
|
const SReadUserAccountByDocumentId = valibot.object({ documentId: VStringMinMax(1, 255) });
|
|
1307
1283
|
const SUpdateUserAccount = valibot.object({
|
|
1308
|
-
documentId:
|
|
1284
|
+
documentId: SAssociateOneEntity,
|
|
1309
1285
|
first_name: VStringMinMax(1, 255),
|
|
1310
1286
|
last_name: VStringMinMax(1, 255),
|
|
1311
1287
|
preferred_name: valibot.nullable(VStringMinMax(1, 255))
|
|
1312
1288
|
});
|
|
1313
1289
|
const SUpdateUserAccountFirstName = valibot.object({
|
|
1314
|
-
documentId:
|
|
1290
|
+
documentId: SAssociateOneEntity,
|
|
1315
1291
|
first_name: VStringMinMax(1, 255)
|
|
1316
1292
|
});
|
|
1317
1293
|
const SUpdateUserAccountLastName = valibot.object({
|
|
1318
|
-
documentId:
|
|
1294
|
+
documentId: SAssociateOneEntity,
|
|
1319
1295
|
last_name: VStringMinMax(1, 255)
|
|
1320
1296
|
});
|
|
1321
1297
|
const SUpdateUserAccountPreferredName = valibot.object({
|
|
1322
|
-
documentId:
|
|
1298
|
+
documentId: SAssociateOneEntity,
|
|
1323
1299
|
preferred_name: valibot.nullable(VStringMinMax(1, 255))
|
|
1324
1300
|
});
|
|
1325
1301
|
//#endregion
|
|
@@ -1657,10 +1633,6 @@ exports.QueryStrapiUrlRedirectsByFrom = QueryStrapiUrlRedirectsByFrom;
|
|
|
1657
1633
|
exports.QueryStrapiUsers = QueryStrapiUsers;
|
|
1658
1634
|
exports.QueryStrapiUsersByIdentifier = QueryStrapiUsersByIdentifier;
|
|
1659
1635
|
exports.SAssociateClientToClientProjectDocument = SAssociateClientToClientProjectDocument;
|
|
1660
|
-
exports.SAssociateConnectManyEntities = SAssociateConnectManyEntities;
|
|
1661
|
-
exports.SAssociateConnectOneEntity = SAssociateConnectOneEntity;
|
|
1662
|
-
exports.SAssociateDisconnectManyEntities = SAssociateDisconnectManyEntities;
|
|
1663
|
-
exports.SAssociateDisonnectOneEntity = SAssociateDisonnectOneEntity;
|
|
1664
1636
|
exports.SAssociateManyEntities = SAssociateManyEntities;
|
|
1665
1637
|
exports.SAssociateOneEntity = SAssociateOneEntity;
|
|
1666
1638
|
exports.SAuthConnectProviderConfirmation = SAuthConnectProviderConfirmation;
|
|
@@ -1697,8 +1669,6 @@ exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
|
|
|
1697
1669
|
exports.SCreateUtmTrackingLinkDocumentRequest = SCreateUtmTrackingLinkDocumentRequest;
|
|
1698
1670
|
exports.SCreateUtmTrackingLinkParts = SCreateUtmTrackingLinkParts;
|
|
1699
1671
|
exports.SDeleteCommentDocument = SDeleteCommentDocument;
|
|
1700
|
-
exports.SEntityRelationArray = SEntityRelationArray;
|
|
1701
|
-
exports.SEntityRelationString = SEntityRelationString;
|
|
1702
1672
|
exports.SForgotUserPassword = SForgotUserPassword;
|
|
1703
1673
|
exports.SFormCreateMultipleUtmTrackingLinkDocuments = SFormCreateMultipleUtmTrackingLinkDocuments;
|
|
1704
1674
|
exports.SLoginUser = SLoginUser;
|
|
@@ -1711,8 +1681,6 @@ exports.SRegisterUser = SRegisterUser;
|
|
|
1711
1681
|
exports.SReportCommentDocument = SReportCommentDocument;
|
|
1712
1682
|
exports.SRequestConfirmEmail = SRequestConfirmEmail;
|
|
1713
1683
|
exports.SResetUserPassword = SResetUserPassword;
|
|
1714
|
-
exports.SSetManyEntities = SSetManyEntities;
|
|
1715
|
-
exports.SSetOneEntity = SSetOneEntity;
|
|
1716
1684
|
exports.SUpdateCategoryDocument = SUpdateCategoryDocument;
|
|
1717
1685
|
exports.SUpdateCategoryDocumentRequest = SUpdateCategoryDocumentRequest;
|
|
1718
1686
|
exports.SUpdateClientContentPillarDocument = SUpdateClientContentPillarDocument;
|