@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
@@ -103,6 +103,7 @@ src/models/PostCourse.ts
103
103
  src/models/PostCourseEnrollment.ts
104
104
  src/models/PostLogin.ts
105
105
  src/models/PostModule.ts
106
+ src/models/PostPortal.ts
106
107
  src/models/PostPortalInvite.ts
107
108
  src/models/PostQuestion.ts
108
109
  src/models/PostQuestionAnswerChoicesInner.ts
@@ -125,6 +126,7 @@ src/models/PostSendResetPassword.ts
125
126
  src/models/PutContent.ts
126
127
  src/models/PutCourse.ts
127
128
  src/models/PutModule.ts
129
+ src/models/PutPortalBranding.ts
128
130
  src/models/PutQuestion.ts
129
131
  src/models/PutQuestionAnswerChoicesInner.ts
130
132
  src/models/PutQuiz.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @easyedu/js-lsm-api@1.5.0
1
+ ## @easyedu/js-lsm-api@1.7.0
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @easyedu/js-lsm-api@1.5.0 --save
39
+ npm install @easyedu/js-lsm-api@1.7.0 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetPortal, GetPortalList, PostPortalInvite } from '../models/index';
13
+ import type { GetPortal, GetPortalList, PostPortal, PostPortalInvite, PutPortalBranding } from '../models/index';
14
14
  export interface GetPortalByIdRequest {
15
15
  portalId: string;
16
16
  }
@@ -18,6 +18,13 @@ export interface InviteUserToPortalRequest {
18
18
  portalId: string;
19
19
  postPortalInvite: PostPortalInvite;
20
20
  }
