@easyedu/js-lsm-api 1.62.0 → 1.64.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 (61) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +22 -2
  3. package/dist/apis/ContentApi.d.ts +19 -0
  4. package/dist/apis/ContentApi.js +48 -0
  5. package/dist/apis/CourseApi.d.ts +17 -0
  6. package/dist/apis/CourseApi.js +40 -0
  7. package/dist/apis/DispatchApi.d.ts +44 -0
  8. package/dist/apis/DispatchApi.js +104 -0
  9. package/dist/apis/ModuleApi.d.ts +18 -0
  10. package/dist/apis/ModuleApi.js +44 -0
  11. package/dist/apis/PlayerApi.d.ts +183 -0
  12. package/dist/apis/PlayerApi.js +454 -0
  13. package/dist/apis/UserApi.d.ts +32 -0
  14. package/dist/apis/UserApi.js +82 -0
  15. package/dist/apis/index.d.ts +2 -0
  16. package/dist/apis/index.js +2 -0
  17. package/dist/esm/apis/ContentApi.d.ts +19 -0
  18. package/dist/esm/apis/ContentApi.js +48 -0
  19. package/dist/esm/apis/CourseApi.d.ts +17 -0
  20. package/dist/esm/apis/CourseApi.js +40 -0
  21. package/dist/esm/apis/DispatchApi.d.ts +44 -0
  22. package/dist/esm/apis/DispatchApi.js +100 -0
  23. package/dist/esm/apis/ModuleApi.d.ts +18 -0
  24. package/dist/esm/apis/ModuleApi.js +44 -0
  25. package/dist/esm/apis/PlayerApi.d.ts +183 -0
  26. package/dist/esm/apis/PlayerApi.js +450 -0
  27. package/dist/esm/apis/UserApi.d.ts +32 -0
  28. package/dist/esm/apis/UserApi.js +82 -0
  29. package/dist/esm/apis/index.d.ts +2 -0
  30. package/dist/esm/apis/index.js +2 -0
  31. package/dist/esm/models/PostSignupRequest.d.ts +68 -0
  32. package/dist/esm/models/PostSignupRequest.js +67 -0
  33. package/dist/esm/models/PostSignupRequestResponse.d.ts +32 -0
  34. package/dist/esm/models/PostSignupRequestResponse.js +43 -0
  35. package/dist/esm/models/index.d.ts +2 -0
  36. package/dist/esm/models/index.js +2 -0
  37. package/dist/models/PostSignupRequest.d.ts +68 -0
  38. package/dist/models/PostSignupRequest.js +74 -0
  39. package/dist/models/PostSignupRequestResponse.d.ts +32 -0
  40. package/dist/models/PostSignupRequestResponse.js +50 -0
  41. package/dist/models/index.d.ts +2 -0
  42. package/dist/models/index.js +2 -0
  43. package/docs/ContentApi.md +76 -0
  44. package/docs/CourseApi.md +70 -0
  45. package/docs/DispatchApi.md +134 -0
  46. package/docs/ModuleApi.md +73 -0
  47. package/docs/PlayerApi.md +760 -0
  48. package/docs/PostSignupRequest.md +46 -0
  49. package/docs/PostSignupRequestResponse.md +34 -0
  50. package/docs/UserApi.md +134 -0
  51. package/package.json +1 -1
  52. package/src/apis/ContentApi.ts +68 -0
  53. package/src/apis/CourseApi.ts +50 -0
  54. package/src/apis/DispatchApi.ts +106 -0
  55. package/src/apis/ModuleApi.ts +59 -0
  56. package/src/apis/PlayerApi.ts +559 -0
  57. package/src/apis/UserApi.ts +112 -0
  58. package/src/apis/index.ts +2 -0
  59. package/src/models/PostSignupRequest.ts +120 -0
  60. package/src/models/PostSignupRequestResponse.ts +66 -0
  61. package/src/models/index.ts +2 -0
package/src/apis/index.ts CHANGED
@@ -6,8 +6,10 @@ export * from './ContentApi';
6
6
  export * from './CourseApi';
7
7
  export * from './CourseCatalogApi';
8
8
  export * from './CourseShareApi';
9
+ export * from './DispatchApi';
9
10
  export * from './ModuleApi';
10
11
  export * from './OtherApi';
