@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
@@ -24,7 +24,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ReportingApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const GetContentGradeDetail_1 = require("../models/GetContentGradeDetail");
28
+ const GetContentGrades_1 = require("../models/GetContentGrades");
29
+ const GetContentInstructorBasicReporting_1 = require("../models/GetContentInstructorBasicReporting");
30
+ const GetCourseReportingBasic_1 = require("../models/GetCourseReportingBasic");
31
+ const GetCourseStudentReporting_1 = require("../models/GetCourseStudentReporting");
32
+ const GetModuleInstructorBasicReporting_1 = require("../models/GetModuleInstructorBasicReporting");
33
+ const GetModuleStudentReporting_1 = require("../models/GetModuleStudentReporting");
34
+ const GetPortalBasicReporting_1 = require("../models/GetPortalBasicReporting");
35
+ const GetPortalStudentReporting_1 = require("../models/GetPortalStudentReporting");
28
36
  /**
29
37
  *
30
38
  */
@@ -49,10 +57,10 @@ class ReportingApi extends runtime.BaseAPI {
49
57
  const queryParameters = {};
50
58
  const headerParameters = {};
51
59
  let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades/{studentId}`;
52
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
53
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
54
- urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
55
- urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
60
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
61
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
62
+ urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
63
+ urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
56
64
  return {
57
65
  path: urlPath,
58
66
  method: 'GET',
@@ -68,7 +76,7 @@ class ReportingApi extends runtime.BaseAPI {
68
76
  return __awaiter(this, void 0, void 0, function* () {
69
77
  const requestOptions = yield this.getContentGradeDetailRequestOpts(requestParameters);
70
78
  const response = yield this.request(requestOptions, initOverrides);
71
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentGradeDetailFromJSON)(jsonValue));
79
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentGradeDetail_1.GetContentGradeDetailFromJSON)(jsonValue));
72
80
  });
73
81
  }
74
82
  /**
@@ -106,9 +114,9 @@ class ReportingApi extends runtime.BaseAPI {
106
114
  }
107
115
  const headerParameters = {};
108
116
  let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/grades`;
109
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
110
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
111
- urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
117
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
118
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
119
+ urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
112
120
  return {
113
121
  path: urlPath,
114
122
  method: 'GET',
@@ -124,7 +132,7 @@ class ReportingApi extends runtime.BaseAPI {
124
132
  return __awaiter(this, void 0, void 0, function* () {
125
133
  const requestOptions = yield this.getContentGradesRequestOpts(requestParameters);
126
134
  const response = yield this.request(requestOptions, initOverrides);
127
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentGradesFromJSON)(jsonValue));
135
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentGrades_1.GetContentGradesFromJSON)(jsonValue));
128
136
  });
129
137
  }
