@getcommunity/gc-validators 0.0.35 → 0.0.37
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 +77 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -13
- package/dist/index.d.ts +13 -13
- package/dist/index.js +77 -30
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1058,7 +1058,11 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1058
1058
|
v4__namespace.pipe(
|
|
1059
1059
|
v4__namespace.string(),
|
|
1060
1060
|
v4__namespace.trim(),
|
|
1061
|
-
v4__namespace.
|
|
1061
|
+
v4__namespace.minLength(
|
|
1062
|
+
LIMIT_MIN_VALUE,
|
|
1063
|
+
`The source value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1064
|
+
),
|
|
1065
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The source value is too long.")
|
|
1062
1066
|
)
|
|
1063
1067
|
),
|
|
1064
1068
|
v4__namespace.minLength(1, "Please select at least one source."),
|
|
@@ -1069,7 +1073,11 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1069
1073
|
v4__namespace.pipe(
|
|
1070
1074
|
v4__namespace.string(),
|
|
1071
1075
|
v4__namespace.trim(),
|
|
1072
|
-
v4__namespace.
|
|
1076
|
+
v4__namespace.minLength(
|
|
1077
|
+
LIMIT_MIN_VALUE,
|
|
1078
|
+
`The medium value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1079
|
+
),
|
|
1080
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The medium value is too long.")
|
|
1073
1081
|
)
|
|
1074
1082
|
),
|
|
1075
1083
|
v4__namespace.minLength(1, "Please select at least one medium."),
|
|
@@ -1079,13 +1087,27 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1079
1087
|
campaign_phase: v4__namespace.pipe(
|
|
1080
1088
|
v4__namespace.string(),
|
|
1081
1089
|
v4__namespace.trim(),
|
|
1082
|
-
v4__namespace.
|
|
1090
|
+
v4__namespace.minLength(
|
|
1091
|
+
LIMIT_MIN_VALUE,
|
|
1092
|
+
`The campaign phase value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1093
|
+
),
|
|
1094
|
+
v4__namespace.maxLength(
|
|
1095
|
+
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1096
|
+
"The campaign phase value is too long."
|
|
1097
|
+
)
|
|
1083
1098
|
),
|
|
1084
1099
|
campaign_product: v4__namespace.optional(
|
|
1085
1100
|
v4__namespace.pipe(
|
|
1086
1101
|
v4__namespace.string(),
|
|
1087
1102
|
v4__namespace.trim(),
|
|
1088
|
-
v4__namespace.
|
|
1103
|
+
v4__namespace.minLength(
|
|
1104
|
+
LIMIT_MIN_VALUE,
|
|
1105
|
+
`The campaign product value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1106
|
+
),
|
|
1107
|
+
v4__namespace.maxLength(
|
|
1108
|
+
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1109
|
+
"The campaign product value is too long."
|
|
1110
|
+
)
|
|
1089
1111
|
)
|
|
1090
1112
|
),
|
|
1091
1113
|
campaign_targeting: v4__namespace.optional(
|
|
@@ -1094,7 +1116,14 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1094
1116
|
v4__namespace.pipe(
|
|
1095
1117
|
v4__namespace.string(),
|
|
1096
1118
|
v4__namespace.trim(),
|
|
1097
|
-
v4__namespace.
|
|
1119
|
+
v4__namespace.minLength(
|
|
1120
|
+
LIMIT_MIN_VALUE,
|
|
1121
|
+
`The campaign targeting value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1122
|
+
),
|
|
1123
|
+
v4__namespace.maxLength(
|
|
1124
|
+
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1125
|
+
"The campaign targeting value is too long."
|
|
1126
|
+
)
|
|
1098
1127
|
)
|
|
1099
1128
|
),
|
|
1100
1129
|
v4__namespace.minLength(1, "Please select at least one targeting option."),
|
|
@@ -1122,7 +1151,7 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1122
1151
|
"Please select a valid campaign date format."
|
|
1123
1152
|
),
|
|
1124
1153
|
value: v4__namespace.object({
|
|
1125
|
-
year: v4__namespace.number(),
|
|
1154
|
+
year: v4__namespace.number("Please provide a valid year."),
|
|
1126
1155
|
quarter: v4__namespace.optional(v4__namespace.number()),
|
|
1127
1156
|
month: v4__namespace.optional(v4__namespace.number()),
|
|
1128
1157
|
day: v4__namespace.optional(v4__namespace.number())
|
|
@@ -1133,51 +1162,69 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1133
1162
|
v4__namespace.pipe(
|
|
1134
1163
|
v4__namespace.string(),
|
|
1135
1164
|
v4__namespace.trim(),
|
|
1136
|
-
v4__namespace.
|
|
1165
|
+
v4__namespace.minLength(
|
|
1166
|
+
LIMIT_MIN_VALUE,
|
|
1167
|
+
`The content value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1168
|
+
),
|
|
1169
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The content value is too long.")
|
|
1137
1170
|
)
|
|
1138
1171
|
),
|
|
1139
|
-
creative_formats: v4__namespace.
|
|
1140
|
-
v4__namespace.
|
|
1141
|
-
v4__namespace.
|
|
1142
|
-
|
|
1143
|
-
v4__namespace.
|
|
1144
|
-
v4__namespace.string(),
|
|
1145
|
-
v4__namespace.trim(),
|
|
1146
|
-
v4__namespace.maxLength(
|
|
1147
|
-
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1148
|
-
"This creative format value is too long."
|
|
1149
|
-
)
|
|
1150
|
-
)
|
|
1151
|
-
),
|
|
1152
|
-
creative_format_variants: v4__namespace.optional(
|
|
1153
|
-
v4__namespace.array(
|
|
1172
|
+
creative_formats: v4__namespace.optional(
|
|
1173
|
+
v4__namespace.pipe(
|
|
1174
|
+
v4__namespace.array(
|
|
1175
|
+
v4__namespace.object({
|
|
1176
|
+
creative_format: v4__namespace.optional(
|
|
1154
1177
|
v4__namespace.pipe(
|
|
1155
1178
|
v4__namespace.string(),
|
|
1156
1179
|
v4__namespace.trim(),
|
|
1180
|
+
v4__namespace.minLength(
|
|
1181
|
+
LIMIT_MIN_VALUE,
|
|
1182
|
+
`The creative format value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1183
|
+
),
|
|
1157
1184
|
v4__namespace.maxLength(
|
|
1158
1185
|
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1159
|
-
"
|
|
1186
|
+
"The creative format value is too long."
|
|
1187
|
+
)
|
|
1188
|
+
)
|
|
1189
|
+
),
|
|
1190
|
+
creative_format_variants: v4__namespace.optional(
|
|
1191
|
+
v4__namespace.array(
|
|
1192
|
+
v4__namespace.pipe(
|
|
1193
|
+
v4__namespace.string(),
|
|
1194
|
+
v4__namespace.trim(),
|
|
1195
|
+
v4__namespace.minLength(
|
|
1196
|
+
LIMIT_MIN_VALUE,
|
|
1197
|
+
`The creative variant value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1198
|
+
),
|
|
1199
|
+
v4__namespace.maxLength(
|
|
1200
|
+
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1201
|
+
"The creative variant value is too long."
|
|
1202
|
+
)
|
|
1160
1203
|
)
|
|
1161
1204
|
)
|
|
1162
1205
|
)
|
|
1163
|
-
)
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1206
|
+
})
|
|
1207
|
+
),
|
|
1208
|
+
v4__namespace.minLength(1, "Please select at least one creative format."),
|
|
1209
|
+
v4__namespace.maxLength(10, "You can select up to 10 creative formats.")
|
|
1210
|
+
)
|
|
1168
1211
|
),
|
|
1169
1212
|
id: v4__namespace.optional(
|
|
1170
1213
|
v4__namespace.pipe(
|
|
1171
1214
|
v4__namespace.string(),
|
|
1172
1215
|
v4__namespace.trim(),
|
|
1173
|
-
v4__namespace.
|
|
1216
|
+
v4__namespace.minLength(
|
|
1217
|
+
LIMIT_MIN_VALUE,
|
|
1218
|
+
`The ID value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1219
|
+
),
|
|
1220
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The ID value is too long.")
|
|
1174
1221
|
)
|
|
1175
1222
|
),
|
|
1176
1223
|
notes: v4__namespace.optional(
|
|
1177
1224
|
v4__namespace.pipe(
|
|
1178
1225
|
v4__namespace.string(),
|
|
1179
1226
|
v4__namespace.trim(),
|
|
1180
|
-
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "
|
|
1227
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The notes value is too long.")
|
|
1181
1228
|
)
|
|
1182
1229
|
)
|
|
1183
1230
|
});
|