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