@joeygrable94/utm-src-pub-validators 0.0.72 → 0.0.73

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.d.cts CHANGED
@@ -342,7 +342,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
342
342
  };
343
343
  campaign_id: string;
344
344
  }[], 10, "You can provide up to 10 campaigns.">]>;
345
- readonly content: 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>;
345
+ readonly contents: 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 content.">, v.MaxLengthAction<string[], 10, "You can select up to 10 contents.">]>;
346
346
  readonly creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
347
347
  readonly creative_format: 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>;
348
348
  readonly creative_format_variants: 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 creative format variations.">, v.MaxLengthAction<string[], 10, "You can select up to 10 creative format variations.">]>, undefined>;
@@ -353,6 +353,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
353
353
  creative_format?: string | undefined;
354
354
  creative_format_variants?: string[] | undefined;
355
355
  }[], 10, "You can select up to 10 creative formats.">]>, undefined>;
356
+ readonly terms: 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 term.">, v.MaxLengthAction<string[], 10, "You can select up to 10 terms.">]>;
356
357
  }, undefined>;
357
358
  type SUtmLinkBuilderTableForm = v.InferOutput<typeof SUtmLinkBuilderTableForm>;
358
359
 
package/dist/index.d.ts CHANGED
@@ -342,7 +342,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
342
342
  };
343
343
  campaign_id: string;
344
344
  }[], 10, "You can provide up to 10 campaigns.">]>;
345
- readonly content: 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>;
345
+ readonly contents: 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 content.">, v.MaxLengthAction<string[], 10, "You can select up to 10 contents.">]>;
346
346
  readonly creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
347
347
  readonly creative_format: 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>;
348
348
  readonly creative_format_variants: 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 creative format variations.">, v.MaxLengthAction<string[], 10, "You can select up to 10 creative format variations.">]>, undefined>;
@@ -353,6 +353,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
353
353
  creative_format?: string | undefined;
354
354
  creative_format_variants?: string[] | undefined;
355
355
  }[], 10, "You can select up to 10 creative formats.">]>, undefined>;
356
+ readonly terms: 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 term.">, v.MaxLengthAction<string[], 10, "You can select up to 10 terms.">]>;
356
357
  }, undefined>;
357
358
  type SUtmLinkBuilderTableForm = v.InferOutput<typeof SUtmLinkBuilderTableForm>;
358
359
 
package/dist/index.js CHANGED
@@ -775,13 +775,22 @@ var SUtmLinkBuilderTableForm = v9.object({
775
775
  v9.minLength(1, "Please provide at least one campaign."),
776
776
  v9.maxLength(10, "You can provide up to 10 campaigns.")
777
777
  ),
778
- content: v9.optional(IsValidUrlUtmPart),
778
+ contents: v9.pipe(
779
+ v9.array(IsValidUrlUtmPart),
780
+ v9.minLength(1, "Please select at least one content."),
781
+ v9.maxLength(10, "You can select up to 10 contents.")
782
+ ),
779
783
  creative_formats: v9.optional(
780
784
  v9.pipe(
781
785
  v9.array(SUtmPartBuilderCreativeFormatVariant),
782
786
  v9.minLength(1, "Please select at least one creative format."),
783
787
  v9.maxLength(10, "You can select up to 10 creative formats.")
784
788
  )
789
+ ),
790
+ terms: v9.pipe(
791
+ v9.array(IsValidUrlUtmPart),
792
+ v9.minLength(1, "Please select at least one term."),
793
+ v9.maxLength(10, "You can select up to 10 terms.")
785
794
  )
786
795
  });
787
796
  var SStripeCheckoutLineItem = v9.object({