@iblai/iblai-api 4.108.1-core → 4.109.0-core
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/index.cjs.js +35 -35
- package/dist/index.esm.js +36 -36
- package/dist/index.umd.js +35 -35
- package/dist/types/index.d.ts +2 -1
- package/dist/types/models/Notification.d.ts +2 -2
- package/dist/types/models/NotificationsUpdate.d.ts +5 -0
- package/dist/types/models/PatchedNotification.d.ts +2 -2
- package/dist/types/models/{NotificationStatusEnum.d.ts → Status3daEnum.d.ts} +1 -1
- package/dist/types/services/NotificationsService.d.ts +21 -20
- package/package.json +1 -1
- package/sdk_schema.yml +63 -49
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -1
- package/src/models/Notification.ts +2 -2
- package/src/models/NotificationsUpdate.ts +10 -0
- package/src/models/PatchedNotification.ts +2 -2
- package/src/models/{NotificationStatusEnum.ts → Status3daEnum.ts} +1 -1
- package/src/services/NotificationsService.ts +21 -20
|
@@ -11,6 +11,7 @@ import type { Notification } from '../models/Notification';
|
|
|
11
11
|
import type { NotificationCount } from '../models/NotificationCount';
|
|
12
12
|
import type { NotificationPreview } from '../models/NotificationPreview';
|
|
13
13
|
import type { NotificationSource } from '../models/NotificationSource';
|
|
14
|
+
import type { NotificationsUpdate } from '../models/NotificationsUpdate';
|
|
14
15
|
import type { NotificationTemplateDetail } from '../models/NotificationTemplateDetail';
|
|
15
16
|
import type { NotificationTemplateList } from '../models/NotificationTemplateList';
|
|
16
17
|
import type { NotificationTemplateTest } from '../models/NotificationTemplateTest';
|
|
@@ -52,7 +53,7 @@ export class NotificationsService {
|
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
/**
|
|
55
|
-
* Get notifications for a user
|
|
56
|
+
* Get notifications for a user. Requires: Ibl.Notifications/Notification/list
|
|
56
57
|
* @returns Notification
|
|
57
58
|
* @throws ApiError
|
|
58
59
|
*/
|
|
@@ -87,7 +88,7 @@ export class NotificationsService {
|
|
|
87
88
|
});
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
90
|
-
*
|
|
91
|
+
* Update notification status for a user. Requires: Ibl.Notifications/Notification/write
|
|
91
92
|
* @returns Notification
|
|
92
93
|
* @throws ApiError
|
|
93
94
|
*/
|
|
@@ -96,7 +97,7 @@ export class NotificationsService {
|
|
|
96
97
|
requestBody,
|
|
97
98
|
}: {
|
|
98
99
|
org: string,
|
|
99
|
-
requestBody:
|
|
100
|
+
requestBody: NotificationsUpdate,
|
|
100
101
|
}): CancelablePromise<Notification> {
|
|
101
102
|
return __request(OpenAPI, {
|
|
102
103
|
method: 'PUT',
|
|
@@ -109,7 +110,7 @@ export class NotificationsService {
|
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
112
|
/**
|
|
112
|
-
*
|
|
113
|
+
* Bulk update notification status for a user. Requires: Ibl.Notifications/Notification/write
|
|
113
114
|
* @returns Notification
|
|
114
115
|
* @throws ApiError
|
|
115
116
|
*/
|
|
@@ -131,7 +132,7 @@ export class NotificationsService {
|
|
|
131
132
|
});
|
|
132
133
|
}
|
|
133
134
|
/**
|
|
134
|
-
* Get notifications for a user
|
|
135
|
+
* Get notifications for a user. Requires: Ibl.Notifications/Notification/list
|
|
135
136
|
* @returns Notification
|
|
136
137
|
* @throws ApiError
|
|
137
138
|
*/
|
|
@@ -169,7 +170,7 @@ export class NotificationsService {
|
|
|
169
170
|
});
|
|
170
171
|
}
|
|
171
172
|
/**
|
|
172
|
-
*
|
|
173
|
+
* Update notification status for a user. Requires: Ibl.Notifications/Notification/write
|
|
173
174
|
* @returns Notification
|
|
174
175
|
* @throws ApiError
|
|
175
176
|
*/
|
|
@@ -180,7 +181,7 @@ export class NotificationsService {
|
|
|
180
181
|
}: {
|
|
181
182
|
org: string,
|
|
182
183
|
userId: string,
|
|
183
|
-
requestBody:
|
|
184
|
+
requestBody: NotificationsUpdate,
|
|
184
185
|
}): CancelablePromise<Notification> {
|
|
185
186
|
return __request(OpenAPI, {
|
|
186
187
|
method: 'PUT',
|
|
@@ -194,7 +195,7 @@ export class NotificationsService {
|
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
197
|
/**
|
|
197
|
-
* Get notifications count for a user
|
|
198
|
+
* Get notifications count for a user. Requires: Ibl.Notifications/Notification/list
|
|
198
199
|
* @returns NotificationCount
|
|
199
200
|
* @throws ApiError
|
|
200
201
|
*/
|
|
@@ -223,7 +224,7 @@ export class NotificationsService {
|
|
|
223
224
|
});
|
|
224
225
|
}
|
|
225
226
|
/**
|
|
226
|
-
*
|
|
227
|
+
* Delete a notification for a user. Requires: Ibl.Notifications/Notification/delete
|
|
227
228
|
* @returns void
|
|
228
229
|
* @throws ApiError
|
|
229
230
|
*/
|
|
@@ -247,7 +248,7 @@ export class NotificationsService {
|
|
|
247
248
|
});
|
|
248
249
|
}
|
|
249
250
|
/**
|
|
250
|
-
*
|
|
251
|
+
* Bulk update notification status for a user. Requires: Ibl.Notifications/Notification/write
|
|
251
252
|
* @returns Notification
|
|
252
253
|
* @throws ApiError
|
|
253
254
|
*/
|
|
@@ -272,7 +273,7 @@ export class NotificationsService {
|
|
|
272
273
|
});
|
|
273
274
|
}
|
|
274
275
|
/**
|
|
275
|
-
* Re-enable campaigns for a user
|
|
276
|
+
* Re-enable campaigns for a user. Requires: Ibl.Notifications/Campaigns/action
|
|
276
277
|
* @returns any
|
|
277
278
|
* @throws ApiError
|
|
278
279
|
*/
|
|
@@ -297,7 +298,7 @@ export class NotificationsService {
|
|
|
297
298
|
});
|
|
298
299
|
}
|
|
299
300
|
/**
|
|
300
|
-
* Exclude a user from specified campaigns
|
|
301
|
+
* Exclude a user from specified campaigns. Requires: Ibl.Notifications/Campaigns/action
|
|
301
302
|
* @returns any
|
|
302
303
|
* @throws ApiError
|
|
303
304
|
*/
|
|
@@ -322,7 +323,7 @@ export class NotificationsService {
|
|
|
322
323
|
});
|
|
323
324
|
}
|
|
324
325
|
/**
|
|
325
|
-
* Mark all notifications as read for a user. Optionally provide specific notification IDs.
|
|
326
|
+
* Mark all notifications as read for a user. Optionally provide specific notification IDs. Requires: Ibl.Notifications/Notification/write
|
|
326
327
|
* @returns MarkAllReadResponse
|
|
327
328
|
* @throws ApiError
|
|
328
329
|
*/
|
|
@@ -475,7 +476,7 @@ export class NotificationsService {
|
|
|
475
476
|
}
|
|
476
477
|
/**
|
|
477
478
|
* Test SMTP credentials for a platform
|
|
478
|
-
* Test SMTP credentials by sending a test email to the specified address
|
|
479
|
+
* Test SMTP credentials by sending a test email to the specified address. Requires: Ibl.Notifications/SMTP/action
|
|
479
480
|
* @returns TestSMTPResponse
|
|
480
481
|
* @throws ApiError
|
|
481
482
|
*/
|
|
@@ -498,7 +499,7 @@ export class NotificationsService {
|
|
|
498
499
|
}
|
|
499
500
|
/**
|
|
500
501
|
* List notification templates
|
|
501
|
-
* Get all notification templates for the platform. Includes both platform-specific and inherited templates from main.
|
|
502
|
+
* Get all notification templates for the platform. Includes both platform-specific and inherited templates from main. Requires permission: Ibl.Notifications/NotificationTemplate/list
|
|
502
503
|
* @returns NotificationTemplateList
|
|
503
504
|
* @throws ApiError
|
|
504
505
|
*/
|
|
@@ -517,7 +518,7 @@ export class NotificationsService {
|
|
|
517
518
|
}
|
|
518
519
|
/**
|
|
519
520
|
* Get notification template details
|
|
520
|
-
* Get detailed view of a notification template by type. Returns platform-specific template if exists, otherwise main template.
|
|
521
|
+
* Get detailed view of a notification template by type. Returns platform-specific template if exists, otherwise main template. Requires permission: Ibl.Notifications/NotificationTemplate/read
|
|
521
522
|
* @returns NotificationTemplateDetail
|
|
522
523
|
* @throws ApiError
|
|
523
524
|
*/
|
|
@@ -539,7 +540,7 @@ export class NotificationsService {
|
|
|
539
540
|
}
|
|
540
541
|
/**
|
|
541
542
|
* Update notification template
|
|
542
|
-
* Update notification template. Creates platform-specific copy on first edit.
|
|
543
|
+
* Update notification template. Creates platform-specific copy on first edit. Requires permission: Ibl.Notifications/NotificationTemplate/write
|
|
543
544
|
* @returns NotificationTemplateDetail
|
|
544
545
|
* @throws ApiError
|
|
545
546
|
*/
|
|
@@ -565,7 +566,7 @@ export class NotificationsService {
|
|
|
565
566
|
}
|
|
566
567
|
/**
|
|
567
568
|
* Reset template to default
|
|
568
|
-
* Delete platform-specific template override and revert to main template. Notification preference (on/off) is preserved.
|
|
569
|
+
* Delete platform-specific template override and revert to main template. Notification preference (on/off) is preserved. Requires permission: Ibl.Notifications/NotificationTemplate/write
|
|
569
570
|
* @returns any
|
|
570
571
|
* @throws ApiError
|
|
571
572
|
*/
|
|
@@ -590,7 +591,7 @@ export class NotificationsService {
|
|
|
590
591
|
}
|
|
591
592
|
/**
|
|
592
593
|
* Send test notification
|
|
593
|
-
* Send a test notification to verify template rendering and delivery. Sends to the requesting admin's email or a specified test email.
|
|
594
|
+
* Send a test notification to verify template rendering and delivery. Sends to the requesting admin's email or a specified test email. Requires permission: Ibl.Notifications/NotificationTemplate/action
|
|
594
595
|
* @returns NotificationTemplateTestResponse
|
|
595
596
|
* @throws ApiError
|
|
596
597
|
*/
|
|
@@ -616,7 +617,7 @@ export class NotificationsService {
|
|
|
616
617
|
}
|
|
617
618
|
/**
|
|
618
619
|
* Toggle notification preference
|
|
619
|
-
* Enable or disable a notification type for the platform. This sets the NotificationPreference, not the template.
|
|
620
|
+
* Enable or disable a notification type for the platform. This sets the NotificationPreference, not the template. Requires permission: Ibl.Notifications/NotificationTemplate/write
|
|
620
621
|
* @returns NotificationToggle
|
|
621
622
|
* @throws ApiError
|
|
622
623
|
*/
|