@joeygrable94/utm-src-pub-validators 0.0.70 → 0.0.71
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 +59 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +375 -18
- package/dist/index.d.ts +375 -18
- package/dist/index.js +56 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1218,13 +1218,47 @@ var SUtmLinkBuilderPartCampaignDateOptions = [
|
|
|
1218
1218
|
"on a specific date",
|
|
1219
1219
|
"no date"
|
|
1220
1220
|
];
|
|
1221
|
+
var SUtmPartBuilderCampaign = v36__namespace.object({
|
|
1222
|
+
campaign_phase: SCampaignPhaseDocument,
|
|
1223
|
+
campaign_product: v36__namespace.optional(SCampaignProductDocument),
|
|
1224
|
+
campaign_targeting: v36__namespace.optional(
|
|
1225
|
+
v36__namespace.pipe(
|
|
1226
|
+
v36__namespace.array(SCampaignTargetDocument),
|
|
1227
|
+
v36__namespace.minLength(1, "Please select at least one targeting audience."),
|
|
1228
|
+
v36__namespace.maxLength(10, "You can select up to 10 targeting audiences.")
|
|
1229
|
+
)
|
|
1230
|
+
),
|
|
1231
|
+
campaign_key: v36__namespace.optional(SCampaignKeyDocument),
|
|
1232
|
+
campaign_date: v36__namespace.object({
|
|
1233
|
+
format: v36__namespace.picklist(
|
|
1234
|
+
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1235
|
+
"Please select a valid campaign date format."
|
|
1236
|
+
),
|
|
1237
|
+
value: v36__namespace.object({
|
|
1238
|
+
year: v36__namespace.number("Please provide a valid year."),
|
|
1239
|
+
quarter: v36__namespace.optional(v36__namespace.number()),
|
|
1240
|
+
month: v36__namespace.optional(v36__namespace.number()),
|
|
1241
|
+
day: v36__namespace.optional(v36__namespace.number())
|
|
1242
|
+
})
|
|
1243
|
+
}),
|
|
1244
|
+
campaign_id: v36__namespace.optional(SCampaignIdDocument)
|
|
1245
|
+
});
|
|
1246
|
+
var SUtmPartBuilderCreativeFormatVariant = v36__namespace.object({
|
|
1247
|
+
creative_format: v36__namespace.optional(SCreativeFormatDocument),
|
|
1248
|
+
creative_format_variants: v36__namespace.optional(
|
|
1249
|
+
v36__namespace.pipe(
|
|
1250
|
+
v36__namespace.array(SCreativeFormatVariantDocument),
|
|
1251
|
+
v36__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
1252
|
+
v36__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1253
|
+
)
|
|
1254
|
+
)
|
|
1255
|
+
});
|
|
1221
1256
|
var SUtmLinkBuilderTableForm = v36__namespace.object({
|
|
1222
|
-
|
|
1223
|
-
client: IsValidReferenceDocumentId,
|
|
1257
|
+
group: IsValidReferenceDocumentId,
|
|
1224
1258
|
url_destinations: v36__namespace.pipe(
|
|
1225
1259
|
v36__namespace.array(IsValidUrlDestination),
|
|
1226
1260
|
v36__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
1227
|
-
v36__namespace.maxLength(
|
|
1261
|
+
v36__namespace.maxLength(10, "You can provide up to 10 destination URLs.")
|
|
1228
1262
|
),
|
|
1229
1263
|
sources: v36__namespace.pipe(
|
|
1230
1264
|
v36__namespace.array(SSourceDocument),
|
|
@@ -1236,44 +1270,19 @@ var SUtmLinkBuilderTableForm = v36__namespace.object({
|
|
|
1236
1270
|
v36__namespace.minLength(1, "Please select at least one medium."),
|
|
1237
1271
|
v36__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
1238
1272
|
),
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
campaign_date: v36__namespace.object({
|
|
1245
|
-
format: v36__namespace.picklist(
|
|
1246
|
-
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1247
|
-
"Please select a valid campaign date format."
|
|
1248
|
-
),
|
|
1249
|
-
value: v36__namespace.object({
|
|
1250
|
-
year: v36__namespace.number("Please provide a valid year."),
|
|
1251
|
-
quarter: v36__namespace.optional(v36__namespace.number()),
|
|
1252
|
-
month: v36__namespace.optional(v36__namespace.number()),
|
|
1253
|
-
day: v36__namespace.optional(v36__namespace.number())
|
|
1254
|
-
})
|
|
1255
|
-
})
|
|
1256
|
-
}),
|
|
1273
|
+
campaigns: v36__namespace.pipe(
|
|
1274
|
+
v36__namespace.array(SUtmPartBuilderCampaign),
|
|
1275
|
+
v36__namespace.minLength(1, "Please provide at least one campaign."),
|
|
1276
|
+
v36__namespace.maxLength(10, "You can provide up to 10 campaigns.")
|
|
1277
|
+
),
|
|
1257
1278
|
content: v36__namespace.optional(SContentDocument),
|
|
1258
1279
|
creative_formats: v36__namespace.optional(
|
|
1259
1280
|
v36__namespace.pipe(
|
|
1260
|
-
v36__namespace.array(
|
|
1261
|
-
v36__namespace.object({
|
|
1262
|
-
creative_format: v36__namespace.optional(SCreativeFormatDocument),
|
|
1263
|
-
creative_format_variants: v36__namespace.optional(
|
|
1264
|
-
v36__namespace.pipe(
|
|
1265
|
-
v36__namespace.array(SCreativeFormatVariantDocument),
|
|
1266
|
-
v36__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
1267
|
-
v36__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1268
|
-
)
|
|
1269
|
-
)
|
|
1270
|
-
})
|
|
1271
|
-
),
|
|
1281
|
+
v36__namespace.array(SUtmPartBuilderCreativeFormatVariant),
|
|
1272
1282
|
v36__namespace.minLength(1, "Please select at least one creative format."),
|
|
1273
1283
|
v36__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1274
1284
|
)
|
|
1275
|
-
)
|
|
1276
|
-
id: v36__namespace.optional(SCampaignIdDocument)
|
|
1285
|
+
)
|
|
1277
1286
|
});
|
|
1278
1287
|
var SStripeCheckoutLineItem = v36__namespace.object({
|
|
1279
1288
|
price: IsValidPriceId,
|
|
@@ -1339,6 +1348,17 @@ var SCreateMultipleTrackingLinkDocuments = v36__namespace.object({
|
|
|
1339
1348
|
v36__namespace.minLength(1, "Please create at least one tracking link")
|
|
1340
1349
|
)
|
|
1341
1350
|
});
|
|
1351
|
+
var SCreatePreviewTrackingLinkDocument = v36__namespace.object({
|
|
1352
|
+
...SCreateTrackingLinkDocument.entries,
|
|
1353
|
+
is_duplicate: v36__namespace.boolean(),
|
|
1354
|
+
is_saved: v36__namespace.boolean()
|
|
1355
|
+
});
|
|
1356
|
+
var SCreatePreviewMultipleTrackingLinkDocuments = v36__namespace.object({
|
|
1357
|
+
tracking_links: v36__namespace.pipe(
|
|
1358
|
+
v36__namespace.array(SCreatePreviewTrackingLinkDocument),
|
|
1359
|
+
v36__namespace.minLength(1, "Please create at least one tracking link")
|
|
1360
|
+
)
|
|
1361
|
+
});
|
|
1342
1362
|
var SReadTrackingLinkDocumentById = v36__namespace.object({
|
|
1343
1363
|
id: IsValidReferenceId
|
|
1344
1364
|
});
|
|
@@ -3322,6 +3342,8 @@ exports.SCreateMultipleSourceDocuments = SCreateMultipleSourceDocuments;
|
|
|
3322
3342
|
exports.SCreateMultipleTermDocuments = SCreateMultipleTermDocuments;
|
|
3323
3343
|
exports.SCreateMultipleTrackingLinkDocuments = SCreateMultipleTrackingLinkDocuments;
|
|
3324
3344
|
exports.SCreateMultipleWebsiteDocuments = SCreateMultipleWebsiteDocuments;
|
|
3345
|
+
exports.SCreatePreviewMultipleTrackingLinkDocuments = SCreatePreviewMultipleTrackingLinkDocuments;
|
|
3346
|
+
exports.SCreatePreviewTrackingLinkDocument = SCreatePreviewTrackingLinkDocument;
|
|
3325
3347
|
exports.SCreateSourceDocument = SCreateSourceDocument;
|
|
3326
3348
|
exports.SCreateTermDocument = SCreateTermDocument;
|
|
3327
3349
|
exports.SCreateTrackingLinkDocument = SCreateTrackingLinkDocument;
|
|
@@ -3563,6 +3585,8 @@ exports.SUserRelationTrackingLinks = SUserRelationTrackingLinks;
|
|
|
3563
3585
|
exports.SUserRelationsDocument = SUserRelationsDocument;
|
|
3564
3586
|
exports.SUtmLinkBuilderPartCampaignDateOptions = SUtmLinkBuilderPartCampaignDateOptions;
|
|
3565
3587
|
exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
|
|
3588
|
+
exports.SUtmPartBuilderCampaign = SUtmPartBuilderCampaign;
|
|
3589
|
+
exports.SUtmPartBuilderCreativeFormatVariant = SUtmPartBuilderCreativeFormatVariant;
|
|
3566
3590
|
exports.SVerifyGroupUserDocument = SVerifyGroupUserDocument;
|
|
3567
3591
|
exports.SWebsiteDocument = SWebsiteDocument;
|
|
3568
3592
|
exports.SWebsiteDocumentWithRelations = SWebsiteDocumentWithRelations;
|