@getcommunity/gc-validators 0.0.184 → 0.0.186
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 +13 -12
- 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 +13 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -886,6 +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 VIntegerNullable = () => v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.number(), v33__namespace.integer())));
|
|
889
890
|
var VStringShort = (minLength13 = LIMIT_MIN_VALUE) => v33__namespace.pipe(
|
|
890
891
|
v33__namespace.string(),
|
|
891
892
|
v33__namespace.trim(),
|
|
@@ -1307,8 +1308,8 @@ var QueryStrapiSearchClientProjects = v33__namespace.object({
|
|
|
1307
1308
|
project_pricing: v33__namespace.optional(VStringMax(LIMIT_SHORT_STRING_MAX_LENGTH)),
|
|
1308
1309
|
project_address: v33__namespace.optional(VStringMax()),
|
|
1309
1310
|
phone_number: v33__namespace.optional(VStringPhone()),
|
|
1310
|
-
num_of_models:
|
|
1311
|
-
num_of_units_remain:
|
|
1311
|
+
num_of_models: VIntegerNullable(),
|
|
1312
|
+
num_of_units_remain: VIntegerNullable(),
|
|
1312
1313
|
buyer_profile: v33__namespace.optional(VStringMax()),
|
|
1313
1314
|
social_organic_start_date: v33__namespace.optional(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate())),
|
|
1314
1315
|
paid_media_start_date: v33__namespace.optional(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate())),
|
|
@@ -1333,8 +1334,8 @@ var SCreateClientProjectDocument = v33__namespace.object({
|
|
|
1333
1334
|
project_pricing: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1334
1335
|
project_address: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1335
1336
|
phone_number: VStringPhoneNullable(),
|
|
1336
|
-
num_of_models:
|
|
1337
|
-
num_of_units_remain:
|
|
1337
|
+
num_of_models: VIntegerNullable(),
|
|
1338
|
+
num_of_units_remain: VIntegerNullable(),
|
|
1338
1339
|
buyer_profile: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1339
1340
|
social_organic_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
1340
1341
|
paid_media_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
@@ -1363,8 +1364,8 @@ var SUpdateClientProjectDocument = v33__namespace.object({
|
|
|
1363
1364
|
project_pricing: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1364
1365
|
project_address: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1365
1366
|
phone_number: VStringPhoneNullable(),
|
|
1366
|
-
num_of_models:
|
|
1367
|
-
num_of_units_remain:
|
|
1367
|
+
num_of_models: VIntegerNullable(),
|
|
1368
|
+
num_of_units_remain: VIntegerNullable(),
|
|
1368
1369
|
buyer_profile: v33__namespace.optional(v33__namespace.nullable(VStringMax())),
|
|
1369
1370
|
social_organic_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
1370
1371
|
paid_media_start_date: v33__namespace.optional(v33__namespace.nullable(v33__namespace.pipe(v33__namespace.string(), v33__namespace.isoDate()))),
|
|
@@ -2511,7 +2512,7 @@ var QueryStrapiSearchTeamMembers = v33__namespace.object({
|
|
|
2511
2512
|
size: VSize(LIMIT_BLOG_POST_PAGINATION_MAX_SIZE),
|
|
2512
2513
|
name: v33__namespace.optional(VStringMax()),
|
|
2513
2514
|
slug: v33__namespace.optional(VStringMax()),
|
|
2514
|
-
order:
|
|
2515
|
+
order: VIntegerNullable(),
|
|
2515
2516
|
tier: v33__namespace.optional(v33__namespace.picklist(["owner", "manager", "employee"])),
|
|
2516
2517
|
group: v33__namespace.optional(v33__namespace.picklist(["account", "media", "creative"])),
|
|
2517
2518
|
is_employed: v33__namespace.optional(v33__namespace.boolean()),
|
|
@@ -2572,7 +2573,7 @@ var QuerySortTeamworkProjectHealth = v33__namespace.optional(
|
|
|
2572
2573
|
var QueryStrapiSearchTeamworkProjectHealth = v33__namespace.object({
|
|
2573
2574
|
page: VPage(),
|
|
2574
2575
|
size: VSize(LIMIT_PAGINATION_DEFAULT_SIZE),
|
|
2575
|
-
lastPeriodDays:
|
|
2576
|
+
lastPeriodDays: VIntegerNullable(),
|
|
2576
2577
|
searchTerm: v33__namespace.optional(VStringMax()),
|
|
2577
2578
|
excludeTagIds: v33__namespace.optional(
|
|
2578
2579
|
v33__namespace.array(VStringMinMax(LIMIT_MIN_VALUE, LIMIT_SHORT_STRING_MAX_LENGTH))
|
|
@@ -2708,7 +2709,7 @@ var SChangePassword = v33__namespace.pipe(
|
|
|
2708
2709
|
);
|
|
2709
2710
|
var SAuthRawAccessToken = v33__namespace.object({
|
|
2710
2711
|
access_token: v33__namespace.optional(v33__namespace.string()),
|
|
2711
|
-
expires_in:
|
|
2712
|
+
expires_in: VIntegerNullable(),
|
|
2712
2713
|
scope: v33__namespace.optional(v33__namespace.string()),
|
|
2713
2714
|
token_type: v33__namespace.optional(v33__namespace.string()),
|
|
2714
2715
|
id_token: v33__namespace.optional(v33__namespace.string())
|
|
@@ -2822,9 +2823,9 @@ var SUtmLinkBuilderTableForm = v33__namespace.object({
|
|
|
2822
2823
|
format: v33__namespace.picklist(SUtmLinkBuilderPartCampaignDateOptions),
|
|
2823
2824
|
value: v33__namespace.object({
|
|
2824
2825
|
year: v33__namespace.number(),
|
|
2825
|
-
quarter:
|
|
2826
|
-
month:
|
|
2827
|
-
day:
|
|
2826
|
+
quarter: VIntegerNullable(),
|
|
2827
|
+
month: VIntegerNullable(),
|
|
2828
|
+
day: VIntegerNullable()
|
|
2828
2829
|
})
|
|
2829
2830
|
})
|
|
2830
2831
|
}),
|