@easyedu/js-lsm-api 1.62.0 → 1.64.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 (61) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +22 -2
  3. package/dist/apis/ContentApi.d.ts +19 -0
  4. package/dist/apis/ContentApi.js +48 -0
  5. package/dist/apis/CourseApi.d.ts +17 -0
  6. package/dist/apis/CourseApi.js +40 -0
  7. package/dist/apis/DispatchApi.d.ts +44 -0
  8. package/dist/apis/DispatchApi.js +104 -0
  9. package/dist/apis/ModuleApi.d.ts +18 -0
  10. package/dist/apis/ModuleApi.js +44 -0
  11. package/dist/apis/PlayerApi.d.ts +183 -0
  12. package/dist/apis/PlayerApi.js +454 -0
  13. package/dist/apis/UserApi.d.ts +32 -0
  14. package/dist/apis/UserApi.js +82 -0
  15. package/dist/apis/index.d.ts +2 -0
  16. package/dist/apis/index.js +2 -0
  17. package/dist/esm/apis/ContentApi.d.ts +19 -0
  18. package/dist/esm/apis/ContentApi.js +48 -0
  19. package/dist/esm/apis/CourseApi.d.ts +17 -0
  20. package/dist/esm/apis/CourseApi.js +40 -0
  21. package/dist/esm/apis/DispatchApi.d.ts +44 -0
  22. package/dist/esm/apis/DispatchApi.js +100 -0
  23. package/dist/esm/apis/ModuleApi.d.ts +18 -0
  24. package/dist/esm/apis/ModuleApi.js +44 -0
  25. package/dist/esm/apis/PlayerApi.d.ts +183 -0
  26. package/dist/esm/apis/PlayerApi.js +450 -0
  27. package/dist/esm/apis/UserApi.d.ts +32 -0
  28. package/dist/esm/apis/UserApi.js +82 -0
  29. package/dist/esm/apis/index.d.ts +2 -0
  30. package/dist/esm/apis/index.js +2 -0
  31. package/dist/esm/models/PostSignupRequest.d.ts +68 -0
  32. package/dist/esm/models/PostSignupRequest.js +67 -0
  33. package/dist/esm/models/PostSignupRequestResponse.d.ts +32 -0
  34. package/dist/esm/models/PostSignupRequestResponse.js +43 -0
  35. package/dist/esm/models/index.d.ts +2 -0
  36. package/dist/esm/models/index.js +2 -0
  37. package/dist/models/PostSignupRequest.d.ts +68 -0
  38. package/dist/models/PostSignupRequest.js +74 -0
  39. package/dist/models/PostSignupRequestResponse.d.ts +32 -0
  40. package/dist/models/PostSignupRequestResponse.js +50 -0
  41. package/dist/models/index.d.ts +2 -0
  42. package/dist/models/index.js +2 -0
  43. package/docs/ContentApi.md +76 -0
  44. package/docs/CourseApi.md +70 -0
  45. package/docs/DispatchApi.md +134 -0
  46. package/docs/ModuleApi.md +73 -0
  47. package/docs/PlayerApi.md +760 -0
  48. package/docs/PostSignupRequest.md +46 -0
  49. package/docs/PostSignupRequestResponse.md +34 -0
  50. package/docs/UserApi.md +134 -0
  51. package/package.json +1 -1
  52. package/src/apis/ContentApi.ts +68 -0
  53. package/src/apis/CourseApi.ts +50 -0
  54. package/src/apis/DispatchApi.ts +106 -0
  55. package/src/apis/ModuleApi.ts +59 -0
  56. package/src/apis/PlayerApi.ts +559 -0
  57. package/src/apis/UserApi.ts +112 -0
  58. package/src/apis/index.ts +2 -0
  59. package/src/models/PostSignupRequest.ts +120 -0
  60. package/src/models/PostSignupRequestResponse.ts +66 -0
  61. package/src/models/index.ts +2 -0
