@iblai/iblai-api 4.236.1-core → 4.236.2-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 +53 -33
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +54 -34
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +53 -33
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/models/CoursesProgressFrequencyEnum.d.ts +12 -0
- package/dist/types/models/NotificationTemplateDetail.d.ts +41 -2
- package/dist/types/models/NotificationTemplateList.d.ts +3 -2
- package/dist/types/models/NotificationTemplateTest.d.ts +4 -0
- package/dist/types/models/PatchedNotificationTemplateDetail.d.ts +41 -2
- package/dist/types/models/{TypeFdfEnum.d.ts → Type229Enum.d.ts} +3 -1
- package/package.json +1 -1
- package/sdk_schema.yml +128 -7
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +2 -1
- package/src/models/CoursesProgressFrequencyEnum.ts +16 -0
- package/src/models/NotificationTemplateDetail.ts +41 -2
- package/src/models/NotificationTemplateList.ts +3 -2
- package/src/models/NotificationTemplateTest.ts +4 -0
- package/src/models/PatchedNotificationTemplateDetail.ts +41 -2
- package/src/models/{TypeFdfEnum.ts → Type229Enum.ts} +3 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
/**
|
|
6
|
+
* * `DAILY` - DAILY
|
|
7
|
+
* * `WEEKLY` - WEEKLY
|
|
8
|
+
* * `MONTHLY` - MONTHLY
|
|
9
|
+
* * `CUSTOM` - CUSTOM
|
|
10
|
+
*/
|
|
11
|
+
export enum CoursesProgressFrequencyEnum {
|
|
12
|
+
DAILY = 'DAILY',
|
|
13
|
+
WEEKLY = 'WEEKLY',
|
|
14
|
+
MONTHLY = 'MONTHLY',
|
|
15
|
+
CUSTOM = 'CUSTOM',
|
|
16
|
+
}
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { ConsumerChannel } from './ConsumerChannel';
|
|
6
|
+
import type { CoursesProgressFrequencyEnum } from './CoursesProgressFrequencyEnum';
|
|
6
7
|
import type { HumanSupportRecipientModeEnum } from './HumanSupportRecipientModeEnum';
|
|
7
8
|
import type { NullEnum } from './NullEnum';
|
|
8
9
|
import type { PeriodicFrequencyEnum } from './PeriodicFrequencyEnum';
|
|
9
10
|
import type { PeriodicLearnerScopeEnum } from './PeriodicLearnerScopeEnum';
|
|
10
11
|
import type { Spa } from './Spa';
|
|
11
|
-
import type {
|
|
12
|
+
import type { Type229Enum } from './Type229Enum';
|
|
12
13
|
/**
|
|
13
14
|
* Serializer for detailed template view and editing
|
|
14
15
|
*/
|
|
@@ -27,6 +28,7 @@ export type NotificationTemplateDetail = {
|
|
|
27
28
|
* * `COURSE_INVITATION` - Course Invitation
|
|
28
29
|
* * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
|
|
29
30
|
* * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
|
|
31
|
+
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
30
32
|
* * `CUSTOM_NOTIFICATION` - Custom Notification
|
|
31
33
|
* * `DEFAULT_TEMPLATE` - Default Template
|
|
32
34
|
* * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
|
|
@@ -50,7 +52,7 @@ export type NotificationTemplateDetail = {
|
|
|
50
52
|
* * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
|
|
51
53
|
* * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
|
|
52
54
|
*/
|
|
53
|
-
readonly type: (
|
|
55
|
+
readonly type: (Type229Enum | NullEnum) | null;
|
|
54
56
|
/**
|
|
55
57
|
* Template display name
|
|
56
58
|
*/
|
|
@@ -135,6 +137,10 @@ export type NotificationTemplateDetail = {
|
|
|
135
137
|
/**
|
|
136
138
|
* Number of days to include in the report period
|
|
137
139
|
*/
|
|
140
|
+
periodic_lookback_days?: number;
|
|
141
|
+
/**
|
|
142
|
+
* Deprecated: use periodic_lookback_days instead
|
|
143
|
+
*/
|
|
138
144
|
periodic_report_period_days?: number;
|
|
139
145
|
/**
|
|
140
146
|
* How often to send: DAILY, WEEKLY, MONTHLY, or CUSTOM
|
|
@@ -218,6 +224,39 @@ export type NotificationTemplateDetail = {
|
|
|
218
224
|
* Mastery band thresholds (e.g. [{"name": "Beginner", "min_points": 0}, {"name": "Intermediate", "min_points": 100}])
|
|
219
225
|
*/
|
|
220
226
|
skill_mastery_thresholds?: Array<Record<string, any>>;
|
|
227
|
+
/**
|
|
228
|
+
* Courses progress config (COURSES_PROGRESS_SUMMARY only)
|
|
229
|
+
*/
|
|
230
|
+
readonly courses_progress_config: Record<string, any> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Lookback period in days for courses progress summary
|
|
233
|
+
*/
|
|
234
|
+
courses_progress_lookback_days?: number;
|
|
235
|
+
/**
|
|
236
|
+
* Data points to include: courses_progressed, courses_completed, credentials_earned, time_spent, active_days, mentors_accessed
|
|
237
|
+
*/
|
|
238
|
+
courses_progress_enabled_data_points?: Array<string>;
|
|
239
|
+
/**
|
|
240
|
+
* How often to send courses progress summary
|
|
241
|
+
*
|
|
242
|
+
* * `DAILY` - DAILY
|
|
243
|
+
* * `WEEKLY` - WEEKLY
|
|
244
|
+
* * `MONTHLY` - MONTHLY
|
|
245
|
+
* * `CUSTOM` - CUSTOM
|
|
246
|
+
*/
|
|
247
|
+
courses_progress_frequency?: CoursesProgressFrequencyEnum;
|
|
248
|
+
/**
|
|
249
|
+
* Custom interval in days (when frequency is CUSTOM)
|
|
250
|
+
*/
|
|
251
|
+
courses_progress_custom_interval_days?: number;
|
|
252
|
+
/**
|
|
253
|
+
* Time of day to send (HH:MM format)
|
|
254
|
+
*/
|
|
255
|
+
courses_progress_execution_time?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Timezone for execution (e.g. America/New_York)
|
|
258
|
+
*/
|
|
259
|
+
courses_progress_timezone?: string;
|
|
221
260
|
/**
|
|
222
261
|
* Timestamp when this template was created
|
|
223
262
|
*/
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { BlankEnum } from './BlankEnum';
|
|
6
6
|
import type { NullEnum } from './NullEnum';
|
|
7
|
-
import type {
|
|
7
|
+
import type { Type229Enum } from './Type229Enum';
|
|
8
8
|
/**
|
|
9
9
|
* Serializer for listing notification templates with inheritance info
|
|
10
10
|
*/
|
|
@@ -23,6 +23,7 @@ export type NotificationTemplateList = {
|
|
|
23
23
|
* * `COURSE_INVITATION` - Course Invitation
|
|
24
24
|
* * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
|
|
25
25
|
* * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
|
|
26
|
+
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
26
27
|
* * `CUSTOM_NOTIFICATION` - Custom Notification
|
|
27
28
|
* * `DEFAULT_TEMPLATE` - Default Template
|
|
28
29
|
* * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
|
|
@@ -46,7 +47,7 @@ export type NotificationTemplateList = {
|
|
|
46
47
|
* * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
|
|
47
48
|
* * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
|
|
48
49
|
*/
|
|
49
|
-
type?: (
|
|
50
|
+
type?: (Type229Enum | BlankEnum | NullEnum) | null;
|
|
50
51
|
/**
|
|
51
52
|
* A friendly name for the notification template.
|
|
52
53
|
*/
|
|
@@ -10,5 +10,9 @@ export type NotificationTemplateTest = {
|
|
|
10
10
|
* Optional context variables for template rendering (e.g., {'course_name': 'Test Course'})
|
|
11
11
|
*/
|
|
12
12
|
context?: any;
|
|
13
|
+
/**
|
|
14
|
+
* Use realistic sample data for this notification type. Set False for minimal context.
|
|
15
|
+
*/
|
|
16
|
+
use_sample_context?: boolean;
|
|
13
17
|
};
|
|
14
18
|
|
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
import type { ConsumerChannel } from './ConsumerChannel';
|
|
6
|
+
import type { CoursesProgressFrequencyEnum } from './CoursesProgressFrequencyEnum';
|
|
6
7
|
import type { HumanSupportRecipientModeEnum } from './HumanSupportRecipientModeEnum';
|
|
7
8
|
import type { NullEnum } from './NullEnum';
|
|
8
9
|
import type { PeriodicFrequencyEnum } from './PeriodicFrequencyEnum';
|
|
9
10
|
import type { PeriodicLearnerScopeEnum } from './PeriodicLearnerScopeEnum';
|
|
10
11
|
import type { Spa } from './Spa';
|
|
11
|
-
import type {
|
|
12
|
+
import type { Type229Enum } from './Type229Enum';
|
|
12
13
|
/**
|
|
13
14
|
* Serializer for detailed template view and editing
|
|
14
15
|
*/
|
|
@@ -27,6 +28,7 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
27
28
|
* * `COURSE_INVITATION` - Course Invitation
|
|
28
29
|
* * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
|
|
29
30
|
* * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
|
|
31
|
+
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
30
32
|
* * `CUSTOM_NOTIFICATION` - Custom Notification
|
|
31
33
|
* * `DEFAULT_TEMPLATE` - Default Template
|
|
32
34
|
* * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
|
|
@@ -50,7 +52,7 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
50
52
|
* * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
|
|
51
53
|
* * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
|
|
52
54
|
*/
|
|
53
|
-
readonly type?: (
|
|
55
|
+
readonly type?: (Type229Enum | NullEnum) | null;
|
|
54
56
|
/**
|
|
55
57
|
* Template display name
|
|
56
58
|
*/
|
|
@@ -135,6 +137,10 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
135
137
|
/**
|
|
136
138
|
* Number of days to include in the report period
|
|
137
139
|
*/
|
|
140
|
+
periodic_lookback_days?: number;
|
|
141
|
+
/**
|
|
142
|
+
* Deprecated: use periodic_lookback_days instead
|
|
143
|
+
*/
|
|
138
144
|
periodic_report_period_days?: number;
|
|
139
145
|
/**
|
|
140
146
|
* How often to send: DAILY, WEEKLY, MONTHLY, or CUSTOM
|
|
@@ -218,6 +224,39 @@ export type PatchedNotificationTemplateDetail = {
|
|
|
218
224
|
* Mastery band thresholds (e.g. [{"name": "Beginner", "min_points": 0}, {"name": "Intermediate", "min_points": 100}])
|
|
219
225
|
*/
|
|
220
226
|
skill_mastery_thresholds?: Array<Record<string, any>>;
|
|
227
|
+
/**
|
|
228
|
+
* Courses progress config (COURSES_PROGRESS_SUMMARY only)
|
|
229
|
+
*/
|
|
230
|
+
readonly courses_progress_config?: Record<string, any> | null;
|
|
231
|
+
/**
|
|
232
|
+
* Lookback period in days for courses progress summary
|
|
233
|
+
*/
|
|
234
|
+
courses_progress_lookback_days?: number;
|
|
235
|
+
/**
|
|
236
|
+
* Data points to include: courses_progressed, courses_completed, credentials_earned, time_spent, active_days, mentors_accessed
|
|
237
|
+
*/
|
|
238
|
+
courses_progress_enabled_data_points?: Array<string>;
|
|
239
|
+
/**
|
|
240
|
+
* How often to send courses progress summary
|
|
241
|
+
*
|
|
242
|
+
* * `DAILY` - DAILY
|
|
243
|
+
* * `WEEKLY` - WEEKLY
|
|
244
|
+
* * `MONTHLY` - MONTHLY
|
|
245
|
+
* * `CUSTOM` - CUSTOM
|
|
246
|
+
*/
|
|
247
|
+
courses_progress_frequency?: CoursesProgressFrequencyEnum;
|
|
248
|
+
/**
|
|
249
|
+
* Custom interval in days (when frequency is CUSTOM)
|
|
250
|
+
*/
|
|
251
|
+
courses_progress_custom_interval_days?: number;
|
|
252
|
+
/**
|
|
253
|
+
* Time of day to send (HH:MM format)
|
|
254
|
+
*/
|
|
255
|
+
courses_progress_execution_time?: string;
|
|
256
|
+
/**
|
|
257
|
+
* Timezone for execution (e.g. America/New_York)
|
|
258
|
+
*/
|
|
259
|
+
courses_progress_timezone?: string;
|
|
221
260
|
/**
|
|
222
261
|
* Timestamp when this template was created
|
|
223
262
|
*/
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* * `COURSE_INVITATION` - Course Invitation
|
|
11
11
|
* * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
|
|
12
12
|
* * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
|
|
13
|
+
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
13
14
|
* * `CUSTOM_NOTIFICATION` - Custom Notification
|
|
14
15
|
* * `DEFAULT_TEMPLATE` - Default Template
|
|
15
16
|
* * `HUMAN_SUPPORT_NOTIFICATION` - Human Support Notification
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
* * `USER_NOTIF_USER_INACTIVITY` - User Notif User Inactivity
|
|
34
35
|
* * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
|
|
35
36
|
*/
|
|
36
|
-
export enum
|
|
37
|
+
export enum Type229Enum {
|
|
37
38
|
ACTIVITY_COURSE_MILESTONE = 'ACTIVITY_COURSE_MILESTONE',
|
|
38
39
|
ACTIVITY_NEW_CONTENT = 'ACTIVITY_NEW_CONTENT',
|
|
39
40
|
ADMIN_NOTIF_COURSE_ENROLLMENT = 'ADMIN_NOTIF_COURSE_ENROLLMENT',
|
|
@@ -41,6 +42,7 @@ export enum TypeFdfEnum {
|
|
|
41
42
|
COURSE_INVITATION = 'COURSE_INVITATION',
|
|
42
43
|
COURSE_LICENSE_ASSIGNMENT = 'COURSE_LICENSE_ASSIGNMENT',
|
|
43
44
|
COURSE_LICENSE_GROUP_ASSIGNMENT = 'COURSE_LICENSE_GROUP_ASSIGNMENT',
|
|
45
|
+
COURSES_PROGRESS_SUMMARY = 'COURSES_PROGRESS_SUMMARY',
|
|
44
46
|
CUSTOM_NOTIFICATION = 'CUSTOM_NOTIFICATION',
|
|
45
47
|
DEFAULT_TEMPLATE = 'DEFAULT_TEMPLATE',
|
|
46
48
|
HUMAN_SUPPORT_NOTIFICATION = 'HUMAN_SUPPORT_NOTIFICATION',
|