@easyedu/js-lsm-api 1.106.0 → 1.108.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 (56) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +7 -4
  3. package/dist/apis/CourseApi.d.ts +30 -2
  4. package/dist/apis/CourseApi.js +59 -3
  5. package/dist/apis/CourseCatalogApi.d.ts +8 -3
  6. package/dist/apis/CourseCatalogApi.js +14 -7
  7. package/dist/apis/CourseShareApi.d.ts +31 -12
  8. package/dist/apis/CourseShareApi.js +44 -16
  9. package/dist/esm/apis/CourseApi.d.ts +30 -2
  10. package/dist/esm/apis/CourseApi.js +58 -2
  11. package/dist/esm/apis/CourseCatalogApi.d.ts +8 -3
  12. package/dist/esm/apis/CourseCatalogApi.js +14 -7
  13. package/dist/esm/apis/CourseShareApi.d.ts +31 -12
  14. package/dist/esm/apis/CourseShareApi.js +43 -15
  15. package/dist/esm/models/CourseShare.d.ts +57 -9
  16. package/dist/esm/models/CourseShare.js +32 -0
  17. package/dist/esm/models/GetCourseCatalogList.d.ts +57 -0
  18. package/dist/esm/models/GetCourseCatalogList.js +60 -0
  19. package/dist/esm/models/GetCourseExport.d.ts +6 -0
  20. package/dist/esm/models/GetCourseExport.js +4 -0
  21. package/dist/esm/models/GetCourseShareList.d.ts +57 -0
  22. package/dist/esm/models/GetCourseShareList.js +60 -0
  23. package/dist/esm/models/PostOfferCatalog.d.ts +1 -1
  24. package/dist/esm/models/PostOfferCourse.d.ts +1 -1
  25. package/dist/esm/models/index.d.ts +2 -0
  26. package/dist/esm/models/index.js +2 -0
  27. package/dist/models/CourseShare.d.ts +57 -9
  28. package/dist/models/CourseShare.js +32 -0
  29. package/dist/models/GetCourseCatalogList.d.ts +57 -0
  30. package/dist/models/GetCourseCatalogList.js +67 -0
  31. package/dist/models/GetCourseExport.d.ts +6 -0
  32. package/dist/models/GetCourseExport.js +4 -0
  33. package/dist/models/GetCourseShareList.d.ts +57 -0
  34. package/dist/models/GetCourseShareList.js +67 -0
  35. package/dist/models/PostOfferCatalog.d.ts +1 -1
  36. package/dist/models/PostOfferCourse.d.ts +1 -1
  37. package/dist/models/index.d.ts +2 -0
  38. package/dist/models/index.js +2 -0
  39. package/docs/CourseApi.md +79 -1
  40. package/docs/CourseCatalogApi.md +15 -4
  41. package/docs/CourseShare.md +19 -3
  42. package/docs/CourseShareApi.md +39 -13
  43. package/docs/GetCourseCatalogList.md +42 -0
  44. package/docs/GetCourseExport.md +2 -0
  45. package/docs/GetCourseShareList.md +42 -0
  46. package/package.json +1 -1
  47. package/src/apis/CourseApi.ts +72 -2
  48. package/src/apis/CourseCatalogApi.ts +24 -6
  49. package/src/apis/CourseShareApi.ts +63 -19
  50. package/src/models/CourseShare.ts +81 -9
  51. package/src/models/GetCourseCatalogList.ts +110 -0
  52. package/src/models/GetCourseExport.ts +9 -0
  53. package/src/models/GetCourseShareList.ts +110 -0
  54. package/src/models/PostOfferCatalog.ts +1 -1
  55. package/src/models/PostOfferCourse.ts +1 -1
  56. package/src/models/index.ts +2 -0
