@easyedu/js-lsm-api 1.119.0 → 1.121.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/README.md +2 -2
- package/dist/apis/CourseApi.d.ts +1 -1
- package/dist/apis/CourseApi.js +4 -3
- package/dist/esm/apis/CourseApi.d.ts +1 -1
- package/dist/esm/apis/CourseApi.js +4 -3
- package/dist/esm/models/GetHostedScormRegistration.d.ts +7 -0
- package/dist/esm/models/GetHostedScormRegistration.js +3 -0
- package/dist/models/GetHostedScormRegistration.d.ts +7 -0
- package/dist/models/GetHostedScormRegistration.js +3 -0
- package/docs/CourseApi.md +3 -3
- package/docs/GetHostedScormRegistration.md +2 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +5 -5
- package/src/models/GetHostedScormRegistration.ts +16 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.121.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -786,7 +786,7 @@ and is automatically generated by the
|
|
|
786
786
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
787
787
|
|
|
788
788
|
- API version: `1.0.0`
|
|
789
|
-
- Package version: `1.
|
|
789
|
+
- Package version: `1.121.0`
|
|
790
790
|
- Generator version: `7.22.0`
|
|
791
791
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
792
792
|
|
package/dist/apis/CourseApi.d.ts
CHANGED
|
@@ -246,7 +246,7 @@ export interface PutCourseVersionSectionRequest {
|
|
|
246
246
|
export interface PutHostedScormExportAccessRequest {
|
|
247
247
|
courseId: string;
|
|
248
248
|
exportId: string;
|
|
249
|
-
|
|
249
|
+
hostedScormAccessPolicy: HostedScormAccessPolicy;
|
|
250
250
|
}
|
|
251
251
|
export interface PutHostedScormExportStatusRequest {
|
|
252
252
|
courseId: string;
|
package/dist/apis/CourseApi.js
CHANGED
|
@@ -40,6 +40,7 @@ const GetCourseVersionList_1 = require("../models/GetCourseVersionList");
|
|
|
40
40
|
const GetCourseVersionProgression_1 = require("../models/GetCourseVersionProgression");
|
|
41
41
|
const GetCourseVersionSection_1 = require("../models/GetCourseVersionSection");
|
|
42
42
|
const GetHostedScormRegistrationList_1 = require("../models/GetHostedScormRegistrationList");
|
|
43
|
+
const HostedScormAccessPolicy_1 = require("../models/HostedScormAccessPolicy");
|
|
43
44
|
const PostClearSessions_1 = require("../models/PostClearSessions");
|
|
44
45
|
const PostClearSessionsResponse_1 = require("../models/PostClearSessionsResponse");
|
|
45
46
|
const PostCourse_1 = require("../models/PostCourse");
|
|
@@ -1998,8 +1999,8 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
1998
1999
|
if (requestParameters['exportId'] == null) {
|
|
1999
2000
|
throw new runtime.RequiredError('exportId', 'Required parameter "exportId" was null or undefined when calling putHostedScormExportAccess().');
|
|
2000
2001
|
}
|
|
2001
|
-
if (requestParameters['
|
|
2002
|
-
throw new runtime.RequiredError('
|
|
2002
|
+
if (requestParameters['hostedScormAccessPolicy'] == null) {
|
|
2003
|
+
throw new runtime.RequiredError('hostedScormAccessPolicy', 'Required parameter "hostedScormAccessPolicy" was null or undefined when calling putHostedScormExportAccess().');
|
|
2003
2004
|
}
|
|
2004
2005
|
const queryParameters = {};
|
|
2005
2006
|
const headerParameters = {};
|
|
@@ -2012,7 +2013,7 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
2012
2013
|
method: 'PUT',
|
|
2013
2014
|
headers: headerParameters,
|
|
2014
2015
|
query: queryParameters,
|
|
2015
|
-
body: requestParameters['
|
|
2016
|
+
body: (0, HostedScormAccessPolicy_1.HostedScormAccessPolicyToJSON)(requestParameters['hostedScormAccessPolicy']),
|
|
2016
2017
|
};
|
|
2017
2018
|
});
|
|
2018
2019
|
}
|
|
@@ -246,7 +246,7 @@ export interface PutCourseVersionSectionRequest {
|
|
|
246
246
|
export interface PutHostedScormExportAccessRequest {
|
|
247
247
|
courseId: string;
|
|
248
248
|
exportId: string;
|
|
249
|
-
|
|
249
|
+
hostedScormAccessPolicy: HostedScormAccessPolicy;
|
|
250
250
|
}
|
|
251
251
|
export interface PutHostedScormExportStatusRequest {
|
|
252
252
|
courseId: string;
|
|
@@ -37,6 +37,7 @@ import { GetCourseVersionListFromJSON, } from '../models/GetCourseVersionList';
|
|
|
37
37
|
import { GetCourseVersionProgressionFromJSON, } from '../models/GetCourseVersionProgression';
|
|
38
38
|
import { GetCourseVersionSectionFromJSON, } from '../models/GetCourseVersionSection';
|
|
39
39
|
import { GetHostedScormRegistrationListFromJSON, } from '../models/GetHostedScormRegistrationList';
|
|
40
|
+
import { HostedScormAccessPolicyToJSON, } from '../models/HostedScormAccessPolicy';
|
|
40
41
|
import { PostClearSessionsToJSON, } from '../models/PostClearSessions';
|
|
41
42
|
import { PostClearSessionsResponseFromJSON, } from '../models/PostClearSessionsResponse';
|
|
42
43
|
import { PostCourseToJSON, } from '../models/PostCourse';
|
|
@@ -1995,8 +1996,8 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
1995
1996
|
if (requestParameters['exportId'] == null) {
|
|
1996
1997
|
throw new runtime.RequiredError('exportId', 'Required parameter "exportId" was null or undefined when calling putHostedScormExportAccess().');
|
|
1997
1998
|
}
|
|
1998
|
-
if (requestParameters['
|
|
1999
|
-
throw new runtime.RequiredError('
|
|
1999
|
+
if (requestParameters['hostedScormAccessPolicy'] == null) {
|
|
2000
|
+
throw new runtime.RequiredError('hostedScormAccessPolicy', 'Required parameter "hostedScormAccessPolicy" was null or undefined when calling putHostedScormExportAccess().');
|
|
2000
2001
|
}
|
|
2001
2002
|
const queryParameters = {};
|
|
2002
2003
|
const headerParameters = {};
|
|
@@ -2009,7 +2010,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
2009
2010
|
method: 'PUT',
|
|
2010
2011
|
headers: headerParameters,
|
|
2011
2012
|
query: queryParameters,
|
|
2012
|
-
body: requestParameters['
|
|
2013
|
+
body: HostedScormAccessPolicyToJSON(requestParameters['hostedScormAccessPolicy']),
|
|
2013
2014
|
};
|
|
2014
2015
|
});
|
|
2015
2016
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { GetDispatchRollup } from './GetDispatchRollup';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface GetHostedScormRegistration {
|
|
|
69
70
|
* @memberof GetHostedScormRegistration
|
|
70
71
|
*/
|
|
71
72
|
lastItemId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Latest course-level completion, success, score, and progress recorded for this learner.
|
|
75
|
+
* @type {GetDispatchRollup}
|
|
76
|
+
* @memberof GetHostedScormRegistration
|
|
77
|
+
*/
|
|
78
|
+
rollup?: GetDispatchRollup | null;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
* https://openapi-generator.tech
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
|
+
import { GetDispatchRollupFromJSON, GetDispatchRollupToJSON, } from './GetDispatchRollup';
|
|
14
15
|
/**
|
|
15
16
|
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
16
17
|
*/
|
|
@@ -48,6 +49,7 @@ export function GetHostedScormRegistrationFromJSONTyped(json, ignoreDiscriminato
|
|
|
48
49
|
'lastLaunchAt': json['last_launch_at'],
|
|
49
50
|
'lastOrigin': json['last_origin'] == null ? undefined : json['last_origin'],
|
|
50
51
|
'lastItemId': json['last_item_id'] == null ? undefined : json['last_item_id'],
|
|
52
|
+
'rollup': json['rollup'] == null ? undefined : GetDispatchRollupFromJSON(json['rollup']),
|
|
51
53
|
};
|
|
52
54
|
}
|
|
53
55
|
export function GetHostedScormRegistrationToJSON(json) {
|
|
@@ -67,5 +69,6 @@ export function GetHostedScormRegistrationToJSONTyped(value, ignoreDiscriminator
|
|
|
67
69
|
'last_launch_at': value['lastLaunchAt'],
|
|
68
70
|
'last_origin': value['lastOrigin'],
|
|
69
71
|
'last_item_id': value['lastItemId'],
|
|
72
|
+
'rollup': GetDispatchRollupToJSON(value['rollup']),
|
|
70
73
|
};
|
|
71
74
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import type { GetDispatchRollup } from './GetDispatchRollup';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -69,6 +70,12 @@ export interface GetHostedScormRegistration {
|
|
|
69
70
|
* @memberof GetHostedScormRegistration
|
|
70
71
|
*/
|
|
71
72
|
lastItemId?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Latest course-level completion, success, score, and progress recorded for this learner.
|
|
75
|
+
* @type {GetDispatchRollup}
|
|
76
|
+
* @memberof GetHostedScormRegistration
|
|
77
|
+
*/
|
|
78
|
+
rollup?: GetDispatchRollup | null;
|
|
72
79
|
}
|
|
73
80
|
/**
|
|
74
81
|
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
@@ -18,6 +18,7 @@ exports.GetHostedScormRegistrationFromJSON = GetHostedScormRegistrationFromJSON;
|
|
|
18
18
|
exports.GetHostedScormRegistrationFromJSONTyped = GetHostedScormRegistrationFromJSONTyped;
|
|
19
19
|
exports.GetHostedScormRegistrationToJSON = GetHostedScormRegistrationToJSON;
|
|
20
20
|
exports.GetHostedScormRegistrationToJSONTyped = GetHostedScormRegistrationToJSONTyped;
|
|
21
|
+
const GetDispatchRollup_1 = require("./GetDispatchRollup");
|
|
21
22
|
/**
|
|
22
23
|
* Check if a given object implements the GetHostedScormRegistration interface.
|
|
23
24
|
*/
|
|
@@ -55,6 +56,7 @@ function GetHostedScormRegistrationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
55
56
|
'lastLaunchAt': json['last_launch_at'],
|
|
56
57
|
'lastOrigin': json['last_origin'] == null ? undefined : json['last_origin'],
|
|
57
58
|
'lastItemId': json['last_item_id'] == null ? undefined : json['last_item_id'],
|
|
59
|
+
'rollup': json['rollup'] == null ? undefined : (0, GetDispatchRollup_1.GetDispatchRollupFromJSON)(json['rollup']),
|
|
58
60
|
};
|
|
59
61
|
}
|
|
60
62
|
function GetHostedScormRegistrationToJSON(json) {
|
|
@@ -74,5 +76,6 @@ function GetHostedScormRegistrationToJSONTyped(value, ignoreDiscriminator = fals
|
|
|
74
76
|
'last_launch_at': value['lastLaunchAt'],
|
|
75
77
|
'last_origin': value['lastOrigin'],
|
|
76
78
|
'last_item_id': value['lastItemId'],
|
|
79
|
+
'rollup': (0, GetDispatchRollup_1.GetDispatchRollupToJSON)(value['rollup']),
|
|
77
80
|
};
|
|
78
81
|
}
|
package/docs/CourseApi.md
CHANGED
|
@@ -3040,7 +3040,7 @@ No authorization required
|
|
|
3040
3040
|
|
|
3041
3041
|
## putHostedScormExportAccess
|
|
3042
3042
|
|
|
3043
|
-
> GetCourseExport putHostedScormExportAccess(courseId, exportId,
|
|
3043
|
+
> GetCourseExport putHostedScormExportAccess(courseId, exportId, hostedScormAccessPolicy)
|
|
3044
3044
|
|
|
3045
3045
|
Update mutable access controls for a hosted SCORM export
|
|
3046
3046
|
|
|
@@ -3063,7 +3063,7 @@ async function example() {
|
|
|
3063
3063
|
// string
|
|
3064
3064
|
exportId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
|
|
3065
3065
|
// HostedScormAccessPolicy
|
|
3066
|
-
|
|
3066
|
+
hostedScormAccessPolicy: ...,
|
|
3067
3067
|
} satisfies PutHostedScormExportAccessRequest;
|
|
3068
3068
|
|
|
3069
3069
|
try {
|
|
@@ -3085,7 +3085,7 @@ example().catch(console.error);
|
|
|
3085
3085
|
|------------- | ------------- | ------------- | -------------|
|
|
3086
3086
|
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
3087
3087
|
| **exportId** | `string` | | [Defaults to `undefined`] |
|
|
3088
|
-
| **
|
|
3088
|
+
| **hostedScormAccessPolicy** | [HostedScormAccessPolicy](HostedScormAccessPolicy.md) | | |
|
|
3089
3089
|
|
|
3090
3090
|
### Return type
|
|
3091
3091
|
|
|
@@ -15,6 +15,7 @@ Name | Type
|
|
|
15
15
|
`lastLaunchAt` | number
|
|
16
16
|
`lastOrigin` | string
|
|
17
17
|
`lastItemId` | string
|
|
18
|
+
`rollup` | [GetDispatchRollup](GetDispatchRollup.md)
|
|
18
19
|
|
|
19
20
|
## Example
|
|
20
21
|
|
|
@@ -32,6 +33,7 @@ const example = {
|
|
|
32
33
|
"lastLaunchAt": null,
|
|
33
34
|
"lastOrigin": null,
|
|
34
35
|
"lastItemId": null,
|
|
36
|
+
"rollup": null,
|
|
35
37
|
} satisfies GetHostedScormRegistration
|
|
36
38
|
|
|
37
39
|
console.log(example)
|
package/package.json
CHANGED
package/src/apis/CourseApi.ts
CHANGED
|
@@ -449,7 +449,7 @@ export interface PutCourseVersionSectionRequest {
|
|
|
449
449
|
export interface PutHostedScormExportAccessRequest {
|
|
450
450
|
courseId: string;
|
|
451
451
|
exportId: string;
|
|
452
|
-
|
|
452
|
+
hostedScormAccessPolicy: HostedScormAccessPolicy;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
export interface PutHostedScormExportStatusRequest {
|
|
@@ -2865,10 +2865,10 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
2865
2865
|
);
|
|
2866
2866
|
}
|
|
2867
2867
|
|
|
2868
|
-
if (requestParameters['
|
|
2868
|
+
if (requestParameters['hostedScormAccessPolicy'] == null) {
|
|
2869
2869
|
throw new runtime.RequiredError(
|
|
2870
|
-
'
|
|
2871
|
-
'Required parameter "
|
|
2870
|
+
'hostedScormAccessPolicy',
|
|
2871
|
+
'Required parameter "hostedScormAccessPolicy" was null or undefined when calling putHostedScormExportAccess().'
|
|
2872
2872
|
);
|
|
2873
2873
|
}
|
|
2874
2874
|
|
|
@@ -2888,7 +2888,7 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
2888
2888
|
method: 'PUT',
|
|
2889
2889
|
headers: headerParameters,
|
|
2890
2890
|
query: queryParameters,
|
|
2891
|
-
body: requestParameters['
|
|
2891
|
+
body: HostedScormAccessPolicyToJSON(requestParameters['hostedScormAccessPolicy']),
|
|
2892
2892
|
};
|
|
2893
2893
|
}
|
|
2894
2894
|
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetDispatchRollup } from './GetDispatchRollup';
|
|
17
|
+
import {
|
|
18
|
+
GetDispatchRollupFromJSON,
|
|
19
|
+
GetDispatchRollupFromJSONTyped,
|
|
20
|
+
GetDispatchRollupToJSON,
|
|
21
|
+
GetDispatchRollupToJSONTyped,
|
|
22
|
+
} from './GetDispatchRollup';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -73,6 +81,12 @@ export interface GetHostedScormRegistration {
|
|
|
73
81
|
* @memberof GetHostedScormRegistration
|
|
74
82
|
*/
|
|
75
83
|
lastItemId?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* Latest course-level completion, success, score, and progress recorded for this learner.
|
|
86
|
+
* @type {GetDispatchRollup}
|
|
87
|
+
* @memberof GetHostedScormRegistration
|
|
88
|
+
*/
|
|
89
|
+
rollup?: GetDispatchRollup | null;
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
/**
|
|
@@ -108,6 +122,7 @@ export function GetHostedScormRegistrationFromJSONTyped(json: any, ignoreDiscrim
|
|
|
108
122
|
'lastLaunchAt': json['last_launch_at'],
|
|
109
123
|
'lastOrigin': json['last_origin'] == null ? undefined : json['last_origin'],
|
|
110
124
|
'lastItemId': json['last_item_id'] == null ? undefined : json['last_item_id'],
|
|
125
|
+
'rollup': json['rollup'] == null ? undefined : GetDispatchRollupFromJSON(json['rollup']),
|
|
111
126
|
};
|
|
112
127
|
}
|
|
113
128
|
|
|
@@ -131,6 +146,7 @@ export function GetHostedScormRegistrationToJSONTyped(value?: GetHostedScormRegi
|
|
|
131
146
|
'last_launch_at': value['lastLaunchAt'],
|
|
132
147
|
'last_origin': value['lastOrigin'],
|
|
133
148
|
'last_item_id': value['lastItemId'],
|
|
149
|
+
'rollup': GetDispatchRollupToJSON(value['rollup']),
|
|
134
150
|
};
|
|
135
151
|
}
|
|
136
152
|
|