@easyedu/js-lsm-api 1.89.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 (50) 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/GetCourseVersionItemSession.d.ts +7 -0
  12. package/dist/esm/models/GetCourseVersionItemSession.js +5 -0
  13. package/dist/esm/models/GetResourceSession.d.ts +161 -0
  14. package/dist/esm/models/GetResourceSession.js +112 -0
  15. package/dist/esm/models/GetResourceSessionList.d.ts +57 -0
  16. package/dist/esm/models/GetResourceSessionList.js +60 -0
  17. package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
  18. package/dist/esm/models/PostResourceVersionSession.js +41 -0
  19. package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
  20. package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
  21. package/dist/esm/models/index.d.ts +4 -0
  22. package/dist/esm/models/index.js +4 -0
  23. package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
  24. package/dist/models/GetCourseVersionItemSession.js +5 -0
  25. package/dist/models/GetResourceSession.d.ts +161 -0
  26. package/dist/models/GetResourceSession.js +119 -0
  27. package/dist/models/GetResourceSessionList.d.ts +57 -0
  28. package/dist/models/GetResourceSessionList.js +67 -0
  29. package/dist/models/PostResourceVersionSession.d.ts +32 -0
  30. package/dist/models/PostResourceVersionSession.js +48 -0
  31. package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
  32. package/dist/models/ResourceSessionEnvironment.js +51 -0
  33. package/dist/models/index.d.ts +4 -0
  34. package/dist/models/index.js +4 -0
  35. package/docs/ContentLibraryApi.md +73 -0
  36. package/docs/GetCourseVersionItemSession.md +2 -0
  37. package/docs/GetResourceSession.md +77 -0
  38. package/docs/GetResourceSessionList.md +43 -0
  39. package/docs/PlayerApi.md +296 -0
  40. package/docs/PostResourceVersionSession.md +35 -0
  41. package/docs/ResourceSessionEnvironment.md +33 -0
  42. package/package.json +1 -1
  43. package/src/apis/ContentLibraryApi.ts +72 -0
  44. package/src/apis/PlayerApi.ts +261 -0
  45. package/src/models/GetCourseVersionItemSession.ts +16 -0
  46. package/src/models/GetResourceSession.ts +270 -0
  47. package/src/models/GetResourceSessionList.ts +110 -0
  48. package/src/models/PostResourceVersionSession.ts +65 -0
  49. package/src/models/ResourceSessionEnvironment.ts +53 -0
  50. package/src/models/index.ts +4 -0
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { GetResourceSession } from './GetResourceSession';
17
+ import {
18
+ GetResourceSessionFromJSON,
19
+ GetResourceSessionFromJSONTyped,
20
+ GetResourceSessionToJSON,
21
+ GetResourceSessionToJSONTyped,
22
+ } from './GetResourceSession';
23
+
24
+ /**
25
+ * A filtered page of resource sessions.
26
+ * @export
27
+ * @interface GetResourceSessionList
28
+ */
29
+ export interface GetResourceSessionList {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetResourceSessionList
34
+ */
35
+ page: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetResourceSessionList
40
+ */
41
+ pageSize: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetResourceSessionList
46
+ */
47
+ totalPages: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetResourceSessionList
52
+ */
53
+ totalItems: number;
54
+ /**
55
+ *
56
+ * @type {Array<GetResourceSession>}
57
+ * @memberof GetResourceSessionList
58
+ */
59
+ items: Array<GetResourceSession>;
60
+ }
61
+
62
+ /**
63
+ * Check if a given object implements the GetResourceSessionList interface.
64
+ */
65
+ export function instanceOfGetResourceSessionList(value: object): value is GetResourceSessionList {
66
+ if (!('page' in value) || value['page'] === undefined) return false;
67
+ if (!('pageSize' in value) || value['pageSize'] === undefined) return false;
68
+ if (!('totalPages' in value) || value['totalPages'] === undefined) return false;
69
+ if (!('totalItems' in value) || value['totalItems'] === undefined) return false;
70
+ if (!('items' in value) || value['items'] === undefined) return false;
71
+ return true;
72
+ }
73
+
74
+ export function GetResourceSessionListFromJSON(json: any): GetResourceSessionList {
75
+ return GetResourceSessionListFromJSONTyped(json, false);
76
+ }
77
+
78
+ export function GetResourceSessionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionList {
79
+ if (json == null) {
80
+ return json;
81
+ }
82
+ return {
83
+
84
+ 'page': json['page'],
85
+ 'pageSize': json['pageSize'],
86
+ 'totalPages': json['totalPages'],
87
+ 'totalItems': json['totalItems'],
88
+ 'items': ((json['items'] as Array<any>).map(GetResourceSessionFromJSON)),
89
+ };
90
+ }
91
+
92
+ export function GetResourceSessionListToJSON(json: any): GetResourceSessionList {
93
+ return GetResourceSessionListToJSONTyped(json, false);
94
+ }
95
+
96
+ export function GetResourceSessionListToJSONTyped(value?: GetResourceSessionList | null, ignoreDiscriminator: boolean = false): any {
97
+ if (value == null) {
98
+ return value;
99
+ }
100
+
101
+ return {
102
+
103
+ 'page': value['page'],
104
+ 'pageSize': value['pageSize'],
105
+ 'totalPages': value['totalPages'],
106
+ 'totalItems': value['totalItems'],
107
+ 'items': ((value['items'] as Array<any>).map(GetResourceSessionToJSON)),
108
+ };
109
+ }
110
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Start or resume an isolated demo session for an exact resource version.
18
+ * @export
19
+ * @interface PostResourceVersionSession
20
+ */
21
+ export interface PostResourceVersionSession {
22
+ /**
23
+ * Create a clean demo attempt instead of resuming the current demo session.
24
+ * @type {boolean}
25
+ * @memberof PostResourceVersionSession
26
+ */
27
+ restart?: boolean;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the PostResourceVersionSession interface.
32
+ */
33
+ export function instanceOfPostResourceVersionSession(value: object): value is PostResourceVersionSession {
34
+ return true;
35
+ }
36
+
37
+ export function PostResourceVersionSessionFromJSON(json: any): PostResourceVersionSession {
38
+ return PostResourceVersionSessionFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function PostResourceVersionSessionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceVersionSession {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'restart': json['restart'] == null ? undefined : json['restart'],
48
+ };
49
+ }
50
+
51
+ export function PostResourceVersionSessionToJSON(json: any): PostResourceVersionSession {
52
+ return PostResourceVersionSessionToJSONTyped(json, false);
53
+ }
54
+
55
+ export function PostResourceVersionSessionToJSONTyped(value?: PostResourceVersionSession | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'restart': value['restart'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,53 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ /**
17
+ * Whether the session contributes to learner activity or is isolated administrator testing.
18
+ * @export
19
+ */
20
+ export const ResourceSessionEnvironment = {
21
+ Live: 'live',
22
+ Demo: 'demo'
23
+ } as const;
24
+ export type ResourceSessionEnvironment = typeof ResourceSessionEnvironment[keyof typeof ResourceSessionEnvironment];
25
+
26
+
27
+ export function instanceOfResourceSessionEnvironment(value: any): boolean {
28
+ for (const key in ResourceSessionEnvironment) {
29
+ if (Object.prototype.hasOwnProperty.call(ResourceSessionEnvironment, key)) {
30
+ if (ResourceSessionEnvironment[key as keyof typeof ResourceSessionEnvironment] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function ResourceSessionEnvironmentFromJSON(json: any): ResourceSessionEnvironment {
39
+ return ResourceSessionEnvironmentFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function ResourceSessionEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment {
43
+ return json as ResourceSessionEnvironment;
44
+ }
45
+
46
+ export function ResourceSessionEnvironmentToJSON(value?: ResourceSessionEnvironment | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function ResourceSessionEnvironmentToJSONTyped(value: any, ignoreDiscriminator: boolean): ResourceSessionEnvironment {
51
+ return value as ResourceSessionEnvironment;
52
+ }
53
+
@@ -182,6 +182,8 @@ export * from './GetQuizResultsTiming';
182
182
  export * from './GetQuizStatistics';
183
183
  export * from './GetResource';
184
184
  export * from './GetResourceList';
185
+ export * from './GetResourceSession';
186
+ export * from './GetResourceSessionList';
185
187
  export * from './GetResourceUsage';
186
188
  export * from './GetResourceUsageCoursesInner';
187
189
  export * from './GetResourceVersionUpload';
@@ -299,6 +301,7 @@ export * from './PostResetPassword';
299
301
  export * from './PostResource';
300
302
  export * from './PostResourceVersion';
301
303
  export * from './PostResourceVersionComplete';
304
+ export * from './PostResourceVersionSession';
302
305
  export * from './PostResourceVersionUpload';
303
306
  export * from './PostRevokeCertificate';
304
307
  export * from './PostRichTextAssetComplete';
@@ -350,6 +353,7 @@ export * from './PutUser';
350
353
  export * from './QuizContent';
351
354
  export * from './QuizContentAssignment';
352
355
  export * from './QuizContentSettings';
356
+ export * from './ResourceSessionEnvironment';
353
357
  export * from './ResourceType';
354
358
  export * from './RichTextAsset';
355
359
  export * from './RichTextDocument';