@gewis/grooster-backend-ts 1.4.3 → 1.4.5
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 +230 -257
- package/dist/api.js.map +1 -1
- package/dist/base.js +7 -12
- package/dist/base.js.map +1 -1
- package/dist/common.js +12 -24
- package/dist/common.js.map +1 -1
- package/dist/configuration.js +1 -5
- package/dist/configuration.js.map +1 -1
- package/dist/index.js +2 -18
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* tslint:disable */
|
|
3
2
|
/* eslint-disable */
|
|
4
3
|
/**
|
|
@@ -12,19 +11,17 @@
|
|
|
12
11
|
* https://openapi-generator.tech
|
|
13
12
|
* Do not edit the class manually.
|
|
14
13
|
*/
|
|
15
|
-
|
|
16
|
-
exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.SavedShiftApi = exports.SavedShiftApiFactory = exports.SavedShiftApiFp = exports.SavedShiftApiAxiosParamCreator = exports.RosterShiftApi = exports.RosterShiftApiFactory = exports.RosterShiftApiFp = exports.RosterShiftApiAxiosParamCreator = exports.RosterAnswerApi = exports.RosterAnswerApiFactory = exports.RosterAnswerApiFp = exports.RosterAnswerApiAxiosParamCreator = exports.RosterApi = exports.RosterApiFactory = exports.RosterApiFp = exports.RosterApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = void 0;
|
|
17
|
-
const axios_1 = require("axios");
|
|
14
|
+
import globalAxios from "axios";
|
|
18
15
|
// Some imports not used depending on template conditions
|
|
19
16
|
// @ts-ignore
|
|
20
|
-
|
|
17
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, } from "./common";
|
|
21
18
|
// @ts-ignore
|
|
22
|
-
|
|
19
|
+
import { BASE_PATH, BaseAPI, operationServerMap, } from "./base";
|
|
23
20
|
/**
|
|
24
21
|
* AuthApi - axios parameter creator
|
|
25
22
|
* @export
|
|
26
23
|
*/
|
|
27
|
-
const AuthApiAxiosParamCreator = function (configuration) {
|
|
24
|
+
export const AuthApiAxiosParamCreator = function (configuration) {
|
|
28
25
|
return {
|
|
29
26
|
/**
|
|
30
27
|
* Validates state, exchanges code for token, and returns user info
|
|
@@ -36,12 +33,12 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
36
33
|
*/
|
|
37
34
|
authCallbackGet: async (state, code, options = {}) => {
|
|
38
35
|
// verify required parameter 'state' is not null or undefined
|
|
39
|
-
|
|
36
|
+
assertParamExists("authCallbackGet", "state", state);
|
|
40
37
|
// verify required parameter 'code' is not null or undefined
|
|
41
|
-
|
|
38
|
+
assertParamExists("authCallbackGet", "code", code);
|
|
42
39
|
const localVarPath = `/auth/callback`;
|
|
43
40
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
41
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
45
42
|
let baseOptions;
|
|
46
43
|
if (configuration) {
|
|
47
44
|
baseOptions = configuration.baseOptions;
|
|
@@ -59,7 +56,7 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
59
56
|
if (code !== undefined) {
|
|
60
57
|
localVarQueryParameter["code"] = code;
|
|
61
58
|
}
|
|
62
|
-
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
63
60
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
64
61
|
localVarRequestOptions.headers = {
|
|
65
62
|
...localVarHeaderParameter,
|
|
@@ -67,7 +64,7 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
67
64
|
...options.headers,
|
|
68
65
|
};
|
|
69
66
|
return {
|
|
70
|
-
url:
|
|
67
|
+
url: toPathString(localVarUrlObj),
|
|
71
68
|
options: localVarRequestOptions,
|
|
72
69
|
};
|
|
73
70
|
},
|
|
@@ -80,10 +77,10 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
80
77
|
*/
|
|
81
78
|
authRedirectGet: async (state, options = {}) => {
|
|
82
79
|
// verify required parameter 'state' is not null or undefined
|
|
83
|
-
|
|
80
|
+
assertParamExists("authRedirectGet", "state", state);
|
|
84
81
|
const localVarPath = `/auth/redirect`;
|
|
85
82
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
86
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
83
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
87
84
|
let baseOptions;
|
|
88
85
|
if (configuration) {
|
|
89
86
|
baseOptions = configuration.baseOptions;
|
|
@@ -98,7 +95,7 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
98
95
|
if (state !== undefined) {
|
|
99
96
|
localVarQueryParameter["state"] = state;
|
|
100
97
|
}
|
|
101
|
-
|
|
98
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
102
99
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
103
100
|
localVarRequestOptions.headers = {
|
|
104
101
|
...localVarHeaderParameter,
|
|
@@ -106,19 +103,18 @@ const AuthApiAxiosParamCreator = function (configuration) {
|
|
|
106
103
|
...options.headers,
|
|
107
104
|
};
|
|
108
105
|
return {
|
|
109
|
-
url:
|
|
106
|
+
url: toPathString(localVarUrlObj),
|
|
110
107
|
options: localVarRequestOptions,
|
|
111
108
|
};
|
|
112
109
|
},
|
|
113
110
|
};
|
|
114
111
|
};
|
|
115
|
-
exports.AuthApiAxiosParamCreator = AuthApiAxiosParamCreator;
|
|
116
112
|
/**
|
|
117
113
|
* AuthApi - functional programming interface
|
|
118
114
|
* @export
|
|
119
115
|
*/
|
|
120
|
-
const AuthApiFp = function (configuration) {
|
|
121
|
-
const localVarAxiosParamCreator =
|
|
116
|
+
export const AuthApiFp = function (configuration) {
|
|
117
|
+
const localVarAxiosParamCreator = AuthApiAxiosParamCreator(configuration);
|
|
122
118
|
return {
|
|
123
119
|
/**
|
|
124
120
|
* Validates state, exchanges code for token, and returns user info
|
|
@@ -131,8 +127,8 @@ const AuthApiFp = function (configuration) {
|
|
|
131
127
|
async authCallbackGet(state, code, options) {
|
|
132
128
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authCallbackGet(state, code, options);
|
|
133
129
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
134
|
-
const localVarOperationServerBasePath =
|
|
135
|
-
return (axios, basePath) =>
|
|
130
|
+
const localVarOperationServerBasePath = operationServerMap["AuthApi.authCallbackGet"]?.[localVarOperationServerIndex]?.url;
|
|
131
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
136
132
|
},
|
|
137
133
|
/**
|
|
138
134
|
* Generates state, sets a cookie, and redirects to Google OIDC
|
|
@@ -144,18 +140,17 @@ const AuthApiFp = function (configuration) {
|
|
|
144
140
|
async authRedirectGet(state, options) {
|
|
145
141
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authRedirectGet(state, options);
|
|
146
142
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
147
|
-
const localVarOperationServerBasePath =
|
|
148
|
-
return (axios, basePath) =>
|
|
143
|
+
const localVarOperationServerBasePath = operationServerMap["AuthApi.authRedirectGet"]?.[localVarOperationServerIndex]?.url;
|
|
144
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
149
145
|
},
|
|
150
146
|
};
|
|
151
147
|
};
|
|
152
|
-
exports.AuthApiFp = AuthApiFp;
|
|
153
148
|
/**
|
|
154
149
|
* AuthApi - factory interface
|
|
155
150
|
* @export
|
|
156
151
|
*/
|
|
157
|
-
const AuthApiFactory = function (configuration, basePath, axios) {
|
|
158
|
-
const localVarFp =
|
|
152
|
+
export const AuthApiFactory = function (configuration, basePath, axios) {
|
|
153
|
+
const localVarFp = AuthApiFp(configuration);
|
|
159
154
|
return {
|
|
160
155
|
/**
|
|
161
156
|
* Validates state, exchanges code for token, and returns user info
|
|
@@ -184,14 +179,13 @@ const AuthApiFactory = function (configuration, basePath, axios) {
|
|
|
184
179
|
},
|
|
185
180
|
};
|
|
186
181
|
};
|
|
187
|
-
exports.AuthApiFactory = AuthApiFactory;
|
|
188
182
|
/**
|
|
189
183
|
* AuthApi - object-oriented interface
|
|
190
184
|
* @export
|
|
191
185
|
* @class AuthApi
|
|
192
186
|
* @extends {BaseAPI}
|
|
193
187
|
*/
|
|
194
|
-
class AuthApi extends
|
|
188
|
+
export class AuthApi extends BaseAPI {
|
|
195
189
|
/**
|
|
196
190
|
* Validates state, exchanges code for token, and returns user info
|
|
197
191
|
* @summary Handle OAuth2 Callback
|
|
@@ -202,7 +196,7 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
202
196
|
* @memberof AuthApi
|
|
203
197
|
*/
|
|
204
198
|
authCallbackGet(state, code, options) {
|
|
205
|
-
return
|
|
199
|
+
return AuthApiFp(this.configuration)
|
|
206
200
|
.authCallbackGet(state, code, options)
|
|
207
201
|
.then((request) => request(this.axios, this.basePath));
|
|
208
202
|
}
|
|
@@ -215,17 +209,16 @@ class AuthApi extends base_1.BaseAPI {
|
|
|
215
209
|
* @memberof AuthApi
|
|
216
210
|
*/
|
|
217
211
|
authRedirectGet(state, options) {
|
|
218
|
-
return
|
|
212
|
+
return AuthApiFp(this.configuration)
|
|
219
213
|
.authRedirectGet(state, options)
|
|
220
214
|
.then((request) => request(this.axios, this.basePath));
|
|
221
215
|
}
|
|
222
216
|
}
|
|
223
|
-
exports.AuthApi = AuthApi;
|
|
224
217
|
/**
|
|
225
218
|
* RosterApi - axios parameter creator
|
|
226
219
|
* @export
|
|
227
220
|
*/
|
|
228
|
-
const RosterApiAxiosParamCreator = function (configuration) {
|
|
221
|
+
export const RosterApiAxiosParamCreator = function (configuration) {
|
|
229
222
|
return {
|
|
230
223
|
/**
|
|
231
224
|
*
|
|
@@ -236,10 +229,10 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
236
229
|
*/
|
|
237
230
|
createRoster: async (createParams, options = {}) => {
|
|
238
231
|
// verify required parameter 'createParams' is not null or undefined
|
|
239
|
-
|
|
232
|
+
assertParamExists("createRoster", "createParams", createParams);
|
|
240
233
|
const localVarPath = `/roster`;
|
|
241
234
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
242
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
235
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
243
236
|
let baseOptions;
|
|
244
237
|
if (configuration) {
|
|
245
238
|
baseOptions = configuration.baseOptions;
|
|
@@ -252,18 +245,18 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
252
245
|
const localVarHeaderParameter = {};
|
|
253
246
|
const localVarQueryParameter = {};
|
|
254
247
|
// authentication BearerAuth required
|
|
255
|
-
await
|
|
248
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
256
249
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
257
|
-
|
|
250
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
258
251
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
259
252
|
localVarRequestOptions.headers = {
|
|
260
253
|
...localVarHeaderParameter,
|
|
261
254
|
...headersFromBaseOptions,
|
|
262
255
|
...options.headers,
|
|
263
256
|
};
|
|
264
|
-
localVarRequestOptions.data =
|
|
257
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
|
|
265
258
|
return {
|
|
266
|
-
url:
|
|
259
|
+
url: toPathString(localVarUrlObj),
|
|
267
260
|
options: localVarRequestOptions,
|
|
268
261
|
};
|
|
269
262
|
},
|
|
@@ -277,7 +270,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
277
270
|
createRosterTemplate: async (params, options = {}) => {
|
|
278
271
|
const localVarPath = `/roster/template`;
|
|
279
272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
273
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
281
274
|
let baseOptions;
|
|
282
275
|
if (configuration) {
|
|
283
276
|
baseOptions = configuration.baseOptions;
|
|
@@ -290,18 +283,18 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
290
283
|
const localVarHeaderParameter = {};
|
|
291
284
|
const localVarQueryParameter = {};
|
|
292
285
|
// authentication BearerAuth required
|
|
293
|
-
await
|
|
286
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
294
287
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
295
|
-
|
|
288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
296
289
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
297
290
|
localVarRequestOptions.headers = {
|
|
298
291
|
...localVarHeaderParameter,
|
|
299
292
|
...headersFromBaseOptions,
|
|
300
293
|
...options.headers,
|
|
301
294
|
};
|
|
302
|
-
localVarRequestOptions.data =
|
|
295
|
+
localVarRequestOptions.data = serializeDataIfNeeded(params, localVarRequestOptions, configuration);
|
|
303
296
|
return {
|
|
304
|
-
url:
|
|
297
|
+
url: toPathString(localVarUrlObj),
|
|
305
298
|
options: localVarRequestOptions,
|
|
306
299
|
};
|
|
307
300
|
},
|
|
@@ -314,10 +307,10 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
314
307
|
*/
|
|
315
308
|
deleteRoster: async (id, options = {}) => {
|
|
316
309
|
// verify required parameter 'id' is not null or undefined
|
|
317
|
-
|
|
310
|
+
assertParamExists("deleteRoster", "id", id);
|
|
318
311
|
const localVarPath = `/roster/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
319
312
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
313
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
314
|
let baseOptions;
|
|
322
315
|
if (configuration) {
|
|
323
316
|
baseOptions = configuration.baseOptions;
|
|
@@ -330,8 +323,8 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
330
323
|
const localVarHeaderParameter = {};
|
|
331
324
|
const localVarQueryParameter = {};
|
|
332
325
|
// authentication BearerAuth required
|
|
333
|
-
await
|
|
334
|
-
|
|
326
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
327
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
335
328
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
329
|
localVarRequestOptions.headers = {
|
|
337
330
|
...localVarHeaderParameter,
|
|
@@ -339,7 +332,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
339
332
|
...options.headers,
|
|
340
333
|
};
|
|
341
334
|
return {
|
|
342
|
-
url:
|
|
335
|
+
url: toPathString(localVarUrlObj),
|
|
343
336
|
options: localVarRequestOptions,
|
|
344
337
|
};
|
|
345
338
|
},
|
|
@@ -352,10 +345,10 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
352
345
|
*/
|
|
353
346
|
deleteRosterTemplate: async (id, options = {}) => {
|
|
354
347
|
// verify required parameter 'id' is not null or undefined
|
|
355
|
-
|
|
348
|
+
assertParamExists("deleteRosterTemplate", "id", id);
|
|
356
349
|
const localVarPath = `/roster/template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
357
350
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
358
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
351
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
359
352
|
let baseOptions;
|
|
360
353
|
if (configuration) {
|
|
361
354
|
baseOptions = configuration.baseOptions;
|
|
@@ -368,8 +361,8 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
368
361
|
const localVarHeaderParameter = {};
|
|
369
362
|
const localVarQueryParameter = {};
|
|
370
363
|
// authentication BearerAuth required
|
|
371
|
-
await
|
|
372
|
-
|
|
364
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
365
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
373
366
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
374
367
|
localVarRequestOptions.headers = {
|
|
375
368
|
...localVarHeaderParameter,
|
|
@@ -377,7 +370,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
377
370
|
...options.headers,
|
|
378
371
|
};
|
|
379
372
|
return {
|
|
380
|
-
url:
|
|
373
|
+
url: toPathString(localVarUrlObj),
|
|
381
374
|
options: localVarRequestOptions,
|
|
382
375
|
};
|
|
383
376
|
},
|
|
@@ -390,10 +383,10 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
390
383
|
*/
|
|
391
384
|
getRoster: async (id, options = {}) => {
|
|
392
385
|
// verify required parameter 'id' is not null or undefined
|
|
393
|
-
|
|
386
|
+
assertParamExists("getRoster", "id", id);
|
|
394
387
|
const localVarPath = `/roster/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
395
388
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
396
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
389
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
397
390
|
let baseOptions;
|
|
398
391
|
if (configuration) {
|
|
399
392
|
baseOptions = configuration.baseOptions;
|
|
@@ -406,8 +399,8 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
406
399
|
const localVarHeaderParameter = {};
|
|
407
400
|
const localVarQueryParameter = {};
|
|
408
401
|
// authentication BearerAuth required
|
|
409
|
-
await
|
|
410
|
-
|
|
402
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
403
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
411
404
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
412
405
|
localVarRequestOptions.headers = {
|
|
413
406
|
...localVarHeaderParameter,
|
|
@@ -415,7 +408,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
415
408
|
...options.headers,
|
|
416
409
|
};
|
|
417
410
|
return {
|
|
418
|
-
url:
|
|
411
|
+
url: toPathString(localVarUrlObj),
|
|
419
412
|
options: localVarRequestOptions,
|
|
420
413
|
};
|
|
421
414
|
},
|
|
@@ -428,10 +421,10 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
428
421
|
*/
|
|
429
422
|
getRosterTemplate: async (id, options = {}) => {
|
|
430
423
|
// verify required parameter 'id' is not null or undefined
|
|
431
|
-
|
|
424
|
+
assertParamExists("getRosterTemplate", "id", id);
|
|
432
425
|
const localVarPath = `/roster/template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
433
426
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
434
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
427
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
435
428
|
let baseOptions;
|
|
436
429
|
if (configuration) {
|
|
437
430
|
baseOptions = configuration.baseOptions;
|
|
@@ -444,8 +437,8 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
444
437
|
const localVarHeaderParameter = {};
|
|
445
438
|
const localVarQueryParameter = {};
|
|
446
439
|
// authentication BearerAuth required
|
|
447
|
-
await
|
|
448
|
-
|
|
440
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
441
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
449
442
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
450
443
|
localVarRequestOptions.headers = {
|
|
451
444
|
...localVarHeaderParameter,
|
|
@@ -453,7 +446,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
453
446
|
...options.headers,
|
|
454
447
|
};
|
|
455
448
|
return {
|
|
456
|
-
url:
|
|
449
|
+
url: toPathString(localVarUrlObj),
|
|
457
450
|
options: localVarRequestOptions,
|
|
458
451
|
};
|
|
459
452
|
},
|
|
@@ -467,7 +460,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
467
460
|
getRosterTemplates: async (organId, options = {}) => {
|
|
468
461
|
const localVarPath = `/roster/template`;
|
|
469
462
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
470
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
463
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
471
464
|
let baseOptions;
|
|
472
465
|
if (configuration) {
|
|
473
466
|
baseOptions = configuration.baseOptions;
|
|
@@ -480,11 +473,11 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
480
473
|
const localVarHeaderParameter = {};
|
|
481
474
|
const localVarQueryParameter = {};
|
|
482
475
|
// authentication BearerAuth required
|
|
483
|
-
await
|
|
476
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
484
477
|
if (organId !== undefined) {
|
|
485
478
|
localVarQueryParameter["organId"] = organId;
|
|
486
479
|
}
|
|
487
|
-
|
|
480
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
488
481
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
489
482
|
localVarRequestOptions.headers = {
|
|
490
483
|
...localVarHeaderParameter,
|
|
@@ -492,7 +485,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
492
485
|
...options.headers,
|
|
493
486
|
};
|
|
494
487
|
return {
|
|
495
|
-
url:
|
|
488
|
+
url: toPathString(localVarUrlObj),
|
|
496
489
|
options: localVarRequestOptions,
|
|
497
490
|
};
|
|
498
491
|
},
|
|
@@ -507,7 +500,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
507
500
|
getRosters: async (date, organId, options = {}) => {
|
|
508
501
|
const localVarPath = `/roster`;
|
|
509
502
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
510
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
503
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
511
504
|
let baseOptions;
|
|
512
505
|
if (configuration) {
|
|
513
506
|
baseOptions = configuration.baseOptions;
|
|
@@ -520,14 +513,14 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
520
513
|
const localVarHeaderParameter = {};
|
|
521
514
|
const localVarQueryParameter = {};
|
|
522
515
|
// authentication BearerAuth required
|
|
523
|
-
await
|
|
516
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
524
517
|
if (date !== undefined) {
|
|
525
518
|
localVarQueryParameter["date"] = date;
|
|
526
519
|
}
|
|
527
520
|
if (organId !== undefined) {
|
|
528
521
|
localVarQueryParameter["organId"] = organId;
|
|
529
522
|
}
|
|
530
|
-
|
|
523
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
531
524
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
532
525
|
localVarRequestOptions.headers = {
|
|
533
526
|
...localVarHeaderParameter,
|
|
@@ -535,7 +528,7 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
535
528
|
...options.headers,
|
|
536
529
|
};
|
|
537
530
|
return {
|
|
538
|
-
url:
|
|
531
|
+
url: toPathString(localVarUrlObj),
|
|
539
532
|
options: localVarRequestOptions,
|
|
540
533
|
};
|
|
541
534
|
},
|
|
@@ -549,12 +542,12 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
549
542
|
*/
|
|
550
543
|
updateRoster: async (id, updateParams, options = {}) => {
|
|
551
544
|
// verify required parameter 'id' is not null or undefined
|
|
552
|
-
|
|
545
|
+
assertParamExists("updateRoster", "id", id);
|
|
553
546
|
// verify required parameter 'updateParams' is not null or undefined
|
|
554
|
-
|
|
547
|
+
assertParamExists("updateRoster", "updateParams", updateParams);
|
|
555
548
|
const localVarPath = `/roster/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
556
549
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
557
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
550
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
558
551
|
let baseOptions;
|
|
559
552
|
if (configuration) {
|
|
560
553
|
baseOptions = configuration.baseOptions;
|
|
@@ -567,18 +560,18 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
567
560
|
const localVarHeaderParameter = {};
|
|
568
561
|
const localVarQueryParameter = {};
|
|
569
562
|
// authentication BearerAuth required
|
|
570
|
-
await
|
|
563
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
571
564
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
572
|
-
|
|
565
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
573
566
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
574
567
|
localVarRequestOptions.headers = {
|
|
575
568
|
...localVarHeaderParameter,
|
|
576
569
|
...headersFromBaseOptions,
|
|
577
570
|
...options.headers,
|
|
578
571
|
};
|
|
579
|
-
localVarRequestOptions.data =
|
|
572
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateParams, localVarRequestOptions, configuration);
|
|
580
573
|
return {
|
|
581
|
-
url:
|
|
574
|
+
url: toPathString(localVarUrlObj),
|
|
582
575
|
options: localVarRequestOptions,
|
|
583
576
|
};
|
|
584
577
|
},
|
|
@@ -592,10 +585,10 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
592
585
|
*/
|
|
593
586
|
updateRosterTemplate: async (id, params, options = {}) => {
|
|
594
587
|
// verify required parameter 'id' is not null or undefined
|
|
595
|
-
|
|
588
|
+
assertParamExists("updateRosterTemplate", "id", id);
|
|
596
589
|
const localVarPath = `/roster/template/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
597
590
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
598
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
591
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
599
592
|
let baseOptions;
|
|
600
593
|
if (configuration) {
|
|
601
594
|
baseOptions = configuration.baseOptions;
|
|
@@ -608,30 +601,29 @@ const RosterApiAxiosParamCreator = function (configuration) {
|
|
|
608
601
|
const localVarHeaderParameter = {};
|
|
609
602
|
const localVarQueryParameter = {};
|
|
610
603
|
// authentication BearerAuth required
|
|
611
|
-
await
|
|
604
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
612
605
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
613
|
-
|
|
606
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
614
607
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
615
608
|
localVarRequestOptions.headers = {
|
|
616
609
|
...localVarHeaderParameter,
|
|
617
610
|
...headersFromBaseOptions,
|
|
618
611
|
...options.headers,
|
|
619
612
|
};
|
|
620
|
-
localVarRequestOptions.data =
|
|
613
|
+
localVarRequestOptions.data = serializeDataIfNeeded(params, localVarRequestOptions, configuration);
|
|
621
614
|
return {
|
|
622
|
-
url:
|
|
615
|
+
url: toPathString(localVarUrlObj),
|
|
623
616
|
options: localVarRequestOptions,
|
|
624
617
|
};
|
|
625
618
|
},
|
|
626
619
|
};
|
|
627
620
|
};
|
|
628
|
-
exports.RosterApiAxiosParamCreator = RosterApiAxiosParamCreator;
|
|
629
621
|
/**
|
|
630
622
|
* RosterApi - functional programming interface
|
|
631
623
|
* @export
|
|
632
624
|
*/
|
|
633
|
-
const RosterApiFp = function (configuration) {
|
|
634
|
-
const localVarAxiosParamCreator =
|
|
625
|
+
export const RosterApiFp = function (configuration) {
|
|
626
|
+
const localVarAxiosParamCreator = RosterApiAxiosParamCreator(configuration);
|
|
635
627
|
return {
|
|
636
628
|
/**
|
|
637
629
|
*
|
|
@@ -643,8 +635,8 @@ const RosterApiFp = function (configuration) {
|
|
|
643
635
|
async createRoster(createParams, options) {
|
|
644
636
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRoster(createParams, options);
|
|
645
637
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
646
|
-
const localVarOperationServerBasePath =
|
|
647
|
-
return (axios, basePath) =>
|
|
638
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.createRoster"]?.[localVarOperationServerIndex]?.url;
|
|
639
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
648
640
|
},
|
|
649
641
|
/**
|
|
650
642
|
*
|
|
@@ -656,8 +648,8 @@ const RosterApiFp = function (configuration) {
|
|
|
656
648
|
async createRosterTemplate(params, options) {
|
|
657
649
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRosterTemplate(params, options);
|
|
658
650
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
659
|
-
const localVarOperationServerBasePath =
|
|
660
|
-
return (axios, basePath) =>
|
|
651
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.createRosterTemplate"]?.[localVarOperationServerIndex]?.url;
|
|
652
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
661
653
|
},
|
|
662
654
|
/**
|
|
663
655
|
*
|
|
@@ -669,8 +661,8 @@ const RosterApiFp = function (configuration) {
|
|
|
669
661
|
async deleteRoster(id, options) {
|
|
670
662
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoster(id, options);
|
|
671
663
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
672
|
-
const localVarOperationServerBasePath =
|
|
673
|
-
return (axios, basePath) =>
|
|
664
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.deleteRoster"]?.[localVarOperationServerIndex]?.url;
|
|
665
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
674
666
|
},
|
|
675
667
|
/**
|
|
676
668
|
*
|
|
@@ -682,8 +674,8 @@ const RosterApiFp = function (configuration) {
|
|
|
682
674
|
async deleteRosterTemplate(id, options) {
|
|
683
675
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRosterTemplate(id, options);
|
|
684
676
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
685
|
-
const localVarOperationServerBasePath =
|
|
686
|
-
return (axios, basePath) =>
|
|
677
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.deleteRosterTemplate"]?.[localVarOperationServerIndex]?.url;
|
|
678
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
687
679
|
},
|
|
688
680
|
/**
|
|
689
681
|
*
|
|
@@ -695,8 +687,8 @@ const RosterApiFp = function (configuration) {
|
|
|
695
687
|
async getRoster(id, options) {
|
|
696
688
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRoster(id, options);
|
|
697
689
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
698
|
-
const localVarOperationServerBasePath =
|
|
699
|
-
return (axios, basePath) =>
|
|
690
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.getRoster"]?.[localVarOperationServerIndex]?.url;
|
|
691
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
700
692
|
},
|
|
701
693
|
/**
|
|
702
694
|
*
|
|
@@ -708,8 +700,8 @@ const RosterApiFp = function (configuration) {
|
|
|
708
700
|
async getRosterTemplate(id, options) {
|
|
709
701
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterTemplate(id, options);
|
|
710
702
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
711
|
-
const localVarOperationServerBasePath =
|
|
712
|
-
return (axios, basePath) =>
|
|
703
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.getRosterTemplate"]?.[localVarOperationServerIndex]?.url;
|
|
704
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
713
705
|
},
|
|
714
706
|
/**
|
|
715
707
|
*
|
|
@@ -721,8 +713,8 @@ const RosterApiFp = function (configuration) {
|
|
|
721
713
|
async getRosterTemplates(organId, options) {
|
|
722
714
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRosterTemplates(organId, options);
|
|
723
715
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
724
|
-
const localVarOperationServerBasePath =
|
|
725
|
-
return (axios, basePath) =>
|
|
716
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.getRosterTemplates"]?.[localVarOperationServerIndex]?.url;
|
|
717
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
726
718
|
},
|
|
727
719
|
/**
|
|
728
720
|
*
|
|
@@ -735,8 +727,8 @@ const RosterApiFp = function (configuration) {
|
|
|
735
727
|
async getRosters(date, organId, options) {
|
|
736
728
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getRosters(date, organId, options);
|
|
737
729
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
738
|
-
const localVarOperationServerBasePath =
|
|
739
|
-
return (axios, basePath) =>
|
|
730
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.getRosters"]?.[localVarOperationServerIndex]?.url;
|
|
731
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
740
732
|
},
|
|
741
733
|
/**
|
|
742
734
|
*
|
|
@@ -749,8 +741,8 @@ const RosterApiFp = function (configuration) {
|
|
|
749
741
|
async updateRoster(id, updateParams, options) {
|
|
750
742
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRoster(id, updateParams, options);
|
|
751
743
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
752
|
-
const localVarOperationServerBasePath =
|
|
753
|
-
return (axios, basePath) =>
|
|
744
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.updateRoster"]?.[localVarOperationServerIndex]?.url;
|
|
745
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
754
746
|
},
|
|
755
747
|
/**
|
|
756
748
|
*
|
|
@@ -763,18 +755,17 @@ const RosterApiFp = function (configuration) {
|
|
|
763
755
|
async updateRosterTemplate(id, params, options) {
|
|
764
756
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRosterTemplate(id, params, options);
|
|
765
757
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
766
|
-
const localVarOperationServerBasePath =
|
|
767
|
-
return (axios, basePath) =>
|
|
758
|
+
const localVarOperationServerBasePath = operationServerMap["RosterApi.updateRosterTemplate"]?.[localVarOperationServerIndex]?.url;
|
|
759
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
768
760
|
},
|
|
769
761
|
};
|
|
770
762
|
};
|
|
771
|
-
exports.RosterApiFp = RosterApiFp;
|
|
772
763
|
/**
|
|
773
764
|
* RosterApi - factory interface
|
|
774
765
|
* @export
|
|
775
766
|
*/
|
|
776
|
-
const RosterApiFactory = function (configuration, basePath, axios) {
|
|
777
|
-
const localVarFp =
|
|
767
|
+
export const RosterApiFactory = function (configuration, basePath, axios) {
|
|
768
|
+
const localVarFp = RosterApiFp(configuration);
|
|
778
769
|
return {
|
|
779
770
|
/**
|
|
780
771
|
*
|
|
@@ -901,14 +892,13 @@ const RosterApiFactory = function (configuration, basePath, axios) {
|
|
|
901
892
|
},
|
|
902
893
|
};
|
|
903
894
|
};
|
|
904
|
-
exports.RosterApiFactory = RosterApiFactory;
|
|
905
895
|
/**
|
|
906
896
|
* RosterApi - object-oriented interface
|
|
907
897
|
* @export
|
|
908
898
|
* @class RosterApi
|
|
909
899
|
* @extends {BaseAPI}
|
|
910
900
|
*/
|
|
911
|
-
class RosterApi extends
|
|
901
|
+
export class RosterApi extends BaseAPI {
|
|
912
902
|
/**
|
|
913
903
|
*
|
|
914
904
|
* @summary CreateRoster a new roster
|
|
@@ -918,7 +908,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
918
908
|
* @memberof RosterApi
|
|
919
909
|
*/
|
|
920
910
|
createRoster(createParams, options) {
|
|
921
|
-
return
|
|
911
|
+
return RosterApiFp(this.configuration)
|
|
922
912
|
.createRoster(createParams, options)
|
|
923
913
|
.then((request) => request(this.axios, this.basePath));
|
|
924
914
|
}
|
|
@@ -931,7 +921,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
931
921
|
* @memberof RosterApi
|
|
932
922
|
*/
|
|
933
923
|
createRosterTemplate(params, options) {
|
|
934
|
-
return
|
|
924
|
+
return RosterApiFp(this.configuration)
|
|
935
925
|
.createRosterTemplate(params, options)
|
|
936
926
|
.then((request) => request(this.axios, this.basePath));
|
|
937
927
|
}
|
|
@@ -944,7 +934,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
944
934
|
* @memberof RosterApi
|
|
945
935
|
*/
|
|
946
936
|
deleteRoster(id, options) {
|
|
947
|
-
return
|
|
937
|
+
return RosterApiFp(this.configuration)
|
|
948
938
|
.deleteRoster(id, options)
|
|
949
939
|
.then((request) => request(this.axios, this.basePath));
|
|
950
940
|
}
|
|
@@ -957,7 +947,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
957
947
|
* @memberof RosterApi
|
|
958
948
|
*/
|
|
959
949
|
deleteRosterTemplate(id, options) {
|
|
960
|
-
return
|
|
950
|
+
return RosterApiFp(this.configuration)
|
|
961
951
|
.deleteRosterTemplate(id, options)
|
|
962
952
|
.then((request) => request(this.axios, this.basePath));
|
|
963
953
|
}
|
|
@@ -970,7 +960,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
970
960
|
* @memberof RosterApi
|
|
971
961
|
*/
|
|
972
962
|
getRoster(id, options) {
|
|
973
|
-
return
|
|
963
|
+
return RosterApiFp(this.configuration)
|
|
974
964
|
.getRoster(id, options)
|
|
975
965
|
.then((request) => request(this.axios, this.basePath));
|
|
976
966
|
}
|
|
@@ -983,7 +973,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
983
973
|
* @memberof RosterApi
|
|
984
974
|
*/
|
|
985
975
|
getRosterTemplate(id, options) {
|
|
986
|
-
return
|
|
976
|
+
return RosterApiFp(this.configuration)
|
|
987
977
|
.getRosterTemplate(id, options)
|
|
988
978
|
.then((request) => request(this.axios, this.basePath));
|
|
989
979
|
}
|
|
@@ -996,7 +986,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
996
986
|
* @memberof RosterApi
|
|
997
987
|
*/
|
|
998
988
|
getRosterTemplates(organId, options) {
|
|
999
|
-
return
|
|
989
|
+
return RosterApiFp(this.configuration)
|
|
1000
990
|
.getRosterTemplates(organId, options)
|
|
1001
991
|
.then((request) => request(this.axios, this.basePath));
|
|
1002
992
|
}
|
|
@@ -1010,7 +1000,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
1010
1000
|
* @memberof RosterApi
|
|
1011
1001
|
*/
|
|
1012
1002
|
getRosters(date, organId, options) {
|
|
1013
|
-
return
|
|
1003
|
+
return RosterApiFp(this.configuration)
|
|
1014
1004
|
.getRosters(date, organId, options)
|
|
1015
1005
|
.then((request) => request(this.axios, this.basePath));
|
|
1016
1006
|
}
|
|
@@ -1024,7 +1014,7 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
1024
1014
|
* @memberof RosterApi
|
|
1025
1015
|
*/
|
|
1026
1016
|
updateRoster(id, updateParams, options) {
|
|
1027
|
-
return
|
|
1017
|
+
return RosterApiFp(this.configuration)
|
|
1028
1018
|
.updateRoster(id, updateParams, options)
|
|
1029
1019
|
.then((request) => request(this.axios, this.basePath));
|
|
1030
1020
|
}
|
|
@@ -1038,17 +1028,16 @@ class RosterApi extends base_1.BaseAPI {
|
|
|
1038
1028
|
* @memberof RosterApi
|
|
1039
1029
|
*/
|
|
1040
1030
|
updateRosterTemplate(id, params, options) {
|
|
1041
|
-
return
|
|
1031
|
+
return RosterApiFp(this.configuration)
|
|
1042
1032
|
.updateRosterTemplate(id, params, options)
|
|
1043
1033
|
.then((request) => request(this.axios, this.basePath));
|
|
1044
1034
|
}
|
|
1045
1035
|
}
|
|
1046
|
-
exports.RosterApi = RosterApi;
|
|
1047
1036
|
/**
|
|
1048
1037
|
* RosterAnswerApi - axios parameter creator
|
|
1049
1038
|
* @export
|
|
1050
1039
|
*/
|
|
1051
|
-
const RosterAnswerApiAxiosParamCreator = function (configuration) {
|
|
1040
|
+
export const RosterAnswerApiAxiosParamCreator = function (configuration) {
|
|
1052
1041
|
return {
|
|
1053
1042
|
/**
|
|
1054
1043
|
*
|
|
@@ -1059,10 +1048,10 @@ const RosterAnswerApiAxiosParamCreator = function (configuration) {
|
|
|
1059
1048
|
*/
|
|
1060
1049
|
createRosterAnswer: async (createParams, options = {}) => {
|
|
1061
1050
|
// verify required parameter 'createParams' is not null or undefined
|
|
1062
|
-
|
|
1051
|
+
assertParamExists("createRosterAnswer", "createParams", createParams);
|
|
1063
1052
|
const localVarPath = `/roster/answer`;
|
|
1064
1053
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1065
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1054
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1066
1055
|
let baseOptions;
|
|
1067
1056
|
if (configuration) {
|
|
1068
1057
|
baseOptions = configuration.baseOptions;
|
|
@@ -1075,18 +1064,18 @@ const RosterAnswerApiAxiosParamCreator = function (configuration) {
|
|
|
1075
1064
|
const localVarHeaderParameter = {};
|
|
1076
1065
|
const localVarQueryParameter = {};
|
|
1077
1066
|
// authentication BearerAuth required
|
|
1078
|
-
await
|
|
1067
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1079
1068
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1080
|
-
|
|
1069
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1081
1070
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1082
1071
|
localVarRequestOptions.headers = {
|
|
1083
1072
|
...localVarHeaderParameter,
|
|
1084
1073
|
...headersFromBaseOptions,
|
|
1085
1074
|
...options.headers,
|
|
1086
1075
|
};
|
|
1087
|
-
localVarRequestOptions.data =
|
|
1076
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
|
|
1088
1077
|
return {
|
|
1089
|
-
url:
|
|
1078
|
+
url: toPathString(localVarUrlObj),
|
|
1090
1079
|
options: localVarRequestOptions,
|
|
1091
1080
|
};
|
|
1092
1081
|
},
|
|
@@ -1100,12 +1089,12 @@ const RosterAnswerApiAxiosParamCreator = function (configuration) {
|
|
|
1100
1089
|
*/
|
|
1101
1090
|
updateRosterAnswer: async (id, updateParams, options = {}) => {
|
|
1102
1091
|
// verify required parameter 'id' is not null or undefined
|
|
1103
|
-
|
|
1092
|
+
assertParamExists("updateRosterAnswer", "id", id);
|
|
1104
1093
|
// verify required parameter 'updateParams' is not null or undefined
|
|
1105
|
-
|
|
1094
|
+
assertParamExists("updateRosterAnswer", "updateParams", updateParams);
|
|
1106
1095
|
const localVarPath = `/roster/answer/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1107
1096
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1108
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1097
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1109
1098
|
let baseOptions;
|
|
1110
1099
|
if (configuration) {
|
|
1111
1100
|
baseOptions = configuration.baseOptions;
|
|
@@ -1118,30 +1107,29 @@ const RosterAnswerApiAxiosParamCreator = function (configuration) {
|
|
|
1118
1107
|
const localVarHeaderParameter = {};
|
|
1119
1108
|
const localVarQueryParameter = {};
|
|
1120
1109
|
// authentication BearerAuth required
|
|
1121
|
-
await
|
|
1110
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1122
1111
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1123
|
-
|
|
1112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1124
1113
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1125
1114
|
localVarRequestOptions.headers = {
|
|
1126
1115
|
...localVarHeaderParameter,
|
|
1127
1116
|
...headersFromBaseOptions,
|
|
1128
1117
|
...options.headers,
|
|
1129
1118
|
};
|
|
1130
|
-
localVarRequestOptions.data =
|
|
1119
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateParams, localVarRequestOptions, configuration);
|
|
1131
1120
|
return {
|
|
1132
|
-
url:
|
|
1121
|
+
url: toPathString(localVarUrlObj),
|
|
1133
1122
|
options: localVarRequestOptions,
|
|
1134
1123
|
};
|
|
1135
1124
|
},
|
|
1136
1125
|
};
|
|
1137
1126
|
};
|
|
1138
|
-
exports.RosterAnswerApiAxiosParamCreator = RosterAnswerApiAxiosParamCreator;
|
|
1139
1127
|
/**
|
|
1140
1128
|
* RosterAnswerApi - functional programming interface
|
|
1141
1129
|
* @export
|
|
1142
1130
|
*/
|
|
1143
|
-
const RosterAnswerApiFp = function (configuration) {
|
|
1144
|
-
const localVarAxiosParamCreator =
|
|
1131
|
+
export const RosterAnswerApiFp = function (configuration) {
|
|
1132
|
+
const localVarAxiosParamCreator = RosterAnswerApiAxiosParamCreator(configuration);
|
|
1145
1133
|
return {
|
|
1146
1134
|
/**
|
|
1147
1135
|
*
|
|
@@ -1153,8 +1141,8 @@ const RosterAnswerApiFp = function (configuration) {
|
|
|
1153
1141
|
async createRosterAnswer(createParams, options) {
|
|
1154
1142
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRosterAnswer(createParams, options);
|
|
1155
1143
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1156
|
-
const localVarOperationServerBasePath =
|
|
1157
|
-
return (axios, basePath) =>
|
|
1144
|
+
const localVarOperationServerBasePath = operationServerMap["RosterAnswerApi.createRosterAnswer"]?.[localVarOperationServerIndex]?.url;
|
|
1145
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1158
1146
|
},
|
|
1159
1147
|
/**
|
|
1160
1148
|
*
|
|
@@ -1167,18 +1155,17 @@ const RosterAnswerApiFp = function (configuration) {
|
|
|
1167
1155
|
async updateRosterAnswer(id, updateParams, options) {
|
|
1168
1156
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateRosterAnswer(id, updateParams, options);
|
|
1169
1157
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1170
|
-
const localVarOperationServerBasePath =
|
|
1171
|
-
return (axios, basePath) =>
|
|
1158
|
+
const localVarOperationServerBasePath = operationServerMap["RosterAnswerApi.updateRosterAnswer"]?.[localVarOperationServerIndex]?.url;
|
|
1159
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1172
1160
|
},
|
|
1173
1161
|
};
|
|
1174
1162
|
};
|
|
1175
|
-
exports.RosterAnswerApiFp = RosterAnswerApiFp;
|
|
1176
1163
|
/**
|
|
1177
1164
|
* RosterAnswerApi - factory interface
|
|
1178
1165
|
* @export
|
|
1179
1166
|
*/
|
|
1180
|
-
const RosterAnswerApiFactory = function (configuration, basePath, axios) {
|
|
1181
|
-
const localVarFp =
|
|
1167
|
+
export const RosterAnswerApiFactory = function (configuration, basePath, axios) {
|
|
1168
|
+
const localVarFp = RosterAnswerApiFp(configuration);
|
|
1182
1169
|
return {
|
|
1183
1170
|
/**
|
|
1184
1171
|
*
|
|
@@ -1207,14 +1194,13 @@ const RosterAnswerApiFactory = function (configuration, basePath, axios) {
|
|
|
1207
1194
|
},
|
|
1208
1195
|
};
|
|
1209
1196
|
};
|
|
1210
|
-
exports.RosterAnswerApiFactory = RosterAnswerApiFactory;
|
|
1211
1197
|
/**
|
|
1212
1198
|
* RosterAnswerApi - object-oriented interface
|
|
1213
1199
|
* @export
|
|
1214
1200
|
* @class RosterAnswerApi
|
|
1215
1201
|
* @extends {BaseAPI}
|
|
1216
1202
|
*/
|
|
1217
|
-
class RosterAnswerApi extends
|
|
1203
|
+
export class RosterAnswerApi extends BaseAPI {
|
|
1218
1204
|
/**
|
|
1219
1205
|
*
|
|
1220
1206
|
* @summary Create a new roster shift answer
|
|
@@ -1224,7 +1210,7 @@ class RosterAnswerApi extends base_1.BaseAPI {
|
|
|
1224
1210
|
* @memberof RosterAnswerApi
|
|
1225
1211
|
*/
|
|
1226
1212
|
createRosterAnswer(createParams, options) {
|
|
1227
|
-
return
|
|
1213
|
+
return RosterAnswerApiFp(this.configuration)
|
|
1228
1214
|
.createRosterAnswer(createParams, options)
|
|
1229
1215
|
.then((request) => request(this.axios, this.basePath));
|
|
1230
1216
|
}
|
|
@@ -1238,17 +1224,16 @@ class RosterAnswerApi extends base_1.BaseAPI {
|
|
|
1238
1224
|
* @memberof RosterAnswerApi
|
|
1239
1225
|
*/
|
|
1240
1226
|
updateRosterAnswer(id, updateParams, options) {
|
|
1241
|
-
return
|
|
1227
|
+
return RosterAnswerApiFp(this.configuration)
|
|
1242
1228
|
.updateRosterAnswer(id, updateParams, options)
|
|
1243
1229
|
.then((request) => request(this.axios, this.basePath));
|
|
1244
1230
|
}
|
|
1245
1231
|
}
|
|
1246
|
-
exports.RosterAnswerApi = RosterAnswerApi;
|
|
1247
1232
|
/**
|
|
1248
1233
|
* RosterShiftApi - axios parameter creator
|
|
1249
1234
|
* @export
|
|
1250
1235
|
*/
|
|
1251
|
-
const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
1236
|
+
export const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
1252
1237
|
return {
|
|
1253
1238
|
/**
|
|
1254
1239
|
*
|
|
@@ -1259,10 +1244,10 @@ const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1259
1244
|
*/
|
|
1260
1245
|
createRosterShift: async (createParams, options = {}) => {
|
|
1261
1246
|
// verify required parameter 'createParams' is not null or undefined
|
|
1262
|
-
|
|
1247
|
+
assertParamExists("createRosterShift", "createParams", createParams);
|
|
1263
1248
|
const localVarPath = `/roster/shift`;
|
|
1264
1249
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1265
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1266
1251
|
let baseOptions;
|
|
1267
1252
|
if (configuration) {
|
|
1268
1253
|
baseOptions = configuration.baseOptions;
|
|
@@ -1275,18 +1260,18 @@ const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1275
1260
|
const localVarHeaderParameter = {};
|
|
1276
1261
|
const localVarQueryParameter = {};
|
|
1277
1262
|
// authentication BearerAuth required
|
|
1278
|
-
await
|
|
1263
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1279
1264
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1280
|
-
|
|
1265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1281
1266
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1282
1267
|
localVarRequestOptions.headers = {
|
|
1283
1268
|
...localVarHeaderParameter,
|
|
1284
1269
|
...headersFromBaseOptions,
|
|
1285
1270
|
...options.headers,
|
|
1286
1271
|
};
|
|
1287
|
-
localVarRequestOptions.data =
|
|
1272
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
|
|
1288
1273
|
return {
|
|
1289
|
-
url:
|
|
1274
|
+
url: toPathString(localVarUrlObj),
|
|
1290
1275
|
options: localVarRequestOptions,
|
|
1291
1276
|
};
|
|
1292
1277
|
},
|
|
@@ -1299,10 +1284,10 @@ const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1299
1284
|
*/
|
|
1300
1285
|
deleteRosterShift: async (id, options = {}) => {
|
|
1301
1286
|
// verify required parameter 'id' is not null or undefined
|
|
1302
|
-
|
|
1287
|
+
assertParamExists("deleteRosterShift", "id", id);
|
|
1303
1288
|
const localVarPath = `/roster/shift/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1304
1289
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1305
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1306
1291
|
let baseOptions;
|
|
1307
1292
|
if (configuration) {
|
|
1308
1293
|
baseOptions = configuration.baseOptions;
|
|
@@ -1315,8 +1300,8 @@ const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1315
1300
|
const localVarHeaderParameter = {};
|
|
1316
1301
|
const localVarQueryParameter = {};
|
|
1317
1302
|
// authentication BearerAuth required
|
|
1318
|
-
await
|
|
1319
|
-
|
|
1303
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1304
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1320
1305
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1321
1306
|
localVarRequestOptions.headers = {
|
|
1322
1307
|
...localVarHeaderParameter,
|
|
@@ -1324,19 +1309,18 @@ const RosterShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1324
1309
|
...options.headers,
|
|
1325
1310
|
};
|
|
1326
1311
|
return {
|
|
1327
|
-
url:
|
|
1312
|
+
url: toPathString(localVarUrlObj),
|
|
1328
1313
|
options: localVarRequestOptions,
|
|
1329
1314
|
};
|
|
1330
1315
|
},
|
|
1331
1316
|
};
|
|
1332
1317
|
};
|
|
1333
|
-
exports.RosterShiftApiAxiosParamCreator = RosterShiftApiAxiosParamCreator;
|
|
1334
1318
|
/**
|
|
1335
1319
|
* RosterShiftApi - functional programming interface
|
|
1336
1320
|
* @export
|
|
1337
1321
|
*/
|
|
1338
|
-
const RosterShiftApiFp = function (configuration) {
|
|
1339
|
-
const localVarAxiosParamCreator =
|
|
1322
|
+
export const RosterShiftApiFp = function (configuration) {
|
|
1323
|
+
const localVarAxiosParamCreator = RosterShiftApiAxiosParamCreator(configuration);
|
|
1340
1324
|
return {
|
|
1341
1325
|
/**
|
|
1342
1326
|
*
|
|
@@ -1348,8 +1332,8 @@ const RosterShiftApiFp = function (configuration) {
|
|
|
1348
1332
|
async createRosterShift(createParams, options) {
|
|
1349
1333
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createRosterShift(createParams, options);
|
|
1350
1334
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1351
|
-
const localVarOperationServerBasePath =
|
|
1352
|
-
return (axios, basePath) =>
|
|
1335
|
+
const localVarOperationServerBasePath = operationServerMap["RosterShiftApi.createRosterShift"]?.[localVarOperationServerIndex]?.url;
|
|
1336
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1353
1337
|
},
|
|
1354
1338
|
/**
|
|
1355
1339
|
*
|
|
@@ -1361,18 +1345,17 @@ const RosterShiftApiFp = function (configuration) {
|
|
|
1361
1345
|
async deleteRosterShift(id, options) {
|
|
1362
1346
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRosterShift(id, options);
|
|
1363
1347
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1364
|
-
const localVarOperationServerBasePath =
|
|
1365
|
-
return (axios, basePath) =>
|
|
1348
|
+
const localVarOperationServerBasePath = operationServerMap["RosterShiftApi.deleteRosterShift"]?.[localVarOperationServerIndex]?.url;
|
|
1349
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1366
1350
|
},
|
|
1367
1351
|
};
|
|
1368
1352
|
};
|
|
1369
|
-
exports.RosterShiftApiFp = RosterShiftApiFp;
|
|
1370
1353
|
/**
|
|
1371
1354
|
* RosterShiftApi - factory interface
|
|
1372
1355
|
* @export
|
|
1373
1356
|
*/
|
|
1374
|
-
const RosterShiftApiFactory = function (configuration, basePath, axios) {
|
|
1375
|
-
const localVarFp =
|
|
1357
|
+
export const RosterShiftApiFactory = function (configuration, basePath, axios) {
|
|
1358
|
+
const localVarFp = RosterShiftApiFp(configuration);
|
|
1376
1359
|
return {
|
|
1377
1360
|
/**
|
|
1378
1361
|
*
|
|
@@ -1400,14 +1383,13 @@ const RosterShiftApiFactory = function (configuration, basePath, axios) {
|
|
|
1400
1383
|
},
|
|
1401
1384
|
};
|
|
1402
1385
|
};
|
|
1403
|
-
exports.RosterShiftApiFactory = RosterShiftApiFactory;
|
|
1404
1386
|
/**
|
|
1405
1387
|
* RosterShiftApi - object-oriented interface
|
|
1406
1388
|
* @export
|
|
1407
1389
|
* @class RosterShiftApi
|
|
1408
1390
|
* @extends {BaseAPI}
|
|
1409
1391
|
*/
|
|
1410
|
-
class RosterShiftApi extends
|
|
1392
|
+
export class RosterShiftApi extends BaseAPI {
|
|
1411
1393
|
/**
|
|
1412
1394
|
*
|
|
1413
1395
|
* @summary Create a new roster shift
|
|
@@ -1417,7 +1399,7 @@ class RosterShiftApi extends base_1.BaseAPI {
|
|
|
1417
1399
|
* @memberof RosterShiftApi
|
|
1418
1400
|
*/
|
|
1419
1401
|
createRosterShift(createParams, options) {
|
|
1420
|
-
return
|
|
1402
|
+
return RosterShiftApiFp(this.configuration)
|
|
1421
1403
|
.createRosterShift(createParams, options)
|
|
1422
1404
|
.then((request) => request(this.axios, this.basePath));
|
|
1423
1405
|
}
|
|
@@ -1430,17 +1412,16 @@ class RosterShiftApi extends base_1.BaseAPI {
|
|
|
1430
1412
|
* @memberof RosterShiftApi
|
|
1431
1413
|
*/
|
|
1432
1414
|
deleteRosterShift(id, options) {
|
|
1433
|
-
return
|
|
1415
|
+
return RosterShiftApiFp(this.configuration)
|
|
1434
1416
|
.deleteRosterShift(id, options)
|
|
1435
1417
|
.then((request) => request(this.axios, this.basePath));
|
|
1436
1418
|
}
|
|
1437
1419
|
}
|
|
1438
|
-
exports.RosterShiftApi = RosterShiftApi;
|
|
1439
1420
|
/**
|
|
1440
1421
|
* SavedShiftApi - axios parameter creator
|
|
1441
1422
|
* @export
|
|
1442
1423
|
*/
|
|
1443
|
-
const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
1424
|
+
export const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
1444
1425
|
return {
|
|
1445
1426
|
/**
|
|
1446
1427
|
*
|
|
@@ -1451,10 +1432,10 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1451
1432
|
*/
|
|
1452
1433
|
getSavedRoster: async (id, options = {}) => {
|
|
1453
1434
|
// verify required parameter 'id' is not null or undefined
|
|
1454
|
-
|
|
1435
|
+
assertParamExists("getSavedRoster", "id", id);
|
|
1455
1436
|
const localVarPath = `/roster/saved-shift/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1456
1437
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1457
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1438
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1458
1439
|
let baseOptions;
|
|
1459
1440
|
if (configuration) {
|
|
1460
1441
|
baseOptions = configuration.baseOptions;
|
|
@@ -1467,8 +1448,8 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1467
1448
|
const localVarHeaderParameter = {};
|
|
1468
1449
|
const localVarQueryParameter = {};
|
|
1469
1450
|
// authentication BearerAuth required
|
|
1470
|
-
await
|
|
1471
|
-
|
|
1451
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1452
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1472
1453
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1473
1454
|
localVarRequestOptions.headers = {
|
|
1474
1455
|
...localVarHeaderParameter,
|
|
@@ -1476,7 +1457,7 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1476
1457
|
...options.headers,
|
|
1477
1458
|
};
|
|
1478
1459
|
return {
|
|
1479
|
-
url:
|
|
1460
|
+
url: toPathString(localVarUrlObj),
|
|
1480
1461
|
options: localVarRequestOptions,
|
|
1481
1462
|
};
|
|
1482
1463
|
},
|
|
@@ -1489,10 +1470,10 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1489
1470
|
*/
|
|
1490
1471
|
rosterSave: async (id, options = {}) => {
|
|
1491
1472
|
// verify required parameter 'id' is not null or undefined
|
|
1492
|
-
|
|
1473
|
+
assertParamExists("rosterSave", "id", id);
|
|
1493
1474
|
const localVarPath = `/roster/{id}/save`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1494
1475
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1495
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1476
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1496
1477
|
let baseOptions;
|
|
1497
1478
|
if (configuration) {
|
|
1498
1479
|
baseOptions = configuration.baseOptions;
|
|
@@ -1505,8 +1486,8 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1505
1486
|
const localVarHeaderParameter = {};
|
|
1506
1487
|
const localVarQueryParameter = {};
|
|
1507
1488
|
// authentication BearerAuth required
|
|
1508
|
-
await
|
|
1509
|
-
|
|
1489
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1490
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1510
1491
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1511
1492
|
localVarRequestOptions.headers = {
|
|
1512
1493
|
...localVarHeaderParameter,
|
|
@@ -1514,7 +1495,7 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1514
1495
|
...options.headers,
|
|
1515
1496
|
};
|
|
1516
1497
|
return {
|
|
1517
|
-
url:
|
|
1498
|
+
url: toPathString(localVarUrlObj),
|
|
1518
1499
|
options: localVarRequestOptions,
|
|
1519
1500
|
};
|
|
1520
1501
|
},
|
|
@@ -1528,12 +1509,12 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1528
1509
|
*/
|
|
1529
1510
|
updateSavedShift: async (id, updateParams, options = {}) => {
|
|
1530
1511
|
// verify required parameter 'id' is not null or undefined
|
|
1531
|
-
|
|
1512
|
+
assertParamExists("updateSavedShift", "id", id);
|
|
1532
1513
|
// verify required parameter 'updateParams' is not null or undefined
|
|
1533
|
-
|
|
1514
|
+
assertParamExists("updateSavedShift", "updateParams", updateParams);
|
|
1534
1515
|
const localVarPath = `/roster/saved-shift/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1535
1516
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1536
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1517
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1537
1518
|
let baseOptions;
|
|
1538
1519
|
if (configuration) {
|
|
1539
1520
|
baseOptions = configuration.baseOptions;
|
|
@@ -1546,30 +1527,29 @@ const SavedShiftApiAxiosParamCreator = function (configuration) {
|
|
|
1546
1527
|
const localVarHeaderParameter = {};
|
|
1547
1528
|
const localVarQueryParameter = {};
|
|
1548
1529
|
// authentication BearerAuth required
|
|
1549
|
-
await
|
|
1530
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1550
1531
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1551
|
-
|
|
1532
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1552
1533
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1553
1534
|
localVarRequestOptions.headers = {
|
|
1554
1535
|
...localVarHeaderParameter,
|
|
1555
1536
|
...headersFromBaseOptions,
|
|
1556
1537
|
...options.headers,
|
|
1557
1538
|
};
|
|
1558
|
-
localVarRequestOptions.data =
|
|
1539
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateParams, localVarRequestOptions, configuration);
|
|
1559
1540
|
return {
|
|
1560
|
-
url:
|
|
1541
|
+
url: toPathString(localVarUrlObj),
|
|
1561
1542
|
options: localVarRequestOptions,
|
|
1562
1543
|
};
|
|
1563
1544
|
},
|
|
1564
1545
|
};
|
|
1565
1546
|
};
|
|
1566
|
-
exports.SavedShiftApiAxiosParamCreator = SavedShiftApiAxiosParamCreator;
|
|
1567
1547
|
/**
|
|
1568
1548
|
* SavedShiftApi - functional programming interface
|
|
1569
1549
|
* @export
|
|
1570
1550
|
*/
|
|
1571
|
-
const SavedShiftApiFp = function (configuration) {
|
|
1572
|
-
const localVarAxiosParamCreator =
|
|
1551
|
+
export const SavedShiftApiFp = function (configuration) {
|
|
1552
|
+
const localVarAxiosParamCreator = SavedShiftApiAxiosParamCreator(configuration);
|
|
1573
1553
|
return {
|
|
1574
1554
|
/**
|
|
1575
1555
|
*
|
|
@@ -1581,8 +1561,8 @@ const SavedShiftApiFp = function (configuration) {
|
|
|
1581
1561
|
async getSavedRoster(id, options) {
|
|
1582
1562
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSavedRoster(id, options);
|
|
1583
1563
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1584
|
-
const localVarOperationServerBasePath =
|
|
1585
|
-
return (axios, basePath) =>
|
|
1564
|
+
const localVarOperationServerBasePath = operationServerMap["SavedShiftApi.getSavedRoster"]?.[localVarOperationServerIndex]?.url;
|
|
1565
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1586
1566
|
},
|
|
1587
1567
|
/**
|
|
1588
1568
|
*
|
|
@@ -1594,8 +1574,8 @@ const SavedShiftApiFp = function (configuration) {
|
|
|
1594
1574
|
async rosterSave(id, options) {
|
|
1595
1575
|
const localVarAxiosArgs = await localVarAxiosParamCreator.rosterSave(id, options);
|
|
1596
1576
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1597
|
-
const localVarOperationServerBasePath =
|
|
1598
|
-
return (axios, basePath) =>
|
|
1577
|
+
const localVarOperationServerBasePath = operationServerMap["SavedShiftApi.rosterSave"]?.[localVarOperationServerIndex]?.url;
|
|
1578
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1599
1579
|
},
|
|
1600
1580
|
/**
|
|
1601
1581
|
*
|
|
@@ -1608,18 +1588,17 @@ const SavedShiftApiFp = function (configuration) {
|
|
|
1608
1588
|
async updateSavedShift(id, updateParams, options) {
|
|
1609
1589
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSavedShift(id, updateParams, options);
|
|
1610
1590
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1611
|
-
const localVarOperationServerBasePath =
|
|
1612
|
-
return (axios, basePath) =>
|
|
1591
|
+
const localVarOperationServerBasePath = operationServerMap["SavedShiftApi.updateSavedShift"]?.[localVarOperationServerIndex]?.url;
|
|
1592
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1613
1593
|
},
|
|
1614
1594
|
};
|
|
1615
1595
|
};
|
|
1616
|
-
exports.SavedShiftApiFp = SavedShiftApiFp;
|
|
1617
1596
|
/**
|
|
1618
1597
|
* SavedShiftApi - factory interface
|
|
1619
1598
|
* @export
|
|
1620
1599
|
*/
|
|
1621
|
-
const SavedShiftApiFactory = function (configuration, basePath, axios) {
|
|
1622
|
-
const localVarFp =
|
|
1600
|
+
export const SavedShiftApiFactory = function (configuration, basePath, axios) {
|
|
1601
|
+
const localVarFp = SavedShiftApiFp(configuration);
|
|
1623
1602
|
return {
|
|
1624
1603
|
/**
|
|
1625
1604
|
*
|
|
@@ -1660,14 +1639,13 @@ const SavedShiftApiFactory = function (configuration, basePath, axios) {
|
|
|
1660
1639
|
},
|
|
1661
1640
|
};
|
|
1662
1641
|
};
|
|
1663
|
-
exports.SavedShiftApiFactory = SavedShiftApiFactory;
|
|
1664
1642
|
/**
|
|
1665
1643
|
* SavedShiftApi - object-oriented interface
|
|
1666
1644
|
* @export
|
|
1667
1645
|
* @class SavedShiftApi
|
|
1668
1646
|
* @extends {BaseAPI}
|
|
1669
1647
|
*/
|
|
1670
|
-
class SavedShiftApi extends
|
|
1648
|
+
export class SavedShiftApi extends BaseAPI {
|
|
1671
1649
|
/**
|
|
1672
1650
|
*
|
|
1673
1651
|
* @summary Get all saved shifts for a specific roster
|
|
@@ -1677,7 +1655,7 @@ class SavedShiftApi extends base_1.BaseAPI {
|
|
|
1677
1655
|
* @memberof SavedShiftApi
|
|
1678
1656
|
*/
|
|
1679
1657
|
getSavedRoster(id, options) {
|
|
1680
|
-
return
|
|
1658
|
+
return SavedShiftApiFp(this.configuration)
|
|
1681
1659
|
.getSavedRoster(id, options)
|
|
1682
1660
|
.then((request) => request(this.axios, this.basePath));
|
|
1683
1661
|
}
|
|
@@ -1690,7 +1668,7 @@ class SavedShiftApi extends base_1.BaseAPI {
|
|
|
1690
1668
|
* @memberof SavedShiftApi
|
|
1691
1669
|
*/
|
|
1692
1670
|
rosterSave(id, options) {
|
|
1693
|
-
return
|
|
1671
|
+
return SavedShiftApiFp(this.configuration)
|
|
1694
1672
|
.rosterSave(id, options)
|
|
1695
1673
|
.then((request) => request(this.axios, this.basePath));
|
|
1696
1674
|
}
|
|
@@ -1704,17 +1682,16 @@ class SavedShiftApi extends base_1.BaseAPI {
|
|
|
1704
1682
|
* @memberof SavedShiftApi
|
|
1705
1683
|
*/
|
|
1706
1684
|
updateSavedShift(id, updateParams, options) {
|
|
1707
|
-
return
|
|
1685
|
+
return SavedShiftApiFp(this.configuration)
|
|
1708
1686
|
.updateSavedShift(id, updateParams, options)
|
|
1709
1687
|
.then((request) => request(this.axios, this.basePath));
|
|
1710
1688
|
}
|
|
1711
1689
|
}
|
|
1712
|
-
exports.SavedShiftApi = SavedShiftApi;
|
|
1713
1690
|
/**
|
|
1714
1691
|
* UserApi - axios parameter creator
|
|
1715
1692
|
* @export
|
|
1716
1693
|
*/
|
|
1717
|
-
const UserApiAxiosParamCreator = function (configuration) {
|
|
1694
|
+
export const UserApiAxiosParamCreator = function (configuration) {
|
|
1718
1695
|
return {
|
|
1719
1696
|
/**
|
|
1720
1697
|
* create user
|
|
@@ -1725,10 +1702,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1725
1702
|
*/
|
|
1726
1703
|
userCreatePost: async (createParams, options = {}) => {
|
|
1727
1704
|
// verify required parameter 'createParams' is not null or undefined
|
|
1728
|
-
|
|
1705
|
+
assertParamExists("userCreatePost", "createParams", createParams);
|
|
1729
1706
|
const localVarPath = `/user/create`;
|
|
1730
1707
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1731
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1708
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1732
1709
|
let baseOptions;
|
|
1733
1710
|
if (configuration) {
|
|
1734
1711
|
baseOptions = configuration.baseOptions;
|
|
@@ -1741,18 +1718,18 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1741
1718
|
const localVarHeaderParameter = {};
|
|
1742
1719
|
const localVarQueryParameter = {};
|
|
1743
1720
|
// authentication BearerAuth required
|
|
1744
|
-
await
|
|
1721
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1745
1722
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1746
|
-
|
|
1723
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1747
1724
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1748
1725
|
localVarRequestOptions.headers = {
|
|
1749
1726
|
...localVarHeaderParameter,
|
|
1750
1727
|
...headersFromBaseOptions,
|
|
1751
1728
|
...options.headers,
|
|
1752
1729
|
};
|
|
1753
|
-
localVarRequestOptions.data =
|
|
1730
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createParams, localVarRequestOptions, configuration);
|
|
1754
1731
|
return {
|
|
1755
|
-
url:
|
|
1732
|
+
url: toPathString(localVarUrlObj),
|
|
1756
1733
|
options: localVarRequestOptions,
|
|
1757
1734
|
};
|
|
1758
1735
|
},
|
|
@@ -1767,7 +1744,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1767
1744
|
userGet: async (organId, gewisId, options = {}) => {
|
|
1768
1745
|
const localVarPath = `/user/`;
|
|
1769
1746
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1770
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1747
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1771
1748
|
let baseOptions;
|
|
1772
1749
|
if (configuration) {
|
|
1773
1750
|
baseOptions = configuration.baseOptions;
|
|
@@ -1780,14 +1757,14 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1780
1757
|
const localVarHeaderParameter = {};
|
|
1781
1758
|
const localVarQueryParameter = {};
|
|
1782
1759
|
// authentication BearerAuth required
|
|
1783
|
-
await
|
|
1760
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1784
1761
|
if (organId !== undefined) {
|
|
1785
1762
|
localVarQueryParameter["organId"] = organId;
|
|
1786
1763
|
}
|
|
1787
1764
|
if (gewisId !== undefined) {
|
|
1788
1765
|
localVarQueryParameter["gewisId"] = gewisId;
|
|
1789
1766
|
}
|
|
1790
|
-
|
|
1767
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1791
1768
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1792
1769
|
localVarRequestOptions.headers = {
|
|
1793
1770
|
...localVarHeaderParameter,
|
|
@@ -1795,7 +1772,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1795
1772
|
...options.headers,
|
|
1796
1773
|
};
|
|
1797
1774
|
return {
|
|
1798
|
-
url:
|
|
1775
|
+
url: toPathString(localVarUrlObj),
|
|
1799
1776
|
options: localVarRequestOptions,
|
|
1800
1777
|
};
|
|
1801
1778
|
},
|
|
@@ -1808,10 +1785,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1808
1785
|
*/
|
|
1809
1786
|
userIdDelete: async (id, options = {}) => {
|
|
1810
1787
|
// verify required parameter 'id' is not null or undefined
|
|
1811
|
-
|
|
1788
|
+
assertParamExists("userIdDelete", "id", id);
|
|
1812
1789
|
const localVarPath = `/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1813
1790
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1814
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1791
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1815
1792
|
let baseOptions;
|
|
1816
1793
|
if (configuration) {
|
|
1817
1794
|
baseOptions = configuration.baseOptions;
|
|
@@ -1824,8 +1801,8 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1824
1801
|
const localVarHeaderParameter = {};
|
|
1825
1802
|
const localVarQueryParameter = {};
|
|
1826
1803
|
// authentication BearerAuth required
|
|
1827
|
-
await
|
|
1828
|
-
|
|
1804
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1805
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1829
1806
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1830
1807
|
localVarRequestOptions.headers = {
|
|
1831
1808
|
...localVarHeaderParameter,
|
|
@@ -1833,7 +1810,7 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1833
1810
|
...options.headers,
|
|
1834
1811
|
};
|
|
1835
1812
|
return {
|
|
1836
|
-
url:
|
|
1813
|
+
url: toPathString(localVarUrlObj),
|
|
1837
1814
|
options: localVarRequestOptions,
|
|
1838
1815
|
};
|
|
1839
1816
|
},
|
|
@@ -1846,10 +1823,10 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1846
1823
|
*/
|
|
1847
1824
|
userIdGet: async (id, options = {}) => {
|
|
1848
1825
|
// verify required parameter 'id' is not null or undefined
|
|
1849
|
-
|
|
1826
|
+
assertParamExists("userIdGet", "id", id);
|
|
1850
1827
|
const localVarPath = `/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1851
1828
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1852
|
-
const localVarUrlObj = new URL(localVarPath,
|
|
1829
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1853
1830
|
let baseOptions;
|
|
1854
1831
|
if (configuration) {
|
|
1855
1832
|
baseOptions = configuration.baseOptions;
|
|
@@ -1862,8 +1839,8 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1862
1839
|
const localVarHeaderParameter = {};
|
|
1863
1840
|
const localVarQueryParameter = {};
|
|
1864
1841
|
// authentication BearerAuth required
|
|
1865
|
-
await
|
|
1866
|
-
|
|
1842
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
1843
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1867
1844
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1868
1845
|
localVarRequestOptions.headers = {
|
|
1869
1846
|
...localVarHeaderParameter,
|
|
@@ -1871,19 +1848,18 @@ const UserApiAxiosParamCreator = function (configuration) {
|
|
|
1871
1848
|
...options.headers,
|
|
1872
1849
|
};
|
|
1873
1850
|
return {
|
|
1874
|
-
url:
|
|
1851
|
+
url: toPathString(localVarUrlObj),
|
|
1875
1852
|
options: localVarRequestOptions,
|
|
1876
1853
|
};
|
|
1877
1854
|
},
|
|
1878
1855
|
};
|
|
1879
1856
|
};
|
|
1880
|
-
exports.UserApiAxiosParamCreator = UserApiAxiosParamCreator;
|
|
1881
1857
|
/**
|
|
1882
1858
|
* UserApi - functional programming interface
|
|
1883
1859
|
* @export
|
|
1884
1860
|
*/
|
|
1885
|
-
const UserApiFp = function (configuration) {
|
|
1886
|
-
const localVarAxiosParamCreator =
|
|
1861
|
+
export const UserApiFp = function (configuration) {
|
|
1862
|
+
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
1887
1863
|
return {
|
|
1888
1864
|
/**
|
|
1889
1865
|
* create user
|
|
@@ -1895,8 +1871,8 @@ const UserApiFp = function (configuration) {
|
|
|
1895
1871
|
async userCreatePost(createParams, options) {
|
|
1896
1872
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userCreatePost(createParams, options);
|
|
1897
1873
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1898
|
-
const localVarOperationServerBasePath =
|
|
1899
|
-
return (axios, basePath) =>
|
|
1874
|
+
const localVarOperationServerBasePath = operationServerMap["UserApi.userCreatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1875
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1900
1876
|
},
|
|
1901
1877
|
/**
|
|
1902
1878
|
* Retrieve a list of users with optional query parameter filtering
|
|
@@ -1909,9 +1885,9 @@ const UserApiFp = function (configuration) {
|
|
|
1909
1885
|
async userGet(organId, gewisId, options) {
|
|
1910
1886
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userGet(organId, gewisId, options);
|
|
1911
1887
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1912
|
-
const localVarOperationServerBasePath =
|
|
1888
|
+
const localVarOperationServerBasePath = operationServerMap["UserApi.userGet"]?.[localVarOperationServerIndex]
|
|
1913
1889
|
?.url;
|
|
1914
|
-
return (axios, basePath) =>
|
|
1890
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1915
1891
|
},
|
|
1916
1892
|
/**
|
|
1917
1893
|
*
|
|
@@ -1923,8 +1899,8 @@ const UserApiFp = function (configuration) {
|
|
|
1923
1899
|
async userIdDelete(id, options) {
|
|
1924
1900
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userIdDelete(id, options);
|
|
1925
1901
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1926
|
-
const localVarOperationServerBasePath =
|
|
1927
|
-
return (axios, basePath) =>
|
|
1902
|
+
const localVarOperationServerBasePath = operationServerMap["UserApi.userIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1928
1904
|
},
|
|
1929
1905
|
/**
|
|
1930
1906
|
* Retrieve a specific user by their unique ID
|
|
@@ -1936,19 +1912,18 @@ const UserApiFp = function (configuration) {
|
|
|
1936
1912
|
async userIdGet(id, options) {
|
|
1937
1913
|
const localVarAxiosArgs = await localVarAxiosParamCreator.userIdGet(id, options);
|
|
1938
1914
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1939
|
-
const localVarOperationServerBasePath =
|
|
1915
|
+
const localVarOperationServerBasePath = operationServerMap["UserApi.userIdGet"]?.[localVarOperationServerIndex]
|
|
1940
1916
|
?.url;
|
|
1941
|
-
return (axios, basePath) =>
|
|
1917
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1942
1918
|
},
|
|
1943
1919
|
};
|
|
1944
1920
|
};
|
|
1945
|
-
exports.UserApiFp = UserApiFp;
|
|
1946
1921
|
/**
|
|
1947
1922
|
* UserApi - factory interface
|
|
1948
1923
|
* @export
|
|
1949
1924
|
*/
|
|
1950
|
-
const UserApiFactory = function (configuration, basePath, axios) {
|
|
1951
|
-
const localVarFp =
|
|
1925
|
+
export const UserApiFactory = function (configuration, basePath, axios) {
|
|
1926
|
+
const localVarFp = UserApiFp(configuration);
|
|
1952
1927
|
return {
|
|
1953
1928
|
/**
|
|
1954
1929
|
* create user
|
|
@@ -2001,14 +1976,13 @@ const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
2001
1976
|
},
|
|
2002
1977
|
};
|
|
2003
1978
|
};
|
|
2004
|
-
exports.UserApiFactory = UserApiFactory;
|
|
2005
1979
|
/**
|
|
2006
1980
|
* UserApi - object-oriented interface
|
|
2007
1981
|
* @export
|
|
2008
1982
|
* @class UserApi
|
|
2009
1983
|
* @extends {BaseAPI}
|
|
2010
1984
|
*/
|
|
2011
|
-
class UserApi extends
|
|
1985
|
+
export class UserApi extends BaseAPI {
|
|
2012
1986
|
/**
|
|
2013
1987
|
* create user
|
|
2014
1988
|
* @summary CreateRoster a new user
|
|
@@ -2018,7 +1992,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
2018
1992
|
* @memberof UserApi
|
|
2019
1993
|
*/
|
|
2020
1994
|
userCreatePost(createParams, options) {
|
|
2021
|
-
return
|
|
1995
|
+
return UserApiFp(this.configuration)
|
|
2022
1996
|
.userCreatePost(createParams, options)
|
|
2023
1997
|
.then((request) => request(this.axios, this.basePath));
|
|
2024
1998
|
}
|
|
@@ -2032,7 +2006,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
2032
2006
|
* @memberof UserApi
|
|
2033
2007
|
*/
|
|
2034
2008
|
userGet(organId, gewisId, options) {
|
|
2035
|
-
return
|
|
2009
|
+
return UserApiFp(this.configuration)
|
|
2036
2010
|
.userGet(organId, gewisId, options)
|
|
2037
2011
|
.then((request) => request(this.axios, this.basePath));
|
|
2038
2012
|
}
|
|
@@ -2045,7 +2019,7 @@ class UserApi extends base_1.BaseAPI {
|
|
|
2045
2019
|
* @memberof UserApi
|
|
2046
2020
|
*/
|
|
2047
2021
|
userIdDelete(id, options) {
|
|
2048
|
-
return
|
|
2022
|
+
return UserApiFp(this.configuration)
|
|
2049
2023
|
.userIdDelete(id, options)
|
|
2050
2024
|
.then((request) => request(this.axios, this.basePath));
|
|
2051
2025
|
}
|
|
@@ -2058,10 +2032,9 @@ class UserApi extends base_1.BaseAPI {
|
|
|
2058
2032
|
* @memberof UserApi
|
|
2059
2033
|
*/
|
|
2060
2034
|
userIdGet(id, options) {
|
|
2061
|
-
return
|
|
2035
|
+
return UserApiFp(this.configuration)
|
|
2062
2036
|
.userIdGet(id, options)
|
|
2063
2037
|
.then((request) => request(this.axios, this.basePath));
|
|
2064
2038
|
}
|
|
2065
2039
|
}
|
|
2066
|
-
exports.UserApi = UserApi;
|
|
2067
2040
|
//# sourceMappingURL=api.js.map
|