@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.
- package/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/README.md +8 -3
- package/dist/apis/CertificateApi.d.ts +10 -1
- package/dist/apis/CertificateApi.js +34 -25
- package/dist/apis/ChatApi.d.ts +6 -1
- package/dist/apis/ChatApi.js +15 -10
- package/dist/apis/ContentApi.d.ts +22 -1
- package/dist/apis/ContentApi.js +101 -80
- package/dist/apis/CourseApi.d.ts +14 -1
- package/dist/apis/CourseApi.js +50 -37
- package/dist/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/apis/CourseCatalogApi.js +19 -16
- package/dist/apis/CourseShareApi.d.ts +5 -1
- package/dist/apis/CourseShareApi.js +18 -14
- package/dist/apis/ModuleApi.d.ts +6 -1
- package/dist/apis/ModuleApi.js +24 -19
- package/dist/apis/PortalApi.d.ts +11 -3
- package/dist/apis/PortalApi.js +31 -22
- package/dist/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/apis/PortalSublicenseApi.js +5 -4
- package/dist/apis/QuestionApi.d.ts +4 -1
- package/dist/apis/QuestionApi.js +13 -10
- package/dist/apis/QuizApi.d.ts +22 -1
- package/dist/apis/QuizApi.js +82 -61
- package/dist/apis/ReportingApi.d.ts +9 -1
- package/dist/apis/ReportingApi.js +39 -31
- package/dist/apis/RoleApi.d.ts +6 -1
- package/dist/apis/RoleApi.js +27 -22
- package/dist/apis/SupportTicketApi.d.ts +8 -1
- package/dist/apis/SupportTicketApi.js +26 -19
- package/dist/apis/UserApi.d.ts +38 -1
- package/dist/apis/UserApi.js +115 -10
- package/dist/esm/apis/CertificateApi.d.ts +10 -1
- package/dist/esm/apis/CertificateApi.js +19 -10
- package/dist/esm/apis/ChatApi.d.ts +6 -1
- package/dist/esm/apis/ChatApi.js +9 -4
- package/dist/esm/apis/ContentApi.d.ts +22 -1
- package/dist/esm/apis/ContentApi.js +74 -53
- package/dist/esm/apis/CourseApi.d.ts +14 -1
- package/dist/esm/apis/CourseApi.js +30 -17
- package/dist/esm/apis/CourseCatalogApi.d.ts +4 -1
- package/dist/esm/apis/CourseCatalogApi.js +12 -9
- package/dist/esm/apis/CourseShareApi.d.ts +5 -1
- package/dist/esm/apis/CourseShareApi.js +12 -8
- package/dist/esm/apis/ModuleApi.d.ts +6 -1
- package/dist/esm/apis/ModuleApi.js +15 -10
- package/dist/esm/apis/PortalApi.d.ts +11 -3
- package/dist/esm/apis/PortalApi.js +21 -12
- package/dist/esm/apis/PortalSublicenseApi.d.ts +2 -1
- package/dist/esm/apis/PortalSublicenseApi.js +3 -2
- package/dist/esm/apis/QuestionApi.d.ts +4 -1
- package/dist/esm/apis/QuestionApi.js +7 -4
- package/dist/esm/apis/QuizApi.d.ts +22 -1
- package/dist/esm/apis/QuizApi.js +53 -32
- package/dist/esm/apis/ReportingApi.d.ts +9 -1
- package/dist/esm/apis/ReportingApi.js +30 -22
- package/dist/esm/apis/RoleApi.d.ts +6 -1
- package/dist/esm/apis/RoleApi.js +18 -13
- package/dist/esm/apis/SupportTicketApi.d.ts +8 -1
- package/dist/esm/apis/SupportTicketApi.js +16 -9
- package/dist/esm/apis/UserApi.d.ts +38 -1
- package/dist/esm/apis/UserApi.js +108 -3
- package/dist/esm/models/GetPortal.d.ts +12 -0
- package/dist/esm/models/GetPortal.js +4 -0
- package/dist/esm/models/GetUser.d.ts +6 -0
- package/dist/esm/models/GetUser.js +2 -0
- package/dist/esm/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/esm/models/GetUserAvatarUpload.js +43 -0
- package/dist/esm/models/PostPortal.d.ts +12 -0
- package/dist/esm/models/PostPortal.js +4 -0
- package/dist/esm/models/PutPortalBranding.d.ts +12 -0
- package/dist/esm/models/PutPortalBranding.js +4 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/esm/models/UpdateSelectedPortalResponse.js +52 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/esm/models/UpdateSelectedPortalResponseSelectedPortal.js +51 -0
- package/dist/esm/models/index.d.ts +3 -0
- package/dist/esm/models/index.js +3 -0
- package/dist/esm/runtime.js +1 -1
- package/dist/models/GetPortal.d.ts +12 -0
- package/dist/models/GetPortal.js +4 -0
- package/dist/models/GetUser.d.ts +6 -0
- package/dist/models/GetUser.js +2 -0
- package/dist/models/GetUserAvatarUpload.d.ts +32 -0
- package/dist/models/GetUserAvatarUpload.js +50 -0
- package/dist/models/PostPortal.d.ts +12 -0
- package/dist/models/PostPortal.js +4 -0
- package/dist/models/PutPortalBranding.d.ts +12 -0
- package/dist/models/PutPortalBranding.js +4 -0
- package/dist/models/UpdateSelectedPortalResponse.d.ts +45 -0
- package/dist/models/UpdateSelectedPortalResponse.js +59 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.d.ts +44 -0
- package/dist/models/UpdateSelectedPortalResponseSelectedPortal.js +58 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/runtime.js +1 -1
- package/docs/GetPortal.md +4 -0
- package/docs/GetUser.md +2 -0
- package/docs/GetUserAvatarUpload.md +34 -0
- package/docs/PortalApi.md +3 -3
- package/docs/PostPortal.md +4 -0
- package/docs/PutPortalBranding.md +4 -0
- package/docs/UpdateSelectedPortalResponse.md +38 -0
- package/docs/UpdateSelectedPortalResponseSelectedPortal.md +38 -0
- package/docs/UserApi.md +138 -0
- package/package.json +1 -1
- package/src/apis/CertificateApi.ts +38 -23
- package/src/apis/ChatApi.ts +20 -13
- package/src/apis/ContentApi.ts +117 -78
- package/src/apis/CourseApi.ts +57 -34
- package/src/apis/CourseCatalogApi.ts +19 -16
- package/src/apis/CourseShareApi.ts +21 -16
- package/src/apis/ModuleApi.ts +26 -19
- package/src/apis/OtherApi.ts +0 -1
- package/src/apis/PortalApi.ts +42 -25
- package/src/apis/PortalSublicenseApi.ts +6 -7
- package/src/apis/QuestionApi.ts +14 -11
- package/src/apis/QuizApi.ts +96 -57
- package/src/apis/ReportingApi.ts +47 -34
- package/src/apis/RoleApi.ts +29 -22
- package/src/apis/SupportTicketApi.ts +31 -20
- package/src/apis/UserApi.ts +150 -12
- package/src/models/GetPortal.ts +16 -0
- package/src/models/GetUser.ts +8 -0
- package/src/models/GetUserAvatarUpload.ts +66 -0
- package/src/models/PostPortal.ts +16 -0
- package/src/models/PutPortalBranding.ts +16 -0
- package/src/models/UpdateSelectedPortalResponse.ts +92 -0
- package/src/models/UpdateSelectedPortalResponseSelectedPortal.ts +84 -0
- package/src/models/index.ts +3 -0
- 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
|
|
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(
|
|
53
|
-
urlPath = urlPath.replace(
|
|
54
|
-
urlPath = urlPath.replace(
|
|
55
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
110
|
-
urlPath = urlPath.replace(
|
|
111
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
157
|
-
urlPath = urlPath.replace(
|
|
158
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
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,
|
|
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(
|
|
240
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
283
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
329
|
-
urlPath = urlPath.replace(
|
|
330
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
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,
|
|
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(
|
|
412
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
436
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, GetPortalStudentReporting_1.GetPortalStudentReportingFromJSON)(jsonValue));
|
|
429
437
|
});
|
|
430
438
|
}
|
|
431
439
|
/**
|
package/dist/apis/RoleApi.d.ts
CHANGED
|
@@ -10,7 +10,12 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
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;
|
package/dist/apis/RoleApi.js
CHANGED
|
@@ -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
|
|
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(
|
|
50
|
-
urlPath = urlPath.replace(
|
|
51
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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,
|
|
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(
|
|
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(
|
|
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(
|
|
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,
|
|
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(
|
|
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(
|
|
280
|
-
urlPath = urlPath.replace(
|
|
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(
|
|
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(
|
|
326
|
-
urlPath = urlPath.replace(
|
|
327
|
-
urlPath = urlPath.replace(
|
|
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(
|
|
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,
|
|
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,
|
|
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(
|
|
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,
|
|
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
|
|
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
|
|
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(
|
|
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(
|
|
85
|
-
urlPath = urlPath.replace(
|
|
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,
|
|
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(
|
|
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,
|
|
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(
|
|
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(
|
|
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,
|
|
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,
|
|
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,
|
|
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(
|
|
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,
|
|
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(
|
|
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,
|
|
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,
|
|
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(
|
|
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,
|
|
414
|
+
body: (0, PutSupportTicket_1.PutSupportTicketToJSON)(requestParameters['putSupportTicket']),
|
|
408
415
|
};
|
|
409
416
|
});
|
|
410
417
|
}
|
package/dist/apis/UserApi.d.ts
CHANGED
|
@@ -10,13 +10,26 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
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';
|
|
20
|
+
export interface DeleteUserAvatarRequest {
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
14
23
|
export interface GetUserRequest {
|
|
15
24
|
userId: string;
|
|
16
25
|
}
|
|
17
26
|
export interface PostLoginRequest {
|
|
18
27
|
postLogin: PostLogin;
|
|
19
28
|
}
|
|
29
|
+
export interface PostUserAvatarUploadRequest {
|
|
30
|
+
userId: string;
|
|
31
|
+
file: Blob;
|
|
32
|
+
}
|
|
20
33
|
export interface PutUserRequest {
|
|
21
34
|
userId: string;
|
|
22
35
|
putUser: Omit<PutUser, 'id' | 'last_updated'>;
|
|
@@ -31,6 +44,18 @@ export interface SendResetPasswordRequest {
|
|
|
31
44
|
*
|
|
32
45
|
*/
|
|
33
46
|
export declare class UserApi extends runtime.BaseAPI {
|
|
47
|
+
/**
|
|
48
|
+
* Creates request options for deleteUserAvatar without sending the request
|
|
49
|
+
*/
|
|
50
|
+
deleteUserAvatarRequestOpts(requestParameters: DeleteUserAvatarRequest): Promise<runtime.RequestOpts>;
|
|
51
|
+
/**
|
|
52
|
+
* Remove the current user\'s profile photo
|
|
53
|
+
*/
|
|
54
|
+
deleteUserAvatarRaw(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
55
|
+
/**
|
|
56
|
+
* Remove the current user\'s profile photo
|
|
57
|
+
*/
|
|
58
|
+
deleteUserAvatar(requestParameters: DeleteUserAvatarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
34
59
|
/**
|
|
35
60
|
* Creates request options for getAuthCheck without sending the request
|
|
36
61
|
*/
|
|
@@ -93,6 +118,18 @@ export declare class UserApi extends runtime.BaseAPI {
|
|
|
93
118
|
* Logout a user
|
|
94
119
|
*/
|
|
95
120
|
postLogout(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
121
|
+
/**
|
|
122
|
+
* Creates request options for postUserAvatarUpload without sending the request
|
|
123
|
+
*/
|
|
124
|
+
postUserAvatarUploadRequestOpts(requestParameters: PostUserAvatarUploadRequest): Promise<runtime.RequestOpts>;
|
|
125
|
+
/**
|
|
126
|
+
* Upload a profile photo for the current user
|
|
127
|
+
*/
|
|
128
|
+
postUserAvatarUploadRaw(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GetUserAvatarUpload>>;
|
|
129
|
+
/**
|
|
130
|
+
* Upload a profile photo for the current user
|
|
131
|
+
*/
|
|
132
|
+
postUserAvatarUpload(requestParameters: PostUserAvatarUploadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUserAvatarUpload>;
|
|
96
133
|
/**
|
|
97
134
|
* Creates request options for putUser without sending the request
|
|
98
135
|
*/
|