@easyedu/js-lsm-api 1.58.0 → 1.60.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 (125) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/README.md +6 -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 +7 -1
  33. package/dist/apis/UserApi.js +19 -13
  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 +7 -1
  63. package/dist/esm/apis/UserApi.js +11 -5
  64. package/dist/esm/models/GetPortal.d.ts +12 -0
  65. package/dist/esm/models/GetPortal.js +4 -0
  66. package/dist/esm/models/PostPortal.d.ts +12 -0
  67. package/dist/esm/models/PostPortal.js +4 -0
  68. package/dist/esm/models/PutPortalBranding.d.ts +12 -0
  69. package/dist/esm/models/PutPortalBranding.js +4 -0
  70. package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +52 -0
  71. package/dist/esm/models/UpdateSelectedPortalResponse.js +57 -0
  72. package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
  73. package/dist/esm/models/UpdateSelectedPortalResponseHostPortal.js +51 -0
  74. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  75. package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
  76. package/dist/esm/models/index.d.ts +3 -0
  77. package/dist/esm/models/index.js +3 -0
  78. package/dist/esm/runtime.js +1 -1
  79. package/dist/models/GetPortal.d.ts +12 -0
  80. package/dist/models/GetPortal.js +4 -0
  81. package/dist/models/PostPortal.d.ts +12 -0
  82. package/dist/models/PostPortal.js +4 -0
  83. package/dist/models/PutPortalBranding.d.ts +12 -0
  84. package/dist/models/PutPortalBranding.js +4 -0
  85. package/dist/models/UpdateSelectedPortalResponse.d.ts +52 -0
  86. package/dist/models/UpdateSelectedPortalResponse.js +64 -0
  87. package/dist/models/UpdateSelectedPortalResponseHostPortal.d.ts +44 -0
  88. package/dist/models/UpdateSelectedPortalResponseHostPortal.js +58 -0
  89. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
  90. package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
  91. package/dist/models/index.d.ts +3 -0
  92. package/dist/models/index.js +3 -0
  93. package/dist/runtime.js +1 -1
  94. package/docs/GetPortal.md +4 -0
  95. package/docs/PortalApi.md +3 -3
  96. package/docs/PostPortal.md +4 -0
  97. package/docs/PutPortalBranding.md +4 -0
  98. package/docs/UpdateSelectedPortalResponse.md +40 -0
  99. package/docs/UpdateSelectedPortalResponseHostPortal.md +39 -0
  100. package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
  101. package/package.json +1 -1
  102. package/src/apis/CertificateApi.ts +38 -23
  103. package/src/apis/ChatApi.ts +20 -13
  104. package/src/apis/ContentApi.ts +117 -78
  105. package/src/apis/CourseApi.ts +57 -34
  106. package/src/apis/CourseCatalogApi.ts +19 -16
  107. package/src/apis/CourseShareApi.ts +21 -16
  108. package/src/apis/ModuleApi.ts +26 -19
  109. package/src/apis/OtherApi.ts +0 -1
  110. package/src/apis/PortalApi.ts +42 -25
  111. package/src/apis/PortalSublicenseApi.ts +6 -7
  112. package/src/apis/QuestionApi.ts +14 -11
  113. package/src/apis/QuizApi.ts +96 -57
  114. package/src/apis/ReportingApi.ts +47 -34
  115. package/src/apis/RoleApi.ts +29 -22
  116. package/src/apis/SupportTicketApi.ts +31 -20
  117. package/src/apis/UserApi.ts +24 -15
  118. package/src/models/GetPortal.ts +16 -0
  119. package/src/models/PostPortal.ts +16 -0
  120. package/src/models/PutPortalBranding.ts +16 -0
  121. package/src/models/UpdateSelectedPortalResponse.ts +108 -0
  122. package/src/models/UpdateSelectedPortalResponseHostPortal.ts +84 -0
  123. package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
  124. package/src/models/index.ts +3 -0
  125. package/src/runtime.ts +1 -2
@@ -272,6 +272,9 @@ docs/ShortAnswer1.md
272
272
  docs/SingleAnswer.md
273
273
  docs/SupportTicketApi.md
274
274
  docs/SupportTicketUser.md
275
+ docs/UpdateSelectedPortalResponse.md
276
+ docs/UpdateSelectedPortalResponseHostPortal.md
277
+ docs/UpdateSelectedPortalResponseSelectedPortal.md
275
278
  docs/UserApi.md
276
279
  package.json
277
280
  src/apis/CertificateApi.ts
@@ -547,6 +550,9 @@ src/models/ShortAnswer.ts
547
550
  src/models/ShortAnswer1.ts
548
551
  src/models/SingleAnswer.ts
549
552
  src/models/SupportTicketUser.ts
553
+ src/models/UpdateSelectedPortalResponse.ts
554
+ src/models/UpdateSelectedPortalResponseHostPortal.ts
555
+ src/models/UpdateSelectedPortalResponseSelectedPortal.ts
550
556
  src/models/index.ts
551
557
  src/runtime.ts
552
558
  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.58.0
1
+ # @easyedu/js-lsm-api@1.60.0
2
2
 
3
3
  A TypeScript SDK client for the sbzw93t49b.execute-api.us-east-2.amazonaws.com API.
4
4
 
@@ -471,6 +471,9 @@ All URIs are relative to *https://sbzw93t49b.execute-api.us-east-2.amazonaws.com
471
471
  - [ShortAnswer1](docs/ShortAnswer1.md)
472
472
  - [SingleAnswer](docs/SingleAnswer.md)
473
473
  - [SupportTicketUser](docs/SupportTicketUser.md)
474
+ - [UpdateSelectedPortalResponse](docs/UpdateSelectedPortalResponse.md)
475
+ - [UpdateSelectedPortalResponseHostPortal](docs/UpdateSelectedPortalResponseHostPortal.md)
476
+ - [UpdateSelectedPortalResponseSelectedPortal](docs/UpdateSelectedPortalResponseSelectedPortal.md)
474
477
 
475
478
  ### Authorization
476
479
 
@@ -484,8 +487,8 @@ and is automatically generated by the
484
487
  [OpenAPI Generator](https://openapi-generator.tech) project:
485
488
 
486
489
  - API version: `1.0.0`
487
- - Package version: `1.58.0`
488
- - Generator version: `7.21.0`
490
+ - Package version: `1.60.0`
491
+ - Generator version: `7.22.0`
489
492
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
490
493
 
491
494
  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
  }