@gewis/grooster-backend-ts 1.5.1 → 1.5.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.
package/dist/api.js CHANGED
@@ -11,12 +11,12 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import globalAxios from "axios";
14
+ import globalAxios from 'axios';
15
15
  // Some imports not used depending on template conditions
16
16
  // @ts-ignore
17
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from "./common";
17
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
18
18
  // @ts-ignore
19
- import { BASE_PATH, BaseAPI, operationServerMap, } from "./base";
19
+ import { BASE_PATH, BaseAPI, operationServerMap } from './base';
20
20
  /**
21
21
  * AuthApi - axios parameter creator
22
22
  * @export
@@ -33,9 +33,9 @@ export const AuthApiAxiosParamCreator = function (configuration) {
33
33
  */
34
34
  authCallbackGet: async (state, code, options = {}) => {
35
35
  // verify required parameter 'state' is not null or undefined
36
- assertParamExists("authCallbackGet", "state", state);
36
+ assertParamExists('authCallbackGet', 'state', state);
37
37
  // verify required parameter 'code' is not null or undefined
38
- assertParamExists("authCallbackGet", "code", code);
38
+ assertParamExists('authCallbackGet', 'code', code);
39
39
  const localVarPath = `/auth/callback`;
40
40
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
41
41
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -43,26 +43,18 @@ export const AuthApiAxiosParamCreator = function (configuration) {
43
43
  if (configuration) {
44
44
  baseOptions = configuration.baseOptions;
45
45
  }
46
- const localVarRequestOptions = {
47
- method: "GET",
48
- ...baseOptions,
49
- ...options,
50
- };
46
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
51
47
  const localVarHeaderParameter = {};
52
48
  const localVarQueryParameter = {};
53
49
  if (state !== undefined) {
54
- localVarQueryParameter["state"] = state;
50
+ localVarQueryParameter['state'] = state;
55
51
  }
56
52
  if (code !== undefined) {
57
- localVarQueryParameter["code"] = code;
53
+ localVarQueryParameter['code'] = code;
58
54
  }
59
55
  setSearchParams(localVarUrlObj, localVarQueryParameter);
60
56
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
61
- localVarRequestOptions.headers = {
62
- ...localVarHeaderParameter,
63
- ...headersFromBaseOptions,
64
- ...options.headers,
65
- };
57
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
66
58
  return {
67
59
  url: toPathString(localVarUrlObj),
68
60
  options: localVarRequestOptions,
@@ -77,7 +69,7 @@ export const AuthApiAxiosParamCreator = function (configuration) {
77
69
  */
78
70
  authRedirectGet: async (state, options = {}) => {
79
71
  // verify required parameter 'state' is not null or undefined
80
- assertParamExists("authRedirectGet", "state", state);
72
+ assertParamExists('authRedirectGet', 'state', state);
81
73
  const localVarPath = `/auth/redirect`;
82
74
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
83
75
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -85,23 +77,15 @@ export const AuthApiAxiosParamCreator = function (configuration) {
85
77
  if (configuration) {
86
78
  baseOptions = configuration.baseOptions;
87
79
  }
88
- const localVarRequestOptions = {
89
- method: "GET",
90
- ...baseOptions,
91
- ...options,
92
- };
80
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
93
81
  const localVarHeaderParameter = {};
94
82
  const localVarQueryParameter = {};
95
83
  if (state !== undefined) {
96
- localVarQueryParameter["state"] = state;
84
+ localVarQueryParameter['state'] = state;
97
85
  }
98
86
  setSearchParams(localVarUrlObj, localVarQueryParameter);
99
87
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
100
- localVarRequestOptions.headers = {
101
- ...localVarHeaderParameter,
102
- ...headersFromBaseOptions,
103
- ...options.headers,
104
- };
88
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
105
89
  return {
106
90
  url: toPathString(localVarUrlObj),
107
91
  options: localVarRequestOptions,
@@ -127,7 +111,7 @@ export const AuthApiFp = function (configuration) {
127
111
  async authCallbackGet(state, code, options) {
128
112
  const localVarAxiosArgs = await localVarAxiosParamCreator.authCallbackGet(state, code, options);
129
113
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
130
- const localVarOperationServerBasePath = operationServerMap["AuthApi.authCallbackGet"]?.[localVarOperationServerIndex]?.url;
114
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authCallbackGet']?.[localVarOperationServerIndex]?.url;
131
115
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
132
116
  },
133
117
  /**
@@ -140,7 +124,7 @@ export const AuthApiFp = function (configuration) {
140
124
  async authRedirectGet(state, options) {
141
125
  const localVarAxiosArgs = await localVarAxiosParamCreator.authRedirectGet(state, options);
142
126
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
143
- const localVarOperationServerBasePath = operationServerMap["AuthApi.authRedirectGet"]?.[localVarOperationServerIndex]?.url;
127
+ const localVarOperationServerBasePath = operationServerMap['AuthApi.authRedirectGet']?.[localVarOperationServerIndex]?.url;
144
128
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
145
129
  },
146
130
  };
@@ -161,9 +145,7 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
161
145
  * @throws {RequiredError}
162
146
  */
163
147
  authCallbackGet(state, code, options) {
164
- return localVarFp
165
- .authCallbackGet(state, code, options)
166
- .then((request) => request(axios, basePath));
148
+ return localVarFp.authCallbackGet(state, code, options).then((request) => request(axios, basePath));
167
149
  },
168
150
  /**
169
151
  * Generates state, sets a cookie, and redirects to Google OIDC
@@ -173,9 +155,7 @@ export const AuthApiFactory = function (configuration, basePath, axios) {
173
155
  * @throws {RequiredError}
174
156
  */
175
157
  authRedirectGet(state, options) {
176
- return localVarFp
177
- .authRedirectGet(state, options)
178
- .then((request) => request(axios, basePath));
158
+ return localVarFp.authRedirectGet(state, options).then((request) => request(axios, basePath));
179
159
  },
180
160
  };
181
161
  };
@@ -196,9 +176,7 @@ export class AuthApi extends BaseAPI {
196
176
  * @memberof AuthApi
197
177
  */
198
178
  authCallbackGet(state, code, options) {
199
- return AuthApiFp(this.configuration)
200
- .authCallbackGet(state, code, options)
201
- .then((request) => request(this.axios, this.basePath));
179
+ return AuthApiFp(this.configuration).authCallbackGet(state, code, options).then((request) => request(this.axios, this.basePath));
202
180
  }
203
181
  /**
204
182
  * Generates state, sets a cookie, and redirects to Google OIDC
@@ -209,9 +187,7 @@ export class AuthApi extends BaseAPI {
209
187
  * @memberof AuthApi
210
188
  */
211
189
  authRedirectGet(state, options) {
212
- return AuthApiFp(this.configuration)
213
- .authRedirectGet(state, options)
214
- .then((request) => request(this.axios, this.basePath));
190
+ return AuthApiFp(this.configuration).authRedirectGet(state, options).then((request) => request(this.axios, this.basePath));
215
191
  }
216
192
  }
217
193
  /**
@@ -229,7 +205,7 @@ export const RosterApiAxiosParamCreator = function (configuration) {
229
205
  */
230
206
  createRoster: async (createParams, options = {}) => {
231
207
  // verify required parameter 'createParams' is not null or undefined
232
- assertParamExists("createRoster", "createParams", createParams);
208
+ assertParamExists('createRoster', 'createParams', createParams);
233
209
  const localVarPath = `/roster`;
234
210
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
235
211
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -237,23 +213,15 @@ export const RosterApiAxiosParamCreator = function (configuration) {
237
213
  if (configuration) {
238
214
  baseOptions = configuration.baseOptions;
239
215
  }
240
- const localVarRequestOptions = {
241
- method: "POST",
242
- ...baseOptions,
243
- ...options,
244
- };
216
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
245
217
  const localVarHeaderParameter = {};
246
218
  const localVarQueryParameter = {};
247
219
  // authentication BearerAuth required
248
220
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
249
- localVarHeaderParameter["Content-Type"] = "application/json";
221
+ localVarHeaderParameter['Content-Type'] = 'application/json';
250
222
  setSearchParams(localVarUrlObj, localVarQueryParameter);
251
223
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
252
- localVarRequestOptions.headers = {
253
- ...localVarHeaderParameter,
254
- ...headersFromBaseOptions,
255
- ...options.headers,
256
- };
224
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
257
225
  localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
258
226
  return {
259
227
  url: toPathString(localVarUrlObj),
@@ -275,23 +243,15 @@ export const RosterApiAxiosParamCreator = function (configuration) {
275
243
  if (configuration) {
276
244
  baseOptions = configuration.baseOptions;
277
245
  }
278
- const localVarRequestOptions = {
279
- method: "POST",
280
- ...baseOptions,
281
- ...options,
282
- };
246
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
283
247
  const localVarHeaderParameter = {};
284
248
  const localVarQueryParameter = {};
285
249
  // authentication BearerAuth required
286
250
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
287
- localVarHeaderParameter["Content-Type"] = "application/json";
251
+ localVarHeaderParameter['Content-Type'] = 'application/json';
288
252
  setSearchParams(localVarUrlObj, localVarQueryParameter);
289
253
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
290
- localVarRequestOptions.headers = {
291
- ...localVarHeaderParameter,
292
- ...headersFromBaseOptions,
293
- ...options.headers,
294
- };
254
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
295
255
  localVarRequestOptions.data = serializeDataIfNeeded(params, localVarRequestOptions, configuration);
296
256
  return {
297
257
  url: toPathString(localVarUrlObj),
@@ -307,30 +267,23 @@ export const RosterApiAxiosParamCreator = function (configuration) {
307
267
  */
308
268
  deleteRoster: async (id, options = {}) => {
309
269
  // verify required parameter 'id' is not null or undefined
310
- assertParamExists("deleteRoster", "id", id);
311
- const localVarPath = `/roster/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
270
+ assertParamExists('deleteRoster', 'id', id);
271
+ const localVarPath = `/roster/{id}`
272
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
312
273
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
313
274
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
314
275
  let baseOptions;
315
276
  if (configuration) {
316
277
  baseOptions = configuration.baseOptions;
317
278
  }
318
- const localVarRequestOptions = {
319
- method: "DELETE",
320
- ...baseOptions,
321
- ...options,
322
- };
279
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
323
280
  const localVarHeaderParameter = {};
324
281
  const localVarQueryParameter = {};
325
282
  // authentication BearerAuth required
326
283
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
327
284
  setSearchParams(localVarUrlObj, localVarQueryParameter);
328
285
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
329
- localVarRequestOptions.headers = {
330
- ...localVarHeaderParameter,
331
- ...headersFromBaseOptions,
332
- ...options.headers,
333
- };
286
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
334
287
  return {
335
288
  url: toPathString(localVarUrlObj),
336
289
  options: localVarRequestOptions,
@@ -345,30 +298,23 @@ export const RosterApiAxiosParamCreator = function (configuration) {
345
298
  */
346
299
  deleteRosterTemplate: async (id, options = {}) => {
347
300
  // verify required parameter 'id' is not null or undefined
348
- assertParamExists("deleteRosterTemplate", "id", id);
349
- const localVarPath = `/roster/template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
301
+ assertParamExists('deleteRosterTemplate', 'id', id);
302
+ const localVarPath = `/roster/template/{id}`
303
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
350
304
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
351
305
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
352
306
  let baseOptions;
353
307
  if (configuration) {
354
308
  baseOptions = configuration.baseOptions;
355
309
  }
356
- const localVarRequestOptions = {
357
- method: "DELETE",
358
- ...baseOptions,
359
- ...options,
360
- };
310
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
361
311
  const localVarHeaderParameter = {};
362
312
  const localVarQueryParameter = {};
363
313
  // authentication BearerAuth required
364
314
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
365
315
  setSearchParams(localVarUrlObj, localVarQueryParameter);
366
316
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
367
- localVarRequestOptions.headers = {
368
- ...localVarHeaderParameter,
369
- ...headersFromBaseOptions,
370
- ...options.headers,
371
- };
317
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
372
318
  return {
373
319
  url: toPathString(localVarUrlObj),
374
320
  options: localVarRequestOptions,
@@ -383,30 +329,23 @@ export const RosterApiAxiosParamCreator = function (configuration) {
383
329
  */
384
330
  getRoster: async (id, options = {}) => {
385
331
  // verify required parameter 'id' is not null or undefined
386
- assertParamExists("getRoster", "id", id);
387
- const localVarPath = `/roster/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
332
+ assertParamExists('getRoster', 'id', id);
333
+ const localVarPath = `/roster/{id}`
334
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
388
335
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
389
336
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
390
337
  let baseOptions;
391
338
  if (configuration) {
392
339
  baseOptions = configuration.baseOptions;
393
340
  }
394
- const localVarRequestOptions = {
395
- method: "GET",
396
- ...baseOptions,
397
- ...options,
398
- };
341
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
399
342
  const localVarHeaderParameter = {};
400
343
  const localVarQueryParameter = {};
401
344
  // authentication BearerAuth required
402
345
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
403
346
  setSearchParams(localVarUrlObj, localVarQueryParameter);
404
347
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
405
- localVarRequestOptions.headers = {
406
- ...localVarHeaderParameter,
407
- ...headersFromBaseOptions,
408
- ...options.headers,
409
- };
348
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
410
349
  return {
411
350
  url: toPathString(localVarUrlObj),
412
351
  options: localVarRequestOptions,
@@ -421,30 +360,23 @@ export const RosterApiAxiosParamCreator = function (configuration) {
421
360
  */
422
361
  getRosterTemplate: async (id, options = {}) => {
423
362
  // verify required parameter 'id' is not null or undefined
424
- assertParamExists("getRosterTemplate", "id", id);
425
- const localVarPath = `/roster/template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
363
+ assertParamExists('getRosterTemplate', 'id', id);
364
+ const localVarPath = `/roster/template/{id}`
365
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
426
366
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
367
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
428
368
  let baseOptions;
429
369
  if (configuration) {
430
370
  baseOptions = configuration.baseOptions;
431
371
  }
432
- const localVarRequestOptions = {
433
- method: "GET",
434
- ...baseOptions,
435
- ...options,
436
- };
372
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
437
373
  const localVarHeaderParameter = {};
438
374
  const localVarQueryParameter = {};
439
375
  // authentication BearerAuth required
440
376
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
441
377
  setSearchParams(localVarUrlObj, localVarQueryParameter);
442
378
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
443
- localVarRequestOptions.headers = {
444
- ...localVarHeaderParameter,
445
- ...headersFromBaseOptions,
446
- ...options.headers,
447
- };
379
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
448
380
  return {
449
381
  url: toPathString(localVarUrlObj),
450
382
  options: localVarRequestOptions,
@@ -465,25 +397,17 @@ export const RosterApiAxiosParamCreator = function (configuration) {
465
397
  if (configuration) {
466
398
  baseOptions = configuration.baseOptions;
467
399
  }
468
- const localVarRequestOptions = {
469
- method: "GET",
470
- ...baseOptions,
471
- ...options,
472
- };
400
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
473
401
  const localVarHeaderParameter = {};
474
402
  const localVarQueryParameter = {};
475
403
  // authentication BearerAuth required
476
404
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
477
405
  if (organId !== undefined) {
478
- localVarQueryParameter["organId"] = organId;
406
+ localVarQueryParameter['organId'] = organId;
479
407
  }
480
408
  setSearchParams(localVarUrlObj, localVarQueryParameter);
481
409
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
482
- localVarRequestOptions.headers = {
483
- ...localVarHeaderParameter,
484
- ...headersFromBaseOptions,
485
- ...options.headers,
486
- };
410
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
487
411
  return {
488
412
  url: toPathString(localVarUrlObj),
489
413
  options: localVarRequestOptions,
@@ -505,28 +429,20 @@ export const RosterApiAxiosParamCreator = function (configuration) {
505
429
  if (configuration) {
506
430
  baseOptions = configuration.baseOptions;
507
431
  }
508
- const localVarRequestOptions = {
509
- method: "GET",
510
- ...baseOptions,
511
- ...options,
512
- };
432
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
513
433
  const localVarHeaderParameter = {};
514
434
  const localVarQueryParameter = {};
515
435
  // authentication BearerAuth required
516
436
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
517
437
  if (date !== undefined) {
518
- localVarQueryParameter["date"] = date;
438
+ localVarQueryParameter['date'] = date;
519
439
  }
520
440
  if (organId !== undefined) {
521
- localVarQueryParameter["organId"] = organId;
441
+ localVarQueryParameter['organId'] = organId;
522
442
  }
523
443
  setSearchParams(localVarUrlObj, localVarQueryParameter);
524
444
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
525
- localVarRequestOptions.headers = {
526
- ...localVarHeaderParameter,
527
- ...headersFromBaseOptions,
528
- ...options.headers,
529
- };
445
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
530
446
  return {
531
447
  url: toPathString(localVarUrlObj),
532
448
  options: localVarRequestOptions,
@@ -542,33 +458,26 @@ export const RosterApiAxiosParamCreator = function (configuration) {
542
458
  */
543
459
  updateRoster: async (id, updateParams, options = {}) => {
544
460
  // verify required parameter 'id' is not null or undefined
545
- assertParamExists("updateRoster", "id", id);
461
+ assertParamExists('updateRoster', 'id', id);
546
462
  // verify required parameter 'updateParams' is not null or undefined
547
- assertParamExists("updateRoster", "updateParams", updateParams);
548
- const localVarPath = `/roster/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
463
+ assertParamExists('updateRoster', 'updateParams', updateParams);
464
+ const localVarPath = `/roster/{id}`
465
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
549
466
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
550
467
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
551
468
  let baseOptions;
552
469
  if (configuration) {
553
470
  baseOptions = configuration.baseOptions;
554
471
  }
555
- const localVarRequestOptions = {
556
- method: "PATCH",
557
- ...baseOptions,
558
- ...options,
559
- };
472
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
560
473
  const localVarHeaderParameter = {};
561
474
  const localVarQueryParameter = {};
562
475
  // authentication BearerAuth required
563
476
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
564
- localVarHeaderParameter["Content-Type"] = "application/json";
477
+ localVarHeaderParameter['Content-Type'] = 'application/json';
565
478
  setSearchParams(localVarUrlObj, localVarQueryParameter);
566
479
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
567
- localVarRequestOptions.headers = {
568
- ...localVarHeaderParameter,
569
- ...headersFromBaseOptions,
570
- ...options.headers,
571
- };
480
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
572
481
  localVarRequestOptions.data = serializeDataIfNeeded(updateParams, localVarRequestOptions, configuration);
573
482
  return {
574
483
  url: toPathString(localVarUrlObj),
@@ -585,31 +494,24 @@ export const RosterApiAxiosParamCreator = function (configuration) {
585
494
  */
586
495
  updateRosterTemplate: async (id, params, options = {}) => {
587
496
  // verify required parameter 'id' is not null or undefined
588
- assertParamExists("updateRosterTemplate", "id", id);
589
- const localVarPath = `/roster/template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
497
+ assertParamExists('updateRosterTemplate', 'id', id);
498
+ const localVarPath = `/roster/template/{id}`
499
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
590
500
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
591
501
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
592
502
  let baseOptions;
593
503
  if (configuration) {
594
504
  baseOptions = configuration.baseOptions;
595
505
  }
596
- const localVarRequestOptions = {
597
- method: "PUT",
598
- ...baseOptions,
599
- ...options,
600
- };
506
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
601
507
  const localVarHeaderParameter = {};
602
508
  const localVarQueryParameter = {};
603
509
  // authentication BearerAuth required
604
510
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
605
- localVarHeaderParameter["Content-Type"] = "application/json";
511
+ localVarHeaderParameter['Content-Type'] = 'application/json';
606
512
  setSearchParams(localVarUrlObj, localVarQueryParameter);
607
513
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
608
- localVarRequestOptions.headers = {
609
- ...localVarHeaderParameter,
610
- ...headersFromBaseOptions,
611
- ...options.headers,
612
- };
514
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
613
515
  localVarRequestOptions.data = serializeDataIfNeeded(params, localVarRequestOptions, configuration);
614
516
  return {
615
517
  url: toPathString(localVarUrlObj),
@@ -635,7 +537,7 @@ export const RosterApiFp = function (configuration) {
635
537
  async createRoster(createParams, options) {
636
538
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRoster(createParams, options);
637
539
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
638
- const localVarOperationServerBasePath = operationServerMap["RosterApi.createRoster"]?.[localVarOperationServerIndex]?.url;
540
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.createRoster']?.[localVarOperationServerIndex]?.url;
639
541
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
640
542
  },
641
543
  /**
@@ -648,7 +550,7 @@ export const RosterApiFp = function (configuration) {
648
550
  async createRosterTemplate(params, options) {
649
551
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRosterTemplate(params, options);
650
552
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
651
- const localVarOperationServerBasePath = operationServerMap["RosterApi.createRosterTemplate"]?.[localVarOperationServerIndex]?.url;
553
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.createRosterTemplate']?.[localVarOperationServerIndex]?.url;
652
554
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
653
555
  },
654
556
  /**
@@ -661,7 +563,7 @@ export const RosterApiFp = function (configuration) {
661
563
  async deleteRoster(id, options) {
662
564
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoster(id, options);
663
565
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
664
- const localVarOperationServerBasePath = operationServerMap["RosterApi.deleteRoster"]?.[localVarOperationServerIndex]?.url;
566
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.deleteRoster']?.[localVarOperationServerIndex]?.url;
665
567
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
666
568
  },
667
569
  /**
@@ -674,7 +576,7 @@ export const RosterApiFp = function (configuration) {
674
576
  async deleteRosterTemplate(id, options) {
675
577
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRosterTemplate(id, options);
676
578
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
677
- const localVarOperationServerBasePath = operationServerMap["RosterApi.deleteRosterTemplate"]?.[localVarOperationServerIndex]?.url;
579
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.deleteRosterTemplate']?.[localVarOperationServerIndex]?.url;
678
580
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
679
581
  },
680
582
  /**
@@ -687,7 +589,7 @@ export const RosterApiFp = function (configuration) {
687
589
  async getRoster(id, options) {
688
590
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRoster(id, options);
689
591
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
690
- const localVarOperationServerBasePath = operationServerMap["RosterApi.getRoster"]?.[localVarOperationServerIndex]?.url;
592
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.getRoster']?.[localVarOperationServerIndex]?.url;
691
593
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
692
594
  },
693
595
  /**
@@ -700,7 +602,7 @@ export const RosterApiFp = function (configuration) {
700
602
  async getRosterTemplate(id, options) {
701
603
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterTemplate(id, options);
702
604
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
703
- const localVarOperationServerBasePath = operationServerMap["RosterApi.getRosterTemplate"]?.[localVarOperationServerIndex]?.url;
605
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.getRosterTemplate']?.[localVarOperationServerIndex]?.url;
704
606
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
607
  },
706
608
  /**
@@ -713,7 +615,7 @@ export const RosterApiFp = function (configuration) {
713
615
  async getRosterTemplates(organId, options) {
714
616
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterTemplates(organId, options);
715
617
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
716
- const localVarOperationServerBasePath = operationServerMap["RosterApi.getRosterTemplates"]?.[localVarOperationServerIndex]?.url;
618
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.getRosterTemplates']?.[localVarOperationServerIndex]?.url;
717
619
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
718
620
  },
719
621
  /**
@@ -727,7 +629,7 @@ export const RosterApiFp = function (configuration) {
727
629
  async getRosters(date, organId, options) {
728
630
  const localVarAxiosArgs = await localVarAxiosParamCreator.getRosters(date, organId, options);
729
631
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
730
- const localVarOperationServerBasePath = operationServerMap["RosterApi.getRosters"]?.[localVarOperationServerIndex]?.url;
632
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.getRosters']?.[localVarOperationServerIndex]?.url;
731
633
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
732
634
  },
733
635
  /**
@@ -741,7 +643,7 @@ export const RosterApiFp = function (configuration) {
741
643
  async updateRoster(id, updateParams, options) {
742
644
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateRoster(id, updateParams, options);
743
645
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
744
- const localVarOperationServerBasePath = operationServerMap["RosterApi.updateRoster"]?.[localVarOperationServerIndex]?.url;
646
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.updateRoster']?.[localVarOperationServerIndex]?.url;
745
647
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
746
648
  },
747
649
  /**
@@ -755,7 +657,7 @@ export const RosterApiFp = function (configuration) {
755
657
  async updateRosterTemplate(id, params, options) {
756
658
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateRosterTemplate(id, params, options);
757
659
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
758
- const localVarOperationServerBasePath = operationServerMap["RosterApi.updateRosterTemplate"]?.[localVarOperationServerIndex]?.url;
660
+ const localVarOperationServerBasePath = operationServerMap['RosterApi.updateRosterTemplate']?.[localVarOperationServerIndex]?.url;
759
661
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
760
662
  },
761
663
  };
@@ -775,9 +677,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
775
677
  * @throws {RequiredError}
776
678
  */
777
679
  createRoster(createParams, options) {
778
- return localVarFp
779
- .createRoster(createParams, options)
780
- .then((request) => request(axios, basePath));
680
+ return localVarFp.createRoster(createParams, options).then((request) => request(axios, basePath));
781
681
  },
782
682
  /**
783
683
  *
@@ -787,9 +687,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
787
687
  * @throws {RequiredError}
788
688
  */
789
689
  createRosterTemplate(params, options) {
790
- return localVarFp
791
- .createRosterTemplate(params, options)
792
- .then((request) => request(axios, basePath));
690
+ return localVarFp.createRosterTemplate(params, options).then((request) => request(axios, basePath));
793
691
  },
794
692
  /**
795
693
  *
@@ -799,9 +697,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
799
697
  * @throws {RequiredError}
800
698
  */
801
699
  deleteRoster(id, options) {
802
- return localVarFp
803
- .deleteRoster(id, options)
804
- .then((request) => request(axios, basePath));
700
+ return localVarFp.deleteRoster(id, options).then((request) => request(axios, basePath));
805
701
  },
806
702
  /**
807
703
  *
@@ -811,9 +707,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
811
707
  * @throws {RequiredError}
812
708
  */
813
709
  deleteRosterTemplate(id, options) {
814
- return localVarFp
815
- .deleteRosterTemplate(id, options)
816
- .then((request) => request(axios, basePath));
710
+ return localVarFp.deleteRosterTemplate(id, options).then((request) => request(axios, basePath));
817
711
  },
818
712
  /**
819
713
  *
@@ -823,9 +717,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
823
717
  * @throws {RequiredError}
824
718
  */
825
719
  getRoster(id, options) {
826
- return localVarFp
827
- .getRoster(id, options)
828
- .then((request) => request(axios, basePath));
720
+ return localVarFp.getRoster(id, options).then((request) => request(axios, basePath));
829
721
  },
830
722
  /**
831
723
  *
@@ -835,9 +727,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
835
727
  * @throws {RequiredError}
836
728
  */
837
729
  getRosterTemplate(id, options) {
838
- return localVarFp
839
- .getRosterTemplate(id, options)
840
- .then((request) => request(axios, basePath));
730
+ return localVarFp.getRosterTemplate(id, options).then((request) => request(axios, basePath));
841
731
  },
842
732
  /**
843
733
  *
@@ -847,9 +737,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
847
737
  * @throws {RequiredError}
848
738
  */
849
739
  getRosterTemplates(organId, options) {
850
- return localVarFp
851
- .getRosterTemplates(organId, options)
852
- .then((request) => request(axios, basePath));
740
+ return localVarFp.getRosterTemplates(organId, options).then((request) => request(axios, basePath));
853
741
  },
854
742
  /**
855
743
  *
@@ -860,9 +748,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
860
748
  * @throws {RequiredError}
861
749
  */
862
750
  getRosters(date, organId, options) {
863
- return localVarFp
864
- .getRosters(date, organId, options)
865
- .then((request) => request(axios, basePath));
751
+ return localVarFp.getRosters(date, organId, options).then((request) => request(axios, basePath));
866
752
  },
867
753
  /**
868
754
  *
@@ -873,9 +759,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
873
759
  * @throws {RequiredError}
874
760
  */
875
761
  updateRoster(id, updateParams, options) {
876
- return localVarFp
877
- .updateRoster(id, updateParams, options)
878
- .then((request) => request(axios, basePath));
762
+ return localVarFp.updateRoster(id, updateParams, options).then((request) => request(axios, basePath));
879
763
  },
880
764
  /**
881
765
  *
@@ -886,9 +770,7 @@ export const RosterApiFactory = function (configuration, basePath, axios) {
886
770
  * @throws {RequiredError}
887
771
  */
888
772
  updateRosterTemplate(id, params, options) {
889
- return localVarFp
890
- .updateRosterTemplate(id, params, options)
891
- .then((request) => request(axios, basePath));
773
+ return localVarFp.updateRosterTemplate(id, params, options).then((request) => request(axios, basePath));
892
774
  },
893
775
  };
894
776
  };
@@ -908,9 +790,7 @@ export class RosterApi extends BaseAPI {
908
790
  * @memberof RosterApi
909
791
  */
910
792
  createRoster(createParams, options) {
911
- return RosterApiFp(this.configuration)
912
- .createRoster(createParams, options)
913
- .then((request) => request(this.axios, this.basePath));
793
+ return RosterApiFp(this.configuration).createRoster(createParams, options).then((request) => request(this.axios, this.basePath));
914
794
  }
915
795
  /**
916
796
  *
@@ -921,9 +801,7 @@ export class RosterApi extends BaseAPI {
921
801
  * @memberof RosterApi
922
802
  */
923
803
  createRosterTemplate(params, options) {
924
- return RosterApiFp(this.configuration)
925
- .createRosterTemplate(params, options)
926
- .then((request) => request(this.axios, this.basePath));
804
+ return RosterApiFp(this.configuration).createRosterTemplate(params, options).then((request) => request(this.axios, this.basePath));
927
805
  }
928
806
  /**
929
807
  *
@@ -934,9 +812,7 @@ export class RosterApi extends BaseAPI {
934
812
  * @memberof RosterApi
935
813
  */
936
814
  deleteRoster(id, options) {
937
- return RosterApiFp(this.configuration)
938
- .deleteRoster(id, options)
939
- .then((request) => request(this.axios, this.basePath));
815
+ return RosterApiFp(this.configuration).deleteRoster(id, options).then((request) => request(this.axios, this.basePath));
940
816
  }
941
817
  /**
942
818
  *
@@ -947,9 +823,7 @@ export class RosterApi extends BaseAPI {
947
823
  * @memberof RosterApi
948
824
  */
949
825
  deleteRosterTemplate(id, options) {
950
- return RosterApiFp(this.configuration)
951
- .deleteRosterTemplate(id, options)
952
- .then((request) => request(this.axios, this.basePath));
826
+ return RosterApiFp(this.configuration).deleteRosterTemplate(id, options).then((request) => request(this.axios, this.basePath));
953
827
  }
954
828
  /**
955
829
  *
@@ -960,9 +834,7 @@ export class RosterApi extends BaseAPI {
960
834
  * @memberof RosterApi
961
835
  */
962
836
  getRoster(id, options) {
963
- return RosterApiFp(this.configuration)
964
- .getRoster(id, options)
965
- .then((request) => request(this.axios, this.basePath));
837
+ return RosterApiFp(this.configuration).getRoster(id, options).then((request) => request(this.axios, this.basePath));
966
838
  }
967
839
  /**
968
840
  *
@@ -973,9 +845,7 @@ export class RosterApi extends BaseAPI {
973
845
  * @memberof RosterApi
974
846
  */
975
847
  getRosterTemplate(id, options) {
976
- return RosterApiFp(this.configuration)
977
- .getRosterTemplate(id, options)
978
- .then((request) => request(this.axios, this.basePath));
848
+ return RosterApiFp(this.configuration).getRosterTemplate(id, options).then((request) => request(this.axios, this.basePath));
979
849
  }
980
850
  /**
981
851
  *
@@ -986,9 +856,7 @@ export class RosterApi extends BaseAPI {
986
856
  * @memberof RosterApi
987
857
  */
988
858
  getRosterTemplates(organId, options) {
989
- return RosterApiFp(this.configuration)
990
- .getRosterTemplates(organId, options)
991
- .then((request) => request(this.axios, this.basePath));
859
+ return RosterApiFp(this.configuration).getRosterTemplates(organId, options).then((request) => request(this.axios, this.basePath));
992
860
  }
993
861
  /**
994
862
  *
@@ -1000,9 +868,7 @@ export class RosterApi extends BaseAPI {
1000
868
  * @memberof RosterApi
1001
869
  */
1002
870
  getRosters(date, organId, options) {
1003
- return RosterApiFp(this.configuration)
1004
- .getRosters(date, organId, options)
1005
- .then((request) => request(this.axios, this.basePath));
871
+ return RosterApiFp(this.configuration).getRosters(date, organId, options).then((request) => request(this.axios, this.basePath));
1006
872
  }
1007
873
  /**
1008
874
  *
@@ -1014,9 +880,7 @@ export class RosterApi extends BaseAPI {
1014
880
  * @memberof RosterApi
1015
881
  */
1016
882
  updateRoster(id, updateParams, options) {
1017
- return RosterApiFp(this.configuration)
1018
- .updateRoster(id, updateParams, options)
1019
- .then((request) => request(this.axios, this.basePath));
883
+ return RosterApiFp(this.configuration).updateRoster(id, updateParams, options).then((request) => request(this.axios, this.basePath));
1020
884
  }
1021
885
  /**
1022
886
  *
@@ -1028,9 +892,7 @@ export class RosterApi extends BaseAPI {
1028
892
  * @memberof RosterApi
1029
893
  */
1030
894
  updateRosterTemplate(id, params, options) {
1031
- return RosterApiFp(this.configuration)
1032
- .updateRosterTemplate(id, params, options)
1033
- .then((request) => request(this.axios, this.basePath));
895
+ return RosterApiFp(this.configuration).updateRosterTemplate(id, params, options).then((request) => request(this.axios, this.basePath));
1034
896
  }
1035
897
  }
1036
898
  /**
@@ -1048,7 +910,7 @@ export const RosterAnswerApiAxiosParamCreator = function (configuration) {
1048
910
  */
1049
911
  createRosterAnswer: async (createParams, options = {}) => {
1050
912
  // verify required parameter 'createParams' is not null or undefined
1051
- assertParamExists("createRosterAnswer", "createParams", createParams);
913
+ assertParamExists('createRosterAnswer', 'createParams', createParams);
1052
914
  const localVarPath = `/roster/answer`;
1053
915
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1054
916
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1056,23 +918,15 @@ export const RosterAnswerApiAxiosParamCreator = function (configuration) {
1056
918
  if (configuration) {
1057
919
  baseOptions = configuration.baseOptions;
1058
920
  }
1059
- const localVarRequestOptions = {
1060
- method: "POST",
1061
- ...baseOptions,
1062
- ...options,
1063
- };
921
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1064
922
  const localVarHeaderParameter = {};
1065
923
  const localVarQueryParameter = {};
1066
924
  // authentication BearerAuth required
1067
925
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1068
- localVarHeaderParameter["Content-Type"] = "application/json";
926
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1069
927
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1070
928
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1071
- localVarRequestOptions.headers = {
1072
- ...localVarHeaderParameter,
1073
- ...headersFromBaseOptions,
1074
- ...options.headers,
1075
- };
929
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1076
930
  localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
1077
931
  return {
1078
932
  url: toPathString(localVarUrlObj),
@@ -1089,33 +943,26 @@ export const RosterAnswerApiAxiosParamCreator = function (configuration) {
1089
943
  */
1090
944
  updateRosterAnswer: async (id, updateParams, options = {}) => {
1091
945
  // verify required parameter 'id' is not null or undefined
1092
- assertParamExists("updateRosterAnswer", "id", id);
946
+ assertParamExists('updateRosterAnswer', 'id', id);
1093
947
  // verify required parameter 'updateParams' is not null or undefined
1094
- assertParamExists("updateRosterAnswer", "updateParams", updateParams);
1095
- const localVarPath = `/roster/answer/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
948
+ assertParamExists('updateRosterAnswer', 'updateParams', updateParams);
949
+ const localVarPath = `/roster/answer/{id}`
950
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1096
951
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1097
952
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1098
953
  let baseOptions;
1099
954
  if (configuration) {
1100
955
  baseOptions = configuration.baseOptions;
1101
956
  }
1102
- const localVarRequestOptions = {
1103
- method: "PATCH",
1104
- ...baseOptions,
1105
- ...options,
1106
- };
957
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
1107
958
  const localVarHeaderParameter = {};
1108
959
  const localVarQueryParameter = {};
1109
960
  // authentication BearerAuth required
1110
961
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1111
- localVarHeaderParameter["Content-Type"] = "application/json";
962
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1112
963
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1113
964
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1114
- localVarRequestOptions.headers = {
1115
- ...localVarHeaderParameter,
1116
- ...headersFromBaseOptions,
1117
- ...options.headers,
1118
- };
965
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1119
966
  localVarRequestOptions.data = serializeDataIfNeeded(updateParams, localVarRequestOptions, configuration);
1120
967
  return {
1121
968
  url: toPathString(localVarUrlObj),
@@ -1141,7 +988,7 @@ export const RosterAnswerApiFp = function (configuration) {
1141
988
  async createRosterAnswer(createParams, options) {
1142
989
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRosterAnswer(createParams, options);
1143
990
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1144
- const localVarOperationServerBasePath = operationServerMap["RosterAnswerApi.createRosterAnswer"]?.[localVarOperationServerIndex]?.url;
991
+ const localVarOperationServerBasePath = operationServerMap['RosterAnswerApi.createRosterAnswer']?.[localVarOperationServerIndex]?.url;
1145
992
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1146
993
  },
1147
994
  /**
@@ -1155,7 +1002,7 @@ export const RosterAnswerApiFp = function (configuration) {
1155
1002
  async updateRosterAnswer(id, updateParams, options) {
1156
1003
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateRosterAnswer(id, updateParams, options);
1157
1004
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1158
- const localVarOperationServerBasePath = operationServerMap["RosterAnswerApi.updateRosterAnswer"]?.[localVarOperationServerIndex]?.url;
1005
+ const localVarOperationServerBasePath = operationServerMap['RosterAnswerApi.updateRosterAnswer']?.[localVarOperationServerIndex]?.url;
1159
1006
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1160
1007
  },
1161
1008
  };
@@ -1175,9 +1022,7 @@ export const RosterAnswerApiFactory = function (configuration, basePath, axios)
1175
1022
  * @throws {RequiredError}
1176
1023
  */
1177
1024
  createRosterAnswer(createParams, options) {
1178
- return localVarFp
1179
- .createRosterAnswer(createParams, options)
1180
- .then((request) => request(axios, basePath));
1025
+ return localVarFp.createRosterAnswer(createParams, options).then((request) => request(axios, basePath));
1181
1026
  },
1182
1027
  /**
1183
1028
  *
@@ -1188,9 +1033,7 @@ export const RosterAnswerApiFactory = function (configuration, basePath, axios)
1188
1033
  * @throws {RequiredError}
1189
1034
  */
1190
1035
  updateRosterAnswer(id, updateParams, options) {
1191
- return localVarFp
1192
- .updateRosterAnswer(id, updateParams, options)
1193
- .then((request) => request(axios, basePath));
1036
+ return localVarFp.updateRosterAnswer(id, updateParams, options).then((request) => request(axios, basePath));
1194
1037
  },
1195
1038
  };
1196
1039
  };
@@ -1210,9 +1053,7 @@ export class RosterAnswerApi extends BaseAPI {
1210
1053
  * @memberof RosterAnswerApi
1211
1054
  */
1212
1055
  createRosterAnswer(createParams, options) {
1213
- return RosterAnswerApiFp(this.configuration)
1214
- .createRosterAnswer(createParams, options)
1215
- .then((request) => request(this.axios, this.basePath));
1056
+ return RosterAnswerApiFp(this.configuration).createRosterAnswer(createParams, options).then((request) => request(this.axios, this.basePath));
1216
1057
  }
1217
1058
  /**
1218
1059
  *
@@ -1224,9 +1065,7 @@ export class RosterAnswerApi extends BaseAPI {
1224
1065
  * @memberof RosterAnswerApi
1225
1066
  */
1226
1067
  updateRosterAnswer(id, updateParams, options) {
1227
- return RosterAnswerApiFp(this.configuration)
1228
- .updateRosterAnswer(id, updateParams, options)
1229
- .then((request) => request(this.axios, this.basePath));
1068
+ return RosterAnswerApiFp(this.configuration).updateRosterAnswer(id, updateParams, options).then((request) => request(this.axios, this.basePath));
1230
1069
  }
1231
1070
  }
1232
1071
  /**
@@ -1244,7 +1083,7 @@ export const RosterShiftApiAxiosParamCreator = function (configuration) {
1244
1083
  */
1245
1084
  createRosterShift: async (createParams, options = {}) => {
1246
1085
  // verify required parameter 'createParams' is not null or undefined
1247
- assertParamExists("createRosterShift", "createParams", createParams);
1086
+ assertParamExists('createRosterShift', 'createParams', createParams);
1248
1087
  const localVarPath = `/roster/shift`;
1249
1088
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1250
1089
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1252,23 +1091,15 @@ export const RosterShiftApiAxiosParamCreator = function (configuration) {
1252
1091
  if (configuration) {
1253
1092
  baseOptions = configuration.baseOptions;
1254
1093
  }
1255
- const localVarRequestOptions = {
1256
- method: "POST",
1257
- ...baseOptions,
1258
- ...options,
1259
- };
1094
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1260
1095
  const localVarHeaderParameter = {};
1261
1096
  const localVarQueryParameter = {};
1262
1097
  // authentication BearerAuth required
1263
1098
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1264
- localVarHeaderParameter["Content-Type"] = "application/json";
1099
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1265
1100
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1266
1101
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1267
- localVarRequestOptions.headers = {
1268
- ...localVarHeaderParameter,
1269
- ...headersFromBaseOptions,
1270
- ...options.headers,
1271
- };
1102
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1272
1103
  localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
1273
1104
  return {
1274
1105
  url: toPathString(localVarUrlObj),
@@ -1284,30 +1115,23 @@ export const RosterShiftApiAxiosParamCreator = function (configuration) {
1284
1115
  */
1285
1116
  deleteRosterShift: async (id, options = {}) => {
1286
1117
  // verify required parameter 'id' is not null or undefined
1287
- assertParamExists("deleteRosterShift", "id", id);
1288
- const localVarPath = `/roster/shift/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1118
+ assertParamExists('deleteRosterShift', 'id', id);
1119
+ const localVarPath = `/roster/shift/{id}`
1120
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1289
1121
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1290
1122
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1291
1123
  let baseOptions;
1292
1124
  if (configuration) {
1293
1125
  baseOptions = configuration.baseOptions;
1294
1126
  }
1295
- const localVarRequestOptions = {
1296
- method: "DELETE",
1297
- ...baseOptions,
1298
- ...options,
1299
- };
1127
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1300
1128
  const localVarHeaderParameter = {};
1301
1129
  const localVarQueryParameter = {};
1302
1130
  // authentication BearerAuth required
1303
1131
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1304
1132
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1305
1133
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1306
- localVarRequestOptions.headers = {
1307
- ...localVarHeaderParameter,
1308
- ...headersFromBaseOptions,
1309
- ...options.headers,
1310
- };
1134
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1311
1135
  return {
1312
1136
  url: toPathString(localVarUrlObj),
1313
1137
  options: localVarRequestOptions,
@@ -1332,7 +1156,7 @@ export const RosterShiftApiFp = function (configuration) {
1332
1156
  async createRosterShift(createParams, options) {
1333
1157
  const localVarAxiosArgs = await localVarAxiosParamCreator.createRosterShift(createParams, options);
1334
1158
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1335
- const localVarOperationServerBasePath = operationServerMap["RosterShiftApi.createRosterShift"]?.[localVarOperationServerIndex]?.url;
1159
+ const localVarOperationServerBasePath = operationServerMap['RosterShiftApi.createRosterShift']?.[localVarOperationServerIndex]?.url;
1336
1160
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1337
1161
  },
1338
1162
  /**
@@ -1345,7 +1169,7 @@ export const RosterShiftApiFp = function (configuration) {
1345
1169
  async deleteRosterShift(id, options) {
1346
1170
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRosterShift(id, options);
1347
1171
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1348
- const localVarOperationServerBasePath = operationServerMap["RosterShiftApi.deleteRosterShift"]?.[localVarOperationServerIndex]?.url;
1172
+ const localVarOperationServerBasePath = operationServerMap['RosterShiftApi.deleteRosterShift']?.[localVarOperationServerIndex]?.url;
1349
1173
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1350
1174
  },
1351
1175
  };
@@ -1365,9 +1189,7 @@ export const RosterShiftApiFactory = function (configuration, basePath, axios) {
1365
1189
  * @throws {RequiredError}
1366
1190
  */
1367
1191
  createRosterShift(createParams, options) {
1368
- return localVarFp
1369
- .createRosterShift(createParams, options)
1370
- .then((request) => request(axios, basePath));
1192
+ return localVarFp.createRosterShift(createParams, options).then((request) => request(axios, basePath));
1371
1193
  },
1372
1194
  /**
1373
1195
  *
@@ -1377,9 +1199,7 @@ export const RosterShiftApiFactory = function (configuration, basePath, axios) {
1377
1199
  * @throws {RequiredError}
1378
1200
  */
1379
1201
  deleteRosterShift(id, options) {
1380
- return localVarFp
1381
- .deleteRosterShift(id, options)
1382
- .then((request) => request(axios, basePath));
1202
+ return localVarFp.deleteRosterShift(id, options).then((request) => request(axios, basePath));
1383
1203
  },
1384
1204
  };
1385
1205
  };
@@ -1399,9 +1219,7 @@ export class RosterShiftApi extends BaseAPI {
1399
1219
  * @memberof RosterShiftApi
1400
1220
  */
1401
1221
  createRosterShift(createParams, options) {
1402
- return RosterShiftApiFp(this.configuration)
1403
- .createRosterShift(createParams, options)
1404
- .then((request) => request(this.axios, this.basePath));
1222
+ return RosterShiftApiFp(this.configuration).createRosterShift(createParams, options).then((request) => request(this.axios, this.basePath));
1405
1223
  }
1406
1224
  /**
1407
1225
  *
@@ -1412,9 +1230,7 @@ export class RosterShiftApi extends BaseAPI {
1412
1230
  * @memberof RosterShiftApi
1413
1231
  */
1414
1232
  deleteRosterShift(id, options) {
1415
- return RosterShiftApiFp(this.configuration)
1416
- .deleteRosterShift(id, options)
1417
- .then((request) => request(this.axios, this.basePath));
1233
+ return RosterShiftApiFp(this.configuration).deleteRosterShift(id, options).then((request) => request(this.axios, this.basePath));
1418
1234
  }
1419
1235
  }
1420
1236
  /**
@@ -1432,30 +1248,23 @@ export const SavedShiftApiAxiosParamCreator = function (configuration) {
1432
1248
  */
1433
1249
  getSavedRoster: async (id, options = {}) => {
1434
1250
  // verify required parameter 'id' is not null or undefined
1435
- assertParamExists("getSavedRoster", "id", id);
1436
- const localVarPath = `/roster/saved-shift/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1251
+ assertParamExists('getSavedRoster', 'id', id);
1252
+ const localVarPath = `/roster/saved-shift/{id}`
1253
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1437
1254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1438
1255
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1439
1256
  let baseOptions;
1440
1257
  if (configuration) {
1441
1258
  baseOptions = configuration.baseOptions;
1442
1259
  }
1443
- const localVarRequestOptions = {
1444
- method: "GET",
1445
- ...baseOptions,
1446
- ...options,
1447
- };
1260
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1448
1261
  const localVarHeaderParameter = {};
1449
1262
  const localVarQueryParameter = {};
1450
1263
  // authentication BearerAuth required
1451
1264
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1452
1265
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1453
1266
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1454
- localVarRequestOptions.headers = {
1455
- ...localVarHeaderParameter,
1456
- ...headersFromBaseOptions,
1457
- ...options.headers,
1458
- };
1267
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1459
1268
  return {
1460
1269
  url: toPathString(localVarUrlObj),
1461
1270
  options: localVarRequestOptions,
@@ -1470,30 +1279,23 @@ export const SavedShiftApiAxiosParamCreator = function (configuration) {
1470
1279
  */
1471
1280
  rosterSave: async (id, options = {}) => {
1472
1281
  // verify required parameter 'id' is not null or undefined
1473
- assertParamExists("rosterSave", "id", id);
1474
- const localVarPath = `/roster/{id}/save`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1282
+ assertParamExists('rosterSave', 'id', id);
1283
+ const localVarPath = `/roster/{id}/save`
1284
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1475
1285
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1476
1286
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1477
1287
  let baseOptions;
1478
1288
  if (configuration) {
1479
1289
  baseOptions = configuration.baseOptions;
1480
1290
  }
1481
- const localVarRequestOptions = {
1482
- method: "POST",
1483
- ...baseOptions,
1484
- ...options,
1485
- };
1291
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1486
1292
  const localVarHeaderParameter = {};
1487
1293
  const localVarQueryParameter = {};
1488
1294
  // authentication BearerAuth required
1489
1295
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1490
1296
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1491
1297
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1492
- localVarRequestOptions.headers = {
1493
- ...localVarHeaderParameter,
1494
- ...headersFromBaseOptions,
1495
- ...options.headers,
1496
- };
1298
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1497
1299
  return {
1498
1300
  url: toPathString(localVarUrlObj),
1499
1301
  options: localVarRequestOptions,
@@ -1509,33 +1311,26 @@ export const SavedShiftApiAxiosParamCreator = function (configuration) {
1509
1311
  */
1510
1312
  updateSavedShift: async (id, updateParams, options = {}) => {
1511
1313
  // verify required parameter 'id' is not null or undefined
1512
- assertParamExists("updateSavedShift", "id", id);
1314
+ assertParamExists('updateSavedShift', 'id', id);
1513
1315
  // verify required parameter 'updateParams' is not null or undefined
1514
- assertParamExists("updateSavedShift", "updateParams", updateParams);
1515
- const localVarPath = `/roster/saved-shift/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1316
+ assertParamExists('updateSavedShift', 'updateParams', updateParams);
1317
+ const localVarPath = `/roster/saved-shift/{id}`
1318
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1516
1319
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1517
1320
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1518
1321
  let baseOptions;
1519
1322
  if (configuration) {
1520
1323
  baseOptions = configuration.baseOptions;
1521
1324
  }
1522
- const localVarRequestOptions = {
1523
- method: "PATCH",
1524
- ...baseOptions,
1525
- ...options,
1526
- };
1325
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options };
1527
1326
  const localVarHeaderParameter = {};
1528
1327
  const localVarQueryParameter = {};
1529
1328
  // authentication BearerAuth required
1530
1329
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1531
- localVarHeaderParameter["Content-Type"] = "application/json";
1330
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1532
1331
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1533
1332
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1534
- localVarRequestOptions.headers = {
1535
- ...localVarHeaderParameter,
1536
- ...headersFromBaseOptions,
1537
- ...options.headers,
1538
- };
1333
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1539
1334
  localVarRequestOptions.data = serializeDataIfNeeded(updateParams, localVarRequestOptions, configuration);
1540
1335
  return {
1541
1336
  url: toPathString(localVarUrlObj),
@@ -1561,7 +1356,7 @@ export const SavedShiftApiFp = function (configuration) {
1561
1356
  async getSavedRoster(id, options) {
1562
1357
  const localVarAxiosArgs = await localVarAxiosParamCreator.getSavedRoster(id, options);
1563
1358
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1564
- const localVarOperationServerBasePath = operationServerMap["SavedShiftApi.getSavedRoster"]?.[localVarOperationServerIndex]?.url;
1359
+ const localVarOperationServerBasePath = operationServerMap['SavedShiftApi.getSavedRoster']?.[localVarOperationServerIndex]?.url;
1565
1360
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1566
1361
  },
1567
1362
  /**
@@ -1574,7 +1369,7 @@ export const SavedShiftApiFp = function (configuration) {
1574
1369
  async rosterSave(id, options) {
1575
1370
  const localVarAxiosArgs = await localVarAxiosParamCreator.rosterSave(id, options);
1576
1371
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1577
- const localVarOperationServerBasePath = operationServerMap["SavedShiftApi.rosterSave"]?.[localVarOperationServerIndex]?.url;
1372
+ const localVarOperationServerBasePath = operationServerMap['SavedShiftApi.rosterSave']?.[localVarOperationServerIndex]?.url;
1578
1373
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1579
1374
  },
1580
1375
  /**
@@ -1588,7 +1383,7 @@ export const SavedShiftApiFp = function (configuration) {
1588
1383
  async updateSavedShift(id, updateParams, options) {
1589
1384
  const localVarAxiosArgs = await localVarAxiosParamCreator.updateSavedShift(id, updateParams, options);
1590
1385
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1591
- const localVarOperationServerBasePath = operationServerMap["SavedShiftApi.updateSavedShift"]?.[localVarOperationServerIndex]?.url;
1386
+ const localVarOperationServerBasePath = operationServerMap['SavedShiftApi.updateSavedShift']?.[localVarOperationServerIndex]?.url;
1592
1387
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1593
1388
  },
1594
1389
  };
@@ -1608,9 +1403,7 @@ export const SavedShiftApiFactory = function (configuration, basePath, axios) {
1608
1403
  * @throws {RequiredError}
1609
1404
  */
1610
1405
  getSavedRoster(id, options) {
1611
- return localVarFp
1612
- .getSavedRoster(id, options)
1613
- .then((request) => request(axios, basePath));
1406
+ return localVarFp.getSavedRoster(id, options).then((request) => request(axios, basePath));
1614
1407
  },
1615
1408
  /**
1616
1409
  *
@@ -1620,9 +1413,7 @@ export const SavedShiftApiFactory = function (configuration, basePath, axios) {
1620
1413
  * @throws {RequiredError}
1621
1414
  */
1622
1415
  rosterSave(id, options) {
1623
- return localVarFp
1624
- .rosterSave(id, options)
1625
- .then((request) => request(axios, basePath));
1416
+ return localVarFp.rosterSave(id, options).then((request) => request(axios, basePath));
1626
1417
  },
1627
1418
  /**
1628
1419
  *
@@ -1633,9 +1424,7 @@ export const SavedShiftApiFactory = function (configuration, basePath, axios) {
1633
1424
  * @throws {RequiredError}
1634
1425
  */
1635
1426
  updateSavedShift(id, updateParams, options) {
1636
- return localVarFp
1637
- .updateSavedShift(id, updateParams, options)
1638
- .then((request) => request(axios, basePath));
1427
+ return localVarFp.updateSavedShift(id, updateParams, options).then((request) => request(axios, basePath));
1639
1428
  },
1640
1429
  };
1641
1430
  };
@@ -1655,9 +1444,7 @@ export class SavedShiftApi extends BaseAPI {
1655
1444
  * @memberof SavedShiftApi
1656
1445
  */
1657
1446
  getSavedRoster(id, options) {
1658
- return SavedShiftApiFp(this.configuration)
1659
- .getSavedRoster(id, options)
1660
- .then((request) => request(this.axios, this.basePath));
1447
+ return SavedShiftApiFp(this.configuration).getSavedRoster(id, options).then((request) => request(this.axios, this.basePath));
1661
1448
  }
1662
1449
  /**
1663
1450
  *
@@ -1668,9 +1455,7 @@ export class SavedShiftApi extends BaseAPI {
1668
1455
  * @memberof SavedShiftApi
1669
1456
  */
1670
1457
  rosterSave(id, options) {
1671
- return SavedShiftApiFp(this.configuration)
1672
- .rosterSave(id, options)
1673
- .then((request) => request(this.axios, this.basePath));
1458
+ return SavedShiftApiFp(this.configuration).rosterSave(id, options).then((request) => request(this.axios, this.basePath));
1674
1459
  }
1675
1460
  /**
1676
1461
  *
@@ -1682,9 +1467,7 @@ export class SavedShiftApi extends BaseAPI {
1682
1467
  * @memberof SavedShiftApi
1683
1468
  */
1684
1469
  updateSavedShift(id, updateParams, options) {
1685
- return SavedShiftApiFp(this.configuration)
1686
- .updateSavedShift(id, updateParams, options)
1687
- .then((request) => request(this.axios, this.basePath));
1470
+ return SavedShiftApiFp(this.configuration).updateSavedShift(id, updateParams, options).then((request) => request(this.axios, this.basePath));
1688
1471
  }
1689
1472
  }
1690
1473
  /**
@@ -1702,7 +1485,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
1702
1485
  */
1703
1486
  userCreatePost: async (createParams, options = {}) => {
1704
1487
  // verify required parameter 'createParams' is not null or undefined
1705
- assertParamExists("userCreatePost", "createParams", createParams);
1488
+ assertParamExists('userCreatePost', 'createParams', createParams);
1706
1489
  const localVarPath = `/user/create`;
1707
1490
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1708
1491
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -1710,23 +1493,15 @@ export const UserApiAxiosParamCreator = function (configuration) {
1710
1493
  if (configuration) {
1711
1494
  baseOptions = configuration.baseOptions;
1712
1495
  }
1713
- const localVarRequestOptions = {
1714
- method: "POST",
1715
- ...baseOptions,
1716
- ...options,
1717
- };
1496
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
1718
1497
  const localVarHeaderParameter = {};
1719
1498
  const localVarQueryParameter = {};
1720
1499
  // authentication BearerAuth required
1721
1500
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1722
- localVarHeaderParameter["Content-Type"] = "application/json";
1501
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1723
1502
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1724
1503
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1725
- localVarRequestOptions.headers = {
1726
- ...localVarHeaderParameter,
1727
- ...headersFromBaseOptions,
1728
- ...options.headers,
1729
- };
1504
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1730
1505
  localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
1731
1506
  return {
1732
1507
  url: toPathString(localVarUrlObj),
@@ -1749,28 +1524,20 @@ export const UserApiAxiosParamCreator = function (configuration) {
1749
1524
  if (configuration) {
1750
1525
  baseOptions = configuration.baseOptions;
1751
1526
  }
1752
- const localVarRequestOptions = {
1753
- method: "GET",
1754
- ...baseOptions,
1755
- ...options,
1756
- };
1527
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1757
1528
  const localVarHeaderParameter = {};
1758
1529
  const localVarQueryParameter = {};
1759
1530
  // authentication BearerAuth required
1760
1531
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1761
1532
  if (organId !== undefined) {
1762
- localVarQueryParameter["organId"] = organId;
1533
+ localVarQueryParameter['organId'] = organId;
1763
1534
  }
1764
1535
  if (gewisId !== undefined) {
1765
- localVarQueryParameter["gewisId"] = gewisId;
1536
+ localVarQueryParameter['gewisId'] = gewisId;
1766
1537
  }
1767
1538
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1768
1539
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1769
- localVarRequestOptions.headers = {
1770
- ...localVarHeaderParameter,
1771
- ...headersFromBaseOptions,
1772
- ...options.headers,
1773
- };
1540
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1774
1541
  return {
1775
1542
  url: toPathString(localVarUrlObj),
1776
1543
  options: localVarRequestOptions,
@@ -1785,30 +1552,23 @@ export const UserApiAxiosParamCreator = function (configuration) {
1785
1552
  */
1786
1553
  userIdDelete: async (id, options = {}) => {
1787
1554
  // verify required parameter 'id' is not null or undefined
1788
- assertParamExists("userIdDelete", "id", id);
1789
- const localVarPath = `/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1555
+ assertParamExists('userIdDelete', 'id', id);
1556
+ const localVarPath = `/user/{id}`
1557
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1790
1558
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1791
1559
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1792
1560
  let baseOptions;
1793
1561
  if (configuration) {
1794
1562
  baseOptions = configuration.baseOptions;
1795
1563
  }
1796
- const localVarRequestOptions = {
1797
- method: "DELETE",
1798
- ...baseOptions,
1799
- ...options,
1800
- };
1564
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1801
1565
  const localVarHeaderParameter = {};
1802
1566
  const localVarQueryParameter = {};
1803
1567
  // authentication BearerAuth required
1804
1568
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1805
1569
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1806
1570
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1807
- localVarRequestOptions.headers = {
1808
- ...localVarHeaderParameter,
1809
- ...headersFromBaseOptions,
1810
- ...options.headers,
1811
- };
1571
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1812
1572
  return {
1813
1573
  url: toPathString(localVarUrlObj),
1814
1574
  options: localVarRequestOptions,
@@ -1823,30 +1583,23 @@ export const UserApiAxiosParamCreator = function (configuration) {
1823
1583
  */
1824
1584
  userIdGet: async (id, options = {}) => {
1825
1585
  // verify required parameter 'id' is not null or undefined
1826
- assertParamExists("userIdGet", "id", id);
1827
- const localVarPath = `/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
1586
+ assertParamExists('userIdGet', 'id', id);
1587
+ const localVarPath = `/user/{id}`
1588
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1828
1589
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1829
1590
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1830
1591
  let baseOptions;
1831
1592
  if (configuration) {
1832
1593
  baseOptions = configuration.baseOptions;
1833
1594
  }
1834
- const localVarRequestOptions = {
1835
- method: "GET",
1836
- ...baseOptions,
1837
- ...options,
1838
- };
1595
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1839
1596
  const localVarHeaderParameter = {};
1840
1597
  const localVarQueryParameter = {};
1841
1598
  // authentication BearerAuth required
1842
1599
  await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
1843
1600
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1844
1601
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1845
- localVarRequestOptions.headers = {
1846
- ...localVarHeaderParameter,
1847
- ...headersFromBaseOptions,
1848
- ...options.headers,
1849
- };
1602
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1850
1603
  return {
1851
1604
  url: toPathString(localVarUrlObj),
1852
1605
  options: localVarRequestOptions,
@@ -1871,7 +1624,7 @@ export const UserApiFp = function (configuration) {
1871
1624
  async userCreatePost(createParams, options) {
1872
1625
  const localVarAxiosArgs = await localVarAxiosParamCreator.userCreatePost(createParams, options);
1873
1626
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1874
- const localVarOperationServerBasePath = operationServerMap["UserApi.userCreatePost"]?.[localVarOperationServerIndex]?.url;
1627
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userCreatePost']?.[localVarOperationServerIndex]?.url;
1875
1628
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1876
1629
  },
1877
1630
  /**
@@ -1885,8 +1638,7 @@ export const UserApiFp = function (configuration) {
1885
1638
  async userGet(organId, gewisId, options) {
1886
1639
  const localVarAxiosArgs = await localVarAxiosParamCreator.userGet(organId, gewisId, options);
1887
1640
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1888
- const localVarOperationServerBasePath = operationServerMap["UserApi.userGet"]?.[localVarOperationServerIndex]
1889
- ?.url;
1641
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userGet']?.[localVarOperationServerIndex]?.url;
1890
1642
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1891
1643
  },
1892
1644
  /**
@@ -1899,7 +1651,7 @@ export const UserApiFp = function (configuration) {
1899
1651
  async userIdDelete(id, options) {
1900
1652
  const localVarAxiosArgs = await localVarAxiosParamCreator.userIdDelete(id, options);
1901
1653
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1902
- const localVarOperationServerBasePath = operationServerMap["UserApi.userIdDelete"]?.[localVarOperationServerIndex]?.url;
1654
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userIdDelete']?.[localVarOperationServerIndex]?.url;
1903
1655
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1904
1656
  },
1905
1657
  /**
@@ -1912,8 +1664,7 @@ export const UserApiFp = function (configuration) {
1912
1664
  async userIdGet(id, options) {
1913
1665
  const localVarAxiosArgs = await localVarAxiosParamCreator.userIdGet(id, options);
1914
1666
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1915
- const localVarOperationServerBasePath = operationServerMap["UserApi.userIdGet"]?.[localVarOperationServerIndex]
1916
- ?.url;
1667
+ const localVarOperationServerBasePath = operationServerMap['UserApi.userIdGet']?.[localVarOperationServerIndex]?.url;
1917
1668
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1918
1669
  },
1919
1670
  };
@@ -1933,9 +1684,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
1933
1684
  * @throws {RequiredError}
1934
1685
  */
1935
1686
  userCreatePost(createParams, options) {
1936
- return localVarFp
1937
- .userCreatePost(createParams, options)
1938
- .then((request) => request(axios, basePath));
1687
+ return localVarFp.userCreatePost(createParams, options).then((request) => request(axios, basePath));
1939
1688
  },
1940
1689
  /**
1941
1690
  * Retrieve a list of users with optional query parameter filtering
@@ -1946,9 +1695,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
1946
1695
  * @throws {RequiredError}
1947
1696
  */
1948
1697
  userGet(organId, gewisId, options) {
1949
- return localVarFp
1950
- .userGet(organId, gewisId, options)
1951
- .then((request) => request(axios, basePath));
1698
+ return localVarFp.userGet(organId, gewisId, options).then((request) => request(axios, basePath));
1952
1699
  },
1953
1700
  /**
1954
1701
  *
@@ -1958,9 +1705,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
1958
1705
  * @throws {RequiredError}
1959
1706
  */
1960
1707
  userIdDelete(id, options) {
1961
- return localVarFp
1962
- .userIdDelete(id, options)
1963
- .then((request) => request(axios, basePath));
1708
+ return localVarFp.userIdDelete(id, options).then((request) => request(axios, basePath));
1964
1709
  },
1965
1710
  /**
1966
1711
  * Retrieve a specific user by their unique ID
@@ -1970,9 +1715,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
1970
1715
  * @throws {RequiredError}
1971
1716
  */
1972
1717
  userIdGet(id, options) {
1973
- return localVarFp
1974
- .userIdGet(id, options)
1975
- .then((request) => request(axios, basePath));
1718
+ return localVarFp.userIdGet(id, options).then((request) => request(axios, basePath));
1976
1719
  },
1977
1720
  };
1978
1721
  };
@@ -1992,9 +1735,7 @@ export class UserApi extends BaseAPI {
1992
1735
  * @memberof UserApi
1993
1736
  */
1994
1737
  userCreatePost(createParams, options) {
1995
- return UserApiFp(this.configuration)
1996
- .userCreatePost(createParams, options)
1997
- .then((request) => request(this.axios, this.basePath));
1738
+ return UserApiFp(this.configuration).userCreatePost(createParams, options).then((request) => request(this.axios, this.basePath));
1998
1739
  }
1999
1740
  /**
2000
1741
  * Retrieve a list of users with optional query parameter filtering
@@ -2006,9 +1747,7 @@ export class UserApi extends BaseAPI {
2006
1747
  * @memberof UserApi
2007
1748
  */
2008
1749
  userGet(organId, gewisId, options) {
2009
- return UserApiFp(this.configuration)
2010
- .userGet(organId, gewisId, options)
2011
- .then((request) => request(this.axios, this.basePath));
1750
+ return UserApiFp(this.configuration).userGet(organId, gewisId, options).then((request) => request(this.axios, this.basePath));
2012
1751
  }
2013
1752
  /**
2014
1753
  *
@@ -2019,9 +1758,7 @@ export class UserApi extends BaseAPI {
2019
1758
  * @memberof UserApi
2020
1759
  */
2021
1760
  userIdDelete(id, options) {
2022
- return UserApiFp(this.configuration)
2023
- .userIdDelete(id, options)
2024
- .then((request) => request(this.axios, this.basePath));
1761
+ return UserApiFp(this.configuration).userIdDelete(id, options).then((request) => request(this.axios, this.basePath));
2025
1762
  }
2026
1763
  /**
2027
1764
  * Retrieve a specific user by their unique ID
@@ -2032,9 +1769,7 @@ export class UserApi extends BaseAPI {
2032
1769
  * @memberof UserApi
2033
1770
  */
2034
1771
  userIdGet(id, options) {
2035
- return UserApiFp(this.configuration)
2036
- .userIdGet(id, options)
2037
- .then((request) => request(this.axios, this.basePath));
1772
+ return UserApiFp(this.configuration).userIdGet(id, options).then((request) => request(this.axios, this.basePath));
2038
1773
  }
2039
1774
  }
2040
1775
  //# sourceMappingURL=api.js.map