@joeygrable94/utm-src-pub-validators 0.0.40 → 0.0.41
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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -14
- package/dist/index.d.ts +14 -14
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -274,20 +274,20 @@ declare const SQueryListTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
274
274
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
275
275
|
readonly page: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, 1>, 1>;
|
|
276
276
|
readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 10, undefined>, v.MaxValueAction<number, 10000, undefined>]>, 100>, 100>;
|
|
277
|
-
readonly is_active: v.
|
|
278
|
-
readonly destination: v.
|
|
279
|
-
readonly protocol: v.
|
|
280
|
-
readonly domain: v.
|
|
281
|
-
readonly path: v.
|
|
282
|
-
readonly query: v.
|
|
283
|
-
readonly fragment: v.
|
|
284
|
-
readonly utm_source: v.
|
|
285
|
-
readonly utm_medium: v.
|
|
286
|
-
readonly utm_campaign: v.
|
|
287
|
-
readonly utm_creative_format: v.
|
|
288
|
-
readonly utm_content: v.
|
|
289
|
-
readonly utm_term: v.
|
|
290
|
-
readonly utm_id: v.
|
|
277
|
+
readonly is_active: v.SchemaWithFallback<v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>, true>;
|
|
278
|
+
readonly destination: v.OptionalSchema<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">]>, undefined>;
|
|
279
|
+
readonly protocol: v.OptionalSchema<v.PicklistSchema<readonly ["http", "https"], "please provide a valid url protocol">, undefined>;
|
|
280
|
+
readonly domain: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a domain">, v.TrimAction, v.MinLengthAction<string, 10, "the domain is too short, it must be at least 10 characters">, v.MaxLengthAction<string, 253, "the domain is too long, it must be 253 characters or less">, v.RegexAction<string, "please provide a valid domain name">]>, undefined>;
|
|
281
|
+
readonly path: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url path">, v.TrimAction, v.MinLengthAction<string, 1, "the url path is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2038, "the url path is too long, it must be 2038 characters or less">]>, undefined>;
|
|
282
|
+
readonly query: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url query">, v.TrimAction, v.MinLengthAction<string, 1, "the url query is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2038, "the url query is too long, it must be 2038 characters or less">]>, undefined>;
|
|
283
|
+
readonly fragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url hash/fragment">, v.TrimAction, v.MinLengthAction<string, 1, "the url hash/fragment is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2038, "the url hash/fragment is too long, it must be 2038 characters or less">]>, undefined>;
|
|
284
|
+
readonly utm_source: v.OptionalSchema<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: - _ .">]>, undefined>;
|
|
285
|
+
readonly utm_medium: v.OptionalSchema<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: - _ .">]>, undefined>;
|
|
286
|
+
readonly utm_campaign: v.OptionalSchema<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: - _ .">]>, undefined>;
|
|
287
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_creative_format is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2017, "the utm_creative_format is too long, it must be 2017 characters or less">, v.RegexAction<string, "utm_creative_format can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
288
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_content is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2025, "the utm_content is too long, it must be 2025 characters or less">, v.RegexAction<string, "utm_content can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
289
|
+
readonly utm_term: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_term is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2028, "the utm_term is too long, it must be 2028 characters or less">, v.RegexAction<string, "utm_term can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
290
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_id is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2030, "the utm_id is too long, it must be 2030 characters or less">, v.RegexAction<string, "utm_id can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
291
291
|
}, undefined>;
|
|
292
292
|
type SQueryListTrackingLinkDocuments = v.InferOutput<typeof SQueryListTrackingLinkDocuments>;
|
|
293
293
|
declare const SCreateTrackingLinkDocument: v.ObjectSchema<{
|
package/dist/index.d.ts
CHANGED
|
@@ -274,20 +274,20 @@ declare const SQueryListTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
274
274
|
readonly documentId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
275
275
|
readonly page: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 1, undefined>]>, 1>, 1>;
|
|
276
276
|
readonly size: v.SchemaWithFallback<v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, 10, undefined>, v.MaxValueAction<number, 10000, undefined>]>, 100>, 100>;
|
|
277
|
-
readonly is_active: v.
|
|
278
|
-
readonly destination: v.
|
|
279
|
-
readonly protocol: v.
|
|
280
|
-
readonly domain: v.
|
|
281
|
-
readonly path: v.
|
|
282
|
-
readonly query: v.
|
|
283
|
-
readonly fragment: v.
|
|
284
|
-
readonly utm_source: v.
|
|
285
|
-
readonly utm_medium: v.
|
|
286
|
-
readonly utm_campaign: v.
|
|
287
|
-
readonly utm_creative_format: v.
|
|
288
|
-
readonly utm_content: v.
|
|
289
|
-
readonly utm_term: v.
|
|
290
|
-
readonly utm_id: v.
|
|
277
|
+
readonly is_active: v.SchemaWithFallback<v.OptionalSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>, true>;
|
|
278
|
+
readonly destination: v.OptionalSchema<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">]>, undefined>;
|
|
279
|
+
readonly protocol: v.OptionalSchema<v.PicklistSchema<readonly ["http", "https"], "please provide a valid url protocol">, undefined>;
|
|
280
|
+
readonly domain: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a domain">, v.TrimAction, v.MinLengthAction<string, 10, "the domain is too short, it must be at least 10 characters">, v.MaxLengthAction<string, 253, "the domain is too long, it must be 253 characters or less">, v.RegexAction<string, "please provide a valid domain name">]>, undefined>;
|
|
281
|
+
readonly path: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url path">, v.TrimAction, v.MinLengthAction<string, 1, "the url path is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2038, "the url path is too long, it must be 2038 characters or less">]>, undefined>;
|
|
282
|
+
readonly query: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url query">, v.TrimAction, v.MinLengthAction<string, 1, "the url query is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2038, "the url query is too long, it must be 2038 characters or less">]>, undefined>;
|
|
283
|
+
readonly fragment: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a url hash/fragment">, v.TrimAction, v.MinLengthAction<string, 1, "the url hash/fragment is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2038, "the url hash/fragment is too long, it must be 2038 characters or less">]>, undefined>;
|
|
284
|
+
readonly utm_source: v.OptionalSchema<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: - _ .">]>, undefined>;
|
|
285
|
+
readonly utm_medium: v.OptionalSchema<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: - _ .">]>, undefined>;
|
|
286
|
+
readonly utm_campaign: v.OptionalSchema<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: - _ .">]>, undefined>;
|
|
287
|
+
readonly utm_creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_creative_format is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2017, "the utm_creative_format is too long, it must be 2017 characters or less">, v.RegexAction<string, "utm_creative_format can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
288
|
+
readonly utm_content: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_content is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2025, "the utm_content is too long, it must be 2025 characters or less">, v.RegexAction<string, "utm_content can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
289
|
+
readonly utm_term: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_term is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2028, "the utm_term is too long, it must be 2028 characters or less">, v.RegexAction<string, "utm_term can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
290
|
+
readonly utm_id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "the utm_id is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 2030, "the utm_id is too long, it must be 2030 characters or less">, v.RegexAction<string, "utm_id can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
291
291
|
}, undefined>;
|
|
292
292
|
type SQueryListTrackingLinkDocuments = v.InferOutput<typeof SQueryListTrackingLinkDocuments>;
|
|
293
293
|
declare const SCreateTrackingLinkDocument: v.ObjectSchema<{
|
package/dist/index.js
CHANGED
|
@@ -671,20 +671,20 @@ var SQueryListTrackingLinkDocuments = v14.object({
|
|
|
671
671
|
),
|
|
672
672
|
TRACKING_LINK_PAGINATION_DEFAULT_SIZE_LIMIT
|
|
673
673
|
),
|
|
674
|
-
is_active:
|
|
675
|
-
destination:
|
|
676
|
-
protocol:
|
|
677
|
-
domain:
|
|
678
|
-
path:
|
|
679
|
-
query:
|
|
680
|
-
fragment:
|
|
681
|
-
utm_source:
|
|
682
|
-
utm_medium:
|
|
683
|
-
utm_campaign:
|
|
684
|
-
utm_creative_format:
|
|
685
|
-
utm_content:
|
|
686
|
-
utm_term:
|
|
687
|
-
utm_id:
|
|
674
|
+
is_active: v14.fallback(v14.optional(IsValidIsActive), true),
|
|
675
|
+
destination: v14.optional(IsValidUrlDestination),
|
|
676
|
+
protocol: v14.optional(IsValidUrlProtocol),
|
|
677
|
+
domain: v14.optional(IsValidUrlDomain),
|
|
678
|
+
path: v14.optional(IsValidUrlPath),
|
|
679
|
+
query: v14.optional(IsValidUrlQuery),
|
|
680
|
+
fragment: v14.optional(IsValidUrlFragment),
|
|
681
|
+
utm_source: v14.optional(IsValidUrlUtmSource),
|
|
682
|
+
utm_medium: v14.optional(IsValidUrlUtmMedium),
|
|
683
|
+
utm_campaign: v14.optional(IsValidUrlUtmCampaign),
|
|
684
|
+
utm_creative_format: v14.optional(IsValidUrlUtmCreativeFormat),
|
|
685
|
+
utm_content: v14.optional(IsValidUrlUtmContent),
|
|
686
|
+
utm_term: v14.optional(IsValidUrlUtmTerm),
|
|
687
|
+
utm_id: v14.optional(IsValidUrlUtmId)
|
|
688
688
|
});
|
|
689
689
|
var SCreateTrackingLinkDocument = v14.object({
|
|
690
690
|
is_active: IsValidIsActive,
|