@easyedu/js-lsm-api 1.89.0 → 1.91.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 (110) hide show
  1. package/.openapi-generator/FILES +28 -0
  2. package/README.md +24 -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 +187 -0
  6. package/dist/apis/PlayerApi.js +401 -1
  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 +187 -0
  10. package/dist/esm/apis/PlayerApi.js +400 -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 +191 -0
  14. package/dist/esm/models/GetResourceSession.js +128 -0
  15. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +76 -0
  16. package/dist/esm/models/GetResourceSessionDiagnostics.js +69 -0
  17. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  18. package/dist/esm/models/GetResourceSessionDiagnosticsCourseContext.js +76 -0
  19. package/dist/esm/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  20. package/dist/esm/models/GetResourceSessionDiagnosticsResource.js +56 -0
  21. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  22. package/dist/esm/models/GetResourceSessionDiagnosticsScormSummary.js +59 -0
  23. package/dist/esm/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  24. package/dist/esm/models/GetResourceSessionDiagnosticsUser.js +47 -0
  25. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  26. package/dist/esm/models/GetResourceSessionDiagnosticsVersion.js +67 -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/GetResourceSessionScormApiLogs.d.ts +57 -0
  30. package/dist/esm/models/GetResourceSessionScormApiLogs.js +60 -0
  31. package/dist/esm/models/GetResourceSessionScormData.d.ts +77 -0
  32. package/dist/esm/models/GetResourceSessionScormData.js +66 -0
  33. package/dist/esm/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  34. package/dist/esm/models/GetResourceSessionScormDataActivity.js +45 -0
  35. package/dist/esm/models/PostResourceVersionSession.d.ts +32 -0
  36. package/dist/esm/models/PostResourceVersionSession.js +41 -0
  37. package/dist/esm/models/ResourceSessionEnvironment.d.ts +25 -0
  38. package/dist/esm/models/ResourceSessionEnvironment.js +43 -0
  39. package/dist/esm/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  40. package/dist/esm/models/ResourceSessionScormApiLogItem.js +73 -0
  41. package/dist/esm/models/index.d.ts +14 -0
  42. package/dist/esm/models/index.js +14 -0
  43. package/dist/models/GetCourseVersionItemSession.d.ts +7 -0
  44. package/dist/models/GetCourseVersionItemSession.js +5 -0
  45. package/dist/models/GetResourceSession.d.ts +191 -0
  46. package/dist/models/GetResourceSession.js +135 -0
  47. package/dist/models/GetResourceSessionDiagnostics.d.ts +76 -0
  48. package/dist/models/GetResourceSessionDiagnostics.js +76 -0
  49. package/dist/models/GetResourceSessionDiagnosticsCourseContext.d.ts +81 -0
  50. package/dist/models/GetResourceSessionDiagnosticsCourseContext.js +83 -0
  51. package/dist/models/GetResourceSessionDiagnosticsResource.d.ts +51 -0
  52. package/dist/models/GetResourceSessionDiagnosticsResource.js +63 -0
  53. package/dist/models/GetResourceSessionDiagnosticsScormSummary.d.ts +74 -0
  54. package/dist/models/GetResourceSessionDiagnosticsScormSummary.js +66 -0
  55. package/dist/models/GetResourceSessionDiagnosticsUser.d.ts +38 -0
  56. package/dist/models/GetResourceSessionDiagnosticsUser.js +54 -0
  57. package/dist/models/GetResourceSessionDiagnosticsVersion.d.ts +88 -0
  58. package/dist/models/GetResourceSessionDiagnosticsVersion.js +74 -0
  59. package/dist/models/GetResourceSessionList.d.ts +57 -0
  60. package/dist/models/GetResourceSessionList.js +67 -0
  61. package/dist/models/GetResourceSessionScormApiLogs.d.ts +57 -0
  62. package/dist/models/GetResourceSessionScormApiLogs.js +67 -0
  63. package/dist/models/GetResourceSessionScormData.d.ts +77 -0
  64. package/dist/models/GetResourceSessionScormData.js +73 -0
  65. package/dist/models/GetResourceSessionScormDataActivity.d.ts +44 -0
  66. package/dist/models/GetResourceSessionScormDataActivity.js +52 -0
  67. package/dist/models/PostResourceVersionSession.d.ts +32 -0
  68. package/dist/models/PostResourceVersionSession.js +48 -0
  69. package/dist/models/ResourceSessionEnvironment.d.ts +25 -0
  70. package/dist/models/ResourceSessionEnvironment.js +51 -0
  71. package/dist/models/ResourceSessionScormApiLogItem.d.ts +79 -0
  72. package/dist/models/ResourceSessionScormApiLogItem.js +81 -0
  73. package/dist/models/index.d.ts +14 -0
  74. package/dist/models/index.js +14 -0
  75. package/docs/ContentLibraryApi.md +73 -0
  76. package/docs/GetCourseVersionItemSession.md +2 -0
  77. package/docs/GetResourceSession.md +87 -0
  78. package/docs/GetResourceSessionDiagnostics.md +47 -0
  79. package/docs/GetResourceSessionDiagnosticsCourseContext.md +50 -0
  80. package/docs/GetResourceSessionDiagnosticsResource.md +40 -0
  81. package/docs/GetResourceSessionDiagnosticsScormSummary.md +48 -0
  82. package/docs/GetResourceSessionDiagnosticsUser.md +36 -0
  83. package/docs/GetResourceSessionDiagnosticsVersion.md +52 -0
  84. package/docs/GetResourceSessionList.md +43 -0
  85. package/docs/GetResourceSessionScormApiLogs.md +43 -0
  86. package/docs/GetResourceSessionScormData.md +49 -0
  87. package/docs/GetResourceSessionScormDataActivity.md +38 -0
  88. package/docs/PlayerApi.md +547 -0
  89. package/docs/PostResourceVersionSession.md +35 -0
  90. package/docs/ResourceSessionEnvironment.md +33 -0
  91. package/docs/ResourceSessionScormApiLogItem.md +47 -0
  92. package/package.json +1 -1
  93. package/src/apis/ContentLibraryApi.ts +72 -0
  94. package/src/apis/PlayerApi.ts +558 -0
  95. package/src/models/GetCourseVersionItemSession.ts +16 -0
  96. package/src/models/GetResourceSession.ts +313 -0
  97. package/src/models/GetResourceSessionDiagnostics.ts +161 -0
  98. package/src/models/GetResourceSessionDiagnosticsCourseContext.ts +148 -0
  99. package/src/models/GetResourceSessionDiagnosticsResource.ts +103 -0
  100. package/src/models/GetResourceSessionDiagnosticsScormSummary.ts +123 -0
  101. package/src/models/GetResourceSessionDiagnosticsUser.ts +75 -0
  102. package/src/models/GetResourceSessionDiagnosticsVersion.ts +141 -0
  103. package/src/models/GetResourceSessionList.ts +110 -0
  104. package/src/models/GetResourceSessionScormApiLogs.ts +110 -0
  105. package/src/models/GetResourceSessionScormData.ts +134 -0
  106. package/src/models/GetResourceSessionScormDataActivity.ts +81 -0
  107. package/src/models/PostResourceVersionSession.ts +65 -0
  108. package/src/models/ResourceSessionEnvironment.ts +53 -0
  109. package/src/models/ResourceSessionScormApiLogItem.ts +132 -0
  110. package/src/models/index.ts +14 -0
