@easyedu/js-lsm-api 1.97.0 → 1.99.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 (87) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +10 -2
  3. package/dist/apis/PlayerApi.d.ts +57 -0
  4. package/dist/apis/PlayerApi.js +148 -0
  5. package/dist/esm/apis/PlayerApi.d.ts +57 -0
  6. package/dist/esm/apis/PlayerApi.js +148 -0
  7. package/dist/esm/models/GetCourseEnrollment.d.ts +12 -0
  8. package/dist/esm/models/GetCourseEnrollment.js +8 -0
  9. package/dist/esm/models/GetCourseEnrollmentListItem.d.ts +12 -0
  10. package/dist/esm/models/GetCourseEnrollmentListItem.js +8 -0
  11. package/dist/esm/models/GetCourseVersionItemSession.d.ts +6 -0
  12. package/dist/esm/models/GetCourseVersionItemSession.js +4 -0
  13. package/dist/esm/models/GetLibraryQuizSession.d.ts +6 -0
  14. package/dist/esm/models/GetLibraryQuizSession.js +4 -0
  15. package/dist/esm/models/GetResourceSession.d.ts +6 -0
  16. package/dist/esm/models/GetResourceSession.js +4 -0
  17. package/dist/esm/models/GetResourceSessionActivity.d.ts +125 -0
  18. package/dist/esm/models/GetResourceSessionActivity.js +97 -0
  19. package/dist/esm/models/GetResourceSessionActivityEvent.d.ts +62 -0
  20. package/dist/esm/models/GetResourceSessionActivityEvent.js +61 -0
  21. package/dist/esm/models/GetResourceSessionActivityEventList.d.ts +33 -0
  22. package/dist/esm/models/GetResourceSessionActivityEventList.js +44 -0
  23. package/dist/esm/models/GetResourceSessionActivityList.d.ts +33 -0
  24. package/dist/esm/models/GetResourceSessionActivityList.js +44 -0
  25. package/dist/esm/models/PostCourseVersionPublish.d.ts +10 -0
  26. package/dist/esm/models/PostCourseVersionPublish.js +2 -0
  27. package/dist/esm/models/PostResourceSessionActivityEvent.d.ts +62 -0
  28. package/dist/esm/models/PostResourceSessionActivityEvent.js +66 -0
  29. package/dist/esm/models/PutCourseEnrollment.d.ts +9 -0
  30. package/dist/esm/models/PutCourseEnrollment.js +2 -0
  31. package/dist/esm/models/index.d.ts +5 -0
  32. package/dist/esm/models/index.js +5 -0
  33. package/dist/models/GetCourseEnrollment.d.ts +12 -0
  34. package/dist/models/GetCourseEnrollment.js +8 -0
  35. package/dist/models/GetCourseEnrollmentListItem.d.ts +12 -0
  36. package/dist/models/GetCourseEnrollmentListItem.js +8 -0
  37. package/dist/models/GetCourseVersionItemSession.d.ts +6 -0
  38. package/dist/models/GetCourseVersionItemSession.js +4 -0
  39. package/dist/models/GetLibraryQuizSession.d.ts +6 -0
  40. package/dist/models/GetLibraryQuizSession.js +4 -0
  41. package/dist/models/GetResourceSession.d.ts +6 -0
  42. package/dist/models/GetResourceSession.js +4 -0
  43. package/dist/models/GetResourceSessionActivity.d.ts +125 -0
  44. package/dist/models/GetResourceSessionActivity.js +105 -0
  45. package/dist/models/GetResourceSessionActivityEvent.d.ts +62 -0
  46. package/dist/models/GetResourceSessionActivityEvent.js +68 -0
  47. package/dist/models/GetResourceSessionActivityEventList.d.ts +33 -0
  48. package/dist/models/GetResourceSessionActivityEventList.js +51 -0
  49. package/dist/models/GetResourceSessionActivityList.d.ts +33 -0
  50. package/dist/models/GetResourceSessionActivityList.js +51 -0
  51. package/dist/models/PostCourseVersionPublish.d.ts +10 -0
  52. package/dist/models/PostCourseVersionPublish.js +2 -0
  53. package/dist/models/PostResourceSessionActivityEvent.d.ts +62 -0
  54. package/dist/models/PostResourceSessionActivityEvent.js +74 -0
  55. package/dist/models/PutCourseEnrollment.d.ts +9 -0
  56. package/dist/models/PutCourseEnrollment.js +2 -0
  57. package/dist/models/index.d.ts +5 -0
  58. package/dist/models/index.js +5 -0
  59. package/docs/ContentLibraryQuizApi.md +2 -2
  60. package/docs/GetCourseEnrollment.md +4 -0
  61. package/docs/GetCourseEnrollmentListItem.md +4 -0
  62. package/docs/GetCourseVersionItemSession.md +2 -0
  63. package/docs/GetLibraryQuizSession.md +2 -0
  64. package/docs/GetResourceSession.md +2 -0
  65. package/docs/GetResourceSessionActivity.md +63 -0
  66. package/docs/GetResourceSessionActivityEvent.md +45 -0
  67. package/docs/GetResourceSessionActivityEventList.md +35 -0
  68. package/docs/GetResourceSessionActivityList.md +35 -0
  69. package/docs/PlayerApi.md +231 -6
  70. package/docs/PostCourseVersionPublish.md +2 -0
  71. package/docs/PostResourceSessionActivityEvent.md +39 -0
  72. package/docs/PutCourseEnrollment.md +2 -0
  73. package/package.json +1 -1
  74. package/src/apis/PlayerApi.ts +217 -0
  75. package/src/models/GetCourseEnrollment.ts +18 -0
  76. package/src/models/GetCourseEnrollmentListItem.ts +18 -0
  77. package/src/models/GetCourseVersionItemSession.ts +9 -0
  78. package/src/models/GetLibraryQuizSession.ts +9 -0
  79. package/src/models/GetResourceSession.ts +9 -0
  80. package/src/models/GetResourceSessionActivity.ts +199 -0
  81. package/src/models/GetResourceSessionActivityEvent.ts +110 -0
  82. package/src/models/GetResourceSessionActivityEventList.ts +74 -0
  83. package/src/models/GetResourceSessionActivityList.ts +74 -0
  84. package/src/models/PostCourseVersionPublish.ts +12 -0
  85. package/src/models/PostResourceSessionActivityEvent.ts +104 -0
  86. package/src/models/PutCourseEnrollment.ts +11 -0
  87. package/src/models/index.ts +5 -0
