@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
@@ -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}
@@ -46,6 +46,8 @@ function instanceOfGetContent(value) {
46
46
  return false;
47
47
  if (!('contentData' in value) || value['contentData'] === undefined)
48
48
  return false;
49
+ if (!('published' in value) || value['published'] === undefined)
50
+ return false;
49
51
  return true;
50
52
  }
51
53
  function GetContentFromJSON(json) {
@@ -63,6 +65,7 @@ function GetContentFromJSONTyped(json, ignoreDiscriminator) {
63
65
  'contentType': json['content_type'],
64
66
  'contentData': (0, GetContentContentData_1.GetContentContentDataFromJSON)(json['content_data']),
65
67
  'order': json['order'] == null ? undefined : json['order'],
68
+ 'published': json['published'],
66
69
  'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
67
70
  'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
68
71
  };
@@ -81,5 +84,6 @@ function GetContentToJSONTyped(value, ignoreDiscriminator = false) {
81
84
  'content_type': value['contentType'],
82
85
  'content_data': (0, GetContentContentData_1.GetContentContentDataToJSON)(value['contentData']),
83
86
  'order': value['order'],
87
+ 'published': value['published'],
84
88
  };
85
89
  }
@@ -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.
@@ -30,6 +30,8 @@ function instanceOfGetCourse(value) {
30
30
  return false;
31
31
  if (!('imageUrl' in value) || value['imageUrl'] === undefined)
32
32
  return false;
33
+ if (!('published' in value) || value['published'] === undefined)
34
+ return false;
33
35
  return true;
34
36
  }
35
37
  function GetCourseFromJSON(json) {
@@ -45,6 +47,7 @@ function GetCourseFromJSONTyped(json, ignoreDiscriminator) {
45
47
  'description': json['description'],
46
48
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
47
49
  'imageUrl': json['image_url'],
50
+ 'published': json['published'],
48
51
  };
49
52
  }
50
53
  function GetCourseToJSON(json) {
@@ -59,5 +62,6 @@ function GetCourseToJSONTyped(value, ignoreDiscriminator = false) {
59
62
  'description': value['description'],
60
63
  'instructor': value['instructor'],
61
64
  'image_url': value['imageUrl'],
65
+ 'published': value['published'],
62
66
  };
63
67
  }
@@ -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.
@@ -32,6 +32,8 @@ function instanceOfGetModule(value) {
32
32
  return false;
33
33
  if (!('lastUpdated' in value) || value['lastUpdated'] === undefined)
34
34
  return false;
35
+ if (!('published' in value) || value['published'] === undefined)
36
+ return false;
35
37
  return true;
36
38
  }
37
39
  function GetModuleFromJSON(json) {
@@ -47,6 +49,7 @@ function GetModuleFromJSONTyped(json, ignoreDiscriminator) {
47
49
  'description': json['description'],
48
50
  'order': json['order'],
49
51
  'lastUpdated': json['last_updated'],
52
+ 'published': json['published'],
50
53
  };
51
54
  }
52
55
  function GetModuleToJSON(json) {
@@ -61,5 +64,6 @@ function GetModuleToJSONTyped(value, ignoreDiscriminator = false) {
61
64
  'description': value['description'],
62
65
  'order': value['order'],
63
66
  'last_updated': value['lastUpdated'],
67
+ 'published': value['published'],
64
68
  };
65
69
  }
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostPortal = instanceOfPostPortal;
17
+ exports.PostPortalFromJSON = PostPortalFromJSON;
18
+ exports.PostPortalFromJSONTyped = PostPortalFromJSONTyped;
19
+ exports.PostPortalToJSON = PostPortalToJSON;
20
+ exports.PostPortalToJSONTyped = PostPortalToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostPortal interface.
23
+ */
24
+ function instanceOfPostPortal(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function PostPortalFromJSON(json) {
30
+ return PostPortalFromJSONTyped(json, false);
31
+ }
32
+ function PostPortalFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
39
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
40
+ };
41
+ }
42
+ function PostPortalToJSON(json) {
43
+ return PostPortalToJSONTyped(json, false);
44
+ }
45
+ function PostPortalToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'name': value['name'],
51
+ 'header_background_color': value['headerBackgroundColor'],
52
+ 'header_text_color': value['headerTextColor'],
53
+ };
54
+ }
@@ -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.
@@ -37,6 +37,7 @@ function PutCourseFromJSONTyped(json, ignoreDiscriminator) {
37
37
  'description': json['description'] == null ? undefined : json['description'],
38
38
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
39
39
  'imageUrl': json['image_url'] == null ? undefined : json['image_url'],
40
+ 'published': json['published'] == null ? undefined : json['published'],
40
41
  };
