@digital8/task-dashboard-ts-sdk 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/.openapi-generator/FILES +3 -4
  2. package/README.md +2 -2
  3. package/dist/apis/AllocationDaysApi.d.ts +1 -24
  4. package/dist/apis/AllocationDaysApi.js +0 -76
  5. package/dist/apis/AllocationsApi.d.ts +2 -13
  6. package/dist/apis/AllocationsApi.js +2 -39
  7. package/dist/apis/TimeOffApi.d.ts +2 -13
  8. package/dist/apis/TimeOffApi.js +2 -39
  9. package/dist/apis/TimeOffDaysApi.d.ts +1 -24
  10. package/dist/apis/TimeOffDaysApi.js +0 -76
  11. package/dist/esm/apis/AllocationDaysApi.d.ts +1 -24
  12. package/dist/esm/apis/AllocationDaysApi.js +1 -77
  13. package/dist/esm/apis/AllocationsApi.d.ts +2 -13
  14. package/dist/esm/apis/AllocationsApi.js +3 -40
  15. package/dist/esm/apis/TimeOffApi.d.ts +2 -13
  16. package/dist/esm/apis/TimeOffApi.js +3 -40
  17. package/dist/esm/apis/TimeOffDaysApi.d.ts +1 -24
  18. package/dist/esm/apis/TimeOffDaysApi.js +1 -77
  19. package/dist/esm/models/DeleteAllocationRequest.d.ts +39 -0
  20. package/dist/esm/models/{UpdateTimeOffDayRequest.js → DeleteAllocationRequest.js} +13 -10
  21. package/dist/esm/models/DeleteTimeOffRequest.d.ts +39 -0
  22. package/dist/esm/models/DeleteTimeOffRequest.js +46 -0
  23. package/dist/esm/models/ScheduleScope.d.ts +26 -0
  24. package/dist/esm/models/ScheduleScope.js +44 -0
  25. package/dist/esm/models/UpdateAllocationRequest.d.ts +13 -0
  26. package/dist/esm/models/UpdateAllocationRequest.js +7 -0
  27. package/dist/esm/models/UpdateTimeOffRequest.d.ts +13 -0
  28. package/dist/esm/models/UpdateTimeOffRequest.js +7 -0
  29. package/dist/esm/models/index.d.ts +3 -4
  30. package/dist/esm/models/index.js +3 -4
  31. package/dist/models/DeleteAllocationRequest.d.ts +39 -0
  32. package/dist/models/DeleteAllocationRequest.js +53 -0
  33. package/dist/models/DeleteTimeOffRequest.d.ts +39 -0
  34. package/dist/models/DeleteTimeOffRequest.js +53 -0
  35. package/dist/models/ScheduleScope.d.ts +26 -0
  36. package/dist/models/ScheduleScope.js +52 -0
  37. package/dist/models/UpdateAllocationRequest.d.ts +13 -0
  38. package/dist/models/UpdateAllocationRequest.js +7 -0
  39. package/dist/models/UpdateTimeOffRequest.d.ts +13 -0
  40. package/dist/models/UpdateTimeOffRequest.js +7 -0
  41. package/dist/models/index.d.ts +3 -4
  42. package/dist/models/index.js +3 -4
  43. package/package.json +1 -1
  44. package/src/apis/AllocationDaysApi.ts +0 -111
  45. package/src/apis/AllocationsApi.ts +7 -56
  46. package/src/apis/TimeOffApi.ts +7 -56
  47. package/src/apis/TimeOffDaysApi.ts +0 -111
  48. package/src/models/DeleteAllocationRequest.ts +84 -0
  49. package/src/models/DeleteTimeOffRequest.ts +84 -0
  50. package/src/models/ScheduleScope.ts +54 -0
  51. package/src/models/UpdateAllocationRequest.ts +27 -0
  52. package/src/models/UpdateTimeOffRequest.ts +24 -0
  53. package/src/models/index.ts +3 -4
  54. package/dist/esm/models/ShiftAllocationRequest.d.ts +0 -38
  55. package/dist/esm/models/ShiftAllocationRequest.js +0 -45
  56. package/dist/esm/models/ShiftTimeOffRequest.d.ts +0 -32
  57. package/dist/esm/models/ShiftTimeOffRequest.js +0 -43
  58. package/dist/esm/models/UpdateAllocationDayRequest.d.ts +0 -50
  59. package/dist/esm/models/UpdateAllocationDayRequest.js +0 -47
  60. package/dist/esm/models/UpdateTimeOffDayRequest.d.ts +0 -38
  61. package/dist/models/ShiftAllocationRequest.d.ts +0 -38
  62. package/dist/models/ShiftAllocationRequest.js +0 -52
  63. package/dist/models/ShiftTimeOffRequest.d.ts +0 -32
  64. package/dist/models/ShiftTimeOffRequest.js +0 -50
  65. package/dist/models/UpdateAllocationDayRequest.d.ts +0 -50
  66. package/dist/models/UpdateAllocationDayRequest.js +0 -54
  67. package/dist/models/UpdateTimeOffDayRequest.d.ts +0 -38
  68. package/dist/models/UpdateTimeOffDayRequest.js +0 -50
  69. package/src/models/ShiftAllocationRequest.ts +0 -74
  70. package/src/models/ShiftTimeOffRequest.ts +0 -66
  71. package/src/models/UpdateAllocationDayRequest.ts +0 -89
  72. package/src/models/UpdateTimeOffDayRequest.ts +0 -73
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AllocationDayResourceArrayResponseFromJSON, AllocationResourceFromJSON, GenericResponseFromJSON, PaginatedAllocationDayResourceResponseFromJSON, SearchAllAllocationDaysRequestToJSON, SearchAllocationDaysRequestToJSON, UpdateAllocationDayRequestToJSON, } from '../models/index';
24
+ import { AllocationDayResourceArrayResponseFromJSON, PaginatedAllocationDayResourceResponseFromJSON, SearchAllAllocationDaysRequestToJSON, SearchAllocationDaysRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -61,43 +61,6 @@ export class AllocationDaysApi extends runtime.BaseAPI {
61
61
  return yield response.value();
62
62
  });
