@iblai/iblai-api 4.251.0-core → 4.252.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 (45) hide show
  1. package/dist/index.cjs.js +564 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +565 -2
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +564 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +16 -0
  8. package/dist/types/models/EventsEnum.d.ts +34 -0
  9. package/dist/types/models/PaginatedWatchedGroupListList.d.ts +7 -0
  10. package/dist/types/models/PaginatedWatchedUserReadList.d.ts +7 -0
  11. package/dist/types/models/PaginatedWatcherReadList.d.ts +7 -0
  12. package/dist/types/models/PatchedWatchedGroupUpdate.d.ts +8 -0
  13. package/dist/types/models/PatchedWatcherUpdate.d.ts +7 -0
  14. package/dist/types/models/WatchedGroupCreate.d.ts +21 -0
  15. package/dist/types/models/WatchedGroupDetail.d.ts +16 -0
  16. package/dist/types/models/WatchedGroupList.d.ts +8 -0
  17. package/dist/types/models/WatchedGroupUpdate.d.ts +8 -0
  18. package/dist/types/models/WatchedUserRead.d.ts +11 -0
  19. package/dist/types/models/WatchedUserWrite.d.ts +9 -0
  20. package/dist/types/models/WatcherEntry.d.ts +8 -0
  21. package/dist/types/models/WatcherRead.d.ts +16 -0
  22. package/dist/types/models/WatcherUpdate.d.ts +7 -0
  23. package/dist/types/models/WatcherWrite.d.ts +11 -0
  24. package/dist/types/services/CoreService.d.ts +364 -0
  25. package/package.json +1 -1
  26. package/sdk_schema.yml +1269 -104
  27. package/src/core/OpenAPI.ts +1 -1
  28. package/src/index.ts +16 -0
  29. package/src/models/EventsEnum.ts +38 -0
  30. package/src/models/PaginatedWatchedGroupListList.ts +12 -0
  31. package/src/models/PaginatedWatchedUserReadList.ts +12 -0
  32. package/src/models/PaginatedWatcherReadList.ts +12 -0
  33. package/src/models/PatchedWatchedGroupUpdate.ts +13 -0
  34. package/src/models/PatchedWatcherUpdate.ts +12 -0
  35. package/src/models/WatchedGroupCreate.ts +26 -0
  36. package/src/models/WatchedGroupDetail.ts +21 -0
  37. package/src/models/WatchedGroupList.ts +13 -0
  38. package/src/models/WatchedGroupUpdate.ts +13 -0
  39. package/src/models/WatchedUserRead.ts +16 -0
  40. package/src/models/WatchedUserWrite.ts +14 -0
  41. package/src/models/WatcherEntry.ts +13 -0
  42. package/src/models/WatcherRead.ts +21 -0
  43. package/src/models/WatcherUpdate.ts +12 -0
  44. package/src/models/WatcherWrite.ts +16 -0
  45. package/src/services/CoreService.ts +711 -0
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.251.0-core',
24
+ VERSION: '4.252.0-core',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -153,6 +153,7 @@ export type { EnrollmentsPerUserData } from './models/EnrollmentsPerUserData';
153
153
  export type { ErrorDetail } from './models/ErrorDetail';
154
154
  export type { ErrorResponse } from './models/ErrorResponse';
155
155
  export { EthnicityEnum } from './models/EthnicityEnum';
156
+ export { EventsEnum } from './models/EventsEnum';
156
157
  export type { Experience } from './models/Experience';
157
158
  export type { ExternalCredentialMapping } from './models/ExternalCredentialMapping';
158
159
  export type { FieldDefinitionImport } from './models/FieldDefinitionImport';
@@ -266,6 +267,9 @@ export type { PaginatedUserGroupList } from './models/PaginatedUserGroupList';
266
267
  export type { PaginatedUserLicense } from './models/PaginatedUserLicense';
267
268
  export type { PaginatedUserLicenseAssignment } from './models/PaginatedUserLicenseAssignment';
268
269
  export type { PaginatedUserLicenseGroupAssignment } from './models/PaginatedUserLicenseGroupAssignment';
