@getcommunity/gc-validators 0.0.36 → 0.0.38
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 +28 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +28 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -407,9 +407,9 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
407
407
|
readonly mediums: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The medium value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The 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.">]>;
|
|
408
408
|
readonly campaign: v.ObjectSchema<{
|
|
409
409
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The campaign phase value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The campaign phase value is too long.">]>;
|
|
410
|
-
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.
|
|
411
|
-
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The campaign targeting value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The campaign targeting value is too long.">]>, undefined>, v.
|
|
412
|
-
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.
|
|
410
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The campaign product value is too long.">]>, undefined>;
|
|
411
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The campaign targeting value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The campaign targeting value is too long.">]>, undefined>, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting options.">]>, undefined>;
|
|
412
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, 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>;
|
|
413
413
|
readonly campaign_date: v.ObjectSchema<{
|
|
414
414
|
readonly format: v.PicklistSchema<readonly ["annually", "quarterly", "monthly", "on a specific date", "no date"], "Please select a valid campaign date format.">;
|
|
415
415
|
readonly value: v.ObjectSchema<{
|
|
@@ -421,7 +421,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
421
421
|
}, undefined>;
|
|
422
422
|
}, undefined>;
|
|
423
423
|
readonly contents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The content value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The content value is too long.">]>, undefined>;
|
|
424
|
-
readonly creative_formats: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
424
|
+
readonly creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
425
425
|
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The creative format value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The creative format value is too long.">]>, undefined>;
|
|
426
426
|
readonly creative_format_variants: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The creative variant value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The creative variant value is too long.">]>, undefined>, undefined>;
|
|
427
427
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
@@ -430,7 +430,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
430
430
|
}[], 1, "Please select at least one creative format.">, v.MaxLengthAction<{
|
|
431
431
|
creative_format?: string | undefined;
|
|
432
432
|
creative_format_variants?: string[] | undefined;
|
|
433
|
-
}[], 10, "You can select up to 10 creative formats.">]>;
|
|
433
|
+
}[], 10, "You can select up to 10 creative formats.">]>, undefined>;
|
|
434
434
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The ID value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The ID value is too long.">]>, undefined>;
|
|
435
435
|
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The notes value is too long.">]>, undefined>;
|
|
436
436
|
}, undefined>;
|
package/dist/index.d.ts
CHANGED
|
@@ -407,9 +407,9 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
407
407
|
readonly mediums: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The medium value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The 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.">]>;
|
|
408
408
|
readonly campaign: v.ObjectSchema<{
|
|
409
409
|
readonly campaign_phase: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The campaign phase value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The campaign phase value is too long.">]>;
|
|
410
|
-
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.
|
|
411
|
-
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The campaign targeting value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The campaign targeting value is too long.">]>, undefined>, v.
|
|
412
|
-
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, v.
|
|
410
|
+
readonly campaign_product: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The campaign product value is too long.">]>, undefined>;
|
|
411
|
+
readonly campaign_targeting: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The campaign targeting value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The campaign targeting value is too long.">]>, undefined>, v.MaxLengthAction<string[], 10, "You can select up to 10 targeting options.">]>, undefined>;
|
|
412
|
+
readonly campaign_key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"please provide a value">, v.TrimAction, 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>;
|
|
413
413
|
readonly campaign_date: v.ObjectSchema<{
|
|
414
414
|
readonly format: v.PicklistSchema<readonly ["annually", "quarterly", "monthly", "on a specific date", "no date"], "Please select a valid campaign date format.">;
|
|
415
415
|
readonly value: v.ObjectSchema<{
|
|
@@ -421,7 +421,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
421
421
|
}, undefined>;
|
|
422
422
|
}, undefined>;
|
|
423
423
|
readonly contents: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The content value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The content value is too long.">]>, undefined>;
|
|
424
|
-
readonly creative_formats: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
424
|
+
readonly creative_formats: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
425
425
|
readonly creative_format: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The creative format value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The creative format value is too long.">]>, undefined>;
|
|
426
426
|
readonly creative_format_variants: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The creative variant value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The creative variant value is too long.">]>, undefined>, undefined>;
|
|
427
427
|
}, undefined>, undefined>, v.MinLengthAction<{
|
|
@@ -430,7 +430,7 @@ declare const SUtmLinkBuilderTableForm: v.ObjectSchema<{
|
|
|
430
430
|
}[], 1, "Please select at least one creative format.">, v.MaxLengthAction<{
|
|
431
431
|
creative_format?: string | undefined;
|
|
432
432
|
creative_format_variants?: string[] | undefined;
|
|
433
|
-
}[], 10, "You can select up to 10 creative formats.">]>;
|
|
433
|
+
}[], 10, "You can select up to 10 creative formats.">]>, undefined>;
|
|
434
434
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, "The ID value is too short, it must be at least 1 characters.">, v.MaxLengthAction<string, 255, "The ID value is too long.">]>, undefined>;
|
|
435
435
|
readonly notes: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 255, "The notes value is too long.">]>, undefined>;
|
|
436
436
|
}, undefined>;
|
package/dist/index.js
CHANGED
|
@@ -1078,10 +1078,6 @@ var SUtmLinkBuilderTableForm = v4.object({
|
|
|
1078
1078
|
v4.pipe(
|
|
1079
1079
|
v4.string(),
|
|
1080
1080
|
v4.trim(),
|
|
1081
|
-
v4.minLength(
|
|
1082
|
-
LIMIT_MIN_VALUE,
|
|
1083
|
-
`The campaign product value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1084
|
-
),
|
|
1085
1081
|
v4.maxLength(
|
|
1086
1082
|
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1087
1083
|
"The campaign product value is too long."
|
|
@@ -1104,7 +1100,6 @@ var SUtmLinkBuilderTableForm = v4.object({
|
|
|
1104
1100
|
)
|
|
1105
1101
|
)
|
|
1106
1102
|
),
|
|
1107
|
-
v4.minLength(1, "Please select at least one targeting option."),
|
|
1108
1103
|
v4.maxLength(10, "You can select up to 10 targeting options.")
|
|
1109
1104
|
)
|
|
1110
1105
|
),
|
|
@@ -1112,10 +1107,6 @@ var SUtmLinkBuilderTableForm = v4.object({
|
|
|
1112
1107
|
v4.pipe(
|
|
1113
1108
|
v4.string("please provide a value"),
|
|
1114
1109
|
v4.trim(),
|
|
1115
|
-
v4.minLength(
|
|
1116
|
-
LIMIT_MIN_VALUE,
|
|
1117
|
-
`the value is too short, it must be at least ${LIMIT_MIN_VALUE} characters`
|
|
1118
|
-
),
|
|
1119
1110
|
v4.maxLength(
|
|
1120
1111
|
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1121
1112
|
`the value is too long, it must be ${LIMIT_SHORT_STRING_MAX_LENGTH} characters or less`
|
|
@@ -1147,43 +1138,45 @@ var SUtmLinkBuilderTableForm = v4.object({
|
|
|
1147
1138
|
v4.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The content value is too long.")
|
|
1148
1139
|
)
|
|
1149
1140
|
),
|
|
1150
|
-
creative_formats: v4.
|
|
1151
|
-
v4.
|
|
1152
|
-
v4.
|
|
1153
|
-
|
|
1154
|
-
v4.
|
|
1155
|
-
v4.string(),
|
|
1156
|
-
v4.trim(),
|
|
1157
|
-
v4.minLength(
|
|
1158
|
-
LIMIT_MIN_VALUE,
|
|
1159
|
-
`The creative format value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1160
|
-
),
|
|
1161
|
-
v4.maxLength(
|
|
1162
|
-
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1163
|
-
"The creative format value is too long."
|
|
1164
|
-
)
|
|
1165
|
-
)
|
|
1166
|
-
),
|
|
1167
|
-
creative_format_variants: v4.optional(
|
|
1168
|
-
v4.array(
|
|
1141
|
+
creative_formats: v4.optional(
|
|
1142
|
+
v4.pipe(
|
|
1143
|
+
v4.array(
|
|
1144
|
+
v4.object({
|
|
1145
|
+
creative_format: v4.optional(
|
|
1169
1146
|
v4.pipe(
|
|
1170
1147
|
v4.string(),
|
|
1171
1148
|
v4.trim(),
|
|
1172
1149
|
v4.minLength(
|
|
1173
1150
|
LIMIT_MIN_VALUE,
|
|
1174
|
-
`The creative
|
|
1151
|
+
`The creative format value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1175
1152
|
),
|
|
1176
1153
|
v4.maxLength(
|
|
1177
1154
|
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1178
|
-
"The creative
|
|
1155
|
+
"The creative format value is too long."
|
|
1156
|
+
)
|
|
1157
|
+
)
|
|
1158
|
+
),
|
|
1159
|
+
creative_format_variants: v4.optional(
|
|
1160
|
+
v4.array(
|
|
1161
|
+
v4.pipe(
|
|
1162
|
+
v4.string(),
|
|
1163
|
+
v4.trim(),
|
|
1164
|
+
v4.minLength(
|
|
1165
|
+
LIMIT_MIN_VALUE,
|
|
1166
|
+
`The creative variant value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1167
|
+
),
|
|
1168
|
+
v4.maxLength(
|
|
1169
|
+
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1170
|
+
"The creative variant value is too long."
|
|
1171
|
+
)
|
|
1179
1172
|
)
|
|
1180
1173
|
)
|
|
1181
1174
|
)
|
|
1182
|
-
)
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1175
|
+
})
|
|
1176
|
+
),
|
|
1177
|
+
v4.minLength(1, "Please select at least one creative format."),
|
|
1178
|
+
v4.maxLength(10, "You can select up to 10 creative formats.")
|
|
1179
|
+
)
|
|
1187
1180
|
),
|
|
1188
1181
|
id: v4.optional(
|
|
1189
1182
|
v4.pipe(
|