@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/esm/validation.js
CHANGED
|
@@ -2227,25 +2227,27 @@ export var canvasCodingValidatorOptional = objectValidator({
|
|
|
2227
2227
|
display: stringValidatorOptional,
|
|
2228
2228
|
system: stringValidatorOptional,
|
|
2229
2229
|
}, {});
|
|
2230
|
+
var sharedAutomationActionValidators = {
|
|
2231
|
+
continueOnError: booleanValidatorOptional,
|
|
2232
|
+
isBrandedWebhook: booleanValidatorOptional,
|
|
2233
|
+
};
|
|
2234
|
+
var sendWebhookInfoValidator = objectValidator({
|
|
2235
|
+
message: stringValidator5000Optional,
|
|
2236
|
+
url: stringValidator20000ptional,
|
|
2237
|
+
fields: labeledFieldsValidator,
|
|
2238
|
+
secret: stringValidatorOptional,
|
|
2239
|
+
method: stringValidatorOptional,
|
|
2240
|
+
headers: labeledFieldsValidator,
|
|
2241
|
+
}, { emptyOk: false });
|
|
2230
2242
|
export var automationActionValidator = orValidator({
|
|
2231
|
-
developHealthMedEligibility: objectValidator({
|
|
2232
|
-
type: exactMatchValidator(['developHealthMedEligibility']),
|
|
2233
|
-
info: objectValidator({
|
|
2243
|
+
developHealthMedEligibility: objectValidator(__assign({ type: exactMatchValidator(['developHealthMedEligibility']), info: objectValidator({
|
|
2234
2244
|
drugs: developHealthDrugsValidator,
|
|
2235
2245
|
diagnoses: developHealthDiagnosesValidator,
|
|
2236
2246
|
mock_result: developHealthMockResultValidator,
|
|
2237
2247
|
providerUserId: mongoIdStringRequired,
|
|
2238
|
-
}, { emptyOk: false }),
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
setEnduserStatus: objectValidator({
|
|
2242
|
-
type: exactMatchValidator(['setEnduserStatus']),
|
|
2243
|
-
info: objectValidator({ status: stringValidator250 }, { emptyOk: false }),
|
|
2244
|
-
continueOnError: booleanValidatorOptional,
|
|
2245
|
-
}),
|
|
2246
|
-
sendEmail: objectValidator({
|
|
2247
|
-
type: exactMatchValidator(['sendEmail']),
|
|
2248
|
-
info: objectValidator({
|
|
2248
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2249
|
+
setEnduserStatus: objectValidator(__assign({ type: exactMatchValidator(['setEnduserStatus']), info: objectValidator({ status: stringValidator250 }, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2250
|
+
sendEmail: objectValidator(__assign({ type: exactMatchValidator(['sendEmail']), info: objectValidator({
|
|
2249
2251
|
senderId: mongoIdStringRequired,
|
|
2250
2252
|
templateId: mongoIdStringRequired,
|
|
2251
2253
|
assignment: senderAssignmentStrategyValidatorOptional,
|
|
@@ -2253,45 +2255,24 @@ export var automationActionValidator = orValidator({
|
|
|
2253
2255
|
sendToDestinationOfRelatedContactTypes: listOfStringsValidatorOptionalOrEmptyOk,
|
|
2254
2256
|
ccRelatedContactTypes: listOfStringsValidatorOptionalOrEmptyOk,
|
|
2255
2257
|
hiddenFromTimeline: booleanValidatorOptional,
|
|
2256
|
-
}, { emptyOk: false }),
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
sendSMS: objectValidator({
|
|
2260
|
-
type: exactMatchValidator(['sendSMS']),
|
|
2261
|
-
info: automationForMessageValidator,
|
|
2262
|
-
continueOnError: booleanValidatorOptional,
|
|
2263
|
-
}),
|
|
2264
|
-
notifyTeam: objectValidator({
|
|
2265
|
-
type: exactMatchValidator(['notifyTeam']),
|
|
2266
|
-
info: objectValidator({
|
|
2258
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2259
|
+
sendSMS: objectValidator(__assign({ type: exactMatchValidator(['sendSMS']), info: automationForMessageValidator }, sharedAutomationActionValidators)),
|
|
2260
|
+
notifyTeam: objectValidator(__assign({ type: exactMatchValidator(['notifyTeam']), info: objectValidator({
|
|
2267
2261
|
templateId: mongoIdStringRequired,
|
|
2268
2262
|
forAssigned: booleanValidatorOptional,
|
|
2269
2263
|
roles: listOfStringsValidatorOptionalOrEmptyOk,
|
|
2270
2264
|
tags: listOfStringsWithQualifierValidatorOptionalValuesEmptyOkay,
|
|
2271
|
-
}, { emptyOk: false }),
|
|
2272
|
-
|
|
2273
|
-
}),
|
|
2274
|
-
sendForm: objectValidator({
|
|
2275
|
-
type: exactMatchValidator(['sendForm']),
|
|
2276
|
-
info: objectValidator({
|
|
2265
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2266
|
+
sendForm: objectValidator(__assign({ type: exactMatchValidator(['sendForm']), info: objectValidator({
|
|
2277
2267
|
senderId: mongoIdStringRequired,
|
|
2278
2268
|
formId: mongoIdStringRequired,
|
|
2279
2269
|
channel: communicationsChannelValidatorOptional,
|
|
2280
2270
|
assignment: senderAssignmentStrategyValidatorOptional,
|
|
2281
|
-
}, { emptyOk: false }),
|
|
2282
|
-
|
|
2283
|
-
}),
|
|
2284
|
-
shareContent: objectValidator({
|
|
2285
|
-
type: exactMatchValidator(['shareContent']),
|
|
2286
|
-
info: objectValidator({
|
|
2271
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2272
|
+
shareContent: objectValidator(__assign({ type: exactMatchValidator(['shareContent']), info: objectValidator({
|
|
2287
2273
|
managedContentRecordIds: listOfMongoIdStringValidator,
|
|
2288
|
-
}, { emptyOk: false }),
|
|
2289
|
-
|
|
2290
|
-
}),
|
|
2291
|
-
createTicket: objectValidator({
|
|
2292
|
-
continueOnError: booleanValidatorOptional,
|
|
2293
|
-
type: exactMatchValidator(['createTicket']),
|
|
2294
|
-
info: objectValidator({
|
|
2274
|
+
}, { emptyOk: false }) }, sharedAutomationActionValidators)),
|
|
2275
|
+
createTicket: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['createTicket']), info: objectValidator({
|
|
2295
2276
|
title: stringValidator1000,
|
|
2296
2277
|
description: stringValidatorOptionalEmptyOkay,
|
|
2297
2278
|
assignmentStrategy: orValidator({
|
|
@@ -2351,92 +2332,41 @@ export var automationActionValidator = orValidator({
|
|
|
2351
2332
|
contextEnduserFields: listOfStringsValidatorUniqueOptionalOrEmptyOkay,
|
|
2352
2333
|
contextContentIds: listOfMongoIdStringValidatorOptionalOrEmptyOk,
|
|
2353
2334
|
disableEditTitle: booleanValidatorOptional,
|
|
2354
|
-
}, { emptyOk: false }),
|
|
2355
|
-
}),
|
|
2356
|
-
|
|
2357
|
-
continueOnError: booleanValidatorOptional,
|
|
2358
|
-
type: exactMatchValidator(['sendWebhook']),
|
|
2359
|
-
info: objectValidator({
|
|
2360
|
-
message: stringValidator5000Optional,
|
|
2361
|
-
url: stringValidator20000ptional,
|
|
2362
|
-
fields: labeledFieldsValidator,
|
|
2363
|
-
secret: stringValidatorOptional,
|
|
2364
|
-
method: stringValidatorOptional,
|
|
2365
|
-
headers: labeledFieldsValidator,
|
|
2366
|
-
}, { emptyOk: false }),
|
|
2367
|
-
}),
|
|
2368
|
-
setEnduserFields: objectValidator({
|
|
2369
|
-
continueOnError: booleanValidatorOptional,
|
|
2370
|
-
type: exactMatchValidator(['setEnduserFields']),
|
|
2371
|
-
info: objectValidator({
|
|
2335
|
+
}, { emptyOk: false }) })),
|
|
2336
|
+
sendWebhook: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['sendWebhook']), info: sendWebhookInfoValidator })),
|
|
2337
|
+
setEnduserFields: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['setEnduserFields']), info: objectValidator({
|
|
2372
2338
|
fields: listValidator(objectValidator({
|
|
2373
2339
|
name: stringValidator,
|
|
2374
2340
|
type: stringValidator,
|
|
2375
2341
|
value: stringValidator,
|
|
2376
2342
|
increment: numberValidatorOptional,
|
|
2377
2343
|
}))
|
|
2378
|
-
}, { emptyOk: false }),
|
|
2379
|
-
}),
|
|
2380
|
-
addEnduserTags: objectValidator({
|
|
2381
|
-
continueOnError: booleanValidatorOptional,
|
|
2382
|
-
type: exactMatchValidator(['addEnduserTags']),
|
|
2383
|
-
info: objectValidator({
|
|
2344
|
+
}, { emptyOk: false }) })),
|
|
2345
|
+
addEnduserTags: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['addEnduserTags']), info: objectValidator({
|
|
2384
2346
|
tags: listOfStringsValidator,
|
|
2385
2347
|
replaceExisting: booleanValidatorOptional,
|
|
2386
|
-
}, { emptyOk: false }),
|
|
2387
|
-
}),
|
|
2388
|
-
removeEnduserTags: objectValidator({
|
|
2389
|
-
continueOnError: booleanValidatorOptional,
|
|
2390
|
-
type: exactMatchValidator(['removeEnduserTags']),
|
|
2391
|
-
info: objectValidator({
|
|
2348
|
+
}, { emptyOk: false }) })),
|
|
2349
|
+
removeEnduserTags: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['removeEnduserTags']), info: objectValidator({
|
|
2392
2350
|
tags: listOfStringsValidator,
|
|
2393
|
-
}, { emptyOk: false }),
|
|
2394
|
-
}),
|
|
2395
|
-
addAccessTags: objectValidator({
|
|
2396
|
-
continueOnError: booleanValidatorOptional,
|
|
2397
|
-
type: exactMatchValidator(['addAccessTags']),
|
|
2398
|
-
info: objectValidator({
|
|
2351
|
+
}, { emptyOk: false }) })),
|
|
2352
|
+
addAccessTags: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['addAccessTags']), info: objectValidator({
|
|
2399
2353
|
tags: listOfStringsValidator,
|
|
2400
2354
|
replaceExisting: booleanValidatorOptional,
|
|
2401
|
-
}, { emptyOk: false }),
|
|
2402
|
-
}),
|
|
2403
|
-
removeAccessTags: objectValidator({
|
|
2404
|
-
continueOnError: booleanValidatorOptional,
|
|
2405
|
-
type: exactMatchValidator(['removeAccessTags']),
|
|
2406
|
-
info: objectValidator({
|
|
2355
|
+
}, { emptyOk: false }) })),
|
|
2356
|
+
removeAccessTags: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['removeAccessTags']), info: objectValidator({
|
|
2407
2357
|
tags: listOfStringsValidator,
|
|
2408
|
-
}, { emptyOk: false }),
|
|
2409
|
-
}),
|
|
2410
|
-
addToJourney: objectValidator({
|
|
2411
|
-
continueOnError: booleanValidatorOptional,
|
|
2412
|
-
type: exactMatchValidator(['addToJourney']),
|
|
2413
|
-
info: objectValidator({
|
|
2358
|
+
}, { emptyOk: false }) })),
|
|
2359
|
+
addToJourney: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['addToJourney']), info: objectValidator({
|
|
2414
2360
|
journeyId: mongoIdStringRequired,
|
|
2415
|
-
}, { emptyOk: false }),
|
|
2416
|
-
}),
|
|
2417
|
-
removeFromJourney: objectValidator({
|
|
2418
|
-
continueOnError: booleanValidatorOptional,
|
|
2419
|
-
type: exactMatchValidator(['removeFromJourney']),
|
|
2420
|
-
info: objectValidator({
|
|
2361
|
+
}, { emptyOk: false }) })),
|
|
2362
|
+
removeFromJourney: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['removeFromJourney']), info: objectValidator({
|
|
2421
2363
|
journeyId: mongoIdStringRequired,
|
|
2422
|
-
}, { emptyOk: false }),
|
|
2423
|
-
}),
|
|
2424
|
-
|
|
2425
|
-
continueOnError: booleanValidatorOptional,
|
|
2426
|
-
type: exactMatchValidator(['removeFromAllJourneys']),
|
|
2427
|
-
info: objectValidator({}, { emptyOk: true, isOptional: true }),
|
|
2428
|
-
}),
|
|
2429
|
-
iterableSendEmail: objectValidator({
|
|
2430
|
-
continueOnError: booleanValidatorOptional,
|
|
2431
|
-
type: exactMatchValidator(['iterableSendEmail']),
|
|
2432
|
-
info: objectValidator({
|
|
2364
|
+
}, { emptyOk: false }) })),
|
|
2365
|
+
removeFromAllJourneys: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['removeFromAllJourneys']), info: objectValidator({}, { emptyOk: true, isOptional: true }) })),
|
|
2366
|
+
iterableSendEmail: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['iterableSendEmail']), info: objectValidator({
|
|
2433
2367
|
campaignId: stringValidator,
|
|
2434
|
-
}, { emptyOk: false }),
|
|
2435
|
-
}),
|
|
2436
|
-
iterableCustomEvent: objectValidator({
|
|
2437
|
-
continueOnError: booleanValidatorOptional,
|
|
2438
|
-
type: exactMatchValidator(['iterableCustomEvent']),
|
|
2439
|
-
info: objectValidator({
|
|
2368
|
+
}, { emptyOk: false }) })),
|
|
2369
|
+
iterableCustomEvent: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['iterableCustomEvent']), info: objectValidator({
|
|
2440
2370
|
eventName: stringValidator,
|
|
2441
2371
|
description: stringValidator,
|
|
2442
2372
|
dataFieldsMapping: listValidatorOptionalOrEmptyOk(objectValidator({
|
|
@@ -2445,229 +2375,105 @@ export var automationActionValidator = orValidator({
|
|
|
2445
2375
|
})),
|
|
2446
2376
|
environment: stringValidatorOptional,
|
|
2447
2377
|
customEmailField: stringValidatorOptional,
|
|
2448
|
-
}, { emptyOk: false }),
|
|
2449
|
-
}),
|
|
2450
|
-
zendeskCreateTicket: objectValidator({
|
|
2451
|
-
continueOnError: booleanValidatorOptional,
|
|
2452
|
-
type: exactMatchValidator(['zendeskCreateTicket']),
|
|
2453
|
-
info: objectValidator({
|
|
2378
|
+
}, { emptyOk: false }) })),
|
|
2379
|
+
zendeskCreateTicket: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['zendeskCreateTicket']), info: objectValidator({
|
|
2454
2380
|
templateId: mongoIdStringRequired,
|
|
2455
2381
|
defaultSenderId: mongoIdStringRequired,
|
|
2456
|
-
}, { emptyOk: false }),
|
|
2457
|
-
}),
|
|
2458
|
-
createCarePlan: objectValidator({
|
|
2459
|
-
continueOnError: booleanValidatorOptional,
|
|
2460
|
-
type: exactMatchValidator(['createCarePlan']),
|
|
2461
|
-
info: objectValidator({
|
|
2382
|
+
}, { emptyOk: false }) })),
|
|
2383
|
+
createCarePlan: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['createCarePlan']), info: objectValidator({
|
|
2462
2384
|
title: stringValidator1000,
|
|
2463
2385
|
htmlDescription: stringValidator100000EmptyOkay,
|
|
2464
2386
|
hideRemainingTicketsProgress: booleanValidatorOptional,
|
|
2465
2387
|
highlightedEnduserFields: listOfStringsValidatorOptionalOrEmptyOk,
|
|
2466
2388
|
closeAutomaticallyByTicket: booleanValidatorOptional,
|
|
2467
|
-
}, { emptyOk: false }),
|
|
2468
|
-
}),
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2473
|
-
}),
|
|
2474
|
-
zusSync: objectValidator({
|
|
2475
|
-
continueOnError: booleanValidatorOptional,
|
|
2476
|
-
type: exactMatchValidator(['zusSync']),
|
|
2477
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2478
|
-
}),
|
|
2479
|
-
zusPull: objectValidator({
|
|
2480
|
-
continueOnError: booleanValidatorOptional,
|
|
2481
|
-
type: exactMatchValidator(['zusPull']),
|
|
2482
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2483
|
-
}),
|
|
2484
|
-
zusSubscribe: objectValidator({
|
|
2485
|
-
continueOnError: booleanValidatorOptional,
|
|
2486
|
-
type: exactMatchValidator(['zusSubscribe']),
|
|
2487
|
-
info: objectValidator({
|
|
2389
|
+
}, { emptyOk: false }) })),
|
|
2390
|
+
completeCarePlan: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['completeCarePlan']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2391
|
+
zusSync: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['zusSync']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2392
|
+
zusPull: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['zusPull']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2393
|
+
zusSubscribe: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['zusSubscribe']), info: objectValidator({
|
|
2488
2394
|
practitionerId: stringValidator,
|
|
2489
2395
|
packageIds: listOfStringsValidator,
|
|
2490
|
-
}),
|
|
2491
|
-
}),
|
|
2492
|
-
pagerDutyCreateIncident: objectValidator({
|
|
2493
|
-
continueOnError: booleanValidatorOptional,
|
|
2494
|
-
type: exactMatchValidator(['pagerDutyCreateIncident']),
|
|
2495
|
-
info: objectValidator({
|
|
2396
|
+
}) })),
|
|
2397
|
+
pagerDutyCreateIncident: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['pagerDutyCreateIncident']), info: objectValidator({
|
|
2496
2398
|
title: stringValidator,
|
|
2497
2399
|
type: stringValidator,
|
|
2498
2400
|
serviceId: stringValidator,
|
|
2499
|
-
}),
|
|
2500
|
-
}),
|
|
2501
|
-
smartMeterPlaceOrder: objectValidator({
|
|
2502
|
-
continueOnError: booleanValidatorOptional,
|
|
2503
|
-
type: exactMatchValidator(['smartMeterPlaceOrder']),
|
|
2504
|
-
info: objectValidator({
|
|
2401
|
+
}) })),
|
|
2402
|
+
smartMeterPlaceOrder: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['smartMeterPlaceOrder']), info: objectValidator({
|
|
2505
2403
|
lines: smartMeterLinesValidator,
|
|
2506
2404
|
shipping: stringValidator100,
|
|
2507
|
-
}),
|
|
2508
|
-
}),
|
|
2509
|
-
sendChat: objectValidator({
|
|
2510
|
-
continueOnError: booleanValidatorOptional,
|
|
2511
|
-
type: exactMatchValidator(['sendChat']),
|
|
2512
|
-
info: objectValidator({
|
|
2405
|
+
}) })),
|
|
2406
|
+
sendChat: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['sendChat']), info: objectValidator({
|
|
2513
2407
|
templateId: mongoIdStringRequired,
|
|
2514
2408
|
identifier: stringValidator100,
|
|
2515
2409
|
includeCareTeam: booleanValidatorOptional,
|
|
2516
2410
|
userIds: listOfMongoIdStringValidatorOptionalOrEmptyOk,
|
|
2517
2411
|
sendToDestinationOfRelatedContactTypes: listOfStringsValidatorOptionalOrEmptyOk,
|
|
2518
|
-
}),
|
|
2519
|
-
}),
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
}),
|
|
2525
|
-
elationSync: objectValidator({
|
|
2526
|
-
continueOnError: booleanValidatorOptional,
|
|
2527
|
-
type: exactMatchValidator(['elationSync']),
|
|
2528
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2529
|
-
}),
|
|
2530
|
-
athenaSync: objectValidator({
|
|
2531
|
-
continueOnError: booleanValidatorOptional,
|
|
2532
|
-
type: exactMatchValidator(['athenaSync']),
|
|
2533
|
-
info: objectValidator({ departmentid: stringValidator100 }, { emptyOk: true }),
|
|
2534
|
-
}),
|
|
2535
|
-
canvasSync: objectValidator({
|
|
2536
|
-
continueOnError: booleanValidatorOptional,
|
|
2537
|
-
type: exactMatchValidator(['canvasSync']),
|
|
2538
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2539
|
-
}),
|
|
2540
|
-
canvasCreateNote: objectValidator({
|
|
2541
|
-
continueOnError: booleanValidatorOptional,
|
|
2542
|
-
type: exactMatchValidator(['canvasCreateNote']),
|
|
2543
|
-
info: objectValidator({
|
|
2412
|
+
}) })),
|
|
2413
|
+
healthieSync: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['healthieSync']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2414
|
+
elationSync: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['elationSync']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2415
|
+
athenaSync: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['athenaSync']), info: objectValidator({ departmentid: stringValidator100 }, { emptyOk: true }) })),
|
|
2416
|
+
canvasSync: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['canvasSync']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2417
|
+
canvasCreateNote: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['canvasCreateNote']), info: objectValidator({
|
|
2544
2418
|
formIds: listOfMongoIdStringValidator,
|
|
2545
2419
|
matchCareTeamTagsForCanvasPractitionerResolution: listOfStringsWithQualifierValidator,
|
|
2546
2420
|
noteCoding: canvasCodingValidator,
|
|
2547
|
-
}),
|
|
2548
|
-
}),
|
|
2549
|
-
|
|
2550
|
-
continueOnError: booleanValidatorOptional,
|
|
2551
|
-
type: exactMatchValidator(['healthieAddToCourse']),
|
|
2552
|
-
info: objectValidator({ courseId: stringValidator100 }),
|
|
2553
|
-
}),
|
|
2554
|
-
healthieSendChat: objectValidator({
|
|
2555
|
-
continueOnError: booleanValidatorOptional,
|
|
2556
|
-
type: exactMatchValidator(['healthieSendChat']),
|
|
2557
|
-
info: objectValidator({
|
|
2421
|
+
}) })),
|
|
2422
|
+
healthieAddToCourse: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['healthieAddToCourse']), info: objectValidator({ courseId: stringValidator100 }) })),
|
|
2423
|
+
healthieSendChat: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['healthieSendChat']), info: objectValidator({
|
|
2558
2424
|
templateId: mongoIdStringRequired,
|
|
2559
2425
|
identifier: stringValidator100,
|
|
2560
2426
|
includeCareTeam: booleanValidatorOptional,
|
|
2561
|
-
}),
|
|
2562
|
-
}),
|
|
2563
|
-
completeTickets: objectValidator({
|
|
2564
|
-
continueOnError: booleanValidatorOptional,
|
|
2565
|
-
type: exactMatchValidator(['completeTickets']),
|
|
2566
|
-
info: objectValidator({
|
|
2427
|
+
}) })),
|
|
2428
|
+
completeTickets: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['completeTickets']), info: objectValidator({
|
|
2567
2429
|
journeyIds: listOfMongoIdStringValidatorOptionalOrEmptyOk,
|
|
2568
|
-
}),
|
|
2569
|
-
}),
|
|
2570
|
-
changeContactType: objectValidator({
|
|
2571
|
-
continueOnError: booleanValidatorOptional,
|
|
2572
|
-
type: exactMatchValidator(['changeContactType']),
|
|
2573
|
-
info: objectValidator({
|
|
2430
|
+
}) })),
|
|
2431
|
+
changeContactType: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['changeContactType']), info: objectValidator({
|
|
2574
2432
|
type: stringValidatorOptional, // can be empty string for default contact type or id for others
|
|
2575
|
-
}),
|
|
2576
|
-
}),
|
|
2577
|
-
|
|
2578
|
-
continueOnError: booleanValidatorOptional,
|
|
2579
|
-
type: exactMatchValidator(['activeCampaignSync']),
|
|
2580
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2581
|
-
}),
|
|
2582
|
-
activeCampaignAddToLists: objectValidator({
|
|
2583
|
-
continueOnError: booleanValidatorOptional,
|
|
2584
|
-
type: exactMatchValidator(['activeCampaignAddToLists']),
|
|
2585
|
-
info: objectValidator({
|
|
2433
|
+
}) })),
|
|
2434
|
+
activeCampaignSync: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['activeCampaignSync']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2435
|
+
activeCampaignAddToLists: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['activeCampaignAddToLists']), info: objectValidator({
|
|
2586
2436
|
listIds: listOfStringsValidator,
|
|
2587
|
-
}),
|
|
2588
|
-
}),
|
|
2589
|
-
switchToRelatedContact: objectValidator({
|
|
2590
|
-
continueOnError: booleanValidatorOptional,
|
|
2591
|
-
type: exactMatchValidator(['switchToRelatedContact']),
|
|
2592
|
-
info: objectValidator({
|
|
2437
|
+
}) })),
|
|
2438
|
+
switchToRelatedContact: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['switchToRelatedContact']), info: objectValidator({
|
|
2593
2439
|
type: stringValidator100,
|
|
2594
2440
|
otherTypes: listOfStringsValidatorUniqueOptionalOrEmptyOkay,
|
|
2595
|
-
}, {}),
|
|
2596
|
-
}),
|
|
2597
|
-
pushFormsToPortal: objectValidator({
|
|
2598
|
-
continueOnError: booleanValidatorOptional,
|
|
2599
|
-
type: exactMatchValidator(['pushFormsToPortal']),
|
|
2600
|
-
info: objectValidator({
|
|
2441
|
+
}, {}) })),
|
|
2442
|
+
pushFormsToPortal: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['pushFormsToPortal']), info: objectValidator({
|
|
2601
2443
|
formIds: listOfMongoIdStringValidator,
|
|
2602
|
-
}, { emptyOk: false }),
|
|
2603
|
-
}),
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
type: exactMatchValidator(['cancelFutureAppointments']),
|
|
2607
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2608
|
-
}),
|
|
2609
|
-
customerIOIdentify: objectValidator({
|
|
2610
|
-
continueOnError: booleanValidatorOptional,
|
|
2611
|
-
type: exactMatchValidator(['customerIOIdentify']),
|
|
2612
|
-
info: objectValidator({}, { emptyOk: true }),
|
|
2613
|
-
}),
|
|
2614
|
-
customerIOTrack: objectValidator({
|
|
2615
|
-
continueOnError: booleanValidatorOptional,
|
|
2616
|
-
type: exactMatchValidator(['customerIOTrack']),
|
|
2617
|
-
info: objectValidator({
|
|
2444
|
+
}, { emptyOk: false }) })),
|
|
2445
|
+
cancelFutureAppointments: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['cancelFutureAppointments']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2446
|
+
customerIOIdentify: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['customerIOIdentify']), info: objectValidator({}, { emptyOk: true }) })),
|
|
2447
|
+
customerIOTrack: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['customerIOTrack']), info: objectValidator({
|
|
2618
2448
|
event: stringValidator,
|
|
2619
2449
|
trackProperties: listOfStringsValidatorOptionalOrEmptyOk,
|
|
2620
|
-
}, { emptyOk: false }),
|
|
2621
|
-
}),
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
type: exactMatchValidator(['cancelCurrentEvent']),
|
|
2625
|
-
info: objectValidator({}, { emptyOk: true, isOptional: true }),
|
|
2626
|
-
}),
|
|
2627
|
-
confirmCurrentEvent: objectValidator({
|
|
2628
|
-
continueOnError: booleanValidatorOptional,
|
|
2629
|
-
type: exactMatchValidator(['confirmCurrentEvent']),
|
|
2630
|
-
info: objectValidator({}, { emptyOk: true, isOptional: true }),
|
|
2631
|
-
}),
|
|
2632
|
-
outboundCall: objectValidator({
|
|
2633
|
-
continueOnError: booleanValidatorOptional,
|
|
2634
|
-
type: exactMatchValidator(['outboundCall']),
|
|
2635
|
-
info: objectValidator({
|
|
2450
|
+
}, { emptyOk: false }) })),
|
|
2451
|
+
cancelCurrentEvent: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['cancelCurrentEvent']), info: objectValidator({}, { emptyOk: true, isOptional: true }) })),
|
|
2452
|
+
confirmCurrentEvent: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['confirmCurrentEvent']), info: objectValidator({}, { emptyOk: true, isOptional: true }) })),
|
|
2453
|
+
outboundCall: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['outboundCall']), info: objectValidator({
|
|
2636
2454
|
treeId: mongoIdStringRequired,
|
|
2637
|
-
}, { emptyOk: false }),
|
|
2638
|
-
}),
|
|
2639
|
-
assignCareTeam: objectValidator({
|
|
2640
|
-
continueOnError: booleanValidatorOptional,
|
|
2641
|
-
type: exactMatchValidator(['assignCareTeam']),
|
|
2642
|
-
info: objectValidator({
|
|
2455
|
+
}, { emptyOk: false }) })),
|
|
2456
|
+
assignCareTeam: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['assignCareTeam']), info: objectValidator({
|
|
2643
2457
|
tags: listOfStringsWithQualifierValidator,
|
|
2644
2458
|
limitToOneUser: booleanValidatorOptional,
|
|
2645
2459
|
setAsPrimary: booleanValidatorOptional,
|
|
2646
2460
|
}, { emptyOk: false }) // at least tags is required
|
|
2647
|
-
|
|
2648
|
-
removeCareTeam: objectValidator({
|
|
2649
|
-
continueOnError: booleanValidatorOptional,
|
|
2650
|
-
type: exactMatchValidator(['removeCareTeam']),
|
|
2651
|
-
info: objectValidator({
|
|
2461
|
+
})),
|
|
2462
|
+
removeCareTeam: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['removeCareTeam']), info: objectValidator({
|
|
2652
2463
|
tags: listOfStringsWithQualifierValidator,
|
|
2653
2464
|
}, { emptyOk: false }) // at least tags is required
|
|
2654
|
-
|
|
2655
|
-
callUser: objectValidator({
|
|
2656
|
-
continueOnError: booleanValidatorOptional,
|
|
2657
|
-
type: exactMatchValidator(['callUser']),
|
|
2658
|
-
info: objectValidator({
|
|
2465
|
+
})),
|
|
2466
|
+
callUser: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['callUser']), info: objectValidator({
|
|
2659
2467
|
message: stringValidator25000,
|
|
2660
2468
|
routeBy: exactMatchValidator(['Appointment Host']),
|
|
2661
2469
|
}, { emptyOk: false }) // at least tags is required
|
|
2662
|
-
|
|
2663
|
-
stripeChargeCardOnFile: objectValidator({
|
|
2664
|
-
continueOnError: booleanValidatorOptional,
|
|
2665
|
-
type: exactMatchValidator(['stripeChargeCardOnFile']),
|
|
2666
|
-
info: objectValidator({
|
|
2470
|
+
})),
|
|
2471
|
+
stripeChargeCardOnFile: objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(['stripeChargeCardOnFile']), info: objectValidator({
|
|
2667
2472
|
stripeKey: stringValidatorOptionalEmptyOkay,
|
|
2668
2473
|
priceIds: listOfStringsValidator,
|
|
2669
2474
|
}, { emptyOk: false }) // at least tags is required
|
|
2670
|
-
|
|
2475
|
+
})),
|
|
2476
|
+
"Puppeteer: Start Agent": objectValidator(__assign(__assign({}, sharedAutomationActionValidators), { type: exactMatchValidator(["Puppeteer: Start Agent"]), info: sendWebhookInfoValidator })),
|
|
2671
2477
|
});
|
|
2672
2478
|
export var journeyContextValidator = objectValidator({
|
|
2673
2479
|
calendarEventId: mongoIdStringOptional,
|
|
@@ -3918,6 +3724,7 @@ export var automationTriggerEventValidator = orValidator({
|
|
|
3918
3724
|
fills: listOfStringsValidatorOptionalOrEmptyOk,
|
|
3919
3725
|
skus: listOfStringsValidatorOptionalOrEmptyOk,
|
|
3920
3726
|
skuPartials: listOfStringsValidatorOptionalOrEmptyOk,
|
|
3727
|
+
titlePartials: listOfStringsValidatorOptionalOrEmptyOk,
|
|
3921
3728
|
}),
|
|
3922
3729
|
conditions: optionalEmptyObjectValidator,
|
|
3923
3730
|
}),
|
|
@@ -4624,7 +4431,9 @@ export var analyticsQueryValidator = orValidator({
|
|
|
4624
4431
|
}),
|
|
4625
4432
|
"Purchases": objectValidator({
|
|
4626
4433
|
resource: exactMatchValidator(['Purchases']),
|
|
4627
|
-
filter: objectValidator({
|
|
4434
|
+
filter: objectValidator({
|
|
4435
|
+
titles: listOfStringsValidatorOptionalOrEmptyOk,
|
|
4436
|
+
}, { isOptional: true, emptyOk: true }),
|
|
4628
4437
|
info: orValidator({
|
|
4629
4438
|
"Total": objectValidator({
|
|
4630
4439
|
method: exactMatchValidator(['Total']),
|
|
@@ -4634,6 +4443,7 @@ export var analyticsQueryValidator = orValidator({
|
|
|
4634
4443
|
grouping: objectValidator({
|
|
4635
4444
|
Enduser: booleanValidatorOptional,
|
|
4636
4445
|
Cost: booleanValidatorOptional,
|
|
4446
|
+
Title: booleanValidatorOptional,
|
|
4637
4447
|
Gender: booleanValidatorOptional,
|
|
4638
4448
|
"Assigned To": booleanValidatorOptional,
|
|
4639
4449
|
Field: stringValidatorOptionalEmptyOkay,
|