21
+ export interface PostPortalRequest {
22
+ postPortal: PostPortal;
23
+ }
24
+ export interface PutPortalBrandingRequest {
25
+ portalId: string;
26
+ putPortalBranding: PutPortalBranding;
27
+ }
21
28
  export interface UpdateSelectedPortalRequest {
22
29
  portalId: string;
23
30
  selectedUserRole?: string;
@@ -50,6 +57,22 @@ export declare class PortalApi extends runtime.BaseAPI {
50
57
  * Invite a new user to a portal
51
58
  */
52
59
  inviteUserToPortal(requestParameters: InviteUserToPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
+ /**
61
+ * Create a new portal as a child of the current selected portal
62
+ */
63
+ postPortalRaw(requestParameters: PostPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
64
+ /**
65
+ * Create a new portal as a child of the current selected portal
66
+ */
67
+ postPortal(requestParameters: PostPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
68
+ /**
69
+ * Update portal branding (name, background color, text color)
70
+ */
71
+ putPortalBrandingRaw(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
72
+ /**
73
+ * Update portal branding (name, background color, text color)
74
+ */
75
+ putPortalBranding(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
53
76
  /**
54
77
  * Update the users current selected portal
55
78
  */
@@ -114,6 +114,69 @@ class PortalApi extends runtime.BaseAPI {
114
114
  yield this.inviteUserToPortalRaw(requestParameters, initOverrides);
115
115
  });
116
116
  }
117
+ /**
118
+ * Create a new portal as a child of the current selected portal
119
+ */
120
+ postPortalRaw(requestParameters, initOverrides) {
121
+ return __awaiter(this, void 0, void 0, function* () {
122
+ if (requestParameters['postPortal'] == null) {
123
+ throw new runtime.RequiredError('postPortal', 'Required parameter "postPortal" was null or undefined when calling postPortal().');
124
+ }
125
+ const queryParameters = {};
126
+ const headerParameters = {};
127
+ headerParameters['Content-Type'] = 'application/json';
128
+ const response = yield this.request({
129
+ path: `/portals`,
130
+ method: 'POST',
131
+ headers: headerParameters,
132
+ query: queryParameters,
133
+ body: (0, index_1.PostPortalToJSON)(requestParameters['postPortal']),
134
+ }, initOverrides);
135
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPortalFromJSON)(jsonValue));
136
+ });
137
+ }
138
+ /**
139
+ * Create a new portal as a child of the current selected portal
140
+ */
141
+ postPortal(requestParameters, initOverrides) {
142
+ return __awaiter(this, void 0, void 0, function* () {
143
+ const response = yield this.postPortalRaw(requestParameters, initOverrides);
144
+ return yield response.value();
145
+ });
146
+ }
147
+ /**
148
+ * Update portal branding (name, background color, text color)
149
+ */
150
+ putPortalBrandingRaw(requestParameters, initOverrides) {
151
+ return __awaiter(this, void 0, void 0, function* () {
152
+ if (requestParameters['portalId'] == null) {
153
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putPortalBranding().');
154
+ }
155
+ if (requestParameters['putPortalBranding'] == null) {
156
+ throw new runtime.RequiredError('putPortalBranding', 'Required parameter "putPortalBranding" was null or undefined when calling putPortalBranding().');
157
+ }
158
+ const queryParameters = {};
159
+ const headerParameters = {};
160
+ headerParameters['Content-Type'] = 'application/json';
161
+ const response = yield this.request({
162
+ path: `/portals/{portalId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))),
163
+ method: 'PUT',
164
+ headers: headerParameters,
165
+ query: queryParameters,
166
+ body: (0, index_1.PutPortalBrandingToJSON)(requestParameters['putPortalBranding']),
167
+ }, initOverrides);
168
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPortalFromJSON)(jsonValue));
169
+ });
170
+ }
171
+ /**
172
+ * Update portal branding (name, background color, text color)
173
+ */
174
+ putPortalBranding(requestParameters, initOverrides) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ const response = yield this.putPortalBrandingRaw(requestParameters, initOverrides);
177
+ return yield response.value();
178
+ });
179
+ }
117
180
  /**
118
181
  * Update the users current selected portal
119
182
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetPortal, GetPortalList, PostPortalInvite } from '../models/index';
13
+ import type { GetPortal, GetPortalList, PostPortal, PostPortalInvite, PutPortalBranding } from '../models/index';
14
14
  export interface GetPortalByIdRequest {
15
15
  portalId: string;
16
16
  }
@@ -18,6 +18,13 @@ export interface InviteUserToPortalRequest {
18
18
  portalId: string;
19
19
  postPortalInvite: PostPortalInvite;
20
20
  }
21
+ export interface PostPortalRequest {
22
+ postPortal: PostPortal;
23
+ }
24
+ export interface PutPortalBrandingRequest {
25
+ portalId: string;
26
+ putPortalBranding: PutPortalBranding;
27
+ }
21
28
  export interface UpdateSelectedPortalRequest {
22
29
  portalId: string;
23
30
  selectedUserRole?: string;
@@ -50,6 +57,22 @@ export declare class PortalApi extends runtime.BaseAPI {
50
57
  * Invite a new user to a portal
51
58
  */
52
59
  inviteUserToPortal(requestParameters: InviteUserToPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
60
+ /**
61
+ * Create a new portal as a child of the current selected portal
62
+ */
63
+ postPortalRaw(requestParameters: PostPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
64
+ /**
65
+ * Create a new portal as a child of the current selected portal
66
+ */
67
+ postPortal(requestParameters: PostPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
68
+ /**
69
+ * Update portal branding (name, background color, text color)
70
+ */
71
+ putPortalBrandingRaw(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>>;
72
+ /**
73
+ * Update portal branding (name, background color, text color)
74
+ */
75
+ putPortalBranding(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal>;
53
76
  /**
54
77
  * Update the users current selected portal
55
78
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GetPortalFromJSON, GetPortalListFromJSON, PostPortalInviteToJSON, } from '../models/index';
24
+ import { GetPortalFromJSON, GetPortalListFromJSON, PostPortalToJSON, PostPortalInviteToJSON, PutPortalBrandingToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -111,6 +111,69 @@ export class PortalApi extends runtime.BaseAPI {
111
111
  yield this.inviteUserToPortalRaw(requestParameters, initOverrides);
112
112
  });
113
113
  }
114
+ /**
115
+ * Create a new portal as a child of the current selected portal
116
+ */
117
+ postPortalRaw(requestParameters, initOverrides) {
118
+ return __awaiter(this, void 0, void 0, function* () {
119
+ if (requestParameters['postPortal'] == null) {
120
+ throw new runtime.RequiredError('postPortal', 'Required parameter "postPortal" was null or undefined when calling postPortal().');
121
+ }
122
+ const queryParameters = {};
123
+ const headerParameters = {};
124
+ headerParameters['Content-Type'] = 'application/json';
125
+ const response = yield this.request({
126
+ path: `/portals`,
127
+ method: 'POST',
128
+ headers: headerParameters,
129
+ query: queryParameters,
130
+ body: PostPortalToJSON(requestParameters['postPortal']),
131
+ }, initOverrides);
132
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
133
+ });
134
+ }
135
+ /**
136
+ * Create a new portal as a child of the current selected portal
137
+ */
138
+ postPortal(requestParameters, initOverrides) {
139
+ return __awaiter(this, void 0, void 0, function* () {
140
+ const response = yield this.postPortalRaw(requestParameters, initOverrides);
141
+ return yield response.value();
142
+ });
143
+ }
144
+ /**
145
+ * Update portal branding (name, background color, text color)
146
+ */
147
+ putPortalBrandingRaw(requestParameters, initOverrides) {
148
+ return __awaiter(this, void 0, void 0, function* () {
149
+ if (requestParameters['portalId'] == null) {
150
+ throw new runtime.RequiredError('portalId', 'Required parameter "portalId" was null or undefined when calling putPortalBranding().');
151
+ }
152
+ if (requestParameters['putPortalBranding'] == null) {
153
+ throw new runtime.RequiredError('putPortalBranding', 'Required parameter "putPortalBranding" was null or undefined when calling putPortalBranding().');
154
+ }
155
+ const queryParameters = {};
156
+ const headerParameters = {};
157
+ headerParameters['Content-Type'] = 'application/json';
158
+ const response = yield this.request({
159
+ path: `/portals/{portalId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))),
160
+ method: 'PUT',
161
+ headers: headerParameters,
162
+ query: queryParameters,
163
+ body: PutPortalBrandingToJSON(requestParameters['putPortalBranding']),
164
+ }, initOverrides);
165
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
166
+ });
167
+ }
168
+ /**
169
+ * Update portal branding (name, background color, text color)
170
+ */
171
+ putPortalBranding(requestParameters, initOverrides) {
172
+ return __awaiter(this, void 0, void 0, function* () {
173
+ const response = yield this.putPortalBrandingRaw(requestParameters, initOverrides);
174
+ return yield response.value();
175
+ });
176
+ }
114
177
  /**
115
178
  * Update the users current selected portal
116
179
  */
@@ -58,6 +58,12 @@ export interface GetContent {
58
58
  * @memberof GetContent
59
59
  */
60
60
  order?: number;
61
+ /**
62
+ * Whether the content is published and visible to students
63
+ * @type {boolean}
64
+ * @memberof GetContent
65
+ */
66
+ published: boolean;
61
67
  /**
62
68
  *
63
69
  * @type {Date}
@@ -38,6 +38,8 @@ export function instanceOfGetContent(value) {
38
38
  return false;
39
39
  if (!('contentData' in value) || value['contentData'] === undefined)
40
40
  return false;
41
+ if (!('published' in value) || value['published'] === undefined)
42
+ return false;
41
43
  return true;
42
44
  }
43
45
  export function GetContentFromJSON(json) {
@@ -55,6 +57,7 @@ export function GetContentFromJSONTyped(json, ignoreDiscriminator) {
55
57
  'contentType': json['content_type'],
56
58
  'contentData': GetContentContentDataFromJSON(json['content_data']),
57
59
  'order': json['order'] == null ? undefined : json['order'],
60
+ 'published': json['published'],
58
61
  'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
59
62
  'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
60
63
  };
@@ -73,5 +76,6 @@ export function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
73
76
  'content_type': value['contentType'],
74
77
  'content_data': GetContentContentDataToJSON(value['contentData']),
75
78
  'order': value['order'],
79
+ 'published': value['published'],
76
80
  };
77
81
  }
@@ -45,6 +45,12 @@ export interface GetCourse {
45
45
  * @memberof GetCourse
46
46
  */
47
47
  imageUrl: string;
48
+ /**
49
+ * Whether the course is published and visible to students
50
+ * @type {boolean}
51
+ * @memberof GetCourse
52
+ */
53
+ published: boolean;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the GetCourse interface.
@@ -23,6 +23,8 @@ export function instanceOfGetCourse(value) {
23
23
  return false;
24
24
  if (!('imageUrl' in value) || value['imageUrl'] === undefined)
25
25
  return false;
26
+ if (!('published' in value) || value['published'] === undefined)
27
+ return false;
26
28
  return true;
27
29
  }
28
30
  export function GetCourseFromJSON(json) {
@@ -38,6 +40,7 @@ export function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
38
40
  'description': json['description'],
39
41
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
40
42
  'imageUrl': json['image_url'],
43
+ 'published': json['published'],
41
44
  };
42
45
  }
43
46
  export function GetCourseToJSON(json) {
@@ -52,5 +55,6 @@ export function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
52
55
  'description': value['description'],
53
56
  'instructor': value['instructor'],
54
57
  'image_url': value['imageUrl'],
58
+ 'published': value['published'],
55
59
  };
56
60
  }
