@getcommunity/gc-validators 0.0.100 → 0.0.102
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 +59 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +86 -13
- package/dist/index.d.ts +86 -13
- package/dist/index.js +54 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1112,6 +1112,20 @@ var QueryStrapiSearchClientStyleguide = v6__namespace.object({
|
|
|
1112
1112
|
client_id: IsValidOrUndefinedReferenceDocumentId,
|
|
1113
1113
|
sort: QuerySortClientStyleguides
|
|
1114
1114
|
});
|
|
1115
|
+
var SCreateClientStyleguideDocument = v6__namespace.object({
|
|
1116
|
+
client: IsValidReferenceDocumentId,
|
|
1117
|
+
title: IsValidShortString,
|
|
1118
|
+
is_active: v6__namespace.optional(IsValidIsActive, true)
|
|
1119
|
+
});
|
|
1120
|
+
var SUpdateClientStyleguideDocument = v6__namespace.object({
|
|
1121
|
+
client: IsValidOrUndefinedReferenceDocumentId,
|
|
1122
|
+
title: IsValidOrUndefinedShortString,
|
|
1123
|
+
is_active: IsValidOrUndefinedIsActive
|
|
1124
|
+
});
|
|
1125
|
+
var SUpdateClientStyleguideDocumentRequest = v6__namespace.object({
|
|
1126
|
+
documentId: IsValidReferenceDocumentId,
|
|
1127
|
+
data: SUpdateClientStyleguideDocument
|
|
1128
|
+
});
|
|
1115
1129
|
var QuerySortClientUsers = v6__namespace.optional(
|
|
1116
1130
|
v6__namespace.object({
|
|
1117
1131
|
key: v6__namespace.picklist(["id", "createdAt", "updatedAt"]),
|
|
@@ -1284,9 +1298,31 @@ var SCreateLead = v6__namespace.object({
|
|
|
1284
1298
|
product_interest: IsValidProductInterest,
|
|
1285
1299
|
email_consent: IsValidUserConsent,
|
|
1286
1300
|
sms_consent: IsValidUserConsent,
|
|
1301
|
+
// hidden fields
|
|
1287
1302
|
on_page: IsValidRefPage,
|
|
1303
|
+
// recaptcha - not saved to db
|
|
1304
|
+
captcha: IsValidCaptchaToken
|
|
1305
|
+
});
|
|
1306
|
+
var SUpdateLead = v6__namespace.object({
|
|
1307
|
+
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1308
|
+
last_name: v6__namespace.optional(IsValidLastName),
|
|
1309
|
+
email: v6__namespace.optional(IsValidUserEmail),
|
|
1310
|
+
phone: v6__namespace.optional(IsValidUserPhoneRequired),
|
|
1311
|
+
company: v6__namespace.optional(IsValidCompanyName),
|
|
1312
|
+
title: v6__namespace.optional(IsValidUserTitle),
|
|
1313
|
+
message: v6__namespace.optional(IsValidUserMessage),
|
|
1314
|
+
product_interest: v6__namespace.optional(IsValidProductInterest),
|
|
1315
|
+
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1316
|
+
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1317
|
+
// hidden fields
|
|
1318
|
+
on_page: v6__namespace.optional(IsValidRefPage),
|
|
1319
|
+
// recaptcha - not saved to db
|
|
1288
1320
|
captcha: IsValidCaptchaToken
|
|
1289
1321
|
});
|
|
1322
|
+
var SUpdateLeadRequest = v6__namespace.object({
|
|
1323
|
+
documentId: IsValidReferenceDocumentId,
|
|
1324
|
+
data: SUpdateLead
|
|
1325
|
+
});
|
|
1290
1326
|
var QuerySortMediaPlatforms = v6__namespace.optional(
|
|
1291
1327
|
v6__namespace.object({
|
|
1292
1328
|
key: v6__namespace.picklist(["id", "title", "slug", "utm_source", "createdAt", "updatedAt"]),
|
|
@@ -1341,6 +1377,7 @@ var SCreateResume = v6__namespace.object({
|
|
|
1341
1377
|
sms_consent: IsValidUserConsent,
|
|
1342
1378
|
// hidden fields
|
|
1343
1379
|
on_page: IsValidRefPage,
|
|
1380
|
+
// recaptcha - not saved to db
|
|
1344
1381
|
captcha: IsValidCaptchaToken
|
|
1345
1382
|
});
|
|
1346
1383
|
var SCreateResumeInfo = v6__namespace.object({
|
|
@@ -1356,24 +1393,29 @@ var SCreateResumeInfo = v6__namespace.object({
|
|
|
1356
1393
|
sms_consent: IsValidUserConsent,
|
|
1357
1394
|
// hidden fields
|
|
1358
1395
|
on_page: IsValidRefPage,
|
|
1396
|
+
// recaptcha - not saved to db
|
|
1359
1397
|
captcha: IsValidCaptchaToken
|
|
1360
1398
|
});
|
|
1361
1399
|
var SUpdateResumeInfo = v6__namespace.object({
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
file: IsValidFileReferenceId,
|
|
1400
|
+
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1401
|
+
last_name: v6__namespace.optional(IsValidLastName),
|
|
1402
|
+
email: v6__namespace.optional(IsValidUserEmail),
|
|
1403
|
+
phone: v6__namespace.optional(IsValidUserPhone),
|
|
1404
|
+
message: v6__namespace.optional(IsValidUserMessage),
|
|
1405
|
+
social_profiles: v6__namespace.optional(IsValidOrUndefinedStringSepListOfUrls),
|
|
1406
|
+
file: v6__namespace.optional(IsValidFileReferenceId),
|
|
1370
1407
|
// File reference ID
|
|
1371
|
-
email_consent: IsValidUserConsent,
|
|
1372
|
-
sms_consent: IsValidUserConsent,
|
|
1408
|
+
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1409
|
+
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1373
1410
|
// hidden fields
|
|
1374
|
-
on_page: IsValidRefPage,
|
|
1411
|
+
on_page: v6__namespace.optional(IsValidRefPage),
|
|
1412
|
+
// recaptcha - not saved to db
|
|
1375
1413
|
captcha: IsValidCaptchaToken
|
|
1376
1414
|
});
|
|
1415
|
+
var SUpdateResumeInfoRequest = v6__namespace.object({
|
|
1416
|
+
documentId: IsValidReferenceDocumentId,
|
|
1417
|
+
data: SUpdateResumeInfo
|
|
1418
|
+
});
|
|
1377
1419
|
var SharpSpringSignUpToDownload = v6__namespace.object({
|
|
1378
1420
|
first_name: IsValidFirstName,
|
|
1379
1421
|
last_name: IsValidLastName,
|
|
@@ -2277,6 +2319,7 @@ exports.SCreateClientDocument = SCreateClientDocument;
|
|
|
2277
2319
|
exports.SCreateClientMediaPlatformDocument = SCreateClientMediaPlatformDocument;
|
|
2278
2320
|
exports.SCreateClientProjectDocument = SCreateClientProjectDocument;
|
|
2279
2321
|
exports.SCreateClientReportDocument = SCreateClientReportDocument;
|
|
2322
|
+
exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
2280
2323
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
2281
2324
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
2282
2325
|
exports.SCreateLead = SCreateLead;
|
|
@@ -2321,13 +2364,18 @@ exports.SUpdateClientProjectDocument = SUpdateClientProjectDocument;
|
|
|
2321
2364
|
exports.SUpdateClientProjectDocumentRequest = SUpdateClientProjectDocumentRequest;
|
|
2322
2365
|
exports.SUpdateClientReportDocument = SUpdateClientReportDocument;
|
|
2323
2366
|
exports.SUpdateClientReportDocumentRequest = SUpdateClientReportDocumentRequest;
|
|
2367
|
+
exports.SUpdateClientStyleguideDocument = SUpdateClientStyleguideDocument;
|
|
2368
|
+
exports.SUpdateClientStyleguideDocumentRequest = SUpdateClientStyleguideDocumentRequest;
|
|
2324
2369
|
exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
2325
2370
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
2326
2371
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
2327
2372
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
2373
|
+
exports.SUpdateLead = SUpdateLead;
|
|
2374
|
+
exports.SUpdateLeadRequest = SUpdateLeadRequest;
|
|
2328
2375
|
exports.SUpdateMediaPlatformDocument = SUpdateMediaPlatformDocument;
|
|
2329
2376
|
exports.SUpdateMediaPlatformDocumentRequest = SUpdateMediaPlatformDocumentRequest;
|
|
2330
2377
|
exports.SUpdateResumeInfo = SUpdateResumeInfo;
|
|
2378
|
+
exports.SUpdateResumeInfoRequest = SUpdateResumeInfoRequest;
|
|
2331
2379
|
exports.SUpdateStrapiMediaFileInfo = SUpdateStrapiMediaFileInfo;
|
|
2332
2380
|
exports.SUpdateTrendsLikes = SUpdateTrendsLikes;
|
|
2333
2381
|
exports.SUpdateUserAccount = SUpdateUserAccount;
|