@easyedu/js-lsm-api 1.51.0 → 1.53.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 (91) hide show
  1. package/.openapi-generator/FILES +26 -0
  2. package/README.md +30 -2
  3. package/dist/apis/CourseCatalogApi.d.ts +138 -0
  4. package/dist/apis/CourseCatalogApi.js +352 -0
  5. package/dist/apis/CourseShareApi.d.ts +153 -0
  6. package/dist/apis/CourseShareApi.js +385 -0
  7. package/dist/apis/PortalSublicenseApi.d.ts +36 -0
  8. package/dist/apis/PortalSublicenseApi.js +79 -0
  9. package/dist/apis/index.d.ts +3 -0
  10. package/dist/apis/index.js +3 -0
  11. package/dist/esm/apis/CourseCatalogApi.d.ts +138 -0
  12. package/dist/esm/apis/CourseCatalogApi.js +348 -0
  13. package/dist/esm/apis/CourseShareApi.d.ts +153 -0
  14. package/dist/esm/apis/CourseShareApi.js +381 -0
  15. package/dist/esm/apis/PortalSublicenseApi.d.ts +36 -0
  16. package/dist/esm/apis/PortalSublicenseApi.js +75 -0
  17. package/dist/esm/apis/index.d.ts +3 -0
  18. package/dist/esm/apis/index.js +3 -0
  19. package/dist/esm/models/CourseCatalog.d.ts +44 -0
  20. package/dist/esm/models/CourseCatalog.js +51 -0
  21. package/dist/esm/models/CourseShare.d.ts +88 -0
  22. package/dist/esm/models/CourseShare.js +85 -0
  23. package/dist/esm/models/PortalSublicense.d.ts +65 -0
  24. package/dist/esm/models/PortalSublicense.js +61 -0
  25. package/dist/esm/models/PostCourseCatalog.d.ts +38 -0
  26. package/dist/esm/models/PostCourseCatalog.js +45 -0
  27. package/dist/esm/models/PostOfferCatalog.d.ts +59 -0
  28. package/dist/esm/models/PostOfferCatalog.js +59 -0
  29. package/dist/esm/models/PostOfferCatalogResponse.d.ts +32 -0
  30. package/dist/esm/models/PostOfferCatalogResponse.js +43 -0
  31. package/dist/esm/models/PostOfferCourse.d.ts +59 -0
  32. package/dist/esm/models/PostOfferCourse.js +59 -0
  33. package/dist/esm/models/PostOfferCourseResponse.d.ts +49 -0
  34. package/dist/esm/models/PostOfferCourseResponse.js +57 -0
  35. package/dist/esm/models/PutCourseCatalog.d.ts +38 -0
  36. package/dist/esm/models/PutCourseCatalog.js +43 -0
  37. package/dist/esm/models/PutPortalSublicense.d.ts +46 -0
  38. package/dist/esm/models/PutPortalSublicense.js +45 -0
  39. package/dist/esm/models/index.d.ts +10 -0
  40. package/dist/esm/models/index.js +10 -0
  41. package/dist/models/CourseCatalog.d.ts +44 -0
  42. package/dist/models/CourseCatalog.js +58 -0
  43. package/dist/models/CourseShare.d.ts +88 -0
  44. package/dist/models/CourseShare.js +93 -0
  45. package/dist/models/PortalSublicense.d.ts +65 -0
  46. package/dist/models/PortalSublicense.js +69 -0
  47. package/dist/models/PostCourseCatalog.d.ts +38 -0
  48. package/dist/models/PostCourseCatalog.js +52 -0
  49. package/dist/models/PostOfferCatalog.d.ts +59 -0
  50. package/dist/models/PostOfferCatalog.js +67 -0
  51. package/dist/models/PostOfferCatalogResponse.d.ts +32 -0
  52. package/dist/models/PostOfferCatalogResponse.js +50 -0
  53. package/dist/models/PostOfferCourse.d.ts +59 -0
  54. package/dist/models/PostOfferCourse.js +67 -0
  55. package/dist/models/PostOfferCourseResponse.d.ts +49 -0
  56. package/dist/models/PostOfferCourseResponse.js +65 -0
  57. package/dist/models/PutCourseCatalog.d.ts +38 -0
  58. package/dist/models/PutCourseCatalog.js +50 -0
  59. package/dist/models/PutPortalSublicense.d.ts +46 -0
  60. package/dist/models/PutPortalSublicense.js +52 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/docs/CourseCatalog.md +38 -0
  64. package/docs/CourseCatalogApi.md +544 -0
  65. package/docs/CourseShare.md +46 -0
  66. package/docs/CourseShareApi.md +609 -0
  67. package/docs/PortalSublicense.md +42 -0
  68. package/docs/PortalSublicenseApi.md +81 -0
  69. package/docs/PostCourseCatalog.md +36 -0
  70. package/docs/PostOfferCatalog.md +40 -0
  71. package/docs/PostOfferCatalogResponse.md +34 -0
  72. package/docs/PostOfferCourse.md +40 -0
  73. package/docs/PostOfferCourseResponse.md +36 -0
  74. package/docs/PutCourseCatalog.md +36 -0
  75. package/docs/PutPortalSublicense.md +39 -0
  76. package/package.json +1 -1
  77. package/src/apis/CourseCatalogApi.ts +447 -0
  78. package/src/apis/CourseShareApi.ts +480 -0
  79. package/src/apis/PortalSublicenseApi.ts +95 -0
  80. package/src/apis/index.ts +3 -0
  81. package/src/models/CourseCatalog.ts +84 -0
  82. package/src/models/CourseShare.ts +144 -0
  83. package/src/models/PortalSublicense.ts +111 -0
  84. package/src/models/PostCourseCatalog.ts +74 -0
  85. package/src/models/PostOfferCatalog.ts +103 -0
  86. package/src/models/PostOfferCatalogResponse.ts +66 -0
  87. package/src/models/PostOfferCourse.ts +103 -0
  88. package/src/models/PostOfferCourseResponse.ts +89 -0
  89. package/src/models/PutCourseCatalog.ts +73 -0
  90. package/src/models/PutPortalSublicense.ts +83 -0
  91. package/src/models/index.ts +10 -0
