@easyedu/js-lsm-api 1.31.0 → 1.32.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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @easyedu/js-lsm-api@1.
|
|
1
|
+
# @easyedu/js-lsm-api@1.32.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
|
|
4
4
|
|
|
@@ -353,7 +353,7 @@ and is automatically generated by the
|
|
|
353
353
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
354
354
|
|
|
355
355
|
- API version: `1.0.0`
|
|
356
|
-
- Package version: `1.
|
|
356
|
+
- Package version: `1.32.0`
|
|
357
357
|
- Generator version: `7.17.0`
|
|
358
358
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
359
359
|
|
|
@@ -69,7 +69,8 @@ export interface ListContentSessionsRequest {
|
|
|
69
69
|
contentId: string;
|
|
70
70
|
moduleId: string;
|
|
71
71
|
courseId: string;
|
|
72
|
-
|
|
72
|
+
environment?: ListContentSessionsEnvironmentEnum;
|
|
73
|
+
userId?: string;
|
|
73
74
|
page?: number;
|
|
74
75
|
pageSize?: number;
|
|
75
76
|
}
|
|
@@ -331,11 +332,11 @@ export declare class ContentApi extends runtime.BaseAPI {
|
|
|
331
332
|
/**
|
|
332
333
|
* @export
|
|
333
334
|
*/
|
|
334
|
-
export declare const
|
|
335
|
+
export declare const ListContentSessionsEnvironmentEnum: {
|
|
335
336
|
readonly Sandbox: "SANDBOX";
|
|
336
337
|
readonly Live: "LIVE";
|
|
337
338
|
};
|
|
338
|
-
export type
|
|
339
|
+
export type ListContentSessionsEnvironmentEnum = typeof ListContentSessionsEnvironmentEnum[keyof typeof ListContentSessionsEnvironmentEnum];
|
|
339
340
|
/**
|
|
340
341
|
* @export
|
|
341
342
|
*/
|
package/dist/apis/ContentApi.js
CHANGED
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.PostContentSessionEnvironmentEnum = exports.
|
|
25
|
+
exports.PostContentSessionEnvironmentEnum = exports.ListContentSessionsEnvironmentEnum = exports.ContentApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const index_1 = require("../models/index");
|
|
28
28
|
/**
|
|
@@ -491,8 +491,11 @@ class ContentApi extends runtime.BaseAPI {
|
|
|
491
491
|
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling listContentSessions().');
|
|
492
492
|
}
|
|
493
493
|
const queryParameters = {};
|
|
494
|
-
if (requestParameters['
|
|
495
|
-
queryParameters['
|
|
494
|
+
if (requestParameters['environment'] != null) {
|
|
495
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
496
|
+
}
|
|
497
|
+
if (requestParameters['userId'] != null) {
|
|
498
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
496
499
|
}
|
|
497
500
|
if (requestParameters['page'] != null) {
|
|
498
501
|
queryParameters['page'] = requestParameters['page'];
|
|
@@ -881,7 +884,7 @@ exports.ContentApi = ContentApi;
|
|
|
881
884
|
/**
|
|
882
885
|
* @export
|
|
883
886
|
*/
|
|
884
|
-
exports.
|
|
887
|
+
exports.ListContentSessionsEnvironmentEnum = {
|
|
885
888
|
Sandbox: 'SANDBOX',
|
|
886
889
|
Live: 'LIVE'
|
|
887
890
|
};
|
|
@@ -69,7 +69,8 @@ export interface ListContentSessionsRequest {
|
|
|
69
69
|
contentId: string;
|
|
70
70
|
moduleId: string;
|
|
71
71
|
courseId: string;
|
|
72
|
-
|
|
72
|
+
environment?: ListContentSessionsEnvironmentEnum;
|
|
73
|
+
userId?: string;
|
|
73
74
|
page?: number;
|
|
74
75
|
pageSize?: number;
|
|
75
76
|
}
|
|
@@ -331,11 +332,11 @@ export declare class ContentApi extends runtime.BaseAPI {
|
|
|
331
332
|
/**
|
|
332
333
|
* @export
|
|
333
334
|
*/
|
|
334
|
-
export declare const
|
|
335
|
+
export declare const ListContentSessionsEnvironmentEnum: {
|
|
335
336
|
readonly Sandbox: "SANDBOX";
|
|
336
337
|
readonly Live: "LIVE";
|
|
337
338
|
};
|
|
338
|
-
export type
|
|
339
|
+
export type ListContentSessionsEnvironmentEnum = typeof ListContentSessionsEnvironmentEnum[keyof typeof ListContentSessionsEnvironmentEnum];
|
|
339
340
|
/**
|
|
340
341
|
* @export
|
|
341
342
|
*/
|
|
@@ -488,8 +488,11 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
488
488
|
throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling listContentSessions().');
|
|
489
489
|
}
|
|
490
490
|
const queryParameters = {};
|
|
491
|
-
if (requestParameters['
|
|
492
|
-
queryParameters['
|
|
491
|
+
if (requestParameters['environment'] != null) {
|
|
492
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
493
|
+
}
|
|
494
|
+
if (requestParameters['userId'] != null) {
|
|
495
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
493
496
|
}
|
|
494
497
|
if (requestParameters['page'] != null) {
|
|
495
498
|
queryParameters['page'] = requestParameters['page'];
|
|
@@ -877,7 +880,7 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
877
880
|
/**
|
|
878
881
|
* @export
|
|
879
882
|
*/
|
|
880
|
-
export const
|
|
883
|
+
export const ListContentSessionsEnvironmentEnum = {
|
|
881
884
|
Sandbox: 'SANDBOX',
|
|
882
885
|
Live: 'LIVE'
|
|
883
886
|
};
|
package/docs/ContentApi.md
CHANGED
|
@@ -904,7 +904,7 @@ No authorization required
|
|
|
904
904
|
|
|
905
905
|
## listContentSessions
|
|
906
906
|
|
|
907
|
-
> GetContentSessionList listContentSessions(contentId, moduleId, courseId,
|
|
907
|
+
> GetContentSessionList listContentSessions(contentId, moduleId, courseId, environment, userId, page, pageSize)
|
|
908
908
|
|
|
909
909
|
List content sessions (instructor only)
|
|
910
910
|
|
|
@@ -931,7 +931,9 @@ async function example() {
|
|
|
931
931
|
// string
|
|
932
932
|
courseId: courseId_example,
|
|
933
933
|
// 'SANDBOX' | 'LIVE' | Filter sessions by environment type (SANDBOX or LIVE) (optional)
|
|
934
|
-
|
|
934
|
+
environment: environment_example,
|
|
935
|
+
// string | Filter sessions by user ID (external ID) (optional)
|
|
936
|
+
userId: userId_example,
|
|
935
937
|
// number | Page number for pagination (optional)
|
|
936
938
|
page: 56,
|
|
937
939
|
// number | Number of items per page (optional)
|
|
@@ -958,7 +960,8 @@ example().catch(console.error);
|
|
|
958
960
|
| **contentId** | `string` | | [Defaults to `undefined`] |
|
|
959
961
|
| **moduleId** | `string` | | [Defaults to `undefined`] |
|
|
960
962
|
| **courseId** | `string` | | [Defaults to `undefined`] |
|
|
961
|
-
| **
|
|
963
|
+
| **environment** | `SANDBOX`, `LIVE` | Filter sessions by environment type (SANDBOX or LIVE) | [Optional] [Defaults to `undefined`] [Enum: SANDBOX, LIVE] |
|
|
964
|
+
| **userId** | `string` | Filter sessions by user ID (external ID) | [Optional] [Defaults to `undefined`] |
|
|
962
965
|
| **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
|
|
963
966
|
| **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
|
|
964
967
|
|
package/package.json
CHANGED
package/src/apis/ContentApi.ts
CHANGED
|
@@ -149,7 +149,8 @@ export interface ListContentSessionsRequest {
|
|
|
149
149
|
contentId: string;
|
|
150
150
|
moduleId: string;
|
|
151
151
|
courseId: string;
|
|
152
|
-
|
|
152
|
+
environment?: ListContentSessionsEnvironmentEnum;
|
|
153
|
+
userId?: string;
|
|
153
154
|
page?: number;
|
|
154
155
|
pageSize?: number;
|
|
155
156
|
}
|
|
@@ -831,8 +832,12 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
831
832
|
|
|
832
833
|
const queryParameters: any = {};
|
|
833
834
|
|
|
834
|
-
if (requestParameters['
|
|
835
|
-
queryParameters['
|
|
835
|
+
if (requestParameters['environment'] != null) {
|
|
836
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
if (requestParameters['userId'] != null) {
|
|
840
|
+
queryParameters['userId'] = requestParameters['userId'];
|
|
836
841
|
}
|
|
837
842
|
|
|
838
843
|
if (requestParameters['page'] != null) {
|
|
@@ -1361,11 +1366,11 @@ export class ContentApi extends runtime.BaseAPI {
|
|
|
1361
1366
|
/**
|
|
1362
1367
|
* @export
|
|
1363
1368
|
*/
|
|
1364
|
-
export const
|
|
1369
|
+
export const ListContentSessionsEnvironmentEnum = {
|
|
1365
1370
|
Sandbox: 'SANDBOX',
|
|
1366
1371
|
Live: 'LIVE'
|
|
1367
1372
|
} as const;
|
|
1368
|
-
export type
|
|
1373
|
+
export type ListContentSessionsEnvironmentEnum = typeof ListContentSessionsEnvironmentEnum[keyof typeof ListContentSessionsEnvironmentEnum];
|
|
1369
1374
|
/**
|
|
1370
1375
|
* @export
|
|
1371
1376
|
*/
|