@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.
Files changed (79) 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/PostCertificate.d.ts +50 -0
  24. package/dist/esm/models/PostCertificate.js +49 -0
  25. package/dist/esm/models/PostCertificateConfig.d.ts +62 -0
  26. package/dist/esm/models/PostCertificateConfig.js +53 -0
  27. package/dist/esm/models/PostRevokeCertificate.d.ts +32 -0
  28. package/dist/esm/models/PostRevokeCertificate.js +41 -0
  29. package/dist/esm/models/PutCertificateConfig.d.ts +56 -0
  30. package/dist/esm/models/PutCertificateConfig.js +49 -0
  31. package/dist/esm/models/index.d.ts +10 -0
  32. package/dist/esm/models/index.js +10 -0
  33. package/dist/models/Certificate.d.ts +151 -0
  34. package/dist/models/Certificate.js +122 -0
  35. package/dist/models/CertificateConfig.d.ts +86 -0
  36. package/dist/models/CertificateConfig.js +76 -0
  37. package/dist/models/CertificatePublic.d.ts +98 -0
  38. package/dist/models/CertificatePublic.js +95 -0
  39. package/dist/models/EffectiveCertificateConfig.d.ts +62 -0
  40. package/dist/models/EffectiveCertificateConfig.js +62 -0
  41. package/dist/models/GetCertificateConfigList.d.ts +33 -0
  42. package/dist/models/GetCertificateConfigList.js +51 -0
  43. package/dist/models/GetCertificateList.d.ts +33 -0
  44. package/dist/models/GetCertificateList.js +51 -0
  45. package/dist/models/PostCertificate.d.ts +50 -0
  46. package/dist/models/PostCertificate.js +56 -0
  47. package/dist/models/PostCertificateConfig.d.ts +62 -0
  48. package/dist/models/PostCertificateConfig.js +60 -0
  49. package/dist/models/PostRevokeCertificate.d.ts +32 -0
  50. package/dist/models/PostRevokeCertificate.js +48 -0
  51. package/dist/models/PutCertificateConfig.d.ts +56 -0
  52. package/dist/models/PutCertificateConfig.js +56 -0
  53. package/dist/models/index.d.ts +10 -0
  54. package/dist/models/index.js +10 -0
  55. package/docs/Certificate.md +68 -0
  56. package/docs/CertificateApi.md +903 -0
  57. package/docs/CertificateConfig.md +52 -0
  58. package/docs/CertificatePublic.md +51 -0
  59. package/docs/EffectiveCertificateConfig.md +45 -0
  60. package/docs/GetCertificateConfigList.md +34 -0
  61. package/docs/GetCertificateList.md +34 -0
  62. package/docs/PostCertificate.md +41 -0
  63. package/docs/PostCertificateConfig.md +44 -0
  64. package/docs/PostRevokeCertificate.md +34 -0
  65. package/docs/PutCertificateConfig.md +42 -0
  66. package/package.json +1 -1
  67. package/src/apis/CertificateApi.ts +765 -0
  68. package/src/apis/index.ts +1 -0
  69. package/src/models/Certificate.ts +234 -0
  70. package/src/models/CertificateConfig.ts +142 -0
  71. package/src/models/CertificatePublic.ts +158 -0
  72. package/src/models/EffectiveCertificateConfig.ts +107 -0
  73. package/src/models/GetCertificateConfigList.ts +74 -0
  74. package/src/models/GetCertificateList.ts +74 -0
  75. package/src/models/PostCertificate.ts +90 -0
  76. package/src/models/PostCertificateConfig.ts +106 -0
  77. package/src/models/PostRevokeCertificate.ts +65 -0
  78. package/src/models/PutCertificateConfig.ts +97 -0
  79. package/src/models/index.ts +10 -0
@@ -0,0 +1,56 @@
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.instanceOfPutCertificateConfig = instanceOfPutCertificateConfig;
17
+ exports.PutCertificateConfigFromJSON = PutCertificateConfigFromJSON;
18
+ exports.PutCertificateConfigFromJSONTyped = PutCertificateConfigFromJSONTyped;
19
+ exports.PutCertificateConfigToJSON = PutCertificateConfigToJSON;
20
+ exports.PutCertificateConfigToJSONTyped = PutCertificateConfigToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PutCertificateConfig interface.
23
+ */
24
+ function instanceOfPutCertificateConfig(value) {
25
+ return true;
26
+ }
27
+ function PutCertificateConfigFromJSON(json) {
28
+ return PutCertificateConfigFromJSONTyped(json, false);
29
+ }
30
+ function PutCertificateConfigFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
36
+ 'expiryMonths': json['expiry_months'] == null ? undefined : json['expiry_months'],
37
+ 'requireQuizPass': json['require_quiz_pass'] == null ? undefined : json['require_quiz_pass'],
38
+ 'minQuizScore': json['min_quiz_score'] == null ? undefined : json['min_quiz_score'],
39
+ 'quizConfigId': json['quiz_config_id'] == null ? undefined : json['quiz_config_id'],
40
+ };
41
+ }
42
+ function PutCertificateConfigToJSON(json) {
43
+ return PutCertificateConfigToJSONTyped(json, false);
44
+ }
45
+ function PutCertificateConfigToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'enabled': value['enabled'],
51
+ 'expiry_months': value['expiryMonths'],
52
+ 'require_quiz_pass': value['requireQuizPass'],
53
+ 'min_quiz_score': value['minQuizScore'],
54
+ 'quiz_config_id': value['quizConfigId'],
55
+ };
56
+ }
@@ -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';
@@ -16,14 +16,20 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./Certificate"), exports);
20
+ __exportStar(require("./CertificateConfig"), exports);
21
+ __exportStar(require("./CertificatePublic"), exports);
19
22
  __exportStar(require("./CriteriaBasedSelection"), exports);
