@joeygrable94/utm-src-pub-validators 0.0.78 → 0.0.80
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.cjs +91 -63
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +105 -6
- package/dist/index.d.ts +105 -6
- package/dist/index.js +78 -64
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -735,6 +735,24 @@ var SUpdateGroupDocumentRequest = v12__namespace.union([
|
|
|
735
735
|
var SDeleteGroupDocument = v12__namespace.object({
|
|
736
736
|
documentId: IsValidReferenceDocumentId
|
|
737
737
|
});
|
|
738
|
+
var SUtmLinkBuilderPartUrlObject = v12__namespace.object({
|
|
739
|
+
url: IsValidUrlDestination
|
|
740
|
+
});
|
|
741
|
+
var SUtmLinkBuilderPartUrlDestinations = v12__namespace.pipe(
|
|
742
|
+
v12__namespace.array(SUtmLinkBuilderPartUrlObject),
|
|
743
|
+
v12__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
744
|
+
v12__namespace.maxLength(10, "You can provide up to 10 destination URLs.")
|
|
745
|
+
);
|
|
746
|
+
var SUtmLinkBuilderPartSources = v12__namespace.pipe(
|
|
747
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
748
|
+
v12__namespace.minLength(1, "Please select at least one source."),
|
|
749
|
+
v12__namespace.maxLength(10, "You can select up to 10 sources.")
|
|
750
|
+
);
|
|
751
|
+
var SUtmLinkBuilderPartMediums = v12__namespace.pipe(
|
|
752
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
753
|
+
v12__namespace.minLength(1, "Please select at least one medium."),
|
|
754
|
+
v12__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
755
|
+
);
|
|
738
756
|
var SUtmLinkBuilderPartCampaignDateFormatOptions = [
|
|
739
757
|
"no date",
|
|
740
758
|
"annually",
|
|
@@ -755,76 +773,72 @@ var SUtmLinkBuilderPartCampaignDateObject = v12__namespace.object({
|
|
|
755
773
|
),
|
|
756
774
|
value: SUtmLinkBuilderPartCampaignDateValue
|
|
757
775
|
});
|
|
776
|
+
var SUtmLinkBuilderPartCampaignPhase = v12__namespace.optional(IsValidUrlUtmPart);
|
|
777
|
+
var SUtmLinkBuilderPartCampaignProduct = v12__namespace.optional(IsValidUrlUtmPart);
|
|
778
|
+
var SUtmLinkBuilderPartCampaignTargeting = v12__namespace.optional(
|
|
779
|
+
v12__namespace.pipe(
|
|
780
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
781
|
+
v12__namespace.minLength(1, "Please select at least one targeting audience."),
|
|
782
|
+
v12__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
783
|
+
)
|
|
784
|
+
);
|
|
785
|
+
var SUtmLinkBuilderPartCampaignKey = v12__namespace.optional(IsValidUrlUtmPart);
|
|
758
786
|
var SUtmLinkBuilderPartCampaignObject = v12__namespace.object({
|
|
759
|
-
campaign_phase:
|
|
760
|
-
campaign_product:
|
|
761
|
-
campaign_targeting:
|
|
762
|
-
|
|
763
|
-
v12__namespace.array(IsValidUrlUtmPart),
|
|
764
|
-
v12__namespace.minLength(1, "Please select at least one targeting audience."),
|
|
765
|
-
v12__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
766
|
-
)
|
|
767
|
-
),
|
|
768
|
-
campaign_key: v12__namespace.optional(IsValidUrlUtmPart),
|
|
787
|
+
campaign_phase: SUtmLinkBuilderPartCampaignPhase,
|
|
788
|
+
campaign_product: SUtmLinkBuilderPartCampaignProduct,
|
|
789
|
+
campaign_targeting: SUtmLinkBuilderPartCampaignTargeting,
|
|
790
|
+
campaign_key: SUtmLinkBuilderPartCampaignKey,
|
|
769
791
|
campaign_date: SUtmLinkBuilderPartCampaignDateObject
|
|
770
792
|
});
|
|
771
|
-
var
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
)
|
|
793
|
+
var SUtmLinkBuilderPartCampaigns = v12__namespace.pipe(
|
|
794
|
+
v12__namespace.array(SUtmLinkBuilderPartCampaignObject),
|
|
795
|
+
v12__namespace.minLength(1, "Please provide at least one campaign."),
|
|
796
|
+
v12__namespace.maxLength(10, "You can provide up to 10 campaigns.")
|
|
797
|
+
);
|
|
798
|
+
var SUtmLinkBuilderPartContents = v12__namespace.optional(
|
|
799
|
+
v12__namespace.pipe(
|
|
800
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
801
|
+
v12__namespace.minLength(1, "Please select at least one content."),
|
|
802
|
+
v12__namespace.maxLength(10, "You can select up to 10 contents.")
|
|
779
803
|
)
|
|
804
|
+
);
|
|
805
|
+
var SUtmLinkBuilderPartCreativeFormatValue = v12__namespace.optional(IsValidUrlUtmPart);
|
|
806
|
+
var SUtmLinkBuilderPartCreativeFormatVariantValue = v12__namespace.optional(
|
|
807
|
+
v12__namespace.pipe(
|
|
808
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
809
|
+
v12__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
810
|
+
v12__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
811
|
+
)
|
|
812
|
+
);
|
|
813
|
+
var SUtmLinkBuilderPartCreativeFormatObject = v12__namespace.object({
|
|
814
|
+
creative_format: SUtmLinkBuilderPartCreativeFormatValue,
|
|
815
|
+
creative_format_variants: SUtmLinkBuilderPartCreativeFormatVariantValue
|
|
780
816
|
});
|
|
781
|
-
var
|
|
782
|
-
|
|
783
|
-
|
|
817
|
+
var SUtmLinkBuilderPartCreativeFormats = v12__namespace.optional(
|
|
818
|
+
v12__namespace.pipe(
|
|
819
|
+
v12__namespace.array(SUtmLinkBuilderPartCreativeFormatObject),
|
|
820
|
+
v12__namespace.minLength(1, "Please select at least one creative format."),
|
|
821
|
+
v12__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
822
|
+
)
|
|
823
|
+
);
|
|
824
|
+
var SUtmLinkBuilderPartTerms = v12__namespace.optional(
|
|
825
|
+
v12__namespace.pipe(
|
|
826
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
827
|
+
v12__namespace.minLength(1, "Please select at least one term."),
|
|
828
|
+
v12__namespace.maxLength(10, "You can select up to 10 terms.")
|
|
829
|
+
)
|
|
830
|
+
);
|
|
831
|
+
var SUtmLinkBuilderPartCampaignId = v12__namespace.optional(IsValidUrlUtmPart);
|
|
784
832
|
var SUtmLinkBuilderTableForm = v12__namespace.object({
|
|
785
833
|
group: IsValidReferenceDocumentId,
|
|
786
|
-
url_destinations:
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
v12__namespace.maxLength(10, "You can select up to 10 sources.")
|
|
795
|
-
),
|
|
796
|
-
mediums: v12__namespace.pipe(
|
|
797
|
-
v12__namespace.array(IsValidUrlUtmPart),
|
|
798
|
-
v12__namespace.minLength(1, "Please select at least one medium."),
|
|
799
|
-
v12__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
800
|
-
),
|
|
801
|
-
campaigns: v12__namespace.pipe(
|
|
802
|
-
v12__namespace.array(SUtmLinkBuilderPartCampaignObject),
|
|
803
|
-
v12__namespace.minLength(1, "Please provide at least one campaign."),
|
|
804
|
-
v12__namespace.maxLength(10, "You can provide up to 10 campaigns.")
|
|
805
|
-
),
|
|
806
|
-
contents: v12__namespace.optional(
|
|
807
|
-
v12__namespace.pipe(
|
|
808
|
-
v12__namespace.array(IsValidUrlUtmPart),
|
|
809
|
-
v12__namespace.minLength(1, "Please select at least one content."),
|
|
810
|
-
v12__namespace.maxLength(10, "You can select up to 10 contents.")
|
|
811
|
-
)
|
|
812
|
-
),
|
|
813
|
-
creative_formats: v12__namespace.optional(
|
|
814
|
-
v12__namespace.pipe(
|
|
815
|
-
v12__namespace.array(SUtmLinkBuilderPartCreativeFormatObject),
|
|
816
|
-
v12__namespace.minLength(1, "Please select at least one creative format."),
|
|
817
|
-
v12__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
818
|
-
)
|
|
819
|
-
),
|
|
820
|
-
terms: v12__namespace.optional(
|
|
821
|
-
v12__namespace.pipe(
|
|
822
|
-
v12__namespace.array(IsValidUrlUtmPart),
|
|
823
|
-
v12__namespace.minLength(1, "Please select at least one term."),
|
|
824
|
-
v12__namespace.maxLength(10, "You can select up to 10 terms.")
|
|
825
|
-
)
|
|
826
|
-
),
|
|
827
|
-
campaign_id: v12__namespace.optional(IsValidUrlUtmPart)
|
|
834
|
+
url_destinations: SUtmLinkBuilderPartUrlDestinations,
|
|
835
|
+
sources: SUtmLinkBuilderPartSources,
|
|
836
|
+
mediums: SUtmLinkBuilderPartMediums,
|
|
837
|
+
campaigns: SUtmLinkBuilderPartCampaigns,
|
|
838
|
+
contents: SUtmLinkBuilderPartContents,
|
|
839
|
+
creative_formats: SUtmLinkBuilderPartCreativeFormats,
|
|
840
|
+
terms: SUtmLinkBuilderPartTerms,
|
|
841
|
+
campaign_id: SUtmLinkBuilderPartCampaignId
|
|
828
842
|
});
|
|
829
843
|
var SStripeCheckoutLineItem = v12__namespace.object({
|
|
830
844
|
price: IsValidPriceId,
|
|
@@ -3622,8 +3636,22 @@ exports.SUserRelationsDocument = SUserRelationsDocument;
|
|
|
3622
3636
|
exports.SUtmLinkBuilderPartCampaignDateFormatOptions = SUtmLinkBuilderPartCampaignDateFormatOptions;
|
|
3623
3637
|
exports.SUtmLinkBuilderPartCampaignDateObject = SUtmLinkBuilderPartCampaignDateObject;
|
|
3624
3638
|
exports.SUtmLinkBuilderPartCampaignDateValue = SUtmLinkBuilderPartCampaignDateValue;
|
|
3639
|
+
exports.SUtmLinkBuilderPartCampaignId = SUtmLinkBuilderPartCampaignId;
|
|
3640
|
+
exports.SUtmLinkBuilderPartCampaignKey = SUtmLinkBuilderPartCampaignKey;
|
|
3625
3641
|
exports.SUtmLinkBuilderPartCampaignObject = SUtmLinkBuilderPartCampaignObject;
|
|
3642
|
+
exports.SUtmLinkBuilderPartCampaignPhase = SUtmLinkBuilderPartCampaignPhase;
|
|
3643
|
+
exports.SUtmLinkBuilderPartCampaignProduct = SUtmLinkBuilderPartCampaignProduct;
|
|
3644
|
+
exports.SUtmLinkBuilderPartCampaignTargeting = SUtmLinkBuilderPartCampaignTargeting;
|
|
3645
|
+
exports.SUtmLinkBuilderPartCampaigns = SUtmLinkBuilderPartCampaigns;
|
|
3646
|
+
exports.SUtmLinkBuilderPartContents = SUtmLinkBuilderPartContents;
|
|
3626
3647
|
exports.SUtmLinkBuilderPartCreativeFormatObject = SUtmLinkBuilderPartCreativeFormatObject;
|
|
3648
|
+
exports.SUtmLinkBuilderPartCreativeFormatValue = SUtmLinkBuilderPartCreativeFormatValue;
|
|
3649
|
+
exports.SUtmLinkBuilderPartCreativeFormatVariantValue = SUtmLinkBuilderPartCreativeFormatVariantValue;
|
|
3650
|
+
exports.SUtmLinkBuilderPartCreativeFormats = SUtmLinkBuilderPartCreativeFormats;
|
|
3651
|
+
exports.SUtmLinkBuilderPartMediums = SUtmLinkBuilderPartMediums;
|
|
3652
|
+
exports.SUtmLinkBuilderPartSources = SUtmLinkBuilderPartSources;
|
|
3653
|
+
exports.SUtmLinkBuilderPartTerms = SUtmLinkBuilderPartTerms;
|
|
3654
|
+
exports.SUtmLinkBuilderPartUrlDestinations = SUtmLinkBuilderPartUrlDestinations;
|
|
3627
3655
|
exports.SUtmLinkBuilderPartUrlObject = SUtmLinkBuilderPartUrlObject;
|
|
3628
3656
|
exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
|
|
3629
3657
|
exports.SVerifyGroupUserDocument = SVerifyGroupUserDocument;
|