@liaisongroup/assist-api-js-client 1.5.57 → 1.5.58

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/dist/openapi.d.ts CHANGED
@@ -78,6 +78,16 @@ declare namespace Components {
78
78
  id: string; // uuid
79
79
  };
80
80
  }
81
+ export interface BroadcastToEvent {
82
+ type: "unread_notification_count_change";
83
+ data: {
84
+ /**
85
+ * example:
86
+ * 10
87
+ */
88
+ unread_notification_count: number;
89
+ };
90
+ }
81
91
  export interface CalculationAction {
82
92
  name?: string;
83
93
  updated_at?: string; // date-time
@@ -1048,6 +1058,48 @@ declare namespace Components {
1048
1058
  id?: string; // uuid
1049
1059
  }[];
1050
1060
  }
1061
+ export interface Notification {
1062
+ data: NotificationData;
1063
+ links: Links;
1064
+ included?: NotificationInclusions;
1065
+ }
1066
+ export interface NotificationAttributes {
1067
+ message?: string;
1068
+ body?: string;
1069
+ read?: boolean;
1070
+ created_at?: string; // date-time
1071
+ updated_at?: string; // date-time
1072
+ }
1073
+ export interface NotificationData {
1074
+ type: "notification";
1075
+ id: string; // uuid
1076
+ attributes: NotificationAttributes;
1077
+ relationships: NotificationRelationships;
1078
+ }
1079
+ export interface NotificationInclusion {
1080
+ type: "notification";
1081
+ id: string; // uuid
1082
+ attributes: NotificationAttributes;
1083
+ relationships: NotificationRelationships;
1084
+ }
1085
+ export type NotificationInclusions = (TaskInclusion | UserInclusion)[];
1086
+ export interface NotificationRelationships {
1087
+ subject?: TaskRelationship;
1088
+ assignee?: UserRelationship;
1089
+ assigner?: UserRelationship;
1090
+ }
1091
+ export interface Notifications {
1092
+ data: NotificationData[];
1093
+ meta: Meta;
1094
+ links: Links;
1095
+ included?: NotificationInclusions;
1096
+ }
1097
+ export interface NotificationsRelationship {
1098
+ data?: {
1099
+ type?: "notification";
1100
+ id?: string; // uuid
1101
+ }[];
1102
+ }
1051
1103
  export interface OidcConfig {
1052
1104
  client_id: string;
1053
1105
  secret: string;
@@ -1527,6 +1579,13 @@ declare namespace Components {
1527
1579
  relationships: TaskRelationships;
1528
1580
  }
1529
1581
  export type TaskInclusions = (CaseInclusion | FieldInclusion | NoteInclusion | TeamInclusion | TemplateInclusion | UserInclusion | VersionInclusion)[];
1582
+ export interface TaskRelationship {
1583
+ data?: {
1584
+ type?: "task";
1585
+ id?: string; // uuid
1586
+ };
1587
+ links?: Links;
1588
+ }
1530
1589
  export interface TaskRelationships {
1531
1590
  case?: CaseRelationship;
1532
1591
  fields?: FieldsRelationship;
@@ -1780,7 +1839,7 @@ declare namespace Components {
1780
1839
  }[];
1781
1840
  links?: Links;
1782
1841
  }
1783
- export type Type = "action" | "case" | "field" | "field_setting" | "list" | "list_saved_filter" | "note" | "role" | "saved_filter" | "sso_config" | "tag" | "task" | "team" | "team_member" | "template" | "user";
1842
+ export type Type = "action" | "case" | "field" | "field_setting" | "list" | "list_saved_filter" | "note" | "notification" | "role" | "saved_filter" | "sso_config" | "tag" | "task" | "team" | "team_member" | "template" | "user";
1784
1843
  export interface UpdateResourceAction {
1785
1844
  name?: string;
1786
1845
  updated_at?: string; // date-time
@@ -1837,10 +1896,16 @@ declare namespace Components {
1837
1896
  sso_config: RoleActions[];
1838
1897
  field_setting: RoleActions[];
1839
1898
  note: RoleActions[];
1899
+ notification: RoleActions[];
1840
1900
  };
1841
1901
  team_ids?: string /* uuid */[];
1842
1902
  created_at?: string; // date-time
1843
1903
  updated_at?: string; // date-time
1904
+ /**
1905
+ * example:
1906
+ * 0
1907
+ */
1908
+ unread_notification_count?: number;
1844
1909
  }
1845
1910
  namespace UserAttributes {
1846
1911
  namespace Properties {
@@ -1892,7 +1957,7 @@ declare namespace Components {
1892
1957
  attributes: UserAttributes;
1893
1958
  relationships?: UserRelationships;
1894
1959
  }
1895
- export type UserInclusions = (TaskInclusion | TeamInclusion | TeamMemberInclusion | RoleInclusion)[];
1960
+ export type UserInclusions = (TaskInclusion | TeamInclusion | TeamMemberInclusion | RoleInclusion | NotificationInclusion)[];
1896
1961
  export interface UserRelationship {
1897
1962
  data?: {
1898
1963
  type?: "user";
@@ -1905,6 +1970,7 @@ declare namespace Components {
1905
1970
  teams?: TeamsRelationship;
1906
1971
  team_members?: TeamMembersRelationship;
1907
1972
  roles?: RolesRelationship;
1973
+ assigned_notifications?: NotificationsRelationship;
1908
1974
  }
1909
1975
  export interface UserUpdateAttributes {
1910
1976
  name?: UserAttributes.Properties.Name;
@@ -2412,6 +2478,21 @@ declare namespace Paths {
2412
2478
  export type $404 = Components.Schemas.Errors;
2413
2479
  }
2414
2480
  }
2481
+ namespace DeleteNotification {
2482
+ namespace Parameters {
2483
+ export type Id = string;
2484
+ }
2485
+ export interface PathParameters {
2486
+ id: Parameters.Id;
2487
+ }
2488
+ namespace Responses {
2489
+ export interface $204 {
2490
+ }
2491
+ export type $401 = Components.Schemas.Errors;
2492
+ export type $403 = Components.Schemas.Errors;
2493
+ export type $404 = Components.Schemas.Errors;
2494
+ }
2495
+ }
2415
2496
  namespace DeleteRole {
2416
2497
  namespace Parameters {
2417
2498
  export type Id = string; // uuid
@@ -2785,6 +2866,13 @@ declare namespace Paths {
2785
2866
  export type $403 = Components.Schemas.Errors;
2786
2867
  }
2787
2868
  }
2869
+ namespace GetNotifications {
2870
+ namespace Responses {
2871
+ export type $200 = Components.Schemas.Notifications;
2872
+ export type $401 = Components.Schemas.Errors;
2873
+ export type $403 = Components.Schemas.Errors;
2874
+ }
2875
+ }
2788
2876
  namespace GetResourceAttribute {
2789
2877
  namespace Parameters {
2790
2878
  export type Id = string;
@@ -3040,6 +3128,14 @@ declare namespace Paths {
3040
3128
  }
3041
3129
  }
3042
3130
  }
3131
+ namespace MarkAllNotificationsAsRead {
3132
+ namespace Responses {
3133
+ export interface $204 {
3134
+ }
3135
+ export type $401 = Components.Schemas.Errors;
3136
+ export type $403 = Components.Schemas.Errors;
3137
+ }
3138
+ }
3043
3139
  namespace RevokeAccessToken {
3044
3140
  export interface RequestBody {
3045
3141
  token: string; // jwt
@@ -3219,6 +3315,25 @@ declare namespace Paths {
3219
3315
  export type $422 = Components.Schemas.Errors;
3220
3316
  }
3221
3317
  }
3318
+ namespace UpdateNotification {
3319
+ namespace Parameters {
3320
+ export type Id = string;
3321
+ }
3322
+ export interface PathParameters {
3323
+ id: Parameters.Id;
3324
+ }
3325
+ export interface RequestBody {
3326
+ data: {
3327
+ attributes: Components.Schemas.NotificationAttributes;
3328
+ };
3329
+ }
3330
+ namespace Responses {
3331
+ export type $200 = Components.Schemas.Notification;
3332
+ export type $401 = Components.Schemas.Errors;
3333
+ export type $403 = Components.Schemas.Errors;
3334
+ export type $404 = Components.Schemas.Errors;
3335
+ }
3336
+ }
3222
3337
  namespace UpdateRole {
3223
3338
  namespace Parameters {
3224
3339
  export type Id = string; // uuid
@@ -4198,6 +4313,38 @@ export interface OperationMethods {
4198
4313
  data?: any,
4199
4314
  config?: AxiosRequestConfig
4200
4315
  ): OperationResponse<Paths.DeleteNote.Responses.$204>
4316
+ /**
4317
+ * get_notifications - Get notifications
4318
+ */
4319
+ 'get_notifications'(
4320
+ parameters?: Parameters<UnknownParamsObject> | null,
4321
+ data?: any,
4322
+ config?: AxiosRequestConfig
4323
+ ): OperationResponse<Paths.GetNotifications.Responses.$200>
4324
+ /**
4325
+ * mark_all_notifications_as_read - Mark all notifications for current user as read
4326
+ */
4327
+ 'mark_all_notifications_as_read'(
4328
+ parameters?: Parameters<UnknownParamsObject> | null,
4329
+ data?: any,
4330
+ config?: AxiosRequestConfig
4331
+ ): OperationResponse<Paths.MarkAllNotificationsAsRead.Responses.$204>
4332
+ /**
4333
+ * update_notification - Update notification
4334
+ */
4335
+ 'update_notification'(
4336
+ parameters?: Parameters<Paths.UpdateNotification.PathParameters> | null,
4337
+ data?: Paths.UpdateNotification.RequestBody,
4338
+ config?: AxiosRequestConfig
4339
+ ): OperationResponse<Paths.UpdateNotification.Responses.$200>
4340
+ /**
4341
+ * delete_notification - Delete notification
4342
+ */
4343
+ 'delete_notification'(
4344
+ parameters?: Parameters<Paths.DeleteNotification.PathParameters> | null,
4345
+ data?: any,
4346
+ config?: AxiosRequestConfig
4347
+ ): OperationResponse<Paths.DeleteNotification.Responses.$204>
4201
4348
  /**
4202
4349
  * atomic_operations - Perform atomic operations
4203
4350
  *
@@ -5104,6 +5251,44 @@ export interface PathsDictionary {
5104
5251
  config?: AxiosRequestConfig
5105
5252
  ): OperationResponse<Paths.DeleteNote.Responses.$204>
5106
5253
  }
5254
+ ['/notifications']: {
5255
+ /**
5256
+ * get_notifications - Get notifications
5257
+ */
5258
+ 'get'(
5259
+ parameters?: Parameters<UnknownParamsObject> | null,
5260
+ data?: any,
5261
+ config?: AxiosRequestConfig
5262
+ ): OperationResponse<Paths.GetNotifications.Responses.$200>
5263
+ }
5264
+ ['/notifications/mark_all_as_read']: {
5265
+ /**
5266
+ * mark_all_notifications_as_read - Mark all notifications for current user as read
5267
+ */
5268
+ 'patch'(
5269
+ parameters?: Parameters<UnknownParamsObject> | null,
5270
+ data?: any,
5271
+ config?: AxiosRequestConfig
5272
+ ): OperationResponse<Paths.MarkAllNotificationsAsRead.Responses.$204>
5273
+ }
5274
+ ['/notifications/{id}']: {
5275
+ /**
5276
+ * update_notification - Update notification
5277
+ */
5278
+ 'patch'(
5279
+ parameters?: Parameters<Paths.UpdateNotification.PathParameters> | null,
5280
+ data?: Paths.UpdateNotification.RequestBody,
5281
+ config?: AxiosRequestConfig
5282
+ ): OperationResponse<Paths.UpdateNotification.Responses.$200>
5283
+ /**
5284
+ * delete_notification - Delete notification
5285
+ */
5286
+ 'delete'(
5287
+ parameters?: Parameters<Paths.DeleteNotification.PathParameters> | null,
5288
+ data?: any,
5289
+ config?: AxiosRequestConfig
5290
+ ): OperationResponse<Paths.DeleteNotification.Responses.$204>
5291
+ }
5107
5292
  ['/operations']: {
5108
5293
  /**
5109
5294
  * atomic_operations - Perform atomic operations
@@ -5157,6 +5342,7 @@ export type ActionTypes = Components.Schemas.ActionTypes;
5157
5342
  export type Actions = Components.Schemas.Actions;
5158
5343
  export type AdministrableResources = Components.Schemas.AdministrableResources;
5159
5344
  export type BroadcastEvent = Components.Schemas.BroadcastEvent;
5345
+ export type BroadcastToEvent = Components.Schemas.BroadcastToEvent;
5160
5346
  export type CalculationAction = Components.Schemas.CalculationAction;
5161
5347
  export type Case = Components.Schemas.Case;
5162
5348
  export type CaseActivityLog = Components.Schemas.CaseActivityLog;
@@ -5264,6 +5450,14 @@ export type NoteInclusions = Components.Schemas.NoteInclusions;
5264
5450
  export type NoteRelationships = Components.Schemas.NoteRelationships;
5265
5451
  export type Notes = Components.Schemas.Notes;
5266
5452
  export type NotesRelationship = Components.Schemas.NotesRelationship;
5453
+ export type Notification = Components.Schemas.Notification;
5454
+ export type NotificationAttributes = Components.Schemas.NotificationAttributes;
5455
+ export type NotificationData = Components.Schemas.NotificationData;
5456
+ export type NotificationInclusion = Components.Schemas.NotificationInclusion;
5457
+ export type NotificationInclusions = Components.Schemas.NotificationInclusions;
5458
+ export type NotificationRelationships = Components.Schemas.NotificationRelationships;
5459
+ export type Notifications = Components.Schemas.Notifications;
5460
+ export type NotificationsRelationship = Components.Schemas.NotificationsRelationship;
5267
5461
  export type OidcConfig = Components.Schemas.OidcConfig;
5268
5462
  export type OperationTypes = Components.Schemas.OperationTypes;
5269
5463
  export type PasswordGrant = Components.Schemas.PasswordGrant;
@@ -5341,6 +5535,7 @@ export type TaskCreateAttributes = Components.Schemas.TaskCreateAttributes;
5341
5535
  export type TaskData = Components.Schemas.TaskData;
5342
5536
  export type TaskInclusion = Components.Schemas.TaskInclusion;
5343
5537
  export type TaskInclusions = Components.Schemas.TaskInclusions;
5538
+ export type TaskRelationship = Components.Schemas.TaskRelationship;
5344
5539
  export type TaskRelationships = Components.Schemas.TaskRelationships;
5345
5540
  export type Tasks = Components.Schemas.Tasks;
5346
5541
  export type TasksRelationship = Components.Schemas.TasksRelationship;