63
63
  }
64
- /**
65
- * Auto-generated: destroyAllocationDay
66
- */
67
- destroyAllocationDayRaw(requestParameters, initOverrides) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- if (requestParameters['allocationDay'] == null) {
70
- throw new runtime.RequiredError('allocationDay', 'Required parameter "allocationDay" was null or undefined when calling destroyAllocationDay().');
71
- }
72
- const queryParameters = {};
73
- const headerParameters = {};
74
- if (this.configuration && this.configuration.accessToken) {
75
- const token = this.configuration.accessToken;
76
- const tokenString = yield token("bearerAuth", []);
77
- if (tokenString) {
78
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
- }
80
- }
81
- let urlPath = `/api/allocation-days/{allocationDay}/delete`;
82
- urlPath = urlPath.replace(`{${"allocationDay"}}`, encodeURIComponent(String(requestParameters['allocationDay'])));
83
- const response = yield this.request({
84
- path: urlPath,
85
- method: 'POST',
86
- headers: headerParameters,
87
- query: queryParameters,
88
- }, initOverrides);
89
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
90
- });
91
- }
92
- /**
93
- * Auto-generated: destroyAllocationDay
94
- */
95
- destroyAllocationDay(requestParameters, initOverrides) {
96
- return __awaiter(this, void 0, void 0, function* () {
97
- const response = yield this.destroyAllocationDayRaw(requestParameters, initOverrides);
98
- return yield response.value();
99
- });
100
- }
101
64
  /**
102
65
  * Auto-generated: indexAllocationDay
103
66
  */
@@ -133,43 +96,4 @@ export class AllocationDaysApi extends runtime.BaseAPI {
133
96
  return yield response.value();
134
97
  });
135
98
  }
