@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,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.instanceOfGetHostedScormRegistrationList = instanceOfGetHostedScormRegistrationList;
17
+ exports.GetHostedScormRegistrationListFromJSON = GetHostedScormRegistrationListFromJSON;
18
+ exports.GetHostedScormRegistrationListFromJSONTyped = GetHostedScormRegistrationListFromJSONTyped;
19
+ exports.GetHostedScormRegistrationListToJSON = GetHostedScormRegistrationListToJSON;
20
+ exports.GetHostedScormRegistrationListToJSONTyped = GetHostedScormRegistrationListToJSONTyped;
21
+ const GetHostedScormRegistration_1 = require("./GetHostedScormRegistration");
22
+ /**
23
+ * Check if a given object implements the GetHostedScormRegistrationList interface.
24
+ */
25
+ function instanceOfGetHostedScormRegistrationList(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 GetHostedScormRegistrationListFromJSON(json) {
39
+ return GetHostedScormRegistrationListFromJSONTyped(json, false);
40
+ }
41
+ function GetHostedScormRegistrationListFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'page': json['page'],
47
+ 'pageSize': json['page_size'],
48
+ 'totalPages': json['total_pages'],
49
+ 'totalItems': json['total_items'],
50
+ 'items': (json['items'].map(GetHostedScormRegistration_1.GetHostedScormRegistrationFromJSON)),
51
+ };
52
+ }
53
+ function GetHostedScormRegistrationListToJSON(json) {
54
+ return GetHostedScormRegistrationListToJSONTyped(json, false);
55
+ }
56
+ function GetHostedScormRegistrationListToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'page': value['page'],
62
+ 'page_size': value['pageSize'],
63
+ 'total_pages': value['totalPages'],
64
+ 'total_items': value['totalItems'],
65
+ 'items': (value['items'].map(GetHostedScormRegistration_1.GetHostedScormRegistrationToJSON)),
66
+ };
67
+ }
@@ -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.
@@ -55,6 +55,7 @@ function GetResourceSessionDiagnosticsFromJSONTyped(json, ignoreDiscriminator) {
55
55
  'version': (0, GetResourceSessionDiagnosticsVersion_1.GetResourceSessionDiagnosticsVersionFromJSON)(json['version']),
56
56
  'courseContext': json['course_context'] == null ? undefined : (0, GetResourceSessionDiagnosticsCourseContext_1.GetResourceSessionDiagnosticsCourseContextFromJSON)(json['course_context']),
57
57
  'scormSummary': json['scorm_summary'] == null ? undefined : (0, GetResourceSessionDiagnosticsScormSummary_1.GetResourceSessionDiagnosticsScormSummaryFromJSON)(json['scorm_summary']),
58
+ 'sequencing': json['sequencing'] == null ? undefined : json['sequencing'],
58
59
  };
59
60
  }
60
61
  function GetResourceSessionDiagnosticsToJSON(json) {
@@ -72,5 +73,6 @@ function GetResourceSessionDiagnosticsToJSONTyped(value, ignoreDiscriminator = f
72
73
  'version': (0, GetResourceSessionDiagnosticsVersion_1.GetResourceSessionDiagnosticsVersionToJSON)(value['version']),
73
74
  'course_context': (0, GetResourceSessionDiagnosticsCourseContext_1.GetResourceSessionDiagnosticsCourseContextToJSON)(value['courseContext']),
74
75
  'scorm_summary': (0, GetResourceSessionDiagnosticsScormSummary_1.GetResourceSessionDiagnosticsScormSummaryToJSON)(value['scormSummary']),
76
+ 'sequencing': value['sequencing'],
75
77
  };
76
78
  }
