@easyedu/js-lsm-api 1.118.0 → 1.120.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 (182) hide show
  1. package/.openapi-generator/FILES +42 -0
  2. package/README.md +34 -2
  3. package/dist/apis/CourseApi.d.ts +55 -0
  4. package/dist/apis/CourseApi.js +148 -0
  5. package/dist/apis/DispatchApi.d.ts +121 -5
  6. package/dist/apis/DispatchApi.js +303 -8
  7. package/dist/apis/PlayerApi.d.ts +26 -6
  8. package/dist/apis/PlayerApi.js +57 -6
  9. package/dist/esm/apis/CourseApi.d.ts +55 -0
  10. package/dist/esm/apis/CourseApi.js +148 -0
  11. package/dist/esm/apis/DispatchApi.d.ts +121 -5
  12. package/dist/esm/apis/DispatchApi.js +303 -8
  13. package/dist/esm/apis/PlayerApi.d.ts +26 -6
  14. package/dist/esm/apis/PlayerApi.js +57 -6
  15. package/dist/esm/models/DispatchTokenResponse.d.ts +57 -0
  16. package/dist/esm/models/DispatchTokenResponse.js +61 -0
  17. package/dist/esm/models/GetCourseExport.d.ts +62 -0
  18. package/dist/esm/models/GetCourseExport.js +44 -0
  19. package/dist/esm/models/GetDispatchCourse.d.ts +82 -0
  20. package/dist/esm/models/GetDispatchCourse.js +77 -0
  21. package/dist/esm/models/GetDispatchRollup.d.ts +104 -0
  22. package/dist/esm/models/GetDispatchRollup.js +95 -0
  23. package/dist/esm/models/GetHostedScormRegistration.d.ts +80 -0
  24. package/dist/esm/models/GetHostedScormRegistration.js +71 -0
  25. package/dist/esm/models/GetHostedScormRegistrationList.d.ts +57 -0
  26. package/dist/esm/models/GetHostedScormRegistrationList.js +60 -0
  27. package/dist/esm/models/GetResourceSessionDiagnostics.d.ts +8 -0
  28. package/dist/esm/models/GetResourceSessionDiagnostics.js +2 -0
  29. package/dist/esm/models/HostedScormAccessPolicy.d.ts +50 -0
  30. package/dist/esm/models/HostedScormAccessPolicy.js +55 -0
  31. package/dist/esm/models/HostedScormOutlineEntry.d.ts +108 -0
  32. package/dist/esm/models/HostedScormOutlineEntry.js +97 -0
  33. package/dist/esm/models/HostedScormRollupPolicy.d.ts +69 -0
  34. package/dist/esm/models/HostedScormRollupPolicy.js +72 -0
  35. package/dist/esm/models/HostedScormScoreItem.d.ts +38 -0
  36. package/dist/esm/models/HostedScormScoreItem.js +47 -0
  37. package/dist/esm/models/PostCourseExport.d.ts +28 -0
  38. package/dist/esm/models/PostCourseExport.js +15 -0
  39. package/dist/esm/models/PostDispatchItemLaunch.d.ts +32 -0
  40. package/dist/esm/models/PostDispatchItemLaunch.js +41 -0
  41. package/dist/esm/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  42. package/dist/esm/models/PostDispatchItemLaunchResponse.js +66 -0
  43. package/dist/esm/models/PostDispatchLaunch.d.ts +50 -0
  44. package/dist/esm/models/PostDispatchLaunch.js +53 -0
  45. package/dist/esm/models/PostDispatchLaunchResponse.d.ts +70 -0
  46. package/dist/esm/models/PostDispatchLaunchResponse.js +70 -0
  47. package/dist/esm/models/PostDispatchTokenExchange.d.ts +32 -0
  48. package/dist/esm/models/PostDispatchTokenExchange.js +43 -0
  49. package/dist/esm/models/PutHostedScormStatus.d.ts +32 -0
  50. package/dist/esm/models/PutHostedScormStatus.js +43 -0
  51. package/dist/esm/models/ScormGetValueResponse.d.ts +12 -0
  52. package/dist/esm/models/ScormGetValueResponse.js +8 -0
  53. package/dist/esm/models/ScormNavigationDelivery.d.ts +64 -0
  54. package/dist/esm/models/ScormNavigationDelivery.js +66 -0
  55. package/dist/esm/models/ScormNavigationRequest.d.ts +55 -0
  56. package/dist/esm/models/ScormNavigationRequest.js +61 -0
  57. package/dist/esm/models/ScormNavigationResponse.d.ts +70 -0
  58. package/dist/esm/models/ScormNavigationResponse.js +67 -0
  59. package/dist/esm/models/ScormNavigationValidity.d.ts +92 -0
  60. package/dist/esm/models/ScormNavigationValidity.js +83 -0
  61. package/dist/esm/models/ScormRuntimeResponse.d.ts +44 -0
  62. package/dist/esm/models/ScormRuntimeResponse.js +51 -0
  63. package/dist/esm/models/ScormSetValueResponse.d.ts +12 -0
  64. package/dist/esm/models/ScormSetValueResponse.js +8 -0
  65. package/dist/esm/models/ScormTerminateResponse.d.ts +63 -0
  66. package/dist/esm/models/ScormTerminateResponse.js +62 -0
  67. package/dist/esm/models/index.d.ts +21 -0
  68. package/dist/esm/models/index.js +21 -0
  69. package/dist/models/DispatchTokenResponse.d.ts +57 -0
  70. package/dist/models/DispatchTokenResponse.js +69 -0
  71. package/dist/models/GetCourseExport.d.ts +62 -0
  72. package/dist/models/GetCourseExport.js +45 -1
  73. package/dist/models/GetDispatchCourse.d.ts +82 -0
  74. package/dist/models/GetDispatchCourse.js +84 -0
  75. package/dist/models/GetDispatchRollup.d.ts +104 -0
  76. package/dist/models/GetDispatchRollup.js +103 -0
  77. package/dist/models/GetHostedScormRegistration.d.ts +80 -0
  78. package/dist/models/GetHostedScormRegistration.js +78 -0
  79. package/dist/models/GetHostedScormRegistrationList.d.ts +57 -0
  80. package/dist/models/GetHostedScormRegistrationList.js +67 -0
  81. package/dist/models/GetResourceSessionDiagnostics.d.ts +8 -0
  82. package/dist/models/GetResourceSessionDiagnostics.js +2 -0
  83. package/dist/models/HostedScormAccessPolicy.d.ts +50 -0
  84. package/dist/models/HostedScormAccessPolicy.js +62 -0
  85. package/dist/models/HostedScormOutlineEntry.d.ts +108 -0
  86. package/dist/models/HostedScormOutlineEntry.js +105 -0
  87. package/dist/models/HostedScormRollupPolicy.d.ts +69 -0
  88. package/dist/models/HostedScormRollupPolicy.js +80 -0
  89. package/dist/models/HostedScormScoreItem.d.ts +38 -0
  90. package/dist/models/HostedScormScoreItem.js +54 -0
  91. package/dist/models/PostCourseExport.d.ts +28 -0
  92. package/dist/models/PostCourseExport.js +16 -1
  93. package/dist/models/PostDispatchItemLaunch.d.ts +32 -0
  94. package/dist/models/PostDispatchItemLaunch.js +48 -0
  95. package/dist/models/PostDispatchItemLaunchResponse.d.ts +64 -0
  96. package/dist/models/PostDispatchItemLaunchResponse.js +74 -0
  97. package/dist/models/PostDispatchLaunch.d.ts +50 -0
  98. package/dist/models/PostDispatchLaunch.js +60 -0
  99. package/dist/models/PostDispatchLaunchResponse.d.ts +70 -0
  100. package/dist/models/PostDispatchLaunchResponse.js +78 -0
  101. package/dist/models/PostDispatchTokenExchange.d.ts +32 -0
  102. package/dist/models/PostDispatchTokenExchange.js +50 -0
  103. package/dist/models/PutHostedScormStatus.d.ts +32 -0
  104. package/dist/models/PutHostedScormStatus.js +50 -0
  105. package/dist/models/ScormGetValueResponse.d.ts +12 -0
  106. package/dist/models/ScormGetValueResponse.js +8 -0
  107. package/dist/models/ScormNavigationDelivery.d.ts +64 -0
  108. package/dist/models/ScormNavigationDelivery.js +74 -0
  109. package/dist/models/ScormNavigationRequest.d.ts +55 -0
  110. package/dist/models/ScormNavigationRequest.js +69 -0
  111. package/dist/models/ScormNavigationResponse.d.ts +70 -0
  112. package/dist/models/ScormNavigationResponse.js +74 -0
  113. package/dist/models/ScormNavigationValidity.d.ts +92 -0
  114. package/dist/models/ScormNavigationValidity.js +90 -0
  115. package/dist/models/ScormRuntimeResponse.d.ts +44 -0
  116. package/dist/models/ScormRuntimeResponse.js +58 -0
  117. package/dist/models/ScormSetValueResponse.d.ts +12 -0
  118. package/dist/models/ScormSetValueResponse.js +8 -0
  119. package/dist/models/ScormTerminateResponse.d.ts +63 -0
  120. package/dist/models/ScormTerminateResponse.js +69 -0
  121. package/dist/models/index.d.ts +21 -0
  122. package/dist/models/index.js +21 -0
  123. package/docs/CourseApi.md +225 -0
  124. package/docs/DispatchApi.md +480 -9
  125. package/docs/DispatchTokenResponse.md +40 -0
  126. package/docs/GetCourseExport.md +14 -0
  127. package/docs/GetDispatchCourse.md +50 -0
  128. package/docs/GetDispatchRollup.md +52 -0
  129. package/docs/GetHostedScormRegistration.md +50 -0
  130. package/docs/GetHostedScormRegistrationList.md +42 -0
  131. package/docs/GetResourceSessionDiagnostics.md +2 -0
  132. package/docs/HostedScormAccessPolicy.md +41 -0
  133. package/docs/HostedScormOutlineEntry.md +54 -0
  134. package/docs/HostedScormRollupPolicy.md +41 -0
  135. package/docs/HostedScormScoreItem.md +36 -0
  136. package/docs/PlayerApi.md +80 -9
  137. package/docs/PostCourseExport.md +6 -0
  138. package/docs/PostDispatchItemLaunch.md +34 -0
  139. package/docs/PostDispatchItemLaunchResponse.md +42 -0
  140. package/docs/PostDispatchLaunch.md +40 -0
  141. package/docs/PostDispatchLaunchResponse.md +44 -0
  142. package/docs/PostDispatchTokenExchange.md +34 -0
  143. package/docs/PutHostedScormStatus.md +34 -0
  144. package/docs/ScormGetValueResponse.md +4 -0
  145. package/docs/ScormNavigationDelivery.md +43 -0
  146. package/docs/ScormNavigationRequest.md +37 -0
  147. package/docs/ScormNavigationResponse.md +47 -0
  148. package/docs/ScormNavigationValidity.md +55 -0
  149. package/docs/ScormRuntimeResponse.md +39 -0
  150. package/docs/ScormSetValueResponse.md +4 -0
  151. package/docs/ScormTerminateResponse.md +44 -0
  152. package/package.json +1 -1
  153. package/src/apis/CourseApi.ts +221 -0
  154. package/src/apis/DispatchApi.ts +426 -10
  155. package/src/apis/PlayerApi.ts +95 -12
  156. package/src/models/DispatchTokenResponse.ts +103 -0
  157. package/src/models/GetCourseExport.ts +97 -0
  158. package/src/models/GetDispatchCourse.ts +153 -0
  159. package/src/models/GetDispatchRollup.ts +169 -0
  160. package/src/models/GetHostedScormRegistration.ts +136 -0
  161. package/src/models/GetHostedScormRegistrationList.ts +110 -0
  162. package/src/models/GetResourceSessionDiagnostics.ts +8 -0
  163. package/src/models/HostedScormAccessPolicy.ts +93 -0
  164. package/src/models/HostedScormOutlineEntry.ts +176 -0
  165. package/src/models/HostedScormRollupPolicy.ts +123 -0
  166. package/src/models/HostedScormScoreItem.ts +75 -0
  167. package/src/models/PostCourseExport.ts +48 -0
  168. package/src/models/PostDispatchItemLaunch.ts +65 -0
  169. package/src/models/PostDispatchItemLaunchResponse.ts +113 -0
  170. package/src/models/PostDispatchLaunch.ts +92 -0
  171. package/src/models/PostDispatchLaunchResponse.ts +122 -0
  172. package/src/models/PostDispatchTokenExchange.ts +66 -0
  173. package/src/models/PutHostedScormStatus.ts +66 -0
  174. package/src/models/ScormGetValueResponse.ts +18 -0
  175. package/src/models/ScormNavigationDelivery.ts +113 -0
  176. package/src/models/ScormNavigationRequest.ts +94 -0
  177. package/src/models/ScormNavigationResponse.ts +134 -0
  178. package/src/models/ScormNavigationValidity.ts +156 -0
  179. package/src/models/ScormRuntimeResponse.ts +84 -0
  180. package/src/models/ScormSetValueResponse.ts +18 -0
  181. package/src/models/ScormTerminateResponse.ts +118 -0
  182. package/src/models/index.ts +21 -0