130
138
  /**
@@ -153,9 +161,9 @@ class ReportingApi extends runtime.BaseAPI {
153
161
  const queryParameters = {};
154
162
  const headerParameters = {};
155
163
  let urlPath = `/courses/{courseId}/modules/{moduleId}/contents/{contentId}/reporting/instructor/basic`;
156
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
157
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
158
- urlPath = urlPath.replace(`{${"contentId"}}`, encodeURIComponent(String(requestParameters['contentId'])));
164
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
165
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
166
+ urlPath = urlPath.replace('{contentId}', encodeURIComponent(String(requestParameters['contentId'])));
159
167
  return {
160
168
  path: urlPath,
161
169
  method: 'GET',
@@ -171,7 +179,7 @@ class ReportingApi extends runtime.BaseAPI {
171
179
  return __awaiter(this, void 0, void 0, function* () {
172
180
  const requestOptions = yield this.getContentInstructorBasicReportingRequestOpts(requestParameters);
173
181
  const response = yield this.request(requestOptions, initOverrides);
174
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetContentInstructorBasicReportingFromJSON)(jsonValue));
182
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetContentInstructorBasicReporting_1.GetContentInstructorBasicReportingFromJSON)(jsonValue));
175
183
  });
176
184
  }
177
185
  /**
@@ -194,7 +202,7 @@ class ReportingApi extends runtime.BaseAPI {
194
202
  const queryParameters = {};
195
203
  const headerParameters = {};
196
204
  let urlPath = `/courses/{courseId}/reporting/instructor/basic`;
197
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
205
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
198
206
  return {
199
207
  path: urlPath,
200
208
  method: 'GET',
@@ -210,7 +218,7 @@ class ReportingApi extends runtime.BaseAPI {
210
218
  return __awaiter(this, void 0, void 0, function* () {
211
219
  const requestOptions = yield this.getCourseInstructorReportingBasicRequestOpts(requestParameters);
212
220
  const response = yield this.request(requestOptions, initOverrides);
213
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCourseReportingBasicFromJSON)(jsonValue));
221
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseReportingBasic_1.GetCourseReportingBasicFromJSON)(jsonValue));
214
222
  });
215
223
  }
216
224
  /**
@@ -236,8 +244,8 @@ class ReportingApi extends runtime.BaseAPI {
236
244
  const queryParameters = {};
237
245
  const headerParameters = {};
238
246
  let urlPath = `/courses/{courseId}/reporting/students/{studentId}`;
239
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
240
- urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
247
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
248
+ urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
241
249
  return {
242
250
  path: urlPath,
243
251
  method: 'GET',
@@ -253,7 +261,7 @@ class ReportingApi extends runtime.BaseAPI {
253
261
  return __awaiter(this, void 0, void 0, function* () {
254
262
  const requestOptions = yield this.getCourseStudentReportingRequestOpts(requestParameters);
255
263
  const response = yield this.request(requestOptions, initOverrides);
256
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetCourseStudentReportingFromJSON)(jsonValue));
264
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetCourseStudentReporting_1.GetCourseStudentReportingFromJSON)(jsonValue));
257
265
  });
258
266
  }
259
267
  /**
@@ -279,8 +287,8 @@ class ReportingApi extends runtime.BaseAPI {
279
287
  const queryParameters = {};
280
288
  const headerParameters = {};
281
289
  let urlPath = `/courses/{courseId}/modules/{moduleId}/reporting/instructor/basic`;
282
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
283
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
290
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
291
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
284
292
  return {
285
293
  path: urlPath,
286
294
  method: 'GET',
@@ -296,7 +304,7 @@ class ReportingApi extends runtime.BaseAPI {
296
304
  return __awaiter(this, void 0, void 0, function* () {
297
305
  const requestOptions = yield this.getModuleInstructorBasicReportingRequestOpts(requestParameters);
298
306
  const response = yield this.request(requestOptions, initOverrides);
299
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetModuleInstructorBasicReportingFromJSON)(jsonValue));
307
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModuleInstructorBasicReporting_1.GetModuleInstructorBasicReportingFromJSON)(jsonValue));
300
308
  });
301
309
  }
302
310
  /**
@@ -325,9 +333,9 @@ class ReportingApi extends runtime.BaseAPI {
325
333
  const queryParameters = {};
326
334
  const headerParameters = {};
327
335
  let urlPath = `/courses/{courseId}/modules/{moduleId}/reporting/students/{studentId}`;
328
- urlPath = urlPath.replace(`{${"courseId"}}`, encodeURIComponent(String(requestParameters['courseId'])));
329
- urlPath = urlPath.replace(`{${"moduleId"}}`, encodeURIComponent(String(requestParameters['moduleId'])));
330
- urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
336
+ urlPath = urlPath.replace('{courseId}', encodeURIComponent(String(requestParameters['courseId'])));
337
+ urlPath = urlPath.replace('{moduleId}', encodeURIComponent(String(requestParameters['moduleId'])));
338
+ urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
331
339
  return {
332
340
  path: urlPath,
333
341
  method: 'GET',
@@ -343,7 +351,7 @@ class ReportingApi extends runtime.BaseAPI {
343
351
  return __awaiter(this, void 0, void 0, function* () {
344
352
  const requestOptions = yield this.getModuleStudentReportingRequestOpts(requestParameters);
345
353
  const response = yield this.request(requestOptions, initOverrides);
346
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetModuleStudentReportingFromJSON)(jsonValue));
354
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetModuleStudentReporting_1.GetModuleStudentReportingFromJSON)(jsonValue));
347
355
  });
348
356
  }
349
357
  /**
@@ -366,7 +374,7 @@ class ReportingApi extends runtime.BaseAPI {
366
374
  const queryParameters = {};
367
375
  const headerParameters = {};
368
376
  let urlPath = `/portals/{portalId}/reporting/basic`;
369
- urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
377
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
370
378
  return {
371
379
  path: urlPath,
372
380
  method: 'GET',
@@ -382,7 +390,7 @@ class ReportingApi extends runtime.BaseAPI {
382
390
  return __awaiter(this, void 0, void 0, function* () {
383
391
  const requestOptions = yield this.getPortalBasicReportingRequestOpts(requestParameters);
384
392
  const response = yield this.request(requestOptions, initOverrides);
385
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPortalBasicReportingFromJSON)(jsonValue));
393
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalBasicReporting_1.GetPortalBasicReportingFromJSON)(jsonValue));
386
394
  });
387
395
  }
388
396
  /**
@@ -408,8 +416,8 @@ class ReportingApi extends runtime.BaseAPI {
408
416
  const queryParameters = {};
409
417
  const headerParameters = {};
410
418
  let urlPath = `/portals/{portalId}/reporting/students/{studentId}`;
411
- urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
412
- urlPath = urlPath.replace(`{${"studentId"}}`, encodeURIComponent(String(requestParameters['studentId'])));
419
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
420
+ urlPath = urlPath.replace('{studentId}', encodeURIComponent(String(requestParameters['studentId'])));
413
421
  return {
414
422
  path: urlPath,
415
423
  method: 'GET',
@@ -425,7 +433,7 @@ class ReportingApi extends runtime.BaseAPI {
425
433
  return __awaiter(this, void 0, void 0, function* () {
426
434
  const requestOptions = yield this.getPortalStudentReportingRequestOpts(requestParameters);
427
435
  const response = yield this.request(requestOptions, initOverrides);
428
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetPortalStudentReportingFromJSON)(jsonValue));
436
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalStudentReporting_1.GetPortalStudentReportingFromJSON)(jsonValue));
429
437
  });
430
438
  }
431
439
  /**
@@ -10,7 +10,12 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetPermission, GetRole, GetUserRole, PostRole, PutRole, PutRolePermissions } from '../models/index';
13
+ import { type GetPermission } from '../models/GetPermission';
14
+ import { type GetRole } from '../models/GetRole';
15
+ import { type GetUserRole } from '../models/GetUserRole';
16
+ import { type PostRole } from '../models/PostRole';
17
+ import { type PutRole } from '../models/PutRole';
18
+ import { type PutRolePermissions } from '../models/PutRolePermissions';
14
19
  export interface AssignUserRoleRequest {
15
20
  userId: string;
16
21
  portalId: string;
@@ -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.RoleApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const GetPermission_1 = require("../models/GetPermission");
28
+ const GetRole_1 = require("../models/GetRole");
29
+ const GetUserRole_1 = require("../models/GetUserRole");
30
+ const PostRole_1 = require("../models/PostRole");
31
+ const PutRole_1 = require("../models/PutRole");
32
+ const PutRolePermissions_1 = require("../models/PutRolePermissions");
28
33
  /**
29
34
  *
30
35
  */
