@easyedu/js-lsm-api 1.125.0 → 1.127.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/ContentLibraryQuizApi.md +1 -0
- 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
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface GetCourse {
|
|
|
69
70
|
* @memberof GetCourse
|
|
70
71
|
*/
|
|
71
72
|
accessFixedEndAt: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<ContentLibraryTag>}
|
|
76
|
+
* @memberof GetCourse
|
|
77
|
+
*/
|
|
78
|
+
tags: Array<ContentLibraryTag>;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* @export
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
|
|
14
15
|
/**
|
|
15
16
|
* @export
|
|
16
17
|
*/
|
|
@@ -41,6 +42,8 @@ export function instanceOfGetCourse(value) {
|
|
|
41
42
|
return false;
|
|
42
43
|
if (!('accessFixedEndAt' in value) || value['accessFixedEndAt'] === undefined)
|
|
43
44
|
return false;
|
|
45
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
46
|
+
return false;
|
|
44
47
|
return true;
|
|
45
48
|
}
|
|
46
49
|
export function GetCourseFromJSON(json) {
|
|
@@ -60,6 +63,7 @@ export function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
60
63
|
'accessPolicyType': json['access_policy_type'],
|
|
61
64
|
'accessDurationDays': json['access_duration_days'],
|
|
62
65
|
'accessFixedEndAt': json['access_fixed_end_at'],
|
|
66
|
+
'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
|
|
63
67
|
};
|
|
64
68
|
}
|
|
65
69
|
export function GetCourseToJSON(json) {
|
|
@@ -78,5 +82,6 @@ export function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
78
82
|
'access_policy_type': value['accessPolicyType'],
|
|
79
83
|
'access_duration_days': value['accessDurationDays'],
|
|
80
84
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
85
|
+
'tags': (value['tags'].map(ContentLibraryTagToJSON)),
|
|
81
86
|
};
|
|
82
87
|
}
|
|
@@ -42,6 +42,7 @@ export function PostCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
42
|
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
43
43
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
44
44
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
45
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
export function PostCourseToJSON(json) {
|
|
@@ -57,5 +58,6 @@ export function PostCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
57
58
|
'access_policy_type': value['accessPolicyType'],
|
|
58
59
|
'access_duration_days': value['accessDurationDays'],
|
|
59
60
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
61
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
60
62
|
};
|
|
61
63
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostPortalCertificateTemplate
|
|
17
|
+
*/
|
|
18
|
+
export interface PostPortalCertificateTemplate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostPortalCertificateTemplate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostPortalCertificateTemplate
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof PostPortalCertificateTemplate
|
|
35
|
+
*/
|
|
36
|
+
isDefault?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CertificateCanvasDocument}
|
|
40
|
+
* @memberof PostPortalCertificateTemplate
|
|
41
|
+
*/
|
|
42
|
+
designDocument?: CertificateCanvasDocument;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Set<string>}
|
|
46
|
+
* @memberof PostPortalCertificateTemplate
|
|
47
|
+
*/
|
|
48
|
+
tags?: Set<string>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostPortalCertificateTemplate interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPostPortalCertificateTemplate(value: object): value is PostPortalCertificateTemplate;
|
|
54
|
+
export declare function PostPortalCertificateTemplateFromJSON(json: any): PostPortalCertificateTemplate;
|
|
55
|
+
export declare function PostPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortalCertificateTemplate;
|
|
56
|
+
export declare function PostPortalCertificateTemplateToJSON(json: any): PostPortalCertificateTemplate;
|
|
57
|
+
export declare function PostPortalCertificateTemplateToJSONTyped(value?: PostPortalCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
import { CertificateCanvasDocumentFromJSON, CertificateCanvasDocumentToJSON, } from './CertificateCanvasDocument';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PostPortalCertificateTemplate interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPostPortalCertificateTemplate(value) {
|
|
19
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PostPortalCertificateTemplateFromJSON(json) {
|
|
24
|
+
return PostPortalCertificateTemplateFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PostPortalCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'name': json['name'],
|
|
32
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
33
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
34
|
+
'designDocument': json['design_document'] == null ? undefined : CertificateCanvasDocumentFromJSON(json['design_document']),
|
|
35
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function PostPortalCertificateTemplateToJSON(json) {
|
|
39
|
+
return PostPortalCertificateTemplateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function PostPortalCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'name': value['name'],
|
|
47
|
+
'description': value['description'],
|
|
48
|
+
'is_default': value['isDefault'],
|
|
49
|
+
'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
|
|
50
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -40,6 +40,7 @@ export function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
41
41
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
42
42
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
43
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
46
|
export function PutCourseToJSON(json) {
|
|
@@ -56,5 +57,6 @@ export function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
56
57
|
'access_policy_type': value['accessPolicyType'],
|
|
57
58
|
'access_duration_days': value['accessDurationDays'],
|
|
58
59
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
60
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
59
61
|
};
|
|
60
62
|
}
|
|
@@ -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,47 @@
|
|
|
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 PutPortalCertificateTemplate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPutPortalCertificateTemplate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PutPortalCertificateTemplateFromJSON(json) {
|
|
21
|
+
return PutPortalCertificateTemplateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PutPortalCertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
29
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
31
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PutPortalCertificateTemplateToJSON(json) {
|
|
35
|
+
return PutPortalCertificateTemplateToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PutPortalCertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'name': value['name'],
|
|
43
|
+
'description': value['description'],
|
|
44
|
+
'is_default': value['isDefault'],
|
|
45
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -265,6 +265,7 @@ export * from './PostOfferCatalogResponse';
|
|
|
265
265
|
export * from './PostOfferCourse';
|
|
266
266
|
export * from './PostOfferCourseResponse';
|
|
267
267
|
export * from './PostPortal';
|
|
268
|
+
export * from './PostPortalCertificateTemplate';
|
|
268
269
|
export * from './PostPortalInvite';
|
|
269
270
|
export * from './PostQuestion';
|
|
270
271
|
export * from './PostQuestionAnswerChoicesInner';
|
|
@@ -324,6 +325,7 @@ export * from './PutLibraryQuizSessionGrade';
|
|
|
324
325
|
export * from './PutLibraryQuizSessionOverride';
|
|
325
326
|
export * from './PutLibraryQuizVersion';
|
|
326
327
|
export * from './PutPortalBranding';
|
|
328
|
+
export * from './PutPortalCertificateTemplate';
|
|
327
329
|
export * from './PutPortalSublicense';
|
|
328
330
|
export * from './PutPortalUserFieldValues';
|
|
329
331
|
export * from './PutQuestion';
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
12
13
|
import type { CertificateTemplateVersion } from './CertificateTemplateVersion';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
@@ -64,6 +65,12 @@ export interface CertificateTemplate {
|
|
|
64
65
|
* @memberof CertificateTemplate
|
|
65
66
|
*/
|
|
66
67
|
effectiveSourcePortalId?: string | null;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<ContentLibraryTag>}
|
|
71
|
+
* @memberof CertificateTemplate
|
|
72
|
+
*/
|
|
73
|
+
tags: Array<ContentLibraryTag>;
|
|
67
74
|
/**
|
|
68
75
|
*
|
|
69
76
|
* @type {CertificateTemplateVersion}
|
|
@@ -19,6 +19,7 @@ exports.CertificateTemplateFromJSON = CertificateTemplateFromJSON;
|
|
|
19
19
|
exports.CertificateTemplateFromJSONTyped = CertificateTemplateFromJSONTyped;
|
|
20
20
|
exports.CertificateTemplateToJSON = CertificateTemplateToJSON;
|
|
21
21
|
exports.CertificateTemplateToJSONTyped = CertificateTemplateToJSONTyped;
|
|
22
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
22
23
|
const CertificateTemplateVersion_1 = require("./CertificateTemplateVersion");
|
|
23
24
|
/**
|
|
24
25
|
* @export
|
|
@@ -45,6 +46,8 @@ function instanceOfCertificateTemplate(value) {
|
|
|
45
46
|
return false;
|
|
46
47
|
if (!('effectiveSource' in value) || value['effectiveSource'] === undefined)
|
|
47
48
|
return false;
|
|
49
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
50
|
+
return false;
|
|
48
51
|
if (!('activeVersion' in value) || value['activeVersion'] === undefined)
|
|
49
52
|
return false;
|
|
50
53
|
if (!('versions' in value) || value['versions'] === undefined)
|
|
@@ -71,6 +74,7 @@ function CertificateTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
71
74
|
'isInherited': json['is_inherited'],
|
|
72
75
|
'effectiveSource': json['effective_source'],
|
|
73
76
|
'effectiveSourcePortalId': json['effective_source_portal_id'] == null ? undefined : json['effective_source_portal_id'],
|
|
77
|
+
'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
74
78
|
'activeVersion': (0, CertificateTemplateVersion_1.CertificateTemplateVersionFromJSON)(json['active_version']),
|
|
75
79
|
'draftVersion': json['draft_version'] == null ? undefined : (0, CertificateTemplateVersion_1.CertificateTemplateVersionFromJSON)(json['draft_version']),
|
|
76
80
|
'versions': (json['versions'].map(CertificateTemplateVersion_1.CertificateTemplateVersionFromJSON)),
|
|
@@ -95,6 +99,7 @@ function CertificateTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
99
|
'is_inherited': value['isInherited'],
|
|
96
100
|
'effective_source': value['effectiveSource'],
|
|
97
101
|
'effective_source_portal_id': value['effectiveSourcePortalId'],
|
|
102
|
+
'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
98
103
|
'active_version': (0, CertificateTemplateVersion_1.CertificateTemplateVersionToJSON)(value['activeVersion']),
|
|
99
104
|
'draft_version': (0, CertificateTemplateVersion_1.CertificateTemplateVersionToJSON)(value['draftVersion']),
|
|
100
105
|
'versions': (value['versions'].map(CertificateTemplateVersion_1.CertificateTemplateVersionToJSON)),
|
|
@@ -87,6 +87,18 @@ export interface ContentLibraryTag {
|
|
|
87
87
|
* @memberof ContentLibraryTag
|
|
88
88
|
*/
|
|
89
89
|
questionCount: number;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {number}
|
|
93
|
+
* @memberof ContentLibraryTag
|
|
94
|
+
*/
|
|
95
|
+
courseCount: number;
|
|
96
|
+
/**
|
|
97
|
+
*
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof ContentLibraryTag
|
|
100
|
+
*/
|
|
101
|
+
certificateTemplateCount: number;
|
|
90
102
|
/**
|
|
91
103
|
*
|
|
92
104
|
* @type {number}
|
|
@@ -40,6 +40,10 @@ function instanceOfContentLibraryTag(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('questionCount' in value) || value['questionCount'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('courseCount' in value) || value['courseCount'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('certificateTemplateCount' in value) || value['certificateTemplateCount'] === undefined)
|
|
46
|
+
return false;
|
|
43
47
|
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
44
48
|
return false;
|
|
45
49
|
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
@@ -66,6 +70,8 @@ function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
66
70
|
'resourceCount': json['resource_count'],
|
|
67
71
|
'quizCount': json['quiz_count'],
|
|
68
72
|
'questionCount': json['question_count'],
|
|
73
|
+
'courseCount': json['course_count'],
|
|
74
|
+
'certificateTemplateCount': json['certificate_template_count'],
|
|
69
75
|
'createdAt': json['created_at'],
|
|
70
76
|
'updatedAt': json['updated_at'],
|
|
71
77
|
};
|
|
@@ -90,6 +96,8 @@ function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
96
|
'resource_count': value['resourceCount'],
|
|
91
97
|
'quiz_count': value['quizCount'],
|
|
92
98
|
'question_count': value['questionCount'],
|
|
99
|
+
'course_count': value['courseCount'],
|
|
100
|
+
'certificate_template_count': value['certificateTemplateCount'],
|
|
93
101
|
'created_at': value['createdAt'],
|
|
94
102
|
'updated_at': value['updatedAt'],
|
|
95
103
|
};
|
|
@@ -73,6 +73,8 @@ export declare const ContentLibraryTagItemKindEnum: {
|
|
|
73
73
|
readonly Resource: "resource";
|
|
74
74
|
readonly Quiz: "quiz";
|
|
75
75
|
readonly Question: "question";
|
|
76
|
+
readonly Course: "course";
|
|
77
|
+
readonly CertificateTemplate: "certificate_template";
|
|
76
78
|
};
|
|
77
79
|
export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
|
|
78
80
|
/**
|
|
@@ -27,7 +27,9 @@ const ResourceType_1 = require("./ResourceType");
|
|
|
27
27
|
exports.ContentLibraryTagItemKindEnum = {
|
|
28
28
|
Resource: 'resource',
|
|
29
29
|
Quiz: 'quiz',
|
|
30
|
-
Question: 'question'
|
|
30
|
+
Question: 'question',
|
|
31
|
+
Course: 'course',
|
|
32
|
+
CertificateTemplate: 'certificate_template'
|
|
31
33
|
};
|
|
32
34
|
/**
|
|
33
35
|
* Check if a given object implements the ContentLibraryTagItem interface.
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface GetCourse {
|
|
|
69
70
|
* @memberof GetCourse
|
|
70
71
|
*/
|
|
71
72
|
accessFixedEndAt: number | null;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {Array<ContentLibraryTag>}
|
|
76
|
+
* @memberof GetCourse
|
|
77
|
+
*/
|
|
78
|
+
tags: Array<ContentLibraryTag>;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* @export
|
package/dist/models/GetCourse.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.GetCourseFromJSON = GetCourseFromJSON;
|
|
|
19
19
|
exports.GetCourseFromJSONTyped = GetCourseFromJSONTyped;
|
|
20
20
|
exports.GetCourseToJSON = GetCourseToJSON;
|
|
21
21
|
exports.GetCourseToJSONTyped = GetCourseToJSONTyped;
|
|
22
|
+
const ContentLibraryTag_1 = require("./ContentLibraryTag");
|
|
22
23
|
/**
|
|
23
24
|
* @export
|
|
24
25
|
*/
|
|
@@ -49,6 +50,8 @@ function instanceOfGetCourse(value) {
|
|
|
49
50
|
return false;
|
|
50
51
|
if (!('accessFixedEndAt' in value) || value['accessFixedEndAt'] === undefined)
|
|
51
52
|
return false;
|
|
53
|
+
if (!('tags' in value) || value['tags'] === undefined)
|
|
54
|
+
return false;
|
|
52
55
|
return true;
|
|
53
56
|
}
|
|
54
57
|
function GetCourseFromJSON(json) {
|
|
@@ -68,6 +71,7 @@ function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
68
71
|
'accessPolicyType': json['access_policy_type'],
|
|
69
72
|
'accessDurationDays': json['access_duration_days'],
|
|
70
73
|
'accessFixedEndAt': json['access_fixed_end_at'],
|
|
74
|
+
'tags': (json['tags'].map(ContentLibraryTag_1.ContentLibraryTagFromJSON)),
|
|
71
75
|
};
|
|
72
76
|
}
|
|
73
77
|
function GetCourseToJSON(json) {
|
|
@@ -86,5 +90,6 @@ function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
86
90
|
'access_policy_type': value['accessPolicyType'],
|
|
87
91
|
'access_duration_days': value['accessDurationDays'],
|
|
88
92
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
93
|
+
'tags': (value['tags'].map(ContentLibraryTag_1.ContentLibraryTagToJSON)),
|
|
89
94
|
};
|
|
90
95
|
}
|
|
@@ -50,6 +50,7 @@ function PostCourseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
51
51
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
52
52
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
53
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
function PostCourseToJSON(json) {
|
|
@@ -65,5 +66,6 @@ function PostCourseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
65
66
|
'access_policy_type': value['accessPolicyType'],
|
|
66
67
|
'access_duration_days': value['accessDurationDays'],
|
|
67
68
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
69
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags']),
|
|
68
70
|
};
|
|
69
71
|
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostPortalCertificateTemplate
|
|
17
|
+
*/
|
|
18
|
+
export interface PostPortalCertificateTemplate {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostPortalCertificateTemplate
|
|
23
|
+
*/
|
|
24
|
+
name: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostPortalCertificateTemplate
|
|
29
|
+
*/
|
|
30
|
+
description?: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof PostPortalCertificateTemplate
|
|
35
|
+
*/
|
|
36
|
+
isDefault?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {CertificateCanvasDocument}
|
|
40
|
+
* @memberof PostPortalCertificateTemplate
|
|
41
|
+
*/
|
|
42
|
+
designDocument?: CertificateCanvasDocument;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Set<string>}
|
|
46
|
+
* @memberof PostPortalCertificateTemplate
|
|
47
|
+
*/
|
|
48
|
+
tags?: Set<string>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PostPortalCertificateTemplate interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPostPortalCertificateTemplate(value: object): value is PostPortalCertificateTemplate;
|
|
54
|
+
export declare function PostPortalCertificateTemplateFromJSON(json: any): PostPortalCertificateTemplate;
|
|
55
|
+
export declare function PostPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortalCertificateTemplate;
|
|
56
|
+
export declare function PostPortalCertificateTemplateToJSON(json: any): PostPortalCertificateTemplate;
|
|
57
|
+
export declare function PostPortalCertificateTemplateToJSONTyped(value?: PostPortalCertificateTemplate | null, ignoreDiscriminator?: boolean): any;
|