@@ -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 { GetHostedScormRegistration } from './GetHostedScormRegistration';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetHostedScormRegistrationList
17
+ */
18
+ export interface GetHostedScormRegistrationList {
19
+ /**
20
+ *
21
+ * @type {number}
22
+ * @memberof GetHostedScormRegistrationList
23
+ */
24
+ page: number;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof GetHostedScormRegistrationList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof GetHostedScormRegistrationList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof GetHostedScormRegistrationList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<GetHostedScormRegistration>}
46
+ * @memberof GetHostedScormRegistrationList
47
+ */
48
+ items: Array<GetHostedScormRegistration>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetHostedScormRegistrationList interface.
52
+ */
53
+ export declare function instanceOfGetHostedScormRegistrationList(value: object): value is GetHostedScormRegistrationList;
54
+ export declare function GetHostedScormRegistrationListFromJSON(json: any): GetHostedScormRegistrationList;
55
+ export declare function GetHostedScormRegistrationListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetHostedScormRegistrationList;
56
+ export declare function GetHostedScormRegistrationListToJSON(json: any): GetHostedScormRegistrationList;
57
+ export declare function GetHostedScormRegistrationListToJSONTyped(value?: GetHostedScormRegistrationList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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
+ import { GetHostedScormRegistrationFromJSON, GetHostedScormRegistrationToJSON, } from './GetHostedScormRegistration';
15
+ /**
16
+ * Check if a given object implements the GetHostedScormRegistrationList interface.
17
+ */
18
+ export function instanceOfGetHostedScormRegistrationList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetHostedScormRegistrationListFromJSON(json) {
32
+ return GetHostedScormRegistrationListFromJSONTyped(json, false);
33
+ }
34
+ export function GetHostedScormRegistrationListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['page_size'],
41
+ 'totalPages': json['total_pages'],
42
+ 'totalItems': json['total_items'],
43
+ 'items': (json['items'].map(GetHostedScormRegistrationFromJSON)),
44
+ };
45
+ }
46
+ export function GetHostedScormRegistrationListToJSON(json) {
47
+ return GetHostedScormRegistrationListToJSONTyped(json, false);
48
+ }
49
+ export function GetHostedScormRegistrationListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'page_size': value['pageSize'],
56
+ 'total_pages': value['totalPages'],
57
+ 'total_items': value['totalItems'],
58
+ 'items': (value['items'].map(GetHostedScormRegistrationToJSON)),
59
+ };
60
+ }
@@ -65,6 +65,14 @@ export interface GetResourceSessionDiagnostics {
65
65
  * @memberof GetResourceSessionDiagnostics
66
66
  */
67
67
  scormSummary?: GetResourceSessionDiagnosticsScormSummary | null;
68
+ /**
69
+ * Read-only sanitized SCORM 2004 sequencing diagnostics; never the mutable engine snapshot.
70
+ * @type {{ [key: string]: any; }}
71
+ * @memberof GetResourceSessionDiagnostics
72
+ */
73
+ sequencing?: {
74
+ [key: string]: any;
75
+ } | null;
68
76
  }
