@easyedu/js-lsm-api 1.44.0 → 1.46.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.44.0
1
+ # @easyedu/js-lsm-api@1.46.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -417,7 +417,7 @@ and is automatically generated by the
417
417
  [OpenAPI Generator](https://openapi-generator.tech) project:
418
418
 
419
419
  - API version: `1.0.0`
420
- - Package version: `1.44.0`
420
+ - Package version: `1.46.0`
421
421
  - Generator version: `7.21.0`
422
422
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
423
423
 
@@ -27,12 +27,6 @@ export interface PostCourse {
27
27
  * @memberof PostCourse
28
28
  */
29
29
  description: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof PostCourse
34
- */
35
- instructor: string;
36
30
  }
37
31
  /**
38
32
  * Check if a given object implements the PostCourse interface.
@@ -19,8 +19,6 @@ export function instanceOfPostCourse(value) {
19
19
  return false;
20
20
  if (!('description' in value) || value['description'] === undefined)
21
21
  return false;
22
- if (!('instructor' in value) || value['instructor'] === undefined)
23
- return false;
24
22
  return true;
25
23
  }
26
24
  export function PostCourseFromJSON(json) {
@@ -33,7 +31,6 @@ export function PostCourseFromJSONTyped(json, ignoreDiscriminator) {
33
31
  return {
34
32
  'name': json['name'],
35
33
  'description': json['description'],
36
- 'instructor': json['instructor'],
37
34
  };
38
35
  }
39
36
  export function PostCourseToJSON(json) {
@@ -46,6 +43,5 @@ export function PostCourseToJSONTyped(value, ignoreDiscriminator = false) {
46
43
  return {
47
44
  'name': value['name'],
48
45
  'description': value['description'],
49
- 'instructor': value['instructor'],
50
46
  };
51
47
  }
@@ -39,7 +39,21 @@ export interface PostCourseEnrollment {
39
39
  * @memberof PostCourseEnrollment
40
40
  */
41
41
  notes?: string | null;
42
+ /**
43
+ * The role/type of the user in this enrollment
44
+ * @type {PostCourseEnrollmentUserTypeEnum}
45
+ * @memberof PostCourseEnrollment
46
+ */
47
+ userType?: PostCourseEnrollmentUserTypeEnum | null;
42
48
  }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PostCourseEnrollmentUserTypeEnum: {
53
+ readonly Student: "Student";
54
+ readonly Instructor: "Instructor";
55
+ };
56
+ export type PostCourseEnrollmentUserTypeEnum = typeof PostCourseEnrollmentUserTypeEnum[keyof typeof PostCourseEnrollmentUserTypeEnum];
43
57
  /**
44
58
  * Check if a given object implements the PostCourseEnrollment interface.
45
59
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const PostCourseEnrollmentUserTypeEnum = {
18
+ Student: 'Student',
19
+ Instructor: 'Instructor'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the PostCourseEnrollment interface.
16
23
  */
@@ -33,6 +40,7 @@ export function PostCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
33
40
  'enrollmentDateStart': json['enrollment_date_start'],
34
41
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
35
42
  'notes': json['notes'] == null ? undefined : json['notes'],
43
+ 'userType': json['user_type'] == null ? undefined : json['user_type'],
36
44
  };
37
45
  }
38
46
  export function PostCourseEnrollmentToJSON(json) {
@@ -47,5 +55,6 @@ export function PostCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = fal
47
55
  'enrollment_date_start': value['enrollmentDateStart'],
48
56
  'enrollment_date_end': value['enrollmentDateEnd'],
49
57
  'notes': value['notes'],
58
+ 'user_type': value['userType'],
50
59
  };
51
60
  }
@@ -27,12 +27,6 @@ export interface PostCourse {
27
27
  * @memberof PostCourse
28
28
  */
29
29
  description: string;
30
- /**
31
- *
32
- * @type {string}
33
- * @memberof PostCourse
34
- */
35
- instructor: string;
36
30
  }