@@ -46,9 +51,9 @@ class RoleApi extends runtime.BaseAPI {
46
51
  const queryParameters = {};
47
52
  const headerParameters = {};
48
53
  let urlPath = `/roles/users/{userId}/portals/{portalId}/roles/{roleId}`;
49
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
50
- urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
51
- urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
54
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
55
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
56
+ urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
52
57
  return {
53
58
  path: urlPath,
54
59
  method: 'POST',
@@ -92,7 +97,7 @@ class RoleApi extends runtime.BaseAPI {
92
97
  method: 'POST',
93
98
  headers: headerParameters,
94
99
  query: queryParameters,
95
- body: (0, index_1.PostRoleToJSON)(requestParameters['postRole']),
100
+ body: (0, PostRole_1.PostRoleToJSON)(requestParameters['postRole']),
96
101
  };
97
102
  });
98
103
  }
@@ -103,7 +108,7 @@ class RoleApi extends runtime.BaseAPI {
103
108
  return __awaiter(this, void 0, void 0, function* () {
104
109
  const requestOptions = yield this.createRoleRequestOpts(requestParameters);
105
110
  const response = yield this.request(requestOptions, initOverrides);
106
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetRoleFromJSON)(jsonValue));
111
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetRole_1.GetRoleFromJSON)(jsonValue));
107
112
  });
