@joeygrable94/utm-src-pub-validators 0.0.78 → 0.0.79
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 +61 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +87 -6
- package/dist/index.d.ts +87 -6
- package/dist/index.js +54 -46
- 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",
|
|
@@ -768,6 +786,18 @@ var SUtmLinkBuilderPartCampaignObject = v12__namespace.object({
|
|
|
768
786
|
campaign_key: v12__namespace.optional(IsValidUrlUtmPart),
|
|
769
787
|
campaign_date: SUtmLinkBuilderPartCampaignDateObject
|
|
770
788
|
});
|
|
789
|
+
var SUtmLinkBuilderPartCampaigns = v12__namespace.pipe(
|
|
790
|
+
v12__namespace.array(SUtmLinkBuilderPartCampaignObject),
|
|
791
|
+
v12__namespace.minLength(1, "Please provide at least one campaign."),
|
|
792
|
+
v12__namespace.maxLength(10, "You can provide up to 10 campaigns.")
|
|
793
|
+
);
|
|
794
|
+
var SUtmLinkBuilderPartContents = v12__namespace.optional(
|
|
795
|
+
v12__namespace.pipe(
|
|
796
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
797
|
+
v12__namespace.minLength(1, "Please select at least one content."),
|
|
798
|
+
v12__namespace.maxLength(10, "You can select up to 10 contents.")
|
|
799
|
+
)
|
|
800
|
+
);
|
|
771
801
|
var SUtmLinkBuilderPartCreativeFormatObject = v12__namespace.object({
|
|
772
802
|
creative_format: v12__namespace.optional(IsValidUrlUtmPart),
|
|
773
803
|
creative_format_variants: v12__namespace.optional(
|
|
@@ -778,53 +808,31 @@ var SUtmLinkBuilderPartCreativeFormatObject = v12__namespace.object({
|
|
|
778
808
|
)
|
|
779
809
|
)
|
|
780
810
|
});
|
|
781
|
-
var
|
|
782
|
-
|
|
783
|
-
|
|
811
|
+
var SUtmLinkBuilderPartCreativeFormats = v12__namespace.optional(
|
|
812
|
+
v12__namespace.pipe(
|
|
813
|
+
v12__namespace.array(SUtmLinkBuilderPartCreativeFormatObject),
|
|
814
|
+
v12__namespace.minLength(1, "Please select at least one creative format."),
|
|
815
|
+
v12__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
816
|
+
)
|
|
817
|
+
);
|
|
818
|
+
var SUtmLinkBuilderPartTerms = v12__namespace.optional(
|
|
819
|
+
v12__namespace.pipe(
|
|
820
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
821
|
+
v12__namespace.minLength(1, "Please select at least one term."),
|
|
822
|
+
v12__namespace.maxLength(10, "You can select up to 10 terms.")
|
|
823
|
+
)
|
|
824
|
+
);
|
|
825
|
+
var SUtmLinkBuilderPartCampaignId = v12__namespace.optional(IsValidUrlUtmPart);
|
|
784
826
|
var SUtmLinkBuilderTableForm = v12__namespace.object({
|
|
785
827
|
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)
|
|
828
|
+
url_destinations: SUtmLinkBuilderPartUrlDestinations,
|
|
829
|
+
sources: SUtmLinkBuilderPartSources,
|
|
830
|
+
mediums: SUtmLinkBuilderPartMediums,
|
|
831
|
+
campaigns: SUtmLinkBuilderPartCampaigns,
|
|
832
|
+
contents: SUtmLinkBuilderPartContents,
|
|
833
|
+
creative_formats: SUtmLinkBuilderPartCreativeFormats,
|
|
834
|
+
terms: SUtmLinkBuilderPartTerms,
|
|
835
|
+
campaign_id: SUtmLinkBuilderPartCampaignId
|
|
828
836
|
});
|
|
829
837
|
var SStripeCheckoutLineItem = v12__namespace.object({
|
|
830
838
|
price: IsValidPriceId,
|
|
@@ -3622,8 +3630,16 @@ exports.SUserRelationsDocument = SUserRelationsDocument;
|
|
|
3622
3630
|
exports.SUtmLinkBuilderPartCampaignDateFormatOptions = SUtmLinkBuilderPartCampaignDateFormatOptions;
|
|
3623
3631
|
exports.SUtmLinkBuilderPartCampaignDateObject = SUtmLinkBuilderPartCampaignDateObject;
|
|
3624
3632
|
exports.SUtmLinkBuilderPartCampaignDateValue = SUtmLinkBuilderPartCampaignDateValue;
|
|
3633
|
+
exports.SUtmLinkBuilderPartCampaignId = SUtmLinkBuilderPartCampaignId;
|
|
3625
3634
|
exports.SUtmLinkBuilderPartCampaignObject = SUtmLinkBuilderPartCampaignObject;
|
|
3635
|
+
exports.SUtmLinkBuilderPartCampaigns = SUtmLinkBuilderPartCampaigns;
|
|
3636
|
+
exports.SUtmLinkBuilderPartContents = SUtmLinkBuilderPartContents;
|
|
3626
3637
|
exports.SUtmLinkBuilderPartCreativeFormatObject = SUtmLinkBuilderPartCreativeFormatObject;
|
|
3638
|
+
exports.SUtmLinkBuilderPartCreativeFormats = SUtmLinkBuilderPartCreativeFormats;
|
|
3639
|
+
exports.SUtmLinkBuilderPartMediums = SUtmLinkBuilderPartMediums;
|
|
3640
|
+
exports.SUtmLinkBuilderPartSources = SUtmLinkBuilderPartSources;
|
|
3641
|
+
exports.SUtmLinkBuilderPartTerms = SUtmLinkBuilderPartTerms;
|
|
3642
|
+
exports.SUtmLinkBuilderPartUrlDestinations = SUtmLinkBuilderPartUrlDestinations;
|
|
3627
3643
|
exports.SUtmLinkBuilderPartUrlObject = SUtmLinkBuilderPartUrlObject;
|
|
3628
3644
|
exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
|
|
3629
3645
|
exports.SVerifyGroupUserDocument = SVerifyGroupUserDocument;
|