@easyedu/js-lsm-api 1.88.0 → 1.90.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.
Files changed (87) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +11 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +19 -0
  4. package/dist/apis/ContentLibraryApi.js +47 -0
  5. package/dist/apis/PlayerApi.d.ts +73 -0
  6. package/dist/apis/PlayerApi.js +188 -0
  7. package/dist/esm/apis/ContentLibraryApi.d.ts +19 -0
  8. package/dist/esm/apis/ContentLibraryApi.js +47 -0
  9. package/dist/esm/apis/PlayerApi.d.ts +73 -0
  10. package/dist/esm/apis/PlayerApi.js +188 -0
  11. package/dist/esm/models/CertificateCanvasImageElement.d.ts +0 -13
  12. package/dist/esm/models/CertificateCanvasImageElement.js +0 -10
  13. package/dist/esm/models/CertificateCanvasLineElement.d.ts +0 -13
  14. package/dist/esm/models/CertificateCanvasLineElement.js +0 -10
  15. package/dist/esm/models/CertificateCanvasPortalLogoElement.d.ts +0 -13
  16. package/dist/esm/models/CertificateCanvasPortalLogoElement.js +0 -10
  17. package/dist/esm/models/CertificateCanvasShapeElement.d.ts +0 -13
  18. package/dist/esm/models/CertificateCanvasShapeElement.js +0 -10
  19. package/dist/esm/models/CertificateCanvasTextElement.d.ts +0 -13
  20. package/dist/esm/models/CertificateCanvasTextElement.js +0 -10
  21. package/dist/esm/models/CertificateCanvasVerificationQrElement.d.ts +0 -13
  22. package/dist/esm/models/CertificateCanvasVerificationQrElement.js +0 -10
  23. package/dist/esm/models/GetCourseVersionItemSession.d.ts +7 -0
  24. package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
  25. package/dist/esm/models/GetResourceSession.d.ts +161 -0
  26. package/dist/esm/models/GetResourceSession.js +112 -0
  27. package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
  28. package/dist/esm/models/GetResourceSessionList.js +60 -0
  29. package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
  30. package/dist/esm/models/PostResourceVersionSession.js +41 -0
  31. package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
  32. package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
  33. package/dist/esm/models/index.d.ts +4 -0
  34. package/dist/esm/models/index.js +4 -0
  35. package/dist/models/CertificateCanvasImageElement.d.ts +0 -13
  36. package/dist/models/CertificateCanvasImageElement.js +1 -11
  37. package/dist/models/CertificateCanvasLineElement.d.ts +0 -13
  38. package/dist/models/CertificateCanvasLineElement.js +0 -11
  39. package/dist/models/CertificateCanvasPortalLogoElement.d.ts +0 -13
  40. package/dist/models/CertificateCanvasPortalLogoElement.js +0 -11
  41. package/dist/models/CertificateCanvasShapeElement.d.ts +0 -13
  42. package/dist/models/CertificateCanvasShapeElement.js +0 -11
  43. package/dist/models/CertificateCanvasTextElement.d.ts +0 -13
  44. package/dist/models/CertificateCanvasTextElement.js +1 -11
  45. package/dist/models/CertificateCanvasVerificationQrElement.d.ts +0 -13
  46. package/dist/models/CertificateCanvasVerificationQrElement.js +0 -11
  47. package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
  48. package/dist/models/GetCourseVersionItemSession.js +5 -0
  49. package/dist/models/GetResourceSession.d.ts +161 -0
  50. package/dist/models/GetResourceSession.js +119 -0
  51. package/dist/models/GetResourceSessionList.d.ts +57 -0
  52. package/dist/models/GetResourceSessionList.js +67 -0
  53. package/dist/models/PostResourceVersionSession.d.ts +32 -0
  54. package/dist/models/PostResourceVersionSession.js +48 -0
  55. package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
  56. package/dist/models/ResourceSessionEnvironment.js +51 -0
  57. package/dist/models/index.d.ts +4 -0
  58. package/dist/models/index.js +4 -0
  59. package/docs/CertificateCanvasElement.md +2 -2
  60. package/docs/CertificateCanvasImageElement.md +0 -2
  61. package/docs/CertificateCanvasLineElement.md +0 -2
  62. package/docs/CertificateCanvasPortalLogoElement.md +0 -2
  63. package/docs/CertificateCanvasShapeElement.md +0 -2
  64. package/docs/CertificateCanvasTextElement.md +0 -2
  65. package/docs/CertificateCanvasVerificationQrElement.md +0 -2
  66. package/docs/ContentLibraryApi.md +73 -0
  67. package/docs/GetCourseVersionItemSession.md +2 -0
  68. package/docs/GetResourceSession.md +77 -0
  69. package/docs/GetResourceSessionList.md +43 -0
  70. package/docs/PlayerApi.md +296 -0
  71. package/docs/PostResourceVersionSession.md +35 -0
  72. package/docs/ResourceSessionEnvironment.md +33 -0
  73. package/package.json +1 -1
  74. package/src/apis/ContentLibraryApi.ts +72 -0
  75. package/src/apis/PlayerApi.ts +261 -0
  76. package/src/models/CertificateCanvasImageElement.ts +0 -17
  77. package/src/models/CertificateCanvasLineElement.ts +0 -19
  78. package/src/models/CertificateCanvasPortalLogoElement.ts +0 -19
  79. package/src/models/CertificateCanvasShapeElement.ts +0 -19
  80. package/src/models/CertificateCanvasTextElement.ts +0 -17
  81. package/src/models/CertificateCanvasVerificationQrElement.ts +0 -19
  82. package/src/models/GetCourseVersionItemSession.ts +16 -0
  83. package/src/models/GetResourceSession.ts +270 -0
  84. package/src/models/GetResourceSessionList.ts +110 -0
  85. package/src/models/PostResourceVersionSession.ts +65 -0
  86. package/src/models/ResourceSessionEnvironment.ts +53 -0
  87. package/src/models/index.ts +4 -0
