@getcommunity/gc-validators 0.0.102 → 0.0.103
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 +60 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +61 -3
- package/dist/index.d.ts +61 -3
- package/dist/index.js +57 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1303,6 +1303,20 @@ var SCreateLead = v6__namespace.object({
|
|
|
1303
1303
|
// recaptcha - not saved to db
|
|
1304
1304
|
captcha: IsValidCaptchaToken
|
|
1305
1305
|
});
|
|
1306
|
+
var SCreateLeadDocument = v6__namespace.object({
|
|
1307
|
+
first_name: IsValidFirstName,
|
|
1308
|
+
last_name: IsValidLastName,
|
|
1309
|
+
email: IsValidUserEmail,
|
|
1310
|
+
phone: IsValidUserPhoneRequired,
|
|
1311
|
+
company: IsValidCompanyName,
|
|
1312
|
+
title: IsValidUserTitle,
|
|
1313
|
+
message: IsValidUserMessage,
|
|
1314
|
+
product_interest: IsValidProductInterest,
|
|
1315
|
+
email_consent: IsValidUserConsent,
|
|
1316
|
+
sms_consent: IsValidUserConsent,
|
|
1317
|
+
// hidden fields
|
|
1318
|
+
on_page: IsValidRefPage
|
|
1319
|
+
});
|
|
1306
1320
|
var SUpdateLead = v6__namespace.object({
|
|
1307
1321
|
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1308
1322
|
last_name: v6__namespace.optional(IsValidLastName),
|
|
@@ -1319,6 +1333,20 @@ var SUpdateLead = v6__namespace.object({
|
|
|
1319
1333
|
// recaptcha - not saved to db
|
|
1320
1334
|
captcha: IsValidCaptchaToken
|
|
1321
1335
|
});
|
|
1336
|
+
var SUpdateLeadDocument = v6__namespace.object({
|
|
1337
|
+
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1338
|
+
last_name: v6__namespace.optional(IsValidLastName),
|
|
1339
|
+
email: v6__namespace.optional(IsValidUserEmail),
|
|
1340
|
+
phone: v6__namespace.optional(IsValidUserPhoneRequired),
|
|
1341
|
+
company: v6__namespace.optional(IsValidCompanyName),
|
|
1342
|
+
title: v6__namespace.optional(IsValidUserTitle),
|
|
1343
|
+
message: v6__namespace.optional(IsValidUserMessage),
|
|
1344
|
+
product_interest: v6__namespace.optional(IsValidProductInterest),
|
|
1345
|
+
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1346
|
+
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1347
|
+
// hidden fields
|
|
1348
|
+
on_page: v6__namespace.optional(IsValidRefPage)
|
|
1349
|
+
});
|
|
1322
1350
|
var SUpdateLeadRequest = v6__namespace.object({
|
|
1323
1351
|
documentId: IsValidReferenceDocumentId,
|
|
1324
1352
|
data: SUpdateLead
|
|
@@ -1396,6 +1424,20 @@ var SCreateResumeInfo = v6__namespace.object({
|
|
|
1396
1424
|
// recaptcha - not saved to db
|
|
1397
1425
|
captcha: IsValidCaptchaToken
|
|
1398
1426
|
});
|
|
1427
|
+
var SCreateResumeInfoDocument = v6__namespace.object({
|
|
1428
|
+
first_name: IsValidFirstName,
|
|
1429
|
+
last_name: IsValidLastName,
|
|
1430
|
+
email: IsValidUserEmail,
|
|
1431
|
+
phone: IsValidUserPhone,
|
|
1432
|
+
message: IsValidUserMessage,
|
|
1433
|
+
social_profiles: IsValidOrUndefinedStringSepListOfUrls,
|
|
1434
|
+
file: IsValidFileReferenceId,
|
|
1435
|
+
// File reference ID
|
|
1436
|
+
email_consent: IsValidUserConsent,
|
|
1437
|
+
sms_consent: IsValidUserConsent,
|
|
1438
|
+
// hidden fields
|
|
1439
|
+
on_page: IsValidRefPage
|
|
1440
|
+
});
|
|
1399
1441
|
var SUpdateResumeInfo = v6__namespace.object({
|
|
1400
1442
|
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1401
1443
|
last_name: v6__namespace.optional(IsValidLastName),
|
|
@@ -1412,6 +1454,20 @@ var SUpdateResumeInfo = v6__namespace.object({
|
|
|
1412
1454
|
// recaptcha - not saved to db
|
|
1413
1455
|
captcha: IsValidCaptchaToken
|
|
1414
1456
|
});
|
|
1457
|
+
var SUpdateResumeInfoDocument = v6__namespace.object({
|
|
1458
|
+
first_name: v6__namespace.optional(IsValidFirstName),
|
|
1459
|
+
last_name: v6__namespace.optional(IsValidLastName),
|
|
1460
|
+
email: v6__namespace.optional(IsValidUserEmail),
|
|
1461
|
+
phone: v6__namespace.optional(IsValidUserPhone),
|
|
1462
|
+
message: v6__namespace.optional(IsValidUserMessage),
|
|
1463
|
+
social_profiles: v6__namespace.optional(IsValidOrUndefinedStringSepListOfUrls),
|
|
1464
|
+
file: v6__namespace.optional(IsValidFileReferenceId),
|
|
1465
|
+
// File reference ID
|
|
1466
|
+
email_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1467
|
+
sms_consent: v6__namespace.optional(IsValidUserConsent),
|
|
1468
|
+
// hidden fields
|
|
1469
|
+
on_page: v6__namespace.optional(IsValidRefPage)
|
|
1470
|
+
});
|
|
1415
1471
|
var SUpdateResumeInfoRequest = v6__namespace.object({
|
|
1416
1472
|
documentId: IsValidReferenceDocumentId,
|
|
1417
1473
|
data: SUpdateResumeInfo
|
|
@@ -2323,11 +2379,13 @@ exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
|
2323
2379
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
2324
2380
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
2325
2381
|
exports.SCreateLead = SCreateLead;
|
|
2382
|
+
exports.SCreateLeadDocument = SCreateLeadDocument;
|
|
2326
2383
|
exports.SCreateMediaPlatformDocument = SCreateMediaPlatformDocument;
|
|
2327
2384
|
exports.SCreateMultipleStrapiMediaUploadDocument = SCreateMultipleStrapiMediaUploadDocument;
|
|
2328
2385
|
exports.SCreateNewsletterSignup = SCreateNewsletterSignup;
|
|
2329
2386
|
exports.SCreateResume = SCreateResume;
|
|
2330
2387
|
exports.SCreateResumeInfo = SCreateResumeInfo;
|
|
2388
|
+
exports.SCreateResumeInfoDocument = SCreateResumeInfoDocument;
|
|
2331
2389
|
exports.SCreateStrapiMediaUploadDocument = SCreateStrapiMediaUploadDocument;
|
|
2332
2390
|
exports.SCreateUserDocument = SCreateUserDocument;
|
|
2333
2391
|
exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
|
|
@@ -2371,10 +2429,12 @@ exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
|
2371
2429
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
2372
2430
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
2373
2431
|
exports.SUpdateLead = SUpdateLead;
|
|
2432
|
+
exports.SUpdateLeadDocument = SUpdateLeadDocument;
|
|
2374
2433
|
exports.SUpdateLeadRequest = SUpdateLeadRequest;
|
|
2375
2434
|
exports.SUpdateMediaPlatformDocument = SUpdateMediaPlatformDocument;
|
|
2376
2435
|
exports.SUpdateMediaPlatformDocumentRequest = SUpdateMediaPlatformDocumentRequest;
|
|
2377
2436
|
exports.SUpdateResumeInfo = SUpdateResumeInfo;
|
|
2437
|
+
exports.SUpdateResumeInfoDocument = SUpdateResumeInfoDocument;
|
|
2378
2438
|
exports.SUpdateResumeInfoRequest = SUpdateResumeInfoRequest;
|
|
2379
2439
|
exports.SUpdateStrapiMediaFileInfo = SUpdateStrapiMediaFileInfo;
|
|
2380
2440
|
exports.SUpdateTrendsLikes = SUpdateTrendsLikes;
|