@easyedu/js-lsm-api 1.51.0 → 1.52.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 (91) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +29 -2
  3. package/dist/apis/CourseCatalogApi.d.ts +123 -0
  4. package/dist/apis/CourseCatalogApi.js +313 -0
  5. package/dist/apis/CourseShareApi.d.ts +153 -0
  6. package/dist/apis/CourseShareApi.js +385 -0
  7. package/dist/apis/PortalSublicenseApi.d.ts +36 -0
  8. package/dist/apis/PortalSublicenseApi.js +79 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/esm/apis/CourseCatalogApi.d.ts +123 -0
  12. package/dist/esm/apis/CourseCatalogApi.js +309 -0
  13. package/dist/esm/apis/CourseShareApi.d.ts +153 -0
  14. package/dist/esm/apis/CourseShareApi.js +381 -0
  15. package/dist/esm/apis/PortalSublicenseApi.d.ts +36 -0
  16. package/dist/esm/apis/PortalSublicenseApi.js +75 -0
  17. package/dist/esm/apis/index.d.ts +3 -0
  18. package/dist/esm/apis/index.js +3 -0
  19. package/dist/esm/models/CourseCatalog.d.ts +44 -0
  20. package/dist/esm/models/CourseCatalog.js +51 -0
  21. package/dist/esm/models/CourseShare.d.ts +88 -0
  22. package/dist/esm/models/CourseShare.js +85 -0
  23. package/dist/esm/models/PortalSublicense.d.ts +65 -0
  24. package/dist/esm/models/PortalSublicense.js +61 -0
  25. package/dist/esm/models/PostCourseCatalog.d.ts +38 -0
  26. package/dist/esm/models/PostCourseCatalog.js +45 -0
  27. package/dist/esm/models/PostOfferCatalog.d.ts +59 -0
  28. package/dist/esm/models/PostOfferCatalog.js +59 -0
  29. package/dist/esm/models/PostOfferCatalogResponse.d.ts +32 -0
  30. package/dist/esm/models/PostOfferCatalogResponse.js +43 -0
  31. package/dist/esm/models/PostOfferCourse.d.ts +59 -0
  32. package/dist/esm/models/PostOfferCourse.js +59 -0
  33. package/dist/esm/models/PostOfferCourseResponse.d.ts +49 -0
  34. package/dist/esm/models/PostOfferCourseResponse.js +57 -0
  35. package/dist/esm/models/PutCourseCatalog.d.ts +38 -0
  36. package/dist/esm/models/PutCourseCatalog.js +43 -0
  37. package/dist/esm/models/PutPortalSublicense.d.ts +46 -0
  38. package/dist/esm/models/PutPortalSublicense.js +45 -0
  39. package/dist/esm/models/index.d.ts +10 -0
  40. package/dist/esm/models/index.js +10 -0
  41. package/dist/models/CourseCatalog.d.ts +44 -0
  42. package/dist/models/CourseCatalog.js +58 -0
  43. package/dist/models/CourseShare.d.ts +88 -0
  44. package/dist/models/CourseShare.js +93 -0
  45. package/dist/models/PortalSublicense.d.ts +65 -0
  46. package/dist/models/PortalSublicense.js +69 -0
  47. package/dist/models/PostCourseCatalog.d.ts +38 -0
  48. package/dist/models/PostCourseCatalog.js +52 -0
  49. package/dist/models/PostOfferCatalog.d.ts +59 -0
  50. package/dist/models/PostOfferCatalog.js +67 -0
  51. package/dist/models/PostOfferCatalogResponse.d.ts +32 -0
  52. package/dist/models/PostOfferCatalogResponse.js +50 -0
  53. package/dist/models/PostOfferCourse.d.ts +59 -0
  54. package/dist/models/PostOfferCourse.js +67 -0
  55. package/dist/models/PostOfferCourseResponse.d.ts +49 -0
  56. package/dist/models/PostOfferCourseResponse.js +65 -0
  57. package/dist/models/PutCourseCatalog.d.ts +38 -0
  58. package/dist/models/PutCourseCatalog.js +50 -0
  59. package/dist/models/PutPortalSublicense.d.ts +46 -0
  60. package/dist/models/PutPortalSublicense.js +52 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/docs/CourseCatalog.md +38 -0
  64. package/docs/CourseCatalogApi.md +476 -0
  65. package/docs/CourseShare.md +46 -0
  66. package/docs/CourseShareApi.md +609 -0
  67. package/docs/PortalSublicense.md +42 -0
  68. package/docs/PortalSublicenseApi.md +81 -0
  69. package/docs/PostCourseCatalog.md +36 -0
  70. package/docs/PostOfferCatalog.md +40 -0
  71. package/docs/PostOfferCatalogResponse.md +34 -0
  72. package/docs/PostOfferCourse.md +40 -0
  73. package/docs/PostOfferCourseResponse.md +36 -0
  74. package/docs/PutCourseCatalog.md +36 -0
  75. package/docs/PutPortalSublicense.md +39 -0
  76. package/package.json +1 -1
  77. package/src/apis/CourseCatalogApi.ts +395 -0
  78. package/src/apis/CourseShareApi.ts +480 -0
  79. package/src/apis/PortalSublicenseApi.ts +95 -0
  80. package/src/apis/index.ts +3 -0
  81. package/src/models/CourseCatalog.ts +84 -0
  82. package/src/models/CourseShare.ts +144 -0
  83. package/src/models/PortalSublicense.ts +111 -0
  84. package/src/models/PostCourseCatalog.ts +74 -0
  85. package/src/models/PostOfferCatalog.ts +103 -0
  86. package/src/models/PostOfferCatalogResponse.ts +66 -0
  87. package/src/models/PostOfferCourse.ts +103 -0
  88. package/src/models/PostOfferCourseResponse.ts +89 -0
  89. package/src/models/PutCourseCatalog.ts +73 -0
  90. package/src/models/PutPortalSublicense.ts +83 -0
  91. package/src/models/index.ts +10 -0