270
+ export type { PaginatedWatchedGroupListList } from './models/PaginatedWatchedGroupListList';
271
+ export type { PaginatedWatchedUserReadList } from './models/PaginatedWatchedUserReadList';
272
+ export type { PaginatedWatcherReadList } from './models/PaginatedWatcherReadList';
269
273
  export type { Pagination } from './models/Pagination';
270
274
  export type { PatchedCreditAccountAutoRechargeUpdate } from './models/PatchedCreditAccountAutoRechargeUpdate';
271
275
  export type { PatchedDemographicsFieldDefinitionWrite } from './models/PatchedDemographicsFieldDefinitionWrite';
@@ -285,6 +289,8 @@ export type { PatchedSkillThreshold } from './models/PatchedSkillThreshold';
285
289
  export type { PatchedUserGroup } from './models/PatchedUserGroup';
286
290
  export type { PatchedUserNotificationPreferences } from './models/PatchedUserNotificationPreferences';
287
291
  export type { PatchedUserPlatformMetadataUpdate } from './models/PatchedUserPlatformMetadataUpdate';
292
+ export type { PatchedWatchedGroupUpdate } from './models/PatchedWatchedGroupUpdate';
293
+ export type { PatchedWatcherUpdate } from './models/PatchedWatcherUpdate';
288
294
  export type { Pathway } from './models/Pathway';
289
295
  export type { PathwayCompletion } from './models/PathwayCompletion';
290
296
  export type { PathwayCompletionResponse } from './models/PathwayCompletionResponse';
@@ -545,10 +551,20 @@ export type { VideosInCourseSummaryData } from './models/VideosInCourseSummaryDa
545
551
  export type { VideosSpecificCourse } from './models/VideosSpecificCourse';
546
552
  export type { VideosSpecificCourseData } from './models/VideosSpecificCourseData';
547
553
  export type { VideosWatchedSubSection } from './models/VideosWatchedSubSection';
554
+ export type { WatchedGroupCreate } from './models/WatchedGroupCreate';
555
+ export type { WatchedGroupDetail } from './models/WatchedGroupDetail';
556
+ export type { WatchedGroupList } from './models/WatchedGroupList';
557
+ export type { WatchedGroupUpdate } from './models/WatchedGroupUpdate';
558
+ export type { WatchedUserRead } from './models/WatchedUserRead';
559
+ export type { WatchedUserWrite } from './models/WatchedUserWrite';
548
560
  export type { WatchedVideosPerCourse } from './models/WatchedVideosPerCourse';
549
561
  export type { WatchedVideosPerCourseData } from './models/WatchedVideosPerCourseData';
550
562
  export type { WatchedVideosPerUser } from './models/WatchedVideosPerUser';
551
563
  export type { WatchedVideosPerUserData } from './models/WatchedVideosPerUserData';
564
+ export type { WatcherEntry } from './models/WatcherEntry';
565
+ export type { WatcherRead } from './models/WatcherRead';
566
+ export type { WatcherUpdate } from './models/WatcherUpdate';
567
+ export type { WatcherWrite } from './models/WatcherWrite';
552
568
  export type { WhitelistedDomain } from './models/WhitelistedDomain';
553
569
 
554
570
  export { AccessCheckService } from './services/AccessCheckService';