37
31
  /**
38
32
  * Check if a given object implements the PostCourse interface.
@@ -26,8 +26,6 @@ function instanceOfPostCourse(value) {
26
26
  return false;
27
27
  if (!('description' in value) || value['description'] === undefined)
28
28
  return false;
29
- if (!('instructor' in value) || value['instructor'] === undefined)
30
- return false;
31
29
  return true;
32
30
  }
33
31
  function PostCourseFromJSON(json) {
@@ -40,7 +38,6 @@ function PostCourseFromJSONTyped(json, ignoreDiscriminator) {
40
38
  return {
41
39
  'name': json['name'],
42
40
  'description': json['description'],
43
- 'instructor': json['instructor'],
44
41
  };
45
42
  }
46
43
  function PostCourseToJSON(json) {
@@ -53,6 +50,5 @@ function PostCourseToJSONTyped(value, ignoreDiscriminator = false) {
53
50
  return {
54
51
  'name': value['name'],
55
52
  'description': value['description'],
56
- 'instructor': value['instructor'],
57
53
  };
58
54
  }
@@ -39,7 +39,21 @@ export interface PostCourseEnrollment {
39
39
  * @memberof PostCourseEnrollment
40
40
  */
41
41
  notes?: string | null;
42
+ /**
43
+ * The role/type of the user in this enrollment
44
+ * @type {PostCourseEnrollmentUserTypeEnum}
45
+ * @memberof PostCourseEnrollment
46
+ */
47
+ userType?: PostCourseEnrollmentUserTypeEnum | null;
42
48
  }
49
+ /**
50
+ * @export
51
+ */
52
+ export declare const PostCourseEnrollmentUserTypeEnum: {
53
+ readonly Student: "Student";
54
+ readonly Instructor: "Instructor";
55
+ };
56
+ export type PostCourseEnrollmentUserTypeEnum = typeof PostCourseEnrollmentUserTypeEnum[keyof typeof PostCourseEnrollmentUserTypeEnum];
43
57
  /**
44
58
  * Check if a given object implements the PostCourseEnrollment interface.
45
59
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PostCourseEnrollmentUserTypeEnum = void 0;
16
17
  exports.instanceOfPostCourseEnrollment = instanceOfPostCourseEnrollment;
17
18
  exports.PostCourseEnrollmentFromJSON = PostCourseEnrollmentFromJSON;
18
19
  exports.PostCourseEnrollmentFromJSONTyped = PostCourseEnrollmentFromJSONTyped;
19
20
  exports.PostCourseEnrollmentToJSON = PostCourseEnrollmentToJSON;
20
21
  exports.PostCourseEnrollmentToJSONTyped = PostCourseEnrollmentToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.PostCourseEnrollmentUserTypeEnum = {
26
+ Student: 'Student',
27
+ Instructor: 'Instructor'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the PostCourseEnrollment interface.
23
31
  */
@@ -40,6 +48,7 @@ function PostCourseEnrollmentFromJSONTyped(json, ignoreDiscriminator) {
40
48
  'enrollmentDateStart': json['enrollment_date_start'],
41
49
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
42
50
  'notes': json['notes'] == null ? undefined : json['notes'],
51
+ 'userType': json['user_type'] == null ? undefined : json['user_type'],
43
52
  };
44
53
  }
45
54
  function PostCourseEnrollmentToJSON(json) {
@@ -54,5 +63,6 @@ function PostCourseEnrollmentToJSONTyped(value, ignoreDiscriminator = false) {
54
63
  'enrollment_date_start': value['enrollmentDateStart'],
55
64
  'enrollment_date_end': value['enrollmentDateEnd'],
56
65
  'notes': value['notes'],
66
+ 'user_type': value['userType'],
57
67
  };
58
68
  }
@@ -8,7 +8,6 @@ Name | Type
8
8
  ------------ | -------------
9
9
  `name` | string
10
10
  `description` | string
11
- `instructor` | string
12
11
 
13
12
  ## Example
14
13
 
