@tellescope/types-models 1.242.9 → 1.243.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
@@ -178,6 +178,33 @@ export type CustomDashboardViewBlock = { type: CustomDashboardViewBlockType, inf
178
178
  export type CustomDashboardView = {
179
179
  blocks: CustomDashboardViewBlock[]
180
180
  }
181
+
182
+ // Custom Dashboard Block for flexible dashboard layouts
183
+ export type CustomDashboardBlockResponsive = {
184
+ colSpan?: number,
185
+ rowSpan?: number,
186
+ hidden?: boolean,
187
+ }
188
+
189
+ export type CustomDashboardBlock = {
190
+ type: string,
191
+ info?: Record<string, any>,
192
+ colSpan?: number,
193
+ rowSpan?: number,
194
+ responsive?: {
195
+ sm?: CustomDashboardBlockResponsive,
196
+ md?: CustomDashboardBlockResponsive,
197
+ lg?: CustomDashboardBlockResponsive,
198
+ },
199
+ style?: Record<string, any>,
200
+ }
201
+
202
+ export type CustomDashboardGridConfig = {
203
+ columns?: number,
204
+ gap?: number,
205
+ rowHeight?: number,
206
+ }
207
+
181
208
  export type OrganizationSettings = {
182
209
  dashboard?: {
183
210
  view?: CustomDashboardView,
@@ -234,6 +261,7 @@ export type OrganizationSettings = {
234
261
  showAlternateEmailsEditor?: boolean,
235
262
  excludeCareTeamFromSearch?: boolean,
236
263
  showVideoCallsOnTimeline?: boolean,
264
+ allowOverrideEmailUniqueness?: boolean,
237
265
  },
238
266
  tickets?: {
239
267
  defaultJourneyDueDateOffsetInMS?: number | '',
@@ -3206,10 +3234,13 @@ export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'sw
3206
3234
  export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
3207
3235
  export type AthenaSyncAutomationAction = AutomationActionBuilder<'athenaSync', { departmentid: string }>
3208
3236
  export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
3209
- export type CanvasCreateNoteAutomationAction = AutomationActionBuilder<'canvasCreateNote', {
3237
+ export type CanvasCreateNoteAutomationAction = AutomationActionBuilder<'canvasCreateNote', {
3210
3238
  formIds: string[],
3211
3239
  matchCareTeamTagsForCanvasPractitionerResolution: ListOfStringsWithQualifier,
3212
- noteCoding: CanvasCoding,
3240
+ noteCoding: CanvasCoding,
3241
+ }>
3242
+ export type CanvasAddToGroupAutomationAction = AutomationActionBuilder<'canvasAddToGroup', {
3243
+ groupId: string,
3213
3244
  }>
3214
3245
  export type CancelFutureAppointmentsAutomationAction = AutomationActionBuilder<'cancelFutureAppointments', {}>
3215
3246
  export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
@@ -3356,6 +3387,7 @@ export type AutomationActionForType = {
3356
3387
  'athenaSync': AthenaSyncAutomationAction,
3357
3388
  canvasSync: CanvasSyncAutomationAction,
3358
3389
  canvasCreateNote: CanvasCreateNoteAutomationAction,
3390
+ canvasAddToGroup: CanvasAddToGroupAutomationAction,
3359
3391
  pushFormsToPortal: PushFormsAutomationAction,
3360
3392
  developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction,
3361
3393
  cancelFutureAppointments: CancelFutureAppointmentsAutomationAction,
@@ -4393,6 +4425,21 @@ export interface EnduserProfileView extends EnduserProfileView_readonly, Enduser
4393
4425
  hiddenFromRoles?: string[],
4394
4426
  }
4395
4427
 
4428
+ export interface CustomDashboard_readonly extends ClientRecord {}
4429
+ export interface CustomDashboard_required {
4430
+ title: string,
4431
+ blocks: CustomDashboardBlock[],
4432
+ }
4433
+ export interface CustomDashboard_updatesDisabled {}
4434
+ export interface CustomDashboard extends CustomDashboard_readonly, CustomDashboard_required, CustomDashboard_updatesDisabled {
4435
+ description?: string,
4436
+ userIds?: string[],
4437
+ defaultForUserIds?: string[],
4438
+ defaultForRoles?: string[],
4439
+ hiddenFromRoles?: string[],
4440
+ gridConfig?: CustomDashboardGridConfig,
4441
+ }
4442
+
4396
4443
  export type ListOfStringsWithQualifier = {
4397
4444
  qualifier: ListQueryQualifier,
4398
4445
  values: string[],
@@ -5054,6 +5101,7 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
5054
5101
  drugId?: string,
5055
5102
  ndc?: string, // National Drug Code (for non-compound ScriptSure orders)
5056
5103
  quantity?: number, // Quantity for non-compound medications (defaults to 30 if not specified)
5104
+ refills?: number, // Number of refills (defaults to 0 if not specified)
5057
5105
  // Compound-specific fields (for ScriptSure compound orders)
5058
5106
  compoundQuantity?: number, // e.g., 10
5059
5107
  compoundQuantityQualifier?: string, // NCPDP code e.g., "C64933" for Each
@@ -5231,7 +5279,7 @@ export interface InboxThread_readonly extends ClientRecord {
5231
5279
  searchKeywords?: string[], // Cached searchable text for Atlas Search indexing
5232
5280
  }
5233
5281
  export interface InboxThread_required {
5234
- type: "Email" | "SMS" | "Chat" | "GroupMMS" | "Phone",
5282
+ type: "Email" | "SMS" | "Chat" | "GroupMMS" | "Phone" | "Zendesk",
5235
5283
  title: string,
5236
5284
  preview: string,
5237
5285
  timestamp: Date,
@@ -5298,6 +5346,7 @@ export type ModelForName_required = {
5298
5346
  analytics_frames: AnalyticsFrame_required,
5299
5347
  endusers: Enduser_required;
5300
5348
  enduser_profile_views: EnduserProfileView_required,
5349
+ custom_dashboards: CustomDashboard_required,
5301
5350
  engagement_events: EngagementEvent_required;
5302
5351
  journeys: Journey_required;
5303
5352
  api_keys: APIKey_required;
@@ -5443,6 +5492,7 @@ export interface ModelForName_readonly {
5443
5492
  purchase_credits: PurchaseCredit_readonly,
5444
5493
  phone_calls: PhoneCall_readonly,
5445
5494
  enduser_profile_views: EnduserProfileView_readonly,
5495
+ custom_dashboards: CustomDashboard_readonly,
5446
5496
  table_views: TableView_readonly,
5447
5497
  email_sync_denials: EmailSyncDenial_readonly,
5448
5498
  time_tracks: TimeTrack_readonly,
@@ -5538,6 +5588,7 @@ export interface ModelForName_updatesDisabled {
5538
5588
  purchase_credits: PurchaseCredit_updatesDisabled,
5539
5589
  phone_calls: PhoneCall_updatesDisabled,
5540
5590
  enduser_profile_views: EnduserProfileView_updatesDisabled,
5591
+ custom_dashboards: CustomDashboard_updatesDisabled,
5541
5592
  table_views: TableView_updatesDisabled,
5542
5593
  email_sync_denials: EmailSyncDenial_updatesDisabled,
5543
5594
  time_tracks: TimeTrack_updatesDisabled,
@@ -5633,6 +5684,7 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
5633
5684
  purchase_credits: PurchaseCredit,
5634
5685
  phone_calls: PhoneCall,
5635
5686
  enduser_profile_views: EnduserProfileView,
5687
+ custom_dashboards: CustomDashboard,
5636
5688
  table_views: TableView,
5637
5689
  email_sync_denials: EmailSyncDenial,
5638
5690
  time_tracks: TimeTrack,
@@ -5738,6 +5790,7 @@ export const modelNameChecker: { [K in ModelName] : true } = {
5738
5790
  purchase_credits: true,
5739
5791
  phone_calls: true,
5740
5792
  enduser_profile_views: true,
5793
+ custom_dashboards: true,
5741
5794
  table_views: true,
5742
5795
  email_sync_denials: true,
5743
5796
  time_tracks: true,