@easyedu/js-lsm-api 1.49.0 → 1.51.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 +22 -0
- package/README.md +31 -8
- package/dist/apis/CertificateApi.d.ts +237 -0
- package/dist/apis/CertificateApi.js +587 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/CertificateApi.d.ts +237 -0
- package/dist/esm/apis/CertificateApi.js +583 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Certificate.d.ts +151 -0
- package/dist/esm/models/Certificate.js +114 -0
- package/dist/esm/models/CertificateConfig.d.ts +86 -0
- package/dist/esm/models/CertificateConfig.js +69 -0
- package/dist/esm/models/CertificatePublic.d.ts +98 -0
- package/dist/esm/models/CertificatePublic.js +87 -0
- package/dist/esm/models/EffectiveCertificateConfig.d.ts +62 -0
- package/dist/esm/models/EffectiveCertificateConfig.js +55 -0
- package/dist/esm/models/GetCertificateConfigList.d.ts +33 -0
- package/dist/esm/models/GetCertificateConfigList.js +44 -0
- package/dist/esm/models/GetCertificateList.d.ts +33 -0
- package/dist/esm/models/GetCertificateList.js +44 -0
- package/dist/esm/models/PostCertificate.d.ts +50 -0
- package/dist/esm/models/PostCertificate.js +49 -0
- package/dist/esm/models/PostCertificateConfig.d.ts +62 -0
- package/dist/esm/models/PostCertificateConfig.js +53 -0
- package/dist/esm/models/PostRevokeCertificate.d.ts +32 -0
- package/dist/esm/models/PostRevokeCertificate.js +41 -0
- package/dist/esm/models/PutCertificateConfig.d.ts +56 -0
- package/dist/esm/models/PutCertificateConfig.js +49 -0
- package/dist/esm/models/index.d.ts +10 -0
- package/dist/esm/models/index.js +10 -0
- package/dist/models/Certificate.d.ts +151 -0
- package/dist/models/Certificate.js +122 -0
- package/dist/models/CertificateConfig.d.ts +86 -0
- package/dist/models/CertificateConfig.js +76 -0
- package/dist/models/CertificatePublic.d.ts +98 -0
- package/dist/models/CertificatePublic.js +95 -0
- package/dist/models/EffectiveCertificateConfig.d.ts +62 -0
- package/dist/models/EffectiveCertificateConfig.js +62 -0
- package/dist/models/GetCertificateConfigList.d.ts +33 -0
- package/dist/models/GetCertificateConfigList.js +51 -0
- package/dist/models/GetCertificateList.d.ts +33 -0
- package/dist/models/GetCertificateList.js +51 -0
- package/dist/models/PostCertificate.d.ts +50 -0
- package/dist/models/PostCertificate.js +56 -0
- package/dist/models/PostCertificateConfig.d.ts +62 -0
- package/dist/models/PostCertificateConfig.js +60 -0
- package/dist/models/PostRevokeCertificate.d.ts +32 -0
- package/dist/models/PostRevokeCertificate.js +48 -0
- package/dist/models/PutCertificateConfig.d.ts +56 -0
- package/dist/models/PutCertificateConfig.js +56 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/docs/Certificate.md +68 -0
- package/docs/CertificateApi.md +903 -0
- package/docs/CertificateConfig.md +52 -0
- package/docs/CertificatePublic.md +51 -0
- package/docs/EffectiveCertificateConfig.md +45 -0
- package/docs/GetCertificateConfigList.md +34 -0
- package/docs/GetCertificateList.md +34 -0
- package/docs/PostCertificate.md +41 -0
- package/docs/PostCertificateConfig.md +44 -0
- package/docs/PostRevokeCertificate.md +34 -0
- package/docs/PutCertificateConfig.md +42 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +765 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Certificate.ts +234 -0
- package/src/models/CertificateConfig.ts +142 -0
- package/src/models/CertificatePublic.ts +158 -0
- package/src/models/EffectiveCertificateConfig.ts +107 -0
- package/src/models/GetCertificateConfigList.ts +74 -0
- package/src/models/GetCertificateList.ts +74 -0
- package/src/models/PostCertificate.ts +90 -0
- package/src/models/PostCertificateConfig.ts +106 -0
- package/src/models/PostRevokeCertificate.ts +65 -0
- package/src/models/PutCertificateConfig.ts +97 -0
- package/src/models/index.ts +10 -0
package/dist/esm/models/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './Certificate';
|
|
4
|
+
export * from './CertificateConfig';
|
|
5
|
+
export * from './CertificatePublic';
|
|
3
6
|
export * from './CriteriaBasedSelection';
|
|
4
7
|
export * from './CriteriaBasedSelectionCriteria';
|
|
5
8
|
export * from './CriteriaBasedSelectionDistribution';
|
|
6
9
|
export * from './DownloadSupportTicketAttachment200Response';
|
|
10
|
+
export * from './EffectiveCertificateConfig';
|
|
7
11
|
export * from './Essay';
|
|
8
12
|
export * from './Essay1';
|
|
9
13
|
export * from './FillInBlank';
|
|
10
14
|
export * from './FillInBlank1';
|
|
15
|
+
export * from './GetCertificateConfigList';
|
|
16
|
+
export * from './GetCertificateList';
|
|
11
17
|
export * from './GetChatMessage';
|
|
12
18
|
export * from './GetContent';
|
|
13
19
|
export * from './GetContentContentData';
|
|
@@ -152,6 +158,8 @@ export * from './MultipleAnswer';
|
|
|
152
158
|
export * from './MultipleAnswer1';
|
|
153
159
|
export * from './NoAnswer';
|
|
154
160
|
export * from './Paginated';
|
|
161
|
+
export * from './PostCertificate';
|
|
162
|
+
export * from './PostCertificateConfig';
|
|
155
163
|
export * from './PostContentQuiz';
|
|
156
164
|
export * from './PostContentQuizAssignment';
|
|
157
165
|
export * from './PostContentQuizQuestionSelection';
|
|
@@ -187,6 +195,7 @@ export * from './PostQuizQuestions';
|
|
|
187
195
|
export * from './PostQuizQuestionsQuestionsInner';
|
|
188
196
|
export * from './PostQuizSettings';
|
|
189
197
|
export * from './PostResetPassword';
|
|
198
|
+
export * from './PostRevokeCertificate';
|
|
190
199
|
export * from './PostRole';
|
|
191
200
|
export * from './PostSendResetPassword';
|
|
192
201
|
export * from './PostSupportTicket';
|
|
@@ -194,6 +203,7 @@ export * from './PostSupportTicketComment';
|
|
|
194
203
|
export * from './PostVerifyManifest';
|
|
195
204
|
export * from './PostVerifyManifestItemsInner';
|
|
196
205
|
export * from './PostVerifyManifestResourcesInner';
|
|
206
|
+
export * from './PutCertificateConfig';
|
|
197
207
|
export * from './PutContent';
|
|
198
208
|
export * from './PutContentReorder';
|
|
199
209
|
export * from './PutContentVersion';
|
|
@@ -0,0 +1,151 @@
|
|
|
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 Certificate
|
|
16
|
+
*/
|
|
17
|
+
export interface Certificate {
|
|
18
|
+
/**
|
|
19
|
+
* External ID (UUID) of the certificate
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Certificate
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* External ID of the portal
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Certificate
|
|
28
|
+
*/
|
|
29
|
+
portalId: string;
|
|
30
|
+
/**
|
|
31
|
+
* External ID of the recipient user
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Certificate
|
|
34
|
+
*/
|
|
35
|
+
userId: string;
|
|
36
|
+
/**
|
|
37
|
+
* External ID of the course
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Certificate
|
|
40
|
+
*/
|
|
41
|
+
courseId: string;
|
|
42
|
+
/**
|
|
43
|
+
* External ID of the enrollment, null for manual issuance
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Certificate
|
|
46
|
+
*/
|
|
47
|
+
enrollmentId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Unix epoch timestamp
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof Certificate
|
|
52
|
+
*/
|
|
53
|
+
issuedAt: number;
|
|
54
|
+
/**
|
|
55
|
+
* Unix epoch timestamp, null = never expires
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof Certificate
|
|
58
|
+
*/
|
|
59
|
+
expiresAt?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* External ID of the user who manually issued (null for auto)
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof Certificate
|
|
64
|
+
*/
|
|
65
|
+
issuedByUserId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {CertificateIssuanceReasonEnum}
|
|
69
|
+
* @memberof Certificate
|
|
70
|
+
*/
|
|
71
|
+
issuanceReason: CertificateIssuanceReasonEnum;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {CertificateStatusEnum}
|
|
75
|
+
* @memberof Certificate
|
|
76
|
+
*/
|
|
77
|
+
status: CertificateStatusEnum;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof Certificate
|
|
82
|
+
*/
|
|
83
|
+
revokedAt?: number | null;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof Certificate
|
|
88
|
+
*/
|
|
89
|
+
revokedByUserId?: string | null;
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof Certificate
|
|
94
|
+
*/
|
|
95
|
+
revocationReason?: string | null;
|
|
96
|
+
/**
|
|
97
|
+
* Snapshotted learner name as of issue time
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof Certificate
|
|
100
|
+
*/
|
|
101
|
+
learnerName: string;
|
|
102
|
+
/**
|
|
103
|
+
* Snapshotted course name as of issue time
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof Certificate
|
|
106
|
+
*/
|
|
107
|
+
courseName: string;
|
|
108
|
+
/**
|
|
109
|
+
* Snapshotted portal name as of issue time
|
|
110
|
+
* @type {string}
|
|
111
|
+
* @memberof Certificate
|
|
112
|
+
*/
|
|
113
|
+
portalName: string;
|
|
114
|
+
/**
|
|
115
|
+
*
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof Certificate
|
|
118
|
+
*/
|
|
119
|
+
createdAt: number;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {number}
|
|
123
|
+
* @memberof Certificate
|
|
124
|
+
*/
|
|
125
|
+
updatedAt: number;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @export
|
|
129
|
+
*/
|
|
130
|
+
export declare const CertificateIssuanceReasonEnum: {
|
|
131
|
+
readonly CourseCompletion: "course_completion";
|
|
132
|
+
readonly QuizPassed: "quiz_passed";
|
|
133
|
+
readonly Manual: "manual";
|
|
134
|
+
};
|
|
135
|
+
export type CertificateIssuanceReasonEnum = typeof CertificateIssuanceReasonEnum[keyof typeof CertificateIssuanceReasonEnum];
|
|
136
|
+
/**
|
|
137
|
+
* @export
|
|
138
|
+
*/
|
|
139
|
+
export declare const CertificateStatusEnum: {
|
|
140
|
+
readonly Active: "active";
|
|
141
|
+
readonly Revoked: "revoked";
|
|
142
|
+
};
|
|
143
|
+
export type CertificateStatusEnum = typeof CertificateStatusEnum[keyof typeof CertificateStatusEnum];
|
|
144
|
+
/**
|
|
145
|
+
* Check if a given object implements the Certificate interface.
|
|
146
|
+
*/
|
|
147
|
+
export declare function instanceOfCertificate(value: object): value is Certificate;
|
|
148
|
+
export declare function CertificateFromJSON(json: any): Certificate;
|
|
149
|
+
export declare function CertificateFromJSONTyped(json: any, ignoreDiscriminator: boolean): Certificate;
|
|
150
|
+
export declare function CertificateToJSON(json: any): Certificate;
|
|
151
|
+
export declare function CertificateToJSONTyped(value?: Certificate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,122 @@
|
|
|
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.CertificateStatusEnum = exports.CertificateIssuanceReasonEnum = void 0;
|
|
17
|
+
exports.instanceOfCertificate = instanceOfCertificate;
|
|
18
|
+
exports.CertificateFromJSON = CertificateFromJSON;
|
|
19
|
+
exports.CertificateFromJSONTyped = CertificateFromJSONTyped;
|
|
20
|
+
exports.CertificateToJSON = CertificateToJSON;
|
|
21
|
+
exports.CertificateToJSONTyped = CertificateToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CertificateIssuanceReasonEnum = {
|
|
26
|
+
CourseCompletion: 'course_completion',
|
|
27
|
+
QuizPassed: 'quiz_passed',
|
|
28
|
+
Manual: 'manual'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.CertificateStatusEnum = {
|
|
34
|
+
Active: 'active',
|
|
35
|
+
Revoked: 'revoked'
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the Certificate interface.
|
|
39
|
+
*/
|
|
40
|
+
function instanceOfCertificate(value) {
|
|
41
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('portalId' in value) || value['portalId'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('issuanceReason' in value) || value['issuanceReason'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
58
|
+
return false;
|
|
59
|
+
if (!('portalName' in value) || value['portalName'] === undefined)
|
|
60
|
+
return false;
|
|
61
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
62
|
+
return false;
|
|
63
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
64
|
+
return false;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
function CertificateFromJSON(json) {
|
|
68
|
+
return CertificateFromJSONTyped(json, false);
|
|
69
|
+
}
|
|
70
|
+
function CertificateFromJSONTyped(json, ignoreDiscriminator) {
|
|
71
|
+
if (json == null) {
|
|
72
|
+
return json;
|
|
73
|
+
}
|
|
74
|
+
return {
|
|
75
|
+
'id': json['id'],
|
|
76
|
+
'portalId': json['portal_id'],
|
|
77
|
+
'userId': json['user_id'],
|
|
78
|
+
'courseId': json['course_id'],
|
|
79
|
+
'enrollmentId': json['enrollment_id'] == null ? undefined : json['enrollment_id'],
|
|
80
|
+
'issuedAt': json['issued_at'],
|
|
81
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
82
|
+
'issuedByUserId': json['issued_by_user_id'] == null ? undefined : json['issued_by_user_id'],
|
|
83
|
+
'issuanceReason': json['issuance_reason'],
|
|
84
|
+
'status': json['status'],
|
|
85
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
86
|
+
'revokedByUserId': json['revoked_by_user_id'] == null ? undefined : json['revoked_by_user_id'],
|
|
87
|
+
'revocationReason': json['revocation_reason'] == null ? undefined : json['revocation_reason'],
|
|
88
|
+
'learnerName': json['learner_name'],
|
|
89
|
+
'courseName': json['course_name'],
|
|
90
|
+
'portalName': json['portal_name'],
|
|
91
|
+
'createdAt': json['created_at'],
|
|
92
|
+
'updatedAt': json['updated_at'],
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function CertificateToJSON(json) {
|
|
96
|
+
return CertificateToJSONTyped(json, false);
|
|
97
|
+
}
|
|
98
|
+
function CertificateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
99
|
+
if (value == null) {
|
|
100
|
+
return value;
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
'id': value['id'],
|
|
104
|
+
'portal_id': value['portalId'],
|
|
105
|
+
'user_id': value['userId'],
|
|
106
|
+
'course_id': value['courseId'],
|
|
107
|
+
'enrollment_id': value['enrollmentId'],
|
|
108
|
+
'issued_at': value['issuedAt'],
|
|
109
|
+
'expires_at': value['expiresAt'],
|
|
110
|
+
'issued_by_user_id': value['issuedByUserId'],
|
|
111
|
+
'issuance_reason': value['issuanceReason'],
|
|
112
|
+
'status': value['status'],
|
|
113
|
+
'revoked_at': value['revokedAt'],
|
|
114
|
+
'revoked_by_user_id': value['revokedByUserId'],
|
|
115
|
+
'revocation_reason': value['revocationReason'],
|
|
116
|
+
'learner_name': value['learnerName'],
|
|
117
|
+
'course_name': value['courseName'],
|
|
118
|
+
'portal_name': value['portalName'],
|
|
119
|
+
'created_at': value['createdAt'],
|
|
120
|
+
'updated_at': value['updatedAt'],
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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 CertificateConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificateConfig {
|
|
18
|
+
/**
|
|
19
|
+
* External ID (UUID) of the config
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificateConfig
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CertificateConfig
|
|
28
|
+
*/
|
|
29
|
+
portalId: string;
|
|
30
|
+
/**
|
|
31
|
+
* null = portal default, set = course override
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CertificateConfig
|
|
34
|
+
*/
|
|
35
|
+
courseId?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof CertificateConfig
|
|
40
|
+
*/
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Months from issue date until expiry, null = never expires
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CertificateConfig
|
|
46
|
+
*/
|
|
47
|
+
expiryMonths?: number | null;
|
|
48
|
+
/**
|
|
49
|
+
* At course scope, null inherits the portal default
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
* @memberof CertificateConfig
|
|
52
|
+
*/
|
|
53
|
+
requireQuizPass?: boolean | null;
|
|
54
|
+
/**
|
|
55
|
+
* 0-100, only used when require_quiz_pass is true
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CertificateConfig
|
|
58
|
+
*/
|
|
59
|
+
minQuizScore?: number | null;
|
|
60
|
+
/**
|
|
61
|
+
* External ID of the gating quiz config
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CertificateConfig
|
|
64
|
+
*/
|
|
65
|
+
quizConfigId?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CertificateConfig
|
|
70
|
+
*/
|
|
71
|
+
createdAt: number;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof CertificateConfig
|
|
76
|
+
*/
|
|
77
|
+
updatedAt: number;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the CertificateConfig interface.
|
|
81
|
+
*/
|
|
82
|
+
export declare function instanceOfCertificateConfig(value: object): value is CertificateConfig;
|
|
83
|
+
export declare function CertificateConfigFromJSON(json: any): CertificateConfig;
|
|
84
|
+
export declare function CertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificateConfig;
|
|
85
|
+
export declare function CertificateConfigToJSON(json: any): CertificateConfig;
|
|
86
|
+
export declare function CertificateConfigToJSONTyped(value?: CertificateConfig | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
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.instanceOfCertificateConfig = instanceOfCertificateConfig;
|
|
17
|
+
exports.CertificateConfigFromJSON = CertificateConfigFromJSON;
|
|
18
|
+
exports.CertificateConfigFromJSONTyped = CertificateConfigFromJSONTyped;
|
|
19
|
+
exports.CertificateConfigToJSON = CertificateConfigToJSON;
|
|
20
|
+
exports.CertificateConfigToJSONTyped = CertificateConfigToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the CertificateConfig interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfCertificateConfig(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('portalId' in value) || value['portalId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
function CertificateConfigFromJSON(json) {
|
|
38
|
+
return CertificateConfigFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
function CertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'id': json['id'],
|
|
46
|
+
'portalId': json['portal_id'],
|
|
47
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
48
|
+
'enabled': json['enabled'],
|
|
49
|
+
'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
|
|
50
|
+
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
51
|
+
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
52
|
+
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
53
|
+
'createdAt': json['created_at'],
|
|
54
|
+
'updatedAt': json['updated_at'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
function CertificateConfigToJSON(json) {
|
|
58
|
+
return CertificateConfigToJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
function CertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'portal_id': value['portalId'],
|
|
67
|
+
'course_id': value['courseId'],
|
|
68
|
+
'enabled': value['enabled'],
|
|
69
|
+
'expiry_months': value['expiryMonths'],
|
|
70
|
+
'require_quiz_pass': value['requireQuizPass'],
|
|
71
|
+
'min_quiz_score': value['minQuizScore'],
|
|
72
|
+
'quiz_config_id': value['quizConfigId'],
|
|
73
|
+
'created_at': value['createdAt'],
|
|
74
|
+
'updated_at': value['updatedAt'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
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
|
+
* Public certificate verification view (no internal IDs)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CertificatePublic
|
|
16
|
+
*/
|
|
17
|
+
export interface CertificatePublic {
|
|
18
|
+
/**
|
|
19
|
+
* External ID (UUID) of the certificate
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CertificatePublic
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {CertificatePublicStatusEnum}
|
|
27
|
+
* @memberof CertificatePublic
|
|
28
|
+
*/
|
|
29
|
+
status: CertificatePublicStatusEnum;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CertificatePublic
|
|
34
|
+
*/
|
|
35
|
+
learnerName: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CertificatePublic
|
|
40
|
+
*/
|
|
41
|
+
courseName: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CertificatePublic
|
|
46
|
+
*/
|
|
47
|
+
portalName: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {CertificatePublicIssuanceReasonEnum}
|
|
51
|
+
* @memberof CertificatePublic
|
|
52
|
+
*/
|
|
53
|
+
issuanceReason: CertificatePublicIssuanceReasonEnum;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof CertificatePublic
|
|
58
|
+
*/
|
|
59
|
+
issuedAt: number;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CertificatePublic
|
|
64
|
+
*/
|
|
65
|
+
expiresAt?: number | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {number}
|
|
69
|
+
* @memberof CertificatePublic
|
|
70
|
+
*/
|
|
71
|
+
revokedAt?: number | null;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
export declare const CertificatePublicStatusEnum: {
|
|
77
|
+
readonly Active: "active";
|
|
78
|
+
readonly Revoked: "revoked";
|
|
79
|
+
readonly Expired: "expired";
|
|
80
|
+
};
|
|
81
|
+
export type CertificatePublicStatusEnum = typeof CertificatePublicStatusEnum[keyof typeof CertificatePublicStatusEnum];
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export declare const CertificatePublicIssuanceReasonEnum: {
|
|
86
|
+
readonly CourseCompletion: "course_completion";
|
|
87
|
+
readonly QuizPassed: "quiz_passed";
|
|
88
|
+
readonly Manual: "manual";
|
|
89
|
+
};
|
|
90
|
+
export type CertificatePublicIssuanceReasonEnum = typeof CertificatePublicIssuanceReasonEnum[keyof typeof CertificatePublicIssuanceReasonEnum];
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the CertificatePublic interface.
|
|
93
|
+
*/
|
|
94
|
+
export declare function instanceOfCertificatePublic(value: object): value is CertificatePublic;
|
|
95
|
+
export declare function CertificatePublicFromJSON(json: any): CertificatePublic;
|
|
96
|
+
export declare function CertificatePublicFromJSONTyped(json: any, ignoreDiscriminator: boolean): CertificatePublic;
|
|
97
|
+
export declare function CertificatePublicToJSON(json: any): CertificatePublic;
|
|
98
|
+
export declare function CertificatePublicToJSONTyped(value?: CertificatePublic | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,95 @@
|
|
|
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.CertificatePublicIssuanceReasonEnum = exports.CertificatePublicStatusEnum = void 0;
|
|
17
|
+
exports.instanceOfCertificatePublic = instanceOfCertificatePublic;
|
|
18
|
+
exports.CertificatePublicFromJSON = CertificatePublicFromJSON;
|
|
19
|
+
exports.CertificatePublicFromJSONTyped = CertificatePublicFromJSONTyped;
|
|
20
|
+
exports.CertificatePublicToJSON = CertificatePublicToJSON;
|
|
21
|
+
exports.CertificatePublicToJSONTyped = CertificatePublicToJSONTyped;
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
exports.CertificatePublicStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Revoked: 'revoked',
|
|
28
|
+
Expired: 'expired'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
exports.CertificatePublicIssuanceReasonEnum = {
|
|
34
|
+
CourseCompletion: 'course_completion',
|
|
35
|
+
QuizPassed: 'quiz_passed',
|
|
36
|
+
Manual: 'manual'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the CertificatePublic interface.
|
|
40
|
+
*/
|
|
41
|
+
function instanceOfCertificatePublic(value) {
|
|
42
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
49
|
+
return false;
|
|
50
|
+
if (!('portalName' in value) || value['portalName'] === undefined)
|
|
51
|
+
return false;
|
|
52
|
+
if (!('issuanceReason' in value) || value['issuanceReason'] === undefined)
|
|
53
|
+
return false;
|
|
54
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined)
|
|
55
|
+
return false;
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
function CertificatePublicFromJSON(json) {
|
|
59
|
+
return CertificatePublicFromJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function CertificatePublicFromJSONTyped(json, ignoreDiscriminator) {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'id': json['id'],
|
|
67
|
+
'status': json['status'],
|
|
68
|
+
'learnerName': json['learner_name'],
|
|
69
|
+
'courseName': json['course_name'],
|
|
70
|
+
'portalName': json['portal_name'],
|
|
71
|
+
'issuanceReason': json['issuance_reason'],
|
|
72
|
+
'issuedAt': json['issued_at'],
|
|
73
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
74
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
function CertificatePublicToJSON(json) {
|
|
78
|
+
return CertificatePublicToJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
function CertificatePublicToJSONTyped(value, ignoreDiscriminator = false) {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
return {
|
|
85
|
+
'id': value['id'],
|
|
86
|
+
'status': value['status'],
|
|
87
|
+
'learner_name': value['learnerName'],
|
|
88
|
+
'course_name': value['courseName'],
|
|
89
|
+
'portal_name': value['portalName'],
|
|
90
|
+
'issuance_reason': value['issuanceReason'],
|
|
91
|
+
'issued_at': value['issuedAt'],
|
|
92
|
+
'expires_at': value['expiresAt'],
|
|
93
|
+
'revoked_at': value['revokedAt'],
|
|
94
|
+
};
|
|
95
|
+
}
|