@tellescope/types-models 1.242.10 → 1.243.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/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,
@@ -3207,10 +3234,13 @@ export type SwitchToRelatedContactAutomationAction = AutomationActionBuilder<'sw
3207
3234
  export type ElationSyncAutomationAction = AutomationActionBuilder<'elationSync', { }>
3208
3235
  export type AthenaSyncAutomationAction = AutomationActionBuilder<'athenaSync', { departmentid: string }>
3209
3236
  export type CanvasSyncAutomationAction = AutomationActionBuilder<'canvasSync', {}>
3210
- export type CanvasCreateNoteAutomationAction = AutomationActionBuilder<'canvasCreateNote', {
3237
+ export type CanvasCreateNoteAutomationAction = AutomationActionBuilder<'canvasCreateNote', {
3211
3238
  formIds: string[],
3212
3239
  matchCareTeamTagsForCanvasPractitionerResolution: ListOfStringsWithQualifier,
3213
- noteCoding: CanvasCoding,
3240
+ noteCoding: CanvasCoding,
3241
+ }>
3242
+ export type CanvasAddToGroupAutomationAction = AutomationActionBuilder<'canvasAddToGroup', {
3243
+ groupId: string,
3214
3244
  }>
3215
3245
  export type CancelFutureAppointmentsAutomationAction = AutomationActionBuilder<'cancelFutureAppointments', {}>
3216
3246
  export type DevelopHealthMedicationEligibilityAutomationAction = AutomationActionBuilder<'developHealthMedEligibility', {
@@ -3357,6 +3387,7 @@ export type AutomationActionForType = {
3357
3387
  'athenaSync': AthenaSyncAutomationAction,
3358
3388
  canvasSync: CanvasSyncAutomationAction,
3359
3389
  canvasCreateNote: CanvasCreateNoteAutomationAction,
3390
+ canvasAddToGroup: CanvasAddToGroupAutomationAction,
3360
3391
  pushFormsToPortal: PushFormsAutomationAction,
3361
3392
  developHealthMedEligibility: DevelopHealthMedicationEligibilityAutomationAction,
3362
3393
  cancelFutureAppointments: CancelFutureAppointmentsAutomationAction,
@@ -4394,6 +4425,21 @@ export interface EnduserProfileView extends EnduserProfileView_readonly, Enduser
4394
4425
  hiddenFromRoles?: string[],
4395
4426
  }
4396
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
+
4397
4443
  export type ListOfStringsWithQualifier = {
4398
4444
  qualifier: ListQueryQualifier,
4399
4445
  values: string[],
@@ -5055,6 +5101,8 @@ export interface PrescriptionRoute extends PrescriptionRoute_readonly, Prescript
5055
5101
  drugId?: string,
5056
5102
  ndc?: string, // National Drug Code (for non-compound ScriptSure orders)
5057
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)
5105
+ duration?: number, // Days supply (defaults to 30 if not specified)
5058
5106
  // Compound-specific fields (for ScriptSure compound orders)
5059
5107
  compoundQuantity?: number, // e.g., 10
5060
5108
  compoundQuantityQualifier?: string, // NCPDP code e.g., "C64933" for Each
@@ -5232,7 +5280,7 @@ export interface InboxThread_readonly extends ClientRecord {
5232
5280
  searchKeywords?: string[], // Cached searchable text for Atlas Search indexing
5233
5281
  }
5234
5282
  export interface InboxThread_required {
5235
- type: "Email" | "SMS" | "Chat" | "GroupMMS" | "Phone",
5283
+ type: "Email" | "SMS" | "Chat" | "GroupMMS" | "Phone" | "Zendesk",
5236
5284
  title: string,
5237
5285
  preview: string,
5238
5286
  timestamp: Date,
@@ -5299,6 +5347,7 @@ export type ModelForName_required = {
5299
5347
  analytics_frames: AnalyticsFrame_required,
5300
5348
  endusers: Enduser_required;
5301
5349
  enduser_profile_views: EnduserProfileView_required,
5350
+ custom_dashboards: CustomDashboard_required,
5302
5351
  engagement_events: EngagementEvent_required;
5303
5352
  journeys: Journey_required;
5304
5353
  api_keys: APIKey_required;
@@ -5444,6 +5493,7 @@ export interface ModelForName_readonly {
5444
5493
  purchase_credits: PurchaseCredit_readonly,
5445
5494
  phone_calls: PhoneCall_readonly,
5446
5495
  enduser_profile_views: EnduserProfileView_readonly,
5496
+ custom_dashboards: CustomDashboard_readonly,
5447
5497
  table_views: TableView_readonly,
5448
5498
  email_sync_denials: EmailSyncDenial_readonly,
5449
5499
  time_tracks: TimeTrack_readonly,
@@ -5539,6 +5589,7 @@ export interface ModelForName_updatesDisabled {
5539
5589
  purchase_credits: PurchaseCredit_updatesDisabled,
5540
5590
  phone_calls: PhoneCall_updatesDisabled,
5541
5591
  enduser_profile_views: EnduserProfileView_updatesDisabled,
5592
+ custom_dashboards: CustomDashboard_updatesDisabled,
5542
5593
  table_views: TableView_updatesDisabled,
5543
5594
  email_sync_denials: EmailSyncDenial_updatesDisabled,
5544
5595
  time_tracks: TimeTrack_updatesDisabled,
@@ -5634,6 +5685,7 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
5634
5685
  purchase_credits: PurchaseCredit,
5635
5686
  phone_calls: PhoneCall,
5636
5687
  enduser_profile_views: EnduserProfileView,
5688
+ custom_dashboards: CustomDashboard,
5637
5689
  table_views: TableView,
5638
5690
  email_sync_denials: EmailSyncDenial,
5639
5691
  time_tracks: TimeTrack,
@@ -5739,6 +5791,7 @@ export const modelNameChecker: { [K in ModelName] : true } = {
5739
5791
  purchase_credits: true,
5740
5792
  phone_calls: true,
5741
5793
  enduser_profile_views: true,
5794
+ custom_dashboards: true,
5742
5795
  table_views: true,
5743
5796
  email_sync_denials: true,
5744
5797
  time_tracks: true,