@easyedu/js-lsm-api 1.136.0 → 1.138.0

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 (47) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +7 -3
  3. package/dist/apis/CourseApi.d.ts +21 -0
  4. package/dist/apis/CourseApi.js +55 -0
  5. package/dist/apis/DispatchApi.d.ts +21 -2
  6. package/dist/apis/DispatchApi.js +45 -2
  7. package/dist/apis/RichTextApi.d.ts +3 -0
  8. package/dist/apis/RichTextApi.js +5 -0
  9. package/dist/apis/SystemApi.d.ts +17 -0
  10. package/dist/apis/SystemApi.js +45 -0
  11. package/dist/esm/apis/CourseApi.d.ts +21 -0
  12. package/dist/esm/apis/CourseApi.js +55 -0
  13. package/dist/esm/apis/DispatchApi.d.ts +21 -2
  14. package/dist/esm/apis/DispatchApi.js +45 -2
  15. package/dist/esm/apis/RichTextApi.d.ts +3 -0
  16. package/dist/esm/apis/RichTextApi.js +5 -0
  17. package/dist/esm/apis/SystemApi.d.ts +17 -0
  18. package/dist/esm/apis/SystemApi.js +45 -0
  19. package/dist/esm/models/GetPortal.d.ts +12 -0
  20. package/dist/esm/models/GetPortal.js +6 -0
  21. package/dist/esm/models/PostCourseExport.d.ts +1 -1
  22. package/dist/esm/models/PutSystemPortal.d.ts +32 -0
  23. package/dist/esm/models/PutSystemPortal.js +41 -0
  24. package/dist/esm/models/index.d.ts +1 -0
  25. package/dist/esm/models/index.js +1 -0
  26. package/dist/models/GetPortal.d.ts +12 -0
  27. package/dist/models/GetPortal.js +6 -0
  28. package/dist/models/PostCourseExport.d.ts +1 -1
  29. package/dist/models/PutSystemPortal.d.ts +32 -0
  30. package/dist/models/PutSystemPortal.js +48 -0
  31. package/dist/models/index.d.ts +1 -0
  32. package/dist/models/index.js +1 -0
  33. package/docs/CourseApi.md +79 -0
  34. package/docs/DispatchApi.md +77 -3
  35. package/docs/GetPortal.md +4 -0
  36. package/docs/PutSystemPortal.md +35 -0
  37. package/docs/RichTextApi.md +6 -1
  38. package/docs/SystemApi.md +71 -0
  39. package/package.json +1 -1
  40. package/src/apis/CourseApi.ts +85 -0
  41. package/src/apis/DispatchApi.ts +55 -2
  42. package/src/apis/RichTextApi.ts +7 -0
  43. package/src/apis/SystemApi.ts +65 -0
  44. package/src/models/GetPortal.ts +17 -0
  45. package/src/models/PostCourseExport.ts +1 -1
  46. package/src/models/PutSystemPortal.ts +65 -0
  47. package/src/models/index.ts +1 -0
@@ -110,6 +110,47 @@ export class DispatchApi extends runtime.BaseAPI {
110
110
  return yield response.value();
111
111
  });
112
112
  }
