@joao.sumi/qdule 0.0.4 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +3 -5
- package/README.md +5 -11
- package/api.ts +88 -541
- package/dist/api.d.ts +44 -298
- package/dist/api.js +72 -543
- package/docs/ScheduleResourceApi.md +15 -8
- package/docs/ShiftBreakRequest.md +22 -0
- package/docs/ShiftBreakResponse.md +24 -0
- package/docs/ShiftCreateRequest.md +6 -4
- package/docs/ShiftResponse.md +6 -4
- package/docs/ShiftStatus.md +10 -0
- package/docs/ShiftUpdateRequest.md +6 -4
- package/docs/TreatmentResourceApi.md +3 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
87
|
+
exports.UserResourceApi = exports.UserResourceApiFactory = exports.UserResourceApiFp = exports.UserResourceApiAxiosParamCreator = exports.TreatmentResourceApi = exports.TreatmentResourceApiFactory = exports.TreatmentResourceApiFp = exports.TreatmentResourceApiAxiosParamCreator = exports.ShiftResourceApi = exports.ShiftResourceApiFactory = exports.ShiftResourceApiFp = exports.ShiftResourceApiAxiosParamCreator = exports.ScheduleResourceApi = exports.ScheduleResourceApiFactory = exports.ScheduleResourceApiFp = exports.ScheduleResourceApiAxiosParamCreator = exports.ClientResourceApi = exports.ClientResourceApiFactory = exports.ClientResourceApiFp = exports.ClientResourceApiAxiosParamCreator = exports.ChangelogResourceApi = exports.ChangelogResourceApiFactory = exports.ChangelogResourceApiFp = exports.ChangelogResourceApiAxiosParamCreator = exports.AuthResourceApi = exports.AuthResourceApiFactory = exports.AuthResourceApiFp = exports.AuthResourceApiAxiosParamCreator = exports.TreatmentType = exports.TreatmentStatus = exports.ShiftStatus = exports.ScheduleStatus = exports.DayOfWeek = void 0;
|
|
88
88
|
var axios_1 = require("axios");
|
|
89
89
|
// Some imports not used depending on template conditions
|
|
90
90
|
// @ts-ignore
|
|
@@ -107,6 +107,10 @@ exports.ScheduleStatus = {
|
|
|
107
107
|
Pending: 'PENDING',
|
|
108
108
|
Canceled: 'CANCELED',
|
|
109
109
|
};
|
|
110
|
+
exports.ShiftStatus = {
|
|
111
|
+
Enabled: 'ENABLED',
|
|
112
|
+
Disabled: 'DISABLED',
|
|
113
|
+
};
|
|
110
114
|
exports.TreatmentStatus = {
|
|
111
115
|
Active: 'ACTIVE',
|
|
112
116
|
Inactive: 'INACTIVE',
|
|
@@ -1109,20 +1113,27 @@ var ScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
|
1109
1113
|
/**
|
|
1110
1114
|
*
|
|
1111
1115
|
* @summary Get Schedules
|
|
1112
|
-
* @param {number}
|
|
1113
|
-
* @param {number}
|
|
1116
|
+
* @param {number} page
|
|
1117
|
+
* @param {number} size
|
|
1118
|
+
* @param {string} [start]
|
|
1119
|
+
* @param {string} [end]
|
|
1120
|
+
* @param {ScheduleStatus} [status]
|
|
1114
1121
|
* @param {*} [options] Override http request option.
|
|
1115
1122
|
* @throws {RequiredError}
|
|
1116
1123
|
*/
|
|
1117
|
-
schedulesGet: function (page_1, size_1) {
|
|
1124
|
+
schedulesGet: function (page_1, size_1, start_1, end_1, status_1) {
|
|
1118
1125
|
var args_1 = [];
|
|
1119
|
-
for (var _i =
|
|
1120
|
-
args_1[_i -
|
|
1126
|
+
for (var _i = 5; _i < arguments.length; _i++) {
|
|
1127
|
+
args_1[_i - 5] = arguments[_i];
|
|
1121
1128
|
}
|
|
1122
|
-
return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
|
|
1129
|
+
return __awaiter(_this, __spreadArray([page_1, size_1, start_1, end_1, status_1], args_1, true), void 0, function (page, size, start, end, status, options) {
|
|
1123
1130
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1124
1131
|
if (options === void 0) { options = {}; }
|
|
1125
1132
|
return __generator(this, function (_a) {
|
|
1133
|
+
// verify required parameter 'page' is not null or undefined
|
|
1134
|
+
(0, common_1.assertParamExists)('schedulesGet', 'page', page);
|
|
1135
|
+
// verify required parameter 'size' is not null or undefined
|
|
1136
|
+
(0, common_1.assertParamExists)('schedulesGet', 'size', size);
|
|
1126
1137
|
localVarPath = "/schedules";
|
|
1127
1138
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1128
1139
|
if (configuration) {
|
|
@@ -1137,6 +1148,19 @@ var ScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
|
1137
1148
|
if (size !== undefined) {
|
|
1138
1149
|
localVarQueryParameter['size'] = size;
|
|
1139
1150
|
}
|
|
1151
|
+
if (start !== undefined) {
|
|
1152
|
+
localVarQueryParameter['start'] = (start instanceof Date) ?
|
|
1153
|
+
start.toISOString() :
|
|
1154
|
+
start;
|
|
1155
|
+
}
|
|
1156
|
+
if (end !== undefined) {
|
|
1157
|
+
localVarQueryParameter['end'] = (end instanceof Date) ?
|
|
1158
|
+
end.toISOString() :
|
|
1159
|
+
end;
|
|
1160
|
+
}
|
|
1161
|
+
if (status !== undefined) {
|
|
1162
|
+
localVarQueryParameter['status'] = status;
|
|
1163
|
+
}
|
|
1140
1164
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1141
1165
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1142
1166
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -1302,36 +1326,26 @@ var ScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
|
1302
1326
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1303
1327
|
if (options === void 0) { options = {}; }
|
|
1304
1328
|
return __generator(this, function (_a) {
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
if (configuration) {
|
|
1312
|
-
baseOptions = configuration.baseOptions;
|
|
1313
|
-
}
|
|
1314
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1315
|
-
localVarHeaderParameter = {};
|
|
1316
|
-
localVarQueryParameter = {};
|
|
1317
|
-
// authentication SecurityScheme required
|
|
1318
|
-
// http bearer authentication required
|
|
1319
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
1320
|
-
case 1:
|
|
1321
|
-
// authentication SecurityScheme required
|
|
1322
|
-
// http bearer authentication required
|
|
1323
|
-
_a.sent();
|
|
1324
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1325
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1326
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1327
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1328
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1329
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
|
|
1330
|
-
return [2 /*return*/, {
|
|
1331
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1332
|
-
options: localVarRequestOptions,
|
|
1333
|
-
}];
|
|
1329
|
+
// verify required parameter 'scheduleCreateRequest' is not null or undefined
|
|
1330
|
+
(0, common_1.assertParamExists)('schedulesPost', 'scheduleCreateRequest', scheduleCreateRequest);
|
|
1331
|
+
localVarPath = "/schedules";
|
|
1332
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1333
|
+
if (configuration) {
|
|
1334
|
+
baseOptions = configuration.baseOptions;
|
|
1334
1335
|
}
|
|
1336
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1337
|
+
localVarHeaderParameter = {};
|
|
1338
|
+
localVarQueryParameter = {};
|
|
1339
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1340
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1341
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1342
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1343
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1344
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(scheduleCreateRequest, localVarRequestOptions, configuration);
|
|
1345
|
+
return [2 /*return*/, {
|
|
1346
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1347
|
+
options: localVarRequestOptions,
|
|
1348
|
+
}];
|
|
1335
1349
|
});
|
|
1336
1350
|
});
|
|
1337
1351
|
},
|
|
@@ -1347,18 +1361,21 @@ var ScheduleResourceApiFp = function (configuration) {
|
|
|
1347
1361
|
/**
|
|
1348
1362
|
*
|
|
1349
1363
|
* @summary Get Schedules
|
|
1350
|
-
* @param {number}
|
|
1351
|
-
* @param {number}
|
|
1364
|
+
* @param {number} page
|
|
1365
|
+
* @param {number} size
|
|
1366
|
+
* @param {string} [start]
|
|
1367
|
+
* @param {string} [end]
|
|
1368
|
+
* @param {ScheduleStatus} [status]
|
|
1352
1369
|
* @param {*} [options] Override http request option.
|
|
1353
1370
|
* @throws {RequiredError}
|
|
1354
1371
|
*/
|
|
1355
|
-
schedulesGet: function (page, size, options) {
|
|
1372
|
+
schedulesGet: function (page, size, start, end, status, options) {
|
|
1356
1373
|
return __awaiter(this, void 0, void 0, function () {
|
|
1357
1374
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1358
1375
|
var _a, _b, _c;
|
|
1359
1376
|
return __generator(this, function (_d) {
|
|
1360
1377
|
switch (_d.label) {
|
|
1361
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesGet(page, size, options)];
|
|
1378
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.schedulesGet(page, size, start, end, status, options)];
|
|
1362
1379
|
case 1:
|
|
1363
1380
|
localVarAxiosArgs = _d.sent();
|
|
1364
1381
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -1478,8 +1495,7 @@ var ScheduleResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
1478
1495
|
* @throws {RequiredError}
|
|
1479
1496
|
*/
|
|
1480
1497
|
schedulesGet: function (requestParameters, options) {
|
|
1481
|
-
|
|
1482
|
-
return localVarFp.schedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
|
|
1498
|
+
return localVarFp.schedulesGet(requestParameters.page, requestParameters.size, requestParameters.start, requestParameters.end, requestParameters.status, options).then(function (request) { return request(axios, basePath); });
|
|
1483
1499
|
},
|
|
1484
1500
|
/**
|
|
1485
1501
|
*
|
|
@@ -1541,8 +1557,7 @@ var ScheduleResourceApi = /** @class */ (function (_super) {
|
|
|
1541
1557
|
*/
|
|
1542
1558
|
ScheduleResourceApi.prototype.schedulesGet = function (requestParameters, options) {
|
|
1543
1559
|
var _this = this;
|
|
1544
|
-
|
|
1545
|
-
return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1560
|
+
return (0, exports.ScheduleResourceApiFp)(this.configuration).schedulesGet(requestParameters.page, requestParameters.size, requestParameters.start, requestParameters.end, requestParameters.status, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1546
1561
|
};
|
|
1547
1562
|
/**
|
|
1548
1563
|
*
|
|
@@ -2103,16 +2118,17 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2103
2118
|
* @summary Get Treatments
|
|
2104
2119
|
* @param {number} [page]
|
|
2105
2120
|
* @param {number} [size]
|
|
2121
|
+
* @param {string} [text]
|
|
2106
2122
|
* @param {TreatmentType} [type]
|
|
2107
2123
|
* @param {*} [options] Override http request option.
|
|
2108
2124
|
* @throws {RequiredError}
|
|
2109
2125
|
*/
|
|
2110
|
-
treatmentsGet: function (page_1, size_1, type_1) {
|
|
2126
|
+
treatmentsGet: function (page_1, size_1, text_1, type_1) {
|
|
2111
2127
|
var args_1 = [];
|
|
2112
|
-
for (var _i =
|
|
2113
|
-
args_1[_i -
|
|
2128
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
2129
|
+
args_1[_i - 4] = arguments[_i];
|
|
2114
2130
|
}
|
|
2115
|
-
return __awaiter(_this, __spreadArray([page_1, size_1, type_1], args_1, true), void 0, function (page, size, type, options) {
|
|
2131
|
+
return __awaiter(_this, __spreadArray([page_1, size_1, text_1, type_1], args_1, true), void 0, function (page, size, text, type, options) {
|
|
2116
2132
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2117
2133
|
if (options === void 0) { options = {}; }
|
|
2118
2134
|
return __generator(this, function (_a) {
|
|
@@ -2130,6 +2146,9 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2130
2146
|
if (size !== undefined) {
|
|
2131
2147
|
localVarQueryParameter['size'] = size;
|
|
2132
2148
|
}
|
|
2149
|
+
if (text !== undefined) {
|
|
2150
|
+
localVarQueryParameter['text'] = text;
|
|
2151
|
+
}
|
|
2133
2152
|
if (type !== undefined) {
|
|
2134
2153
|
localVarQueryParameter['type'] = type;
|
|
2135
2154
|
}
|
|
@@ -2345,17 +2364,18 @@ var TreatmentResourceApiFp = function (configuration) {
|
|
|
2345
2364
|
* @summary Get Treatments
|
|
2346
2365
|
* @param {number} [page]
|
|
2347
2366
|
* @param {number} [size]
|
|
2367
|
+
* @param {string} [text]
|
|
2348
2368
|
* @param {TreatmentType} [type]
|
|
2349
2369
|
* @param {*} [options] Override http request option.
|
|
2350
2370
|
* @throws {RequiredError}
|
|
2351
2371
|
*/
|
|
2352
|
-
treatmentsGet: function (page, size, type, options) {
|
|
2372
|
+
treatmentsGet: function (page, size, text, type, options) {
|
|
2353
2373
|
return __awaiter(this, void 0, void 0, function () {
|
|
2354
2374
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2355
2375
|
var _a, _b, _c;
|
|
2356
2376
|
return __generator(this, function (_d) {
|
|
2357
2377
|
switch (_d.label) {
|
|
2358
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, type, options)];
|
|
2378
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, text, type, options)];
|
|
2359
2379
|
case 1:
|
|
2360
2380
|
localVarAxiosArgs = _d.sent();
|
|
2361
2381
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2476,7 +2496,7 @@ var TreatmentResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
2476
2496
|
*/
|
|
2477
2497
|
treatmentsGet: function (requestParameters, options) {
|
|
2478
2498
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2479
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
|
|
2499
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
|
|
2480
2500
|
},
|
|
2481
2501
|
/**
|
|
2482
2502
|
*
|
|
@@ -2539,7 +2559,7 @@ var TreatmentResourceApi = /** @class */ (function (_super) {
|
|
|
2539
2559
|
TreatmentResourceApi.prototype.treatmentsGet = function (requestParameters, options) {
|
|
2540
2560
|
var _this = this;
|
|
2541
2561
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2542
|
-
return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2562
|
+
return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2543
2563
|
};
|
|
2544
2564
|
/**
|
|
2545
2565
|
*
|
|
@@ -2801,494 +2821,3 @@ var UserResourceApi = /** @class */ (function (_super) {
|
|
|
2801
2821
|
return UserResourceApi;
|
|
2802
2822
|
}(base_1.BaseAPI));
|
|
2803
2823
|
exports.UserResourceApi = UserResourceApi;
|
|
2804
|
-
/**
|
|
2805
|
-
* WorkScheduleResourceApi - axios parameter creator
|
|
2806
|
-
*/
|
|
2807
|
-
var WorkScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
2808
|
-
var _this = this;
|
|
2809
|
-
return {
|
|
2810
|
-
/**
|
|
2811
|
-
*
|
|
2812
|
-
* @summary Get Work Schedules
|
|
2813
|
-
* @param {number} [page]
|
|
2814
|
-
* @param {number} [size]
|
|
2815
|
-
* @param {*} [options] Override http request option.
|
|
2816
|
-
* @throws {RequiredError}
|
|
2817
|
-
*/
|
|
2818
|
-
workSchedulesGet: function (page_1, size_1) {
|
|
2819
|
-
var args_1 = [];
|
|
2820
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2821
|
-
args_1[_i - 2] = arguments[_i];
|
|
2822
|
-
}
|
|
2823
|
-
return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
|
|
2824
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2825
|
-
if (options === void 0) { options = {}; }
|
|
2826
|
-
return __generator(this, function (_a) {
|
|
2827
|
-
localVarPath = "/work-schedules";
|
|
2828
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2829
|
-
if (configuration) {
|
|
2830
|
-
baseOptions = configuration.baseOptions;
|
|
2831
|
-
}
|
|
2832
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2833
|
-
localVarHeaderParameter = {};
|
|
2834
|
-
localVarQueryParameter = {};
|
|
2835
|
-
if (page !== undefined) {
|
|
2836
|
-
localVarQueryParameter['page'] = page;
|
|
2837
|
-
}
|
|
2838
|
-
if (size !== undefined) {
|
|
2839
|
-
localVarQueryParameter['size'] = size;
|
|
2840
|
-
}
|
|
2841
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2842
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2843
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2844
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2845
|
-
return [2 /*return*/, {
|
|
2846
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2847
|
-
options: localVarRequestOptions,
|
|
2848
|
-
}];
|
|
2849
|
-
});
|
|
2850
|
-
});
|
|
2851
|
-
},
|
|
2852
|
-
/**
|
|
2853
|
-
*
|
|
2854
|
-
* @summary Delete Work Schedule By Id
|
|
2855
|
-
* @param {number} id
|
|
2856
|
-
* @param {*} [options] Override http request option.
|
|
2857
|
-
* @throws {RequiredError}
|
|
2858
|
-
*/
|
|
2859
|
-
workSchedulesIdDelete: function (id_1) {
|
|
2860
|
-
var args_1 = [];
|
|
2861
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2862
|
-
args_1[_i - 1] = arguments[_i];
|
|
2863
|
-
}
|
|
2864
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
2865
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2866
|
-
if (options === void 0) { options = {}; }
|
|
2867
|
-
return __generator(this, function (_a) {
|
|
2868
|
-
switch (_a.label) {
|
|
2869
|
-
case 0:
|
|
2870
|
-
// verify required parameter 'id' is not null or undefined
|
|
2871
|
-
(0, common_1.assertParamExists)('workSchedulesIdDelete', 'id', id);
|
|
2872
|
-
localVarPath = "/work-schedules/{id}"
|
|
2873
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
2874
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2875
|
-
if (configuration) {
|
|
2876
|
-
baseOptions = configuration.baseOptions;
|
|
2877
|
-
}
|
|
2878
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
2879
|
-
localVarHeaderParameter = {};
|
|
2880
|
-
localVarQueryParameter = {};
|
|
2881
|
-
// authentication SecurityScheme required
|
|
2882
|
-
// http bearer authentication required
|
|
2883
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
2884
|
-
case 1:
|
|
2885
|
-
// authentication SecurityScheme required
|
|
2886
|
-
// http bearer authentication required
|
|
2887
|
-
_a.sent();
|
|
2888
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2889
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2890
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2891
|
-
return [2 /*return*/, {
|
|
2892
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2893
|
-
options: localVarRequestOptions,
|
|
2894
|
-
}];
|
|
2895
|
-
}
|
|
2896
|
-
});
|
|
2897
|
-
});
|
|
2898
|
-
},
|
|
2899
|
-
/**
|
|
2900
|
-
*
|
|
2901
|
-
* @summary Find Work Schedule By Id
|
|
2902
|
-
* @param {number} id
|
|
2903
|
-
* @param {*} [options] Override http request option.
|
|
2904
|
-
* @throws {RequiredError}
|
|
2905
|
-
*/
|
|
2906
|
-
workSchedulesIdGet: function (id_1) {
|
|
2907
|
-
var args_1 = [];
|
|
2908
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
2909
|
-
args_1[_i - 1] = arguments[_i];
|
|
2910
|
-
}
|
|
2911
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
2912
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2913
|
-
if (options === void 0) { options = {}; }
|
|
2914
|
-
return __generator(this, function (_a) {
|
|
2915
|
-
// verify required parameter 'id' is not null or undefined
|
|
2916
|
-
(0, common_1.assertParamExists)('workSchedulesIdGet', 'id', id);
|
|
2917
|
-
localVarPath = "/work-schedules/{id}"
|
|
2918
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
2919
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2920
|
-
if (configuration) {
|
|
2921
|
-
baseOptions = configuration.baseOptions;
|
|
2922
|
-
}
|
|
2923
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
2924
|
-
localVarHeaderParameter = {};
|
|
2925
|
-
localVarQueryParameter = {};
|
|
2926
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2927
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2928
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2929
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2930
|
-
return [2 /*return*/, {
|
|
2931
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2932
|
-
options: localVarRequestOptions,
|
|
2933
|
-
}];
|
|
2934
|
-
});
|
|
2935
|
-
});
|
|
2936
|
-
},
|
|
2937
|
-
/**
|
|
2938
|
-
*
|
|
2939
|
-
* @summary Update Work Schedule
|
|
2940
|
-
* @param {number} id
|
|
2941
|
-
* @param {WorkScheduleUpdateRequest} workScheduleUpdateRequest
|
|
2942
|
-
* @param {*} [options] Override http request option.
|
|
2943
|
-
* @throws {RequiredError}
|
|
2944
|
-
*/
|
|
2945
|
-
workSchedulesIdPut: function (id_1, workScheduleUpdateRequest_1) {
|
|
2946
|
-
var args_1 = [];
|
|
2947
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
2948
|
-
args_1[_i - 2] = arguments[_i];
|
|
2949
|
-
}
|
|
2950
|
-
return __awaiter(_this, __spreadArray([id_1, workScheduleUpdateRequest_1], args_1, true), void 0, function (id, workScheduleUpdateRequest, options) {
|
|
2951
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2952
|
-
if (options === void 0) { options = {}; }
|
|
2953
|
-
return __generator(this, function (_a) {
|
|
2954
|
-
switch (_a.label) {
|
|
2955
|
-
case 0:
|
|
2956
|
-
// verify required parameter 'id' is not null or undefined
|
|
2957
|
-
(0, common_1.assertParamExists)('workSchedulesIdPut', 'id', id);
|
|
2958
|
-
// verify required parameter 'workScheduleUpdateRequest' is not null or undefined
|
|
2959
|
-
(0, common_1.assertParamExists)('workSchedulesIdPut', 'workScheduleUpdateRequest', workScheduleUpdateRequest);
|
|
2960
|
-
localVarPath = "/work-schedules/{id}"
|
|
2961
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
2962
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2963
|
-
if (configuration) {
|
|
2964
|
-
baseOptions = configuration.baseOptions;
|
|
2965
|
-
}
|
|
2966
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2967
|
-
localVarHeaderParameter = {};
|
|
2968
|
-
localVarQueryParameter = {};
|
|
2969
|
-
// authentication SecurityScheme required
|
|
2970
|
-
// http bearer authentication required
|
|
2971
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
2972
|
-
case 1:
|
|
2973
|
-
// authentication SecurityScheme required
|
|
2974
|
-
// http bearer authentication required
|
|
2975
|
-
_a.sent();
|
|
2976
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2977
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2978
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2979
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2980
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2981
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workScheduleUpdateRequest, localVarRequestOptions, configuration);
|
|
2982
|
-
return [2 /*return*/, {
|
|
2983
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2984
|
-
options: localVarRequestOptions,
|
|
2985
|
-
}];
|
|
2986
|
-
}
|
|
2987
|
-
});
|
|
2988
|
-
});
|
|
2989
|
-
},
|
|
2990
|
-
/**
|
|
2991
|
-
*
|
|
2992
|
-
* @summary Create Work Schedule
|
|
2993
|
-
* @param {WorkScheduleCreateRequest} workScheduleCreateRequest
|
|
2994
|
-
* @param {*} [options] Override http request option.
|
|
2995
|
-
* @throws {RequiredError}
|
|
2996
|
-
*/
|
|
2997
|
-
workSchedulesPost: function (workScheduleCreateRequest_1) {
|
|
2998
|
-
var args_1 = [];
|
|
2999
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
3000
|
-
args_1[_i - 1] = arguments[_i];
|
|
3001
|
-
}
|
|
3002
|
-
return __awaiter(_this, __spreadArray([workScheduleCreateRequest_1], args_1, true), void 0, function (workScheduleCreateRequest, options) {
|
|
3003
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3004
|
-
if (options === void 0) { options = {}; }
|
|
3005
|
-
return __generator(this, function (_a) {
|
|
3006
|
-
switch (_a.label) {
|
|
3007
|
-
case 0:
|
|
3008
|
-
// verify required parameter 'workScheduleCreateRequest' is not null or undefined
|
|
3009
|
-
(0, common_1.assertParamExists)('workSchedulesPost', 'workScheduleCreateRequest', workScheduleCreateRequest);
|
|
3010
|
-
localVarPath = "/work-schedules";
|
|
3011
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3012
|
-
if (configuration) {
|
|
3013
|
-
baseOptions = configuration.baseOptions;
|
|
3014
|
-
}
|
|
3015
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3016
|
-
localVarHeaderParameter = {};
|
|
3017
|
-
localVarQueryParameter = {};
|
|
3018
|
-
// authentication SecurityScheme required
|
|
3019
|
-
// http bearer authentication required
|
|
3020
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
3021
|
-
case 1:
|
|
3022
|
-
// authentication SecurityScheme required
|
|
3023
|
-
// http bearer authentication required
|
|
3024
|
-
_a.sent();
|
|
3025
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3026
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3027
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3028
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3029
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3030
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(workScheduleCreateRequest, localVarRequestOptions, configuration);
|
|
3031
|
-
return [2 /*return*/, {
|
|
3032
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3033
|
-
options: localVarRequestOptions,
|
|
3034
|
-
}];
|
|
3035
|
-
}
|
|
3036
|
-
});
|
|
3037
|
-
});
|
|
3038
|
-
},
|
|
3039
|
-
};
|
|
3040
|
-
};
|
|
3041
|
-
exports.WorkScheduleResourceApiAxiosParamCreator = WorkScheduleResourceApiAxiosParamCreator;
|
|
3042
|
-
/**
|
|
3043
|
-
* WorkScheduleResourceApi - functional programming interface
|
|
3044
|
-
*/
|
|
3045
|
-
var WorkScheduleResourceApiFp = function (configuration) {
|
|
3046
|
-
var localVarAxiosParamCreator = (0, exports.WorkScheduleResourceApiAxiosParamCreator)(configuration);
|
|
3047
|
-
return {
|
|
3048
|
-
/**
|
|
3049
|
-
*
|
|
3050
|
-
* @summary Get Work Schedules
|
|
3051
|
-
* @param {number} [page]
|
|
3052
|
-
* @param {number} [size]
|
|
3053
|
-
* @param {*} [options] Override http request option.
|
|
3054
|
-
* @throws {RequiredError}
|
|
3055
|
-
*/
|
|
3056
|
-
workSchedulesGet: function (page, size, options) {
|
|
3057
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3058
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3059
|
-
var _a, _b, _c;
|
|
3060
|
-
return __generator(this, function (_d) {
|
|
3061
|
-
switch (_d.label) {
|
|
3062
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesGet(page, size, options)];
|
|
3063
|
-
case 1:
|
|
3064
|
-
localVarAxiosArgs = _d.sent();
|
|
3065
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3066
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3067
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3068
|
-
}
|
|
3069
|
-
});
|
|
3070
|
-
});
|
|
3071
|
-
},
|
|
3072
|
-
/**
|
|
3073
|
-
*
|
|
3074
|
-
* @summary Delete Work Schedule By Id
|
|
3075
|
-
* @param {number} id
|
|
3076
|
-
* @param {*} [options] Override http request option.
|
|
3077
|
-
* @throws {RequiredError}
|
|
3078
|
-
*/
|
|
3079
|
-
workSchedulesIdDelete: function (id, options) {
|
|
3080
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3081
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3082
|
-
var _a, _b, _c;
|
|
3083
|
-
return __generator(this, function (_d) {
|
|
3084
|
-
switch (_d.label) {
|
|
3085
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesIdDelete(id, options)];
|
|
3086
|
-
case 1:
|
|
3087
|
-
localVarAxiosArgs = _d.sent();
|
|
3088
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3089
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3090
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3091
|
-
}
|
|
3092
|
-
});
|
|
3093
|
-
});
|
|
3094
|
-
},
|
|
3095
|
-
/**
|
|
3096
|
-
*
|
|
3097
|
-
* @summary Find Work Schedule By Id
|
|
3098
|
-
* @param {number} id
|
|
3099
|
-
* @param {*} [options] Override http request option.
|
|
3100
|
-
* @throws {RequiredError}
|
|
3101
|
-
*/
|
|
3102
|
-
workSchedulesIdGet: function (id, options) {
|
|
3103
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3104
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3105
|
-
var _a, _b, _c;
|
|
3106
|
-
return __generator(this, function (_d) {
|
|
3107
|
-
switch (_d.label) {
|
|
3108
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesIdGet(id, options)];
|
|
3109
|
-
case 1:
|
|
3110
|
-
localVarAxiosArgs = _d.sent();
|
|
3111
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3112
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3113
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3114
|
-
}
|
|
3115
|
-
});
|
|
3116
|
-
});
|
|
3117
|
-
},
|
|
3118
|
-
/**
|
|
3119
|
-
*
|
|
3120
|
-
* @summary Update Work Schedule
|
|
3121
|
-
* @param {number} id
|
|
3122
|
-
* @param {WorkScheduleUpdateRequest} workScheduleUpdateRequest
|
|
3123
|
-
* @param {*} [options] Override http request option.
|
|
3124
|
-
* @throws {RequiredError}
|
|
3125
|
-
*/
|
|
3126
|
-
workSchedulesIdPut: function (id, workScheduleUpdateRequest, options) {
|
|
3127
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3128
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3129
|
-
var _a, _b, _c;
|
|
3130
|
-
return __generator(this, function (_d) {
|
|
3131
|
-
switch (_d.label) {
|
|
3132
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesIdPut(id, workScheduleUpdateRequest, options)];
|
|
3133
|
-
case 1:
|
|
3134
|
-
localVarAxiosArgs = _d.sent();
|
|
3135
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3136
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3137
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3138
|
-
}
|
|
3139
|
-
});
|
|
3140
|
-
});
|
|
3141
|
-
},
|
|
3142
|
-
/**
|
|
3143
|
-
*
|
|
3144
|
-
* @summary Create Work Schedule
|
|
3145
|
-
* @param {WorkScheduleCreateRequest} workScheduleCreateRequest
|
|
3146
|
-
* @param {*} [options] Override http request option.
|
|
3147
|
-
* @throws {RequiredError}
|
|
3148
|
-
*/
|
|
3149
|
-
workSchedulesPost: function (workScheduleCreateRequest, options) {
|
|
3150
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
3151
|
-
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
3152
|
-
var _a, _b, _c;
|
|
3153
|
-
return __generator(this, function (_d) {
|
|
3154
|
-
switch (_d.label) {
|
|
3155
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.workSchedulesPost(workScheduleCreateRequest, options)];
|
|
3156
|
-
case 1:
|
|
3157
|
-
localVarAxiosArgs = _d.sent();
|
|
3158
|
-
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3159
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WorkScheduleResourceApi.workSchedulesPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3160
|
-
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
3161
|
-
}
|
|
3162
|
-
});
|
|
3163
|
-
});
|
|
3164
|
-
},
|
|
3165
|
-
};
|
|
3166
|
-
};
|
|
3167
|
-
exports.WorkScheduleResourceApiFp = WorkScheduleResourceApiFp;
|
|
3168
|
-
/**
|
|
3169
|
-
* WorkScheduleResourceApi - factory interface
|
|
3170
|
-
*/
|
|
3171
|
-
var WorkScheduleResourceApiFactory = function (configuration, basePath, axios) {
|
|
3172
|
-
var localVarFp = (0, exports.WorkScheduleResourceApiFp)(configuration);
|
|
3173
|
-
return {
|
|
3174
|
-
/**
|
|
3175
|
-
*
|
|
3176
|
-
* @summary Get Work Schedules
|
|
3177
|
-
* @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
|
|
3178
|
-
* @param {*} [options] Override http request option.
|
|
3179
|
-
* @throws {RequiredError}
|
|
3180
|
-
*/
|
|
3181
|
-
workSchedulesGet: function (requestParameters, options) {
|
|
3182
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
3183
|
-
return localVarFp.workSchedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
|
|
3184
|
-
},
|
|
3185
|
-
/**
|
|
3186
|
-
*
|
|
3187
|
-
* @summary Delete Work Schedule By Id
|
|
3188
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
|
|
3189
|
-
* @param {*} [options] Override http request option.
|
|
3190
|
-
* @throws {RequiredError}
|
|
3191
|
-
*/
|
|
3192
|
-
workSchedulesIdDelete: function (requestParameters, options) {
|
|
3193
|
-
return localVarFp.workSchedulesIdDelete(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
|
|
3194
|
-
},
|
|
3195
|
-
/**
|
|
3196
|
-
*
|
|
3197
|
-
* @summary Find Work Schedule By Id
|
|
3198
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
|
|
3199
|
-
* @param {*} [options] Override http request option.
|
|
3200
|
-
* @throws {RequiredError}
|
|
3201
|
-
*/
|
|
3202
|
-
workSchedulesIdGet: function (requestParameters, options) {
|
|
3203
|
-
return localVarFp.workSchedulesIdGet(requestParameters.id, options).then(function (request) { return request(axios, basePath); });
|
|
3204
|
-
},
|
|
3205
|
-
/**
|
|
3206
|
-
*
|
|
3207
|
-
* @summary Update Work Schedule
|
|
3208
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
|
|
3209
|
-
* @param {*} [options] Override http request option.
|
|
3210
|
-
* @throws {RequiredError}
|
|
3211
|
-
*/
|
|
3212
|
-
workSchedulesIdPut: function (requestParameters, options) {
|
|
3213
|
-
return localVarFp.workSchedulesIdPut(requestParameters.id, requestParameters.workScheduleUpdateRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3214
|
-
},
|
|
3215
|
-
/**
|
|
3216
|
-
*
|
|
3217
|
-
* @summary Create Work Schedule
|
|
3218
|
-
* @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
|
|
3219
|
-
* @param {*} [options] Override http request option.
|
|
3220
|
-
* @throws {RequiredError}
|
|
3221
|
-
*/
|
|
3222
|
-
workSchedulesPost: function (requestParameters, options) {
|
|
3223
|
-
return localVarFp.workSchedulesPost(requestParameters.workScheduleCreateRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3224
|
-
},
|
|
3225
|
-
};
|
|
3226
|
-
};
|
|
3227
|
-
exports.WorkScheduleResourceApiFactory = WorkScheduleResourceApiFactory;
|
|
3228
|
-
/**
|
|
3229
|
-
* WorkScheduleResourceApi - object-oriented interface
|
|
3230
|
-
*/
|
|
3231
|
-
var WorkScheduleResourceApi = /** @class */ (function (_super) {
|
|
3232
|
-
__extends(WorkScheduleResourceApi, _super);
|
|
3233
|
-
function WorkScheduleResourceApi() {
|
|
3234
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3235
|
-
}
|
|
3236
|
-
/**
|
|
3237
|
-
*
|
|
3238
|
-
* @summary Get Work Schedules
|
|
3239
|
-
* @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
|
|
3240
|
-
* @param {*} [options] Override http request option.
|
|
3241
|
-
* @throws {RequiredError}
|
|
3242
|
-
*/
|
|
3243
|
-
WorkScheduleResourceApi.prototype.workSchedulesGet = function (requestParameters, options) {
|
|
3244
|
-
var _this = this;
|
|
3245
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
3246
|
-
return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3247
|
-
};
|
|
3248
|
-
/**
|
|
3249
|
-
*
|
|
3250
|
-
* @summary Delete Work Schedule By Id
|
|
3251
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
|
|
3252
|
-
* @param {*} [options] Override http request option.
|
|
3253
|
-
* @throws {RequiredError}
|
|
3254
|
-
*/
|
|
3255
|
-
WorkScheduleResourceApi.prototype.workSchedulesIdDelete = function (requestParameters, options) {
|
|
3256
|
-
var _this = this;
|
|
3257
|
-
return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3258
|
-
};
|
|
3259
|
-
/**
|
|
3260
|
-
*
|
|
3261
|
-
* @summary Find Work Schedule By Id
|
|
3262
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
|
|
3263
|
-
* @param {*} [options] Override http request option.
|
|
3264
|
-
* @throws {RequiredError}
|
|
3265
|
-
*/
|
|
3266
|
-
WorkScheduleResourceApi.prototype.workSchedulesIdGet = function (requestParameters, options) {
|
|
3267
|
-
var _this = this;
|
|
3268
|
-
return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3269
|
-
};
|
|
3270
|
-
/**
|
|
3271
|
-
*
|
|
3272
|
-
* @summary Update Work Schedule
|
|
3273
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
|
|
3274
|
-
* @param {*} [options] Override http request option.
|
|
3275
|
-
* @throws {RequiredError}
|
|
3276
|
-
*/
|
|
3277
|
-
WorkScheduleResourceApi.prototype.workSchedulesIdPut = function (requestParameters, options) {
|
|
3278
|
-
var _this = this;
|
|
3279
|
-
return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesIdPut(requestParameters.id, requestParameters.workScheduleUpdateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3280
|
-
};
|
|
3281
|
-
/**
|
|
3282
|
-
*
|
|
3283
|
-
* @summary Create Work Schedule
|
|
3284
|
-
* @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
|
|
3285
|
-
* @param {*} [options] Override http request option.
|
|
3286
|
-
* @throws {RequiredError}
|
|
3287
|
-
*/
|
|
3288
|
-
WorkScheduleResourceApi.prototype.workSchedulesPost = function (requestParameters, options) {
|
|
3289
|
-
var _this = this;
|
|
3290
|
-
return (0, exports.WorkScheduleResourceApiFp)(this.configuration).workSchedulesPost(requestParameters.workScheduleCreateRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3291
|
-
};
|
|
3292
|
-
return WorkScheduleResourceApi;
|
|
3293
|
-
}(base_1.BaseAPI));
|
|
3294
|
-
exports.WorkScheduleResourceApi = WorkScheduleResourceApi;
|