20
23
  __exportStar(require("./CriteriaBasedSelectionCriteria"), exports);
21
24
  __exportStar(require("./CriteriaBasedSelectionDistribution"), exports);
22
25
  __exportStar(require("./DownloadSupportTicketAttachment200Response"), exports);
26
+ __exportStar(require("./EffectiveCertificateConfig"), exports);
23
27
  __exportStar(require("./Essay"), exports);
24
28
  __exportStar(require("./Essay1"), exports);
25
29
  __exportStar(require("./FillInBlank"), exports);
26
30
  __exportStar(require("./FillInBlank1"), exports);
31
+ __exportStar(require("./GetCertificateConfigList"), exports);
32
+ __exportStar(require("./GetCertificateList"), exports);
27
33
  __exportStar(require("./GetChatMessage"), exports);
28
34
  __exportStar(require("./GetContent"), exports);
29
35
  __exportStar(require("./GetContentContentData"), exports);
@@ -168,6 +174,8 @@ __exportStar(require("./MultipleAnswer"), exports);
168
174
  __exportStar(require("./MultipleAnswer1"), exports);
169
175
  __exportStar(require("./NoAnswer"), exports);
170
176
  __exportStar(require("./Paginated"), exports);
177
+ __exportStar(require("./PostCertificate"), exports);
178
+ __exportStar(require("./PostCertificateConfig"), exports);
171
179
  __exportStar(require("./PostContentQuiz"), exports);
172
180
  __exportStar(require("./PostContentQuizAssignment"), exports);
173
181
  __exportStar(require("./PostContentQuizQuestionSelection"), exports);
@@ -203,6 +211,7 @@ __exportStar(require("./PostQuizQuestions"), exports);
203
211
  __exportStar(require("./PostQuizQuestionsQuestionsInner"), exports);
204
212
  __exportStar(require("./PostQuizSettings"), exports);
205
213
  __exportStar(require("./PostResetPassword"), exports);
214
+ __exportStar(require("./PostRevokeCertificate"), exports);
206
215
  __exportStar(require("./PostRole"), exports);
207
216
  __exportStar(require("./PostSendResetPassword"), exports);
208
217
  __exportStar(require("./PostSupportTicket"), exports);
@@ -210,6 +219,7 @@ __exportStar(require("./PostSupportTicketComment"), exports);
210
219
  __exportStar(require("./PostVerifyManifest"), exports);
211
220
  __exportStar(require("./PostVerifyManifestItemsInner"), exports);
212
221
  __exportStar(require("./PostVerifyManifestResourcesInner"), exports);
222
+ __exportStar(require("./PutCertificateConfig"), exports);
213
223
  __exportStar(require("./PutContent"), exports);
214
224
  __exportStar(require("./PutContentReorder"), exports);
215
225
  __exportStar(require("./PutContentVersion"), exports);
@@ -0,0 +1,68 @@
1
+
2
+ # Certificate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `portalId` | string
11
+ `userId` | string
12
+ `courseId` | string
13
+ `enrollmentId` | string
14
+ `issuedAt` | number
15
+ `expiresAt` | number
16
+ `issuedByUserId` | string
17
+ `issuanceReason` | string
18
+ `status` | string
19
+ `revokedAt` | number
20
+ `revokedByUserId` | string
21
+ `revocationReason` | string
22
+ `learnerName` | string
23
+ `courseName` | string
24
+ `portalName` | string
25
+ `createdAt` | number
26
+ `updatedAt` | number
27
+
28
+ ## Example
29
+
30
+ ```typescript
31
+ import type { Certificate } from '@easyedu/js-lsm-api'
32
+
33
+ // TODO: Update the object below with actual values
34
+ const example = {
35
+ "id": null,
36
+ "portalId": null,
37
+ "userId": null,
38
+ "courseId": null,
39
+ "enrollmentId": null,
40
+ "issuedAt": null,
41
+ "expiresAt": null,
42
+ "issuedByUserId": null,
43
+ "issuanceReason": null,
44
+ "status": null,
45
+ "revokedAt": null,
46
+ "revokedByUserId": null,
47
+ "revocationReason": null,
48
+ "learnerName": null,
49
+ "courseName": null,
50
+ "portalName": null,
51
+ "createdAt": null,
52
+ "updatedAt": null,
53
+ } satisfies Certificate
54
+
55
+ console.log(example)
56
+
57
+ // Convert the instance to a JSON string
58
+ const exampleJSON: string = JSON.stringify(example)
59
+ console.log(exampleJSON)
60
+
61
+ // Parse the JSON string back to an object
62
+ const exampleParsed = JSON.parse(exampleJSON) as Certificate
63
+ console.log(exampleParsed)
64
+ ```
65
+
66
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
67
+
68
+