@@ -0,0 +1,73 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface PutCourseCatalog
20
+ */
21
+ export interface PutCourseCatalog {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PutCourseCatalog
26
+ */
27
+ name?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PutCourseCatalog
32
+ */
33
+ description?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the PutCourseCatalog interface.
38
+ */
39
+ export function instanceOfPutCourseCatalog(value: object): value is PutCourseCatalog {
40
+ return true;
41
+ }
42
+
43
+ export function PutCourseCatalogFromJSON(json: any): PutCourseCatalog {
44
+ return PutCourseCatalogFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function PutCourseCatalogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutCourseCatalog {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'name': json['name'] == null ? undefined : json['name'],
54
+ 'description': json['description'] == null ? undefined : json['description'],
55
+ };
56
+ }
57
+
58
+ export function PutCourseCatalogToJSON(json: any): PutCourseCatalog {
59
+ return PutCourseCatalogToJSONTyped(json, false);
60
+ }
61
+
62
+ export function PutCourseCatalogToJSONTyped(value?: PutCourseCatalog | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'name': value['name'],
70
+ 'description': value['description'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,83 @@
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
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * All fields are optional. Omit a field to leave it unchanged. Send `null` to
18
+ * clear it (unlimited seats / no license window).
19
+ *
20
+ * @export
21
+ * @interface PutPortalSublicense
22
+ */
23
+ export interface PutPortalSublicense {
24
+ /**
25
+ * Maximum active enrollments. null = unlimited.
26
+ * @type {number}
27
+ * @memberof PutPortalSublicense
28
+ */
29
+ seatLimit?: number | null;
30
+ /**
31
+ * Unix epoch seconds when the license becomes active. null = no start gate.
32
+ * @type {number}
33
+ * @memberof PutPortalSublicense
34
+ */
35
+ licenseStartAt?: number | null;
36
+ /**
37
+ * Unix epoch seconds when the license expires. null = never expires.
38
+ * @type {number}
39
+ * @memberof PutPortalSublicense
40
+ */
41
+ licenseEndAt?: number | null;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the PutPortalSublicense interface.
46
+ */
47
+ export function instanceOfPutPortalSublicense(value: object): value is PutPortalSublicense {
48
+ return true;
49
+ }
50
+
51
+ export function PutPortalSublicenseFromJSON(json: any): PutPortalSublicense {
52
+ return PutPortalSublicenseFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function PutPortalSublicenseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalSublicense {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'seatLimit': json['seat_limit'] == null ? undefined : json['seat_limit'],
62
+ 'licenseStartAt': json['license_start_at'] == null ? undefined : json['license_start_at'],
63
+ 'licenseEndAt': json['license_end_at'] == null ? undefined : json['license_end_at'],
64
+ };
65
+ }
66
+
67
+ export function PutPortalSublicenseToJSON(json: any): PutPortalSublicense {
68
+ return PutPortalSublicenseToJSONTyped(json, false);
69
+ }
70
+
71
+ export function PutPortalSublicenseToJSONTyped(value?: PutPortalSublicense | null, ignoreDiscriminator: boolean = false): any {
72
+ if (value == null) {
73
+ return value;
74
+ }
75
+
76
+ return {
77
+
78
+ 'seat_limit': value['seatLimit'],
79
+ 'license_start_at': value['licenseStartAt'],
80
+ 'license_end_at': value['licenseEndAt'],
81
+ };
82
+ }
83
+
@@ -3,6 +3,8 @@
3
3
  export * from './Certificate';
4
4
  export * from './CertificateConfig';
5
5
  export * from './CertificatePublic';
6
+ export * from './CourseCatalog';
7
+ export * from './CourseShare';
6
8
  export * from './CriteriaBasedSelection';
7
9
  export * from './CriteriaBasedSelectionCriteria';
8
10
  export * from './CriteriaBasedSelectionDistribution';
@@ -158,6 +160,7 @@ export * from './MultipleAnswer';
158
160
  export * from './MultipleAnswer1';
159
161
  export * from './NoAnswer';
160
162
  export * from './Paginated';
163
+ export * from './PortalSublicense';
161
164
  export * from './PostCertificate';
162
165
  export * from './PostCertificateConfig';
163
166
  export * from './PostContentQuiz';
@@ -169,6 +172,7 @@ export * from './PostContentUpload';
169
172
  export * from './PostConversation';
170
173
  export * from './PostConversationResponse';
171
174
  export * from './PostCourse';
175
+ export * from './PostCourseCatalog';
172
176
  export * from './PostCourseEnrollment';
173
177
  export * from './PostCourseExport';
174
178
  export * from './PostLogin';
@@ -176,6 +180,10 @@ export * from './PostManualQuestionSelection';
176
180
  export * from './PostMessage';
177
181
  export * from './PostMessageResponse';
178
182
  export * from './PostModule';
183
+ export * from './PostOfferCatalog';
184
+ export * from './PostOfferCatalogResponse';
185
+ export * from './PostOfferCourse';
186
+ export * from './PostOfferCourseResponse';
179
187
  export * from './PostPortal';
180
188
  export * from './PostPortalInvite';
181
189
  export * from './PostQuestion';
@@ -208,10 +216,12 @@ export * from './PutContent';
208
216
  export * from './PutContentReorder';
209
217
  export * from './PutContentVersion';
210
218
  export * from './PutCourse';
219
+ export * from './PutCourseCatalog';
211
220
  export * from './PutCourseEnrollment';
212
221
  export * from './PutModule';
213
222
  export * from './PutModuleReorder';
214
223
  export * from './PutPortalBranding';
224
+ export * from './PutPortalSublicense';
215
225
  export * from './PutQuestion';
216
226
  export * from './PutQuestionAnswerChoicesInner';
217
227
  export * from './PutQuiz';