@tellescope/schema 1.238.0 → 1.239.1
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/generate-openapi.d.ts +106 -0
- package/lib/cjs/generate-openapi.d.ts.map +1 -0
- package/lib/cjs/generate-openapi.js +1148 -0
- package/lib/cjs/generate-openapi.js.map +1 -0
- package/lib/cjs/schema.d.ts +2 -0
- package/lib/cjs/schema.d.ts.map +1 -1
- package/lib/cjs/schema.js +6 -4
- package/lib/cjs/schema.js.map +1 -1
- package/lib/esm/generate-openapi.d.ts +106 -0
- package/lib/esm/generate-openapi.d.ts.map +1 -0
- package/lib/esm/generate-openapi.js +1123 -0
- package/lib/esm/generate-openapi.js.map +1 -0
- package/lib/esm/schema.d.ts +2 -0
- package/lib/esm/schema.d.ts.map +1 -1
- package/lib/esm/schema.js +7 -5
- package/lib/esm/schema.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/openapi.json +139944 -0
- package/package.json +9 -9
- package/src/generate-openapi.ts +1268 -0
- package/src/schema.ts +12 -4
package/src/schema.ts
CHANGED
|
@@ -309,6 +309,7 @@ import {
|
|
|
309
309
|
listOfUniqueStringsValidatorEmptyOk,
|
|
310
310
|
ticketReminderValidator,
|
|
311
311
|
insuranceOptionalValidator,
|
|
312
|
+
pharmacyValidator,
|
|
312
313
|
listOfStringsValidatorUniqueOptionalOrEmptyOkay,
|
|
313
314
|
diagnosesValidator,
|
|
314
315
|
stateValidatorOptional,
|
|
@@ -703,8 +704,8 @@ export type CustomActions = {
|
|
|
703
704
|
},
|
|
704
705
|
form_responses: {
|
|
705
706
|
prepare_form_response: CustomAction<
|
|
706
|
-
{
|
|
707
|
-
formId: string, enduserId: string, automationStepId?: string, expireAt?: Date, sharedVia?: CommunicationsChannel
|
|
707
|
+
{
|
|
708
|
+
formId: string, enduserId: string, automationStepId?: string, expireAt?: Date, sharedVia?: CommunicationsChannel
|
|
708
709
|
isInternalNote?: boolean, title?: string,
|
|
709
710
|
rootResponseId?: string,
|
|
710
711
|
parentResponseId?: string,
|
|
@@ -714,7 +715,8 @@ export type CustomActions = {
|
|
|
714
715
|
groupId?: string,
|
|
715
716
|
groupInstance?: string,
|
|
716
717
|
groupPosition?: number,
|
|
717
|
-
|
|
718
|
+
startedViaPinnedForm?: boolean,
|
|
719
|
+
},
|
|
718
720
|
{ accessCode: string, url: string, response: FormResponse, fullURL: string }>
|
|
719
721
|
,
|
|
720
722
|
submit_form_response: CustomAction<
|
|
@@ -1213,7 +1215,7 @@ export type CustomActions = {
|
|
|
1213
1215
|
{ alreadyBuilt: boolean }
|
|
1214
1216
|
>,
|
|
1215
1217
|
load_threads: CustomAction<
|
|
1216
|
-
{ limit?: number, ids?: string[], excludeIds?: string[], lastTimestamp?: Date, userIds?: string[], enduserIds?: string[], phoneNumber?: string, returnCount?: boolean, mdbFilter?: object, sortBy?: 'timestamp' | 'outboundTimestamp' },
|
|
1218
|
+
{ limit?: number, ids?: string[], excludeIds?: string[], lastTimestamp?: Date, userIds?: string[], enduserIds?: string[], phoneNumber?: string, returnCount?: boolean, mdbFilter?: object, sortBy?: 'timestamp' | 'outboundTimestamp', autobuild?: boolean },
|
|
1217
1219
|
{ threads: InboxThread[], count?: number }
|
|
1218
1220
|
>,
|
|
1219
1221
|
reset_threads: CustomAction<
|
|
@@ -1594,6 +1596,7 @@ export const schema: SchemaV1 = build_schema({
|
|
|
1594
1596
|
unsubscribedFromPhones: { validator: listOfStringsValidatorUniqueOptionalOrEmptyOkay, redactions: ['enduser'] },
|
|
1595
1597
|
lockedFromPortal: { validator: booleanValidator },
|
|
1596
1598
|
eligibleForAutoMerge: { validator: booleanValidator },
|
|
1599
|
+
preferredPharmacy: { validator: pharmacyValidator, redactions: ['enduser'] },
|
|
1597
1600
|
// recentMessagePreview: {
|
|
1598
1601
|
// validator: stringValidator,
|
|
1599
1602
|
// },
|
|
@@ -4787,6 +4790,7 @@ export const schema: SchemaV1 = build_schema({
|
|
|
4787
4790
|
timestamp: dateValidator,
|
|
4788
4791
|
}))
|
|
4789
4792
|
},
|
|
4793
|
+
startedViaPinnedForm: { validator: booleanValidator },
|
|
4790
4794
|
},
|
|
4791
4795
|
defaultActions: DEFAULT_OPERATIONS,
|
|
4792
4796
|
enduserActions: {
|
|
@@ -4816,6 +4820,7 @@ export const schema: SchemaV1 = build_schema({
|
|
|
4816
4820
|
groupId: { validator: mongoIdStringValidator },
|
|
4817
4821
|
groupInstance: { validator: stringValidator100 },
|
|
4818
4822
|
groupPosition: { validator: nonNegNumberValidator },
|
|
4823
|
+
startedViaPinnedForm: { validator: booleanValidator },
|
|
4819
4824
|
},
|
|
4820
4825
|
returns: {
|
|
4821
4826
|
accessCode: { validator: stringValidator250, required: true },
|
|
@@ -7191,6 +7196,7 @@ export const schema: SchemaV1 = build_schema({
|
|
|
7191
7196
|
limitedToCareTeam: { validator: booleanValidator },
|
|
7192
7197
|
limitedByState: { validator: booleanValidator },
|
|
7193
7198
|
limitedByTagsPortal: { validator: listOfStringsValidatorUniqueOptionalOrEmptyOkay },
|
|
7199
|
+
enableUserSelection: { validator: booleanValidator },
|
|
7194
7200
|
topLogo: { validator: stringValidator },
|
|
7195
7201
|
requireLocationSelection: { validator: booleanValidator },
|
|
7196
7202
|
fontFace: { validator: stringValidator },
|
|
@@ -7878,6 +7884,7 @@ If a voicemail is left, it is indicated by recordingURI, transcription, or recor
|
|
|
7878
7884
|
acknowledgedAt: { validator: dateOptionalOrEmptyStringValidator },
|
|
7879
7885
|
journeyId: { validator: mongoIdStringValidator },
|
|
7880
7886
|
enduserId: { validator: mongoIdStringValidator },
|
|
7887
|
+
userId: { validator: mongoIdStringValidator },
|
|
7881
7888
|
}
|
|
7882
7889
|
},
|
|
7883
7890
|
automation_triggers: {
|
|
@@ -9210,6 +9217,7 @@ If a voicemail is left, it is indicated by recordingURI, transcription, or recor
|
|
|
9210
9217
|
returnCount: { validator: booleanValidatorOptional },
|
|
9211
9218
|
mdbFilter: { validator: objectAnyFieldsAnyValuesValidator },
|
|
9212
9219
|
sortBy: { validator: exactMatchValidatorOptional<'timestamp' | 'outboundTimestamp'>(['timestamp', 'outboundTimestamp']) },
|
|
9220
|
+
autobuild: { validator: booleanValidatorOptional },
|
|
9213
9221
|
},
|
|
9214
9222
|
returns: {
|
|
9215
9223
|
threads: { validator: 'inbox_threads' as any },
|