@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.
- package/dist/index.cjs.js +564 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +565 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +564 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +16 -0
- package/dist/types/models/EventsEnum.d.ts +34 -0
- package/dist/types/models/PaginatedWatchedGroupListList.d.ts +7 -0
- package/dist/types/models/PaginatedWatchedUserReadList.d.ts +7 -0
- package/dist/types/models/PaginatedWatcherReadList.d.ts +7 -0
- package/dist/types/models/PatchedWatchedGroupUpdate.d.ts +8 -0
- package/dist/types/models/PatchedWatcherUpdate.d.ts +7 -0
- package/dist/types/models/WatchedGroupCreate.d.ts +21 -0
- package/dist/types/models/WatchedGroupDetail.d.ts +16 -0
- package/dist/types/models/WatchedGroupList.d.ts +8 -0
- package/dist/types/models/WatchedGroupUpdate.d.ts +8 -0
- package/dist/types/models/WatchedUserRead.d.ts +11 -0
- package/dist/types/models/WatchedUserWrite.d.ts +9 -0
- package/dist/types/models/WatcherEntry.d.ts +8 -0
- package/dist/types/models/WatcherRead.d.ts +16 -0
- package/dist/types/models/WatcherUpdate.d.ts +7 -0
- package/dist/types/models/WatcherWrite.d.ts +11 -0
- package/dist/types/services/CoreService.d.ts +364 -0
- package/package.json +1 -1
- package/sdk_schema.yml +1269 -104
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +16 -0
- package/src/models/EventsEnum.ts +38 -0
- package/src/models/PaginatedWatchedGroupListList.ts +12 -0
- package/src/models/PaginatedWatchedUserReadList.ts +12 -0
- package/src/models/PaginatedWatcherReadList.ts +12 -0
- package/src/models/PatchedWatchedGroupUpdate.ts +13 -0
- package/src/models/PatchedWatcherUpdate.ts +12 -0
- package/src/models/WatchedGroupCreate.ts +26 -0
- package/src/models/WatchedGroupDetail.ts +21 -0
- package/src/models/WatchedGroupList.ts +13 -0
- package/src/models/WatchedGroupUpdate.ts +13 -0
- package/src/models/WatchedUserRead.ts +16 -0
- package/src/models/WatchedUserWrite.ts +14 -0
- package/src/models/WatcherEntry.ts +13 -0
- package/src/models/WatcherRead.ts +21 -0
- package/src/models/WatcherUpdate.ts +12 -0
- package/src/models/WatcherWrite.ts +16 -0
- package/src/services/CoreService.ts +711 -0
package/dist/index.esm.js
CHANGED
|
@@ -108,7 +108,7 @@ class CancelablePromise {
|
|
|
108
108
|
|
|
109
109
|
const OpenAPI = {
|
|
110
110
|
BASE: 'https://base.manager.iblai.app',
|
|
111
|
-
VERSION: '4.
|
|
111
|
+
VERSION: '4.252.0-core',
|
|
112
112
|
WITH_CREDENTIALS: false,
|
|
113
113
|
CREDENTIALS: 'include',
|
|
114
114
|
TOKEN: undefined,
|
|
@@ -273,6 +273,46 @@ var EthnicityEnum;
|
|
|
273
273
|
EthnicityEnum["OTHER"] = "other";
|
|
274
274
|
})(EthnicityEnum || (EthnicityEnum = {}));
|
|
275
275
|
|
|
276
|
+
/* generated using openapi-typescript-codegen -- do not edit */
|
|
277
|
+
/* istanbul ignore file */
|
|
278
|
+
/* tslint:disable */
|
|
279
|
+
/* eslint-disable */
|
|
280
|
+
/**
|
|
281
|
+
* * `USER_NOTIF_COURSE_ENROLLMENT` - Course Enrollment
|
|
282
|
+
* * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin: Course Enrollment
|
|
283
|
+
* * `USER_NOTIF_USER_INACTIVITY` - User Inactivity
|
|
284
|
+
* * `USER_NOTIF_COURSE_COMPLETION` - Course Completion
|
|
285
|
+
* * `USER_NOTIF_CREDENTIALS` - Credentials Issued
|
|
286
|
+
* * `USER_NOTIF_LEARNER_PROGRESS` - Learner Progress
|
|
287
|
+
* * `PROACTIVE_LEARNER_NOTIFICATION` - Proactive Learner Notification
|
|
288
|
+
* * `ACTIVITY_NEW_CONTENT` - New Activity Content
|
|
289
|
+
* * `ACTIVITY_COURSE_MILESTONE` - Course Milestone Reached
|
|
290
|
+
* * `SKILL_MASTERY_CHANGE` - Skill Mastery Change
|
|
291
|
+
* * `PROGRAM_ENROLLMENT_CONFIRMATION` - Program Enrollment Confirmed
|
|
292
|
+
* * `PATHWAY_ENROLLMENT_CONFIRMATION` - Pathway Enrollment Confirmed
|
|
293
|
+
* * `COURSE_SCHEDULE_CHANGE` - Course Schedule Change
|
|
294
|
+
* * `COURSES_PROGRESS_SUMMARY` - Courses Progress Summary
|
|
295
|
+
* * `SUBSECTION_GRADE_UPDATE` - Subsection Grade Update
|
|
296
|
+
*/
|
|
297
|
+
var EventsEnum;
|
|
298
|
+
(function (EventsEnum) {
|
|
299
|
+
EventsEnum["USER_NOTIF_COURSE_ENROLLMENT"] = "USER_NOTIF_COURSE_ENROLLMENT";
|
|
300
|
+
EventsEnum["ADMIN_NOTIF_COURSE_ENROLLMENT"] = "ADMIN_NOTIF_COURSE_ENROLLMENT";
|
|
301
|
+
EventsEnum["USER_NOTIF_USER_INACTIVITY"] = "USER_NOTIF_USER_INACTIVITY";
|
|
302
|
+
EventsEnum["USER_NOTIF_COURSE_COMPLETION"] = "USER_NOTIF_COURSE_COMPLETION";
|
|
303
|
+
EventsEnum["USER_NOTIF_CREDENTIALS"] = "USER_NOTIF_CREDENTIALS";
|
|
304
|
+
EventsEnum["USER_NOTIF_LEARNER_PROGRESS"] = "USER_NOTIF_LEARNER_PROGRESS";
|
|
305
|
+
EventsEnum["PROACTIVE_LEARNER_NOTIFICATION"] = "PROACTIVE_LEARNER_NOTIFICATION";
|
|
306
|
+
EventsEnum["ACTIVITY_NEW_CONTENT"] = "ACTIVITY_NEW_CONTENT";
|
|
307
|
+
EventsEnum["ACTIVITY_COURSE_MILESTONE"] = "ACTIVITY_COURSE_MILESTONE";
|
|
308
|
+
EventsEnum["SKILL_MASTERY_CHANGE"] = "SKILL_MASTERY_CHANGE";
|
|
309
|
+
EventsEnum["PROGRAM_ENROLLMENT_CONFIRMATION"] = "PROGRAM_ENROLLMENT_CONFIRMATION";
|
|
310
|
+
EventsEnum["PATHWAY_ENROLLMENT_CONFIRMATION"] = "PATHWAY_ENROLLMENT_CONFIRMATION";
|
|
311
|
+
EventsEnum["COURSE_SCHEDULE_CHANGE"] = "COURSE_SCHEDULE_CHANGE";
|
|
312
|
+
EventsEnum["COURSES_PROGRESS_SUMMARY"] = "COURSES_PROGRESS_SUMMARY";
|
|
313
|
+
EventsEnum["SUBSECTION_GRADE_UPDATE"] = "SUBSECTION_GRADE_UPDATE";
|
|
314
|
+
})(EventsEnum || (EventsEnum = {}));
|
|
315
|
+
|
|
276
316
|
/* generated using openapi-typescript-codegen -- do not edit */
|
|
277
317
|
/* istanbul ignore file */
|
|
278
318
|
/* tslint:disable */
|
|
@@ -17888,6 +17928,529 @@ class CoreService {
|
|
|
17888
17928
|
}
|
|
17889
17929
|
});
|
|
17890
17930
|
}
|
|
17931
|
+
/**
|
|
17932
|
+
* List watched groups visible to the caller
|
|
17933
|
+
* CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
|
|
17934
|
+
* POST here accepts an optional `watchers` array as a create-time convenience.
|
|
17935
|
+
* @returns PaginatedWatchedGroupListList
|
|
17936
|
+
* @throws ApiError
|
|
17937
|
+
*/
|
|
17938
|
+
static coreWatchedGroupsList({
|
|
17939
|
+
limit,
|
|
17940
|
+
offset,
|
|
17941
|
+
platformKey
|
|
17942
|
+
}) {
|
|
17943
|
+
return request(OpenAPI, {
|
|
17944
|
+
method: 'GET',
|
|
17945
|
+
url: '/api/core/watched-groups/',
|
|
17946
|
+
query: {
|
|
17947
|
+
'limit': limit,
|
|
17948
|
+
'offset': offset,
|
|
17949
|
+
'platform_key': platformKey
|
|
17950
|
+
},
|
|
17951
|
+
errors: {
|
|
17952
|
+
403: `Permission denied`,
|
|
17953
|
+
404: `Platform not found`
|
|
17954
|
+
}
|
|
17955
|
+
});
|
|
17956
|
+
}
|
|
17957
|
+
/**
|
|
17958
|
+
* Create a watched group
|
|
17959
|
+
* CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
|
|
17960
|
+
* POST here accepts an optional `watchers` array as a create-time convenience.
|
|
17961
|
+
* @returns WatchedGroupDetail
|
|
17962
|
+
* @throws ApiError
|
|
17963
|
+
*/
|
|
17964
|
+
static coreWatchedGroupsCreate({
|
|
17965
|
+
requestBody,
|
|
17966
|
+
platformKey,
|
|
17967
|
+
watchedUserLimit,
|
|
17968
|
+
watcherLimit
|
|
17969
|
+
}) {
|
|
17970
|
+
return request(OpenAPI, {
|
|
17971
|
+
method: 'POST',
|
|
17972
|
+
url: '/api/core/watched-groups/',
|
|
17973
|
+
query: {
|
|
17974
|
+
'platform_key': platformKey,
|
|
17975
|
+
'watched_user_limit': watchedUserLimit,
|
|
17976
|
+
'watcher_limit': watcherLimit
|
|
17977
|
+
},
|
|
17978
|
+
body: requestBody,
|
|
17979
|
+
mediaType: 'application/json',
|
|
17980
|
+
errors: {
|
|
17981
|
+
400: `Invalid request`,
|
|
17982
|
+
403: `Permission denied`
|
|
17983
|
+
}
|
|
17984
|
+
});
|
|
17985
|
+
}
|
|
17986
|
+
/**
|
|
17987
|
+
* Retrieve a watched group
|
|
17988
|
+
* CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
|
|
17989
|
+
* POST here accepts an optional `watchers` array as a create-time convenience.
|
|
17990
|
+
* @returns WatchedGroupDetail
|
|
17991
|
+
* @throws ApiError
|
|
17992
|
+
*/
|
|
17993
|
+
static coreWatchedGroupsRetrieve({
|
|
17994
|
+
id,
|
|
17995
|
+
platformKey,
|
|
17996
|
+
watchedUserLimit,
|
|
17997
|
+
watcherLimit
|
|
17998
|
+
}) {
|
|
17999
|
+
return request(OpenAPI, {
|
|
18000
|
+
method: 'GET',
|
|
18001
|
+
url: '/api/core/watched-groups/{id}/',
|
|
18002
|
+
path: {
|
|
18003
|
+
'id': id
|
|
18004
|
+
},
|
|
18005
|
+
query: {
|
|
18006
|
+
'platform_key': platformKey,
|
|
18007
|
+
'watched_user_limit': watchedUserLimit,
|
|
18008
|
+
'watcher_limit': watcherLimit
|
|
18009
|
+
},
|
|
18010
|
+
errors: {
|
|
18011
|
+
403: `Permission denied`,
|
|
18012
|
+
404: `Not found`
|
|
18013
|
+
}
|
|
18014
|
+
});
|
|
18015
|
+
}
|
|
18016
|
+
/**
|
|
18017
|
+
* Update a watched group's name
|
|
18018
|
+
* CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
|
|
18019
|
+
* POST here accepts an optional `watchers` array as a create-time convenience.
|
|
18020
|
+
* @returns WatchedGroupDetail
|
|
18021
|
+
* @throws ApiError
|
|
18022
|
+
*/
|
|
18023
|
+
static coreWatchedGroupsUpdate({
|
|
18024
|
+
id,
|
|
18025
|
+
platformKey,
|
|
18026
|
+
watchedUserLimit,
|
|
18027
|
+
watcherLimit,
|
|
18028
|
+
requestBody
|
|
18029
|
+
}) {
|
|
18030
|
+
return request(OpenAPI, {
|
|
18031
|
+
method: 'PUT',
|
|
18032
|
+
url: '/api/core/watched-groups/{id}/',
|
|
18033
|
+
path: {
|
|
18034
|
+
'id': id
|
|
18035
|
+
},
|
|
18036
|
+
query: {
|
|
18037
|
+
'platform_key': platformKey,
|
|
18038
|
+
'watched_user_limit': watchedUserLimit,
|
|
18039
|
+
'watcher_limit': watcherLimit
|
|
18040
|
+
},
|
|
18041
|
+
body: requestBody,
|
|
18042
|
+
mediaType: 'application/json',
|
|
18043
|
+
errors: {
|
|
18044
|
+
400: `Invalid request`,
|
|
18045
|
+
403: `Permission denied`,
|
|
18046
|
+
404: `Not found`
|
|
18047
|
+
}
|
|
18048
|
+
});
|
|
18049
|
+
}
|
|
18050
|
+
/**
|
|
18051
|
+
* Partially update a watched group's name
|
|
18052
|
+
* CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
|
|
18053
|
+
* POST here accepts an optional `watchers` array as a create-time convenience.
|
|
18054
|
+
* @returns WatchedGroupDetail
|
|
18055
|
+
* @throws ApiError
|
|
18056
|
+
*/
|
|
18057
|
+
static coreWatchedGroupsPartialUpdate({
|
|
18058
|
+
id,
|
|
18059
|
+
platformKey,
|
|
18060
|
+
watchedUserLimit,
|
|
18061
|
+
watcherLimit,
|
|
18062
|
+
requestBody
|
|
18063
|
+
}) {
|
|
18064
|
+
return request(OpenAPI, {
|
|
18065
|
+
method: 'PATCH',
|
|
18066
|
+
url: '/api/core/watched-groups/{id}/',
|
|
18067
|
+
path: {
|
|
18068
|
+
'id': id
|
|
18069
|
+
},
|
|
18070
|
+
query: {
|
|
18071
|
+
'platform_key': platformKey,
|
|
18072
|
+
'watched_user_limit': watchedUserLimit,
|
|
18073
|
+
'watcher_limit': watcherLimit
|
|
18074
|
+
},
|
|
18075
|
+
body: requestBody,
|
|
18076
|
+
mediaType: 'application/json',
|
|
18077
|
+
errors: {
|
|
18078
|
+
400: `Invalid request`,
|
|
18079
|
+
403: `Permission denied`,
|
|
18080
|
+
404: `Not found`
|
|
18081
|
+
}
|
|
18082
|
+
});
|
|
18083
|
+
}
|
|
18084
|
+
/**
|
|
18085
|
+
* Delete a watched group
|
|
18086
|
+
* CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
|
|
18087
|
+
* POST here accepts an optional `watchers` array as a create-time convenience.
|
|
18088
|
+
* @returns void
|
|
18089
|
+
* @throws ApiError
|
|
18090
|
+
*/
|
|
18091
|
+
static coreWatchedGroupsDestroy({
|
|
18092
|
+
id,
|
|
18093
|
+
platformKey
|
|
18094
|
+
}) {
|
|
18095
|
+
return request(OpenAPI, {
|
|
18096
|
+
method: 'DELETE',
|
|
18097
|
+
url: '/api/core/watched-groups/{id}/',
|
|
18098
|
+
path: {
|
|
18099
|
+
'id': id
|
|
18100
|
+
},
|
|
18101
|
+
query: {
|
|
18102
|
+
'platform_key': platformKey
|
|
18103
|
+
},
|
|
18104
|
+
errors: {
|
|
18105
|
+
403: `Permission denied`,
|
|
18106
|
+
404: `Not found`
|
|
18107
|
+
}
|
|
18108
|
+
});
|
|
18109
|
+
}
|
|
18110
|
+
/**
|
|
18111
|
+
* List watched users in a watched group (paginated)
|
|
18112
|
+
* CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
|
|
18113
|
+
*
|
|
18114
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
|
|
18115
|
+
* No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
|
|
18116
|
+
* this feature. Add via POST, remove via DELETE.
|
|
18117
|
+
* @returns PaginatedWatchedUserReadList
|
|
18118
|
+
* @throws ApiError
|
|
18119
|
+
*/
|
|
18120
|
+
static coreWatchedGroupsWatchedUsersList({
|
|
18121
|
+
watchedGroupPk,
|
|
18122
|
+
limit,
|
|
18123
|
+
offset,
|
|
18124
|
+
platformKey
|
|
18125
|
+
}) {
|
|
18126
|
+
return request(OpenAPI, {
|
|
18127
|
+
method: 'GET',
|
|
18128
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watched-users/',
|
|
18129
|
+
path: {
|
|
18130
|
+
'watched_group_pk': watchedGroupPk
|
|
18131
|
+
},
|
|
18132
|
+
query: {
|
|
18133
|
+
'limit': limit,
|
|
18134
|
+
'offset': offset,
|
|
18135
|
+
'platform_key': platformKey
|
|
18136
|
+
},
|
|
18137
|
+
errors: {
|
|
18138
|
+
403: `Permission denied`,
|
|
18139
|
+
404: `WatchedGroup not found`
|
|
18140
|
+
}
|
|
18141
|
+
});
|
|
18142
|
+
}
|
|
18143
|
+
/**
|
|
18144
|
+
* Add a user to the watched group
|
|
18145
|
+
* CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
|
|
18146
|
+
*
|
|
18147
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
|
|
18148
|
+
* No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
|
|
18149
|
+
* this feature. Add via POST, remove via DELETE.
|
|
18150
|
+
* @returns WatchedUserRead
|
|
18151
|
+
* @throws ApiError
|
|
18152
|
+
*/
|
|
18153
|
+
static coreWatchedGroupsWatchedUsersCreate({
|
|
18154
|
+
watchedGroupPk,
|
|
18155
|
+
requestBody,
|
|
18156
|
+
platformKey
|
|
18157
|
+
}) {
|
|
18158
|
+
return request(OpenAPI, {
|
|
18159
|
+
method: 'POST',
|
|
18160
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watched-users/',
|
|
18161
|
+
path: {
|
|
18162
|
+
'watched_group_pk': watchedGroupPk
|
|
18163
|
+
},
|
|
18164
|
+
query: {
|
|
18165
|
+
'platform_key': platformKey
|
|
18166
|
+
},
|
|
18167
|
+
body: requestBody,
|
|
18168
|
+
mediaType: 'application/json',
|
|
18169
|
+
errors: {
|
|
18170
|
+
400: `Invalid payload`,
|
|
18171
|
+
403: `Permission denied`,
|
|
18172
|
+
404: `WatchedGroup not found`
|
|
18173
|
+
}
|
|
18174
|
+
});
|
|
18175
|
+
}
|
|
18176
|
+
/**
|
|
18177
|
+
* Retrieve a single watched-user link
|
|
18178
|
+
* CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
|
|
18179
|
+
*
|
|
18180
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
|
|
18181
|
+
* No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
|
|
18182
|
+
* this feature. Add via POST, remove via DELETE.
|
|
18183
|
+
* @returns WatchedUserRead
|
|
18184
|
+
* @throws ApiError
|
|
18185
|
+
*/
|
|
18186
|
+
static coreWatchedGroupsWatchedUsersRetrieve({
|
|
18187
|
+
id,
|
|
18188
|
+
watchedGroupPk,
|
|
18189
|
+
platformKey
|
|
18190
|
+
}) {
|
|
18191
|
+
return request(OpenAPI, {
|
|
18192
|
+
method: 'GET',
|
|
18193
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watched-users/{id}/',
|
|
18194
|
+
path: {
|
|
18195
|
+
'id': id,
|
|
18196
|
+
'watched_group_pk': watchedGroupPk
|
|
18197
|
+
},
|
|
18198
|
+
query: {
|
|
18199
|
+
'platform_key': platformKey
|
|
18200
|
+
},
|
|
18201
|
+
errors: {
|
|
18202
|
+
403: `Permission denied`,
|
|
18203
|
+
404: `Not found`
|
|
18204
|
+
}
|
|
18205
|
+
});
|
|
18206
|
+
}
|
|
18207
|
+
/**
|
|
18208
|
+
* Remove a user from the watched group
|
|
18209
|
+
* CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
|
|
18210
|
+
*
|
|
18211
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
|
|
18212
|
+
* No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
|
|
18213
|
+
* this feature. Add via POST, remove via DELETE.
|
|
18214
|
+
* @returns void
|
|
18215
|
+
* @throws ApiError
|
|
18216
|
+
*/
|
|
18217
|
+
static coreWatchedGroupsWatchedUsersDestroy({
|
|
18218
|
+
id,
|
|
18219
|
+
watchedGroupPk,
|
|
18220
|
+
platformKey
|
|
18221
|
+
}) {
|
|
18222
|
+
return request(OpenAPI, {
|
|
18223
|
+
method: 'DELETE',
|
|
18224
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watched-users/{id}/',
|
|
18225
|
+
path: {
|
|
18226
|
+
'id': id,
|
|
18227
|
+
'watched_group_pk': watchedGroupPk
|
|
18228
|
+
},
|
|
18229
|
+
query: {
|
|
18230
|
+
'platform_key': platformKey
|
|
18231
|
+
},
|
|
18232
|
+
errors: {
|
|
18233
|
+
403: `Permission denied`,
|
|
18234
|
+
404: `Not found`
|
|
18235
|
+
}
|
|
18236
|
+
});
|
|
18237
|
+
}
|
|
18238
|
+
/**
|
|
18239
|
+
* List watchers of a watched group (paginated)
|
|
18240
|
+
* CRUD for watchers nested under a WatchedGroup.
|
|
18241
|
+
*
|
|
18242
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
|
|
18243
|
+
* `is_owner` here covers two cases that both deserve owner-level perms on a
|
|
18244
|
+
* watcher row:
|
|
18245
|
+
* - the watcher themselves (WATCHER_OWNER well-known role)
|
|
18246
|
+
* - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
|
|
18247
|
+
* `Ibl.Core/Watchers*`)
|
|
18248
|
+
* @returns PaginatedWatcherReadList
|
|
18249
|
+
* @throws ApiError
|
|
18250
|
+
*/
|
|
18251
|
+
static coreWatchedGroupsWatchersList({
|
|
18252
|
+
watchedGroupPk,
|
|
18253
|
+
limit,
|
|
18254
|
+
offset,
|
|
18255
|
+
platformKey
|
|
18256
|
+
}) {
|
|
18257
|
+
return request(OpenAPI, {
|
|
18258
|
+
method: 'GET',
|
|
18259
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watchers/',
|
|
18260
|
+
path: {
|
|
18261
|
+
'watched_group_pk': watchedGroupPk
|
|
18262
|
+
},
|
|
18263
|
+
query: {
|
|
18264
|
+
'limit': limit,
|
|
18265
|
+
'offset': offset,
|
|
18266
|
+
'platform_key': platformKey
|
|
18267
|
+
},
|
|
18268
|
+
errors: {
|
|
18269
|
+
403: `Permission denied`,
|
|
18270
|
+
404: `WatchedGroup not found`
|
|
18271
|
+
}
|
|
18272
|
+
});
|
|
18273
|
+
}
|
|
18274
|
+
/**
|
|
18275
|
+
* Add a watcher to a watched group
|
|
18276
|
+
* CRUD for watchers nested under a WatchedGroup.
|
|
18277
|
+
*
|
|
18278
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
|
|
18279
|
+
* `is_owner` here covers two cases that both deserve owner-level perms on a
|
|
18280
|
+
* watcher row:
|
|
18281
|
+
* - the watcher themselves (WATCHER_OWNER well-known role)
|
|
18282
|
+
* - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
|
|
18283
|
+
* `Ibl.Core/Watchers*`)
|
|
18284
|
+
* @returns WatcherRead
|
|
18285
|
+
* @throws ApiError
|
|
18286
|
+
*/
|
|
18287
|
+
static coreWatchedGroupsWatchersCreate({
|
|
18288
|
+
watchedGroupPk,
|
|
18289
|
+
requestBody,
|
|
18290
|
+
platformKey
|
|
18291
|
+
}) {
|
|
18292
|
+
return request(OpenAPI, {
|
|
18293
|
+
method: 'POST',
|
|
18294
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watchers/',
|
|
18295
|
+
path: {
|
|
18296
|
+
'watched_group_pk': watchedGroupPk
|
|
18297
|
+
},
|
|
18298
|
+
query: {
|
|
18299
|
+
'platform_key': platformKey
|
|
18300
|
+
},
|
|
18301
|
+
body: requestBody,
|
|
18302
|
+
mediaType: 'application/json',
|
|
18303
|
+
errors: {
|
|
18304
|
+
400: `Invalid payload`,
|
|
18305
|
+
403: `Permission denied`,
|
|
18306
|
+
404: `WatchedGroup not found`
|
|
18307
|
+
}
|
|
18308
|
+
});
|
|
18309
|
+
}
|
|
18310
|
+
/**
|
|
18311
|
+
* Retrieve a single watcher
|
|
18312
|
+
* CRUD for watchers nested under a WatchedGroup.
|
|
18313
|
+
*
|
|
18314
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
|
|
18315
|
+
* `is_owner` here covers two cases that both deserve owner-level perms on a
|
|
18316
|
+
* watcher row:
|
|
18317
|
+
* - the watcher themselves (WATCHER_OWNER well-known role)
|
|
18318
|
+
* - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
|
|
18319
|
+
* `Ibl.Core/Watchers*`)
|
|
18320
|
+
* @returns WatcherRead
|
|
18321
|
+
* @throws ApiError
|
|
18322
|
+
*/
|
|
18323
|
+
static coreWatchedGroupsWatchersRetrieve({
|
|
18324
|
+
id,
|
|
18325
|
+
watchedGroupPk,
|
|
18326
|
+
platformKey
|
|
18327
|
+
}) {
|
|
18328
|
+
return request(OpenAPI, {
|
|
18329
|
+
method: 'GET',
|
|
18330
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watchers/{id}/',
|
|
18331
|
+
path: {
|
|
18332
|
+
'id': id,
|
|
18333
|
+
'watched_group_pk': watchedGroupPk
|
|
18334
|
+
},
|
|
18335
|
+
query: {
|
|
18336
|
+
'platform_key': platformKey
|
|
18337
|
+
},
|
|
18338
|
+
errors: {
|
|
18339
|
+
403: `Permission denied`,
|
|
18340
|
+
404: `Not found`
|
|
18341
|
+
}
|
|
18342
|
+
});
|
|
18343
|
+
}
|
|
18344
|
+
/**
|
|
18345
|
+
* Replace a watcher's events
|
|
18346
|
+
* CRUD for watchers nested under a WatchedGroup.
|
|
18347
|
+
*
|
|
18348
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
|
|
18349
|
+
* `is_owner` here covers two cases that both deserve owner-level perms on a
|
|
18350
|
+
* watcher row:
|
|
18351
|
+
* - the watcher themselves (WATCHER_OWNER well-known role)
|
|
18352
|
+
* - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
|
|
18353
|
+
* `Ibl.Core/Watchers*`)
|
|
18354
|
+
* @returns WatcherRead
|
|
18355
|
+
* @throws ApiError
|
|
18356
|
+
*/
|
|
18357
|
+
static coreWatchedGroupsWatchersUpdate({
|
|
18358
|
+
id,
|
|
18359
|
+
watchedGroupPk,
|
|
18360
|
+
requestBody,
|
|
18361
|
+
platformKey
|
|
18362
|
+
}) {
|
|
18363
|
+
return request(OpenAPI, {
|
|
18364
|
+
method: 'PUT',
|
|
18365
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watchers/{id}/',
|
|
18366
|
+
path: {
|
|
18367
|
+
'id': id,
|
|
18368
|
+
'watched_group_pk': watchedGroupPk
|
|
18369
|
+
},
|
|
18370
|
+
query: {
|
|
18371
|
+
'platform_key': platformKey
|
|
18372
|
+
},
|
|
18373
|
+
body: requestBody,
|
|
18374
|
+
mediaType: 'application/json',
|
|
18375
|
+
errors: {
|
|
18376
|
+
400: `Invalid payload`,
|
|
18377
|
+
403: `Permission denied`,
|
|
18378
|
+
404: `Not found`
|
|
18379
|
+
}
|
|
18380
|
+
});
|
|
18381
|
+
}
|
|
18382
|
+
/**
|
|
18383
|
+
* Update a watcher's events
|
|
18384
|
+
* CRUD for watchers nested under a WatchedGroup.
|
|
18385
|
+
*
|
|
18386
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
|
|
18387
|
+
* `is_owner` here covers two cases that both deserve owner-level perms on a
|
|
18388
|
+
* watcher row:
|
|
18389
|
+
* - the watcher themselves (WATCHER_OWNER well-known role)
|
|
18390
|
+
* - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
|
|
18391
|
+
* `Ibl.Core/Watchers*`)
|
|
18392
|
+
* @returns WatcherRead
|
|
18393
|
+
* @throws ApiError
|
|
18394
|
+
*/
|
|
18395
|
+
static coreWatchedGroupsWatchersPartialUpdate({
|
|
18396
|
+
id,
|
|
18397
|
+
watchedGroupPk,
|
|
18398
|
+
platformKey,
|
|
18399
|
+
requestBody
|
|
18400
|
+
}) {
|
|
18401
|
+
return request(OpenAPI, {
|
|
18402
|
+
method: 'PATCH',
|
|
18403
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watchers/{id}/',
|
|
18404
|
+
path: {
|
|
18405
|
+
'id': id,
|
|
18406
|
+
'watched_group_pk': watchedGroupPk
|
|
18407
|
+
},
|
|
18408
|
+
query: {
|
|
18409
|
+
'platform_key': platformKey
|
|
18410
|
+
},
|
|
18411
|
+
body: requestBody,
|
|
18412
|
+
mediaType: 'application/json',
|
|
18413
|
+
errors: {
|
|
18414
|
+
400: `Invalid payload`,
|
|
18415
|
+
403: `Permission denied`,
|
|
18416
|
+
404: `Not found`
|
|
18417
|
+
}
|
|
18418
|
+
});
|
|
18419
|
+
}
|
|
18420
|
+
/**
|
|
18421
|
+
* Remove (or unsubscribe) a watcher from a watched group
|
|
18422
|
+
* CRUD for watchers nested under a WatchedGroup.
|
|
18423
|
+
*
|
|
18424
|
+
* Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
|
|
18425
|
+
* `is_owner` here covers two cases that both deserve owner-level perms on a
|
|
18426
|
+
* watcher row:
|
|
18427
|
+
* - the watcher themselves (WATCHER_OWNER well-known role)
|
|
18428
|
+
* - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
|
|
18429
|
+
* `Ibl.Core/Watchers*`)
|
|
18430
|
+
* @returns void
|
|
18431
|
+
* @throws ApiError
|
|
18432
|
+
*/
|
|
18433
|
+
static coreWatchedGroupsWatchersDestroy({
|
|
18434
|
+
id,
|
|
18435
|
+
watchedGroupPk,
|
|
18436
|
+
platformKey
|
|
18437
|
+
}) {
|
|
18438
|
+
return request(OpenAPI, {
|
|
18439
|
+
method: 'DELETE',
|
|
18440
|
+
url: '/api/core/watched-groups/{watched_group_pk}/watchers/{id}/',
|
|
18441
|
+
path: {
|
|
18442
|
+
'id': id,
|
|
18443
|
+
'watched_group_pk': watchedGroupPk
|
|
18444
|
+
},
|
|
18445
|
+
query: {
|
|
18446
|
+
'platform_key': platformKey
|
|
18447
|
+
},
|
|
18448
|
+
errors: {
|
|
18449
|
+
403: `Permission denied`,
|
|
18450
|
+
404: `Not found`
|
|
18451
|
+
}
|
|
18452
|
+
});
|
|
18453
|
+
}
|
|
17891
18454
|
/**
|
|
17892
18455
|
* Get a list of departments with metrics and filtering options.
|
|
17893
18456
|
*
|
|
@@ -23612,5 +24175,5 @@ class TransactionsService {
|
|
|
23612
24175
|
}
|
|
23613
24176
|
}
|
|
23614
24177
|
|
|
23615
|
-
export { AcceptanceEnum, AccessCheckService, AccountService, AiAnalyticsService, AnalyticsService, ApiError, AutoRechargeService, AutoRechargeTriggerResponseStatusEnum, BillingService, BlankEnum, BusinessTypeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, CoreService, CoursesProgressFrequencyEnum, CredentialsService, CreditTransactionHistoryStatusEnum, CreditsService, CustomDomainsService, DisabilityStatusEnum, EthnicityEnum, FeaturesService, FieldTypeEnum, FlowTypeEnum, GenderEnum, GooglePayAccountResponseStatusEnum, GradePostedNotifyModeEnum, GrandfatheringStrategyEnum, HumanSupportRecipientModeEnum, InstitutionTypeEnum, IntervalEnum, ItemTypeEnum, ItemsService, MediaService, MediaTypeEnum, ModeEnum, NotificationFrequencyEnum, NotificationSourceTypeEnum, NotificationsService, OpenAPI, PeriodEnum, PeriodicFrequencyEnum, PeriodicLearnerScopeEnum, PlatformListStatusEnum, PlatformsService, PricesService, ProgramTypeEnum, RecommendationsService, ReportsService, ScimService, SearchService, SkillsService, StateEnum, Status0e3Enum, Status3daEnum, TimezoneNameEnum, TransactionTypeEnum, TransactionsService, TypeD36Enum };
|
|
24178
|
+
export { AcceptanceEnum, AccessCheckService, AccountService, AiAnalyticsService, AnalyticsService, ApiError, AutoRechargeService, AutoRechargeTriggerResponseStatusEnum, BillingService, BlankEnum, BusinessTypeEnum, CancelError, CancelablePromise, CareerService, CatalogService, CeleryHeartbeatFailStatusEnum, CeleryHeartbeatStatusEnum, CommerceService, CoreService, CoursesProgressFrequencyEnum, CredentialsService, CreditTransactionHistoryStatusEnum, CreditsService, CustomDomainsService, DisabilityStatusEnum, EthnicityEnum, EventsEnum, FeaturesService, FieldTypeEnum, FlowTypeEnum, GenderEnum, GooglePayAccountResponseStatusEnum, GradePostedNotifyModeEnum, GrandfatheringStrategyEnum, HumanSupportRecipientModeEnum, InstitutionTypeEnum, IntervalEnum, ItemTypeEnum, ItemsService, MediaService, MediaTypeEnum, ModeEnum, NotificationFrequencyEnum, NotificationSourceTypeEnum, NotificationsService, OpenAPI, PeriodEnum, PeriodicFrequencyEnum, PeriodicLearnerScopeEnum, PlatformListStatusEnum, PlatformsService, PricesService, ProgramTypeEnum, RecommendationsService, ReportsService, ScimService, SearchService, SkillsService, StateEnum, Status0e3Enum, Status3daEnum, TimezoneNameEnum, TransactionTypeEnum, TransactionsService, TypeD36Enum };
|
|
23616
24179
|
//# sourceMappingURL=index.esm.js.map
|