@joeygrable94/utm-src-pub-validators 0.0.79 → 0.0.81
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 +36 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +22 -2
- package/dist/index.d.ts +22 -2
- package/dist/index.js +30 -23
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -760,6 +760,10 @@ var SUtmLinkBuilderPartCampaignDateFormatOptions = [
|
|
|
760
760
|
"monthly",
|
|
761
761
|
"on a specific date"
|
|
762
762
|
];
|
|
763
|
+
var SUtmLinkBuilderPartCampaignDateFormat = v12__namespace.picklist(
|
|
764
|
+
SUtmLinkBuilderPartCampaignDateFormatOptions,
|
|
765
|
+
"Please select a valid campaign date format."
|
|
766
|
+
);
|
|
763
767
|
var SUtmLinkBuilderPartCampaignDateValue = v12__namespace.object({
|
|
764
768
|
year: v12__namespace.number("Please provide a valid year."),
|
|
765
769
|
quarter: v12__namespace.optional(v12__namespace.number()),
|
|
@@ -767,23 +771,24 @@ var SUtmLinkBuilderPartCampaignDateValue = v12__namespace.object({
|
|
|
767
771
|
day: v12__namespace.optional(v12__namespace.number())
|
|
768
772
|
});
|
|
769
773
|
var SUtmLinkBuilderPartCampaignDateObject = v12__namespace.object({
|
|
770
|
-
format:
|
|
771
|
-
SUtmLinkBuilderPartCampaignDateFormatOptions,
|
|
772
|
-
"Please select a valid campaign date format."
|
|
773
|
-
),
|
|
774
|
+
format: SUtmLinkBuilderPartCampaignDateFormat,
|
|
774
775
|
value: SUtmLinkBuilderPartCampaignDateValue
|
|
775
776
|
});
|
|
777
|
+
var SUtmLinkBuilderPartCampaignPhase = v12__namespace.optional(IsValidUrlUtmPart);
|
|
778
|
+
var SUtmLinkBuilderPartCampaignProduct = v12__namespace.optional(IsValidUrlUtmPart);
|
|
779
|
+
var SUtmLinkBuilderPartCampaignTargeting = v12__namespace.optional(
|
|
780
|
+
v12__namespace.pipe(
|
|
781
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
782
|
+
v12__namespace.minLength(1, "Please select at least one targeting audience."),
|
|
783
|
+
v12__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
784
|
+
)
|
|
785
|
+
);
|
|
786
|
+
var SUtmLinkBuilderPartCampaignKey = v12__namespace.optional(IsValidUrlUtmPart);
|
|
776
787
|
var SUtmLinkBuilderPartCampaignObject = v12__namespace.object({
|
|
777
|
-
campaign_phase:
|
|
778
|
-
campaign_product:
|
|
779
|
-
campaign_targeting:
|
|
780
|
-
|
|
781
|
-
v12__namespace.array(IsValidUrlUtmPart),
|
|
782
|
-
v12__namespace.minLength(1, "Please select at least one targeting audience."),
|
|
783
|
-
v12__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
784
|
-
)
|
|
785
|
-
),
|
|
786
|
-
campaign_key: v12__namespace.optional(IsValidUrlUtmPart),
|
|
788
|
+
campaign_phase: SUtmLinkBuilderPartCampaignPhase,
|
|
789
|
+
campaign_product: SUtmLinkBuilderPartCampaignProduct,
|
|
790
|
+
campaign_targeting: SUtmLinkBuilderPartCampaignTargeting,
|
|
791
|
+
campaign_key: SUtmLinkBuilderPartCampaignKey,
|
|
787
792
|
campaign_date: SUtmLinkBuilderPartCampaignDateObject
|
|
788
793
|
});
|
|
789
794
|
var SUtmLinkBuilderPartCampaigns = v12__namespace.pipe(
|
|
@@ -798,15 +803,17 @@ var SUtmLinkBuilderPartContents = v12__namespace.optional(
|
|
|
798
803
|
v12__namespace.maxLength(10, "You can select up to 10 contents.")
|
|
799
804
|
)
|
|
800
805
|
);
|
|
801
|
-
var
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
v12__namespace.
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
v12__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
808
|
-
)
|
|
806
|
+
var SUtmLinkBuilderPartCreativeFormatValue = v12__namespace.optional(IsValidUrlUtmPart);
|
|
807
|
+
var SUtmLinkBuilderPartCreativeFormatVariantValue = v12__namespace.optional(
|
|
808
|
+
v12__namespace.pipe(
|
|
809
|
+
v12__namespace.array(IsValidUrlUtmPart),
|
|
810
|
+
v12__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
811
|
+
v12__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
809
812
|
)
|
|
813
|
+
);
|
|
814
|
+
var SUtmLinkBuilderPartCreativeFormatObject = v12__namespace.object({
|
|
815
|
+
creative_format: SUtmLinkBuilderPartCreativeFormatValue,
|
|
816
|
+
creative_format_variants: SUtmLinkBuilderPartCreativeFormatVariantValue
|
|
810
817
|
});
|
|
811
818
|
var SUtmLinkBuilderPartCreativeFormats = v12__namespace.optional(
|
|
812
819
|
v12__namespace.pipe(
|
|
@@ -3627,14 +3634,21 @@ exports.SUserRelationSources = SUserRelationSources;
|
|
|
3627
3634
|
exports.SUserRelationTerms = SUserRelationTerms;
|
|
3628
3635
|
exports.SUserRelationTrackingLinks = SUserRelationTrackingLinks;
|
|
3629
3636
|
exports.SUserRelationsDocument = SUserRelationsDocument;
|
|
3637
|
+
exports.SUtmLinkBuilderPartCampaignDateFormat = SUtmLinkBuilderPartCampaignDateFormat;
|
|
3630
3638
|
exports.SUtmLinkBuilderPartCampaignDateFormatOptions = SUtmLinkBuilderPartCampaignDateFormatOptions;
|
|
3631
3639
|
exports.SUtmLinkBuilderPartCampaignDateObject = SUtmLinkBuilderPartCampaignDateObject;
|
|
3632
3640
|
exports.SUtmLinkBuilderPartCampaignDateValue = SUtmLinkBuilderPartCampaignDateValue;
|
|
3633
3641
|
exports.SUtmLinkBuilderPartCampaignId = SUtmLinkBuilderPartCampaignId;
|
|
3642
|
+
exports.SUtmLinkBuilderPartCampaignKey = SUtmLinkBuilderPartCampaignKey;
|
|
3634
3643
|
exports.SUtmLinkBuilderPartCampaignObject = SUtmLinkBuilderPartCampaignObject;
|
|
3644
|
+
exports.SUtmLinkBuilderPartCampaignPhase = SUtmLinkBuilderPartCampaignPhase;
|
|
3645
|
+
exports.SUtmLinkBuilderPartCampaignProduct = SUtmLinkBuilderPartCampaignProduct;
|
|
3646
|
+
exports.SUtmLinkBuilderPartCampaignTargeting = SUtmLinkBuilderPartCampaignTargeting;
|
|
3635
3647
|
exports.SUtmLinkBuilderPartCampaigns = SUtmLinkBuilderPartCampaigns;
|
|
3636
3648
|
exports.SUtmLinkBuilderPartContents = SUtmLinkBuilderPartContents;
|
|
3637
3649
|
exports.SUtmLinkBuilderPartCreativeFormatObject = SUtmLinkBuilderPartCreativeFormatObject;
|
|
3650
|
+
exports.SUtmLinkBuilderPartCreativeFormatValue = SUtmLinkBuilderPartCreativeFormatValue;
|
|
3651
|
+
exports.SUtmLinkBuilderPartCreativeFormatVariantValue = SUtmLinkBuilderPartCreativeFormatVariantValue;
|
|
3638
3652
|
exports.SUtmLinkBuilderPartCreativeFormats = SUtmLinkBuilderPartCreativeFormats;
|
|
3639
3653
|
exports.SUtmLinkBuilderPartMediums = SUtmLinkBuilderPartMediums;
|
|
3640
3654
|
exports.SUtmLinkBuilderPartSources = SUtmLinkBuilderPartSources;
|