@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,52 @@
1
+
2
+ # CertificateConfig
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `id` | string
10
+ `portalId` | string
11
+ `courseId` | string
12
+ `enabled` | boolean
13
+ `expiryMonths` | number
14
+ `requireQuizPass` | boolean
15
+ `minQuizScore` | number
16
+ `quizConfigId` | string
17
+ `createdAt` | number
18
+ `updatedAt` | number
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { CertificateConfig } from '@easyedu/js-lsm-api'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "portalId": null,
29
+ "courseId": null,
30
+ "enabled": null,
31
+ "expiryMonths": null,
32
+ "requireQuizPass": null,
33
+ "minQuizScore": null,
34
+ "quizConfigId": null,
35
+ "createdAt": null,
36
+ "updatedAt": null,
37
+ } satisfies CertificateConfig
38
+
39
+ console.log(example)
40
+
41
+ // Convert the instance to a JSON string
42
+ const exampleJSON: string = JSON.stringify(example)
43
+ console.log(exampleJSON)
44
+
45
+ // Parse the JSON string back to an object
46
+ const exampleParsed = JSON.parse(exampleJSON) as CertificateConfig
47
+ console.log(exampleParsed)
48
+ ```
49
+
50
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
51
+
52
+
@@ -0,0 +1,51 @@
1
+
2
+ # CertificatePublic
3
+
4
+ Public certificate verification view (no internal IDs)
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `id` | string
11
+ `status` | string
12
+ `learnerName` | string
13
+ `courseName` | string
14
+ `portalName` | string
15
+ `issuanceReason` | string
16
+ `issuedAt` | number
17
+ `expiresAt` | number
18
+ `revokedAt` | number
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import type { CertificatePublic } from '@easyedu/js-lsm-api'
24
+
25
+ // TODO: Update the object below with actual values
26
+ const example = {
27
+ "id": null,
28
+ "status": null,
29
+ "learnerName": null,
30
+ "courseName": null,
31
+ "portalName": null,
32
+ "issuanceReason": null,
33
+ "issuedAt": null,
34
+ "expiresAt": null,
35
+ "revokedAt": null,
36
+ } satisfies CertificatePublic
37
+
38
+ console.log(example)
39
+
40
+ // Convert the instance to a JSON string
41
+ const exampleJSON: string = JSON.stringify(example)
42
+ console.log(exampleJSON)
43
+
44
+ // Parse the JSON string back to an object
45
+ const exampleParsed = JSON.parse(exampleJSON) as CertificatePublic
46
+ console.log(exampleParsed)
47
+ ```
48
+
49
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
50
+
51
+
@@ -0,0 +1,45 @@
1
+
2
+ # EffectiveCertificateConfig
3
+
4
+ Resolved effective config for a course (course override merged with portal default)
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `enabled` | boolean
11
+ `expiryMonths` | number
12
+ `requireQuizPass` | boolean
13
+ `minQuizScore` | number
14
+ `quizConfigId` | string
15
+ `sourceConfigId` | string
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { EffectiveCertificateConfig } from '@easyedu/js-lsm-api'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "enabled": null,
25
+ "expiryMonths": null,
26
+ "requireQuizPass": null,
27
+ "minQuizScore": null,
28
+ "quizConfigId": null,
29
+ "sourceConfigId": null,
30
+ } satisfies EffectiveCertificateConfig
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as EffectiveCertificateConfig
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -0,0 +1,34 @@
1
+
2
+ # GetCertificateConfigList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `items` | [Array<CertificateConfig>](CertificateConfig.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { GetCertificateConfigList } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "items": null,
19
+ } satisfies GetCertificateConfigList
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as GetCertificateConfigList
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,34 @@
1
+
2
+ # GetCertificateList
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `items` | [Array<Certificate>](Certificate.md)
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { GetCertificateList } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "items": null,
19
+ } satisfies GetCertificateList
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as GetCertificateList
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,41 @@
1
+
2
+ # PostCertificate
3
+
4
+ Manually issue a certificate
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `userId` | string
11
+ `expiresAt` | number
12
+ `issuedAt` | number
13
+ `note` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { PostCertificate } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "userId": null,
23
+ "expiresAt": null,
24
+ "issuedAt": null,
25
+ "note": null,
26
+ } satisfies PostCertificate
27
+
28
+ console.log(example)
29
+
30
+ // Convert the instance to a JSON string
31
+ const exampleJSON: string = JSON.stringify(example)
32
+ console.log(exampleJSON)
33
+
34
+ // Parse the JSON string back to an object
35
+ const exampleParsed = JSON.parse(exampleJSON) as PostCertificate
36
+ console.log(exampleParsed)
37
+ ```
38
+
39
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
40
+
41
+
@@ -0,0 +1,44 @@
1
+
2
+ # PostCertificateConfig
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `courseId` | string
10
+ `enabled` | boolean
11
+ `expiryMonths` | number
12
+ `requireQuizPass` | boolean
13
+ `minQuizScore` | number
14
+ `quizConfigId` | string
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import type { PostCertificateConfig } from '@easyedu/js-lsm-api'
20
+
21
+ // TODO: Update the object below with actual values
22
+ const example = {
23
+ "courseId": null,
24
+ "enabled": null,
25
+ "expiryMonths": null,
26
+ "requireQuizPass": null,
27
+ "minQuizScore": null,
28
+ "quizConfigId": null,
29
+ } satisfies PostCertificateConfig
30
+
31
+ console.log(example)
32
+
33
+ // Convert the instance to a JSON string
34
+ const exampleJSON: string = JSON.stringify(example)
35
+ console.log(exampleJSON)
36
+
37
+ // Parse the JSON string back to an object
38
+ const exampleParsed = JSON.parse(exampleJSON) as PostCertificateConfig
39
+ console.log(exampleParsed)
40
+ ```
41
+
42
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
43
+
44
+
@@ -0,0 +1,34 @@
1
+
2
+ # PostRevokeCertificate
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `reason` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PostRevokeCertificate } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "reason": null,
19
+ } satisfies PostRevokeCertificate
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PostRevokeCertificate
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
@@ -0,0 +1,42 @@
1
+
2
+ # PutCertificateConfig
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `enabled` | boolean
10
+ `expiryMonths` | number
11
+ `requireQuizPass` | boolean
12
+ `minQuizScore` | number
13
+ `quizConfigId` | string
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import type { PutCertificateConfig } from '@easyedu/js-lsm-api'
19
+
20
+ // TODO: Update the object below with actual values
21
+ const example = {
22
+ "enabled": null,
23
+ "expiryMonths": null,
24
+ "requireQuizPass": null,
25
+ "minQuizScore": null,
26
+ "quizConfigId": null,
27
+ } satisfies PutCertificateConfig
28
+
29
+ console.log(example)
30
+
31
+ // Convert the instance to a JSON string
32
+ const exampleJSON: string = JSON.stringify(example)
33
+ console.log(exampleJSON)
34
+
35
+ // Parse the JSON string back to an object
36
+ const exampleParsed = JSON.parse(exampleJSON) as PutCertificateConfig
37
+ console.log(exampleParsed)
38
+ ```
39
+
40
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
41
+
42
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.49.0",
3
+ "version": "1.51.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {