@easyedu/js-lsm-api 1.98.0 → 1.100.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 +22 -0
  2. package/README.md +21 -2
  3. package/dist/apis/ContentLibraryQuizApi.d.ts +17 -0
  4. package/dist/apis/ContentLibraryQuizApi.js +45 -0
  5. package/dist/apis/CourseApi.d.ts +60 -0
  6. package/dist/apis/CourseApi.js +167 -0
  7. package/dist/apis/PlayerApi.d.ts +74 -0
  8. package/dist/apis/PlayerApi.js +193 -0
  9. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +17 -0
  10. package/dist/esm/apis/ContentLibraryQuizApi.js +45 -0
  11. package/dist/esm/apis/CourseApi.d.ts +60 -0
  12. package/dist/esm/apis/CourseApi.js +167 -0
  13. package/dist/esm/apis/PlayerApi.d.ts +74 -0
  14. package/dist/esm/apis/PlayerApi.js +193 -0
  15. package/dist/esm/models/GetAttemptAllowance.d.ts +80 -0
  16. package/dist/esm/models/GetAttemptAllowance.js +75 -0
  17. package/dist/esm/models/GetCourseVersionItemSession.d.ts +6 -0
  18. package/dist/esm/models/GetCourseVersionItemSession.js +4 -0
  19. package/dist/esm/models/GetLibraryQuizSession.d.ts +6 -0
  20. package/dist/esm/models/GetLibraryQuizSession.js +4 -0
  21. package/dist/esm/models/GetResourceSession.d.ts +6 -0
  22. package/dist/esm/models/GetResourceSession.js +4 -0
  23. package/dist/esm/models/GetResourceSessionActivity.d.ts +125 -0
  24. package/dist/esm/models/GetResourceSessionActivity.js +97 -0
  25. package/dist/esm/models/GetResourceSessionActivityEvent.d.ts +62 -0
  26. package/dist/esm/models/GetResourceSessionActivityEvent.js +61 -0
  27. package/dist/esm/models/GetResourceSessionActivityEventList.d.ts +33 -0
  28. package/dist/esm/models/GetResourceSessionActivityEventList.js +44 -0
  29. package/dist/esm/models/GetResourceSessionActivityList.d.ts +33 -0
  30. package/dist/esm/models/GetResourceSessionActivityList.js +44 -0
  31. package/dist/esm/models/PostClearSessions.d.ts +32 -0
  32. package/dist/esm/models/PostClearSessions.js +43 -0
  33. package/dist/esm/models/PostClearSessionsResponse.d.ts +44 -0
  34. package/dist/esm/models/PostClearSessionsResponse.js +51 -0
  35. package/dist/esm/models/PostResourceSessionActivityEvent.d.ts +62 -0
  36. package/dist/esm/models/PostResourceSessionActivityEvent.js +66 -0
  37. package/dist/esm/models/PutAttemptAllowance.d.ts +38 -0
  38. package/dist/esm/models/PutAttemptAllowance.js +47 -0
  39. package/dist/esm/models/PutLibraryQuizSessionOverride.d.ts +57 -0
  40. package/dist/esm/models/PutLibraryQuizSessionOverride.js +55 -0
  41. package/dist/esm/models/PutResourceSessionOverride.d.ts +69 -0
  42. package/dist/esm/models/PutResourceSessionOverride.js +66 -0
  43. package/dist/esm/models/index.d.ts +11 -0
  44. package/dist/esm/models/index.js +11 -0
  45. package/dist/models/GetAttemptAllowance.d.ts +80 -0
  46. package/dist/models/GetAttemptAllowance.js +82 -0
  47. package/dist/models/GetCourseVersionItemSession.d.ts +6 -0
  48. package/dist/models/GetCourseVersionItemSession.js +4 -0
  49. package/dist/models/GetLibraryQuizSession.d.ts +6 -0
  50. package/dist/models/GetLibraryQuizSession.js +4 -0
  51. package/dist/models/GetResourceSession.d.ts +6 -0
  52. package/dist/models/GetResourceSession.js +4 -0
  53. package/dist/models/GetResourceSessionActivity.d.ts +125 -0
  54. package/dist/models/GetResourceSessionActivity.js +105 -0
  55. package/dist/models/GetResourceSessionActivityEvent.d.ts +62 -0
  56. package/dist/models/GetResourceSessionActivityEvent.js +68 -0
  57. package/dist/models/GetResourceSessionActivityEventList.d.ts +33 -0
  58. package/dist/models/GetResourceSessionActivityEventList.js +51 -0
  59. package/dist/models/GetResourceSessionActivityList.d.ts +33 -0
  60. package/dist/models/GetResourceSessionActivityList.js +51 -0
  61. package/dist/models/PostClearSessions.d.ts +32 -0
  62. package/dist/models/PostClearSessions.js +50 -0
  63. package/dist/models/PostClearSessionsResponse.d.ts +44 -0
  64. package/dist/models/PostClearSessionsResponse.js +58 -0
  65. package/dist/models/PostResourceSessionActivityEvent.d.ts +62 -0
  66. package/dist/models/PostResourceSessionActivityEvent.js +74 -0
  67. package/dist/models/PutAttemptAllowance.d.ts +38 -0
  68. package/dist/models/PutAttemptAllowance.js +54 -0
  69. package/dist/models/PutLibraryQuizSessionOverride.d.ts +57 -0
  70. package/dist/models/PutLibraryQuizSessionOverride.js +63 -0
  71. package/dist/models/PutResourceSessionOverride.d.ts +69 -0
  72. package/dist/models/PutResourceSessionOverride.js +74 -0
  73. package/dist/models/index.d.ts +11 -0
  74. package/dist/models/index.js +11 -0
  75. package/docs/ContentLibraryQuizApi.md +73 -2
  76. package/docs/CourseApi.md +236 -0
  77. package/docs/GetAttemptAllowance.md +51 -0
  78. package/docs/GetCourseVersionItemSession.md +2 -0
  79. package/docs/GetLibraryQuizSession.md +2 -0
  80. package/docs/GetResourceSession.md +2 -0
  81. package/docs/GetResourceSessionActivity.md +63 -0
  82. package/docs/GetResourceSessionActivityEvent.md +45 -0
  83. package/docs/GetResourceSessionActivityEventList.md +35 -0
  84. package/docs/GetResourceSessionActivityList.md +35 -0
  85. package/docs/PlayerApi.md +302 -6
  86. package/docs/PostClearSessions.md +34 -0
  87. package/docs/PostClearSessionsResponse.md +38 -0
  88. package/docs/PostResourceSessionActivityEvent.md +39 -0
  89. package/docs/PutAttemptAllowance.md +36 -0
  90. package/docs/PutLibraryQuizSessionOverride.md +41 -0
  91. package/docs/PutResourceSessionOverride.md +41 -0
  92. package/package.json +1 -1
  93. package/src/apis/ContentLibraryQuizApi.ts +65 -0
  94. package/src/apis/CourseApi.ts +270 -0
  95. package/src/apis/PlayerApi.ts +282 -0
  96. package/src/models/GetAttemptAllowance.ts +138 -0
  97. package/src/models/GetCourseVersionItemSession.ts +9 -0
  98. package/src/models/GetLibraryQuizSession.ts +9 -0
  99. package/src/models/GetResourceSession.ts +9 -0
  100. package/src/models/GetResourceSessionActivity.ts +199 -0
  101. package/src/models/GetResourceSessionActivityEvent.ts +110 -0
  102. package/src/models/GetResourceSessionActivityEventList.ts +74 -0
  103. package/src/models/GetResourceSessionActivityList.ts +74 -0
  104. package/src/models/PostClearSessions.ts +66 -0
  105. package/src/models/PostClearSessionsResponse.ts +84 -0
  106. package/src/models/PostResourceSessionActivityEvent.ts +104 -0
  107. package/src/models/PutAttemptAllowance.ts +75 -0
  108. package/src/models/PutLibraryQuizSessionOverride.ts +100 -0
  109. package/src/models/PutResourceSessionOverride.ts +113 -0
  110. package/src/models/index.ts +11 -0
@@ -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 PutAttemptAllowance
16
+ */
17
+ export interface PutAttemptAllowance {
18
+ /**
19
+ * Attempts added to this course item's configured limit for this learner.
20
+ * @type {number}
21
+ * @memberof PutAttemptAllowance
22
+ */
23
+ additionalAttempts: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof PutAttemptAllowance
28
+ */
29
+ reason: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the PutAttemptAllowance interface.
33
+ */
34
+ export declare function instanceOfPutAttemptAllowance(value: object): value is PutAttemptAllowance;
35
+ export declare function PutAttemptAllowanceFromJSON(json: any): PutAttemptAllowance;
36
+ export declare function PutAttemptAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutAttemptAllowance;
37
+ export declare function PutAttemptAllowanceToJSON(json: any): PutAttemptAllowance;
38
+ export declare function PutAttemptAllowanceToJSONTyped(value?: PutAttemptAllowance | 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 PutAttemptAllowance interface.
16
+ */
17
+ export function instanceOfPutAttemptAllowance(value) {
18
+ if (!('additionalAttempts' in value) || value['additionalAttempts'] === undefined)
19
+ return false;
20
+ if (!('reason' in value) || value['reason'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function PutAttemptAllowanceFromJSON(json) {
25
+ return PutAttemptAllowanceFromJSONTyped(json, false);
26
+ }
27
+ export function PutAttemptAllowanceFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'additionalAttempts': json['additional_attempts'],
33
+ 'reason': json['reason'],
34
+ };
35
+ }
36
+ export function PutAttemptAllowanceToJSON(json) {
37
+ return PutAttemptAllowanceToJSONTyped(json, false);
38
+ }
39
+ export function PutAttemptAllowanceToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'additional_attempts': value['additionalAttempts'],
45
+ 'reason': value['reason'],
46
+ };
47
+ }
@@ -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
+ /**
13
+ * Instructor-entered progress values for an existing live quiz session.
14
+ * @export
15
+ * @interface PutLibraryQuizSessionOverride
16
+ */
17
+ export interface PutLibraryQuizSessionOverride {
18
+ /**
19
+ *
20
+ * @type {PutLibraryQuizSessionOverrideStatusEnum}
21
+ * @memberof PutLibraryQuizSessionOverride
22
+ */
23
+ status?: PutLibraryQuizSessionOverrideStatusEnum;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof PutLibraryQuizSessionOverride
28
+ */
29
+ scorePercentage?: number;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof PutLibraryQuizSessionOverride
34
+ */
35
+ passed?: boolean;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PutLibraryQuizSessionOverride
40
+ */
41
+ reason: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const PutLibraryQuizSessionOverrideStatusEnum: {
47
+ readonly Completed: "completed";
48
+ };
49
+ export type PutLibraryQuizSessionOverrideStatusEnum = typeof PutLibraryQuizSessionOverrideStatusEnum[keyof typeof PutLibraryQuizSessionOverrideStatusEnum];
50
+ /**
51
+ * Check if a given object implements the PutLibraryQuizSessionOverride interface.
52
+ */
53
+ export declare function instanceOfPutLibraryQuizSessionOverride(value: object): value is PutLibraryQuizSessionOverride;
54
+ export declare function PutLibraryQuizSessionOverrideFromJSON(json: any): PutLibraryQuizSessionOverride;
55
+ export declare function PutLibraryQuizSessionOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutLibraryQuizSessionOverride;
56
+ export declare function PutLibraryQuizSessionOverrideToJSON(json: any): PutLibraryQuizSessionOverride;
57
+ export declare function PutLibraryQuizSessionOverrideToJSONTyped(value?: PutLibraryQuizSessionOverride | 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
+ * @export
16
+ */
17
+ export const PutLibraryQuizSessionOverrideStatusEnum = {
18
+ Completed: 'completed'
19
+ };
20
+ /**
21
+ * Check if a given object implements the PutLibraryQuizSessionOverride interface.
22
+ */
23
+ export function instanceOfPutLibraryQuizSessionOverride(value) {
24
+ if (!('reason' in value) || value['reason'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PutLibraryQuizSessionOverrideFromJSON(json) {
29
+ return PutLibraryQuizSessionOverrideFromJSONTyped(json, false);
30
+ }
31
+ export function PutLibraryQuizSessionOverrideFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'status': json['status'] == null ? undefined : json['status'],
37
+ 'scorePercentage': json['score_percentage'] == null ? undefined : json['score_percentage'],
38
+ 'passed': json['passed'] == null ? undefined : json['passed'],
39
+ 'reason': json['reason'],
40
+ };
41
+ }
42
+ export function PutLibraryQuizSessionOverrideToJSON(json) {
43
+ return PutLibraryQuizSessionOverrideToJSONTyped(json, false);
44
+ }
45
+ export function PutLibraryQuizSessionOverrideToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'status': value['status'],
51
+ 'score_percentage': value['scorePercentage'],
52
+ 'passed': value['passed'],
53
+ 'reason': value['reason'],
54
+ };
55
+ }
@@ -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
+ /**
13
+ * Instructor-entered progress values for an existing live resource session.
14
+ * @export
15
+ * @interface PutResourceSessionOverride
16
+ */
17
+ export interface PutResourceSessionOverride {
18
+ /**
19
+ *
20
+ * @type {PutResourceSessionOverrideCompletionStatusEnum}
21
+ * @memberof PutResourceSessionOverride
22
+ */
23
+ completionStatus?: PutResourceSessionOverrideCompletionStatusEnum;
24
+ /**
25
+ *
26
+ * @type {PutResourceSessionOverrideGradeStatusEnum}
27
+ * @memberof PutResourceSessionOverride
28
+ */
29
+ gradeStatus?: PutResourceSessionOverrideGradeStatusEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof PutResourceSessionOverride
34
+ */
35
+ scoreRaw?: number;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof PutResourceSessionOverride
40
+ */
41
+ reason: string;
42
+ }
43
+ /**
44
+ * @export
45
+ */
46
+ export declare const PutResourceSessionOverrideCompletionStatusEnum: {
47
+ readonly Completed: "completed";
48
+ };
49
+ export type PutResourceSessionOverrideCompletionStatusEnum = typeof PutResourceSessionOverrideCompletionStatusEnum[keyof typeof PutResourceSessionOverrideCompletionStatusEnum];
50
+ /**
51
+ * @export
52
+ */
53
+ export declare const PutResourceSessionOverrideGradeStatusEnum: {
54
+ readonly Ungraded: "ungraded";
55
+ readonly Passed: "passed";
56
+ readonly Failed: "failed";
57
+ readonly PointsEarned: "points_earned";
58
+ readonly PercentageEarned: "percentage_earned";
59
+ readonly NotApplicable: "not_applicable";
60
+ };
61
+ export type PutResourceSessionOverrideGradeStatusEnum = typeof PutResourceSessionOverrideGradeStatusEnum[keyof typeof PutResourceSessionOverrideGradeStatusEnum];
62
+ /**
63
+ * Check if a given object implements the PutResourceSessionOverride interface.
64
+ */
65
+ export declare function instanceOfPutResourceSessionOverride(value: object): value is PutResourceSessionOverride;
66
+ export declare function PutResourceSessionOverrideFromJSON(json: any): PutResourceSessionOverride;
67
+ export declare function PutResourceSessionOverrideFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutResourceSessionOverride;
68
+ export declare function PutResourceSessionOverrideToJSON(json: any): PutResourceSessionOverride;
69
+ export declare function PutResourceSessionOverrideToJSONTyped(value?: PutResourceSessionOverride | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,66 @@
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 PutResourceSessionOverrideCompletionStatusEnum = {
18
+ Completed: 'completed'
19
+ };
20
+ /**
21
+ * @export
22
+ */
23
+ export const PutResourceSessionOverrideGradeStatusEnum = {
24
+ Ungraded: 'ungraded',
25
+ Passed: 'passed',
26
+ Failed: 'failed',
27
+ PointsEarned: 'points_earned',
28
+ PercentageEarned: 'percentage_earned',
29
+ NotApplicable: 'not_applicable'
30
+ };
31
+ /**
32
+ * Check if a given object implements the PutResourceSessionOverride interface.
33
+ */
34
+ export function instanceOfPutResourceSessionOverride(value) {
35
+ if (!('reason' in value) || value['reason'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function PutResourceSessionOverrideFromJSON(json) {
40
+ return PutResourceSessionOverrideFromJSONTyped(json, false);
41
+ }
42
+ export function PutResourceSessionOverrideFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'completionStatus': json['completion_status'] == null ? undefined : json['completion_status'],
48
+ 'gradeStatus': json['grade_status'] == null ? undefined : json['grade_status'],
49
+ 'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
50
+ 'reason': json['reason'],
51
+ };
52
+ }
53
+ export function PutResourceSessionOverrideToJSON(json) {
54
+ return PutResourceSessionOverrideToJSONTyped(json, false);
55
+ }
56
+ export function PutResourceSessionOverrideToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'completion_status': value['completionStatus'],
62
+ 'grade_status': value['gradeStatus'],
63
+ 'score_raw': value['scoreRaw'],
64
+ 'reason': value['reason'],
65
+ };
66
+ }
@@ -29,6 +29,7 @@ export * from './EmailTemplateDefinition';
29
29
  export * from './EmailTemplateScope';
30
30
  export * from './EmailTemplateVariable';
31
31
  export * from './EmailTemplateVersion';
32
+ export * from './GetAttemptAllowance';
32
33
  export * from './GetCertificateAssetUpload';
33
34
  export * from './GetCertificateConfigList';
34
35
  export * from './GetCertificateEventList';
@@ -89,6 +90,10 @@ export * from './GetQuestionQuizzesInner';
89
90
  export * from './GetResource';
90
91
  export * from './GetResourceList';
91
92
  export * from './GetResourceSession';
93
+ export * from './GetResourceSessionActivity';
94
+ export * from './GetResourceSessionActivityEvent';
95
+ export * from './GetResourceSessionActivityEventList';
96
+ export * from './GetResourceSessionActivityList';
92
97
  export * from './GetResourceSessionDiagnostics';
93
98
  export * from './GetResourceSessionDiagnosticsCourseContext';
94
99
  export * from './GetResourceSessionDiagnosticsResource';
@@ -149,6 +154,8 @@ export * from './PostCertificateLifecycleAction';
149
154
  export * from './PostCertificateTemplate';
150
155
  export * from './PostCertificateTemplateClone';
151
156
  export * from './PostCertificateTemplatePreview';
157
+ export * from './PostClearSessions';
158
+ export * from './PostClearSessionsResponse';
152
159
  export * from './PostConversation';
153
160
  export * from './PostConversationResponse';
154
161
  export * from './PostCourse';
@@ -184,6 +191,7 @@ export * from './PostQuestion';
184
191
  export * from './PostQuestionAnswerChoicesInner';
185
192
  export * from './PostResetPassword';
186
193
  export * from './PostResource';
194
+ export * from './PostResourceSessionActivityEvent';
187
195
  export * from './PostResourceVersion';
188
196
  export * from './PostResourceVersionComplete';
189
197
  export * from './PostResourceVersionSession';
@@ -197,6 +205,7 @@ export * from './PostSignupRequest';
197
205
  export * from './PostSignupRequestResponse';
198
206
  export * from './PostSupportTicket';
199
207
  export * from './PostSupportTicketComment';
208
+ export * from './PutAttemptAllowance';
200
209
  export * from './PutBadgeIssuer';
201
210
  export * from './PutCertificateConfig';
202
211
  export * from './PutCertificateTemplate';
@@ -213,6 +222,7 @@ export * from './PutLibraryQuizCriteria';
213
222
  export * from './PutLibraryQuizQuestions';
214
223
  export * from './PutLibraryQuizSessionAnswer';
215
224
  export * from './PutLibraryQuizSessionGrade';
225
+ export * from './PutLibraryQuizSessionOverride';
216
226
  export * from './PutLibraryQuizVersion';
217
227
  export * from './PutPortalBranding';
218
228
  export * from './PutPortalSublicense';
@@ -220,6 +230,7 @@ export * from './PutPortalUserFieldValues';
220
230
  export * from './PutQuestion';
221
231
  export * from './PutQuestionAnswerChoicesInner';
222
232
  export * from './PutResource';
233
+ export * from './PutResourceSessionOverride';
223
234
  export * from './PutResourceVersion';
224
235
  export * from './PutRole';
225
236
  export * from './PutRolePermissions';
@@ -31,6 +31,7 @@ export * from './EmailTemplateDefinition';
31
31
  export * from './EmailTemplateScope';
32
32
  export * from './EmailTemplateVariable';
33
33
  export * from './EmailTemplateVersion';
34
+ export * from './GetAttemptAllowance';
34
35
  export * from './GetCertificateAssetUpload';
35
36
  export * from './GetCertificateConfigList';
36
37
  export * from './GetCertificateEventList';
@@ -91,6 +92,10 @@ export * from './GetQuestionQuizzesInner';
91
92
  export * from './GetResource';
92
93
  export * from './GetResourceList';
93
94
  export * from './GetResourceSession';
95
+ export * from './GetResourceSessionActivity';
96
+ export * from './GetResourceSessionActivityEvent';
97
+ export * from './GetResourceSessionActivityEventList';
98
+ export * from './GetResourceSessionActivityList';
94
99
  export * from './GetResourceSessionDiagnostics';
95
100
  export * from './GetResourceSessionDiagnosticsCourseContext';
96
101
  export * from './GetResourceSessionDiagnosticsResource';
@@ -151,6 +156,8 @@ export * from './PostCertificateLifecycleAction';
151
156
  export * from './PostCertificateTemplate';
152
157
  export * from './PostCertificateTemplateClone';
153
158
  export * from './PostCertificateTemplatePreview';
159
+ export * from './PostClearSessions';
160
+ export * from './PostClearSessionsResponse';
154
161
  export * from './PostConversation';
155
162
  export * from './PostConversationResponse';
156
163
  export * from './PostCourse';
@@ -186,6 +193,7 @@ export * from './PostQuestion';
186
193
  export * from './PostQuestionAnswerChoicesInner';
187
194
  export * from './PostResetPassword';
188
195
  export * from './PostResource';
196
+ export * from './PostResourceSessionActivityEvent';
189
197
  export * from './PostResourceVersion';
190
198
  export * from './PostResourceVersionComplete';
191
199
  export * from './PostResourceVersionSession';
@@ -199,6 +207,7 @@ export * from './PostSignupRequest';
199
207
  export * from './PostSignupRequestResponse';
200
208
  export * from './PostSupportTicket';
201
209
  export * from './PostSupportTicketComment';
210
+ export * from './PutAttemptAllowance';
202
211
  export * from './PutBadgeIssuer';
203
212
  export * from './PutCertificateConfig';
204
213
  export * from './PutCertificateTemplate';
@@ -215,6 +224,7 @@ export * from './PutLibraryQuizCriteria';
215
224
  export * from './PutLibraryQuizQuestions';
216
225
  export * from './PutLibraryQuizSessionAnswer';
217
226
  export * from './PutLibraryQuizSessionGrade';
227
+ export * from './PutLibraryQuizSessionOverride';
218
228
  export * from './PutLibraryQuizVersion';
219
229
  export * from './PutPortalBranding';
220
230
  export * from './PutPortalSublicense';
@@ -222,6 +232,7 @@ export * from './PutPortalUserFieldValues';
222
232
  export * from './PutQuestion';
223
233
  export * from './PutQuestionAnswerChoicesInner';
224
234
  export * from './PutResource';
235
+ export * from './PutResourceSessionOverride';
225
236
  export * from './PutResourceVersion';
226
237
  export * from './PutRole';
227
238
  export * from './PutRolePermissions';
@@ -0,0 +1,80 @@
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
+ * The effective attempt limit for one learner and course-version item.
14
+ * @export
15
+ * @interface GetAttemptAllowance
16
+ */
17
+ export interface GetAttemptAllowance {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetAttemptAllowance
22
+ */
23
+ courseId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GetAttemptAllowance
28
+ */
29
+ courseVersionId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GetAttemptAllowance
34
+ */
35
+ itemId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GetAttemptAllowance
40
+ */
41
+ userId: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetAttemptAllowance
46
+ */
47
+ baseMaxAttempts: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetAttemptAllowance
52
+ */
53
+ additionalAttempts: number;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof GetAttemptAllowance
58
+ */
59
+ effectiveMaxAttempts: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof GetAttemptAllowance
64
+ */
65
+ attemptsUsed: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof GetAttemptAllowance
70
+ */
71
+ attemptsRemaining: number;
72
+ }
73
+ /**
74
+ * Check if a given object implements the GetAttemptAllowance interface.
75
+ */
76
+ export declare function instanceOfGetAttemptAllowance(value: object): value is GetAttemptAllowance;
77
+ export declare function GetAttemptAllowanceFromJSON(json: any): GetAttemptAllowance;
78
+ export declare function GetAttemptAllowanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetAttemptAllowance;
79
+ export declare function GetAttemptAllowanceToJSON(json: any): GetAttemptAllowance;
80
+ export declare function GetAttemptAllowanceToJSONTyped(value?: GetAttemptAllowance | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.instanceOfGetAttemptAllowance = instanceOfGetAttemptAllowance;
17
+ exports.GetAttemptAllowanceFromJSON = GetAttemptAllowanceFromJSON;
18
+ exports.GetAttemptAllowanceFromJSONTyped = GetAttemptAllowanceFromJSONTyped;
19
+ exports.GetAttemptAllowanceToJSON = GetAttemptAllowanceToJSON;
20
+ exports.GetAttemptAllowanceToJSONTyped = GetAttemptAllowanceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetAttemptAllowance interface.
23
+ */
24
+ function instanceOfGetAttemptAllowance(value) {
25
+ if (!('courseId' in value) || value['courseId'] === undefined)
26
+ return false;
27
+ if (!('courseVersionId' in value) || value['courseVersionId'] === undefined)
28
+ return false;
29
+ if (!('itemId' in value) || value['itemId'] === undefined)
30
+ return false;
31
+ if (!('userId' in value) || value['userId'] === undefined)
32
+ return false;
33
+ if (!('baseMaxAttempts' in value) || value['baseMaxAttempts'] === undefined)
34
+ return false;
35
+ if (!('additionalAttempts' in value) || value['additionalAttempts'] === undefined)
36
+ return false;
37
+ if (!('effectiveMaxAttempts' in value) || value['effectiveMaxAttempts'] === undefined)
38
+ return false;
39
+ if (!('attemptsUsed' in value) || value['attemptsUsed'] === undefined)
40
+ return false;
41
+ if (!('attemptsRemaining' in value) || value['attemptsRemaining'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function GetAttemptAllowanceFromJSON(json) {
46
+ return GetAttemptAllowanceFromJSONTyped(json, false);
47
+ }
48
+ function GetAttemptAllowanceFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'courseId': json['course_id'],
54
+ 'courseVersionId': json['course_version_id'],
55
+ 'itemId': json['item_id'],
56
+ 'userId': json['user_id'],
57
+ 'baseMaxAttempts': json['base_max_attempts'],
58
+ 'additionalAttempts': json['additional_attempts'],
59
+ 'effectiveMaxAttempts': json['effective_max_attempts'],
60
+ 'attemptsUsed': json['attempts_used'],
61
+ 'attemptsRemaining': json['attempts_remaining'],
62
+ };
63
+ }
64
+ function GetAttemptAllowanceToJSON(json) {
65
+ return GetAttemptAllowanceToJSONTyped(json, false);
66
+ }
67
+ function GetAttemptAllowanceToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'course_id': value['courseId'],
73
+ 'course_version_id': value['courseVersionId'],
74
+ 'item_id': value['itemId'],
75
+ 'user_id': value['userId'],
76
+ 'base_max_attempts': value['baseMaxAttempts'],
77
+ 'additional_attempts': value['additionalAttempts'],
78
+ 'effective_max_attempts': value['effectiveMaxAttempts'],
79
+ 'attempts_used': value['attemptsUsed'],
80
+ 'attempts_remaining': value['attemptsRemaining'],
81
+ };
82
+ }
@@ -102,6 +102,12 @@ export interface GetCourseVersionItemSession {
102
102
  * @memberof GetCourseVersionItemSession
103
103
  */
104
104
  scoreRaw?: number | null;
105
+ /**
106
+ * Accumulated active learner time across this session's activities.
107
+ * @type {number}
108
+ * @memberof GetCourseVersionItemSession
109
+ */
110
+ durationSeconds: number;
105
111
  /**
106
112
  *
107
113
  * @type {number}
@@ -51,6 +51,8 @@ function instanceOfGetCourseVersionItemSession(value) {
51
51
  return false;
52
52
  if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
53
53
  return false;
54
+ if (!('durationSeconds' in value) || value['durationSeconds'] === undefined)
55
+ return false;
54
56
  if (!('createdAt' in value) || value['createdAt'] === undefined)
55
57
  return false;
56
58
  if (!('updatedAt' in value) || value['updatedAt'] === undefined)
@@ -79,6 +81,7 @@ function GetCourseVersionItemSessionFromJSONTyped(json, ignoreDiscriminator) {
79
81
  'completionStatus': json['completion_status'],
80
82
  'gradeStatus': json['grade_status'],
81
83
  'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
84
+ 'durationSeconds': json['duration_seconds'],
82
85
  'createdAt': json['created_at'],
83
86
  'updatedAt': json['updated_at'],
84
87
  'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
@@ -106,6 +109,7 @@ function GetCourseVersionItemSessionToJSONTyped(value, ignoreDiscriminator = fal
106
109
  'completion_status': value['completionStatus'],
107
110
  'grade_status': value['gradeStatus'],
108
111
  'score_raw': value['scoreRaw'],
112
+ 'duration_seconds': value['durationSeconds'],
109
113
  'created_at': value['createdAt'],
110
114
  'updated_at': value['updatedAt'],
111
115
  'completed_at': value['completedAt'],
@@ -155,6 +155,12 @@ export interface GetLibraryQuizSession {
155
155
  * @memberof GetLibraryQuizSession
156
156
  */
157
157
  completedAt?: number | null;
158
+ /**
159
+ * Elapsed attempt time from start through completion, submission, or the latest saved activity.
160
+ * @type {number}
161
+ * @memberof GetLibraryQuizSession
162
+ */
163
+ durationSeconds: number;
158
164
  }
159
165
  /**
160
166
  * @export