@getcommunity/gc-validators 0.0.19 → 0.0.20
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 +30 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +69 -69
- package/dist/index.d.ts +69 -69
- package/dist/index.js +30 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -393,18 +393,18 @@ declare const SCreateUtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
393
393
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
394
394
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
395
395
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
396
|
-
readonly utm_content: v.
|
|
397
|
-
readonly utm_creative_format: v.
|
|
398
|
-
readonly utm_id: v.
|
|
396
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
397
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
398
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
399
399
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
400
|
-
readonly campaign_product: v.
|
|
401
|
-
readonly campaign_targeting: v.
|
|
402
|
-
readonly campaign_key: v.
|
|
403
|
-
readonly creative_format: v.
|
|
404
|
-
readonly creative_format_variants: v.
|
|
405
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
400
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
401
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
402
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
403
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
404
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
405
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
406
406
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
407
|
-
readonly notes: v.
|
|
407
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
408
408
|
}, undefined>;
|
|
409
409
|
type SCreateUtmTrackingLinkDocument = v.InferOutput<typeof SCreateUtmTrackingLinkDocument>;
|
|
410
410
|
declare const SCreateUtmTrackingLinkParts: v.ObjectSchema<{
|
|
@@ -412,18 +412,18 @@ declare const SCreateUtmTrackingLinkParts: v.ObjectSchema<{
|
|
|
412
412
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
413
413
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
414
414
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
415
|
-
readonly utm_content: v.
|
|
416
|
-
readonly utm_creative_format: v.
|
|
417
|
-
readonly utm_id: v.
|
|
415
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
416
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
417
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
418
418
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
419
|
-
readonly campaign_product: v.
|
|
420
|
-
readonly campaign_targeting: v.
|
|
421
|
-
readonly campaign_key: v.
|
|
422
|
-
readonly creative_format: v.
|
|
423
|
-
readonly creative_format_variants: v.
|
|
424
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
419
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
420
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
421
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
422
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
423
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
424
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
425
425
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
426
|
-
readonly notes: v.
|
|
426
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
427
427
|
}, undefined>;
|
|
428
428
|
type SCreateUtmTrackingLinkParts = v.InferOutput<typeof SCreateUtmTrackingLinkParts>;
|
|
429
429
|
declare const SFormCreateMultipleUtmTrackingLinkDocuments: v.ObjectSchema<{
|
|
@@ -434,55 +434,55 @@ declare const SFormCreateMultipleUtmTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
434
434
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
435
435
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
436
436
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
437
|
-
readonly utm_content: v.
|
|
438
|
-
readonly utm_creative_format: v.
|
|
439
|
-
readonly utm_id: v.
|
|
437
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
438
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
439
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
440
440
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
441
|
-
readonly campaign_product: v.
|
|
442
|
-
readonly campaign_targeting: v.
|
|
443
|
-
readonly campaign_key: v.
|
|
444
|
-
readonly creative_format: v.
|
|
445
|
-
readonly creative_format_variants: v.
|
|
446
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
441
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
442
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
443
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
444
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
445
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
446
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
447
447
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
448
|
-
readonly notes: v.
|
|
448
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
449
449
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
450
450
|
url_destination: string;
|
|
451
451
|
utm_source: string;
|
|
452
452
|
utm_medium: string;
|
|
453
453
|
utm_campaign: string;
|
|
454
|
-
utm_content
|
|
455
|
-
utm_creative_format
|
|
456
|
-
utm_id
|
|
454
|
+
utm_content?: string | undefined;
|
|
455
|
+
utm_creative_format?: string | undefined;
|
|
456
|
+
utm_id?: string | undefined;
|
|
457
457
|
campaign_phase: string;
|
|
458
|
-
campaign_product
|
|
459
|
-
campaign_targeting
|
|
460
|
-
campaign_key
|
|
461
|
-
creative_format
|
|
462
|
-
creative_format_variants
|
|
458
|
+
campaign_product?: string | undefined;
|
|
459
|
+
campaign_targeting?: string | undefined;
|
|
460
|
+
campaign_key?: string | undefined;
|
|
461
|
+
creative_format?: string | undefined;
|
|
462
|
+
creative_format_variants?: string | undefined;
|
|
463
463
|
url: string;
|
|
464
464
|
is_active: boolean;
|
|
465
|
-
notes
|
|
465
|
+
notes?: string | undefined;
|
|
466
466
|
}[], 1, "You must provide at least one link to create.">, v.MaxLengthAction<{
|
|
467
467
|
url_destination: string;
|
|
468
468
|
utm_source: string;
|
|
469
469
|
utm_medium: string;
|
|
470
470
|
utm_campaign: string;
|
|
471
|
-
utm_content
|
|
472
|
-
utm_creative_format
|
|
473
|
-
utm_id
|
|
471
|
+
utm_content?: string | undefined;
|
|
472
|
+
utm_creative_format?: string | undefined;
|
|
473
|
+
utm_id?: string | undefined;
|
|
474
474
|
campaign_phase: string;
|
|
475
|
-
campaign_product
|
|
476
|
-
campaign_targeting
|
|
477
|
-
campaign_key
|
|
478
|
-
creative_format
|
|
479
|
-
creative_format_variants
|
|
475
|
+
campaign_product?: string | undefined;
|
|
476
|
+
campaign_targeting?: string | undefined;
|
|
477
|
+
campaign_key?: string | undefined;
|
|
478
|
+
creative_format?: string | undefined;
|
|
479
|
+
creative_format_variants?: string | undefined;
|
|
480
480
|
url: string;
|
|
481
481
|
is_active: boolean;
|
|
482
|
-
notes
|
|
482
|
+
notes?: string | undefined;
|
|
483
483
|
}[], 100, "You can create a maximum of 100 links at once.">]>;
|
|
484
484
|
}, undefined>;
|
|
485
|
-
type SFormCreateMultipleUtmTrackingLinkDocuments = v.
|
|
485
|
+
type SFormCreateMultipleUtmTrackingLinkDocuments = v.InferInput<typeof SFormCreateMultipleUtmTrackingLinkDocuments>;
|
|
486
486
|
declare const SReadUtmTrackingLinkDocumentByDocumentId: v.ObjectSchema<{
|
|
487
487
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>;
|
|
488
488
|
}, undefined>;
|
|
@@ -494,18 +494,18 @@ declare const SUpdateUtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
494
494
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
495
495
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
496
496
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
497
|
-
readonly utm_content: v.
|
|
498
|
-
readonly utm_creative_format: v.
|
|
499
|
-
readonly utm_id: v.
|
|
497
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
498
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
499
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
500
500
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
501
|
-
readonly campaign_product: v.
|
|
502
|
-
readonly campaign_targeting: v.
|
|
503
|
-
readonly campaign_key: v.
|
|
504
|
-
readonly creative_format: v.
|
|
505
|
-
readonly creative_format_variants: v.
|
|
506
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
501
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
502
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
503
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
504
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
505
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
506
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
507
507
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
508
|
-
readonly notes: v.
|
|
508
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
509
509
|
}, undefined>;
|
|
510
510
|
type SUpdateUtmTrackingLinkDocument = v.InferOutput<typeof SUpdateUtmTrackingLinkDocument>;
|
|
511
511
|
declare const SUpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
@@ -517,18 +517,18 @@ declare const SUpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
|
517
517
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
518
518
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
519
519
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
520
|
-
readonly utm_content: v.
|
|
521
|
-
readonly utm_creative_format: v.
|
|
522
|
-
readonly utm_id: v.
|
|
520
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
521
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
522
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
523
523
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
524
|
-
readonly campaign_product: v.
|
|
525
|
-
readonly campaign_targeting: v.
|
|
526
|
-
readonly campaign_key: v.
|
|
527
|
-
readonly creative_format: v.
|
|
528
|
-
readonly creative_format_variants: v.
|
|
529
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
524
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
525
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
526
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
527
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
528
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
529
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
530
530
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
531
|
-
readonly notes: v.
|
|
531
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
532
532
|
}, undefined>;
|
|
533
533
|
}, undefined>;
|
|
534
534
|
type SUpdateUtmTrackingLinkDocumentRequest = v.InferOutput<typeof SUpdateUtmTrackingLinkDocumentRequest>;
|
package/dist/index.d.ts
CHANGED
|
@@ -393,18 +393,18 @@ declare const SCreateUtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
393
393
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
394
394
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
395
395
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
396
|
-
readonly utm_content: v.
|
|
397
|
-
readonly utm_creative_format: v.
|
|
398
|
-
readonly utm_id: v.
|
|
396
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
397
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
398
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
399
399
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
400
|
-
readonly campaign_product: v.
|
|
401
|
-
readonly campaign_targeting: v.
|
|
402
|
-
readonly campaign_key: v.
|
|
403
|
-
readonly creative_format: v.
|
|
404
|
-
readonly creative_format_variants: v.
|
|
405
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
400
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
401
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
402
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
403
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
404
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
405
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
406
406
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
407
|
-
readonly notes: v.
|
|
407
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
408
408
|
}, undefined>;
|
|
409
409
|
type SCreateUtmTrackingLinkDocument = v.InferOutput<typeof SCreateUtmTrackingLinkDocument>;
|
|
410
410
|
declare const SCreateUtmTrackingLinkParts: v.ObjectSchema<{
|
|
@@ -412,18 +412,18 @@ declare const SCreateUtmTrackingLinkParts: v.ObjectSchema<{
|
|
|
412
412
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
413
413
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
414
414
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
415
|
-
readonly utm_content: v.
|
|
416
|
-
readonly utm_creative_format: v.
|
|
417
|
-
readonly utm_id: v.
|
|
415
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
416
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
417
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
418
418
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
419
|
-
readonly campaign_product: v.
|
|
420
|
-
readonly campaign_targeting: v.
|
|
421
|
-
readonly campaign_key: v.
|
|
422
|
-
readonly creative_format: v.
|
|
423
|
-
readonly creative_format_variants: v.
|
|
424
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
419
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
420
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
421
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
422
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
423
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
424
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
425
425
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
426
|
-
readonly notes: v.
|
|
426
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
427
427
|
}, undefined>;
|
|
428
428
|
type SCreateUtmTrackingLinkParts = v.InferOutput<typeof SCreateUtmTrackingLinkParts>;
|
|
429
429
|
declare const SFormCreateMultipleUtmTrackingLinkDocuments: v.ObjectSchema<{
|
|
@@ -434,55 +434,55 @@ declare const SFormCreateMultipleUtmTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
434
434
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
435
435
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
436
436
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
437
|
-
readonly utm_content: v.
|
|
438
|
-
readonly utm_creative_format: v.
|
|
439
|
-
readonly utm_id: v.
|
|
437
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
438
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
439
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
440
440
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
441
|
-
readonly campaign_product: v.
|
|
442
|
-
readonly campaign_targeting: v.
|
|
443
|
-
readonly campaign_key: v.
|
|
444
|
-
readonly creative_format: v.
|
|
445
|
-
readonly creative_format_variants: v.
|
|
446
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
441
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
442
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
443
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
444
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
445
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
446
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
447
447
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
448
|
-
readonly notes: v.
|
|
448
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
449
449
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
450
450
|
url_destination: string;
|
|
451
451
|
utm_source: string;
|
|
452
452
|
utm_medium: string;
|
|
453
453
|
utm_campaign: string;
|
|
454
|
-
utm_content
|
|
455
|
-
utm_creative_format
|
|
456
|
-
utm_id
|
|
454
|
+
utm_content?: string | undefined;
|
|
455
|
+
utm_creative_format?: string | undefined;
|
|
456
|
+
utm_id?: string | undefined;
|
|
457
457
|
campaign_phase: string;
|
|
458
|
-
campaign_product
|
|
459
|
-
campaign_targeting
|
|
460
|
-
campaign_key
|
|
461
|
-
creative_format
|
|
462
|
-
creative_format_variants
|
|
458
|
+
campaign_product?: string | undefined;
|
|
459
|
+
campaign_targeting?: string | undefined;
|
|
460
|
+
campaign_key?: string | undefined;
|
|
461
|
+
creative_format?: string | undefined;
|
|
462
|
+
creative_format_variants?: string | undefined;
|
|
463
463
|
url: string;
|
|
464
464
|
is_active: boolean;
|
|
465
|
-
notes
|
|
465
|
+
notes?: string | undefined;
|
|
466
466
|
}[], 1, "You must provide at least one link to create.">, v.MaxLengthAction<{
|
|
467
467
|
url_destination: string;
|
|
468
468
|
utm_source: string;
|
|
469
469
|
utm_medium: string;
|
|
470
470
|
utm_campaign: string;
|
|
471
|
-
utm_content
|
|
472
|
-
utm_creative_format
|
|
473
|
-
utm_id
|
|
471
|
+
utm_content?: string | undefined;
|
|
472
|
+
utm_creative_format?: string | undefined;
|
|
473
|
+
utm_id?: string | undefined;
|
|
474
474
|
campaign_phase: string;
|
|
475
|
-
campaign_product
|
|
476
|
-
campaign_targeting
|
|
477
|
-
campaign_key
|
|
478
|
-
creative_format
|
|
479
|
-
creative_format_variants
|
|
475
|
+
campaign_product?: string | undefined;
|
|
476
|
+
campaign_targeting?: string | undefined;
|
|
477
|
+
campaign_key?: string | undefined;
|
|
478
|
+
creative_format?: string | undefined;
|
|
479
|
+
creative_format_variants?: string | undefined;
|
|
480
480
|
url: string;
|
|
481
481
|
is_active: boolean;
|
|
482
|
-
notes
|
|
482
|
+
notes?: string | undefined;
|
|
483
483
|
}[], 100, "You can create a maximum of 100 links at once.">]>;
|
|
484
484
|
}, undefined>;
|
|
485
|
-
type SFormCreateMultipleUtmTrackingLinkDocuments = v.
|
|
485
|
+
type SFormCreateMultipleUtmTrackingLinkDocuments = v.InferInput<typeof SFormCreateMultipleUtmTrackingLinkDocuments>;
|
|
486
486
|
declare const SReadUtmTrackingLinkDocumentByDocumentId: v.ObjectSchema<{
|
|
487
487
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.TrimAction, v.MinLengthAction<string, 1, "the document id is too short, it must be at least 1 character">, v.MaxLengthAction<string, 255, "the document id is too long, it must be 255 characters or less">]>;
|
|
488
488
|
}, undefined>;
|
|
@@ -494,18 +494,18 @@ declare const SUpdateUtmTrackingLinkDocument: v.ObjectSchema<{
|
|
|
494
494
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
495
495
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
496
496
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
497
|
-
readonly utm_content: v.
|
|
498
|
-
readonly utm_creative_format: v.
|
|
499
|
-
readonly utm_id: v.
|
|
497
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
498
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
499
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
500
500
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
501
|
-
readonly campaign_product: v.
|
|
502
|
-
readonly campaign_targeting: v.
|
|
503
|
-
readonly campaign_key: v.
|
|
504
|
-
readonly creative_format: v.
|
|
505
|
-
readonly creative_format_variants: v.
|
|
506
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
501
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
502
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
503
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
504
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
505
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
506
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
507
507
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
508
|
-
readonly notes: v.
|
|
508
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
509
509
|
}, undefined>;
|
|
510
510
|
type SUpdateUtmTrackingLinkDocument = v.InferOutput<typeof SUpdateUtmTrackingLinkDocument>;
|
|
511
511
|
declare const SUpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
@@ -517,18 +517,18 @@ declare const SUpdateUtmTrackingLinkDocumentRequest: v.ObjectSchema<{
|
|
|
517
517
|
readonly utm_source: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_source is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_source is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_source can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
518
518
|
readonly utm_medium: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_medium is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2026, "the utm_medium is too long, it must be 2026 characters or less">, v.RegexAction<string, "utm_medium can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
519
519
|
readonly utm_campaign: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_campaign is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2024, "the utm_campaign is too long, it must be 2024 characters or less">, v.RegexAction<string, "utm_campaign can only contain letters, numbers, and the special characters: - _ .">]>;
|
|
520
|
-
readonly utm_content: v.
|
|
521
|
-
readonly utm_creative_format: v.
|
|
522
|
-
readonly utm_id: v.
|
|
520
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
521
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
522
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
523
523
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>;
|
|
524
|
-
readonly campaign_product: v.
|
|
525
|
-
readonly campaign_targeting: v.
|
|
526
|
-
readonly campaign_key: v.
|
|
527
|
-
readonly creative_format: v.
|
|
528
|
-
readonly creative_format_variants: v.
|
|
529
|
-
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">]>;
|
|
524
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
525
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
526
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.CheckAction<string, "Campaign key name may only contain alphanumeric characters, and underscores.">]>, undefined>;
|
|
527
|
+
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The string you provided is too long, please abbreviate your string to be 255 characters or less.">]>, undefined>;
|
|
528
|
+
readonly creative_format_variants: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.TransformAction<string[], string>]>, undefined>;
|
|
529
|
+
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please enter a valid URL with UTM parameters.">]>;
|
|
530
530
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
531
|
-
readonly notes: v.
|
|
531
|
+
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 5000, "The string you provided is too long, please abbreviate your string to be 5000 characters or less.">]>, undefined>;
|
|
532
532
|
}, undefined>;
|
|
533
533
|
}, undefined>;
|
|
534
534
|
type SUpdateUtmTrackingLinkDocumentRequest = v.InferOutput<typeof SUpdateUtmTrackingLinkDocumentRequest>;
|