136
- /**
137
- * Auto-generated: updateAllocationDay
138
- */
139
- updateAllocationDayRaw(requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- if (requestParameters['allocationDay'] == null) {
142
- throw new runtime.RequiredError('allocationDay', 'Required parameter "allocationDay" was null or undefined when calling updateAllocationDay().');
143
- }
144
- const queryParameters = {};
145
- const headerParameters = {};
146
- headerParameters['Content-Type'] = 'application/json';
147
- if (this.configuration && this.configuration.accessToken) {
148
- const token = this.configuration.accessToken;
149
- const tokenString = yield token("bearerAuth", []);
150
- if (tokenString) {
151
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
152
- }
153
- }
154
- let urlPath = `/api/allocation-days/{allocationDay}/update`;
155
- urlPath = urlPath.replace(`{${"allocationDay"}}`, encodeURIComponent(String(requestParameters['allocationDay'])));
156
- const response = yield this.request({
157
- path: urlPath,
158
- method: 'POST',
159
- headers: headerParameters,
160
- query: queryParameters,
161
- body: UpdateAllocationDayRequestToJSON(requestParameters['updateAllocationDayRequest']),
162
- }, initOverrides);
163
- return new runtime.JSONApiResponse(response, (jsonValue) => AllocationResourceFromJSON(jsonValue));
164
- });
165
- }
166
- /**
167
- * Auto-generated: updateAllocationDay
168
- */
169
- updateAllocationDay(requestParameters, initOverrides) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- const response = yield this.updateAllocationDayRaw(requestParameters, initOverrides);
172
- return yield response.value();
173
- });
174
- }
175
99
  }
@@ -10,20 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AllocationLiteResourceArrayResponse, AllocationResource, CreateAllocationRequest, GenericResponse, PaginatedAllocationListResourceResponse, SearchAllAllocationsRequest, SearchAllocationsRequest, ShiftAllocationRequest, UpdateAllocationRequest } from '../models/index';
13
+ import type { AllocationLiteResourceArrayResponse, AllocationResource, CreateAllocationRequest, DeleteAllocationRequest, GenericResponse, PaginatedAllocationListResourceResponse, SearchAllAllocationsRequest, SearchAllocationsRequest, UpdateAllocationRequest } from '../models/index';
14
14
  export interface AllAllocationRequest {
15
15
  searchAllAllocationsRequest?: SearchAllAllocationsRequest;
16
16
  }
17
17
  export interface DestroyAllocationRequest {
18
18
  allocation: number;
19
+ deleteAllocationRequest?: DeleteAllocationRequest;
19
20
  }
20
21
  export interface IndexAllocationRequest {
21
22
  searchAllocationsRequest?: SearchAllocationsRequest;
22
23
  }
23
- export interface ShiftAllocationOperationRequest {
24
- allocation: number;
25
- shiftAllocationRequest?: ShiftAllocationRequest;
26
- }
27
24
  export interface ShowAllocationRequest {
28
25
  allocation: number;
29
26
  }
