@easyedu/js-lsm-api 1.5.0 → 1.7.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 (48) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/dist/apis/PortalApi.d.ts +24 -1
  4. package/dist/apis/PortalApi.js +63 -0
  5. package/dist/esm/apis/PortalApi.d.ts +24 -1
  6. package/dist/esm/apis/PortalApi.js +64 -1
  7. package/dist/esm/models/GetContent.d.ts +6 -0
  8. package/dist/esm/models/GetContent.js +4 -0
  9. package/dist/esm/models/GetCourse.d.ts +6 -0
  10. package/dist/esm/models/GetCourse.js +4 -0
  11. package/dist/esm/models/GetModule.d.ts +6 -0
  12. package/dist/esm/models/GetModule.js +4 -0
  13. package/dist/esm/models/PostPortal.d.ts +44 -0
  14. package/dist/esm/models/PostPortal.js +47 -0
  15. package/dist/esm/models/PutCourse.d.ts +6 -0
  16. package/dist/esm/models/PutCourse.js +2 -0
  17. package/dist/esm/models/PutModule.d.ts +6 -0
  18. package/dist/esm/models/PutModule.js +2 -0
  19. package/dist/esm/models/PutPortalBranding.d.ts +44 -0
  20. package/dist/esm/models/PutPortalBranding.js +45 -0
  21. package/dist/esm/models/index.d.ts +2 -0
  22. package/dist/esm/models/index.js +2 -0
  23. package/dist/models/GetContent.d.ts +6 -0
  24. package/dist/models/GetContent.js +4 -0
  25. package/dist/models/GetCourse.d.ts +6 -0
  26. package/dist/models/GetCourse.js +4 -0
  27. package/dist/models/GetModule.d.ts +6 -0
  28. package/dist/models/GetModule.js +4 -0
  29. package/dist/models/PostPortal.d.ts +44 -0
  30. package/dist/models/PostPortal.js +54 -0
  31. package/dist/models/PutCourse.d.ts +6 -0
  32. package/dist/models/PutCourse.js +2 -0
  33. package/dist/models/PutModule.d.ts +6 -0
  34. package/dist/models/PutModule.js +2 -0
  35. package/dist/models/PutPortalBranding.d.ts +44 -0
  36. package/dist/models/PutPortalBranding.js +52 -0
  37. package/dist/models/index.d.ts +2 -0
  38. package/dist/models/index.js +2 -0
  39. package/package.json +1 -1
  40. package/src/apis/PortalApi.ts +94 -0
  41. package/src/models/GetContent.ts +9 -0
  42. package/src/models/GetCourse.ts +9 -0
  43. package/src/models/GetModule.ts +9 -0
  44. package/src/models/PostPortal.ts +82 -0
  45. package/src/models/PutCourse.ts +8 -0
  46. package/src/models/PutModule.ts +8 -0
  47. package/src/models/PutPortalBranding.ts +81 -0
  48. package/src/models/index.ts +2 -0
@@ -0,0 +1,82 @@
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 PostPortal
20
+ */
21
+ export interface PostPortal {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PostPortal
26
+ */
27
+ name: string;
28
+ /**
29
+ * Hex color value for portal background (e.g.,
30
+ * @type {string}
31
+ * @memberof PostPortal
32
+ */
33
+ headerBackgroundColor?: string;
34
+ /**
35
+ * Hex color value for portal text (e.g.,
36
+ * @type {string}
37
+ * @memberof PostPortal
38
+ */
39
+ headerTextColor?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PostPortal interface.
44
+ */
45
+ export function instanceOfPostPortal(value: object): value is PostPortal {
46
+ if (!('name' in value) || value['name'] === undefined) return false;
47
+ return true;
48
+ }
49
+
50
+ export function PostPortalFromJSON(json: any): PostPortal {
51
+ return PostPortalFromJSONTyped(json, false);
52
+ }
53
+
54
+ export function PostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortal {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+
60
+ 'name': json['name'],
61
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
62
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
63
+ };
64
+ }
65
+
66
+ export function PostPortalToJSON(json: any): PostPortal {
67
+ return PostPortalToJSONTyped(json, false);
68
+ }
69
+
70
+ export function PostPortalToJSONTyped(value?: PostPortal | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'name': value['name'],
78
+ 'header_background_color': value['headerBackgroundColor'],
79
+ 'header_text_color': value['headerTextColor'],
80
+ };
81
+ }
82
+
@@ -49,6 +49,12 @@ export interface PutCourse {
49
49
  * @memberof PutCourse
50
50
  */
51
51
  imageUrl?: string;
52
+ /**
53
+ * Whether the course is published and visible to students
54
+ * @type {boolean}
55
+ * @memberof PutCourse
56
+ */
57
+ published?: boolean;
52
58
  }
