@joeygrable94/utm-src-pub-validators 0.0.16 → 0.0.18

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.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as v9 from 'valibot';
2
2
 
3
- // src/constants-limits.ts
3
+ // src/constants/constants-limits.ts
4
4
  var LIMIT_MIN_LABEL = 1;
5
5
  var LIMIT_MAX_LABEL = 255;
6
6
  var LIMIT_MIN_VALUE = 1;
@@ -48,7 +48,7 @@ var LIMIT_MAX_UTM_TERM = 2028;
48
48
  var LIMIT_MIN_UTM_ID = 1;
49
49
  var LIMIT_MAX_UTM_ID = 2030;
50
50
 
51
- // src/constants-regex.ts
51
+ // src/constants/constants-regex.ts
52
52
  var REGEX_VALUE = /^[a-zA-Z0-9._-]+$/;
53
53
  var ERROR_MESSAGE_REGEX_VALUE = `can only contain letters, numbers, and the special characters: - _ .`;
54
54
  var REGEX_DOMAIN = /^(?=.{1,253}$)(?!\-)((xn--)?[a-zA-Z0-9]{1,59}(-[a-zA-Z0-9]{1,62})?\.)+([a-zA-Z]{2,63}|xn--[a-zA-Z0-9]{2,59})$/;
@@ -92,7 +92,7 @@ function omitUndefined(obj) {
92
92
  return result;
93
93
  }
94
94
 