113
+ /**
114
+ * Creates request options for getDispatchQuizSessionResults without sending the request
115
+ */
116
+ getDispatchQuizSessionResultsRequestOpts(requestParameters) {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ if (requestParameters['sessionId'] == null) {
119
+ throw new runtime.RequiredError('sessionId', 'Required parameter "sessionId" was null or undefined when calling getDispatchQuizSessionResults().');
120
+ }
121
+ const queryParameters = {};
122
+ const headerParameters = {};
123
+ let urlPath = `/dispatch/runtime/quiz-sessions/{sessionId}/results`;
124
+ urlPath = urlPath.replace('{sessionId}', encodeURIComponent(String(requestParameters['sessionId'])));
125
+ return {
126
+ path: urlPath,
127
+ method: 'GET',
128
+ headers: headerParameters,
129
+ query: queryParameters,
130
+ };
131
+ });
132
+ }
133
+ /**
134
+ * Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
135
+ * Get the result of a registration-owned native quiz session
136
+ */
137
+ getDispatchQuizSessionResultsRaw(requestParameters, initOverrides) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ const requestOptions = yield this.getDispatchQuizSessionResultsRequestOpts(requestParameters);
140
+ const response = yield this.request(requestOptions, initOverrides);
141
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetLibraryQuizResultFromJSON(jsonValue));
142
+ });
143
+ }
144
+ /**
145
+ * Returns the learner\'s score and, where the quiz settings allow review, their per-question answers, correctness, and explanations. Results are not available while the attempt is still in progress.
146
+ * Get the result of a registration-owned native quiz session
147
+ */
148
+ getDispatchQuizSessionResults(requestParameters, initOverrides) {
149
+ return __awaiter(this, void 0, void 0, function* () {
150
+ const response = yield this.getDispatchQuizSessionResultsRaw(requestParameters, initOverrides);
151
+ return yield response.value();
152
+ });
153
+ }
113
154
  /**
114
155
  * Creates request options for getDispatchRollup without sending the request
115
156
  */
@@ -326,7 +367,8 @@ export class DispatchApi extends runtime.BaseAPI {
326
367
  });
327
368
  }
328
369
  /**
329
- * Rotate a valid hosted SCORM access token
370
+ * Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
371
+ * Extend a valid hosted SCORM access token
330
372
  */
