@easyedu/js-lsm-api 1.56.0 → 1.58.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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +8 -2
- package/dist/apis/PortalApi.d.ts +32 -1
- package/dist/apis/PortalApi.js +99 -0
- package/dist/apis/UserApi.d.ts +32 -1
- package/dist/apis/UserApi.js +99 -0
- package/dist/esm/apis/PortalApi.d.ts +32 -1
- package/dist/esm/apis/PortalApi.js +100 -1
- package/dist/esm/apis/UserApi.d.ts +32 -1
- package/dist/esm/apis/UserApi.js +100 -1
- package/dist/esm/models/GetPortal.d.ts +6 -0
- package/dist/esm/models/GetPortal.js +2 -0
- package/dist/esm/models/GetPortalFaviconUpload.d.ts +32 -0
- package/dist/esm/models/GetPortalFaviconUpload.js +43 -0
- package/dist/esm/models/GetUser.d.ts +6 -0
- package/dist/esm/models/GetUser.js +2 -0
- package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/esm/models/GetUserAvatarUpload.js +43 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/GetPortal.d.ts +6 -0
- package/dist/models/GetPortal.js +2 -0
- package/dist/models/GetPortalFaviconUpload.d.ts +32 -0
- package/dist/models/GetPortalFaviconUpload.js +50 -0
- package/dist/models/GetUser.d.ts +6 -0
- package/dist/models/GetUser.js +2 -0
- package/dist/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/models/GetUserAvatarUpload.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/GetPortal.md +2 -0
- package/docs/GetPortalFaviconUpload.md +34 -0
- package/docs/GetUser.md +2 -0
- package/docs/GetUserAvatarUpload.md +34 -0
- package/docs/PortalApi.md +138 -0
- package/docs/UserApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/PortalApi.ts +129 -0
- package/src/apis/UserApi.ts +129 -0
- package/src/models/GetPortal.ts +8 -0
- package/src/models/GetPortalFaviconUpload.ts +66 -0
- package/src/models/GetUser.ts +8 -0
- package/src/models/GetUserAvatarUpload.ts +66 -0
- package/src/models/index.ts +2 -0
|
@@ -10,13 +10,20 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { GetUser, LoginRes, PostLogin, PostResetPassword, PostSendResetPassword, PutUser } from '../models/index';
|
|
13
|
+
import type { GetUser, GetUserAvatarUpload, LoginRes, PostLogin, PostResetPassword, PostSendResetPassword, PutUser } from '../models/index';
|
|
14
|
+
export interface DeleteUserAvatarRequest {
|
|
15
|
+
userId: string;
|
|
16
|
+
}
|
|
14
17
|
export interface GetUserRequest {
|
|
15
18
|
userId: string;
|
|
16
19
|
}
|
|
17
20
|
export interface PostLoginRequest {
|
|
18
21
|
postLogin: PostLogin;
|
|
19
22
|
}
|
|
23
|
+
export interface PostUserAvatarUploadRequest {
|
|
24
|
+
userId: string;
|
|
25
|
+
file: Blob;
|
|
26
|
+
}
|
|
20
27
|
export interface PutUserRequest {
|
|
21
28
|
userId: string;
|
|
22
29
|
putUser: Omit<PutUser, 'id' | 'last_updated'>;
|
|
@@ -31,6 +38,18 @@ export interface SendResetPasswordRequest {
|
|
|
31
38
|
*
|
|
32
39
|
*/
|
|
33
40
|
export declare class UserApi extends runtime.BaseAPI {
|
|
41
|
+
/**
|
|
42
|
+
* Creates request options for deleteUserAvatar without sending the request
|
|
43
|
+
*/
|
|
44
|
+
deleteUserAvatarRequestOpts(requestParameters: DeleteUserAvatarRequest): Promise<runtime.RequestOpts>;
|
|
45
|
+
/**
|
|
46
|
+
* Remove the current user\'s profile photo
|
|
47
|
+
*/
|
|
48
|
+
deleteUserAvatarRaw(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
49
|
+
/**
|
|
50
|
+
* Remove the current user\'s profile photo
|
|
51
|
+
*/
|
|
52
|
+
deleteUserAvatar(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
34
53
|
/**
|
|
35
54
|
* Creates request options for getAuthCheck without sending the request
|
|
36
55
|
*/
|
|
@@ -93,6 +112,18 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
93
112
|
* Logout a user
|
|
94
113
|
*/
|
|
95
114
|
postLogout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Creates request options for postUserAvatarUpload without sending the request
|
|
117
|
+
*/
|
|
118
|
+
postUserAvatarUploadRequestOpts(requestParameters: PostUserAvatarUploadRequest): Promise<runtime.RequestOpts>;
|
|
119
|
+
/**
|
|
120
|
+
* Upload a profile photo for the current user
|
|
121
|
+
*/
|
|
122
|
+
postUserAvatarUploadRaw(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAvatarUpload>>;
|
|
123
|
+
/**
|
|
124
|
+
* Upload a profile photo for the current user
|
|
125
|
+
*/
|
|
126
|
+
postUserAvatarUpload(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAvatarUpload>;
|
|
96
127
|
/**
|
|
97
128
|
* Creates request options for putUser without sending the request
|
|
98
129
|
*/
|
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -21,11 +21,49 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
|
-
import { GetUserFromJSON, LoginResFromJSON, PostLoginToJSON, PostResetPasswordToJSON, PostSendResetPasswordToJSON, PutUserToJSON, } from '../models/index';
|
|
24
|
+
import { GetUserFromJSON, GetUserAvatarUploadFromJSON, LoginResFromJSON, PostLoginToJSON, PostResetPasswordToJSON, PostSendResetPasswordToJSON, PutUserToJSON, } from '../models/index';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
export class UserApi extends runtime.BaseAPI {
|
|
29
|
+
/**
|
|
30
|
+
* Creates request options for deleteUserAvatar without sending the request
|
|
31
|
+
*/
|
|
32
|
+
deleteUserAvatarRequestOpts(requestParameters) {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
if (requestParameters['userId'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling deleteUserAvatar().');
|
|
36
|
+
}
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
let urlPath = `/users/{userId}/avatar`;
|
|
40
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
41
|
+
return {
|
|
42
|
+
path: urlPath,
|
|
43
|
+
method: 'DELETE',
|
|
44
|
+
headers: headerParameters,
|
|
45
|
+
query: queryParameters,
|
|
46
|
+
};
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Remove the current user\'s profile photo
|
|
51
|
+
*/
|
|
52
|
+
deleteUserAvatarRaw(requestParameters, initOverrides) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const requestOptions = yield this.deleteUserAvatarRequestOpts(requestParameters);
|
|
55
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
56
|
+
return new runtime.VoidApiResponse(response);
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Remove the current user\'s profile photo
|
|
61
|
+
*/
|
|
62
|
+
deleteUserAvatar(requestParameters, initOverrides) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
yield this.deleteUserAvatarRaw(requestParameters, initOverrides);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
29
67
|
/**
|
|
30
68
|
* Creates request options for getAuthCheck without sending the request
|
|
31
69
|
*/
|
|
@@ -210,6 +248,67 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
210
248
|
yield this.postLogoutRaw(initOverrides);
|
|
211
249
|
});
|
|
212
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* Creates request options for postUserAvatarUpload without sending the request
|
|
253
|
+
*/
|
|
254
|
+
postUserAvatarUploadRequestOpts(requestParameters) {
|
|
255
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
256
|
+
if (requestParameters['userId'] == null) {
|
|
257
|
+
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling postUserAvatarUpload().');
|
|
258
|
+
}
|
|
259
|
+
if (requestParameters['file'] == null) {
|
|
260
|
+
throw new runtime.RequiredError('file', 'Required parameter "file" was null or undefined when calling postUserAvatarUpload().');
|
|
261
|
+
}
|
|
262
|
+
const queryParameters = {};
|
|
263
|
+
const headerParameters = {};
|
|
264
|
+
const consumes = [
|
|
265
|
+
{ contentType: 'multipart/form-data' },
|
|
266
|
+
];
|
|
267
|
+
// @ts-ignore: canConsumeForm may be unused
|
|
268
|
+
const canConsumeForm = runtime.canConsumeForm(consumes);
|
|
269
|
+
let formParams;
|
|
270
|
+
let useForm = false;
|
|
271
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
272
|
+
useForm = canConsumeForm;
|
|
273
|
+
if (useForm) {
|
|
274
|
+
formParams = new FormData();
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
formParams = new URLSearchParams();
|
|
278
|
+
}
|
|
279
|
+
if (requestParameters['file'] != null) {
|
|
280
|
+
formParams.append('file', requestParameters['file']);
|
|
281
|
+
}
|
|
282
|
+
let urlPath = `/users/{userId}/avatar`;
|
|
283
|
+
urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
|
|
284
|
+
return {
|
|
285
|
+
path: urlPath,
|
|
286
|
+
method: 'POST',
|
|
287
|
+
headers: headerParameters,
|
|
288
|
+
query: queryParameters,
|
|
289
|
+
body: formParams,
|
|
290
|
+
};
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Upload a profile photo for the current user
|
|
295
|
+
*/
|
|
296
|
+
postUserAvatarUploadRaw(requestParameters, initOverrides) {
|
|
297
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
298
|
+
const requestOptions = yield this.postUserAvatarUploadRequestOpts(requestParameters);
|
|
299
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
300
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GetUserAvatarUploadFromJSON(jsonValue));
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Upload a profile photo for the current user
|
|
305
|
+
*/
|
|
306
|
+
postUserAvatarUpload(requestParameters, initOverrides) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
308
|
+
const response = yield this.postUserAvatarUploadRaw(requestParameters, initOverrides);
|
|
309
|
+
return yield response.value();
|
|
310
|
+
});
|
|
311
|
+
}
|
|
213
312
|
/**
|
|
214
313
|
* Creates request options for putUser without sending the request
|
|
215
314
|
*/
|
|
@@ -49,6 +49,7 @@ export function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
49
|
'name': json['name'],
|
|
50
50
|
'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
|
|
51
51
|
'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
|
|
52
|
+
'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
|
|
52
53
|
'headerBackgroundColor': json['header_background_color'],
|
|
53
54
|
'headerTextColor': json['header_text_color'],
|
|
54
55
|
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
@@ -66,6 +67,7 @@ export function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
67
|
'name': value['name'],
|
|
67
68
|
'parent_portal_id': value['parentPortalId'],
|
|
68
69
|
'logo_url': value['logoUrl'],
|
|
70
|
+
'favicon_url': value['faviconUrl'],
|
|
69
71
|
'header_background_color': value['headerBackgroundColor'],
|
|
70
72
|
'header_text_color': value['headerTextColor'],
|
|
71
73
|
'base_type': value['baseType'],
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetPortalFaviconUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalFaviconUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Presigned URL for the uploaded favicon image
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPortalFaviconUpload
|
|
22
|
+
*/
|
|
23
|
+
faviconUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetPortalFaviconUpload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetPortalFaviconUpload(value: object): value is GetPortalFaviconUpload;
|
|
29
|
+
export declare function GetPortalFaviconUploadFromJSON(json: any): GetPortalFaviconUpload;
|
|
30
|
+
export declare function GetPortalFaviconUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalFaviconUpload;
|
|
31
|
+
export declare function GetPortalFaviconUploadToJSON(json: any): GetPortalFaviconUpload;
|
|
32
|
+
export declare function GetPortalFaviconUploadToJSONTyped(value?: GetPortalFaviconUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 GetPortalFaviconUpload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetPortalFaviconUpload(value) {
|
|
18
|
+
if (!('faviconUrl' in value) || value['faviconUrl'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GetPortalFaviconUploadFromJSON(json) {
|
|
23
|
+
return GetPortalFaviconUploadFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GetPortalFaviconUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'faviconUrl': json['favicon_url'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function GetPortalFaviconUploadToJSON(json) {
|
|
34
|
+
return GetPortalFaviconUploadToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetPortalFaviconUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'favicon_url': value['faviconUrl'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -39,6 +39,12 @@ export interface GetUser {
|
|
|
39
39
|
* @memberof GetUser
|
|
40
40
|
*/
|
|
41
41
|
email: string;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned URL for the user's profile photo, or null if none set
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetUser
|
|
46
|
+
*/
|
|
47
|
+
avatarUrl?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Unix timestamp in seconds
|
|
44
50
|
* @type {number}
|
|
@@ -39,6 +39,7 @@ export function GetUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'firstName': json['first_name'],
|
|
40
40
|
'lastName': json['last_name'],
|
|
41
41
|
'email': json['email'],
|
|
42
|
+
'avatarUrl': json['avatar_url'] == null ? undefined : json['avatar_url'],
|
|
42
43
|
'lastUpdated': json['last_updated'],
|
|
43
44
|
};
|
|
44
45
|
}
|
|
@@ -53,6 +54,7 @@ export function GetUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
53
54
|
'first_name': value['firstName'],
|
|
54
55
|
'last_name': value['lastName'],
|
|
55
56
|
'email': value['email'],
|
|
57
|
+
'avatar_url': value['avatarUrl'],
|
|
56
58
|
'last_updated': value['lastUpdated'],
|
|
57
59
|
};
|
|
58
60
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetUserAvatarUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserAvatarUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Presigned URL for the uploaded avatar image
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserAvatarUpload
|
|
22
|
+
*/
|
|
23
|
+
avatarUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetUserAvatarUpload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetUserAvatarUpload(value: object): value is GetUserAvatarUpload;
|
|
29
|
+
export declare function GetUserAvatarUploadFromJSON(json: any): GetUserAvatarUpload;
|
|
30
|
+
export declare function GetUserAvatarUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserAvatarUpload;
|
|
31
|
+
export declare function GetUserAvatarUploadToJSON(json: any): GetUserAvatarUpload;
|
|
32
|
+
export declare function GetUserAvatarUploadToJSONTyped(value?: GetUserAvatarUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 GetUserAvatarUpload interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfGetUserAvatarUpload(value) {
|
|
18
|
+
if (!('avatarUrl' in value) || value['avatarUrl'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function GetUserAvatarUploadFromJSON(json) {
|
|
23
|
+
return GetUserAvatarUploadFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function GetUserAvatarUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'avatarUrl': json['avatar_url'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function GetUserAvatarUploadToJSON(json) {
|
|
34
|
+
return GetUserAvatarUploadToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function GetUserAvatarUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'avatar_url': value['avatarUrl'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -70,6 +70,7 @@ export * from './GetPortal';
|
|
|
70
70
|
export * from './GetPortalBasicReporting';
|
|
71
71
|
export * from './GetPortalBasicReportingCertificates';
|
|
72
72
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
73
|
+
export * from './GetPortalFaviconUpload';
|
|
73
74
|
export * from './GetPortalList';
|
|
74
75
|
export * from './GetPortalLogoUpload';
|
|
75
76
|
export * from './GetPortalStudentReporting';
|
|
@@ -139,6 +140,7 @@ export * from './GetSupportTicketAttachment';
|
|
|
139
140
|
export * from './GetSupportTicketComment';
|
|
140
141
|
export * from './GetSupportTicketList';
|
|
141
142
|
export * from './GetUser';
|
|
143
|
+
export * from './GetUserAvatarUpload';
|
|
142
144
|
export * from './GetUserQuizAttempts';
|
|
143
145
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
144
146
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -72,6 +72,7 @@ export * from './GetPortal';
|
|
|
72
72
|
export * from './GetPortalBasicReporting';
|
|
73
73
|
export * from './GetPortalBasicReportingCertificates';
|
|
74
74
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
75
|
+
export * from './GetPortalFaviconUpload';
|
|
75
76
|
export * from './GetPortalList';
|
|
76
77
|
export * from './GetPortalLogoUpload';
|
|
77
78
|
export * from './GetPortalStudentReporting';
|
|
@@ -141,6 +142,7 @@ export * from './GetSupportTicketAttachment';
|
|
|
141
142
|
export * from './GetSupportTicketComment';
|
|
142
143
|
export * from './GetSupportTicketList';
|
|
143
144
|
export * from './GetUser';
|
|
145
|
+
export * from './GetUserAvatarUpload';
|
|
144
146
|
export * from './GetUserQuizAttempts';
|
|
145
147
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
146
148
|
export * from './GetUserQuizAttemptsAllOfFilters';
|
package/dist/models/GetPortal.js
CHANGED
|
@@ -57,6 +57,7 @@ function GetPortalFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
57
57
|
'name': json['name'],
|
|
58
58
|
'parentPortalId': json['parent_portal_id'] == null ? undefined : json['parent_portal_id'],
|
|
59
59
|
'logoUrl': json['logo_url'] == null ? undefined : json['logo_url'],
|
|
60
|
+
'faviconUrl': json['favicon_url'] == null ? undefined : json['favicon_url'],
|
|
60
61
|
'headerBackgroundColor': json['header_background_color'],
|
|
61
62
|
'headerTextColor': json['header_text_color'],
|
|
62
63
|
'baseType': json['base_type'] == null ? undefined : json['base_type'],
|
|
@@ -74,6 +75,7 @@ function GetPortalToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
74
75
|
'name': value['name'],
|
|
75
76
|
'parent_portal_id': value['parentPortalId'],
|
|
76
77
|
'logo_url': value['logoUrl'],
|
|
78
|
+
'favicon_url': value['faviconUrl'],
|
|
77
79
|
'header_background_color': value['headerBackgroundColor'],
|
|
78
80
|
'header_text_color': value['headerTextColor'],
|
|
79
81
|
'base_type': value['baseType'],
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetPortalFaviconUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetPortalFaviconUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Presigned URL for the uploaded favicon image
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetPortalFaviconUpload
|
|
22
|
+
*/
|
|
23
|
+
faviconUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetPortalFaviconUpload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetPortalFaviconUpload(value: object): value is GetPortalFaviconUpload;
|
|
29
|
+
export declare function GetPortalFaviconUploadFromJSON(json: any): GetPortalFaviconUpload;
|
|
30
|
+
export declare function GetPortalFaviconUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalFaviconUpload;
|
|
31
|
+
export declare function GetPortalFaviconUploadToJSON(json: any): GetPortalFaviconUpload;
|
|
32
|
+
export declare function GetPortalFaviconUploadToJSONTyped(value?: GetPortalFaviconUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfGetPortalFaviconUpload = instanceOfGetPortalFaviconUpload;
|
|
17
|
+
exports.GetPortalFaviconUploadFromJSON = GetPortalFaviconUploadFromJSON;
|
|
18
|
+
exports.GetPortalFaviconUploadFromJSONTyped = GetPortalFaviconUploadFromJSONTyped;
|
|
19
|
+
exports.GetPortalFaviconUploadToJSON = GetPortalFaviconUploadToJSON;
|
|
20
|
+
exports.GetPortalFaviconUploadToJSONTyped = GetPortalFaviconUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetPortalFaviconUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetPortalFaviconUpload(value) {
|
|
25
|
+
if (!('faviconUrl' in value) || value['faviconUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetPortalFaviconUploadFromJSON(json) {
|
|
30
|
+
return GetPortalFaviconUploadFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetPortalFaviconUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'faviconUrl': json['favicon_url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetPortalFaviconUploadToJSON(json) {
|
|
41
|
+
return GetPortalFaviconUploadToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetPortalFaviconUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'favicon_url': value['faviconUrl'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/GetUser.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ export interface GetUser {
|
|
|
39
39
|
* @memberof GetUser
|
|
40
40
|
*/
|
|
41
41
|
email: string;
|
|
42
|
+
/**
|
|
43
|
+
* Presigned URL for the user's profile photo, or null if none set
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof GetUser
|
|
46
|
+
*/
|
|
47
|
+
avatarUrl?: string | null;
|
|
42
48
|
/**
|
|
43
49
|
* Unix timestamp in seconds
|
|
44
50
|
* @type {number}
|
package/dist/models/GetUser.js
CHANGED
|
@@ -46,6 +46,7 @@ function GetUserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'firstName': json['first_name'],
|
|
47
47
|
'lastName': json['last_name'],
|
|
48
48
|
'email': json['email'],
|
|
49
|
+
'avatarUrl': json['avatar_url'] == null ? undefined : json['avatar_url'],
|
|
49
50
|
'lastUpdated': json['last_updated'],
|
|
50
51
|
};
|
|
51
52
|
}
|
|
@@ -60,6 +61,7 @@ function GetUserToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
60
61
|
'first_name': value['firstName'],
|
|
61
62
|
'last_name': value['lastName'],
|
|
62
63
|
'email': value['email'],
|
|
64
|
+
'avatar_url': value['avatarUrl'],
|
|
63
65
|
'last_updated': value['lastUpdated'],
|
|
64
66
|
};
|
|
65
67
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 GetUserAvatarUpload
|
|
16
|
+
*/
|
|
17
|
+
export interface GetUserAvatarUpload {
|
|
18
|
+
/**
|
|
19
|
+
* Presigned URL for the uploaded avatar image
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GetUserAvatarUpload
|
|
22
|
+
*/
|
|
23
|
+
avatarUrl: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the GetUserAvatarUpload interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfGetUserAvatarUpload(value: object): value is GetUserAvatarUpload;
|
|
29
|
+
export declare function GetUserAvatarUploadFromJSON(json: any): GetUserAvatarUpload;
|
|
30
|
+
export declare function GetUserAvatarUploadFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetUserAvatarUpload;
|
|
31
|
+
export declare function GetUserAvatarUploadToJSON(json: any): GetUserAvatarUpload;
|
|
32
|
+
export declare function GetUserAvatarUploadToJSONTyped(value?: GetUserAvatarUpload | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.instanceOfGetUserAvatarUpload = instanceOfGetUserAvatarUpload;
|
|
17
|
+
exports.GetUserAvatarUploadFromJSON = GetUserAvatarUploadFromJSON;
|
|
18
|
+
exports.GetUserAvatarUploadFromJSONTyped = GetUserAvatarUploadFromJSONTyped;
|
|
19
|
+
exports.GetUserAvatarUploadToJSON = GetUserAvatarUploadToJSON;
|
|
20
|
+
exports.GetUserAvatarUploadToJSONTyped = GetUserAvatarUploadToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the GetUserAvatarUpload interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfGetUserAvatarUpload(value) {
|
|
25
|
+
if (!('avatarUrl' in value) || value['avatarUrl'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function GetUserAvatarUploadFromJSON(json) {
|
|
30
|
+
return GetUserAvatarUploadFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function GetUserAvatarUploadFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'avatarUrl': json['avatar_url'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function GetUserAvatarUploadToJSON(json) {
|
|
41
|
+
return GetUserAvatarUploadToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function GetUserAvatarUploadToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'avatar_url': value['avatarUrl'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export * from './GetPortal';
|
|
|
70
70
|
export * from './GetPortalBasicReporting';
|
|
71
71
|
export * from './GetPortalBasicReportingCertificates';
|
|
72
72
|
export * from './GetPortalBasicReportingPortalInfo';
|
|
73
|
+
export * from './GetPortalFaviconUpload';
|
|
73
74
|
export * from './GetPortalList';
|
|
74
75
|
export * from './GetPortalLogoUpload';
|
|
75
76
|
export * from './GetPortalStudentReporting';
|
|
@@ -139,6 +140,7 @@ export * from './GetSupportTicketAttachment';
|
|
|
139
140
|
export * from './GetSupportTicketComment';
|
|
140
141
|
export * from './GetSupportTicketList';
|
|
141
142
|
export * from './GetUser';
|
|
143
|
+
export * from './GetUserAvatarUpload';
|
|
142
144
|
export * from './GetUserQuizAttempts';
|
|
143
145
|
export * from './GetUserQuizAttemptsAllOfAttempts';
|
|
144
146
|
export * from './GetUserQuizAttemptsAllOfFilters';
|