@tellescope/validation 1.211.0 → 1.212.0
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/lib/cjs/validation.d.ts +11 -106
- package/lib/cjs/validation.d.ts.map +1 -1
- package/lib/cjs/validation.js +103 -293
- package/lib/cjs/validation.js.map +1 -1
- package/lib/esm/validation.d.ts +11 -106
- package/lib/esm/validation.d.ts.map +1 -1
- package/lib/esm/validation.js +103 -293
- package/lib/esm/validation.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -10
- package/src/validation.ts +78 -61
package/lib/cjs/validation.js
CHANGED
|
@@ -2277,25 +2277,27 @@ exports.canvasCodingValidatorOptional = (0, exports.objectValidator)({
|
|
|
2277
2277
|
display: exports.stringValidatorOptional,
|
|
2278
2278
|
system: exports.stringValidatorOptional,
|
|
2279
2279
|
}, {});
|
|
2280
|
+
var sharedAutomationActionValidators = {
|
|
2281
|
+
continueOnError: exports.booleanValidatorOptional,
|
|
2282
|
+
isBrandedWebhook: exports.booleanValidatorOptional,
|
|
2283
|
+
};
|
|
2284
|
+
var sendWebhookInfoValidator = (0, exports.objectValidator)({
|
|
2285
|
+
message: exports.stringValidator5000Optional,
|
|
2286
|
+
url: exports.stringValidator20000ptional,
|
|
2287
|
+
fields: exports.labeledFieldsValidator,
|
|
2288
|
+
secret: exports.stringValidatorOptional,
|
|
2289
|
+
method: exports.stringValidatorOptional,
|
|
2290
|
+
headers: exports.labeledFieldsValidator,
|
|
2291
|
+
}, { emptyOk: false });
|
|
2280
2292
|
exports.automationActionValidator = (0, exports.orValidator)({
|
|
2281
|
-
developHealthMedEligibility: (0, exports.objectValidator)({
|
|
2282
|
-
type: (0, exports.exactMatchValidator)(['developHealthMedEligibility']),
|
|
2283
|
-
info: (0, exports.objectValidator)({
|
|
2293
|
+
developHealthMedEligibility: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['developHealthMedEligibility']), info: (0, exports.objectValidator)({
|
|
2284
2294
|
drugs: exports.developHealthDrugsValidator,
|
|
2285
2295
|
diagnoses: exports.developHealthDiagnosesValidator,
|
|
2286
2296
|
mock_result: exports.developHealthMockResultValidator,
|
|
2287
2297
|
providerUserId: exports.mongoIdStringRequired,
|
|
2288
|
-
}, { emptyOk: false }),
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
setEnduserStatus: (0, exports.objectValidator)({
|
|
2292
|
-
type: (0, exports.exactMatchValidator)(['setEnduserStatus']),
|
|
2293
|
-
info: (0, exports.objectValidator)({ status: exports.stringValidator250 }, { emptyOk: false }),
|
|
2294
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2295
|
-
}),
|
|
2296
|
-
sendEmail: (0, exports.objectValidator)({
|
|
2297
|
-
type: (0, exports.exactMatchValidator)(['sendEmail']),
|
|
2298
|
-
info: (0, exports.objectValidator)({
|
|
2298
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2299
|
+
setEnduserStatus: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['setEnduserStatus']), info: (0, exports.objectValidator)({ status: exports.stringValidator250 }, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2300
|
+
sendEmail: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['sendEmail']), info: (0, exports.objectValidator)({
|
|
2299
2301
|
senderId: exports.mongoIdStringRequired,
|
|
2300
2302
|
templateId: exports.mongoIdStringRequired,
|
|
2301
2303
|
assignment: exports.senderAssignmentStrategyValidatorOptional,
|
|
@@ -2303,45 +2305,24 @@ exports.automationActionValidator = (0, exports.orValidator)({
|
|
|
2303
2305
|
sendToDestinationOfRelatedContactTypes: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
2304
2306
|
ccRelatedContactTypes: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
2305
2307
|
hiddenFromTimeline: exports.booleanValidatorOptional,
|
|
2306
|
-
}, { emptyOk: false }),
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
sendSMS: (0, exports.objectValidator)({
|
|
2310
|
-
type: (0, exports.exactMatchValidator)(['sendSMS']),
|
|
2311
|
-
info: exports.automationForMessageValidator,
|
|
2312
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2313
|
-
}),
|
|
2314
|
-
notifyTeam: (0, exports.objectValidator)({
|
|
2315
|
-
type: (0, exports.exactMatchValidator)(['notifyTeam']),
|
|
2316
|
-
info: (0, exports.objectValidator)({
|
|
2308
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2309
|
+
sendSMS: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['sendSMS']), info: exports.automationForMessageValidator }, sharedAutomationActionValidators)),
|
|
2310
|
+
notifyTeam: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['notifyTeam']), info: (0, exports.objectValidator)({
|
|
2317
2311
|
templateId: exports.mongoIdStringRequired,
|
|
2318
2312
|
forAssigned: exports.booleanValidatorOptional,
|
|
2319
2313
|
roles: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
2320
2314
|
tags: exports.listOfStringsWithQualifierValidatorOptionalValuesEmptyOkay,
|
|
2321
|
-
}, { emptyOk: false }),
|
|
2322
|
-
|
|
2323
|
-
}),
|
|
2324
|
-
sendForm: (0, exports.objectValidator)({
|
|
2325
|
-
type: (0, exports.exactMatchValidator)(['sendForm']),
|
|
2326
|
-
info: (0, exports.objectValidator)({
|
|
2315
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2316
|
+
sendForm: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['sendForm']), info: (0, exports.objectValidator)({
|
|
2327
2317
|
senderId: exports.mongoIdStringRequired,
|
|
2328
2318
|
formId: exports.mongoIdStringRequired,
|
|
2329
2319
|
channel: exports.communicationsChannelValidatorOptional,
|
|
2330
2320
|
assignment: exports.senderAssignmentStrategyValidatorOptional,
|
|
2331
|
-
}, { emptyOk: false }),
|
|
2332
|
-
|
|
2333
|
-
}),
|
|
2334
|
-
shareContent: (0, exports.objectValidator)({
|
|
2335
|
-
type: (0, exports.exactMatchValidator)(['shareContent']),
|
|
2336
|
-
info: (0, exports.objectValidator)({
|
|
2321
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2322
|
+
shareContent: (0, exports.objectValidator)(__assign({ type: (0, exports.exactMatchValidator)(['shareContent']), info: (0, exports.objectValidator)({
|
|
2337
2323
|
managedContentRecordIds: exports.listOfMongoIdStringValidator,
|
|
2338
|
-
}, { emptyOk: false }),
|
|
2339
|
-
|
|
2340
|
-
}),
|
|
2341
|
-
createTicket: (0, exports.objectValidator)({
|
|
2342
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2343
|
-
type: (0, exports.exactMatchValidator)(['createTicket']),
|
|
2344
|
-
info: (0, exports.objectValidator)({
|
|
2324
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2325
|
+
createTicket: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['createTicket']), info: (0, exports.objectValidator)({
|
|
2345
2326
|
title: exports.stringValidator1000,
|
|
2346
2327
|
description: exports.stringValidatorOptionalEmptyOkay,
|
|
2347
2328
|
assignmentStrategy: (0, exports.orValidator)({
|
|
@@ -2401,92 +2382,41 @@ exports.automationActionValidator = (0, exports.orValidator)({
|
|
|
2401
2382
|
contextEnduserFields: exports.listOfStringsValidatorUniqueOptionalOrEmptyOkay,
|
|
2402
2383
|
contextContentIds: exports.listOfMongoIdStringValidatorOptionalOrEmptyOk,
|
|
2403
2384
|
disableEditTitle: exports.booleanValidatorOptional,
|
|
2404
|
-
}, { emptyOk: false }),
|
|
2405
|
-
}),
|
|
2406
|
-
|
|
2407
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2408
|
-
type: (0, exports.exactMatchValidator)(['sendWebhook']),
|
|
2409
|
-
info: (0, exports.objectValidator)({
|
|
2410
|
-
message: exports.stringValidator5000Optional,
|
|
2411
|
-
url: exports.stringValidator20000ptional,
|
|
2412
|
-
fields: exports.labeledFieldsValidator,
|
|
2413
|
-
secret: exports.stringValidatorOptional,
|
|
2414
|
-
method: exports.stringValidatorOptional,
|
|
2415
|
-
headers: exports.labeledFieldsValidator,
|
|
2416
|
-
}, { emptyOk: false }),
|
|
2417
|
-
}),
|
|
2418
|
-
setEnduserFields: (0, exports.objectValidator)({
|
|
2419
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2420
|
-
type: (0, exports.exactMatchValidator)(['setEnduserFields']),
|
|
2421
|
-
info: (0, exports.objectValidator)({
|
|
2385
|
+
}, { emptyOk: false }) })),
|
|
2386
|
+
sendWebhook: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['sendWebhook']), info: sendWebhookInfoValidator })),
|
|
2387
|
+
setEnduserFields: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['setEnduserFields']), info: (0, exports.objectValidator)({
|
|
2422
2388
|
fields: (0, exports.listValidator)((0, exports.objectValidator)({
|
|
2423
2389
|
name: exports.stringValidator,
|
|
2424
2390
|
type: exports.stringValidator,
|
|
2425
2391
|
value: exports.stringValidator,
|
|
2426
2392
|
increment: exports.numberValidatorOptional,
|
|
2427
2393
|
}))
|
|
2428
|
-
}, { emptyOk: false }),
|
|
2429
|
-
}),
|
|
2430
|
-
addEnduserTags: (0, exports.objectValidator)({
|
|
2431
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2432
|
-
type: (0, exports.exactMatchValidator)(['addEnduserTags']),
|
|
2433
|
-
info: (0, exports.objectValidator)({
|
|
2394
|
+
}, { emptyOk: false }) })),
|
|
2395
|
+
addEnduserTags: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['addEnduserTags']), info: (0, exports.objectValidator)({
|
|
2434
2396
|
tags: exports.listOfStringsValidator,
|
|
2435
2397
|
replaceExisting: exports.booleanValidatorOptional,
|
|
2436
|
-
}, { emptyOk: false }),
|
|
2437
|
-
}),
|
|
2438
|
-
removeEnduserTags: (0, exports.objectValidator)({
|
|
2439
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2440
|
-
type: (0, exports.exactMatchValidator)(['removeEnduserTags']),
|
|
2441
|
-
info: (0, exports.objectValidator)({
|
|
2398
|
+
}, { emptyOk: false }) })),
|
|
2399
|
+
removeEnduserTags: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['removeEnduserTags']), info: (0, exports.objectValidator)({
|
|
2442
2400
|
tags: exports.listOfStringsValidator,
|
|
2443
|
-
}, { emptyOk: false }),
|
|
2444
|
-
}),
|
|
2445
|
-
addAccessTags: (0, exports.objectValidator)({
|
|
2446
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2447
|
-
type: (0, exports.exactMatchValidator)(['addAccessTags']),
|
|
2448
|
-
info: (0, exports.objectValidator)({
|
|
2401
|
+
}, { emptyOk: false }) })),
|
|
2402
|
+
addAccessTags: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['addAccessTags']), info: (0, exports.objectValidator)({
|
|
2449
2403
|
tags: exports.listOfStringsValidator,
|
|
2450
2404
|
replaceExisting: exports.booleanValidatorOptional,
|
|
2451
|
-
}, { emptyOk: false }),
|
|
2452
|
-
}),
|
|
2453
|
-
removeAccessTags: (0, exports.objectValidator)({
|
|
2454
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2455
|
-
type: (0, exports.exactMatchValidator)(['removeAccessTags']),
|
|
2456
|
-
info: (0, exports.objectValidator)({
|
|
2405
|
+
}, { emptyOk: false }) })),
|
|
2406
|
+
removeAccessTags: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['removeAccessTags']), info: (0, exports.objectValidator)({
|
|
2457
2407
|
tags: exports.listOfStringsValidator,
|
|
2458
|
-
}, { emptyOk: false }),
|
|
2459
|
-
}),
|
|
2460
|
-
addToJourney: (0, exports.objectValidator)({
|
|
2461
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2462
|
-
type: (0, exports.exactMatchValidator)(['addToJourney']),
|
|
2463
|
-
info: (0, exports.objectValidator)({
|
|
2408
|
+
}, { emptyOk: false }) })),
|
|
2409
|
+
addToJourney: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['addToJourney']), info: (0, exports.objectValidator)({
|
|
2464
2410
|
journeyId: exports.mongoIdStringRequired,
|
|
2465
|
-
}, { emptyOk: false }),
|
|
2466
|
-
}),
|
|
2467
|
-
removeFromJourney: (0, exports.objectValidator)({
|
|
2468
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2469
|
-
type: (0, exports.exactMatchValidator)(['removeFromJourney']),
|
|
2470
|
-
info: (0, exports.objectValidator)({
|
|
2411
|
+
}, { emptyOk: false }) })),
|
|
2412
|
+
removeFromJourney: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['removeFromJourney']), info: (0, exports.objectValidator)({
|
|
2471
2413
|
journeyId: exports.mongoIdStringRequired,
|
|
2472
|
-
}, { emptyOk: false }),
|
|
2473
|
-
}),
|
|
2474
|
-
|
|
2475
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2476
|
-
type: (0, exports.exactMatchValidator)(['removeFromAllJourneys']),
|
|
2477
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true, isOptional: true }),
|
|
2478
|
-
}),
|
|
2479
|
-
iterableSendEmail: (0, exports.objectValidator)({
|
|
2480
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2481
|
-
type: (0, exports.exactMatchValidator)(['iterableSendEmail']),
|
|
2482
|
-
info: (0, exports.objectValidator)({
|
|
2414
|
+
}, { emptyOk: false }) })),
|
|
2415
|
+
removeFromAllJourneys: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['removeFromAllJourneys']), info: (0, exports.objectValidator)({}, { emptyOk: true, isOptional: true }) })),
|
|
2416
|
+
iterableSendEmail: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['iterableSendEmail']), info: (0, exports.objectValidator)({
|
|
2483
2417
|
campaignId: exports.stringValidator,
|
|
2484
|
-
}, { emptyOk: false }),
|
|
2485
|
-
}),
|
|
2486
|
-
iterableCustomEvent: (0, exports.objectValidator)({
|
|
2487
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2488
|
-
type: (0, exports.exactMatchValidator)(['iterableCustomEvent']),
|
|
2489
|
-
info: (0, exports.objectValidator)({
|
|
2418
|
+
}, { emptyOk: false }) })),
|
|
2419
|
+
iterableCustomEvent: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['iterableCustomEvent']), info: (0, exports.objectValidator)({
|
|
2490
2420
|
eventName: exports.stringValidator,
|
|
2491
2421
|
description: exports.stringValidator,
|
|
2492
2422
|
dataFieldsMapping: (0, exports.listValidatorOptionalOrEmptyOk)((0, exports.objectValidator)({
|
|
@@ -2495,229 +2425,105 @@ exports.automationActionValidator = (0, exports.orValidator)({
|
|
|
2495
2425
|
})),
|
|
2496
2426
|
environment: exports.stringValidatorOptional,
|
|
2497
2427
|
customEmailField: exports.stringValidatorOptional,
|
|
2498
|
-
}, { emptyOk: false }),
|
|
2499
|
-
}),
|
|
2500
|
-
zendeskCreateTicket: (0, exports.objectValidator)({
|
|
2501
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2502
|
-
type: (0, exports.exactMatchValidator)(['zendeskCreateTicket']),
|
|
2503
|
-
info: (0, exports.objectValidator)({
|
|
2428
|
+
}, { emptyOk: false }) })),
|
|
2429
|
+
zendeskCreateTicket: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['zendeskCreateTicket']), info: (0, exports.objectValidator)({
|
|
2504
2430
|
templateId: exports.mongoIdStringRequired,
|
|
2505
2431
|
defaultSenderId: exports.mongoIdStringRequired,
|
|
2506
|
-
}, { emptyOk: false }),
|
|
2507
|
-
}),
|
|
2508
|
-
createCarePlan: (0, exports.objectValidator)({
|
|
2509
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2510
|
-
type: (0, exports.exactMatchValidator)(['createCarePlan']),
|
|
2511
|
-
info: (0, exports.objectValidator)({
|
|
2432
|
+
}, { emptyOk: false }) })),
|
|
2433
|
+
createCarePlan: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['createCarePlan']), info: (0, exports.objectValidator)({
|
|
2512
2434
|
title: exports.stringValidator1000,
|
|
2513
2435
|
htmlDescription: exports.stringValidator100000EmptyOkay,
|
|
2514
2436
|
hideRemainingTicketsProgress: exports.booleanValidatorOptional,
|
|
2515
2437
|
highlightedEnduserFields: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
2516
2438
|
closeAutomaticallyByTicket: exports.booleanValidatorOptional,
|
|
2517
|
-
}, { emptyOk: false }),
|
|
2518
|
-
}),
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2523
|
-
}),
|
|
2524
|
-
zusSync: (0, exports.objectValidator)({
|
|
2525
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2526
|
-
type: (0, exports.exactMatchValidator)(['zusSync']),
|
|
2527
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2528
|
-
}),
|
|
2529
|
-
zusPull: (0, exports.objectValidator)({
|
|
2530
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2531
|
-
type: (0, exports.exactMatchValidator)(['zusPull']),
|
|
2532
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2533
|
-
}),
|
|
2534
|
-
zusSubscribe: (0, exports.objectValidator)({
|
|
2535
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2536
|
-
type: (0, exports.exactMatchValidator)(['zusSubscribe']),
|
|
2537
|
-
info: (0, exports.objectValidator)({
|
|
2439
|
+
}, { emptyOk: false }) })),
|
|
2440
|
+
completeCarePlan: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['completeCarePlan']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2441
|
+
zusSync: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['zusSync']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2442
|
+
zusPull: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['zusPull']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2443
|
+
zusSubscribe: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['zusSubscribe']), info: (0, exports.objectValidator)({
|
|
2538
2444
|
practitionerId: exports.stringValidator,
|
|
2539
2445
|
packageIds: exports.listOfStringsValidator,
|
|
2540
|
-
}),
|
|
2541
|
-
}),
|
|
2542
|
-
pagerDutyCreateIncident: (0, exports.objectValidator)({
|
|
2543
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2544
|
-
type: (0, exports.exactMatchValidator)(['pagerDutyCreateIncident']),
|
|
2545
|
-
info: (0, exports.objectValidator)({
|
|
2446
|
+
}) })),
|
|
2447
|
+
pagerDutyCreateIncident: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['pagerDutyCreateIncident']), info: (0, exports.objectValidator)({
|
|
2546
2448
|
title: exports.stringValidator,
|
|
2547
2449
|
type: exports.stringValidator,
|
|
2548
2450
|
serviceId: exports.stringValidator,
|
|
2549
|
-
}),
|
|
2550
|
-
}),
|
|
2551
|
-
smartMeterPlaceOrder: (0, exports.objectValidator)({
|
|
2552
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2553
|
-
type: (0, exports.exactMatchValidator)(['smartMeterPlaceOrder']),
|
|
2554
|
-
info: (0, exports.objectValidator)({
|
|
2451
|
+
}) })),
|
|
2452
|
+
smartMeterPlaceOrder: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['smartMeterPlaceOrder']), info: (0, exports.objectValidator)({
|
|
2555
2453
|
lines: exports.smartMeterLinesValidator,
|
|
2556
2454
|
shipping: exports.stringValidator100,
|
|
2557
|
-
}),
|
|
2558
|
-
}),
|
|
2559
|
-
sendChat: (0, exports.objectValidator)({
|
|
2560
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2561
|
-
type: (0, exports.exactMatchValidator)(['sendChat']),
|
|
2562
|
-
info: (0, exports.objectValidator)({
|
|
2455
|
+
}) })),
|
|
2456
|
+
sendChat: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['sendChat']), info: (0, exports.objectValidator)({
|
|
2563
2457
|
templateId: exports.mongoIdStringRequired,
|
|
2564
2458
|
identifier: exports.stringValidator100,
|
|
2565
2459
|
includeCareTeam: exports.booleanValidatorOptional,
|
|
2566
2460
|
userIds: exports.listOfMongoIdStringValidatorOptionalOrEmptyOk,
|
|
2567
2461
|
sendToDestinationOfRelatedContactTypes: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
2568
|
-
}),
|
|
2569
|
-
}),
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
}),
|
|
2575
|
-
elationSync: (0, exports.objectValidator)({
|
|
2576
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2577
|
-
type: (0, exports.exactMatchValidator)(['elationSync']),
|
|
2578
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2579
|
-
}),
|
|
2580
|
-
athenaSync: (0, exports.objectValidator)({
|
|
2581
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2582
|
-
type: (0, exports.exactMatchValidator)(['athenaSync']),
|
|
2583
|
-
info: (0, exports.objectValidator)({ departmentid: exports.stringValidator100 }, { emptyOk: true }),
|
|
2584
|
-
}),
|
|
2585
|
-
canvasSync: (0, exports.objectValidator)({
|
|
2586
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2587
|
-
type: (0, exports.exactMatchValidator)(['canvasSync']),
|
|
2588
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2589
|
-
}),
|
|
2590
|
-
canvasCreateNote: (0, exports.objectValidator)({
|
|
2591
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2592
|
-
type: (0, exports.exactMatchValidator)(['canvasCreateNote']),
|
|
2593
|
-
info: (0, exports.objectValidator)({
|
|
2462
|
+
}) })),
|
|
2463
|
+
healthieSync: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['healthieSync']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2464
|
+
elationSync: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['elationSync']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2465
|
+
athenaSync: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['athenaSync']), info: (0, exports.objectValidator)({ departmentid: exports.stringValidator100 }, { emptyOk: true }) })),
|
|
2466
|
+
canvasSync: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['canvasSync']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2467
|
+
canvasCreateNote: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['canvasCreateNote']), info: (0, exports.objectValidator)({
|
|
2594
2468
|
formIds: exports.listOfMongoIdStringValidator,
|
|
2595
2469
|
matchCareTeamTagsForCanvasPractitionerResolution: exports.listOfStringsWithQualifierValidator,
|
|
2596
2470
|
noteCoding: exports.canvasCodingValidator,
|
|
2597
|
-
}),
|
|
2598
|
-
}),
|
|
2599
|
-
|
|
2600
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2601
|
-
type: (0, exports.exactMatchValidator)(['healthieAddToCourse']),
|
|
2602
|
-
info: (0, exports.objectValidator)({ courseId: exports.stringValidator100 }),
|
|
2603
|
-
}),
|
|
2604
|
-
healthieSendChat: (0, exports.objectValidator)({
|
|
2605
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2606
|
-
type: (0, exports.exactMatchValidator)(['healthieSendChat']),
|
|
2607
|
-
info: (0, exports.objectValidator)({
|
|
2471
|
+
}) })),
|
|
2472
|
+
healthieAddToCourse: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['healthieAddToCourse']), info: (0, exports.objectValidator)({ courseId: exports.stringValidator100 }) })),
|
|
2473
|
+
healthieSendChat: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['healthieSendChat']), info: (0, exports.objectValidator)({
|
|
2608
2474
|
templateId: exports.mongoIdStringRequired,
|
|
2609
2475
|
identifier: exports.stringValidator100,
|
|
2610
2476
|
includeCareTeam: exports.booleanValidatorOptional,
|
|
2611
|
-
}),
|
|
2612
|
-
}),
|
|
2613
|
-
completeTickets: (0, exports.objectValidator)({
|
|
2614
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2615
|
-
type: (0, exports.exactMatchValidator)(['completeTickets']),
|
|
2616
|
-
info: (0, exports.objectValidator)({
|
|
2477
|
+
}) })),
|
|
2478
|
+
completeTickets: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['completeTickets']), info: (0, exports.objectValidator)({
|
|
2617
2479
|
journeyIds: exports.listOfMongoIdStringValidatorOptionalOrEmptyOk,
|
|
2618
|
-
}),
|
|
2619
|
-
}),
|
|
2620
|
-
changeContactType: (0, exports.objectValidator)({
|
|
2621
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2622
|
-
type: (0, exports.exactMatchValidator)(['changeContactType']),
|
|
2623
|
-
info: (0, exports.objectValidator)({
|
|
2480
|
+
}) })),
|
|
2481
|
+
changeContactType: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['changeContactType']), info: (0, exports.objectValidator)({
|
|
2624
2482
|
type: exports.stringValidatorOptional, // can be empty string for default contact type or id for others
|
|
2625
|
-
}),
|
|
2626
|
-
}),
|
|
2627
|
-
|
|
2628
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2629
|
-
type: (0, exports.exactMatchValidator)(['activeCampaignSync']),
|
|
2630
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2631
|
-
}),
|
|
2632
|
-
activeCampaignAddToLists: (0, exports.objectValidator)({
|
|
2633
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2634
|
-
type: (0, exports.exactMatchValidator)(['activeCampaignAddToLists']),
|
|
2635
|
-
info: (0, exports.objectValidator)({
|
|
2483
|
+
}) })),
|
|
2484
|
+
activeCampaignSync: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['activeCampaignSync']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2485
|
+
activeCampaignAddToLists: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['activeCampaignAddToLists']), info: (0, exports.objectValidator)({
|
|
2636
2486
|
listIds: exports.listOfStringsValidator,
|
|
2637
|
-
}),
|
|
2638
|
-
}),
|
|
2639
|
-
switchToRelatedContact: (0, exports.objectValidator)({
|
|
2640
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2641
|
-
type: (0, exports.exactMatchValidator)(['switchToRelatedContact']),
|
|
2642
|
-
info: (0, exports.objectValidator)({
|
|
2487
|
+
}) })),
|
|
2488
|
+
switchToRelatedContact: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['switchToRelatedContact']), info: (0, exports.objectValidator)({
|
|
2643
2489
|
type: exports.stringValidator100,
|
|
2644
2490
|
otherTypes: exports.listOfStringsValidatorUniqueOptionalOrEmptyOkay,
|
|
2645
|
-
}, {}),
|
|
2646
|
-
}),
|
|
2647
|
-
pushFormsToPortal: (0, exports.objectValidator)({
|
|
2648
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2649
|
-
type: (0, exports.exactMatchValidator)(['pushFormsToPortal']),
|
|
2650
|
-
info: (0, exports.objectValidator)({
|
|
2491
|
+
}, {}) })),
|
|
2492
|
+
pushFormsToPortal: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['pushFormsToPortal']), info: (0, exports.objectValidator)({
|
|
2651
2493
|
formIds: exports.listOfMongoIdStringValidator,
|
|
2652
|
-
}, { emptyOk: false }),
|
|
2653
|
-
}),
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
type: (0, exports.exactMatchValidator)(['cancelFutureAppointments']),
|
|
2657
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2658
|
-
}),
|
|
2659
|
-
customerIOIdentify: (0, exports.objectValidator)({
|
|
2660
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2661
|
-
type: (0, exports.exactMatchValidator)(['customerIOIdentify']),
|
|
2662
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true }),
|
|
2663
|
-
}),
|
|
2664
|
-
customerIOTrack: (0, exports.objectValidator)({
|
|
2665
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2666
|
-
type: (0, exports.exactMatchValidator)(['customerIOTrack']),
|
|
2667
|
-
info: (0, exports.objectValidator)({
|
|
2494
|
+
}, { emptyOk: false }) })),
|
|
2495
|
+
cancelFutureAppointments: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['cancelFutureAppointments']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2496
|
+
customerIOIdentify: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['customerIOIdentify']), info: (0, exports.objectValidator)({}, { emptyOk: true }) })),
|
|
2497
|
+
customerIOTrack: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['customerIOTrack']), info: (0, exports.objectValidator)({
|
|
2668
2498
|
event: exports.stringValidator,
|
|
2669
2499
|
trackProperties: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
2670
|
-
}, { emptyOk: false }),
|
|
2671
|
-
}),
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
type: (0, exports.exactMatchValidator)(['cancelCurrentEvent']),
|
|
2675
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true, isOptional: true }),
|
|
2676
|
-
}),
|
|
2677
|
-
confirmCurrentEvent: (0, exports.objectValidator)({
|
|
2678
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2679
|
-
type: (0, exports.exactMatchValidator)(['confirmCurrentEvent']),
|
|
2680
|
-
info: (0, exports.objectValidator)({}, { emptyOk: true, isOptional: true }),
|
|
2681
|
-
}),
|
|
2682
|
-
outboundCall: (0, exports.objectValidator)({
|
|
2683
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2684
|
-
type: (0, exports.exactMatchValidator)(['outboundCall']),
|
|
2685
|
-
info: (0, exports.objectValidator)({
|
|
2500
|
+
}, { emptyOk: false }) })),
|
|
2501
|
+
cancelCurrentEvent: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['cancelCurrentEvent']), info: (0, exports.objectValidator)({}, { emptyOk: true, isOptional: true }) })),
|
|
2502
|
+
confirmCurrentEvent: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['confirmCurrentEvent']), info: (0, exports.objectValidator)({}, { emptyOk: true, isOptional: true }) })),
|
|
2503
|
+
outboundCall: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['outboundCall']), info: (0, exports.objectValidator)({
|
|
2686
2504
|
treeId: exports.mongoIdStringRequired,
|
|
2687
|
-
}, { emptyOk: false }),
|
|
2688
|
-
}),
|
|
2689
|
-
assignCareTeam: (0, exports.objectValidator)({
|
|
2690
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2691
|
-
type: (0, exports.exactMatchValidator)(['assignCareTeam']),
|
|
2692
|
-
info: (0, exports.objectValidator)({
|
|
2505
|
+
}, { emptyOk: false }) })),
|
|
2506
|
+
assignCareTeam: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['assignCareTeam']), info: (0, exports.objectValidator)({
|
|
2693
2507
|
tags: exports.listOfStringsWithQualifierValidator,
|
|
2694
2508
|
limitToOneUser: exports.booleanValidatorOptional,
|
|
2695
2509
|
setAsPrimary: exports.booleanValidatorOptional,
|
|
2696
2510
|
}, { emptyOk: false }) // at least tags is required
|
|
2697
|
-
|
|
2698
|
-
removeCareTeam: (0, exports.objectValidator)({
|
|
2699
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2700
|
-
type: (0, exports.exactMatchValidator)(['removeCareTeam']),
|
|
2701
|
-
info: (0, exports.objectValidator)({
|
|
2511
|
+
})),
|
|
2512
|
+
removeCareTeam: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['removeCareTeam']), info: (0, exports.objectValidator)({
|
|
2702
2513
|
tags: exports.listOfStringsWithQualifierValidator,
|
|
2703
2514
|
}, { emptyOk: false }) // at least tags is required
|
|
2704
|
-
|
|
2705
|
-
callUser: (0, exports.objectValidator)({
|
|
2706
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2707
|
-
type: (0, exports.exactMatchValidator)(['callUser']),
|
|
2708
|
-
info: (0, exports.objectValidator)({
|
|
2515
|
+
})),
|
|
2516
|
+
callUser: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['callUser']), info: (0, exports.objectValidator)({
|
|
2709
2517
|
message: exports.stringValidator25000,
|
|
2710
2518
|
routeBy: (0, exports.exactMatchValidator)(['Appointment Host']),
|
|
2711
2519
|
}, { emptyOk: false }) // at least tags is required
|
|
2712
|
-
|
|
2713
|
-
stripeChargeCardOnFile: (0, exports.objectValidator)({
|
|
2714
|
-
continueOnError: exports.booleanValidatorOptional,
|
|
2715
|
-
type: (0, exports.exactMatchValidator)(['stripeChargeCardOnFile']),
|
|
2716
|
-
info: (0, exports.objectValidator)({
|
|
2520
|
+
})),
|
|
2521
|
+
stripeChargeCardOnFile: (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(['stripeChargeCardOnFile']), info: (0, exports.objectValidator)({
|
|
2717
2522
|
stripeKey: exports.stringValidatorOptionalEmptyOkay,
|
|
2718
2523
|
priceIds: exports.listOfStringsValidator,
|
|
2719
2524
|
}, { emptyOk: false }) // at least tags is required
|
|
2720
|
-
|
|
2525
|
+
})),
|
|
2526
|
+
"Puppeteer: Start Agent": (0, exports.objectValidator)(__assign(__assign({}, sharedAutomationActionValidators), { type: (0, exports.exactMatchValidator)(["Puppeteer: Start Agent"]), info: sendWebhookInfoValidator })),
|
|
2721
2527
|
});
|
|
2722
2528
|
exports.journeyContextValidator = (0, exports.objectValidator)({
|
|
2723
2529
|
calendarEventId: exports.mongoIdStringOptional,
|
|
@@ -3970,6 +3776,7 @@ exports.automationTriggerEventValidator = (0, exports.orValidator)({
|
|
|
3970
3776
|
fills: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
3971
3777
|
skus: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
3972
3778
|
skuPartials: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
3779
|
+
titlePartials: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
3973
3780
|
}),
|
|
3974
3781
|
conditions: exports.optionalEmptyObjectValidator,
|
|
3975
3782
|
}),
|
|
@@ -4676,7 +4483,9 @@ exports.analyticsQueryValidator = (0, exports.orValidator)({
|
|
|
4676
4483
|
}),
|
|
4677
4484
|
"Purchases": (0, exports.objectValidator)({
|
|
4678
4485
|
resource: (0, exports.exactMatchValidator)(['Purchases']),
|
|
4679
|
-
filter: (0, exports.objectValidator)({
|
|
4486
|
+
filter: (0, exports.objectValidator)({
|
|
4487
|
+
titles: exports.listOfStringsValidatorOptionalOrEmptyOk,
|
|
4488
|
+
}, { isOptional: true, emptyOk: true }),
|
|
4680
4489
|
info: (0, exports.orValidator)({
|
|
4681
4490
|
"Total": (0, exports.objectValidator)({
|
|
4682
4491
|
method: (0, exports.exactMatchValidator)(['Total']),
|
|
@@ -4686,6 +4495,7 @@ exports.analyticsQueryValidator = (0, exports.orValidator)({
|
|
|
4686
4495
|
grouping: (0, exports.objectValidator)({
|
|
4687
4496
|
Enduser: exports.booleanValidatorOptional,
|
|
4688
4497
|
Cost: exports.booleanValidatorOptional,
|
|
4498
|
+
Title: exports.booleanValidatorOptional,
|
|
4689
4499
|
Gender: exports.booleanValidatorOptional,
|
|
4690
4500
|
"Assigned To": exports.booleanValidatorOptional,
|
|
4691
4501
|
Field: exports.stringValidatorOptionalEmptyOkay,
|