@getcommunity/gc-validators 0.0.34 → 0.0.36
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 +57 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -12
- package/dist/index.d.ts +13 -12
- package/dist/index.js +57 -13
- 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,12 +1116,18 @@ 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."),
|
|
1101
|
-
v4__namespace.maxLength(10, "You can select up to 10 targeting options.")
|
|
1102
|
-
v4__namespace.transform((value) => value.join(","))
|
|
1130
|
+
v4__namespace.maxLength(10, "You can select up to 10 targeting options.")
|
|
1103
1131
|
)
|
|
1104
1132
|
),
|
|
1105
1133
|
campaign_key: v4__namespace.optional(
|
|
@@ -1123,7 +1151,7 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1123
1151
|
"Please select a valid campaign date format."
|
|
1124
1152
|
),
|
|
1125
1153
|
value: v4__namespace.object({
|
|
1126
|
-
year: v4__namespace.number(),
|
|
1154
|
+
year: v4__namespace.number("Please provide a valid year."),
|
|
1127
1155
|
quarter: v4__namespace.optional(v4__namespace.number()),
|
|
1128
1156
|
month: v4__namespace.optional(v4__namespace.number()),
|
|
1129
1157
|
day: v4__namespace.optional(v4__namespace.number())
|
|
@@ -1134,7 +1162,11 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1134
1162
|
v4__namespace.pipe(
|
|
1135
1163
|
v4__namespace.string(),
|
|
1136
1164
|
v4__namespace.trim(),
|
|
1137
|
-
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.")
|
|
1138
1170
|
)
|
|
1139
1171
|
),
|
|
1140
1172
|
creative_formats: v4__namespace.pipe(
|
|
@@ -1144,9 +1176,13 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1144
1176
|
v4__namespace.pipe(
|
|
1145
1177
|
v4__namespace.string(),
|
|
1146
1178
|
v4__namespace.trim(),
|
|
1179
|
+
v4__namespace.minLength(
|
|
1180
|
+
LIMIT_MIN_VALUE,
|
|
1181
|
+
`The creative format value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1182
|
+
),
|
|
1147
1183
|
v4__namespace.maxLength(
|
|
1148
1184
|
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1149
|
-
"
|
|
1185
|
+
"The creative format value is too long."
|
|
1150
1186
|
)
|
|
1151
1187
|
)
|
|
1152
1188
|
),
|
|
@@ -1155,9 +1191,13 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1155
1191
|
v4__namespace.pipe(
|
|
1156
1192
|
v4__namespace.string(),
|
|
1157
1193
|
v4__namespace.trim(),
|
|
1194
|
+
v4__namespace.minLength(
|
|
1195
|
+
LIMIT_MIN_VALUE,
|
|
1196
|
+
`The creative variant value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1197
|
+
),
|
|
1158
1198
|
v4__namespace.maxLength(
|
|
1159
1199
|
LIMIT_SHORT_STRING_MAX_LENGTH,
|
|
1160
|
-
"
|
|
1200
|
+
"The creative variant value is too long."
|
|
1161
1201
|
)
|
|
1162
1202
|
)
|
|
1163
1203
|
)
|
|
@@ -1171,14 +1211,18 @@ var SUtmLinkBuilderTableForm = v4__namespace.object({
|
|
|
1171
1211
|
v4__namespace.pipe(
|
|
1172
1212
|
v4__namespace.string(),
|
|
1173
1213
|
v4__namespace.trim(),
|
|
1174
|
-
v4__namespace.
|
|
1214
|
+
v4__namespace.minLength(
|
|
1215
|
+
LIMIT_MIN_VALUE,
|
|
1216
|
+
`The ID value is too short, it must be at least ${LIMIT_MIN_VALUE} characters.`
|
|
1217
|
+
),
|
|
1218
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The ID value is too long.")
|
|
1175
1219
|
)
|
|
1176
1220
|
),
|
|
1177
1221
|
notes: v4__namespace.optional(
|
|
1178
1222
|
v4__namespace.pipe(
|
|
1179
1223
|
v4__namespace.string(),
|
|
1180
1224
|
v4__namespace.trim(),
|
|
1181
|
-
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "
|
|
1225
|
+
v4__namespace.maxLength(LIMIT_SHORT_STRING_MAX_LENGTH, "The notes value is too long.")
|
|
1182
1226
|
)
|
|
1183
1227
|
)
|
|
1184
1228
|
});
|