@@ -45,6 +45,12 @@ export interface GetModule {
45
45
  * @memberof GetModule
46
46
  */
47
47
  lastUpdated: number;
48
+ /**
49
+ * Whether the module is published and visible to students
50
+ * @type {boolean}
51
+ * @memberof GetModule
52
+ */
53
+ published: boolean;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the GetModule interface.
@@ -25,6 +25,8 @@ export function instanceOfGetModule(value) {
25
25
  return false;
26
26
  if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
27
27
  return false;
28
+ if (!('published' in value) || value['published'] === undefined)
29
+ return false;
28
30
  return true;
29
31
  }
30
32
  export function GetModuleFromJSON(json) {
@@ -40,6 +42,7 @@ export function GetModuleFromJSONTyped(json, ignoreDiscriminator) {
40
42
  'description': json['description'],
41
43
  'order': json['order'],
42
44
  'lastUpdated': json['last_updated'],
45
+ 'published': json['published'],
43
46
  };
44
47
  }
45
48
  export function GetModuleToJSON(json) {
@@ -54,5 +57,6 @@ export function GetModuleToJSONTyped(value, ignoreDiscriminator = false) {
54
57
  'description': value['description'],
55
58
  'order': value['order'],
56
59
  'last_updated': value['lastUpdated'],
60
+ 'published': value['published'],
57
61
  };
58
62
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PostPortal
16
+ */
17
+ export interface PostPortal {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PostPortal
22
+ */
23
+ name: string;
24
+ /**
25
+ * Hex color value for portal background (e.g.,
26
+ * @type {string}
27
+ * @memberof PostPortal
28
+ */
29
+ headerBackgroundColor?: string;
30
+ /**
31
+ * Hex color value for portal text (e.g.,
32
+ * @type {string}
33
+ * @memberof PostPortal
34
+ */
35
+ headerTextColor?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PostPortal interface.
39
+ */
40
+ export declare function instanceOfPostPortal(value: object): value is PostPortal;
41
+ export declare function PostPortalFromJSON(json: any): PostPortal;
42
+ export declare function PostPortalFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostPortal;
43
+ export declare function PostPortalToJSON(json: any): PostPortal;
44
+ export declare function PostPortalToJSONTyped(value?: PostPortal | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the PostPortal interface.
16
+ */
17
+ export function instanceOfPostPortal(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function PostPortalFromJSON(json) {
23
+ return PostPortalFromJSONTyped(json, false);
24
+ }
25
+ export function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': json['name'],
31
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
32
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
33
+ };
34
+ }
35
+ export function PostPortalToJSON(json) {
36
+ return PostPortalToJSONTyped(json, false);
37
+ }
38
+ export function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'name': value['name'],
44
+ 'header_background_color': value['headerBackgroundColor'],
45
+ 'header_text_color': value['headerTextColor'],
46
+ };
47
+ }
@@ -45,6 +45,12 @@ export interface PutCourse {
45
45
  * @memberof PutCourse
46
46
  */
47
47
  imageUrl?: string;
48
+ /**
49
+ * Whether the course is published and visible to students
50
+ * @type {boolean}
51
+ * @memberof PutCourse
52
+ */
53
+ published?: boolean;
48
54
  }
49
55
  /**
50
56
  * Check if a given object implements the PutCourse interface.
@@ -30,6 +30,7 @@ export function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'description': json['description'] == null ? undefined : json['description'],
31
31
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
32
32
  'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
33
+ 'published': json['published'] == null ? undefined : json['published'],
33
34
  };
34
35
  }
35
36
  export function PutCourseToJSON(json) {
@@ -44,5 +45,6 @@ export function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
44
45
  'description': value['description'],
45
46
  'instructor': value['instructor'],
46
47
  'image_url': value['imageUrl'],
48
+ 'published': value['published'],
47
49
  };
48
50
  }
@@ -33,6 +33,12 @@ export interface PutModule {
33
33
  * @memberof PutModule
34
34
  */
35
35
  order?: number;
36
+ /**
37
+ * Whether the module is published and visible to students
38
+ * @type {boolean}
39
+ * @memberof PutModule
40
+ */
41
+ published?: boolean;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the PutModule interface.
@@ -28,6 +28,7 @@ export function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
28
28
  'name': json['name'] == null ? undefined : json['name'],
29
29
  'description': json['description'] == null ? undefined : json['description'],
30
30
  'order': json['order'] == null ? undefined : json['order'],
31
+ 'published': json['published'] == null ? undefined : json['published'],
31
32
  };
