@getcommunity/gc-validators 0.0.32 → 0.0.33
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 +53 -55
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +53 -55
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -404,7 +404,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
404
404
|
readonly url_destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please remove any query parameters from the URL.">]>, undefined>, v.MinLengthAction<string[], 1, "Please provide at least one destination URL.">, v.MaxLengthAction<string[], 100, "You can provide up to 100 destination URLs.">]>;
|
|
405
405
|
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This source value is too long.">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one source.">, v.MaxLengthAction<string[], 10, "You can select up to 10 sources.">]>;
|
|
406
406
|
readonly mediums: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This medium value is too long.">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one medium.">, v.MaxLengthAction<string[], 10, "You can select up to 10 mediums.">]>;
|
|
407
|
-
readonly campaign: v.
|
|
407
|
+
readonly campaign: v.ObjectSchema<{
|
|
408
408
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This medium value is too long.">]>;
|
|
409
409
|
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This medium value is too long.">]>, undefined>;
|
|
410
410
|
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This value is too long.">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one targeting option.">, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting options.">, v.TransformAction<string[], string>]>, undefined>;
|
|
@@ -418,7 +418,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
418
418
|
readonly day: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
419
419
|
}, undefined>;
|
|
420
420
|
}, undefined>, undefined>;
|
|
421
|
-
}, undefined
|
|
421
|
+
}, undefined>;
|
|
422
422
|
readonly contents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This content value is too long.">]>, undefined>;
|
|
423
423
|
readonly creative_formats: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
424
424
|
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This creative format value is too long.">]>, undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -404,7 +404,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
404
404
|
readonly url_destinations: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.UrlAction<string, "Please enter a valid URL.">, v.CheckAction<string, "Please remove any query parameters from the URL.">]>, undefined>, v.MinLengthAction<string[], 1, "Please provide at least one destination URL.">, v.MaxLengthAction<string[], 100, "You can provide up to 100 destination URLs.">]>;
|
|
405
405
|
readonly sources: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This source value is too long.">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one source.">, v.MaxLengthAction<string[], 10, "You can select up to 10 sources.">]>;
|
|
406
406
|
readonly mediums: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This medium value is too long.">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one medium.">, v.MaxLengthAction<string[], 10, "You can select up to 10 mediums.">]>;
|
|
407
|
-
readonly campaign: v.
|
|
407
|
+
readonly campaign: v.ObjectSchema<{
|
|
408
408
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This medium value is too long.">]>;
|
|
409
409
|
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This medium value is too long.">]>, undefined>;
|
|
410
410
|
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This value is too long.">]>, undefined>, v.MinLengthAction<string[], 1, "Please select at least one targeting option.">, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting options.">, v.TransformAction<string[], string>]>, undefined>;
|
|
@@ -418,7 +418,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
418
418
|
readonly day: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
|
|
419
419
|
}, undefined>;
|
|
420
420
|
}, undefined>, undefined>;
|
|
421
|
-
}, undefined
|
|
421
|
+
}, undefined>;
|
|
422
422
|
readonly contents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This content value is too long.">]>, undefined>;
|
|
423
423
|
readonly creative_formats: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
424
424
|
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "This creative format value is too long.">]>, undefined>;
|
package/dist/index.js
CHANGED
|
@@ -1052,65 +1052,63 @@ var SUtmLinkBuilderTableForm = v4.object({
|
|
|
1052
1052
|
v4.minLength(1, "Please select at least one medium."),
|
|
1053
1053
|
v4.maxLength(10, "You can select up to 10 mediums.")
|
|
1054
1054
|
),
|
|
1055
|
-
campaign: v4.
|
|
1056
|
-
v4.
|
|
1057
|
-
|
|
1055
|
+
campaign: v4.object({
|
|
1056
|
+
campaign_phase: v4.pipe(
|
|
1057
|
+
v4.string(),
|
|
1058
|
+
v4.trim(),
|
|
1059
|
+
v4.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "This medium value is too long.")
|
|
1060
|
+
),
|
|
1061
|
+
campaign_product: v4.optional(
|
|
1062
|
+
v4.pipe(
|
|
1058
1063
|
v4.string(),
|
|
1059
1064
|
v4.trim(),
|
|
1060
1065
|
v4.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "This medium value is too long.")
|
|
1061
|
-
),
|
|
1062
|
-
campaign_product: v4.optional(
|
|
1063
|
-
v4.pipe(
|
|
1064
|
-
v4.string(),
|
|
1065
|
-
v4.trim(),
|
|
1066
|
-
v4.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "This medium value is too long.")
|
|
1067
|
-
)
|
|
1068
|
-
),
|
|
1069
|
-
campaign_targeting: v4.optional(
|
|
1070
|
-
v4.pipe(
|
|
1071
|
-
v4.array(
|
|
1072
|
-
v4.pipe(
|
|
1073
|
-
v4.string(),
|
|
1074
|
-
v4.trim(),
|
|
1075
|
-
v4.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "This value is too long.")
|
|
1076
|
-
)
|
|
1077
|
-
),
|
|
1078
|
-
v4.minLength(1, "Please select at least one targeting option."),
|
|
1079
|
-
v4.maxLength(10, "You can select up to 10 targeting options."),
|
|
1080
|
-
v4.transform((value) => value.join(","))
|
|
1081
|
-
)
|
|
1082
|
-
),
|
|
1083
|
-
campaign_key: v4.optional(
|
|
1084
|
-
v4.pipe(
|
|
1085
|
-
v4.string("please provide a value"),
|
|
1086
|
-
v4.trim(),
|
|
1087
|
-
v4.minLength(
|
|
1088
|
-
LIMIT_MIN_VALUE,
|
|
1089
|
-
`the value is too short, it must be at least ${LIMIT_MIN_VALUE} characters`
|
|
1090
|
-
),
|
|
1091
|
-
v4.maxLength(
|
|
1092
|
-
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1093
|
-
`the value is too long, it must be ${LIMIT_SHORT_STRING_MAX_LENGTH} characters or less`
|
|
1094
|
-
),
|
|
1095
|
-
v4.regex(REGEX_UTM_VALUE, `the value ${ERROR_MESSAGE_REGEX_UTM_VALUE}`)
|
|
1096
|
-
)
|
|
1097
|
-
),
|
|
1098
|
-
campaign_date: v4.optional(
|
|
1099
|
-
v4.object({
|
|
1100
|
-
format: v4.picklist(
|
|
1101
|
-
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1102
|
-
"Please select a valid campaign date format."
|
|
1103
|
-
),
|
|
1104
|
-
value: v4.object({
|
|
1105
|
-
year: v4.number(),
|
|
1106
|
-
quarter: v4.optional(v4.number()),
|
|
1107
|
-
month: v4.optional(v4.number()),
|
|
1108
|
-
day: v4.optional(v4.number())
|
|
1109
|
-
})
|
|
1110
|
-
})
|
|
1111
1066
|
)
|
|
1112
|
-
|
|
1113
|
-
|
|
1067
|
+
),
|
|
1068
|
+
campaign_targeting: v4.optional(
|
|
1069
|
+
v4.pipe(
|
|
1070
|
+
v4.array(
|
|
1071
|
+
v4.pipe(
|
|
1072
|
+
v4.string(),
|
|
1073
|
+
v4.trim(),
|
|
1074
|
+
v4.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "This value is too long.")
|
|
1075
|
+
)
|
|
1076
|
+
),
|
|
1077
|
+
v4.minLength(1, "Please select at least one targeting option."),
|
|
1078
|
+
v4.maxLength(10, "You can select up to 10 targeting options."),
|
|
1079
|
+
v4.transform((value) => value.join(","))
|
|
1080
|
+
)
|
|
1081
|
+
),
|
|
1082
|
+
campaign_key: v4.optional(
|
|
1083
|
+
v4.pipe(
|
|
1084
|
+
v4.string("please provide a value"),
|
|
1085
|
+
v4.trim(),
|
|
1086
|
+
v4.minLength(
|
|
1087
|
+
LIMIT_MIN_VALUE,
|
|
1088
|
+
`the value is too short, it must be at least ${LIMIT_MIN_VALUE} characters`
|
|
1089
|
+
),
|
|
1090
|
+
v4.maxLength(
|
|
1091
|
+
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1092
|
+
`the value is too long, it must be ${LIMIT_SHORT_STRING_MAX_LENGTH} characters or less`
|
|
1093
|
+
),
|
|
1094
|
+
v4.regex(REGEX_UTM_VALUE, `the value ${ERROR_MESSAGE_REGEX_UTM_VALUE}`)
|
|
1095
|
+
)
|
|
1096
|
+
),
|
|
1097
|
+
campaign_date: v4.optional(
|
|
1098
|
+
v4.object({
|
|
1099
|
+
format: v4.picklist(
|
|
1100
|
+
SUtmLinkBuilderPartCampaignDateOptions,
|
|
1101
|
+
"Please select a valid campaign date format."
|
|
1102
|
+
),
|
|
1103
|
+
value: v4.object({
|
|
1104
|
+
year: v4.number(),
|
|
1105
|
+
quarter: v4.optional(v4.number()),
|
|
1106
|
+
month: v4.optional(v4.number()),
|
|
1107
|
+
day: v4.optional(v4.number())
|
|
1108
|
+
})
|
|
1109
|
+
})
|
|
1110
|
+
)
|
|
1111
|
+
}),
|
|
1114
1112
|
contents: v4.optional(
|
|
1115
1113
|
v4.pipe(
|
|
1116
1114
|
v4.string(),
|