108
113
  }
109
114
  /**
@@ -126,7 +131,7 @@ class RoleApi extends runtime.BaseAPI {
126
131
  const queryParameters = {};
127
132
  const headerParameters = {};
128
133
  let urlPath = `/roles/{roleId}`;
129
- urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
134
+ urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
130
135
  return {
131
136
  path: urlPath,
132
137
  method: 'DELETE',
@@ -176,7 +181,7 @@ class RoleApi extends runtime.BaseAPI {
176
181
  return __awaiter(this, void 0, void 0, function* () {
177
182
  const requestOptions = yield this.getPermissionsRequestOpts();
178
183
  const response = yield this.request(requestOptions, initOverrides);
179
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetPermissionFromJSON));
184
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetPermission_1.GetPermissionFromJSON));
180
185
  });
181
186
  }
182
187
  /**
@@ -199,7 +204,7 @@ class RoleApi extends runtime.BaseAPI {
199
204
  const queryParameters = {};
200
205
  const headerParameters = {};
201
206
  let urlPath = `/roles/{roleId}`;
202
- urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
207
+ urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
203
208
  return {
204
209
  path: urlPath,
205
210
  method: 'GET',
@@ -215,7 +220,7 @@ class RoleApi extends runtime.BaseAPI {
215
220
  return __awaiter(this, void 0, void 0, function* () {
216
221
  const requestOptions = yield this.getRoleRequestOpts(requestParameters);
217
222
  const response = yield this.request(requestOptions, initOverrides);
218
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetRoleFromJSON)(jsonValue));
223
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetRole_1.GetRoleFromJSON)(jsonValue));
219
224
  });
220
225
  }
221
226
  /**
@@ -250,7 +255,7 @@ class RoleApi extends runtime.BaseAPI {
250
255
  return __awaiter(this, void 0, void 0, function* () {
251
256
  const requestOptions = yield this.getRolesRequestOpts();
252
257
  const response = yield this.request(requestOptions, initOverrides);
253
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetRoleFromJSON));
258
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetRole_1.GetRoleFromJSON));
254
259
  });
255
260
  }
256
261
  /**
@@ -276,8 +281,8 @@ class RoleApi extends runtime.BaseAPI {
276
281
  const queryParameters = {};
277
282
  const headerParameters = {};
278
283
  let urlPath = `/roles/users/{userId}/portals/{portalId}`;
279
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
280
- urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
284
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
285
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
281
286
  return {
282
287
  path: urlPath,
283
288
  method: 'GET',
@@ -293,7 +298,7 @@ class RoleApi extends runtime.BaseAPI {
293
298
  return __awaiter(this, void 0, void 0, function* () {
294
299
  const requestOptions = yield this.getUserRolesRequestOpts(requestParameters);
295
300
  const response = yield this.request(requestOptions, initOverrides);
296
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetUserRoleFromJSON));
301
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetUserRole_1.GetUserRoleFromJSON));
297
302
  });
298
303
  }
299
304
  /**
@@ -322,9 +327,9 @@ class RoleApi extends runtime.BaseAPI {
322
327
  const queryParameters = {};
323
328
  const headerParameters = {};
324
329
  let urlPath = `/roles/users/{userId}/portals/{portalId}/roles/{roleId}`;
325
- urlPath = urlPath.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId'])));
326
- urlPath = urlPath.replace(`{${"portalId"}}`, encodeURIComponent(String(requestParameters['portalId'])));
327
- urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
330
+ urlPath = urlPath.replace('{userId}', encodeURIComponent(String(requestParameters['userId'])));
331
+ urlPath = urlPath.replace('{portalId}', encodeURIComponent(String(requestParameters['portalId'])));
332
+ urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
328
333
  return {
329
334
  path: urlPath,
330
335
  method: 'DELETE',
@@ -366,13 +371,13 @@ class RoleApi extends runtime.BaseAPI {
366
371
  const headerParameters = {};
367
372
  headerParameters['Content-Type'] = 'application/json';
368
373
  let urlPath = `/roles/{roleId}`;
369
- urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
374
+ urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
370
375
  return {
371
376
  path: urlPath,
372
377
  method: 'PUT',
373
378
  headers: headerParameters,
374
379
  query: queryParameters,
375
- body: (0, index_1.PutRoleToJSON)(requestParameters['putRole']),
380
+ body: (0, PutRole_1.PutRoleToJSON)(requestParameters['putRole']),
376
381
  };
377
382
  });
378
383
  }
@@ -383,7 +388,7 @@ class RoleApi extends runtime.BaseAPI {
383
388
  return __awaiter(this, void 0, void 0, function* () {
384
389
  const requestOptions = yield this.updateRoleRequestOpts(requestParameters);
385
390
  const response = yield this.request(requestOptions, initOverrides);
386
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetRoleFromJSON)(jsonValue));
391
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetRole_1.GetRoleFromJSON)(jsonValue));
387
392
  });
388
393
  }
389
394
  /**
@@ -410,13 +415,13 @@ class RoleApi extends runtime.BaseAPI {
410
415
  const headerParameters = {};
411
416
  headerParameters['Content-Type'] = 'application/json';
412
417
  let urlPath = `/roles/{roleId}/permissions`;
413
- urlPath = urlPath.replace(`{${"roleId"}}`, encodeURIComponent(String(requestParameters['roleId'])));
418
+ urlPath = urlPath.replace('{roleId}', encodeURIComponent(String(requestParameters['roleId'])));
414
419
  return {
415
420
  path: urlPath,
416
421
  method: 'PUT',
417
422
  headers: headerParameters,
418
423
  query: queryParameters,
419
- body: (0, index_1.PutRolePermissionsToJSON)(requestParameters['putRolePermissions']),
424
+ body: (0, PutRolePermissions_1.PutRolePermissionsToJSON)(requestParameters['putRolePermissions']),
420
425
  };
421
426
  });
422
427
  }
@@ -10,7 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { DownloadSupportTicketAttachment200Response, GetSupportTicket, GetSupportTicketAttachment, GetSupportTicketComment, GetSupportTicketList, PostSupportTicket, PostSupportTicketComment, PutSupportTicket } from '../models/index';
13
+ import { type DownloadSupportTicketAttachment200Response } from '../models/DownloadSupportTicketAttachment200Response';
14
+ import { type GetSupportTicket } from '../models/GetSupportTicket';
15
+ import { type GetSupportTicketAttachment } from '../models/GetSupportTicketAttachment';
16
+ import { type GetSupportTicketComment } from '../models/GetSupportTicketComment';
17
+ import { type GetSupportTicketList } from '../models/GetSupportTicketList';
18
+ import { type PostSupportTicket } from '../models/PostSupportTicket';
19
+ import { type PostSupportTicketComment } from '../models/PostSupportTicketComment';
20
+ import { type PutSupportTicket } from '../models/PutSupportTicket';
14
21
  export interface CloseSupportTicketRequest {
15
22
  ticketId: string;
16
23
  }
@@ -24,7 +24,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.GetSupportTicketsCategoryEnum = exports.GetSupportTicketsPriorityEnum = exports.GetSupportTicketsStatusEnum = exports.SupportTicketApi = void 0;
26
26
  const runtime = require("../runtime");
27
- const index_1 = require("../models/index");
27
+ const DownloadSupportTicketAttachment200Response_1 = require("../models/DownloadSupportTicketAttachment200Response");
28
+ const GetSupportTicket_1 = require("../models/GetSupportTicket");
29
+ const GetSupportTicketAttachment_1 = require("../models/GetSupportTicketAttachment");
30
+ const GetSupportTicketComment_1 = require("../models/GetSupportTicketComment");
31
+ const GetSupportTicketList_1 = require("../models/GetSupportTicketList");
32
+ const PostSupportTicket_1 = require("../models/PostSupportTicket");
33
+ const PostSupportTicketComment_1 = require("../models/PostSupportTicketComment");
34
+ const PutSupportTicket_1 = require("../models/PutSupportTicket");
28
35
  /**
29
36
  *
30
37
  */
