@getcommunity/gc-validators 0.0.227 → 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/schemas.mjs CHANGED
@@ -121,6 +121,11 @@ const QueryStrapiSearchBlogPostsBySlug = v.object({
121
121
  sort: QuerySortBlogPosts
122
122
  });
123
123
  //#endregion
124
+ //#region src/schemas/core-relations.schemas.ts
125
+ const SAssociateOneEntity = VStringMinMax(1, 255);
126
+ const SAssociateManyEntities = v.pipe(v.array(SAssociateOneEntity), v.minLength(1), v.maxLength(100));
127
+ const SQueryManyEntities = v.pipe(v.array(VStringMinMax(1, 255)), v.minLength(1));
128
+ //#endregion
124
129
  //#region src/schemas/category.schemas.ts
125
130
  const CategorySortKeys = [
126
131
  "id",
@@ -146,44 +151,10 @@ const SUpdateCategoryDocument = v.object({
146
151
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG))
147
152
  });
148
153
  const SUpdateCategoryDocumentRequest = v.object({
149
- documentId: VStringMinMax(1, 255),
154
+ documentId: SAssociateOneEntity,
150
155
  data: SUpdateCategoryDocument
151
156
  });
152
157
  //#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
158
  //#region src/schemas/client-content-pillar.schemas.ts
