@easyedu/js-lsm-api 1.107.0 → 1.109.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 (176) hide show
  1. package/.openapi-generator/FILES +20 -0
  2. package/README.md +21 -2
  3. package/dist/apis/ContentLibraryApi.d.ts +179 -0
  4. package/dist/apis/ContentLibraryApi.js +424 -1
  5. package/dist/apis/ContentLibraryQuizApi.d.ts +1 -0
  6. package/dist/apis/ContentLibraryQuizApi.js +3 -0
  7. package/dist/apis/CourseApi.d.ts +2 -2
  8. package/dist/apis/CourseApi.js +2 -2
  9. package/dist/apis/CourseCatalogApi.d.ts +8 -3
  10. package/dist/apis/CourseCatalogApi.js +14 -7
  11. package/dist/apis/CourseShareApi.d.ts +12 -7
  12. package/dist/apis/CourseShareApi.js +20 -5
  13. package/dist/apis/QuestionApi.d.ts +0 -1
  14. package/dist/apis/QuestionApi.js +0 -3
  15. package/dist/esm/apis/ContentLibraryApi.d.ts +179 -0
  16. package/dist/esm/apis/ContentLibraryApi.js +423 -0
  17. package/dist/esm/apis/ContentLibraryQuizApi.d.ts +1 -0
  18. package/dist/esm/apis/ContentLibraryQuizApi.js +3 -0
  19. package/dist/esm/apis/CourseApi.d.ts +2 -2
  20. package/dist/esm/apis/CourseApi.js +2 -2
  21. package/dist/esm/apis/CourseCatalogApi.d.ts +8 -3
  22. package/dist/esm/apis/CourseCatalogApi.js +14 -7
  23. package/dist/esm/apis/CourseShareApi.d.ts +12 -7
  24. package/dist/esm/apis/CourseShareApi.js +20 -5
  25. package/dist/esm/apis/QuestionApi.d.ts +0 -1
  26. package/dist/esm/apis/QuestionApi.js +0 -3
  27. package/dist/esm/models/ContentLibraryTag.d.ts +104 -0
  28. package/dist/esm/models/ContentLibraryTag.js +85 -0
  29. package/dist/esm/models/ContentLibraryTagItem.d.ts +84 -0
  30. package/dist/esm/models/ContentLibraryTagItem.js +76 -0
  31. package/dist/esm/models/CourseShareAcceptError.d.ts +54 -0
  32. package/dist/esm/models/CourseShareAcceptError.js +62 -0
  33. package/dist/esm/models/GetContentLibraryTagItemList.d.ts +57 -0
  34. package/dist/esm/models/GetContentLibraryTagItemList.js +60 -0
  35. package/dist/esm/models/GetContentLibraryTagList.d.ts +57 -0
  36. package/dist/esm/models/GetContentLibraryTagList.js +60 -0
  37. package/dist/esm/models/GetCourseCatalogList.d.ts +57 -0
  38. package/dist/esm/models/GetCourseCatalogList.js +60 -0
  39. package/dist/esm/models/GetCourseShareList.d.ts +57 -0
  40. package/dist/esm/models/GetCourseShareList.js +60 -0
  41. package/dist/esm/models/GetLibraryQuiz.d.ts +7 -0
  42. package/dist/esm/models/GetLibraryQuiz.js +5 -0
  43. package/dist/esm/models/GetQuestion.d.ts +0 -6
  44. package/dist/esm/models/GetQuestion.js +0 -4
  45. package/dist/esm/models/GetQuestionListFilters.d.ts +0 -6
  46. package/dist/esm/models/GetQuestionListFilters.js +0 -2
  47. package/dist/esm/models/GetResource.d.ts +7 -0
  48. package/dist/esm/models/GetResource.js +5 -0
  49. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  50. package/dist/esm/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  51. package/dist/esm/models/LibraryQuizCriterion.d.ts +0 -6
  52. package/dist/esm/models/LibraryQuizCriterion.js +0 -2
  53. package/dist/esm/models/PostContentLibraryTag.d.ts +32 -0
  54. package/dist/esm/models/PostContentLibraryTag.js +43 -0
  55. package/dist/esm/models/PostContentLibraryTagMerge.d.ts +32 -0
  56. package/dist/esm/models/PostContentLibraryTagMerge.js +43 -0
  57. package/dist/esm/models/PostLibraryQuiz.d.ts +6 -0
  58. package/dist/esm/models/PostLibraryQuiz.js +2 -0
  59. package/dist/esm/models/PostQuestion.d.ts +0 -6
  60. package/dist/esm/models/PostQuestion.js +0 -4
  61. package/dist/esm/models/PostResource.d.ts +6 -0
  62. package/dist/esm/models/PostResource.js +2 -0
  63. package/dist/esm/models/PutContentLibraryTag.d.ts +32 -0
  64. package/dist/esm/models/PutContentLibraryTag.js +43 -0
  65. package/dist/esm/models/PutLibraryQuiz.d.ts +6 -0
  66. package/dist/esm/models/PutLibraryQuiz.js +2 -0
  67. package/dist/esm/models/PutQuestion.d.ts +0 -6
  68. package/dist/esm/models/PutQuestion.js +0 -2
  69. package/dist/esm/models/PutResource.d.ts +6 -0
  70. package/dist/esm/models/PutResource.js +2 -0
  71. package/dist/esm/models/index.d.ts +10 -0
  72. package/dist/esm/models/index.js +10 -0
  73. package/dist/models/ContentLibraryTag.d.ts +104 -0
  74. package/dist/models/ContentLibraryTag.js +92 -0
  75. package/dist/models/ContentLibraryTagItem.d.ts +84 -0
  76. package/dist/models/ContentLibraryTagItem.js +84 -0
  77. package/dist/models/CourseShareAcceptError.d.ts +54 -0
  78. package/dist/models/CourseShareAcceptError.js +70 -0
  79. package/dist/models/GetContentLibraryTagItemList.d.ts +57 -0
  80. package/dist/models/GetContentLibraryTagItemList.js +67 -0
  81. package/dist/models/GetContentLibraryTagList.d.ts +57 -0
  82. package/dist/models/GetContentLibraryTagList.js +67 -0
  83. package/dist/models/GetCourseCatalogList.d.ts +57 -0
  84. package/dist/models/GetCourseCatalogList.js +67 -0
  85. package/dist/models/GetCourseShareList.d.ts +57 -0
  86. package/dist/models/GetCourseShareList.js +67 -0
  87. package/dist/models/GetLibraryQuiz.d.ts +7 -0
  88. package/dist/models/GetLibraryQuiz.js +5 -0
  89. package/dist/models/GetQuestion.d.ts +0 -6
  90. package/dist/models/GetQuestion.js +0 -4
  91. package/dist/models/GetQuestionListFilters.d.ts +0 -6
  92. package/dist/models/GetQuestionListFilters.js +0 -2
  93. package/dist/models/GetResource.d.ts +7 -0
  94. package/dist/models/GetResource.js +5 -0
  95. package/dist/models/LibraryQuizCriteriaPreviewQuestion.d.ts +0 -6
  96. package/dist/models/LibraryQuizCriteriaPreviewQuestion.js +0 -4
  97. package/dist/models/LibraryQuizCriterion.d.ts +0 -6
  98. package/dist/models/LibraryQuizCriterion.js +0 -2
  99. package/dist/models/PostContentLibraryTag.d.ts +32 -0
  100. package/dist/models/PostContentLibraryTag.js +50 -0
  101. package/dist/models/PostContentLibraryTagMerge.d.ts +32 -0
  102. package/dist/models/PostContentLibraryTagMerge.js +50 -0
  103. package/dist/models/PostLibraryQuiz.d.ts +6 -0
  104. package/dist/models/PostLibraryQuiz.js +2 -0
  105. package/dist/models/PostQuestion.d.ts +0 -6
  106. package/dist/models/PostQuestion.js +0 -4
  107. package/dist/models/PostResource.d.ts +6 -0
  108. package/dist/models/PostResource.js +2 -0
  109. package/dist/models/PutContentLibraryTag.d.ts +32 -0
  110. package/dist/models/PutContentLibraryTag.js +50 -0
  111. package/dist/models/PutLibraryQuiz.d.ts +6 -0
  112. package/dist/models/PutLibraryQuiz.js +2 -0
  113. package/dist/models/PutQuestion.d.ts +0 -6
  114. package/dist/models/PutQuestion.js +0 -2
  115. package/dist/models/PutResource.d.ts +6 -0
  116. package/dist/models/PutResource.js +2 -0
  117. package/dist/models/index.d.ts +10 -0
  118. package/dist/models/index.js +10 -0
  119. package/docs/ContentLibraryApi.md +732 -90
  120. package/docs/ContentLibraryQuizApi.md +4 -1
  121. package/docs/ContentLibraryTag.md +58 -0
  122. package/docs/ContentLibraryTagItem.md +48 -0
  123. package/docs/CourseApi.md +1 -1
  124. package/docs/CourseCatalogApi.md +15 -4
  125. package/docs/CourseShareAcceptError.md +37 -0
  126. package/docs/CourseShareApi.md +29 -7
  127. package/docs/GetContentLibraryTagItemList.md +42 -0
  128. package/docs/GetContentLibraryTagList.md +42 -0
  129. package/docs/GetCourseCatalogList.md +42 -0
  130. package/docs/GetCourseShareList.md +42 -0
  131. package/docs/GetLibraryQuiz.md +2 -0
  132. package/docs/GetQuestion.md +0 -2
  133. package/docs/GetQuestionListFilters.md +0 -2
  134. package/docs/GetResource.md +2 -0
  135. package/docs/LibraryQuizCriteriaPreviewQuestion.md +0 -2
  136. package/docs/LibraryQuizCriterion.md +0 -2
  137. package/docs/PostContentLibraryTag.md +34 -0
  138. package/docs/PostContentLibraryTagMerge.md +34 -0
  139. package/docs/PostLibraryQuiz.md +2 -0
  140. package/docs/PostQuestion.md +0 -2
  141. package/docs/PostResource.md +2 -0
  142. package/docs/PutContentLibraryTag.md +34 -0
  143. package/docs/PutLibraryQuiz.md +2 -0
  144. package/docs/PutQuestion.md +0 -2
  145. package/docs/PutResource.md +2 -0
  146. package/docs/QuestionApi.md +1 -4
  147. package/package.json +1 -1
  148. package/src/apis/ContentLibraryApi.ts +575 -0
  149. package/src/apis/ContentLibraryQuizApi.ts +5 -0
  150. package/src/apis/CourseApi.ts +2 -2
  151. package/src/apis/CourseCatalogApi.ts +24 -6
  152. package/src/apis/CourseShareApi.ts +42 -12
  153. package/src/apis/QuestionApi.ts +0 -5
  154. package/src/models/ContentLibraryTag.ts +171 -0
  155. package/src/models/ContentLibraryTagItem.ts +153 -0
  156. package/src/models/CourseShareAcceptError.ts +94 -0
  157. package/src/models/GetContentLibraryTagItemList.ts +110 -0
  158. package/src/models/GetContentLibraryTagList.ts +110 -0
  159. package/src/models/GetCourseCatalogList.ts +110 -0
  160. package/src/models/GetCourseShareList.ts +110 -0
  161. package/src/models/GetLibraryQuiz.ts +16 -0
  162. package/src/models/GetQuestion.ts +0 -9
  163. package/src/models/GetQuestionListFilters.ts +0 -8
  164. package/src/models/GetResource.ts +16 -0
  165. package/src/models/LibraryQuizCriteriaPreviewQuestion.ts +0 -9
  166. package/src/models/LibraryQuizCriterion.ts +0 -8
  167. package/src/models/PostContentLibraryTag.ts +66 -0
  168. package/src/models/PostContentLibraryTagMerge.ts +66 -0
  169. package/src/models/PostLibraryQuiz.ts +8 -0
  170. package/src/models/PostQuestion.ts +0 -9
  171. package/src/models/PostResource.ts +8 -0
  172. package/src/models/PutContentLibraryTag.ts +66 -0
  173. package/src/models/PutLibraryQuiz.ts +8 -0
  174. package/src/models/PutQuestion.ts +0 -8
  175. package/src/models/PutResource.ts +8 -0
  176. package/src/models/index.ts +10 -0
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { type CourseShare } from '../models/CourseShare';
13
+ import { type GetCourseShareList } from '../models/GetCourseShareList';
14
14
  import { type PostOfferCatalog } from '../models/PostOfferCatalog';