@@ -0,0 +1,352 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.CourseCatalogApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class CourseCatalogApi extends runtime.BaseAPI {
32
+ /**
33
+ * Creates request options for addCourseToCatalog without sending the request
34
+ */
35
+ addCourseToCatalogRequestOpts(requestParameters) {
36
+ return __awaiter(this, void 0, void 0, function* () {
37
+ if (requestParameters['catalogId'] == null) {
38
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling addCourseToCatalog().');
39
+ }
40
+ if (requestParameters['courseId'] == null) {
41
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling addCourseToCatalog().');
42
+ }
43
+ const queryParameters = {};
44
+ const headerParameters = {};
45
+ let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
46
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
47
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
48
+ return {
49
+ path: urlPath,
50
+ method: 'POST',
51
+ headers: headerParameters,
52
+ query: queryParameters,
53
+ };
54
+ });
55
+ }
56
+ /**
57
+ * Add a course to a catalog
58
+ */
59
+ addCourseToCatalogRaw(requestParameters, initOverrides) {
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const requestOptions = yield this.addCourseToCatalogRequestOpts(requestParameters);
62
+ const response = yield this.request(requestOptions, initOverrides);
63
+ return new runtime.VoidApiResponse(response);
64
+ });
65
+ }
66
+ /**
67
+ * Add a course to a catalog
68
+ */
69
+ addCourseToCatalog(requestParameters, initOverrides) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ yield this.addCourseToCatalogRaw(requestParameters, initOverrides);
72
+ });
73
+ }
74
+ /**
75
+ * Creates request options for deleteCourseCatalog without sending the request
76
+ */
77
+ deleteCourseCatalogRequestOpts(requestParameters) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ if (requestParameters['catalogId'] == null) {
80
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling deleteCourseCatalog().');
81
+ }
82
+ const queryParameters = {};
83
+ const headerParameters = {};
84
+ let urlPath = `/catalogs/{catalogId}`;
85
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
86
+ return {
87
+ path: urlPath,
88
+ method: 'DELETE',
89
+ headers: headerParameters,
90
+ query: queryParameters,
91
+ };
92
+ });
93
+ }
94
+ /**
95
+ * Delete a catalog
96
+ */
97
+ deleteCourseCatalogRaw(requestParameters, initOverrides) {
98
+ return __awaiter(this, void 0, void 0, function* () {
99
+ const requestOptions = yield this.deleteCourseCatalogRequestOpts(requestParameters);
100
+ const response = yield this.request(requestOptions, initOverrides);
101
+ return new runtime.VoidApiResponse(response);
102
+ });
103
+ }
104
+ /**
105
+ * Delete a catalog
106
+ */
107
+ deleteCourseCatalog(requestParameters, initOverrides) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ yield this.deleteCourseCatalogRaw(requestParameters, initOverrides);
110
+ });
111
+ }
112
+ /**
113
+ * Creates request options for getCatalogCourses without sending the request
114
+ */
115
+ getCatalogCoursesRequestOpts(requestParameters) {
116
+ return __awaiter(this, void 0, void 0, function* () {
117
+ if (requestParameters['catalogId'] == null) {
118
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling getCatalogCourses().');
119
+ }
120
+ const queryParameters = {};
121
+ const headerParameters = {};
122
+ let urlPath = `/catalogs/{catalogId}/courses`;
123
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
124
+ return {
125
+ path: urlPath,
126
+ method: 'GET',
127
+ headers: headerParameters,
128
+ query: queryParameters,
129
+ };
130
+ });
131
+ }
132
+ /**
133
+ * List the courses in a catalog
134
+ */
135
+ getCatalogCoursesRaw(requestParameters, initOverrides) {
136
+ return __awaiter(this, void 0, void 0, function* () {
137
+ const requestOptions = yield this.getCatalogCoursesRequestOpts(requestParameters);
138
+ const response = yield this.request(requestOptions, initOverrides);
139
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetCourseFromJSON));
140
+ });
141
+ }
142
+ /**
143
+ * List the courses in a catalog
144
+ */
145
+ getCatalogCourses(requestParameters, initOverrides) {
146
+ return __awaiter(this, void 0, void 0, function* () {
147
+ const response = yield this.getCatalogCoursesRaw(requestParameters, initOverrides);
148
+ return yield response.value();
149
+ });
150
+ }
151
+ /**
152
+ * Creates request options for getCourseCatalog without sending the request
153
+ */
154
+ getCourseCatalogRequestOpts(requestParameters) {
155
+ return __awaiter(this, void 0, void 0, function* () {
156
+ if (requestParameters['catalogId'] == null) {
157
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling getCourseCatalog().');
158
+ }
159
+ const queryParameters = {};
160
+ const headerParameters = {};
161
+ let urlPath = `/catalogs/{catalogId}`;
162
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
163
+ return {
164
+ path: urlPath,
165
+ method: 'GET',
166
+ headers: headerParameters,
167
+ query: queryParameters,
168
+ };
169
+ });
170
+ }
171
+ /**
172
+ * Get a catalog
173
+ */
174
+ getCourseCatalogRaw(requestParameters, initOverrides) {
175
+ return __awaiter(this, void 0, void 0, function* () {
176
+ const requestOptions = yield this.getCourseCatalogRequestOpts(requestParameters);
177
+ const response = yield this.request(requestOptions, initOverrides);
178
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CourseCatalogFromJSON)(jsonValue));
179
+ });
180
+ }
181
+ /**
182
+ * Get a catalog
183
+ */
184
+ getCourseCatalog(requestParameters, initOverrides) {
185
+ return __awaiter(this, void 0, void 0, function* () {
186
+ const response = yield this.getCourseCatalogRaw(requestParameters, initOverrides);
187
+ return yield response.value();
188
+ });
189
+ }
190
+ /**
191
+ * Creates request options for getCourseCatalogs without sending the request
192
+ */
193
+ getCourseCatalogsRequestOpts() {
194
+ return __awaiter(this, void 0, void 0, function* () {
195
+ const queryParameters = {};
196
+ const headerParameters = {};
197
+ let urlPath = `/catalogs`;
198
+ return {
199
+ path: urlPath,
200
+ method: 'GET',
201
+ headers: headerParameters,
202
+ query: queryParameters,
203
+ };
204
+ });
205
+ }
206
+ /**
207
+ * List catalogs in the current portal
208
+ */
209
+ getCourseCatalogsRaw(initOverrides) {
210
+ return __awaiter(this, void 0, void 0, function* () {
211
+ const requestOptions = yield this.getCourseCatalogsRequestOpts();
212
+ const response = yield this.request(requestOptions, initOverrides);
213
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.CourseCatalogFromJSON));
214
+ });
215
+ }
216
+ /**
217
+ * List catalogs in the current portal
218
+ */
219
+ getCourseCatalogs(initOverrides) {
220
+ return __awaiter(this, void 0, void 0, function* () {
221
+ const response = yield this.getCourseCatalogsRaw(initOverrides);
222
+ return yield response.value();
223
+ });
224
+ }
225
+ /**
226
+ * Creates request options for postCourseCatalog without sending the request
227
+ */
228
+ postCourseCatalogRequestOpts(requestParameters) {
229
+ return __awaiter(this, void 0, void 0, function* () {
230
+ if (requestParameters['postCourseCatalog'] == null) {
231
+ throw new runtime.RequiredError('postCourseCatalog', 'Required parameter "postCourseCatalog" was null or undefined when calling postCourseCatalog().');
232
+ }
233
+ const queryParameters = {};
234
+ const headerParameters = {};
235
+ headerParameters['Content-Type'] = 'application/json';
236
+ let urlPath = `/catalogs`;
237
+ return {
238
+ path: urlPath,
239
+ method: 'POST',
240
+ headers: headerParameters,
241
+ query: queryParameters,
242
+ body: (0, index_1.PostCourseCatalogToJSON)(requestParameters['postCourseCatalog']),
243
+ };
244
+ });
245
+ }
246
+ /**
247
+ * Create a course catalog
248
+ */
249
+ postCourseCatalogRaw(requestParameters, initOverrides) {
250
+ return __awaiter(this, void 0, void 0, function* () {
251
+ const requestOptions = yield this.postCourseCatalogRequestOpts(requestParameters);
252
+ const response = yield this.request(requestOptions, initOverrides);
253
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CourseCatalogFromJSON)(jsonValue));
254
+ });
255
+ }
256
+ /**
257
+ * Create a course catalog
258
+ */
259
+ postCourseCatalog(requestParameters, initOverrides) {
260
+ return __awaiter(this, void 0, void 0, function* () {
261
+ const response = yield this.postCourseCatalogRaw(requestParameters, initOverrides);
262
+ return yield response.value();
263
+ });
264
+ }
265
+ /**
266
+ * Creates request options for putCourseCatalog without sending the request
267
+ */
268
+ putCourseCatalogRequestOpts(requestParameters) {
269
+ return __awaiter(this, void 0, void 0, function* () {
270
+ if (requestParameters['catalogId'] == null) {
271
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling putCourseCatalog().');
272
+ }
273
+ if (requestParameters['putCourseCatalog'] == null) {
274
+ throw new runtime.RequiredError('putCourseCatalog', 'Required parameter "putCourseCatalog" was null or undefined when calling putCourseCatalog().');
275
+ }
276
+ const queryParameters = {};
277
+ const headerParameters = {};
278
+ headerParameters['Content-Type'] = 'application/json';
279
+ let urlPath = `/catalogs/{catalogId}`;
280
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
281
+ return {
282
+ path: urlPath,
283
+ method: 'PUT',
284
+ headers: headerParameters,
285
+ query: queryParameters,
286
+ body: (0, index_1.PutCourseCatalogToJSON)(requestParameters['putCourseCatalog']),
287
+ };
288
+ });
289
+ }
290
+ /**
291
+ * Update a catalog
292
+ */
293
+ putCourseCatalogRaw(requestParameters, initOverrides) {
294
+ return __awaiter(this, void 0, void 0, function* () {
295
+ const requestOptions = yield this.putCourseCatalogRequestOpts(requestParameters);
296
+ const response = yield this.request(requestOptions, initOverrides);
297
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CourseCatalogFromJSON)(jsonValue));
298
+ });
299
+ }
300
+ /**
301
+ * Update a catalog
302
+ */
303
+ putCourseCatalog(requestParameters, initOverrides) {
304
+ return __awaiter(this, void 0, void 0, function* () {
305
+ const response = yield this.putCourseCatalogRaw(requestParameters, initOverrides);
306
+ return yield response.value();
307
+ });
308
+ }
309
+ /**
310
+ * Creates request options for removeCourseFromCatalog without sending the request
311
+ */
312
+ removeCourseFromCatalogRequestOpts(requestParameters) {
313
+ return __awaiter(this, void 0, void 0, function* () {
314
+ if (requestParameters['catalogId'] == null) {
315
+ throw new runtime.RequiredError('catalogId', 'Required parameter "catalogId" was null or undefined when calling removeCourseFromCatalog().');
316
+ }
317
+ if (requestParameters['courseId'] == null) {
318
+ throw new runtime.RequiredError('courseId', 'Required parameter "courseId" was null or undefined when calling removeCourseFromCatalog().');
319
+ }
320
+ const queryParameters = {};
321
+ const headerParameters = {};
322
+ let urlPath = `/catalogs/{catalogId}/courses/{courseId}`;
323
+ urlPath = urlPath.replace(`{${"catalogId"}}`, encodeURIComponent(String(requestParameters['catalogId'])));
324
+ urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
325
+ return {
326
+ path: urlPath,
327
+ method: 'DELETE',
328
+ headers: headerParameters,
329
+ query: queryParameters,
330
+ };
331
+ });
332
+ }
333
+ /**
334
+ * Remove a course from a catalog
335
+ */
336
+ removeCourseFromCatalogRaw(requestParameters, initOverrides) {
337
+ return __awaiter(this, void 0, void 0, function* () {
338
+ const requestOptions = yield this.removeCourseFromCatalogRequestOpts(requestParameters);
339
+ const response = yield this.request(requestOptions, initOverrides);
340
+ return new runtime.VoidApiResponse(response);
341
+ });
342
+ }
343
+ /**
344
+ * Remove a course from a catalog
345
+ */
346
+ removeCourseFromCatalog(requestParameters, initOverrides) {
347
+ return __awaiter(this, void 0, void 0, function* () {
348
+ yield this.removeCourseFromCatalogRaw(requestParameters, initOverrides);
349
+ });
350
+ }
351
+ }
352
+ exports.CourseCatalogApi = CourseCatalogApi;
@@ -0,0 +1,153 @@
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 * as runtime from '../runtime';
13
+ import type { CourseShare, PostOfferCatalog, PostOfferCatalogResponse, PostOfferCourse, PostOfferCourseResponse } from '../models/index';
14
+ export interface DeleteCourseShareRequest {
15
+ shareId: string;
16
+ }
17
+ export interface PostOfferCatalogRequest {
18
+ catalogId: string;
19
+ postOfferCatalog: PostOfferCatalog;
20
+ }
21
+ export interface PostOfferCourseRequest {
22
+ courseId: string;
23
+ postOfferCourse: PostOfferCourse;
24
+ }
25
+ export interface PostUnrevokeShareRequest {
26
+ shareId: string;
27
+ }
28
+ export interface PutAcceptCloneRequest {
29
+ shareId: string;
30
+ }
31
+ export interface PutAcceptMirrorRequest {
32
+ shareId: string;
33
+ }
34
+ export interface PutDeclineShareRequest {
35
+ shareId: string;
36
+ }
37
+ /**
38
+ *
39
+ */
40
+ export declare class CourseShareApi extends runtime.BaseAPI {
41
+ /**
42
+ * Creates request options for deleteCourseShare without sending the request
43
+ */
44
+ deleteCourseShareRequestOpts(requestParameters: DeleteCourseShareRequest): Promise<runtime.RequestOpts>;
45
+ /**
46
+ * Cascades to any downstream re-shares and archives enrollments in the target portal. Use `POST /course-shares/{shareId}/unrevoke` to restore.
47
+ * Revoke a share
48
+ */
49
+ deleteCourseShareRaw(requestParameters: DeleteCourseShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
50
+ /**
51
+ * Cascades to any downstream re-shares and archives enrollments in the target portal. Use `POST /course-shares/{shareId}/unrevoke` to restore.
52
+ * Revoke a share
53
+ */
54
+ deleteCourseShare(requestParameters: DeleteCourseShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
55
+ /**
56
+ * Creates request options for getCourseSharesOfferedByMe without sending the request
57
+ */
58
+ getCourseSharesOfferedByMeRequestOpts(): Promise<runtime.RequestOpts>;
59
+ /**
60
+ * List shares the current portal has offered out
61
+ */
62
+ getCourseSharesOfferedByMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CourseShare>>>;
63
+ /**
64
+ * List shares the current portal has offered out
65
+ */
66
+ getCourseSharesOfferedByMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CourseShare>>;
67
+ /**
68
+ * Creates request options for getCourseSharesOfferedToMe without sending the request
69
+ */
70
+ getCourseSharesOfferedToMeRequestOpts(): Promise<runtime.RequestOpts>;
71
+ /**
72
+ * List shares offered to the current portal
73
+ */
74
+ getCourseSharesOfferedToMeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CourseShare>>>;
75
+ /**
76
+ * List shares offered to the current portal
77
+ */
78
+ getCourseSharesOfferedToMe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CourseShare>>;
79
+ /**
80
+ * Creates request options for postOfferCatalog without sending the request
81
+ */
82
+ postOfferCatalogRequestOpts(requestParameters: PostOfferCatalogRequest): Promise<runtime.RequestOpts>;
83
+ /**
84
+ * Fans out one `course_share` per catalog member. Duplicates are silently skipped. The catalog link is preserved on each generated share via `origin_catalog_id`.
85
+ * Offer every course in a catalog to a descendant portal
86
+ */
87
+ postOfferCatalogRaw(requestParameters: PostOfferCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostOfferCatalogResponse>>;
88
+ /**
89
+ * Fans out one `course_share` per catalog member. Duplicates are silently skipped. The catalog link is preserved on each generated share via `origin_catalog_id`.
90
+ * Offer every course in a catalog to a descendant portal
91
+ */
92
+ postOfferCatalog(requestParameters: PostOfferCatalogRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostOfferCatalogResponse>;
93
+ /**
94
+ * Creates request options for postOfferCourse without sending the request
95
+ */
96
+ postOfferCourseRequestOpts(requestParameters: PostOfferCourseRequest): Promise<runtime.RequestOpts>;
97
+ /**
98
+ * Offer a single course to a descendant portal
99
+ */
100
+ postOfferCourseRaw(requestParameters: PostOfferCourseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PostOfferCourseResponse>>;
101
+ /**
102
+ * Offer a single course to a descendant portal
103
+ */
104
+ postOfferCourse(requestParameters: PostOfferCourseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PostOfferCourseResponse>;
105
+ /**
106
+ * Creates request options for postUnrevokeShare without sending the request
107
+ */
108
+ postUnrevokeShareRequestOpts(requestParameters: PostUnrevokeShareRequest): Promise<runtime.RequestOpts>;
109
+ /**
110
+ * Restore a previously revoked share
111
+ */
112
+ postUnrevokeShareRaw(requestParameters: PostUnrevokeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
113
+ /**
114
+ * Restore a previously revoked share
115
+ */
116
+ postUnrevokeShare(requestParameters: PostUnrevokeShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
117
+ /**
118
+ * Creates request options for putAcceptClone without sending the request
119
+ */
120
+ putAcceptCloneRequestOpts(requestParameters: PutAcceptCloneRequest): Promise<runtime.RequestOpts>;
121
+ /**
122
+ * Accept an offer as a clone (deep copy into your portal)
123
+ */
124
+ putAcceptCloneRaw(requestParameters: PutAcceptCloneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
125
+ /**
126
+ * Accept an offer as a clone (deep copy into your portal)
127
+ */
128
+ putAcceptClone(requestParameters: PutAcceptCloneRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
129
+ /**
130
+ * Creates request options for putAcceptMirror without sending the request
131
+ */
132
+ putAcceptMirrorRequestOpts(requestParameters: PutAcceptMirrorRequest): Promise<runtime.RequestOpts>;
133
+ /**
134
+ * Accept an offer as a mirror (no copy, live link to source)
135
+ */
136
+ putAcceptMirrorRaw(requestParameters: PutAcceptMirrorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
137
+ /**
138
+ * Accept an offer as a mirror (no copy, live link to source)
139
+ */
140
+ putAcceptMirror(requestParameters: PutAcceptMirrorRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
141
+ /**
142
+ * Creates request options for putDeclineShare without sending the request
143
+ */
144
+ putDeclineShareRequestOpts(requestParameters: PutDeclineShareRequest): Promise<runtime.RequestOpts>;
145
+ /**
146
+ * Decline an offer
147
+ */
148
+ putDeclineShareRaw(requestParameters: PutDeclineShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
149
+ /**
150
+ * Decline an offer
151
+ */
152
+ putDeclineShare(requestParameters: PutDeclineShareRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
153
+ }