12
+ export * from './PlayerApi';
11
13
  export * from './PortalApi';
12
14
  export * from './PortalSublicenseApi';
13
15
  export * from './QuestionApi';
@@ -0,0 +1,120 @@
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 PostSignupRequest
20
+ */
21
+ export interface PostSignupRequest {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostSignupRequest
26
+ */
27
+ firstName: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof PostSignupRequest
32
+ */
33
+ lastName: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof PostSignupRequest
38
+ */
39
+ email: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof PostSignupRequest
44
+ */
45
+ password: string;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof PostSignupRequest
50
+ */
51
+ organization: string;
52
+ /**
53
+ * Signup/onboarding role supplied by the user; not an LMS RBAC role.
54
+ * @type {string}
55
+ * @memberof PostSignupRequest
56
+ */
57
+ jobRole: string;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof PostSignupRequest
62
+ */
63
+ learnerCount: number;
64
+ }
65
+
66
+ /**
67
+ * Check if a given object implements the PostSignupRequest interface.
68
+ */
69
+ export function instanceOfPostSignupRequest(value: object): value is PostSignupRequest {
70
+ if (!('firstName' in value) || value['firstName'] === undefined) return false;
71
+ if (!('lastName' in value) || value['lastName'] === undefined) return false;
72
+ if (!('email' in value) || value['email'] === undefined) return false;
73
+ if (!('password' in value) || value['password'] === undefined) return false;
74
+ if (!('organization' in value) || value['organization'] === undefined) return false;
75
+ if (!('jobRole' in value) || value['jobRole'] === undefined) return false;
76
+ if (!('learnerCount' in value) || value['learnerCount'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function PostSignupRequestFromJSON(json: any): PostSignupRequest {
81
+ return PostSignupRequestFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function PostSignupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSignupRequest {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'firstName': json['first_name'],
91
+ 'lastName': json['last_name'],
92
+ 'email': json['email'],
93
+ 'password': json['password'],
94
+ 'organization': json['organization'],
95
+ 'jobRole': json['job_role'],
96
+ 'learnerCount': json['learner_count'],
97
+ };
98
+ }
99
+
100
+ export function PostSignupRequestToJSON(json: any): PostSignupRequest {
101
+ return PostSignupRequestToJSONTyped(json, false);
102
+ }
103
+
104
+ export function PostSignupRequestToJSONTyped(value?: PostSignupRequest | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'first_name': value['firstName'],
112
+ 'last_name': value['lastName'],
113
+ 'email': value['email'],
114
+ 'password': value['password'],
115
+ 'organization': value['organization'],
116
+ 'job_role': value['jobRole'],
117
+ 'learner_count': value['learnerCount'],
118
+ };
119
+ }
120
+
@@ -0,0 +1,66 @@
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 PostSignupRequestResponse
20
+ */
21
+ export interface PostSignupRequestResponse {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostSignupRequestResponse
26
+ */
27
+ message: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostSignupRequestResponse interface.
32
+ */
33
+ export function instanceOfPostSignupRequestResponse(value: object): value is PostSignupRequestResponse {
34
+ if (!('message' in value) || value['message'] === undefined) return false;
35
+ return true;
36
+ }
37
+
38
+ export function PostSignupRequestResponseFromJSON(json: any): PostSignupRequestResponse {
39
+ return PostSignupRequestResponseFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function PostSignupRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSignupRequestResponse {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+
52
+ export function PostSignupRequestResponseToJSON(json: any): PostSignupRequestResponse {
53
+ return PostSignupRequestResponseToJSONTyped(json, false);
54
+ }
55
+
56
+ export function PostSignupRequestResponseToJSONTyped(value?: PostSignupRequestResponse | null, ignoreDiscriminator: boolean = false): any {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+
61
+ return {
62
+
63
+ 'message': value['message'],
64
+ };
65
+ }
66
+
@@ -212,6 +212,8 @@ export * from './PostResetPassword';
212
212
  export * from './PostRevokeCertificate';
213
213
  export * from './PostRole';
214
214
  export * from './PostSendResetPassword';
215
+ export * from './PostSignupRequest';
216
+ export * from './PostSignupRequestResponse';
215
217
  export * from './PostSupportTicket';
216
218
  export * from './PostSupportTicketComment';
217
219
  export * from './PostVerifyManifest';