@@ -40,7 +47,7 @@ class SupportTicketApi extends runtime.BaseAPI {
40
47
  const queryParameters = {};
41
48
  const headerParameters = {};
42
49
  let urlPath = `/support/tickets/{ticketId}/close`;
43
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
50
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
44
51
  return {
45
52
  path: urlPath,
46
53
  method: 'POST',
@@ -81,8 +88,8 @@ class SupportTicketApi extends runtime.BaseAPI {
81
88
  const queryParameters = {};
82
89
  const headerParameters = {};
83
90
  let urlPath = `/support/tickets/{ticketId}/attachments/{attachmentId}/download`;
84
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
85
- urlPath = urlPath.replace(`{${"attachmentId"}}`, encodeURIComponent(String(requestParameters['attachmentId'])));
91
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
92
+ urlPath = urlPath.replace('{attachmentId}', encodeURIComponent(String(requestParameters['attachmentId'])));
86
93
  return {
87
94
  path: urlPath,
88
95
  method: 'GET',
@@ -98,7 +105,7 @@ class SupportTicketApi extends runtime.BaseAPI {
98
105
  return __awaiter(this, void 0, void 0, function* () {
99
106
  const requestOptions = yield this.downloadSupportTicketAttachmentRequestOpts(requestParameters);
100
107
  const response = yield this.request(requestOptions, initOverrides);
101
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DownloadSupportTicketAttachment200ResponseFromJSON)(jsonValue));
108
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, DownloadSupportTicketAttachment200Response_1.DownloadSupportTicketAttachment200ResponseFromJSON)(jsonValue));
102
109
  });
103
110
  }