@@ -62,14 +59,6 @@ export declare class AllocationsApi extends runtime.BaseAPI {
62
59
  * Auto-generated: indexAllocation
63
60
  */
64
61
  indexAllocation(requestParameters?: IndexAllocationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAllocationListResourceResponse>;
65
- /**
66
- * Auto-generated: shiftAllocation
67
- */
68
- shiftAllocationRaw(requestParameters: ShiftAllocationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AllocationResource>>;
69
- /**
70
- * Auto-generated: shiftAllocation
71
- */
72
- shiftAllocation(requestParameters: ShiftAllocationOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllocationResource>;
73
62
  /**
74
63
  * Auto-generated: showAllocation
75
64
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { AllocationLiteResourceArrayResponseFromJSON, AllocationResourceFromJSON, CreateAllocationRequestToJSON, GenericResponseFromJSON, PaginatedAllocationListResourceResponseFromJSON, SearchAllAllocationsRequestToJSON, SearchAllocationsRequestToJSON, ShiftAllocationRequestToJSON, UpdateAllocationRequestToJSON, } from '../models/index';
24
+ import { AllocationLiteResourceArrayResponseFromJSON, AllocationResourceFromJSON, CreateAllocationRequestToJSON, DeleteAllocationRequestToJSON, GenericResponseFromJSON, PaginatedAllocationListResourceResponseFromJSON, SearchAllAllocationsRequestToJSON, SearchAllocationsRequestToJSON, UpdateAllocationRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -71,6 +71,7 @@ export class AllocationsApi extends runtime.BaseAPI {
71
71
  }
72
72
  const queryParameters = {};
73
73
  const headerParameters = {};
74
+ headerParameters['Content-Type'] = 'application/json';
74
75
  if (this.configuration && this.configuration.accessToken) {
75
76
  const token = this.configuration.accessToken;
76
77
  const tokenString = yield token("bearerAuth", []);
@@ -85,6 +86,7 @@ export class AllocationsApi extends runtime.BaseAPI {
85
86
  method: 'POST',
86
87
  headers: headerParameters,
87
88
  query: queryParameters,
89
+ body: DeleteAllocationRequestToJSON(requestParameters['deleteAllocationRequest']),
88
90
  }, initOverrides);
89
91
  return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
90
92
  });
@@ -133,45 +135,6 @@ export class AllocationsApi extends runtime.BaseAPI {
133
135
  return yield response.value();
134
136
  });
135
137
  }
136
- /**
137
- * Auto-generated: shiftAllocation
138
- */
139
- shiftAllocationRaw(requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- if (requestParameters['allocation'] == null) {
142
- throw new runtime.RequiredError('allocation', 'Required parameter "allocation" was null or undefined when calling shiftAllocation().');
143
- }
144
- const queryParameters = {};
145
- const headerParameters = {};
146
- headerParameters['Content-Type'] = 'application/json';
147
- if (this.configuration && this.configuration.accessToken) {
148
- const token = this.configuration.accessToken;
149
- const tokenString = yield token("bearerAuth", []);
150
- if (tokenString) {
151
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
152
- }
153
- }
154
- let urlPath = `/api/allocations/{allocation}/shift`;
155
- urlPath = urlPath.replace(`{${"allocation"}}`, encodeURIComponent(String(requestParameters['allocation'])));
156
- const response = yield this.request({
157
- path: urlPath,
158
- method: 'POST',
159
- headers: headerParameters,
160
- query: queryParameters,
161
- body: ShiftAllocationRequestToJSON(requestParameters['shiftAllocationRequest']),
162
- }, initOverrides);
163
- return new runtime.JSONApiResponse(response, (jsonValue) => AllocationResourceFromJSON(jsonValue));
164
- });
165
- }
166
- /**
167
- * Auto-generated: shiftAllocation
168
- */
169
- shiftAllocation(requestParameters, initOverrides) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- const response = yield this.shiftAllocationRaw(requestParameters, initOverrides);
172
- return yield response.value();
173
- });
174
- }
175
138
  /**
176
139
  * Auto-generated: showAllocation
177
140
  */
@@ -10,20 +10,17 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateTimeOffRequest, GenericResponse, PaginatedTimeOffListResourceResponse, SearchAllTimeOffRequest, SearchTimeOffRequest, ShiftTimeOffRequest, TimeOffLiteResourceArrayResponse, TimeOffResource, UpdateTimeOffRequest } from '../models/index';
13
+ import type { CreateTimeOffRequest, DeleteTimeOffRequest, GenericResponse, PaginatedTimeOffListResourceResponse, SearchAllTimeOffRequest, SearchTimeOffRequest, TimeOffLiteResourceArrayResponse, TimeOffResource, UpdateTimeOffRequest } from '../models/index';
14
14
  export interface AllTimeOffRequest {
15
15
  searchAllTimeOffRequest?: SearchAllTimeOffRequest;
16
16
  }
17
17
  export interface DestroyTimeOffRequest {
18
18
  timeOff: number;
19
+ deleteTimeOffRequest?: DeleteTimeOffRequest;
19
20
  }
20
21
  export interface IndexTimeOffRequest {
21
22
  searchTimeOffRequest?: SearchTimeOffRequest;
22
23
  }
23
- export interface ShiftTimeOffOperationRequest {
24
- timeOff: number;
25
- shiftTimeOffRequest?: ShiftTimeOffRequest;
26
- }
27
24
  export interface ShowTimeOffRequest {
28
25
  timeOff: number;
29
26
  }
