@tellescope/types-models 1.3.46 → 1.3.48

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
@@ -152,6 +152,7 @@ export interface User extends User_required, User_readonly, User_updatesDisabled
152
152
  phone?: string;
153
153
  fname?: string;
154
154
  lname?: string;
155
+ suffixes?: string[],
155
156
  accountType?: AccountType;
156
157
  roles?: string[];
157
158
  avatar?: string,
@@ -703,6 +704,16 @@ export type CalendarEventReminderInfoForType = {
703
704
  export type CalendarEventReminderType = keyof CalendarEventReminderInfoForType
704
705
  export type CalendarEventReminder = CalendarEventReminderInfoForType[CalendarEventReminderType]
705
706
 
707
+ export type EnduserTaskForEvent = {
708
+ id: string,
709
+ enduserId: string,
710
+ }
711
+ export type EnduserFormResponseForEvent = {
712
+ formId: string,
713
+ enduserId: string,
714
+ accessCode: string,
715
+ }
716
+
706
717
  export interface CalendarEvent_readonly extends ClientRecord {
707
718
  meetingId?: string
708
719
  meetingStatus?: MeetingStatus,
@@ -727,6 +738,10 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
727
738
  numRSVPs?: number,
728
739
  source?: string,
729
740
  templateId?: string,
741
+ carePlanId?: string,
742
+ enduserTasks?: EnduserTaskForEvent[],
743
+ enduserFormResponses?: EnduserFormResponseForEvent[],
744
+ sharedContentIds?: string[],
730
745
  }
731
746
 
732
747
  export interface CalendarEventTemplate_readonly extends ClientRecord { }
@@ -996,11 +1011,42 @@ export interface ManagedContentRecord extends ManagedContentRecord_readonly, Man
996
1011
  blocks?: Block[],
997
1012
  tags?: string[],
998
1013
  files?: string[],
1014
+ category?: string,
999
1015
  editorState?: string
1000
1016
  mode?: MessageTemplateMode,
1001
1017
  attachments?: ChatAttachment[]
1002
1018
  }
1003
1019
 
1020
+ export type PortalPage = "Home" | "Care Plan" | "Documents" | "Education" | "Community"
1021
+
1022
+ type BuildPortalBlockInfo <T, I> = { type: T, info: I }
1023
+
1024
+ export type CareTeamMemberPortalCustomizationInfo = {
1025
+ title: string,
1026
+ role?: string, // for matching to care team role for a specific team member
1027
+ }
1028
+ export type PortalBlockForType = {
1029
+ careTeam: BuildPortalBlockInfo<'careTeam', {
1030
+ title: string,
1031
+ // members: CareTeamMemberPortalCustomizationInfo[],
1032
+ }>,
1033
+ carePlan: BuildPortalBlockInfo<'carePlan', {}>,
1034
+ education: BuildPortalBlockInfo<'education', {}>,
1035
+ }
1036
+ export type PortalBlockType = keyof PortalBlockForType
1037
+ export type PortalBlock = PortalBlockForType[PortalBlockType]
1038
+
1039
+ export interface PortalCustomization_readonly extends ClientRecord { }
1040
+ export interface PortalCustomization_required {
1041
+ page: PortalPage,
1042
+ }
1043
+ export interface PortalCustomization_updatesDisabled {}
1044
+ export interface PortalCustomization extends PortalCustomization_readonly, PortalCustomization_required, PortalCustomization_updatesDisabled {
1045
+ blocks: PortalBlock[],
1046
+ title?: string,
1047
+ disabled?: boolean,
1048
+ }
1049
+
1004
1050
  export interface Forum_readonly extends ClientRecord {}
1005
1051
  export interface Forum_required {
1006
1052
  title: string,
@@ -1086,17 +1132,6 @@ export interface AutomatedAction extends AutomatedAction_readonly, AutomatedActi
1086
1132
 
1087
1133
  }
1088
1134
 