188
159
  const ClientContentPillarSortKeys = [
189
160
  "id",
@@ -199,23 +170,23 @@ const QueryStrapiSearchClientContentPillars = v.object({
199
170
  size: VSize(100),
200
171
  is_active: v.optional(v.boolean()),
201
172
  client_id: v.optional(VStringMinMax(1, 255)),
202
- clients: v.optional(SEntityRelationManyQuery),
173
+ clients: v.optional(SQueryManyEntities),
203
174
  content_pillar_id: v.optional(VStringMinMax(1, 255)),
204
- content_pillars: v.optional(SEntityRelationManyQuery),
175
+ content_pillars: v.optional(SQueryManyEntities),
205
176
  sort: QuerySortClientContentPillars
206
177
  });
207
178
  const SCreateClientContentPillarDocument = v.object({
208
- client: SEntityRelationOne,
209
- content_pillar: SEntityRelationOne,
210
- is_active: v.optional(v.boolean())
179
+ is_active: v.optional(v.boolean()),
180
+ client: v.optional(SAssociateOneEntity),
181
+ content_pillar: v.optional(SAssociateOneEntity)
211
182
  });
212
183
  const SUpdateClientContentPillarDocument = v.object({
213
- client: v.optional(SEntityRelationOne),
214
- content_pillar: v.optional(SEntityRelationOne),
215
- is_active: v.optional(v.boolean())
184
+ is_active: v.optional(v.boolean()),
185
+ client: v.optional(SAssociateOneEntity),
186
+ content_pillar: v.optional(SAssociateOneEntity)
216
187
  });
217
188
  const SUpdateClientContentPillarDocumentRequest = v.object({
218
- documentId: VStringMinMax(1, 255),
189
+ documentId: SAssociateOneEntity,
219
190
  data: SUpdateClientContentPillarDocument
220
191
  });
221
192
  //#endregion
@@ -238,23 +209,23 @@ const QueryStrapiSearchClientMediaPlatforms = v.object({
238
209
  size: VSize(100),
239
210
  is_active: v.optional(v.boolean()),
240
211
  client_id: v.optional(VStringMinMax(1, 255)),
241
- clients: v.optional(SEntityRelationManyQuery),
212
+ clients: v.optional(SQueryManyEntities),
242
213
  media_platform_id: v.optional(VStringMinMax(1, 255)),
243
- media_platforms: v.optional(SEntityRelationManyQuery),
214
+ media_platforms: v.optional(SQueryManyEntities),
244
215
  sort: QuerySortClientMediaPlatforms
245
216
  });
246
217
  const SCreateClientMediaPlatformDocument = v.object({
247
- client: SEntityRelationOne,
248
- media_platform: SEntityRelationOne,
249
- is_active: v.boolean()
218
+ is_active: v.boolean(),
219
+ client: v.optional(SAssociateOneEntity),
220
+ media_platform: v.optional(SAssociateOneEntity)
250
221
  });
251
222
  const SUpdateClientMediaPlatformDocument = v.object({
252
- client: v.optional(SEntityRelationOne),
253
- media_platform: v.optional(SEntityRelationOne),
254
- is_active: v.optional(v.boolean())
223
+ is_active: v.optional(v.boolean()),
224
+ client: v.optional(SAssociateOneEntity),
225
+ media_platform: v.optional(SAssociateOneEntity)
255
226
  });
256
227
  const SUpdateClientMediaPlatformDocumentRequest = v.object({
257
- documentId: VStringMinMax(1, 255),
228
+ documentId: SAssociateOneEntity,
258
229
  data: SUpdateClientMediaPlatformDocument
259
230
  });
260
231
  //#endregion
@@ -373,7 +344,7 @@ const QueryStrapiSearchClientReports = v.object({
373
344
  is_external: v.optional(v.boolean()),
374
345
  is_hidden: v.optional(v.boolean()),
375
346
  client_id: v.optional(VStringMinMax(1, 255)),
376
- clients: v.optional(SEntityRelationManyQuery),
347
+ clients: v.optional(SQueryManyEntities),
377
348
  sort: QuerySortClientReports
378
349
  });
379
350
  const SCreateClientReportDocument = v.object({
@@ -383,7 +354,7 @@ const SCreateClientReportDocument = v.object({
383
354
  is_external: v.optional(v.boolean(), false),
384
355
  is_hidden: v.optional(v.boolean(), false),
385
356
  scopes: v.optional(v.pipe(v.array(v.string("Please provide a valid list of scopes."))), ["user:*"]),
386
- clients: v.optional(SEntityRelationMany)
357
+ clients: v.optional(SAssociateManyEntities)
387
358
  });
388
359
  const SUpdateClientReportDocument = v.object({
389
360
  title: v.optional(VStringMinMax(1, 255)),
@@ -392,10 +363,10 @@ const SUpdateClientReportDocument = v.object({
392
363
  is_external: v.optional(v.boolean()),
393
364
  is_hidden: v.optional(v.boolean()),
394
365
  scopes: v.optional(v.pipe(v.array(v.string("Please provide a valid list of scopes."))), ["user:*"]),
395
- clients: v.optional(SEntityRelationMany)
366
+ clients: v.optional(SAssociateManyEntities)
396
367
  });
397
368
  const SUpdateClientReportDocumentRequest = v.object({
398
- documentId: VStringMinMax(1, 255),
369
+ documentId: SAssociateOneEntity,
399
370
  data: SUpdateClientReportDocument
400
371
  });
401
372
  //#endregion
@@ -413,21 +384,21 @@ const QueryStrapiSearchClientStyleguide = v.object({
413
384
  title: v.optional(VStringMax()),
414
385
  is_active: v.optional(v.boolean()),
415
386
  client_id: v.optional(VStringMinMax(1, 255)),
416
- clients: v.optional(SEntityRelationManyQuery),
387
+ clients: v.optional(SQueryManyEntities),
417
388
  sort: QuerySortClientStyleguides
418
389
  });
419
390
  const SCreateClientStyleguideDocument = v.object({
420
391
  title: VStringMinMax(1, 255),
421
392
  is_active: v.optional(v.boolean(), true),
422
- client: v.optional(SEntityRelationOne)
393
+ client: v.optional(SAssociateOneEntity)
423
394
  });
424
395
  const SUpdateClientStyleguideDocument = v.object({
425
396
  title: v.optional(VStringMinMax(1, 255)),
426
397
  is_active: v.optional(v.boolean()),
427
- client: v.optional(SEntityRelationOne)
398
+ client: v.optional(SAssociateOneEntity)
428
399
  });
429
400
  const SUpdateClientStyleguideDocumentRequest = v.object({
430
- documentId: VStringMinMax(1, 255),
401
+ documentId: SAssociateOneEntity,
431
402
  data: SUpdateClientStyleguideDocument
432
403
  });
433
404
  //#endregion
@@ -455,18 +426,18 @@ const SQueryListClientUserDocuments = v.object({
455
426
  size: VSize(100)
456
427
  });
457
428
  const SCreateClientUserDocument = v.object({
458
- client: VStringMinMax(1, 255),
459
- user: VStringMinMax(1, 255),
429
+ client: v.optional(SAssociateOneEntity),
430
+ user: v.optional(SAssociateOneEntity),
460
431
  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
432
  });
462
433
  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
434
  const SUpdateClientUserDocumentRequest = v.object({
464
- documentId: VStringMinMax(1, 255),
435
+ documentId: SAssociateOneEntity,
465
436
  data: SUpdateClientUserDocument
466
437
  });
467
438
  const SVerifyClientUserDocument = v.object({
468
- client: VStringMinMax(1, 255),
469
- user: VStringMinMax(1, 255)
439
+ client: SAssociateOneEntity,
440
+ user: SAssociateOneEntity
470
441
  });
471
442
  //#endregion
472
443
  //#region src/schemas/client.schemas.ts
@@ -532,7 +503,7 @@ const SUpdateClientDocument = v.object({
532
503
  classification: v.optional(v.pipe(v.array(v.picklist(IsValidClientClassificationSelectOptions)), v.maxLength(IsValidClientClassificationSelectOptions.length)))
533
504
  });
534
505
  const SUpdateClientDocumentRequest = v.object({
535
- documentId: VStringMinMax(1, 255),
506
+ documentId: SAssociateOneEntity,
536
507
  data: SUpdateClientDocument
537
508
  });
538
509
  //#endregion
@@ -612,23 +583,23 @@ const QueryStrapiSearchContentPillars = v.object({
612
583
  size: VSize(LIMIT_PAGINATION_MAX_SIZE),
613
584
  title: v.optional(VStringMax()),
614
585
  slug: v.optional(VStringMax()),
615
- clients: v.optional(SEntityRelationManyQuery),
586
+ clients: v.optional(SQueryManyEntities),
616
587
  sort: QuerySortContentPillars
617
588
  });
618
589
  const SCreateContentPillarDocument = v.object({
619
590
  title: VStringMinMax(1, 255),
620
591
  slug: VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG),
621
592
  description: v.optional(v.nullable(VStringMax(255))),
622
- clients: v.optional(SEntityRelationMany)
593
+ clients: v.optional(SAssociateManyEntities)
623
594
  });
624
595
  const SUpdateContentPillarDocument = v.object({
625
596
  title: v.optional(VStringMinMax(1, 255)),
626
597
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
627
598
  description: v.optional(v.nullable(VStringMax(255))),
628
- clients: v.optional(SEntityRelationMany)
599
+ clients: v.optional(SAssociateManyEntities)
629
600
  });
630
601
  const SUpdateContentPillarDocumentRequest = v.object({
631
- documentId: VStringMinMax(1, 255),
602
+ documentId: SAssociateOneEntity,
632
603
  data: SUpdateContentPillarDocument
633
604
  });
634
605
  //#endregion
@@ -682,7 +653,7 @@ const QueryStrapiSearchGCFlyTourSnaps = v.object({
682
653
  is_active: v.optional(v.boolean()),
683
654
  is_hidden: v.optional(v.boolean()),
684
655
  gcflytour: v.optional(VStringMinMax(1, 255)),
685
- gcflytours: v.optional(SEntityRelationManyQuery),
656
+ gcflytours: v.optional(SQueryManyEntities),
686
657
  sort: QuerySortGCFlyTourSnaps
687
658
  });
688
659
  const SCreateGCFlyTourSnapDocument = v.object({
@@ -691,7 +662,7 @@ const SCreateGCFlyTourSnapDocument = v.object({
691
662
  description: v.optional(v.nullable(VStringMax(255))),
692
663
  is_active: v.boolean(),
693
664
  is_hidden: v.boolean(),
694
- gcflytour: v.optional(SEntityRelationOne)
665
+ gcflytour: v.optional(SAssociateOneEntity)
695
666
  });
696
667
  const SUpdateGCFlyTourSnapDocument = v.object({
697
668
  title: v.optional(VStringMinMax(1, 255)),
@@ -699,10 +670,10 @@ const SUpdateGCFlyTourSnapDocument = v.object({
699
670
  description: v.optional(v.nullable(VStringMax(255))),
700
671
  is_active: v.optional(v.boolean()),
701
672
  is_hidden: v.optional(v.boolean()),
702
- gcflytour: v.optional(SEntityRelationOne)
673
+ gcflytour: v.optional(SAssociateOneEntity)
703
674
  });
704
675
  const SUpdateGCFlyTourSnapDocumentRequest = v.object({
705
- documentId: VStringMinMax(1, 255),
676
+ documentId: SAssociateOneEntity,
706
677
  data: SUpdateGCFlyTourSnapDocument
707
678
  });
708
679
  //#endregion
@@ -724,7 +695,7 @@ const QueryStrapiSearchGCFlyTours = v.object({
724
695
  slug: v.optional(VStringMax()),
725
696
  is_active: v.optional(v.boolean()),
726
697
  is_hidden: v.optional(v.boolean()),
727
- clients: v.optional(SEntityRelationManyQuery),
698
+ clients: v.optional(SQueryManyEntities),
728
699
  sort: QuerySortGCFlyTours
729
700
  });
730
701
  const SCreateGCFlyTourDocument = v.object({
@@ -733,8 +704,8 @@ const SCreateGCFlyTourDocument = v.object({
733
704
  description: v.optional(v.nullable(VStringMax(255))),
734
705
  is_active: v.boolean(),
735
706
  is_hidden: v.boolean(),
736
- clients: v.optional(SEntityRelationMany),
737
- gcflytour_snaps: v.optional(SEntityRelationMany)
707
+ clients: v.optional(SAssociateManyEntities),
708
+ gcflytour_snaps: v.optional(SAssociateManyEntities)
738
709
  });
739
710
  const SUpdateGCFlyTourDocument = v.object({
740
711
  title: v.optional(VStringMinMax(1, 255)),
@@ -742,11 +713,11 @@ const SUpdateGCFlyTourDocument = v.object({
742
713
  description: v.optional(v.nullable(VStringMax(255))),
743
714
  is_active: v.optional(v.boolean()),
744
715
  is_hidden: v.optional(v.boolean()),
745
- clients: v.optional(SEntityRelationMany),
746
- gcflytour_snaps: v.optional(SEntityRelationMany)
716
+ clients: v.optional(SAssociateManyEntities),
717
+ gcflytour_snaps: v.optional(SAssociateManyEntities)
747
718
  });
748
719
  const SUpdateGCFlyTourDocumentRequest = v.object({
749
- documentId: VStringMinMax(1, 255),
720
+ documentId: SAssociateOneEntity,
750
721
  data: SUpdateGCFlyTourDocument
751
722
  });
752
723
  //#endregion
@@ -780,7 +751,7 @@ const SUpdateLeadDocument = v.object({
780
751
  captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
781
752
  });
782
753
  const SUpdateLeadRequest = v.object({
783
- documentId: VStringMinMax(1, 255),
754
+ documentId: SAssociateOneEntity,
784
755
  data: SUpdateLeadDocument
785
756
  });
786
757
  //#endregion
@@ -816,8 +787,8 @@ const QueryStrapiSearchMediaContentTypes = v.object({
816
787
  is_active: v.optional(v.boolean()),
817
788
  is_organic_social: v.optional(v.boolean()),
818
789
  is_paid_media: v.optional(v.boolean()),
819
- media_platforms: v.optional(SEntityRelationManyQuery),
820
- media_creative_formats: v.optional(SEntityRelationManyQuery),
790
+ media_platforms: v.optional(SQueryManyEntities),
791
+ media_creative_formats: v.optional(SQueryManyEntities),
821
792
  sort: QuerySortMediaContentType
822
793
  });
823
794
  const SCreateMediaContentTypeDocument = v.object({
@@ -827,8 +798,8 @@ const SCreateMediaContentTypeDocument = v.object({
827
798
  is_organic_social: v.boolean(),
828
799
  is_paid_media: v.boolean(),
829
800
  description: v.optional(v.nullable(VStringMax(255))),
830
- media_platforms: v.optional(SEntityRelationMany),
831
- media_creative_formats: v.optional(SEntityRelationMany)
801
+ media_platforms: v.optional(SAssociateManyEntities),
802
+ media_creative_formats: v.optional(SAssociateManyEntities)
832
803
  });
833
804
  const SUpdateMediaContentTypeDocument = v.object({
834
805
  title: v.optional(VStringMinMax(1, 255)),
@@ -837,11 +808,11 @@ const SUpdateMediaContentTypeDocument = v.object({
837
808
  is_organic_social: v.optional(v.boolean()),
838
809
  is_paid_media: v.optional(v.boolean()),
839
810
  description: v.optional(v.nullable(VStringMax(255))),
840
- media_platforms: v.optional(SEntityRelationMany),
841
- media_creative_formats: v.optional(SEntityRelationMany)
811
+ media_platforms: v.optional(SAssociateManyEntities),
812
+ media_creative_formats: v.optional(SAssociateManyEntities)
842
813
  });
843
814
  const SUpdateMediaContentTypeDocumentRequest = v.object({
844
- documentId: VStringMinMax(1, 255),
815
+ documentId: SAssociateOneEntity,
845
816
  data: SUpdateMediaContentTypeDocument
846
817
  });
847
818
  //#endregion
@@ -868,7 +839,7 @@ const QueryStrapiSearchMediaCreativeFormats = v.object({
868
839
  title: v.optional(VStringMax()),
869
840
  slug: v.optional(VStringMax()),
870
841
  is_active: v.optional(v.boolean()),
871
- media_content_types: v.optional(SEntityRelationManyQuery),
842
+ media_content_types: v.optional(SQueryManyEntities),
872
843
  sort: QuerySortMediaCreativeFormat
873
844
  });
874
845
  const SCreateMediaCreativeFormatDocument = v.object({
@@ -876,17 +847,17 @@ const SCreateMediaCreativeFormatDocument = v.object({
876
847
  slug: v.pipe(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
877
848
  is_active: v.boolean(),
878
849
  description: v.optional(v.nullable(VStringMax(255))),
879
- media_content_types: v.optional(SEntityRelationMany)
850
+ media_content_types: v.optional(SAssociateManyEntities)
880
851
  });
881
852
  const SUpdateMediaCreativeFormatDocument = v.object({
882
853
  title: v.optional(VStringMinMax(1, 255)),
883
854
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG)),
884
855
  is_active: v.optional(v.boolean()),
885
856
  description: v.optional(v.nullable(VStringMax(255))),
886
- media_content_types: v.optional(SEntityRelationMany)
857
+ media_content_types: v.optional(SAssociateManyEntities)
887
858
  });
888
859
  const SUpdateMediaCreativeFormatDocumentRequest = v.object({
889
- documentId: VStringMinMax(1, 255),
860
+ documentId: SAssociateOneEntity,
890
861
  data: SUpdateMediaCreativeFormatDocument
891
862
  });
892
863
  //#endregion
@@ -924,8 +895,8 @@ const QueryStrapiSearchMediaPlatforms = v.object({
924
895
  is_active: v.optional(v.boolean()),
925
896
  is_organic_social: v.optional(v.boolean()),
926
897
  is_paid_media: v.optional(v.boolean()),
927
- clients: v.optional(SEntityRelationManyQuery),
928
- media_content_types: v.optional(SEntityRelationManyQuery),
898
+ clients: v.optional(SQueryManyEntities),
899
+ media_content_types: v.optional(SQueryManyEntities),
929
900
  sort: QuerySortMediaPlatforms
930
901
  });
931
902
  const SCreateMediaPlatformDocument = v.object({
@@ -935,8 +906,8 @@ const SCreateMediaPlatformDocument = v.object({
935
906
  is_organic_social: v.boolean(),
936
907
  is_paid_media: v.boolean(),
937
908
  description: v.optional(v.nullable(VStringMax(255))),
938
- clients: v.optional(SEntityRelationMany),
939
- media_content_types: v.optional(SEntityRelationMany)
909
+ clients: v.optional(SAssociateManyEntities),
910
+ media_content_types: v.optional(SAssociateManyEntities)
940
911
  });
941
912
  const SUpdateMediaPlatformDocument = v.object({
942
913
  title: v.optional(VStringMinMax(1, 255)),
@@ -945,11 +916,11 @@ const SUpdateMediaPlatformDocument = v.object({
945
916
  is_organic_social: v.optional(v.boolean()),
946
917
  is_paid_media: v.optional(v.boolean()),
947
918
  description: v.optional(v.nullable(VStringMax(255))),
948
- clients: v.optional(SEntityRelationMany),
949
- media_content_types: v.optional(SEntityRelationMany)
919
+ clients: v.optional(SAssociateManyEntities),
920
+ media_content_types: v.optional(SAssociateManyEntities)
950
921
  });
951
922
  const SUpdateMediaPlatformDocumentRequest = v.object({
952
- documentId: VStringMinMax(1, 255),
923
+ documentId: SAssociateOneEntity,
953
924
  data: SUpdateMediaPlatformDocument
954
925
  });
955
926
  //#endregion
@@ -969,18 +940,18 @@ const QueryStrapiSearchMondayWorkspaces = v.object({
969
940
  size: VSize(LIMIT_MONDAY_WORKSPACE_PAGINATION_MAX_SIZE),
970
941
  title: v.optional(VStringMax()),
971
942
  workspace_id: v.optional(VStringMax()),
972
- clients: v.optional(SEntityRelationManyQuery),
943
+ clients: v.optional(SQueryManyEntities),
973
944
  sort: QuerySortMondayWorkspaces
974
945
  });
975
946
  const SCreateMondayWorkspaceDocument = v.object({
976
947
  title: VStringShort(),
977
948
  workspace_id: VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE),
978
- clients: v.optional(SEntityRelationMany)
949
+ clients: v.optional(SAssociateManyEntities)
979
950
  });
980
951
  const SUpdateMondayWorkspaceDocument = v.object({
981
952
  title: v.optional(VStringShort()),
982
953
  workspace_id: v.optional(VStringMinMaxRegex(1, 255, REGEX_UTM_VALUE, ERROR_MESSAGE_REGEX_UTM_VALUE)),
983
- clients: v.optional(SEntityRelationMany)
954
+ clients: v.optional(SAssociateManyEntities)
984
955
  });
985
956
  const SUpdateMondayWorkspaceDocumentRequest = v.object({
986
957
  documentId: VStringShort(),
@@ -1023,7 +994,7 @@ const SUpdateNewsletterSignupDocument = v.object({
1023
994
  captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
1024
995
  });
1025
996
  const SUpdateNewsletterSignupRequest = v.object({
1026
- documentId: VStringMinMax(1, 255),
997
+ documentId: SAssociateOneEntity,
1027
998
  data: SUpdateNewsletterSignupDocument
1028
999
  });
1029
1000
  //#endregion
@@ -1119,7 +1090,7 @@ const SUpdateResumeInfoDocument = v.object({
1119
1090
  captcha: VStringMax(LIMIT_LONG_STRING_MAX_LENGTH)
1120
1091
  });
1121
1092
  const SUpdateResumeInfoRequest = v.object({
1122
- documentId: VStringMinMax(1, 255),
1093
+ documentId: SAssociateOneEntity,
1123
1094
  data: SUpdateResumeInfo
1124
1095
  });
1125
1096
  //#endregion
@@ -1183,7 +1154,7 @@ const SUpdateTagDocument = v.object({
1183
1154
  slug: v.optional(VStringMinMaxRegex(1, 255, REGEX_URL_SLUG, ERROR_MESSAGE_REGEX_URL_SLUG))
1184
1155
  });
1185
1156
  const SUpdateTagDocumentRequest = v.object({
1186
- documentId: VStringMinMax(1, 255),
1157
+ documentId: SAssociateOneEntity,
1187
1158
  data: SUpdateTagDocument
1188
1159
  });
1189
1160
  //#endregion
@@ -1307,21 +1278,21 @@ const QueryStrapiUrlRedirectsByFrom = v.object({ from: v.string() });
1307
1278
  const SReadUserAccountById = v.object({ id: v.number() });
1308
1279
  const SReadUserAccountByDocumentId = v.object({ documentId: VStringMinMax(1, 255) });
1309
1280
  const SUpdateUserAccount = v.object({
1310
- documentId: VStringMinMax(1, 255),
1281
+ documentId: SAssociateOneEntity,
1311
1282
  first_name: VStringMinMax(1, 255),
1312
1283
  last_name: VStringMinMax(1, 255),
1313
1284
  preferred_name: v.nullable(VStringMinMax(1, 255))
1314
1285
  });
1315
1286
  const SUpdateUserAccountFirstName = v.object({
1316
- documentId: VStringMinMax(1, 255),
1287
+ documentId: SAssociateOneEntity,
1317
1288
  first_name: VStringMinMax(1, 255)
1318
1289
  });
1319
1290
  const SUpdateUserAccountLastName = v.object({
1320
- documentId: VStringMinMax(1, 255),
1291
+ documentId: SAssociateOneEntity,
1321
1292
  last_name: VStringMinMax(1, 255)
1322
1293
  });
1323
1294
  const SUpdateUserAccountPreferredName = v.object({
1324
- documentId: VStringMinMax(1, 255),
1295
+ documentId: SAssociateOneEntity,
1325
1296
  preferred_name: v.nullable(VStringMinMax(1, 255))
1326
1297
  });
1327
1298
  //#endregion
@@ -1404,8 +1375,8 @@ const SUtmLinkBuilderPartCampaignDateOptions = [
1404
1375
  "no date"
1405
1376
  ];
1406
1377
  const SUtmLinkBuilderTableForm = v.object({
1407
- creator: VStringMinMax(1, 255),
1408
- client: VStringMinMax(1, 255),
1378
+ creator: v.optional(SAssociateOneEntity),
1379
+ client: v.optional(SAssociateOneEntity),
1409
1380
  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
1381
  if (input === "") return false;
1411
1382
  return input.indexOf("?") === -1;
@@ -1583,6 +1554,6 @@ const SUpdateUtmTrackingLinkDocumentRequest = v.object({
1583
1554
  data: SUpdateUtmTrackingLinkDocument
1584
1555
  });
1585
1556
  //#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 };
1557
+ 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, 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, SForgotUserPassword, SFormCreateMultipleUtmTrackingLinkDocuments, SLoginUser, SQueryListClientUserDocuments, SQueryManyEntities, SReadUserAccountByDocumentId, SReadUserAccountById, SReadUtmTrackingLinkDocumentByUrl, SRegisterUser, SReportCommentDocument, SRequestConfirmEmail, SResetUserPassword, 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
1558
 
1588
1559
  //# sourceMappingURL=schemas.mjs.map