@easyedu/js-lsm-api 1.57.0 → 1.59.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 (132) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +8 -3
  4. package/dist/apis/CertificateApi.d.ts +10 -1
  5. package/dist/apis/CertificateApi.js +34 -25
  6. package/dist/apis/ChatApi.d.ts +6 -1
  7. package/dist/apis/ChatApi.js +15 -10
  8. package/dist/apis/ContentApi.d.ts +22 -1
  9. package/dist/apis/ContentApi.js +101 -80
  10. package/dist/apis/CourseApi.d.ts +14 -1
  11. package/dist/apis/CourseApi.js +50 -37
  12. package/dist/apis/CourseCatalogApi.d.ts +4 -1
  13. package/dist/apis/CourseCatalogApi.js +19 -16
  14. package/dist/apis/CourseShareApi.d.ts +5 -1
  15. package/dist/apis/CourseShareApi.js +18 -14
  16. package/dist/apis/ModuleApi.d.ts +6 -1
  17. package/dist/apis/ModuleApi.js +24 -19
  18. package/dist/apis/PortalApi.d.ts +11 -3
  19. package/dist/apis/PortalApi.js +31 -22
  20. package/dist/apis/PortalSublicenseApi.d.ts +2 -1
  21. package/dist/apis/PortalSublicenseApi.js +5 -4
  22. package/dist/apis/QuestionApi.d.ts +4 -1
  23. package/dist/apis/QuestionApi.js +13 -10
  24. package/dist/apis/QuizApi.d.ts +22 -1
  25. package/dist/apis/QuizApi.js +82 -61
  26. package/dist/apis/ReportingApi.d.ts +9 -1
  27. package/dist/apis/ReportingApi.js +39 -31
  28. package/dist/apis/RoleApi.d.ts +6 -1
  29. package/dist/apis/RoleApi.js +27 -22
  30. package/dist/apis/SupportTicketApi.d.ts +8 -1
  31. package/dist/apis/SupportTicketApi.js +26 -19
  32. package/dist/apis/UserApi.d.ts +38 -1
  33. package/dist/apis/UserApi.js +115 -10
  34. package/dist/esm/apis/CertificateApi.d.ts +10 -1
  35. package/dist/esm/apis/CertificateApi.js +19 -10
  36. package/dist/esm/apis/ChatApi.d.ts +6 -1
  37. package/dist/esm/apis/ChatApi.js +9 -4
  38. package/dist/esm/apis/ContentApi.d.ts +22 -1
  39. package/dist/esm/apis/ContentApi.js +74 -53
  40. package/dist/esm/apis/CourseApi.d.ts +14 -1
  41. package/dist/esm/apis/CourseApi.js +30 -17
  42. package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
  43. package/dist/esm/apis/CourseCatalogApi.js +12 -9
  44. package/dist/esm/apis/CourseShareApi.d.ts +5 -1
  45. package/dist/esm/apis/CourseShareApi.js +12 -8
  46. package/dist/esm/apis/ModuleApi.d.ts +6 -1
  47. package/dist/esm/apis/ModuleApi.js +15 -10
  48. package/dist/esm/apis/PortalApi.d.ts +11 -3
  49. package/dist/esm/apis/PortalApi.js +21 -12
  50. package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
  51. package/dist/esm/apis/PortalSublicenseApi.js +3 -2
  52. package/dist/esm/apis/QuestionApi.d.ts +4 -1
  53. package/dist/esm/apis/QuestionApi.js +7 -4
  54. package/dist/esm/apis/QuizApi.d.ts +22 -1
  55. package/dist/esm/apis/QuizApi.js +53 -32
  56. package/dist/esm/apis/ReportingApi.d.ts +9 -1
  57. package/dist/esm/apis/ReportingApi.js +30 -22
  58. package/dist/esm/apis/RoleApi.d.ts +6 -1
  59. package/dist/esm/apis/RoleApi.js +18 -13
  60. package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
  61. package/dist/esm/apis/SupportTicketApi.js +16 -9
  62. package/dist/esm/apis/UserApi.d.ts +38 -1
  63. package/dist/esm/apis/UserApi.js +108 -3
  64. package/dist/esm/models/GetPortal.d.ts +12 -0
  65. package/dist/esm/models/GetPortal.js +4 -0
  66. package/dist/esm/models/GetUser.d.ts +6 -0
  67. package/dist/esm/models/GetUser.js +2 -0
  68. package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
  69. package/dist/esm/models/GetUserAvatarUpload.js +43 -0
  70. package/dist/esm/models/PostPortal.d.ts +12 -0
  71. package/dist/esm/models/PostPortal.js +4 -0
  72. package/dist/esm/models/PutPortalBranding.d.ts +12 -0
  73. package/dist/esm/models/PutPortalBranding.js +4 -0
  74. package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
  75. package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
  76. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  77. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
  78. package/dist/esm/models/index.d.ts +3 -0
  79. package/dist/esm/models/index.js +3 -0
  80. package/dist/esm/runtime.js +1 -1
  81. package/dist/models/GetPortal.d.ts +12 -0
  82. package/dist/models/GetPortal.js +4 -0
  83. package/dist/models/GetUser.d.ts +6 -0
  84. package/dist/models/GetUser.js +2 -0
  85. package/dist/models/GetUserAvatarUpload.d.ts +32 -0
  86. package/dist/models/GetUserAvatarUpload.js +50 -0
  87. package/dist/models/PostPortal.d.ts +12 -0
  88. package/dist/models/PostPortal.js +4 -0
  89. package/dist/models/PutPortalBranding.d.ts +12 -0
  90. package/dist/models/PutPortalBranding.js +4 -0
  91. package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
  92. package/dist/models/UpdateSelectedPortalResponse.js +59 -0
  93. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  94. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
  95. package/dist/models/index.d.ts +3 -0
  96. package/dist/models/index.js +3 -0
  97. package/dist/runtime.js +1 -1
  98. package/docs/GetPortal.md +4 -0
  99. package/docs/GetUser.md +2 -0
  100. package/docs/GetUserAvatarUpload.md +34 -0
  101. package/docs/PortalApi.md +3 -3
  102. package/docs/PostPortal.md +4 -0
  103. package/docs/PutPortalBranding.md +4 -0
  104. package/docs/UpdateSelectedPortalResponse.md +38 -0
  105. package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
  106. package/docs/UserApi.md +138 -0
  107. package/package.json +1 -1
  108. package/src/apis/CertificateApi.ts +38 -23
  109. package/src/apis/ChatApi.ts +20 -13
  110. package/src/apis/ContentApi.ts +117 -78
  111. package/src/apis/CourseApi.ts +57 -34
  112. package/src/apis/CourseCatalogApi.ts +19 -16
  113. package/src/apis/CourseShareApi.ts +21 -16
  114. package/src/apis/ModuleApi.ts +26 -19
  115. package/src/apis/OtherApi.ts +0 -1
  116. package/src/apis/PortalApi.ts +42 -25
  117. package/src/apis/PortalSublicenseApi.ts +6 -7
  118. package/src/apis/QuestionApi.ts +14 -11
  119. package/src/apis/QuizApi.ts +96 -57
  120. package/src/apis/ReportingApi.ts +47 -34
  121. package/src/apis/RoleApi.ts +29 -22
  122. package/src/apis/SupportTicketApi.ts +31 -20
  123. package/src/apis/UserApi.ts +150 -12
  124. package/src/models/GetPortal.ts +16 -0
  125. package/src/models/GetUser.ts +8 -0
  126. package/src/models/GetUserAvatarUpload.ts +66 -0
  127. package/src/models/PostPortal.ts +16 -0
  128. package/src/models/PutPortalBranding.ts +16 -0
  129. package/src/models/UpdateSelectedPortalResponse.ts +92 -0
  130. package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
  131. package/src/models/index.ts +3 -0
  132. package/src/runtime.ts +1 -2
