@tellescope/types-models 1.3.43 → 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,
@@ -696,12 +697,23 @@ export type CalendarEventReminderNotificationInfo = {
696
697
  type BuildCalendarEventReminderInfo <T, I> = { type: T, info: I, msBeforeStartTime: number, didRemind?: boolean }
697
698
  export type CalendarEventReminderInfoForType = {
698
699
  "webhook": BuildCalendarEventReminderInfo<'webhook', {}>,
700
+ "add-to-journey": BuildCalendarEventReminderInfo<'add-to-journey', { journeyId: string }>,
699
701
  "user-notification": BuildCalendarEventReminderInfo<'user-notification', CalendarEventReminderNotificationInfo>,
700
702
  "enduser-notification": BuildCalendarEventReminderInfo<'enduser-notification', CalendarEventReminderNotificationInfo>,
701
703
  }
702
704
  export type CalendarEventReminderType = keyof CalendarEventReminderInfoForType
703
705
  export type CalendarEventReminder = CalendarEventReminderInfoForType[CalendarEventReminderType]
704
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
+
705
717
  export interface CalendarEvent_readonly extends ClientRecord {
706
718
  meetingId?: string
707
719
  meetingStatus?: MeetingStatus,
@@ -726,6 +738,10 @@ export interface CalendarEvent extends CalendarEvent_readonly, CalendarEvent_req
726
738
  numRSVPs?: number,
727
739
  source?: string,
728
740
  templateId?: string,
741
+ carePlanId?: string,
742
+ enduserTasks?: EnduserTaskForEvent[],
743
+ enduserFormResponses?: EnduserFormResponseForEvent[],
744
+ sharedContentIds?: string[],
729
745
  }
730
746
 
731
747
  export interface CalendarEventTemplate_readonly extends ClientRecord { }
@@ -995,11 +1011,42 @@ export interface ManagedContentRecord extends ManagedContentRecord_readonly, Man
995
1011
  blocks?: Block[],
996
1012
  tags?: string[],
997
1013
  files?: string[],
1014
+ category?: string,
998
1015
  editorState?: string
999
1016
  mode?: MessageTemplateMode,
1000
1017
  attachments?: ChatAttachment[]
1001
1018
  }
1002
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
+
1003
1050
  export interface Forum_readonly extends ClientRecord {}
1004
1051
  export interface Forum_required {
1005
1052
  title: string,
@@ -1085,17 +1132,6 @@ export interface AutomatedAction extends AutomatedAction_readonly, AutomatedActi
1085
1132
 
1086
1133
  }
1087
1134
 
