@easyedu/js-lsm-api 1.124.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 +7 -5
- 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 +5 -4
- package/dist/apis/CourseApi.js +7 -4
- 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 +5 -4
- package/dist/esm/apis/CourseApi.js +7 -4
- 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/PostCourseEnrollment.d.ts +8 -4
- 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/PutCourseEnrollment.d.ts +0 -14
- package/dist/esm/models/PutCourseEnrollment.js +0 -9
- 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/PostCourseEnrollment.d.ts +8 -4
- 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/PutCourseEnrollment.d.ts +0 -14
- package/dist/models/PutCourseEnrollment.js +1 -10
- 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 +12 -7
- 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/PutCourseEnrollment.md +0 -2
- 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 +9 -4
- 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/PostCourseEnrollment.ts +8 -4
- package/src/models/PostPortalCertificateTemplate.ts +106 -0
- package/src/models/PutCourse.ts +8 -0
- package/src/models/PutCourseEnrollment.ts +0 -17
- package/src/models/PutPortalCertificateTemplate.ts +89 -0
- package/src/models/index.ts +2 -0
package/src/models/GetCourse.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ContentLibraryTag } from './ContentLibraryTag';
|
|
17
|
+
import {
|
|
18
|
+
ContentLibraryTagFromJSON,
|
|
19
|
+
ContentLibraryTagFromJSONTyped,
|
|
20
|
+
ContentLibraryTagToJSON,
|
|
21
|
+
ContentLibraryTagToJSONTyped,
|
|
22
|
+
} from './ContentLibraryTag';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -73,6 +81,12 @@ export interface GetCourse {
|
|
|
73
81
|
* @memberof GetCourse
|
|
74
82
|
*/
|
|
75
83
|
accessFixedEndAt: number | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<ContentLibraryTag>}
|
|
87
|
+
* @memberof GetCourse
|
|
88
|
+
*/
|
|
89
|
+
tags: Array<ContentLibraryTag>;
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
|
|
@@ -100,6 +114,7 @@ export function instanceOfGetCourse(value: object): value is GetCourse {
|
|
|
100
114
|
if (!('accessPolicyType' in value) || value['accessPolicyType'] === undefined) return false;
|
|
101
115
|
if (!('accessDurationDays' in value) || value['accessDurationDays'] === undefined) return false;
|
|
102
116
|
if (!('accessFixedEndAt' in value) || value['accessFixedEndAt'] === undefined) return false;
|
|
117
|
+
if (!('tags' in value) || value['tags'] === undefined) return false;
|
|
103
118
|
return true;
|
|
104
119
|
}
|
|
105
120
|
|
|
@@ -122,6 +137,7 @@ export function GetCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
122
137
|
'accessPolicyType': json['access_policy_type'],
|
|
123
138
|
'accessDurationDays': json['access_duration_days'],
|
|
124
139
|
'accessFixedEndAt': json['access_fixed_end_at'],
|
|
140
|
+
'tags': ((json['tags'] as Array<any>).map(ContentLibraryTagFromJSON)),
|
|
125
141
|
};
|
|
126
142
|
}
|
|
127
143
|
|
|
@@ -144,6 +160,7 @@ export function GetCourseToJSONTyped(value?: Omit<GetCourse, 'id'> | null, ignor
|
|
|
144
160
|
'access_policy_type': value['accessPolicyType'],
|
|
145
161
|
'access_duration_days': value['accessDurationDays'],
|
|
146
162
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
163
|
+
'tags': ((value['tags'] as Array<any>).map(ContentLibraryTagToJSON)),
|
|
147
164
|
};
|
|
148
165
|
}
|
|
149
166
|
|
package/src/models/PostCourse.ts
CHANGED
|
@@ -51,6 +51,12 @@ export interface PostCourse {
|
|
|
51
51
|
* @memberof PostCourse
|
|
52
52
|
*/
|
|
53
53
|
accessFixedEndAt?: number | null;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Set<string>}
|
|
57
|
+
* @memberof PostCourse
|
|
58
|
+
*/
|
|
59
|
+
tags?: Set<string>;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
|
|
@@ -89,6 +95,7 @@ export function PostCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
|
|
89
95
|
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
90
96
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
91
97
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
98
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
92
99
|
};
|
|
93
100
|
}
|
|
94
101
|
|
|
@@ -108,6 +115,7 @@ export function PostCourseToJSONTyped(value?: PostCourse | null, ignoreDiscrimin
|
|
|
108
115
|
'access_policy_type': value['accessPolicyType'],
|
|
109
116
|
'access_duration_days': value['accessDurationDays'],
|
|
110
117
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
118
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
|
|
111
119
|
};
|
|
112
120
|
}
|
|
113
121
|
|
|
@@ -44,15 +44,19 @@ export interface PostCourseEnrollment {
|
|
|
44
44
|
*/
|
|
45
45
|
notes?: string | null;
|
|
46
46
|
/**
|
|
47
|
-
* The role/type of
|
|
47
|
+
* The role/type of this enrollment. A user may have one current Student and
|
|
48
|
+
* one current Instructor enrollment for the same course. Assign both roles
|
|
49
|
+
* with two requests, one for each user_type.
|
|
50
|
+
*
|
|
48
51
|
* @type {PostCourseEnrollmentUserTypeEnum}
|
|
49
52
|
* @memberof PostCourseEnrollment
|
|
50
53
|
*/
|
|
51
54
|
userType?: PostCourseEnrollmentUserTypeEnum | null;
|
|
52
55
|
/**
|
|
53
|
-
* How to handle a
|
|
54
|
-
* restart creates a new enrollment period; resume
|
|
55
|
-
* enrollment.
|
|
56
|
+
* How to handle a user with a prior terminal enrollment of the requested
|
|
57
|
+
* user_type for this course. restart creates a new enrollment period; resume
|
|
58
|
+
* reopens the latest terminal enrollment of that type. A current enrollment
|
|
59
|
+
* of the same type always conflicts.
|
|
56
60
|
*
|
|
57
61
|
* @type {PostCourseEnrollmentReEnrollmentModeEnum}
|
|
58
62
|
* @memberof PostCourseEnrollment
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { CertificateCanvasDocument } from './CertificateCanvasDocument';
|
|
17
|
+
import {
|
|
18
|
+
CertificateCanvasDocumentFromJSON,
|
|
19
|
+
CertificateCanvasDocumentFromJSONTyped,
|
|
20
|
+
CertificateCanvasDocumentToJSON,
|
|
21
|
+
CertificateCanvasDocumentToJSONTyped,
|
|
22
|
+
} from './CertificateCanvasDocument';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface PostPortalCertificateTemplate
|
|
28
|
+
*/
|
|
29
|
+
export interface PostPortalCertificateTemplate {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostPortalCertificateTemplate
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostPortalCertificateTemplate
|
|
40
|
+
*/
|
|
41
|
+
description?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {boolean}
|
|
45
|
+
* @memberof PostPortalCertificateTemplate
|
|
46
|
+
*/
|
|
47
|
+
isDefault?: boolean;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CertificateCanvasDocument}
|
|
51
|
+
* @memberof PostPortalCertificateTemplate
|
|
52
|
+
*/
|
|
53
|
+
designDocument?: CertificateCanvasDocument;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {Set<string>}
|
|
57
|
+
* @memberof PostPortalCertificateTemplate
|
|
58
|
+
*/
|
|
59
|
+
tags?: Set<string>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Check if a given object implements the PostPortalCertificateTemplate interface.
|
|
64
|
+
*/
|
|
65
|
+
export function instanceOfPostPortalCertificateTemplate(value: object): value is PostPortalCertificateTemplate {
|
|
66
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
67
|
+
return true;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function PostPortalCertificateTemplateFromJSON(json: any): PostPortalCertificateTemplate {
|
|
71
|
+
return PostPortalCertificateTemplateFromJSONTyped(json, false);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export function PostPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortalCertificateTemplate {
|
|
75
|
+
if (json == null) {
|
|
76
|
+
return json;
|
|
77
|
+
}
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'name': json['name'],
|
|
81
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
82
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
83
|
+
'designDocument': json['design_document'] == null ? undefined : CertificateCanvasDocumentFromJSON(json['design_document']),
|
|
84
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function PostPortalCertificateTemplateToJSON(json: any): PostPortalCertificateTemplate {
|
|
89
|
+
return PostPortalCertificateTemplateToJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function PostPortalCertificateTemplateToJSONTyped(value?: PostPortalCertificateTemplate | null, ignoreDiscriminator: boolean = false): any {
|
|
93
|
+
if (value == null) {
|
|
94
|
+
return value;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
return {
|
|
98
|
+
|
|
99
|
+
'name': value['name'],
|
|
100
|
+
'description': value['description'],
|
|
101
|
+
'is_default': value['isDefault'],
|
|
102
|
+
'design_document': CertificateCanvasDocumentToJSON(value['designDocument']),
|
|
103
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
package/src/models/PutCourse.ts
CHANGED
|
@@ -61,6 +61,12 @@ export interface PutCourse {
|
|
|
61
61
|
* @memberof PutCourse
|
|
62
62
|
*/
|
|
63
63
|
accessFixedEndAt?: number | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Set<string>}
|
|
67
|
+
* @memberof PutCourse
|
|
68
|
+
*/
|
|
69
|
+
tags?: Set<string>;
|
|
64
70
|
}
|
|
65
71
|
|
|
66
72
|
|
|
@@ -99,6 +105,7 @@ export function PutCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
99
105
|
'accessPolicyType': json['access_policy_type'] == null ? undefined : json['access_policy_type'],
|
|
100
106
|
'accessDurationDays': json['access_duration_days'] == null ? undefined : json['access_duration_days'],
|
|
101
107
|
'accessFixedEndAt': json['access_fixed_end_at'] == null ? undefined : json['access_fixed_end_at'],
|
|
108
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
102
109
|
};
|
|
103
110
|
}
|
|
104
111
|
|
|
@@ -119,6 +126,7 @@ export function PutCourseToJSONTyped(value?: Omit<PutCourse, 'id'> | null, ignor
|
|
|
119
126
|
'access_policy_type': value['accessPolicyType'],
|
|
120
127
|
'access_duration_days': value['accessDurationDays'],
|
|
121
128
|
'access_fixed_end_at': value['accessFixedEndAt'],
|
|
129
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
|
|
122
130
|
};
|
|
123
131
|
}
|
|
124
132
|
|
|
@@ -28,12 +28,6 @@ export interface PutCourseEnrollment {
|
|
|
28
28
|
* @memberof PutCourseEnrollment
|
|
29
29
|
*/
|
|
30
30
|
status?: PutCourseEnrollmentStatusEnum;
|
|
31
|
-
/**
|
|
32
|
-
* The role/type of the user in this enrollment
|
|
33
|
-
* @type {PutCourseEnrollmentUserTypeEnum}
|
|
34
|
-
* @memberof PutCourseEnrollment
|
|
35
|
-
*/
|
|
36
|
-
userType?: PutCourseEnrollmentUserTypeEnum;
|
|
37
31
|
/**
|
|
38
32
|
* End date of the enrollment (Unix timestamp)
|
|
39
33
|
* @type {number}
|
|
@@ -78,15 +72,6 @@ export const PutCourseEnrollmentStatusEnum = {
|
|
|
78
72
|
} as const;
|
|
79
73
|
export type PutCourseEnrollmentStatusEnum = typeof PutCourseEnrollmentStatusEnum[keyof typeof PutCourseEnrollmentStatusEnum];
|
|
80
74
|
|
|
81
|
-
/**
|
|
82
|
-
* @export
|
|
83
|
-
*/
|
|
84
|
-
export const PutCourseEnrollmentUserTypeEnum = {
|
|
85
|
-
Student: 'Student',
|
|
86
|
-
Instructor: 'Instructor'
|
|
87
|
-
} as const;
|
|
88
|
-
export type PutCourseEnrollmentUserTypeEnum = typeof PutCourseEnrollmentUserTypeEnum[keyof typeof PutCourseEnrollmentUserTypeEnum];
|
|
89
|
-
|
|
90
75
|
|
|
91
76
|
/**
|
|
92
77
|
* Check if a given object implements the PutCourseEnrollment interface.
|
|
@@ -106,7 +91,6 @@ export function PutCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
106
91
|
return {
|
|
107
92
|
|
|
108
93
|
'status': json['status'] == null ? undefined : json['status'],
|
|
109
|
-
'userType': json['user_type'] == null ? undefined : json['user_type'],
|
|
110
94
|
'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
|
|
111
95
|
'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
|
|
112
96
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
@@ -126,7 +110,6 @@ export function PutCourseEnrollmentToJSONTyped(value?: PutCourseEnrollment | nul
|
|
|
126
110
|
return {
|
|
127
111
|
|
|
128
112
|
'status': value['status'],
|
|
129
|
-
'user_type': value['userType'],
|
|
130
113
|
'enrollment_date_end': value['enrollmentDateEnd'],
|
|
131
114
|
'extension_days': value['extensionDays'],
|
|
132
115
|
'notes': value['notes'],
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutPortalCertificateTemplate
|
|
20
|
+
*/
|
|
21
|
+
export interface PutPortalCertificateTemplate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof PutPortalCertificateTemplate
|
|
26
|
+
*/
|
|
27
|
+
name?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof PutPortalCertificateTemplate
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof PutPortalCertificateTemplate
|
|
38
|
+
*/
|
|
39
|
+
isDefault?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Set<string>}
|
|
43
|
+
* @memberof PutPortalCertificateTemplate
|
|
44
|
+
*/
|
|
45
|
+
tags?: Set<string>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the PutPortalCertificateTemplate interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfPutPortalCertificateTemplate(value: object): value is PutPortalCertificateTemplate {
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function PutPortalCertificateTemplateFromJSON(json: any): PutPortalCertificateTemplate {
|
|
56
|
+
return PutPortalCertificateTemplateFromJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function PutPortalCertificateTemplateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalCertificateTemplate {
|
|
60
|
+
if (json == null) {
|
|
61
|
+
return json;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
|
|
65
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
66
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
67
|
+
'isDefault': json['is_default'] == null ? undefined : json['is_default'],
|
|
68
|
+
'tags': json['tags'] == null ? undefined : new Set(json['tags']),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function PutPortalCertificateTemplateToJSON(json: any): PutPortalCertificateTemplate {
|
|
73
|
+
return PutPortalCertificateTemplateToJSONTyped(json, false);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function PutPortalCertificateTemplateToJSONTyped(value?: PutPortalCertificateTemplate | null, ignoreDiscriminator: boolean = false): any {
|
|
77
|
+
if (value == null) {
|
|
78
|
+
return value;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
|
|
83
|
+
'name': value['name'],
|
|
84
|
+
'description': value['description'],
|
|
85
|
+
'is_default': value['isDefault'],
|
|
86
|
+
'tags': value['tags'] == null ? undefined : Array.from(value['tags'] as Set<any>),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
package/src/models/index.ts
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';
|