@joeygrable94/utm-src-pub-validators 0.0.73 → 0.0.75
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 +948 -944
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.js +947 -943
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -264,7 +264,7 @@ declare const SDeleteGroupDocument: v.ObjectSchema<{
|
|
|
264
264
|
}, undefined>;
|
|
265
265
|
type SDeleteGroupDocument = v.InferOutput<typeof SDeleteGroupDocument>;
|
|
266
266
|
|
|
267
|
-
declare const SUtmLinkBuilderPartCampaignDateOptions: readonly ["annually", "quarterly", "monthly", "on a specific date"
|
|
267
|
+
declare const SUtmLinkBuilderPartCampaignDateOptions: readonly ["no date", "annually", "quarterly", "monthly", "on a specific date"];
|
|
268
268
|
type SUtmLinkBuilderPartCampaignDateValue = (typeof SUtmLinkBuilderPartCampaignDateOptions)[number];
|
|
269
269
|
type SUtmPartBuilderCampaignInput = v.InferInput<typeof SUtmPartBuilderCampaign>;
|
|
270
270
|
declare const SUtmPartBuilderCampaign: v.ObjectSchema<{
|
|
@@ -273,7 +273,7 @@ declare const SUtmPartBuilderCampaign: v.ObjectSchema<{
|
|
|
273
273
|
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one targeting audience.">, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting audiences.">]>, undefined>;
|
|
274
274
|
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
275
275
|
readonly campaign_date: v.ObjectSchema<{
|
|
276
|
-
readonly format: v.PicklistSchema<readonly ["annually", "quarterly", "monthly", "on a specific date"
|
|
276
|
+
readonly format: v.PicklistSchema<readonly ["no date", "annually", "quarterly", "monthly", "on a specific date"], "Please select a valid campaign date format.">;
|
|
277
277
|
readonly value: v.ObjectSchema<{
|
|
278
278
|
readonly year: v.NumberSchema<"Please provide a valid year.">;
|
|
279
279
|
readonly quarter: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -293,7 +293,13 @@ type SUtmPartBuilderCreativeFormatVariant = v.InferOutput<typeof SUtmPartBuilder
|
|
|
293
293
|
type SUtmLinkBuilderTableFormInput = v.InferInput<typeof SUtmLinkBuilderTableForm>;
|
|
294
294
|
declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
295
295
|
readonly group: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
296
|
-
readonly url_destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
296
|
+
readonly url_destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
297
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url destination">, v.TrimAction, v.MinLengthAction<string, 10, "the url destination is too short, it must be at least 10 characters">, v.MaxLengthAction<string, 2048, "the url destination is too long, it must be 2048 characters or less">, v.UrlAction<string, "please provide a valid url">]>;
|
|
298
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
299
|
+
url: string;
|
|
300
|
+
}[], 1, "Please provide at least one destination URL.">, v.MaxLengthAction<{
|
|
301
|
+
url: string;
|
|
302
|
+
}[], 10, "You can provide up to 10 destination URLs.">]>;
|
|
297
303
|
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one source.">, v.MaxLengthAction<string[], 10, "You can select up to 10 sources.">]>;
|
|
298
304
|
readonly mediums: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one medium.">, v.MaxLengthAction<string[], 10, "You can select up to 10 mediums.">]>;
|
|
299
305
|
readonly campaigns: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
@@ -302,7 +308,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
302
308
|
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one targeting audience.">, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting audiences.">]>, undefined>;
|
|
303
309
|
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
304
310
|
readonly campaign_date: v.ObjectSchema<{
|
|
305
|
-
readonly format: v.PicklistSchema<readonly ["annually", "quarterly", "monthly", "on a specific date"
|
|
311
|
+
readonly format: v.PicklistSchema<readonly ["no date", "annually", "quarterly", "monthly", "on a specific date"], "Please select a valid campaign date format.">;
|
|
306
312
|
readonly value: v.ObjectSchema<{
|
|
307
313
|
readonly year: v.NumberSchema<"Please provide a valid year.">;
|
|
308
314
|
readonly quarter: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -317,7 +323,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
317
323
|
campaign_targeting?: string[] | undefined;
|
|
318
324
|
campaign_key?: string | undefined;
|
|
319
325
|
campaign_date: {
|
|
320
|
-
format: "annually" | "quarterly" | "monthly" | "on a specific date"
|
|
326
|
+
format: "no date" | "annually" | "quarterly" | "monthly" | "on a specific date";
|
|
321
327
|
value: {
|
|
322
328
|
year: number;
|
|
323
329
|
quarter?: number | undefined;
|
|
@@ -332,7 +338,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
332
338
|
campaign_targeting?: string[] | undefined;
|
|
333
339
|
campaign_key?: string | undefined;
|
|
334
340
|
campaign_date: {
|
|
335
|
-
format: "annually" | "quarterly" | "monthly" | "on a specific date"
|
|
341
|
+
format: "no date" | "annually" | "quarterly" | "monthly" | "on a specific date";
|
|
336
342
|
value: {
|
|
337
343
|
year: number;
|
|
338
344
|
quarter?: number | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -264,7 +264,7 @@ declare const SDeleteGroupDocument: v.ObjectSchema<{
|
|
|
264
264
|
}, undefined>;
|
|
265
265
|
type SDeleteGroupDocument = v.InferOutput<typeof SDeleteGroupDocument>;
|
|
266
266
|
|
|
267
|
-
declare const SUtmLinkBuilderPartCampaignDateOptions: readonly ["annually", "quarterly", "monthly", "on a specific date"
|
|
267
|
+
declare const SUtmLinkBuilderPartCampaignDateOptions: readonly ["no date", "annually", "quarterly", "monthly", "on a specific date"];
|
|
268
268
|
type SUtmLinkBuilderPartCampaignDateValue = (typeof SUtmLinkBuilderPartCampaignDateOptions)[number];
|
|
269
269
|
type SUtmPartBuilderCampaignInput = v.InferInput<typeof SUtmPartBuilderCampaign>;
|
|
270
270
|
declare const SUtmPartBuilderCampaign: v.ObjectSchema<{
|
|
@@ -273,7 +273,7 @@ declare const SUtmPartBuilderCampaign: v.ObjectSchema<{
|
|
|
273
273
|
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one targeting audience.">, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting audiences.">]>, undefined>;
|
|
274
274
|
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
275
275
|
readonly campaign_date: v.ObjectSchema<{
|
|
276
|
-
readonly format: v.PicklistSchema<readonly ["annually", "quarterly", "monthly", "on a specific date"
|
|
276
|
+
readonly format: v.PicklistSchema<readonly ["no date", "annually", "quarterly", "monthly", "on a specific date"], "Please select a valid campaign date format.">;
|
|
277
277
|
readonly value: v.ObjectSchema<{
|
|
278
278
|
readonly year: v.NumberSchema<"Please provide a valid year.">;
|
|
279
279
|
readonly quarter: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -293,7 +293,13 @@ type SUtmPartBuilderCreativeFormatVariant = v.InferOutput<typeof SUtmPartBuilder
|
|
|
293
293
|
type SUtmLinkBuilderTableFormInput = v.InferInput<typeof SUtmLinkBuilderTableForm>;
|
|
294
294
|
declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
295
295
|
readonly group: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
296
|
-
readonly url_destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.
|
|
296
|
+
readonly url_destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
297
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url destination">, v.TrimAction, v.MinLengthAction<string, 10, "the url destination is too short, it must be at least 10 characters">, v.MaxLengthAction<string, 2048, "the url destination is too long, it must be 2048 characters or less">, v.UrlAction<string, "please provide a valid url">]>;
|
|
298
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
299
|
+
url: string;
|
|
300
|
+
}[], 1, "Please provide at least one destination URL.">, v.MaxLengthAction<{
|
|
301
|
+
url: string;
|
|
302
|
+
}[], 10, "You can provide up to 10 destination URLs.">]>;
|
|
297
303
|
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one source.">, v.MaxLengthAction<string[], 10, "You can select up to 10 sources.">]>;
|
|
298
304
|
readonly mediums: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one medium.">, v.MaxLengthAction<string[], 10, "You can select up to 10 mediums.">]>;
|
|
299
305
|
readonly campaigns: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
@@ -302,7 +308,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
302
308
|
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one targeting audience.">, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting audiences.">]>, undefined>;
|
|
303
309
|
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "this value is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the value is too long, it must be 255 characters or less">, v.RegexAction<string, "value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
304
310
|
readonly campaign_date: v.ObjectSchema<{
|
|
305
|
-
readonly format: v.PicklistSchema<readonly ["annually", "quarterly", "monthly", "on a specific date"
|
|
311
|
+
readonly format: v.PicklistSchema<readonly ["no date", "annually", "quarterly", "monthly", "on a specific date"], "Please select a valid campaign date format.">;
|
|
306
312
|
readonly value: v.ObjectSchema<{
|
|
307
313
|
readonly year: v.NumberSchema<"Please provide a valid year.">;
|
|
308
314
|
readonly quarter: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
@@ -317,7 +323,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
317
323
|
campaign_targeting?: string[] | undefined;
|
|
318
324
|
campaign_key?: string | undefined;
|
|
319
325
|
campaign_date: {
|
|
320
|
-
format: "annually" | "quarterly" | "monthly" | "on a specific date"
|
|
326
|
+
format: "no date" | "annually" | "quarterly" | "monthly" | "on a specific date";
|
|
321
327
|
value: {
|
|
322
328
|
year: number;
|
|
323
329
|
quarter?: number | undefined;
|
|
@@ -332,7 +338,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
332
338
|
campaign_targeting?: string[] | undefined;
|
|
333
339
|
campaign_key?: string | undefined;
|
|
334
340
|
campaign_date: {
|
|
335
|
-
format: "annually" | "quarterly" | "monthly" | "on a specific date"
|
|
341
|
+
format: "no date" | "annually" | "quarterly" | "monthly" | "on a specific date";
|
|
336
342
|
value: {
|
|
337
343
|
year: number;
|
|
338
344
|
quarter?: number | undefined;
|