69
77
  /**
70
78
  * Check if a given object implements the GetResourceSessionDiagnostics interface.
@@ -48,6 +48,7 @@ export function GetResourceSessionDiagnosticsFromJSONTyped(json, ignoreDiscrimin
48
48
  'version': GetResourceSessionDiagnosticsVersionFromJSON(json['version']),
49
49
  'courseContext': json['course_context'] == null ? undefined : GetResourceSessionDiagnosticsCourseContextFromJSON(json['course_context']),
50
50
  'scormSummary': json['scorm_summary'] == null ? undefined : GetResourceSessionDiagnosticsScormSummaryFromJSON(json['scorm_summary']),
51
+ 'sequencing': json['sequencing'] == null ? undefined : json['sequencing'],
51
52
  };
52
53
  }
53
54
  export function GetResourceSessionDiagnosticsToJSON(json) {
@@ -65,5 +66,6 @@ export function GetResourceSessionDiagnosticsToJSONTyped(value, ignoreDiscrimina
65
66
  'version': GetResourceSessionDiagnosticsVersionToJSON(value['version']),
66
67
  'course_context': GetResourceSessionDiagnosticsCourseContextToJSON(value['courseContext']),
67
68
  'scorm_summary': GetResourceSessionDiagnosticsScormSummaryToJSON(value['scormSummary']),
69
+ 'sequencing': value['sequencing'],
68
70
  };
69
71
  }
@@ -0,0 +1,50 @@
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
+ * Mutable reseller access controls for a hosted SCORM export.
14
+ * @export
15
+ * @interface HostedScormAccessPolicy
16
+ */
17
+ export interface HostedScormAccessPolicy {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof HostedScormAccessPolicy
22
+ */
23
+ learnerCap: number | null;
24
+ /**
25
+ * Optional Unix timestamp before which launches are rejected.
26
+ * @type {number}
27
+ * @memberof HostedScormAccessPolicy
28
+ */
29
+ validFrom: number | null;
30
+ /**
31
+ * Optional Unix timestamp at or after which launches are rejected.
32
+ * @type {number}
33
+ * @memberof HostedScormAccessPolicy
34
+ */
35
+ validUntil: number | null;
36
+ /**
37
+ * Exact HTTP(S) origins. Empty permits any origin.
38
+ * @type {Array<string>}
39
+ * @memberof HostedScormAccessPolicy
40
+ */
41
+ allowedLmsOrigins: Array<string>;
42
+ }
43
+ /**
44
+ * Check if a given object implements the HostedScormAccessPolicy interface.
45
+ */
46
+ export declare function instanceOfHostedScormAccessPolicy(value: object): value is HostedScormAccessPolicy;
47
+ export declare function HostedScormAccessPolicyFromJSON(json: any): HostedScormAccessPolicy;
48
+ export declare function HostedScormAccessPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostedScormAccessPolicy;
49
+ export declare function HostedScormAccessPolicyToJSON(json: any): HostedScormAccessPolicy;
50
+ export declare function HostedScormAccessPolicyToJSONTyped(value?: HostedScormAccessPolicy | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ * Check if a given object implements the HostedScormAccessPolicy interface.
16
+ */
17
+ export function instanceOfHostedScormAccessPolicy(value) {
18
+ if (!('learnerCap' in value) || value['learnerCap'] === undefined)
19
+ return false;
20
+ if (!('validFrom' in value) || value['validFrom'] === undefined)
21
+ return false;
22
+ if (!('validUntil' in value) || value['validUntil'] === undefined)
23
+ return false;
24
+ if (!('allowedLmsOrigins' in value) || value['allowedLmsOrigins'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function HostedScormAccessPolicyFromJSON(json) {
29
+ return HostedScormAccessPolicyFromJSONTyped(json, false);
30
+ }
31
+ export function HostedScormAccessPolicyFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'learnerCap': json['learner_cap'],
37
+ 'validFrom': json['valid_from'],
38
+ 'validUntil': json['valid_until'],
39
+ 'allowedLmsOrigins': json['allowed_lms_origins'],
40
+ };
41
+ }
42
+ export function HostedScormAccessPolicyToJSON(json) {
43
+ return HostedScormAccessPolicyToJSONTyped(json, false);
44
+ }
45
+ export function HostedScormAccessPolicyToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'learner_cap': value['learnerCap'],
51
+ 'valid_from': value['validFrom'],
52
+ 'valid_until': value['validUntil'],
53
+ 'allowed_lms_origins': value['allowedLmsOrigins'],
54
+ };
55
+ }
@@ -0,0 +1,108 @@
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 HostedScormOutlineEntry
16
+ */
17
+ export interface HostedScormOutlineEntry {
18
+ /**
19
+ *
20
+ * @type {HostedScormOutlineEntryEntryTypeEnum}
21
+ * @memberof HostedScormOutlineEntry
22
+ */
23
+ entryType: HostedScormOutlineEntryEntryTypeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof HostedScormOutlineEntry
28
+ */
29
+ id: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof HostedScormOutlineEntry
34
+ */
35
+ parentSectionId: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof HostedScormOutlineEntry
40
+ */
41
+ title: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof HostedScormOutlineEntry
46
+ */
47
+ displayOrder: number;
48
+ /**
49
+ *
50
+ * @type {HostedScormOutlineEntryKindEnum}
51
+ * @memberof HostedScormOutlineEntry
52
+ */
53
+ kind: HostedScormOutlineEntryKindEnum | null;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof HostedScormOutlineEntry
58
+ */
59
+ required: boolean;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof HostedScormOutlineEntry
64
+ */
65
+ completed: boolean;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof HostedScormOutlineEntry
70
+ */
71
+ locked: boolean;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof HostedScormOutlineEntry
76
+ */
77
+ attemptNumber: number | null;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof HostedScormOutlineEntry
82
+ */
83
+ maxAttempts: number | null;
84
+ }
85
+ /**
86
+ * @export
87
+ */
88
+ export declare const HostedScormOutlineEntryEntryTypeEnum: {
89
+ readonly Section: "SECTION";
90
+ readonly Item: "ITEM";
91
+ };
92
+ export type HostedScormOutlineEntryEntryTypeEnum = typeof HostedScormOutlineEntryEntryTypeEnum[keyof typeof HostedScormOutlineEntryEntryTypeEnum];
93
+ /**
94
+ * @export
95
+ */
96
+ export declare const HostedScormOutlineEntryKindEnum: {
97
+ readonly Resource: "RESOURCE";
98
+ readonly Quiz: "QUIZ";
99
+ };
100
+ export type HostedScormOutlineEntryKindEnum = typeof HostedScormOutlineEntryKindEnum[keyof typeof HostedScormOutlineEntryKindEnum];
101
+ /**
102
+ * Check if a given object implements the HostedScormOutlineEntry interface.
103
+ */
104
+ export declare function instanceOfHostedScormOutlineEntry(value: object): value is HostedScormOutlineEntry;
105
+ export declare function HostedScormOutlineEntryFromJSON(json: any): HostedScormOutlineEntry;
106
+ export declare function HostedScormOutlineEntryFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostedScormOutlineEntry;
107
+ export declare function HostedScormOutlineEntryToJSON(json: any): HostedScormOutlineEntry;
108
+ export declare function HostedScormOutlineEntryToJSONTyped(value?: HostedScormOutlineEntry | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,97 @@
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
+ * @export
16
+ */
17
+ export const HostedScormOutlineEntryEntryTypeEnum = {
18
+ Section: 'SECTION',
19
+ Item: 'ITEM'
20
+ };
21
+ /**
22
+ * @export
23
+ */
24
+ export const HostedScormOutlineEntryKindEnum = {
25
+ Resource: 'RESOURCE',
26
+ Quiz: 'QUIZ'
27
+ };
28
+ /**
29
+ * Check if a given object implements the HostedScormOutlineEntry interface.
30
+ */
31
+ export function instanceOfHostedScormOutlineEntry(value) {
32
+ if (!('entryType' in value) || value['entryType'] === undefined)
33
+ return false;
34
+ if (!('id' in value) || value['id'] === undefined)
35
+ return false;
36
+ if (!('parentSectionId' in value) || value['parentSectionId'] === undefined)
37
+ return false;
38
+ if (!('title' in value) || value['title'] === undefined)
39
+ return false;
40
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
41
+ return false;
42
+ if (!('kind' in value) || value['kind'] === undefined)
43
+ return false;
44
+ if (!('required' in value) || value['required'] === undefined)
45
+ return false;
46
+ if (!('completed' in value) || value['completed'] === undefined)
47
+ return false;
48
+ if (!('locked' in value) || value['locked'] === undefined)
49
+ return false;
50
+ if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
51
+ return false;
52
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
53
+ return false;
54
+ return true;
55
+ }
56
+ export function HostedScormOutlineEntryFromJSON(json) {
57
+ return HostedScormOutlineEntryFromJSONTyped(json, false);
58
+ }
59
+ export function HostedScormOutlineEntryFromJSONTyped(json, ignoreDiscriminator) {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+ 'entryType': json['entry_type'],
65
+ 'id': json['id'],
66
+ 'parentSectionId': json['parent_section_id'],
67
+ 'title': json['title'],
68
+ 'displayOrder': json['display_order'],
69
+ 'kind': json['kind'],
70
+ 'required': json['required'],
71
+ 'completed': json['completed'],
72
+ 'locked': json['locked'],
73
+ 'attemptNumber': json['attempt_number'],
74
+ 'maxAttempts': json['max_attempts'],
75
+ };
76
+ }
77
+ export function HostedScormOutlineEntryToJSON(json) {
78
+ return HostedScormOutlineEntryToJSONTyped(json, false);
79
+ }
80
+ export function HostedScormOutlineEntryToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'entry_type': value['entryType'],
86
+ 'id': value['id'],
87
+ 'parent_section_id': value['parentSectionId'],
88
+ 'title': value['title'],
89
+ 'display_order': value['displayOrder'],
90
+ 'kind': value['kind'],
91
+ 'required': value['required'],
92
+ 'completed': value['completed'],
93
+ 'locked': value['locked'],
94
+ 'attempt_number': value['attemptNumber'],
95
+ 'max_attempts': value['maxAttempts'],
96
+ };
97
+ }
@@ -0,0 +1,69 @@
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 { HostedScormScoreItem } from './HostedScormScoreItem';
13
+ /**
14
+ * Immutable course aggregate rules captured by a hosted SCORM export.
15
+ * @export
16
+ * @interface HostedScormRollupPolicy
17
+ */
18
+ export interface HostedScormRollupPolicy {
19
+ /**
20
+ *
21
+ * @type {HostedScormRollupPolicySuccessRuleEnum}
22
+ * @memberof HostedScormRollupPolicy
23
+ */
24
+ successRule: HostedScormRollupPolicySuccessRuleEnum;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof HostedScormRollupPolicy
29
+ */
30
+ passingScorePercent: number | null;
31
+ /**
32
+ *
33
+ * @type {HostedScormRollupPolicyScoreAggregationEnum}
34
+ * @memberof HostedScormRollupPolicy
35
+ */
36
+ scoreAggregation: HostedScormRollupPolicyScoreAggregationEnum;
37
+ /**
38
+ * Empty selects every score-producing resource or quiz in the exported tree.
39
+ * @type {Array<HostedScormScoreItem>}
40
+ * @memberof HostedScormRollupPolicy
41
+ */
42
+ scoredItems: Array<HostedScormScoreItem>;
43
+ }
44
+ /**
45
+ * @export
46
+ */
47
+ export declare const HostedScormRollupPolicySuccessRuleEnum: {
48
+ readonly CompletionOnly: "COMPLETION_ONLY";
49
+ readonly AllRequiredGradedPass: "ALL_REQUIRED_GRADED_PASS";
50
+ readonly ScoreThreshold: "SCORE_THRESHOLD";
51
+ readonly AllRequiredGradedPassAndScoreThreshold: "ALL_REQUIRED_GRADED_PASS_AND_SCORE_THRESHOLD";
52
+ };
53
+ export type HostedScormRollupPolicySuccessRuleEnum = typeof HostedScormRollupPolicySuccessRuleEnum[keyof typeof HostedScormRollupPolicySuccessRuleEnum];
54
+ /**
55
+ * @export
56
+ */
57
+ export declare const HostedScormRollupPolicyScoreAggregationEnum: {
58
+ readonly Equal: "EQUAL";
59
+ readonly Weighted: "WEIGHTED";
60
+ };
61
+ export type HostedScormRollupPolicyScoreAggregationEnum = typeof HostedScormRollupPolicyScoreAggregationEnum[keyof typeof HostedScormRollupPolicyScoreAggregationEnum];
62
+ /**
63
+ * Check if a given object implements the HostedScormRollupPolicy interface.
64
+ */
65
+ export declare function instanceOfHostedScormRollupPolicy(value: object): value is HostedScormRollupPolicy;
66
+ export declare function HostedScormRollupPolicyFromJSON(json: any): HostedScormRollupPolicy;
67
+ export declare function HostedScormRollupPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostedScormRollupPolicy;
68
+ export declare function HostedScormRollupPolicyToJSON(json: any): HostedScormRollupPolicy;
69
+ export declare function HostedScormRollupPolicyToJSONTyped(value?: HostedScormRollupPolicy | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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
+ import { HostedScormScoreItemFromJSON, HostedScormScoreItemToJSON, } from './HostedScormScoreItem';
15
+ /**
16
+ * @export
17
+ */
18
+ export const HostedScormRollupPolicySuccessRuleEnum = {
19
+ CompletionOnly: 'COMPLETION_ONLY',
20
+ AllRequiredGradedPass: 'ALL_REQUIRED_GRADED_PASS',
21
+ ScoreThreshold: 'SCORE_THRESHOLD',
22
+ AllRequiredGradedPassAndScoreThreshold: 'ALL_REQUIRED_GRADED_PASS_AND_SCORE_THRESHOLD'
23
+ };
24
+ /**
25
+ * @export
26
+ */
27
+ export const HostedScormRollupPolicyScoreAggregationEnum = {
28
+ Equal: 'EQUAL',
29
+ Weighted: 'WEIGHTED'
30
+ };
31
+ /**
32
+ * Check if a given object implements the HostedScormRollupPolicy interface.
33
+ */
34
+ export function instanceOfHostedScormRollupPolicy(value) {
35
+ if (!('successRule' in value) || value['successRule'] === undefined)
36
+ return false;
37
+ if (!('passingScorePercent' in value) || value['passingScorePercent'] === undefined)
38
+ return false;
39
+ if (!('scoreAggregation' in value) || value['scoreAggregation'] === undefined)
40
+ return false;
41
+ if (!('scoredItems' in value) || value['scoredItems'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ export function HostedScormRollupPolicyFromJSON(json) {
46
+ return HostedScormRollupPolicyFromJSONTyped(json, false);
47
+ }
48
+ export function HostedScormRollupPolicyFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'successRule': json['success_rule'],
54
+ 'passingScorePercent': json['passing_score_percent'],
55
+ 'scoreAggregation': json['score_aggregation'],
56
+ 'scoredItems': (json['scored_items'].map(HostedScormScoreItemFromJSON)),
57
+ };
58
+ }
59
+ export function HostedScormRollupPolicyToJSON(json) {
60
+ return HostedScormRollupPolicyToJSONTyped(json, false);
61
+ }
62
+ export function HostedScormRollupPolicyToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'success_rule': value['successRule'],
68
+ 'passing_score_percent': value['passingScorePercent'],
69
+ 'score_aggregation': value['scoreAggregation'],
70
+ 'scored_items': (value['scoredItems'].map(HostedScormScoreItemToJSON)),
71
+ };
72
+ }
@@ -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 HostedScormScoreItem
16
+ */
17
+ export interface HostedScormScoreItem {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof HostedScormScoreItem
22
+ */
23
+ itemId: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof HostedScormScoreItem
28
+ */
29
+ weight: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the HostedScormScoreItem interface.
33
+ */
34
+ export declare function instanceOfHostedScormScoreItem(value: object): value is HostedScormScoreItem;
35
+ export declare function HostedScormScoreItemFromJSON(json: any): HostedScormScoreItem;
36
+ export declare function HostedScormScoreItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): HostedScormScoreItem;
37
+ export declare function HostedScormScoreItemToJSON(json: any): HostedScormScoreItem;
38
+ export declare function HostedScormScoreItemToJSONTyped(value?: HostedScormScoreItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,47 @@
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
+ * Check if a given object implements the HostedScormScoreItem interface.
16
+ */
17
+ export function instanceOfHostedScormScoreItem(value) {
18
+ if (!('itemId' in value) || value['itemId'] === undefined)
19
+ return false;
20
+ if (!('weight' in value) || value['weight'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function HostedScormScoreItemFromJSON(json) {
25
+ return HostedScormScoreItemFromJSONTyped(json, false);
26
+ }
27
+ export function HostedScormScoreItemFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'itemId': json['item_id'],
33
+ 'weight': json['weight'],
34
+ };
35
+ }
36
+ export function HostedScormScoreItemToJSON(json) {
37
+ return HostedScormScoreItemToJSONTyped(json, false);
38
+ }
39
+ export function HostedScormScoreItemToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'item_id': value['itemId'],
45
+ 'weight': value['weight'],
46
+ };
47
+ }