@joao.sumi/qdule 0.0.2

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 (47) hide show
  1. package/.openapi-generator/FILES +37 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +118 -0
  5. package/api.ts +3325 -0
  6. package/base.ts +62 -0
  7. package/common.ts +127 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +1826 -0
  10. package/dist/api.js +3290 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +67 -0
  13. package/dist/common.d.ts +34 -0
  14. package/dist/common.js +231 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +57 -0
  17. package/dist/index.d.ts +13 -0
  18. package/dist/index.js +31 -0
  19. package/docs/AuthRequest.md +22 -0
  20. package/docs/AuthResourceApi.md +60 -0
  21. package/docs/ChangelogCreateRequest.md +24 -0
  22. package/docs/ChangelogResourceApi.md +272 -0
  23. package/docs/ChangelogUpdateRequest.md +24 -0
  24. package/docs/ClientCreateRequest.md +24 -0
  25. package/docs/ClientResourceApi.md +224 -0
  26. package/docs/ClientUpdateRequest.md +24 -0
  27. package/docs/DayOfWeek.md +20 -0
  28. package/docs/ScheduleCreateRequest.md +30 -0
  29. package/docs/ScheduleResourceApi.md +278 -0
  30. package/docs/ScheduleStatus.md +16 -0
  31. package/docs/ScheduleUpdateRequest.md +26 -0
  32. package/docs/ShiftCreateRequest.md +30 -0
  33. package/docs/ShiftResourceApi.md +280 -0
  34. package/docs/ShiftUpdateRequest.md +30 -0
  35. package/docs/TreatmentCreateRequest.md +30 -0
  36. package/docs/TreatmentResourceApi.md +278 -0
  37. package/docs/TreatmentStatus.md +10 -0
  38. package/docs/TreatmentUpdateRequest.md +30 -0
  39. package/docs/UserCreateRequest.md +24 -0
  40. package/docs/UserResourceApi.md +113 -0
  41. package/docs/WorkScheduleCreateRequest.md +22 -0
  42. package/docs/WorkScheduleResourceApi.md +278 -0
  43. package/docs/WorkScheduleUpdateRequest.md +22 -0
  44. package/git_push.sh +57 -0
  45. package/index.ts +18 -0
  46. package/package.json +27 -0
  47. package/tsconfig.json +21 -0
