@iblai/iblai-api 4.59.3-core → 4.60.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.
Files changed (39) hide show
  1. package/dist/index.cjs.js +187 -18
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +188 -19
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +187 -18
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +12 -1
  8. package/dist/types/models/ConsumerChannel.d.ts +7 -0
  9. package/dist/types/models/NotificationSource.d.ts +2 -2
  10. package/dist/types/models/{TypeEnum.d.ts → NotificationSourceTypeEnum.d.ts} +1 -1
  11. package/dist/types/models/NotificationTemplateDetail.d.ts +86 -0
  12. package/dist/types/models/NotificationTemplateList.d.ts +59 -0
  13. package/dist/types/models/NotificationTemplateTest.d.ts +13 -0
  14. package/dist/types/models/NotificationTemplateTestResponse.d.ts +17 -0
  15. package/dist/types/models/NotificationToggle.d.ts +6 -0
  16. package/dist/types/models/NullEnum.d.ts +1 -0
  17. package/dist/types/models/PatchedNotificationTemplateDetail.d.ts +86 -0
  18. package/dist/types/models/PatchedNotificationToggle.d.ts +6 -0
  19. package/dist/types/models/Spa.d.ts +14 -0
  20. package/dist/types/models/TypeA81Enum.d.ts +42 -0
  21. package/dist/types/services/NotificationsService.d.ts +72 -0
  22. package/package.json +1 -1
  23. package/sdk_schema.yml +688 -17
  24. package/src/core/OpenAPI.ts +1 -1
  25. package/src/index.ts +12 -1
  26. package/src/models/ConsumerChannel.ts +12 -0
  27. package/src/models/NotificationSource.ts +2 -2
  28. package/src/models/{TypeEnum.ts → NotificationSourceTypeEnum.ts} +1 -1
  29. package/src/models/NotificationTemplateDetail.ts +91 -0
  30. package/src/models/NotificationTemplateList.ts +64 -0
  31. package/src/models/NotificationTemplateTest.ts +18 -0
  32. package/src/models/NotificationTemplateTestResponse.ts +22 -0
  33. package/src/models/NotificationToggle.ts +11 -0
  34. package/src/models/NullEnum.ts +7 -0
  35. package/src/models/PatchedNotificationTemplateDetail.ts +91 -0
  36. package/src/models/PatchedNotificationToggle.ts +11 -0
  37. package/src/models/Spa.ts +19 -0
  38. package/src/models/TypeA81Enum.ts +46 -0
  39. package/src/services/NotificationsService.ts +151 -0