@@ -0,0 +1,199 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Per-activity learner state within a resource-session attempt.
18
+ * @export
19
+ * @interface GetResourceSessionActivity
20
+ */
21
+ export interface GetResourceSessionActivity {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GetResourceSessionActivity
26
+ */
27
+ id: string;
28
+ /**
29
+ * Stable source identifier, such as a SCORM activity identifier or resource.
30
+ * @type {string}
31
+ * @memberof GetResourceSessionActivity
32
+ */
33
+ identifier: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetResourceSessionActivity
38
+ */
39
+ title: string;
40
+ /**
41
+ *
42
+ * @type {GetResourceSessionActivityActivityTypeEnum}
43
+ * @memberof GetResourceSessionActivity
44
+ */
45
+ activityType: GetResourceSessionActivityActivityTypeEnum;
46
+ /**
47
+ *
48
+ * @type {string}
49
+ * @memberof GetResourceSessionActivity
50
+ */
51
+ completionStatus: string;
52
+ /**
53
+ *
54
+ * @type {string}
55
+ * @memberof GetResourceSessionActivity
56
+ */
57
+ gradeStatus: string;
58
+ /**
59
+ *
60
+ * @type {number}
61
+ * @memberof GetResourceSessionActivity
62
+ */
63
+ scoreRaw?: number | null;
64
+ /**
65
+ *
66
+ * @type {number}
67
+ * @memberof GetResourceSessionActivity
68
+ */
69
+ durationSeconds: number;
70
+ /**
71
+ *
72
+ * @type {boolean}
73
+ * @memberof GetResourceSessionActivity
74
+ */
75
+ isActive: boolean;
76
+ /**
77
+ *
78
+ * @type {number}
79
+ * @memberof GetResourceSessionActivity
80
+ */
81
+ initializedAt?: number | null;
82
+ /**
83
+ *
84
+ * @type {number}
85
+ * @memberof GetResourceSessionActivity
86
+ */
87
+ terminatedAt?: number | null;
88
+ /**
89
+ *
90
+ * @type {number}
91
+ * @memberof GetResourceSessionActivity
92
+ */
93
+ completedAt?: number | null;
94
+ /**
95
+ *
96
+ * @type {number}
97
+ * @memberof GetResourceSessionActivity
98
+ */
99
+ lastSeenAt?: number | null;
100
+ /**
101
+ *
102
+ * @type {number}
103
+ * @memberof GetResourceSessionActivity
104
+ */
105
+ createdAt: number;
106
+ /**
107
+ *
108
+ * @type {number}
109
+ * @memberof GetResourceSessionActivity
110
+ */
111
+ updatedAt: number;
112
+ }
113
+
114
+
115
+ /**
116
+ * @export
117
+ */
118
+ export const GetResourceSessionActivityActivityTypeEnum = {
119
+ Resource: 'resource',
120
+ Sco: 'sco',
121
+ Asset: 'asset'
122
+ } as const;
123
+ export type GetResourceSessionActivityActivityTypeEnum = typeof GetResourceSessionActivityActivityTypeEnum[keyof typeof GetResourceSessionActivityActivityTypeEnum];
124
+
125
+
126
+ /**
127
+ * Check if a given object implements the GetResourceSessionActivity interface.
128
+ */
129
+ export function instanceOfGetResourceSessionActivity(value: object): value is GetResourceSessionActivity {
130
+ if (!('id' in value) || value['id'] === undefined) return false;
131
+ if (!('identifier' in value) || value['identifier'] === undefined) return false;
132
+ if (!('title' in value) || value['title'] === undefined) return false;
133
+ if (!('activityType' in value) || value['activityType'] === undefined) return false;
134
+ if (!('completionStatus' in value) || value['completionStatus'] === undefined) return false;
135
+ if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
136
+ if (!('durationSeconds' in value) || value['durationSeconds'] === undefined) return false;
137
+ if (!('isActive' in value) || value['isActive'] === undefined) return false;
138
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
139
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
140
+ return true;
141
+ }
142
+
143
+ export function GetResourceSessionActivityFromJSON(json: any): GetResourceSessionActivity {
144
+ return GetResourceSessionActivityFromJSONTyped(json, false);
145
+ }
146
+
147
+ export function GetResourceSessionActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivity {
148
+ if (json == null) {
149
+ return json;
150
+ }
151
+ return {
152
+
153
+ 'id': json['id'],
154
+ 'identifier': json['identifier'],
155
+ 'title': json['title'],
156
+ 'activityType': json['activity_type'],
157
+ 'completionStatus': json['completion_status'],
158
+ 'gradeStatus': json['grade_status'],
159
+ 'scoreRaw': json['score_raw'] == null ? undefined : json['score_raw'],
160
+ 'durationSeconds': json['duration_seconds'],
161
+ 'isActive': json['is_active'],
162
+ 'initializedAt': json['initialized_at'] == null ? undefined : json['initialized_at'],
163
+ 'terminatedAt': json['terminated_at'] == null ? undefined : json['terminated_at'],
164
+ 'completedAt': json['completed_at'] == null ? undefined : json['completed_at'],
165
+ 'lastSeenAt': json['last_seen_at'] == null ? undefined : json['last_seen_at'],
166
+ 'createdAt': json['created_at'],
167
+ 'updatedAt': json['updated_at'],
168
+ };
169
+ }
170
+
171
+ export function GetResourceSessionActivityToJSON(json: any): GetResourceSessionActivity {
172
+ return GetResourceSessionActivityToJSONTyped(json, false);
173
+ }
174
+
175
+ export function GetResourceSessionActivityToJSONTyped(value?: GetResourceSessionActivity | null, ignoreDiscriminator: boolean = false): any {
176
+ if (value == null) {
177
+ return value;
178
+ }
179
+
180
+ return {
181
+
182
+ 'id': value['id'],
183
+ 'identifier': value['identifier'],
184
+ 'title': value['title'],
185
+ 'activity_type': value['activityType'],
186
+ 'completion_status': value['completionStatus'],
187
+ 'grade_status': value['gradeStatus'],
188
+ 'score_raw': value['scoreRaw'],
189
+ 'duration_seconds': value['durationSeconds'],
190
+ 'is_active': value['isActive'],
191
+ 'initialized_at': value['initializedAt'],
192
+ 'terminated_at': value['terminatedAt'],
193
+ 'completed_at': value['completedAt'],
194
+ 'last_seen_at': value['lastSeenAt'],
195
+ 'created_at': value['createdAt'],
196
+ 'updated_at': value['updatedAt'],
197
+ };
198
+ }
199
+
@@ -0,0 +1,110 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * A recorded learner activity event.
18
+ * @export
19
+ * @interface GetResourceSessionActivityEvent
20
+ */
21
+ export interface GetResourceSessionActivityEvent {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof GetResourceSessionActivityEvent
26
+ */
27
+ id: number;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GetResourceSessionActivityEvent
32
+ */
33
+ eventId: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GetResourceSessionActivityEvent
38
+ */
39
+ activityId: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GetResourceSessionActivityEvent
44
+ */
45
+ eventType: string;
46
+ /**
47
+ *
48
+ * @type {number}
49
+ * @memberof GetResourceSessionActivityEvent
50
+ */
51
+ positionSeconds?: number | null;
52
+ /**
53
+ *
54
+ * @type {number}
55
+ * @memberof GetResourceSessionActivityEvent
56
+ */
57
+ createdAt: number;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the GetResourceSessionActivityEvent interface.
62
+ */
63
+ export function instanceOfGetResourceSessionActivityEvent(value: object): value is GetResourceSessionActivityEvent {
64
+ if (!('id' in value) || value['id'] === undefined) return false;
65
+ if (!('eventId' in value) || value['eventId'] === undefined) return false;
66
+ if (!('activityId' in value) || value['activityId'] === undefined) return false;
67
+ if (!('eventType' in value) || value['eventType'] === undefined) return false;
68
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function GetResourceSessionActivityEventFromJSON(json: any): GetResourceSessionActivityEvent {
73
+ return GetResourceSessionActivityEventFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function GetResourceSessionActivityEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityEvent {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'id': json['id'],
83
+ 'eventId': json['event_id'],
84
+ 'activityId': json['activity_id'],
85
+ 'eventType': json['event_type'],
86
+ 'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
87
+ 'createdAt': json['created_at'],
88
+ };
89
+ }
90
+
91
+ export function GetResourceSessionActivityEventToJSON(json: any): GetResourceSessionActivityEvent {
92
+ return GetResourceSessionActivityEventToJSONTyped(json, false);
93
+ }
94
+
95
+ export function GetResourceSessionActivityEventToJSONTyped(value?: GetResourceSessionActivityEvent | null, ignoreDiscriminator: boolean = false): any {
96
+ if (value == null) {
97
+ return value;
98
+ }
99
+
100
+ return {
101
+
102
+ 'id': value['id'],
103
+ 'event_id': value['eventId'],
104
+ 'activity_id': value['activityId'],
105
+ 'event_type': value['eventType'],
106
+ 'position_seconds': value['positionSeconds'],
107
+ 'created_at': value['createdAt'],
108
+ };
109
+ }
110
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { GetResourceSessionActivityEvent } from './GetResourceSessionActivityEvent';
17
+ import {
18
+ GetResourceSessionActivityEventFromJSON,
19
+ GetResourceSessionActivityEventFromJSONTyped,
20
+ GetResourceSessionActivityEventToJSON,
21
+ GetResourceSessionActivityEventToJSONTyped,
22
+ } from './GetResourceSessionActivityEvent';
23
+
24
+ /**
25
+ * Recorded learner activity events for one resource-session attempt.
26
+ * @export
27
+ * @interface GetResourceSessionActivityEventList
28
+ */
29
+ export interface GetResourceSessionActivityEventList {
30
+ /**
31
+ *
32
+ * @type {Array<GetResourceSessionActivityEvent>}
33
+ * @memberof GetResourceSessionActivityEventList
34
+ */
35
+ items: Array<GetResourceSessionActivityEvent>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetResourceSessionActivityEventList interface.
40
+ */
41
+ export function instanceOfGetResourceSessionActivityEventList(value: object): value is GetResourceSessionActivityEventList {
42
+ if (!('items' in value) || value['items'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetResourceSessionActivityEventListFromJSON(json: any): GetResourceSessionActivityEventList {
47
+ return GetResourceSessionActivityEventListFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetResourceSessionActivityEventListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityEventList {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'items': ((json['items'] as Array<any>).map(GetResourceSessionActivityEventFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetResourceSessionActivityEventListToJSON(json: any): GetResourceSessionActivityEventList {
61
+ return GetResourceSessionActivityEventListToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetResourceSessionActivityEventListToJSONTyped(value?: GetResourceSessionActivityEventList | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'items': ((value['items'] as Array<any>).map(GetResourceSessionActivityEventToJSON)),
72
+ };
73
+ }
74
+
@@ -0,0 +1,74 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { GetResourceSessionActivity } from './GetResourceSessionActivity';
17
+ import {
18
+ GetResourceSessionActivityFromJSON,
19
+ GetResourceSessionActivityFromJSONTyped,
20
+ GetResourceSessionActivityToJSON,
21
+ GetResourceSessionActivityToJSONTyped,
22
+ } from './GetResourceSessionActivity';
23
+
24
+ /**
25
+ * Activities belonging to one resource-session attempt.
26
+ * @export
27
+ * @interface GetResourceSessionActivityList
28
+ */
29
+ export interface GetResourceSessionActivityList {
30
+ /**
31
+ *
32
+ * @type {Array<GetResourceSessionActivity>}
33
+ * @memberof GetResourceSessionActivityList
34
+ */
35
+ items: Array<GetResourceSessionActivity>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the GetResourceSessionActivityList interface.
40
+ */
41
+ export function instanceOfGetResourceSessionActivityList(value: object): value is GetResourceSessionActivityList {
42
+ if (!('items' in value) || value['items'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function GetResourceSessionActivityListFromJSON(json: any): GetResourceSessionActivityList {
47
+ return GetResourceSessionActivityListFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function GetResourceSessionActivityListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetResourceSessionActivityList {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'items': ((json['items'] as Array<any>).map(GetResourceSessionActivityFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function GetResourceSessionActivityListToJSON(json: any): GetResourceSessionActivityList {
61
+ return GetResourceSessionActivityListToJSONTyped(json, false);
62
+ }
63
+
64
+ export function GetResourceSessionActivityListToJSONTyped(value?: GetResourceSessionActivityList | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'items': ((value['items'] as Array<any>).map(GetResourceSessionActivityToJSON)),
72
+ };
73
+ }
74
+
@@ -25,6 +25,16 @@ export interface PostCourseVersionPublish {
25
25
  * @memberof PostCourseVersionPublish
26
26
  */
27
27
  changeNotes?: string;
28
+ /**
29
+ * When true, assign all Enrolled, InProgress, and Suspended Student enrollments
30
+ * for this course to the newly published version. Completed and other historical
31
+ * enrollments remain pinned to their original version. Existing progress and
32
+ * session history remain stored against the previous version and are not transferred.
33
+ *
34
+ * @type {boolean}
35
+ * @memberof PostCourseVersionPublish
36
+ */
37
+ promoteActiveEnrollments?: boolean;
28
38
  }
29
39
 
30
40
  /**
@@ -45,6 +55,7 @@ export function PostCourseVersionPublishFromJSONTyped(json: any, ignoreDiscrimin
45
55
  return {
46
56
 
47
57
  'changeNotes': json['change_notes'] == null ? undefined : json['change_notes'],
58
+ 'promoteActiveEnrollments': json['promote_active_enrollments'] == null ? undefined : json['promote_active_enrollments'],
48
59
  };
49
60
  }
50
61
 
@@ -60,6 +71,7 @@ export function PostCourseVersionPublishToJSONTyped(value?: PostCourseVersionPub
60
71
  return {
61
72
 
62
73
  'change_notes': value['changeNotes'],
74
+ 'promote_active_enrollments': value['promoteActiveEnrollments'],
63
75
  };
64
76
  }
65
77
 
@@ -0,0 +1,104 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * LMS API
5
+ * LMS API
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * A learner activity signal. Timing is calculated from server receipt times.
18
+ * @export
19
+ * @interface PostResourceSessionActivityEvent
20
+ */
21
+ export interface PostResourceSessionActivityEvent {
22
+ /**
23
+ * Client-generated idempotency identifier.
24
+ * @type {string}
25
+ * @memberof PostResourceSessionActivityEvent
26
+ */
27
+ eventId: string;
28
+ /**
29
+ *
30
+ * @type {PostResourceSessionActivityEventEventTypeEnum}
31
+ * @memberof PostResourceSessionActivityEvent
32
+ */
33
+ eventType: PostResourceSessionActivityEventEventTypeEnum;
34
+ /**
35
+ *
36
+ * @type {number}
37
+ * @memberof PostResourceSessionActivityEvent
38
+ */
39
+ positionSeconds?: number | null;
40
+ }
41
+
42
+
43
+ /**
44
+ * @export
45
+ */
46
+ export const PostResourceSessionActivityEventEventTypeEnum = {
47
+ Start: 'start',
48
+ Heartbeat: 'heartbeat',
49
+ Pause: 'pause',
50
+ Complete: 'complete',
51
+ MediaPlay: 'media_play',
52
+ MediaPause: 'media_pause',
53
+ MediaSeek: 'media_seek',
54
+ MediaEnded: 'media_ended',
55
+ Download: 'download',
56
+ LinkOpen: 'link_open',
57
+ DocumentOpen: 'document_open',
58
+ Terminate: 'terminate'
59
+ } as const;
60
+ export type PostResourceSessionActivityEventEventTypeEnum = typeof PostResourceSessionActivityEventEventTypeEnum[keyof typeof PostResourceSessionActivityEventEventTypeEnum];
61
+
62
+
63
+ /**
64
+ * Check if a given object implements the PostResourceSessionActivityEvent interface.
65
+ */
66
+ export function instanceOfPostResourceSessionActivityEvent(value: object): value is PostResourceSessionActivityEvent {
67
+ if (!('eventId' in value) || value['eventId'] === undefined) return false;
68
+ if (!('eventType' in value) || value['eventType'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function PostResourceSessionActivityEventFromJSON(json: any): PostResourceSessionActivityEvent {
73
+ return PostResourceSessionActivityEventFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function PostResourceSessionActivityEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): PostResourceSessionActivityEvent {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'eventId': json['event_id'],
83
+ 'eventType': json['event_type'],
84
+ 'positionSeconds': json['position_seconds'] == null ? undefined : json['position_seconds'],
85
+ };
86
+ }
87
+
88
+ export function PostResourceSessionActivityEventToJSON(json: any): PostResourceSessionActivityEvent {
89
+ return PostResourceSessionActivityEventToJSONTyped(json, false);
90
+ }
91
+
92
+ export function PostResourceSessionActivityEventToJSONTyped(value?: PostResourceSessionActivityEvent | null, ignoreDiscriminator: boolean = false): any {
93
+ if (value == null) {
94
+ return value;
95
+ }
96
+
97
+ return {
98
+
99
+ 'event_id': value['eventId'],
100
+ 'event_type': value['eventType'],
101
+ 'position_seconds': value['positionSeconds'],
102
+ };
103
+ }
104
+
@@ -52,6 +52,15 @@ export interface PutCourseEnrollment {
52
52
  * @memberof PutCourseEnrollment
53
53
  */
54
54
  notes?: string;
55
+ /**
56
+ * Reassign this learner enrollment to a published version of the same course.
57
+ * Only active or suspended Student enrollments can be reassigned. Progress and
58
+ * session history for the previous version are retained but are not transferred.
59
+ *
60
+ * @type {string}
61
+ * @memberof PutCourseEnrollment
62
+ */
63
+ courseVersionId?: string;
55
64
  }
56
65
 
57
66
 
@@ -101,6 +110,7 @@ export function PutCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator:
101
110
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
102
111
  'extensionDays': json['extension_days'] == null ? undefined : json['extension_days'],
103
112
  'notes': json['notes'] == null ? undefined : json['notes'],
113
+ 'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
104
114
  };
105
115
  }
106
116
 
@@ -120,6 +130,7 @@ export function PutCourseEnrollmentToJSONTyped(value?: PutCourseEnrollment | nul
120
130
  'enrollment_date_end': value['enrollmentDateEnd'],
121
131
  'extension_days': value['extensionDays'],
122
132
  'notes': value['notes'],
133
+ 'course_version_id': value['courseVersionId'],
123
134
  };
124
135
  }
125
136
 
@@ -91,6 +91,10 @@ export * from './GetQuestionQuizzesInner';
91
91
  export * from './GetResource';
92
92
  export * from './GetResourceList';
93
93
  export * from './GetResourceSession';
94
+ export * from './GetResourceSessionActivity';
95
+ export * from './GetResourceSessionActivityEvent';
96
+ export * from './GetResourceSessionActivityEventList';
97
+ export * from './GetResourceSessionActivityList';
94
98
  export * from './GetResourceSessionDiagnostics';
95
99
  export * from './GetResourceSessionDiagnosticsCourseContext';
96
100
  export * from './GetResourceSessionDiagnosticsResource';
@@ -186,6 +190,7 @@ export * from './PostQuestion';
186
190
  export * from './PostQuestionAnswerChoicesInner';
187
191
  export * from './PostResetPassword';
188
192
  export * from './PostResource';
193
+ export * from './PostResourceSessionActivityEvent';
189
194
  export * from './PostResourceVersion';
190
195
  export * from './PostResourceVersionComplete';
191
196
  export * from './PostResourceVersionSession';