@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.
Files changed (85) hide show
  1. package/.openapi-generator/FILES +22 -0
  2. package/README.md +31 -8
  3. package/dist/apis/CertificateApi.d.ts +237 -0
  4. package/dist/apis/CertificateApi.js +587 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/esm/apis/CertificateApi.d.ts +237 -0
  8. package/dist/esm/apis/CertificateApi.js +583 -0
  9. package/dist/esm/apis/index.d.ts +1 -0
  10. package/dist/esm/apis/index.js +1 -0
  11. package/dist/esm/models/Certificate.d.ts +151 -0
  12. package/dist/esm/models/Certificate.js +114 -0
  13. package/dist/esm/models/CertificateConfig.d.ts +86 -0
  14. package/dist/esm/models/CertificateConfig.js +69 -0
  15. package/dist/esm/models/CertificatePublic.d.ts +98 -0
  16. package/dist/esm/models/CertificatePublic.js +87 -0
  17. package/dist/esm/models/EffectiveCertificateConfig.d.ts +62 -0
  18. package/dist/esm/models/EffectiveCertificateConfig.js +55 -0
  19. package/dist/esm/models/GetCertificateConfigList.d.ts +33 -0
  20. package/dist/esm/models/GetCertificateConfigList.js +44 -0
  21. package/dist/esm/models/GetCertificateList.d.ts +33 -0
  22. package/dist/esm/models/GetCertificateList.js +44 -0
  23. package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
  24. package/dist/esm/models/GetModuleInstructorBasicReportingEngagement.js +16 -0
  25. package/dist/esm/models/PostCertificate.d.ts +50 -0
  26. package/dist/esm/models/PostCertificate.js +49 -0
  27. package/dist/esm/models/PostCertificateConfig.d.ts +62 -0
  28. package/dist/esm/models/PostCertificateConfig.js +53 -0
  29. package/dist/esm/models/PostRevokeCertificate.d.ts +32 -0
  30. package/dist/esm/models/PostRevokeCertificate.js +41 -0
  31. package/dist/esm/models/PutCertificateConfig.d.ts +56 -0
  32. package/dist/esm/models/PutCertificateConfig.js +49 -0
  33. package/dist/esm/models/index.d.ts +10 -0
  34. package/dist/esm/models/index.js +10 -0
  35. package/dist/models/Certificate.d.ts +151 -0
  36. package/dist/models/Certificate.js +122 -0
  37. package/dist/models/CertificateConfig.d.ts +86 -0
  38. package/dist/models/CertificateConfig.js +76 -0
  39. package/dist/models/CertificatePublic.d.ts +98 -0
  40. package/dist/models/CertificatePublic.js +95 -0
  41. package/dist/models/EffectiveCertificateConfig.d.ts +62 -0
  42. package/dist/models/EffectiveCertificateConfig.js +62 -0
  43. package/dist/models/GetCertificateConfigList.d.ts +33 -0
  44. package/dist/models/GetCertificateConfigList.js +51 -0
  45. package/dist/models/GetCertificateList.d.ts +33 -0
  46. package/dist/models/GetCertificateList.js +51 -0
  47. package/dist/models/GetModuleInstructorBasicReportingEngagement.d.ts +24 -0
  48. package/dist/models/GetModuleInstructorBasicReportingEngagement.js +16 -0
  49. package/dist/models/PostCertificate.d.ts +50 -0
  50. package/dist/models/PostCertificate.js +56 -0
  51. package/dist/models/PostCertificateConfig.d.ts +62 -0
  52. package/dist/models/PostCertificateConfig.js +60 -0
  53. package/dist/models/PostRevokeCertificate.d.ts +32 -0
  54. package/dist/models/PostRevokeCertificate.js +48 -0
  55. package/dist/models/PutCertificateConfig.d.ts +56 -0
  56. package/dist/models/PutCertificateConfig.js +56 -0
  57. package/dist/models/index.d.ts +10 -0
  58. package/dist/models/index.js +10 -0
  59. package/docs/Certificate.md +68 -0
  60. package/docs/CertificateApi.md +903 -0
  61. package/docs/CertificateConfig.md +52 -0
  62. package/docs/CertificatePublic.md +51 -0
  63. package/docs/EffectiveCertificateConfig.md +45 -0
  64. package/docs/GetCertificateConfigList.md +34 -0
  65. package/docs/GetCertificateList.md +34 -0
  66. package/docs/GetModuleInstructorBasicReportingEngagement.md +8 -0
  67. package/docs/PostCertificate.md +41 -0
  68. package/docs/PostCertificateConfig.md +44 -0
  69. package/docs/PostRevokeCertificate.md +34 -0
  70. package/docs/PutCertificateConfig.md +42 -0
  71. package/package.json +1 -1
  72. package/src/apis/CertificateApi.ts +765 -0
  73. package/src/apis/index.ts +1 -0
  74. package/src/models/Certificate.ts +234 -0
  75. package/src/models/CertificateConfig.ts +142 -0
  76. package/src/models/CertificatePublic.ts +158 -0
  77. package/src/models/EffectiveCertificateConfig.ts +107 -0
  78. package/src/models/GetCertificateConfigList.ts +74 -0
  79. package/src/models/GetCertificateList.ts +74 -0
  80. package/src/models/GetModuleInstructorBasicReportingEngagement.ts +36 -0
  81. package/src/models/PostCertificate.ts +90 -0
  82. package/src/models/PostCertificateConfig.ts +106 -0
  83. package/src/models/PostRevokeCertificate.ts +65 -0
  84. package/src/models/PutCertificateConfig.ts +97 -0
  85. package/src/models/index.ts +10 -0
