@easyedu/js-lsm-api 1.75.0 → 1.77.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.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.75.0
1
+ # @easyedu/js-lsm-api@1.77.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -538,7 +538,7 @@ and is automatically generated by the
538
538
  [OpenAPI Generator](https://openapi-generator.tech) project:
539
539
 
540
540
  - API version: `1.0.0`
541
- - Package version: `1.75.0`
541
+ - Package version: `1.77.0`
542
542
  - Generator version: `7.22.0`
543
543
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
544
544
 
@@ -71,6 +71,7 @@ export interface GetCourseListRequest {
71
71
  pageSize?: number;
72
72
  enrolled?: boolean;
73
73
  search?: string;
74
+ recentActivitySince?: number;
74
75
  }
75
76
  export interface GetCourseReportingBasicRequest {
76
77
  courseId: string;
@@ -489,6 +489,9 @@ class CourseApi extends runtime.BaseAPI {
489
489
  if (requestParameters['search'] != null) {
490
490
  queryParameters['search'] = requestParameters['search'];
491
491
  }
492
+ if (requestParameters['recentActivitySince'] != null) {
493
+ queryParameters['recentActivitySince'] = requestParameters['recentActivitySince'];
494
+ }
492
495
  const headerParameters = {};
493
496
  let urlPath = `/courses`;
494
497
  return {
@@ -32,6 +32,8 @@ export interface GetContentGradesRequest {
32
32
  page?: number;
33
33
  pageSize?: number;
34
34
  search?: string;
35
+ includeInactive?: boolean;
36
+ enrollmentStatus?: string;
35
37
  }
36
38
  export interface GetContentInstructorBasicReportingRequest {
37
39
  courseId: string;
@@ -112,6 +112,12 @@ class ReportingApi extends runtime.BaseAPI {
112
112
  if (requestParameters['search'] != null) {
113
113
  queryParameters['search'] = requestParameters['search'];
114
114
  }
115
+ if (requestParameters['includeInactive'] != null) {
116
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
117
+ }
118
+ if (requestParameters['enrollmentStatus'] != null) {
119
+ queryParameters['enrollmentStatus'] = requestParameters['enrollmentStatus'];
120
+ }
115
121
  const headerParameters = {};
116
122
  let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades`;
117
123
  urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
@@ -71,6 +71,7 @@ export interface GetCourseListRequest {
71
71
  pageSize?: number;
72
72
  enrolled?: boolean;
73
73
  search?: string;
74
+ recentActivitySince?: number;
74
75
  }
75
76
  export interface GetCourseReportingBasicRequest {
76
77
  courseId: string;
@@ -486,6 +486,9 @@ export class CourseApi extends runtime.BaseAPI {
486
486
  if (requestParameters['search'] != null) {
487
487
  queryParameters['search'] = requestParameters['search'];
488
488
  }
489
+ if (requestParameters['recentActivitySince'] != null) {
490
+ queryParameters['recentActivitySince'] = requestParameters['recentActivitySince'];
491
+ }
489
492
  const headerParameters = {};
490
493
  let urlPath = `/courses`;
491
494
  return {
@@ -32,6 +32,8 @@ export interface GetContentGradesRequest {
32
32
  page?: number;
33
33
  pageSize?: number;
34
34
  search?: string;
35
+ includeInactive?: boolean;
36
+ enrollmentStatus?: string;
35
37
  }
36
38
  export interface GetContentInstructorBasicReportingRequest {
37
39
  courseId: string;
@@ -109,6 +109,12 @@ export class ReportingApi extends runtime.BaseAPI {
109
109
  if (requestParameters['search'] != null) {
110
110
  queryParameters['search'] = requestParameters['search'];
111
111
  }
112
+ if (requestParameters['includeInactive'] != null) {
113
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
114
+ }
115
+ if (requestParameters['enrollmentStatus'] != null) {
116
+ queryParameters['enrollmentStatus'] = requestParameters['enrollmentStatus'];
117
+ }
112
118
  const headerParameters = {};
113
119
  let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades`;
114
120
  urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
@@ -40,6 +40,18 @@ export interface GetContentGradesItemsInner {
40
40
  * @memberof GetContentGradesItemsInner
41
41
  */
42
42
  gradeStatus: GetContentGradesItemsInnerGradeStatusEnum;
43
+ /**
44
+ * Canonical student enrollment status used for this grade row
45
+ * @type {GetContentGradesItemsInnerEnrollmentStatusEnum}
46
+ * @memberof GetContentGradesItemsInner
47
+ */
48
+ enrollmentStatus: GetContentGradesItemsInnerEnrollmentStatusEnum;
49
+ /**
50
+ * Derived learner access state for UI indicators
51
+ * @type {GetContentGradesItemsInnerAccessStateEnum}
52
+ * @memberof GetContentGradesItemsInner
53
+ */
54
+ accessState: GetContentGradesItemsInnerAccessStateEnum;
43
55
  }
44
56
  /**
45
57
  * @export
@@ -62,6 +74,31 @@ export declare const GetContentGradesItemsInnerGradeStatusEnum: {
62
74
  readonly NotApplicable: "NotApplicable";
63
75
  };
64
76
  export type GetContentGradesItemsInnerGradeStatusEnum = typeof GetContentGradesItemsInnerGradeStatusEnum[keyof typeof GetContentGradesItemsInnerGradeStatusEnum];
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const GetContentGradesItemsInnerEnrollmentStatusEnum: {
81
+ readonly Enrolled: "Enrolled";
82
+ readonly InProgress: "InProgress";
83
+ readonly Completed: "Completed";
84
+ readonly Failed: "Failed";
85
+ readonly Expired: "Expired";
86
+ readonly Withdrawn: "Withdrawn";
87
+ readonly Suspended: "Suspended";
88
+ };
89
+ export type GetContentGradesItemsInnerEnrollmentStatusEnum = typeof GetContentGradesItemsInnerEnrollmentStatusEnum[keyof typeof GetContentGradesItemsInnerEnrollmentStatusEnum];
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const GetContentGradesItemsInnerAccessStateEnum: {
94
+ readonly Active: "active";
95
+ readonly CompletedReview: "completed_review";
96
+ readonly Expired: "expired";
97
+ readonly Suspended: "suspended";
98
+ readonly Failed: "failed";
99
+ readonly Withdrawn: "withdrawn";
100
+ };
101
+ export type GetContentGradesItemsInnerAccessStateEnum = typeof GetContentGradesItemsInnerAccessStateEnum[keyof typeof GetContentGradesItemsInnerAccessStateEnum];
65
102
  /**
66
103
  * Check if a given object implements the GetContentGradesItemsInner interface.
67
104
  */
@@ -31,6 +31,29 @@ export const GetContentGradesItemsInnerGradeStatusEnum = {
31
31
  PercentageEarned: 'PercentageEarned',
32
32
  NotApplicable: 'NotApplicable'
33
33
  };
34
+ /**
35
+ * @export
36
+ */
37
+ export const GetContentGradesItemsInnerEnrollmentStatusEnum = {
38
+ Enrolled: 'Enrolled',
39
+ InProgress: 'InProgress',
40
+ Completed: 'Completed',
41
+ Failed: 'Failed',
42
+ Expired: 'Expired',
43
+ Withdrawn: 'Withdrawn',
44
+ Suspended: 'Suspended'
45
+ };
46
+ /**
47
+ * @export
48
+ */
49
+ export const GetContentGradesItemsInnerAccessStateEnum = {
50
+ Active: 'active',
51
+ CompletedReview: 'completed_review',
52
+ Expired: 'expired',
53
+ Suspended: 'suspended',
54
+ Failed: 'failed',
55
+ Withdrawn: 'withdrawn'
56
+ };
34
57
  /**
35
58
  * Check if a given object implements the GetContentGradesItemsInner interface.
36
59
  */
@@ -41,6 +64,10 @@ export function instanceOfGetContentGradesItemsInner(value) {
41
64
  return false;
42
65
  if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
43
66
  return false;
67
+ if (!('enrollmentStatus' in value) || value['enrollmentStatus'] === undefined)
68
+ return false;
69
+ if (!('accessState' in value) || value['accessState'] === undefined)
70
+ return false;
44
71
  return true;
45
72
  }
46
73
  export function GetContentGradesItemsInnerFromJSON(json) {
@@ -55,6 +82,8 @@ export function GetContentGradesItemsInnerFromJSONTyped(json, ignoreDiscriminato
55
82
  'user': GetContentGradesItemsInnerUserFromJSON(json['user']),
56
83
  'completion': json['completion'],
57
84
  'gradeStatus': json['grade_status'],
85
+ 'enrollmentStatus': json['enrollment_status'],
86
+ 'accessState': json['access_state'],
58
87
  };
59
88
  }
60
89
  export function GetContentGradesItemsInnerToJSON(json) {
@@ -69,5 +98,7 @@ export function GetContentGradesItemsInnerToJSONTyped(value, ignoreDiscriminator
69
98
  'user': GetContentGradesItemsInnerUserToJSON(value['user']),
70
99
  'completion': value['completion'],
71
100
  'grade_status': value['gradeStatus'],
101
+ 'enrollment_status': value['enrollmentStatus'],
102
+ 'access_state': value['accessState'],
72
103
  };
73
104
  }
@@ -40,6 +40,18 @@ export interface GetContentGradesItemsInner {
40
40
  * @memberof GetContentGradesItemsInner
41
41
  */
42
42
  gradeStatus: GetContentGradesItemsInnerGradeStatusEnum;
43
+ /**
44
+ * Canonical student enrollment status used for this grade row
45
+ * @type {GetContentGradesItemsInnerEnrollmentStatusEnum}
46
+ * @memberof GetContentGradesItemsInner
47
+ */
48
+ enrollmentStatus: GetContentGradesItemsInnerEnrollmentStatusEnum;
49
+ /**
50
+ * Derived learner access state for UI indicators
51
+ * @type {GetContentGradesItemsInnerAccessStateEnum}
52
+ * @memberof GetContentGradesItemsInner
53
+ */
54
+ accessState: GetContentGradesItemsInnerAccessStateEnum;
43
55
  }
44
56
  /**
45
57
  * @export
@@ -62,6 +74,31 @@ export declare const GetContentGradesItemsInnerGradeStatusEnum: {
62
74
  readonly NotApplicable: "NotApplicable";
63
75
  };
64
76
  export type GetContentGradesItemsInnerGradeStatusEnum = typeof GetContentGradesItemsInnerGradeStatusEnum[keyof typeof GetContentGradesItemsInnerGradeStatusEnum];
77
+ /**
78
+ * @export
79
+ */
80
+ export declare const GetContentGradesItemsInnerEnrollmentStatusEnum: {
81
+ readonly Enrolled: "Enrolled";
82
+ readonly InProgress: "InProgress";
83
+ readonly Completed: "Completed";
84
+ readonly Failed: "Failed";
85
+ readonly Expired: "Expired";
86
+ readonly Withdrawn: "Withdrawn";
87
+ readonly Suspended: "Suspended";
88
+ };
89
+ export type GetContentGradesItemsInnerEnrollmentStatusEnum = typeof GetContentGradesItemsInnerEnrollmentStatusEnum[keyof typeof GetContentGradesItemsInnerEnrollmentStatusEnum];
90
+ /**
91
+ * @export
92
+ */
93
+ export declare const GetContentGradesItemsInnerAccessStateEnum: {
94
+ readonly Active: "active";
95
+ readonly CompletedReview: "completed_review";
96
+ readonly Expired: "expired";
97
+ readonly Suspended: "suspended";
98
+ readonly Failed: "failed";
99
+ readonly Withdrawn: "withdrawn";
100
+ };
101
+ export type GetContentGradesItemsInnerAccessStateEnum = typeof GetContentGradesItemsInnerAccessStateEnum[keyof typeof GetContentGradesItemsInnerAccessStateEnum];
65
102
  /**
66
103
  * Check if a given object implements the GetContentGradesItemsInner interface.
67
104
  */
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetContentGradesItemsInnerGradeStatusEnum = exports.GetContentGradesItemsInnerCompletionEnum = void 0;
16
+ exports.GetContentGradesItemsInnerAccessStateEnum = exports.GetContentGradesItemsInnerEnrollmentStatusEnum = exports.GetContentGradesItemsInnerGradeStatusEnum = exports.GetContentGradesItemsInnerCompletionEnum = void 0;
17
17
  exports.instanceOfGetContentGradesItemsInner = instanceOfGetContentGradesItemsInner;
18
18
  exports.GetContentGradesItemsInnerFromJSON = GetContentGradesItemsInnerFromJSON;
19
19
  exports.GetContentGradesItemsInnerFromJSONTyped = GetContentGradesItemsInnerFromJSONTyped;
@@ -39,6 +39,29 @@ exports.GetContentGradesItemsInnerGradeStatusEnum = {
39
39
  PercentageEarned: 'PercentageEarned',
40
40
  NotApplicable: 'NotApplicable'
41
41
  };
42
+ /**
43
+ * @export
44
+ */
45
+ exports.GetContentGradesItemsInnerEnrollmentStatusEnum = {
46
+ Enrolled: 'Enrolled',
47
+ InProgress: 'InProgress',
48
+ Completed: 'Completed',
49
+ Failed: 'Failed',
50
+ Expired: 'Expired',
51
+ Withdrawn: 'Withdrawn',
52
+ Suspended: 'Suspended'
53
+ };
54
+ /**
55
+ * @export
56
+ */
57
+ exports.GetContentGradesItemsInnerAccessStateEnum = {
58
+ Active: 'active',
59
+ CompletedReview: 'completed_review',
60
+ Expired: 'expired',
61
+ Suspended: 'suspended',
62
+ Failed: 'failed',
63
+ Withdrawn: 'withdrawn'
64
+ };
42
65
  /**
43
66
  * Check if a given object implements the GetContentGradesItemsInner interface.
44
67
  */
@@ -49,6 +72,10 @@ function instanceOfGetContentGradesItemsInner(value) {
49
72
  return false;
50
73
  if (!('gradeStatus' in value) || value['gradeStatus'] === undefined)
51
74
  return false;
75
+ if (!('enrollmentStatus' in value) || value['enrollmentStatus'] === undefined)
76
+ return false;
77
+ if (!('accessState' in value) || value['accessState'] === undefined)
78
+ return false;
52
79
  return true;
53
80
  }
54
81
  function GetContentGradesItemsInnerFromJSON(json) {
@@ -63,6 +90,8 @@ function GetContentGradesItemsInnerFromJSONTyped(json, ignoreDiscriminator) {
63
90
  'user': (0, GetContentGradesItemsInnerUser_1.GetContentGradesItemsInnerUserFromJSON)(json['user']),
64
91
  'completion': json['completion'],
65
92
  'gradeStatus': json['grade_status'],
93
+ 'enrollmentStatus': json['enrollment_status'],
94
+ 'accessState': json['access_state'],
66
95
  };
67
96
  }
68
97
  function GetContentGradesItemsInnerToJSON(json) {
@@ -77,5 +106,7 @@ function GetContentGradesItemsInnerToJSONTyped(value, ignoreDiscriminator = fals
77
106
  'user': (0, GetContentGradesItemsInnerUser_1.GetContentGradesItemsInnerUserToJSON)(value['user']),
78
107
  'completion': value['completion'],
79
108
  'grade_status': value['gradeStatus'],
109
+ 'enrollment_status': value['enrollmentStatus'],
110
+ 'access_state': value['accessState'],
80
111
  };
81
112
  }
package/docs/CourseApi.md CHANGED
@@ -729,7 +729,7 @@ No authorization required
729
729
 
730
730
  ## getCourseList
731
731
 
732
- > GetCourseList getCourseList(page, pageSize, enrolled, search)
732
+ > GetCourseList getCourseList(page, pageSize, enrolled, search, recentActivitySince)
733
733
 
734
734
  get course list
735
735
 
@@ -755,6 +755,8 @@ async function example() {
755
755
  enrolled: true,
756
756
  // string | Case-insensitive substring match against course name or description (optional)
757
757
  search: search_example,
758
+ // number | Unix timestamp in seconds. Filters to courses with live content activity updated at or after this time in the selected portal. (optional)
759
+ recentActivitySince: 789,
758
760
  } satisfies GetCourseListRequest;
759
761
 
760
762
  try {
@@ -778,6 +780,7 @@ example().catch(console.error);
778
780
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
779
781
  | **enrolled** | `boolean` | Filter to only courses the authenticated user is enrolled in | [Optional] [Defaults to `undefined`] |
780
782
  | **search** | `string` | Case-insensitive substring match against course name or description | [Optional] [Defaults to `undefined`] |
783
+ | **recentActivitySince** | `number` | Unix timestamp in seconds. Filters to courses with live content activity updated at or after this time in the selected portal. | [Optional] [Defaults to `undefined`] |
781
784
 
782
785
  ### Return type
783
786
 
@@ -10,6 +10,8 @@ Name | Type
10
10
  `user` | [GetContentGradesItemsInnerUser](GetContentGradesItemsInnerUser.md)
11
11
  `completion` | string
12
12
  `gradeStatus` | string
13
+ `enrollmentStatus` | string
14
+ `accessState` | string
13
15
 
14
16
  ## Example
15
17
 
@@ -22,6 +24,8 @@ const example = {
22
24
  "user": null,
23
25
  "completion": null,
24
26
  "gradeStatus": null,
27
+ "enrollmentStatus": null,
28
+ "accessState": null,
25
29
  } satisfies GetContentGradesItemsInner
26
30
 
27
31
  console.log(example)
@@ -95,7 +95,7 @@ No authorization required
95
95
 
96
96
  ## getContentGrades
97
97
 
98
- > GetContentGrades getContentGrades(courseId, moduleId, contentId, page, pageSize, search)
98
+ > GetContentGrades getContentGrades(courseId, moduleId, contentId, page, pageSize, search, includeInactive, enrollmentStatus)
99
99
 
100
100
  Get grades for all students enrolled in course for specific content
101
101
 
@@ -125,6 +125,10 @@ async function example() {
125
125
  pageSize: 56,
126
126
  // string | Search filter for user first name or last name (optional)
127
127
  search: search_example,
128
+ // boolean | Include inactive student enrollment statuses in the gradebook result. When false, includes Enrolled, InProgress, and Completed. When true, also includes Failed, Expired, Withdrawn, and Suspended. Removed and Archived are always excluded. (optional)
129
+ includeInactive: true,
130
+ // string | Comma-separated enrollment statuses to include. Allowed values are Enrolled, InProgress, Completed, Failed, Expired, Withdrawn, and Suspended. Overrides includeInactive when present. (optional)
131
+ enrollmentStatus: enrollmentStatus_example,
128
132
  } satisfies GetContentGradesRequest;
129
133
 
130
134
  try {
@@ -150,6 +154,8 @@ example().catch(console.error);
150
154
  | **page** | `number` | Page number for pagination | [Optional] [Defaults to `1`] |
151
155
  | **pageSize** | `number` | Number of items per page | [Optional] [Defaults to `20`] |
152
156
  | **search** | `string` | Search filter for user first name or last name | [Optional] [Defaults to `undefined`] |
157
+ | **includeInactive** | `boolean` | Include inactive student enrollment statuses in the gradebook result. When false, includes Enrolled, InProgress, and Completed. When true, also includes Failed, Expired, Withdrawn, and Suspended. Removed and Archived are always excluded. | [Optional] [Defaults to `false`] |
158
+ | **enrollmentStatus** | `string` | Comma-separated enrollment statuses to include. Allowed values are Enrolled, InProgress, Completed, Failed, Expired, Withdrawn, and Suspended. Overrides includeInactive when present. | [Optional] [Defaults to `undefined`] |
153
159
 
154
160
  ### Return type
155
161
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.75.0",
3
+ "version": "1.77.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -141,6 +141,7 @@ export interface GetCourseListRequest {
141
141
  pageSize?: number;
142
142
  enrolled?: boolean;
143
143
  search?: string;
144
+ recentActivitySince?: number;
144
145
  }
145
146
 
146
147
  export interface GetCourseReportingBasicRequest {
@@ -725,6 +726,10 @@ export class CourseApi extends runtime.BaseAPI {
725
726
  queryParameters['search'] = requestParameters['search'];
726
727
  }
727
728
 
729
+ if (requestParameters['recentActivitySince'] != null) {
730
+ queryParameters['recentActivitySince'] = requestParameters['recentActivitySince'];
731
+ }
732
+
728
733
  const headerParameters: runtime.HTTPHeaders = {};
729
734
 
730
735
 
@@ -73,6 +73,8 @@ export interface GetContentGradesRequest {
73
73
  page?: number;
74
74
  pageSize?: number;
75
75
  search?: string;
76
+ includeInactive?: boolean;
77
+ enrollmentStatus?: string;
76
78
  }
77
79
 
78
80
  export interface GetContentInstructorBasicReportingRequest {
@@ -223,6 +225,14 @@ export class ReportingApi extends runtime.BaseAPI {
223
225
  queryParameters['search'] = requestParameters['search'];
224
226
  }
225
227
 
228
+ if (requestParameters['includeInactive'] != null) {
229
+ queryParameters['includeInactive'] = requestParameters['includeInactive'];
230
+ }
231
+
232
+ if (requestParameters['enrollmentStatus'] != null) {
233
+ queryParameters['enrollmentStatus'] = requestParameters['enrollmentStatus'];
234
+ }
235
+
226
236
  const headerParameters: runtime.HTTPHeaders = {};
227
237
 
228
238
 
@@ -51,6 +51,18 @@ export interface GetContentGradesItemsInner {
51
51
  * @memberof GetContentGradesItemsInner
52
52
  */
53
53
  gradeStatus: GetContentGradesItemsInnerGradeStatusEnum;
54
+ /**
55
+ * Canonical student enrollment status used for this grade row
56
+ * @type {GetContentGradesItemsInnerEnrollmentStatusEnum}
57
+ * @memberof GetContentGradesItemsInner
58
+ */
59
+ enrollmentStatus: GetContentGradesItemsInnerEnrollmentStatusEnum;
60
+ /**
61
+ * Derived learner access state for UI indicators
62
+ * @type {GetContentGradesItemsInnerAccessStateEnum}
63
+ * @memberof GetContentGradesItemsInner
64
+ */
65
+ accessState: GetContentGradesItemsInnerAccessStateEnum;
54
66
  }
55
67
 
56
68
 
@@ -77,6 +89,33 @@ export const GetContentGradesItemsInnerGradeStatusEnum = {
77
89
  } as const;
78
90
  export type GetContentGradesItemsInnerGradeStatusEnum = typeof GetContentGradesItemsInnerGradeStatusEnum[keyof typeof GetContentGradesItemsInnerGradeStatusEnum];
79
91
 
92
+ /**
93
+ * @export
94
+ */
95
+ export const GetContentGradesItemsInnerEnrollmentStatusEnum = {
96
+ Enrolled: 'Enrolled',
97
+ InProgress: 'InProgress',
98
+ Completed: 'Completed',
99
+ Failed: 'Failed',
100
+ Expired: 'Expired',
101
+ Withdrawn: 'Withdrawn',
102
+ Suspended: 'Suspended'
103
+ } as const;
104
+ export type GetContentGradesItemsInnerEnrollmentStatusEnum = typeof GetContentGradesItemsInnerEnrollmentStatusEnum[keyof typeof GetContentGradesItemsInnerEnrollmentStatusEnum];
105
+
106
+ /**
107
+ * @export
108
+ */
109
+ export const GetContentGradesItemsInnerAccessStateEnum = {
110
+ Active: 'active',
111
+ CompletedReview: 'completed_review',
112
+ Expired: 'expired',
113
+ Suspended: 'suspended',
114
+ Failed: 'failed',
115
+ Withdrawn: 'withdrawn'
116
+ } as const;
117
+ export type GetContentGradesItemsInnerAccessStateEnum = typeof GetContentGradesItemsInnerAccessStateEnum[keyof typeof GetContentGradesItemsInnerAccessStateEnum];
118
+
80
119
 
81
120
  /**
82
121
  * Check if a given object implements the GetContentGradesItemsInner interface.
@@ -85,6 +124,8 @@ export function instanceOfGetContentGradesItemsInner(value: object): value is Ge
85
124
  if (!('user' in value) || value['user'] === undefined) return false;
86
125
  if (!('completion' in value) || value['completion'] === undefined) return false;
87
126
  if (!('gradeStatus' in value) || value['gradeStatus'] === undefined) return false;
127
+ if (!('enrollmentStatus' in value) || value['enrollmentStatus'] === undefined) return false;
128
+ if (!('accessState' in value) || value['accessState'] === undefined) return false;
88
129
  return true;
89
130
  }
90
131
 
@@ -102,6 +143,8 @@ export function GetContentGradesItemsInnerFromJSONTyped(json: any, ignoreDiscrim
102
143
  'user': GetContentGradesItemsInnerUserFromJSON(json['user']),
103
144
  'completion': json['completion'],
104
145
  'gradeStatus': json['grade_status'],
146
+ 'enrollmentStatus': json['enrollment_status'],
147
+ 'accessState': json['access_state'],
105
148
  };
106
149
  }
107
150
 
@@ -120,6 +163,8 @@ export function GetContentGradesItemsInnerToJSONTyped(value?: GetContentGradesIt
120
163
  'user': GetContentGradesItemsInnerUserToJSON(value['user']),
121
164
  'completion': value['completion'],
122
165
  'grade_status': value['gradeStatus'],
166
+ 'enrollment_status': value['enrollmentStatus'],
167
+ 'access_state': value['accessState'],
123
168
  };
124
169
  }
125
170