@easyedu/js-lsm-api 1.62.0 → 1.64.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -0
- package/README.md +22 -2
- package/dist/apis/ContentApi.d.ts +19 -0
- package/dist/apis/ContentApi.js +48 -0
- package/dist/apis/CourseApi.d.ts +17 -0
- package/dist/apis/CourseApi.js +40 -0
- package/dist/apis/DispatchApi.d.ts +44 -0
- package/dist/apis/DispatchApi.js +104 -0
- package/dist/apis/ModuleApi.d.ts +18 -0
- package/dist/apis/ModuleApi.js +44 -0
- package/dist/apis/PlayerApi.d.ts +183 -0
- package/dist/apis/PlayerApi.js +454 -0
- package/dist/apis/UserApi.d.ts +32 -0
- package/dist/apis/UserApi.js +82 -0
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/apis/ContentApi.d.ts +19 -0
- package/dist/esm/apis/ContentApi.js +48 -0
- package/dist/esm/apis/CourseApi.d.ts +17 -0
- package/dist/esm/apis/CourseApi.js +40 -0
- package/dist/esm/apis/DispatchApi.d.ts +44 -0
- package/dist/esm/apis/DispatchApi.js +100 -0
- package/dist/esm/apis/ModuleApi.d.ts +18 -0
- package/dist/esm/apis/ModuleApi.js +44 -0
- package/dist/esm/apis/PlayerApi.d.ts +183 -0
- package/dist/esm/apis/PlayerApi.js +450 -0
- package/dist/esm/apis/UserApi.d.ts +32 -0
- package/dist/esm/apis/UserApi.js +82 -0
- package/dist/esm/apis/index.d.ts +2 -0
- package/dist/esm/apis/index.js +2 -0
- package/dist/esm/models/PostSignupRequest.d.ts +68 -0
- package/dist/esm/models/PostSignupRequest.js +67 -0
- package/dist/esm/models/PostSignupRequestResponse.d.ts +32 -0
- package/dist/esm/models/PostSignupRequestResponse.js +43 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/PostSignupRequest.d.ts +68 -0
- package/dist/models/PostSignupRequest.js +74 -0
- package/dist/models/PostSignupRequestResponse.d.ts +32 -0
- package/dist/models/PostSignupRequestResponse.js +50 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/docs/ContentApi.md +76 -0
- package/docs/CourseApi.md +70 -0
- package/docs/DispatchApi.md +134 -0
- package/docs/ModuleApi.md +73 -0
- package/docs/PlayerApi.md +760 -0
- package/docs/PostSignupRequest.md +46 -0
- package/docs/PostSignupRequestResponse.md +34 -0
- package/docs/UserApi.md +134 -0
- package/package.json +1 -1
- package/src/apis/ContentApi.ts +68 -0
- package/src/apis/CourseApi.ts +50 -0
- package/src/apis/DispatchApi.ts +106 -0
- package/src/apis/ModuleApi.ts +59 -0
- package/src/apis/PlayerApi.ts +559 -0
- package/src/apis/UserApi.ts +112 -0
- package/src/apis/index.ts +2 -0
- package/src/models/PostSignupRequest.ts +120 -0
- package/src/models/PostSignupRequestResponse.ts +66 -0
- package/src/models/index.ts +2 -0
package/dist/esm/apis/UserApi.js
CHANGED
|
@@ -27,6 +27,8 @@ import { LoginResFromJSON, } from '../models/LoginRes';
|
|
|
27
27
|
import { PostLoginToJSON, } from '../models/PostLogin';
|
|
28
28
|
import { PostResetPasswordToJSON, } from '../models/PostResetPassword';
|
|
29
29
|
import { PostSendResetPasswordToJSON, } from '../models/PostSendResetPassword';
|
|
30
|
+
import { PostSignupRequestToJSON, } from '../models/PostSignupRequest';
|
|
31
|
+
import { PostSignupRequestResponseFromJSON, } from '../models/PostSignupRequestResponse';
|
|
30
32
|
import { PutUserToJSON, } from '../models/PutUser';
|
|
31
33
|
/**
|
|
32
34
|
*
|
|
@@ -254,6 +256,46 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
254
256
|
yield this.postLogoutRaw(initOverrides);
|
|
255
257
|
});
|
|
256
258
|
}
|
|
259
|
+
/**
|
|
260
|
+
* Creates request options for postSignupRequest without sending the request
|
|
261
|
+
*/
|
|
262
|
+
postSignupRequestRequestOpts(requestParameters) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
if (requestParameters['postSignupRequest'] == null) {
|
|
265
|
+
throw new runtime.RequiredError('postSignupRequest', 'Required parameter "postSignupRequest" was null or undefined when calling postSignupRequest().');
|
|
266
|
+
}
|
|
267
|
+
const queryParameters = {};
|
|
268
|
+
const headerParameters = {};
|
|
269
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
270
|
+
let urlPath = `/auth/signup-request`;
|
|
271
|
+
return {
|
|
272
|
+
path: urlPath,
|
|
273
|
+
method: 'POST',
|
|
274
|
+
headers: headerParameters,
|
|
275
|
+
query: queryParameters,
|
|
276
|
+
body: PostSignupRequestToJSON(requestParameters['postSignupRequest']),
|
|
277
|
+
};
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* Request a new organization signup
|
|
282
|
+
*/
|
|
283
|
+
postSignupRequestRaw(requestParameters, initOverrides) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
const requestOptions = yield this.postSignupRequestRequestOpts(requestParameters);
|
|
286
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
287
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostSignupRequestResponseFromJSON(jsonValue));
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Request a new organization signup
|
|
292
|
+
*/
|
|
293
|
+
postSignupRequest(requestParameters, initOverrides) {
|
|
294
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
295
|
+
const response = yield this.postSignupRequestRaw(requestParameters, initOverrides);
|
|
296
|
+
return yield response.value();
|
|
297
|
+
});
|
|
298
|
+
}
|
|
257
299
|
/**
|
|
258
300
|
* Creates request options for postUserAvatarUpload without sending the request
|
|
259
301
|
*/
|
|
@@ -437,4 +479,44 @@ export class UserApi extends runtime.BaseAPI {
|
|
|
437
479
|
yield this.sendResetPasswordRaw(requestParameters, initOverrides);
|
|
438
480
|
});
|
|
439
481
|
}
|
|
482
|
+
/**
|
|
483
|
+
* Creates request options for verifySignupRequest without sending the request
|
|
484
|
+
*/
|
|
485
|
+
verifySignupRequestRequestOpts(requestParameters) {
|
|
486
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
487
|
+
if (requestParameters['token'] == null) {
|
|
488
|
+
throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifySignupRequest().');
|
|
489
|
+
}
|
|
490
|
+
const queryParameters = {};
|
|
491
|
+
if (requestParameters['token'] != null) {
|
|
492
|
+
queryParameters['token'] = requestParameters['token'];
|
|
493
|
+
}
|
|
494
|
+
const headerParameters = {};
|
|
495
|
+
let urlPath = `/auth/signup/verify`;
|
|
496
|
+
return {
|
|
497
|
+
path: urlPath,
|
|
498
|
+
method: 'GET',
|
|
499
|
+
headers: headerParameters,
|
|
500
|
+
query: queryParameters,
|
|
501
|
+
};
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Verify a signup request and provision the portal
|
|
506
|
+
*/
|
|
507
|
+
verifySignupRequestRaw(requestParameters, initOverrides) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
const requestOptions = yield this.verifySignupRequestRequestOpts(requestParameters);
|
|
510
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
511
|
+
return new runtime.VoidApiResponse(response);
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Verify a signup request and provision the portal
|
|
516
|
+
*/
|
|
517
|
+
verifySignupRequest(requestParameters, initOverrides) {
|
|
518
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
519
|
+
yield this.verifySignupRequestRaw(requestParameters, initOverrides);
|
|
520
|
+
});
|
|
521
|
+
}
|
|
440
522
|
}
|
package/dist/esm/apis/index.d.ts
CHANGED
|
@@ -4,8 +4,10 @@ export * from './ContentApi';
|
|
|
4
4
|
export * from './CourseApi';
|
|
5
5
|
export * from './CourseCatalogApi';
|
|
6
6
|
export * from './CourseShareApi';
|
|
7
|
+
export * from './DispatchApi';
|
|
7
8
|
export * from './ModuleApi';
|
|
8
9
|
export * from './OtherApi';
|
|
10
|
+
export * from './PlayerApi';
|
|
9
11
|
export * from './PortalApi';
|
|
10
12
|
export * from './PortalSublicenseApi';
|
|
11
13
|
export * from './QuestionApi';
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -6,8 +6,10 @@ export * from './ContentApi';
|
|
|
6
6
|
export * from './CourseApi';
|
|
7
7
|
export * from './CourseCatalogApi';
|
|
8
8
|
export * from './CourseShareApi';
|
|
9
|
+
export * from './DispatchApi';
|
|
9
10
|
export * from './ModuleApi';
|
|
10
11
|
export * from './OtherApi';
|
|
12
|
+
export * from './PlayerApi';
|
|
11
13
|
export * from './PortalApi';
|
|
12
14
|
export * from './PortalSublicenseApi';
|
|
13
15
|
export * from './QuestionApi';
|
|
@@ -0,0 +1,68 @@
|
|
|
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 PostSignupRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PostSignupRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostSignupRequest
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostSignupRequest
|
|
28
|
+
*/
|
|
29
|
+
lastName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostSignupRequest
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostSignupRequest
|
|
40
|
+
*/
|
|
41
|
+
password: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostSignupRequest
|
|
46
|
+
*/
|
|
47
|
+
organization: string;
|
|
48
|
+
/**
|
|
49
|
+
* Signup/onboarding role supplied by the user; not an LMS RBAC role.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PostSignupRequest
|
|
52
|
+
*/
|
|
53
|
+
jobRole: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PostSignupRequest
|
|
58
|
+
*/
|
|
59
|
+
learnerCount: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PostSignupRequest interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfPostSignupRequest(value: object): value is PostSignupRequest;
|
|
65
|
+
export declare function PostSignupRequestFromJSON(json: any): PostSignupRequest;
|
|
66
|
+
export declare function PostSignupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSignupRequest;
|
|
67
|
+
export declare function PostSignupRequestToJSON(json: any): PostSignupRequest;
|
|
68
|
+
export declare function PostSignupRequestToJSONTyped(value?: PostSignupRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
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 PostSignupRequest interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostSignupRequest(value) {
|
|
18
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('organization' in value) || value['organization'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('jobRole' in value) || value['jobRole'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('learnerCount' in value) || value['learnerCount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function PostSignupRequestFromJSON(json) {
|
|
35
|
+
return PostSignupRequestFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PostSignupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'firstName': json['first_name'],
|
|
43
|
+
'lastName': json['last_name'],
|
|
44
|
+
'email': json['email'],
|
|
45
|
+
'password': json['password'],
|
|
46
|
+
'organization': json['organization'],
|
|
47
|
+
'jobRole': json['job_role'],
|
|
48
|
+
'learnerCount': json['learner_count'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function PostSignupRequestToJSON(json) {
|
|
52
|
+
return PostSignupRequestToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function PostSignupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'first_name': value['firstName'],
|
|
60
|
+
'last_name': value['lastName'],
|
|
61
|
+
'email': value['email'],
|
|
62
|
+
'password': value['password'],
|
|
63
|
+
'organization': value['organization'],
|
|
64
|
+
'job_role': value['jobRole'],
|
|
65
|
+
'learner_count': value['learnerCount'],
|
|
66
|
+
};
|
|
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 PostSignupRequestResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostSignupRequestResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostSignupRequestResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostSignupRequestResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostSignupRequestResponse(value: object): value is PostSignupRequestResponse;
|
|
29
|
+
export declare function PostSignupRequestResponseFromJSON(json: any): PostSignupRequestResponse;
|
|
30
|
+
export declare function PostSignupRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSignupRequestResponse;
|
|
31
|
+
export declare function PostSignupRequestResponseToJSON(json: any): PostSignupRequestResponse;
|
|
32
|
+
export declare function PostSignupRequestResponseToJSONTyped(value?: PostSignupRequestResponse | 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 PostSignupRequestResponse interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPostSignupRequestResponse(value) {
|
|
18
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function PostSignupRequestResponseFromJSON(json) {
|
|
23
|
+
return PostSignupRequestResponseFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function PostSignupRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'message': json['message'],
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
export function PostSignupRequestResponseToJSON(json) {
|
|
34
|
+
return PostSignupRequestResponseToJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
export function PostSignupRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
37
|
+
if (value == null) {
|
|
38
|
+
return value;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'message': value['message'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -210,6 +210,8 @@ export * from './PostResetPassword';
|
|
|
210
210
|
export * from './PostRevokeCertificate';
|
|
211
211
|
export * from './PostRole';
|
|
212
212
|
export * from './PostSendResetPassword';
|
|
213
|
+
export * from './PostSignupRequest';
|
|
214
|
+
export * from './PostSignupRequestResponse';
|
|
213
215
|
export * from './PostSupportTicket';
|
|
214
216
|
export * from './PostSupportTicketComment';
|
|
215
217
|
export * from './PostVerifyManifest';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -212,6 +212,8 @@ export * from './PostResetPassword';
|
|
|
212
212
|
export * from './PostRevokeCertificate';
|
|
213
213
|
export * from './PostRole';
|
|
214
214
|
export * from './PostSendResetPassword';
|
|
215
|
+
export * from './PostSignupRequest';
|
|
216
|
+
export * from './PostSignupRequestResponse';
|
|
215
217
|
export * from './PostSupportTicket';
|
|
216
218
|
export * from './PostSupportTicketComment';
|
|
217
219
|
export * from './PostVerifyManifest';
|
|
@@ -0,0 +1,68 @@
|
|
|
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 PostSignupRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface PostSignupRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostSignupRequest
|
|
22
|
+
*/
|
|
23
|
+
firstName: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PostSignupRequest
|
|
28
|
+
*/
|
|
29
|
+
lastName: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PostSignupRequest
|
|
34
|
+
*/
|
|
35
|
+
email: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PostSignupRequest
|
|
40
|
+
*/
|
|
41
|
+
password: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof PostSignupRequest
|
|
46
|
+
*/
|
|
47
|
+
organization: string;
|
|
48
|
+
/**
|
|
49
|
+
* Signup/onboarding role supplied by the user; not an LMS RBAC role.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof PostSignupRequest
|
|
52
|
+
*/
|
|
53
|
+
jobRole: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {number}
|
|
57
|
+
* @memberof PostSignupRequest
|
|
58
|
+
*/
|
|
59
|
+
learnerCount: number;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the PostSignupRequest interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfPostSignupRequest(value: object): value is PostSignupRequest;
|
|
65
|
+
export declare function PostSignupRequestFromJSON(json: any): PostSignupRequest;
|
|
66
|
+
export declare function PostSignupRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSignupRequest;
|
|
67
|
+
export declare function PostSignupRequestToJSON(json: any): PostSignupRequest;
|
|
68
|
+
export declare function PostSignupRequestToJSONTyped(value?: PostSignupRequest | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.instanceOfPostSignupRequest = instanceOfPostSignupRequest;
|
|
17
|
+
exports.PostSignupRequestFromJSON = PostSignupRequestFromJSON;
|
|
18
|
+
exports.PostSignupRequestFromJSONTyped = PostSignupRequestFromJSONTyped;
|
|
19
|
+
exports.PostSignupRequestToJSON = PostSignupRequestToJSON;
|
|
20
|
+
exports.PostSignupRequestToJSONTyped = PostSignupRequestToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostSignupRequest interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostSignupRequest(value) {
|
|
25
|
+
if (!('firstName' in value) || value['firstName'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastName' in value) || value['lastName'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('email' in value) || value['email'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('password' in value) || value['password'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('organization' in value) || value['organization'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('jobRole' in value) || value['jobRole'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('learnerCount' in value) || value['learnerCount'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function PostSignupRequestFromJSON(json) {
|
|
42
|
+
return PostSignupRequestFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function PostSignupRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'firstName': json['first_name'],
|
|
50
|
+
'lastName': json['last_name'],
|
|
51
|
+
'email': json['email'],
|
|
52
|
+
'password': json['password'],
|
|
53
|
+
'organization': json['organization'],
|
|
54
|
+
'jobRole': json['job_role'],
|
|
55
|
+
'learnerCount': json['learner_count'],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function PostSignupRequestToJSON(json) {
|
|
59
|
+
return PostSignupRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
function PostSignupRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
62
|
+
if (value == null) {
|
|
63
|
+
return value;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
'first_name': value['firstName'],
|
|
67
|
+
'last_name': value['lastName'],
|
|
68
|
+
'email': value['email'],
|
|
69
|
+
'password': value['password'],
|
|
70
|
+
'organization': value['organization'],
|
|
71
|
+
'job_role': value['jobRole'],
|
|
72
|
+
'learner_count': value['learnerCount'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
@@ -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 PostSignupRequestResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface PostSignupRequestResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PostSignupRequestResponse
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PostSignupRequestResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPostSignupRequestResponse(value: object): value is PostSignupRequestResponse;
|
|
29
|
+
export declare function PostSignupRequestResponseFromJSON(json: any): PostSignupRequestResponse;
|
|
30
|
+
export declare function PostSignupRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostSignupRequestResponse;
|
|
31
|
+
export declare function PostSignupRequestResponseToJSON(json: any): PostSignupRequestResponse;
|
|
32
|
+
export declare function PostSignupRequestResponseToJSONTyped(value?: PostSignupRequestResponse | 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.instanceOfPostSignupRequestResponse = instanceOfPostSignupRequestResponse;
|
|
17
|
+
exports.PostSignupRequestResponseFromJSON = PostSignupRequestResponseFromJSON;
|
|
18
|
+
exports.PostSignupRequestResponseFromJSONTyped = PostSignupRequestResponseFromJSONTyped;
|
|
19
|
+
exports.PostSignupRequestResponseToJSON = PostSignupRequestResponseToJSON;
|
|
20
|
+
exports.PostSignupRequestResponseToJSONTyped = PostSignupRequestResponseToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the PostSignupRequestResponse interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfPostSignupRequestResponse(value) {
|
|
25
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function PostSignupRequestResponseFromJSON(json) {
|
|
30
|
+
return PostSignupRequestResponseFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function PostSignupRequestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'message': json['message'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
function PostSignupRequestResponseToJSON(json) {
|
|
41
|
+
return PostSignupRequestResponseToJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
function PostSignupRequestResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'message': value['message'],
|
|
49
|
+
};
|
|
50
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -210,6 +210,8 @@ export * from './PostResetPassword';
|
|
|
210
210
|
export * from './PostRevokeCertificate';
|
|
211
211
|
export * from './PostRole';
|
|
212
212
|
export * from './PostSendResetPassword';
|
|
213
|
+
export * from './PostSignupRequest';
|
|
214
|
+
export * from './PostSignupRequestResponse';
|
|
213
215
|
export * from './PostSupportTicket';
|
|
214
216
|
export * from './PostSupportTicketComment';
|
|
215
217
|
export * from './PostVerifyManifest';
|
package/dist/models/index.js
CHANGED
|
@@ -228,6 +228,8 @@ __exportStar(require("./PostResetPassword"), exports);
|
|
|
228
228
|
__exportStar(require("./PostRevokeCertificate"), exports);
|
|
229
229
|
__exportStar(require("./PostRole"), exports);
|
|
230
230
|
__exportStar(require("./PostSendResetPassword"), exports);
|
|
231
|
+
__exportStar(require("./PostSignupRequest"), exports);
|
|
232
|
+
__exportStar(require("./PostSignupRequestResponse"), exports);
|
|
231
233
|
__exportStar(require("./PostSupportTicket"), exports);
|
|
232
234
|
__exportStar(require("./PostSupportTicketComment"), exports);
|
|
233
235
|
__exportStar(require("./PostVerifyManifest"), exports);
|