@easyedu/js-lsm-api 1.77.0 → 1.79.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 +22 -0
- package/README.md +18 -2
- package/dist/apis/CourseApi.d.ts +18 -0
- package/dist/apis/CourseApi.js +49 -0
- package/dist/apis/PortalApi.d.ts +67 -0
- package/dist/apis/PortalApi.js +177 -0
- package/dist/esm/apis/CourseApi.d.ts +18 -0
- package/dist/esm/apis/CourseApi.js +49 -0
- package/dist/esm/apis/PortalApi.d.ts +67 -0
- package/dist/esm/apis/PortalApi.js +177 -0
- package/dist/esm/models/GetPortalUserFieldValues.d.ts +53 -0
- package/dist/esm/models/GetPortalUserFieldValues.js +58 -0
- package/dist/esm/models/PortalUserFieldConfig.d.ts +40 -0
- package/dist/esm/models/PortalUserFieldConfig.js +49 -0
- package/dist/esm/models/PortalUserFieldDefinition.d.ts +108 -0
- package/dist/esm/models/PortalUserFieldDefinition.js +90 -0
- package/dist/esm/models/PortalUserFieldGroup.d.ts +62 -0
- package/dist/esm/models/PortalUserFieldGroup.js +59 -0
- package/dist/esm/models/PortalUserFieldMissingRequired.d.ts +56 -0
- package/dist/esm/models/PortalUserFieldMissingRequired.js +55 -0
- package/dist/esm/models/PortalUserFieldOption.d.ts +56 -0
- package/dist/esm/models/PortalUserFieldOption.js +57 -0
- package/dist/esm/models/PortalUserFieldValueField.d.ts +96 -0
- package/dist/esm/models/PortalUserFieldValueField.js +86 -0
- package/dist/esm/models/PortalUserFieldValueGroup.d.ts +57 -0
- package/dist/esm/models/PortalUserFieldValueGroup.js +60 -0
- package/dist/esm/models/PortalUserFieldValueInput.d.ts +38 -0
- package/dist/esm/models/PortalUserFieldValueInput.js +47 -0
- package/dist/esm/models/PostCourseResume.d.ts +93 -0
- package/dist/esm/models/PostCourseResume.js +82 -0
- package/dist/esm/models/PutPortalUserFieldValues.d.ts +33 -0
- package/dist/esm/models/PutPortalUserFieldValues.js +44 -0
- package/dist/esm/models/index.d.ts +11 -0
- package/dist/esm/models/index.js +11 -0
- package/dist/models/GetPortalUserFieldValues.d.ts +53 -0
- package/dist/models/GetPortalUserFieldValues.js +65 -0
- package/dist/models/PortalUserFieldConfig.d.ts +40 -0
- package/dist/models/PortalUserFieldConfig.js +56 -0
- package/dist/models/PortalUserFieldDefinition.d.ts +108 -0
- package/dist/models/PortalUserFieldDefinition.js +98 -0
- package/dist/models/PortalUserFieldGroup.d.ts +62 -0
- package/dist/models/PortalUserFieldGroup.js +66 -0
- package/dist/models/PortalUserFieldMissingRequired.d.ts +56 -0
- package/dist/models/PortalUserFieldMissingRequired.js +62 -0
- package/dist/models/PortalUserFieldOption.d.ts +56 -0
- package/dist/models/PortalUserFieldOption.js +64 -0
- package/dist/models/PortalUserFieldValueField.d.ts +96 -0
- package/dist/models/PortalUserFieldValueField.js +94 -0
- package/dist/models/PortalUserFieldValueGroup.d.ts +57 -0
- package/dist/models/PortalUserFieldValueGroup.js +67 -0
- package/dist/models/PortalUserFieldValueInput.d.ts +38 -0
- package/dist/models/PortalUserFieldValueInput.js +54 -0
- package/dist/models/PostCourseResume.d.ts +93 -0
- package/dist/models/PostCourseResume.js +89 -0
- package/dist/models/PutPortalUserFieldValues.d.ts +33 -0
- package/dist/models/PutPortalUserFieldValues.js +51 -0
- package/dist/models/index.d.ts +11 -0
- package/dist/models/index.js +11 -0
- package/docs/CourseApi.md +72 -0
- package/docs/GetPortalUserFieldValues.md +40 -0
- package/docs/PortalApi.md +287 -0
- package/docs/PortalUserFieldConfig.md +36 -0
- package/docs/PortalUserFieldDefinition.md +54 -0
- package/docs/PortalUserFieldGroup.md +44 -0
- package/docs/PortalUserFieldMissingRequired.md +42 -0
- package/docs/PortalUserFieldOption.md +42 -0
- package/docs/PortalUserFieldValueField.md +50 -0
- package/docs/PortalUserFieldValueGroup.md +42 -0
- package/docs/PortalUserFieldValueInput.md +36 -0
- package/docs/PostCourseResume.md +55 -0
- package/docs/PutPortalUserFieldValues.md +34 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +63 -0
- package/src/apis/PortalApi.ts +251 -0
- package/src/models/GetPortalUserFieldValues.ts +115 -0
- package/src/models/PortalUserFieldConfig.ts +90 -0
- package/src/models/PortalUserFieldDefinition.ts +178 -0
- package/src/models/PortalUserFieldGroup.ts +109 -0
- package/src/models/PortalUserFieldMissingRequired.ts +100 -0
- package/src/models/PortalUserFieldOption.ts +101 -0
- package/src/models/PortalUserFieldValueField.ts +162 -0
- package/src/models/PortalUserFieldValueGroup.ts +110 -0
- package/src/models/PortalUserFieldValueInput.ts +75 -0
- package/src/models/PostCourseResume.ts +165 -0
- package/src/models/PutPortalUserFieldValues.ts +74 -0
- package/src/models/index.ts +11 -0
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import { PortalUserFieldOptionFromJSON, PortalUserFieldOptionToJSON, } from './PortalUserFieldOption';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const PortalUserFieldValueFieldFieldTypeEnum = {
|
|
19
|
+
Text: 'text',
|
|
20
|
+
Textarea: 'textarea',
|
|
21
|
+
Email: 'email',
|
|
22
|
+
Phone: 'phone',
|
|
23
|
+
Number: 'number',
|
|
24
|
+
Boolean: 'boolean',
|
|
25
|
+
Date: 'date',
|
|
26
|
+
Select: 'select',
|
|
27
|
+
MultiSelect: 'multi_select'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the PortalUserFieldValueField interface.
|
|
31
|
+
*/
|
|
32
|
+
export function instanceOfPortalUserFieldValueField(value) {
|
|
33
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
if (!('fieldType' in value) || value['fieldType'] === undefined)
|
|
40
|
+
return false;
|
|
41
|
+
if (!('isRequired' in value) || value['isRequired'] === undefined)
|
|
42
|
+
return false;
|
|
43
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
44
|
+
return false;
|
|
45
|
+
if (!('options' in value) || value['options'] === undefined)
|
|
46
|
+
return false;
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
export function PortalUserFieldValueFieldFromJSON(json) {
|
|
50
|
+
return PortalUserFieldValueFieldFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
export function PortalUserFieldValueFieldFromJSONTyped(json, ignoreDiscriminator) {
|
|
53
|
+
if (json == null) {
|
|
54
|
+
return json;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
'id': json['id'],
|
|
58
|
+
'key': json['key'],
|
|
59
|
+
'label': json['label'],
|
|
60
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
61
|
+
'fieldType': json['field_type'],
|
|
62
|
+
'isRequired': json['is_required'],
|
|
63
|
+
'displayOrder': json['display_order'],
|
|
64
|
+
'value': json['value'] == null ? undefined : json['value'],
|
|
65
|
+
'options': (json['options'].map(PortalUserFieldOptionFromJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function PortalUserFieldValueFieldToJSON(json) {
|
|
69
|
+
return PortalUserFieldValueFieldToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
export function PortalUserFieldValueFieldToJSONTyped(value, ignoreDiscriminator = false) {
|
|
72
|
+
if (value == null) {
|
|
73
|
+
return value;
|
|
74
|
+
}
|
|
75
|
+
return {
|
|
76
|
+
'id': value['id'],
|
|
77
|
+
'key': value['key'],
|
|
78
|
+
'label': value['label'],
|
|
79
|
+
'description': value['description'],
|
|
80
|
+
'field_type': value['fieldType'],
|
|
81
|
+
'is_required': value['isRequired'],
|
|
82
|
+
'display_order': value['displayOrder'],
|
|
83
|
+
'value': value['value'],
|
|
84
|
+
'options': (value['options'].map(PortalUserFieldOptionToJSON)),
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
import type { PortalUserFieldValueField } from './PortalUserFieldValueField';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PortalUserFieldValueGroup
|
|
17
|
+
*/
|
|
18
|
+
export interface PortalUserFieldValueGroup {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PortalUserFieldValueGroup
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PortalUserFieldValueGroup
|
|
29
|
+
*/
|
|
30
|
+
key: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PortalUserFieldValueGroup
|
|
35
|
+
*/
|
|
36
|
+
label: string;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {number}
|
|
40
|
+
* @memberof PortalUserFieldValueGroup
|
|
41
|
+
*/
|
|
42
|
+
displayOrder: number;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {Array<PortalUserFieldValueField>}
|
|
46
|
+
* @memberof PortalUserFieldValueGroup
|
|
47
|
+
*/
|
|
48
|
+
fields: Array<PortalUserFieldValueField>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the PortalUserFieldValueGroup interface.
|
|
52
|
+
*/
|
|
53
|
+
export declare function instanceOfPortalUserFieldValueGroup(value: object): value is PortalUserFieldValueGroup;
|
|
54
|
+
export declare function PortalUserFieldValueGroupFromJSON(json: any): PortalUserFieldValueGroup;
|
|
55
|
+
export declare function PortalUserFieldValueGroupFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalUserFieldValueGroup;
|
|
56
|
+
export declare function PortalUserFieldValueGroupToJSON(json: any): PortalUserFieldValueGroup;
|
|
57
|
+
export declare function PortalUserFieldValueGroupToJSONTyped(value?: PortalUserFieldValueGroup | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { PortalUserFieldValueFieldFromJSON, PortalUserFieldValueFieldToJSON, } from './PortalUserFieldValueField';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PortalUserFieldValueGroup interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPortalUserFieldValueGroup(value) {
|
|
19
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('key' in value) || value['key'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('displayOrder' in value) || value['displayOrder'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('fields' in value) || value['fields'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function PortalUserFieldValueGroupFromJSON(json) {
|
|
32
|
+
return PortalUserFieldValueGroupFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PortalUserFieldValueGroupFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': json['id'],
|
|
40
|
+
'key': json['key'],
|
|
41
|
+
'label': json['label'],
|
|
42
|
+
'displayOrder': json['display_order'],
|
|
43
|
+
'fields': (json['fields'].map(PortalUserFieldValueFieldFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function PortalUserFieldValueGroupToJSON(json) {
|
|
47
|
+
return PortalUserFieldValueGroupToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function PortalUserFieldValueGroupToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'id': value['id'],
|
|
55
|
+
'key': value['key'],
|
|
56
|
+
'label': value['label'],
|
|
57
|
+
'display_order': value['displayOrder'],
|
|
58
|
+
'fields': (value['fields'].map(PortalUserFieldValueFieldToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 PortalUserFieldValueInput
|
|
16
|
+
*/
|
|
17
|
+
export interface PortalUserFieldValueInput {
|
|
18
|
+
/**
|
|
19
|
+
* Field external ID or stable key.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PortalUserFieldValueInput
|
|
22
|
+
*/
|
|
23
|
+
fieldId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {object}
|
|
27
|
+
* @memberof PortalUserFieldValueInput
|
|
28
|
+
*/
|
|
29
|
+
value: object | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PortalUserFieldValueInput interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPortalUserFieldValueInput(value: object): value is PortalUserFieldValueInput;
|
|
35
|
+
export declare function PortalUserFieldValueInputFromJSON(json: any): PortalUserFieldValueInput;
|
|
36
|
+
export declare function PortalUserFieldValueInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortalUserFieldValueInput;
|
|
37
|
+
export declare function PortalUserFieldValueInputToJSON(json: any): PortalUserFieldValueInput;
|
|
38
|
+
export declare function PortalUserFieldValueInputToJSONTyped(value?: PortalUserFieldValueInput | 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 PortalUserFieldValueInput interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPortalUserFieldValueInput(value) {
|
|
18
|
+
if (!('fieldId' in value) || value['fieldId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PortalUserFieldValueInputFromJSON(json) {
|
|
25
|
+
return PortalUserFieldValueInputFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PortalUserFieldValueInputFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'fieldId': json['field_id'],
|
|
33
|
+
'value': json['value'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PortalUserFieldValueInputToJSON(json) {
|
|
37
|
+
return PortalUserFieldValueInputToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PortalUserFieldValueInputToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'field_id': value['fieldId'],
|
|
45
|
+
'value': value['value'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
import type { ContentLaunchMode } from './ContentLaunchMode';
|
|
13
|
+
/**
|
|
14
|
+
* Launch-ready course resume target for the current learner.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PostCourseResume
|
|
17
|
+
*/
|
|
18
|
+
export interface PostCourseResume {
|
|
19
|
+
/**
|
|
20
|
+
* The external ID of the course.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof PostCourseResume
|
|
23
|
+
*/
|
|
24
|
+
courseId: string;
|
|
25
|
+
/**
|
|
26
|
+
* The external ID of the module containing the resume content.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PostCourseResume
|
|
29
|
+
*/
|
|
30
|
+
moduleId: string;
|
|
31
|
+
/**
|
|
32
|
+
* The external ID of the selected content.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PostCourseResume
|
|
35
|
+
*/
|
|
36
|
+
contentId: string;
|
|
37
|
+
/**
|
|
38
|
+
* The external ID of the content session used for launch.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PostCourseResume
|
|
41
|
+
*/
|
|
42
|
+
contentSessionId: string;
|
|
43
|
+
/**
|
|
44
|
+
* The URL to open for the selected content.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof PostCourseResume
|
|
47
|
+
*/
|
|
48
|
+
launchUrl: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {ContentLaunchMode}
|
|
52
|
+
* @memberof PostCourseResume
|
|
53
|
+
*/
|
|
54
|
+
launchMode: ContentLaunchMode;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time the content session was created.
|
|
57
|
+
* @type {number}
|
|
58
|
+
* @memberof PostCourseResume
|
|
59
|
+
*/
|
|
60
|
+
createdAt: number;
|
|
61
|
+
/**
|
|
62
|
+
* The player session ID, when a content-specific player session exists.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof PostCourseResume
|
|
65
|
+
*/
|
|
66
|
+
playerSessionId?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* The learner attempt number for this content session.
|
|
69
|
+
* @type {number}
|
|
70
|
+
* @memberof PostCourseResume
|
|
71
|
+
*/
|
|
72
|
+
attemptNumber: number;
|
|
73
|
+
/**
|
|
74
|
+
* Whether this is the current attempt used for learner progress display.
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof PostCourseResume
|
|
77
|
+
*/
|
|
78
|
+
isCurrent: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Why this content was selected. Values are resume_incomplete_session or start_next_content.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof PostCourseResume
|
|
83
|
+
*/
|
|
84
|
+
selectionReason: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Check if a given object implements the PostCourseResume interface.
|
|
88
|
+
*/
|
|
89
|
+
export declare function instanceOfPostCourseResume(value: object): value is PostCourseResume;
|
|
90
|
+
export declare function PostCourseResumeFromJSON(json: any): PostCourseResume;
|
|
91
|
+
export declare function PostCourseResumeFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostCourseResume;
|
|
92
|
+
export declare function PostCourseResumeToJSON(json: any): PostCourseResume;
|
|
93
|
+
export declare function PostCourseResumeToJSONTyped(value?: PostCourseResume | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { ContentLaunchModeFromJSON, ContentLaunchModeToJSON, } from './ContentLaunchMode';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PostCourseResume interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPostCourseResume(value) {
|
|
19
|
+
if (!('courseId' in value) || value['courseId'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('moduleId' in value) || value['moduleId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('contentId' in value) || value['contentId'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('contentSessionId' in value) || value['contentSessionId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('launchUrl' in value) || value['launchUrl'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('launchMode' in value) || value['launchMode'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('isCurrent' in value) || value['isCurrent'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('selectionReason' in value) || value['selectionReason'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
export function PostCourseResumeFromJSON(json) {
|
|
42
|
+
return PostCourseResumeFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
export function PostCourseResumeFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'courseId': json['course_id'],
|
|
50
|
+
'moduleId': json['module_id'],
|
|
51
|
+
'contentId': json['content_id'],
|
|
52
|
+
'contentSessionId': json['content_session_id'],
|
|
53
|
+
'launchUrl': json['launch_url'],
|
|
54
|
+
'launchMode': ContentLaunchModeFromJSON(json['launch_mode']),
|
|
55
|
+
'createdAt': json['created_at'],
|
|
56
|
+
'playerSessionId': json['player_session_id'] == null ? undefined : json['player_session_id'],
|
|
57
|
+
'attemptNumber': json['attempt_number'],
|
|
58
|
+
'isCurrent': json['is_current'],
|
|
59
|
+
'selectionReason': json['selection_reason'],
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
export function PostCourseResumeToJSON(json) {
|
|
63
|
+
return PostCourseResumeToJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
export function PostCourseResumeToJSONTyped(value, ignoreDiscriminator = false) {
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'course_id': value['courseId'],
|
|
71
|
+
'module_id': value['moduleId'],
|
|
72
|
+
'content_id': value['contentId'],
|
|
73
|
+
'content_session_id': value['contentSessionId'],
|
|
74
|
+
'launch_url': value['launchUrl'],
|
|
75
|
+
'launch_mode': ContentLaunchModeToJSON(value['launchMode']),
|
|
76
|
+
'created_at': value['createdAt'],
|
|
77
|
+
'player_session_id': value['playerSessionId'],
|
|
78
|
+
'attempt_number': value['attemptNumber'],
|
|
79
|
+
'is_current': value['isCurrent'],
|
|
80
|
+
'selection_reason': value['selectionReason'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import type { PortalUserFieldValueInput } from './PortalUserFieldValueInput';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PutPortalUserFieldValues
|
|
17
|
+
*/
|
|
18
|
+
export interface PutPortalUserFieldValues {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<PortalUserFieldValueInput>}
|
|
22
|
+
* @memberof PutPortalUserFieldValues
|
|
23
|
+
*/
|
|
24
|
+
values: Array<PortalUserFieldValueInput>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Check if a given object implements the PutPortalUserFieldValues interface.
|
|
28
|
+
*/
|
|
29
|
+
export declare function instanceOfPutPortalUserFieldValues(value: object): value is PutPortalUserFieldValues;
|
|
30
|
+
export declare function PutPortalUserFieldValuesFromJSON(json: any): PutPortalUserFieldValues;
|
|
31
|
+
export declare function PutPortalUserFieldValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutPortalUserFieldValues;
|
|
32
|
+
export declare function PutPortalUserFieldValuesToJSON(json: any): PutPortalUserFieldValues;
|
|
33
|
+
export declare function PutPortalUserFieldValuesToJSONTyped(value?: PutPortalUserFieldValues | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
import { PortalUserFieldValueInputFromJSON, PortalUserFieldValueInputToJSON, } from './PortalUserFieldValueInput';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PutPortalUserFieldValues interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPutPortalUserFieldValues(value) {
|
|
19
|
+
if (!('values' in value) || value['values'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
export function PutPortalUserFieldValuesFromJSON(json) {
|
|
24
|
+
return PutPortalUserFieldValuesFromJSONTyped(json, false);
|
|
25
|
+
}
|
|
26
|
+
export function PutPortalUserFieldValuesFromJSONTyped(json, ignoreDiscriminator) {
|
|
27
|
+
if (json == null) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'values': (json['values'].map(PortalUserFieldValueInputFromJSON)),
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function PutPortalUserFieldValuesToJSON(json) {
|
|
35
|
+
return PutPortalUserFieldValuesToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function PutPortalUserFieldValuesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'values': (value['values'].map(PortalUserFieldValueInputToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
@@ -84,6 +84,7 @@ export * from './GetPortalStudentReporting';
|
|
|
84
84
|
export * from './GetPortalStudentReportingCertificates';
|
|
85
85
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
86
86
|
export * from './GetPortalUser';
|
|
87
|
+
export * from './GetPortalUserFieldValues';
|
|
87
88
|
export * from './GetPortalUserList';
|
|
88
89
|
export * from './GetPublicPortalBranding';
|
|
89
90
|
export * from './GetQuestion';
|
|
@@ -172,6 +173,14 @@ export * from './MultipleAnswer1';
|
|
|
172
173
|
export * from './NoAnswer';
|
|
173
174
|
export * from './Paginated';
|
|
174
175
|
export * from './PortalSublicense';
|
|
176
|
+
export * from './PortalUserFieldConfig';
|
|
177
|
+
export * from './PortalUserFieldDefinition';
|
|
178
|
+
export * from './PortalUserFieldGroup';
|
|
179
|
+
export * from './PortalUserFieldMissingRequired';
|
|
180
|
+
export * from './PortalUserFieldOption';
|
|
181
|
+
export * from './PortalUserFieldValueField';
|
|
182
|
+
export * from './PortalUserFieldValueGroup';
|
|
183
|
+
export * from './PortalUserFieldValueInput';
|
|
175
184
|
export * from './PostCertificate';
|
|
176
185
|
export * from './PostCertificateConfig';
|
|
177
186
|
export * from './PostContentQuiz';
|
|
@@ -186,6 +195,7 @@ export * from './PostCourse';
|
|
|
186
195
|
export * from './PostCourseCatalog';
|
|
187
196
|
export * from './PostCourseEnrollment';
|
|
188
197
|
export * from './PostCourseExport';
|
|
198
|
+
export * from './PostCourseResume';
|
|
189
199
|
export * from './PostDuplicate';
|
|
190
200
|
export * from './PostDuplicate1';
|
|
191
201
|
export * from './PostDuplicate2';
|
|
@@ -239,6 +249,7 @@ export * from './PutModule';
|
|
|
239
249
|
export * from './PutModuleReorder';
|
|
240
250
|
export * from './PutPortalBranding';
|
|
241
251
|
export * from './PutPortalSublicense';
|
|
252
|
+
export * from './PutPortalUserFieldValues';
|
|
242
253
|
export * from './PutQuestion';
|
|
243
254
|
export * from './PutQuestionAnswerChoicesInner';
|
|
244
255
|
export * from './PutQuiz';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -86,6 +86,7 @@ export * from './GetPortalStudentReporting';
|
|
|
86
86
|
export * from './GetPortalStudentReportingCertificates';
|
|
87
87
|
export * from './GetPortalStudentReportingPortalInfo';
|
|
88
88
|
export * from './GetPortalUser';
|
|
89
|
+
export * from './GetPortalUserFieldValues';
|
|
89
90
|
export * from './GetPortalUserList';
|
|
90
91
|
export * from './GetPublicPortalBranding';
|
|
91
92
|
export * from './GetQuestion';
|
|
@@ -174,6 +175,14 @@ export * from './MultipleAnswer1';
|
|
|
174
175
|
export * from './NoAnswer';
|
|
175
176
|
export * from './Paginated';
|
|
176
177
|
export * from './PortalSublicense';
|
|
178
|
+
export * from './PortalUserFieldConfig';
|
|
179
|
+
export * from './PortalUserFieldDefinition';
|
|
180
|
+
export * from './PortalUserFieldGroup';
|
|
181
|
+
export * from './PortalUserFieldMissingRequired';
|
|
182
|
+
export * from './PortalUserFieldOption';
|
|
183
|
+
export * from './PortalUserFieldValueField';
|
|
184
|
+
export * from './PortalUserFieldValueGroup';
|
|
185
|
+
export * from './PortalUserFieldValueInput';
|
|
177
186
|
export * from './PostCertificate';
|
|
178
187
|
export * from './PostCertificateConfig';
|
|
179
188
|
export * from './PostContentQuiz';
|
|
@@ -188,6 +197,7 @@ export * from './PostCourse';
|
|
|
188
197
|
export * from './PostCourseCatalog';
|
|
189
198
|
export * from './PostCourseEnrollment';
|
|
190
199
|
export * from './PostCourseExport';
|
|
200
|
+
export * from './PostCourseResume';
|
|
191
201
|
export * from './PostDuplicate';
|
|
192
202
|
export * from './PostDuplicate1';
|
|
193
203
|
export * from './PostDuplicate2';
|
|
@@ -241,6 +251,7 @@ export * from './PutModule';
|
|
|
241
251
|
export * from './PutModuleReorder';
|
|
242
252
|
export * from './PutPortalBranding';
|
|
243
253
|
export * from './PutPortalSublicense';
|
|
254
|
+
export * from './PutPortalUserFieldValues';
|
|
244
255
|
export * from './PutQuestion';
|
|
245
256
|
export * from './PutQuestionAnswerChoicesInner';
|
|
246
257
|
export * from './PutQuiz';
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
import type { PortalUserFieldValueField } from './PortalUserFieldValueField';
|
|
13
|
+
import type { PortalUserFieldMissingRequired } from './PortalUserFieldMissingRequired';
|
|
14
|
+
import type { PortalUserFieldValueGroup } from './PortalUserFieldValueGroup';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface GetPortalUserFieldValues
|
|
19
|
+
*/
|
|
20
|
+
export interface GetPortalUserFieldValues {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {boolean}
|
|
24
|
+
* @memberof GetPortalUserFieldValues
|
|
25
|
+
*/
|
|
26
|
+
complete: boolean;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @type {Array<PortalUserFieldMissingRequired>}
|
|
30
|
+
* @memberof GetPortalUserFieldValues
|
|
31
|
+
*/
|
|
32
|
+
missingRequiredFields: Array<PortalUserFieldMissingRequired>;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {Array<PortalUserFieldValueGroup>}
|
|
36
|
+
* @memberof GetPortalUserFieldValues
|
|
37
|
+
*/
|
|
38
|
+
groups: Array<PortalUserFieldValueGroup>;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {Array<PortalUserFieldValueField>}
|
|
42
|
+
* @memberof GetPortalUserFieldValues
|
|
43
|
+
*/
|
|
44
|
+
ungroupedFields: Array<PortalUserFieldValueField>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the GetPortalUserFieldValues interface.
|
|
48
|
+
*/
|
|
49
|
+
export declare function instanceOfGetPortalUserFieldValues(value: object): value is GetPortalUserFieldValues;
|
|
50
|
+
export declare function GetPortalUserFieldValuesFromJSON(json: any): GetPortalUserFieldValues;
|
|
51
|
+
export declare function GetPortalUserFieldValuesFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalUserFieldValues;
|
|
52
|
+
export declare function GetPortalUserFieldValuesToJSON(json: any): GetPortalUserFieldValues;
|
|
53
|
+
export declare function GetPortalUserFieldValuesToJSONTyped(value?: GetPortalUserFieldValues | null, ignoreDiscriminator?: boolean): any;
|