331
373
  postDispatchTokenRefreshRaw(initOverrides) {
332
374
  return __awaiter(this, void 0, void 0, function* () {
@@ -336,7 +378,8 @@ export class DispatchApi extends runtime.BaseAPI {
336
378
  });
337
379
  }
338
380
  /**
339
- * Rotate a valid hosted SCORM access token
381
+ * Slides the presented token\'s expiry forward and returns the same token with its new `expires_at`. The token is extended in place rather than rotated so that a hosted item the learner already has open keeps working. A single launch can be kept alive for at most 24 hours; after that the learner relaunches the course from their LMS.
382
+ * Extend a valid hosted SCORM access token
340
383
  */
341
384
  postDispatchTokenRefresh(initOverrides) {
342
385
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,6 +16,7 @@ import { type PostRichTextAssetUpload } from '../models/PostRichTextAssetUpload'
16
16
  import { type RichTextAsset } from '../models/RichTextAsset';
17
17
  export interface GetRichTextAssetRequest {
18
18
  assetId: string;
19
+ token?: string;
19
20
  }
20
21
  export interface PostRichTextAssetCompleteRequest {
21
22
  assetId: string;
@@ -37,10 +38,12 @@ export declare class RichTextApi extends runtime.BaseAPI {
37
38
  */
38
39
  getRichTextAssetRequestOpts(requestParameters: GetRichTextAssetRequest): Promise<runtime.RequestOpts>;
39
40
  /**
41
+ * Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
40
42
  * Redirect to a signed rich text asset URL
41
43
  */
42
44
  getRichTextAssetRaw(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
43
45
  /**
46
+ * Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
44
47
  * Redirect to a signed rich text asset URL
45
48
  */
46
49
  getRichTextAsset(requestParameters: GetRichTextAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -38,6 +38,9 @@ export class RichTextApi extends runtime.BaseAPI {
38
38
  throw new runtime.RequiredError('assetId', 'Required parameter "assetId" was null or undefined when calling getRichTextAsset().');
39
39
  }
40
40
  const queryParameters = {};
41
+ if (requestParameters['token'] != null) {
42
+ queryParameters['token'] = requestParameters['token'];
43
+ }
41
44
  const headerParameters = {};
42
45
  let urlPath = `/rich-text/assets/{assetId}`;
43
46
  urlPath = urlPath.replace('{assetId}', encodeURIComponent(String(requestParameters['assetId'])));
@@ -50,6 +53,7 @@ export class RichTextApi extends runtime.BaseAPI {
50
53
  });
51
54
  }
52
55
  /**
56
+ * Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
53
57
  * Redirect to a signed rich text asset URL
54
58
  */
55
59
  getRichTextAssetRaw(requestParameters, initOverrides) {
@@ -60,6 +64,7 @@ export class RichTextApi extends runtime.BaseAPI {
60
64
  });
61
65
  }
62
66
  /**
67
+ * Portal users need `content_library:read`. Hosted SCORM learners may instead present a dispatch token (the `X-Dispatch-Token` header or a `token` query parameter); they can load only assets referenced by the content their export contains.
63
68
  * Redirect to a signed rich text asset URL
64
69
  */
65
70
  getRichTextAsset(requestParameters, initOverrides) {
@@ -16,6 +16,7 @@ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
16
16
  import { type GetSystemBillingList } from '../models/GetSystemBillingList';
17
17
  import { type GetSystemMetrics } from '../models/GetSystemMetrics';
18
18
  import { type GetSystemPortalOverview } from '../models/GetSystemPortalOverview';
19
+ import { type PutSystemPortal } from '../models/PutSystemPortal';
19
20
  export interface GetSystemBillingRequest {
20
21
  page?: number;
21
22
  pageSize?: number;
@@ -34,6 +35,10 @@ export interface GetSystemSupportTicketsRequest {
34
35
  page?: number;
35
36
  pageSize?: number;
36
37
  }
38
+ export interface PutSystemPortalRequest {
39
+ portalId: string;
40
+ putSystemPortal: PutSystemPortal;
41
+ }
37
42
  /**
38
43
  *
39
44
  */
@@ -110,4 +115,16 @@ export declare class SystemApi extends runtime.BaseAPI {
110
115
  * List open support tickets across the platform
111
116
  */
112
117
  getSystemSupportTickets(requestParameters?: GetSystemSupportTicketsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetSupportTicketList>;
118
+ /**
119
+ * Creates request options for putSystemPortal without sending the request
120
+ */
121
+ putSystemPortalRequestOpts(requestParameters: PutSystemPortalRequest): Promise<runtime.RequestOpts>;
122
+ /**
123
+ * Update platform-managed portal settings
124
+ */
125
+ putSystemPortalRaw(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
126
+ /**
127
+ * Update platform-managed portal settings
128
+ */
129
+ putSystemPortal(requestParameters: PutSystemPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
113
130
  }
@@ -27,6 +27,7 @@ import { GetSupportTicketListFromJSON, } from '../models/GetSupportTicketList';
27
27
  import { GetSystemBillingListFromJSON, } from '../models/GetSystemBillingList';
28
28
  import { GetSystemMetricsFromJSON, } from '../models/GetSystemMetrics';
29
29
  import { GetSystemPortalOverviewFromJSON, } from '../models/GetSystemPortalOverview';
30
+ import { PutSystemPortalToJSON, } from '../models/PutSystemPortal';
30
31
  /**
31
32
  *
32
33
  */
@@ -267,4 +268,48 @@ export class SystemApi extends runtime.BaseAPI {
267
268
  return yield response.value();
268
269
  });
269
270
  }
271
+ /**
272
+ * Creates request options for putSystemPortal without sending the request
273
+ */
274
+ putSystemPortalRequestOpts(requestParameters) {
275
+ return __awaiter(this, void 0, void 0, function* () {
276
+ if (requestParameters['portalId'] == null) {
277
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putSystemPortal().');
278
+ }
279
+ if (requestParameters['putSystemPortal'] == null) {
280
+ throw new runtime.RequiredError('putSystemPortal', 'Required parameter "putSystemPortal" was null or undefined when calling putSystemPortal().');
281
+ }
282
+ const queryParameters = {};
283
+ const headerParameters = {};
284
+ headerParameters['Content-Type'] = 'application/json';
285
+ let urlPath = `/system/portals/{portalId}`;
286
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
287
+ return {
288
+ path: urlPath,
289
+ method: 'PUT',
290
+ headers: headerParameters,
291
+ query: queryParameters,
292
+ body: PutSystemPortalToJSON(requestParameters['putSystemPortal']),
293
+ };
294
+ });
295
+ }
296
+ /**
297
+ * Update platform-managed portal settings
298
+ */
299
+ putSystemPortalRaw(requestParameters, initOverrides) {
300
+ return __awaiter(this, void 0, void 0, function* () {
301
+ const requestOptions = yield this.putSystemPortalRequestOpts(requestParameters);
302
+ const response = yield this.request(requestOptions, initOverrides);
303
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
304
+ });
305
+ }
306
+ /**
307
+ * Update platform-managed portal settings
308
+ */
309
+ putSystemPortal(requestParameters, initOverrides) {
310
+ return __awaiter(this, void 0, void 0, function* () {
311
+ const response = yield this.putSystemPortalRaw(requestParameters, initOverrides);
312
+ return yield response.value();
313
+ });
314
+ }
270
315
  }
@@ -78,6 +78,18 @@ export interface GetPortal {
78
78
  * @memberof GetPortal
79
79
  */
80
80
  brandingTheme: PortalBrandThemeV1;
81
+ /**
82
+ * Whether the platform has verified this portal. Email templates can only be changed on verified portals.
83
+ * @type {boolean}
84
+ * @memberof GetPortal
85
+ */
86
+ verified: boolean;
87
+ /**
88
+ * When the portal was verified, as Unix seconds.
89
+ * @type {number}
90
+ * @memberof GetPortal
91
+ */
92
+ verifiedAt?: number | null;
81
93
  /**
82
94
  * The user's highest-privilege role base type for this portal
83
95
  * @type {GetPortalBaseTypeEnum}
@@ -38,6 +38,8 @@ export function instanceOfGetPortal(value) {
38
38
  return false;
39
39
  if (!('brandingTheme' in value) || value['brandingTheme'] === undefined)
40
40
  return false;
41
+ if (!('verified' in value) || value['verified'] === undefined)
42
+ return false;
41
43
  return true;
42
44
  }
43
45
  export function GetPortalFromJSON(json) {
@@ -58,6 +60,8 @@ export function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
58
60
  'headerBackgroundColor': json['header_background_color'],
59
61
  'headerTextColor': json['header_text_color'],
60
62
  'brandingTheme': PortalBrandThemeV1FromJSON(json['branding_theme']),
63
+ 'verified': json['verified'],
64
+ 'verifiedAt': json['verified_at'] == null ? undefined : json['verified_at'],
61
65
  'baseType': json['base_type'] == null ? undefined : json['base_type'],
62
66
  };
63
67
  }
@@ -79,6 +83,8 @@ export function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
79
83
  'header_background_color': value['headerBackgroundColor'],
80
84
  'header_text_color': value['headerTextColor'],
81
85
  'branding_theme': PortalBrandThemeV1ToJSON(value['brandingTheme']),
86
+ 'verified': value['verified'],
87
+ 'verified_at': value['verifiedAt'],
82
88
  'base_type': value['baseType'],
83
89
  };
84
90
  }
@@ -36,7 +36,7 @@ export interface PostCourseExport {
36
36
  */
37
37
  sectionIds: Array<string>;
38
38
  /**
39
- * Hosted course mode is an additive backend preview until its player is deployed.
39
+ * HOSTED_COURSE_V1 (the default) packages the whole course as one SCO that runs from this LMS, including native quizzes. LEGACY_MULTI_SCO packages one launcher SCO per resource and omits quizzes. Both keep the content hosted on this LMS; neither copies it into the ZIP.
40
40
  * @type {PostCourseExportDeliveryModeEnum}
41
41
  * @memberof PostCourseExport
42
42
  */
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Platform-managed portal settings. Omitted fields are left unchanged.
14
+ * @export
15
+ * @interface PutSystemPortal
16
+ */
17
+ export interface PutSystemPortal {
18
+ /**
19
+ * Whether the platform has verified this portal. Unverified portals cannot change their email templates.
20
+ * @type {boolean}
21
+ * @memberof PutSystemPortal
22
+ */
23
+ verified?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PutSystemPortal interface.
27
+ */
28
+ export declare function instanceOfPutSystemPortal(value: object): value is PutSystemPortal;
29
+ export declare function PutSystemPortalFromJSON(json: any): PutSystemPortal;
30
+ export declare function PutSystemPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutSystemPortal;
31
+ export declare function PutSystemPortalToJSON(json: any): PutSystemPortal;
32
+ export declare function PutSystemPortalToJSONTyped(value?: PutSystemPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,41 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Check if a given object implements the PutSystemPortal interface.
16
+ */
17
+ export function instanceOfPutSystemPortal(value) {
18
+ return true;
19
+ }
20
+ export function PutSystemPortalFromJSON(json) {
21
+ return PutSystemPortalFromJSONTyped(json, false);
22
+ }
23
+ export function PutSystemPortalFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'verified': json['verified'] == null ? undefined : json['verified'],
29
+ };
30
+ }
31
+ export function PutSystemPortalToJSON(json) {
32
+ return PutSystemPortalToJSONTyped(json, false);
33
+ }
34
+ export function PutSystemPortalToJSONTyped(value, ignoreDiscriminator = false) {
35
+ if (value == null) {
36
+ return value;
37
+ }
38
+ return {
39
+ 'verified': value['verified'],
40
+ };
41
+ }
@@ -350,6 +350,7 @@ export * from './PutResourceVersion';
350
350
  export * from './PutRole';
351
351
  export * from './PutRolePermissions';
352
352
  export * from './PutSupportTicket';
353
+ export * from './PutSystemPortal';
353
354
  export * from './PutUser';
354
355
  export * from './PutZapierSetup';
355
356
  export * from './QuestionImportCommitResult';
@@ -352,6 +352,7 @@ export * from './PutResourceVersion';
352
352
  export * from './PutRole';
353
353
  export * from './PutRolePermissions';
354
354
  export * from './PutSupportTicket';
355
+ export * from './PutSystemPortal';
355
356
  export * from './PutUser';
356
357
  export * from './PutZapierSetup';
357
358
  export * from './QuestionImportCommitResult';
@@ -78,6 +78,18 @@ export interface GetPortal {
78
78
  * @memberof GetPortal
79
79
  */
80
80
  brandingTheme: PortalBrandThemeV1;
81
+ /**
82
+ * Whether the platform has verified this portal. Email templates can only be changed on verified portals.
83
+ * @type {boolean}
84
+ * @memberof GetPortal
85
+ */
86
+ verified: boolean;
87
+ /**
88
+ * When the portal was verified, as Unix seconds.
89
+ * @type {number}
90
+ * @memberof GetPortal
91
+ */
92
+ verifiedAt?: number | null;
81
93
  /**
82
94
  * The user's highest-privilege role base type for this portal
83
95
  * @type {GetPortalBaseTypeEnum}
@@ -46,6 +46,8 @@ function instanceOfGetPortal(value) {
46
46
  return false;
47
47
  if (!('brandingTheme' in value) || value['brandingTheme'] === undefined)
48
48
  return false;
49
+ if (!('verified' in value) || value['verified'] === undefined)
50
+ return false;
49
51
  return true;
50
52
  }
51
53
  function GetPortalFromJSON(json) {
@@ -66,6 +68,8 @@ function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
66
68
  'headerBackgroundColor': json['header_background_color'],
67
69
  'headerTextColor': json['header_text_color'],
68
70
  'brandingTheme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1FromJSON)(json['branding_theme']),
71
+ 'verified': json['verified'],
72
+ 'verifiedAt': json['verified_at'] == null ? undefined : json['verified_at'],
69
73
  'baseType': json['base_type'] == null ? undefined : json['base_type'],
70
74
  };
71
75
  }
@@ -87,6 +91,8 @@ function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
87
91
  'header_background_color': value['headerBackgroundColor'],
88
92
  'header_text_color': value['headerTextColor'],
89
93
  'branding_theme': (0, PortalBrandThemeV1_1.PortalBrandThemeV1ToJSON)(value['brandingTheme']),
94
+ 'verified': value['verified'],
95
+ 'verified_at': value['verifiedAt'],
90
96
  'base_type': value['baseType'],
91
97
  };
92
98
  }
@@ -36,7 +36,7 @@ export interface PostCourseExport {
36
36
  */
37
37
  sectionIds: Array<string>;
38
38
  /**
39
- * Hosted course mode is an additive backend preview until its player is deployed.
39
+ * HOSTED_COURSE_V1 (the default) packages the whole course as one SCO that runs from this LMS, including native quizzes. LEGACY_MULTI_SCO packages one launcher SCO per resource and omits quizzes. Both keep the content hosted on this LMS; neither copies it into the ZIP.
40
40
  * @type {PostCourseExportDeliveryModeEnum}
41
41
  * @memberof PostCourseExport
42
42
  */
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Platform-managed portal settings. Omitted fields are left unchanged.
14
+ * @export
15
+ * @interface PutSystemPortal
16
+ */
17
+ export interface PutSystemPortal {
18
+ /**
19
+ * Whether the platform has verified this portal. Unverified portals cannot change their email templates.
20
+ * @type {boolean}
21
+ * @memberof PutSystemPortal
22
+ */
23
+ verified?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PutSystemPortal interface.
27
+ */
28
+ export declare function instanceOfPutSystemPortal(value: object): value is PutSystemPortal;
29
+ export declare function PutSystemPortalFromJSON(json: any): PutSystemPortal;
30
+ export declare function PutSystemPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutSystemPortal;
31
+ export declare function PutSystemPortalToJSON(json: any): PutSystemPortal;
32
+ export declare function PutSystemPortalToJSONTyped(value?: PutSystemPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPutSystemPortal = instanceOfPutSystemPortal;
17
+ exports.PutSystemPortalFromJSON = PutSystemPortalFromJSON;
18
+ exports.PutSystemPortalFromJSONTyped = PutSystemPortalFromJSONTyped;
19
+ exports.PutSystemPortalToJSON = PutSystemPortalToJSON;
20
+ exports.PutSystemPortalToJSONTyped = PutSystemPortalToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PutSystemPortal interface.
23
+ */
24
+ function instanceOfPutSystemPortal(value) {
25
+ return true;
26
+ }
27
+ function PutSystemPortalFromJSON(json) {
28
+ return PutSystemPortalFromJSONTyped(json, false);
29
+ }
30
+ function PutSystemPortalFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'verified': json['verified'] == null ? undefined : json['verified'],
36
+ };
37
+ }
38
+ function PutSystemPortalToJSON(json) {
39
+ return PutSystemPortalToJSONTyped(json, false);
40
+ }
41
+ function PutSystemPortalToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'verified': value['verified'],
47
+ };
48
+ }
@@ -350,6 +350,7 @@ export * from './PutResourceVersion';
350
350
  export * from './PutRole';
351
351
  export * from './PutRolePermissions';
352
352
  export * from './PutSupportTicket';
353
+ export * from './PutSystemPortal';
353
354
  export * from './PutUser';
354
355
  export * from './PutZapierSetup';
355
356
  export * from './QuestionImportCommitResult';
@@ -368,6 +368,7 @@ __exportStar(require("./PutResourceVersion"), exports);
368
368
  __exportStar(require("./PutRole"), exports);
369
369
  __exportStar(require("./PutRolePermissions"), exports);
370
370
  __exportStar(require("./PutSupportTicket"), exports);
371
+ __exportStar(require("./PutSystemPortal"), exports);
371
372
  __exportStar(require("./PutUser"), exports);
372
373
  __exportStar(require("./PutZapierSetup"), exports);
373
374
  __exportStar(require("./QuestionImportCommitResult"), exports);
package/docs/CourseApi.md CHANGED
@@ -47,6 +47,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
47
47
  | [**putCourseVersionOutlineEntryMove**](CourseApi.md#putcourseversionoutlineentrymove) | **PUT** /courses/{courseId}/draft/outline/move | Move a section or item to a new parent and sibling position |
48
48
  | [**putCourseVersionSection**](CourseApi.md#putcourseversionsection) | **PUT** /courses/{courseId}/draft/sections/{sectionId} | Update a draft section |
49
49
  | [**putHostedScormExportAccess**](CourseApi.md#puthostedscormexportaccess) | **PUT** /courses/{courseId}/exports/{exportId}/access | Update mutable access controls for a hosted SCORM export |
50
+ | [**putHostedScormExportRegistrationStatus**](CourseApi.md#puthostedscormexportregistrationstatus) | **PUT** /courses/{courseId}/exports/{exportId}/registrations/{registrationId}/status | Revoke or restore one learner\&#39;s access to a hosted SCORM export |
50
51
  | [**putHostedScormExportStatus**](CourseApi.md#puthostedscormexportstatus) | **PUT** /courses/{courseId}/exports/{exportId}/status | Revoke or reactivate a hosted SCORM export |
51
52
 
52
53
 
@@ -3120,6 +3121,84 @@ No authorization required
3120
3121
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3121
3122
 
3122
3123
 
3124
+ ## putHostedScormExportRegistrationStatus
3125
+
3126
+ > GetHostedScormRegistration putHostedScormExportRegistrationStatus(courseId, exportId, registrationId, putHostedScormStatus)
3127
+
3128
+ Revoke or restore one learner\&#39;s access to a hosted SCORM export
3129
+
3130
+ Revoking a registration blocks that learner\&#39;s future launches and immediately invalidates their open sessions, without affecting other learners on the same export. Restoring it allows new launches from the client LMS; sessions that were open when access was revoked stay closed.
3131
+
3132
+ ### Example
3133
+
3134
+ ```ts
3135
+ import {
3136
+ Configuration,
3137
+ CourseApi,
3138
+ } from '@easyedu/js-lsm-api';
3139
+ import type { PutHostedScormExportRegistrationStatusRequest } from '@easyedu/js-lsm-api';
3140
+
3141
+ async function example() {
3142
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
3143
+ const api = new CourseApi();
3144
+
3145
+ const body = {
3146
+ // string
3147
+ courseId: courseId_example,
3148
+ // string
3149
+ exportId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
3150
+ // string
3151
+ registrationId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
3152
+ // PutHostedScormStatus
3153
+ putHostedScormStatus: ...,
3154
+ } satisfies PutHostedScormExportRegistrationStatusRequest;
3155
+
3156
+ try {
3157
+ const data = await api.putHostedScormExportRegistrationStatus(body);
3158
+ console.log(data);
3159
+ } catch (error) {
3160
+ console.error(error);
3161
+ }
3162
+ }
3163
+
3164
+ // Run the test
3165
+ example().catch(console.error);
3166
+ ```
3167
+
3168
+ ### Parameters
3169
+
3170
+
3171
+ | Name | Type | Description | Notes |
3172
+ |------------- | ------------- | ------------- | -------------|
3173
+ | **courseId** | `string` | | [Defaults to `undefined`] |
3174
+ | **exportId** | `string` | | [Defaults to `undefined`] |
3175
+ | **registrationId** | `string` | | [Defaults to `undefined`] |
3176
+ | **putHostedScormStatus** | [PutHostedScormStatus](PutHostedScormStatus.md) | | |
3177
+
3178
+ ### Return type
3179
+
3180
+ [**GetHostedScormRegistration**](GetHostedScormRegistration.md)
3181
+
3182
+ ### Authorization
3183
+
3184
+ No authorization required
3185
+
3186
+ ### HTTP request headers
3187
+
3188
+ - **Content-Type**: `application/json`
3189
+ - **Accept**: `application/json`
3190
+
3191
+
3192
+ ### HTTP response details
3193
+ | Status code | Description | Response headers |
3194
+ |-------------|-------------|------------------|
3195
+ | **200** | Updated learner registration | - |
3196
+ | **404** | Export or learner registration not found | - |
3197
+ | **409** | Export is not a hosted course package | - |
3198
+
3199
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
3200
+
3201
+
3123
3202
  ## putHostedScormExportStatus
3124
3203
 
3125
3204
  > GetCourseExport putHostedScormExportStatus(courseId, exportId, putHostedScormStatus)