@@ -0,0 +1,60 @@
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
+ import { CourseCatalogFromJSON, CourseCatalogToJSON, } from './CourseCatalog';
15
+ /**
16
+ * Check if a given object implements the GetCourseCatalogList interface.
17
+ */
18
+ export function instanceOfGetCourseCatalogList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetCourseCatalogListFromJSON(json) {
32
+ return GetCourseCatalogListFromJSONTyped(json, false);
33
+ }
34
+ export function GetCourseCatalogListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['pageSize'],
41
+ 'totalPages': json['totalPages'],
42
+ 'totalItems': json['totalItems'],
43
+ 'items': (json['items'].map(CourseCatalogFromJSON)),
44
+ };
45
+ }
46
+ export function GetCourseCatalogListToJSON(json) {
47
+ return GetCourseCatalogListToJSONTyped(json, false);
48
+ }
49
+ export function GetCourseCatalogListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalPages': value['totalPages'],
57
+ 'totalItems': value['totalItems'],
58
+ 'items': (value['items'].map(CourseCatalogToJSON)),
59
+ };
60
+ }
@@ -27,6 +27,12 @@ export interface GetCourseExport {
27
27
  * @memberof GetCourseExport
28
28
  */
29
29
  courseId: string;
30
+ /**
31
+ * Display name of the course being exported
32
+ * @type {string}
33
+ * @memberof GetCourseExport
34
+ */
35
+ courseName: string;
30
36
  /**
31
37
  * Immutable version used by the export; null only for historical records.
32
38
  * @type {string}
@@ -36,6 +36,8 @@ export function instanceOfGetCourseExport(value) {
36
36
  return false;
37
37
  if (!('courseId' in value) || value['courseId'] === undefined)
38
38
  return false;
39
+ if (!('courseName' in value) || value['courseName'] === undefined)
40
+ return false;
39
41
  if (!('exportType' in value) || value['exportType'] === undefined)
40
42
  return false;
41
43
  if (!('sectionIds' in value) || value['sectionIds'] === undefined)
@@ -58,6 +60,7 @@ export function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
58
60
  return {
59
61
  'id': json['id'],
60
62
  'courseId': json['course_id'],
63
+ 'courseName': json['course_name'],
61
64
  'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
62
65
  'exportType': json['export_type'],
63
66
  'sectionIds': json['section_ids'],
@@ -79,6 +82,7 @@ export function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
79
82
  return {
80
83
  'id': value['id'],
81
84
  'course_id': value['courseId'],
85
+ 'course_name': value['courseName'],
82
86
  'course_version_id': value['courseVersionId'],
83
87
  'export_type': value['exportType'],
84
88
  'section_ids': value['sectionIds'],
@@ -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
+ import type { CourseShare } from './CourseShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCourseShareList
17
+ */
18
+ export interface GetCourseShareList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetCourseShareList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetCourseShareList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetCourseShareList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetCourseShareList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<CourseShare>}
46
+ * @memberof GetCourseShareList
47
+ */
48
+ items: Array<CourseShare>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetCourseShareList interface.
52
+ */
53
+ export declare function instanceOfGetCourseShareList(value: object): value is GetCourseShareList;
54
+ export declare function GetCourseShareListFromJSON(json: any): GetCourseShareList;
55
+ export declare function GetCourseShareListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseShareList;
56
+ export declare function GetCourseShareListToJSON(json: any): GetCourseShareList;
57
+ export declare function GetCourseShareListToJSONTyped(value?: GetCourseShareList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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
+ import { CourseShareFromJSON, CourseShareToJSON, } from './CourseShare';
15
+ /**
16
+ * Check if a given object implements the GetCourseShareList interface.
17
+ */
18
+ export function instanceOfGetCourseShareList(value) {
19
+ if (!('page' in value) || value['page'] === undefined)
20
+ return false;
21
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
22
+ return false;
23
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
24
+ return false;
25
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
26
+ return false;
27
+ if (!('items' in value) || value['items'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function GetCourseShareListFromJSON(json) {
32
+ return GetCourseShareListFromJSONTyped(json, false);
33
+ }
34
+ export function GetCourseShareListFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'page': json['page'],
40
+ 'pageSize': json['pageSize'],
41
+ 'totalPages': json['totalPages'],
42
+ 'totalItems': json['totalItems'],
43
+ 'items': (json['items'].map(CourseShareFromJSON)),
44
+ };
45
+ }
46
+ export function GetCourseShareListToJSON(json) {
47
+ return GetCourseShareListToJSONTyped(json, false);
48
+ }
49
+ export function GetCourseShareListToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'page': value['page'],
55
+ 'pageSize': value['pageSize'],
56
+ 'totalPages': value['totalPages'],
57
+ 'totalItems': value['totalItems'],
58
+ 'items': (value['items'].map(CourseShareToJSON)),
59
+ };
60
+ }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface PostOfferCatalog {
18
18
  /**
19
- * External ID of the target (descendant) portal
19
+ * External ID of the target portal
20
20
  * @type {string}
21
21
  * @memberof PostOfferCatalog
22
22
  */
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface PostOfferCourse {
18
18
  /**
19
- * External ID of the target (descendant) portal
19
+ * External ID of the target portal
20
20
  * @type {string}
21
21
  * @memberof PostOfferCourse
22
22
  */
@@ -56,6 +56,7 @@ export * from './GetContentLibraryVersion';
56
56
  export * from './GetConversation';
57
57
  export * from './GetConversationList';
58
58
  export * from './GetCourse';
59
+ export * from './GetCourseCatalogList';
59
60
  export * from './GetCourseEnrollment';
60
61
  export * from './GetCourseEnrollmentList';
61
62
  export * from './GetCourseEnrollmentListItem';
@@ -63,6 +64,7 @@ export * from './GetCourseExport';
63
64
  export * from './GetCourseExportList';
64
65
  export * from './GetCourseImageUpload';
65
66
  export * from './GetCourseList';
67
+ export * from './GetCourseShareList';
66
68
  export * from './GetCourseVersion';
67
69
  export * from './GetCourseVersionItem';
68
70
  export * from './GetCourseVersionItemLaunch';
@@ -58,6 +58,7 @@ export * from './GetContentLibraryVersion';
58
58
  export * from './GetConversation';
59
59
  export * from './GetConversationList';
60
60
  export * from './GetCourse';
61
+ export * from './GetCourseCatalogList';
61
62
  export * from './GetCourseEnrollment';
62
63
  export * from './GetCourseEnrollmentList';
63
64
  export * from './GetCourseEnrollmentListItem';
@@ -65,6 +66,7 @@ export * from './GetCourseExport';
65
66
  export * from './GetCourseExportList';
66
67
  export * from './GetCourseImageUpload';
67
68
  export * from './GetCourseList';
69
+ export * from './GetCourseShareList';
68
70
  export * from './GetCourseVersion';
69
71
  export * from './GetCourseVersionItem';
70
72
  export * from './GetCourseVersionItemLaunch';
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Shape returned by `GET /course-shares/offered-to-me`. Includes joined source
14
- * portal name and course name so the child portal can render an inbox without
15
- * follow-up requests.
13
+ * Shared shape returned by the incoming and outgoing course-share lists. All
14
+ * resource identifiers are public external IDs so clients can link to the
15
+ * related course, portal, and catalog without exposing database keys.
16
16
  *
17
17
  * @export
18
18
  * @interface CourseShare
@@ -25,11 +25,11 @@ export interface CourseShare {
25
25
  */
26
26
  id: string;
27
27
  /**
28
- * Internal ID of the offering portal
29
- * @type {number}
28
+ * External ID of the offering portal
29
+ * @type {string}
30
30
  * @memberof CourseShare
31
31
  */
32
- sourcePortalId: number;
32
+ sourcePortalId: string;
33
33
  /**
34
34
  * Display name of the offering portal
35
35
  * @type {string}
@@ -37,11 +37,23 @@ export interface CourseShare {
37
37
  */
38
38
  sourcePortalName: string;
39
39
  /**
40
- * Internal ID of the offered course
41
- * @type {number}
40
+ * External ID of the receiving portal
41
+ * @type {string}
42
+ * @memberof CourseShare
43
+ */
44
+ targetPortalId: string;
45
+ /**
46
+ * Display name of the receiving portal
47
+ * @type {string}
48
+ * @memberof CourseShare
49
+ */
50
+ targetPortalName: string;
51
+ /**
52
+ * External ID of the offered course
53
+ * @type {string}
42
54
  * @memberof CourseShare
43
55
  */
44
- courseId: number;
56
+ courseId: string;
45
57
  /**
46
58
  * Display name of the offered course
47
59
  * @type {string}
@@ -66,6 +78,42 @@ export interface CourseShare {
66
78
  * @memberof CourseShare
67
79
  */
68
80
  allowResharing: boolean;
81
+ /**
82
+ * Per-share seat cap; null means unlimited
83
+ * @type {number}
84
+ * @memberof CourseShare
85
+ */
86
+ seatLimit: number | null;
87
+ /**
88
+ * External ID of the catalog that produced the offer, when applicable
89
+ * @type {string}
90
+ * @memberof CourseShare
91
+ */
92
+ originCatalogId: string | null;
93
+ /**
94
+ * Display name of the catalog that produced the offer, when applicable
95
+ * @type {string}
96
+ * @memberof CourseShare
97
+ */
98
+ originCatalogName: string | null;
99
+ /**
100
+ *
101
+ * @type {Date}
102
+ * @memberof CourseShare
103
+ */
104
+ offeredAt: Date;
105
+ /**
106
+ *
107
+ * @type {Date}
108
+ * @memberof CourseShare
109
+ */
110
+ respondedAt: Date | null;
111
+ /**
112
+ *
113
+ * @type {Date}
114
+ * @memberof CourseShare
115
+ */
116
+ revokedAt: Date | null;
69
117
  }
70
118
  /**
71
119
  * @export
@@ -47,6 +47,10 @@ function instanceOfCourseShare(value) {
47
47
  return false;
48
48
  if (!('sourcePortalName' in value) || value['sourcePortalName'] === undefined)
49
49
  return false;
50
+ if (!('targetPortalId' in value) || value['targetPortalId'] === undefined)
51
+ return false;
52
+ if (!('targetPortalName' in value) || value['targetPortalName'] === undefined)
53
+ return false;
50
54
  if (!('courseId' in value) || value['courseId'] === undefined)
51
55
  return false;
52
56
  if (!('courseName' in value) || value['courseName'] === undefined)
@@ -57,6 +61,18 @@ function instanceOfCourseShare(value) {
57
61
  return false;
58
62
  if (!('allowResharing' in value) || value['allowResharing'] === undefined)
59
63
  return false;
64
+ if (!('seatLimit' in value) || value['seatLimit'] === undefined)
65
+ return false;
66
+ if (!('originCatalogId' in value) || value['originCatalogId'] === undefined)
67
+ return false;
68
+ if (!('originCatalogName' in value) || value['originCatalogName'] === undefined)
69
+ return false;
70
+ if (!('offeredAt' in value) || value['offeredAt'] === undefined)
71
+ return false;
72
+ if (!('respondedAt' in value) || value['respondedAt'] === undefined)
73
+ return false;
74
+ if (!('revokedAt' in value) || value['revokedAt'] === undefined)
75
+ return false;
60
76
  return true;
61
77
  }
62
78
  function CourseShareFromJSON(json) {
@@ -70,11 +86,19 @@ function CourseShareFromJSONTyped(json, ignoreDiscriminator) {
70
86
  'id': json['id'],
71
87
  'sourcePortalId': json['source_portal_id'],
72
88
  'sourcePortalName': json['source_portal_name'],
89
+ 'targetPortalId': json['target_portal_id'],
90
+ 'targetPortalName': json['target_portal_name'],
73
91
  'courseId': json['course_id'],
74
92
  'courseName': json['course_name'],
75
93
  'allowedMode': json['allowed_mode'],
76
94
  'state': json['state'],
77
95
  'allowResharing': json['allow_resharing'],
96
+ 'seatLimit': json['seat_limit'],
97
+ 'originCatalogId': json['origin_catalog_id'],
98
+ 'originCatalogName': json['origin_catalog_name'],
99
+ 'offeredAt': (new Date(json['offered_at'])),
100
+ 'respondedAt': (json['responded_at'] == null ? null : new Date(json['responded_at'])),
101
+ 'revokedAt': (json['revoked_at'] == null ? null : new Date(json['revoked_at'])),
78
102
  };
79
103
  }
80
104
  function CourseShareToJSON(json) {
@@ -88,10 +112,18 @@ function CourseShareToJSONTyped(value, ignoreDiscriminator = false) {
88
112
  'id': value['id'],
89
113
  'source_portal_id': value['sourcePortalId'],
90
114
  'source_portal_name': value['sourcePortalName'],
115
+ 'target_portal_id': value['targetPortalId'],
116
+ 'target_portal_name': value['targetPortalName'],
91
117
  'course_id': value['courseId'],
92
118
  'course_name': value['courseName'],
93
119
  'allowed_mode': value['allowedMode'],
94
120
  'state': value['state'],
95
121
  'allow_resharing': value['allowResharing'],
122
+ 'seat_limit': value['seatLimit'],
123
+ 'origin_catalog_id': value['originCatalogId'],
124
+ 'origin_catalog_name': value['originCatalogName'],
125
+ 'offered_at': value['offeredAt'].toISOString(),
126
+ 'responded_at': value['respondedAt'] == null ? value['respondedAt'] : value['respondedAt'].toISOString(),
127
+ 'revoked_at': value['revokedAt'] == null ? value['revokedAt'] : value['revokedAt'].toISOString(),
96
128
  };
97
129
  }
@@ -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
+ import type { CourseCatalog } from './CourseCatalog';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCourseCatalogList
17
+ */
18
+ export interface GetCourseCatalogList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetCourseCatalogList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetCourseCatalogList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetCourseCatalogList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetCourseCatalogList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<CourseCatalog>}
46
+ * @memberof GetCourseCatalogList
47
+ */
48
+ items: Array<CourseCatalog>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetCourseCatalogList interface.
52
+ */
53
+ export declare function instanceOfGetCourseCatalogList(value: object): value is GetCourseCatalogList;
54
+ export declare function GetCourseCatalogListFromJSON(json: any): GetCourseCatalogList;
55
+ export declare function GetCourseCatalogListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseCatalogList;
56
+ export declare function GetCourseCatalogListToJSON(json: any): GetCourseCatalogList;
57
+ export declare function GetCourseCatalogListToJSONTyped(value?: GetCourseCatalogList | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * LMS API
6
+ * LMS API
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetCourseCatalogList = instanceOfGetCourseCatalogList;
17
+ exports.GetCourseCatalogListFromJSON = GetCourseCatalogListFromJSON;
18
+ exports.GetCourseCatalogListFromJSONTyped = GetCourseCatalogListFromJSONTyped;
19
+ exports.GetCourseCatalogListToJSON = GetCourseCatalogListToJSON;
20
+ exports.GetCourseCatalogListToJSONTyped = GetCourseCatalogListToJSONTyped;
21
+ const CourseCatalog_1 = require("./CourseCatalog");
22
+ /**
23
+ * Check if a given object implements the GetCourseCatalogList interface.
24
+ */
25
+ function instanceOfGetCourseCatalogList(value) {
26
+ if (!('page' in value) || value['page'] === undefined)
27
+ return false;
28
+ if (!('pageSize' in value) || value['pageSize'] === undefined)
29
+ return false;
30
+ if (!('totalPages' in value) || value['totalPages'] === undefined)
31
+ return false;
32
+ if (!('totalItems' in value) || value['totalItems'] === undefined)
33
+ return false;
34
+ if (!('items' in value) || value['items'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function GetCourseCatalogListFromJSON(json) {
39
+ return GetCourseCatalogListFromJSONTyped(json, false);
40
+ }
41
+ function GetCourseCatalogListFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'page': json['page'],
47
+ 'pageSize': json['pageSize'],
48
+ 'totalPages': json['totalPages'],
49
+ 'totalItems': json['totalItems'],
50
+ 'items': (json['items'].map(CourseCatalog_1.CourseCatalogFromJSON)),
51
+ };
52
+ }
53
+ function GetCourseCatalogListToJSON(json) {
54
+ return GetCourseCatalogListToJSONTyped(json, false);
55
+ }
56
+ function GetCourseCatalogListToJSONTyped(value, ignoreDiscriminator = false) {
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'page': value['page'],
62
+ 'pageSize': value['pageSize'],
63
+ 'totalPages': value['totalPages'],
64
+ 'totalItems': value['totalItems'],
65
+ 'items': (value['items'].map(CourseCatalog_1.CourseCatalogToJSON)),
66
+ };
67
+ }
@@ -27,6 +27,12 @@ export interface GetCourseExport {
27
27
  * @memberof GetCourseExport
28
28
  */
29
29
  courseId: string;
30
+ /**
31
+ * Display name of the course being exported
32
+ * @type {string}
33
+ * @memberof GetCourseExport
34
+ */
35
+ courseName: string;
30
36
  /**
31
37
  * Immutable version used by the export; null only for historical records.
32
38
  * @type {string}
@@ -44,6 +44,8 @@ function instanceOfGetCourseExport(value) {
44
44
  return false;
45
45
  if (!('courseId' in value) || value['courseId'] === undefined)
46
46
  return false;
47
+ if (!('courseName' in value) || value['courseName'] === undefined)
48
+ return false;
47
49
  if (!('exportType' in value) || value['exportType'] === undefined)
48
50
  return false;
49
51
  if (!('sectionIds' in value) || value['sectionIds'] === undefined)
@@ -66,6 +68,7 @@ function GetCourseExportFromJSONTyped(json, ignoreDiscriminator) {
66
68
  return {
67
69
  'id': json['id'],
68
70
  'courseId': json['course_id'],
71
+ 'courseName': json['course_name'],
69
72
  'courseVersionId': json['course_version_id'] == null ? undefined : json['course_version_id'],
70
73
  'exportType': json['export_type'],
71
74
  'sectionIds': json['section_ids'],
@@ -87,6 +90,7 @@ function GetCourseExportToJSONTyped(value, ignoreDiscriminator = false) {
87
90
  return {
88
91
  'id': value['id'],
89
92
  'course_id': value['courseId'],
93
+ 'course_name': value['courseName'],
90
94
  'course_version_id': value['courseVersionId'],
91
95
  'export_type': value['exportType'],
92
96
  'section_ids': value['sectionIds'],
@@ -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
+ import type { CourseShare } from './CourseShare';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetCourseShareList
17
+ */
18
+ export interface GetCourseShareList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetCourseShareList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetCourseShareList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetCourseShareList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetCourseShareList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<CourseShare>}
46
+ * @memberof GetCourseShareList
47
+ */
48
+ items: Array<CourseShare>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetCourseShareList interface.
52
+ */
53
+ export declare function instanceOfGetCourseShareList(value: object): value is GetCourseShareList;
54
+ export declare function GetCourseShareListFromJSON(json: any): GetCourseShareList;
55
+ export declare function GetCourseShareListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetCourseShareList;
56
+ export declare function GetCourseShareListToJSON(json: any): GetCourseShareList;
57
+ export declare function GetCourseShareListToJSONTyped(value?: GetCourseShareList | null, ignoreDiscriminator?: boolean): any;