@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/api.ts
CHANGED
|
@@ -124,40 +124,58 @@ export interface ScheduleUpdateRequest {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
|
|
127
|
-
export interface
|
|
127
|
+
export interface ShiftBreakRequest {
|
|
128
|
+
'startTime'?: string;
|
|
129
|
+
'endTime'?: string;
|
|
130
|
+
}
|
|
131
|
+
export interface ShiftBreakResponse {
|
|
128
132
|
'id'?: number;
|
|
129
|
-
'name'?: string;
|
|
130
133
|
'startTime'?: string;
|
|
131
134
|
'endTime'?: string;
|
|
132
|
-
'restTimeBetweenAppointments'?: string;
|
|
133
|
-
'breakStartTime'?: string;
|
|
134
|
-
'breakEndTime'?: string;
|
|
135
135
|
}
|
|
136
136
|
export interface ShiftCreateRequest {
|
|
137
137
|
'name'?: string;
|
|
138
138
|
'startTime'?: string;
|
|
139
139
|
'endTime'?: string;
|
|
140
140
|
'restTimeBetweenAppointments'?: string;
|
|
141
|
-
'
|
|
142
|
-
'
|
|
141
|
+
'breaks'?: Array<ShiftBreakRequest>;
|
|
142
|
+
'dayOfWeek'?: DayOfWeek;
|
|
143
|
+
'status'?: ShiftStatus;
|
|
143
144
|
}
|
|
145
|
+
|
|
146
|
+
|
|
144
147
|
export interface ShiftResponse {
|
|
145
148
|
'id'?: number;
|
|
146
149
|
'name'?: string;
|
|
147
150
|
'startTime'?: string;
|
|
148
151
|
'endTime'?: string;
|
|
149
152
|
'restTimeBetweenAppointments'?: string;
|
|
150
|
-
'
|
|
151
|
-
'
|
|
153
|
+
'breaks'?: Array<ShiftBreakResponse>;
|
|
154
|
+
'dayOfWeek'?: DayOfWeek;
|
|
155
|
+
'status'?: ShiftStatus;
|
|
152
156
|
}
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
export const ShiftStatus = {
|
|
161
|
+
Enabled: 'ENABLED',
|
|
162
|
+
Disabled: 'DISABLED',
|
|
163
|
+
} as const;
|
|
164
|
+
|
|
165
|
+
export type ShiftStatus = typeof ShiftStatus[keyof typeof ShiftStatus];
|
|
166
|
+
|
|
167
|
+
|
|
153
168
|
export interface ShiftUpdateRequest {
|
|
154
169
|
'name'?: string;
|
|
155
170
|
'startTime'?: string;
|
|
156
171
|
'endTime'?: string;
|
|
157
172
|
'restTimeBetweenAppointments'?: string;
|
|
158
|
-
'
|
|
159
|
-
'
|
|
173
|
+
'breaks'?: Array<ShiftBreakRequest>;
|
|
174
|
+
'dayOfWeek'?: DayOfWeek;
|
|
175
|
+
'status'?: ShiftStatus;
|
|
160
176
|
}
|
|
177
|
+
|
|
178
|
+
|
|
161
179
|
export interface TreatmentCreateRequest {
|
|
162
180
|
'name'?: string;
|
|
163
181
|
'description'?: string;
|
|
@@ -221,25 +239,6 @@ export interface UserResponse {
|
|
|
221
239
|
'name'?: string;
|
|
222
240
|
'email'?: string;
|
|
223
241
|
}
|
|
224
|
-
export interface WorkScheduleCreateRequest {
|
|
225
|
-
'shiftId'?: number;
|
|
226
|
-
'dayOfWeek'?: DayOfWeek;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
export interface WorkScheduleResponse {
|
|
231
|
-
'id'?: number;
|
|
232
|
-
'shift'?: Shift;
|
|
233
|
-
'dayOfWeek'?: DayOfWeek;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
export interface WorkScheduleUpdateRequest {
|
|
238
|
-
'shiftId'?: number;
|
|
239
|
-
'dayOfWeek'?: DayOfWeek;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
|
|
243
242
|
|
|
244
243
|
/**
|
|
245
244
|
* AuthResourceApi - axios parameter creator
|
|
@@ -1244,12 +1243,19 @@ export const ScheduleResourceApiAxiosParamCreator = function (configuration?: Co
|
|
|
1244
1243
|
/**
|
|
1245
1244
|
*
|
|
1246
1245
|
* @summary Get Schedules
|
|
1247
|
-
* @param {number}
|
|
1248
|
-
* @param {number}
|
|
1246
|
+
* @param {number} page
|
|
1247
|
+
* @param {number} size
|
|
1248
|
+
* @param {string} [start]
|
|
1249
|
+
* @param {string} [end]
|
|
1250
|
+
* @param {ScheduleStatus} [status]
|
|
1249
1251
|
* @param {*} [options] Override http request option.
|
|
1250
1252
|
* @throws {RequiredError}
|
|
1251
1253
|
*/
|
|
1252
|
-
schedulesGet: async (page
|
|
1254
|
+
schedulesGet: async (page: number, size: number, start?: string, end?: string, status?: ScheduleStatus, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1255
|
+
// verify required parameter 'page' is not null or undefined
|
|
1256
|
+
assertParamExists('schedulesGet', 'page', page)
|
|
1257
|
+
// verify required parameter 'size' is not null or undefined
|
|
1258
|
+
assertParamExists('schedulesGet', 'size', size)
|
|
1253
1259
|
const localVarPath = `/schedules`;
|
|
1254
1260
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1255
1261
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1270,6 +1276,22 @@ export const ScheduleResourceApiAxiosParamCreator = function (configuration?: Co
|
|
|
1270
1276
|
localVarQueryParameter['size'] = size;
|
|
1271
1277
|
}
|
|
1272
1278
|
|
|
1279
|
+
if (start !== undefined) {
|
|
1280
|
+
localVarQueryParameter['start'] = (start as any instanceof Date) ?
|
|
1281
|
+
(start as any).toISOString() :
|
|
1282
|
+
start;
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
if (end !== undefined) {
|
|
1286
|
+
localVarQueryParameter['end'] = (end as any instanceof Date) ?
|
|
1287
|
+
(end as any).toISOString() :
|
|
1288
|
+
end;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
if (status !== undefined) {
|
|
1292
|
+
localVarQueryParameter['status'] = status;
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1273
1295
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1274
1296
|
|
|
1275
1297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1417,10 +1439,6 @@ export const ScheduleResourceApiAxiosParamCreator = function (configuration?: Co
|
|
|
1417
1439
|
const localVarHeaderParameter = {} as any;
|
|
1418
1440
|
const localVarQueryParameter = {} as any;
|
|
1419
1441
|
|
|
1420
|
-
// authentication SecurityScheme required
|
|
1421
|
-
// http bearer authentication required
|
|
1422
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1423
|
-
|
|
1424
1442
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1425
1443
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1426
1444
|
|
|
@@ -1446,13 +1464,16 @@ export const ScheduleResourceApiFp = function(configuration?: Configuration) {
|
|
|
1446
1464
|
/**
|
|
1447
1465
|
*
|
|
1448
1466
|
* @summary Get Schedules
|
|
1449
|
-
* @param {number}
|
|
1450
|
-
* @param {number}
|
|
1467
|
+
* @param {number} page
|
|
1468
|
+
* @param {number} size
|
|
1469
|
+
* @param {string} [start]
|
|
1470
|
+
* @param {string} [end]
|
|
1471
|
+
* @param {ScheduleStatus} [status]
|
|
1451
1472
|
* @param {*} [options] Override http request option.
|
|
1452
1473
|
* @throws {RequiredError}
|
|
1453
1474
|
*/
|
|
1454
|
-
async schedulesGet(page
|
|
1455
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.schedulesGet(page, size, options);
|
|
1475
|
+
async schedulesGet(page: number, size: number, start?: string, end?: string, status?: ScheduleStatus, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
1476
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.schedulesGet(page, size, start, end, status, options);
|
|
1456
1477
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1457
1478
|
const localVarOperationServerBasePath = operationServerMap['ScheduleResourceApi.schedulesGet']?.[localVarOperationServerIndex]?.url;
|
|
1458
1479
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1526,8 +1547,8 @@ export const ScheduleResourceApiFactory = function (configuration?: Configuratio
|
|
|
1526
1547
|
* @param {*} [options] Override http request option.
|
|
1527
1548
|
* @throws {RequiredError}
|
|
1528
1549
|
*/
|
|
1529
|
-
schedulesGet(requestParameters: ScheduleResourceApiSchedulesGetRequest
|
|
1530
|
-
return localVarFp.schedulesGet(requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
|
|
1550
|
+
schedulesGet(requestParameters: ScheduleResourceApiSchedulesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
1551
|
+
return localVarFp.schedulesGet(requestParameters.page, requestParameters.size, requestParameters.start, requestParameters.end, requestParameters.status, options).then((request) => request(axios, basePath));
|
|
1531
1552
|
},
|
|
1532
1553
|
/**
|
|
1533
1554
|
*
|
|
@@ -1583,7 +1604,7 @@ export interface ScheduleResourceApiInterface {
|
|
|
1583
1604
|
* @param {*} [options] Override http request option.
|
|
1584
1605
|
* @throws {RequiredError}
|
|
1585
1606
|
*/
|
|
1586
|
-
schedulesGet(requestParameters
|
|
1607
|
+
schedulesGet(requestParameters: ScheduleResourceApiSchedulesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse>;
|
|
1587
1608
|
|
|
1588
1609
|
/**
|
|
1589
1610
|
*
|
|
@@ -1627,9 +1648,15 @@ export interface ScheduleResourceApiInterface {
|
|
|
1627
1648
|
* Request parameters for schedulesGet operation in ScheduleResourceApi.
|
|
1628
1649
|
*/
|
|
1629
1650
|
export interface ScheduleResourceApiSchedulesGetRequest {
|
|
1630
|
-
readonly page
|
|
1651
|
+
readonly page: number
|
|
1631
1652
|
|
|
1632
|
-
readonly size
|
|
1653
|
+
readonly size: number
|
|
1654
|
+
|
|
1655
|
+
readonly start?: string
|
|
1656
|
+
|
|
1657
|
+
readonly end?: string
|
|
1658
|
+
|
|
1659
|
+
readonly status?: ScheduleStatus
|
|
1633
1660
|
}
|
|
1634
1661
|
|
|
1635
1662
|
/**
|
|
@@ -1673,8 +1700,8 @@ export class ScheduleResourceApi extends BaseAPI implements ScheduleResourceApiI
|
|
|
1673
1700
|
* @param {*} [options] Override http request option.
|
|
1674
1701
|
* @throws {RequiredError}
|
|
1675
1702
|
*/
|
|
1676
|
-
public schedulesGet(requestParameters: ScheduleResourceApiSchedulesGetRequest
|
|
1677
|
-
return ScheduleResourceApiFp(this.configuration).schedulesGet(requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
1703
|
+
public schedulesGet(requestParameters: ScheduleResourceApiSchedulesGetRequest, options?: RawAxiosRequestConfig) {
|
|
1704
|
+
return ScheduleResourceApiFp(this.configuration).schedulesGet(requestParameters.page, requestParameters.size, requestParameters.start, requestParameters.end, requestParameters.status, options).then((request) => request(this.axios, this.basePath));
|
|
1678
1705
|
}
|
|
1679
1706
|
|
|
1680
1707
|
/**
|
|
@@ -2226,11 +2253,12 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2226
2253
|
* @summary Get Treatments
|
|
2227
2254
|
* @param {number} [page]
|
|
2228
2255
|
* @param {number} [size]
|
|
2256
|
+
* @param {string} [text]
|
|
2229
2257
|
* @param {TreatmentType} [type]
|
|
2230
2258
|
* @param {*} [options] Override http request option.
|
|
2231
2259
|
* @throws {RequiredError}
|
|
2232
2260
|
*/
|
|
2233
|
-
treatmentsGet: async (page?: number, size?: number, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2261
|
+
treatmentsGet: async (page?: number, size?: number, text?: string, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2234
2262
|
const localVarPath = `/treatments`;
|
|
2235
2263
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2236
2264
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2251,6 +2279,10 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2251
2279
|
localVarQueryParameter['size'] = size;
|
|
2252
2280
|
}
|
|
2253
2281
|
|
|
2282
|
+
if (text !== undefined) {
|
|
2283
|
+
localVarQueryParameter['text'] = text;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2254
2286
|
if (type !== undefined) {
|
|
2255
2287
|
localVarQueryParameter['type'] = type;
|
|
2256
2288
|
}
|
|
@@ -2433,12 +2465,13 @@ export const TreatmentResourceApiFp = function(configuration?: Configuration) {
|
|
|
2433
2465
|
* @summary Get Treatments
|
|
2434
2466
|
* @param {number} [page]
|
|
2435
2467
|
* @param {number} [size]
|
|
2468
|
+
* @param {string} [text]
|
|
2436
2469
|
* @param {TreatmentType} [type]
|
|
2437
2470
|
* @param {*} [options] Override http request option.
|
|
2438
2471
|
* @throws {RequiredError}
|
|
2439
2472
|
*/
|
|
2440
|
-
async treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2441
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, type, options);
|
|
2473
|
+
async treatmentsGet(page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, text, type, options);
|
|
2442
2475
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2443
2476
|
const localVarOperationServerBasePath = operationServerMap['TreatmentResourceApi.treatmentsGet']?.[localVarOperationServerIndex]?.url;
|
|
2444
2477
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2513,7 +2546,7 @@ export const TreatmentResourceApiFactory = function (configuration?: Configurati
|
|
|
2513
2546
|
* @throws {RequiredError}
|
|
2514
2547
|
*/
|
|
2515
2548
|
treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
2516
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2549
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2517
2550
|
},
|
|
2518
2551
|
/**
|
|
2519
2552
|
*
|
|
@@ -2617,6 +2650,8 @@ export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
|
2617
2650
|
|
|
2618
2651
|
readonly size?: number
|
|
2619
2652
|
|
|
2653
|
+
readonly text?: string
|
|
2654
|
+
|
|
2620
2655
|
readonly type?: TreatmentType
|
|
2621
2656
|
}
|
|
2622
2657
|
|
|
@@ -2662,7 +2697,7 @@ export class TreatmentResourceApi extends BaseAPI implements TreatmentResourceAp
|
|
|
2662
2697
|
* @throws {RequiredError}
|
|
2663
2698
|
*/
|
|
2664
2699
|
public treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
2665
|
-
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2700
|
+
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2666
2701
|
}
|
|
2667
2702
|
|
|
2668
2703
|
/**
|
|
@@ -2924,491 +2959,3 @@ export class UserResourceApi extends BaseAPI implements UserResourceApiInterface
|
|
|
2924
2959
|
|
|
2925
2960
|
|
|
2926
2961
|
|
|
2927
|
-
/**
|
|
2928
|
-
* WorkScheduleResourceApi - axios parameter creator
|
|
2929
|
-
*/
|
|
2930
|
-
export const WorkScheduleResourceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
2931
|
-
return {
|
|
2932
|
-
/**
|
|
2933
|
-
*
|
|
2934
|
-
* @summary Get Work Schedules
|
|
2935
|
-
* @param {number} [page]
|
|
2936
|
-
* @param {number} [size]
|
|
2937
|
-
* @param {*} [options] Override http request option.
|
|
2938
|
-
* @throws {RequiredError}
|
|
2939
|
-
*/
|
|
2940
|
-
workSchedulesGet: async (page?: number, size?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2941
|
-
const localVarPath = `/work-schedules`;
|
|
2942
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2943
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2944
|
-
let baseOptions;
|
|
2945
|
-
if (configuration) {
|
|
2946
|
-
baseOptions = configuration.baseOptions;
|
|
2947
|
-
}
|
|
2948
|
-
|
|
2949
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
2950
|
-
const localVarHeaderParameter = {} as any;
|
|
2951
|
-
const localVarQueryParameter = {} as any;
|
|
2952
|
-
|
|
2953
|
-
if (page !== undefined) {
|
|
2954
|
-
localVarQueryParameter['page'] = page;
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
if (size !== undefined) {
|
|
2958
|
-
localVarQueryParameter['size'] = size;
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2962
|
-
|
|
2963
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2964
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2965
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
2966
|
-
|
|
2967
|
-
return {
|
|
2968
|
-
url: toPathString(localVarUrlObj),
|
|
2969
|
-
options: localVarRequestOptions,
|
|
2970
|
-
};
|
|
2971
|
-
},
|
|
2972
|
-
/**
|
|
2973
|
-
*
|
|
2974
|
-
* @summary Delete Work Schedule By Id
|
|
2975
|
-
* @param {number} id
|
|
2976
|
-
* @param {*} [options] Override http request option.
|
|
2977
|
-
* @throws {RequiredError}
|
|
2978
|
-
*/
|
|
2979
|
-
workSchedulesIdDelete: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2980
|
-
// verify required parameter 'id' is not null or undefined
|
|
2981
|
-
assertParamExists('workSchedulesIdDelete', 'id', id)
|
|
2982
|
-
const localVarPath = `/work-schedules/{id}`
|
|
2983
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
2984
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2985
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2986
|
-
let baseOptions;
|
|
2987
|
-
if (configuration) {
|
|
2988
|
-
baseOptions = configuration.baseOptions;
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
2992
|
-
const localVarHeaderParameter = {} as any;
|
|
2993
|
-
const localVarQueryParameter = {} as any;
|
|
2994
|
-
|
|
2995
|
-
// authentication SecurityScheme required
|
|
2996
|
-
// http bearer authentication required
|
|
2997
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3001
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3002
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3003
|
-
|
|
3004
|
-
return {
|
|
3005
|
-
url: toPathString(localVarUrlObj),
|
|
3006
|
-
options: localVarRequestOptions,
|
|
3007
|
-
};
|
|
3008
|
-
},
|
|
3009
|
-
/**
|
|
3010
|
-
*
|
|
3011
|
-
* @summary Find Work Schedule By Id
|
|
3012
|
-
* @param {number} id
|
|
3013
|
-
* @param {*} [options] Override http request option.
|
|
3014
|
-
* @throws {RequiredError}
|
|
3015
|
-
*/
|
|
3016
|
-
workSchedulesIdGet: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3017
|
-
// verify required parameter 'id' is not null or undefined
|
|
3018
|
-
assertParamExists('workSchedulesIdGet', 'id', id)
|
|
3019
|
-
const localVarPath = `/work-schedules/{id}`
|
|
3020
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
3021
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3022
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3023
|
-
let baseOptions;
|
|
3024
|
-
if (configuration) {
|
|
3025
|
-
baseOptions = configuration.baseOptions;
|
|
3026
|
-
}
|
|
3027
|
-
|
|
3028
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3029
|
-
const localVarHeaderParameter = {} as any;
|
|
3030
|
-
const localVarQueryParameter = {} as any;
|
|
3031
|
-
|
|
3032
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3033
|
-
|
|
3034
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3035
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3036
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3037
|
-
|
|
3038
|
-
return {
|
|
3039
|
-
url: toPathString(localVarUrlObj),
|
|
3040
|
-
options: localVarRequestOptions,
|
|
3041
|
-
};
|
|
3042
|
-
},
|
|
3043
|
-
/**
|
|
3044
|
-
*
|
|
3045
|
-
* @summary Update Work Schedule
|
|
3046
|
-
* @param {number} id
|
|
3047
|
-
* @param {WorkScheduleUpdateRequest} workScheduleUpdateRequest
|
|
3048
|
-
* @param {*} [options] Override http request option.
|
|
3049
|
-
* @throws {RequiredError}
|
|
3050
|
-
*/
|
|
3051
|
-
workSchedulesIdPut: async (id: number, workScheduleUpdateRequest: WorkScheduleUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3052
|
-
// verify required parameter 'id' is not null or undefined
|
|
3053
|
-
assertParamExists('workSchedulesIdPut', 'id', id)
|
|
3054
|
-
// verify required parameter 'workScheduleUpdateRequest' is not null or undefined
|
|
3055
|
-
assertParamExists('workSchedulesIdPut', 'workScheduleUpdateRequest', workScheduleUpdateRequest)
|
|
3056
|
-
const localVarPath = `/work-schedules/{id}`
|
|
3057
|
-
.replace('{id}', encodeURIComponent(String(id)));
|
|
3058
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3059
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3060
|
-
let baseOptions;
|
|
3061
|
-
if (configuration) {
|
|
3062
|
-
baseOptions = configuration.baseOptions;
|
|
3063
|
-
}
|
|
3064
|
-
|
|
3065
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
3066
|
-
const localVarHeaderParameter = {} as any;
|
|
3067
|
-
const localVarQueryParameter = {} as any;
|
|
3068
|
-
|
|
3069
|
-
// authentication SecurityScheme required
|
|
3070
|
-
// http bearer authentication required
|
|
3071
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3072
|
-
|
|
3073
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3074
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3075
|
-
|
|
3076
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3077
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3078
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3079
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workScheduleUpdateRequest, localVarRequestOptions, configuration)
|
|
3080
|
-
|
|
3081
|
-
return {
|
|
3082
|
-
url: toPathString(localVarUrlObj),
|
|
3083
|
-
options: localVarRequestOptions,
|
|
3084
|
-
};
|
|
3085
|
-
},
|
|
3086
|
-
/**
|
|
3087
|
-
*
|
|
3088
|
-
* @summary Create Work Schedule
|
|
3089
|
-
* @param {WorkScheduleCreateRequest} workScheduleCreateRequest
|
|
3090
|
-
* @param {*} [options] Override http request option.
|
|
3091
|
-
* @throws {RequiredError}
|
|
3092
|
-
*/
|
|
3093
|
-
workSchedulesPost: async (workScheduleCreateRequest: WorkScheduleCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3094
|
-
// verify required parameter 'workScheduleCreateRequest' is not null or undefined
|
|
3095
|
-
assertParamExists('workSchedulesPost', 'workScheduleCreateRequest', workScheduleCreateRequest)
|
|
3096
|
-
const localVarPath = `/work-schedules`;
|
|
3097
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3098
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3099
|
-
let baseOptions;
|
|
3100
|
-
if (configuration) {
|
|
3101
|
-
baseOptions = configuration.baseOptions;
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
3105
|
-
const localVarHeaderParameter = {} as any;
|
|
3106
|
-
const localVarQueryParameter = {} as any;
|
|
3107
|
-
|
|
3108
|
-
// authentication SecurityScheme required
|
|
3109
|
-
// http bearer authentication required
|
|
3110
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
3111
|
-
|
|
3112
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3113
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
3114
|
-
|
|
3115
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3116
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3117
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3118
|
-
localVarRequestOptions.data = serializeDataIfNeeded(workScheduleCreateRequest, localVarRequestOptions, configuration)
|
|
3119
|
-
|
|
3120
|
-
return {
|
|
3121
|
-
url: toPathString(localVarUrlObj),
|
|
3122
|
-
options: localVarRequestOptions,
|
|
3123
|
-
};
|
|
3124
|
-
},
|
|
3125
|
-
}
|
|
3126
|
-
};
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* WorkScheduleResourceApi - functional programming interface
|
|
3130
|
-
*/
|
|
3131
|
-
export const WorkScheduleResourceApiFp = function(configuration?: Configuration) {
|
|
3132
|
-
const localVarAxiosParamCreator = WorkScheduleResourceApiAxiosParamCreator(configuration)
|
|
3133
|
-
return {
|
|
3134
|
-
/**
|
|
3135
|
-
*
|
|
3136
|
-
* @summary Get Work Schedules
|
|
3137
|
-
* @param {number} [page]
|
|
3138
|
-
* @param {number} [size]
|
|
3139
|
-
* @param {*} [options] Override http request option.
|
|
3140
|
-
* @throws {RequiredError}
|
|
3141
|
-
*/
|
|
3142
|
-
async workSchedulesGet(page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
3143
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workSchedulesGet(page, size, options);
|
|
3144
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3145
|
-
const localVarOperationServerBasePath = operationServerMap['WorkScheduleResourceApi.workSchedulesGet']?.[localVarOperationServerIndex]?.url;
|
|
3146
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3147
|
-
},
|
|
3148
|
-
/**
|
|
3149
|
-
*
|
|
3150
|
-
* @summary Delete Work Schedule By Id
|
|
3151
|
-
* @param {number} id
|
|
3152
|
-
* @param {*} [options] Override http request option.
|
|
3153
|
-
* @throws {RequiredError}
|
|
3154
|
-
*/
|
|
3155
|
-
async workSchedulesIdDelete(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
3156
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workSchedulesIdDelete(id, options);
|
|
3157
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3158
|
-
const localVarOperationServerBasePath = operationServerMap['WorkScheduleResourceApi.workSchedulesIdDelete']?.[localVarOperationServerIndex]?.url;
|
|
3159
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3160
|
-
},
|
|
3161
|
-
/**
|
|
3162
|
-
*
|
|
3163
|
-
* @summary Find Work Schedule By Id
|
|
3164
|
-
* @param {number} id
|
|
3165
|
-
* @param {*} [options] Override http request option.
|
|
3166
|
-
* @throws {RequiredError}
|
|
3167
|
-
*/
|
|
3168
|
-
async workSchedulesIdGet(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkScheduleResponse>> {
|
|
3169
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workSchedulesIdGet(id, options);
|
|
3170
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3171
|
-
const localVarOperationServerBasePath = operationServerMap['WorkScheduleResourceApi.workSchedulesIdGet']?.[localVarOperationServerIndex]?.url;
|
|
3172
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3173
|
-
},
|
|
3174
|
-
/**
|
|
3175
|
-
*
|
|
3176
|
-
* @summary Update Work Schedule
|
|
3177
|
-
* @param {number} id
|
|
3178
|
-
* @param {WorkScheduleUpdateRequest} workScheduleUpdateRequest
|
|
3179
|
-
* @param {*} [options] Override http request option.
|
|
3180
|
-
* @throws {RequiredError}
|
|
3181
|
-
*/
|
|
3182
|
-
async workSchedulesIdPut(id: number, workScheduleUpdateRequest: WorkScheduleUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkScheduleResponse>> {
|
|
3183
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workSchedulesIdPut(id, workScheduleUpdateRequest, options);
|
|
3184
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3185
|
-
const localVarOperationServerBasePath = operationServerMap['WorkScheduleResourceApi.workSchedulesIdPut']?.[localVarOperationServerIndex]?.url;
|
|
3186
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3187
|
-
},
|
|
3188
|
-
/**
|
|
3189
|
-
*
|
|
3190
|
-
* @summary Create Work Schedule
|
|
3191
|
-
* @param {WorkScheduleCreateRequest} workScheduleCreateRequest
|
|
3192
|
-
* @param {*} [options] Override http request option.
|
|
3193
|
-
* @throws {RequiredError}
|
|
3194
|
-
*/
|
|
3195
|
-
async workSchedulesPost(workScheduleCreateRequest: WorkScheduleCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WorkScheduleResponse>> {
|
|
3196
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.workSchedulesPost(workScheduleCreateRequest, options);
|
|
3197
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3198
|
-
const localVarOperationServerBasePath = operationServerMap['WorkScheduleResourceApi.workSchedulesPost']?.[localVarOperationServerIndex]?.url;
|
|
3199
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3200
|
-
},
|
|
3201
|
-
}
|
|
3202
|
-
};
|
|
3203
|
-
|
|
3204
|
-
/**
|
|
3205
|
-
* WorkScheduleResourceApi - factory interface
|
|
3206
|
-
*/
|
|
3207
|
-
export const WorkScheduleResourceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
3208
|
-
const localVarFp = WorkScheduleResourceApiFp(configuration)
|
|
3209
|
-
return {
|
|
3210
|
-
/**
|
|
3211
|
-
*
|
|
3212
|
-
* @summary Get Work Schedules
|
|
3213
|
-
* @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
|
|
3214
|
-
* @param {*} [options] Override http request option.
|
|
3215
|
-
* @throws {RequiredError}
|
|
3216
|
-
*/
|
|
3217
|
-
workSchedulesGet(requestParameters: WorkScheduleResourceApiWorkSchedulesGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
3218
|
-
return localVarFp.workSchedulesGet(requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
|
|
3219
|
-
},
|
|
3220
|
-
/**
|
|
3221
|
-
*
|
|
3222
|
-
* @summary Delete Work Schedule By Id
|
|
3223
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
|
|
3224
|
-
* @param {*} [options] Override http request option.
|
|
3225
|
-
* @throws {RequiredError}
|
|
3226
|
-
*/
|
|
3227
|
-
workSchedulesIdDelete(requestParameters: WorkScheduleResourceApiWorkSchedulesIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
3228
|
-
return localVarFp.workSchedulesIdDelete(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3229
|
-
},
|
|
3230
|
-
/**
|
|
3231
|
-
*
|
|
3232
|
-
* @summary Find Work Schedule By Id
|
|
3233
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
|
|
3234
|
-
* @param {*} [options] Override http request option.
|
|
3235
|
-
* @throws {RequiredError}
|
|
3236
|
-
*/
|
|
3237
|
-
workSchedulesIdGet(requestParameters: WorkScheduleResourceApiWorkSchedulesIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkScheduleResponse> {
|
|
3238
|
-
return localVarFp.workSchedulesIdGet(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3239
|
-
},
|
|
3240
|
-
/**
|
|
3241
|
-
*
|
|
3242
|
-
* @summary Update Work Schedule
|
|
3243
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
|
|
3244
|
-
* @param {*} [options] Override http request option.
|
|
3245
|
-
* @throws {RequiredError}
|
|
3246
|
-
*/
|
|
3247
|
-
workSchedulesIdPut(requestParameters: WorkScheduleResourceApiWorkSchedulesIdPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkScheduleResponse> {
|
|
3248
|
-
return localVarFp.workSchedulesIdPut(requestParameters.id, requestParameters.workScheduleUpdateRequest, options).then((request) => request(axios, basePath));
|
|
3249
|
-
},
|
|
3250
|
-
/**
|
|
3251
|
-
*
|
|
3252
|
-
* @summary Create Work Schedule
|
|
3253
|
-
* @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
|
|
3254
|
-
* @param {*} [options] Override http request option.
|
|
3255
|
-
* @throws {RequiredError}
|
|
3256
|
-
*/
|
|
3257
|
-
workSchedulesPost(requestParameters: WorkScheduleResourceApiWorkSchedulesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkScheduleResponse> {
|
|
3258
|
-
return localVarFp.workSchedulesPost(requestParameters.workScheduleCreateRequest, options).then((request) => request(axios, basePath));
|
|
3259
|
-
},
|
|
3260
|
-
};
|
|
3261
|
-
};
|
|
3262
|
-
|
|
3263
|
-
/**
|
|
3264
|
-
* WorkScheduleResourceApi - interface
|
|
3265
|
-
*/
|
|
3266
|
-
export interface WorkScheduleResourceApiInterface {
|
|
3267
|
-
/**
|
|
3268
|
-
*
|
|
3269
|
-
* @summary Get Work Schedules
|
|
3270
|
-
* @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
|
|
3271
|
-
* @param {*} [options] Override http request option.
|
|
3272
|
-
* @throws {RequiredError}
|
|
3273
|
-
*/
|
|
3274
|
-
workSchedulesGet(requestParameters?: WorkScheduleResourceApiWorkSchedulesGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse>;
|
|
3275
|
-
|
|
3276
|
-
/**
|
|
3277
|
-
*
|
|
3278
|
-
* @summary Delete Work Schedule By Id
|
|
3279
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
|
|
3280
|
-
* @param {*} [options] Override http request option.
|
|
3281
|
-
* @throws {RequiredError}
|
|
3282
|
-
*/
|
|
3283
|
-
workSchedulesIdDelete(requestParameters: WorkScheduleResourceApiWorkSchedulesIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
3284
|
-
|
|
3285
|
-
/**
|
|
3286
|
-
*
|
|
3287
|
-
* @summary Find Work Schedule By Id
|
|
3288
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
|
|
3289
|
-
* @param {*} [options] Override http request option.
|
|
3290
|
-
* @throws {RequiredError}
|
|
3291
|
-
*/
|
|
3292
|
-
workSchedulesIdGet(requestParameters: WorkScheduleResourceApiWorkSchedulesIdGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkScheduleResponse>;
|
|
3293
|
-
|
|
3294
|
-
/**
|
|
3295
|
-
*
|
|
3296
|
-
* @summary Update Work Schedule
|
|
3297
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
|
|
3298
|
-
* @param {*} [options] Override http request option.
|
|
3299
|
-
* @throws {RequiredError}
|
|
3300
|
-
*/
|
|
3301
|
-
workSchedulesIdPut(requestParameters: WorkScheduleResourceApiWorkSchedulesIdPutRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkScheduleResponse>;
|
|
3302
|
-
|
|
3303
|
-
/**
|
|
3304
|
-
*
|
|
3305
|
-
* @summary Create Work Schedule
|
|
3306
|
-
* @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
|
|
3307
|
-
* @param {*} [options] Override http request option.
|
|
3308
|
-
* @throws {RequiredError}
|
|
3309
|
-
*/
|
|
3310
|
-
workSchedulesPost(requestParameters: WorkScheduleResourceApiWorkSchedulesPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<WorkScheduleResponse>;
|
|
3311
|
-
|
|
3312
|
-
}
|
|
3313
|
-
|
|
3314
|
-
/**
|
|
3315
|
-
* Request parameters for workSchedulesGet operation in WorkScheduleResourceApi.
|
|
3316
|
-
*/
|
|
3317
|
-
export interface WorkScheduleResourceApiWorkSchedulesGetRequest {
|
|
3318
|
-
readonly page?: number
|
|
3319
|
-
|
|
3320
|
-
readonly size?: number
|
|
3321
|
-
}
|
|
3322
|
-
|
|
3323
|
-
/**
|
|
3324
|
-
* Request parameters for workSchedulesIdDelete operation in WorkScheduleResourceApi.
|
|
3325
|
-
*/
|
|
3326
|
-
export interface WorkScheduleResourceApiWorkSchedulesIdDeleteRequest {
|
|
3327
|
-
readonly id: number
|
|
3328
|
-
}
|
|
3329
|
-
|
|
3330
|
-
/**
|
|
3331
|
-
* Request parameters for workSchedulesIdGet operation in WorkScheduleResourceApi.
|
|
3332
|
-
*/
|
|
3333
|
-
export interface WorkScheduleResourceApiWorkSchedulesIdGetRequest {
|
|
3334
|
-
readonly id: number
|
|
3335
|
-
}
|
|
3336
|
-
|
|
3337
|
-
/**
|
|
3338
|
-
* Request parameters for workSchedulesIdPut operation in WorkScheduleResourceApi.
|
|
3339
|
-
*/
|
|
3340
|
-
export interface WorkScheduleResourceApiWorkSchedulesIdPutRequest {
|
|
3341
|
-
readonly id: number
|
|
3342
|
-
|
|
3343
|
-
readonly workScheduleUpdateRequest: WorkScheduleUpdateRequest
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
/**
|
|
3347
|
-
* Request parameters for workSchedulesPost operation in WorkScheduleResourceApi.
|
|
3348
|
-
*/
|
|
3349
|
-
export interface WorkScheduleResourceApiWorkSchedulesPostRequest {
|
|
3350
|
-
readonly workScheduleCreateRequest: WorkScheduleCreateRequest
|
|
3351
|
-
}
|
|
3352
|
-
|
|
3353
|
-
/**
|
|
3354
|
-
* WorkScheduleResourceApi - object-oriented interface
|
|
3355
|
-
*/
|
|
3356
|
-
export class WorkScheduleResourceApi extends BaseAPI implements WorkScheduleResourceApiInterface {
|
|
3357
|
-
/**
|
|
3358
|
-
*
|
|
3359
|
-
* @summary Get Work Schedules
|
|
3360
|
-
* @param {WorkScheduleResourceApiWorkSchedulesGetRequest} requestParameters Request parameters.
|
|
3361
|
-
* @param {*} [options] Override http request option.
|
|
3362
|
-
* @throws {RequiredError}
|
|
3363
|
-
*/
|
|
3364
|
-
public workSchedulesGet(requestParameters: WorkScheduleResourceApiWorkSchedulesGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
3365
|
-
return WorkScheduleResourceApiFp(this.configuration).workSchedulesGet(requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
|
-
/**
|
|
3369
|
-
*
|
|
3370
|
-
* @summary Delete Work Schedule By Id
|
|
3371
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdDeleteRequest} requestParameters Request parameters.
|
|
3372
|
-
* @param {*} [options] Override http request option.
|
|
3373
|
-
* @throws {RequiredError}
|
|
3374
|
-
*/
|
|
3375
|
-
public workSchedulesIdDelete(requestParameters: WorkScheduleResourceApiWorkSchedulesIdDeleteRequest, options?: RawAxiosRequestConfig) {
|
|
3376
|
-
return WorkScheduleResourceApiFp(this.configuration).workSchedulesIdDelete(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
/**
|
|
3380
|
-
*
|
|
3381
|
-
* @summary Find Work Schedule By Id
|
|
3382
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdGetRequest} requestParameters Request parameters.
|
|
3383
|
-
* @param {*} [options] Override http request option.
|
|
3384
|
-
* @throws {RequiredError}
|
|
3385
|
-
*/
|
|
3386
|
-
public workSchedulesIdGet(requestParameters: WorkScheduleResourceApiWorkSchedulesIdGetRequest, options?: RawAxiosRequestConfig) {
|
|
3387
|
-
return WorkScheduleResourceApiFp(this.configuration).workSchedulesIdGet(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3388
|
-
}
|
|
3389
|
-
|
|
3390
|
-
/**
|
|
3391
|
-
*
|
|
3392
|
-
* @summary Update Work Schedule
|
|
3393
|
-
* @param {WorkScheduleResourceApiWorkSchedulesIdPutRequest} requestParameters Request parameters.
|
|
3394
|
-
* @param {*} [options] Override http request option.
|
|
3395
|
-
* @throws {RequiredError}
|
|
3396
|
-
*/
|
|
3397
|
-
public workSchedulesIdPut(requestParameters: WorkScheduleResourceApiWorkSchedulesIdPutRequest, options?: RawAxiosRequestConfig) {
|
|
3398
|
-
return WorkScheduleResourceApiFp(this.configuration).workSchedulesIdPut(requestParameters.id, requestParameters.workScheduleUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3399
|
-
}
|
|
3400
|
-
|
|
3401
|
-
/**
|
|
3402
|
-
*
|
|
3403
|
-
* @summary Create Work Schedule
|
|
3404
|
-
* @param {WorkScheduleResourceApiWorkSchedulesPostRequest} requestParameters Request parameters.
|
|
3405
|
-
* @param {*} [options] Override http request option.
|
|
3406
|
-
* @throws {RequiredError}
|
|
3407
|
-
*/
|
|
3408
|
-
public workSchedulesPost(requestParameters: WorkScheduleResourceApiWorkSchedulesPostRequest, options?: RawAxiosRequestConfig) {
|
|
3409
|
-
return WorkScheduleResourceApiFp(this.configuration).workSchedulesPost(requestParameters.workScheduleCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3410
|
-
}
|
|
3411
|
-
}
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|