@getcommunity/gc-validators 0.0.101 → 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 +42 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +65 -13
- package/dist/index.d.ts +65 -13
- package/dist/index.js +40 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1298,9 +1298,31 @@ var SCreateLead = v6__namespace.object({
|
|
|
1298
1298
|
product_interest: IsValidProductInterest,
|
|
1299
1299
|
email_consent: IsValidUserConsent,
|
|
1300
1300
|
sms_consent: IsValidUserConsent,
|
|
1301
|
+
// hidden fields
|
|
1301
1302
|
on_page: IsValidRefPage,
|
|
1303
|
+
// recaptcha - not saved to db
|
|
1302
1304
|
captcha: IsValidCaptchaToken
|
|
1303
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
|
|
1320
|
+
captcha: IsValidCaptchaToken
|
|
1321
|
+
});
|
|
1322
|
+
var SUpdateLeadRequest = v6__namespace.object({
|
|
1323
|
+
documentId: IsValidReferenceDocumentId,
|
|
1324
|
+
data: SUpdateLead
|
|
1325
|
+
});
|
|
1304
1326
|
var QuerySortMediaPlatforms = v6__namespace.optional(
|
|
1305
1327
|
v6__namespace.object({
|
|
1306
1328
|
key: v6__namespace.picklist(["id", "title", "slug", "utm_source", "createdAt", "updatedAt"]),
|
|
@@ -1355,6 +1377,7 @@ var SCreateResume = v6__namespace.object({
|
|
|
1355
1377
|
sms_consent: IsValidUserConsent,
|
|
1356
1378
|
// hidden fields
|
|
1357
1379
|
on_page: IsValidRefPage,
|
|
1380
|
+
// recaptcha - not saved to db
|
|
1358
1381
|
captcha: IsValidCaptchaToken
|
|
1359
1382
|
});
|
|
1360
1383
|
var SCreateResumeInfo = v6__namespace.object({
|
|
@@ -1370,24 +1393,29 @@ var SCreateResumeInfo = v6__namespace.object({
|
|
|
1370
1393
|
sms_consent: IsValidUserConsent,
|
|
1371
1394
|
// hidden fields
|
|
1372
1395
|
on_page: IsValidRefPage,
|
|
1396
|
+
// recaptcha - not saved to db
|
|
1373
1397
|
captcha: IsValidCaptchaToken
|
|
1374
1398
|
});
|
|
1375
1399
|
var SUpdateResumeInfo = v6__namespace.object({
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
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),
|
|
1384
1407
|
// File reference ID
|
|
1385
|
-
email_consent: IsValidUserConsent,
|
|
1386
|
-
sms_consent: IsValidUserConsent,
|
|
1408
|
+
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1409
|
+
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1387
1410
|
// hidden fields
|
|
1388
|
-
on_page: IsValidRefPage,
|
|
1411
|
+
on_page: v6__namespace.optional(IsValidRefPage),
|
|
1412
|
+
// recaptcha - not saved to db
|
|
1389
1413
|
captcha: IsValidCaptchaToken
|
|
1390
1414
|
});
|
|
1415
|
+
var SUpdateResumeInfoRequest = v6__namespace.object({
|
|
1416
|
+
documentId: IsValidReferenceDocumentId,
|
|
1417
|
+
data: SUpdateResumeInfo
|
|
1418
|
+
});
|
|
1391
1419
|
var SharpSpringSignUpToDownload = v6__namespace.object({
|
|
1392
1420
|
first_name: IsValidFirstName,
|
|
1393
1421
|
last_name: IsValidLastName,
|
|
@@ -2342,9 +2370,12 @@ exports.SUpdateClientUserDocument = SUpdateClientUserDocument;
|
|
|
2342
2370
|
exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
2343
2371
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
2344
2372
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
2373
|
+
exports.SUpdateLead = SUpdateLead;
|
|
2374
|
+
exports.SUpdateLeadRequest = SUpdateLeadRequest;
|
|
2345
2375
|
exports.SUpdateMediaPlatformDocument = SUpdateMediaPlatformDocument;
|
|
2346
2376
|
exports.SUpdateMediaPlatformDocumentRequest = SUpdateMediaPlatformDocumentRequest;
|
|
2347
2377
|
exports.SUpdateResumeInfo = SUpdateResumeInfo;
|
|
2378
|
+
exports.SUpdateResumeInfoRequest = SUpdateResumeInfoRequest;
|
|
2348
2379
|
exports.SUpdateStrapiMediaFileInfo = SUpdateStrapiMediaFileInfo;
|
|
2349
2380
|
exports.SUpdateTrendsLikes = SUpdateTrendsLikes;
|
|
2350
2381
|
exports.SUpdateUserAccount = SUpdateUserAccount;
|