32
33
  }
33
34
  export function PutModuleToJSON(json) {
@@ -41,5 +42,6 @@ export function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
41
42
  'name': value['name'],
42
43
  'description': value['description'],
43
44
  'order': value['order'],
45
+ 'published': value['published'],
44
46
  };
45
47
  }
@@ -0,0 +1,44 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface PutPortalBranding
16
+ */
17
+ export interface PutPortalBranding {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof PutPortalBranding
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Hex color value for portal background (e.g.,
26
+ * @type {string}
27
+ * @memberof PutPortalBranding
28
+ */
29
+ headerBackgroundColor?: string;
30
+ /**
31
+ * Hex color value for portal text (e.g.,
32
+ * @type {string}
33
+ * @memberof PutPortalBranding
34
+ */
35
+ headerTextColor?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PutPortalBranding interface.
39
+ */
40
+ export declare function instanceOfPutPortalBranding(value: object): value is PutPortalBranding;
41
+ export declare function PutPortalBrandingFromJSON(json: any): PutPortalBranding;
42
+ export declare function PutPortalBrandingFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalBranding;
43
+ export declare function PutPortalBrandingToJSON(json: any): PutPortalBranding;
44
+ export declare function PutPortalBrandingToJSONTyped(value?: PutPortalBranding | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,45 @@
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
+ * Check if a given object implements the PutPortalBranding interface.
16
+ */
17
+ export function instanceOfPutPortalBranding(value) {
18
+ return true;
19
+ }
20
+ export function PutPortalBrandingFromJSON(json) {
21
+ return PutPortalBrandingFromJSONTyped(json, false);
22
+ }
23
+ export function PutPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
24
+ if (json == null) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'name': json['name'] == null ? undefined : json['name'],
29
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
30
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
31
+ };
32
+ }
33
+ export function PutPortalBrandingToJSON(json) {
34
+ return PutPortalBrandingToJSONTyped(json, false);
35
+ }
36
+ export function PutPortalBrandingToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ 'header_background_color': value['headerBackgroundColor'],
43
+ 'header_text_color': value['headerTextColor'],
44
+ };
45
+ }
@@ -88,6 +88,7 @@ export * from './PostCourse';
88
88
  export * from './PostCourseEnrollment';
89
89
  export * from './PostLogin';
90
90
  export * from './PostModule';
91
+ export * from './PostPortal';
91
92
  export * from './PostPortalInvite';
92
93
  export * from './PostQuestion';
93
94
  export * from './PostQuestionAnswerChoicesInner';
@@ -110,6 +111,7 @@ export * from './PostSendResetPassword';
110
111
  export * from './PutContent';
111
112
  export * from './PutCourse';
112
113
  export * from './PutModule';
114
+ export * from './PutPortalBranding';
113
115
  export * from './PutQuestion';
114
116
  export * from './PutQuestionAnswerChoicesInner';
115
117
  export * from './PutQuiz';
@@ -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';