@tellescope/types-models 1.227.0 → 1.229.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/index.d.ts +44 -1
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +44 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/lib/esm/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/index.ts +47 -3
package/src/index.ts
CHANGED
|
@@ -129,6 +129,7 @@ export type PortalSettings = {
|
|
|
129
129
|
outstandingFormsTitle?: string,
|
|
130
130
|
availableFormsTitle?: string,
|
|
131
131
|
},
|
|
132
|
+
hideSettingsPage?: boolean,
|
|
132
133
|
}
|
|
133
134
|
|
|
134
135
|
export type WithLinkOpenTrackingIds = { linkOpenTrackingIds: string[] }
|
|
@@ -274,6 +275,9 @@ export type OrganizationSettings = {
|
|
|
274
275
|
showEndusersV2?: boolean,
|
|
275
276
|
showInboxV2?: boolean,
|
|
276
277
|
showDialerInTopbar?: boolean,
|
|
278
|
+
},
|
|
279
|
+
timeTracking?: {
|
|
280
|
+
enabled?: boolean,
|
|
277
281
|
}
|
|
278
282
|
}
|
|
279
283
|
|
|
@@ -469,6 +473,7 @@ export interface Organization extends Organization_readonly, Organization_requir
|
|
|
469
473
|
creditTrialStartedAt?: Date,
|
|
470
474
|
hasIntegrations?: string[],
|
|
471
475
|
outOfOfficeHours?: OutOfOfficeBlock[],
|
|
476
|
+
incomingCallDisplayFields?: string[],
|
|
472
477
|
// _AIEnabled?: boolean,
|
|
473
478
|
skipActivePatientBilling?: boolean,
|
|
474
479
|
}
|
|
@@ -584,6 +589,12 @@ export type MonthlyRestriction = {
|
|
|
584
589
|
occurrences: (1 | 2 | 3 | 4 | 5)[]
|
|
585
590
|
}
|
|
586
591
|
|
|
592
|
+
export type CalendarEventLimit = {
|
|
593
|
+
templateId: string, // calendareventtemplate.id
|
|
594
|
+
period: number, // number of days (e.g. 1 for daily, 7 for weekly)
|
|
595
|
+
limit: number, // maximum number of occurrences of this template in the period
|
|
596
|
+
}
|
|
597
|
+
|
|
587
598
|
export type WeeklyAvailability = {
|
|
588
599
|
dayOfWeekStartingSundayIndexedByZero: number,
|
|
589
600
|
startTimeInMinutes: number,
|
|
@@ -659,6 +670,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
|
|
|
659
670
|
credentialedStates?: StateCredentialInfo[],
|
|
660
671
|
timezone?: Timezone,
|
|
661
672
|
weeklyAvailabilities?: WeeklyAvailability[],
|
|
673
|
+
calendarEventLimits?: CalendarEventLimit[],
|
|
662
674
|
autoReplyEnabled?: boolean,
|
|
663
675
|
twilioNumber?: string;
|
|
664
676
|
availableFromNumbers?: string[],
|
|
@@ -1796,6 +1808,8 @@ export type FormCustomization = {
|
|
|
1796
1808
|
hideBg?: boolean,
|
|
1797
1809
|
portalShowThanksAfterSubmission?: boolean,
|
|
1798
1810
|
maxWidth?: number,
|
|
1811
|
+
primaryColor?: string, // Custom primary/accent color for buttons, progress bar, etc.
|
|
1812
|
+
secondaryColor?: string, // Custom secondary color for outlined buttons, etc.
|
|
1799
1813
|
}
|
|
1800
1814
|
export interface Form_readonly extends ClientRecord {
|
|
1801
1815
|
numFields: number,
|
|
@@ -1867,6 +1881,7 @@ export interface Form extends Form_readonly, Form_required, Form_updatesDisabled
|
|
|
1867
1881
|
dontSyncToCanvasOnSubmission?: boolean,
|
|
1868
1882
|
belugaVisitType?: string,
|
|
1869
1883
|
showByUserTags?: string[],
|
|
1884
|
+
version?: 'v1' | 'v2',
|
|
1870
1885
|
}
|
|
1871
1886
|
|
|
1872
1887
|
export interface FormGroup_readonly extends ClientRecord {}
|
|
@@ -2317,6 +2332,7 @@ export type BaseAvailabilityBlock = {
|
|
|
2317
2332
|
startTimeInMS: number,
|
|
2318
2333
|
durationInMinutes: number,
|
|
2319
2334
|
externalId?: string, // e.g. athena slot id
|
|
2335
|
+
priority?: number,
|
|
2320
2336
|
}
|
|
2321
2337
|
|
|
2322
2338
|
export interface AvailabilityBlock_readonly extends ClientRecord {
|
|
@@ -2614,6 +2630,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
|
|
|
2614
2630
|
athenaTypeId?: string, // for searching slots (default booking type)
|
|
2615
2631
|
athenaBookingTypeId?: string, // for booking a different type than the slot
|
|
2616
2632
|
healthieInsuranceBillingEnabled?: boolean,
|
|
2633
|
+
replaceHostOnReschedule?: boolean, // when enabled, replaces previous host(s) with the new host during reschedule
|
|
2617
2634
|
}
|
|
2618
2635
|
|
|
2619
2636
|
export interface AppointmentLocation_readonly extends ClientRecord {}
|
|
@@ -3042,12 +3059,16 @@ export type IterableCustomEventAutomationAction = AutomationActionBuilder<'itera
|
|
|
3042
3059
|
export type AddAccessTagsAutomationAction = AutomationActionBuilder<'addAccessTags', { tags: string[], replaceExisting?: boolean }>
|
|
3043
3060
|
export type RemoveAccessTagsAutomationAction = AutomationActionBuilder<'removeAccessTags', { tags: string[] }>
|
|
3044
3061
|
|
|
3045
|
-
export type EnduserFieldSetterType = 'Custom Value' | 'Current Timestamp' | 'Current Date' | "Increment Number"
|
|
3062
|
+
export type EnduserFieldSetterType = 'Custom Value' | 'Current Timestamp' | 'Current Date' | "Increment Number" | "Date Difference"
|
|
3046
3063
|
export type EnduserFieldSetter = {
|
|
3047
3064
|
name: string,
|
|
3048
3065
|
type: EnduserFieldSetterType,
|
|
3049
3066
|
value: string,
|
|
3050
3067
|
increment?: number, // MS increment for timestamp/date fields, numeric increment for number fields
|
|
3068
|
+
dateDifferenceOptions?: {
|
|
3069
|
+
date1: string, // field name, ISO string, MM-DD-YYYY string, or "$now"
|
|
3070
|
+
date2: string, // field name, ISO string, MM-DD-YYYY string, or "$now"
|
|
3071
|
+
}
|
|
3051
3072
|
}
|
|
3052
3073
|
export type SetEnduserFieldsAutomationAction = AutomationActionBuilder<'setEnduserFields', {
|
|
3053
3074
|
fields: EnduserFieldSetter[]
|
|
@@ -4376,7 +4397,7 @@ export type PhoneTreeActions = {
|
|
|
4376
4397
|
playback?: Partial<PhonePlayback>,
|
|
4377
4398
|
playbackVoicemail?: Partial<PhonePlayback>,
|
|
4378
4399
|
}>,
|
|
4379
|
-
'Forward Call': PhoneTreeActionBuilder<"Forward Call", { to: string }>
|
|
4400
|
+
'Forward Call': PhoneTreeActionBuilder<"Forward Call", { to: string, playback?: Partial<PhonePlayback> }>
|
|
4380
4401
|
'Conditional Split': PhoneTreeActionBuilder<"Conditional Split", {
|
|
4381
4402
|
timezone?: Timezone,
|
|
4382
4403
|
weeklyAvailabilities?: WeeklyAvailability[],
|
|
@@ -4518,6 +4539,24 @@ export interface Configuration_required {
|
|
|
4518
4539
|
}
|
|
4519
4540
|
export interface Configuration extends Configuration_readonly, Configuration_required, Configuration_updatesDisabled {}
|
|
4520
4541
|
|
|
4542
|
+
export type TimeTrackTimestamp = {
|
|
4543
|
+
type: 'start' | 'pause' | 'resume',
|
|
4544
|
+
timestamp: Date,
|
|
4545
|
+
}
|
|
4546
|
+
|
|
4547
|
+
export interface TimeTrack_readonly extends ClientRecord {}
|
|
4548
|
+
export interface TimeTrack_updatesDisabled {}
|
|
4549
|
+
export interface TimeTrack_required {
|
|
4550
|
+
title: string,
|
|
4551
|
+
userId: string,
|
|
4552
|
+
}
|
|
4553
|
+
export interface TimeTrack extends TimeTrack_readonly, TimeTrack_required, TimeTrack_updatesDisabled {
|
|
4554
|
+
enduserId?: string,
|
|
4555
|
+
timestamps?: TimeTrackTimestamp[],
|
|
4556
|
+
closedAt?: Date | '',
|
|
4557
|
+
totalDurationInMS?: number,
|
|
4558
|
+
}
|
|
4559
|
+
|
|
4521
4560
|
export interface TicketQueue_readonly extends ClientRecord {
|
|
4522
4561
|
count?: number,
|
|
4523
4562
|
}
|
|
@@ -4991,8 +5030,9 @@ export type ModelForName_required = {
|
|
|
4991
5030
|
phone_calls: PhoneCall_required,
|
|
4992
5031
|
enduser_medications: EnduserMedication_required,
|
|
4993
5032
|
table_views: TableView_required,
|
|
4994
|
-
email_sync_denials: EmailSyncDenial_required,
|
|
5033
|
+
email_sync_denials: EmailSyncDenial_required,
|
|
4995
5034
|
configurations: Configuration_required,
|
|
5035
|
+
time_tracks: TimeTrack_required,
|
|
4996
5036
|
}
|
|
4997
5037
|
export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
|
|
4998
5038
|
|
|
@@ -5085,6 +5125,7 @@ export interface ModelForName_readonly {
|
|
|
5085
5125
|
enduser_profile_views: EnduserProfileView_readonly,
|
|
5086
5126
|
table_views: TableView_readonly,
|
|
5087
5127
|
email_sync_denials: EmailSyncDenial_readonly,
|
|
5128
|
+
time_tracks: TimeTrack_readonly,
|
|
5088
5129
|
}
|
|
5089
5130
|
export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
|
|
5090
5131
|
|
|
@@ -5177,6 +5218,7 @@ export interface ModelForName_updatesDisabled {
|
|
|
5177
5218
|
enduser_profile_views: EnduserProfileView_updatesDisabled,
|
|
5178
5219
|
table_views: TableView_updatesDisabled,
|
|
5179
5220
|
email_sync_denials: EmailSyncDenial_updatesDisabled,
|
|
5221
|
+
time_tracks: TimeTrack_updatesDisabled,
|
|
5180
5222
|
}
|
|
5181
5223
|
export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
|
|
5182
5224
|
|
|
@@ -5269,6 +5311,7 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
|
|
|
5269
5311
|
enduser_profile_views: EnduserProfileView,
|
|
5270
5312
|
table_views: TableView,
|
|
5271
5313
|
email_sync_denials: EmailSyncDenial,
|
|
5314
|
+
time_tracks: TimeTrack,
|
|
5272
5315
|
}
|
|
5273
5316
|
export type ModelName = keyof ModelForName
|
|
5274
5317
|
export type Model = ModelForName[keyof ModelForName]
|
|
@@ -5371,6 +5414,7 @@ export const modelNameChecker: { [K in ModelName] : true } = {
|
|
|
5371
5414
|
enduser_profile_views: true,
|
|
5372
5415
|
table_views: true,
|
|
5373
5416
|
email_sync_denials: true,
|
|
5417
|
+
time_tracks: true,
|
|
5374
5418
|
}
|
|
5375
5419
|
|
|
5376
5420
|
|