1089
- // type SequencedAutomationEvent = "noDelay" | "delay"
1090
-
1091
- export interface SequenceAutomation_readonly extends ClientRecord {}
1092
- export interface SequenceAutomation_required {
1093
- title: string,
1094
- }
1095
- export interface SequenceAutomation_updatesDisabled {}
1096
- export interface SequenceAutomation extends SequenceAutomation_readonly, SequenceAutomation_required, SequenceAutomation_updatesDisabled {
1097
-
1098
- }
1099
-
1100
1135
  export interface UserLog_readonly extends ClientRecord {
1101
1136
  userId: string,
1102
1137
  resource: string,
@@ -1107,6 +1142,29 @@ export interface UserLog_required {}
1107
1142
  export interface UserLog_updatesDisabled {}
1108
1143
  export interface UserLog extends UserLog_readonly, UserLog_required, UserLog_updatesDisabled {}
1109
1144
 
1145
+ export interface EnduserTask_readonly extends ClientRecord {}
1146
+ export interface EnduserTask_required {
1147
+ title: string,
1148
+ }
1149
+ export interface EnduserTask_updatesDisabled {}
1150
+ export interface EnduserTask extends EnduserTask_readonly, EnduserTask_required, EnduserTask_updatesDisabled {
1151
+ enduserId: string,
1152
+ description?: string
1153
+ completedAt?: Date;
1154
+ }
1155
+
1156
+
1157
+ export interface CarePlan_readonly extends ClientRecord {}
1158
+ export interface CarePlan_required {
1159
+ title: string,
1160
+ }
1161
+ export interface CarePlan_updatesDisabled {}
1162
+ export interface CarePlan extends CarePlan_readonly, CarePlan_required, CarePlan_updatesDisabled {
1163
+ enduserId: string,
1164
+ description?: string
1165
+ eventIds?: string[],
1166
+ }
1167
+
1110
1168
  export type ModelForName_required = {
1111
1169
  endusers: Enduser_required;
1112
1170
  engagement_events: EngagementEvent_required;
@@ -1131,7 +1189,6 @@ export type ModelForName_required = {
1131
1189
  calendar_event_RSVPs: CalendarEventRSVP_required,
1132
1190
  automation_steps: AutomationStep_required,
1133
1191
  automated_actions: AutomatedAction_required,
1134
- sequence_automations: SequenceAutomation_required,
1135
1192
  webhooks: WebHook_required;
1136
1193
  user_logs: UserLog_required;
1137
1194
  user_notifications: UserNotification_required;
@@ -1147,6 +1204,9 @@ export type ModelForName_required = {
1147
1204
  integrations: Organization_required;
1148
1205
  databases: Database_required;
1149
1206
  database_records: DatabaseRecord_required;
1207
+ portal_customizations: PortalCustomization_required;
1208
+ enduser_tasks: EnduserTask_required;
1209
+ care_plans: CarePlan_required;
1150
1210
  }
1151
1211
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
1152
1212
 
@@ -1174,7 +1234,6 @@ export interface ModelForName_readonly {
1174
1234
  calendar_event_RSVPs: CalendarEventRSVP_readonly,
1175
1235
  automation_steps: AutomationStep_readonly,
1176
1236
  automated_actions: AutomatedAction_readonly,
1177
- sequence_automations: SequenceAutomation_readonly,
1178
1237
  webhooks: WebHook_readonly;
1179
1238
  user_logs: UserLog_readonly;
1180
1239
  user_notifications: UserNotification_readonly;
@@ -1190,6 +1249,9 @@ export interface ModelForName_readonly {
1190
1249
  integrations: Integration_readonly;
1191
1250
  databases: Database_readonly;
1192
1251
  database_records: DatabaseRecord_readonly;
1252
+ portal_customizations: PortalCustomization_readonly;
1253
+ enduser_tasks: EnduserTask_readonly;
1254
+ care_plans: CarePlan_readonly;
1193
1255
  }
1194
1256
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
1195
1257
 
@@ -1217,7 +1279,6 @@ export interface ModelForName_updatesDisabled {
1217
1279
  calendar_event_RSVPs: CalendarEventRSVP_updatesDisabled,
1218
1280
  automation_steps: AutomationStep_updatesDisabled,
1219
1281
  automated_actions: AutomatedAction_updatesDisabled,
1220
- sequence_automations: SequenceAutomation_updatesDisabled,
1221
1282
  webhooks: WebHook_updatesDisabled;
1222
1283
  user_logs: UserLog_updatesDisabled;
1223
1284
  user_notifications: UserNotification_updatesDisabled;
@@ -1233,6 +1294,9 @@ export interface ModelForName_updatesDisabled {
1233
1294
  integrations: Integration_updatesDisabled;
1234
1295
  databases: Database_updatesDisabled;
1235
1296
  database_records: DatabaseRecord_updatesDisabled;
1297
+ portal_customizations: PortalCustomization_updatesDisabled;
1298
+ enduser_tasks: EnduserTask_updatesDisabled;
1299
+ care_plans: CarePlan_updatesDisabled;
1236
1300
  }
1237
1301
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
1238
1302
 
@@ -1260,7 +1324,6 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
1260
1324
  calendar_event_RSVPs: CalendarEventRSVP,
1261
1325
  automation_steps: AutomationStep,
1262
1326
  automated_actions: AutomatedAction,
1263
- sequence_automations: SequenceAutomation,
1264
1327
  webhooks: WebHook;
1265
1328
  user_logs: UserLog;
1266
1329
  user_notifications: UserNotification;
@@ -1276,6 +1339,9 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
1276
1339
  integrations: Integration;
1277
1340
  databases: Database;
1278
1341
  database_records: DatabaseRecord;
1342
+ portal_customizations: PortalCustomization;
1343
+ enduser_tasks: EnduserTask;
1344
+ care_plans: CarePlan;
1279
1345
  }
1280
1346
  export type ModelName = keyof ModelForName
1281
1347
  export type Model = ModelForName[keyof ModelForName]
@@ -1314,7 +1380,6 @@ export const modelNameChecker: { [K in ModelName] : true } = {
1314
1380
  calendar_event_RSVPs: true,
1315
1381
  automation_steps: true,
1316
1382
  automated_actions: true,
1317
- sequence_automations: true,
1318
1383
  webhooks: true,
1319
1384
  user_logs: true,
1320
1385
  user_notifications: true,
@@ -1329,6 +1394,9 @@ export const modelNameChecker: { [K in ModelName] : true } = {
1329
1394
  integrations: true,
1330
1395
  databases: true,
1331
1396
  database_records: true,
1397
+ portal_customizations: true,
1398
+ care_plans: true,
1399
+ enduser_tasks: true,
1332
1400
  }
1333
1401
 
1334
1402