104
111
  /**
@@ -121,7 +128,7 @@ class SupportTicketApi extends runtime.BaseAPI {
121
128
  const queryParameters = {};
122
129
  const headerParameters = {};
123
130
  let urlPath = `/support/tickets/{ticketId}`;
124
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
131
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
125
132
  return {
126
133
  path: urlPath,
127
134
  method: 'GET',
@@ -137,7 +144,7 @@ class SupportTicketApi extends runtime.BaseAPI {
137
144
  return __awaiter(this, void 0, void 0, function* () {
138
145
  const requestOptions = yield this.getSupportTicketRequestOpts(requestParameters);
139
146
  const response = yield this.request(requestOptions, initOverrides);
140
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSupportTicketFromJSON)(jsonValue));
147
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSupportTicket_1.GetSupportTicketFromJSON)(jsonValue));
141
148
  });
142
149
  }
143
150
  /**
@@ -160,7 +167,7 @@ class SupportTicketApi extends runtime.BaseAPI {
160
167
  const queryParameters = {};
161
168
  const headerParameters = {};
162
169
  let urlPath = `/support/tickets/{ticketId}/comments`;
163
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
170
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
164
171
  return {
165
172
  path: urlPath,
166
173
  method: 'GET',
@@ -176,7 +183,7 @@ class SupportTicketApi extends runtime.BaseAPI {
176
183
  return __awaiter(this, void 0, void 0, function* () {
177
184
  const requestOptions = yield this.getSupportTicketCommentsRequestOpts(requestParameters);
178
185
  const response = yield this.request(requestOptions, initOverrides);
179
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.GetSupportTicketCommentFromJSON));
186
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(GetSupportTicketComment_1.GetSupportTicketCommentFromJSON));
180
187
  });
181
188
  }
182
189
  /**
@@ -226,7 +233,7 @@ class SupportTicketApi extends runtime.BaseAPI {
226
233
  return __awaiter(this, void 0, void 0, function* () {
227
234
  const requestOptions = yield this.getSupportTicketsRequestOpts(requestParameters);
228
235
  const response = yield this.request(requestOptions, initOverrides);
229
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSupportTicketListFromJSON)(jsonValue));
236
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSupportTicketList_1.GetSupportTicketListFromJSON)(jsonValue));
230
237
  });
231
238
  }
232
239
  /**
@@ -255,7 +262,7 @@ class SupportTicketApi extends runtime.BaseAPI {
255
262
  method: 'POST',
256
263
  headers: headerParameters,
257
264
  query: queryParameters,
258
- body: (0, index_1.PostSupportTicketToJSON)(requestParameters['postSupportTicket']),
265
+ body: (0, PostSupportTicket_1.PostSupportTicketToJSON)(requestParameters['postSupportTicket']),
259
266
  };
260
267
  });
261
268
  }
@@ -266,7 +273,7 @@ class SupportTicketApi extends runtime.BaseAPI {
266
273
  return __awaiter(this, void 0, void 0, function* () {
267
274
  const requestOptions = yield this.postSupportTicketRequestOpts(requestParameters);
268
275
  const response = yield this.request(requestOptions, initOverrides);
269
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSupportTicketFromJSON)(jsonValue));
276
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSupportTicket_1.GetSupportTicketFromJSON)(jsonValue));
270
277
  });
271
278
  }
272
279
  /**
@@ -310,7 +317,7 @@ class SupportTicketApi extends runtime.BaseAPI {
310
317
  formParams.append('file', requestParameters['file']);
311
318
  }
312
319
  let urlPath = `/support/tickets/{ticketId}/attachments`;
313
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
320
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
314
321
  return {
315
322
  path: urlPath,
316
323
  method: 'POST',
@@ -327,7 +334,7 @@ class SupportTicketApi extends runtime.BaseAPI {
327
334
  return __awaiter(this, void 0, void 0, function* () {
328
335
  const requestOptions = yield this.postSupportTicketAttachmentRequestOpts(requestParameters);
329
336
  const response = yield this.request(requestOptions, initOverrides);
330
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSupportTicketAttachmentFromJSON)(jsonValue));
337
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSupportTicketAttachment_1.GetSupportTicketAttachmentFromJSON)(jsonValue));
331
338
  });
332
339
  }
333
340
  /**
@@ -354,13 +361,13 @@ class SupportTicketApi extends runtime.BaseAPI {
354
361
  const headerParameters = {};
355
362
  headerParameters['Content-Type'] = 'application/json';
356
363
  let urlPath = `/support/tickets/{ticketId}/comments`;
357
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
364
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
358
365
  return {
359
366
  path: urlPath,
360
367
  method: 'POST',
361
368
  headers: headerParameters,
362
369
  query: queryParameters,
363
- body: (0, index_1.PostSupportTicketCommentToJSON)(requestParameters['postSupportTicketComment']),
370
+ body: (0, PostSupportTicketComment_1.PostSupportTicketCommentToJSON)(requestParameters['postSupportTicketComment']),
364
371
  };
365
372
  });
366
373
  }
@@ -371,7 +378,7 @@ class SupportTicketApi extends runtime.BaseAPI {
371
378
  return __awaiter(this, void 0, void 0, function* () {
372
379
  const requestOptions = yield this.postSupportTicketCommentRequestOpts(requestParameters);
373
380
  const response = yield this.request(requestOptions, initOverrides);
374
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GetSupportTicketCommentFromJSON)(jsonValue));
381
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetSupportTicketComment_1.GetSupportTicketCommentFromJSON)(jsonValue));
375
382
  });
376
383
  }
377
384
  /**
@@ -398,13 +405,13 @@ class SupportTicketApi extends runtime.BaseAPI {
398
405
  const headerParameters = {};
399
406
  headerParameters['Content-Type'] = 'application/json';
400
407
  let urlPath = `/support/tickets/{ticketId}`;
401
- urlPath = urlPath.replace(`{${"ticketId"}}`, encodeURIComponent(String(requestParameters['ticketId'])));
408
+ urlPath = urlPath.replace('{ticketId}', encodeURIComponent(String(requestParameters['ticketId'])));
402
409
  return {
403
410
  path: urlPath,
404
411
  method: 'PUT',
405
412
  headers: headerParameters,
406
413
  query: queryParameters,
407
- body: (0, index_1.PutSupportTicketToJSON)(requestParameters['putSupportTicket']),
414
+ body: (0, PutSupportTicket_1.PutSupportTicketToJSON)(requestParameters['putSupportTicket']),
408
415
  };
409
416
  });
410
417
  }
@@ -10,7 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GetUser, GetUserAvatarUpload, LoginRes, PostLogin, PostResetPassword, PostSendResetPassword, PutUser } from '../models/index';
13
+ import { type GetUser } from '../models/GetUser';
14
+ import { type GetUserAvatarUpload } from '../models/GetUserAvatarUpload';
15
+ import { type LoginRes } from '../models/LoginRes';
16
+ import { type PostLogin } from '../models/PostLogin';
17
+ import { type PostResetPassword } from '../models/PostResetPassword';
18
+ import { type PostSendResetPassword } from '../models/PostSendResetPassword';
19
+ import { type PutUser } from '../models/PutUser';
14
20
  export interface DeleteUserAvatarRequest {
15
21
  userId: string;
16
22
  }