@@ -150,6 +150,7 @@ docs/GetSupportTicketAttachment.md
150
150
  docs/GetSupportTicketComment.md
151
151
  docs/GetSupportTicketList.md
152
152
  docs/GetUser.md
153
+ docs/GetUserAvatarUpload.md
153
154
  docs/GetUserQuizAttempts.md
154
155
  docs/GetUserQuizAttemptsAllOfAttempts.md
155
156
  docs/GetUserQuizAttemptsAllOfFilters.md
@@ -271,6 +272,8 @@ docs/ShortAnswer1.md
271
272
  docs/SingleAnswer.md
272
273
  docs/SupportTicketApi.md
273
274
  docs/SupportTicketUser.md
275
+ docs/UpdateSelectedPortalResponse.md
276
+ docs/UpdateSelectedPortalResponseSelectedPortal.md
274
277
  docs/UserApi.md
275
278
  package.json
276
279
  src/apis/CertificateApi.ts
@@ -433,6 +436,7 @@ src/models/GetSupportTicketAttachment.ts
433
436
  src/models/GetSupportTicketComment.ts
434
437
  src/models/GetSupportTicketList.ts
435
438
  src/models/GetUser.ts
439
+ src/models/GetUserAvatarUpload.ts
436
440
  src/models/GetUserQuizAttempts.ts