@@ -0,0 +1,51 @@
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 { ResourceType } from './ResourceType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetResourceSessionDiagnosticsResource
17
+ */
18
+ export interface GetResourceSessionDiagnosticsResource {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof GetResourceSessionDiagnosticsResource
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof GetResourceSessionDiagnosticsResource
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof GetResourceSessionDiagnosticsResource
35
+ */
36
+ description: string;
37
+ /**
38
+ *
39
+ * @type {ResourceType}
40
+ * @memberof GetResourceSessionDiagnosticsResource
41
+ */
42
+ resourceType: ResourceType;
43
+ }
44
+ /**
45
+ * Check if a given object implements the GetResourceSessionDiagnosticsResource interface.
46
+ */
47
+ export declare function instanceOfGetResourceSessionDiagnosticsResource(value: object): value is GetResourceSessionDiagnosticsResource;
48
+ export declare function GetResourceSessionDiagnosticsResourceFromJSON(json: any): GetResourceSessionDiagnosticsResource;
49
+ export declare function GetResourceSessionDiagnosticsResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsResource;
50
+ export declare function GetResourceSessionDiagnosticsResourceToJSON(json: any): GetResourceSessionDiagnosticsResource;
51
+ export declare function GetResourceSessionDiagnosticsResourceToJSONTyped(value?: GetResourceSessionDiagnosticsResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.instanceOfGetResourceSessionDiagnosticsResource = instanceOfGetResourceSessionDiagnosticsResource;
17
+ exports.GetResourceSessionDiagnosticsResourceFromJSON = GetResourceSessionDiagnosticsResourceFromJSON;
18
+ exports.GetResourceSessionDiagnosticsResourceFromJSONTyped = GetResourceSessionDiagnosticsResourceFromJSONTyped;
19
+ exports.GetResourceSessionDiagnosticsResourceToJSON = GetResourceSessionDiagnosticsResourceToJSON;
20
+ exports.GetResourceSessionDiagnosticsResourceToJSONTyped = GetResourceSessionDiagnosticsResourceToJSONTyped;
21
+ const ResourceType_1 = require("./ResourceType");
22
+ /**
23
+ * Check if a given object implements the GetResourceSessionDiagnosticsResource interface.
24
+ */
25
+ function instanceOfGetResourceSessionDiagnosticsResource(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('name' in value) || value['name'] === undefined)
29
+ return false;
30
+ if (!('description' in value) || value['description'] === undefined)
31
+ return false;
32
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function GetResourceSessionDiagnosticsResourceFromJSON(json) {
37
+ return GetResourceSessionDiagnosticsResourceFromJSONTyped(json, false);
38
+ }
39
+ function GetResourceSessionDiagnosticsResourceFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'name': json['name'],
46
+ 'description': json['description'],
47
+ 'resourceType': (0, ResourceType_1.ResourceTypeFromJSON)(json['resource_type']),
48
+ };
49
+ }
50
+ function GetResourceSessionDiagnosticsResourceToJSON(json) {
51
+ return GetResourceSessionDiagnosticsResourceToJSONTyped(json, false);
52
+ }
53
+ function GetResourceSessionDiagnosticsResourceToJSONTyped(value, ignoreDiscriminator = false) {
54
+ if (value == null) {
55
+ return value;
56
+ }
57
+ return {
58
+ 'id': value['id'],
59
+ 'name': value['name'],
60
+ 'description': value['description'],
61
+ 'resource_type': (0, ResourceType_1.ResourceTypeToJSON)(value['resourceType']),
62
+ };
63
+ }
@@ -0,0 +1,74 @@
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
+ *
14
+ * @export
15
+ * @interface GetResourceSessionDiagnosticsScormSummary
16
+ */
17
+ export interface GetResourceSessionDiagnosticsScormSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetResourceSessionDiagnosticsScormSummary
22
+ */
23
+ schemaVersion?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetResourceSessionDiagnosticsScormSummary
28
+ */
29
+ manifestIdentifier?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetResourceSessionDiagnosticsScormSummary
34
+ */
35
+ organizationIdentifier?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetResourceSessionDiagnosticsScormSummary
40
+ */
41
+ organizationTitle?: string | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GetResourceSessionDiagnosticsScormSummary
46
+ */
47
+ activityIdentifier?: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof GetResourceSessionDiagnosticsScormSummary
52
+ */
53
+ activityTitle?: string | null;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof GetResourceSessionDiagnosticsScormSummary
58
+ */
59
+ cmiElementCount: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof GetResourceSessionDiagnosticsScormSummary
64
+ */
65
+ apiLogCount: number;
66
+ }
67
+ /**
68
+ * Check if a given object implements the GetResourceSessionDiagnosticsScormSummary interface.
69
+ */
70
+ export declare function instanceOfGetResourceSessionDiagnosticsScormSummary(value: object): value is GetResourceSessionDiagnosticsScormSummary;
71
+ export declare function GetResourceSessionDiagnosticsScormSummaryFromJSON(json: any): GetResourceSessionDiagnosticsScormSummary;
72
+ export declare function GetResourceSessionDiagnosticsScormSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsScormSummary;
73
+ export declare function GetResourceSessionDiagnosticsScormSummaryToJSON(json: any): GetResourceSessionDiagnosticsScormSummary;
74
+ export declare function GetResourceSessionDiagnosticsScormSummaryToJSONTyped(value?: GetResourceSessionDiagnosticsScormSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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.instanceOfGetResourceSessionDiagnosticsScormSummary = instanceOfGetResourceSessionDiagnosticsScormSummary;
17
+ exports.GetResourceSessionDiagnosticsScormSummaryFromJSON = GetResourceSessionDiagnosticsScormSummaryFromJSON;
18
+ exports.GetResourceSessionDiagnosticsScormSummaryFromJSONTyped = GetResourceSessionDiagnosticsScormSummaryFromJSONTyped;
19
+ exports.GetResourceSessionDiagnosticsScormSummaryToJSON = GetResourceSessionDiagnosticsScormSummaryToJSON;
20
+ exports.GetResourceSessionDiagnosticsScormSummaryToJSONTyped = GetResourceSessionDiagnosticsScormSummaryToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetResourceSessionDiagnosticsScormSummary interface.
23
+ */
24
+ function instanceOfGetResourceSessionDiagnosticsScormSummary(value) {
25
+ if (!('cmiElementCount' in value) || value['cmiElementCount'] === undefined)
26
+ return false;
27
+ if (!('apiLogCount' in value) || value['apiLogCount'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetResourceSessionDiagnosticsScormSummaryFromJSON(json) {
32
+ return GetResourceSessionDiagnosticsScormSummaryFromJSONTyped(json, false);
33
+ }
34
+ function GetResourceSessionDiagnosticsScormSummaryFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'schemaVersion': json['schema_version'] == null ? undefined : json['schema_version'],
40
+ 'manifestIdentifier': json['manifest_identifier'] == null ? undefined : json['manifest_identifier'],
41
+ 'organizationIdentifier': json['organization_identifier'] == null ? undefined : json['organization_identifier'],
42
+ 'organizationTitle': json['organization_title'] == null ? undefined : json['organization_title'],
43
+ 'activityIdentifier': json['activity_identifier'] == null ? undefined : json['activity_identifier'],
44
+ 'activityTitle': json['activity_title'] == null ? undefined : json['activity_title'],
45
+ 'cmiElementCount': json['cmi_element_count'],
46
+ 'apiLogCount': json['api_log_count'],
47
+ };
48
+ }
49
+ function GetResourceSessionDiagnosticsScormSummaryToJSON(json) {
50
+ return GetResourceSessionDiagnosticsScormSummaryToJSONTyped(json, false);
51
+ }
52
+ function GetResourceSessionDiagnosticsScormSummaryToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'schema_version': value['schemaVersion'],
58
+ 'manifest_identifier': value['manifestIdentifier'],
59
+ 'organization_identifier': value['organizationIdentifier'],
60
+ 'organization_title': value['organizationTitle'],
61
+ 'activity_identifier': value['activityIdentifier'],
62
+ 'activity_title': value['activityTitle'],
63
+ 'cmi_element_count': value['cmiElementCount'],
64
+ 'api_log_count': value['apiLogCount'],
65
+ };
66
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface GetResourceSessionDiagnosticsUser
16
+ */
17
+ export interface GetResourceSessionDiagnosticsUser {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetResourceSessionDiagnosticsUser
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetResourceSessionDiagnosticsUser
28
+ */
29
+ name: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetResourceSessionDiagnosticsUser interface.
33
+ */
34
+ export declare function instanceOfGetResourceSessionDiagnosticsUser(value: object): value is GetResourceSessionDiagnosticsUser;
35
+ export declare function GetResourceSessionDiagnosticsUserFromJSON(json: any): GetResourceSessionDiagnosticsUser;
36
+ export declare function GetResourceSessionDiagnosticsUserFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsUser;
37
+ export declare function GetResourceSessionDiagnosticsUserToJSON(json: any): GetResourceSessionDiagnosticsUser;
38
+ export declare function GetResourceSessionDiagnosticsUserToJSONTyped(value?: GetResourceSessionDiagnosticsUser | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfGetResourceSessionDiagnosticsUser = instanceOfGetResourceSessionDiagnosticsUser;
17
+ exports.GetResourceSessionDiagnosticsUserFromJSON = GetResourceSessionDiagnosticsUserFromJSON;
18
+ exports.GetResourceSessionDiagnosticsUserFromJSONTyped = GetResourceSessionDiagnosticsUserFromJSONTyped;
19
+ exports.GetResourceSessionDiagnosticsUserToJSON = GetResourceSessionDiagnosticsUserToJSON;
20
+ exports.GetResourceSessionDiagnosticsUserToJSONTyped = GetResourceSessionDiagnosticsUserToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetResourceSessionDiagnosticsUser interface.
23
+ */
24
+ function instanceOfGetResourceSessionDiagnosticsUser(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetResourceSessionDiagnosticsUserFromJSON(json) {
32
+ return GetResourceSessionDiagnosticsUserFromJSONTyped(json, false);
33
+ }
34
+ function GetResourceSessionDiagnosticsUserFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ };
42
+ }
43
+ function GetResourceSessionDiagnosticsUserToJSON(json) {
44
+ return GetResourceSessionDiagnosticsUserToJSONTyped(json, false);
45
+ }
46
+ function GetResourceSessionDiagnosticsUserToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'name': value['name'],
53
+ };
54
+ }
@@ -0,0 +1,88 @@
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
+ *
14
+ * @export
15
+ * @interface GetResourceSessionDiagnosticsVersion
16
+ */
17
+ export interface GetResourceSessionDiagnosticsVersion {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetResourceSessionDiagnosticsVersion
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof GetResourceSessionDiagnosticsVersion
28
+ */
29
+ versionNumber: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetResourceSessionDiagnosticsVersion
34
+ */
35
+ status: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetResourceSessionDiagnosticsVersion
40
+ */
41
+ changeNotes?: string | null;
42
+ /**
43
+ *
44
+ * @type {{ [key: string]: any; }}
45
+ * @memberof GetResourceSessionDiagnosticsVersion
46
+ */
47
+ metadata: {
48
+ [key: string]: any;
49
+ };
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof GetResourceSessionDiagnosticsVersion
54
+ */
55
+ filename?: string | null;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof GetResourceSessionDiagnosticsVersion
60
+ */
61
+ mimeType?: string | null;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof GetResourceSessionDiagnosticsVersion
66
+ */
67
+ fileSizeBytes?: number | null;
68
+ /**
69
+ *
70
+ * @type {string}
71
+ * @memberof GetResourceSessionDiagnosticsVersion
72
+ */
73
+ checksumSha256?: string | null;
74
+ /**
75
+ *
76
+ * @type {string}
77
+ * @memberof GetResourceSessionDiagnosticsVersion
78
+ */
79
+ linkUrl?: string | null;
80
+ }
81
+ /**
82
+ * Check if a given object implements the GetResourceSessionDiagnosticsVersion interface.
83
+ */
84
+ export declare function instanceOfGetResourceSessionDiagnosticsVersion(value: object): value is GetResourceSessionDiagnosticsVersion;
85
+ export declare function GetResourceSessionDiagnosticsVersionFromJSON(json: any): GetResourceSessionDiagnosticsVersion;
86
+ export declare function GetResourceSessionDiagnosticsVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionDiagnosticsVersion;
87
+ export declare function GetResourceSessionDiagnosticsVersionToJSON(json: any): GetResourceSessionDiagnosticsVersion;
88
+ export declare function GetResourceSessionDiagnosticsVersionToJSONTyped(value?: GetResourceSessionDiagnosticsVersion | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.instanceOfGetResourceSessionDiagnosticsVersion = instanceOfGetResourceSessionDiagnosticsVersion;
17
+ exports.GetResourceSessionDiagnosticsVersionFromJSON = GetResourceSessionDiagnosticsVersionFromJSON;
18
+ exports.GetResourceSessionDiagnosticsVersionFromJSONTyped = GetResourceSessionDiagnosticsVersionFromJSONTyped;
19
+ exports.GetResourceSessionDiagnosticsVersionToJSON = GetResourceSessionDiagnosticsVersionToJSON;
20
+ exports.GetResourceSessionDiagnosticsVersionToJSONTyped = GetResourceSessionDiagnosticsVersionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetResourceSessionDiagnosticsVersion interface.
23
+ */
24
+ function instanceOfGetResourceSessionDiagnosticsVersion(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('versionNumber' in value) || value['versionNumber'] === undefined)
28
+ return false;
29
+ if (!('status' in value) || value['status'] === undefined)
30
+ return false;
31
+ if (!('metadata' in value) || value['metadata'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function GetResourceSessionDiagnosticsVersionFromJSON(json) {
36
+ return GetResourceSessionDiagnosticsVersionFromJSONTyped(json, false);
37
+ }
38
+ function GetResourceSessionDiagnosticsVersionFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'id': json['id'],
44
+ 'versionNumber': json['version_number'],
45
+ 'status': json['status'],
46
+ 'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
47
+ 'metadata': json['metadata'],
48
+ 'filename': json['filename'] == null ? undefined : json['filename'],
49
+ 'mimeType': json['mime_type'] == null ? undefined : json['mime_type'],
50
+ 'fileSizeBytes': json['file_size_bytes'] == null ? undefined : json['file_size_bytes'],
51
+ 'checksumSha256': json['checksum_sha256'] == null ? undefined : json['checksum_sha256'],
52
+ 'linkUrl': json['link_url'] == null ? undefined : json['link_url'],
53
+ };
54
+ }
55
+ function GetResourceSessionDiagnosticsVersionToJSON(json) {
56
+ return GetResourceSessionDiagnosticsVersionToJSONTyped(json, false);
57
+ }
58
+ function GetResourceSessionDiagnosticsVersionToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'version_number': value['versionNumber'],
65
+ 'status': value['status'],
66
+ 'change_notes': value['changeNotes'],
67
+ 'metadata': value['metadata'],
68
+ 'filename': value['filename'],
69
+ 'mime_type': value['mimeType'],
70
+ 'file_size_bytes': value['fileSizeBytes'],
71
+ 'checksum_sha256': value['checksumSha256'],
72
+ 'link_url': value['linkUrl'],
73
+ };
74
+ }
@@ -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
+ }