95
- // src/utilities-datetime.ts
95
+ // src/utilities/utilities-datetime.ts
96
96
  function dateToday() {
97
97
  const date2 = /* @__PURE__ */ new Date();
98
98
  date2.setHours(0, 0, 0, 0);
@@ -505,7 +505,600 @@ var IsValidUrlUtmId = v9.pipe(
505
505
  v9.regex(REGEX_VALUE, `utm_id ${ERROR_MESSAGE_REGEX_VALUE}`)
506
506
  );
507
507
  var IsValidOrUndefinedUrlUtmId = v9.undefinedable(IsValidUrlUtmId);
508
+ var SCreateCampaignIdDocument = v9.object({
509
+ cost: IsValidCost,
510
+ label: IsValidLabel,
511
+ value: IsValidValue,
512
+ description: IsValidDescription,
513
+ is_active: IsValidIsActive
514
+ });
515
+ var SCreateCampaignIdDocumentRequest = v9.object({
516
+ documentId: v9.string(),
517
+ data: SCreateCampaignIdDocument
518
+ });
519
+ var SReadCampaignIdDocumentById = v9.object({
520
+ id: v9.number()
521
+ });
522
+ var SReadCampaignIdDocumentByDocumentId = v9.object({
523
+ documentId: v9.string()
524
+ });
525
+ var SUpdateAsCreatorCampaignIdDocument = v9.object({
526
+ cost: IsValidOrUndefinedCost,
527
+ label: IsValidOrUndefinedLabel,
528
+ value: IsValidOrUndefinedValue,
529
+ description: IsValidDescription,
530
+ is_active: IsValidOrUndefinedIsActive
531
+ });
532
+ var SUpdateAsInvitedCampaignIdDocument = v9.object({
533
+ label: IsValidOrUndefinedLabel,
534
+ description: IsValidDescription,
535
+ is_active: IsValidOrUndefinedIsActive
536
+ });
537
+ var SUpdateCampaignIdDocumentRequest = v9.object({
538
+ documentId: v9.string(),
539
+ data: SUpdateAsCreatorCampaignIdDocument
540
+ });
541
+ var SDeleteCampaignIdDocument = v9.object({
542
+ documentId: v9.string()
543
+ });
544
+ var SCreateCampaignKeyDocument = v9.object({
545
+ label: IsValidLabel,
546
+ value: IsValidValue,
547
+ description: IsValidDescription,
548
+ is_active: IsValidIsActive
549
+ });
550
+ var SCreateCampaignKeyDocumentRequest = v9.object({
551
+ documentId: v9.string(),
552
+ data: SCreateCampaignKeyDocument
553
+ });
554
+ var SReadCampaignKeyDocumentById = v9.object({
555
+ id: v9.number()
556
+ });
557
+ var SReadCampaignKeyDocumentByDocumentId = v9.object({
558
+ documentId: v9.string()
559
+ });
560
+ var SUpdateAsCreatorCampaignKeyDocument = v9.object({
561
+ label: IsValidOrUndefinedLabel,
562
+ value: IsValidOrUndefinedValue,
563
+ description: IsValidOrUndefinedDescription,
564
+ is_active: IsValidOrUndefinedIsActive
565
+ });
566
+ var SUpdateAsInvitedCampaignKeyDocument = v9.object({
567
+ label: IsValidOrUndefinedLabel,
568
+ description: IsValidDescription,
569
+ is_active: IsValidOrUndefinedIsActive
570
+ });
571
+ var SUpdateCampaignKeyDocumentRequest = v9.object({
572
+ documentId: v9.string(),
573
+ data: SUpdateAsCreatorCampaignKeyDocument
574
+ });
575
+ var SDeleteCampaignKeyDocument = v9.object({
576
+ documentId: v9.string()
577
+ });
578
+ var SCreateCampaignPhaseDocument = v9.object({
579
+ label: IsValidLabel,
580
+ value: IsValidValue,
581
+ description: IsValidDescription,
582
+ is_active: IsValidIsActive
583
+ });
584
+ var SCreateCampaignPhaseDocumentRequest = v9.object({
585
+ documentId: v9.string(),
586
+ data: SCreateCampaignPhaseDocument
587
+ });
588
+ var SReadCampaignPhaseDocumentById = v9.object({
589
+ id: v9.number()
590
+ });
591
+ var SReadCampaignPhaseDocumentByDocumentId = v9.object({
592
+ documentId: v9.string()
593
+ });
594
+ var SUpdateAsCreatorCampaignPhaseDocument = v9.object({
595
+ label: IsValidOrUndefinedLabel,
596
+ value: IsValidOrUndefinedValue,
597
+ description: IsValidOrUndefinedDescription,
598
+ is_active: IsValidOrUndefinedIsActive
599
+ });
600
+ var SUpdateAsInvitedCampaignPhaseDocument = v9.object({
601
+ label: IsValidOrUndefinedLabel,
602
+ description: IsValidDescription,
603
+ is_active: IsValidOrUndefinedIsActive
604
+ });
605
+ var SUpdateCampaignPhaseDocumentRequest = v9.object({
606
+ documentId: v9.string(),
607
+ data: SUpdateAsCreatorCampaignPhaseDocument
608
+ });
609
+ var SDeleteCampaignPhaseDocument = v9.object({
610
+ documentId: v9.string()
611
+ });
612
+ var SCreateCampaignProductDocument = v9.object({
613
+ label: IsValidLabel,
614
+ value: IsValidValue,
615
+ description: IsValidDescription,
616
+ is_active: IsValidIsActive
617
+ });
618
+ var SCreateCampaignProductDocumentRequest = v9.object({
619
+ documentId: v9.string(),
620
+ data: SCreateCampaignProductDocument
621
+ });
622
+ var SReadCampaignProductDocumentById = v9.object({
623
+ id: v9.number()
624
+ });
625
+ var SReadCampaignProductDocumentByDocumentId = v9.object({
626
+ documentId: v9.string()
627
+ });
628
+ var SUpdateAsCreatorCampaignProductDocument = v9.object({
629
+ label: IsValidOrUndefinedLabel,
630
+ value: IsValidOrUndefinedValue,
631
+ description: IsValidOrUndefinedDescription,
632
+ is_active: IsValidOrUndefinedIsActive
633
+ });
634
+ var SUpdateAsInvitedCampaignProductDocument = v9.object({
635
+ label: IsValidOrUndefinedLabel,
636
+ description: IsValidDescription,
637
+ is_active: IsValidOrUndefinedIsActive
638
+ });
639
+ var SUpdateCampaignProductDocumentRequest = v9.object({
640
+ documentId: v9.string(),
641
+ data: SUpdateAsCreatorCampaignProductDocument
642
+ });
643
+ var SDeleteCampaignProductDocument = v9.object({
644
+ documentId: v9.string()
645
+ });
646
+ var SCreateContentDocument = v9.object({
647
+ label: IsValidLabel,
648
+ value: IsValidValue,
649
+ description: IsValidDescription,
650
+ is_active: IsValidIsActive
651
+ });
652
+ var SCreateContentDocumentRequest = v9.object({
653
+ documentId: v9.string(),
654
+ data: SCreateContentDocument
655
+ });
656
+ var SReadContentDocumentById = v9.object({
657
+ id: v9.number()
658
+ });
659
+ var SReadContentDocumentByDocumentId = v9.object({
660
+ documentId: v9.string()
661
+ });
662
+ var SUpdateAsCreatorContentDocument = v9.object({
663
+ label: IsValidOrUndefinedLabel,
664
+ value: IsValidOrUndefinedValue,
665
+ description: IsValidOrUndefinedDescription,
666
+ is_active: IsValidOrUndefinedIsActive
667
+ });
668
+ var SUpdateAsInvitedContentDocument = v9.object({
669
+ label: IsValidOrUndefinedLabel,
670
+ description: IsValidDescription,
671
+ is_active: IsValidOrUndefinedIsActive
672
+ });
673
+ var SUpdateContentDocumentRequest = v9.object({
674
+ documentId: v9.string(),
675
+ data: SUpdateAsCreatorContentDocument
676
+ });
677
+ var SDeleteContentDocument = v9.object({
678
+ documentId: v9.string()
679
+ });
680
+ var SCreateCreativeFormatVariantDocument = v9.object({
681
+ label: IsValidLabel,
682
+ value: IsValidValue,
683
+ description: IsValidDescription,
684
+ is_active: IsValidIsActive
685
+ });
686
+ var SCreateCreativeFormatVariantDocumentRequest = v9.object({
687
+ documentId: v9.string(),
688
+ data: SCreateCreativeFormatVariantDocument
689
+ });
690
+ var SReadCreativeFormatVariantDocumentById = v9.object({
691
+ id: v9.number()
692
+ });
693
+ var SReadCreativeFormatVariantDocumentByDocumentId = v9.object({
694
+ documentId: v9.string()
695
+ });
696
+ var SUpdateAsCreatorCreativeFormatVariantDocument = v9.object({
697
+ label: IsValidOrUndefinedLabel,
698
+ value: IsValidOrUndefinedValue,
699
+ description: IsValidOrUndefinedDescription,
700
+ is_active: IsValidOrUndefinedIsActive
701
+ });
702
+ var SUpdateAsInvitedCreativeFormatVariantDocument = v9.object({
703
+ label: IsValidOrUndefinedLabel,
704
+ description: IsValidDescription,
705
+ is_active: IsValidOrUndefinedIsActive
706
+ });
707
+ var SUpdateCreativeFormatVariantDocumentRequest = v9.object({
708
+ documentId: v9.string(),
709
+ data: SUpdateAsCreatorCreativeFormatVariantDocument
710
+ });
711
+ var SDeleteCreativeFormatVariantDocument = v9.object({
712
+ documentId: v9.string()
713
+ });
714
+ var SCreateCreativeFormatDocument = v9.object({
715
+ label: IsValidLabel,
716
+ value: IsValidValue,
717
+ description: IsValidDescription,
718
+ is_active: IsValidIsActive
719
+ });
720
+ var SCreateCreativeFormatDocumentRequest = v9.object({
721
+ documentId: v9.string(),
722
+ data: SCreateCreativeFormatDocument
723
+ });
724
+ var SReadCreativeFormatDocumentById = v9.object({
725
+ id: v9.number()
726
+ });
727
+ var SReadCreativeFormatDocumentByDocumentId = v9.object({
728
+ documentId: v9.string()
729
+ });
730
+ var SUpdateAsCreatorCreativeFormatDocument = v9.object({
731
+ label: IsValidOrUndefinedLabel,
732
+ value: IsValidOrUndefinedValue,
733
+ description: IsValidOrUndefinedDescription,
734
+ is_active: IsValidOrUndefinedIsActive
735
+ });
736
+ var SUpdateAsInvitedCreativeFormatDocument = v9.object({
737
+ label: IsValidOrUndefinedLabel,
738
+ description: IsValidDescription,
739
+ is_active: IsValidOrUndefinedIsActive
740
+ });
741
+ var SUpdateCreativeFormatDocumentRequest = v9.object({
742
+ documentId: v9.string(),
743
+ data: SUpdateAsCreatorCreativeFormatDocument
744
+ });
745
+ var SDeleteCreativeFormatDocument = v9.object({
746
+ documentId: v9.string()
747
+ });
748
+ var SCreateGroupUserDocument = v9.object({
749
+ group: IsValidReferenceDocumentId,
750
+ user: IsValidReferenceDocumentId,
751
+ scopes: IsValidGroupUserScopes
752
+ });
753
+ var SCreateGroupUserDocumentRequest = v9.object({
754
+ documentId: v9.string(),
755
+ data: SCreateGroupUserDocument
756
+ });
757
+ var SReadGroupUserDocumentById = v9.object({
758
+ id: v9.number()
759
+ });
760
+ var SReadGroupUserDocumentByDocumentId = v9.object({
761
+ documentId: v9.string()
762
+ });
763
+ var SUpdateGroupUserDocument = v9.object({
764
+ group: IsValidReferenceDocumentId,
765
+ user: IsValidReferenceDocumentId,
766
+ scopes: IsValidGroupUserScopes
767
+ });
768
+ var SUpdateGroupUserDocumentRequest = v9.object({
769
+ documentId: v9.string(),
770
+ data: SUpdateGroupUserDocument
771
+ });
772
+ var SDeleteGroupUserDocument = v9.object({
773
+ documentId: v9.string()
774
+ });
775
+ var SCreateGroupDocument = v9.object({
776
+ label: IsValidLabel,
777
+ value: IsValidValue,
778
+ description: IsValidDescription,
779
+ is_active: IsValidIsActive,
780
+ apply_value_to: IsValidApplyValueTo,
781
+ apply_value_as: IsValidApplyValueAs
782
+ });
783
+ var SReadGroupDocumentById = v9.object({
784
+ id: v9.number()
785
+ });
786
+ var SReadGroupDocumentByDocumentId = v9.object({
787
+ documentId: v9.string()
788
+ });
789
+ var SUpdateAsCreatorGroupDocument = v9.object({
790
+ label: IsValidOrUndefinedLabel,
791
+ value: IsValidOrUndefinedValue,
792
+ description: IsValidOrUndefinedDescription,
793
+ is_active: IsValidOrUndefinedIsActive,
794
+ apply_value_to: IsValidOrUndefinedApplyValueTo,
795
+ apply_value_as: IsValidOrUndefinedApplyValueAs
796
+ });
797
+ var SUpdateAsInvitedGroupDocument = v9.object({
798
+ label: IsValidOrUndefinedLabel,
799
+ description: IsValidOrUndefinedDescription
800
+ });
801
+ var SUpdateGroupDocumentRequest = v9.object({
802
+ documentId: v9.string(),
803
+ data: SUpdateAsCreatorGroupDocument
804
+ });
805
+ var SDeleteGroupDocument = v9.object({
806
+ documentId: v9.string()
807
+ });
808
+ var SCreateMediumDocument = v9.object({
809
+ label: IsValidLabel,
810
+ value: IsValidValue,
811
+ description: IsValidDescription,
812
+ is_active: IsValidIsActive
813
+ });
814
+ var SCreateMediumDocumentRequest = v9.object({
815
+ documentId: v9.string(),
816
+ data: SCreateMediumDocument
817
+ });
818
+ var SReadMediumDocumentById = v9.object({
819
+ id: v9.number()
820
+ });
821
+ var SReadMediumDocumentByDocumentId = v9.object({
822
+ documentId: v9.string()
823
+ });
824
+ var SUpdateAsCreatorMediumDocument = v9.object({
825
+ label: IsValidOrUndefinedLabel,
826
+ value: IsValidOrUndefinedValue,
827
+ description: IsValidOrUndefinedDescription,
828
+ is_active: IsValidOrUndefinedIsActive
829
+ });
830
+ var SUpdateAsInvitedMediumDocument = v9.object({
831
+ label: IsValidOrUndefinedLabel,
832
+ description: IsValidDescription,
833
+ is_active: IsValidOrUndefinedIsActive
834
+ });
835
+ var SUpdateMediumDocumentRequest = v9.object({
836
+ documentId: v9.string(),
837
+ data: SUpdateAsCreatorMediumDocument
838
+ });
839
+ var SDeleteMediumDocument = v9.object({
840
+ documentId: v9.string()
841
+ });
842
+ var SCreateSourceDocument = v9.object({
843
+ label: IsValidLabel,
844
+ value: IsValidValue,
845
+ description: IsValidDescription,
846
+ is_active: IsValidIsActive
847
+ });
848
+ var SCreateSourceDocumentRequest = v9.object({
849
+ documentId: v9.string(),
850
+ data: SCreateSourceDocument
851
+ });
852
+ var SReadSourceDocumentById = v9.object({
853
+ id: v9.number()
854
+ });
855
+ var SReadSourceDocumentByDocumentId = v9.object({
856
+ documentId: v9.string()
857
+ });
858
+ var SUpdateAsCreatorSourceDocument = v9.object({
859
+ label: IsValidOrUndefinedLabel,
860
+ value: IsValidOrUndefinedValue,
861
+ description: IsValidOrUndefinedDescription,
862
+ is_active: IsValidOrUndefinedIsActive
863
+ });
864
+ var SUpdateAsInvitedSourceDocument = v9.object({
865
+ label: IsValidOrUndefinedLabel,
866
+ description: IsValidDescription,
867
+ is_active: IsValidOrUndefinedIsActive
868
+ });
869
+ var SUpdateSourceDocumentRequest = v9.object({
870
+ documentId: v9.string(),
871
+ data: SUpdateAsCreatorSourceDocument
872
+ });
873
+ var SDeleteSourceDocument = v9.object({
874
+ documentId: v9.string()
875
+ });
876
+ var SStripeCheckoutLineItem = v9.object({
877
+ price: IsValidPriceId,
878
+ quantity: v9.pipe(v9.number(), v9.minValue(1), v9.maxValue(1))
879
+ });
880
+ var SStripeCheckoutCreateSession = v9.object({
881
+ line_items: v9.pipe(v9.array(SStripeCheckoutLineItem), v9.minLength(1), v9.maxLength(10)),
882
+ mode: v9.picklist(["payment", "subscription"]),
883
+ success_url: IsValidOrUndefinedUrlDestination,
884
+ cancel_url: IsValidOrUndefinedUrlDestination
885
+ });
886
+ var SCreateTermDocument = v9.object({
887
+ label: IsValidLabel,
888
+ value: IsValidValue,
889
+ description: IsValidDescription,
890
+ is_active: IsValidIsActive
891
+ });
892
+ var SCreateTermDocumentRequest = v9.object({
893
+ documentId: v9.string(),
894
+ data: SCreateTermDocument
895
+ });
896
+ var SReadTermDocumentById = v9.object({
897
+ id: v9.number()
898
+ });
899
+ var SReadTermDocumentByDocumentId = v9.object({
900
+ documentId: v9.string()
901
+ });
902
+ var SUpdateAsCreatorTermDocument = v9.object({
903
+ label: IsValidOrUndefinedLabel,
904
+ value: IsValidOrUndefinedValue,
905
+ description: IsValidOrUndefinedDescription,
906
+ is_active: IsValidOrUndefinedIsActive
907
+ });
908
+ var SUpdateAsInvitedTermDocument = v9.object({
909
+ label: IsValidOrUndefinedLabel,
910
+ description: IsValidDescription,
911
+ is_active: IsValidOrUndefinedIsActive
912
+ });
913
+ var SUpdateTermDocumentRequest = v9.object({
914
+ documentId: v9.string(),
915
+ data: SUpdateAsCreatorTermDocument
916
+ });
917
+ var SDeleteTermDocument = v9.object({
918
+ documentId: v9.string()
919
+ });
920
+ var SCreateTrackingLinkDocument = v9.object({
921
+ is_active: IsValidIsActive,
922
+ destination: IsValidUrlDestination,
923
+ protocol: IsValidUrlProtocol,
924
+ domain: IsValidUrlDomain,
925
+ path: IsValidUrlPath,
926
+ query: IsValidUrlQuery,
927
+ fragment: IsValidUrlFragment,
928
+ utm_source: IsValidUrlUtmSource,
929
+ utm_medium: IsValidUrlUtmMedium,
930
+ utm_campaign: IsValidUrlUtmCampaign,
931
+ utm_creative_format: IsValidUrlUtmCreativeFormat,
932
+ utm_content: IsValidUrlUtmContent,
933
+ utm_term: IsValidUrlUtmTerm,
934
+ utm_id: IsValidUrlUtmId
935
+ });
936
+ var SCreateTrackingLinkDocumentRequest = v9.object({
937
+ documentId: v9.string(),
938
+ data: SCreateTrackingLinkDocument
939
+ });
940
+ var SReadTrackingLinkDocumentById = v9.object({
941
+ id: v9.number()
942
+ });
943
+ var SReadTrackingLinkDocumentByDocumentId = v9.object({
944
+ documentId: v9.string()
945
+ });
946
+ var SUpdateAsCreatorTrackingLinkDocument = v9.object({
947
+ is_active: IsValidOrUndefinedUrlDestination,
948
+ destination: IsValidOrUndefinedUrlDestination,
949
+ protocol: IsValidOrUndefinedUrlProtocol,
950
+ domain: IsValidOrUndefinedUrlDomain,
951
+ path: IsValidOrUndefinedUrlPath,
952
+ query: IsValidOrUndefinedUrlQuery,
953
+ fragment: IsValidOrUndefinedUrlFragment,
954
+ utm_source: IsValidOrUndefinedUrlUtmSource,
955
+ utm_medium: IsValidOrUndefinedUrlUtmMedium,
956
+ utm_campaign: IsValidOrUndefinedUrlUtmCampaign,
957
+ utm_creative_format: IsValidOrUndefinedUrlUtmCreativeFormat,
958
+ utm_content: IsValidOrUndefinedUrlUtmContent,
959
+ utm_term: IsValidOrUndefinedUrlUtmTerm,
960
+ utm_id: IsValidOrUndefinedUrlUtmId
961
+ });
962
+ var SUpdateAsInvitedTrackingLinkDocument = v9.object({
963
+ is_active: IsValidOrUndefinedUrlDestination,
964
+ destination: IsValidOrUndefinedUrlDestination,
965
+ protocol: IsValidOrUndefinedUrlProtocol,
966
+ domain: IsValidOrUndefinedUrlDomain,
967
+ path: IsValidOrUndefinedUrlPath,
968
+ query: IsValidOrUndefinedUrlQuery,
969
+ fragment: IsValidOrUndefinedUrlFragment,
970
+ utm_source: IsValidOrUndefinedUrlUtmSource,
971
+ utm_medium: IsValidOrUndefinedUrlUtmMedium,
972
+ utm_campaign: IsValidOrUndefinedUrlUtmCampaign,
973
+ utm_creative_format: IsValidOrUndefinedUrlUtmCreativeFormat,
974
+ utm_content: IsValidOrUndefinedUrlUtmContent,
975
+ utm_term: IsValidOrUndefinedUrlUtmTerm,
976
+ utm_id: IsValidOrUndefinedUrlUtmId
977
+ });
978
+ var SUpdateTrackingLinkDocumentRequest = v9.object({
979
+ documentId: v9.string(),
980
+ data: SUpdateAsCreatorTrackingLinkDocument
981
+ });
982
+ var SDeleteTrackingLinkDocument = v9.object({
983
+ documentId: v9.string()
984
+ });
985
+ var SCreateUserAccountDocument = v9.object({
986
+ customer_id: IsValidOrUndefinedCustomerId,
987
+ subscription_id: IsValidOrUndefinedSubscriptionId,
988
+ subscription_status: IsValidSubscriptionStatus,
989
+ current_period_start: IsValidCurrentPeriodStart,
990
+ current_period_end: IsValidCurrentPeriodEnd,
991
+ trial_period_end: IsValidOrUndefinedTrialPeriodEnd
992
+ });
993
+ var SReadUserAccountDocumentById = v9.object({
994
+ id: v9.number()
995
+ });
996
+ var SReadUserAccountDocumentByDocumentId = v9.object({
997
+ documentId: v9.string()
998
+ });
999
+ var SUpdateUserAccountDocument = v9.object({
1000
+ customer_id: IsValidOrUndefinedCustomerId,
1001
+ subscription_id: IsValidOrUndefinedSubscriptionId,
1002
+ subscription_status: IsValidOrUndefinedSubscriptionStatus,
1003
+ current_period_start: IsValidOrUndefinedCurrentPeriodStart,
1004
+ current_period_end: IsValidOrUndefinedCurrentPeriodEnd,
1005
+ trial_period_end: IsValidOrUndefinedTrialPeriodEnd
1006
+ });
1007
+ var SCreateUserLimitationsDocument = v9.object({
1008
+ limit_groups: v9.number(),
1009
+ limit_websites: v9.number(),
1010
+ limit_tracking_links: v9.number(),
1011
+ limit_sources: v9.number(),
1012
+ limit_mediums: v9.number(),
1013
+ limit_campaign_ids: v9.number(),
1014
+ limit_campaign_keys: v9.number(),
1015
+ limit_campaign_phases: v9.number(),
1016
+ limit_campaign_products: v9.number(),
1017
+ limit_contents: v9.number(),
1018
+ limit_creative_formats: v9.number(),
1019
+ limit_creative_format_variants: v9.number(),
1020
+ limit_terms: v9.number()
1021
+ });
1022
+ var SReadUserLimitationsDocumentById = v9.object({
1023
+ id: v9.number()
1024
+ });
1025
+ var SReadUserLimitationsDocumentByDocumentId = v9.object({
1026
+ documentId: v9.string()
1027
+ });
1028
+ var SUpdateUserLimitationsDocument = v9.object({
1029
+ limit_groups: v9.undefinedable(v9.number()),
1030
+ limit_websites: v9.undefinedable(v9.number()),
1031
+ limit_tracking_links: v9.undefinedable(v9.number()),
1032
+ limit_sources: v9.undefinedable(v9.number()),
1033
+ limit_mediums: v9.undefinedable(v9.number()),
1034
+ limit_campaign_ids: v9.undefinedable(v9.number()),
1035
+ limit_campaign_keys: v9.undefinedable(v9.number()),
1036
+ limit_campaign_phases: v9.undefinedable(v9.number()),
1037
+ limit_campaign_products: v9.undefinedable(v9.number()),
1038
+ limit_contents: v9.undefinedable(v9.number()),
1039
+ limit_creative_formats: v9.undefinedable(v9.number()),
1040
+ limit_creative_format_variants: v9.undefinedable(v9.number()),
1041
+ limit_terms: v9.undefinedable(v9.number())
1042
+ });
1043
+ var SReadUserDocumentToken = v9.object({
1044
+ token: v9.string()
1045
+ });
1046
+ var SLoginUserDocument = v9.object({
1047
+ identifier: IsValidUsername,
1048
+ password: IsValidPassword
1049
+ });
1050
+ var SRegisterUserDocument = v9.object({
1051
+ username: IsValidUsername,
1052
+ email: IsValidEmail,
1053
+ password: IsValidPassword
1054
+ });
1055
+ var SForgotPasswordUserDocument = v9.object({
1056
+ email: IsValidEmail
1057
+ });
1058
+ var SResetPasswordUserDocument = v9.object({
1059
+ password: IsValidPassword,
1060
+ passwordConfirmation: IsValidPassword,
1061
+ code: v9.string()
1062
+ });
1063
+ var SReadUserDocumentById = v9.object({
1064
+ id: v9.number()
1065
+ });
1066
+ var SReadUserDocumentByDocumentId = v9.object({
1067
+ documentId: v9.string()
1068
+ });
1069
+ var SCreateWebsiteDocument = v9.object({
1070
+ domain: IsValidUrlDomain,
1071
+ description: IsValidOrUndefinedDescription,
1072
+ is_secure: IsValidIsSecure,
1073
+ is_active: IsValidIsActive
1074
+ });
1075
+ var SCreateWebsiteDocumentRequest = v9.object({
1076
+ documentId: v9.string(),
1077
+ data: SCreateWebsiteDocument
1078
+ });
1079
+ var SReadWebsiteDocumentById = v9.object({
1080
+ id: v9.number()
1081
+ });
1082
+ var SReadWebsiteDocumentByDocumentId = v9.object({
1083
+ documentId: v9.string()
1084
+ });
1085
+ var SUpdateAsCreatorWebsiteDocument = v9.object({
1086
+ domain: IsValidOrUndefinedUrlDomain,
1087
+ description: IsValidOrUndefinedDescription,
1088
+ is_secure: IsValidIsSecure,
1089
+ is_active: IsValidIsActive
1090
+ });
1091
+ var SUpdateAsInvitedWebsiteDocument = v9.object({
1092
+ description: IsValidOrUndefinedDescription
1093
+ });
1094
+ var SUpdateWebsiteDocumentRequest = v9.object({
1095
+ documentId: v9.string(),
1096
+ data: SUpdateAsCreatorWebsiteDocument
1097
+ });
1098
+ var SDeleteWebsiteDocument = v9.object({
1099
+ documentId: v9.string()
1100
+ });
508
1101
 
509
- export { ERROR_MESSAGE_REGEX_DOMAIN, ERROR_MESSAGE_REGEX_VALUE, IsValidApplyValueAs, IsValidApplyValueTo, IsValidBlocked, IsValidConfirmed, IsValidCost, IsValidCurrentPeriodEnd, IsValidCurrentPeriodStart, IsValidCustomerId, IsValidDescription, IsValidEmail, IsValidGroupUserScopes, IsValidIsActive, IsValidIsSecure, IsValidLabel, IsValidName, IsValidOrUndefinedApplyValueAs, IsValidOrUndefinedApplyValueTo, IsValidOrUndefinedBlocked, IsValidOrUndefinedConfirmed, IsValidOrUndefinedCost, IsValidOrUndefinedCurrentPeriodEnd, IsValidOrUndefinedCurrentPeriodStart, IsValidOrUndefinedCustomerId, IsValidOrUndefinedDescription, IsValidOrUndefinedEmail, IsValidOrUndefinedIsActive, IsValidOrUndefinedIsSecure, IsValidOrUndefinedLabel, IsValidOrUndefinedName, IsValidOrUndefinedPassword, IsValidOrUndefinedPriceId, IsValidOrUndefinedProductId, IsValidOrUndefinedProvider, IsValidOrUndefinedSubscriptionId, IsValidOrUndefinedSubscriptionStatus, IsValidOrUndefinedTrialPeriodEnd, IsValidOrUndefinedUnitAmount, IsValidOrUndefinedUnitTermInMonths, IsValidOrUndefinedUrlDestination, IsValidOrUndefinedUrlDomain, IsValidOrUndefinedUrlFragment, IsValidOrUndefinedUrlPath, IsValidOrUndefinedUrlProtocol, IsValidOrUndefinedUrlQuery, IsValidOrUndefinedUrlUtmCampaign, IsValidOrUndefinedUrlUtmContent, IsValidOrUndefinedUrlUtmCreativeFormat, IsValidOrUndefinedUrlUtmId, IsValidOrUndefinedUrlUtmMedium, IsValidOrUndefinedUrlUtmSource, IsValidOrUndefinedUrlUtmTerm, IsValidOrUndefinedUsername, IsValidOrUndefinedValue, IsValidPassword, IsValidPriceId, IsValidProductId, IsValidProvider, IsValidReferenceDocumentId, IsValidReferenceId, IsValidSubscriptionId, IsValidSubscriptionStatus, IsValidTrialPeriodEnd, IsValidUnitAmount, IsValidUnitTermInMonths, IsValidUrlDestination, IsValidUrlDomain, IsValidUrlFragment, IsValidUrlPath, IsValidUrlProtocol, IsValidUrlQuery, IsValidUrlUtmCampaign, IsValidUrlUtmContent, IsValidUrlUtmCreativeFormat, IsValidUrlUtmId, IsValidUrlUtmMedium, IsValidUrlUtmSource, IsValidUrlUtmTerm, IsValidUsername, IsValidValue, LIMIT_MAX_DESCRIPTION, LIMIT_MAX_DESTINATION, LIMIT_MAX_DOMAIN, LIMIT_MAX_EMAIL, LIMIT_MAX_FRAGMENT, LIMIT_MAX_LABEL, LIMIT_MAX_NAME, LIMIT_MAX_PASSWORD, LIMIT_MAX_PATH, LIMIT_MAX_PRICE_ID, LIMIT_MAX_PRODUCT_ID, LIMIT_MAX_PROVIDER, LIMIT_MAX_QUERY, LIMIT_MAX_STRIPE_ID, LIMIT_MAX_UNIT_TERM_IN_MONTHS, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MAX_VALUE, LIMIT_MIN_DESTINATION, LIMIT_MIN_DOMAIN, LIMIT_MIN_EMAIL, LIMIT_MIN_FRAGMENT, LIMIT_MIN_LABEL, LIMIT_MIN_NAME, LIMIT_MIN_PASSWORD, LIMIT_MIN_PATH, LIMIT_MIN_PRICE_ID, LIMIT_MIN_PRODUCT_ID, LIMIT_MIN_QUERY, LIMIT_MIN_UNIT_AMOUNT, LIMIT_MIN_UNIT_TERM_IN_MONTHS, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, REGEX_DOMAIN, REGEX_VALUE, datePlusDays, dateToday, isValidationFailure, isValidationSuccess, omitUndefined, validateAndClean };
1102
+ export { ERROR_MESSAGE_REGEX_DOMAIN, ERROR_MESSAGE_REGEX_VALUE, IsValidApplyValueAs, IsValidApplyValueTo, IsValidBlocked, IsValidConfirmed, IsValidCost, IsValidCurrentPeriodEnd, IsValidCurrentPeriodStart, IsValidCustomerId, IsValidDescription, IsValidEmail, IsValidGroupUserScopes, IsValidIsActive, IsValidIsSecure, IsValidLabel, IsValidName, IsValidOrUndefinedApplyValueAs, IsValidOrUndefinedApplyValueTo, IsValidOrUndefinedBlocked, IsValidOrUndefinedConfirmed, IsValidOrUndefinedCost, IsValidOrUndefinedCurrentPeriodEnd, IsValidOrUndefinedCurrentPeriodStart, IsValidOrUndefinedCustomerId, IsValidOrUndefinedDescription, IsValidOrUndefinedEmail, IsValidOrUndefinedIsActive, IsValidOrUndefinedIsSecure, IsValidOrUndefinedLabel, IsValidOrUndefinedName, IsValidOrUndefinedPassword, IsValidOrUndefinedPriceId, IsValidOrUndefinedProductId, IsValidOrUndefinedProvider, IsValidOrUndefinedSubscriptionId, IsValidOrUndefinedSubscriptionStatus, IsValidOrUndefinedTrialPeriodEnd, IsValidOrUndefinedUnitAmount, IsValidOrUndefinedUnitTermInMonths, IsValidOrUndefinedUrlDestination, IsValidOrUndefinedUrlDomain, IsValidOrUndefinedUrlFragment, IsValidOrUndefinedUrlPath, IsValidOrUndefinedUrlProtocol, IsValidOrUndefinedUrlQuery, IsValidOrUndefinedUrlUtmCampaign, IsValidOrUndefinedUrlUtmContent, IsValidOrUndefinedUrlUtmCreativeFormat, IsValidOrUndefinedUrlUtmId, IsValidOrUndefinedUrlUtmMedium, IsValidOrUndefinedUrlUtmSource, IsValidOrUndefinedUrlUtmTerm, IsValidOrUndefinedUsername, IsValidOrUndefinedValue, IsValidPassword, IsValidPriceId, IsValidProductId, IsValidProvider, IsValidReferenceDocumentId, IsValidReferenceId, IsValidSubscriptionId, IsValidSubscriptionStatus, IsValidTrialPeriodEnd, IsValidUnitAmount, IsValidUnitTermInMonths, IsValidUrlDestination, IsValidUrlDomain, IsValidUrlFragment, IsValidUrlPath, IsValidUrlProtocol, IsValidUrlQuery, IsValidUrlUtmCampaign, IsValidUrlUtmContent, IsValidUrlUtmCreativeFormat, IsValidUrlUtmId, IsValidUrlUtmMedium, IsValidUrlUtmSource, IsValidUrlUtmTerm, IsValidUsername, IsValidValue, LIMIT_MAX_DESCRIPTION, LIMIT_MAX_DESTINATION, LIMIT_MAX_DOMAIN, LIMIT_MAX_EMAIL, LIMIT_MAX_FRAGMENT, LIMIT_MAX_LABEL, LIMIT_MAX_NAME, LIMIT_MAX_PASSWORD, LIMIT_MAX_PATH, LIMIT_MAX_PRICE_ID, LIMIT_MAX_PRODUCT_ID, LIMIT_MAX_PROVIDER, LIMIT_MAX_QUERY, LIMIT_MAX_STRIPE_ID, LIMIT_MAX_UNIT_TERM_IN_MONTHS, LIMIT_MAX_USERNAME, LIMIT_MAX_UTM_CAMPAIGN, LIMIT_MAX_UTM_CONTENT, LIMIT_MAX_UTM_CREATIVE_FORMAT, LIMIT_MAX_UTM_ID, LIMIT_MAX_UTM_MEDIUM, LIMIT_MAX_UTM_SOURCE, LIMIT_MAX_UTM_TERM, LIMIT_MAX_VALUE, LIMIT_MIN_DESTINATION, LIMIT_MIN_DOMAIN, LIMIT_MIN_EMAIL, LIMIT_MIN_FRAGMENT, LIMIT_MIN_LABEL, LIMIT_MIN_NAME, LIMIT_MIN_PASSWORD, LIMIT_MIN_PATH, LIMIT_MIN_PRICE_ID, LIMIT_MIN_PRODUCT_ID, LIMIT_MIN_QUERY, LIMIT_MIN_UNIT_AMOUNT, LIMIT_MIN_UNIT_TERM_IN_MONTHS, LIMIT_MIN_USERNAME, LIMIT_MIN_UTM_CAMPAIGN, LIMIT_MIN_UTM_CONTENT, LIMIT_MIN_UTM_CREATIVE_FORMAT, LIMIT_MIN_UTM_ID, LIMIT_MIN_UTM_MEDIUM, LIMIT_MIN_UTM_SOURCE, LIMIT_MIN_UTM_TERM, LIMIT_MIN_VALUE, REGEX_DOMAIN, REGEX_VALUE, SCreateCampaignIdDocument, SCreateCampaignIdDocumentRequest, SCreateCampaignKeyDocument, SCreateCampaignKeyDocumentRequest, SCreateCampaignPhaseDocument, SCreateCampaignPhaseDocumentRequest, SCreateCampaignProductDocument, SCreateCampaignProductDocumentRequest, SCreateContentDocument, SCreateContentDocumentRequest, SCreateCreativeFormatDocument, SCreateCreativeFormatDocumentRequest, SCreateCreativeFormatVariantDocument, SCreateCreativeFormatVariantDocumentRequest, SCreateGroupDocument, SCreateGroupUserDocument, SCreateGroupUserDocumentRequest, SCreateMediumDocument, SCreateMediumDocumentRequest, SCreateSourceDocument, SCreateSourceDocumentRequest, SCreateTermDocument, SCreateTermDocumentRequest, SCreateTrackingLinkDocument, SCreateTrackingLinkDocumentRequest, SCreateUserAccountDocument, SCreateUserLimitationsDocument, SCreateWebsiteDocument, SCreateWebsiteDocumentRequest, SDeleteCampaignIdDocument, SDeleteCampaignKeyDocument, SDeleteCampaignPhaseDocument, SDeleteCampaignProductDocument, SDeleteContentDocument, SDeleteCreativeFormatDocument, SDeleteCreativeFormatVariantDocument, SDeleteGroupDocument, SDeleteGroupUserDocument, SDeleteMediumDocument, SDeleteSourceDocument, SDeleteTermDocument, SDeleteTrackingLinkDocument, SDeleteWebsiteDocument, SForgotPasswordUserDocument, SLoginUserDocument, SReadCampaignIdDocumentByDocumentId, SReadCampaignIdDocumentById, SReadCampaignKeyDocumentByDocumentId, SReadCampaignKeyDocumentById, SReadCampaignPhaseDocumentByDocumentId, SReadCampaignPhaseDocumentById, SReadCampaignProductDocumentByDocumentId, SReadCampaignProductDocumentById, SReadContentDocumentByDocumentId, SReadContentDocumentById, SReadCreativeFormatDocumentByDocumentId, SReadCreativeFormatDocumentById, SReadCreativeFormatVariantDocumentByDocumentId, SReadCreativeFormatVariantDocumentById, SReadGroupDocumentByDocumentId, SReadGroupDocumentById, SReadGroupUserDocumentByDocumentId, SReadGroupUserDocumentById, SReadMediumDocumentByDocumentId, SReadMediumDocumentById, SReadSourceDocumentByDocumentId, SReadSourceDocumentById, SReadTermDocumentByDocumentId, SReadTermDocumentById, SReadTrackingLinkDocumentByDocumentId, SReadTrackingLinkDocumentById, SReadUserAccountDocumentByDocumentId, SReadUserAccountDocumentById, SReadUserDocumentByDocumentId, SReadUserDocumentById, SReadUserDocumentToken, SReadUserLimitationsDocumentByDocumentId, SReadUserLimitationsDocumentById, SReadWebsiteDocumentByDocumentId, SReadWebsiteDocumentById, SRegisterUserDocument, SResetPasswordUserDocument, SStripeCheckoutCreateSession, SStripeCheckoutLineItem, SUpdateAsCreatorCampaignIdDocument, SUpdateAsCreatorCampaignKeyDocument, SUpdateAsCreatorCampaignPhaseDocument, SUpdateAsCreatorCampaignProductDocument, SUpdateAsCreatorContentDocument, SUpdateAsCreatorCreativeFormatDocument, SUpdateAsCreatorCreativeFormatVariantDocument, SUpdateAsCreatorGroupDocument, SUpdateAsCreatorMediumDocument, SUpdateAsCreatorSourceDocument, SUpdateAsCreatorTermDocument, SUpdateAsCreatorTrackingLinkDocument, SUpdateAsCreatorWebsiteDocument, SUpdateAsInvitedCampaignIdDocument, SUpdateAsInvitedCampaignKeyDocument, SUpdateAsInvitedCampaignPhaseDocument, SUpdateAsInvitedCampaignProductDocument, SUpdateAsInvitedContentDocument, SUpdateAsInvitedCreativeFormatDocument, SUpdateAsInvitedCreativeFormatVariantDocument, SUpdateAsInvitedGroupDocument, SUpdateAsInvitedMediumDocument, SUpdateAsInvitedSourceDocument, SUpdateAsInvitedTermDocument, SUpdateAsInvitedTrackingLinkDocument, SUpdateAsInvitedWebsiteDocument, SUpdateCampaignIdDocumentRequest, SUpdateCampaignKeyDocumentRequest, SUpdateCampaignPhaseDocumentRequest, SUpdateCampaignProductDocumentRequest, SUpdateContentDocumentRequest, SUpdateCreativeFormatDocumentRequest, SUpdateCreativeFormatVariantDocumentRequest, SUpdateGroupDocumentRequest, SUpdateGroupUserDocument, SUpdateGroupUserDocumentRequest, SUpdateMediumDocumentRequest, SUpdateSourceDocumentRequest, SUpdateTermDocumentRequest, SUpdateTrackingLinkDocumentRequest, SUpdateUserAccountDocument, SUpdateUserLimitationsDocument, SUpdateWebsiteDocumentRequest, datePlusDays, dateToday, isValidationFailure, isValidationSuccess, omitUndefined, validateAndClean };
510
1103
  //# sourceMappingURL=index.js.map
511
1104
  //# sourceMappingURL=index.js.map