@getcommunity/gc-validators 0.0.185 → 0.0.187
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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -16
- package/dist/index.d.ts +16 -16
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -886,7 +886,7 @@ function hasPermission(user, permissions, resource, action, data) {
|
|
|
886
886
|
if (typeof permission === "boolean") return permission;
|
|
887
887
|
return permission(user, permissions, data);
|
|
888
888
|
}
|
|
889
|
-
var
|
|
889
|
+
var VIntegerNullable = () => v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.number(), v33__namespace.integer())));
|
|
890
890
|
var VStringShort = (minLength13 = LIMIT_MIN_VALUE) => v33__namespace.pipe(
|
|
891
891
|
v33__namespace.string(),
|
|
892
892
|
v33__namespace.trim(),
|
|
@@ -1308,8 +1308,8 @@ var QueryStrapiSearchClientProjects = v33__namespace.object({
|
|
|
1308
1308
|
project_pricing: v33__namespace.optional(VStringMax(LIMIT_SHORT_STRING_MAX_LENGTH)),
|
|
1309
1309
|
project_address: v33__namespace.optional(VStringMax()),
|
|
1310
1310
|
phone_number: v33__namespace.optional(VStringPhone()),
|
|
1311
|
-
num_of_models:
|
|
1312
|
-
num_of_units_remain:
|
|
1311
|
+
num_of_models: VIntegerNullable(),
|
|
1312
|
+
num_of_units_remain: VIntegerNullable(),
|
|
1313
1313
|
buyer_profile: v33__namespace.optional(VStringMax()),
|
|
1314
1314
|
social_organic_start_date: v33__namespace.optional(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate())),
|
|
1315
1315
|
paid_media_start_date: v33__namespace.optional(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate())),
|
|
@@ -1334,8 +1334,8 @@ var SCreateClientProjectDocument = v33__namespace.object({
|
|
|
1334
1334
|
project_pricing: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1335
1335
|
project_address: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1336
1336
|
phone_number: VStringPhoneNullable(),
|
|
1337
|
-
num_of_models:
|
|
1338
|
-
num_of_units_remain:
|
|
1337
|
+
num_of_models: VIntegerNullable(),
|
|
1338
|
+
num_of_units_remain: VIntegerNullable(),
|
|
1339
1339
|
buyer_profile: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1340
1340
|
social_organic_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
1341
1341
|
paid_media_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
@@ -1364,8 +1364,8 @@ var SUpdateClientProjectDocument = v33__namespace.object({
|
|
|
1364
1364
|
project_pricing: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1365
1365
|
project_address: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1366
1366
|
phone_number: VStringPhoneNullable(),
|
|
1367
|
-
num_of_models:
|
|
1368
|
-
num_of_units_remain:
|
|
1367
|
+
num_of_models: VIntegerNullable(),
|
|
1368
|
+
num_of_units_remain: VIntegerNullable(),
|
|
1369
1369
|
buyer_profile: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1370
1370
|
social_organic_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
1371
1371
|
paid_media_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
@@ -2512,7 +2512,7 @@ var QueryStrapiSearchTeamMembers = v33__namespace.object({
|
|
|
2512
2512
|
size: VSize(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE),
|
|
2513
2513
|
name: v33__namespace.optional(VStringMax()),
|
|
2514
2514
|
slug: v33__namespace.optional(VStringMax()),
|
|
2515
|
-
order:
|
|
2515
|
+
order: VIntegerNullable(),
|
|
2516
2516
|
tier: v33__namespace.optional(v33__namespace.picklist(["owner", "manager", "employee"])),
|
|
2517
2517
|
group: v33__namespace.optional(v33__namespace.picklist(["account", "media", "creative"])),
|
|
2518
2518
|
is_employed: v33__namespace.optional(v33__namespace.boolean()),
|
|
@@ -2573,7 +2573,7 @@ var QuerySortTeamworkProjectHealth = v33__namespace.optional(
|
|
|
2573
2573
|
var QueryStrapiSearchTeamworkProjectHealth = v33__namespace.object({
|
|
2574
2574
|
page: VPage(),
|
|
2575
2575
|
size: VSize(LIMIT_PAGINATION_DEFAULT_SIZE),
|
|
2576
|
-
lastPeriodDays:
|
|
2576
|
+
lastPeriodDays: VIntegerNullable(),
|
|
2577
2577
|
searchTerm: v33__namespace.optional(VStringMax()),
|
|
2578
2578
|
excludeTagIds: v33__namespace.optional(
|
|
2579
2579
|
v33__namespace.array(VStringMinMax(LIMIT_MIN_VALUE, LIMIT_SHORT_STRING_MAX_LENGTH))
|
|
@@ -2709,7 +2709,7 @@ var SChangePassword = v33__namespace.pipe(
|
|
|
2709
2709
|
);
|
|
2710
2710
|
var SAuthRawAccessToken = v33__namespace.object({
|
|
2711
2711
|
access_token: v33__namespace.optional(v33__namespace.string()),
|
|
2712
|
-
expires_in:
|
|
2712
|
+
expires_in: VIntegerNullable(),
|
|
2713
2713
|
scope: v33__namespace.optional(v33__namespace.string()),
|
|
2714
2714
|
token_type: v33__namespace.optional(v33__namespace.string()),
|
|
2715
2715
|
id_token: v33__namespace.optional(v33__namespace.string())
|
|
@@ -2823,9 +2823,9 @@ var SUtmLinkBuilderTableForm = v33__namespace.object({
|
|
|
2823
2823
|
format: v33__namespace.picklist(SUtmLinkBuilderPartCampaignDateOptions),
|
|
2824
2824
|
value: v33__namespace.object({
|
|
2825
2825
|
year: v33__namespace.number(),
|
|
2826
|
-
quarter:
|
|
2827
|
-
month:
|
|
2828
|
-
day:
|
|
2826
|
+
quarter: VIntegerNullable(),
|
|
2827
|
+
month: VIntegerNullable(),
|
|
2828
|
+
day: VIntegerNullable()
|
|
2829
2829
|
})
|
|
2830
2830
|
})
|
|
2831
2831
|
}),
|
|
@@ -3287,7 +3287,7 @@ function isStrapiAttributeError(result) {
|
|
|
3287
3287
|
return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null && "errors" in result.error.details && Array.isArray(result.error.details.errors);
|
|
3288
3288
|
}
|
|
3289
3289
|
function isStrapiStandardError(result) {
|
|
3290
|
-
return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null;
|
|
3290
|
+
return "error" in result && "details" in result.error && typeof result.error.details === "object" && result.error.details !== null && "errors" in result.error.details === false;
|
|
3291
3291
|
}
|
|
3292
3292
|
function validateAndClean(schema, input) {
|
|
3293
3293
|
var _a, _b;
|