@joeygrable94/utm-src-pub-validators 0.0.69 → 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 +60 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +376 -18
- package/dist/index.d.ts +376 -18
- package/dist/index.js +57 -36
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -654,6 +654,7 @@ var SVerifyGroupUserDocument = v36__namespace.object({
|
|
|
654
654
|
});
|
|
655
655
|
var SGroupUserDocumentStatus = v36__namespace.object({
|
|
656
656
|
verified: v36__namespace.boolean(),
|
|
657
|
+
is_owner: v36__namespace.boolean(),
|
|
657
658
|
groupUser: v36__namespace.nullable(IsValidReferenceDocumentId),
|
|
658
659
|
scopes: IsValidGroupUserScopes
|
|
659
660
|
});
|
|
@@ -1217,13 +1218,47 @@ var SUtmLinkBuilderPartCampaignDateOptions = [
|
|
|
1217
1218
|
"on a specific date",
|
|
1218
1219
|
"no date"
|
|
1219
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
|
+
});
|
|
1220
1256
|
var SUtmLinkBuilderTableForm = v36__namespace.object({
|
|
1221
|
-
|
|
1222
|
-
client: IsValidReferenceDocumentId,
|
|
1257
|
+
group: IsValidReferenceDocumentId,
|
|
1223
1258
|
url_destinations: v36__namespace.pipe(
|
|
1224
1259
|
v36__namespace.array(IsValidUrlDestination),
|
|
1225
1260
|
v36__namespace.minLength(1, "Please provide at least one destination URL."),
|
|
1226
|
-
v36__namespace.maxLength(
|
|
1261
|
+
v36__namespace.maxLength(10, "You can provide up to 10 destination URLs.")
|
|
1227
1262
|
),
|
|
1228
1263
|
sources: v36__namespace.pipe(
|
|
1229
1264
|
v36__namespace.array(SSourceDocument),
|
|
@@ -1235,44 +1270,19 @@ var SUtmLinkBuilderTableForm = v36__namespace.object({
|
|
|
1235
1270
|
v36__namespace.minLength(1, "Please select at least one medium."),
|
|
1236
1271
|
v36__namespace.maxLength(10, "You can select up to 10 mediums.")
|
|
1237
1272
|
),
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
campaign_date: v36__namespace.object({
|
|
1244
|
-
format: v36__namespace.picklist(
|
|
1245
|
-
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1246
|
-
"Please select a valid campaign date format."
|
|
1247
|
-
),
|
|
1248
|
-
value: v36__namespace.object({
|
|
1249
|
-
year: v36__namespace.number("Please provide a valid year."),
|
|
1250
|
-
quarter: v36__namespace.optional(v36__namespace.number()),
|
|
1251
|
-
month: v36__namespace.optional(v36__namespace.number()),
|
|
1252
|
-
day: v36__namespace.optional(v36__namespace.number())
|
|
1253
|
-
})
|
|
1254
|
-
})
|
|
1255
|
-
}),
|
|
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
|
+
),
|
|
1256
1278
|
content: v36__namespace.optional(SContentDocument),
|
|
1257
1279
|
creative_formats: v36__namespace.optional(
|
|
1258
1280
|
v36__namespace.pipe(
|
|
1259
|
-
v36__namespace.array(
|
|
1260
|
-
v36__namespace.object({
|
|
1261
|
-
creative_format: v36__namespace.optional(SCreativeFormatDocument),
|
|
1262
|
-
creative_format_variants: v36__namespace.optional(
|
|
1263
|
-
v36__namespace.pipe(
|
|
1264
|
-
v36__namespace.array(SCreativeFormatVariantDocument),
|
|
1265
|
-
v36__namespace.minLength(1, "Please select at least one creative format variations."),
|
|
1266
|
-
v36__namespace.maxLength(10, "You can select up to 10 creative format variations.")
|
|
1267
|
-
)
|
|
1268
|
-
)
|
|
1269
|
-
})
|
|
1270
|
-
),
|
|
1281
|
+
v36__namespace.array(SUtmPartBuilderCreativeFormatVariant),
|
|
1271
1282
|
v36__namespace.minLength(1, "Please select at least one creative format."),
|
|
1272
1283
|
v36__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1273
1284
|
)
|
|
1274
|
-
)
|
|
1275
|
-
id: v36__namespace.optional(SCampaignIdDocument)
|
|
1285
|
+
)
|
|
1276
1286
|
});
|
|
1277
1287
|
var SStripeCheckoutLineItem = v36__namespace.object({
|
|
1278
1288
|
price: IsValidPriceId,
|
|
@@ -1338,6 +1348,17 @@ var SCreateMultipleTrackingLinkDocuments = v36__namespace.object({
|
|
|
1338
1348
|
v36__namespace.minLength(1, "Please create at least one tracking link")
|
|
1339
1349
|
)
|
|
1340
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
|
+
});
|
|
1341
1362
|
var SReadTrackingLinkDocumentById = v36__namespace.object({
|
|
1342
1363
|
id: IsValidReferenceId
|
|
1343
1364
|
});
|
|
@@ -3321,6 +3342,8 @@ exports.SCreateMultipleSourceDocuments = SCreateMultipleSourceDocuments;
|
|
|
3321
3342
|
exports.SCreateMultipleTermDocuments = SCreateMultipleTermDocuments;
|
|
3322
3343
|
exports.SCreateMultipleTrackingLinkDocuments = SCreateMultipleTrackingLinkDocuments;
|
|
3323
3344
|
exports.SCreateMultipleWebsiteDocuments = SCreateMultipleWebsiteDocuments;
|
|
3345
|
+
exports.SCreatePreviewMultipleTrackingLinkDocuments = SCreatePreviewMultipleTrackingLinkDocuments;
|
|
3346
|
+
exports.SCreatePreviewTrackingLinkDocument = SCreatePreviewTrackingLinkDocument;
|
|
3324
3347
|
exports.SCreateSourceDocument = SCreateSourceDocument;
|
|
3325
3348
|
exports.SCreateTermDocument = SCreateTermDocument;
|
|
3326
3349
|
exports.SCreateTrackingLinkDocument = SCreateTrackingLinkDocument;
|
|
@@ -3562,6 +3585,8 @@ exports.SUserRelationTrackingLinks = SUserRelationTrackingLinks;
|
|
|
3562
3585
|
exports.SUserRelationsDocument = SUserRelationsDocument;
|
|
3563
3586
|
exports.SUtmLinkBuilderPartCampaignDateOptions = SUtmLinkBuilderPartCampaignDateOptions;
|
|
3564
3587
|
exports.SUtmLinkBuilderTableForm = SUtmLinkBuilderTableForm;
|
|
3588
|
+
exports.SUtmPartBuilderCampaign = SUtmPartBuilderCampaign;
|
|
3589
|
+
exports.SUtmPartBuilderCreativeFormatVariant = SUtmPartBuilderCreativeFormatVariant;
|
|
3565
3590
|
exports.SVerifyGroupUserDocument = SVerifyGroupUserDocument;
|
|
3566
3591
|
exports.SWebsiteDocument = SWebsiteDocument;
|
|
3567
3592
|
exports.SWebsiteDocumentWithRelations = SWebsiteDocumentWithRelations;
|