@tellescope/types-models 1.85.3 → 1.86.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.
@@ -37,13 +37,15 @@ export type Filters = {
37
37
  _lte: number;
38
38
  _all: any[];
39
39
  _in: any[];
40
+ _nin: any[];
41
+ _ne: any;
40
42
  };
41
43
  export type ExistsFilter = {
42
44
  _exists: boolean;
43
45
  };
44
46
  export type FilterType = Filters;
45
47
  export type FilterKey = keyof Filters;
46
- export declare const FilterKeys: readonly ["_exists", "_gt", "_gte", "_lt", "_lte", "_all"];
48
+ export declare const FilterKeys: readonly ["_exists", "_gt", "_gte", "_lt", "_lte", "_all", "_ne", "_nin"];
47
49
  export type ReadFilter<T> = {
48
50
  [K in keyof T]?: T[K] | Partial<FilterType>;
49
51
  };
@@ -166,6 +168,7 @@ export type OrganizationSettings = {
166
168
  defaultJourneyDueDateOffsetInMS?: number | '';
167
169
  disableSnooze?: boolean;
168
170
  showCommunications?: boolean;
171
+ showJourneys?: boolean;
169
172
  };
170
173
  calendar?: {
171
174
  dayStart?: {
@@ -201,6 +204,17 @@ export type BasicWebhook = {
201
204
  url: string;
202
205
  method?: 'Link' | 'POST';
203
206
  };
207
+ export type SyncDirection = "Bidirectional" | "From Tellescope" | "To Tellescope";
208
+ export type FieldSync = {
209
+ field: string;
210
+ externalField: string;
211
+ direction: SyncDirection;
212
+ };
213
+ export type AthenaSubscription = {
214
+ type: 'patients';
215
+ frequencyInMinutes: number;
216
+ lastSyncedAt: Date;
217
+ };
204
218
  export interface Organization_readonly extends ClientRecord {
205
219
  subscriptionExpiresAt: Date;
206
220
  subscriptionPeriod: number;
@@ -259,6 +273,7 @@ export interface Organization extends Organization_readonly, Organization_requir
259
273
  hasConnectedGoGoMeds?: boolean;
260
274
  hasConnectedPagerDuty?: boolean;
261
275
  hasConnectedSmartMeter?: boolean;
276
+ hasConnectedAthena?: boolean;
262
277
  hasConfiguredZoom?: boolean;
263
278
  hasTicketQueues?: boolean;
264
279
  vitalTeamId?: string;
@@ -292,6 +307,9 @@ export interface Organization extends Organization_readonly, Organization_requir
292
307
  label: string;
293
308
  }[];
294
309
  mfaxAccountId?: string;
310
+ athenaFieldsSync?: FieldSync[];
311
+ athenaSubscriptions?: AthenaSubscription[];
312
+ fieldsToAdminNote?: string[];
295
313
  }
296
314
  export type OrganizationTheme = {
297
315
  name: string;
@@ -1018,6 +1036,7 @@ export interface File extends File_readonly, File_required, File_updatesDisabled
1018
1036
  export type TicketActionBuilder<T, I> = {
1019
1037
  type: T;
1020
1038
  info: I;
1039
+ optional?: boolean;
1021
1040
  completedAt?: Date | '';
1022
1041
  };
1023
1042
  export type TicketActions = {
@@ -1229,6 +1248,8 @@ export type FormFieldOptions = FormFieldValidation & {
1229
1248
  billingProvider?: 'Canvas' | "Candid" | string;
1230
1249
  bookingPageId?: string;
1231
1250
  userTags?: string[];
1251
+ userFilterTags?: string[];
1252
+ requirePredefinedInsurer?: boolean;
1232
1253
  addressFields?: string[];
1233
1254
  autoAdvance?: boolean;
1234
1255
  prefillSignature?: boolean;
@@ -1359,6 +1380,7 @@ export interface Integration_updatesDisabled {
1359
1380
  }
1360
1381
  export interface Integration extends Integration_readonly, Integration_required, Integration_updatesDisabled {
1361
1382
  title: string;
1383
+ tenantId?: string;
1362
1384
  authentication: IntegrationAuthentication;
1363
1385
  emailDisabled?: boolean;
1364
1386
  syncUnrecognizedSenders?: boolean;
@@ -2157,6 +2179,9 @@ export type SmartMeterPlaceOrderAutomationAction = AutomationActionBuilder<'smar
2157
2179
  shipping?: string;
2158
2180
  }>;
2159
2181
  export type HealthieSyncAutomationAction = AutomationActionBuilder<'healthieSync', {}>;
2182
+ export type CompleteTicketsAutomationAction = AutomationActionBuilder<'completeTickets', {
2183
+ journeyIds?: string[];
2184
+ }>;
2160
2185
  export type IterableFieldsMapping = {
2161
2186
  iterable: string;
2162
2187
  tellescope: string;
@@ -2205,6 +2230,7 @@ export type AutomationActionForType = {
2205
2230
  'pagerDutyCreateIncident': PagerDutyCreateIncidentAutomationAction;
2206
2231
  'smartMeterPlaceOrder': SmartMeterPlaceOrderAutomationAction;
2207
2232
  'healthieSync': HealthieSyncAutomationAction;
2233
+ 'completeTickets': CompleteTicketsAutomationAction;
2208
2234
  };
2209
2235
  export type AutomationActionType = keyof AutomationActionForType;
2210
2236
  export type AutomationAction = AutomationActionForType[AutomationActionType];
@@ -3406,8 +3432,18 @@ export interface VitalConfiguration extends VitalConfiguration_readonly, VitalCo
3406
3432
  unit: string;
3407
3433
  ranges: VitalConfigurationRange[];
3408
3434
  }
3435
+ export interface BlockedPhone_readonly extends ClientRecord {
3436
+ }
3437
+ export interface BlockedPhone_required {
3438
+ }
3439
+ export interface BlockedPhone_updatesDisabled {
3440
+ }
3441
+ export interface BlockedPhone extends BlockedPhone_readonly, BlockedPhone_required, BlockedPhone_updatesDisabled {
3442
+ phone: string;
3443
+ }
3409
3444
  export type ModelForName_required = {
3410
3445
  vital_configurations: VitalConfiguration_required;
3446
+ blocked_phones: BlockedPhone_required;
3411
3447
  enduser_encounters: EnduserEncounter_required;
3412
3448
  enduser_orders: EnduserOrder_required;
3413
3449
  group_mms_conversations: GroupMMSConversation_required;
@@ -3479,6 +3515,7 @@ export type ModelForName_required = {
3479
3515
  };
3480
3516
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required];
3481
3517
  export interface ModelForName_readonly {
3518
+ blocked_phones: BlockedPhone_readonly;
3482
3519
  vital_configurations: VitalConfiguration_readonly;
3483
3520
  enduser_encounters: EnduserEncounter_readonly;
3484
3521
  enduser_orders: EnduserOrder_readonly;
@@ -3551,6 +3588,7 @@ export interface ModelForName_readonly {
3551
3588
  }
3552
3589
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly];
3553
3590
  export interface ModelForName_updatesDisabled {
3591
+ blocked_phones: BlockedPhone_updatesDisabled;
3554
3592
  vital_configurations: VitalConfiguration_updatesDisabled;
3555
3593
  enduser_encounters: EnduserEncounter_updatesDisabled;
3556
3594
  enduser_orders: EnduserOrder_updatesDisabled;
@@ -3623,6 +3661,7 @@ export interface ModelForName_updatesDisabled {
3623
3661
  }
3624
3662
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled];
3625
3663
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
3664
+ blocked_phones: BlockedPhone;
3626
3665
  vital_configurations: VitalConfiguration;
3627
3666
  enduser_encounters: EnduserEncounter;
3628
3667
  enduser_orders: EnduserOrder;