@@ -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,62 @@
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.instanceOfHostedScormAccessPolicy = instanceOfHostedScormAccessPolicy;
17
+ exports.HostedScormAccessPolicyFromJSON = HostedScormAccessPolicyFromJSON;
18
+ exports.HostedScormAccessPolicyFromJSONTyped = HostedScormAccessPolicyFromJSONTyped;
19
+ exports.HostedScormAccessPolicyToJSON = HostedScormAccessPolicyToJSON;
20
+ exports.HostedScormAccessPolicyToJSONTyped = HostedScormAccessPolicyToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HostedScormAccessPolicy interface.
23
+ */
24
+ function instanceOfHostedScormAccessPolicy(value) {
25
+ if (!('learnerCap' in value) || value['learnerCap'] === undefined)
26
+ return false;
27
+ if (!('validFrom' in value) || value['validFrom'] === undefined)
28
+ return false;
29
+ if (!('validUntil' in value) || value['validUntil'] === undefined)
30
+ return false;
31
+ if (!('allowedLmsOrigins' in value) || value['allowedLmsOrigins'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function HostedScormAccessPolicyFromJSON(json) {
36
+ return HostedScormAccessPolicyFromJSONTyped(json, false);
37
+ }
38
+ function HostedScormAccessPolicyFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'learnerCap': json['learner_cap'],
44
+ 'validFrom': json['valid_from'],
45
+ 'validUntil': json['valid_until'],
46
+ 'allowedLmsOrigins': json['allowed_lms_origins'],
47
+ };
48
+ }
49
+ function HostedScormAccessPolicyToJSON(json) {
50
+ return HostedScormAccessPolicyToJSONTyped(json, false);
51
+ }
52
+ function HostedScormAccessPolicyToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'learner_cap': value['learnerCap'],
58
+ 'valid_from': value['validFrom'],
59
+ 'valid_until': value['validUntil'],
60
+ 'allowed_lms_origins': value['allowedLmsOrigins'],
61
+ };
62
+ }
@@ -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,105 @@
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.HostedScormOutlineEntryKindEnum = exports.HostedScormOutlineEntryEntryTypeEnum = void 0;
17
+ exports.instanceOfHostedScormOutlineEntry = instanceOfHostedScormOutlineEntry;
18
+ exports.HostedScormOutlineEntryFromJSON = HostedScormOutlineEntryFromJSON;
19
+ exports.HostedScormOutlineEntryFromJSONTyped = HostedScormOutlineEntryFromJSONTyped;
20
+ exports.HostedScormOutlineEntryToJSON = HostedScormOutlineEntryToJSON;
21
+ exports.HostedScormOutlineEntryToJSONTyped = HostedScormOutlineEntryToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.HostedScormOutlineEntryEntryTypeEnum = {
26
+ Section: 'SECTION',
27
+ Item: 'ITEM'
28
+ };
29
+ /**
30
+ * @export
31
+ */
32
+ exports.HostedScormOutlineEntryKindEnum = {
33
+ Resource: 'RESOURCE',
34
+ Quiz: 'QUIZ'
35
+ };
36
+ /**
37
+ * Check if a given object implements the HostedScormOutlineEntry interface.
38
+ */
39
+ function instanceOfHostedScormOutlineEntry(value) {
40
+ if (!('entryType' in value) || value['entryType'] === undefined)
41
+ return false;
42
+ if (!('id' in value) || value['id'] === undefined)
43
+ return false;
44
+ if (!('parentSectionId' in value) || value['parentSectionId'] === undefined)
45
+ return false;
46
+ if (!('title' in value) || value['title'] === undefined)
47
+ return false;
48
+ if (!('displayOrder' in value) || value['displayOrder'] === undefined)
49
+ return false;
50
+ if (!('kind' in value) || value['kind'] === undefined)
51
+ return false;
52
+ if (!('required' in value) || value['required'] === undefined)
53
+ return false;
54
+ if (!('completed' in value) || value['completed'] === undefined)
55
+ return false;
56
+ if (!('locked' in value) || value['locked'] === undefined)
57
+ return false;
58
+ if (!('attemptNumber' in value) || value['attemptNumber'] === undefined)
59
+ return false;
60
+ if (!('maxAttempts' in value) || value['maxAttempts'] === undefined)
61
+ return false;
62
+ return true;
63
+ }
64
+ function HostedScormOutlineEntryFromJSON(json) {
65
+ return HostedScormOutlineEntryFromJSONTyped(json, false);
66
+ }
67
+ function HostedScormOutlineEntryFromJSONTyped(json, ignoreDiscriminator) {
68
+ if (json == null) {
69
+ return json;
70
+ }
71
+ return {
72
+ 'entryType': json['entry_type'],
73
+ 'id': json['id'],
74
+ 'parentSectionId': json['parent_section_id'],
75
+ 'title': json['title'],
76
+ 'displayOrder': json['display_order'],
77
+ 'kind': json['kind'],
78
+ 'required': json['required'],
79
+ 'completed': json['completed'],
80
+ 'locked': json['locked'],
81
+ 'attemptNumber': json['attempt_number'],
82
+ 'maxAttempts': json['max_attempts'],
83
+ };
84
+ }
85
+ function HostedScormOutlineEntryToJSON(json) {
86
+ return HostedScormOutlineEntryToJSONTyped(json, false);
87
+ }
88
+ function HostedScormOutlineEntryToJSONTyped(value, ignoreDiscriminator = false) {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+ return {
93
+ 'entry_type': value['entryType'],
94
+ 'id': value['id'],
95
+ 'parent_section_id': value['parentSectionId'],
96
+ 'title': value['title'],
97
+ 'display_order': value['displayOrder'],
98
+ 'kind': value['kind'],
99
+ 'required': value['required'],
100
+ 'completed': value['completed'],
101
+ 'locked': value['locked'],
102
+ 'attempt_number': value['attemptNumber'],
103
+ 'max_attempts': value['maxAttempts'],
104
+ };
105
+ }
@@ -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,80 @@
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.HostedScormRollupPolicyScoreAggregationEnum = exports.HostedScormRollupPolicySuccessRuleEnum = void 0;
17
+ exports.instanceOfHostedScormRollupPolicy = instanceOfHostedScormRollupPolicy;
18
+ exports.HostedScormRollupPolicyFromJSON = HostedScormRollupPolicyFromJSON;
19
+ exports.HostedScormRollupPolicyFromJSONTyped = HostedScormRollupPolicyFromJSONTyped;
20
+ exports.HostedScormRollupPolicyToJSON = HostedScormRollupPolicyToJSON;
21
+ exports.HostedScormRollupPolicyToJSONTyped = HostedScormRollupPolicyToJSONTyped;
22
+ const HostedScormScoreItem_1 = require("./HostedScormScoreItem");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.HostedScormRollupPolicySuccessRuleEnum = {
27
+ CompletionOnly: 'COMPLETION_ONLY',
28
+ AllRequiredGradedPass: 'ALL_REQUIRED_GRADED_PASS',
29
+ ScoreThreshold: 'SCORE_THRESHOLD',
30
+ AllRequiredGradedPassAndScoreThreshold: 'ALL_REQUIRED_GRADED_PASS_AND_SCORE_THRESHOLD'
31
+ };
32
+ /**
33
+ * @export
34
+ */
35
+ exports.HostedScormRollupPolicyScoreAggregationEnum = {
36
+ Equal: 'EQUAL',
37
+ Weighted: 'WEIGHTED'
38
+ };
39
+ /**
40
+ * Check if a given object implements the HostedScormRollupPolicy interface.
41
+ */
42
+ function instanceOfHostedScormRollupPolicy(value) {
43
+ if (!('successRule' in value) || value['successRule'] === undefined)
44
+ return false;
45
+ if (!('passingScorePercent' in value) || value['passingScorePercent'] === undefined)
46
+ return false;
47
+ if (!('scoreAggregation' in value) || value['scoreAggregation'] === undefined)
48
+ return false;
49
+ if (!('scoredItems' in value) || value['scoredItems'] === undefined)
50
+ return false;
51
+ return true;
52
+ }
53
+ function HostedScormRollupPolicyFromJSON(json) {
54
+ return HostedScormRollupPolicyFromJSONTyped(json, false);
55
+ }
56
+ function HostedScormRollupPolicyFromJSONTyped(json, ignoreDiscriminator) {
57
+ if (json == null) {
58
+ return json;
59
+ }
60
+ return {
61
+ 'successRule': json['success_rule'],
62
+ 'passingScorePercent': json['passing_score_percent'],
63
+ 'scoreAggregation': json['score_aggregation'],
64
+ 'scoredItems': (json['scored_items'].map(HostedScormScoreItem_1.HostedScormScoreItemFromJSON)),
65
+ };
66
+ }
67
+ function HostedScormRollupPolicyToJSON(json) {
68
+ return HostedScormRollupPolicyToJSONTyped(json, false);
69
+ }
70
+ function HostedScormRollupPolicyToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'success_rule': value['successRule'],
76
+ 'passing_score_percent': value['passingScorePercent'],
77
+ 'score_aggregation': value['scoreAggregation'],
78
+ 'scored_items': (value['scoredItems'].map(HostedScormScoreItem_1.HostedScormScoreItemToJSON)),
79
+ };
80
+ }
@@ -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,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.instanceOfHostedScormScoreItem = instanceOfHostedScormScoreItem;
17
+ exports.HostedScormScoreItemFromJSON = HostedScormScoreItemFromJSON;
18
+ exports.HostedScormScoreItemFromJSONTyped = HostedScormScoreItemFromJSONTyped;
19
+ exports.HostedScormScoreItemToJSON = HostedScormScoreItemToJSON;
20
+ exports.HostedScormScoreItemToJSONTyped = HostedScormScoreItemToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the HostedScormScoreItem interface.
23
+ */
24
+ function instanceOfHostedScormScoreItem(value) {
25
+ if (!('itemId' in value) || value['itemId'] === undefined)
26
+ return false;
27
+ if (!('weight' in value) || value['weight'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function HostedScormScoreItemFromJSON(json) {
32
+ return HostedScormScoreItemFromJSONTyped(json, false);
33
+ }
34
+ function HostedScormScoreItemFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'itemId': json['item_id'],
40
+ 'weight': json['weight'],
41
+ };
42
+ }
43
+ function HostedScormScoreItemToJSON(json) {
44
+ return HostedScormScoreItemToJSONTyped(json, false);
45
+ }
46
+ function HostedScormScoreItemToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'item_id': value['itemId'],
52
+ 'weight': value['weight'],
53
+ };
54
+ }