@easyedu/js-lsm-api 1.125.0 → 1.126.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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +5 -3
- package/dist/apis/CertificateTemplateApi.d.ts +10 -5
- package/dist/apis/CertificateTemplateApi.js +17 -12
- package/dist/apis/ContentLibraryApi.d.ts +4 -2
- package/dist/apis/ContentLibraryApi.js +5 -3
- package/dist/apis/CourseApi.d.ts +1 -0
- package/dist/apis/CourseApi.js +3 -0
- package/dist/esm/apis/CertificateTemplateApi.d.ts +10 -5
- package/dist/esm/apis/CertificateTemplateApi.js +17 -12
- package/dist/esm/apis/ContentLibraryApi.d.ts +4 -2
- package/dist/esm/apis/ContentLibraryApi.js +5 -3
- package/dist/esm/apis/CourseApi.d.ts +1 -0
- package/dist/esm/apis/CourseApi.js +3 -0
- package/dist/esm/models/CertificateTemplate.d.ts +7 -0
- package/dist/esm/models/CertificateTemplate.js +5 -0
- package/dist/esm/models/ContentLibraryTag.d.ts +12 -0
- package/dist/esm/models/ContentLibraryTag.js +8 -0
- package/dist/esm/models/ContentLibraryTagItem.d.ts +2 -0
- package/dist/esm/models/ContentLibraryTagItem.js +3 -1
- package/dist/esm/models/GetCourse.d.ts +7 -0
- package/dist/esm/models/GetCourse.js +5 -0
- package/dist/esm/models/PostCourse.d.ts +6 -0
- package/dist/esm/models/PostCourse.js +2 -0
- package/dist/esm/models/PostPortalCertificateTemplate.d.ts +57 -0
- package/dist/esm/models/PostPortalCertificateTemplate.js +52 -0
- package/dist/esm/models/PutCourse.d.ts +6 -0
- package/dist/esm/models/PutCourse.js +2 -0
- package/dist/esm/models/PutPortalCertificateTemplate.d.ts +50 -0
- package/dist/esm/models/PutPortalCertificateTemplate.js +47 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/CertificateTemplate.d.ts +7 -0
- package/dist/models/CertificateTemplate.js +5 -0
- package/dist/models/ContentLibraryTag.d.ts +12 -0
- package/dist/models/ContentLibraryTag.js +8 -0
- package/dist/models/ContentLibraryTagItem.d.ts +2 -0
- package/dist/models/ContentLibraryTagItem.js +3 -1
- package/dist/models/GetCourse.d.ts +7 -0
- package/dist/models/GetCourse.js +5 -0
- package/dist/models/PostCourse.d.ts +6 -0
- package/dist/models/PostCourse.js +2 -0
- package/dist/models/PostPortalCertificateTemplate.d.ts +57 -0
- package/dist/models/PostPortalCertificateTemplate.js +59 -0
- package/dist/models/PutCourse.d.ts +6 -0
- package/dist/models/PutCourse.js +2 -0
- package/dist/models/PutPortalCertificateTemplate.d.ts +50 -0
- package/dist/models/PutPortalCertificateTemplate.js +54 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/CertificateTemplate.md +2 -0
- package/docs/CertificateTemplateApi.md +19 -11
- package/docs/ContentLibraryApi.md +4 -4
- package/docs/ContentLibraryTag.md +4 -0
- package/docs/CourseApi.md +5 -2
- package/docs/GetCourse.md +2 -0
- package/docs/PostCourse.md +2 -0
- package/docs/PostPortalCertificateTemplate.md +42 -0
- package/docs/PutCourse.md +2 -0
- package/docs/PutPortalCertificateTemplate.md +40 -0
- package/package.json +1 -1
- package/src/apis/CertificateTemplateApi.ts +33 -15
- package/src/apis/ContentLibraryApi.ts +5 -3
- package/src/apis/CourseApi.ts +5 -0
- package/src/models/CertificateTemplate.ts +16 -0
- package/src/models/ContentLibraryTag.ts +18 -0
- package/src/models/ContentLibraryTagItem.ts +3 -1
- package/src/models/GetCourse.ts +17 -0
- package/src/models/PostCourse.ts +8 -0
- package/src/models/PostPortalCertificateTemplate.ts +106 -0
- package/src/models/PutCourse.ts +8 -0
- package/src/models/PutPortalCertificateTemplate.ts +89 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,59 @@
|
|
|
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.instanceOfPostPortalCertificateTemplate = instanceOfPostPortalCertificateTemplate;
|
|
17
|
+
exports.PostPortalCertificateTemplateFromJSON = PostPortalCertificateTemplateFromJSON;
|
|
18
|
+
exports.PostPortalCertificateTemplateFromJSONTyped = PostPortalCertificateTemplateFromJSONTyped;
|
|
19
|
+
exports.PostPortalCertificateTemplateToJSON = PostPortalCertificateTemplateToJSON;
|
|
20
|
+
exports.PostPortalCertificateTemplateToJSONTyped = PostPortalCertificateTemplateToJSONTyped;
|
|
21
|
+
const CertificateCanvasDocument_1 = require("./CertificateCanvasDocument");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the PostPortalCertificateTemplate interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfPostPortalCertificateTemplate(value) {
|
|
26
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function PostPortalCertificateTemplateFromJSON(json) {
|
|
31
|
+
return PostPortalCertificateTemplateFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function PostPortalCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
40
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
41
|
+
'designDocument': json['design_document'] == null ? undefined : (0, CertificateCanvasDocument_1.CertificateCanvasDocumentFromJSON)(json['design_document']),
|
|
42
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function PostPortalCertificateTemplateToJSON(json) {
|
|
46
|
+
return PostPortalCertificateTemplateToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function PostPortalCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'description': value['description'],
|
|
55
|
+
'is_default': value['isDefault'],
|
|
56
|
+
'design_document': (0, CertificateCanvasDocument_1.CertificateCanvasDocumentToJSON)(value['designDocument']),
|
|
57
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
58
|
+
};
|
|
59
|
+
}
|
package/dist/models/PutCourse.js
CHANGED
|
@@ -48,6 +48,7 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
49
49
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
50
50
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
51
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
54
|
function PutCourseToJSON(json) {
|
|
@@ -64,5 +65,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
64
65
|
'access_policy_type': value['accessPolicyType'],
|
|
65
66
|
'access_duration_days': value['accessDurationDays'],
|
|
66
67
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
68
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
67
69
|
};
|
|
68
70
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PutPortalCertificateTemplate
|
|
16
|
+
*/
|
|
17
|
+
export interface PutPortalCertificateTemplate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PutPortalCertificateTemplate
|
|
22
|
+
*/
|
|
23
|
+
name?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PutPortalCertificateTemplate
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof PutPortalCertificateTemplate
|
|
34
|
+
*/
|
|
35
|
+
isDefault?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {Set<string>}
|
|
39
|
+
* @memberof PutPortalCertificateTemplate
|
|
40
|
+
*/
|
|
41
|
+
tags?: Set<string>;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PutPortalCertificateTemplate interface.
|
|
45
|
+
*/
|
|
46
|
+
export declare function instanceOfPutPortalCertificateTemplate(value: object): value is PutPortalCertificateTemplate;
|
|
47
|
+
export declare function PutPortalCertificateTemplateFromJSON(json: any): PutPortalCertificateTemplate;
|
|
48
|
+
export declare function PutPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalCertificateTemplate;
|
|
49
|
+
export declare function PutPortalCertificateTemplateToJSON(json: any): PutPortalCertificateTemplate;
|
|
50
|
+
export declare function PutPortalCertificateTemplateToJSONTyped(value?: PutPortalCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfPutPortalCertificateTemplate = instanceOfPutPortalCertificateTemplate;
|
|
17
|
+
exports.PutPortalCertificateTemplateFromJSON = PutPortalCertificateTemplateFromJSON;
|
|
18
|
+
exports.PutPortalCertificateTemplateFromJSONTyped = PutPortalCertificateTemplateFromJSONTyped;
|
|
19
|
+
exports.PutPortalCertificateTemplateToJSON = PutPortalCertificateTemplateToJSON;
|
|
20
|
+
exports.PutPortalCertificateTemplateToJSONTyped = PutPortalCertificateTemplateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PutPortalCertificateTemplate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPutPortalCertificateTemplate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function PutPortalCertificateTemplateFromJSON(json) {
|
|
28
|
+
return PutPortalCertificateTemplateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function PutPortalCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
36
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
38
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function PutPortalCertificateTemplateToJSON(json) {
|
|
42
|
+
return PutPortalCertificateTemplateToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PutPortalCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value['name'],
|
|
50
|
+
'description': value['description'],
|
|
51
|
+
'is_default': value['isDefault'],
|
|
52
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -263,6 +263,7 @@ export * from './PostOfferCatalogResponse';
|
|
|
263
263
|
export * from './PostOfferCourse';
|
|
264
264
|
export * from './PostOfferCourseResponse';
|
|
265
265
|
export * from './PostPortal';
|
|
266
|
+
export * from './PostPortalCertificateTemplate';
|
|
266
267
|
export * from './PostPortalInvite';
|
|
267
268
|
export * from './PostQuestion';
|
|
268
269
|
export * from './PostQuestionAnswerChoicesInner';
|
|
@@ -322,6 +323,7 @@ export * from './PutLibraryQuizSessionGrade';
|
|
|
322
323
|
export * from './PutLibraryQuizSessionOverride';
|
|
323
324
|
export * from './PutLibraryQuizVersion';
|
|
324
325
|
export * from './PutPortalBranding';
|
|
326
|
+
export * from './PutPortalCertificateTemplate';
|
|
325
327
|
export * from './PutPortalSublicense';
|
|
326
328
|
export * from './PutPortalUserFieldValues';
|
|
327
329
|
export * from './PutQuestion';
|
package/dist/models/index.js
CHANGED
|
@@ -281,6 +281,7 @@ __exportStar(require("./PostOfferCatalogResponse"), exports);
|
|
|
281
281
|
__exportStar(require("./PostOfferCourse"), exports);
|
|
282
282
|
__exportStar(require("./PostOfferCourseResponse"), exports);
|
|
283
283
|
__exportStar(require("./PostPortal"), exports);
|
|
284
|
+
__exportStar(require("./PostPortalCertificateTemplate"), exports);
|
|
284
285
|
__exportStar(require("./PostPortalInvite"), exports);
|
|
285
286
|
__exportStar(require("./PostQuestion"), exports);
|
|
286
287
|
__exportStar(require("./PostQuestionAnswerChoicesInner"), exports);
|
|
@@ -340,6 +341,7 @@ __exportStar(require("./PutLibraryQuizSessionGrade"), exports);
|
|
|
340
341
|
__exportStar(require("./PutLibraryQuizSessionOverride"), exports);
|
|
341
342
|
__exportStar(require("./PutLibraryQuizVersion"), exports);
|
|
342
343
|
__exportStar(require("./PutPortalBranding"), exports);
|
|
344
|
+
__exportStar(require("./PutPortalCertificateTemplate"), exports);
|
|
343
345
|
__exportStar(require("./PutPortalSublicense"), exports);
|
|
344
346
|
__exportStar(require("./PutPortalUserFieldValues"), exports);
|
|
345
347
|
__exportStar(require("./PutQuestion"), exports);
|
|
@@ -14,6 +14,7 @@ Name | Type
|
|
|
14
14
|
`isInherited` | boolean
|
|
15
15
|
`effectiveSource` | string
|
|
16
16
|
`effectiveSourcePortalId` | string
|
|
17
|
+
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
17
18
|
`activeVersion` | [CertificateTemplateVersion](CertificateTemplateVersion.md)
|
|
18
19
|
`draftVersion` | [CertificateTemplateVersion](CertificateTemplateVersion.md)
|
|
19
20
|
`versions` | [Array<CertificateTemplateVersion>](CertificateTemplateVersion.md)
|
|
@@ -36,6 +37,7 @@ const example = {
|
|
|
36
37
|
"isInherited": null,
|
|
37
38
|
"effectiveSource": null,
|
|
38
39
|
"effectiveSourcePortalId": null,
|
|
40
|
+
"tags": null,
|
|
39
41
|
"activeVersion": null,
|
|
40
42
|
"draftVersion": null,
|
|
41
43
|
"versions": null,
|
|
@@ -309,7 +309,7 @@ No authorization required
|
|
|
309
309
|
|
|
310
310
|
## getCertificateTemplateList
|
|
311
311
|
|
|
312
|
-
> GetCertificateTemplateList getCertificateTemplateList()
|
|
312
|
+
> GetCertificateTemplateList getCertificateTemplateList(tagId)
|
|
313
313
|
|
|
314
314
|
List local and inherited certificate designs
|
|
315
315
|
|
|
@@ -326,8 +326,13 @@ async function example() {
|
|
|
326
326
|
console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
|
|
327
327
|
const api = new CertificateTemplateApi();
|
|
328
328
|
|
|
329
|
+
const body = {
|
|
330
|
+
// string | Return locally owned certificate designs assigned to this portal tag. (optional)
|
|
331
|
+
tagId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
332
|
+
} satisfies GetCertificateTemplateListRequest;
|
|
333
|
+
|
|
329
334
|
try {
|
|
330
|
-
const data = await api.getCertificateTemplateList();
|
|
335
|
+
const data = await api.getCertificateTemplateList(body);
|
|
331
336
|
console.log(data);
|
|
332
337
|
} catch (error) {
|
|
333
338
|
console.error(error);
|
|
@@ -340,7 +345,10 @@ example().catch(console.error);
|
|
|
340
345
|
|
|
341
346
|
### Parameters
|
|
342
347
|
|
|
343
|
-
|
|
348
|
+
|
|
349
|
+
| Name | Type | Description | Notes |
|
|
350
|
+
|------------- | ------------- | ------------- | -------------|
|
|
351
|
+
| **tagId** | `string` | Return locally owned certificate designs assigned to this portal tag. | [Optional] [Defaults to `undefined`] |
|
|
344
352
|
|
|
345
353
|
### Return type
|
|
346
354
|
|
|
@@ -885,7 +893,7 @@ No authorization required
|
|
|
885
893
|
|
|
886
894
|
## postCertificateTemplate
|
|
887
895
|
|
|
888
|
-
> CertificateTemplate postCertificateTemplate(
|
|
896
|
+
> CertificateTemplate postCertificateTemplate(postPortalCertificateTemplate)
|
|
889
897
|
|
|
890
898
|
Create a portal certificate design and initial draft
|
|
891
899
|
|
|
@@ -903,8 +911,8 @@ async function example() {
|
|
|
903
911
|
const api = new CertificateTemplateApi();
|
|
904
912
|
|
|
905
913
|
const body = {
|
|
906
|
-
//
|
|
907
|
-
|
|
914
|
+
// PostPortalCertificateTemplate
|
|
915
|
+
postPortalCertificateTemplate: ...,
|
|
908
916
|
} satisfies PostCertificateTemplateRequest;
|
|
909
917
|
|
|
910
918
|
try {
|
|
@@ -924,7 +932,7 @@ example().catch(console.error);
|
|
|
924
932
|
|
|
925
933
|
| Name | Type | Description | Notes |
|
|
926
934
|
|------------- | ------------- | ------------- | -------------|
|
|
927
|
-
| **
|
|
935
|
+
| **postPortalCertificateTemplate** | [PostPortalCertificateTemplate](PostPortalCertificateTemplate.md) | | |
|
|
928
936
|
|
|
929
937
|
### Return type
|
|
930
938
|
|
|
@@ -2151,7 +2159,7 @@ No authorization required
|
|
|
2151
2159
|
|
|
2152
2160
|
## putCertificateTemplate
|
|
2153
2161
|
|
|
2154
|
-
> CertificateTemplate putCertificateTemplate(templateId,
|
|
2162
|
+
> CertificateTemplate putCertificateTemplate(templateId, putPortalCertificateTemplate)
|
|
2155
2163
|
|
|
2156
2164
|
Update local certificate design metadata
|
|
2157
2165
|
|
|
@@ -2171,8 +2179,8 @@ async function example() {
|
|
|
2171
2179
|
const body = {
|
|
2172
2180
|
// string
|
|
2173
2181
|
templateId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
2174
|
-
//
|
|
2175
|
-
|
|
2182
|
+
// PutPortalCertificateTemplate
|
|
2183
|
+
putPortalCertificateTemplate: ...,
|
|
2176
2184
|
} satisfies PutCertificateTemplateRequest;
|
|
2177
2185
|
|
|
2178
2186
|
try {
|
|
@@ -2193,7 +2201,7 @@ example().catch(console.error);
|
|
|
2193
2201
|
| Name | Type | Description | Notes |
|
|
2194
2202
|
|------------- | ------------- | ------------- | -------------|
|
|
2195
2203
|
| **templateId** | `string` | | [Defaults to `undefined`] |
|
|
2196
|
-
| **
|
|
2204
|
+
| **putPortalCertificateTemplate** | [PutPortalCertificateTemplate](PutPortalCertificateTemplate.md) | | |
|
|
2197
2205
|
|
|
2198
2206
|
### Return type
|
|
2199
2207
|
|
|
@@ -8,7 +8,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
|
|
|
8
8
|
| [**deleteResourceVersion**](ContentLibraryApi.md#deleteresourceversion) | **DELETE** /content-library/resources/{resourceId}/versions/{versionId} | Discard an unreferenced draft resource version |
|
|
9
9
|
| [**getContentLibraryItemList**](ContentLibraryApi.md#getcontentlibraryitemlist) | **GET** /content-library/items | Search Content Library items |
|
|
10
10
|
| [**getContentLibraryTag**](ContentLibraryApi.md#getcontentlibrarytag) | **GET** /content-library/tags/{tagId} | Get a Content Library tag |
|
|
11
|
-
| [**getContentLibraryTagItemList**](ContentLibraryApi.md#getcontentlibrarytagitemlist) | **GET** /content-library/tags/{tagId}/items | List resources, quizzes, and
|
|
11
|
+
| [**getContentLibraryTagItemList**](ContentLibraryApi.md#getcontentlibrarytagitemlist) | **GET** /content-library/tags/{tagId}/items | List resources, quizzes, questions, courses, and certificate designs associated with a tag |
|
|
12
12
|
| [**getContentLibraryTagList**](ContentLibraryApi.md#getcontentlibrarytaglist) | **GET** /content-library/tags | List portal Content Library tags |
|
|
13
13
|
| [**getResource**](ContentLibraryApi.md#getresource) | **GET** /content-library/resources/{resourceId} | Get a resource and all versions |
|
|
14
14
|
| [**getResourceList**](ContentLibraryApi.md#getresourcelist) | **GET** /content-library/resources | List reusable resources |
|
|
@@ -318,7 +318,7 @@ No authorization required
|
|
|
318
318
|
|
|
319
319
|
> GetContentLibraryTagItemList getContentLibraryTagItemList(tagId, kind, search, includeArchived, page, pageSize)
|
|
320
320
|
|
|
321
|
-
List resources, quizzes, and
|
|
321
|
+
List resources, quizzes, questions, courses, and certificate designs associated with a tag
|
|
322
322
|
|
|
323
323
|
### Example
|
|
324
324
|
|
|
@@ -336,7 +336,7 @@ async function example() {
|
|
|
336
336
|
const body = {
|
|
337
337
|
// string
|
|
338
338
|
tagId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
339
|
-
// 'resource' | 'quiz' | 'question' (optional)
|
|
339
|
+
// 'resource' | 'quiz' | 'question' | 'course' | 'certificate_template' (optional)
|
|
340
340
|
kind: kind_example,
|
|
341
341
|
// string (optional)
|
|
342
342
|
search: search_example,
|
|
@@ -366,7 +366,7 @@ example().catch(console.error);
|
|
|
366
366
|
| Name | Type | Description | Notes |
|
|
367
367
|
|------------- | ------------- | ------------- | -------------|
|
|
368
368
|
| **tagId** | `string` | | [Defaults to `undefined`] |
|
|
369
|
-
| **kind** | `resource`, `quiz`, `question` | | [Optional] [Defaults to `undefined`] [Enum: resource, quiz, question] |
|
|
369
|
+
| **kind** | `resource`, `quiz`, `question`, `course`, `certificate_template` | | [Optional] [Defaults to `undefined`] [Enum: resource, quiz, question, course, certificate_template] |
|
|
370
370
|
| **search** | `string` | | [Optional] [Defaults to `undefined`] |
|
|
371
371
|
| **includeArchived** | `boolean` | | [Optional] [Defaults to `false`] |
|
|
372
372
|
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
@@ -18,6 +18,8 @@ Name | Type
|
|
|
18
18
|
`resourceCount` | number
|
|
19
19
|
`quizCount` | number
|
|
20
20
|
`questionCount` | number
|
|
21
|
+
`courseCount` | number
|
|
22
|
+
`certificateTemplateCount` | number
|
|
21
23
|
`createdAt` | number
|
|
22
24
|
`updatedAt` | number
|
|
23
25
|
|
|
@@ -40,6 +42,8 @@ const example = {
|
|
|
40
42
|
"resourceCount": null,
|
|
41
43
|
"quizCount": null,
|
|
42
44
|
"questionCount": null,
|
|
45
|
+
"courseCount": null,
|
|
46
|
+
"certificateTemplateCount": null,
|
|
43
47
|
"createdAt": null,
|
|
44
48
|
"updatedAt": null,
|
|
45
49
|
} satisfies ContentLibraryTag
|
package/docs/CourseApi.md
CHANGED
|
@@ -1034,7 +1034,7 @@ No authorization required
|
|
|
1034
1034
|
|
|
1035
1035
|
## getCourseList
|
|
1036
1036
|
|
|
1037
|
-
> GetCourseList getCourseList(page, pageSize, enrolled, search, recentActivitySince)
|
|
1037
|
+
> GetCourseList getCourseList(page, pageSize, enrolled, search, recentActivitySince, tagId)
|
|
1038
1038
|
|
|
1039
1039
|
get course list
|
|
1040
1040
|
|
|
@@ -1062,6 +1062,8 @@ async function example() {
|
|
|
1062
1062
|
search: search_example,
|
|
1063
1063
|
// number | Unix timestamp in seconds. Filters to courses with live content activity updated at or after this time in the selected portal. (optional)
|
|
1064
1064
|
recentActivitySince: 789,
|
|
1065
|
+
// string | Return portal-owned courses assigned to this portal tag. (optional)
|
|
1066
|
+
tagId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
1065
1067
|
} satisfies GetCourseListRequest;
|
|
1066
1068
|
|
|
1067
1069
|
try {
|
|
@@ -1086,6 +1088,7 @@ example().catch(console.error);
|
|
|
1086
1088
|
| **enrolled** | `boolean` | Filter to only courses the authenticated user is enrolled in | [Optional] [Defaults to `undefined`] |
|
|
1087
1089
|
| **search** | `string` | Case-insensitive substring match against course name or description | [Optional] [Defaults to `undefined`] |
|
|
1088
1090
|
| **recentActivitySince** | `number` | Unix timestamp in seconds. Filters to courses with live content activity updated at or after this time in the selected portal. | [Optional] [Defaults to `undefined`] |
|
|
1091
|
+
| **tagId** | `string` | Return portal-owned courses assigned to this portal tag. | [Optional] [Defaults to `undefined`] |
|
|
1089
1092
|
|
|
1090
1093
|
### Return type
|
|
1091
1094
|
|
|
@@ -1610,7 +1613,7 @@ No authorization required
|
|
|
1610
1613
|
### HTTP response details
|
|
1611
1614
|
| Status code | Description | Response headers |
|
|
1612
1615
|
|-------------|-------------|------------------|
|
|
1613
|
-
| **
|
|
1616
|
+
| **201** | post course response OK | - |
|
|
1614
1617
|
|
|
1615
1618
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
1616
1619
|
|
package/docs/GetCourse.md
CHANGED
|
@@ -15,6 +15,7 @@ Name | Type
|
|
|
15
15
|
`accessPolicyType` | string
|
|
16
16
|
`accessDurationDays` | number
|
|
17
17
|
`accessFixedEndAt` | number
|
|
18
|
+
`tags` | [Array<ContentLibraryTag>](ContentLibraryTag.md)
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"accessPolicyType": null,
|
|
33
34
|
"accessDurationDays": null,
|
|
34
35
|
"accessFixedEndAt": null,
|
|
36
|
+
"tags": null,
|
|
35
37
|
} satisfies GetCourse
|
|
36
38
|
|
|
37
39
|
console.log(example)
|
package/docs/PostCourse.md
CHANGED
|
@@ -11,6 +11,7 @@ Name | Type
|
|
|
11
11
|
`accessPolicyType` | string
|
|
12
12
|
`accessDurationDays` | number
|
|
13
13
|
`accessFixedEndAt` | number
|
|
14
|
+
`tags` | Set<string>
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const example = {
|
|
|
24
25
|
"accessPolicyType": null,
|
|
25
26
|
"accessDurationDays": null,
|
|
26
27
|
"accessFixedEndAt": null,
|
|
28
|
+
"tags": null,
|
|
27
29
|
} satisfies PostCourse
|
|
28
30
|
|
|
29
31
|
console.log(example)
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PostPortalCertificateTemplate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`description` | string
|
|
11
|
+
`isDefault` | boolean
|
|
12
|
+
`designDocument` | [CertificateCanvasDocument](CertificateCanvasDocument.md)
|
|
13
|
+
`tags` | Set<string>
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PostPortalCertificateTemplate } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"name": null,
|
|
23
|
+
"description": null,
|
|
24
|
+
"isDefault": null,
|
|
25
|
+
"designDocument": null,
|
|
26
|
+
"tags": null,
|
|
27
|
+
} satisfies PostPortalCertificateTemplate
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostPortalCertificateTemplate
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
package/docs/PutCourse.md
CHANGED
|
@@ -13,6 +13,7 @@ Name | Type
|
|
|
13
13
|
`accessPolicyType` | string
|
|
14
14
|
`accessDurationDays` | number
|
|
15
15
|
`accessFixedEndAt` | number
|
|
16
|
+
`tags` | Set<string>
|
|
16
17
|
|
|
17
18
|
## Example
|
|
18
19
|
|
|
@@ -28,6 +29,7 @@ const example = {
|
|
|
28
29
|
"accessPolicyType": null,
|
|
29
30
|
"accessDurationDays": null,
|
|
30
31
|
"accessFixedEndAt": null,
|
|
32
|
+
"tags": null,
|
|
31
33
|
} satisfies PutCourse
|
|
32
34
|
|
|
33
35
|
console.log(example)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
# PutPortalCertificateTemplate
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`name` | string
|
|
10
|
+
`description` | string
|
|
11
|
+
`isDefault` | boolean
|
|
12
|
+
`tags` | Set<string>
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { PutPortalCertificateTemplate } from '@easyedu/js-lsm-api'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"name": null,
|
|
22
|
+
"description": null,
|
|
23
|
+
"isDefault": null,
|
|
24
|
+
"tags": null,
|
|
25
|
+
} satisfies PutPortalCertificateTemplate
|
|
26
|
+
|
|
27
|
+
console.log(example)
|
|
28
|
+
|
|
29
|
+
// Convert the instance to a JSON string
|
|
30
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
31
|
+
console.log(exampleJSON)
|
|
32
|
+
|
|
33
|
+
// Parse the JSON string back to an object
|
|
34
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutPortalCertificateTemplate
|
|
35
|
+
console.log(exampleParsed)
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
39
|
+
|
|
40
|
+
|