@getcommunity/gc-validators 0.0.226 → 0.0.228

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/schemas.mjs CHANGED
@@ -121,6 +121,35 @@ const QueryStrapiSearchBlogPostsBySlug = v.object({
121
121
  sort: QuerySortBlogPosts
122
122
  });
123
123
  //#endregion
124
+ //#region src/schemas/core-relations.schemas.ts
125
+ const SEntityRelationString = VStringMinMax(1, 255);
126
+ const SEntityRelationArray = v.pipe(v.array(SEntityRelationString), v.minLength(1), v.maxLength(100));
127
+ const SAssociateConnectOneEntity = v.object({ connect: SEntityRelationString });
128
+ const SAssociateDisonnectOneEntity = v.object({ disconnect: SEntityRelationString });
129
+ const SSetOneEntity = v.object({ set: SEntityRelationString });
130
+ const SAssociateOneEntity = v.union([
131
+ SAssociateConnectOneEntity,
132
+ SAssociateDisonnectOneEntity,
133
+ v.object({
134
+ connect: SEntityRelationString,
135
+ disconnect: SEntityRelationString
136
+ }),
137
+ SSetOneEntity
138
+ ]);
139
+ const SAssociateConnectManyEntities = v.object({ connect: SEntityRelationArray });
140
+ const SAssociateDisconnectManyEntities = v.object({ disconnect: SEntityRelationArray });
141
+ const SSetManyEntities = v.object({ set: v.pipe(v.array(SEntityRelationString), v.minLength(1)) });
142
+ const SAssociateManyEntities = v.union([
143
+ SAssociateDisconnectManyEntities,
144
+ SAssociateConnectManyEntities,
145
+ v.object({
146
+ connect: SEntityRelationArray,
147
+ disconnect: SEntityRelationArray
148
+ }),
149
+ SSetManyEntities
150
+ ]);
151
+ const SQueryManyEntities = v.pipe(v.array(VStringMinMax(1, 255)), v.minLength(1));
152
+ //#endregion
124
153
  //#region src/schemas/category.schemas.ts
125
154
  const CategorySortKeys = [
126
155
  "id",
@@ -146,44 +175,10 @@ const SUpdateCategoryDocument = v.object({
146
175
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG))
147
176
  });
148
177
  const SUpdateCategoryDocumentRequest = v.object({
149
- documentId: VStringMinMax(1, 255),
178
+ documentId: SEntityRelationString,
150
179
  data: SUpdateCategoryDocument
151
180
  });
152
181
  //#endregion
153
- //#region src/schemas/core-relations.schemas.ts
154
- const SEntityRelationPositionBefore = v.object({ before: VStringMinMax(1, 255) });
155
- const SEntityRelationPositionAfter = v.object({ after: VStringMinMax(1, 255) });
156
- const SEntityRelationPositionStart = v.object({ start: v.boolean() });
157
- const SEntityRelationPositionEnd = v.object({ end: v.boolean() });
158
- const SEntityRelationPosition = v.fallback(v.pipe(v.union([
159
- SEntityRelationPositionBefore,
160
- SEntityRelationPositionAfter,
161
- SEntityRelationPositionStart,
162
- SEntityRelationPositionEnd
163
- ])), { end: true });
164
- const SEntityRelationObject = v.object({
165
- documentId: VStringMinMax(1, 255),
166
- position: v.optional(SEntityRelationPosition)
167
- });
168
- const SEntityRelation = v.union([VStringMinMax(1, 255), SEntityRelationObject]);
169
- const SConnectManyEntityRelation = v.object({ connect: v.pipe(v.array(SEntityRelation), v.minLength(1), v.maxLength(100)) });
170
- const SDisconnectManyEntityRelation = v.object({ disconnect: v.pipe(v.array(SEntityRelation), v.minLength(1), v.maxLength(100)) });
171
- const SSetManyEntityRelation = v.object({ set: v.pipe(v.array(SEntityRelation), v.minLength(1)) });
172
- const SConnectOneEntityRelation = v.object({ connect: v.union([VStringMinMax(1, 255), SEntityRelation]) });
173
- const SDisconnectOneEntityRelation = v.object({ disconnect: v.union([VStringMinMax(1, 255), SEntityRelation]) });
174
- const SSetOneEntityRelation = v.object({ set: v.union([VStringMinMax(1, 255), SEntityRelation]) });
175
- const SEntityRelationMany = v.union([
176
- SConnectManyEntityRelation,
177
- SDisconnectManyEntityRelation,
178
- SSetManyEntityRelation
179
- ]);
180
- const SEntityRelationOne = v.union([
181
- SConnectOneEntityRelation,
182
- SDisconnectOneEntityRelation,
183
- SSetOneEntityRelation
184
- ]);
185
- const SEntityRelationManyQuery = v.pipe(v.array(VStringMinMax(1, 255)), v.minLength(1));
186
- //#endregion
187
182
  //#region src/schemas/client-content-pillar.schemas.ts