41
42
  }
42
43
  function PutCourseToJSON(json) {
@@ -51,5 +52,6 @@ function PutCourseToJSONTyped(value, ignoreDiscriminator = false) {
51
52
  'description': value['description'],
52
53
  'instructor': value['instructor'],
53
54
  'image_url': value['imageUrl'],
55
+ 'published': value['published'],
54
56
  };
55
57
  }
@@ -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.
@@ -35,6 +35,7 @@ function PutModuleFromJSONTyped(json, ignoreDiscriminator) {
35
35
  'name': json['name'] == null ? undefined : json['name'],
36
36
  'description': json['description'] == null ? undefined : json['description'],
37
37
  'order': json['order'] == null ? undefined : json['order'],
38
+ 'published': json['published'] == null ? undefined : json['published'],
38
39
  };
39
40
  }
40
41
  function PutModuleToJSON(json) {
@@ -48,5 +49,6 @@ function PutModuleToJSONTyped(value, ignoreDiscriminator = false) {
48
49
  'name': value['name'],
49
50
  'description': value['description'],
50
51
  'order': value['order'],
52
+ 'published': value['published'],
51
53
  };
52
54
  }
@@ -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,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPutPortalBranding = instanceOfPutPortalBranding;
17
+ exports.PutPortalBrandingFromJSON = PutPortalBrandingFromJSON;
18
+ exports.PutPortalBrandingFromJSONTyped = PutPortalBrandingFromJSONTyped;
19
+ exports.PutPortalBrandingToJSON = PutPortalBrandingToJSON;
20
+ exports.PutPortalBrandingToJSONTyped = PutPortalBrandingToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PutPortalBranding interface.
23
+ */
24
+ function instanceOfPutPortalBranding(value) {
25
+ return true;
26
+ }
27
+ function PutPortalBrandingFromJSON(json) {
28
+ return PutPortalBrandingFromJSONTyped(json, false);
29
+ }
30
+ function PutPortalBrandingFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': json['name'] == null ? undefined : json['name'],
36
+ 'headerBackgroundColor': json['header_background_color'] == null ? undefined : json['header_background_color'],
37
+ 'headerTextColor': json['header_text_color'] == null ? undefined : json['header_text_color'],
38
+ };
39
+ }
40
+ function PutPortalBrandingToJSON(json) {
41
+ return PutPortalBrandingToJSONTyped(json, false);
42
+ }
43
+ function PutPortalBrandingToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ 'header_background_color': value['headerBackgroundColor'],
50
+ 'header_text_color': value['headerTextColor'],
51
+ };
52
+ }
@@ -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';
@@ -106,6 +106,7 @@ __exportStar(require("./PostCourse"), exports);
106
106
  __exportStar(require("./PostCourseEnrollment"), exports);
107
107
  __exportStar(require("./PostLogin"), exports);
108
108
  __exportStar(require("./PostModule"), exports);
109
+ __exportStar(require("./PostPortal"), exports);
109
110
  __exportStar(require("./PostPortalInvite"), exports);
110
111
  __exportStar(require("./PostQuestion"), exports);
111
112
  __exportStar(require("./PostQuestionAnswerChoicesInner"), exports);
@@ -128,6 +129,7 @@ __exportStar(require("./PostSendResetPassword"), exports);
128
129
  __exportStar(require("./PutContent"), exports);
129
130
  __exportStar(require("./PutCourse"), exports);
130
131
  __exportStar(require("./PutModule"), exports);
132
+ __exportStar(require("./PutPortalBranding"), exports);
131
133
  __exportStar(require("./PutQuestion"), exports);
132
134
  __exportStar(require("./PutQuestionAnswerChoicesInner"), exports);
