@tellescope/types-models 1.154.0 → 1.156.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/src/index.ts CHANGED
@@ -204,6 +204,7 @@ export type OrganizationSettings = {
204
204
  requireDueDate?: boolean,
205
205
  allowArchival?: boolean,
206
206
  returnToTicketsList?: boolean,
207
+ dontAddToCareTeamOnTicketAssignment?: boolean,
207
208
  },
208
209
  calendar?: {
209
210
  dayStart?: {
@@ -849,6 +850,7 @@ export interface EnduserMedication extends EnduserMedication_readonly, EnduserMe
849
850
  pharmacyName?: string,
850
851
  pharmacyId?: string,
851
852
  orderStatus?: string,
853
+ reasonForTaking?: string,
852
854
  }
853
855
 
854
856
  export interface APIKey_readonly extends ClientRecord {
@@ -1570,6 +1572,7 @@ export type FormCustomization = {
1570
1572
  hideLogo?: boolean,
1571
1573
  multiPagePublicQuestions?: boolean,
1572
1574
  hideBg?: boolean,
1575
+ portalShowThanksAfterSubmission?: boolean,
1573
1576
  }
1574
1577
  export interface Form_readonly extends ClientRecord {
1575
1578
  numFields: number,
@@ -2074,6 +2077,8 @@ export type EnduserFormResponseForEvent = {
2074
2077
  accessCode: string,
2075
2078
  }
2076
2079
 
2080
+ export type GroupCancellation = { at: Date, id: string }
2081
+
2077
2082
  export interface CalendarEventPortalSettings {
2078
2083
  hideUsers?: boolean,
2079
2084
  }
@@ -2148,10 +2153,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2148
2153
  holdUntil?: Date,
2149
2154
  holdFormResponseId?: string,
2150
2155
  tags?: string[],
2151
- cancelledGroupAttendees?: {
2152
- id: string,
2153
- at: Date,
2154
- }[],
2156
+ cancelledGroupAttendees?: GroupCancellation[],
2155
2157
  useUserURL?: boolean,
2156
2158
  healthieZoomStartURL?: string,
2157
2159
  healthieZoomJoinURL?: string,
@@ -2166,6 +2168,7 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
2166
2168
  displayDescription?: string,
2167
2169
  dontBlockAvailability?: boolean,
2168
2170
  previousStartTimes?: (number | string)[],
2171
+ requirePortalCancelReason?: boolean,
2169
2172
  // isAllDay?: boolean,
2170
2173
  }
2171
2174
 
@@ -2283,6 +2286,7 @@ export interface CalendarEventTemplate extends CalendarEventTemplate_readonly, C
2283
2286
  displayTitle?: string,
2284
2287
  displayDescription?: string,
2285
2288
  requiresEnduser?: boolean,
2289
+ requirePortalCancelReason?: boolean,
2286
2290
  }
2287
2291
 
2288
2292
  export interface AppointmentLocation_readonly extends ClientRecord {}
@@ -2358,6 +2362,7 @@ export interface AppointmentBookingPage extends AppointmentBookingPage_readonly,
2358
2362
  publicUserTags?: string[],
2359
2363
  publicUserFilterTags?: string[],
2360
2364
  appointmentSlotsMaxHeight?: number,
2365
+ includeRelatedContactTypes?: string[],
2361
2366
  // productIds?: string[], // defer to specific template
2362
2367
  }
2363
2368
 
@@ -3403,6 +3408,7 @@ export const resource_to_modelName: { [K in AnalyticsQueryType] : ModelName } =
3403
3408
  export type AnalyticsQueryOptions = {
3404
3409
  createdRange?: DateRange,
3405
3410
  updatedRange?: DateRange,
3411
+ overrideGlobalRange?: boolean,
3406
3412
  groupByCareTeam?: boolean, // supports multi-grouping for both care team and a normal field
3407
3413
  }
3408
3414
 