437
441
  src/models/GetUserQuizAttemptsAllOfAttempts.ts
438
442
  src/models/GetUserQuizAttemptsAllOfFilters.ts
@@ -545,6 +549,8 @@ src/models/ShortAnswer.ts
545
549
  src/models/ShortAnswer1.ts
546
550
  src/models/SingleAnswer.ts
547
551
  src/models/SupportTicketUser.ts
552
+ src/models/UpdateSelectedPortalResponse.ts
553
+ src/models/UpdateSelectedPortalResponseSelectedPortal.ts
548
554
  src/models/index.ts
549
555
  src/runtime.ts
550
556
  tsconfig.esm.json
@@ -1 +1 @@
1
- 7.21.0
1
+ 7.22.0
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @easyedu/js-lsm-api@1.57.0
1
+ # @easyedu/js-lsm-api@1.59.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -202,11 +202,13 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
202
202
  *SupportTicketApi* | [**postSupportTicketAttachment**](docs/SupportTicketApi.md#postsupportticketattachment) | **POST** /support/tickets/{ticketId}/attachments | Upload an attachment to a ticket
203
203
  *SupportTicketApi* | [**postSupportTicketComment**](docs/SupportTicketApi.md#postsupportticketcomment) | **POST** /support/tickets/{ticketId}/comments | Add a comment to a ticket
204
204
  *SupportTicketApi* | [**putSupportTicket**](docs/SupportTicketApi.md#putsupportticket) | **PUT** /support/tickets/{ticketId} | Update a support ticket
205
+ *UserApi* | [**deleteUserAvatar**](docs/UserApi.md#deleteuseravatar) | **DELETE** /users/{userId}/avatar | Remove the current user\'s profile photo
205
206
  *UserApi* | [**getAuthCheck**](docs/UserApi.md#getauthcheck) | **GET** /auth/check | Check if a user is logged in
206
207
  *UserApi* | [**getCurrentUserPermissions**](docs/UserApi.md#getcurrentuserpermissions) | **GET** /users/current/permissions | Get the current user\'s permissions
207
208
  *UserApi* | [**getUser**](docs/UserApi.md#getuser) | **GET** /users/{userId} | Get a user by id
208
209
  *UserApi* | [**postLogin**](docs/UserApi.md#postlogin) | **POST** /auth/login | Post a new login
209
210
  *UserApi* | [**postLogout**](docs/UserApi.md#postlogout) | **POST** /auth/logout | Logout a user
211
+ *UserApi* | [**postUserAvatarUpload**](docs/UserApi.md#postuseravatarupload) | **POST** /users/{userId}/avatar | Upload a profile photo for the current user
210
212
  *UserApi* | [**putUser**](docs/UserApi.md#putuser) | **PUT** /users/{userId} | Update a user by id
211
213
  *UserApi* | [**resetPassword**](docs/UserApi.md#resetpassword) | **POST** /auth/reset-password | Reset a users password
212
214
  *UserApi* | [**sendResetPassword**](docs/UserApi.md#sendresetpassword) | **POST** /auth/send-reset-password | Send a reset password email
@@ -356,6 +358,7 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
356
358
  - [GetSupportTicketComment](docs/GetSupportTicketComment.md)
357
359
  - [GetSupportTicketList](docs/GetSupportTicketList.md)
358
360
  - [GetUser](docs/GetUser.md)
361
+ - [GetUserAvatarUpload](docs/GetUserAvatarUpload.md)
359
362
  - [GetUserQuizAttempts](docs/GetUserQuizAttempts.md)
360
363
  - [GetUserQuizAttemptsAllOfAttempts](docs/GetUserQuizAttemptsAllOfAttempts.md)
361
364
  - [GetUserQuizAttemptsAllOfFilters](docs/GetUserQuizAttemptsAllOfFilters.md)
@@ -468,6 +471,8 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
468
471
  - [ShortAnswer1](docs/ShortAnswer1.md)
469
472
  - [SingleAnswer](docs/SingleAnswer.md)
470
473
  - [SupportTicketUser](docs/SupportTicketUser.md)
474
+ - [UpdateSelectedPortalResponse](docs/UpdateSelectedPortalResponse.md)
475
+ - [UpdateSelectedPortalResponseSelectedPortal](docs/UpdateSelectedPortalResponseSelectedPortal.md)
471
476
 
472
477
  ### Authorization
473
478
 
@@ -481,8 +486,8 @@ and is automatically generated by the
481
486
  [OpenAPI Generator](https://openapi-generator.tech) project:
482
487
 
483
488
  - API version: `1.0.0`
484
- - Package version: `1.57.0`
485
- - Generator version: `7.21.0`
489
+ - Package version: `1.59.0`
490
+ - Generator version: `7.22.0`
486
491
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
487
492
 
488
493
  The generated npm module supports the following:
@@ -10,7 +10,16 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Certificate, CertificateConfig, CertificatePublic, EffectiveCertificateConfig, GetCertificateConfigList, GetCertificateList, PostCertificate, PostCertificateConfig, PostRevokeCertificate, PutCertificateConfig } from '../models/index';
13
+ import { type Certificate } from '../models/Certificate';
14
+ import { type CertificateConfig } from '../models/CertificateConfig';
15
+ import { type CertificatePublic } from '../models/CertificatePublic';
16
+ import { type EffectiveCertificateConfig } from '../models/EffectiveCertificateConfig';
17
+ import { type GetCertificateConfigList } from '../models/GetCertificateConfigList';
18
+ import { type GetCertificateList } from '../models/GetCertificateList';
19
+ import { type PostCertificate } from '../models/PostCertificate';
20
+ import { type PostCertificateConfig } from '../models/PostCertificateConfig';
21
+ import { type PostRevokeCertificate } from '../models/PostRevokeCertificate';
22
+ import { type PutCertificateConfig } from '../models/PutCertificateConfig';
14
23
  export interface DeleteCertificateConfigRequest {
15
24
  configId: string;
16
25
  }
@@ -24,7 +24,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.GetCertificatesStatusEnum = exports.GetCertificateConfigsScopeEnum = exports.CertificateApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const Certificate_1 = require("../models/Certificate");
28
+ const CertificateConfig_1 = require("../models/CertificateConfig");
29
+ const CertificatePublic_1 = require("../models/CertificatePublic");
30
+ const EffectiveCertificateConfig_1 = require("../models/EffectiveCertificateConfig");
31
+ const GetCertificateConfigList_1 = require("../models/GetCertificateConfigList");
32
+ const GetCertificateList_1 = require("../models/GetCertificateList");
33
+ const PostCertificate_1 = require("../models/PostCertificate");
34
+ const PostCertificateConfig_1 = require("../models/PostCertificateConfig");
35
+ const PostRevokeCertificate_1 = require("../models/PostRevokeCertificate");
36
+ const PutCertificateConfig_1 = require("../models/PutCertificateConfig");
28
37
  /**
29
38
  *
30
39
  */
@@ -40,7 +49,7 @@ class CertificateApi extends runtime.BaseAPI {
40
49
  const queryParameters = {};
41
50
  const headerParameters = {};
42
51
  let urlPath = `/certificate-configs/{configId}`;
43
- urlPath = urlPath.replace(`{${"configId"}}`, encodeURIComponent(String(requestParameters['configId'])));
52
+ urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
44
53
  return {
45
54
  path: urlPath,
46
55
  method: 'DELETE',
@@ -78,7 +87,7 @@ class CertificateApi extends runtime.BaseAPI {
78
87
  const queryParameters = {};
79
88
  const headerParameters = {};
80
89
  let urlPath = `/certificates/{certificateId}`;
81
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
90
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
82
91
  return {
83
92
  path: urlPath,
84
93
  method: 'GET',
@@ -94,7 +103,7 @@ class CertificateApi extends runtime.BaseAPI {
94
103
  return __awaiter(this, void 0, void 0, function* () {
95
104
  const requestOptions = yield this.getCertificateRequestOpts(requestParameters);
96
105
  const response = yield this.request(requestOptions, initOverrides);
97
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificateFromJSON)(jsonValue));
106
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Certificate_1.CertificateFromJSON)(jsonValue));
98
107
  });
99
108
  }
100
109
  /**
@@ -117,7 +126,7 @@ class CertificateApi extends runtime.BaseAPI {
117
126
  const queryParameters = {};
118
127
  const headerParameters = {};
119
128
  let urlPath = `/certificate-configs/{configId}`;
120
- urlPath = urlPath.replace(`{${"configId"}}`, encodeURIComponent(String(requestParameters['configId'])));
129
+ urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
121
130
  return {
122
131
  path: urlPath,
123
132
  method: 'GET',
@@ -133,7 +142,7 @@ class CertificateApi extends runtime.BaseAPI {
133
142
  return __awaiter(this, void 0, void 0, function* () {
134
143
  const requestOptions = yield this.getCertificateConfigRequestOpts(requestParameters);
135
144
  const response = yield this.request(requestOptions, initOverrides);
136
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificateConfigFromJSON)(jsonValue));
145
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CertificateConfig_1.CertificateConfigFromJSON)(jsonValue));
137
146
  });
138
147
  }
139
148
  /**
@@ -174,7 +183,7 @@ class CertificateApi extends runtime.BaseAPI {
174
183
  return __awaiter(this, void 0, void 0, function* () {
175
184
  const requestOptions = yield this.getCertificateConfigsRequestOpts(requestParameters);
176
185
  const response = yield this.request(requestOptions, initOverrides);
177
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCertificateConfigListFromJSON)(jsonValue));
186
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCertificateConfigList_1.GetCertificateConfigListFromJSON)(jsonValue));
178
187
  });
179
188
  }
180
189
  /**
@@ -197,7 +206,7 @@ class CertificateApi extends runtime.BaseAPI {
197
206
  const queryParameters = {};
198
207
  const headerParameters = {};
199
208
  let urlPath = `/certificates/{certificateId}/pdf`;
200
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
209
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
201
210
  return {
202
211
  path: urlPath,
203
212
  method: 'GET',
@@ -272,7 +281,7 @@ class CertificateApi extends runtime.BaseAPI {
272
281
  return __awaiter(this, void 0, void 0, function* () {
273
282
  const requestOptions = yield this.getCertificatesRequestOpts(requestParameters);
274
283
  const response = yield this.request(requestOptions, initOverrides);
275
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCertificateListFromJSON)(jsonValue));
284
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCertificateList_1.GetCertificateListFromJSON)(jsonValue));
276
285
  });
277
286
  }
278
287
  /**
@@ -307,7 +316,7 @@ class CertificateApi extends runtime.BaseAPI {
307
316
  return __awaiter(this, void 0, void 0, function* () {
308
317
  const requestOptions = yield this.getCurrentUserCertificatesRequestOpts();
309
318
  const response = yield this.request(requestOptions, initOverrides);
310
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCertificateListFromJSON)(jsonValue));
319
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCertificateList_1.GetCertificateListFromJSON)(jsonValue));
311
320
  });
312
321
  }
313
322
  /**
@@ -330,7 +339,7 @@ class CertificateApi extends runtime.BaseAPI {
330
339
  const queryParameters = {};
331
340
  const headerParameters = {};
332
341
  let urlPath = `/courses/{courseId}/certificate-config/effective`;
333
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
342
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
334
343
  return {
335
344
  path: urlPath,
336
345
  method: 'GET',
@@ -346,7 +355,7 @@ class CertificateApi extends runtime.BaseAPI {
346
355
  return __awaiter(this, void 0, void 0, function* () {
347
356
  const requestOptions = yield this.getEffectiveCertificateConfigRequestOpts(requestParameters);
348
357
  const response = yield this.request(requestOptions, initOverrides);
349
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EffectiveCertificateConfigFromJSON)(jsonValue));
358
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, EffectiveCertificateConfig_1.EffectiveCertificateConfigFromJSON)(jsonValue));
350
359
  });
351
360
  }
352
361
  /**
@@ -375,7 +384,7 @@ class CertificateApi extends runtime.BaseAPI {
375
384
  method: 'POST',
376
385
  headers: headerParameters,
377
386
  query: queryParameters,
378
- body: (0, index_1.PostCertificateConfigToJSON)(requestParameters['postCertificateConfig']),
387
+ body: (0, PostCertificateConfig_1.PostCertificateConfigToJSON)(requestParameters['postCertificateConfig']),
379
388
  };
380
389
  });
381
390
  }
@@ -386,7 +395,7 @@ class CertificateApi extends runtime.BaseAPI {
386
395
  return __awaiter(this, void 0, void 0, function* () {
387
396
  const requestOptions = yield this.postCertificateConfigRequestOpts(requestParameters);
388
397
  const response = yield this.request(requestOptions, initOverrides);
389
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificateConfigFromJSON)(jsonValue));
398
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CertificateConfig_1.CertificateConfigFromJSON)(jsonValue));
390
399
  });
391
400
  }
392
401
  /**
@@ -413,13 +422,13 @@ class CertificateApi extends runtime.BaseAPI {
413
422
  const headerParameters = {};
414
423
  headerParameters['Content-Type'] = 'application/json';
415
424
  let urlPath = `/courses/{courseId}/certificates`;
416
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
425
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
417
426
  return {
418
427
  path: urlPath,
419
428
  method: 'POST',
420
429
  headers: headerParameters,
421
430
  query: queryParameters,
422
- body: (0, index_1.PostCertificateToJSON)(requestParameters['postCertificate']),
431
+ body: (0, PostCertificate_1.PostCertificateToJSON)(requestParameters['postCertificate']),
423
432
  };
424
433
  });
425
434
  }
@@ -430,7 +439,7 @@ class CertificateApi extends runtime.BaseAPI {
430
439
  return __awaiter(this, void 0, void 0, function* () {
431
440
  const requestOptions = yield this.postCourseCertificateRequestOpts(requestParameters);
432
441
  const response = yield this.request(requestOptions, initOverrides);
433
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificateFromJSON)(jsonValue));
442
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Certificate_1.CertificateFromJSON)(jsonValue));
434
443
  });
435
444
  }
436
445
  /**
@@ -457,13 +466,13 @@ class CertificateApi extends runtime.BaseAPI {
457
466
  const headerParameters = {};
458
467
  headerParameters['Content-Type'] = 'application/json';
459
468
  let urlPath = `/certificates/{certificateId}/revoke`;
460
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
469
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
461
470
  return {
462
471
  path: urlPath,
463
472
  method: 'POST',
464
473
  headers: headerParameters,
465
474
  query: queryParameters,
466
- body: (0, index_1.PostRevokeCertificateToJSON)(requestParameters['postRevokeCertificate']),
475
+ body: (0, PostRevokeCertificate_1.PostRevokeCertificateToJSON)(requestParameters['postRevokeCertificate']),
467
476
  };
468
477
  });
469
478
  }
@@ -474,7 +483,7 @@ class CertificateApi extends runtime.BaseAPI {
474
483
  return __awaiter(this, void 0, void 0, function* () {
475
484
  const requestOptions = yield this.postRevokeCertificateRequestOpts(requestParameters);
476
485
  const response = yield this.request(requestOptions, initOverrides);
477
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificateFromJSON)(jsonValue));
486
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, Certificate_1.CertificateFromJSON)(jsonValue));
478
487
  });
479
488
  }
480
489
  /**
@@ -501,13 +510,13 @@ class CertificateApi extends runtime.BaseAPI {
501
510
  const headerParameters = {};
502
511
  headerParameters['Content-Type'] = 'application/json';
503
512
  let urlPath = `/certificate-configs/{configId}`;
504
- urlPath = urlPath.replace(`{${"configId"}}`, encodeURIComponent(String(requestParameters['configId'])));
513
+ urlPath = urlPath.replace('{configId}', encodeURIComponent(String(requestParameters['configId'])));
505
514
  return {
506
515
  path: urlPath,
507
516
  method: 'PUT',
508
517
  headers: headerParameters,
509
518
  query: queryParameters,
510
- body: (0, index_1.PutCertificateConfigToJSON)(requestParameters['putCertificateConfig']),
519
+ body: (0, PutCertificateConfig_1.PutCertificateConfigToJSON)(requestParameters['putCertificateConfig']),
511
520
  };
512
521
  });
513
522
  }
@@ -518,7 +527,7 @@ class CertificateApi extends runtime.BaseAPI {
518
527
  return __awaiter(this, void 0, void 0, function* () {
519
528
  const requestOptions = yield this.putCertificateConfigRequestOpts(requestParameters);
520
529
  const response = yield this.request(requestOptions, initOverrides);
521
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificateConfigFromJSON)(jsonValue));
530
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CertificateConfig_1.CertificateConfigFromJSON)(jsonValue));
522
531
  });
523
532
  }
524
533
  /**
@@ -541,7 +550,7 @@ class CertificateApi extends runtime.BaseAPI {
541
550
  const queryParameters = {};
542
551
  const headerParameters = {};
543
552
  let urlPath = `/public/certificates/{certificateId}/verify`;
544
- urlPath = urlPath.replace(`{${"certificateId"}}`, encodeURIComponent(String(requestParameters['certificateId'])));
553
+ urlPath = urlPath.replace('{certificateId}', encodeURIComponent(String(requestParameters['certificateId'])));
545
554
  return {
546
555
  path: urlPath,
547
556
  method: 'GET',
@@ -557,7 +566,7 @@ class CertificateApi extends runtime.BaseAPI {
557
566
  return __awaiter(this, void 0, void 0, function* () {
558
567
  const requestOptions = yield this.verifyCertificateRequestOpts(requestParameters);
559
568
  const response = yield this.request(requestOptions, initOverrides);
560
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CertificatePublicFromJSON)(jsonValue));
569
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, CertificatePublic_1.CertificatePublicFromJSON)(jsonValue));
561
570
  });
562
571
  }
563
572
  /**
@@ -10,7 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetChatMessage, GetConversationList, PostConversation, PostConversationResponse, PostMessage, PostMessageResponse } from '../models/index';
13
+ import { type GetChatMessage } from '../models/GetChatMessage';
14
+ import { type GetConversationList } from '../models/GetConversationList';
15
+ import { type PostConversation } from '../models/PostConversation';
16
+ import { type PostConversationResponse } from '../models/PostConversationResponse';
17
+ import { type PostMessage } from '../models/PostMessage';
18
+ import { type PostMessageResponse } from '../models/PostMessageResponse';
14
19
  export interface DeleteConversationRequest {
15
20
  conversationId: string;
16
21
  }
@@ -24,7 +24,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ChatApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const GetChatMessage_1 = require("../models/GetChatMessage");
28
+ const GetConversationList_1 = require("../models/GetConversationList");
29
+ const PostConversation_1 = require("../models/PostConversation");
30
+ const PostConversationResponse_1 = require("../models/PostConversationResponse");
31
+ const PostMessage_1 = require("../models/PostMessage");
32
+ const PostMessageResponse_1 = require("../models/PostMessageResponse");
28
33
  /**
29
34
  *
30
35
  */
@@ -40,7 +45,7 @@ class ChatApi extends runtime.BaseAPI {
40
45
  const queryParameters = {};
41
46
  const headerParameters = {};
42
47
  let urlPath = `/chat/conversations/{conversationId}`;
43
- urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
48
+ urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
44
49
  return {
45
50
  path: urlPath,
46
51
  method: 'DELETE',
@@ -78,7 +83,7 @@ class ChatApi extends runtime.BaseAPI {
78
83
  const queryParameters = {};
79
84
  const headerParameters = {};
80
85
  let urlPath = `/chat/conversations/{conversationId}/messages`;
81
- urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
86
+ urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
82
87
  return {
83
88
  path: urlPath,
84
89
  method: 'GET',
@@ -94,7 +99,7 @@ class ChatApi extends runtime.BaseAPI {
94
99
  return __awaiter(this, void 0, void 0, function* () {
95
100
  const requestOptions = yield this.getConversationMessagesRequestOpts(requestParameters);
96
101
  const response = yield this.request(requestOptions, initOverrides);
97
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetChatMessageFromJSON));
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetChatMessage_1.GetChatMessageFromJSON));
98
103
  });
99
104
  }
100
105
  /**
@@ -135,7 +140,7 @@ class ChatApi extends runtime.BaseAPI {
135
140
  return __awaiter(this, void 0, void 0, function* () {
136
141
  const requestOptions = yield this.getConversationsRequestOpts(requestParameters);
137
142
  const response = yield this.request(requestOptions, initOverrides);
138
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetConversationListFromJSON)(jsonValue));
143
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetConversationList_1.GetConversationListFromJSON)(jsonValue));
139
144
  });
140
145
  }
141
146
  /**
@@ -164,7 +169,7 @@ class ChatApi extends runtime.BaseAPI {
164
169
  method: 'POST',
165
170
  headers: headerParameters,
166
171
  query: queryParameters,
167
- body: (0, index_1.PostConversationToJSON)(requestParameters['postConversation']),
172
+ body: (0, PostConversation_1.PostConversationToJSON)(requestParameters['postConversation']),
168
173
  };
169
174
  });
170
175
  }
@@ -175,7 +180,7 @@ class ChatApi extends runtime.BaseAPI {
175
180
  return __awaiter(this, void 0, void 0, function* () {
176
181
  const requestOptions = yield this.postConversationRequestOpts(requestParameters);
177
182
  const response = yield this.request(requestOptions, initOverrides);
178
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostConversationResponseFromJSON)(jsonValue));
183
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostConversationResponse_1.PostConversationResponseFromJSON)(jsonValue));
179
184
  });
180
185
  }
181
186
  /**
@@ -202,13 +207,13 @@ class ChatApi extends runtime.BaseAPI {
202
207
  const headerParameters = {};
203
208
  headerParameters['Content-Type'] = 'application/json';
204
209
  let urlPath = `/chat/conversations/{conversationId}/messages`;
205
- urlPath = urlPath.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId'])));
210
+ urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
206
211
  return {
207
212
  path: urlPath,
208
213
  method: 'POST',
209
214
  headers: headerParameters,
210
215
  query: queryParameters,
211
- body: (0, index_1.PostMessageToJSON)(requestParameters['postMessage']),
216
+ body: (0, PostMessage_1.PostMessageToJSON)(requestParameters['postMessage']),
212
217
  };
213
218
  });
214
219
  }
@@ -219,7 +224,7 @@ class ChatApi extends runtime.BaseAPI {
219
224
  return __awaiter(this, void 0, void 0, function* () {
220
225
  const requestOptions = yield this.postMessageRequestOpts(requestParameters);
221
226
  const response = yield this.request(requestOptions, initOverrides);
222
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PostMessageResponseFromJSON)(jsonValue));
227
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, PostMessageResponse_1.PostMessageResponseFromJSON)(jsonValue));
223
228
  });
224
229
  }
225
230
  /**
@@ -10,7 +10,28 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetContent, GetContentList, GetContentSession, GetContentSessionDetail, GetContentSessionList, GetContentUpload, GetContentVersion, GetContentVersionList, GetScormApiLogs, GetScormPackage, GetScormSessionData, PostContentQuiz, PostContentSession, PostContentUpload, PostDuplicate2, PostVerifyManifest, PutContent, PutContentReorder, PutContentVersion, ScormGetValueResponse, ScormSetValueRequest, ScormSetValueResponse } from '../models/index';
13
+ import { type GetContent } from '../models/GetContent';
14
+ import { type GetContentList } from '../models/GetContentList';
15
+ import { type GetContentSession } from '../models/GetContentSession';
16
+ import { type GetContentSessionDetail } from '../models/GetContentSessionDetail';
17
+ import { type GetContentSessionList } from '../models/GetContentSessionList';
18
+ import { type GetContentUpload } from '../models/GetContentUpload';
19
+ import { type GetContentVersion } from '../models/GetContentVersion';
20
+ import { type GetContentVersionList } from '../models/GetContentVersionList';
21
+ import { type GetScormApiLogs } from '../models/GetScormApiLogs';
22
+ import { type GetScormPackage } from '../models/GetScormPackage';
23
+ import { type GetScormSessionData } from '../models/GetScormSessionData';
24
+ import { type PostContentQuiz } from '../models/PostContentQuiz';
25
+ import { type PostContentSession } from '../models/PostContentSession';
26
+ import { type PostContentUpload } from '../models/PostContentUpload';
27
+ import { type PostDuplicate2 } from '../models/PostDuplicate2';
28
+ import { type PostVerifyManifest } from '../models/PostVerifyManifest';
29
+ import { type PutContent } from '../models/PutContent';
30
+ import { type PutContentReorder } from '../models/PutContentReorder';
31
+ import { type PutContentVersion } from '../models/PutContentVersion';
32
+ import { type ScormGetValueResponse } from '../models/ScormGetValueResponse';
33
+ import { type ScormSetValueRequest } from '../models/ScormSetValueRequest';
34
+ import { type ScormSetValueResponse } from '../models/ScormSetValueResponse';
14
35
  export interface CommitScormSessionRequest {
15
36
  scormSessionId: string;
16
37
  }