@@ -0,0 +1,38 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * * `USER_NOTIF_COURSE_ENROLLMENT` - Course Enrollment
7
+ * * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin: Course Enrollment
8
+ * * `USER_NOTIF_USER_INACTIVITY` - User Inactivity
9
+ * * `USER_NOTIF_COURSE_COMPLETION` - Course Completion
10
+ * * `USER_NOTIF_CREDENTIALS` - Credentials Issued
11
+ * * `USER_NOTIF_LEARNER_PROGRESS` - Learner Progress
12
+ * * `PROACTIVE_LEARNER_NOTIFICATION` - Proactive Learner Notification
13
+ * * `ACTIVITY_NEW_CONTENT` - New Activity Content
14
+ * * `ACTIVITY_COURSE_MILESTONE` - Course Milestone Reached
15
+ * * `SKILL_MASTERY_CHANGE` - Skill Mastery Change
16
+ * * `PROGRAM_ENROLLMENT_CONFIRMATION` - Program Enrollment Confirmed
17
+ * * `PATHWAY_ENROLLMENT_CONFIRMATION` - Pathway Enrollment Confirmed
18
+ * * `COURSE_SCHEDULE_CHANGE` - Course Schedule Change
19
+ * * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
20
+ * * `SUBSECTION_GRADE_UPDATE` - Subsection Grade Update
21
+ */
22
+ export enum EventsEnum {
23
+ USER_NOTIF_COURSE_ENROLLMENT = 'USER_NOTIF_COURSE_ENROLLMENT',
24
+ ADMIN_NOTIF_COURSE_ENROLLMENT = 'ADMIN_NOTIF_COURSE_ENROLLMENT',
25
+ USER_NOTIF_USER_INACTIVITY = 'USER_NOTIF_USER_INACTIVITY',
26
+ USER_NOTIF_COURSE_COMPLETION = 'USER_NOTIF_COURSE_COMPLETION',
27
+ USER_NOTIF_CREDENTIALS = 'USER_NOTIF_CREDENTIALS',
28
+ USER_NOTIF_LEARNER_PROGRESS = 'USER_NOTIF_LEARNER_PROGRESS',
29
+ PROACTIVE_LEARNER_NOTIFICATION = 'PROACTIVE_LEARNER_NOTIFICATION',
30
+ ACTIVITY_NEW_CONTENT = 'ACTIVITY_NEW_CONTENT',
31
+ ACTIVITY_COURSE_MILESTONE = 'ACTIVITY_COURSE_MILESTONE',
32
+ SKILL_MASTERY_CHANGE = 'SKILL_MASTERY_CHANGE',
33
+ PROGRAM_ENROLLMENT_CONFIRMATION = 'PROGRAM_ENROLLMENT_CONFIRMATION',
34
+ PATHWAY_ENROLLMENT_CONFIRMATION = 'PATHWAY_ENROLLMENT_CONFIRMATION',
35
+ COURSE_SCHEDULE_CHANGE = 'COURSE_SCHEDULE_CHANGE',
36
+ COURSES_PROGRESS_SUMMARY = 'COURSES_PROGRESS_SUMMARY',
37
+ SUBSECTION_GRADE_UPDATE = 'SUBSECTION_GRADE_UPDATE',
38
+ }
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WatchedGroupList } from './WatchedGroupList';
6
+ export type PaginatedWatchedGroupListList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<WatchedGroupList>;
11
+ };
12
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WatchedUserRead } from './WatchedUserRead';
6
+ export type PaginatedWatchedUserReadList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<WatchedUserRead>;
11
+ };
12
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WatcherRead } from './WatcherRead';
6
+ export type PaginatedWatcherReadList = {
7
+ count: number;
8
+ next?: string | null;
9
+ previous?: string | null;
10
+ results: Array<WatcherRead>;
11
+ };
12
+
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Payload for PATCH /watched-groups/{pk}/ — name only.
7
+ *
8
+ * Watchers are managed via /watchers/; watched users via /watched-users/.
9
+ */
10
+ export type PatchedWatchedGroupUpdate = {
11
+ name?: string;
12
+ };
13
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { EventsEnum } from './EventsEnum';
6
+ /**
7
+ * Payload for PATCH /watched-groups/{wg_pk}/watchers/{pk}/ — events only.
8
+ */
9
+ export type PatchedWatcherUpdate = {
10
+ events?: Array<EventsEnum>;
11
+ };
12
+
@@ -0,0 +1,26 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { WatcherEntry } from './WatcherEntry';
6
+ /**
7
+ * Payload for POST /watched-groups/.
8
+ *
9
+ * Platform is resolved by the view (auth token for normal callers, query
10
+ * param or body `platform_key` for service accounts) and passed via
11
+ * `context["platform"]`. The body `platform_key` field is consumed by the
12
+ * view, not the serializer.
13
+ *
14
+ * `owner_id` is reserved for service-account callers. Platform users are
15
+ * implicitly the owner; specifying `owner_id` from a platform user yields 400.
16
+ */
17
+ export type WatchedGroupCreate = {
18
+ watched_users?: Array<number>;
19
+ name: string;
20
+ watchers?: Array<WatcherEntry>;
21
+ /**
22
+ * edX user ID
23
+ */
24
+ owner_id?: number | null;
25
+ };
26
+
@@ -0,0 +1,21 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Detail shape — counts plus opt-in inline collections.
7
+ *
8
+ * `watchers` honors `watcher_limit` from context (default 0).
9
+ * `watched_users` honors `watched_user_limit` from context (default 0).
10
+ * Use the dedicated sub-resources for paginated walks.
11
+ */
12
+ export type WatchedGroupDetail = {
13
+ readonly id: number;
14
+ readonly name: string;
15
+ readonly platform_key: string;
16
+ readonly watcher_count: number;
17
+ readonly watchers: Array<any>;
18
+ readonly watched_user_count: number;
19
+ readonly watched_users: Array<any>;
20
+ };
21
+
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Lean shape for list responses — no watchers, no watched_users, no counts.
7
+ */
8
+ export type WatchedGroupList = {
9
+ readonly id: number;
10
+ readonly name: string;
11
+ readonly platform_key: string;
12
+ };
13
+
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Payload for PATCH /watched-groups/{pk}/ — name only.
7
+ *
8
+ * Watchers are managed via /watchers/; watched users via /watched-users/.
9
+ */
10
+ export type WatchedGroupUpdate = {
11
+ name?: string;
12
+ };
13
+
@@ -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
+ * Output for a single user inside a WatchedGroup.
7
+ *
8
+ * The entity is the user — `id` is the user's id (matching the URL pk). The
9
+ * underlying `UserGroupLink.id` is a routing artifact and isn't surfaced.
10
+ */
11
+ export type WatchedUserRead = {
12
+ readonly id: number;
13
+ readonly username: string;
14
+ readonly email: string;
15
+ };
16
+
@@ -0,0 +1,14 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Payload for POST /watched-groups/{wg_pk}/watched-users/.
7
+ */
8
+ export type WatchedUserWrite = {
9
+ /**
10
+ * edX user ID
11
+ */
12
+ user_id: number;
13
+ };
14
+
@@ -0,0 +1,13 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { EventsEnum } from './EventsEnum';
6
+ /**
7
+ * A single watcher entry in the create payload: who watches and which events.
8
+ */
9
+ export type WatcherEntry = {
10
+ watcher_id: number;
11
+ events?: Array<EventsEnum>;
12
+ };
13
+
@@ -0,0 +1,21 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ /**
6
+ * Output for a watcher (a user watching a WatchedGroup).
7
+ *
8
+ * The entity is the user — `id` is the watcher's user id (matching the URL
9
+ * pk). The underlying `WatcherToWatchedGroup.id` is a routing artifact and
10
+ * isn't surfaced.
11
+ */
12
+ export type WatcherRead = {
13
+ readonly id: number;
14
+ readonly username: string;
15
+ readonly email: string;
16
+ /**
17
+ * List of events the watcher is subscribed to for this group
18
+ */
19
+ events?: any;
20
+ };
21
+
@@ -0,0 +1,12 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { EventsEnum } from './EventsEnum';
6
+ /**
7
+ * Payload for PATCH /watched-groups/{wg_pk}/watchers/{pk}/ — events only.
8
+ */
9
+ export type WatcherUpdate = {
10
+ events: Array<EventsEnum>;
11
+ };
12
+
@@ -0,0 +1,16 @@
1
+ /* generated using openapi-typescript-codegen -- do not edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ import type { EventsEnum } from './EventsEnum';
6
+ /**
7
+ * Payload for POST /watched-groups/{wg_pk}/watchers/.
8
+ */
9
+ export type WatcherWrite = {
10
+ /**
11
+ * edX user ID
12
+ */
13
+ watcher_id: number;
14
+ events?: Array<EventsEnum>;
15
+ };
16
+