@@ -3602,6 +3608,7 @@ export type AutomationTriggerEvents = {
3602
3608
  'Message Link Clicked': AutomationTriggerEventBuilder<"Message Link Clicked", { templateIds?: string[] }, {}>,
3603
3609
  'Healthie Note Locked': AutomationTriggerEventBuilder<"Healthie Note Locked", { healthieFormIds?: string[] }, {}>,
3604
3610
  'Database Entry Added': AutomationTriggerEventBuilder<"Database Entry Added", { databaseId: string }, {}>,
3611
+ 'Form Started': AutomationTriggerEventBuilder<"Form Started", { formIds?: string[] }, {}>,
3605
3612
  }
3606
3613
  export type AutomationTriggerEventType = keyof AutomationTriggerEvents
3607
3614
  export type AutomationTriggerEvent = AutomationTriggerEvents[AutomationTriggerEventType]
@@ -4122,7 +4129,20 @@ export interface AllergyCode_required {
4122
4129
  export interface AllergyCode_updatesDisabled {}
4123
4130
  export interface AllergyCode extends AllergyCode_readonly, AllergyCode_required, AllergyCode_updatesDisabled {}
4124
4131
 
4132
+ export interface IntegrationLog_readonly extends ClientRecord {
4133
+ integration: string,
4134
+ status: "Success" | "Error",
4135
+ type: string, // e.g. Create Patient
4136
+ url?: string, // for logging endpoint
4137
+ payload?: string, // for logging payload sent (if not too space-intensive)
4138
+ response?: string, // for logging response (particularly for errors)
4139
+ }
4140
+ export interface IntegrationLog_required {}
4141
+ export interface IntegrationLog_updatesDisabled {}
4142
+ export interface IntegrationLog extends IntegrationLog_readonly, IntegrationLog_required, IntegrationLog_updatesDisabled {}
4143
+
4125
4144
  export type ModelForName_required = {
4145
+ integration_logs: IntegrationLog_required,
4126
4146
  allergy_codes: AllergyCode_required,
4127
4147
  diagnosis_codes: DiagnosisCode_required,
4128
4148
  suggested_contacts: SuggestedContact_required,
@@ -4209,6 +4229,7 @@ export type ModelForName_required = {
4209
4229
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
4210
4230
 
4211
4231
  export interface ModelForName_readonly {
4232
+ integration_logs: IntegrationLog_readonly,
4212
4233
  allergy_codes: AllergyCode_readonly,
4213
4234
  diagnosis_codes: DiagnosisCode_readonly,
4214
4235
  suggested_contacts: SuggestedContact_readonly,
@@ -4295,6 +4316,7 @@ export interface ModelForName_readonly {
4295
4316
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
4296
4317
 
4297
4318
  export interface ModelForName_updatesDisabled {
4319
+ integration_logs: IntegrationLog_updatesDisabled,
4298
4320
  allergy_codes: AllergyCode_updatesDisabled,
4299
4321
  diagnosis_codes: DiagnosisCode_updatesDisabled,
4300
4322
  suggested_contacts: SuggestedContact_updatesDisabled,
@@ -4381,6 +4403,7 @@ export interface ModelForName_updatesDisabled {
4381
4403
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
4382
4404
 
4383
4405
  export interface ModelForName extends ModelForName_required, ModelForName_readonly {
4406
+ integration_logs: IntegrationLog,
4384
4407
  allergy_codes: AllergyCode,
4385
4408
  diagnosis_codes: DiagnosisCode,
4386
4409
  suggested_contacts: SuggestedContact,
@@ -4477,6 +4500,7 @@ export interface UserActivityInfo {
4477
4500
  export type UserActivityStatus = 'Active' | 'Away' | 'Unavailable'
4478
4501
 
4479
4502
  export const modelNameChecker: { [K in ModelName] : true } = {
4503
+ integration_logs: true,
4480
4504
  allergy_codes: true,
4481
4505
  diagnosis_codes: true,
4482
4506
  suggested_contacts: true,