package/dist/api.js ADDED
@@ -0,0 +1,3290 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * qdule-backend API
6
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0-SNAPSHOT
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
86
+ Object.defineProperty(exports, "__esModule", { value: true });
87
+ exports.WorkScheduleResourceApi = exports.WorkScheduleResourceApiFactory = exports.WorkScheduleResourceApiFp = exports.WorkScheduleResourceApiAxiosParamCreator = exports.UserResourceApi = exports.UserResourceApiFactory = exports.UserResourceApiFp = exports.UserResourceApiAxiosParamCreator = exports.TreatmentResourceApi = exports.TreatmentResourceApiFactory = exports.TreatmentResourceApiFp = exports.TreatmentResourceApiAxiosParamCreator = exports.ShiftResourceApi = exports.ShiftResourceApiFactory = exports.ShiftResourceApiFp = exports.ShiftResourceApiAxiosParamCreator = exports.ScheduleResourceApi = exports.ScheduleResourceApiFactory = exports.ScheduleResourceApiFp = exports.ScheduleResourceApiAxiosParamCreator = exports.ClientResourceApi = exports.ClientResourceApiFactory = exports.ClientResourceApiFp = exports.ClientResourceApiAxiosParamCreator = exports.ChangelogResourceApi = exports.ChangelogResourceApiFactory = exports.ChangelogResourceApiFp = exports.ChangelogResourceApiAxiosParamCreator = exports.AuthResourceApi = exports.AuthResourceApiFactory = exports.AuthResourceApiFp = exports.AuthResourceApiAxiosParamCreator = exports.TreatmentStatus = exports.ScheduleStatus = exports.DayOfWeek = void 0;
88
+ var axios_1 = require("axios");
89
+ // Some imports not used depending on template conditions
90
+ // @ts-ignore
91
+ var common_1 = require("./common");
92
+ // @ts-ignore
93
+ var base_1 = require("./base");
94
+ exports.DayOfWeek = {
95
+ Monday: 'MONDAY',
96
+ Tuesday: 'TUESDAY',
97
+ Wednesday: 'WEDNESDAY',
98
+ Thursday: 'THURSDAY',
99
+ Friday: 'FRIDAY',
100
+ Saturday: 'SATURDAY',
101
+ Sunday: 'SUNDAY',
102
+ };
103
+ exports.ScheduleStatus = {
104
+ Done: 'DONE',
105
+ Scheduled: 'SCHEDULED',
106
+ Rescheduled: 'RESCHEDULED',
107
+ Pending: 'PENDING',
108
+ Canceled: 'CANCELED',
109
+ };
110
+ exports.TreatmentStatus = {
111
+ Active: 'ACTIVE',
112
+ Inactive: 'INACTIVE',
113
+ };
114
+ /**
115
+ * AuthResourceApi - axios parameter creator
116
+ */
117
+ var AuthResourceApiAxiosParamCreator = function (configuration) {
118
+ var _this = this;
119
+ return {
120
+ /**
121
+ *
122
+ * @summary Generate User Token
123
+ * @param {AuthRequest} authRequest
124
+ * @param {*} [options] Override http request option.
125
+ * @throws {RequiredError}
126
+ */
127
+ authPost: function (authRequest_1) {
128
+ var args_1 = [];
129
+ for (var _i = 1; _i < arguments.length; _i++) {
130
+ args_1[_i - 1] = arguments[_i];
131
+ }
132
+ return __awaiter(_this, __spreadArray([authRequest_1], args_1, true), void 0, function (authRequest, options) {
133
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
134
+ if (options === void 0) { options = {}; }
135
+ return __generator(this, function (_a) {
136
+ // verify required parameter 'authRequest' is not null or undefined
137
+ (0, common_1.assertParamExists)('authPost', 'authRequest', authRequest);
138
+ localVarPath = "/auth";
139
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
144
+ localVarHeaderParameter = {};
145
+ localVarQueryParameter = {};
146
+ localVarHeaderParameter['Content-Type'] = 'application/json';
147
+ localVarHeaderParameter['Accept'] = 'application/json';
148
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
149
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
151
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(authRequest, localVarRequestOptions, configuration);
152
+ return [2 /*return*/, {
153
+ url: (0, common_1.toPathString)(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ }];
156
+ });
157
+ });
158
+ },
159
+ };
160
+ };
161
+ exports.AuthResourceApiAxiosParamCreator = AuthResourceApiAxiosParamCreator;
162
+ /**
163
+ * AuthResourceApi - functional programming interface
164
+ */
165
+ var AuthResourceApiFp = function (configuration) {
166
+ var localVarAxiosParamCreator = (0, exports.AuthResourceApiAxiosParamCreator)(configuration);
167
+ return {
168
+ /**
169
+ *
170
+ * @summary Generate User Token
171
+ * @param {AuthRequest} authRequest
172
+ * @param {*} [options] Override http request option.
173
+ * @throws {RequiredError}
174
+ */
175
+ authPost: function (authRequest, options) {
176
+ return __awaiter(this, void 0, void 0, function () {
177
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
178
+ var _a, _b, _c;
179
+ return __generator(this, function (_d) {
180
+ switch (_d.label) {
181
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.authPost(authRequest, options)];
182
+ case 1:
183
+ localVarAxiosArgs = _d.sent();
184
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
185
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AuthResourceApi.authPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
186
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
187
+ }
188
+ });
189
+ });
190
+ },
191
+ };
192
+ };
193
+ exports.AuthResourceApiFp = AuthResourceApiFp;
194
+ /**
195
+ * AuthResourceApi - factory interface
196
+ */
197
+ var AuthResourceApiFactory = function (configuration, basePath, axios) {
198
+ var localVarFp = (0, exports.AuthResourceApiFp)(configuration);
199
+ return {
200
+ /**
201
+ *
202
+ * @summary Generate User Token
203
+ * @param {AuthResourceApiAuthPostRequest} requestParameters Request parameters.
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ authPost: function (requestParameters, options) {
208
+ return localVarFp.authPost(requestParameters.authRequest, options).then(function (request) { return request(axios, basePath); });
209
+ },
210
+ };
211
+ };
212
+ exports.AuthResourceApiFactory = AuthResourceApiFactory;
213
+ /**
214
+ * AuthResourceApi - object-oriented interface
215
+ */
216
+ var AuthResourceApi = /** @class */ (function (_super) {
217
+ __extends(AuthResourceApi, _super);
218
+ function AuthResourceApi() {
219
+ return _super !== null && _super.apply(this, arguments) || this;
220
+ }
221
+ /**
222
+ *
223
+ * @summary Generate User Token
224
+ * @param {AuthResourceApiAuthPostRequest} requestParameters Request parameters.
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ AuthResourceApi.prototype.authPost = function (requestParameters, options) {
229
+ var _this = this;
230
+ return (0, exports.AuthResourceApiFp)(this.configuration).authPost(requestParameters.authRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
231
+ };
232
+ return AuthResourceApi;
233
+ }(base_1.BaseAPI));
234
+ exports.AuthResourceApi = AuthResourceApi;
235
+ /**
236
+ * ChangelogResourceApi - axios parameter creator
237
+ */
238
+ var ChangelogResourceApiAxiosParamCreator = function (configuration) {
239
+ var _this = this;
240
+ return {
241
+ /**
242
+ *
243
+ * @summary Get Changelogs
244
+ * @param {number} [page]
245
+ * @param {number} [size]
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ changelogsGet: function (page_1, size_1) {
250
+ var args_1 = [];
251
+ for (var _i = 2; _i < arguments.length; _i++) {
252
+ args_1[_i - 2] = arguments[_i];
253
+ }
254
+ return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
255
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
256
+ if (options === void 0) { options = {}; }
257
+ return __generator(this, function (_a) {
258
+ localVarPath = "/changelogs";
259
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
260
+ if (configuration) {
261
+ baseOptions = configuration.baseOptions;
262
+ }
263
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
264
+ localVarHeaderParameter = {};
265
+ localVarQueryParameter = {};
266
+ if (page !== undefined) {
267
+ localVarQueryParameter['page'] = page;
268
+ }
269
+ if (size !== undefined) {
270
+ localVarQueryParameter['size'] = size;
271
+ }
272
+ localVarHeaderParameter['Accept'] = 'application/json';
273
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
275
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
276
+ return [2 /*return*/, {
277
+ url: (0, common_1.toPathString)(localVarUrlObj),
278
+ options: localVarRequestOptions,
279
+ }];
280
+ });
281
+ });
282
+ },
283
+ /**
284
+ *
285
+ * @summary Delete Changelog By Id
286
+ * @param {number} id
287
+ * @param {*} [options] Override http request option.
288
+ * @throws {RequiredError}
289
+ */
290
+ changelogsIdDelete: function (id_1) {
291
+ var args_1 = [];
292
+ for (var _i = 1; _i < arguments.length; _i++) {
293
+ args_1[_i - 1] = arguments[_i];
294
+ }
295
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
296
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
297
+ if (options === void 0) { options = {}; }
298
+ return __generator(this, function (_a) {
299
+ // verify required parameter 'id' is not null or undefined
300
+ (0, common_1.assertParamExists)('changelogsIdDelete', 'id', id);
301
+ localVarPath = "/changelogs/{id}"
302
+ .replace('{id}', encodeURIComponent(String(id)));
303
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
304
+ if (configuration) {
305
+ baseOptions = configuration.baseOptions;
306
+ }
307
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
308
+ localVarHeaderParameter = {};
309
+ localVarQueryParameter = {};
310
+ localVarHeaderParameter['Accept'] = 'application/json';
311
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
+ return [2 /*return*/, {
315
+ url: (0, common_1.toPathString)(localVarUrlObj),
316
+ options: localVarRequestOptions,
317
+ }];
318
+ });
319
+ });
320
+ },
321
+ /**
322
+ *
323
+ * @summary Find Changelog By Id
324
+ * @param {number} id
325
+ * @param {*} [options] Override http request option.
326
+ * @throws {RequiredError}
327
+ */
328
+ changelogsIdGet: function (id_1) {
329
+ var args_1 = [];
330
+ for (var _i = 1; _i < arguments.length; _i++) {
331
+ args_1[_i - 1] = arguments[_i];
332
+ }
333
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
334
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
335
+ if (options === void 0) { options = {}; }
336
+ return __generator(this, function (_a) {
337
+ // verify required parameter 'id' is not null or undefined
338
+ (0, common_1.assertParamExists)('changelogsIdGet', 'id', id);
339
+ localVarPath = "/changelogs/{id}"
340
+ .replace('{id}', encodeURIComponent(String(id)));
341
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
342
+ if (configuration) {
343
+ baseOptions = configuration.baseOptions;
344
+ }
345
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
346
+ localVarHeaderParameter = {};
347
+ localVarQueryParameter = {};
348
+ localVarHeaderParameter['Accept'] = 'application/json';
349
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
350
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
351
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
+ return [2 /*return*/, {
353
+ url: (0, common_1.toPathString)(localVarUrlObj),
354
+ options: localVarRequestOptions,
355
+ }];
356
+ });
357
+ });
358
+ },
359
+ /**
360
+ *
361
+ * @summary Update Changelog
362
+ * @param {number} id
363
+ * @param {ChangelogUpdateRequest} changelogUpdateRequest
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ changelogsIdPut: function (id_1, changelogUpdateRequest_1) {
368
+ var args_1 = [];
369
+ for (var _i = 2; _i < arguments.length; _i++) {
370
+ args_1[_i - 2] = arguments[_i];
371
+ }
372
+ return __awaiter(_this, __spreadArray([id_1, changelogUpdateRequest_1], args_1, true), void 0, function (id, changelogUpdateRequest, options) {
373
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
374
+ if (options === void 0) { options = {}; }
375
+ return __generator(this, function (_a) {
376
+ // verify required parameter 'id' is not null or undefined
377
+ (0, common_1.assertParamExists)('changelogsIdPut', 'id', id);
378
+ // verify required parameter 'changelogUpdateRequest' is not null or undefined
379
+ (0, common_1.assertParamExists)('changelogsIdPut', 'changelogUpdateRequest', changelogUpdateRequest);
380
+ localVarPath = "/changelogs/{id}"
381
+ .replace('{id}', encodeURIComponent(String(id)));
382
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
383
+ if (configuration) {
384
+ baseOptions = configuration.baseOptions;
385
+ }
386
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
387
+ localVarHeaderParameter = {};
388
+ localVarQueryParameter = {};
389
+ localVarHeaderParameter['Content-Type'] = 'application/json';
390
+ localVarHeaderParameter['Accept'] = 'application/json';
391
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
392
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
393
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
394
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changelogUpdateRequest, localVarRequestOptions, configuration);
395
+ return [2 /*return*/, {
396
+ url: (0, common_1.toPathString)(localVarUrlObj),
397
+ options: localVarRequestOptions,
398
+ }];
399
+ });
400
+ });
401
+ },
402
+ /**
403
+ *
404
+ * @summary Create Changelog
405
+ * @param {ChangelogCreateRequest} changelogCreateRequest
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ changelogsPost: function (changelogCreateRequest_1) {
410
+ var args_1 = [];
411
+ for (var _i = 1; _i < arguments.length; _i++) {
412
+ args_1[_i - 1] = arguments[_i];
413
+ }
414
+ return __awaiter(_this, __spreadArray([changelogCreateRequest_1], args_1, true), void 0, function (changelogCreateRequest, options) {
415
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
416
+ if (options === void 0) { options = {}; }
417
+ return __generator(this, function (_a) {
418
+ // verify required parameter 'changelogCreateRequest' is not null or undefined
419
+ (0, common_1.assertParamExists)('changelogsPost', 'changelogCreateRequest', changelogCreateRequest);
420
+ localVarPath = "/changelogs";
421
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
422
+ if (configuration) {
423
+ baseOptions = configuration.baseOptions;
424
+ }
425
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
426
+ localVarHeaderParameter = {};
427
+ localVarQueryParameter = {};
428
+ localVarHeaderParameter['Content-Type'] = 'application/json';
429
+ localVarHeaderParameter['Accept'] = 'application/json';
430
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
431
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
432
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
433
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(changelogCreateRequest, localVarRequestOptions, configuration);
434
+ return [2 /*return*/, {
435
+ url: (0, common_1.toPathString)(localVarUrlObj),
436
+ options: localVarRequestOptions,
437
+ }];
438
+ });
439
+ });
440
+ },
441
+ };
442
+ };
443
+ exports.ChangelogResourceApiAxiosParamCreator = ChangelogResourceApiAxiosParamCreator;
444
+ /**
445
+ * ChangelogResourceApi - functional programming interface
446
+ */
447
+ var ChangelogResourceApiFp = function (configuration) {
448
+ var localVarAxiosParamCreator = (0, exports.ChangelogResourceApiAxiosParamCreator)(configuration);
449
+ return {
450
+ /**
451
+ *
452
+ * @summary Get Changelogs
453
+ * @param {number} [page]
454
+ * @param {number} [size]
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ changelogsGet: function (page, size, options) {
459
+ return __awaiter(this, void 0, void 0, function () {
460
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
461
+ var _a, _b, _c;
462
+ return __generator(this, function (_d) {
463
+ switch (_d.label) {
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.changelogsGet(page, size, options)];
465
+ case 1:
466
+ localVarAxiosArgs = _d.sent();
467
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
468
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChangelogResourceApi.changelogsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
469
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
470
+ }
471
+ });
472
+ });
473
+ },
474
+ /**
475
+ *
476
+ * @summary Delete Changelog By Id
477
+ * @param {number} id
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ changelogsIdDelete: function (id, options) {
482
+ return __awaiter(this, void 0, void 0, function () {
483
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
484
+ var _a, _b, _c;
485
+ return __generator(this, function (_d) {
486
+ switch (_d.label) {
487
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.changelogsIdDelete(id, options)];
488
+ case 1:
489
+ localVarAxiosArgs = _d.sent();
490
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
491
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChangelogResourceApi.changelogsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
492
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
493
+ }
494
+ });
495
+ });
496
+ },
497
+ /**
498
+ *
499
+ * @summary Find Changelog By Id
500
+ * @param {number} id
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ changelogsIdGet: function (id, options) {
505
+ return __awaiter(this, void 0, void 0, function () {
506
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
507
+ var _a, _b, _c;
508
+ return __generator(this, function (_d) {
509
+ switch (_d.label) {
510
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.changelogsIdGet(id, options)];
511
+ case 1:
512
+ localVarAxiosArgs = _d.sent();
513
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
514
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChangelogResourceApi.changelogsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
515
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
516
+ }
517
+ });
518
+ });
519
+ },
520
+ /**
521
+ *
522
+ * @summary Update Changelog
523
+ * @param {number} id
524
+ * @param {ChangelogUpdateRequest} changelogUpdateRequest
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ changelogsIdPut: function (id, changelogUpdateRequest, options) {
529
+ return __awaiter(this, void 0, void 0, function () {
530
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
531
+ var _a, _b, _c;
532
+ return __generator(this, function (_d) {
533
+ switch (_d.label) {
534
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.changelogsIdPut(id, changelogUpdateRequest, options)];
535
+ case 1:
536
+ localVarAxiosArgs = _d.sent();
537
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
538
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChangelogResourceApi.changelogsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
539
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
540
+ }
541
+ });
542
+ });
543
+ },
544
+ /**
545
+ *
546
+ * @summary Create Changelog
547
+ * @param {ChangelogCreateRequest} changelogCreateRequest
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ changelogsPost: function (changelogCreateRequest, options) {
552
+ return __awaiter(this, void 0, void 0, function () {
553
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
554
+ var _a, _b, _c;
555
+ return __generator(this, function (_d) {
556
+ switch (_d.label) {
557
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.changelogsPost(changelogCreateRequest, options)];
558
+ case 1:
559
+ localVarAxiosArgs = _d.sent();
560
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
561
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ChangelogResourceApi.changelogsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
562
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
563
+ }
564
+ });
565
+ });
566
+ },
567
+ };
568
+ };
569
+ exports.ChangelogResourceApiFp = ChangelogResourceApiFp;
570
+ /**
571
+ * ChangelogResourceApi - factory interface
572
+ */
573
+ var ChangelogResourceApiFactory = function (configuration, basePath, axios) {
574
+ var localVarFp = (0, exports.ChangelogResourceApiFp)(configuration);
575
+ return {
576
+ /**
577
+ *
578
+ * @summary Get Changelogs
579
+ * @param {ChangelogResourceApiChangelogsGetRequest} requestParameters Request parameters.
580
+ * @param {*} [options] Override http request option.
581
+ * @throws {RequiredError}
582
+ */
583
+ changelogsGet: function (requestParameters, options) {
584
+ if (requestParameters === void 0) { requestParameters = {}; }
585
+ return localVarFp.changelogsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
586
+ },
587
+ /**
588
+ *
589
+ * @summary Delete Changelog By Id
590
+ * @param {ChangelogResourceApiChangelogsIdDeleteRequest} requestParameters Request parameters.
591
+ * @param {*} [options] Override http request option.
592
+ * @throws {RequiredError}
593
+ */
594
+ changelogsIdDelete: function (requestParameters, options) {
595
+ return localVarFp.changelogsIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
596
+ },
597
+ /**
598
+ *
599
+ * @summary Find Changelog By Id
600
+ * @param {ChangelogResourceApiChangelogsIdGetRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ changelogsIdGet: function (requestParameters, options) {
605
+ return localVarFp.changelogsIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
606
+ },
607
+ /**
608
+ *
609
+ * @summary Update Changelog
610
+ * @param {ChangelogResourceApiChangelogsIdPutRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ */
614
+ changelogsIdPut: function (requestParameters, options) {
615
+ return localVarFp.changelogsIdPut(requestParameters.id, requestParameters.changelogUpdateRequest, options).then(function (request) { return request(axios, basePath); });
616
+ },
617
+ /**
618
+ *
619
+ * @summary Create Changelog
620
+ * @param {ChangelogResourceApiChangelogsPostRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ */
624
+ changelogsPost: function (requestParameters, options) {
625
+ return localVarFp.changelogsPost(requestParameters.changelogCreateRequest, options).then(function (request) { return request(axios, basePath); });
626
+ },
627
+ };
628
+ };
629
+ exports.ChangelogResourceApiFactory = ChangelogResourceApiFactory;
630
+ /**
631
+ * ChangelogResourceApi - object-oriented interface
632
+ */
633
+ var ChangelogResourceApi = /** @class */ (function (_super) {
634
+ __extends(ChangelogResourceApi, _super);
635
+ function ChangelogResourceApi() {
636
+ return _super !== null && _super.apply(this, arguments) || this;
637
+ }
638
+ /**
639
+ *
640
+ * @summary Get Changelogs
641
+ * @param {ChangelogResourceApiChangelogsGetRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ */
645
+ ChangelogResourceApi.prototype.changelogsGet = function (requestParameters, options) {
646
+ var _this = this;
647
+ if (requestParameters === void 0) { requestParameters = {}; }
648
+ return (0, exports.ChangelogResourceApiFp)(this.configuration).changelogsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
649
+ };
650
+ /**
651
+ *
652
+ * @summary Delete Changelog By Id
653
+ * @param {ChangelogResourceApiChangelogsIdDeleteRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ */
657
+ ChangelogResourceApi.prototype.changelogsIdDelete = function (requestParameters, options) {
658
+ var _this = this;
659
+ return (0, exports.ChangelogResourceApiFp)(this.configuration).changelogsIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
660
+ };
661
+ /**
662
+ *
663
+ * @summary Find Changelog By Id
664
+ * @param {ChangelogResourceApiChangelogsIdGetRequest} requestParameters Request parameters.
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ ChangelogResourceApi.prototype.changelogsIdGet = function (requestParameters, options) {
669
+ var _this = this;
670
+ return (0, exports.ChangelogResourceApiFp)(this.configuration).changelogsIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
671
+ };
672
+ /**
673
+ *
674
+ * @summary Update Changelog
675
+ * @param {ChangelogResourceApiChangelogsIdPutRequest} requestParameters Request parameters.
676
+ * @param {*} [options] Override http request option.
677
+ * @throws {RequiredError}
678
+ */
679
+ ChangelogResourceApi.prototype.changelogsIdPut = function (requestParameters, options) {
680
+ var _this = this;
681
+ return (0, exports.ChangelogResourceApiFp)(this.configuration).changelogsIdPut(requestParameters.id, requestParameters.changelogUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
682
+ };
683
+ /**
684
+ *
685
+ * @summary Create Changelog
686
+ * @param {ChangelogResourceApiChangelogsPostRequest} requestParameters Request parameters.
687
+ * @param {*} [options] Override http request option.
688
+ * @throws {RequiredError}
689
+ */
690
+ ChangelogResourceApi.prototype.changelogsPost = function (requestParameters, options) {
691
+ var _this = this;
692
+ return (0, exports.ChangelogResourceApiFp)(this.configuration).changelogsPost(requestParameters.changelogCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
693
+ };
694
+ return ChangelogResourceApi;
695
+ }(base_1.BaseAPI));
696
+ exports.ChangelogResourceApi = ChangelogResourceApi;
697
+ /**
698
+ * ClientResourceApi - axios parameter creator
699
+ */
700
+ var ClientResourceApiAxiosParamCreator = function (configuration) {
701
+ var _this = this;
702
+ return {
703
+ /**
704
+ *
705
+ * @summary Delete Client
706
+ * @param {number} id
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ */
710
+ clientsIdDelete: function (id_1) {
711
+ var args_1 = [];
712
+ for (var _i = 1; _i < arguments.length; _i++) {
713
+ args_1[_i - 1] = arguments[_i];
714
+ }
715
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
716
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
717
+ if (options === void 0) { options = {}; }
718
+ return __generator(this, function (_a) {
719
+ switch (_a.label) {
720
+ case 0:
721
+ // verify required parameter 'id' is not null or undefined
722
+ (0, common_1.assertParamExists)('clientsIdDelete', 'id', id);
723
+ localVarPath = "/clients/{id}"
724
+ .replace('{id}', encodeURIComponent(String(id)));
725
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
726
+ if (configuration) {
727
+ baseOptions = configuration.baseOptions;
728
+ }
729
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
730
+ localVarHeaderParameter = {};
731
+ localVarQueryParameter = {};
732
+ // authentication SecurityScheme required
733
+ // http bearer authentication required
734
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
735
+ case 1:
736
+ // authentication SecurityScheme required
737
+ // http bearer authentication required
738
+ _a.sent();
739
+ localVarHeaderParameter['Accept'] = 'application/json';
740
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
741
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
742
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
743
+ return [2 /*return*/, {
744
+ url: (0, common_1.toPathString)(localVarUrlObj),
745
+ options: localVarRequestOptions,
746
+ }];
747
+ }
748
+ });
749
+ });
750
+ },
751
+ /**
752
+ *
753
+ * @summary Find Client By Id
754
+ * @param {number} id
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ clientsIdGet: function (id_1) {
759
+ var args_1 = [];
760
+ for (var _i = 1; _i < arguments.length; _i++) {
761
+ args_1[_i - 1] = arguments[_i];
762
+ }
763
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
764
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
765
+ if (options === void 0) { options = {}; }
766
+ return __generator(this, function (_a) {
767
+ switch (_a.label) {
768
+ case 0:
769
+ // verify required parameter 'id' is not null or undefined
770
+ (0, common_1.assertParamExists)('clientsIdGet', 'id', id);
771
+ localVarPath = "/clients/{id}"
772
+ .replace('{id}', encodeURIComponent(String(id)));
773
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
774
+ if (configuration) {
775
+ baseOptions = configuration.baseOptions;
776
+ }
777
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
778
+ localVarHeaderParameter = {};
779
+ localVarQueryParameter = {};
780
+ // authentication SecurityScheme required
781
+ // http bearer authentication required
782
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
783
+ case 1:
784
+ // authentication SecurityScheme required
785
+ // http bearer authentication required
786
+ _a.sent();
787
+ localVarHeaderParameter['Accept'] = 'application/json';
788
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
789
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
790
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
791
+ return [2 /*return*/, {
792
+ url: (0, common_1.toPathString)(localVarUrlObj),
793
+ options: localVarRequestOptions,
794
+ }];
795
+ }
796
+ });
797
+ });
798
+ },
799
+ /**
800
+ *
801
+ * @summary Update Client
802
+ * @param {number} id
803
+ * @param {ClientUpdateRequest} clientUpdateRequest
804
+ * @param {*} [options] Override http request option.
805
+ * @throws {RequiredError}
806
+ */
807
+ clientsIdPut: function (id_1, clientUpdateRequest_1) {
808
+ var args_1 = [];
809
+ for (var _i = 2; _i < arguments.length; _i++) {
810
+ args_1[_i - 2] = arguments[_i];
811
+ }
812
+ return __awaiter(_this, __spreadArray([id_1, clientUpdateRequest_1], args_1, true), void 0, function (id, clientUpdateRequest, options) {
813
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
814
+ if (options === void 0) { options = {}; }
815
+ return __generator(this, function (_a) {
816
+ switch (_a.label) {
817
+ case 0:
818
+ // verify required parameter 'id' is not null or undefined
819
+ (0, common_1.assertParamExists)('clientsIdPut', 'id', id);
820
+ // verify required parameter 'clientUpdateRequest' is not null or undefined
821
+ (0, common_1.assertParamExists)('clientsIdPut', 'clientUpdateRequest', clientUpdateRequest);
822
+ localVarPath = "/clients/{id}"
823
+ .replace('{id}', encodeURIComponent(String(id)));
824
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
825
+ if (configuration) {
826
+ baseOptions = configuration.baseOptions;
827
+ }
828
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
829
+ localVarHeaderParameter = {};
830
+ localVarQueryParameter = {};
831
+ // authentication SecurityScheme required
832
+ // http bearer authentication required
833
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
834
+ case 1:
835
+ // authentication SecurityScheme required
836
+ // http bearer authentication required
837
+ _a.sent();
838
+ localVarHeaderParameter['Content-Type'] = 'application/json';
839
+ localVarHeaderParameter['Accept'] = 'application/json';
840
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
841
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
842
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
843
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientUpdateRequest, localVarRequestOptions, configuration);
844
+ return [2 /*return*/, {
845
+ url: (0, common_1.toPathString)(localVarUrlObj),
846
+ options: localVarRequestOptions,
847
+ }];
848
+ }
849
+ });
850
+ });
851
+ },
852
+ /**
853
+ *
854
+ * @summary Create Client
855
+ * @param {ClientCreateRequest} clientCreateRequest
856
+ * @param {*} [options] Override http request option.
857
+ * @throws {RequiredError}
858
+ */
859
+ clientsPost: function (clientCreateRequest_1) {
860
+ var args_1 = [];
861
+ for (var _i = 1; _i < arguments.length; _i++) {
862
+ args_1[_i - 1] = arguments[_i];
863
+ }
864
+ return __awaiter(_this, __spreadArray([clientCreateRequest_1], args_1, true), void 0, function (clientCreateRequest, options) {
865
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
866
+ if (options === void 0) { options = {}; }
867
+ return __generator(this, function (_a) {
868
+ // verify required parameter 'clientCreateRequest' is not null or undefined
869
+ (0, common_1.assertParamExists)('clientsPost', 'clientCreateRequest', clientCreateRequest);
870
+ localVarPath = "/clients";
871
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
872
+ if (configuration) {
873
+ baseOptions = configuration.baseOptions;
874
+ }
875
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
876
+ localVarHeaderParameter = {};
877
+ localVarQueryParameter = {};
878
+ localVarHeaderParameter['Content-Type'] = 'application/json';
879
+ localVarHeaderParameter['Accept'] = 'application/json';
880
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
881
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
882
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
883
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(clientCreateRequest, localVarRequestOptions, configuration);
884
+ return [2 /*return*/, {
885
+ url: (0, common_1.toPathString)(localVarUrlObj),
886
+ options: localVarRequestOptions,
887
+ }];
888
+ });
889
+ });
890
+ },
891
+ };
892
+ };
893
+ exports.ClientResourceApiAxiosParamCreator = ClientResourceApiAxiosParamCreator;
894
+ /**
895
+ * ClientResourceApi - functional programming interface
896
+ */
897
+ var ClientResourceApiFp = function (configuration) {
898
+ var localVarAxiosParamCreator = (0, exports.ClientResourceApiAxiosParamCreator)(configuration);
899
+ return {
900
+ /**
901
+ *
902
+ * @summary Delete Client
903
+ * @param {number} id
904
+ * @param {*} [options] Override http request option.
905
+ * @throws {RequiredError}
906
+ */
907
+ clientsIdDelete: function (id, options) {
908
+ return __awaiter(this, void 0, void 0, function () {
909
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
910
+ var _a, _b, _c;
911
+ return __generator(this, function (_d) {
912
+ switch (_d.label) {
913
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clientsIdDelete(id, options)];
914
+ case 1:
915
+ localVarAxiosArgs = _d.sent();
916
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
917
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientResourceApi.clientsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
918
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
919
+ }
920
+ });
921
+ });
922
+ },
923
+ /**
924
+ *
925
+ * @summary Find Client By Id
926
+ * @param {number} id
927
+ * @param {*} [options] Override http request option.
928
+ * @throws {RequiredError}
929
+ */
930
+ clientsIdGet: function (id, options) {
931
+ return __awaiter(this, void 0, void 0, function () {
932
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
933
+ var _a, _b, _c;
934
+ return __generator(this, function (_d) {
935
+ switch (_d.label) {
936
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clientsIdGet(id, options)];
937
+ case 1:
938
+ localVarAxiosArgs = _d.sent();
939
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
940
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientResourceApi.clientsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
941
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
942
+ }
943
+ });
944
+ });
945
+ },
946
+ /**
947
+ *
948
+ * @summary Update Client
949
+ * @param {number} id
950
+ * @param {ClientUpdateRequest} clientUpdateRequest
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ */
954
+ clientsIdPut: function (id, clientUpdateRequest, options) {
955
+ return __awaiter(this, void 0, void 0, function () {
956
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
957
+ var _a, _b, _c;
958
+ return __generator(this, function (_d) {
959
+ switch (_d.label) {
960
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clientsIdPut(id, clientUpdateRequest, options)];
961
+ case 1:
962
+ localVarAxiosArgs = _d.sent();
963
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
964
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientResourceApi.clientsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
965
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
966
+ }
967
+ });
968
+ });
969
+ },
970
+ /**
971
+ *
972
+ * @summary Create Client
973
+ * @param {ClientCreateRequest} clientCreateRequest
974
+ * @param {*} [options] Override http request option.
975
+ * @throws {RequiredError}
976
+ */
977
+ clientsPost: function (clientCreateRequest, options) {
978
+ return __awaiter(this, void 0, void 0, function () {
979
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
980
+ var _a, _b, _c;
981
+ return __generator(this, function (_d) {
982
+ switch (_d.label) {
983
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.clientsPost(clientCreateRequest, options)];
984
+ case 1:
985
+ localVarAxiosArgs = _d.sent();
986
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
987
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ClientResourceApi.clientsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
988
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
989
+ }
990
+ });
991
+ });
992
+ },
993
+ };
994
+ };
995
+ exports.ClientResourceApiFp = ClientResourceApiFp;
996
+ /**
997
+ * ClientResourceApi - factory interface
998
+ */
999
+ var ClientResourceApiFactory = function (configuration, basePath, axios) {
1000
+ var localVarFp = (0, exports.ClientResourceApiFp)(configuration);
1001
+ return {
1002
+ /**
1003
+ *
1004
+ * @summary Delete Client
1005
+ * @param {ClientResourceApiClientsIdDeleteRequest} requestParameters Request parameters.
1006
+ * @param {*} [options] Override http request option.
1007
+ * @throws {RequiredError}
1008
+ */
1009
+ clientsIdDelete: function (requestParameters, options) {
1010
+ return localVarFp.clientsIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
1011
+ },
1012
+ /**
1013
+ *
1014
+ * @summary Find Client By Id
1015
+ * @param {ClientResourceApiClientsIdGetRequest} requestParameters Request parameters.
1016
+ * @param {*} [options] Override http request option.
1017
+ * @throws {RequiredError}
1018
+ */
1019
+ clientsIdGet: function (requestParameters, options) {
1020
+ return localVarFp.clientsIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
1021
+ },
1022
+ /**
1023
+ *
1024
+ * @summary Update Client
1025
+ * @param {ClientResourceApiClientsIdPutRequest} requestParameters Request parameters.
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ */
1029
+ clientsIdPut: function (requestParameters, options) {
1030
+ return localVarFp.clientsIdPut(requestParameters.id, requestParameters.clientUpdateRequest, options).then(function (request) { return request(axios, basePath); });
1031
+ },
1032
+ /**
1033
+ *
1034
+ * @summary Create Client
1035
+ * @param {ClientResourceApiClientsPostRequest} requestParameters Request parameters.
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ clientsPost: function (requestParameters, options) {
1040
+ return localVarFp.clientsPost(requestParameters.clientCreateRequest, options).then(function (request) { return request(axios, basePath); });
1041
+ },
1042
+ };
1043
+ };
1044
+ exports.ClientResourceApiFactory = ClientResourceApiFactory;
1045
+ /**
1046
+ * ClientResourceApi - object-oriented interface
1047
+ */
1048
+ var ClientResourceApi = /** @class */ (function (_super) {
1049
+ __extends(ClientResourceApi, _super);
1050
+ function ClientResourceApi() {
1051
+ return _super !== null && _super.apply(this, arguments) || this;
1052
+ }
1053
+ /**
1054
+ *
1055
+ * @summary Delete Client
1056
+ * @param {ClientResourceApiClientsIdDeleteRequest} requestParameters Request parameters.
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ ClientResourceApi.prototype.clientsIdDelete = function (requestParameters, options) {
1061
+ var _this = this;
1062
+ return (0, exports.ClientResourceApiFp)(this.configuration).clientsIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1063
+ };
1064
+ /**
1065
+ *
1066
+ * @summary Find Client By Id
1067
+ * @param {ClientResourceApiClientsIdGetRequest} requestParameters Request parameters.
1068
+ * @param {*} [options] Override http request option.
1069
+ * @throws {RequiredError}
1070
+ */
1071
+ ClientResourceApi.prototype.clientsIdGet = function (requestParameters, options) {
1072
+ var _this = this;
1073
+ return (0, exports.ClientResourceApiFp)(this.configuration).clientsIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1074
+ };
1075
+ /**
1076
+ *
1077
+ * @summary Update Client
1078
+ * @param {ClientResourceApiClientsIdPutRequest} requestParameters Request parameters.
1079
+ * @param {*} [options] Override http request option.
1080
+ * @throws {RequiredError}
1081
+ */
1082
+ ClientResourceApi.prototype.clientsIdPut = function (requestParameters, options) {
1083
+ var _this = this;
1084
+ return (0, exports.ClientResourceApiFp)(this.configuration).clientsIdPut(requestParameters.id, requestParameters.clientUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1085
+ };
1086
+ /**
1087
+ *
1088
+ * @summary Create Client
1089
+ * @param {ClientResourceApiClientsPostRequest} requestParameters Request parameters.
1090
+ * @param {*} [options] Override http request option.
1091
+ * @throws {RequiredError}
1092
+ */
1093
+ ClientResourceApi.prototype.clientsPost = function (requestParameters, options) {
1094
+ var _this = this;
1095
+ return (0, exports.ClientResourceApiFp)(this.configuration).clientsPost(requestParameters.clientCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1096
+ };
1097
+ return ClientResourceApi;
1098
+ }(base_1.BaseAPI));
1099
+ exports.ClientResourceApi = ClientResourceApi;
1100
+ /**
1101
+ * ScheduleResourceApi - axios parameter creator
1102
+ */
1103
+ var ScheduleResourceApiAxiosParamCreator = function (configuration) {
1104
+ var _this = this;
1105
+ return {
1106
+ /**
1107
+ *
1108
+ * @summary Get Schedules
1109
+ * @param {number} [page]
1110
+ * @param {number} [size]
1111
+ * @param {*} [options] Override http request option.
1112
+ * @throws {RequiredError}
1113
+ */
1114
+ schedulesGet: function (page_1, size_1) {
1115
+ var args_1 = [];
1116
+ for (var _i = 2; _i < arguments.length; _i++) {
1117
+ args_1[_i - 2] = arguments[_i];
1118
+ }
1119
+ return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
1120
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1121
+ if (options === void 0) { options = {}; }
1122
+ return __generator(this, function (_a) {
1123
+ localVarPath = "/schedules";
1124
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1125
+ if (configuration) {
1126
+ baseOptions = configuration.baseOptions;
1127
+ }
1128
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1129
+ localVarHeaderParameter = {};
1130
+ localVarQueryParameter = {};
1131
+ if (page !== undefined) {
1132
+ localVarQueryParameter['page'] = page;
1133
+ }
1134
+ if (size !== undefined) {
1135
+ localVarQueryParameter['size'] = size;
1136
+ }
1137
+ localVarHeaderParameter['Accept'] = 'application/json';
1138
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1139
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1140
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1141
+ return [2 /*return*/, {
1142
+ url: (0, common_1.toPathString)(localVarUrlObj),
1143
+ options: localVarRequestOptions,
1144
+ }];
1145
+ });
1146
+ });
1147
+ },
1148
+ /**
1149
+ *
1150
+ * @summary Delete Schedule By Id
1151
+ * @param {number} id
1152
+ * @param {*} [options] Override http request option.
1153
+ * @throws {RequiredError}
1154
+ */
1155
+ schedulesIdDelete: function (id_1) {
1156
+ var args_1 = [];
1157
+ for (var _i = 1; _i < arguments.length; _i++) {
1158
+ args_1[_i - 1] = arguments[_i];
1159
+ }
1160
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
1161
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1162
+ if (options === void 0) { options = {}; }
1163
+ return __generator(this, function (_a) {
1164
+ switch (_a.label) {
1165
+ case 0:
1166
+ // verify required parameter 'id' is not null or undefined
1167
+ (0, common_1.assertParamExists)('schedulesIdDelete', 'id', id);
1168
+ localVarPath = "/schedules/{id}"
1169
+ .replace('{id}', encodeURIComponent(String(id)));
1170
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1171
+ if (configuration) {
1172
+ baseOptions = configuration.baseOptions;
1173
+ }
1174
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1175
+ localVarHeaderParameter = {};
1176
+ localVarQueryParameter = {};
1177
+ // authentication SecurityScheme required
1178
+ // http bearer authentication required
1179
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1180
+ case 1:
1181
+ // authentication SecurityScheme required
1182
+ // http bearer authentication required
1183
+ _a.sent();
1184
+ localVarHeaderParameter['Accept'] = 'application/json';
1185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1188
+ return [2 /*return*/, {
1189
+ url: (0, common_1.toPathString)(localVarUrlObj),
1190
+ options: localVarRequestOptions,
1191
+ }];
1192
+ }
1193
+ });
1194
+ });
1195
+ },
1196
+ /**
1197
+ *
1198
+ * @summary Find Schedule By Id
1199
+ * @param {number} id
1200
+ * @param {*} [options] Override http request option.
1201
+ * @throws {RequiredError}
1202
+ */
1203
+ schedulesIdGet: function (id_1) {
1204
+ var args_1 = [];
1205
+ for (var _i = 1; _i < arguments.length; _i++) {
1206
+ args_1[_i - 1] = arguments[_i];
1207
+ }
1208
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
1209
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1210
+ if (options === void 0) { options = {}; }
1211
+ return __generator(this, function (_a) {
1212
+ // verify required parameter 'id' is not null or undefined
1213
+ (0, common_1.assertParamExists)('schedulesIdGet', 'id', id);
1214
+ localVarPath = "/schedules/{id}"
1215
+ .replace('{id}', encodeURIComponent(String(id)));
1216
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1217
+ if (configuration) {
1218
+ baseOptions = configuration.baseOptions;
1219
+ }
1220
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1221
+ localVarHeaderParameter = {};
1222
+ localVarQueryParameter = {};
1223
+ localVarHeaderParameter['Accept'] = 'application/json';
1224
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1225
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1226
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1227
+ return [2 /*return*/, {
1228
+ url: (0, common_1.toPathString)(localVarUrlObj),
1229
+ options: localVarRequestOptions,
1230
+ }];
1231
+ });
1232
+ });
1233
+ },
1234
+ /**
1235
+ *
1236
+ * @summary Update Schedule
1237
+ * @param {number} id
1238
+ * @param {ScheduleUpdateRequest} scheduleUpdateRequest
1239
+ * @param {*} [options] Override http request option.
1240
+ * @throws {RequiredError}
1241
+ */
1242
+ schedulesIdPut: function (id_1, scheduleUpdateRequest_1) {
1243
+ var args_1 = [];
1244
+ for (var _i = 2; _i < arguments.length; _i++) {
1245
+ args_1[_i - 2] = arguments[_i];
1246
+ }
1247
+ return __awaiter(_this, __spreadArray([id_1, scheduleUpdateRequest_1], args_1, true), void 0, function (id, scheduleUpdateRequest, options) {
1248
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1249
+ if (options === void 0) { options = {}; }
1250
+ return __generator(this, function (_a) {
1251
+ switch (_a.label) {
1252
+ case 0:
1253
+ // verify required parameter 'id' is not null or undefined
1254
+ (0, common_1.assertParamExists)('schedulesIdPut', 'id', id);
1255
+ // verify required parameter 'scheduleUpdateRequest' is not null or undefined
1256
+ (0, common_1.assertParamExists)('schedulesIdPut', 'scheduleUpdateRequest', scheduleUpdateRequest);
1257
+ localVarPath = "/schedules/{id}"
1258
+ .replace('{id}', encodeURIComponent(String(id)));
1259
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1260
+ if (configuration) {
1261
+ baseOptions = configuration.baseOptions;
1262
+ }
1263
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1264
+ localVarHeaderParameter = {};
1265
+ localVarQueryParameter = {};
1266
+ // authentication SecurityScheme required
1267
+ // http bearer authentication required
1268
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1269
+ case 1:
1270
+ // authentication SecurityScheme required
1271
+ // http bearer authentication required
1272
+ _a.sent();
1273
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1274
+ localVarHeaderParameter['Accept'] = 'application/json';
1275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1276
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1277
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1278
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleUpdateRequest, localVarRequestOptions, configuration);
1279
+ return [2 /*return*/, {
1280
+ url: (0, common_1.toPathString)(localVarUrlObj),
1281
+ options: localVarRequestOptions,
1282
+ }];
1283
+ }
1284
+ });
1285
+ });
1286
+ },
1287
+ /**
1288
+ *
1289
+ * @summary Create Schedule
1290
+ * @param {ScheduleCreateRequest} scheduleCreateRequest
1291
+ * @param {*} [options] Override http request option.
1292
+ * @throws {RequiredError}
1293
+ */
1294
+ schedulesPost: function (scheduleCreateRequest_1) {
1295
+ var args_1 = [];
1296
+ for (var _i = 1; _i < arguments.length; _i++) {
1297
+ args_1[_i - 1] = arguments[_i];
1298
+ }
1299
+ return __awaiter(_this, __spreadArray([scheduleCreateRequest_1], args_1, true), void 0, function (scheduleCreateRequest, options) {
1300
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1301
+ if (options === void 0) { options = {}; }
1302
+ return __generator(this, function (_a) {
1303
+ switch (_a.label) {
1304
+ case 0:
1305
+ // verify required parameter 'scheduleCreateRequest' is not null or undefined
1306
+ (0, common_1.assertParamExists)('schedulesPost', 'scheduleCreateRequest', scheduleCreateRequest);
1307
+ localVarPath = "/schedules";
1308
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1309
+ if (configuration) {
1310
+ baseOptions = configuration.baseOptions;
1311
+ }
1312
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1313
+ localVarHeaderParameter = {};
1314
+ localVarQueryParameter = {};
1315
+ // authentication SecurityScheme required
1316
+ // http bearer authentication required
1317
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1318
+ case 1:
1319
+ // authentication SecurityScheme required
1320
+ // http bearer authentication required
1321
+ _a.sent();
1322
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1323
+ localVarHeaderParameter['Accept'] = 'application/json';
1324
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1325
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1326
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1327
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
1328
+ return [2 /*return*/, {
1329
+ url: (0, common_1.toPathString)(localVarUrlObj),
1330
+ options: localVarRequestOptions,
1331
+ }];
1332
+ }
1333
+ });
1334
+ });
1335
+ },
1336
+ };
1337
+ };
1338
+ exports.ScheduleResourceApiAxiosParamCreator = ScheduleResourceApiAxiosParamCreator;
1339
+ /**
1340
+ * ScheduleResourceApi - functional programming interface
1341
+ */
1342
+ var ScheduleResourceApiFp = function (configuration) {
1343
+ var localVarAxiosParamCreator = (0, exports.ScheduleResourceApiAxiosParamCreator)(configuration);
1344
+ return {
1345
+ /**
1346
+ *
1347
+ * @summary Get Schedules
1348
+ * @param {number} [page]
1349
+ * @param {number} [size]
1350
+ * @param {*} [options] Override http request option.
1351
+ * @throws {RequiredError}
1352
+ */
1353
+ schedulesGet: function (page, size, options) {
1354
+ return __awaiter(this, void 0, void 0, function () {
1355
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1356
+ var _a, _b, _c;
1357
+ return __generator(this, function (_d) {
1358
+ switch (_d.label) {
1359
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesGet(page, size, options)];
1360
+ case 1:
1361
+ localVarAxiosArgs = _d.sent();
1362
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1363
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScheduleResourceApi.schedulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1364
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1365
+ }
1366
+ });
1367
+ });
1368
+ },
1369
+ /**
1370
+ *
1371
+ * @summary Delete Schedule By Id
1372
+ * @param {number} id
1373
+ * @param {*} [options] Override http request option.
1374
+ * @throws {RequiredError}
1375
+ */
1376
+ schedulesIdDelete: function (id, options) {
1377
+ return __awaiter(this, void 0, void 0, function () {
1378
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1379
+ var _a, _b, _c;
1380
+ return __generator(this, function (_d) {
1381
+ switch (_d.label) {
1382
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesIdDelete(id, options)];
1383
+ case 1:
1384
+ localVarAxiosArgs = _d.sent();
1385
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1386
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScheduleResourceApi.schedulesIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1387
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1388
+ }
1389
+ });
1390
+ });
1391
+ },
1392
+ /**
1393
+ *
1394
+ * @summary Find Schedule By Id
1395
+ * @param {number} id
1396
+ * @param {*} [options] Override http request option.
1397
+ * @throws {RequiredError}
1398
+ */
1399
+ schedulesIdGet: function (id, options) {
1400
+ return __awaiter(this, void 0, void 0, function () {
1401
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1402
+ var _a, _b, _c;
1403
+ return __generator(this, function (_d) {
1404
+ switch (_d.label) {
1405
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesIdGet(id, options)];
1406
+ case 1:
1407
+ localVarAxiosArgs = _d.sent();
1408
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1409
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScheduleResourceApi.schedulesIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1410
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1411
+ }
1412
+ });
1413
+ });
1414
+ },
1415
+ /**
1416
+ *
1417
+ * @summary Update Schedule
1418
+ * @param {number} id
1419
+ * @param {ScheduleUpdateRequest} scheduleUpdateRequest
1420
+ * @param {*} [options] Override http request option.
1421
+ * @throws {RequiredError}
1422
+ */
1423
+ schedulesIdPut: function (id, scheduleUpdateRequest, options) {
1424
+ return __awaiter(this, void 0, void 0, function () {
1425
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1426
+ var _a, _b, _c;
1427
+ return __generator(this, function (_d) {
1428
+ switch (_d.label) {
1429
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesIdPut(id, scheduleUpdateRequest, options)];
1430
+ case 1:
1431
+ localVarAxiosArgs = _d.sent();
1432
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1433
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScheduleResourceApi.schedulesIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1434
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1435
+ }
1436
+ });
1437
+ });
1438
+ },
1439
+ /**
1440
+ *
1441
+ * @summary Create Schedule
1442
+ * @param {ScheduleCreateRequest} scheduleCreateRequest
1443
+ * @param {*} [options] Override http request option.
1444
+ * @throws {RequiredError}
1445
+ */
1446
+ schedulesPost: function (scheduleCreateRequest, options) {
1447
+ return __awaiter(this, void 0, void 0, function () {
1448
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1449
+ var _a, _b, _c;
1450
+ return __generator(this, function (_d) {
1451
+ switch (_d.label) {
1452
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesPost(scheduleCreateRequest, options)];
1453
+ case 1:
1454
+ localVarAxiosArgs = _d.sent();
1455
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1456
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScheduleResourceApi.schedulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1457
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1458
+ }
1459
+ });
1460
+ });
1461
+ },
1462
+ };
1463
+ };
1464
+ exports.ScheduleResourceApiFp = ScheduleResourceApiFp;
1465
+ /**
1466
+ * ScheduleResourceApi - factory interface
1467
+ */
1468
+ var ScheduleResourceApiFactory = function (configuration, basePath, axios) {
1469
+ var localVarFp = (0, exports.ScheduleResourceApiFp)(configuration);
1470
+ return {
1471
+ /**
1472
+ *
1473
+ * @summary Get Schedules
1474
+ * @param {ScheduleResourceApiSchedulesGetRequest} requestParameters Request parameters.
1475
+ * @param {*} [options] Override http request option.
1476
+ * @throws {RequiredError}
1477
+ */
1478
+ schedulesGet: function (requestParameters, options) {
1479
+ if (requestParameters === void 0) { requestParameters = {}; }
1480
+ return localVarFp.schedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
1481
+ },
1482
+ /**
1483
+ *
1484
+ * @summary Delete Schedule By Id
1485
+ * @param {ScheduleResourceApiSchedulesIdDeleteRequest} requestParameters Request parameters.
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ schedulesIdDelete: function (requestParameters, options) {
1490
+ return localVarFp.schedulesIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
1491
+ },
1492
+ /**
1493
+ *
1494
+ * @summary Find Schedule By Id
1495
+ * @param {ScheduleResourceApiSchedulesIdGetRequest} requestParameters Request parameters.
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ */
1499
+ schedulesIdGet: function (requestParameters, options) {
1500
+ return localVarFp.schedulesIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
1501
+ },
1502
+ /**
1503
+ *
1504
+ * @summary Update Schedule
1505
+ * @param {ScheduleResourceApiSchedulesIdPutRequest} requestParameters Request parameters.
1506
+ * @param {*} [options] Override http request option.
1507
+ * @throws {RequiredError}
1508
+ */
1509
+ schedulesIdPut: function (requestParameters, options) {
1510
+ return localVarFp.schedulesIdPut(requestParameters.id, requestParameters.scheduleUpdateRequest, options).then(function (request) { return request(axios, basePath); });
1511
+ },
1512
+ /**
1513
+ *
1514
+ * @summary Create Schedule
1515
+ * @param {ScheduleResourceApiSchedulesPostRequest} requestParameters Request parameters.
1516
+ * @param {*} [options] Override http request option.
1517
+ * @throws {RequiredError}
1518
+ */
1519
+ schedulesPost: function (requestParameters, options) {
1520
+ return localVarFp.schedulesPost(requestParameters.scheduleCreateRequest, options).then(function (request) { return request(axios, basePath); });
1521
+ },
1522
+ };
1523
+ };
1524
+ exports.ScheduleResourceApiFactory = ScheduleResourceApiFactory;
1525
+ /**
1526
+ * ScheduleResourceApi - object-oriented interface
1527
+ */
1528
+ var ScheduleResourceApi = /** @class */ (function (_super) {
1529
+ __extends(ScheduleResourceApi, _super);
1530
+ function ScheduleResourceApi() {
1531
+ return _super !== null && _super.apply(this, arguments) || this;
1532
+ }
1533
+ /**
1534
+ *
1535
+ * @summary Get Schedules
1536
+ * @param {ScheduleResourceApiSchedulesGetRequest} requestParameters Request parameters.
1537
+ * @param {*} [options] Override http request option.
1538
+ * @throws {RequiredError}
1539
+ */
1540
+ ScheduleResourceApi.prototype.schedulesGet = function (requestParameters, options) {
1541
+ var _this = this;
1542
+ if (requestParameters === void 0) { requestParameters = {}; }
1543
+ return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
1544
+ };
1545
+ /**
1546
+ *
1547
+ * @summary Delete Schedule By Id
1548
+ * @param {ScheduleResourceApiSchedulesIdDeleteRequest} requestParameters Request parameters.
1549
+ * @param {*} [options] Override http request option.
1550
+ * @throws {RequiredError}
1551
+ */
1552
+ ScheduleResourceApi.prototype.schedulesIdDelete = function (requestParameters, options) {
1553
+ var _this = this;
1554
+ return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1555
+ };
1556
+ /**
1557
+ *
1558
+ * @summary Find Schedule By Id
1559
+ * @param {ScheduleResourceApiSchedulesIdGetRequest} requestParameters Request parameters.
1560
+ * @param {*} [options] Override http request option.
1561
+ * @throws {RequiredError}
1562
+ */
1563
+ ScheduleResourceApi.prototype.schedulesIdGet = function (requestParameters, options) {
1564
+ var _this = this;
1565
+ return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
1566
+ };
1567
+ /**
1568
+ *
1569
+ * @summary Update Schedule
1570
+ * @param {ScheduleResourceApiSchedulesIdPutRequest} requestParameters Request parameters.
1571
+ * @param {*} [options] Override http request option.
1572
+ * @throws {RequiredError}
1573
+ */
1574
+ ScheduleResourceApi.prototype.schedulesIdPut = function (requestParameters, options) {
1575
+ var _this = this;
1576
+ return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesIdPut(requestParameters.id, requestParameters.scheduleUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1577
+ };
1578
+ /**
1579
+ *
1580
+ * @summary Create Schedule
1581
+ * @param {ScheduleResourceApiSchedulesPostRequest} requestParameters Request parameters.
1582
+ * @param {*} [options] Override http request option.
1583
+ * @throws {RequiredError}
1584
+ */
1585
+ ScheduleResourceApi.prototype.schedulesPost = function (requestParameters, options) {
1586
+ var _this = this;
1587
+ return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesPost(requestParameters.scheduleCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
1588
+ };
1589
+ return ScheduleResourceApi;
1590
+ }(base_1.BaseAPI));
1591
+ exports.ScheduleResourceApi = ScheduleResourceApi;
1592
+ /**
1593
+ * ShiftResourceApi - axios parameter creator
1594
+ */
1595
+ var ShiftResourceApiAxiosParamCreator = function (configuration) {
1596
+ var _this = this;
1597
+ return {
1598
+ /**
1599
+ *
1600
+ * @summary Get Shifts
1601
+ * @param {number} [page]
1602
+ * @param {number} [size]
1603
+ * @param {*} [options] Override http request option.
1604
+ * @throws {RequiredError}
1605
+ */
1606
+ shiftsGet: function (page_1, size_1) {
1607
+ var args_1 = [];
1608
+ for (var _i = 2; _i < arguments.length; _i++) {
1609
+ args_1[_i - 2] = arguments[_i];
1610
+ }
1611
+ return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
1612
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1613
+ if (options === void 0) { options = {}; }
1614
+ return __generator(this, function (_a) {
1615
+ localVarPath = "/shifts";
1616
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1617
+ if (configuration) {
1618
+ baseOptions = configuration.baseOptions;
1619
+ }
1620
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1621
+ localVarHeaderParameter = {};
1622
+ localVarQueryParameter = {};
1623
+ if (page !== undefined) {
1624
+ localVarQueryParameter['page'] = page;
1625
+ }
1626
+ if (size !== undefined) {
1627
+ localVarQueryParameter['size'] = size;
1628
+ }
1629
+ localVarHeaderParameter['Accept'] = 'application/json';
1630
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1631
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1632
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1633
+ return [2 /*return*/, {
1634
+ url: (0, common_1.toPathString)(localVarUrlObj),
1635
+ options: localVarRequestOptions,
1636
+ }];
1637
+ });
1638
+ });
1639
+ },
1640
+ /**
1641
+ *
1642
+ * @summary Delete Shift By Id
1643
+ * @param {number} id
1644
+ * @param {*} [options] Override http request option.
1645
+ * @throws {RequiredError}
1646
+ */
1647
+ shiftsIdDelete: function (id_1) {
1648
+ var args_1 = [];
1649
+ for (var _i = 1; _i < arguments.length; _i++) {
1650
+ args_1[_i - 1] = arguments[_i];
1651
+ }
1652
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
1653
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1654
+ if (options === void 0) { options = {}; }
1655
+ return __generator(this, function (_a) {
1656
+ switch (_a.label) {
1657
+ case 0:
1658
+ // verify required parameter 'id' is not null or undefined
1659
+ (0, common_1.assertParamExists)('shiftsIdDelete', 'id', id);
1660
+ localVarPath = "/shifts/{id}"
1661
+ .replace('{id}', encodeURIComponent(String(id)));
1662
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1663
+ if (configuration) {
1664
+ baseOptions = configuration.baseOptions;
1665
+ }
1666
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1667
+ localVarHeaderParameter = {};
1668
+ localVarQueryParameter = {};
1669
+ // authentication SecurityScheme required
1670
+ // http bearer authentication required
1671
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1672
+ case 1:
1673
+ // authentication SecurityScheme required
1674
+ // http bearer authentication required
1675
+ _a.sent();
1676
+ localVarHeaderParameter['Accept'] = 'application/json';
1677
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1678
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1679
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1680
+ return [2 /*return*/, {
1681
+ url: (0, common_1.toPathString)(localVarUrlObj),
1682
+ options: localVarRequestOptions,
1683
+ }];
1684
+ }
1685
+ });
1686
+ });
1687
+ },
1688
+ /**
1689
+ *
1690
+ * @summary Find Shift By Id
1691
+ * @param {number} id
1692
+ * @param {*} [options] Override http request option.
1693
+ * @throws {RequiredError}
1694
+ */
1695
+ shiftsIdGet: function (id_1) {
1696
+ var args_1 = [];
1697
+ for (var _i = 1; _i < arguments.length; _i++) {
1698
+ args_1[_i - 1] = arguments[_i];
1699
+ }
1700
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
1701
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1702
+ if (options === void 0) { options = {}; }
1703
+ return __generator(this, function (_a) {
1704
+ switch (_a.label) {
1705
+ case 0:
1706
+ // verify required parameter 'id' is not null or undefined
1707
+ (0, common_1.assertParamExists)('shiftsIdGet', 'id', id);
1708
+ localVarPath = "/shifts/{id}"
1709
+ .replace('{id}', encodeURIComponent(String(id)));
1710
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1711
+ if (configuration) {
1712
+ baseOptions = configuration.baseOptions;
1713
+ }
1714
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1715
+ localVarHeaderParameter = {};
1716
+ localVarQueryParameter = {};
1717
+ // authentication SecurityScheme required
1718
+ // http bearer authentication required
1719
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1720
+ case 1:
1721
+ // authentication SecurityScheme required
1722
+ // http bearer authentication required
1723
+ _a.sent();
1724
+ localVarHeaderParameter['Accept'] = 'application/json';
1725
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1726
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1727
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1728
+ return [2 /*return*/, {
1729
+ url: (0, common_1.toPathString)(localVarUrlObj),
1730
+ options: localVarRequestOptions,
1731
+ }];
1732
+ }
1733
+ });
1734
+ });
1735
+ },
1736
+ /**
1737
+ *
1738
+ * @summary Update Shift
1739
+ * @param {number} id
1740
+ * @param {ShiftUpdateRequest} shiftUpdateRequest
1741
+ * @param {*} [options] Override http request option.
1742
+ * @throws {RequiredError}
1743
+ */
1744
+ shiftsIdPut: function (id_1, shiftUpdateRequest_1) {
1745
+ var args_1 = [];
1746
+ for (var _i = 2; _i < arguments.length; _i++) {
1747
+ args_1[_i - 2] = arguments[_i];
1748
+ }
1749
+ return __awaiter(_this, __spreadArray([id_1, shiftUpdateRequest_1], args_1, true), void 0, function (id, shiftUpdateRequest, options) {
1750
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1751
+ if (options === void 0) { options = {}; }
1752
+ return __generator(this, function (_a) {
1753
+ switch (_a.label) {
1754
+ case 0:
1755
+ // verify required parameter 'id' is not null or undefined
1756
+ (0, common_1.assertParamExists)('shiftsIdPut', 'id', id);
1757
+ // verify required parameter 'shiftUpdateRequest' is not null or undefined
1758
+ (0, common_1.assertParamExists)('shiftsIdPut', 'shiftUpdateRequest', shiftUpdateRequest);
1759
+ localVarPath = "/shifts/{id}"
1760
+ .replace('{id}', encodeURIComponent(String(id)));
1761
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1762
+ if (configuration) {
1763
+ baseOptions = configuration.baseOptions;
1764
+ }
1765
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
1766
+ localVarHeaderParameter = {};
1767
+ localVarQueryParameter = {};
1768
+ // authentication SecurityScheme required
1769
+ // http bearer authentication required
1770
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1771
+ case 1:
1772
+ // authentication SecurityScheme required
1773
+ // http bearer authentication required
1774
+ _a.sent();
1775
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1776
+ localVarHeaderParameter['Accept'] = 'application/json';
1777
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1778
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1779
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1780
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shiftUpdateRequest, localVarRequestOptions, configuration);
1781
+ return [2 /*return*/, {
1782
+ url: (0, common_1.toPathString)(localVarUrlObj),
1783
+ options: localVarRequestOptions,
1784
+ }];
1785
+ }
1786
+ });
1787
+ });
1788
+ },
1789
+ /**
1790
+ *
1791
+ * @summary Create Shift
1792
+ * @param {ShiftCreateRequest} shiftCreateRequest
1793
+ * @param {*} [options] Override http request option.
1794
+ * @throws {RequiredError}
1795
+ */
1796
+ shiftsPost: function (shiftCreateRequest_1) {
1797
+ var args_1 = [];
1798
+ for (var _i = 1; _i < arguments.length; _i++) {
1799
+ args_1[_i - 1] = arguments[_i];
1800
+ }
1801
+ return __awaiter(_this, __spreadArray([shiftCreateRequest_1], args_1, true), void 0, function (shiftCreateRequest, options) {
1802
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1803
+ if (options === void 0) { options = {}; }
1804
+ return __generator(this, function (_a) {
1805
+ switch (_a.label) {
1806
+ case 0:
1807
+ // verify required parameter 'shiftCreateRequest' is not null or undefined
1808
+ (0, common_1.assertParamExists)('shiftsPost', 'shiftCreateRequest', shiftCreateRequest);
1809
+ localVarPath = "/shifts";
1810
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1811
+ if (configuration) {
1812
+ baseOptions = configuration.baseOptions;
1813
+ }
1814
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1815
+ localVarHeaderParameter = {};
1816
+ localVarQueryParameter = {};
1817
+ // authentication SecurityScheme required
1818
+ // http bearer authentication required
1819
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
1820
+ case 1:
1821
+ // authentication SecurityScheme required
1822
+ // http bearer authentication required
1823
+ _a.sent();
1824
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1825
+ localVarHeaderParameter['Accept'] = 'application/json';
1826
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1827
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1828
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1829
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(shiftCreateRequest, localVarRequestOptions, configuration);
1830
+ return [2 /*return*/, {
1831
+ url: (0, common_1.toPathString)(localVarUrlObj),
1832
+ options: localVarRequestOptions,
1833
+ }];
1834
+ }
1835
+ });
1836
+ });
1837
+ },
1838
+ };
1839
+ };
1840
+ exports.ShiftResourceApiAxiosParamCreator = ShiftResourceApiAxiosParamCreator;
1841
+ /**
1842
+ * ShiftResourceApi - functional programming interface
1843
+ */
1844
+ var ShiftResourceApiFp = function (configuration) {
1845
+ var localVarAxiosParamCreator = (0, exports.ShiftResourceApiAxiosParamCreator)(configuration);
1846
+ return {
1847
+ /**
1848
+ *
1849
+ * @summary Get Shifts
1850
+ * @param {number} [page]
1851
+ * @param {number} [size]
1852
+ * @param {*} [options] Override http request option.
1853
+ * @throws {RequiredError}
1854
+ */
1855
+ shiftsGet: function (page, size, options) {
1856
+ return __awaiter(this, void 0, void 0, function () {
1857
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1858
+ var _a, _b, _c;
1859
+ return __generator(this, function (_d) {
1860
+ switch (_d.label) {
1861
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.shiftsGet(page, size, options)];
1862
+ case 1:
1863
+ localVarAxiosArgs = _d.sent();
1864
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1865
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShiftResourceApi.shiftsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1866
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1867
+ }
1868
+ });
1869
+ });
1870
+ },
1871
+ /**
1872
+ *
1873
+ * @summary Delete Shift By Id
1874
+ * @param {number} id
1875
+ * @param {*} [options] Override http request option.
1876
+ * @throws {RequiredError}
1877
+ */
1878
+ shiftsIdDelete: function (id, options) {
1879
+ return __awaiter(this, void 0, void 0, function () {
1880
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1881
+ var _a, _b, _c;
1882
+ return __generator(this, function (_d) {
1883
+ switch (_d.label) {
1884
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.shiftsIdDelete(id, options)];
1885
+ case 1:
1886
+ localVarAxiosArgs = _d.sent();
1887
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1888
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShiftResourceApi.shiftsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1889
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1890
+ }
1891
+ });
1892
+ });
1893
+ },
1894
+ /**
1895
+ *
1896
+ * @summary Find Shift By Id
1897
+ * @param {number} id
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ */
1901
+ shiftsIdGet: function (id, options) {
1902
+ return __awaiter(this, void 0, void 0, function () {
1903
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1904
+ var _a, _b, _c;
1905
+ return __generator(this, function (_d) {
1906
+ switch (_d.label) {
1907
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.shiftsIdGet(id, options)];
1908
+ case 1:
1909
+ localVarAxiosArgs = _d.sent();
1910
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1911
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShiftResourceApi.shiftsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1912
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1913
+ }
1914
+ });
1915
+ });
1916
+ },
1917
+ /**
1918
+ *
1919
+ * @summary Update Shift
1920
+ * @param {number} id
1921
+ * @param {ShiftUpdateRequest} shiftUpdateRequest
1922
+ * @param {*} [options] Override http request option.
1923
+ * @throws {RequiredError}
1924
+ */
1925
+ shiftsIdPut: function (id, shiftUpdateRequest, options) {
1926
+ return __awaiter(this, void 0, void 0, function () {
1927
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1928
+ var _a, _b, _c;
1929
+ return __generator(this, function (_d) {
1930
+ switch (_d.label) {
1931
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.shiftsIdPut(id, shiftUpdateRequest, options)];
1932
+ case 1:
1933
+ localVarAxiosArgs = _d.sent();
1934
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1935
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShiftResourceApi.shiftsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1936
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1937
+ }
1938
+ });
1939
+ });
1940
+ },
1941
+ /**
1942
+ *
1943
+ * @summary Create Shift
1944
+ * @param {ShiftCreateRequest} shiftCreateRequest
1945
+ * @param {*} [options] Override http request option.
1946
+ * @throws {RequiredError}
1947
+ */
1948
+ shiftsPost: function (shiftCreateRequest, options) {
1949
+ return __awaiter(this, void 0, void 0, function () {
1950
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
1951
+ var _a, _b, _c;
1952
+ return __generator(this, function (_d) {
1953
+ switch (_d.label) {
1954
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.shiftsPost(shiftCreateRequest, options)];
1955
+ case 1:
1956
+ localVarAxiosArgs = _d.sent();
1957
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1958
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ShiftResourceApi.shiftsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1959
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
1960
+ }
1961
+ });
1962
+ });
1963
+ },
1964
+ };
1965
+ };
1966
+ exports.ShiftResourceApiFp = ShiftResourceApiFp;
1967
+ /**
1968
+ * ShiftResourceApi - factory interface
1969
+ */
1970
+ var ShiftResourceApiFactory = function (configuration, basePath, axios) {
1971
+ var localVarFp = (0, exports.ShiftResourceApiFp)(configuration);
1972
+ return {
1973
+ /**
1974
+ *
1975
+ * @summary Get Shifts
1976
+ * @param {ShiftResourceApiShiftsGetRequest} requestParameters Request parameters.
1977
+ * @param {*} [options] Override http request option.
1978
+ * @throws {RequiredError}
1979
+ */
1980
+ shiftsGet: function (requestParameters, options) {
1981
+ if (requestParameters === void 0) { requestParameters = {}; }
1982
+ return localVarFp.shiftsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
1983
+ },
1984
+ /**
1985
+ *
1986
+ * @summary Delete Shift By Id
1987
+ * @param {ShiftResourceApiShiftsIdDeleteRequest} requestParameters Request parameters.
1988
+ * @param {*} [options] Override http request option.
1989
+ * @throws {RequiredError}
1990
+ */
1991
+ shiftsIdDelete: function (requestParameters, options) {
1992
+ return localVarFp.shiftsIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
1993
+ },
1994
+ /**
1995
+ *
1996
+ * @summary Find Shift By Id
1997
+ * @param {ShiftResourceApiShiftsIdGetRequest} requestParameters Request parameters.
1998
+ * @param {*} [options] Override http request option.
1999
+ * @throws {RequiredError}
2000
+ */
2001
+ shiftsIdGet: function (requestParameters, options) {
2002
+ return localVarFp.shiftsIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
2003
+ },
2004
+ /**
2005
+ *
2006
+ * @summary Update Shift
2007
+ * @param {ShiftResourceApiShiftsIdPutRequest} requestParameters Request parameters.
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ shiftsIdPut: function (requestParameters, options) {
2012
+ return localVarFp.shiftsIdPut(requestParameters.id, requestParameters.shiftUpdateRequest, options).then(function (request) { return request(axios, basePath); });
2013
+ },
2014
+ /**
2015
+ *
2016
+ * @summary Create Shift
2017
+ * @param {ShiftResourceApiShiftsPostRequest} requestParameters Request parameters.
2018
+ * @param {*} [options] Override http request option.
2019
+ * @throws {RequiredError}
2020
+ */
2021
+ shiftsPost: function (requestParameters, options) {
2022
+ return localVarFp.shiftsPost(requestParameters.shiftCreateRequest, options).then(function (request) { return request(axios, basePath); });
2023
+ },
2024
+ };
2025
+ };
2026
+ exports.ShiftResourceApiFactory = ShiftResourceApiFactory;
2027
+ /**
2028
+ * ShiftResourceApi - object-oriented interface
2029
+ */
2030
+ var ShiftResourceApi = /** @class */ (function (_super) {
2031
+ __extends(ShiftResourceApi, _super);
2032
+ function ShiftResourceApi() {
2033
+ return _super !== null && _super.apply(this, arguments) || this;
2034
+ }
2035
+ /**
2036
+ *
2037
+ * @summary Get Shifts
2038
+ * @param {ShiftResourceApiShiftsGetRequest} requestParameters Request parameters.
2039
+ * @param {*} [options] Override http request option.
2040
+ * @throws {RequiredError}
2041
+ */
2042
+ ShiftResourceApi.prototype.shiftsGet = function (requestParameters, options) {
2043
+ var _this = this;
2044
+ if (requestParameters === void 0) { requestParameters = {}; }
2045
+ return (0, exports.ShiftResourceApiFp)(this.configuration).shiftsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
2046
+ };
2047
+ /**
2048
+ *
2049
+ * @summary Delete Shift By Id
2050
+ * @param {ShiftResourceApiShiftsIdDeleteRequest} requestParameters Request parameters.
2051
+ * @param {*} [options] Override http request option.
2052
+ * @throws {RequiredError}
2053
+ */
2054
+ ShiftResourceApi.prototype.shiftsIdDelete = function (requestParameters, options) {
2055
+ var _this = this;
2056
+ return (0, exports.ShiftResourceApiFp)(this.configuration).shiftsIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2057
+ };
2058
+ /**
2059
+ *
2060
+ * @summary Find Shift By Id
2061
+ * @param {ShiftResourceApiShiftsIdGetRequest} requestParameters Request parameters.
2062
+ * @param {*} [options] Override http request option.
2063
+ * @throws {RequiredError}
2064
+ */
2065
+ ShiftResourceApi.prototype.shiftsIdGet = function (requestParameters, options) {
2066
+ var _this = this;
2067
+ return (0, exports.ShiftResourceApiFp)(this.configuration).shiftsIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2068
+ };
2069
+ /**
2070
+ *
2071
+ * @summary Update Shift
2072
+ * @param {ShiftResourceApiShiftsIdPutRequest} requestParameters Request parameters.
2073
+ * @param {*} [options] Override http request option.
2074
+ * @throws {RequiredError}
2075
+ */
2076
+ ShiftResourceApi.prototype.shiftsIdPut = function (requestParameters, options) {
2077
+ var _this = this;
2078
+ return (0, exports.ShiftResourceApiFp)(this.configuration).shiftsIdPut(requestParameters.id, requestParameters.shiftUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2079
+ };
2080
+ /**
2081
+ *
2082
+ * @summary Create Shift
2083
+ * @param {ShiftResourceApiShiftsPostRequest} requestParameters Request parameters.
2084
+ * @param {*} [options] Override http request option.
2085
+ * @throws {RequiredError}
2086
+ */
2087
+ ShiftResourceApi.prototype.shiftsPost = function (requestParameters, options) {
2088
+ var _this = this;
2089
+ return (0, exports.ShiftResourceApiFp)(this.configuration).shiftsPost(requestParameters.shiftCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2090
+ };
2091
+ return ShiftResourceApi;
2092
+ }(base_1.BaseAPI));
2093
+ exports.ShiftResourceApi = ShiftResourceApi;
2094
+ /**
2095
+ * TreatmentResourceApi - axios parameter creator
2096
+ */
2097
+ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
2098
+ var _this = this;
2099
+ return {
2100
+ /**
2101
+ *
2102
+ * @summary Get Treatments
2103
+ * @param {number} [page]
2104
+ * @param {number} [size]
2105
+ * @param {*} [options] Override http request option.
2106
+ * @throws {RequiredError}
2107
+ */
2108
+ treatmentsGet: function (page_1, size_1) {
2109
+ var args_1 = [];
2110
+ for (var _i = 2; _i < arguments.length; _i++) {
2111
+ args_1[_i - 2] = arguments[_i];
2112
+ }
2113
+ return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
2114
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2115
+ if (options === void 0) { options = {}; }
2116
+ return __generator(this, function (_a) {
2117
+ localVarPath = "/treatments";
2118
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2119
+ if (configuration) {
2120
+ baseOptions = configuration.baseOptions;
2121
+ }
2122
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2123
+ localVarHeaderParameter = {};
2124
+ localVarQueryParameter = {};
2125
+ if (page !== undefined) {
2126
+ localVarQueryParameter['page'] = page;
2127
+ }
2128
+ if (size !== undefined) {
2129
+ localVarQueryParameter['size'] = size;
2130
+ }
2131
+ localVarHeaderParameter['Accept'] = 'application/json';
2132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2135
+ return [2 /*return*/, {
2136
+ url: (0, common_1.toPathString)(localVarUrlObj),
2137
+ options: localVarRequestOptions,
2138
+ }];
2139
+ });
2140
+ });
2141
+ },
2142
+ /**
2143
+ *
2144
+ * @summary Delete Treatment By Id
2145
+ * @param {number} id
2146
+ * @param {*} [options] Override http request option.
2147
+ * @throws {RequiredError}
2148
+ */
2149
+ treatmentsIdDelete: function (id_1) {
2150
+ var args_1 = [];
2151
+ for (var _i = 1; _i < arguments.length; _i++) {
2152
+ args_1[_i - 1] = arguments[_i];
2153
+ }
2154
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2155
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2156
+ if (options === void 0) { options = {}; }
2157
+ return __generator(this, function (_a) {
2158
+ switch (_a.label) {
2159
+ case 0:
2160
+ // verify required parameter 'id' is not null or undefined
2161
+ (0, common_1.assertParamExists)('treatmentsIdDelete', 'id', id);
2162
+ localVarPath = "/treatments/{id}"
2163
+ .replace('{id}', encodeURIComponent(String(id)));
2164
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2165
+ if (configuration) {
2166
+ baseOptions = configuration.baseOptions;
2167
+ }
2168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
2169
+ localVarHeaderParameter = {};
2170
+ localVarQueryParameter = {};
2171
+ // authentication SecurityScheme required
2172
+ // http bearer authentication required
2173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
2174
+ case 1:
2175
+ // authentication SecurityScheme required
2176
+ // http bearer authentication required
2177
+ _a.sent();
2178
+ localVarHeaderParameter['Accept'] = 'application/json';
2179
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2180
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2181
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2182
+ return [2 /*return*/, {
2183
+ url: (0, common_1.toPathString)(localVarUrlObj),
2184
+ options: localVarRequestOptions,
2185
+ }];
2186
+ }
2187
+ });
2188
+ });
2189
+ },
2190
+ /**
2191
+ *
2192
+ * @summary Find Treatment By Id
2193
+ * @param {number} id
2194
+ * @param {*} [options] Override http request option.
2195
+ * @throws {RequiredError}
2196
+ */
2197
+ treatmentsIdGet: function (id_1) {
2198
+ var args_1 = [];
2199
+ for (var _i = 1; _i < arguments.length; _i++) {
2200
+ args_1[_i - 1] = arguments[_i];
2201
+ }
2202
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2203
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2204
+ if (options === void 0) { options = {}; }
2205
+ return __generator(this, function (_a) {
2206
+ // verify required parameter 'id' is not null or undefined
2207
+ (0, common_1.assertParamExists)('treatmentsIdGet', 'id', id);
2208
+ localVarPath = "/treatments/{id}"
2209
+ .replace('{id}', encodeURIComponent(String(id)));
2210
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2211
+ if (configuration) {
2212
+ baseOptions = configuration.baseOptions;
2213
+ }
2214
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2215
+ localVarHeaderParameter = {};
2216
+ localVarQueryParameter = {};
2217
+ localVarHeaderParameter['Accept'] = 'application/json';
2218
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2219
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2220
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2221
+ return [2 /*return*/, {
2222
+ url: (0, common_1.toPathString)(localVarUrlObj),
2223
+ options: localVarRequestOptions,
2224
+ }];
2225
+ });
2226
+ });
2227
+ },
2228
+ /**
2229
+ *
2230
+ * @summary Update Treatment
2231
+ * @param {number} id
2232
+ * @param {TreatmentUpdateRequest} treatmentUpdateRequest
2233
+ * @param {*} [options] Override http request option.
2234
+ * @throws {RequiredError}
2235
+ */
2236
+ treatmentsIdPut: function (id_1, treatmentUpdateRequest_1) {
2237
+ var args_1 = [];
2238
+ for (var _i = 2; _i < arguments.length; _i++) {
2239
+ args_1[_i - 2] = arguments[_i];
2240
+ }
2241
+ return __awaiter(_this, __spreadArray([id_1, treatmentUpdateRequest_1], args_1, true), void 0, function (id, treatmentUpdateRequest, options) {
2242
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2243
+ if (options === void 0) { options = {}; }
2244
+ return __generator(this, function (_a) {
2245
+ switch (_a.label) {
2246
+ case 0:
2247
+ // verify required parameter 'id' is not null or undefined
2248
+ (0, common_1.assertParamExists)('treatmentsIdPut', 'id', id);
2249
+ // verify required parameter 'treatmentUpdateRequest' is not null or undefined
2250
+ (0, common_1.assertParamExists)('treatmentsIdPut', 'treatmentUpdateRequest', treatmentUpdateRequest);
2251
+ localVarPath = "/treatments/{id}"
2252
+ .replace('{id}', encodeURIComponent(String(id)));
2253
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2254
+ if (configuration) {
2255
+ baseOptions = configuration.baseOptions;
2256
+ }
2257
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2258
+ localVarHeaderParameter = {};
2259
+ localVarQueryParameter = {};
2260
+ // authentication SecurityScheme required
2261
+ // http bearer authentication required
2262
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
2263
+ case 1:
2264
+ // authentication SecurityScheme required
2265
+ // http bearer authentication required
2266
+ _a.sent();
2267
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2268
+ localVarHeaderParameter['Accept'] = 'application/json';
2269
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2270
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2271
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2272
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(treatmentUpdateRequest, localVarRequestOptions, configuration);
2273
+ return [2 /*return*/, {
2274
+ url: (0, common_1.toPathString)(localVarUrlObj),
2275
+ options: localVarRequestOptions,
2276
+ }];
2277
+ }
2278
+ });
2279
+ });
2280
+ },
2281
+ /**
2282
+ *
2283
+ * @summary Create Treatment
2284
+ * @param {TreatmentCreateRequest} treatmentCreateRequest
2285
+ * @param {*} [options] Override http request option.
2286
+ * @throws {RequiredError}
2287
+ */
2288
+ treatmentsPost: function (treatmentCreateRequest_1) {
2289
+ var args_1 = [];
2290
+ for (var _i = 1; _i < arguments.length; _i++) {
2291
+ args_1[_i - 1] = arguments[_i];
2292
+ }
2293
+ return __awaiter(_this, __spreadArray([treatmentCreateRequest_1], args_1, true), void 0, function (treatmentCreateRequest, options) {
2294
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2295
+ if (options === void 0) { options = {}; }
2296
+ return __generator(this, function (_a) {
2297
+ switch (_a.label) {
2298
+ case 0:
2299
+ // verify required parameter 'treatmentCreateRequest' is not null or undefined
2300
+ (0, common_1.assertParamExists)('treatmentsPost', 'treatmentCreateRequest', treatmentCreateRequest);
2301
+ localVarPath = "/treatments";
2302
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2303
+ if (configuration) {
2304
+ baseOptions = configuration.baseOptions;
2305
+ }
2306
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2307
+ localVarHeaderParameter = {};
2308
+ localVarQueryParameter = {};
2309
+ // authentication SecurityScheme required
2310
+ // http bearer authentication required
2311
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
2312
+ case 1:
2313
+ // authentication SecurityScheme required
2314
+ // http bearer authentication required
2315
+ _a.sent();
2316
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2317
+ localVarHeaderParameter['Accept'] = 'application/json';
2318
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2319
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2320
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2321
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(treatmentCreateRequest, localVarRequestOptions, configuration);
2322
+ return [2 /*return*/, {
2323
+ url: (0, common_1.toPathString)(localVarUrlObj),
2324
+ options: localVarRequestOptions,
2325
+ }];
2326
+ }
2327
+ });
2328
+ });
2329
+ },
2330
+ };
2331
+ };
2332
+ exports.TreatmentResourceApiAxiosParamCreator = TreatmentResourceApiAxiosParamCreator;
2333
+ /**
2334
+ * TreatmentResourceApi - functional programming interface
2335
+ */
2336
+ var TreatmentResourceApiFp = function (configuration) {
2337
+ var localVarAxiosParamCreator = (0, exports.TreatmentResourceApiAxiosParamCreator)(configuration);
2338
+ return {
2339
+ /**
2340
+ *
2341
+ * @summary Get Treatments
2342
+ * @param {number} [page]
2343
+ * @param {number} [size]
2344
+ * @param {*} [options] Override http request option.
2345
+ * @throws {RequiredError}
2346
+ */
2347
+ treatmentsGet: function (page, size, options) {
2348
+ return __awaiter(this, void 0, void 0, function () {
2349
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2350
+ var _a, _b, _c;
2351
+ return __generator(this, function (_d) {
2352
+ switch (_d.label) {
2353
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, options)];
2354
+ case 1:
2355
+ localVarAxiosArgs = _d.sent();
2356
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2357
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TreatmentResourceApi.treatmentsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2358
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2359
+ }
2360
+ });
2361
+ });
2362
+ },
2363
+ /**
2364
+ *
2365
+ * @summary Delete Treatment By Id
2366
+ * @param {number} id
2367
+ * @param {*} [options] Override http request option.
2368
+ * @throws {RequiredError}
2369
+ */
2370
+ treatmentsIdDelete: function (id, options) {
2371
+ return __awaiter(this, void 0, void 0, function () {
2372
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2373
+ var _a, _b, _c;
2374
+ return __generator(this, function (_d) {
2375
+ switch (_d.label) {
2376
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsIdDelete(id, options)];
2377
+ case 1:
2378
+ localVarAxiosArgs = _d.sent();
2379
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2380
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TreatmentResourceApi.treatmentsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2381
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2382
+ }
2383
+ });
2384
+ });
2385
+ },
2386
+ /**
2387
+ *
2388
+ * @summary Find Treatment By Id
2389
+ * @param {number} id
2390
+ * @param {*} [options] Override http request option.
2391
+ * @throws {RequiredError}
2392
+ */
2393
+ treatmentsIdGet: function (id, options) {
2394
+ return __awaiter(this, void 0, void 0, function () {
2395
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2396
+ var _a, _b, _c;
2397
+ return __generator(this, function (_d) {
2398
+ switch (_d.label) {
2399
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsIdGet(id, options)];
2400
+ case 1:
2401
+ localVarAxiosArgs = _d.sent();
2402
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2403
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TreatmentResourceApi.treatmentsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2404
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2405
+ }
2406
+ });
2407
+ });
2408
+ },
2409
+ /**
2410
+ *
2411
+ * @summary Update Treatment
2412
+ * @param {number} id
2413
+ * @param {TreatmentUpdateRequest} treatmentUpdateRequest
2414
+ * @param {*} [options] Override http request option.
2415
+ * @throws {RequiredError}
2416
+ */
2417
+ treatmentsIdPut: function (id, treatmentUpdateRequest, options) {
2418
+ return __awaiter(this, void 0, void 0, function () {
2419
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2420
+ var _a, _b, _c;
2421
+ return __generator(this, function (_d) {
2422
+ switch (_d.label) {
2423
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsIdPut(id, treatmentUpdateRequest, options)];
2424
+ case 1:
2425
+ localVarAxiosArgs = _d.sent();
2426
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2427
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TreatmentResourceApi.treatmentsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2428
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2429
+ }
2430
+ });
2431
+ });
2432
+ },
2433
+ /**
2434
+ *
2435
+ * @summary Create Treatment
2436
+ * @param {TreatmentCreateRequest} treatmentCreateRequest
2437
+ * @param {*} [options] Override http request option.
2438
+ * @throws {RequiredError}
2439
+ */
2440
+ treatmentsPost: function (treatmentCreateRequest, options) {
2441
+ return __awaiter(this, void 0, void 0, function () {
2442
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2443
+ var _a, _b, _c;
2444
+ return __generator(this, function (_d) {
2445
+ switch (_d.label) {
2446
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsPost(treatmentCreateRequest, options)];
2447
+ case 1:
2448
+ localVarAxiosArgs = _d.sent();
2449
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2450
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['TreatmentResourceApi.treatmentsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2451
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2452
+ }
2453
+ });
2454
+ });
2455
+ },
2456
+ };
2457
+ };
2458
+ exports.TreatmentResourceApiFp = TreatmentResourceApiFp;
2459
+ /**
2460
+ * TreatmentResourceApi - factory interface
2461
+ */
2462
+ var TreatmentResourceApiFactory = function (configuration, basePath, axios) {
2463
+ var localVarFp = (0, exports.TreatmentResourceApiFp)(configuration);
2464
+ return {
2465
+ /**
2466
+ *
2467
+ * @summary Get Treatments
2468
+ * @param {TreatmentResourceApiTreatmentsGetRequest} requestParameters Request parameters.
2469
+ * @param {*} [options] Override http request option.
2470
+ * @throws {RequiredError}
2471
+ */
2472
+ treatmentsGet: function (requestParameters, options) {
2473
+ if (requestParameters === void 0) { requestParameters = {}; }
2474
+ return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
2475
+ },
2476
+ /**
2477
+ *
2478
+ * @summary Delete Treatment By Id
2479
+ * @param {TreatmentResourceApiTreatmentsIdDeleteRequest} requestParameters Request parameters.
2480
+ * @param {*} [options] Override http request option.
2481
+ * @throws {RequiredError}
2482
+ */
2483
+ treatmentsIdDelete: function (requestParameters, options) {
2484
+ return localVarFp.treatmentsIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
2485
+ },
2486
+ /**
2487
+ *
2488
+ * @summary Find Treatment By Id
2489
+ * @param {TreatmentResourceApiTreatmentsIdGetRequest} requestParameters Request parameters.
2490
+ * @param {*} [options] Override http request option.
2491
+ * @throws {RequiredError}
2492
+ */
2493
+ treatmentsIdGet: function (requestParameters, options) {
2494
+ return localVarFp.treatmentsIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
2495
+ },
2496
+ /**
2497
+ *
2498
+ * @summary Update Treatment
2499
+ * @param {TreatmentResourceApiTreatmentsIdPutRequest} requestParameters Request parameters.
2500
+ * @param {*} [options] Override http request option.
2501
+ * @throws {RequiredError}
2502
+ */
2503
+ treatmentsIdPut: function (requestParameters, options) {
2504
+ return localVarFp.treatmentsIdPut(requestParameters.id, requestParameters.treatmentUpdateRequest, options).then(function (request) { return request(axios, basePath); });
2505
+ },
2506
+ /**
2507
+ *
2508
+ * @summary Create Treatment
2509
+ * @param {TreatmentResourceApiTreatmentsPostRequest} requestParameters Request parameters.
2510
+ * @param {*} [options] Override http request option.
2511
+ * @throws {RequiredError}
2512
+ */
2513
+ treatmentsPost: function (requestParameters, options) {
2514
+ return localVarFp.treatmentsPost(requestParameters.treatmentCreateRequest, options).then(function (request) { return request(axios, basePath); });
2515
+ },
2516
+ };
2517
+ };
2518
+ exports.TreatmentResourceApiFactory = TreatmentResourceApiFactory;
2519
+ /**
2520
+ * TreatmentResourceApi - object-oriented interface
2521
+ */
2522
+ var TreatmentResourceApi = /** @class */ (function (_super) {
2523
+ __extends(TreatmentResourceApi, _super);
2524
+ function TreatmentResourceApi() {
2525
+ return _super !== null && _super.apply(this, arguments) || this;
2526
+ }
2527
+ /**
2528
+ *
2529
+ * @summary Get Treatments
2530
+ * @param {TreatmentResourceApiTreatmentsGetRequest} requestParameters Request parameters.
2531
+ * @param {*} [options] Override http request option.
2532
+ * @throws {RequiredError}
2533
+ */
2534
+ TreatmentResourceApi.prototype.treatmentsGet = function (requestParameters, options) {
2535
+ var _this = this;
2536
+ if (requestParameters === void 0) { requestParameters = {}; }
2537
+ return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
2538
+ };
2539
+ /**
2540
+ *
2541
+ * @summary Delete Treatment By Id
2542
+ * @param {TreatmentResourceApiTreatmentsIdDeleteRequest} requestParameters Request parameters.
2543
+ * @param {*} [options] Override http request option.
2544
+ * @throws {RequiredError}
2545
+ */
2546
+ TreatmentResourceApi.prototype.treatmentsIdDelete = function (requestParameters, options) {
2547
+ var _this = this;
2548
+ return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2549
+ };
2550
+ /**
2551
+ *
2552
+ * @summary Find Treatment By Id
2553
+ * @param {TreatmentResourceApiTreatmentsIdGetRequest} requestParameters Request parameters.
2554
+ * @param {*} [options] Override http request option.
2555
+ * @throws {RequiredError}
2556
+ */
2557
+ TreatmentResourceApi.prototype.treatmentsIdGet = function (requestParameters, options) {
2558
+ var _this = this;
2559
+ return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2560
+ };
2561
+ /**
2562
+ *
2563
+ * @summary Update Treatment
2564
+ * @param {TreatmentResourceApiTreatmentsIdPutRequest} requestParameters Request parameters.
2565
+ * @param {*} [options] Override http request option.
2566
+ * @throws {RequiredError}
2567
+ */
2568
+ TreatmentResourceApi.prototype.treatmentsIdPut = function (requestParameters, options) {
2569
+ var _this = this;
2570
+ return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsIdPut(requestParameters.id, requestParameters.treatmentUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2571
+ };
2572
+ /**
2573
+ *
2574
+ * @summary Create Treatment
2575
+ * @param {TreatmentResourceApiTreatmentsPostRequest} requestParameters Request parameters.
2576
+ * @param {*} [options] Override http request option.
2577
+ * @throws {RequiredError}
2578
+ */
2579
+ TreatmentResourceApi.prototype.treatmentsPost = function (requestParameters, options) {
2580
+ var _this = this;
2581
+ return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsPost(requestParameters.treatmentCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2582
+ };
2583
+ return TreatmentResourceApi;
2584
+ }(base_1.BaseAPI));
2585
+ exports.TreatmentResourceApi = TreatmentResourceApi;
2586
+ /**
2587
+ * UserResourceApi - axios parameter creator
2588
+ */
2589
+ var UserResourceApiAxiosParamCreator = function (configuration) {
2590
+ var _this = this;
2591
+ return {
2592
+ /**
2593
+ *
2594
+ * @summary Find User By Id
2595
+ * @param {number} id
2596
+ * @param {*} [options] Override http request option.
2597
+ * @throws {RequiredError}
2598
+ */
2599
+ usersIdGet: function (id_1) {
2600
+ var args_1 = [];
2601
+ for (var _i = 1; _i < arguments.length; _i++) {
2602
+ args_1[_i - 1] = arguments[_i];
2603
+ }
2604
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2605
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2606
+ if (options === void 0) { options = {}; }
2607
+ return __generator(this, function (_a) {
2608
+ switch (_a.label) {
2609
+ case 0:
2610
+ // verify required parameter 'id' is not null or undefined
2611
+ (0, common_1.assertParamExists)('usersIdGet', 'id', id);
2612
+ localVarPath = "/users/{id}"
2613
+ .replace('{id}', encodeURIComponent(String(id)));
2614
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2615
+ if (configuration) {
2616
+ baseOptions = configuration.baseOptions;
2617
+ }
2618
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2619
+ localVarHeaderParameter = {};
2620
+ localVarQueryParameter = {};
2621
+ // authentication SecurityScheme required
2622
+ // http bearer authentication required
2623
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
2624
+ case 1:
2625
+ // authentication SecurityScheme required
2626
+ // http bearer authentication required
2627
+ _a.sent();
2628
+ localVarHeaderParameter['Accept'] = 'application/json';
2629
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2630
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2631
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2632
+ return [2 /*return*/, {
2633
+ url: (0, common_1.toPathString)(localVarUrlObj),
2634
+ options: localVarRequestOptions,
2635
+ }];
2636
+ }
2637
+ });
2638
+ });
2639
+ },
2640
+ /**
2641
+ *
2642
+ * @summary Create User
2643
+ * @param {UserCreateRequest} userCreateRequest
2644
+ * @param {*} [options] Override http request option.
2645
+ * @throws {RequiredError}
2646
+ */
2647
+ usersPost: function (userCreateRequest_1) {
2648
+ var args_1 = [];
2649
+ for (var _i = 1; _i < arguments.length; _i++) {
2650
+ args_1[_i - 1] = arguments[_i];
2651
+ }
2652
+ return __awaiter(_this, __spreadArray([userCreateRequest_1], args_1, true), void 0, function (userCreateRequest, options) {
2653
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2654
+ if (options === void 0) { options = {}; }
2655
+ return __generator(this, function (_a) {
2656
+ // verify required parameter 'userCreateRequest' is not null or undefined
2657
+ (0, common_1.assertParamExists)('usersPost', 'userCreateRequest', userCreateRequest);
2658
+ localVarPath = "/users";
2659
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2660
+ if (configuration) {
2661
+ baseOptions = configuration.baseOptions;
2662
+ }
2663
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
2664
+ localVarHeaderParameter = {};
2665
+ localVarQueryParameter = {};
2666
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2667
+ localVarHeaderParameter['Accept'] = 'application/json';
2668
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2669
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2670
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2671
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userCreateRequest, localVarRequestOptions, configuration);
2672
+ return [2 /*return*/, {
2673
+ url: (0, common_1.toPathString)(localVarUrlObj),
2674
+ options: localVarRequestOptions,
2675
+ }];
2676
+ });
2677
+ });
2678
+ },
2679
+ };
2680
+ };
2681
+ exports.UserResourceApiAxiosParamCreator = UserResourceApiAxiosParamCreator;
2682
+ /**
2683
+ * UserResourceApi - functional programming interface
2684
+ */
2685
+ var UserResourceApiFp = function (configuration) {
2686
+ var localVarAxiosParamCreator = (0, exports.UserResourceApiAxiosParamCreator)(configuration);
2687
+ return {
2688
+ /**
2689
+ *
2690
+ * @summary Find User By Id
2691
+ * @param {number} id
2692
+ * @param {*} [options] Override http request option.
2693
+ * @throws {RequiredError}
2694
+ */
2695
+ usersIdGet: function (id, options) {
2696
+ return __awaiter(this, void 0, void 0, function () {
2697
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2698
+ var _a, _b, _c;
2699
+ return __generator(this, function (_d) {
2700
+ switch (_d.label) {
2701
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.usersIdGet(id, options)];
2702
+ case 1:
2703
+ localVarAxiosArgs = _d.sent();
2704
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2705
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserResourceApi.usersIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2706
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2707
+ }
2708
+ });
2709
+ });
2710
+ },
2711
+ /**
2712
+ *
2713
+ * @summary Create User
2714
+ * @param {UserCreateRequest} userCreateRequest
2715
+ * @param {*} [options] Override http request option.
2716
+ * @throws {RequiredError}
2717
+ */
2718
+ usersPost: function (userCreateRequest, options) {
2719
+ return __awaiter(this, void 0, void 0, function () {
2720
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2721
+ var _a, _b, _c;
2722
+ return __generator(this, function (_d) {
2723
+ switch (_d.label) {
2724
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.usersPost(userCreateRequest, options)];
2725
+ case 1:
2726
+ localVarAxiosArgs = _d.sent();
2727
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2728
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UserResourceApi.usersPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2729
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2730
+ }
2731
+ });
2732
+ });
2733
+ },
2734
+ };
2735
+ };
2736
+ exports.UserResourceApiFp = UserResourceApiFp;
2737
+ /**
2738
+ * UserResourceApi - factory interface
2739
+ */
2740
+ var UserResourceApiFactory = function (configuration, basePath, axios) {
2741
+ var localVarFp = (0, exports.UserResourceApiFp)(configuration);
2742
+ return {
2743
+ /**
2744
+ *
2745
+ * @summary Find User By Id
2746
+ * @param {UserResourceApiUsersIdGetRequest} requestParameters Request parameters.
2747
+ * @param {*} [options] Override http request option.
2748
+ * @throws {RequiredError}
2749
+ */
2750
+ usersIdGet: function (requestParameters, options) {
2751
+ return localVarFp.usersIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
2752
+ },
2753
+ /**
2754
+ *
2755
+ * @summary Create User
2756
+ * @param {UserResourceApiUsersPostRequest} requestParameters Request parameters.
2757
+ * @param {*} [options] Override http request option.
2758
+ * @throws {RequiredError}
2759
+ */
2760
+ usersPost: function (requestParameters, options) {
2761
+ return localVarFp.usersPost(requestParameters.userCreateRequest, options).then(function (request) { return request(axios, basePath); });
2762
+ },
2763
+ };
2764
+ };
2765
+ exports.UserResourceApiFactory = UserResourceApiFactory;
2766
+ /**
2767
+ * UserResourceApi - object-oriented interface
2768
+ */
2769
+ var UserResourceApi = /** @class */ (function (_super) {
2770
+ __extends(UserResourceApi, _super);
2771
+ function UserResourceApi() {
2772
+ return _super !== null && _super.apply(this, arguments) || this;
2773
+ }
2774
+ /**
2775
+ *
2776
+ * @summary Find User By Id
2777
+ * @param {UserResourceApiUsersIdGetRequest} requestParameters Request parameters.
2778
+ * @param {*} [options] Override http request option.
2779
+ * @throws {RequiredError}
2780
+ */
2781
+ UserResourceApi.prototype.usersIdGet = function (requestParameters, options) {
2782
+ var _this = this;
2783
+ return (0, exports.UserResourceApiFp)(this.configuration).usersIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
2784
+ };
2785
+ /**
2786
+ *
2787
+ * @summary Create User
2788
+ * @param {UserResourceApiUsersPostRequest} requestParameters Request parameters.
2789
+ * @param {*} [options] Override http request option.
2790
+ * @throws {RequiredError}
2791
+ */
2792
+ UserResourceApi.prototype.usersPost = function (requestParameters, options) {
2793
+ var _this = this;
2794
+ return (0, exports.UserResourceApiFp)(this.configuration).usersPost(requestParameters.userCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
2795
+ };
2796
+ return UserResourceApi;
2797
+ }(base_1.BaseAPI));
2798
+ exports.UserResourceApi = UserResourceApi;
2799
+ /**
2800
+ * WorkScheduleResourceApi - axios parameter creator
2801
+ */
2802
+ var WorkScheduleResourceApiAxiosParamCreator = function (configuration) {
2803
+ var _this = this;
2804
+ return {
2805
+ /**
2806
+ *
2807
+ * @summary Get Work Schedules
2808
+ * @param {number} [page]
2809
+ * @param {number} [size]
2810
+ * @param {*} [options] Override http request option.
2811
+ * @throws {RequiredError}
2812
+ */
2813
+ workSchedulesGet: function (page_1, size_1) {
2814
+ var args_1 = [];
2815
+ for (var _i = 2; _i < arguments.length; _i++) {
2816
+ args_1[_i - 2] = arguments[_i];
2817
+ }
2818
+ return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
2819
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2820
+ if (options === void 0) { options = {}; }
2821
+ return __generator(this, function (_a) {
2822
+ localVarPath = "/work-schedules";
2823
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2824
+ if (configuration) {
2825
+ baseOptions = configuration.baseOptions;
2826
+ }
2827
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2828
+ localVarHeaderParameter = {};
2829
+ localVarQueryParameter = {};
2830
+ if (page !== undefined) {
2831
+ localVarQueryParameter['page'] = page;
2832
+ }
2833
+ if (size !== undefined) {
2834
+ localVarQueryParameter['size'] = size;
2835
+ }
2836
+ localVarHeaderParameter['Accept'] = 'application/json';
2837
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2838
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2839
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2840
+ return [2 /*return*/, {
2841
+ url: (0, common_1.toPathString)(localVarUrlObj),
2842
+ options: localVarRequestOptions,
2843
+ }];
2844
+ });
2845
+ });
2846
+ },
2847
+ /**
2848
+ *
2849
+ * @summary Delete Work Schedule By Id
2850
+ * @param {number} id
2851
+ * @param {*} [options] Override http request option.
2852
+ * @throws {RequiredError}
2853
+ */
2854
+ workSchedulesIdDelete: function (id_1) {
2855
+ var args_1 = [];
2856
+ for (var _i = 1; _i < arguments.length; _i++) {
2857
+ args_1[_i - 1] = arguments[_i];
2858
+ }
2859
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2860
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2861
+ if (options === void 0) { options = {}; }
2862
+ return __generator(this, function (_a) {
2863
+ switch (_a.label) {
2864
+ case 0:
2865
+ // verify required parameter 'id' is not null or undefined
2866
+ (0, common_1.assertParamExists)('workSchedulesIdDelete', 'id', id);
2867
+ localVarPath = "/work-schedules/{id}"
2868
+ .replace('{id}', encodeURIComponent(String(id)));
2869
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2870
+ if (configuration) {
2871
+ baseOptions = configuration.baseOptions;
2872
+ }
2873
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
2874
+ localVarHeaderParameter = {};
2875
+ localVarQueryParameter = {};
2876
+ // authentication SecurityScheme required
2877
+ // http bearer authentication required
2878
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
2879
+ case 1:
2880
+ // authentication SecurityScheme required
2881
+ // http bearer authentication required
2882
+ _a.sent();
2883
+ localVarHeaderParameter['Accept'] = 'application/json';
2884
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2885
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2886
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2887
+ return [2 /*return*/, {
2888
+ url: (0, common_1.toPathString)(localVarUrlObj),
2889
+ options: localVarRequestOptions,
2890
+ }];
2891
+ }
2892
+ });
2893
+ });
2894
+ },
2895
+ /**
2896
+ *
2897
+ * @summary Find Work Schedule By Id
2898
+ * @param {number} id
2899
+ * @param {*} [options] Override http request option.
2900
+ * @throws {RequiredError}
2901
+ */
2902
+ workSchedulesIdGet: function (id_1) {
2903
+ var args_1 = [];
2904
+ for (var _i = 1; _i < arguments.length; _i++) {
2905
+ args_1[_i - 1] = arguments[_i];
2906
+ }
2907
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
2908
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2909
+ if (options === void 0) { options = {}; }
2910
+ return __generator(this, function (_a) {
2911
+ // verify required parameter 'id' is not null or undefined
2912
+ (0, common_1.assertParamExists)('workSchedulesIdGet', 'id', id);
2913
+ localVarPath = "/work-schedules/{id}"
2914
+ .replace('{id}', encodeURIComponent(String(id)));
2915
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2916
+ if (configuration) {
2917
+ baseOptions = configuration.baseOptions;
2918
+ }
2919
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
2920
+ localVarHeaderParameter = {};
2921
+ localVarQueryParameter = {};
2922
+ localVarHeaderParameter['Accept'] = 'application/json';
2923
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2924
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2925
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2926
+ return [2 /*return*/, {
2927
+ url: (0, common_1.toPathString)(localVarUrlObj),
2928
+ options: localVarRequestOptions,
2929
+ }];
2930
+ });
2931
+ });
2932
+ },
2933
+ /**
2934
+ *
2935
+ * @summary Update Work Schedule
2936
+ * @param {number} id
2937
+ * @param {WorkScheduleUpdateRequest} workScheduleUpdateRequest
2938
+ * @param {*} [options] Override http request option.
2939
+ * @throws {RequiredError}
2940
+ */
2941
+ workSchedulesIdPut: function (id_1, workScheduleUpdateRequest_1) {
2942
+ var args_1 = [];
2943
+ for (var _i = 2; _i < arguments.length; _i++) {
2944
+ args_1[_i - 2] = arguments[_i];
2945
+ }
2946
+ return __awaiter(_this, __spreadArray([id_1, workScheduleUpdateRequest_1], args_1, true), void 0, function (id, workScheduleUpdateRequest, options) {
2947
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2948
+ if (options === void 0) { options = {}; }
2949
+ return __generator(this, function (_a) {
2950
+ switch (_a.label) {
2951
+ case 0:
2952
+ // verify required parameter 'id' is not null or undefined
2953
+ (0, common_1.assertParamExists)('workSchedulesIdPut', 'id', id);
2954
+ // verify required parameter 'workScheduleUpdateRequest' is not null or undefined
2955
+ (0, common_1.assertParamExists)('workSchedulesIdPut', 'workScheduleUpdateRequest', workScheduleUpdateRequest);
2956
+ localVarPath = "/work-schedules/{id}"
2957
+ .replace('{id}', encodeURIComponent(String(id)));
2958
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2959
+ if (configuration) {
2960
+ baseOptions = configuration.baseOptions;
2961
+ }
2962
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2963
+ localVarHeaderParameter = {};
2964
+ localVarQueryParameter = {};
2965
+ // authentication SecurityScheme required
2966
+ // http bearer authentication required
2967
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
2968
+ case 1:
2969
+ // authentication SecurityScheme required
2970
+ // http bearer authentication required
2971
+ _a.sent();
2972
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2973
+ localVarHeaderParameter['Accept'] = 'application/json';
2974
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2975
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2976
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2977
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workScheduleUpdateRequest, localVarRequestOptions, configuration);
2978
+ return [2 /*return*/, {
2979
+ url: (0, common_1.toPathString)(localVarUrlObj),
2980
+ options: localVarRequestOptions,
2981
+ }];
2982
+ }
2983
+ });
2984
+ });
2985
+ },
2986
+ /**
2987
+ *
2988
+ * @summary Create Work Schedule
2989
+ * @param {WorkScheduleCreateRequest} workScheduleCreateRequest
2990
+ * @param {*} [options] Override http request option.
2991
+ * @throws {RequiredError}
2992
+ */
2993
+ workSchedulesPost: function (workScheduleCreateRequest_1) {
2994
+ var args_1 = [];
2995
+ for (var _i = 1; _i < arguments.length; _i++) {
2996
+ args_1[_i - 1] = arguments[_i];
2997
+ }
2998
+ return __awaiter(_this, __spreadArray([workScheduleCreateRequest_1], args_1, true), void 0, function (workScheduleCreateRequest, options) {
2999
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3000
+ if (options === void 0) { options = {}; }
3001
+ return __generator(this, function (_a) {
3002
+ switch (_a.label) {
3003
+ case 0:
3004
+ // verify required parameter 'workScheduleCreateRequest' is not null or undefined
3005
+ (0, common_1.assertParamExists)('workSchedulesPost', 'workScheduleCreateRequest', workScheduleCreateRequest);
3006
+ localVarPath = "/work-schedules";
3007
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3008
+ if (configuration) {
3009
+ baseOptions = configuration.baseOptions;
3010
+ }
3011
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3012
+ localVarHeaderParameter = {};
3013
+ localVarQueryParameter = {};
3014
+ // authentication SecurityScheme required
3015
+ // http bearer authentication required
3016
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
3017
+ case 1:
3018
+ // authentication SecurityScheme required
3019
+ // http bearer authentication required
3020
+ _a.sent();
3021
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3022
+ localVarHeaderParameter['Accept'] = 'application/json';
3023
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3024
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3025
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3026
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workScheduleCreateRequest, localVarRequestOptions, configuration);
3027
+ return [2 /*return*/, {
3028
+ url: (0, common_1.toPathString)(localVarUrlObj),
3029
+ options: localVarRequestOptions,
3030
+ }];
3031
+ }
3032
+ });
3033
+ });
3034
+ },
3035
+ };
3036
+ };
3037
+ exports.WorkScheduleResourceApiAxiosParamCreator = WorkScheduleResourceApiAxiosParamCreator;
3038
+ /**
3039
+ * WorkScheduleResourceApi - functional programming interface
3040
+ */
3041
+ var WorkScheduleResourceApiFp = function (configuration) {
3042
+ var localVarAxiosParamCreator = (0, exports.WorkScheduleResourceApiAxiosParamCreator)(configuration);
3043
+ return {
3044
+ /**
3045
+ *
3046
+ * @summary Get Work Schedules
3047
+ * @param {number} [page]
3048
+ * @param {number} [size]
3049
+ * @param {*} [options] Override http request option.
3050
+ * @throws {RequiredError}
3051
+ */
3052
+ workSchedulesGet: function (page, size, options) {
3053
+ return __awaiter(this, void 0, void 0, function () {
3054
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3055
+ var _a, _b, _c;
3056
+ return __generator(this, function (_d) {
3057
+ switch (_d.label) {
3058
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesGet(page, size, options)];
3059
+ case 1:
3060
+ localVarAxiosArgs = _d.sent();
3061
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3062
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3063
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3064
+ }
3065
+ });
3066
+ });
3067
+ },
3068
+ /**
3069
+ *
3070
+ * @summary Delete Work Schedule By Id
3071
+ * @param {number} id
3072
+ * @param {*} [options] Override http request option.
3073
+ * @throws {RequiredError}
3074
+ */
3075
+ workSchedulesIdDelete: function (id, options) {
3076
+ return __awaiter(this, void 0, void 0, function () {
3077
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3078
+ var _a, _b, _c;
3079
+ return __generator(this, function (_d) {
3080
+ switch (_d.label) {
3081
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesIdDelete(id, options)];
3082
+ case 1:
3083
+ localVarAxiosArgs = _d.sent();
3084
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3085
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3086
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3087
+ }
3088
+ });
3089
+ });
3090
+ },
3091
+ /**
3092
+ *
3093
+ * @summary Find Work Schedule By Id
3094
+ * @param {number} id
3095
+ * @param {*} [options] Override http request option.
3096
+ * @throws {RequiredError}
3097
+ */
3098
+ workSchedulesIdGet: function (id, options) {
3099
+ return __awaiter(this, void 0, void 0, function () {
3100
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3101
+ var _a, _b, _c;
3102
+ return __generator(this, function (_d) {
3103
+ switch (_d.label) {
3104
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesIdGet(id, options)];
3105
+ case 1:
3106
+ localVarAxiosArgs = _d.sent();
3107
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3108
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3109
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3110
+ }
3111
+ });
3112
+ });
3113
+ },
3114
+ /**
3115
+ *
3116
+ * @summary Update Work Schedule
3117
+ * @param {number} id
3118
+ * @param {WorkScheduleUpdateRequest} workScheduleUpdateRequest
3119
+ * @param {*} [options] Override http request option.
3120
+ * @throws {RequiredError}
3121
+ */
3122
+ workSchedulesIdPut: function (id, workScheduleUpdateRequest, options) {
3123
+ return __awaiter(this, void 0, void 0, function () {
3124
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3125
+ var _a, _b, _c;
3126
+ return __generator(this, function (_d) {
3127
+ switch (_d.label) {
3128
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesIdPut(id, workScheduleUpdateRequest, options)];
3129
+ case 1:
3130
+ localVarAxiosArgs = _d.sent();
3131
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3132
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3133
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3134
+ }
3135
+ });
3136
+ });
3137
+ },
3138
+ /**
3139
+ *
3140
+ * @summary Create Work Schedule
3141
+ * @param {WorkScheduleCreateRequest} workScheduleCreateRequest
3142
+ * @param {*} [options] Override http request option.
3143
+ * @throws {RequiredError}
3144
+ */
3145
+ workSchedulesPost: function (workScheduleCreateRequest, options) {
3146
+ return __awaiter(this, void 0, void 0, function () {
3147
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
3148
+ var _a, _b, _c;
3149
+ return __generator(this, function (_d) {
3150
+ switch (_d.label) {
3151
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesPost(workScheduleCreateRequest, options)];
3152
+ case 1:
3153
+ localVarAxiosArgs = _d.sent();
3154
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3155
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3156
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
3157
+ }
3158
+ });
3159
+ });
3160
+ },
3161
+ };
3162
+ };
3163
+ exports.WorkScheduleResourceApiFp = WorkScheduleResourceApiFp;
3164
+ /**
3165
+ * WorkScheduleResourceApi - factory interface
3166
+ */
3167
+ var WorkScheduleResourceApiFactory = function (configuration, basePath, axios) {
3168
+ var localVarFp = (0, exports.WorkScheduleResourceApiFp)(configuration);
3169
+ return {
3170
+ /**
3171
+ *
3172
+ * @summary Get Work Schedules
3173
+ * @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
3174
+ * @param {*} [options] Override http request option.
3175
+ * @throws {RequiredError}
3176
+ */
3177
+ workSchedulesGet: function (requestParameters, options) {
3178
+ if (requestParameters === void 0) { requestParameters = {}; }
3179
+ return localVarFp.workSchedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
3180
+ },
3181
+ /**
3182
+ *
3183
+ * @summary Delete Work Schedule By Id
3184
+ * @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
3185
+ * @param {*} [options] Override http request option.
3186
+ * @throws {RequiredError}
3187
+ */
3188
+ workSchedulesIdDelete: function (requestParameters, options) {
3189
+ return localVarFp.workSchedulesIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
3190
+ },
3191
+ /**
3192
+ *
3193
+ * @summary Find Work Schedule By Id
3194
+ * @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
3195
+ * @param {*} [options] Override http request option.
3196
+ * @throws {RequiredError}
3197
+ */
3198
+ workSchedulesIdGet: function (requestParameters, options) {
3199
+ return localVarFp.workSchedulesIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
3200
+ },
3201
+ /**
3202
+ *
3203
+ * @summary Update Work Schedule
3204
+ * @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
3205
+ * @param {*} [options] Override http request option.
3206
+ * @throws {RequiredError}
3207
+ */
3208
+ workSchedulesIdPut: function (requestParameters, options) {
3209
+ return localVarFp.workSchedulesIdPut(requestParameters.id, requestParameters.workScheduleUpdateRequest, options).then(function (request) { return request(axios, basePath); });
3210
+ },
3211
+ /**
3212
+ *
3213
+ * @summary Create Work Schedule
3214
+ * @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
3215
+ * @param {*} [options] Override http request option.
3216
+ * @throws {RequiredError}
3217
+ */
3218
+ workSchedulesPost: function (requestParameters, options) {
3219
+ return localVarFp.workSchedulesPost(requestParameters.workScheduleCreateRequest, options).then(function (request) { return request(axios, basePath); });
3220
+ },
3221
+ };
3222
+ };
3223
+ exports.WorkScheduleResourceApiFactory = WorkScheduleResourceApiFactory;
3224
+ /**
3225
+ * WorkScheduleResourceApi - object-oriented interface
3226
+ */
3227
+ var WorkScheduleResourceApi = /** @class */ (function (_super) {
3228
+ __extends(WorkScheduleResourceApi, _super);
3229
+ function WorkScheduleResourceApi() {
3230
+ return _super !== null && _super.apply(this, arguments) || this;
3231
+ }
3232
+ /**
3233
+ *
3234
+ * @summary Get Work Schedules
3235
+ * @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
3236
+ * @param {*} [options] Override http request option.
3237
+ * @throws {RequiredError}
3238
+ */
3239
+ WorkScheduleResourceApi.prototype.workSchedulesGet = function (requestParameters, options) {
3240
+ var _this = this;
3241
+ if (requestParameters === void 0) { requestParameters = {}; }
3242
+ return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
3243
+ };
3244
+ /**
3245
+ *
3246
+ * @summary Delete Work Schedule By Id
3247
+ * @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
3248
+ * @param {*} [options] Override http request option.
3249
+ * @throws {RequiredError}
3250
+ */
3251
+ WorkScheduleResourceApi.prototype.workSchedulesIdDelete = function (requestParameters, options) {
3252
+ var _this = this;
3253
+ return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3254
+ };
3255
+ /**
3256
+ *
3257
+ * @summary Find Work Schedule By Id
3258
+ * @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
3259
+ * @param {*} [options] Override http request option.
3260
+ * @throws {RequiredError}
3261
+ */
3262
+ WorkScheduleResourceApi.prototype.workSchedulesIdGet = function (requestParameters, options) {
3263
+ var _this = this;
3264
+ return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
3265
+ };
3266
+ /**
3267
+ *
3268
+ * @summary Update Work Schedule
3269
+ * @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
3270
+ * @param {*} [options] Override http request option.
3271
+ * @throws {RequiredError}
3272
+ */
3273
+ WorkScheduleResourceApi.prototype.workSchedulesIdPut = function (requestParameters, options) {
3274
+ var _this = this;
3275
+ return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesIdPut(requestParameters.id, requestParameters.workScheduleUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3276
+ };
3277
+ /**
3278
+ *
3279
+ * @summary Create Work Schedule
3280
+ * @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ */
3284
+ WorkScheduleResourceApi.prototype.workSchedulesPost = function (requestParameters, options) {
3285
+ var _this = this;
3286
+ return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesPost(requestParameters.workScheduleCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
3287
+ };
3288
+ return WorkScheduleResourceApi;
3289
+ }(base_1.BaseAPI));
3290
+ exports.WorkScheduleResourceApi = WorkScheduleResourceApi;