188
183
  const ClientContentPillarSortKeys = [
189
184
  "id",
@@ -199,23 +194,23 @@ const QueryStrapiSearchClientContentPillars = v.object({
199
194
  size: VSize(100),
200
195
  is_active: v.optional(v.boolean()),
201
196
  client_id: v.optional(VStringMinMax(1, 255)),
202
- clients: v.optional(SEntityRelationManyQuery),
197
+ clients: v.optional(SQueryManyEntities),
203
198
  content_pillar_id: v.optional(VStringMinMax(1, 255)),
204
- content_pillars: v.optional(SEntityRelationManyQuery),
199
+ content_pillars: v.optional(SQueryManyEntities),
205
200
  sort: QuerySortClientContentPillars
206
201
  });
207
202
  const SCreateClientContentPillarDocument = v.object({
208
- client: SEntityRelationOne,
209
- content_pillar: SEntityRelationOne,
210
- is_active: v.optional(v.boolean())
203
+ is_active: v.optional(v.boolean()),
204
+ client: v.optional(SAssociateOneEntity),
205
+ content_pillar: v.optional(SAssociateOneEntity)
211
206
  });
212
207
  const SUpdateClientContentPillarDocument = v.object({
213
- client: v.optional(SEntityRelationOne),
214
- content_pillar: v.optional(SEntityRelationOne),
215
- is_active: v.optional(v.boolean())
208
+ is_active: v.optional(v.boolean()),
209
+ client: v.optional(SAssociateOneEntity),
210
+ content_pillar: v.optional(SAssociateOneEntity)
216
211
  });
217
212
  const SUpdateClientContentPillarDocumentRequest = v.object({
218
- documentId: VStringMinMax(1, 255),
213
+ documentId: SEntityRelationString,
219
214
  data: SUpdateClientContentPillarDocument
220
215
  });
221
216
  //#endregion
@@ -238,23 +233,23 @@ const QueryStrapiSearchClientMediaPlatforms = v.object({
238
233
  size: VSize(100),
239
234
  is_active: v.optional(v.boolean()),
240
235
  client_id: v.optional(VStringMinMax(1, 255)),
241
- clients: v.optional(SEntityRelationManyQuery),
236
+ clients: v.optional(SQueryManyEntities),
242
237
  media_platform_id: v.optional(VStringMinMax(1, 255)),
243
- media_platforms: v.optional(SEntityRelationManyQuery),
238
+ media_platforms: v.optional(SQueryManyEntities),
244
239
  sort: QuerySortClientMediaPlatforms
245
240
  });
246
241
  const SCreateClientMediaPlatformDocument = v.object({
247
- client: SEntityRelationOne,
248
- media_platform: SEntityRelationOne,
249
- is_active: v.boolean()
242
+ is_active: v.boolean(),
243
+ client: v.optional(SAssociateOneEntity),
244
+ media_platform: v.optional(SAssociateOneEntity)
250
245
  });
251
246
  const SUpdateClientMediaPlatformDocument = v.object({
252
- client: v.optional(SEntityRelationOne),
253
- media_platform: v.optional(SEntityRelationOne),
254
- is_active: v.optional(v.boolean())
247
+ is_active: v.optional(v.boolean()),
248
+ client: v.optional(SAssociateOneEntity),
249
+ media_platform: v.optional(SAssociateOneEntity)
255
250
  });
256
251
  const SUpdateClientMediaPlatformDocumentRequest = v.object({
257
- documentId: VStringMinMax(1, 255),
252
+ documentId: SEntityRelationString,
258
253
  data: SUpdateClientMediaPlatformDocument
259
254
  });
260
255
  //#endregion
@@ -373,7 +368,7 @@ const QueryStrapiSearchClientReports = v.object({
373
368
  is_external: v.optional(v.boolean()),
374
369
  is_hidden: v.optional(v.boolean()),
375
370
  client_id: v.optional(VStringMinMax(1, 255)),
376
- clients: v.optional(SEntityRelationManyQuery),
371
+ clients: v.optional(SQueryManyEntities),
377
372
  sort: QuerySortClientReports
378
373
  });
379
374
  const SCreateClientReportDocument = v.object({
@@ -383,7 +378,7 @@ const SCreateClientReportDocument = v.object({
383
378
  is_external: v.optional(v.boolean(), false),
384
379
  is_hidden: v.optional(v.boolean(), false),
385
380
  scopes: v.optional(v.pipe(v.array(v.string("Please provide a valid list of scopes."))), ["user:*"]),
386
- clients: v.optional(SEntityRelationMany)
381
+ clients: v.optional(SAssociateManyEntities)
387
382
  });
388
383
  const SUpdateClientReportDocument = v.object({
389
384
  title: v.optional(VStringMinMax(1, 255)),
@@ -392,10 +387,10 @@ const SUpdateClientReportDocument = v.object({
392
387
  is_external: v.optional(v.boolean()),
393
388
  is_hidden: v.optional(v.boolean()),
394
389
  scopes: v.optional(v.pipe(v.array(v.string("Please provide a valid list of scopes."))), ["user:*"]),
395
- clients: v.optional(SEntityRelationMany)
390
+ clients: v.optional(SAssociateManyEntities)
396
391
  });
397
392
  const SUpdateClientReportDocumentRequest = v.object({
398
- documentId: VStringMinMax(1, 255),
393
+ documentId: SEntityRelationString,
399
394
  data: SUpdateClientReportDocument
400
395
  });
401
396
  //#endregion
@@ -413,21 +408,21 @@ const QueryStrapiSearchClientStyleguide = v.object({
413
408
  title: v.optional(VStringMax()),
414
409
  is_active: v.optional(v.boolean()),
415
410
  client_id: v.optional(VStringMinMax(1, 255)),
416
- clients: v.optional(SEntityRelationManyQuery),
411
+ clients: v.optional(SQueryManyEntities),
417
412
  sort: QuerySortClientStyleguides
418
413
  });
419
414
  const SCreateClientStyleguideDocument = v.object({
420
415
  title: VStringMinMax(1, 255),
421
416
  is_active: v.optional(v.boolean(), true),
422
- client: v.optional(SEntityRelationOne)
417
+ client: v.optional(SAssociateOneEntity)
423
418
  });
424
419
  const SUpdateClientStyleguideDocument = v.object({
425
420
  title: v.optional(VStringMinMax(1, 255)),
426
421
  is_active: v.optional(v.boolean()),
427
- client: v.optional(SEntityRelationOne)
422
+ client: v.optional(SAssociateOneEntity)
428
423
  });
429
424
  const SUpdateClientStyleguideDocumentRequest = v.object({
430
- documentId: VStringMinMax(1, 255),
425
+ documentId: SEntityRelationString,
431
426
  data: SUpdateClientStyleguideDocument
432
427
  });
433
428
  //#endregion
@@ -455,18 +450,18 @@ const SQueryListClientUserDocuments = v.object({
455
450
  size: VSize(100)
456
451
  });
457
452
  const SCreateClientUserDocument = v.object({
458
- client: VStringMinMax(1, 255),
459
- user: VStringMinMax(1, 255),
453
+ client: v.optional(SAssociateOneEntity),
454
+ user: v.optional(SAssociateOneEntity),
460
455
  scopes: v.pipe(v.array(v.pipe(v.string(), v.picklist(CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), v.maxLength(CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available."))
461
456
  });
462
457
  const SUpdateClientUserDocument = v.object({ scopes: v.pipe(v.array(v.pipe(v.string(), v.picklist(CLIENT_ENTITY_SCOPES)), "Please provide a valid list of scopes."), v.maxLength(CLIENT_ENTITY_SCOPES.length, "You cannot provide more scopes than there are available.")) });
463
458
  const SUpdateClientUserDocumentRequest = v.object({
464
- documentId: VStringMinMax(1, 255),
459
+ documentId: SEntityRelationString,
465
460
  data: SUpdateClientUserDocument
466
461
  });
467
462
  const SVerifyClientUserDocument = v.object({
468
- client: VStringMinMax(1, 255),
469
- user: VStringMinMax(1, 255)
463
+ client: SEntityRelationString,
464
+ user: SEntityRelationString
470
465
  });
471
466
  //#endregion
472
467
  //#region src/schemas/client.schemas.ts
@@ -532,7 +527,7 @@ const SUpdateClientDocument = v.object({
532
527
  classification: v.optional(v.pipe(v.array(v.picklist(IsValidClientClassificationSelectOptions)), v.maxLength(IsValidClientClassificationSelectOptions.length)))
533
528
  });
534
529
  const SUpdateClientDocumentRequest = v.object({
535
- documentId: VStringMinMax(1, 255),
530
+ documentId: SEntityRelationString,
536
531
  data: SUpdateClientDocument
537
532
  });
538
533
  //#endregion
@@ -612,23 +607,23 @@ const QueryStrapiSearchContentPillars = v.object({
612
607
  size: VSize(LIMIT_PAGINATION_MAX_SIZE),
613
608
  title: v.optional(VStringMax()),
614
609
  slug: v.optional(VStringMax()),
615
- clients: v.optional(SEntityRelationManyQuery),
610
+ clients: v.optional(SQueryManyEntities),
616
611
  sort: QuerySortContentPillars
617
612
  });
618
613
  const SCreateContentPillarDocument = v.object({
619
614
  title: VStringMinMax(1, 255),
620
615
  slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
621
616
  description: v.optional(v.nullable(VStringMax(255))),
622
- client: v.optional(SEntityRelationOne)
617
+ clients: v.optional(SAssociateManyEntities)
623
618
  });
624
619
  const SUpdateContentPillarDocument = v.object({
625
620
  title: v.optional(VStringMinMax(1, 255)),
626
621
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
627
622
  description: v.optional(v.nullable(VStringMax(255))),
628
- client: v.optional(SEntityRelationOne)
623
+ clients: v.optional(SAssociateManyEntities)
629
624
  });
630
625
  const SUpdateContentPillarDocumentRequest = v.object({
631
- documentId: VStringMinMax(1, 255),
626
+ documentId: SEntityRelationString,
632
627
  data: SUpdateContentPillarDocument
633
628
  });
634
629
  //#endregion
@@ -682,7 +677,7 @@ const QueryStrapiSearchGCFlyTourSnaps = v.object({
682
677
  is_active: v.optional(v.boolean()),
683
678
  is_hidden: v.optional(v.boolean()),
684
679
  gcflytour: v.optional(VStringMinMax(1, 255)),
685
- gcflytours: v.optional(SEntityRelationManyQuery),
680
+ gcflytours: v.optional(SQueryManyEntities),
686
681
  sort: QuerySortGCFlyTourSnaps
687
682
  });
688
683
  const SCreateGCFlyTourSnapDocument = v.object({
@@ -691,7 +686,7 @@ const SCreateGCFlyTourSnapDocument = v.object({
691
686
  description: v.optional(v.nullable(VStringMax(255))),
692
687
  is_active: v.boolean(),
693
688
  is_hidden: v.boolean(),
694
- gcflytour: v.optional(SEntityRelationOne)
689
+ gcflytour: v.optional(SAssociateOneEntity)
695
690
  });
696
691
  const SUpdateGCFlyTourSnapDocument = v.object({
697
692
  title: v.optional(VStringMinMax(1, 255)),
@@ -699,10 +694,10 @@ const SUpdateGCFlyTourSnapDocument = v.object({
699
694
  description: v.optional(v.nullable(VStringMax(255))),
700
695
  is_active: v.optional(v.boolean()),
701
696
  is_hidden: v.optional(v.boolean()),
702
- gcflytour: v.optional(SEntityRelationOne)
697
+ gcflytour: v.optional(SAssociateOneEntity)
703
698
  });
704
699
  const SUpdateGCFlyTourSnapDocumentRequest = v.object({
705
- documentId: VStringMinMax(1, 255),
700
+ documentId: SEntityRelationString,
706
701
  data: SUpdateGCFlyTourSnapDocument
707
702
  });
708
703
  //#endregion
@@ -724,7 +719,7 @@ const QueryStrapiSearchGCFlyTours = v.object({
724
719
  slug: v.optional(VStringMax()),
725
720
  is_active: v.optional(v.boolean()),
726
721
  is_hidden: v.optional(v.boolean()),
727
- clients: v.optional(SEntityRelationManyQuery),
722
+ clients: v.optional(SQueryManyEntities),
728
723
  sort: QuerySortGCFlyTours
729
724
  });
730
725
  const SCreateGCFlyTourDocument = v.object({
@@ -733,8 +728,8 @@ const SCreateGCFlyTourDocument = v.object({
733
728
  description: v.optional(v.nullable(VStringMax(255))),
734
729
  is_active: v.boolean(),
735
730
  is_hidden: v.boolean(),
736
- clients: v.optional(SEntityRelationMany),
737
- gcflytour_snaps: v.optional(SEntityRelationMany)
731
+ clients: v.optional(SAssociateManyEntities),
732
+ gcflytour_snaps: v.optional(SAssociateManyEntities)
738
733
  });
739
734
  const SUpdateGCFlyTourDocument = v.object({
740
735
  title: v.optional(VStringMinMax(1, 255)),
@@ -742,11 +737,11 @@ const SUpdateGCFlyTourDocument = v.object({
742
737
  description: v.optional(v.nullable(VStringMax(255))),
743
738
  is_active: v.optional(v.boolean()),
744
739
  is_hidden: v.optional(v.boolean()),
745
- clients: v.optional(SEntityRelationMany),
746
- gcflytour_snaps: v.optional(SEntityRelationMany)
740
+ clients: v.optional(SAssociateManyEntities),
741
+ gcflytour_snaps: v.optional(SAssociateManyEntities)
747
742
  });
748
743
  const SUpdateGCFlyTourDocumentRequest = v.object({
749
- documentId: VStringMinMax(1, 255),
744
+ documentId: SEntityRelationString,
750
745
  data: SUpdateGCFlyTourDocument
751
746
  });
752
747
  //#endregion
@@ -780,7 +775,7 @@ const SUpdateLeadDocument = v.object({
780
775
  captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
781
776
  });
782
777
  const SUpdateLeadRequest = v.object({
783
- documentId: VStringMinMax(1, 255),
778
+ documentId: SEntityRelationString,
784
779
  data: SUpdateLeadDocument
785
780
  });
786
781
  //#endregion
@@ -816,8 +811,8 @@ const QueryStrapiSearchMediaContentTypes = v.object({
816
811
  is_active: v.optional(v.boolean()),
817
812
  is_organic_social: v.optional(v.boolean()),
818
813
  is_paid_media: v.optional(v.boolean()),
819
- media_platforms: v.optional(SEntityRelationManyQuery),
820
- media_creative_formats: v.optional(SEntityRelationManyQuery),
814
+ media_platforms: v.optional(SQueryManyEntities),
815
+ media_creative_formats: v.optional(SQueryManyEntities),
821
816
  sort: QuerySortMediaContentType
822
817
  });
823
818
  const SCreateMediaContentTypeDocument = v.object({
@@ -827,8 +822,8 @@ const SCreateMediaContentTypeDocument = v.object({
827
822
  is_organic_social: v.boolean(),
828
823
  is_paid_media: v.boolean(),
829
824
  description: v.optional(v.nullable(VStringMax(255))),
830
- media_platforms: v.optional(SEntityRelationMany),
831
- media_creative_formats: v.optional(SEntityRelationMany)
825
+ media_platforms: v.optional(SAssociateManyEntities),
826
+ media_creative_formats: v.optional(SAssociateManyEntities)
832
827
  });
833
828
  const SUpdateMediaContentTypeDocument = v.object({
834
829
  title: v.optional(VStringMinMax(1, 255)),
@@ -837,11 +832,11 @@ const SUpdateMediaContentTypeDocument = v.object({
837
832
  is_organic_social: v.optional(v.boolean()),
838
833
  is_paid_media: v.optional(v.boolean()),
839
834
  description: v.optional(v.nullable(VStringMax(255))),
840
- media_platforms: v.optional(SEntityRelationMany),
841
- media_creative_formats: v.optional(SEntityRelationMany)
835
+ media_platforms: v.optional(SAssociateManyEntities),
836
+ media_creative_formats: v.optional(SAssociateManyEntities)
842
837
  });
843
838
  const SUpdateMediaContentTypeDocumentRequest = v.object({
844
- documentId: VStringMinMax(1, 255),
839
+ documentId: SEntityRelationString,
845
840
  data: SUpdateMediaContentTypeDocument
846
841
  });
847
842
  //#endregion
@@ -868,7 +863,7 @@ const QueryStrapiSearchMediaCreativeFormats = v.object({
868
863
  title: v.optional(VStringMax()),
869
864
  slug: v.optional(VStringMax()),
870
865
  is_active: v.optional(v.boolean()),
871
- media_content_types: v.optional(SEntityRelationManyQuery),
866
+ media_content_types: v.optional(SQueryManyEntities),
872
867
  sort: QuerySortMediaCreativeFormat
873
868
  });
874
869
  const SCreateMediaCreativeFormatDocument = v.object({
@@ -876,17 +871,17 @@ const SCreateMediaCreativeFormatDocument = v.object({
876
871
  slug: v.pipe(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
877
872
  is_active: v.boolean(),
878
873
  description: v.optional(v.nullable(VStringMax(255))),
879
- media_content_types: v.optional(SEntityRelationMany)
874
+ media_content_types: v.optional(SAssociateManyEntities)
880
875
  });
881
876
  const SUpdateMediaCreativeFormatDocument = v.object({
882
877
  title: v.optional(VStringMinMax(1, 255)),
883
878
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
884
879
  is_active: v.optional(v.boolean()),
885
880
  description: v.optional(v.nullable(VStringMax(255))),
886
- media_content_types: v.optional(SEntityRelationMany)
881
+ media_content_types: v.optional(SAssociateManyEntities)
887
882
  });
888
883
  const SUpdateMediaCreativeFormatDocumentRequest = v.object({
889
- documentId: VStringMinMax(1, 255),
884
+ documentId: SEntityRelationString,
890
885
  data: SUpdateMediaCreativeFormatDocument
891
886
  });
892
887
  //#endregion
@@ -924,8 +919,8 @@ const QueryStrapiSearchMediaPlatforms = v.object({
924
919
  is_active: v.optional(v.boolean()),
925
920
  is_organic_social: v.optional(v.boolean()),
926
921
  is_paid_media: v.optional(v.boolean()),
927
- clients: v.optional(SEntityRelationManyQuery),
928
- media_content_types: v.optional(SEntityRelationManyQuery),
922
+ clients: v.optional(SQueryManyEntities),
923
+ media_content_types: v.optional(SQueryManyEntities),
929
924
  sort: QuerySortMediaPlatforms
930
925
  });
931
926
  const SCreateMediaPlatformDocument = v.object({
@@ -935,8 +930,8 @@ const SCreateMediaPlatformDocument = v.object({
935
930
  is_organic_social: v.boolean(),
936
931
  is_paid_media: v.boolean(),
937
932
  description: v.optional(v.nullable(VStringMax(255))),
938
- clients: v.optional(SEntityRelationMany),
939
- media_content_types: v.optional(SEntityRelationMany)
933
+ clients: v.optional(SAssociateManyEntities),
934
+ media_content_types: v.optional(SAssociateManyEntities)
940
935
  });
941
936
  const SUpdateMediaPlatformDocument = v.object({
942
937
  title: v.optional(VStringMinMax(1, 255)),
@@ -945,11 +940,11 @@ const SUpdateMediaPlatformDocument = v.object({
945
940
  is_organic_social: v.optional(v.boolean()),
946
941
  is_paid_media: v.optional(v.boolean()),
947
942
  description: v.optional(v.nullable(VStringMax(255))),
948
- clients: v.optional(SEntityRelationMany),
949
- media_content_types: v.optional(SEntityRelationMany)
943
+ clients: v.optional(SAssociateManyEntities),
944
+ media_content_types: v.optional(SAssociateManyEntities)
950
945
  });
951
946
  const SUpdateMediaPlatformDocumentRequest = v.object({
952
- documentId: VStringMinMax(1, 255),
947
+ documentId: SEntityRelationString,
953
948
  data: SUpdateMediaPlatformDocument
954
949
  });
955
950
  //#endregion
@@ -969,18 +964,18 @@ const QueryStrapiSearchMondayWorkspaces = v.object({
969
964
  size: VSize(LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE),
970
965
  title: v.optional(VStringMax()),
971
966
  workspace_id: v.optional(VStringMax()),
972
- clients: v.optional(SEntityRelationManyQuery),
967
+ clients: v.optional(SQueryManyEntities),
973
968
  sort: QuerySortMondayWorkspaces
974
969
  });
975
970
  const SCreateMondayWorkspaceDocument = v.object({
976
971
  title: VStringShort(),
977
972
  workspace_id: VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
978
- clients: v.optional(SEntityRelationMany)
973
+ clients: v.optional(SAssociateManyEntities)
979
974
  });
980
975
  const SUpdateMondayWorkspaceDocument = v.object({
981
976
  title: v.optional(VStringShort()),
982
977
  workspace_id: v.optional(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
983
- clients: v.optional(SEntityRelationMany)
978
+ clients: v.optional(SAssociateManyEntities)
984
979
  });
985
980
  const SUpdateMondayWorkspaceDocumentRequest = v.object({
986
981
  documentId: VStringShort(),
@@ -1023,7 +1018,7 @@ const SUpdateNewsletterSignupDocument = v.object({
1023
1018
  captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
1024
1019
  });
1025
1020
  const SUpdateNewsletterSignupRequest = v.object({
1026
- documentId: VStringMinMax(1, 255),
1021
+ documentId: SEntityRelationString,
1027
1022
  data: SUpdateNewsletterSignupDocument
1028
1023
  });
1029
1024
  //#endregion
@@ -1119,7 +1114,7 @@ const SUpdateResumeInfoDocument = v.object({
1119
1114
  captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
1120
1115
  });
1121
1116
  const SUpdateResumeInfoRequest = v.object({
1122
- documentId: VStringMinMax(1, 255),
1117
+ documentId: SEntityRelationString,
1123
1118
  data: SUpdateResumeInfo
1124
1119
  });
1125
1120
  //#endregion
@@ -1183,7 +1178,7 @@ const SUpdateTagDocument = v.object({
1183
1178
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG))
1184
1179
  });
1185
1180
  const SUpdateTagDocumentRequest = v.object({
1186
- documentId: VStringMinMax(1, 255),
1181
+ documentId: SEntityRelationString,
1187
1182
  data: SUpdateTagDocument
1188
1183
  });
1189
1184
  //#endregion
@@ -1307,21 +1302,21 @@ const QueryStrapiUrlRedirectsByFrom = v.object({ from: v.string() });
1307
1302
  const SReadUserAccountById = v.object({ id: v.number() });
1308
1303
  const SReadUserAccountByDocumentId = v.object({ documentId: VStringMinMax(1, 255) });
1309
1304
  const SUpdateUserAccount = v.object({
1310
- documentId: VStringMinMax(1, 255),
1305
+ documentId: SEntityRelationString,
1311
1306
  first_name: VStringMinMax(1, 255),
1312
1307
  last_name: VStringMinMax(1, 255),
1313
1308
  preferred_name: v.nullable(VStringMinMax(1, 255))
1314
1309
  });
1315
1310
  const SUpdateUserAccountFirstName = v.object({
1316
- documentId: VStringMinMax(1, 255),
1311
+ documentId: SEntityRelationString,
1317
1312
  first_name: VStringMinMax(1, 255)
1318
1313
  });
1319
1314
  const SUpdateUserAccountLastName = v.object({
1320
- documentId: VStringMinMax(1, 255),
1315
+ documentId: SEntityRelationString,
1321
1316
  last_name: VStringMinMax(1, 255)
1322
1317
  });
1323
1318
  const SUpdateUserAccountPreferredName = v.object({
1324
- documentId: VStringMinMax(1, 255),
1319
+ documentId: SEntityRelationString,
1325
1320
  preferred_name: v.nullable(VStringMinMax(1, 255))
1326
1321
  });
1327
1322
  //#endregion
@@ -1404,8 +1399,8 @@ const SUtmLinkBuilderPartCampaignDateOptions = [
1404
1399
  "no date"
1405
1400
  ];
1406
1401
  const SUtmLinkBuilderTableForm = v.object({
1407
- creator: VStringMinMax(1, 255),
1408
- client: VStringMinMax(1, 255),
1402
+ creator: v.optional(SAssociateOneEntity),
1403
+ client: v.optional(SAssociateOneEntity),
1409
1404
  url_destinations: v.pipe(v.array(v.object({ url: v.pipe(v.string(), v.trim(), v.url(ERROR_MESSAGE_INVALID_URL), v.check((input) => {
1410
1405
  if (input === "") return false;
1411
1406
  return input.indexOf("?") === -1;
@@ -1583,6 +1578,6 @@ const SUpdateUtmTrackingLinkDocumentRequest = v.object({
1583
1578
  data: SUpdateUtmTrackingLinkDocument
1584
1579
  });
1585
1580
  //#endregion
1586
- export { BlogPostSortKeys, CategorySortKeys, ClientContentPillarSortKeys, ClientMediaPlatformSortKeys, ClientProjectSortKeys, ClientReportSortKeys, ClientSortKeys, ClientStyleguideSortKeys, ClientUserSortKeys, ContentPillarSortKeys, EntitySortKeys, GCFlyTourSnapSortKeys, GCFlyTourSortKeys, MediaContentTypeSortKeys, MediaCreativeFormatSortKeys, MediaPlatformSortKeys, MondayWorkspaceSortKeys, QueryFilterStrapiComments, QuerySortBlogPosts, QuerySortCategories, QuerySortClientContentPillars, QuerySortClientMediaPlatforms, QuerySortClientProjects, QuerySortClientReports, QuerySortClientStyleguides, QuerySortClientUsers, QuerySortClients, QuerySortContentPillars, QuerySortEntities, QuerySortGCFlyTourSnaps, QuerySortGCFlyTours, QuerySortMediaContentType, QuerySortMediaCreativeFormat, QuerySortMediaPlatforms, QuerySortMondayWorkspaces, QuerySortStrapiComments, QuerySortTags, QuerySortTeamMembers, QuerySortTeamworkProjectHealth, QuerySortUrlRedirects, QuerySortUsers, QuerySortUtmTrackingLinks, QueryStrapiByDocumentId, QueryStrapiByEmail, QueryStrapiById, QueryStrapiByName, QueryStrapiByPhone, QueryStrapiBySlug, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, QueryStrapiPaginated, QueryStrapiPaginatedUrlRedirects, QueryStrapiSearchBlogPosts, QueryStrapiSearchBlogPostsBySlug, QueryStrapiSearchCategories, QueryStrapiSearchClientContentPillars, QueryStrapiSearchClientMediaPlatforms, QueryStrapiSearchClientProjects, QueryStrapiSearchClientReports, QueryStrapiSearchClientStyleguide, QueryStrapiSearchClients, QueryStrapiSearchContentPillars, QueryStrapiSearchGCFlyTourSnaps, QueryStrapiSearchGCFlyTours, QueryStrapiSearchMediaContentTypes, QueryStrapiSearchMediaCreativeFormats, QueryStrapiSearchMediaPlatforms, QueryStrapiSearchMondayWorkspaces, QueryStrapiSearchTags, QueryStrapiSearchTeamMembers, QueryStrapiSearchTeamworkProjectHealth, QueryStrapiSearchUtmTrackingLinks, QueryStrapiUrlRedirectsByFrom, QueryStrapiUsers, QueryStrapiUsersByIdentifier, SAssociateClientToClientProjectDocument, SAuthConnectProviderConfirmation, SAuthConnectProviderRedirectSearch, SAuthRawAccessToken, SChangePassword, SConnectManyEntityRelation, SConnectOneEntityRelation, SCreateCategoryDocument, SCreateClientContentPillarDocument, SCreateClientDocument, SCreateClientMediaPlatformDocument, SCreateClientProjectDocument, SCreateClientReportDocument, SCreateClientStyleguideDocument, SCreateClientUserDocument, SCreateCommentDocument, SCreateContentPillarDocument, SCreateGCFlyTourDocument, SCreateGCFlyTourSnapDocument, SCreateLeadDocument, SCreateMediaContentTypeDocument, SCreateMediaCreativeFormatDocument, SCreateMediaPlatformDocument, SCreateMondayWorkspaceDocument, SCreateMultipleStrapiMediaUploadDocument, SCreateNewsletterSignup, SCreateNewsletterSignupDocument, SCreateResume, SCreateResumeInfo, SCreateResumeInfoDocument, SCreateStrapiMediaUploadDocument, SCreateTagDocument, SCreateUserDocument, SCreateUtmTrackingLinkDocument, SCreateUtmTrackingLinkDocumentRequest, SCreateUtmTrackingLinkParts, SDeleteCommentDocument, SDisconnectManyEntityRelation, SDisconnectOneEntityRelation, SEntityRelation, SEntityRelationMany, SEntityRelationManyQuery, SEntityRelationOne, SForgotUserPassword, SFormCreateMultipleUtmTrackingLinkDocuments, SLoginUser, SQueryListClientUserDocuments, SReadUserAccountByDocumentId, SReadUserAccountById, SReadUtmTrackingLinkDocumentByUrl, SRegisterUser, SReportCommentDocument, SRequestConfirmEmail, SResetUserPassword, SSetManyEntityRelation, SSetOneEntityRelation, SUpdateCategoryDocument, SUpdateCategoryDocumentRequest, SUpdateClientContentPillarDocument, SUpdateClientContentPillarDocumentRequest, SUpdateClientDocument, SUpdateClientDocumentRequest, SUpdateClientMediaPlatformDocument, SUpdateClientMediaPlatformDocumentRequest, SUpdateClientProjectDocument, SUpdateClientProjectDocumentRequest, SUpdateClientReportDocument, SUpdateClientReportDocumentRequest, SUpdateClientStyleguideDocument, SUpdateClientStyleguideDocumentRequest, SUpdateClientUserDocument, SUpdateClientUserDocumentRequest, SUpdateCommentDocument, SUpdateContentPillarDocument, SUpdateContentPillarDocumentRequest, SUpdateGCFlyTourDocument, SUpdateGCFlyTourDocumentRequest, SUpdateGCFlyTourSnapDocument, SUpdateGCFlyTourSnapDocumentRequest, SUpdateLeadDocument, SUpdateLeadRequest, SUpdateMediaContentTypeDocument, SUpdateMediaContentTypeDocumentRequest, SUpdateMediaCreativeFormatDocument, SUpdateMediaCreativeFormatDocumentRequest, SUpdateMediaPlatformDocument, SUpdateMediaPlatformDocumentRequest, SUpdateMondayWorkspaceDocument, SUpdateMondayWorkspaceDocumentRequest, SUpdateNewsletterSignupDocument, SUpdateNewsletterSignupRequest, SUpdateResumeInfo, SUpdateResumeInfoDocument, SUpdateResumeInfoRequest, SUpdateStrapiMediaFileInfo, SUpdateTagDocument, SUpdateTagDocumentRequest, SUpdateTrendsLikes, SUpdateUserAccount, SUpdateUserAccountFirstName, SUpdateUserAccountLastName, SUpdateUserAccountPreferredName, SUpdateUtmTrackingLinkDocument, SUpdateUtmTrackingLinkDocumentRequest, SUserToken, SUtmLinkBuilderPartCampaignDateOptions, SUtmLinkBuilderTableForm, SVerifyClientUserDocument, SharpSpringSignUpToDownload, StrapiCommentSortKeys, TagSortKeys, TeamMemberSortKeys, TeamworkProjectHealthProjectStatusOptions, TeamworkProjectHealthSelectSortOptions, UrlRedirectSortKeys, UserSortKeys, UtmTrackingLinkSortKeys, VIntegerNullable, VNumberNullable, VPage, VSize, VString, VStringEmail, VStringLong, VStringLongNullable, VStringMax, VStringMaxRegex, VStringMinMax, VStringMinMaxRegex, VStringPhone, VStringPhoneNullable, VStringShort, VStringShortNullable, VStringSlug, VStringUrl, VStringUrlNoUtm, VStringUrlNullable, VStringUrlUtm, checkIsValidUrlList };
1581
+ export { BlogPostSortKeys, CategorySortKeys, ClientContentPillarSortKeys, ClientMediaPlatformSortKeys, ClientProjectSortKeys, ClientReportSortKeys, ClientSortKeys, ClientStyleguideSortKeys, ClientUserSortKeys, ContentPillarSortKeys, EntitySortKeys, GCFlyTourSnapSortKeys, GCFlyTourSortKeys, MediaContentTypeSortKeys, MediaCreativeFormatSortKeys, MediaPlatformSortKeys, MondayWorkspaceSortKeys, QueryFilterStrapiComments, QuerySortBlogPosts, QuerySortCategories, QuerySortClientContentPillars, QuerySortClientMediaPlatforms, QuerySortClientProjects, QuerySortClientReports, QuerySortClientStyleguides, QuerySortClientUsers, QuerySortClients, QuerySortContentPillars, QuerySortEntities, QuerySortGCFlyTourSnaps, QuerySortGCFlyTours, QuerySortMediaContentType, QuerySortMediaCreativeFormat, QuerySortMediaPlatforms, QuerySortMondayWorkspaces, QuerySortStrapiComments, QuerySortTags, QuerySortTeamMembers, QuerySortTeamworkProjectHealth, QuerySortUrlRedirects, QuerySortUsers, QuerySortUtmTrackingLinks, QueryStrapiByDocumentId, QueryStrapiByEmail, QueryStrapiById, QueryStrapiByName, QueryStrapiByPhone, QueryStrapiBySlug, QueryStrapiCommentsFlat, QueryStrapiCommentsInHeirarchy, QueryStrapiPaginated, QueryStrapiPaginatedUrlRedirects, QueryStrapiSearchBlogPosts, QueryStrapiSearchBlogPostsBySlug, QueryStrapiSearchCategories, QueryStrapiSearchClientContentPillars, QueryStrapiSearchClientMediaPlatforms, QueryStrapiSearchClientProjects, QueryStrapiSearchClientReports, QueryStrapiSearchClientStyleguide, QueryStrapiSearchClients, QueryStrapiSearchContentPillars, QueryStrapiSearchGCFlyTourSnaps, QueryStrapiSearchGCFlyTours, QueryStrapiSearchMediaContentTypes, QueryStrapiSearchMediaCreativeFormats, QueryStrapiSearchMediaPlatforms, QueryStrapiSearchMondayWorkspaces, QueryStrapiSearchTags, QueryStrapiSearchTeamMembers, QueryStrapiSearchTeamworkProjectHealth, QueryStrapiSearchUtmTrackingLinks, QueryStrapiUrlRedirectsByFrom, QueryStrapiUsers, QueryStrapiUsersByIdentifier, SAssociateClientToClientProjectDocument, SAssociateConnectManyEntities, SAssociateConnectOneEntity, SAssociateDisconnectManyEntities, SAssociateDisonnectOneEntity, SAssociateManyEntities, SAssociateOneEntity, SAuthConnectProviderConfirmation, SAuthConnectProviderRedirectSearch, SAuthRawAccessToken, SChangePassword, SCreateCategoryDocument, SCreateClientContentPillarDocument, SCreateClientDocument, SCreateClientMediaPlatformDocument, SCreateClientProjectDocument, SCreateClientReportDocument, SCreateClientStyleguideDocument, SCreateClientUserDocument, SCreateCommentDocument, SCreateContentPillarDocument, SCreateGCFlyTourDocument, SCreateGCFlyTourSnapDocument, SCreateLeadDocument, SCreateMediaContentTypeDocument, SCreateMediaCreativeFormatDocument, SCreateMediaPlatformDocument, SCreateMondayWorkspaceDocument, SCreateMultipleStrapiMediaUploadDocument, SCreateNewsletterSignup, SCreateNewsletterSignupDocument, SCreateResume, SCreateResumeInfo, SCreateResumeInfoDocument, SCreateStrapiMediaUploadDocument, SCreateTagDocument, SCreateUserDocument, SCreateUtmTrackingLinkDocument, SCreateUtmTrackingLinkDocumentRequest, SCreateUtmTrackingLinkParts, SDeleteCommentDocument, SEntityRelationArray, SEntityRelationString, SForgotUserPassword, SFormCreateMultipleUtmTrackingLinkDocuments, SLoginUser, SQueryListClientUserDocuments, SQueryManyEntities, SReadUserAccountByDocumentId, SReadUserAccountById, SReadUtmTrackingLinkDocumentByUrl, SRegisterUser, SReportCommentDocument, SRequestConfirmEmail, SResetUserPassword, SSetManyEntities, SSetOneEntity, SUpdateCategoryDocument, SUpdateCategoryDocumentRequest, SUpdateClientContentPillarDocument, SUpdateClientContentPillarDocumentRequest, SUpdateClientDocument, SUpdateClientDocumentRequest, SUpdateClientMediaPlatformDocument, SUpdateClientMediaPlatformDocumentRequest, SUpdateClientProjectDocument, SUpdateClientProjectDocumentRequest, SUpdateClientReportDocument, SUpdateClientReportDocumentRequest, SUpdateClientStyleguideDocument, SUpdateClientStyleguideDocumentRequest, SUpdateClientUserDocument, SUpdateClientUserDocumentRequest, SUpdateCommentDocument, SUpdateContentPillarDocument, SUpdateContentPillarDocumentRequest, SUpdateGCFlyTourDocument, SUpdateGCFlyTourDocumentRequest, SUpdateGCFlyTourSnapDocument, SUpdateGCFlyTourSnapDocumentRequest, SUpdateLeadDocument, SUpdateLeadRequest, SUpdateMediaContentTypeDocument, SUpdateMediaContentTypeDocumentRequest, SUpdateMediaCreativeFormatDocument, SUpdateMediaCreativeFormatDocumentRequest, SUpdateMediaPlatformDocument, SUpdateMediaPlatformDocumentRequest, SUpdateMondayWorkspaceDocument, SUpdateMondayWorkspaceDocumentRequest, SUpdateNewsletterSignupDocument, SUpdateNewsletterSignupRequest, SUpdateResumeInfo, SUpdateResumeInfoDocument, SUpdateResumeInfoRequest, SUpdateStrapiMediaFileInfo, SUpdateTagDocument, SUpdateTagDocumentRequest, SUpdateTrendsLikes, SUpdateUserAccount, SUpdateUserAccountFirstName, SUpdateUserAccountLastName, SUpdateUserAccountPreferredName, SUpdateUtmTrackingLinkDocument, SUpdateUtmTrackingLinkDocumentRequest, SUserToken, SUtmLinkBuilderPartCampaignDateOptions, SUtmLinkBuilderTableForm, SVerifyClientUserDocument, SharpSpringSignUpToDownload, StrapiCommentSortKeys, TagSortKeys, TeamMemberSortKeys, TeamworkProjectHealthProjectStatusOptions, TeamworkProjectHealthSelectSortOptions, UrlRedirectSortKeys, UserSortKeys, UtmTrackingLinkSortKeys, VIntegerNullable, VNumberNullable, VPage, VSize, VString, VStringEmail, VStringLong, VStringLongNullable, VStringMax, VStringMaxRegex, VStringMinMax, VStringMinMaxRegex, VStringPhone, VStringPhoneNullable, VStringShort, VStringShortNullable, VStringSlug, VStringUrl, VStringUrlNoUtm, VStringUrlNullable, VStringUrlUtm, checkIsValidUrlList };
1587
1582
 
1588
1583
  //# sourceMappingURL=schemas.mjs.map