@easyedu/js-lsm-api 1.120.0 → 1.122.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 -0
- package/dist/apis/CourseApi.js +3 -0
- package/dist/esm/apis/CourseApi.d.ts +1 -0
- package/dist/esm/apis/CourseApi.js +3 -0
- 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 +4 -1
- package/docs/GetHostedScormRegistration.md +2 -0
- package/package.json +1 -1
- package/src/apis/CourseApi.ts +5 -0
- 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.122.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.122.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
package/dist/apis/CourseApi.js
CHANGED
|
@@ -922,6 +922,9 @@ class CourseApi extends runtime.BaseAPI {
|
|
|
922
922
|
if (requestParameters['pageSize'] != null) {
|
|
923
923
|
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
924
924
|
}
|
|
925
|
+
if (requestParameters['search'] != null) {
|
|
926
|
+
queryParameters['search'] = requestParameters['search'];
|
|
927
|
+
}
|
|
925
928
|
const headerParameters = {};
|
|
926
929
|
let urlPath = `/courses/{courseId}/exports/{exportId}/registrations`;
|
|
927
930
|
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
@@ -919,6 +919,9 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
919
919
|
if (requestParameters['pageSize'] != null) {
|
|
920
920
|
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
921
921
|
}
|
|
922
|
+
if (requestParameters['search'] != null) {
|
|
923
|
+
queryParameters['search'] = requestParameters['search'];
|
|
924
|
+
}
|
|
922
925
|
const headerParameters = {};
|
|
923
926
|
let urlPath = `/courses/{courseId}/exports/{exportId}/registrations`;
|
|
924
927
|
urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
|
|
@@ -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
|
@@ -1397,7 +1397,7 @@ No authorization required
|
|
|
1397
1397
|
|
|
1398
1398
|
## getHostedScormExportRegistrations
|
|
1399
1399
|
|
|
1400
|
-
> GetHostedScormRegistrationList getHostedScormExportRegistrations(courseId, exportId, page, pageSize)
|
|
1400
|
+
> GetHostedScormRegistrationList getHostedScormExportRegistrations(courseId, exportId, page, pageSize, search)
|
|
1401
1401
|
|
|
1402
1402
|
List hosted SCORM learner registrations
|
|
1403
1403
|
|
|
@@ -1423,6 +1423,8 @@ async function example() {
|
|
|
1423
1423
|
page: 56,
|
|
1424
1424
|
// number (optional)
|
|
1425
1425
|
pageSize: 56,
|
|
1426
|
+
// string | Case-insensitive learner name or external learner ID search. (optional)
|
|
1427
|
+
search: search_example,
|
|
1426
1428
|
} satisfies GetHostedScormExportRegistrationsRequest;
|
|
1427
1429
|
|
|
1428
1430
|
try {
|
|
@@ -1446,6 +1448,7 @@ example().catch(console.error);
|
|
|
1446
1448
|
| **exportId** | `string` | | [Defaults to `undefined`] |
|
|
1447
1449
|
| **page** | `number` | | [Optional] [Defaults to `1`] |
|
|
1448
1450
|
| **pageSize** | `number` | | [Optional] [Defaults to `20`] |
|
|
1451
|
+
| **search** | `string` | Case-insensitive learner name or external learner ID search. | [Optional] [Defaults to `undefined`] |
|
|
1449
1452
|
|
|
1450
1453
|
### Return type
|
|
1451
1454
|
|
|
@@ -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
|
@@ -319,6 +319,7 @@ export interface GetHostedScormExportRegistrationsRequest {
|
|
|
319
319
|
exportId: string;
|
|
320
320
|
page?: number;
|
|
321
321
|
pageSize?: number;
|
|
322
|
+
search?: string;
|
|
322
323
|
}
|
|
323
324
|
|
|
324
325
|
export interface GetPortalCourseExportsRequest {
|
|
@@ -1514,6 +1515,10 @@ export class CourseApi extends runtime.BaseAPI {
|
|
|
1514
1515
|
queryParameters['page_size'] = requestParameters['pageSize'];
|
|
1515
1516
|
}
|
|
1516
1517
|
|
|
1518
|
+
if (requestParameters['search'] != null) {
|
|
1519
|
+
queryParameters['search'] = requestParameters['search'];
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1517
1522
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
1518
1523
|
|
|
1519
1524
|
|
|
@@ -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
|
|