15
15
  import { type PostOfferCatalogResponse } from '../models/PostOfferCatalogResponse';
16
16
  import { type PostOfferCourse } from '../models/PostOfferCourse';
@@ -19,9 +19,14 @@ export interface DeleteCourseShareRequest {
19
19
  shareId: string;
20
20
  }
21
21
  export interface GetCourseSharesOfferedByMeRequest {
22
+ page?: number;
23
+ pageSize?: number;
24
+ courseId?: string;
22
25
  state?: GetCourseSharesOfferedByMeStateEnum;
23
26
  }
24
27
  export interface GetCourseSharesOfferedToMeRequest {
28
+ page?: number;
29
+ pageSize?: number;
25
30
  state?: GetCourseSharesOfferedToMeStateEnum;
26
31
  }
27
32
  export interface PostOfferCatalogRequest {
@@ -69,25 +74,25 @@ export declare class CourseShareApi extends runtime.BaseAPI {
69
74
  /**
70
75
  * List shares the current portal has offered out
71
76
  */
72
- getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CourseShare>>>;
77
+ getCourseSharesOfferedByMeRaw(requestParameters: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>>;
73
78
  /**
74
79
  * List shares the current portal has offered out
75
80
  */
76
- getCourseSharesOfferedByMe(requestParameters?: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CourseShare>>;
81
+ getCourseSharesOfferedByMe(requestParameters?: GetCourseSharesOfferedByMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList>;
77
82
  /**
78
83
  * Creates request options for getCourseSharesOfferedToMe without sending the request
79
84
  */
80
85
  getCourseSharesOfferedToMeRequestOpts(requestParameters: GetCourseSharesOfferedToMeRequest): Promise<runtime.RequestOpts>;
81
86
  /**
82
- * Returns every `course_share` row where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
87
+ * Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
83
88
  * List shares offered to the current portal
84
89
  */
85
- getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CourseShare>>>;
90
+ getCourseSharesOfferedToMeRaw(requestParameters: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetCourseShareList>>;
86
91
  /**
87
- * Returns every `course_share` row where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
92
+ * Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
88
93
  * List shares offered to the current portal
89
94
  */
90
- getCourseSharesOfferedToMe(requestParameters?: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CourseShare>>;
95
+ getCourseSharesOfferedToMe(requestParameters?: GetCourseSharesOfferedToMeRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetCourseShareList>;
91
96
  /**
92
97
  * Creates request options for postOfferCatalog without sending the request
93
98
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CourseShareFromJSON, } from '../models/CourseShare';
24
+ import { GetCourseShareListFromJSON, } from '../models/GetCourseShareList';
25
25
  import { PostOfferCatalogToJSON, } from '../models/PostOfferCatalog';
26
26
  import { PostOfferCatalogResponseFromJSON, } from '../models/PostOfferCatalogResponse';
27
27
  import { PostOfferCourseToJSON, } from '../models/PostOfferCourse';
@@ -76,6 +76,15 @@ export class CourseShareApi extends runtime.BaseAPI {
76
76
  getCourseSharesOfferedByMeRequestOpts(requestParameters) {
77
77
  return __awaiter(this, void 0, void 0, function* () {
78
78
  const queryParameters = {};
79
+ if (requestParameters['page'] != null) {
80
+ queryParameters['page'] = requestParameters['page'];
81
+ }
82
+ if (requestParameters['pageSize'] != null) {
83
+ queryParameters['page_size'] = requestParameters['pageSize'];
84
+ }
85
+ if (requestParameters['courseId'] != null) {
86
+ queryParameters['course_id'] = requestParameters['courseId'];
87
+ }
79
88
  if (requestParameters['state'] != null) {
80
89
  queryParameters['state'] = requestParameters['state'];
81
90
  }
@@ -96,7 +105,7 @@ export class CourseShareApi extends runtime.BaseAPI {
96
105
  return __awaiter(this, void 0, void 0, function* () {
97
106
  const requestOptions = yield this.getCourseSharesOfferedByMeRequestOpts(requestParameters);
98
107
  const response = yield this.request(requestOptions, initOverrides);
99
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CourseShareFromJSON));
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseShareListFromJSON(jsonValue));
100
109
  });
101
110
  }
102
111
  /**
@@ -114,6 +123,12 @@ export class CourseShareApi extends runtime.BaseAPI {
114
123
  getCourseSharesOfferedToMeRequestOpts(requestParameters) {
115
124
  return __awaiter(this, void 0, void 0, function* () {
116
125
  const queryParameters = {};
126
+ if (requestParameters['page'] != null) {
127
+ queryParameters['page'] = requestParameters['page'];
128
+ }
129
+ if (requestParameters['pageSize'] != null) {
130
+ queryParameters['page_size'] = requestParameters['pageSize'];
131
+ }
117
132
  if (requestParameters['state'] != null) {
118
133
  queryParameters['state'] = requestParameters['state'];
119
134
  }
@@ -128,18 +143,18 @@ export class CourseShareApi extends runtime.BaseAPI {
128
143
  });
129
144
  }
130
145
  /**
131
- * Returns every `course_share` row where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
146
+ * Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
132
147
  * List shares offered to the current portal
133
148
  */
134
149
  getCourseSharesOfferedToMeRaw(requestParameters, initOverrides) {
135
150
  return __awaiter(this, void 0, void 0, function* () {
136
151
  const requestOptions = yield this.getCourseSharesOfferedToMeRequestOpts(requestParameters);
137
152
  const response = yield this.request(requestOptions, initOverrides);
138
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CourseShareFromJSON));
153
+ return new runtime.JSONApiResponse(response, (jsonValue) => GetCourseShareListFromJSON(jsonValue));
139
154
  });
140
155
  }
141
156
  /**
142
- * Returns every `course_share` row where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
157
+ * Returns `course_share` rows where the current portal is the target, with the source portal name and course name joined in. Optionally filter by share state via the `state` query parameter.
143
158
  * List shares offered to the current portal
144
159
  */
145
160
  getCourseSharesOfferedToMe() {
@@ -23,7 +23,6 @@ export interface GetQuestionRequest {
23
23
  export interface GetQuestionListRequest {
24
24
  page?: number;
25
25
  pageSize?: number;
26
- topic?: string;
27
26
  questionType?: GetQuestionListQuestionTypeEnum;
28
27
  difficultyLevel?: GetQuestionListDifficultyLevelEnum;
29
28
  tags?: Array<string>;
@@ -118,9 +118,6 @@ export class QuestionApi extends runtime.BaseAPI {
118
118
  if (requestParameters['pageSize'] != null) {
119
119
  queryParameters['pageSize'] = requestParameters['pageSize'];
120
120
  }
121
- if (requestParameters['topic'] != null) {
122
- queryParameters['topic'] = requestParameters['topic'];
123
- }
124
121
  if (requestParameters['questionType'] != null) {
125
122
  queryParameters['question_type'] = requestParameters['questionType'];
126
123
  }
@@ -0,0 +1,104 @@
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 ContentLibraryTag
16
+ */
17
+ export interface ContentLibraryTag {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ContentLibraryTag
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ContentLibraryTag
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ContentLibraryTag
34
+ */
35
+ key?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ContentLibraryTag
40
+ */
41
+ value: string;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof ContentLibraryTag
46
+ */
47
+ archivedAt?: number | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ContentLibraryTag
52
+ */
53
+ mergedIntoTagId?: string | null;
54
+ /**
55
+ *
56
+ * @type {number}
57
+ * @memberof ContentLibraryTag
58
+ */
59
+ totalItemCount: number;
60
+ /**
61
+ *
62
+ * @type {number}
63
+ * @memberof ContentLibraryTag
64
+ */
65
+ activeItemCount: number;
66
+ /**
67
+ *
68
+ * @type {number}
69
+ * @memberof ContentLibraryTag
70
+ */
71
+ archivedItemCount: number;
72
+ /**
73
+ *
74
+ * @type {number}
75
+ * @memberof ContentLibraryTag
76
+ */
77
+ resourceCount: number;
78
+ /**
79
+ *
80
+ * @type {number}
81
+ * @memberof ContentLibraryTag
82
+ */
83
+ quizCount: number;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof ContentLibraryTag
88
+ */
89
+ createdAt: number;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof ContentLibraryTag
94
+ */
95
+ updatedAt: number;
96
+ }
97
+ /**
98
+ * Check if a given object implements the ContentLibraryTag interface.
99
+ */
100
+ export declare function instanceOfContentLibraryTag(value: object): value is ContentLibraryTag;
101
+ export declare function ContentLibraryTagFromJSON(json: any): ContentLibraryTag;
102
+ export declare function ContentLibraryTagFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTag;
103
+ export declare function ContentLibraryTagToJSON(json: any): ContentLibraryTag;
104
+ export declare function ContentLibraryTagToJSONTyped(value?: ContentLibraryTag | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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 ContentLibraryTag interface.
16
+ */
17
+ export function instanceOfContentLibraryTag(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('value' in value) || value['value'] === undefined)
23
+ return false;
24
+ if (!('totalItemCount' in value) || value['totalItemCount'] === undefined)
25
+ return false;
26
+ if (!('activeItemCount' in value) || value['activeItemCount'] === undefined)
27
+ return false;
28
+ if (!('archivedItemCount' in value) || value['archivedItemCount'] === undefined)
29
+ return false;
30
+ if (!('resourceCount' in value) || value['resourceCount'] === undefined)
31
+ return false;
32
+ if (!('quizCount' in value) || value['quizCount'] === undefined)
33
+ return false;
34
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
35
+ return false;
36
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function ContentLibraryTagFromJSON(json) {
41
+ return ContentLibraryTagFromJSONTyped(json, false);
42
+ }
43
+ export function ContentLibraryTagFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'name': json['name'],
50
+ 'key': json['key'] == null ? undefined : json['key'],
51
+ 'value': json['value'],
52
+ 'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
53
+ 'mergedIntoTagId': json['merged_into_tag_id'] == null ? undefined : json['merged_into_tag_id'],
54
+ 'totalItemCount': json['total_item_count'],
55
+ 'activeItemCount': json['active_item_count'],
56
+ 'archivedItemCount': json['archived_item_count'],
57
+ 'resourceCount': json['resource_count'],
58
+ 'quizCount': json['quiz_count'],
59
+ 'createdAt': json['created_at'],
60
+ 'updatedAt': json['updated_at'],
61
+ };
62
+ }
63
+ export function ContentLibraryTagToJSON(json) {
64
+ return ContentLibraryTagToJSONTyped(json, false);
65
+ }
66
+ export function ContentLibraryTagToJSONTyped(value, ignoreDiscriminator = false) {
67
+ if (value == null) {
68
+ return value;
69
+ }
70
+ return {
71
+ 'id': value['id'],
72
+ 'name': value['name'],
73
+ 'key': value['key'],
74
+ 'value': value['value'],
75
+ 'archived_at': value['archivedAt'],
76
+ 'merged_into_tag_id': value['mergedIntoTagId'],
77
+ 'total_item_count': value['totalItemCount'],
78
+ 'active_item_count': value['activeItemCount'],
79
+ 'archived_item_count': value['archivedItemCount'],
80
+ 'resource_count': value['resourceCount'],
81
+ 'quiz_count': value['quizCount'],
82
+ 'created_at': value['createdAt'],
83
+ 'updated_at': value['updatedAt'],
84
+ };
85
+ }
@@ -0,0 +1,84 @@
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 { ContentLibraryTag } from './ContentLibraryTag';
13
+ import type { ResourceType } from './ResourceType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ContentLibraryTagItem
18
+ */
19
+ export interface ContentLibraryTagItem {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ContentLibraryTagItem
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {ContentLibraryTagItemKindEnum}
29
+ * @memberof ContentLibraryTagItem
30
+ */
31
+ kind: ContentLibraryTagItemKindEnum;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ContentLibraryTagItem
36
+ */
37
+ name: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof ContentLibraryTagItem
42
+ */
43
+ description: string;
44
+ /**
45
+ *
46
+ * @type {ResourceType}
47
+ * @memberof ContentLibraryTagItem
48
+ */
49
+ resourceType?: ResourceType | null;
50
+ /**
51
+ *
52
+ * @type {Array<ContentLibraryTag>}
53
+ * @memberof ContentLibraryTagItem
54
+ */
55
+ tags: Array<ContentLibraryTag>;
56
+ /**
57
+ *
58
+ * @type {number}
59
+ * @memberof ContentLibraryTagItem
60
+ */
61
+ updatedAt: number;
62
+ /**
63
+ *
64
+ * @type {number}
65
+ * @memberof ContentLibraryTagItem
66
+ */
67
+ archivedAt?: number | null;
68
+ }
69
+ /**
70
+ * @export
71
+ */
72
+ export declare const ContentLibraryTagItemKindEnum: {
73
+ readonly Resource: "resource";
74
+ readonly Quiz: "quiz";
75
+ };
76
+ export type ContentLibraryTagItemKindEnum = typeof ContentLibraryTagItemKindEnum[keyof typeof ContentLibraryTagItemKindEnum];
77
+ /**
78
+ * Check if a given object implements the ContentLibraryTagItem interface.
79
+ */
80
+ export declare function instanceOfContentLibraryTagItem(value: object): value is ContentLibraryTagItem;
81
+ export declare function ContentLibraryTagItemFromJSON(json: any): ContentLibraryTagItem;
82
+ export declare function ContentLibraryTagItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContentLibraryTagItem;
83
+ export declare function ContentLibraryTagItemToJSON(json: any): ContentLibraryTagItem;
84
+ export declare function ContentLibraryTagItemToJSONTyped(value?: ContentLibraryTagItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,76 @@
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 { ContentLibraryTagFromJSON, ContentLibraryTagToJSON, } from './ContentLibraryTag';
15
+ import { ResourceTypeFromJSON, ResourceTypeToJSON, } from './ResourceType';
16
+ /**
17
+ * @export
18
+ */
19
+ export const ContentLibraryTagItemKindEnum = {
20
+ Resource: 'resource',
21
+ Quiz: 'quiz'
22
+ };
23
+ /**
24
+ * Check if a given object implements the ContentLibraryTagItem interface.
25
+ */
26
+ export function instanceOfContentLibraryTagItem(value) {
27
+ if (!('id' in value) || value['id'] === undefined)
28
+ return false;
29
+ if (!('kind' in value) || value['kind'] === undefined)
30
+ return false;
31
+ if (!('name' in value) || value['name'] === undefined)
32
+ return false;
33
+ if (!('description' in value) || value['description'] === undefined)
34
+ return false;
35
+ if (!('tags' in value) || value['tags'] === undefined)
36
+ return false;
37
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ export function ContentLibraryTagItemFromJSON(json) {
42
+ return ContentLibraryTagItemFromJSONTyped(json, false);
43
+ }
44
+ export function ContentLibraryTagItemFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'kind': json['kind'],
51
+ 'name': json['name'],
52
+ 'description': json['description'],
53
+ 'resourceType': json['resource_type'] == null ? undefined : ResourceTypeFromJSON(json['resource_type']),
54
+ 'tags': (json['tags'].map(ContentLibraryTagFromJSON)),
55
+ 'updatedAt': json['updated_at'],
56
+ 'archivedAt': json['archived_at'] == null ? undefined : json['archived_at'],
57
+ };
58
+ }
59
+ export function ContentLibraryTagItemToJSON(json) {
60
+ return ContentLibraryTagItemToJSONTyped(json, false);
61
+ }
62
+ export function ContentLibraryTagItemToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'id': value['id'],
68
+ 'kind': value['kind'],
69
+ 'name': value['name'],
70
+ 'description': value['description'],
71
+ 'resource_type': ResourceTypeToJSON(value['resourceType']),
72
+ 'tags': (value['tags'].map(ContentLibraryTagToJSON)),
73
+ 'updated_at': value['updatedAt'],
74
+ 'archived_at': value['archivedAt'],
75
+ };
76
+ }
@@ -0,0 +1,54 @@
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
+ * A safe, actionable error returned when a course-share offer cannot be accepted.
14
+ * @export
15
+ * @interface CourseShareAcceptError
16
+ */
17
+ export interface CourseShareAcceptError {
18
+ /**
19
+ *
20
+ * @type {CourseShareAcceptErrorCodeEnum}
21
+ * @memberof CourseShareAcceptError
22
+ */
23
+ code: CourseShareAcceptErrorCodeEnum;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CourseShareAcceptError
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const CourseShareAcceptErrorCodeEnum: {
35
+ readonly PortalNotFound: "portal_not_found";
36
+ readonly ShareNotFound: "share_not_found";
37
+ readonly ShareNotAddressedToPortal: "share_not_addressed_to_portal";
38
+ readonly ModeNotAllowed: "mode_not_allowed";
39
+ readonly ShareNotOffered: "share_not_offered";
40
+ readonly SourceCourseUnavailable: "source_course_unavailable";
41
+ readonly SourceVersionUnpublished: "source_version_unpublished";
42
+ readonly SourceContentInvalid: "source_content_invalid";
43
+ readonly StorageCopyFailed: "storage_copy_failed";
44
+ readonly AcceptanceFailed: "acceptance_failed";
45
+ };
46
+ export type CourseShareAcceptErrorCodeEnum = typeof CourseShareAcceptErrorCodeEnum[keyof typeof CourseShareAcceptErrorCodeEnum];
47
+ /**
48
+ * Check if a given object implements the CourseShareAcceptError interface.
49
+ */
50
+ export declare function instanceOfCourseShareAcceptError(value: object): value is CourseShareAcceptError;
51
+ export declare function CourseShareAcceptErrorFromJSON(json: any): CourseShareAcceptError;
52
+ export declare function CourseShareAcceptErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): CourseShareAcceptError;
53
+ export declare function CourseShareAcceptErrorToJSON(json: any): CourseShareAcceptError;
54
+ export declare function CourseShareAcceptErrorToJSONTyped(value?: CourseShareAcceptError | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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 CourseShareAcceptErrorCodeEnum = {
18
+ PortalNotFound: 'portal_not_found',
19
+ ShareNotFound: 'share_not_found',
20
+ ShareNotAddressedToPortal: 'share_not_addressed_to_portal',
21
+ ModeNotAllowed: 'mode_not_allowed',
22
+ ShareNotOffered: 'share_not_offered',
23
+ SourceCourseUnavailable: 'source_course_unavailable',
24
+ SourceVersionUnpublished: 'source_version_unpublished',
25
+ SourceContentInvalid: 'source_content_invalid',
26
+ StorageCopyFailed: 'storage_copy_failed',
27
+ AcceptanceFailed: 'acceptance_failed'
28
+ };
29
+ /**
30
+ * Check if a given object implements the CourseShareAcceptError interface.
31
+ */
32
+ export function instanceOfCourseShareAcceptError(value) {
33
+ if (!('code' in value) || value['code'] === undefined)
34
+ return false;
35
+ if (!('message' in value) || value['message'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function CourseShareAcceptErrorFromJSON(json) {
40
+ return CourseShareAcceptErrorFromJSONTyped(json, false);
41
+ }
42
+ export function CourseShareAcceptErrorFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'code': json['code'],
48
+ 'message': json['message'],
49
+ };
50
+ }
51
+ export function CourseShareAcceptErrorToJSON(json) {
52
+ return CourseShareAcceptErrorToJSONTyped(json, false);
53
+ }
54
+ export function CourseShareAcceptErrorToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'code': value['code'],
60
+ 'message': value['message'],
61
+ };
62
+ }
@@ -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 { ContentLibraryTagItem } from './ContentLibraryTagItem';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetContentLibraryTagItemList
17
+ */
18
+ export interface GetContentLibraryTagItemList {
19
+ /**
20
+ * The current page number
21
+ * @type {number}
22
+ * @memberof GetContentLibraryTagItemList
23
+ */
24
+ page: number;
25
+ /**
26
+ * The number of items per page
27
+ * @type {number}
28
+ * @memberof GetContentLibraryTagItemList
29
+ */
30
+ pageSize: number;
31
+ /**
32
+ * The total number of pages
33
+ * @type {number}
34
+ * @memberof GetContentLibraryTagItemList
35
+ */
36
+ totalPages: number;
37
+ /**
38
+ * The total number of items
39
+ * @type {number}
40
+ * @memberof GetContentLibraryTagItemList
41
+ */
42
+ totalItems: number;
43
+ /**
44
+ *
45
+ * @type {Array<ContentLibraryTagItem>}
46
+ * @memberof GetContentLibraryTagItemList
47
+ */
48
+ items: Array<ContentLibraryTagItem>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the GetContentLibraryTagItemList interface.
52
+ */
53
+ export declare function instanceOfGetContentLibraryTagItemList(value: object): value is GetContentLibraryTagItemList;
54
+ export declare function GetContentLibraryTagItemListFromJSON(json: any): GetContentLibraryTagItemList;
55
+ export declare function GetContentLibraryTagItemListFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetContentLibraryTagItemList;
56
+ export declare function GetContentLibraryTagItemListToJSON(json: any): GetContentLibraryTagItemList;
57
+ export declare function GetContentLibraryTagItemListToJSONTyped(value?: GetContentLibraryTagItemList | null, ignoreDiscriminator?: boolean): any;