@@ -19,7 +18,6 @@ import type { PostCourse } from '@easyedu/js-lsm-api'
19
18
  const example = {
20
19
  "name": null,
21
20
  "description": null,
22
- "instructor": null,
23
21
  } satisfies PostCourse
24
22
 
25
23
  console.log(example)
@@ -10,6 +10,7 @@ Name | Type
10
10
  `enrollmentDateStart` | number
11
11
  `enrollmentDateEnd` | number
12
12
  `notes` | string
13
+ `userType` | string
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const example = {
22
23
  "enrollmentDateStart": null,
23
24
  "enrollmentDateEnd": null,
24
25
  "notes": null,
26
+ "userType": null,
25
27
  } satisfies PostCourseEnrollment
26
28
 
27
29
  console.log(example)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.44.0",
3
+ "version": "1.46.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -31,12 +31,6 @@ export interface PostCourse {
31
31
  * @memberof PostCourse
32
32
  */
33
33
  description: string;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof PostCourse
38
- */
39
- instructor: string;
40
34
  }
41
35
 
42
36
  /**
@@ -45,7 +39,6 @@ export interface PostCourse {
45
39
  export function instanceOfPostCourse(value: object): value is PostCourse {
46
40
  if (!('name' in value) || value['name'] === undefined) return false;
47
41
  if (!('description' in value) || value['description'] === undefined) return false;
48
- if (!('instructor' in value) || value['instructor'] === undefined) return false;
49
42
  return true;
50
43
  }
51
44
 
@@ -61,7 +54,6 @@ export function PostCourseFromJSONTyped(json: any, ignoreDiscriminator: boolean)
61
54
 
62
55
  'name': json['name'],
63
56
  'description': json['description'],
64
- 'instructor': json['instructor'],
65
57
  };
66
58
  }
67
59
 
@@ -78,7 +70,6 @@ export function PostCourseToJSONTyped(value?: PostCourse | null, ignoreDiscrimin
78
70
 
79
71
  'name': value['name'],
80
72
  'description': value['description'],
81
- 'instructor': value['instructor'],
82
73
  };
83
74
  }
84
75
 
@@ -43,8 +43,25 @@ export interface PostCourseEnrollment {
43
43
  * @memberof PostCourseEnrollment
44
44
  */
45
45
  notes?: string | null;
46
+ /**
47
+ * The role/type of the user in this enrollment
48
+ * @type {PostCourseEnrollmentUserTypeEnum}
49
+ * @memberof PostCourseEnrollment
50
+ */
51
+ userType?: PostCourseEnrollmentUserTypeEnum | null;
46
52
  }
47
53
 
54
+
55
+ /**
56
+ * @export
57
+ */
58
+ export const PostCourseEnrollmentUserTypeEnum = {
59
+ Student: 'Student',
60
+ Instructor: 'Instructor'
61
+ } as const;
62
+ export type PostCourseEnrollmentUserTypeEnum = typeof PostCourseEnrollmentUserTypeEnum[keyof typeof PostCourseEnrollmentUserTypeEnum];
63
+
64
+
48
65
  /**
49
66
  * Check if a given object implements the PostCourseEnrollment interface.
50
67
  */
@@ -68,6 +85,7 @@ export function PostCourseEnrollmentFromJSONTyped(json: any, ignoreDiscriminator
68
85
  'enrollmentDateStart': json['enrollment_date_start'],
69
86
  'enrollmentDateEnd': json['enrollment_date_end'] == null ? undefined : json['enrollment_date_end'],
70
87
  'notes': json['notes'] == null ? undefined : json['notes'],
88
+ 'userType': json['user_type'] == null ? undefined : json['user_type'],
71
89
  };
72
90
  }
73
91
 
@@ -86,6 +104,7 @@ export function PostCourseEnrollmentToJSONTyped(value?: PostCourseEnrollment | n
86
104
  'enrollment_date_start': value['enrollmentDateStart'],
87
105
  'enrollment_date_end': value['enrollmentDateEnd'],
88
106
  'notes': value['notes'],
107
+ 'user_type': value['userType'],
89
108
  };
90
109
  }
91
110