@@ -0,0 +1,86 @@
1
+ import type { ConsumerChannel } from './ConsumerChannel';
2
+ import type { NullEnum } from './NullEnum';
3
+ import type { Spa } from './Spa';
4
+ import type { TypeA81Enum } from './TypeA81Enum';
5
+ /**
6
+ * Serializer for detailed template view and editing
7
+ */
8
+ export type PatchedNotificationTemplateDetail = {
9
+ /**
10
+ * Unique identifier for this notification template.
11
+ */
12
+ readonly id?: string;
13
+ /**
14
+ * Select the type of notification from the available options.
15
+ *
16
+ * * `APP_REGISTRATION` - App Registration
17
+ * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
18
+ * * `USER_NOTIF_COURSE_ENROLLMENT` - User Notif Course Enrollment
19
+ * * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin Notif Course Enrollment
20
+ * * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
21
+ * * `USER_NOTIF_COURSE_COMPLETION` - User Notif Course Completion
22
+ * * `USER_NOTIF_CREDENTIALS` - User Notif Credentials
23
+ * * `CUSTOM_NOTIFICATION` - Custom Notification
24
+ * * `PLATFORM_INVITATION` - Platform Invitation
25
+ * * `PROGRAM_INVITATION` - Program Invitation
26
+ * * `COURSE_INVITATION` - Course Invitation
27
+ * * `USER_NOTIF_LEARNER_PROGRESS` - User Notif Learner Progress
28
+ * * `ROLE_CHANGE` - Role Change
29
+ * * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
30
+ * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
31
+ * * `PROGRAM_LICENSE_ASSIGNMENT` - Program License Assignment
32
+ * * `PROGRAM_LICENSE_GROUP_ASSIGNMENT` - Program License Group Assignment
33
+ * * `USER_LICENSE_ASSIGNMENT` - User License Assignment
34
+ * * `USER_LICENSE_GROUP_ASSIGNMENT` - User License Group Assignment
35
+ */
36
+ readonly type?: (TypeA81Enum | NullEnum) | null;
37
+ /**
38
+ * A friendly name for the notification template.
39
+ */
40
+ name?: string | null;
41
+ /**
42
+ * Admin-friendly description of what this notification does, when it triggers, and what data it needs
43
+ */
44
+ description?: string;
45
+ /**
46
+ * The title for the notification message.
47
+ */
48
+ message_title?: string | null;
49
+ /**
50
+ * The full notification message body.
51
+ */
52
+ message_body?: string;
53
+ /**
54
+ * A short version of the notification message body.
55
+ */
56
+ short_message_body?: string;
57
+ /**
58
+ * Email subject line (supports Django template syntax)
59
+ */
60
+ email_subject?: string | null;
61
+ /**
62
+ * Sender email address (default: IBL <noreply@ibl.ai>)
63
+ */
64
+ email_from_address?: string | null;
65
+ /**
66
+ * Full HTML template for email body
67
+ */
68
+ email_html_template?: string | null;
69
+ readonly spas_detail?: Array<Spa>;
70
+ readonly allowed_channels_detail?: Array<ConsumerChannel>;
71
+ spa_ids?: Array<number>;
72
+ channel_ids?: Array<number>;
73
+ readonly is_inherited?: boolean;
74
+ readonly is_enabled?: boolean;
75
+ readonly source_platform?: string;
76
+ metadata?: any;
77
+ readonly available_context?: string;
78
+ /**
79
+ * Timestamp when this template was created
80
+ */
81
+ readonly created_at?: string;
82
+ /**
83
+ * Timestamp when this template was last updated
84
+ */
85
+ readonly updated_at?: string;
86
+ };
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Serializer for toggling notification preference
3
+ */
4
+ export type PatchedNotificationToggle = {
5
+ allow_notification?: boolean;
6
+ };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Serializer for SPA
3
+ */
4
+ export type Spa = {
5
+ readonly id: number;
6
+ /**
7
+ * Unique identifier for the SPA (e.g., 'skills', 'mentor', 'admin', 'mobile')
8
+ */
9
+ name: string;
10
+ /**
11
+ * Human-friendly description of this SPA
12
+ */
13
+ description?: string;
14
+ };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * * `APP_REGISTRATION` - App Registration
3
+ * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
4
+ * * `USER_NOTIF_COURSE_ENROLLMENT` - User Notif Course Enrollment
5
+ * * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin Notif Course Enrollment
6
+ * * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
7
+ * * `USER_NOTIF_COURSE_COMPLETION` - User Notif Course Completion
8
+ * * `USER_NOTIF_CREDENTIALS` - User Notif Credentials
9
+ * * `CUSTOM_NOTIFICATION` - Custom Notification
10
+ * * `PLATFORM_INVITATION` - Platform Invitation
11
+ * * `PROGRAM_INVITATION` - Program Invitation
12
+ * * `COURSE_INVITATION` - Course Invitation
13
+ * * `USER_NOTIF_LEARNER_PROGRESS` - User Notif Learner Progress
14
+ * * `ROLE_CHANGE` - Role Change
15
+ * * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
16
+ * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
17
+ * * `PROGRAM_LICENSE_ASSIGNMENT` - Program License Assignment
18
+ * * `PROGRAM_LICENSE_GROUP_ASSIGNMENT` - Program License Group Assignment
19
+ * * `USER_LICENSE_ASSIGNMENT` - User License Assignment
20
+ * * `USER_LICENSE_GROUP_ASSIGNMENT` - User License Group Assignment
21
+ */
22
+ export declare enum TypeA81Enum {
23
+ APP_REGISTRATION = "APP_REGISTRATION",
24
+ USER_NOTIF_USER_REGISTRATION = "USER_NOTIF_USER_REGISTRATION",
25
+ USER_NOTIF_COURSE_ENROLLMENT = "USER_NOTIF_COURSE_ENROLLMENT",
26
+ ADMIN_NOTIF_COURSE_ENROLLMENT = "ADMIN_NOTIF_COURSE_ENROLLMENT",
27
+ USER_NOTIF_USER_INACTIVITY = "USER_NOTIF_USER_INACTIVITY",
28
+ USER_NOTIF_COURSE_COMPLETION = "USER_NOTIF_COURSE_COMPLETION",
29
+ USER_NOTIF_CREDENTIALS = "USER_NOTIF_CREDENTIALS",
30
+ CUSTOM_NOTIFICATION = "CUSTOM_NOTIFICATION",
31
+ PLATFORM_INVITATION = "PLATFORM_INVITATION",
32
+ PROGRAM_INVITATION = "PROGRAM_INVITATION",
33
+ COURSE_INVITATION = "COURSE_INVITATION",
34
+ USER_NOTIF_LEARNER_PROGRESS = "USER_NOTIF_LEARNER_PROGRESS",
35
+ ROLE_CHANGE = "ROLE_CHANGE",
36
+ COURSE_LICENSE_ASSIGNMENT = "COURSE_LICENSE_ASSIGNMENT",
37
+ COURSE_LICENSE_GROUP_ASSIGNMENT = "COURSE_LICENSE_GROUP_ASSIGNMENT",
38
+ PROGRAM_LICENSE_ASSIGNMENT = "PROGRAM_LICENSE_ASSIGNMENT",
39
+ PROGRAM_LICENSE_GROUP_ASSIGNMENT = "PROGRAM_LICENSE_GROUP_ASSIGNMENT",
40
+ USER_LICENSE_ASSIGNMENT = "USER_LICENSE_ASSIGNMENT",
41
+ USER_LICENSE_GROUP_ASSIGNMENT = "USER_LICENSE_GROUP_ASSIGNMENT"
42
+ }
@@ -7,7 +7,14 @@ import type { Notification } from '../models/Notification';
7
7
  import type { NotificationCount } from '../models/NotificationCount';