1088
- // type SequencedAutomationEvent = "noDelay" | "delay"
1089
-
1090
- export interface SequenceAutomation_readonly extends ClientRecord {}
1091
- export interface SequenceAutomation_required {
1092
- title: string,
1093
- }
1094
- export interface SequenceAutomation_updatesDisabled {}
1095
- export interface SequenceAutomation extends SequenceAutomation_readonly, SequenceAutomation_required, SequenceAutomation_updatesDisabled {
1096
-
1097
- }
1098
-
1099
1135
  export interface UserLog_readonly extends ClientRecord {
1100
1136
  userId: string,
1101
1137
  resource: string,
@@ -1106,6 +1142,29 @@ export interface UserLog_required {}
1106
1142
  export interface UserLog_updatesDisabled {}
1107
1143
  export interface UserLog extends UserLog_readonly, UserLog_required, UserLog_updatesDisabled {}
1108
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
+
1109
1168
  export type ModelForName_required = {
1110
1169
  endusers: Enduser_required;
1111
1170
  engagement_events: EngagementEvent_required;
@@ -1130,7 +1189,6 @@ export type ModelForName_required = {
1130
1189
  calendar_event_RSVPs: CalendarEventRSVP_required,
1131
1190
  automation_steps: AutomationStep_required,
1132
1191
  automated_actions: AutomatedAction_required,
1133
- sequence_automations: SequenceAutomation_required,
1134
1192
  webhooks: WebHook_required;
1135
1193
  user_logs: UserLog_required;
1136
1194
  user_notifications: UserNotification_required;
@@ -1146,6 +1204,9 @@ export type ModelForName_required = {
1146
1204
  integrations: Organization_required;
1147
1205
  databases: Database_required;
1148
1206
  database_records: DatabaseRecord_required;
1207
+ portal_customizations: PortalCustomization_required;
1208
+ enduser_tasks: EnduserTask_required;
1209
+ care_plans: CarePlan_required;
1149
1210
  }
1150
1211
  export type ClientModel_required = ModelForName_required[keyof ModelForName_required]
1151
1212
 
@@ -1173,7 +1234,6 @@ export interface ModelForName_readonly {
1173
1234
  calendar_event_RSVPs: CalendarEventRSVP_readonly,
1174
1235
  automation_steps: AutomationStep_readonly,
1175
1236
  automated_actions: AutomatedAction_readonly,
1176
- sequence_automations: SequenceAutomation_readonly,
1177
1237
  webhooks: WebHook_readonly;
1178
1238
  user_logs: UserLog_readonly;
1179
1239
  user_notifications: UserNotification_readonly;
@@ -1189,6 +1249,9 @@ export interface ModelForName_readonly {
1189
1249
  integrations: Integration_readonly;
1190
1250
  databases: Database_readonly;
1191
1251
  database_records: DatabaseRecord_readonly;
1252
+ portal_customizations: PortalCustomization_readonly;
1253
+ enduser_tasks: EnduserTask_readonly;
1254
+ care_plans: CarePlan_readonly;
1192
1255
  }
1193
1256
  export type ClientModel_readonly = ModelForName_readonly[keyof ModelForName_readonly]
1194
1257
 
@@ -1216,7 +1279,6 @@ export interface ModelForName_updatesDisabled {
1216
1279
  calendar_event_RSVPs: CalendarEventRSVP_updatesDisabled,
1217
1280
  automation_steps: AutomationStep_updatesDisabled,
1218
1281
  automated_actions: AutomatedAction_updatesDisabled,
1219
- sequence_automations: SequenceAutomation_updatesDisabled,
1220
1282
  webhooks: WebHook_updatesDisabled;
1221
1283
  user_logs: UserLog_updatesDisabled;
1222
1284
  user_notifications: UserNotification_updatesDisabled;
@@ -1232,6 +1294,9 @@ export interface ModelForName_updatesDisabled {
1232
1294
  integrations: Integration_updatesDisabled;
1233
1295
  databases: Database_updatesDisabled;
1234
1296
  database_records: DatabaseRecord_updatesDisabled;
1297
+ portal_customizations: PortalCustomization_updatesDisabled;
1298
+ enduser_tasks: EnduserTask_updatesDisabled;
1299
+ care_plans: CarePlan_updatesDisabled;
1235
1300
  }
1236
1301
  export type ClientModel_updatesDisabled = ModelForName_updatesDisabled[keyof ModelForName_updatesDisabled]
1237
1302
 
@@ -1259,7 +1324,6 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
1259
1324
  calendar_event_RSVPs: CalendarEventRSVP,
1260
1325
  automation_steps: AutomationStep,
1261
1326
  automated_actions: AutomatedAction,
1262
- sequence_automations: SequenceAutomation,
1263
1327
  webhooks: WebHook;
1264
1328
  user_logs: UserLog;
1265
1329
  user_notifications: UserNotification;
@@ -1275,6 +1339,9 @@ export interface ModelForName extends ModelForName_required, ModelForName_readon
1275
1339
  integrations: Integration;
1276
1340
  databases: Database;
1277
1341
  database_records: DatabaseRecord;
1342
+ portal_customizations: PortalCustomization;
1343
+ enduser_tasks: EnduserTask;
1344
+ care_plans: CarePlan;
1278
1345
  }
1279
1346
  export type ModelName = keyof ModelForName
1280
1347
  export type Model = ModelForName[keyof ModelForName]
@@ -1313,7 +1380,6 @@ export const modelNameChecker: { [K in ModelName] : true } = {
1313
1380
  calendar_event_RSVPs: true,
1314
1381
  automation_steps: true,
1315
1382
  automated_actions: true,
1316
- sequence_automations: true,
1317
1383
  webhooks: true,
1318
1384
  user_logs: true,
1319
1385
  user_notifications: true,
@@ -1328,6 +1394,9 @@ export const modelNameChecker: { [K in ModelName] : true } = {
1328
1394
  integrations: true,
1329
1395
  databases: true,
1330
1396
  database_records: true,
1397
+ portal_customizations: true,
1398
+ care_plans: true,
1399
+ enduser_tasks: true,
1331
1400
  }
1332
1401
 
1333
1402