@joeygrable94/utm-src-pub-validators 0.0.63 → 0.0.64
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -14
- package/dist/index.d.ts +11 -14
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -236,21 +236,15 @@ declare const SUpdateAsInvitedGroupDocumentRequest: v.ObjectSchema<{
|
|
|
236
236
|
}, undefined>;
|
|
237
237
|
type SUpdateAsInvitedGroupDocumentRequest = v.InferOutput<typeof SUpdateAsInvitedGroupDocumentRequest>;
|
|
238
238
|
declare const SUpdateGroupDocumentRequest: v.UnionSchema<[v.ObjectSchema<{
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
readonly apply_value_to: v.UndefinedableSchema<v.PicklistSchema<readonly ["source", "medium", "campaign", "content", "creative", "term", "id"], undefined>, undefined>;
|
|
246
|
-
readonly apply_value_as: v.UndefinedableSchema<v.PicklistSchema<readonly ["prefix", "suffix"], undefined>, undefined>;
|
|
247
|
-
}, undefined>;
|
|
239
|
+
readonly label: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>, undefined>;
|
|
240
|
+
readonly value: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.MinLengthAction<string, 1, "the 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, "the value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
241
|
+
readonly description: v.UndefinedableSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>, undefined>;
|
|
242
|
+
readonly is_active: v.UndefinedableSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>;
|
|
243
|
+
readonly apply_value_to: v.UndefinedableSchema<v.PicklistSchema<readonly ["source", "medium", "campaign", "content", "creative", "term", "id"], undefined>, undefined>;
|
|
244
|
+
readonly apply_value_as: v.UndefinedableSchema<v.PicklistSchema<readonly ["prefix", "suffix"], undefined>, undefined>;
|
|
248
245
|
}, undefined>, v.ObjectSchema<{
|
|
249
|
-
readonly
|
|
250
|
-
readonly
|
|
251
|
-
readonly label: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>, undefined>;
|
|
252
|
-
readonly description: v.UndefinedableSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>, undefined>;
|
|
253
|
-
}, undefined>;
|
|
246
|
+
readonly label: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>, undefined>;
|
|
247
|
+
readonly description: v.UndefinedableSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>, undefined>;
|
|
254
248
|
}, undefined>], undefined>;
|
|
255
249
|
type SUpdateGroupDocumentRequest = v.InferOutput<typeof SUpdateGroupDocumentRequest>;
|
|
256
250
|
declare const SDeleteGroupDocument: v.ObjectSchema<{
|
|
@@ -532,6 +526,7 @@ declare const SQueryListTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
532
526
|
}, undefined>;
|
|
533
527
|
type SQueryListTrackingLinkDocuments = v.InferOutput<typeof SQueryListTrackingLinkDocuments>;
|
|
534
528
|
declare const SCreateTrackingLinkDocument: v.ObjectSchema<{
|
|
529
|
+
readonly group: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
535
530
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
536
531
|
readonly destination: 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">]>;
|
|
537
532
|
readonly protocol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<readonly ["http", "https"], "please provide a valid url protocol">]>;
|
|
@@ -550,6 +545,7 @@ declare const SCreateTrackingLinkDocument: v.ObjectSchema<{
|
|
|
550
545
|
type SCreateTrackingLinkDocument = v.InferOutput<typeof SCreateTrackingLinkDocument>;
|
|
551
546
|
declare const SCreateMultipleTrackingLinkDocuments: v.ObjectSchema<{
|
|
552
547
|
readonly tracking_links: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
548
|
+
readonly group: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
553
549
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
554
550
|
readonly destination: 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">]>;
|
|
555
551
|
readonly protocol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<readonly ["http", "https"], "please provide a valid url protocol">]>;
|
|
@@ -565,6 +561,7 @@ declare const SCreateMultipleTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
565
561
|
readonly utm_term: 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: - _ .">]>;
|
|
566
562
|
readonly utm_id: 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: - _ .">]>;
|
|
567
563
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
564
|
+
group: string;
|
|
568
565
|
is_active: boolean;
|
|
569
566
|
destination: string;
|
|
570
567
|
protocol: "http" | "https";
|
package/dist/index.d.ts
CHANGED
|
@@ -236,21 +236,15 @@ declare const SUpdateAsInvitedGroupDocumentRequest: v.ObjectSchema<{
|
|
|
236
236
|
}, undefined>;
|
|
237
237
|
type SUpdateAsInvitedGroupDocumentRequest = v.InferOutput<typeof SUpdateAsInvitedGroupDocumentRequest>;
|
|
238
238
|
declare const SUpdateGroupDocumentRequest: v.UnionSchema<[v.ObjectSchema<{
|
|
239
|
-
readonly
|
|
240
|
-
readonly
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
readonly apply_value_to: v.UndefinedableSchema<v.PicklistSchema<readonly ["source", "medium", "campaign", "content", "creative", "term", "id"], undefined>, undefined>;
|
|
246
|
-
readonly apply_value_as: v.UndefinedableSchema<v.PicklistSchema<readonly ["prefix", "suffix"], undefined>, undefined>;
|
|
247
|
-
}, undefined>;
|
|
239
|
+
readonly label: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>, undefined>;
|
|
240
|
+
readonly value: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.MinLengthAction<string, 1, "the 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, "the value can only contain letters, numbers, and the special characters: - _ .">]>, undefined>;
|
|
241
|
+
readonly description: v.UndefinedableSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>, undefined>;
|
|
242
|
+
readonly is_active: v.UndefinedableSchema<v.BooleanSchema<"isActive must be a boolean">, undefined>;
|
|
243
|
+
readonly apply_value_to: v.UndefinedableSchema<v.PicklistSchema<readonly ["source", "medium", "campaign", "content", "creative", "term", "id"], undefined>, undefined>;
|
|
244
|
+
readonly apply_value_as: v.UndefinedableSchema<v.PicklistSchema<readonly ["prefix", "suffix"], undefined>, undefined>;
|
|
248
245
|
}, undefined>, v.ObjectSchema<{
|
|
249
|
-
readonly
|
|
250
|
-
readonly
|
|
251
|
-
readonly label: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>, undefined>;
|
|
252
|
-
readonly description: v.UndefinedableSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>, undefined>;
|
|
253
|
-
}, undefined>;
|
|
246
|
+
readonly label: v.UndefinedableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a label">, v.TrimAction, v.MinLengthAction<string, 1, "the label is too short, it must be at least 1 characters">, v.MaxLengthAction<string, 255, "the label is too long, it must be 255 characters or less">]>, undefined>;
|
|
247
|
+
readonly description: v.UndefinedableSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<"the description must be a string">, v.TrimAction, v.MaxLengthAction<string, 1024, "the description is too long, it must be 1024 characters or less">]>, undefined>, undefined>;
|
|
254
248
|
}, undefined>], undefined>;
|
|
255
249
|
type SUpdateGroupDocumentRequest = v.InferOutput<typeof SUpdateGroupDocumentRequest>;
|
|
256
250
|
declare const SDeleteGroupDocument: v.ObjectSchema<{
|
|
@@ -532,6 +526,7 @@ declare const SQueryListTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
532
526
|
}, undefined>;
|
|
533
527
|
type SQueryListTrackingLinkDocuments = v.InferOutput<typeof SQueryListTrackingLinkDocuments>;
|
|
534
528
|
declare const SCreateTrackingLinkDocument: v.ObjectSchema<{
|
|
529
|
+
readonly group: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
535
530
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
536
531
|
readonly destination: 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">]>;
|
|
537
532
|
readonly protocol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<readonly ["http", "https"], "please provide a valid url protocol">]>;
|
|
@@ -550,6 +545,7 @@ declare const SCreateTrackingLinkDocument: v.ObjectSchema<{
|
|
|
550
545
|
type SCreateTrackingLinkDocument = v.InferOutput<typeof SCreateTrackingLinkDocument>;
|
|
551
546
|
declare const SCreateMultipleTrackingLinkDocuments: v.ObjectSchema<{
|
|
552
547
|
readonly tracking_links: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
548
|
+
readonly group: v.SchemaWithPipe<readonly [v.StringSchema<"please provide a valid document id">, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 255, undefined>]>;
|
|
553
549
|
readonly is_active: v.BooleanSchema<"isActive must be a boolean">;
|
|
554
550
|
readonly destination: 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">]>;
|
|
555
551
|
readonly protocol: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.PicklistSchema<readonly ["http", "https"], "please provide a valid url protocol">]>;
|
|
@@ -565,6 +561,7 @@ declare const SCreateMultipleTrackingLinkDocuments: v.ObjectSchema<{
|
|
|
565
561
|
readonly utm_term: 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: - _ .">]>;
|
|
566
562
|
readonly utm_id: 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: - _ .">]>;
|
|
567
563
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
564
|
+
group: string;
|
|
568
565
|
is_active: boolean;
|
|
569
566
|
destination: string;
|
|
570
567
|
protocol: "http" | "https";
|
package/dist/index.js
CHANGED
|
@@ -681,8 +681,8 @@ var SUpdateAsInvitedGroupDocumentRequest = v36.object({
|
|
|
681
681
|
data: SUpdateAsInvitedGroupDocument
|
|
682
682
|
});
|
|
683
683
|
var SUpdateGroupDocumentRequest = v36.union([
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
SUpdateAsCreatorGroupDocument,
|
|
685
|
+
SUpdateAsInvitedGroupDocument
|
|
686
686
|
]);
|
|
687
687
|
var SDeleteGroupDocument = v36.object({
|
|
688
688
|
documentId: IsValidReferenceDocumentId
|
|
@@ -1285,6 +1285,7 @@ var SQueryListTrackingLinkDocuments = v36.object({
|
|
|
1285
1285
|
creator: v36.optional(IsValidReferenceDocumentId)
|
|
1286
1286
|
});
|
|
1287
1287
|
var SCreateTrackingLinkDocument = v36.object({
|
|
1288
|
+
group: IsValidReferenceDocumentId,
|
|
1288
1289
|
is_active: IsValidIsActive,
|
|
1289
1290
|
destination: IsValidUrlDestination,
|
|
1290
1291
|
protocol: IsValidUrlProtocol,
|