133
135
  __exportStar(require("./PutQuiz"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.5.0",
3
+ "version": "1.7.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -17,15 +17,21 @@ import * as runtime from '../runtime';
17
17
  import type {
18
18
  GetPortal,
19
19
  GetPortalList,
20
+ PostPortal,
20
21
  PostPortalInvite,
22
+ PutPortalBranding,
21
23
  } from '../models/index';
22
24
  import {
23
25
  GetPortalFromJSON,
24
26
  GetPortalToJSON,
25
27
  GetPortalListFromJSON,
26
28
  GetPortalListToJSON,
29
+ PostPortalFromJSON,
30
+ PostPortalToJSON,
27
31
  PostPortalInviteFromJSON,
28
32
  PostPortalInviteToJSON,
33
+ PutPortalBrandingFromJSON,
34
+ PutPortalBrandingToJSON,
29
35
  } from '../models/index';
30
36
 
31
37
  export interface GetPortalByIdRequest {
@@ -37,6 +43,15 @@ export interface InviteUserToPortalRequest {
37
43
  postPortalInvite: PostPortalInvite;
38
44
  }
39
45
 
46
+ export interface PostPortalRequest {
47
+ postPortal: PostPortal;
48
+ }
49
+
50
+ export interface PutPortalBrandingRequest {
51
+ portalId: string;
52
+ putPortalBranding: PutPortalBranding;
53
+ }
54
+
40
55
  export interface UpdateSelectedPortalRequest {
41
56
  portalId: string;
42
57
  selectedUserRole?: string;
@@ -148,6 +163,85 @@ export class PortalApi extends runtime.BaseAPI {
148
163
  await this.inviteUserToPortalRaw(requestParameters, initOverrides);
149
164
  }
150
165
 
166
+ /**
167
+ * Create a new portal as a child of the current selected portal
168
+ */
169
+ async postPortalRaw(requestParameters: PostPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>> {
170
+ if (requestParameters['postPortal'] == null) {
171
+ throw new runtime.RequiredError(
172
+ 'postPortal',
173
+ 'Required parameter "postPortal" was null or undefined when calling postPortal().'
174
+ );
175
+ }
176
+
177
+ const queryParameters: any = {};
178
+
179
+ const headerParameters: runtime.HTTPHeaders = {};
180
+
181
+ headerParameters['Content-Type'] = 'application/json';
182
+
183
+ const response = await this.request({
184
+ path: `/portals`,
185
+ method: 'POST',
186
+ headers: headerParameters,
187
+ query: queryParameters,
188
+ body: PostPortalToJSON(requestParameters['postPortal']),
189
+ }, initOverrides);
190
+
191
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
192
+ }
193
+
194
+ /**
195
+ * Create a new portal as a child of the current selected portal
196
+ */
197
+ async postPortal(requestParameters: PostPortalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal> {
198
+ const response = await this.postPortalRaw(requestParameters, initOverrides);
199
+ return await response.value();
200
+ }
201
+
202
+ /**
203
+ * Update portal branding (name, background color, text color)
204
+ */
205
+ async putPortalBrandingRaw(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetPortal>> {
206
+ if (requestParameters['portalId'] == null) {
207
+ throw new runtime.RequiredError(
208
+ 'portalId',
209
+ 'Required parameter "portalId" was null or undefined when calling putPortalBranding().'
210
+ );
211
+ }
212
+
213
+ if (requestParameters['putPortalBranding'] == null) {
214
+ throw new runtime.RequiredError(
215
+ 'putPortalBranding',
216
+ 'Required parameter "putPortalBranding" was null or undefined when calling putPortalBranding().'
217
+ );
218
+ }
219
+
220
+ const queryParameters: any = {};
221
+
222
+ const headerParameters: runtime.HTTPHeaders = {};
223
+
224
+ headerParameters['Content-Type'] = 'application/json';
225
+
226
+ const response = await this.request({
227
+ path: `/portals/{portalId}`.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId']))),
228
+ method: 'PUT',
229
+ headers: headerParameters,
230
+ query: queryParameters,
231
+ body: PutPortalBrandingToJSON(requestParameters['putPortalBranding']),
232
+ }, initOverrides);
233
+
234
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetPortalFromJSON(jsonValue));
235
+ }
236
+
237
+ /**
238
+ * Update portal branding (name, background color, text color)
239
+ */
240
+ async putPortalBranding(requestParameters: PutPortalBrandingRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetPortal> {
241
+ const response = await this.putPortalBrandingRaw(requestParameters, initOverrides);
242
+ return await response.value();
243
+ }
244
+
151
245
  /**
152
246
  * Update the users current selected portal
153
247
  */
@@ -69,6 +69,12 @@ export interface GetContent {
69
69
  * @memberof GetContent
70
70
  */
71
71
  order?: number;
72
+ /**
73
+ * Whether the content is published and visible to students
74
+ * @type {boolean}
75
+ * @memberof GetContent
76
+ */
77
+ published: boolean;
72
78
  /**
73
79
  *
74
80
  * @type {Date}
@@ -108,6 +114,7 @@ export function instanceOfGetContent(value: object): value is GetContent {
108
114
  if (!('name' in value) || value['name'] === undefined) return false;
109
115
  if (!('contentType' in value) || value['contentType'] === undefined) return false;
110
116
  if (!('contentData' in value) || value['contentData'] === undefined) return false;
117
+ if (!('published' in value) || value['published'] === undefined) return false;
111
118
  return true;
112
119
  }
113
120
 
@@ -128,6 +135,7 @@ export function GetContentFromJSONTyped(json: any, ignoreDiscriminator: boolean)
128
135
  'contentType': json['content_type'],
129
136
  'contentData': GetContentContentDataFromJSON(json['content_data']),
130
137
  'order': json['order'] == null ? undefined : json['order'],
138
+ 'published': json['published'],
131
139
  'createdDate': json['created_date'] == null ? undefined : (new Date(json['created_date'])),
132
140
  'updatedDate': json['updated_date'] == null ? undefined : (new Date(json['updated_date'])),
133
141
  };
@@ -150,6 +158,7 @@ export function GetContentToJSONTyped(value?: Omit<GetContent, 'id'|'created_dat
150
158
  'content_type': value['contentType'],
151
159
  'content_data': GetContentContentDataToJSON(value['contentData']),
152
160
  'order': value['order'],
161
+ 'published': value['published'],
153
162
  };
154
163
  }
155
164
 
@@ -49,6 +49,12 @@ export interface GetCourse {
49
49
  * @memberof GetCourse
50
50
  */
51
51
  imageUrl: string;
52
+ /**
53
+ * Whether the course is published and visible to students
54
+ * @type {boolean}
55
+ * @memberof GetCourse
56
+ */
57
+ published: boolean;
52
58
  }
53
59
 
54
60
  /**
@@ -59,6 +65,7 @@ export function instanceOfGetCourse(value: object): value is GetCourse {
59
65
  if (!('name' in value) || value['name'] === undefined) return false;
60
66
  if (!('description' in value) || value['description'] === undefined) return false;
61
67
  if (!('imageUrl' in value) || value['imageUrl'] === undefined) return false;
68
+ if (!('published' in value) || value['published'] === undefined) return false;
62
69
  return true;
63
70
  }
64
71
 
@@ -77,6 +84,7 @@ export function GetCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean):
77
84
  'description': json['description'],
78
85
  'instructor': json['instructor'] == null ? undefined : json['instructor'],
79
86
  'imageUrl': json['image_url'],
87
+ 'published': json['published'],
80
88
  };
81
89
  }
82
90
 
@@ -95,6 +103,7 @@ export function GetCourseToJSONTyped(value?: Omit<GetCourse, 'id'> | null, ignor
95
103
  'description': value['description'],
96
104
  'instructor': value['instructor'],
97
105
  'image_url': value['imageUrl'],
106
+ 'published': value['published'],
98
107
  };
99
108
  }
100
109
 
@@ -49,6 +49,12 @@ export interface GetModule {
49
49
  * @memberof GetModule
50
50
  */
51
51
  lastUpdated: number;
52
+ /**
53
+ * Whether the module is published and visible to students
54
+ * @type {boolean}
55
+ * @memberof GetModule
56
+ */
57
+ published: boolean;
52
58
  }
53
59
 
54
60
  /**
@@ -60,6 +66,7 @@ export function instanceOfGetModule(value: object): value is GetModule {
60
66
  if (!('description' in value) || value['description'] === undefined) return false;
61
67
  if (!('order' in value) || value['order'] === undefined) return false;
62
68
  if (!('lastUpdated' in value) || value['lastUpdated'] === undefined) return false;
69
+ if (!('published' in value) || value['published'] === undefined) return false;
63
70
  return true;
64
71
  }
65
72
 
@@ -78,6 +85,7 @@ export function GetModuleFromJSONTyped(json: any, ignoreDiscriminator: boolean):
78
85
  'description': json['description'],
79
86
  'order': json['order'],
80
87
  'lastUpdated': json['last_updated'],
88
+ 'published': json['published'],
81
89
  };
82
90
  }
83
91
 
@@ -96,6 +104,7 @@ export function GetModuleToJSONTyped(value?: Omit<GetModule, 'id'> | null, ignor
96
104
  'description': value['description'],
97
105
  'order': value['order'],
98
106
  'last_updated': value['lastUpdated'],
107
+ 'published': value['published'],
99
108
  };
100
109
  }
101
110