@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,44 @@
|
|
|
1
|
+
|
|
2
|
+
# PortalUserFieldGroup
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`key` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`displayOrder` | number
|
|
14
|
+
`isActive` | boolean
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { PortalUserFieldGroup } from '@easyedu/js-lsm-api'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"id": null,
|
|
24
|
+
"key": null,
|
|
25
|
+
"label": null,
|
|
26
|
+
"description": null,
|
|
27
|
+
"displayOrder": null,
|
|
28
|
+
"isActive": null,
|
|
29
|
+
} satisfies PortalUserFieldGroup
|
|
30
|
+
|
|
31
|
+
console.log(example)
|
|
32
|
+
|
|
33
|
+
// Convert the instance to a JSON string
|
|
34
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
35
|
+
console.log(exampleJSON)
|
|
36
|
+
|
|
37
|
+
// Parse the JSON string back to an object
|
|
38
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortalUserFieldGroup
|
|
39
|
+
console.log(exampleParsed)
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
43
|
+
|
|
44
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PortalUserFieldMissingRequired
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`key` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`groupId` | string
|
|
13
|
+
`groupLabel` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PortalUserFieldMissingRequired } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"key": null,
|
|
24
|
+
"label": null,
|
|
25
|
+
"groupId": null,
|
|
26
|
+
"groupLabel": null,
|
|
27
|
+
} satisfies PortalUserFieldMissingRequired
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortalUserFieldMissingRequired
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PortalUserFieldOption
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`value` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`displayOrder` | number
|
|
13
|
+
`isActive` | boolean
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PortalUserFieldOption } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"value": null,
|
|
24
|
+
"label": null,
|
|
25
|
+
"displayOrder": null,
|
|
26
|
+
"isActive": null,
|
|
27
|
+
} satisfies PortalUserFieldOption
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortalUserFieldOption
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
|
|
2
|
+
# PortalUserFieldValueField
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`key` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`description` | string
|
|
13
|
+
`fieldType` | string
|
|
14
|
+
`isRequired` | boolean
|
|
15
|
+
`displayOrder` | number
|
|
16
|
+
`value` | object
|
|
17
|
+
`options` | [Array<PortalUserFieldOption>](PortalUserFieldOption.md)
|
|
18
|
+
|
|
19
|
+
## Example
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import type { PortalUserFieldValueField } from '@easyedu/js-lsm-api'
|
|
23
|
+
|
|
24
|
+
// TODO: Update the object below with actual values
|
|
25
|
+
const example = {
|
|
26
|
+
"id": null,
|
|
27
|
+
"key": null,
|
|
28
|
+
"label": null,
|
|
29
|
+
"description": null,
|
|
30
|
+
"fieldType": null,
|
|
31
|
+
"isRequired": null,
|
|
32
|
+
"displayOrder": null,
|
|
33
|
+
"value": null,
|
|
34
|
+
"options": null,
|
|
35
|
+
} satisfies PortalUserFieldValueField
|
|
36
|
+
|
|
37
|
+
console.log(example)
|
|
38
|
+
|
|
39
|
+
// Convert the instance to a JSON string
|
|
40
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
41
|
+
console.log(exampleJSON)
|
|
42
|
+
|
|
43
|
+
// Parse the JSON string back to an object
|
|
44
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortalUserFieldValueField
|
|
45
|
+
console.log(exampleParsed)
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
49
|
+
|
|
50
|
+
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
# PortalUserFieldValueGroup
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`id` | string
|
|
10
|
+
`key` | string
|
|
11
|
+
`label` | string
|
|
12
|
+
`displayOrder` | number
|
|
13
|
+
`fields` | [Array<PortalUserFieldValueField>](PortalUserFieldValueField.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PortalUserFieldValueGroup } from '@easyedu/js-lsm-api'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"id": null,
|
|
23
|
+
"key": null,
|
|
24
|
+
"label": null,
|
|
25
|
+
"displayOrder": null,
|
|
26
|
+
"fields": null,
|
|
27
|
+
} satisfies PortalUserFieldValueGroup
|
|
28
|
+
|
|
29
|
+
console.log(example)
|
|
30
|
+
|
|
31
|
+
// Convert the instance to a JSON string
|
|
32
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
33
|
+
console.log(exampleJSON)
|
|
34
|
+
|
|
35
|
+
// Parse the JSON string back to an object
|
|
36
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortalUserFieldValueGroup
|
|
37
|
+
console.log(exampleParsed)
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
41
|
+
|
|
42
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
|
|
2
|
+
# PortalUserFieldValueInput
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`fieldId` | string
|
|
10
|
+
`value` | object
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import type { PortalUserFieldValueInput } from '@easyedu/js-lsm-api'
|
|
16
|
+
|
|
17
|
+
// TODO: Update the object below with actual values
|
|
18
|
+
const example = {
|
|
19
|
+
"fieldId": null,
|
|
20
|
+
"value": null,
|
|
21
|
+
} satisfies PortalUserFieldValueInput
|
|
22
|
+
|
|
23
|
+
console.log(example)
|
|
24
|
+
|
|
25
|
+
// Convert the instance to a JSON string
|
|
26
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
27
|
+
console.log(exampleJSON)
|
|
28
|
+
|
|
29
|
+
// Parse the JSON string back to an object
|
|
30
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortalUserFieldValueInput
|
|
31
|
+
console.log(exampleParsed)
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
# PostCourseResume
|
|
3
|
+
|
|
4
|
+
Launch-ready course resume target for the current learner.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`courseId` | string
|
|
11
|
+
`moduleId` | string
|
|
12
|
+
`contentId` | string
|
|
13
|
+
`contentSessionId` | string
|
|
14
|
+
`launchUrl` | string
|
|
15
|
+
`launchMode` | [ContentLaunchMode](ContentLaunchMode.md)
|
|
16
|
+
`createdAt` | number
|
|
17
|
+
`playerSessionId` | string
|
|
18
|
+
`attemptNumber` | number
|
|
19
|
+
`isCurrent` | boolean
|
|
20
|
+
`selectionReason` | string
|
|
21
|
+
|
|
22
|
+
## Example
|
|
23
|
+
|
|
24
|
+
```typescript
|
|
25
|
+
import type { PostCourseResume } from '@easyedu/js-lsm-api'
|
|
26
|
+
|
|
27
|
+
// TODO: Update the object below with actual values
|
|
28
|
+
const example = {
|
|
29
|
+
"courseId": null,
|
|
30
|
+
"moduleId": null,
|
|
31
|
+
"contentId": null,
|
|
32
|
+
"contentSessionId": null,
|
|
33
|
+
"launchUrl": null,
|
|
34
|
+
"launchMode": null,
|
|
35
|
+
"createdAt": null,
|
|
36
|
+
"playerSessionId": null,
|
|
37
|
+
"attemptNumber": null,
|
|
38
|
+
"isCurrent": null,
|
|
39
|
+
"selectionReason": null,
|
|
40
|
+
} satisfies PostCourseResume
|
|
41
|
+
|
|
42
|
+
console.log(example)
|
|
43
|
+
|
|
44
|
+
// Convert the instance to a JSON string
|
|
45
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
46
|
+
console.log(exampleJSON)
|
|
47
|
+
|
|
48
|
+
// Parse the JSON string back to an object
|
|
49
|
+
const exampleParsed = JSON.parse(exampleJSON) as PostCourseResume
|
|
50
|
+
console.log(exampleParsed)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
54
|
+
|
|
55
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
|
|
2
|
+
# PutPortalUserFieldValues
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type
|
|
8
|
+
------------ | -------------
|
|
9
|
+
`values` | [Array<PortalUserFieldValueInput>](PortalUserFieldValueInput.md)
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PutPortalUserFieldValues } from '@easyedu/js-lsm-api'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
"values": null,
|
|
19
|
+
} satisfies PutPortalUserFieldValues
|
|
20
|
+
|
|
21
|
+
console.log(example)
|
|
22
|
+
|
|
23
|
+
// Convert the instance to a JSON string
|
|
24
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
25
|
+
console.log(exampleJSON)
|
|
26
|
+
|
|
27
|
+
// Parse the JSON string back to an object
|
|
28
|
+
const exampleParsed = JSON.parse(exampleJSON) as PutPortalUserFieldValues
|
|
29
|
+
console.log(exampleParsed)
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
33
|
+
|
|
34
|
+
|
package/package.json
CHANGED
package/src/apis/CourseApi.ts
CHANGED
|
@@ -68,6 +68,11 @@ import {
|
|
|
68
68
|
PostCourseExportFromJSON,
|
|
69
69
|
PostCourseExportToJSON,
|
|
70
70
|
} from '../models/PostCourseExport';
|
|
71
|
+
import {
|
|
72
|
+
type PostCourseResume,
|
|
73
|
+
PostCourseResumeFromJSON,
|
|
74
|
+
PostCourseResumeToJSON,
|
|
75
|
+
} from '../models/PostCourseResume';
|
|
71
76
|
import {
|
|
72
77
|
type PostDuplicate,
|
|
73
78
|
PostDuplicateFromJSON,
|
|
@@ -172,6 +177,10 @@ export interface PostCourseImageUploadRequest {
|
|
|
172
177
|
file: Blob;
|
|
173
178
|
}
|
|
174
179
|
|
|
180
|
+
export interface PostCourseResumeRequest {
|
|
181
|
+
courseId: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
175
184
|
export interface PutCourseRequest {
|
|
176
185
|
courseId: string;
|
|
177
186
|
putCourse: Omit<PutCourse, 'id'>;
|
|
@@ -1088,6 +1097,60 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
1088
1097
|
return await response.value();
|
|
1089
1098
|
}
|
|
1090
1099
|
|
|
1100
|
+
/**
|
|
1101
|
+
* Creates request options for postCourseResume without sending the request
|
|
1102
|
+
*/
|
|
1103
|
+
async postCourseResumeRequestOpts(requestParameters: PostCourseResumeRequest): Promise<runtime.RequestOpts> {
|
|
1104
|
+
if (requestParameters['courseId'] == null) {
|
|
1105
|
+
throw new runtime.RequiredError(
|
|
1106
|
+
'courseId',
|
|
1107
|
+
'Required parameter "courseId" was null or undefined when calling postCourseResume().'
|
|
1108
|
+
);
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
const queryParameters: any = {};
|
|
1112
|
+
|
|
1113
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
let urlPath = `/courses/{courseId}/resume`;
|
|
1117
|
+
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
1118
|
+
|
|
1119
|
+
return {
|
|
1120
|
+
path: urlPath,
|
|
1121
|
+
method: 'POST',
|
|
1122
|
+
headers: headerParameters,
|
|
1123
|
+
query: queryParameters,
|
|
1124
|
+
};
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* Selects the first incomplete published content item in course order, creates or reuses the current live content session, and returns a launch-ready response.
|
|
1129
|
+
* Resume the current learner\'s progress in a course
|
|
1130
|
+
*/
|
|
1131
|
+
async postCourseResumeRaw(requestParameters: PostCourseResumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostCourseResume>> {
|
|
1132
|
+
const requestOptions = await this.postCourseResumeRequestOpts(requestParameters);
|
|
1133
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1134
|
+
|
|
1135
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PostCourseResumeFromJSON(jsonValue));
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/**
|
|
1139
|
+
* Selects the first incomplete published content item in course order, creates or reuses the current live content session, and returns a launch-ready response.
|
|
1140
|
+
* Resume the current learner\'s progress in a course
|
|
1141
|
+
*/
|
|
1142
|
+
async postCourseResume(requestParameters: PostCourseResumeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostCourseResume | null | undefined > {
|
|
1143
|
+
const response = await this.postCourseResumeRaw(requestParameters, initOverrides);
|
|
1144
|
+
switch (response.raw.status) {
|
|
1145
|
+
case 200:
|
|
1146
|
+
return await response.value();
|
|
1147
|
+
case 204:
|
|
1148
|
+
return null;
|
|
1149
|
+
default:
|
|
1150
|
+
return await response.value();
|
|
1151
|
+
}
|
|
1152
|
+
}
|
|
1153
|
+
|
|
1091
1154
|
/**
|
|
1092
1155
|
* Creates request options for putCourse without sending the request
|
|
1093
1156
|
*/
|