@@ -1,11 +1,17 @@
1
+ export * from './Certificate';
2
+ export * from './CertificateConfig';
3
+ export * from './CertificatePublic';
1
4
  export * from './CriteriaBasedSelection';
2
5
  export * from './CriteriaBasedSelectionCriteria';
3
6
  export * from './CriteriaBasedSelectionDistribution';
4
7
  export * from './DownloadSupportTicketAttachment200Response';
8
+ export * from './EffectiveCertificateConfig';
5
9
  export * from './Essay';
6
10
  export * from './Essay1';
7
11
  export * from './FillInBlank';
8
12
  export * from './FillInBlank1';
13
+ export * from './GetCertificateConfigList';
14
+ export * from './GetCertificateList';
9
15
  export * from './GetChatMessage';
10
16
  export * from './GetContent';
11
17
  export * from './GetContentContentData';
@@ -150,6 +156,8 @@ export * from './MultipleAnswer';
150
156
  export * from './MultipleAnswer1';
151
157
  export * from './NoAnswer';
152
158
  export * from './Paginated';
159
+ export * from './PostCertificate';
160
+ export * from './PostCertificateConfig';
153
161
  export * from './PostContentQuiz';
154
162
  export * from './PostContentQuizAssignment';
155
163
  export * from './PostContentQuizQuestionSelection';
@@ -185,6 +193,7 @@ export * from './PostQuizQuestions';
185
193
  export * from './PostQuizQuestionsQuestionsInner';
186
194
  export * from './PostQuizSettings';
187
195
  export * from './PostResetPassword';
196
+ export * from './PostRevokeCertificate';
188
197
  export * from './PostRole';
189
198
  export * from './PostSendResetPassword';
190
199
  export * from './PostSupportTicket';
@@ -192,6 +201,7 @@ export * from './PostSupportTicketComment';
192
201
  export * from './PostVerifyManifest';
193
202
  export * from './PostVerifyManifestItemsInner';
194
203
  export * from './PostVerifyManifestResourcesInner';
204
+ export * from './PutCertificateConfig';
195
205
  export * from './PutContent';
196
206
  export * from './PutContentReorder';
197
207
  export * from './PutContentVersion';
@@ -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;