@getcommunity/gc-validators 0.0.102 → 0.0.104
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 +81 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +82 -4
- package/dist/index.d.ts +82 -4
- package/dist/index.js +77 -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
|
|
@@ -1914,6 +1970,26 @@ var SCreateUtmTrackingLinkDocument = v6__namespace.object({
|
|
|
1914
1970
|
is_active: IsValidIsActive,
|
|
1915
1971
|
notes: IsValidOrUndefinedLongString
|
|
1916
1972
|
});
|
|
1973
|
+
var SCreateUtmTrackingLinkDocumentRequest = v6__namespace.object({
|
|
1974
|
+
creator: IsValidReferenceDocumentId,
|
|
1975
|
+
client: IsValidReferenceDocumentId,
|
|
1976
|
+
url_destination: IsValidDestinationUrl,
|
|
1977
|
+
utm_source: IsValidUrlUtmSource,
|
|
1978
|
+
utm_medium: IsValidUrlUtmMedium,
|
|
1979
|
+
utm_campaign: IsValidUrlUtmCampaign,
|
|
1980
|
+
utm_content: IsValidOrUndefinedShortString,
|
|
1981
|
+
utm_creative_format: IsValidOrUndefinedShortString,
|
|
1982
|
+
utm_id: IsValidOrUndefinedShortString,
|
|
1983
|
+
campaign_phase: IsValidShortString,
|
|
1984
|
+
campaign_product: IsValidOrUndefinedShortString,
|
|
1985
|
+
campaign_targeting: IsValidOrUndefinedShortString,
|
|
1986
|
+
campaign_key: IsValidOrUndefinedUtmCampaignKeyName,
|
|
1987
|
+
creative_format: IsValidOrUndefinedShortString,
|
|
1988
|
+
creative_format_variants: IsValidOrUndefinedShortString,
|
|
1989
|
+
url: IsValidUtmLink,
|
|
1990
|
+
is_active: IsValidIsActive,
|
|
1991
|
+
notes: IsValidOrUndefinedLongString
|
|
1992
|
+
});
|
|
1917
1993
|
var SCreateUtmTrackingLinkParts = v6__namespace.object({
|
|
1918
1994
|
url_destination: IsValidDestinationUrl,
|
|
1919
1995
|
utm_source: IsValidUrlUtmSource,
|
|
@@ -2323,14 +2399,17 @@ exports.SCreateClientStyleguideDocument = SCreateClientStyleguideDocument;
|
|
|
2323
2399
|
exports.SCreateClientUserDocument = SCreateClientUserDocument;
|
|
2324
2400
|
exports.SCreateContentPillarDocument = SCreateContentPillarDocument;
|
|
2325
2401
|
exports.SCreateLead = SCreateLead;
|
|
2402
|
+
exports.SCreateLeadDocument = SCreateLeadDocument;
|
|
2326
2403
|
exports.SCreateMediaPlatformDocument = SCreateMediaPlatformDocument;
|
|
2327
2404
|
exports.SCreateMultipleStrapiMediaUploadDocument = SCreateMultipleStrapiMediaUploadDocument;
|
|
2328
2405
|
exports.SCreateNewsletterSignup = SCreateNewsletterSignup;
|
|
2329
2406
|
exports.SCreateResume = SCreateResume;
|
|
2330
2407
|
exports.SCreateResumeInfo = SCreateResumeInfo;
|
|
2408
|
+
exports.SCreateResumeInfoDocument = SCreateResumeInfoDocument;
|
|
2331
2409
|
exports.SCreateStrapiMediaUploadDocument = SCreateStrapiMediaUploadDocument;
|
|
2332
2410
|
exports.SCreateUserDocument = SCreateUserDocument;
|
|
2333
2411
|
exports.SCreateUtmTrackingLinkDocument = SCreateUtmTrackingLinkDocument;
|
|
2412
|
+
exports.SCreateUtmTrackingLinkDocumentRequest = SCreateUtmTrackingLinkDocumentRequest;
|
|
2334
2413
|
exports.SCreateUtmTrackingLinkParts = SCreateUtmTrackingLinkParts;
|
|
2335
2414
|
exports.SDisconnectManyEntityRelation = SDisconnectManyEntityRelation;
|
|
2336
2415
|
exports.SDisconnectOneEntityRelation = SDisconnectOneEntityRelation;
|
|
@@ -2371,10 +2450,12 @@ exports.SUpdateClientUserDocumentRequest = SUpdateClientUserDocumentRequest;
|
|
|
2371
2450
|
exports.SUpdateContentPillarDocument = SUpdateContentPillarDocument;
|
|
2372
2451
|
exports.SUpdateContentPillarDocumentRequest = SUpdateContentPillarDocumentRequest;
|
|
2373
2452
|
exports.SUpdateLead = SUpdateLead;
|
|
2453
|
+
exports.SUpdateLeadDocument = SUpdateLeadDocument;
|
|
2374
2454
|
exports.SUpdateLeadRequest = SUpdateLeadRequest;
|
|
2375
2455
|
exports.SUpdateMediaPlatformDocument = SUpdateMediaPlatformDocument;
|
|
2376
2456
|
exports.SUpdateMediaPlatformDocumentRequest = SUpdateMediaPlatformDocumentRequest;
|
|
2377
2457
|
exports.SUpdateResumeInfo = SUpdateResumeInfo;
|
|
2458
|
+
exports.SUpdateResumeInfoDocument = SUpdateResumeInfoDocument;
|
|
2378
2459
|
exports.SUpdateResumeInfoRequest = SUpdateResumeInfoRequest;
|
|
2379
2460
|
exports.SUpdateStrapiMediaFileInfo = SUpdateStrapiMediaFileInfo;
|
|
2380
2461
|
exports.SUpdateTrendsLikes = SUpdateTrendsLikes;
|