@@ -0,0 +1,119 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetResourceSession = instanceOfGetResourceSession;
17
+ exports.GetResourceSessionFromJSON = GetResourceSessionFromJSON;
18
+ exports.GetResourceSessionFromJSONTyped = GetResourceSessionFromJSONTyped;
19
+ exports.GetResourceSessionToJSON = GetResourceSessionToJSON;
20
+ exports.GetResourceSessionToJSONTyped = GetResourceSessionToJSONTyped;
21
+ const ResourceSessionEnvironment_1 = require("./ResourceSessionEnvironment");
22
+ const ResourceType_1 = require("./ResourceType");
23
+ const ContentLaunchMode_1 = require("./ContentLaunchMode");
24
+ /**
25
+ * Check if a given object implements the GetResourceSession interface.
26
+ */
27
+ function instanceOfGetResourceSession(value) {
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('userId' in value) || value['userId'] === undefined)
31
+ return false;
32
+ if (!('environment' in value) || value['environment'] === undefined)
33
+ return false;
34
+ if (!('contentLibraryItemId' in value) || value['contentLibraryItemId'] === undefined)
35
+ return false;
36
+ if (!('contentLibraryVersionId' in value) || value['contentLibraryVersionId'] === undefined)
37
+ return false;
38
+ if (!('resourceName' in value) || value['resourceName'] === undefined)
39
+ return false;
40
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
41
+ return false;
42
+ if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
43
+ return false;
44
+ if (!('isCurrent' in value) || value['isCurrent'] === undefined)
45
+ return false;
46
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined)
47
+ return false;
48
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
49
+ return false;
50
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
51
+ return false;
52
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ function GetResourceSessionFromJSON(json) {
57
+ return GetResourceSessionFromJSONTyped(json, false);
58
+ }
59
+ function GetResourceSessionFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'id': json['id'],
65
+ 'userId': json['user_id'],
66
+ 'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentFromJSON)(json['environment']),
67
+ 'courseId': json['course_id'] == null ? undefined : json['course_id'],
68
+ 'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
69
+ 'itemId': json['item_id'] == null ? undefined : json['item_id'],
70
+ 'contentLibraryItemId': json['content_library_item_id'],
71
+ 'contentLibraryVersionId': json['content_library_version_id'],
72
+ 'resourceName': json['resource_name'],
73
+ 'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
74
+ 'launchMode': json['launch_mode'] == null ? undefined : (0, ContentLaunchMode_1.ContentLaunchModeFromJSON)(json['launch_mode']),
75
+ 'launchUrl': json['launch_url'] == null ? undefined : json['launch_url'],
76
+ 'attemptNumber': json['attempt_number'],
77
+ 'isCurrent': json['is_current'],
78
+ 'completionStatus': json['completion_status'],
79
+ 'gradeStatus': json['grade_status'],
80
+ 'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
81
+ 'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
82
+ 'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
83
+ 'createdAt': json['created_at'],
84
+ 'updatedAt': json['updated_at'],
85
+ 'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
86
+ };
87
+ }
88
+ function GetResourceSessionToJSON(json) {
89
+ return GetResourceSessionToJSONTyped(json, false);
90
+ }
91
+ function GetResourceSessionToJSONTyped(value, ignoreDiscriminator = false) {
92
+ if (value == null) {
93
+ return value;
94
+ }
95
+ return {
96
+ 'id': value['id'],
97
+ 'user_id': value['userId'],
98
+ 'environment': (0, ResourceSessionEnvironment_1.ResourceSessionEnvironmentToJSON)(value['environment']),
99
+ 'course_id': value['courseId'],
100
+ 'course_version_id': value['courseVersionId'],
101
+ 'item_id': value['itemId'],
102
+ 'content_library_item_id': value['contentLibraryItemId'],
103
+ 'content_library_version_id': value['contentLibraryVersionId'],
104
+ 'resource_name': value['resourceName'],
105
+ 'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
106
+ 'launch_mode': (0, ContentLaunchMode_1.ContentLaunchModeToJSON)(value['launchMode']),
107
+ 'launch_url': value['launchUrl'],
108
+ 'attempt_number': value['attemptNumber'],
109
+ 'is_current': value['isCurrent'],
110
+ 'completion_status': value['completionStatus'],
111
+ 'grade_status': value['gradeStatus'],
112
+ 'score_raw': value['scoreRaw'],
113
+ 'initialized_at': value['initializedAt'],
114
+ 'terminated_at': value['terminatedAt'],
115
+ 'created_at': value['createdAt'],
116
+ 'updated_at': value['updatedAt'],
117
+ 'completed_at': value['completedAt'],
118
+ };
119
+ }
@@ -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 { GetResourceSession } from './GetResourceSession';
13
+ /**
14
+ * A filtered page of resource sessions.
15
+ * @export
16
+ * @interface GetResourceSessionList
17
+ */
18
+ export interface GetResourceSessionList {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GetResourceSessionList
23
+ */
24
+ page: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GetResourceSessionList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetResourceSessionList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GetResourceSessionList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<GetResourceSession>}
46
+ * @memberof GetResourceSessionList
47
+ */
48
+ items: Array<GetResourceSession>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetResourceSessionList interface.
52
+ */
53
+ export declare function instanceOfGetResourceSessionList(value: object): value is GetResourceSessionList;
54
+ export declare function GetResourceSessionListFromJSON(json: any): GetResourceSessionList;
55
+ export declare function GetResourceSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionList;
56
+ export declare function GetResourceSessionListToJSON(json: any): GetResourceSessionList;
57
+ export declare function GetResourceSessionListToJSONTyped(value?: GetResourceSessionList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetResourceSessionList = instanceOfGetResourceSessionList;
17
+ exports.GetResourceSessionListFromJSON = GetResourceSessionListFromJSON;
18
+ exports.GetResourceSessionListFromJSONTyped = GetResourceSessionListFromJSONTyped;
19
+ exports.GetResourceSessionListToJSON = GetResourceSessionListToJSON;
20
+ exports.GetResourceSessionListToJSONTyped = GetResourceSessionListToJSONTyped;
21
+ const GetResourceSession_1 = require("./GetResourceSession");
22
+ /**
23
+ * Check if a given object implements the GetResourceSessionList interface.
24
+ */
25
+ function instanceOfGetResourceSessionList(value) {
26
+ if (!('page' in value) || value['page'] === undefined)
27
+ return false;
28
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
29
+ return false;
30
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
31
+ return false;
32
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
33
+ return false;
34
+ if (!('items' in value) || value['items'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function GetResourceSessionListFromJSON(json) {
39
+ return GetResourceSessionListFromJSONTyped(json, false);
40
+ }
41
+ function GetResourceSessionListFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'page': json['page'],
47
+ 'pageSize': json['pageSize'],
48
+ 'totalPages': json['totalPages'],
49
+ 'totalItems': json['totalItems'],
50
+ 'items': (json['items'].map(GetResourceSession_1.GetResourceSessionFromJSON)),
51
+ };
52
+ }
53
+ function GetResourceSessionListToJSON(json) {
54
+ return GetResourceSessionListToJSONTyped(json, false);
55
+ }
56
+ function GetResourceSessionListToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'page': value['page'],
62
+ 'pageSize': value['pageSize'],
63
+ 'totalPages': value['totalPages'],
64
+ 'totalItems': value['totalItems'],
65
+ 'items': (value['items'].map(GetResourceSession_1.GetResourceSessionToJSON)),
66
+ };
67
+ }
@@ -0,0 +1,32 @@
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
+ * Start or resume an isolated demo session for an exact resource version.
14
+ * @export
15
+ * @interface PostResourceVersionSession
16
+ */
17
+ export interface PostResourceVersionSession {
18
+ /**
19
+ * Create a clean demo attempt instead of resuming the current demo session.
20
+ * @type {boolean}
21
+ * @memberof PostResourceVersionSession
22
+ */
23
+ restart?: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PostResourceVersionSession interface.
27
+ */
28
+ export declare function instanceOfPostResourceVersionSession(value: object): value is PostResourceVersionSession;
29
+ export declare function PostResourceVersionSessionFromJSON(json: any): PostResourceVersionSession;
30
+ export declare function PostResourceVersionSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionSession;
31
+ export declare function PostResourceVersionSessionToJSON(json: any): PostResourceVersionSession;
32
+ export declare function PostResourceVersionSessionToJSONTyped(value?: PostResourceVersionSession | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfPostResourceVersionSession = instanceOfPostResourceVersionSession;
17
+ exports.PostResourceVersionSessionFromJSON = PostResourceVersionSessionFromJSON;
18
+ exports.PostResourceVersionSessionFromJSONTyped = PostResourceVersionSessionFromJSONTyped;
19
+ exports.PostResourceVersionSessionToJSON = PostResourceVersionSessionToJSON;
20
+ exports.PostResourceVersionSessionToJSONTyped = PostResourceVersionSessionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PostResourceVersionSession interface.
23
+ */
24
+ function instanceOfPostResourceVersionSession(value) {
25
+ return true;
26
+ }
27
+ function PostResourceVersionSessionFromJSON(json) {
28
+ return PostResourceVersionSessionFromJSONTyped(json, false);
29
+ }
30
+ function PostResourceVersionSessionFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'restart': json['restart'] == null ? undefined : json['restart'],
36
+ };
37
+ }
38
+ function PostResourceVersionSessionToJSON(json) {
39
+ return PostResourceVersionSessionToJSONTyped(json, false);
40
+ }
41
+ function PostResourceVersionSessionToJSONTyped(value, ignoreDiscriminator = false) {
42
+ if (value == null) {
43
+ return value;
44
+ }
45
+ return {
46
+ 'restart': value['restart'],
47
+ };
48
+ }
@@ -0,0 +1,25 @@
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
+ * Whether the session contributes to learner activity or is isolated administrator testing.
14
+ * @export
15
+ */
16
+ export declare const ResourceSessionEnvironment: {
17
+ readonly Live: "live";
18
+ readonly Demo: "demo";
19
+ };
20
+ export type ResourceSessionEnvironment = typeof ResourceSessionEnvironment[keyof typeof ResourceSessionEnvironment];
21
+ export declare function instanceOfResourceSessionEnvironment(value: any): boolean;
22
+ export declare function ResourceSessionEnvironmentFromJSON(json: any): ResourceSessionEnvironment;
23
+ export declare function ResourceSessionEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
24
+ export declare function ResourceSessionEnvironmentToJSON(value?: ResourceSessionEnvironment | null): any;
25
+ export declare function ResourceSessionEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ResourceSessionEnvironment = void 0;
17
+ exports.instanceOfResourceSessionEnvironment = instanceOfResourceSessionEnvironment;
18
+ exports.ResourceSessionEnvironmentFromJSON = ResourceSessionEnvironmentFromJSON;
19
+ exports.ResourceSessionEnvironmentFromJSONTyped = ResourceSessionEnvironmentFromJSONTyped;
20
+ exports.ResourceSessionEnvironmentToJSON = ResourceSessionEnvironmentToJSON;
21
+ exports.ResourceSessionEnvironmentToJSONTyped = ResourceSessionEnvironmentToJSONTyped;
22
+ /**
23
+ * Whether the session contributes to learner activity or is isolated administrator testing.
24
+ * @export
25
+ */
26
+ exports.ResourceSessionEnvironment = {
27
+ Live: 'live',
28
+ Demo: 'demo'
29
+ };
30
+ function instanceOfResourceSessionEnvironment(value) {
31
+ for (const key in exports.ResourceSessionEnvironment) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.ResourceSessionEnvironment, key)) {
33
+ if (exports.ResourceSessionEnvironment[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function ResourceSessionEnvironmentFromJSON(json) {
41
+ return ResourceSessionEnvironmentFromJSONTyped(json, false);
42
+ }
43
+ function ResourceSessionEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function ResourceSessionEnvironmentToJSON(value) {
47
+ return value;
48
+ }
49
+ function ResourceSessionEnvironmentToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -180,6 +180,8 @@ export * from './GetQuizResultsTiming';
180
180
  export * from './GetQuizStatistics';
181
181
  export * from './GetResource';
182
182
  export * from './GetResourceList';
183
+ export * from './GetResourceSession';
184
+ export * from './GetResourceSessionList';
183
185
  export * from './GetResourceUsage';
184
186
  export * from './GetResourceUsageCoursesInner';
185
187
  export * from './GetResourceVersionUpload';
@@ -297,6 +299,7 @@ export * from './PostResetPassword';
297
299
  export * from './PostResource';
298
300
  export * from './PostResourceVersion';
299
301
  export * from './PostResourceVersionComplete';
302
+ export * from './PostResourceVersionSession';
300
303
  export * from './PostResourceVersionUpload';
301
304
  export * from './PostRevokeCertificate';
302
305
  export * from './PostRichTextAssetComplete';
@@ -348,6 +351,7 @@ export * from './PutUser';
348
351
  export * from './QuizContent';
349
352
  export * from './QuizContentAssignment';
350
353
  export * from './QuizContentSettings';
354
+ export * from './ResourceSessionEnvironment';
351
355
  export * from './ResourceType';
352
356
  export * from './RichTextAsset';
353
357
  export * from './RichTextDocument';
@@ -198,6 +198,8 @@ __exportStar(require("./GetQuizResultsTiming"), exports);
198
198
  __exportStar(require("./GetQuizStatistics"), exports);
199
199
  __exportStar(require("./GetResource"), exports);
200
200
  __exportStar(require("./GetResourceList"), exports);
201
+ __exportStar(require("./GetResourceSession"), exports);
202
+ __exportStar(require("./GetResourceSessionList"), exports);
201
203
  __exportStar(require("./GetResourceUsage"), exports);
202
204
  __exportStar(require("./GetResourceUsageCoursesInner"), exports);
203
205
  __exportStar(require("./GetResourceVersionUpload"), exports);
@@ -315,6 +317,7 @@ __exportStar(require("./PostResetPassword"), exports);
315
317
  __exportStar(require("./PostResource"), exports);
316
318
  __exportStar(require("./PostResourceVersion"), exports);
317
319
  __exportStar(require("./PostResourceVersionComplete"), exports);
320
+ __exportStar(require("./PostResourceVersionSession"), exports);
318
321
  __exportStar(require("./PostResourceVersionUpload"), exports);
319
322
  __exportStar(require("./PostRevokeCertificate"), exports);
320
323
  __exportStar(require("./PostRichTextAssetComplete"), exports);
@@ -366,6 +369,7 @@ __exportStar(require("./PutUser"), exports);
366
369
  __exportStar(require("./QuizContent"), exports);
367
370
  __exportStar(require("./QuizContentAssignment"), exports);
368
371
  __exportStar(require("./QuizContentSettings"), exports);
372
+ __exportStar(require("./ResourceSessionEnvironment"), exports);
369
373
  __exportStar(require("./ResourceType"), exports);
370
374
  __exportStar(require("./RichTextAsset"), exports);
371
375
  __exportStar(require("./RichTextDocument"), exports);
@@ -7,8 +7,8 @@ A constrained certificate-canvas-v1 element.
7
7
 
8
8
  Name | Type
9
9
  ------------ | -------------
10
- `id` | string
11
10
  `type` | string
11
+ `id` | string
12
12
  `x` | number
13
13
  `y` | number
14
14
  `width` | number
@@ -31,8 +31,8 @@ import type { CertificateCanvasElement } from '@easyedu/js-lsm-api'
31
31
 
32
32
  // TODO: Update the object below with actual values
33
33
  const example = {
34
- "id": null,
35
34
  "type": null,
35
+ "id": null,
36
36
  "x": null,
37
37
  "y": null,
38
38
  "width": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
- `type` | string
11
10
  `x` | number
12
11
  `y` | number
13
12
  `width` | number
@@ -23,7 +22,6 @@ import type { CertificateCanvasImageElement } from '@easyedu/js-lsm-api'
23
22
  // TODO: Update the object below with actual values
24
23
  const example = {
25
24
  "id": null,
26
- "type": null,
27
25
  "x": null,
28
26
  "y": null,
29
27
  "width": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
- `type` | string
11
10
  `x` | number
12
11
  `y` | number
13
12
  `width` | number
@@ -23,7 +22,6 @@ import type { CertificateCanvasLineElement } from '@easyedu/js-lsm-api'
23
22
  // TODO: Update the object below with actual values
24
23
  const example = {
25
24
  "id": null,
26
- "type": null,
27
25
  "x": null,
28
26
  "y": null,
29
27
  "width": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
- `type` | string
11
10
  `x` | number
12
11
  `y` | number
13
12
  `width` | number
@@ -21,7 +20,6 @@ import type { CertificateCanvasPortalLogoElement } from '@easyedu/js-lsm-api'
21
20
  // TODO: Update the object below with actual values
22
21
  const example = {
23
22
  "id": null,
24
- "type": null,
25
23
  "x": null,
26
24
  "y": null,
27
25
  "width": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
- `type` | string
11
10
  `x` | number
12
11
  `y` | number
13
12
  `width` | number
@@ -24,7 +23,6 @@ import type { CertificateCanvasShapeElement } from '@easyedu/js-lsm-api'
24
23
  // TODO: Update the object below with actual values
25
24
  const example = {
26
25
  "id": null,
27
- "type": null,
28
26
  "x": null,
29
27
  "y": null,
30
28
  "width": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
- `type` | string
11
10
  `x` | number
12
11
  `y` | number
13
12
  `width` | number
@@ -26,7 +25,6 @@ import type { CertificateCanvasTextElement } from '@easyedu/js-lsm-api'
26
25
  // TODO: Update the object below with actual values
27
26
  const example = {
28
27
  "id": null,
29
- "type": null,
30
28
  "x": null,
31
29
  "y": null,
32
30
  "width": null,
@@ -7,7 +7,6 @@
7
7
  Name | Type
8
8
  ------------ | -------------
9
9
  `id` | string
10
- `type` | string
11
10
  `x` | number
12
11
  `y` | number
13
12
  `width` | number
@@ -21,7 +20,6 @@ import type { CertificateCanvasVerificationQrElement } from '@easyedu/js-lsm-api
21
20
  // TODO: Update the object below with actual values
22
21
  const example = {
23
22
  "id": null,
24
- "type": null,
25
23
  "x": null,
26
24
  "y": null,
27
25
  "width": null,
@@ -15,6 +15,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
15
15
  | [**postResourceVersion**](ContentLibraryApi.md#postresourceversion) | **POST** /content-library/resources/{resourceId}/versions | Create the next draft resource version |
16
16
  | [**postResourceVersionArchive**](ContentLibraryApi.md#postresourceversionarchive) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/archive | Archive a published resource version |
17
17
  | [**postResourceVersionPublish**](ContentLibraryApi.md#postresourceversionpublish) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/publish | Publish an immutable resource version |
18
+ | [**postResourceVersionSession**](ContentLibraryApi.md#postresourceversionsession) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/sessions | Start or resume a demo session for an exact resource version |
18
19
  | [**postResourceVersionUpload**](ContentLibraryApi.md#postresourceversionupload) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/upload | Initialize a version-scoped file upload |
19
20
  | [**postResourceVersionUploadComplete**](ContentLibraryApi.md#postresourceversionuploadcomplete) | **POST** /content-library/resources/{resourceId}/versions/{versionId}/upload/complete | Verify and complete a resource upload |
20
21
  | [**putResource**](ContentLibraryApi.md#putresource) | **PUT** /content-library/resources/{resourceId} | Update resource library metadata |
@@ -778,6 +779,78 @@ No authorization required
778
779
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
779
780
 
780
781
 
782
+ ## postResourceVersionSession
783
+
784
+ > GetResourceSession postResourceVersionSession(resourceId, versionId, postResourceVersionSession)
785
+
786
+ Start or resume a demo session for an exact resource version
787
+
788
+ ### Example
789
+
790
+ ```ts
791
+ import {
792
+ Configuration,
793
+ ContentLibraryApi,
794
+ } from '@easyedu/js-lsm-api';
795
+ import type { PostResourceVersionSessionRequest } from '@easyedu/js-lsm-api';
796
+
797
+ async function example() {
798
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
799
+ const api = new ContentLibraryApi();
800
+
801
+ const body = {
802
+ // string
803
+ resourceId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
804
+ // string
805
+ versionId: 38400000-8cf0-11bd-b23e-10b96e4ef00d,
806
+ // PostResourceVersionSession (optional)
807
+ postResourceVersionSession: ...,
808
+ } satisfies PostResourceVersionSessionRequest;
809
+
810
+ try {
811
+ const data = await api.postResourceVersionSession(body);
812
+ console.log(data);
813
+ } catch (error) {
814
+ console.error(error);
815
+ }
816
+ }
817
+
818
+ // Run the test
819
+ example().catch(console.error);
820
+ ```
821
+
822
+ ### Parameters
823
+
824
+
825
+ | Name | Type | Description | Notes |
826
+ |------------- | ------------- | ------------- | -------------|
827
+ | **resourceId** | `string` | | [Defaults to `undefined`] |
828
+ | **versionId** | `string` | | [Defaults to `undefined`] |
829
+ | **postResourceVersionSession** | [PostResourceVersionSession](PostResourceVersionSession.md) | | [Optional] |
830
+
831
+ ### Return type
832
+
833
+ [**GetResourceSession**](GetResourceSession.md)
834
+
835
+ ### Authorization
836
+
837
+ No authorization required
838
+
839
+ ### HTTP request headers
840
+
841
+ - **Content-Type**: `application/json`
842
+ - **Accept**: `application/json`
843
+
844
+
845
+ ### HTTP response details
846
+ | Status code | Description | Response headers |
847
+ |-------------|-------------|------------------|
848
+ | **200** | Current or newly restarted demo session | - |
849
+ | **404** | Resource version not found | - |
850
+
851
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
852
+
853
+
781
854
  ## postResourceVersionUpload
782
855
 
783
856
  > GetResourceVersionUpload postResourceVersionUpload(resourceId, versionId, postResourceVersionUpload)