8
8
  import type { NotificationPreview } from '../models/NotificationPreview';
9
9
  import type { NotificationSource } from '../models/NotificationSource';
10
+ import type { NotificationTemplateDetail } from '../models/NotificationTemplateDetail';
11
+ import type { NotificationTemplateList } from '../models/NotificationTemplateList';
12
+ import type { NotificationTemplateTest } from '../models/NotificationTemplateTest';
13
+ import type { NotificationTemplateTestResponse } from '../models/NotificationTemplateTestResponse';
14
+ import type { NotificationToggle } from '../models/NotificationToggle';
10
15
  import type { PatchedNotification } from '../models/PatchedNotification';
16
+ import type { PatchedNotificationTemplateDetail } from '../models/PatchedNotificationTemplateDetail';
17
+ import type { PatchedNotificationToggle } from '../models/PatchedNotificationToggle';
11
18
  import type { PreviewResponse } from '../models/PreviewResponse';
12
19
  import type { Recipient } from '../models/Recipient';
13
20
  import type { SendNotification } from '../models/SendNotification';
@@ -213,4 +220,69 @@ export declare class NotificationsService {
213
220
  platformKey: string;
214
221
  requestBody: TestSMTPCredentials;
215
222
  }): CancelablePromise<TestSMTPResponse>;
223
+ /**
224
+ * List notification templates
225
+ * Get all notification templates for the platform. Includes both platform-specific and inherited templates from main.
226
+ * @returns NotificationTemplateList
227
+ * @throws ApiError
228
+ */
229
+ static notificationV1PlatformsTemplatesList({ platformKey, }: {
230
+ platformKey: string;
231
+ }): CancelablePromise<Array<NotificationTemplateList>>;
232
+ /**
233
+ * Get notification template details
234
+ * Get detailed view of a notification template by type. Returns platform-specific template if exists, otherwise main template.
235
+ * @returns NotificationTemplateDetail
236
+ * @throws ApiError
237
+ */
238
+ static notificationV1PlatformsTemplatesRetrieve({ notificationType, platformKey, }: {
239
+ notificationType: string;
240
+ platformKey: string;
241
+ }): CancelablePromise<NotificationTemplateDetail>;
242
+ /**
243
+ * Update notification template
244
+ * Update notification template. Creates platform-specific copy on first edit.
245
+ * @returns NotificationTemplateDetail
246
+ * @throws ApiError
247
+ */
248
+ static notificationV1PlatformsTemplatesPartialUpdate({ notificationType, platformKey, requestBody, }: {
249
+ notificationType: string;
250
+ platformKey: string;
251
+ requestBody?: PatchedNotificationTemplateDetail;
252
+ }): CancelablePromise<NotificationTemplateDetail>;
253
+ /**
254
+ * Reset template to default
255
+ * Delete platform-specific template override and revert to main template. Notification preference (on/off) is preserved.
256
+ * @returns any
257
+ * @throws ApiError
258
+ */
259
+ static notificationV1PlatformsTemplatesResetCreate({ notificationType, platformKey, }: {
260
+ notificationType: string;
261
+ platformKey: string;
262
+ }): CancelablePromise<{
263
+ message?: string;
264
+ deleted?: boolean;
265
+ }>;
266
+ /**
267
+ * Send test notification
268
+ * Send a test notification to verify template rendering and delivery. Sends to the requesting admin's email or a specified test email.
269
+ * @returns NotificationTemplateTestResponse
270
+ * @throws ApiError
271
+ */
272
+ static notificationV1PlatformsTemplatesTestCreate({ notificationType, platformKey, requestBody, }: {
273
+ notificationType: string;
274
+ platformKey: string;
275
+ requestBody?: NotificationTemplateTest;
276
+ }): CancelablePromise<NotificationTemplateTestResponse>;
277
+ /**
278
+ * Toggle notification preference
279
+ * Enable or disable a notification type for the platform. This sets the NotificationPreference, not the template.
280
+ * @returns NotificationToggle
281
+ * @throws ApiError
282
+ */
283
+ static notificationV1PlatformsTemplatesTogglePartialUpdate({ notificationType, platformKey, requestBody, }: {
284
+ notificationType: string;
285
+ platformKey: string;
286
+ requestBody?: PatchedNotificationToggle;
287
+ }): CancelablePromise<NotificationToggle>;
216
288
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.59.3-core",
3
+ "version": "4.60.0-core",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",