@easyedu/js-lsm-api 1.48.0 → 1.50.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/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
- package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.js +16 -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/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
- package/dist/models/GetModuleInstructorBasicReportingEngagement.js +16 -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/GetModuleInstructorBasicReportingEngagement.md +8 -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/GetModuleInstructorBasicReportingEngagement.ts +36 -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
|
@@ -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,114 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const CertificateIssuanceReasonEnum = {
|
|
18
|
+
CourseCompletion: 'course_completion',
|
|
19
|
+
QuizPassed: 'quiz_passed',
|
|
20
|
+
Manual: 'manual'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const CertificateStatusEnum = {
|
|
26
|
+
Active: 'active',
|
|
27
|
+
Revoked: 'revoked'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the Certificate interface.
|
|
31
|
+
*/
|
|
32
|
+
export function instanceOfCertificate(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('portalId' in value) || value['portalId'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('issuanceReason' in value) || value['issuanceReason'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
48
|
+
return false;
|
|
49
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
50
|
+
return false;
|
|
51
|
+
if (!('portalName' in value) || value['portalName'] === undefined)
|
|
52
|
+
return false;
|
|
53
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
54
|
+
return false;
|
|
55
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
56
|
+
return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
export function CertificateFromJSON(json) {
|
|
60
|
+
return CertificateFromJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
export function CertificateFromJSONTyped(json, ignoreDiscriminator) {
|
|
63
|
+
if (json == null) {
|
|
64
|
+
return json;
|
|
65
|
+
}
|
|
66
|
+
return {
|
|
67
|
+
'id': json['id'],
|
|
68
|
+
'portalId': json['portal_id'],
|
|
69
|
+
'userId': json['user_id'],
|
|
70
|
+
'courseId': json['course_id'],
|
|
71
|
+
'enrollmentId': json['enrollment_id'] == null ? undefined : json['enrollment_id'],
|
|
72
|
+
'issuedAt': json['issued_at'],
|
|
73
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
74
|
+
'issuedByUserId': json['issued_by_user_id'] == null ? undefined : json['issued_by_user_id'],
|
|
75
|
+
'issuanceReason': json['issuance_reason'],
|
|
76
|
+
'status': json['status'],
|
|
77
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
78
|
+
'revokedByUserId': json['revoked_by_user_id'] == null ? undefined : json['revoked_by_user_id'],
|
|
79
|
+
'revocationReason': json['revocation_reason'] == null ? undefined : json['revocation_reason'],
|
|
80
|
+
'learnerName': json['learner_name'],
|
|
81
|
+
'courseName': json['course_name'],
|
|
82
|
+
'portalName': json['portal_name'],
|
|
83
|
+
'createdAt': json['created_at'],
|
|
84
|
+
'updatedAt': json['updated_at'],
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
export function CertificateToJSON(json) {
|
|
88
|
+
return CertificateToJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
export function CertificateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
91
|
+
if (value == null) {
|
|
92
|
+
return value;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
'id': value['id'],
|
|
96
|
+
'portal_id': value['portalId'],
|
|
97
|
+
'user_id': value['userId'],
|
|
98
|
+
'course_id': value['courseId'],
|
|
99
|
+
'enrollment_id': value['enrollmentId'],
|
|
100
|
+
'issued_at': value['issuedAt'],
|
|
101
|
+
'expires_at': value['expiresAt'],
|
|
102
|
+
'issued_by_user_id': value['issuedByUserId'],
|
|
103
|
+
'issuance_reason': value['issuanceReason'],
|
|
104
|
+
'status': value['status'],
|
|
105
|
+
'revoked_at': value['revokedAt'],
|
|
106
|
+
'revoked_by_user_id': value['revokedByUserId'],
|
|
107
|
+
'revocation_reason': value['revocationReason'],
|
|
108
|
+
'learner_name': value['learnerName'],
|
|
109
|
+
'course_name': value['courseName'],
|
|
110
|
+
'portal_name': value['portalName'],
|
|
111
|
+
'created_at': value['createdAt'],
|
|
112
|
+
'updated_at': value['updatedAt'],
|
|
113
|
+
};
|
|
114
|
+
}
|
|
@@ -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,69 @@
|
|
|
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 CertificateConfig interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfCertificateConfig(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('portalId' in value) || value['portalId'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('updatedAt' in value) || value['updatedAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
export function CertificateConfigFromJSON(json) {
|
|
31
|
+
return CertificateConfigFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
export function CertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'id': json['id'],
|
|
39
|
+
'portalId': json['portal_id'],
|
|
40
|
+
'courseId': json['course_id'] == null ? undefined : json['course_id'],
|
|
41
|
+
'enabled': json['enabled'],
|
|
42
|
+
'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
|
|
43
|
+
'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
|
|
44
|
+
'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
|
|
45
|
+
'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
|
|
46
|
+
'createdAt': json['created_at'],
|
|
47
|
+
'updatedAt': json['updated_at'],
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
export function CertificateConfigToJSON(json) {
|
|
51
|
+
return CertificateConfigToJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function CertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
|
|
54
|
+
if (value == null) {
|
|
55
|
+
return value;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': value['id'],
|
|
59
|
+
'portal_id': value['portalId'],
|
|
60
|
+
'course_id': value['courseId'],
|
|
61
|
+
'enabled': value['enabled'],
|
|
62
|
+
'expiry_months': value['expiryMonths'],
|
|
63
|
+
'require_quiz_pass': value['requireQuizPass'],
|
|
64
|
+
'min_quiz_score': value['minQuizScore'],
|
|
65
|
+
'quiz_config_id': value['quizConfigId'],
|
|
66
|
+
'created_at': value['createdAt'],
|
|
67
|
+
'updated_at': value['updatedAt'],
|
|
68
|
+
};
|
|
69
|
+
}
|
|
@@ -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,87 @@
|
|
|
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
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const CertificatePublicStatusEnum = {
|
|
18
|
+
Active: 'active',
|
|
19
|
+
Revoked: 'revoked',
|
|
20
|
+
Expired: 'expired'
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @export
|
|
24
|
+
*/
|
|
25
|
+
export const CertificatePublicIssuanceReasonEnum = {
|
|
26
|
+
CourseCompletion: 'course_completion',
|
|
27
|
+
QuizPassed: 'quiz_passed',
|
|
28
|
+
Manual: 'manual'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the CertificatePublic interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfCertificatePublic(value) {
|
|
34
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('status' in value) || value['status'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('learnerName' in value) || value['learnerName'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('courseName' in value) || value['courseName'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('portalName' in value) || value['portalName'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('issuanceReason' in value) || value['issuanceReason'] === undefined)
|
|
45
|
+
return false;
|
|
46
|
+
if (!('issuedAt' in value) || value['issuedAt'] === undefined)
|
|
47
|
+
return false;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
export function CertificatePublicFromJSON(json) {
|
|
51
|
+
return CertificatePublicFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
export function CertificatePublicFromJSONTyped(json, ignoreDiscriminator) {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
'id': json['id'],
|
|
59
|
+
'status': json['status'],
|
|
60
|
+
'learnerName': json['learner_name'],
|
|
61
|
+
'courseName': json['course_name'],
|
|
62
|
+
'portalName': json['portal_name'],
|
|
63
|
+
'issuanceReason': json['issuance_reason'],
|
|
64
|
+
'issuedAt': json['issued_at'],
|
|
65
|
+
'expiresAt': json['expires_at'] == null ? undefined : json['expires_at'],
|
|
66
|
+
'revokedAt': json['revoked_at'] == null ? undefined : json['revoked_at'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
export function CertificatePublicToJSON(json) {
|
|
70
|
+
return CertificatePublicToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
export function CertificatePublicToJSONTyped(value, ignoreDiscriminator = false) {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
'id': value['id'],
|
|
78
|
+
'status': value['status'],
|
|
79
|
+
'learner_name': value['learnerName'],
|
|
80
|
+
'course_name': value['courseName'],
|
|
81
|
+
'portal_name': value['portalName'],
|
|
82
|
+
'issuance_reason': value['issuanceReason'],
|
|
83
|
+
'issued_at': value['issuedAt'],
|
|
84
|
+
'expires_at': value['expiresAt'],
|
|
85
|
+
'revoked_at': value['revokedAt'],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
* Resolved effective config for a course (course override merged with portal default)
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EffectiveCertificateConfig
|
|
16
|
+
*/
|
|
17
|
+
export interface EffectiveCertificateConfig {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof EffectiveCertificateConfig
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof EffectiveCertificateConfig
|
|
28
|
+
*/
|
|
29
|
+
expiryMonths?: number | null;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof EffectiveCertificateConfig
|
|
34
|
+
*/
|
|
35
|
+
requireQuizPass: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof EffectiveCertificateConfig
|
|
40
|
+
*/
|
|
41
|
+
minQuizScore?: number | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof EffectiveCertificateConfig
|
|
46
|
+
*/
|
|
47
|
+
quizConfigId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* External ID of the config that resolved this (course override or portal default)
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof EffectiveCertificateConfig
|
|
52
|
+
*/
|
|
53
|
+
sourceConfigId?: string | null;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Check if a given object implements the EffectiveCertificateConfig interface.
|
|
57
|
+
*/
|
|
58
|
+
export declare function instanceOfEffectiveCertificateConfig(value: object): value is EffectiveCertificateConfig;
|
|
59
|
+
export declare function EffectiveCertificateConfigFromJSON(json: any): EffectiveCertificateConfig;
|
|
60
|
+
export declare function EffectiveCertificateConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): EffectiveCertificateConfig;
|
|
61
|
+
export declare function EffectiveCertificateConfigToJSON(json: any): EffectiveCertificateConfig;
|
|
62
|
+
export declare function EffectiveCertificateConfigToJSONTyped(value?: EffectiveCertificateConfig | null, ignoreDiscriminator?: boolean): any;
|