53
59
 
54
60
  /**
@@ -73,6 +79,7 @@ export function PutCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
73
79
  'description': json['description'] == null ? undefined : json['description'],
74
80
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
75
81
  'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
82
+ 'published': json['published'] == null ? undefined : json['published'],
76
83
  };
77
84
  }
78
85
 
@@ -91,6 +98,7 @@ export function PutCourseToJSONTyped(value?: Omit<PutCourse, 'id'> | null, ignor
91
98
  'description': value['description'],
92
99
  'instructor': value['instructor'],
93
100
  'image_url': value['imageUrl'],
101
+ 'published': value['published'],
94
102
  };
95
103
  }
96
104
 
@@ -37,6 +37,12 @@ export interface PutModule {
37
37
  * @memberof PutModule
38
38
  */
39
39
  order?: number;
40
+ /**
41
+ * Whether the module is published and visible to students
42
+ * @type {boolean}
43
+ * @memberof PutModule
44
+ */
45
+ published?: boolean;
40
46
  }
41
47
 
42
48
  /**
@@ -59,6 +65,7 @@ export function PutModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean):
59
65
  'name': json['name'] == null ? undefined : json['name'],
60
66
  'description': json['description'] == null ? undefined : json['description'],
61
67
  'order': json['order'] == null ? undefined : json['order'],
68
+ 'published': json['published'] == null ? undefined : json['published'],
62
69
  };
63
70
  }
64
71
 
@@ -76,6 +83,7 @@ export function PutModuleToJSONTyped(value?: PutModule | null, ignoreDiscriminat
76
83
  'name': value['name'],
77
84
  'description': value['description'],
78
85
  'order': value['order'],
86
+ 'published': value['published'],
79
87
  };
80
88
  }
81
89
 
@@ -0,0 +1,81 @@
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 PutPortalBranding
20
+ */
21
+ export interface PutPortalBranding {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof PutPortalBranding
26
+ */
27
+ name?: string;
28
+ /**
29
+ * Hex color value for portal background (e.g.,
30
+ * @type {string}
31
+ * @memberof PutPortalBranding
32
+ */
33
+ headerBackgroundColor?: string;
34
+ /**
35
+ * Hex color value for portal text (e.g.,
36
+ * @type {string}
37
+ * @memberof PutPortalBranding
38
+ */
39
+ headerTextColor?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the PutPortalBranding interface.
44
+ */
45
+ export function instanceOfPutPortalBranding(value: object): value is PutPortalBranding {
46
+ return true;
47
+ }
48
+
49
+ export function PutPortalBrandingFromJSON(json: any): PutPortalBranding {
50
+ return PutPortalBrandingFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function PutPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalBranding {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'name': json['name'] == null ? undefined : json['name'],
60
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
61
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
62
+ };
63
+ }
64
+
65
+ export function PutPortalBrandingToJSON(json: any): PutPortalBranding {
66
+ return PutPortalBrandingToJSONTyped(json, false);
67
+ }
68
+
69
+ export function PutPortalBrandingToJSONTyped(value?: PutPortalBranding | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'name': value['name'],
77
+ 'header_background_color': value['headerBackgroundColor'],
78
+ 'header_text_color': value['headerTextColor'],
79
+ };
80
+ }
81
+
@@ -90,6 +90,7 @@ export * from './PostCourse';
90
90
  export * from './PostCourseEnrollment';
91
91
  export * from './PostLogin';
92
92
  export * from './PostModule';
93
+ export * from './PostPortal';
93
94
  export * from './PostPortalInvite';
94
95
  export * from './PostQuestion';
95
96
  export * from './PostQuestionAnswerChoicesInner';
@@ -112,6 +113,7 @@ export * from './PostSendResetPassword';
112
113
  export * from './PutContent';
113
114
  export * from './PutCourse';
114
115
  export * from './PutModule';
116
+ export * from './PutPortalBranding';
115
117
  export * from './PutQuestion';
116
118
  export * from './PutQuestionAnswerChoicesInner';
117
119
  export * from './PutQuiz';