@@ -62,14 +59,6 @@ export declare class TimeOffApi extends runtime.BaseAPI {
62
59
  * Auto-generated: indexTimeOff
63
60
  */
64
61
  indexTimeOff(requestParameters?: IndexTimeOffRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTimeOffListResourceResponse>;
65
- /**
66
- * Auto-generated: shiftTimeOff
67
- */
68
- shiftTimeOffRaw(requestParameters: ShiftTimeOffOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeOffResource>>;
69
- /**
70
- * Auto-generated: shiftTimeOff
71
- */
72
- shiftTimeOff(requestParameters: ShiftTimeOffOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeOffResource>;
73
62
  /**
74
63
  * Auto-generated: showTimeOff
75
64
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CreateTimeOffRequestToJSON, GenericResponseFromJSON, PaginatedTimeOffListResourceResponseFromJSON, SearchAllTimeOffRequestToJSON, SearchTimeOffRequestToJSON, ShiftTimeOffRequestToJSON, TimeOffLiteResourceArrayResponseFromJSON, TimeOffResourceFromJSON, UpdateTimeOffRequestToJSON, } from '../models/index';
24
+ import { CreateTimeOffRequestToJSON, DeleteTimeOffRequestToJSON, GenericResponseFromJSON, PaginatedTimeOffListResourceResponseFromJSON, SearchAllTimeOffRequestToJSON, SearchTimeOffRequestToJSON, TimeOffLiteResourceArrayResponseFromJSON, TimeOffResourceFromJSON, UpdateTimeOffRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -71,6 +71,7 @@ export class TimeOffApi extends runtime.BaseAPI {
71
71
  }
72
72
  const queryParameters = {};
73
73
  const headerParameters = {};
74
+ headerParameters['Content-Type'] = 'application/json';
74
75
  if (this.configuration && this.configuration.accessToken) {
75
76
  const token = this.configuration.accessToken;
76
77
  const tokenString = yield token("bearerAuth", []);
@@ -85,6 +86,7 @@ export class TimeOffApi extends runtime.BaseAPI {
85
86
  method: 'POST',
86
87
  headers: headerParameters,
87
88
  query: queryParameters,
89
+ body: DeleteTimeOffRequestToJSON(requestParameters['deleteTimeOffRequest']),
88
90
  }, initOverrides);
89
91
  return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
90
92
  });
@@ -133,45 +135,6 @@ export class TimeOffApi extends runtime.BaseAPI {
133
135
  return yield response.value();
134
136
  });
135
137
  }
136
- /**
137
- * Auto-generated: shiftTimeOff
138
- */
139
- shiftTimeOffRaw(requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- if (requestParameters['timeOff'] == null) {
142
- throw new runtime.RequiredError('timeOff', 'Required parameter "timeOff" was null or undefined when calling shiftTimeOff().');
143
- }
144
- const queryParameters = {};
145
- const headerParameters = {};
146
- headerParameters['Content-Type'] = 'application/json';
147
- if (this.configuration && this.configuration.accessToken) {
148
- const token = this.configuration.accessToken;
149
- const tokenString = yield token("bearerAuth", []);
150
- if (tokenString) {
151
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
152
- }
153
- }
154
- let urlPath = `/api/time-off/{timeOff}/shift`;
155
- urlPath = urlPath.replace(`{${"timeOff"}}`, encodeURIComponent(String(requestParameters['timeOff'])));
156
- const response = yield this.request({
157
- path: urlPath,
158
- method: 'POST',
159
- headers: headerParameters,
160
- query: queryParameters,
161
- body: ShiftTimeOffRequestToJSON(requestParameters['shiftTimeOffRequest']),
162
- }, initOverrides);
163
- return new runtime.JSONApiResponse(response, (jsonValue) => TimeOffResourceFromJSON(jsonValue));
164
- });
165
- }
166
- /**
167
- * Auto-generated: shiftTimeOff
168
- */
169
- shiftTimeOff(requestParameters, initOverrides) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- const response = yield this.shiftTimeOffRaw(requestParameters, initOverrides);
172
- return yield response.value();
173
- });
174
- }
175
138
  /**
176
139
  * Auto-generated: showTimeOff
177
140
  */
@@ -10,20 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { GenericResponse, PaginatedTimeOffDayResourceResponse, SearchAllTimeOffDaysRequest, SearchTimeOffDaysRequest, TimeOffDayResourceArrayResponse, TimeOffResource, UpdateTimeOffDayRequest } from '../models/index';
13
+ import type { PaginatedTimeOffDayResourceResponse, SearchAllTimeOffDaysRequest, SearchTimeOffDaysRequest, TimeOffDayResourceArrayResponse } from '../models/index';
14
14
  export interface AllTimeOffDayRequest {
15
15
  searchAllTimeOffDaysRequest?: SearchAllTimeOffDaysRequest;
16
16
  }