@@ -0,0 +1,46 @@
1
+
2
+ # PostSignupRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `firstName` | string
10
+ `lastName` | string
11
+ `email` | string
12
+ `password` | string
13
+ `organization` | string
14
+ `jobRole` | string
15
+ `learnerCount` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { PostSignupRequest } from '@easyedu/js-lsm-api'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "firstName": null,
25
+ "lastName": null,
26
+ "email": null,
27
+ "password": null,
28
+ "organization": null,
29
+ "jobRole": null,
30
+ "learnerCount": null,
31
+ } satisfies PostSignupRequest
32
+
33
+ console.log(example)
34
+
35
+ // Convert the instance to a JSON string
36
+ const exampleJSON: string = JSON.stringify(example)
37
+ console.log(exampleJSON)
38
+
39
+ // Parse the JSON string back to an object
40
+ const exampleParsed = JSON.parse(exampleJSON) as PostSignupRequest
41
+ console.log(exampleParsed)
42
+ ```
43
+
44
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
45
+
46
+
@@ -0,0 +1,34 @@
1
+
2
+ # PostSignupRequestResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `message` | string
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { PostSignupRequestResponse } from '@easyedu/js-lsm-api'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ "message": null,
19
+ } satisfies PostSignupRequestResponse
20
+
21
+ console.log(example)
22
+
23
+ // Convert the instance to a JSON string
24
+ const exampleJSON: string = JSON.stringify(example)
25
+ console.log(exampleJSON)
26
+
27
+ // Parse the JSON string back to an object
28
+ const exampleParsed = JSON.parse(exampleJSON) as PostSignupRequestResponse
29
+ console.log(exampleParsed)
30
+ ```
31
+
32
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
33
+
34
+
package/docs/UserApi.md CHANGED
@@ -10,10 +10,12 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
10
10
  | [**getUser**](UserApi.md#getuser) | **GET** /users/{userId} | Get a user by id |
11
11
  | [**postLogin**](UserApi.md#postlogin) | **POST** /auth/login | Post a new login |
12
12
  | [**postLogout**](UserApi.md#postlogout) | **POST** /auth/logout | Logout a user |
13
+ | [**postSignupRequest**](UserApi.md#postsignuprequest) | **POST** /auth/signup-request | Request a new organization signup |
13
14
  | [**postUserAvatarUpload**](UserApi.md#postuseravatarupload) | **POST** /users/{userId}/avatar | Upload a profile photo for the current user |
14
15
  | [**putUser**](UserApi.md#putuser) | **PUT** /users/{userId} | Update a user by id |
15
16
  | [**resetPassword**](UserApi.md#resetpassword) | **POST** /auth/reset-password | Reset a users password |
16
17
  | [**sendResetPassword**](UserApi.md#sendresetpassword) | **POST** /auth/send-reset-password | Send a reset password email |
18
+ | [**verifySignupRequest**](UserApi.md#verifysignuprequest) | **GET** /auth/signup/verify | Verify a signup request and provision the portal |
17
19
 
18
20
 
19
21
 
@@ -388,6 +390,72 @@ No authorization required
388
390
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
389
391
 
390
392
 
393
+ ## postSignupRequest
394
+
395
+ > PostSignupRequestResponse postSignupRequest(postSignupRequest)
396
+
397
+ Request a new organization signup
398
+
399
+ ### Example
400
+
401
+ ```ts
402
+ import {
403
+ Configuration,
404
+ UserApi,
405
+ } from '@easyedu/js-lsm-api';
406
+ import type { PostSignupRequestRequest } from '@easyedu/js-lsm-api';
407
+
408
+ async function example() {
409
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
410
+ const api = new UserApi();
411
+
412
+ const body = {
413
+ // PostSignupRequest | Pending signup request
414
+ postSignupRequest: ...,
415
+ } satisfies PostSignupRequestRequest;
416
+
417
+ try {
418
+ const data = await api.postSignupRequest(body);
419
+ console.log(data);
420
+ } catch (error) {
421
+ console.error(error);
422
+ }
423
+ }
424
+
425
+ // Run the test
426
+ example().catch(console.error);
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+
432
+ | Name | Type | Description | Notes |
433
+ |------------- | ------------- | ------------- | -------------|
434
+ | **postSignupRequest** | [PostSignupRequest](PostSignupRequest.md) | Pending signup request | |
435
+
436
+ ### Return type
437
+
438
+ [**PostSignupRequestResponse**](PostSignupRequestResponse.md)
439
+
440
+ ### Authorization
441
+
442
+ No authorization required
443
+
444
+ ### HTTP request headers
445
+
446
+ - **Content-Type**: `application/json`
447
+ - **Accept**: `application/json`
448
+
449
+
450
+ ### HTTP response details
451
+ | Status code | Description | Response headers |
452
+ |-------------|-------------|------------------|
453
+ | **200** | signup request accepted | - |
454
+ | **400** | signup request validation error | - |
455
+
456
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
457
+
458
+
391
459
  ## postUserAvatarUpload
392
460
 
393
461
  > GetUserAvatarUpload postUserAvatarUpload(userId, file)
@@ -657,3 +725,69 @@ No authorization required
657
725
 
658
726
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
659
727
 
728
+
729
+ ## verifySignupRequest
730
+
731
+ > verifySignupRequest(token)
732
+
733
+ Verify a signup request and provision the portal
734
+
735
+ ### Example
736
+
737
+ ```ts
738
+ import {
739
+ Configuration,
740
+ UserApi,
741
+ } from '@easyedu/js-lsm-api';
742
+ import type { VerifySignupRequestRequest } from '@easyedu/js-lsm-api';
743
+
744
+ async function example() {
745
+ console.log("🚀 Testing @easyedu/js-lsm-api SDK...");
746
+ const api = new UserApi();
747
+
748
+ const body = {
749
+ // string
750
+ token: token_example,
751
+ } satisfies VerifySignupRequestRequest;
752
+
753
+ try {
754
+ const data = await api.verifySignupRequest(body);
755
+ console.log(data);
756
+ } catch (error) {
757
+ console.error(error);
758
+ }
759
+ }
760
+
761
+ // Run the test
762
+ example().catch(console.error);
763
+ ```
764
+
765
+ ### Parameters
766
+
767
+
768
+ | Name | Type | Description | Notes |
769
+ |------------- | ------------- | ------------- | -------------|
770
+ | **token** | `string` | | [Defaults to `undefined`] |
771
+
772
+ ### Return type
773
+
774
+ `void` (Empty response body)
775
+
776
+ ### Authorization
777
+
778
+ No authorization required
779
+
780
+ ### HTTP request headers
781
+
782
+ - **Content-Type**: Not defined
783
+ - **Accept**: Not defined
784
+
785
+
786
+ ### HTTP response details
787
+ | Status code | Description | Response headers |
788
+ |-------------|-------------|------------------|
789
+ | **303** | signup verified and redirected to portal signin | - |
790
+ | **400** | invalid or expired signup verification token | - |
791
+
792
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
793
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyedu/js-lsm-api",
3
- "version": "1.62.0",
3
+ "version": "1.64.0",
4
4
  "description": "OpenAPI client for @easyedu/js-lsm-api",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -128,6 +128,12 @@ export interface CommitScormSessionRequest {
128
128
  scormSessionId: string;
129
129
  }
130
130
 
131
+ export interface DeleteContentRequest {
132
+ contentId: string;
133
+ moduleId: string;
134
+ courseId: string;
135
+ }
136
+
131
137
  export interface GetContentRequest {
132
138
  contentId: string;
133
139
  moduleId: string;
@@ -317,6 +323,68 @@ export class ContentApi extends runtime.BaseAPI {
317
323
  await this.commitScormSessionRaw(requestParameters, initOverrides);
318
324
  }
319
325
 
326
+ /**
327
+ * Creates request options for deleteContent without sending the request
328
+ */
329
+ async deleteContentRequestOpts(requestParameters: DeleteContentRequest): Promise<runtime.RequestOpts> {
330
+ if (requestParameters['contentId'] == null) {
331
+ throw new runtime.RequiredError(
332
+ 'contentId',
333
+ 'Required parameter "contentId" was null or undefined when calling deleteContent().'
334
+ );
335
+ }
336
+
337
+ if (requestParameters['moduleId'] == null) {
338
+ throw new runtime.RequiredError(
339
+ 'moduleId',
340
+ 'Required parameter "moduleId" was null or undefined when calling deleteContent().'
341
+ );
342
+ }
343
+
344
+ if (requestParameters['courseId'] == null) {
345
+ throw new runtime.RequiredError(
346
+ 'courseId',
347
+ 'Required parameter "courseId" was null or undefined when calling deleteContent().'
348
+ );
349
+ }
350
+
351
+ const queryParameters: any = {};
352
+
353
+ const headerParameters: runtime.HTTPHeaders = {};
354
+
355
+
356
+ let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}`;
357
+ urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
358
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
359
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
360
+
361
+ return {
362
+ path: urlPath,
363
+ method: 'DELETE',
364
+ headers: headerParameters,
365
+ query: queryParameters,
366
+ };
367
+ }
368
+
369
+ /**
370
+ * Soft-deletes the content item.
371
+ * Delete content by id
372
+ */
373
+ async deleteContentRaw(requestParameters: DeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
374
+ const requestOptions = await this.deleteContentRequestOpts(requestParameters);
375
+ const response = await this.request(requestOptions, initOverrides);
376
+
377
+ return new runtime.VoidApiResponse(response);
378
+ }
379
+
380
+ /**
381
+ * Soft-deletes the content item.
382
+ * Delete content by id
383
+ */
384
+ async deleteContent(requestParameters: DeleteContentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
385
+ await this.deleteContentRaw(requestParameters, initOverrides);
386
+ }
387
+
320
388
  /**
321
389
  * Creates request options for getContent without sending the request
322
390
  */
@@ -84,6 +84,10 @@ import {
84
84
  PutCourseEnrollmentToJSON,
85
85
  } from '../models/PutCourseEnrollment';
86
86
 
87
+ export interface DeleteCourseRequest {
88
+ courseId: string;
89
+ }
90
+
87
91
  export interface DeleteCourseImageRequest {
88
92
  courseId: string;
89
93
  }
@@ -167,6 +171,52 @@ export interface PutCourseEnrollmentRequest {
167
171
  */
168
172
  export class CourseApi extends runtime.BaseAPI {
169
173
 
174
+ /**
175
+ * Creates request options for deleteCourse without sending the request
176
+ */
177
+ async deleteCourseRequestOpts(requestParameters: DeleteCourseRequest): Promise<runtime.RequestOpts> {
178
+ if (requestParameters['courseId'] == null) {
179
+ throw new runtime.RequiredError(
180
+ 'courseId',
181
+ 'Required parameter "courseId" was null or undefined when calling deleteCourse().'
182
+ );
183
+ }
184
+
185
+ const queryParameters: any = {};
186
+
187
+ const headerParameters: runtime.HTTPHeaders = {};
188
+
189
+
190
+ let urlPath = `/courses/{courseId}`;
191
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
192
+
193
+ return {
194
+ path: urlPath,
195
+ method: 'DELETE',
196
+ headers: headerParameters,
197
+ query: queryParameters,
198
+ };
199
+ }
200
+
201
+ /**
202
+ * Soft-deletes the course and its modules/content.
203
+ * Delete a course by id
204
+ */
205
+ async deleteCourseRaw(requestParameters: DeleteCourseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
206
+ const requestOptions = await this.deleteCourseRequestOpts(requestParameters);
207
+ const response = await this.request(requestOptions, initOverrides);
208
+
209
+ return new runtime.VoidApiResponse(response);
210
+ }
211
+
212
+ /**
213
+ * Soft-deletes the course and its modules/content.
214
+ * Delete a course by id
215
+ */
216
+ async deleteCourse(requestParameters: DeleteCourseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
217
+ await this.deleteCourseRaw(requestParameters, initOverrides);
218
+ }
219
+
170
220
  /**
171
221
  * Creates request options for deleteCourseImage without sending the request
172
222
  */
@@ -0,0 +1,106 @@
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
+ import * as runtime from '../runtime';
16
+
17
+ export interface GetDispatchRollupRequest {
18
+ dispatchPackageId: string;
19
+ }
20
+
21
+ /**
22
+ *
23
+ */
24
+ export class DispatchApi extends runtime.BaseAPI {
25
+
26
+ /**
27
+ * Creates request options for getDispatchRollup without sending the request
28
+ */
29
+ async getDispatchRollupRequestOpts(requestParameters: GetDispatchRollupRequest): Promise<runtime.RequestOpts> {
30
+ if (requestParameters['dispatchPackageId'] == null) {
31
+ throw new runtime.RequiredError(
32
+ 'dispatchPackageId',
33
+ 'Required parameter "dispatchPackageId" was null or undefined when calling getDispatchRollup().'
34
+ );
35
+ }
36
+
37
+ const queryParameters: any = {};
38
+
39
+ const headerParameters: runtime.HTTPHeaders = {};
40
+
41
+
42
+ let urlPath = `/dispatch/sessions/{dispatchPackageId}/rollup`;
43
+ urlPath = urlPath.replace('{dispatchPackageId}', encodeURIComponent(String(requestParameters['dispatchPackageId'])));
44
+
45
+ return {
46
+ path: urlPath,
47
+ method: 'GET',
48
+ headers: headerParameters,
49
+ query: queryParameters,
50
+ };
51
+ }
52
+
53
+ /**
54
+ * Get dispatch package rollup data
55
+ */
56
+ async getDispatchRollupRaw(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
57
+ const requestOptions = await this.getDispatchRollupRequestOpts(requestParameters);
58
+ const response = await this.request(requestOptions, initOverrides);
59
+
60
+ return new runtime.VoidApiResponse(response);
61
+ }
62
+
63
+ /**
64
+ * Get dispatch package rollup data
65
+ */
66
+ async getDispatchRollup(requestParameters: GetDispatchRollupRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
67
+ await this.getDispatchRollupRaw(requestParameters, initOverrides);
68
+ }
69
+
70
+ /**
71
+ * Creates request options for postDispatchLaunch without sending the request
72
+ */
73
+ async postDispatchLaunchRequestOpts(): Promise<runtime.RequestOpts> {
74
+ const queryParameters: any = {};
75
+
76
+ const headerParameters: runtime.HTTPHeaders = {};
77
+
78
+
79
+ let urlPath = `/dispatch/launch`;
80
+
81
+ return {
82
+ path: urlPath,
83
+ method: 'POST',
84
+ headers: headerParameters,
85
+ query: queryParameters,
86
+ };
87
+ }
88
+
89
+ /**
90
+ * Launch a dispatch package
91
+ */
92
+ async postDispatchLaunchRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
93
+ const requestOptions = await this.postDispatchLaunchRequestOpts();
94
+ const response = await this.request(requestOptions, initOverrides);
95
+
96
+ return new runtime.VoidApiResponse(response);
97
+ }
98
+
99
+ /**
100
+ * Launch a dispatch package
101
+ */
102
+ async postDispatchLaunch(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
103
+ await this.postDispatchLaunchRaw(initOverrides);
104
+ }
105
+
106
+ }
@@ -44,6 +44,11 @@ import {
44
44
  PutModuleReorderToJSON,
45
45
  } from '../models/PutModuleReorder';
46
46
 
47
+ export interface DeleteModuleRequest {
48
+ moduleId: string;
49
+ courseId: string;
50
+ }
51
+
47
52
  export interface GetModuleRequest {
48
53
  moduleId: string;
49
54
  courseId: string;
@@ -80,6 +85,60 @@ export interface PutModuleReorderRequest {
80
85
  */
81
86
  export class ModuleApi extends runtime.BaseAPI {
82
87
 
88
+ /**
89
+ * Creates request options for deleteModule without sending the request
90
+ */
91
+ async deleteModuleRequestOpts(requestParameters: DeleteModuleRequest): Promise<runtime.RequestOpts> {
92
+ if (requestParameters['moduleId'] == null) {
93
+ throw new runtime.RequiredError(
94
+ 'moduleId',
95
+ 'Required parameter "moduleId" was null or undefined when calling deleteModule().'
96
+ );
97
+ }
98
+
99
+ if (requestParameters['courseId'] == null) {
100
+ throw new runtime.RequiredError(
101
+ 'courseId',
102
+ 'Required parameter "courseId" was null or undefined when calling deleteModule().'
103
+ );
104
+ }
105
+
106
+ const queryParameters: any = {};
107
+
108
+ const headerParameters: runtime.HTTPHeaders = {};
109
+
110
+
111
+ let urlPath = `/courses/{courseId}/modules/{moduleId}`;
112
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
113
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
114
+
115
+ return {
116
+ path: urlPath,
117
+ method: 'DELETE',
118
+ headers: headerParameters,
119
+ query: queryParameters,
120
+ };
121
+ }
122
+
123
+ /**
124
+ * Soft-deletes the module and its content.
125
+ * Delete a module by id
126
+ */
127
+ async deleteModuleRaw(requestParameters: DeleteModuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
128
+ const requestOptions = await this.deleteModuleRequestOpts(requestParameters);
129
+ const response = await this.request(requestOptions, initOverrides);
130
+
131
+ return new runtime.VoidApiResponse(response);
132
+ }
133
+
134
+ /**
135
+ * Soft-deletes the module and its content.
136
+ * Delete a module by id
137
+ */
138
+ async deleteModule(requestParameters: DeleteModuleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
139
+ await this.deleteModuleRaw(requestParameters, initOverrides);
140
+ }
141
+
83
142
  /**
84
143
  * Creates request options for getModule without sending the request
85
144
  */