@tellescope/types-models 1.71.4 → 1.72.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/index.d.ts +76 -5
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +76 -5
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/index.ts +100 -4
package/lib/esm/index.d.ts
CHANGED
|
@@ -236,8 +236,13 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
236
236
|
hasConnectedIterable?: boolean;
|
|
237
237
|
hasConnectedZendesk?: boolean;
|
|
238
238
|
hasConnectedZus?: boolean;
|
|
239
|
+
hasConnectedCanvas?: boolean;
|
|
239
240
|
hasTicketQueues?: boolean;
|
|
240
241
|
vitalTeamId?: string;
|
|
242
|
+
altVitalTeamIds?: {
|
|
243
|
+
teamId: string;
|
|
244
|
+
label: string;
|
|
245
|
+
}[];
|
|
241
246
|
zendeskSettings?: {
|
|
242
247
|
priorityGroups?: string[];
|
|
243
248
|
resolutionFieldId?: string;
|
|
@@ -439,13 +444,32 @@ export type ScheduledJourney = {
|
|
|
439
444
|
addAt: Date;
|
|
440
445
|
};
|
|
441
446
|
export type EnduserRelationship = {
|
|
442
|
-
type: 'Parent' | 'Child' | 'Spouse' | 'Sibling' | 'Relates To' | 'Grandparent' | 'Grandchild' | 'Caregiver' | 'Caretaker' | 'Care Recipient';
|
|
447
|
+
type: 'Parent' | 'Child' | 'Spouse' | 'Partner' | 'Sibling' | 'Relates To' | 'Grandparent' | 'Grandchild' | 'Caregiver' | 'Caretaker' | 'Care Recipient';
|
|
443
448
|
id: string;
|
|
444
449
|
};
|
|
445
450
|
export type Language = {
|
|
446
451
|
displayName: string;
|
|
447
452
|
iso6391: string;
|
|
448
453
|
};
|
|
454
|
+
export type InsuranceRelationship = ("Spouse" | "Grandfather or Grandmother" | "Grandson or Grandaughter" | "Nephew or Niece" | "Foster Child" | "Ward of the Court" | "Stepson or Stepdaughter" | "Self" | "Child" | "Employee" | "Unknown" | "Handicapped/Dependent" | "Sponsored Dependent" | "Dependent of Minor Dependent" | "Significant Other" | "Mother" | "Father" | "Emancipated Minor" | "Organ Donor" | "Cadaver Donor" | "Injured Plaintiff" | "Child Where Insured Has No Financial Responsibility" | "Life Partner" | "Other Relationship");
|
|
455
|
+
export type EnduserInsurance = {
|
|
456
|
+
memberId?: string;
|
|
457
|
+
payerId?: string;
|
|
458
|
+
payerName?: string;
|
|
459
|
+
cardFront?: string;
|
|
460
|
+
cardBack?: string;
|
|
461
|
+
eligible?: boolean;
|
|
462
|
+
eligibilityRanAt?: Date;
|
|
463
|
+
canvasId?: string;
|
|
464
|
+
relationship?: InsuranceRelationship;
|
|
465
|
+
relationshipDetails?: {
|
|
466
|
+
fname?: string;
|
|
467
|
+
lname?: string;
|
|
468
|
+
phone?: string;
|
|
469
|
+
email?: string;
|
|
470
|
+
address?: Partial<Address>;
|
|
471
|
+
};
|
|
472
|
+
};
|
|
449
473
|
export type TellescopeGender = "Male" | "Female" | "Other" | "Unknown";
|
|
450
474
|
export interface Enduser_readonly extends UserActivityInfo, ClientRecord, EnduserEngagementTimestamps {
|
|
451
475
|
lastCommunication?: Date;
|
|
@@ -519,6 +543,7 @@ export interface Enduser extends Enduser_readonly, Enduser_required, Enduser_upd
|
|
|
519
543
|
lastZendeskSyncAt?: Date;
|
|
520
544
|
accessTags?: string[];
|
|
521
545
|
unsubscribedFromMarketing?: boolean;
|
|
546
|
+
insurance?: EnduserInsurance;
|
|
522
547
|
}
|
|
523
548
|
export interface EnduserCustomType_readonly extends ClientRecord {
|
|
524
549
|
}
|
|
@@ -1052,7 +1077,7 @@ export interface Note extends Note_readonly, Note_required, Note_updatesDisabled
|
|
|
1052
1077
|
tags?: string[];
|
|
1053
1078
|
}
|
|
1054
1079
|
export type FormFieldLiteralType = 'description' | 'string' | 'stringLong' | 'number' | 'email' | 'phone' | 'date' | 'dateString' | 'rating' | 'Time';
|
|
1055
|
-
export type FormFieldComplexType = "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts";
|
|
1080
|
+
export type FormFieldComplexType = "multiple_choice" | "file" | 'files' | "signature" | 'ranking' | 'Question Group' | 'Table Input' | "Address" | "Stripe" | "Dropdown" | "Database Select" | "Medications" | "Related Contacts" | "Insurance";
|
|
1056
1081
|
export type FormFieldType = FormFieldLiteralType | FormFieldComplexType;
|
|
1057
1082
|
export type PreviousFormFieldType = 'root' | 'after' | 'previousEquals' | 'compoundLogic';
|
|
1058
1083
|
export type PreviousFormFieldBuilder<T extends PreviousFormFieldType, V> = {
|
|
@@ -1366,6 +1391,7 @@ export type FormResponseAnswerStripe = FormResponseValueAnswerBuilder<'Stripe',
|
|
|
1366
1391
|
export type FormResponseAnswerDatabaseSelect = FormResponseValueAnswerBuilder<'Database Select', DatabaseSelectResponse[]>;
|
|
1367
1392
|
export type FormResponseAnswerMedications = FormResponseValueAnswerBuilder<'Medications', MedicationResponse[]>;
|
|
1368
1393
|
export type FormResponseAnswerRelatedContacts = FormResponseValueAnswerBuilder<'Related Contacts', Partial<Enduser>[]>;
|
|
1394
|
+
export type FormResponseAnswerInsurance = FormResponseValueAnswerBuilder<'Insurance', Partial<EnduserInsurance>>;
|
|
1369
1395
|
export type FormResponseAnswerSignatureValue = {
|
|
1370
1396
|
fullName: string;
|
|
1371
1397
|
signed: boolean;
|
|
@@ -1385,7 +1411,7 @@ export type FormResponseAnswerFileValue = {
|
|
|
1385
1411
|
};
|
|
1386
1412
|
export type FormResponseAnswerFile = FormResponseValueAnswerBuilder<'file', FormResponseAnswerFileValue>;
|
|
1387
1413
|
export type FormResponseAnswerFiles = FormResponseValueAnswerBuilder<'files', FormResponseAnswerFileValue[]>;
|
|
1388
|
-
export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts);
|
|
1414
|
+
export type FormResponseValueAnswer = (FormResponseAnswerGroup | FormResponseAnswerTable | FormResponseAnswerDescription | FormResponseAnswerEmail | FormResponseAnswerNumber | FormResponseAnswerPhone | FormResponseAnswerString | FormResponseAnswerStringLong | FormResponseAnswerSignature | FormResponseAnswerMultipleChoice | FormResponseAnswerFile | FormResponseAnswerFiles | FormResponseAnswerDate | FormResponseAnswerRating | FormResponseAnswerRanking | FormResponseAnswerDateString | FormResponseAnswerAddress | FormResponseAnswerTime | FormResponseAnswerStripe | FormResponseAnswerDropdown | FormResponseAnswerDatabaseSelect | FormResponseAnswerMedications | FormResponseAnswerRelatedContacts | FormResponseAnswerInsurance);
|
|
1389
1415
|
export type FormResponseValue = {
|
|
1390
1416
|
fieldId: string;
|
|
1391
1417
|
fieldTitle: string;
|
|
@@ -1420,6 +1446,7 @@ export type AnswerForType = {
|
|
|
1420
1446
|
'Database Select': FormResponseAnswerDatabaseSelect['value'];
|
|
1421
1447
|
'Medications': FormResponseAnswerMedications['value'];
|
|
1422
1448
|
'Related Contacts': FormResponseAnswerRelatedContacts['value'];
|
|
1449
|
+
'Insurance': FormResponseAnswerInsurance['value'];
|
|
1423
1450
|
};
|
|
1424
1451
|
export interface FormResponse_readonly extends ClientRecord {
|
|
1425
1452
|
openedAt?: Date;
|
|
@@ -2365,6 +2392,8 @@ export interface PhoneCall_readonly extends ClientRecord {
|
|
|
2365
2392
|
recordingId?: string;
|
|
2366
2393
|
recordingDurationInSeconds?: number;
|
|
2367
2394
|
transcriptionId?: string;
|
|
2395
|
+
conferenceId?: string;
|
|
2396
|
+
conferenceAttendees?: string[];
|
|
2368
2397
|
}
|
|
2369
2398
|
export interface PhoneCall_required {
|
|
2370
2399
|
}
|
|
@@ -2433,6 +2462,9 @@ export type AnalyticsQueryInfoForType = {
|
|
|
2433
2462
|
"SMS Messages": {
|
|
2434
2463
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
2435
2464
|
};
|
|
2465
|
+
"Medications": {
|
|
2466
|
+
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
2467
|
+
};
|
|
2436
2468
|
"Phone Calls": {
|
|
2437
2469
|
Total: AnalyticsQueryInfoBuilder<'Total', undefined>;
|
|
2438
2470
|
Duration: AnalyticsQueryInfoBuilder<'Duration', undefined>;
|
|
@@ -2481,6 +2513,7 @@ export type AnalyticsQueryFilterForType = {
|
|
|
2481
2513
|
"Phone Calls": {};
|
|
2482
2514
|
"SMS Messages": {};
|
|
2483
2515
|
Emails: {};
|
|
2516
|
+
Medications: {};
|
|
2484
2517
|
};
|
|
2485
2518
|
export type EnduserGrouping = {
|
|
2486
2519
|
Field?: string;
|
|
@@ -2494,7 +2527,9 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
2494
2527
|
"Calendar Events": {
|
|
2495
2528
|
Type: boolean;
|
|
2496
2529
|
};
|
|
2497
|
-
"Form Responses": {
|
|
2530
|
+
"Form Responses": {
|
|
2531
|
+
"Public Identifier"?: boolean;
|
|
2532
|
+
} & EnduserGrouping & {
|
|
2498
2533
|
Enduser: string;
|
|
2499
2534
|
};
|
|
2500
2535
|
"Purchases": {
|
|
@@ -2511,12 +2546,17 @@ export type AnalyticsQueryGroupingForType = {
|
|
|
2511
2546
|
"Phone Calls": {} & EnduserGrouping & {
|
|
2512
2547
|
Enduser: string;
|
|
2513
2548
|
};
|
|
2514
|
-
"SMS Messages": {
|
|
2549
|
+
"SMS Messages": {
|
|
2550
|
+
Score?: boolean;
|
|
2551
|
+
} & EnduserGrouping & {
|
|
2515
2552
|
Enduser: string;
|
|
2516
2553
|
};
|
|
2517
2554
|
"Emails": {} & EnduserGrouping & {
|
|
2518
2555
|
Enduser: string;
|
|
2519
2556
|
};
|
|
2557
|
+
"Medications": {} & EnduserGrouping & {
|
|
2558
|
+
Enduser: string;
|
|
2559
|
+
};
|
|
2520
2560
|
};
|
|
2521
2561
|
type DefaultRangeKey = 'Created At' | 'Updated At';
|
|
2522
2562
|
export type AnalyticsQueryRangeKeyForType = {
|
|
@@ -2529,6 +2569,7 @@ export type AnalyticsQueryRangeKeyForType = {
|
|
|
2529
2569
|
"Phone Calls": DefaultRangeKey;
|
|
2530
2570
|
"SMS Messages": DefaultRangeKey;
|
|
2531
2571
|
"Emails": DefaultRangeKey;
|
|
2572
|
+
"Medications": DefaultRangeKey;
|
|
2532
2573
|
};
|
|
2533
2574
|
export type AnalyticsQueryRangeInterval = 'Daily' | 'Weekly' | 'Monthly';
|
|
2534
2575
|
export type AnalyticsQueryRange<R> = {
|
|
@@ -2552,6 +2593,7 @@ export type AnalyticsQueryForType = {
|
|
|
2552
2593
|
"Phone Calls": AnalyticsQueryBuilder<"Phone Calls", AnalyticsQueryInfoForType['Phone Calls'][keyof AnalyticsQueryInfoForType['Phone Calls']], AnalyticsQueryFilterForType['Phone Calls'], AnalyticsQueryGroupingForType['Phone Calls'], AnalyticsQueryRangeKeyForType['Phone Calls']>;
|
|
2553
2594
|
"Emails": AnalyticsQueryBuilder<"Emails", AnalyticsQueryInfoForType['Emails'][keyof AnalyticsQueryInfoForType['Emails']], AnalyticsQueryFilterForType['Emails'], AnalyticsQueryGroupingForType['Emails'], AnalyticsQueryRangeKeyForType['Emails']>;
|
|
2554
2595
|
"SMS Messages": AnalyticsQueryBuilder<"SMS Messages", AnalyticsQueryInfoForType['SMS Messages'][keyof AnalyticsQueryInfoForType['SMS Messages']], AnalyticsQueryFilterForType['SMS Messages'], AnalyticsQueryGroupingForType['SMS Messages'], AnalyticsQueryRangeKeyForType['SMS Messages']>;
|
|
2596
|
+
"Medications": AnalyticsQueryBuilder<"Medications", AnalyticsQueryInfoForType['Medications'][keyof AnalyticsQueryInfoForType['Medications']], AnalyticsQueryFilterForType['Medications'], AnalyticsQueryGroupingForType['Medications'], AnalyticsQueryRangeKeyForType['Medications']>;
|
|
2555
2597
|
};
|
|
2556
2598
|
export type AnalyticsQueryType = keyof AnalyticsQueryForType;
|
|
2557
2599
|
export type AnalyticsQuery = AnalyticsQueryForType[AnalyticsQueryType];
|
|
@@ -3001,6 +3043,31 @@ export interface TicketQueue_required {
|
|
|
3001
3043
|
}
|
|
3002
3044
|
export interface TicketQueue extends TicketQueue_readonly, TicketQueue_required, TicketQueue_updatesDisabled {
|
|
3003
3045
|
}
|
|
3046
|
+
export interface EnduserOrder_readonly extends ClientRecord {
|
|
3047
|
+
}
|
|
3048
|
+
export interface EnduserOrder_updatesDisabled {
|
|
3049
|
+
}
|
|
3050
|
+
export interface EnduserOrder_required {
|
|
3051
|
+
}
|
|
3052
|
+
export interface EnduserOrder extends EnduserOrder_readonly, EnduserOrder_required, EnduserOrder_updatesDisabled {
|
|
3053
|
+
externalId: string;
|
|
3054
|
+
source: string;
|
|
3055
|
+
title: string;
|
|
3056
|
+
status: string;
|
|
3057
|
+
enduserId: string;
|
|
3058
|
+
userId?: string;
|
|
3059
|
+
}
|
|
3060
|
+
export interface TicketQueue_readonly extends ClientRecord {
|
|
3061
|
+
count?: number;
|
|
3062
|
+
}
|
|
3063
|
+
export interface TicketQueue_updatesDisabled {
|
|
3064
|
+
}
|
|
3065
|
+
export interface TicketQueue_required {
|
|
3066
|
+
title: string;
|
|
3067
|
+
userIds: string[];
|
|
3068
|
+
}
|
|
3069
|
+
export interface TicketQueue extends TicketQueue_readonly, TicketQueue_required, TicketQueue_updatesDisabled {
|
|
3070
|
+
}
|
|
3004
3071
|
export type ImageAttachment = {
|
|
3005
3072
|
url: string;
|
|
3006
3073
|
type: string;
|
|
@@ -3037,6 +3104,7 @@ export interface GroupMMSConversation_required {
|
|
|
3037
3104
|
export interface GroupMMSConversation extends GroupMMSConversation_readonly, GroupMMSConversation_required, GroupMMSConversation_updatesDisabled {
|
|
3038
3105
|
}
|
|
3039
3106
|
export type ModelForName_required = {
|
|
3107
|
+
enduser_orders: EnduserOrder_required;
|
|
3040
3108
|
group_mms_conversations: GroupMMSConversation_required;
|
|
3041
3109
|
ticket_queues: TicketQueue_required;
|
|
3042
3110
|
ticket_threads: TicketThread_required;
|
|
@@ -3107,6 +3175,7 @@ export type ModelForName_required = {
|
|
|
3107
3175
|
};
|
|
3108
3176
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
|
|
3109
3177
|
export interface ModelForName_readonly {
|
|
3178
|
+
enduser_orders: EnduserOrder_readonly;
|
|
3110
3179
|
group_mms_conversations: GroupMMSConversation_readonly;
|
|
3111
3180
|
ticket_queues: TicketQueue_readonly;
|
|
3112
3181
|
configurations: Configuration_readonly;
|
|
@@ -3177,6 +3246,7 @@ export interface ModelForName_readonly {
|
|
|
3177
3246
|
}
|
|
3178
3247
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
|
|
3179
3248
|
export interface ModelForName_updatesDisabled {
|
|
3249
|
+
enduser_orders: EnduserOrder_updatesDisabled;
|
|
3180
3250
|
group_mms_conversations: GroupMMSConversation_updatesDisabled;
|
|
3181
3251
|
ticket_queues: TicketQueue_updatesDisabled;
|
|
3182
3252
|
configurations: Configuration_updatesDisabled;
|
|
@@ -3247,6 +3317,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
3247
3317
|
}
|
|
3248
3318
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
|
|
3249
3319
|
export interface ModelForName extends ModelForName_required, ModelForName_readonly {
|
|
3320
|
+
enduser_orders: EnduserOrder;
|
|
3250
3321
|
group_mms_conversations: GroupMMSConversation;
|
|
3251
3322
|
ticket_queues: TicketQueue;
|
|
3252
3323
|
configurations: Configuration;
|