17
- export interface DestroyTimeOffDayRequest {
18
- timeOffDay: number;
19
- }
20
17
  export interface IndexTimeOffDayRequest {
21
18
  searchTimeOffDaysRequest?: SearchTimeOffDaysRequest;
22
19
  }
23
- export interface UpdateTimeOffDayOperationRequest {
24
- timeOffDay: number;
25
- updateTimeOffDayRequest?: UpdateTimeOffDayRequest;
26
- }
27
20
  /**
28
21
  *
29
22
  */
@@ -36,14 +29,6 @@ export declare class TimeOffDaysApi extends runtime.BaseAPI {
36
29
  * Auto-generated: allTimeOffDay
37
30
  */
38
31
  allTimeOffDay(requestParameters?: AllTimeOffDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeOffDayResourceArrayResponse>;
39
- /**
40
- * Auto-generated: destroyTimeOffDay
41
- */
42
- destroyTimeOffDayRaw(requestParameters: DestroyTimeOffDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
43
- /**
44
- * Auto-generated: destroyTimeOffDay
45
- */
46
- destroyTimeOffDay(requestParameters: DestroyTimeOffDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
47
32
  /**
48
33
  * Auto-generated: indexTimeOffDay
49
34
  */
@@ -52,12 +37,4 @@ export declare class TimeOffDaysApi extends runtime.BaseAPI {
52
37
  * Auto-generated: indexTimeOffDay
53
38
  */
54
39
  indexTimeOffDay(requestParameters?: IndexTimeOffDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedTimeOffDayResourceResponse>;
55
- /**
56
- * Auto-generated: updateTimeOffDay
57
- */
58
- updateTimeOffDayRaw(requestParameters: UpdateTimeOffDayOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TimeOffResource>>;
59
- /**
60
- * Auto-generated: updateTimeOffDay
61
- */
62
- updateTimeOffDay(requestParameters: UpdateTimeOffDayOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TimeOffResource>;
63
40
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { GenericResponseFromJSON, PaginatedTimeOffDayResourceResponseFromJSON, SearchAllTimeOffDaysRequestToJSON, SearchTimeOffDaysRequestToJSON, TimeOffDayResourceArrayResponseFromJSON, TimeOffResourceFromJSON, UpdateTimeOffDayRequestToJSON, } from '../models/index';
24
+ import { PaginatedTimeOffDayResourceResponseFromJSON, SearchAllTimeOffDaysRequestToJSON, SearchTimeOffDaysRequestToJSON, TimeOffDayResourceArrayResponseFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -61,43 +61,6 @@ export class TimeOffDaysApi extends runtime.BaseAPI {
61
61
  return yield response.value();
62
62
  });
63
63
  }
64
- /**
65
- * Auto-generated: destroyTimeOffDay
66
- */
67
- destroyTimeOffDayRaw(requestParameters, initOverrides) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- if (requestParameters['timeOffDay'] == null) {
70
- throw new runtime.RequiredError('timeOffDay', 'Required parameter "timeOffDay" was null or undefined when calling destroyTimeOffDay().');
71
- }
72
- const queryParameters = {};
73
- const headerParameters = {};
74
- if (this.configuration && this.configuration.accessToken) {
75
- const token = this.configuration.accessToken;
76
- const tokenString = yield token("bearerAuth", []);
77
- if (tokenString) {
78
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
- }
80
- }
81
- let urlPath = `/api/time-off-days/{timeOffDay}/delete`;
82
- urlPath = urlPath.replace(`{${"timeOffDay"}}`, encodeURIComponent(String(requestParameters['timeOffDay'])));
83
- const response = yield this.request({
84
- path: urlPath,
85
- method: 'POST',
86
- headers: headerParameters,
87
- query: queryParameters,
88
- }, initOverrides);
89
- return new runtime.JSONApiResponse(response, (jsonValue) => GenericResponseFromJSON(jsonValue));
90
- });
91
- }
92
- /**
93
- * Auto-generated: destroyTimeOffDay
94
- */
95
- destroyTimeOffDay(requestParameters, initOverrides) {
96
- return __awaiter(this, void 0, void 0, function* () {
97
- const response = yield this.destroyTimeOffDayRaw(requestParameters, initOverrides);
98
- return yield response.value();
99
- });
100
- }
101
64
  /**
102
65
  * Auto-generated: indexTimeOffDay
103
66
  */
@@ -133,43 +96,4 @@ export class TimeOffDaysApi extends runtime.BaseAPI {
133
96
  return yield response.value();
134
97
  });
135
98
  }
136
- /**
137
- * Auto-generated: updateTimeOffDay
138
- */
139
- updateTimeOffDayRaw(requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function* () {
141
- if (requestParameters['timeOffDay'] == null) {
142
- throw new runtime.RequiredError('timeOffDay', 'Required parameter "timeOffDay" was null or undefined when calling updateTimeOffDay().');
143
- }
144
- const queryParameters = {};
145
- const headerParameters = {};
146
- headerParameters['Content-Type'] = 'application/json';
147
- if (this.configuration && this.configuration.accessToken) {
148
- const token = this.configuration.accessToken;
149
- const tokenString = yield token("bearerAuth", []);
150
- if (tokenString) {
151
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
152
- }
153
- }
154
- let urlPath = `/api/time-off-days/{timeOffDay}/update`;
155
- urlPath = urlPath.replace(`{${"timeOffDay"}}`, encodeURIComponent(String(requestParameters['timeOffDay'])));
156
- const response = yield this.request({
157
- path: urlPath,
158
- method: 'POST',
159
- headers: headerParameters,
160
- query: queryParameters,
161
- body: UpdateTimeOffDayRequestToJSON(requestParameters['updateTimeOffDayRequest']),
162
- }, initOverrides);
163
- return new runtime.JSONApiResponse(response, (jsonValue) => TimeOffResourceFromJSON(jsonValue));
164
- });
165
- }
166
- /**
167
- * Auto-generated: updateTimeOffDay
168
- */
169
- updateTimeOffDay(requestParameters, initOverrides) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- const response = yield this.updateTimeOffDayRaw(requestParameters, initOverrides);
172
- return yield response.value();
173
- });
174
- }
175
99
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Laravel API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ScheduleScope } from './ScheduleScope';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeleteAllocationRequest
17
+ */
18
+ export interface DeleteAllocationRequest {
19
+ /**
20
+ *
21
+ * @type {ScheduleScope}
22
+ * @memberof DeleteAllocationRequest
23
+ */
24
+ scope: ScheduleScope;
25
+ /**
26
+ *
27
+ * @type {Date}
28
+ * @memberof DeleteAllocationRequest
29
+ */
30
+ date?: Date;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DeleteAllocationRequest interface.
34
+ */
35
+ export declare function instanceOfDeleteAllocationRequest(value: object): value is DeleteAllocationRequest;
36
+ export declare function DeleteAllocationRequestFromJSON(json: any): DeleteAllocationRequest;
37
+ export declare function DeleteAllocationRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteAllocationRequest;
38
+ export declare function DeleteAllocationRequestToJSON(json: any): DeleteAllocationRequest;
39
+ export declare function DeleteAllocationRequestToJSONTyped(value?: DeleteAllocationRequest | null, ignoreDiscriminator?: boolean): any;
@@ -11,33 +11,36 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { ScheduleScopeFromJSON, ScheduleScopeToJSON, } from './ScheduleScope';
14
15
  /**
15
- * Check if a given object implements the UpdateTimeOffDayRequest interface.
16
+ * Check if a given object implements the DeleteAllocationRequest interface.
16
17
  */
17
- export function instanceOfUpdateTimeOffDayRequest(value) {
18
+ export function instanceOfDeleteAllocationRequest(value) {
19
+ if (!('scope' in value) || value['scope'] === undefined)
20
+ return false;
18
21
  return true;
19
22
  }
20
- export function UpdateTimeOffDayRequestFromJSON(json) {
21
- return UpdateTimeOffDayRequestFromJSONTyped(json, false);
23
+ export function DeleteAllocationRequestFromJSON(json) {
24
+ return DeleteAllocationRequestFromJSONTyped(json, false);
22
25
  }
23
- export function UpdateTimeOffDayRequestFromJSONTyped(json, ignoreDiscriminator) {
26
+ export function DeleteAllocationRequestFromJSONTyped(json, ignoreDiscriminator) {
24
27
  if (json == null) {
25
28
  return json;
26
29
  }
27
30
  return {
31
+ 'scope': ScheduleScopeFromJSON(json['scope']),
28
32
  'date': json['date'] == null ? undefined : (new Date(json['date'])),
29
- 'hours': json['hours'] == null ? undefined : json['hours'],
30
33
  };
31
34
  }
32
- export function UpdateTimeOffDayRequestToJSON(json) {
33
- return UpdateTimeOffDayRequestToJSONTyped(json, false);
35
+ export function DeleteAllocationRequestToJSON(json) {
36
+ return DeleteAllocationRequestToJSONTyped(json, false);
34
37
  }
35
- export function UpdateTimeOffDayRequestToJSONTyped(value, ignoreDiscriminator = false) {
38
+ export function DeleteAllocationRequestToJSONTyped(value, ignoreDiscriminator = false) {
36
39
  if (value == null) {
37
40
  return value;
38
41
  }
39
42
  return {
43
+ 'scope': ScheduleScopeToJSON(value['scope']),
40
44
  'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
41
- 'hours': value['hours'],
42
45
  };
43
46
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Laravel API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { ScheduleScope } from './ScheduleScope';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeleteTimeOffRequest
17
+ */
18
+ export interface DeleteTimeOffRequest {
19
+ /**
20
+ *
21
+ * @type {ScheduleScope}
22
+ * @memberof DeleteTimeOffRequest
23
+ */
24
+ scope: ScheduleScope;
25
+ /**
26
+ *
27
+ * @type {Date}
28
+ * @memberof DeleteTimeOffRequest
29
+ */
30
+ date?: Date;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DeleteTimeOffRequest interface.
34
+ */
35
+ export declare function instanceOfDeleteTimeOffRequest(value: object): value is DeleteTimeOffRequest;
36
+ export declare function DeleteTimeOffRequestFromJSON(json: any): DeleteTimeOffRequest;
37
+ export declare function DeleteTimeOffRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeleteTimeOffRequest;
38
+ export declare function DeleteTimeOffRequestToJSON(json: any): DeleteTimeOffRequest;
39
+ export declare function DeleteTimeOffRequestToJSONTyped(value?: DeleteTimeOffRequest | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Laravel API
5
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { ScheduleScopeFromJSON, ScheduleScopeToJSON, } from './ScheduleScope';
15
+ /**
16
+ * Check if a given object implements the DeleteTimeOffRequest interface.
17
+ */
18
+ export function instanceOfDeleteTimeOffRequest(value) {
19
+ if (!('scope' in value) || value['scope'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function DeleteTimeOffRequestFromJSON(json) {
24
+ return DeleteTimeOffRequestFromJSONTyped(json, false);
25
+ }
26
+ export function DeleteTimeOffRequestFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'scope': ScheduleScopeFromJSON(json['scope']),
32
+ 'date': json['date'] == null ? undefined : (new Date(json['date'])),
33
+ };
34
+ }
35
+ export function DeleteTimeOffRequestToJSON(json) {
36
+ return DeleteTimeOffRequestToJSONTyped(json, false);
37
+ }
38
+ export function DeleteTimeOffRequestToJSONTyped(value, ignoreDiscriminator = false) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'scope': ScheduleScopeToJSON(value['scope']),
44
+ 'date': value['date'] == null ? undefined : ((value['date']).toISOString().substring(0, 10)),
45
+ };
46
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Laravel API
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ */
16
+ export declare const ScheduleScope: {
17
+ readonly This: "this";
18
+ readonly Future: "future";
19
+ readonly All: "all";
20
+ };
21
+ export type ScheduleScope = typeof ScheduleScope[keyof typeof ScheduleScope];
22
+ export declare function instanceOfScheduleScope(value: any): boolean;
23
+ export declare function ScheduleScopeFromJSON(json: any): ScheduleScope;
24
+ export declare function ScheduleScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScheduleScope;
25
+ export declare function ScheduleScopeToJSON(value?: ScheduleScope | null): any;
26
+ export declare function ScheduleScopeToJSONTyped(value: any, ignoreDiscriminator: boolean): ScheduleScope;