@digital8/task-dashboard-ts-sdk 0.0.8 → 0.0.10

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
@@ -68,6 +68,8 @@ src/models/CreateTimeEntryRequest.ts
68
68
  src/models/CreateTimeOffRequest.ts
69
69
  src/models/CurrentUserResource.ts
70
70
  src/models/CurrentUserResourceArrayResponse.ts
71
+ src/models/DeleteAllocationRequest.ts
72
+ src/models/DeleteTimeOffRequest.ts
71
73
  src/models/DetachBudgetEntriesFromProjectJobRequest.ts
72
74
  src/models/DetachBudgetEntriesFromProjectRequest.ts
73
75
  src/models/DetachClickupListsFromProjectRequest.ts
@@ -125,6 +127,7 @@ src/models/PublicHolidayResource.ts
125
127
  src/models/PublicHolidayResourceArrayResponse.ts
126
128
  src/models/RateSource.ts
127
129
  src/models/ResetPasswordRequest.ts
130
+ src/models/ScheduleScope.ts
128
131
  src/models/SearchAllAllocationDaysRequest.ts
129
132
  src/models/SearchAllAllocationsRequest.ts
130
133
  src/models/SearchAllBudgetEntriesRequest.ts
@@ -151,8 +154,6 @@ src/models/SearchTimeOffRequest.ts
151
154
  src/models/SendForgotPasswordLinkRequest.ts
152
155
  src/models/SettingsResource.ts
153
156
  src/models/SettingsResourceArrayResponse.ts
154
- src/models/ShiftAllocationRequest.ts
155
- src/models/ShiftTimeOffRequest.ts
156
157
  src/models/TaskListResource.ts
157
158
  src/models/TaskListResourceArrayResponse.ts
158
159
  src/models/TaskLiteResource.ts
@@ -174,7 +175,6 @@ src/models/TimeOffLiteResourceArrayResponse.ts
174
175
  src/models/TimeOffResource.ts
175
176
  src/models/TimeOffResourceArrayResponse.ts
176
177
  src/models/TimeOffType.ts
177
- src/models/UpdateAllocationDayRequest.ts
178
178
  src/models/UpdateAllocationRequest.ts
179
179
  src/models/UpdateClientRequest.ts
180
180
  src/models/UpdatePersonRequest.ts
@@ -187,7 +187,6 @@ src/models/UpdateProjectTaskRateRequest.ts
187
187
  src/models/UpdateSettingsRequest.ts
188
188
  src/models/UpdateTaskRequest.ts
189
189
  src/models/UpdateTimeEntryRequest.ts
190
- src/models/UpdateTimeOffDayRequest.ts
191
190
  src/models/UpdateTimeOffRequest.ts
192
191
  src/models/UserAuthTokenResource.ts
193
192
  src/models/UserAuthTokenResourceArrayResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @digital8/task-dashboard-ts-sdk@0.0.8
1
+ ## @digital8/task-dashboard-ts-sdk@0.0.10
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @digital8/task-dashboard-ts-sdk@0.0.8 --save
39
+ npm install @digital8/task-dashboard-ts-sdk@0.0.10 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,20 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AllocationDayResourceArrayResponse, AllocationResource, GenericResponse, PaginatedAllocationDayResourceResponse, SearchAllAllocationDaysRequest, SearchAllocationDaysRequest, UpdateAllocationDayRequest } from '../models/index';
13
+ import type { AllocationDayResourceArrayResponse, PaginatedAllocationDayResourceResponse, SearchAllAllocationDaysRequest, SearchAllocationDaysRequest } from '../models/index';
14
14
  export interface AllAllocationDayRequest {
15
15
  searchAllAllocationDaysRequest?: SearchAllAllocationDaysRequest;
16
16
  }
17
- export interface DestroyAllocationDayRequest {
18
- allocationDay: number;
19
- }
20
17
  export interface IndexAllocationDayRequest {
21
18
  searchAllocationDaysRequest?: SearchAllocationDaysRequest;
22
19
  }
23
- export interface UpdateAllocationDayOperationRequest {
24
- allocationDay: number;
25
- updateAllocationDayRequest?: UpdateAllocationDayRequest;
26
- }
27
20
  /**
28
21
  *
29
22
  */
@@ -36,14 +29,6 @@ export declare class AllocationDaysApi extends runtime.BaseAPI {
36
29
  * Auto-generated: allAllocationDay
37
30
  */
38
31
  allAllocationDay(requestParameters?: AllAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllocationDayResourceArrayResponse>;
39
- /**
40
- * Auto-generated: destroyAllocationDay
41
- */
42
- destroyAllocationDayRaw(requestParameters: DestroyAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
43
- /**
44
- * Auto-generated: destroyAllocationDay
45
- */
46
- destroyAllocationDay(requestParameters: DestroyAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
47
32
  /**
48
33
  * Auto-generated: indexAllocationDay
49
34
  */
@@ -52,12 +37,4 @@ export declare class AllocationDaysApi extends runtime.BaseAPI {
52
37
  * Auto-generated: indexAllocationDay
53
38
  */
54
39
  indexAllocationDay(requestParameters?: IndexAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAllocationDayResourceResponse>;
55
- /**
56
- * Auto-generated: updateAllocationDay
57
- */
58
- updateAllocationDayRaw(requestParameters: UpdateAllocationDayOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AllocationResource>>;
59
- /**
60
- * Auto-generated: updateAllocationDay
61
- */
62
- updateAllocationDay(requestParameters: UpdateAllocationDayOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllocationResource>;
63
40
  }
@@ -64,43 +64,6 @@ class AllocationDaysApi extends runtime.BaseAPI {
64
64
  return yield response.value();
65
65
  });
66
66
  }
67
- /**
68
- * Auto-generated: destroyAllocationDay
69
- */
70
- destroyAllocationDayRaw(requestParameters, initOverrides) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- if (requestParameters['allocationDay'] == null) {
73
- throw new runtime.RequiredError('allocationDay', 'Required parameter "allocationDay" was null or undefined when calling destroyAllocationDay().');
74
- }
75
- const queryParameters = {};
76
- const headerParameters = {};
77
- if (this.configuration && this.configuration.accessToken) {
78
- const token = this.configuration.accessToken;
79
- const tokenString = yield token("bearerAuth", []);
80
- if (tokenString) {
81
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
82
- }
83
- }
84
- let urlPath = `/api/allocation-days/{allocationDay}/delete`;
85
- urlPath = urlPath.replace(`{${"allocationDay"}}`, encodeURIComponent(String(requestParameters['allocationDay'])));
86
- const response = yield this.request({
87
- path: urlPath,
88
- method: 'POST',
89
- headers: headerParameters,
90
- query: queryParameters,
91
- }, initOverrides);
92
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GenericResponseFromJSON)(jsonValue));
93
- });
94
- }
95
- /**
96
- * Auto-generated: destroyAllocationDay
97
- */
98
- destroyAllocationDay(requestParameters, initOverrides) {
99
- return __awaiter(this, void 0, void 0, function* () {
100
- const response = yield this.destroyAllocationDayRaw(requestParameters, initOverrides);
101
- return yield response.value();
102
- });
103
- }
104
67
  /**
105
68
  * Auto-generated: indexAllocationDay
106
69
  */
@@ -136,44 +99,5 @@ class AllocationDaysApi extends runtime.BaseAPI {
136
99
  return yield response.value();
137
100
  });
138
101
  }
139
- /**
140
- * Auto-generated: updateAllocationDay
141
- */
142
- updateAllocationDayRaw(requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- if (requestParameters['allocationDay'] == null) {
145
- throw new runtime.RequiredError('allocationDay', 'Required parameter "allocationDay" was null or undefined when calling updateAllocationDay().');
146
- }
147
- const queryParameters = {};
148
- const headerParameters = {};
149
- headerParameters['Content-Type'] = 'application/json';
150
- if (this.configuration && this.configuration.accessToken) {
151
- const token = this.configuration.accessToken;
152
- const tokenString = yield token("bearerAuth", []);
153
- if (tokenString) {
154
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
155
- }
156
- }
157
- let urlPath = `/api/allocation-days/{allocationDay}/update`;
158
- urlPath = urlPath.replace(`{${"allocationDay"}}`, encodeURIComponent(String(requestParameters['allocationDay'])));
159
- const response = yield this.request({
160
- path: urlPath,
161
- method: 'POST',
162
- headers: headerParameters,
163
- query: queryParameters,
164
- body: (0, index_1.UpdateAllocationDayRequestToJSON)(requestParameters['updateAllocationDayRequest']),
165
- }, initOverrides);
166
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AllocationResourceFromJSON)(jsonValue));
167
- });
168
- }
169
- /**
170
- * Auto-generated: updateAllocationDay
171
- */
172
- updateAllocationDay(requestParameters, initOverrides) {
173
- return __awaiter(this, void 0, void 0, function* () {
174
- const response = yield this.updateAllocationDayRaw(requestParameters, initOverrides);
175
- return yield response.value();
176
- });
177
- }
178
102
  }
179
103
  exports.AllocationDaysApi = AllocationDaysApi;
@@ -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
  */
@@ -74,6 +74,7 @@ class AllocationsApi extends runtime.BaseAPI {
74
74
  }
75
75
  const queryParameters = {};
76
76
  const headerParameters = {};
77
+ headerParameters['Content-Type'] = 'application/json';
77
78
  if (this.configuration && this.configuration.accessToken) {
78
79
  const token = this.configuration.accessToken;
79
80
  const tokenString = yield token("bearerAuth", []);
@@ -88,6 +89,7 @@ class AllocationsApi extends runtime.BaseAPI {
88
89
  method: 'POST',
89
90
  headers: headerParameters,
90
91
  query: queryParameters,
92
+ body: (0, index_1.DeleteAllocationRequestToJSON)(requestParameters['deleteAllocationRequest']),
91
93
  }, initOverrides);
92
94
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GenericResponseFromJSON)(jsonValue));
93
95
  });
@@ -136,45 +138,6 @@ class AllocationsApi extends runtime.BaseAPI {
136
138
  return yield response.value();
137
139
  });
138
140
  }
139
- /**
140
- * Auto-generated: shiftAllocation
141
- */
142
- shiftAllocationRaw(requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- if (requestParameters['allocation'] == null) {
145
- throw new runtime.RequiredError('allocation', 'Required parameter "allocation" was null or undefined when calling shiftAllocation().');
146
- }
147
- const queryParameters = {};
148
- const headerParameters = {};
149
- headerParameters['Content-Type'] = 'application/json';
150
- if (this.configuration && this.configuration.accessToken) {
151
- const token = this.configuration.accessToken;
152
- const tokenString = yield token("bearerAuth", []);
153
- if (tokenString) {
154
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
155
- }
156
- }
157
- let urlPath = `/api/allocations/{allocation}/shift`;
158
- urlPath = urlPath.replace(`{${"allocation"}}`, encodeURIComponent(String(requestParameters['allocation'])));
159
- const response = yield this.request({
160
- path: urlPath,
161
- method: 'POST',
162
- headers: headerParameters,
163
- query: queryParameters,
164
- body: (0, index_1.ShiftAllocationRequestToJSON)(requestParameters['shiftAllocationRequest']),
165
- }, initOverrides);
166
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AllocationResourceFromJSON)(jsonValue));
167
- });
168
- }
169
- /**
170
- * Auto-generated: shiftAllocation
171
- */
172
- shiftAllocation(requestParameters, initOverrides) {
173
- return __awaiter(this, void 0, void 0, function* () {
174
- const response = yield this.shiftAllocationRaw(requestParameters, initOverrides);
175
- return yield response.value();
176
- });
177
- }
178
141
  /**
179
142
  * Auto-generated: showAllocation
180
143
  */
@@ -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
  */
@@ -74,6 +74,7 @@ class TimeOffApi extends runtime.BaseAPI {
74
74
  }
75
75
  const queryParameters = {};
76
76
  const headerParameters = {};
77
+ headerParameters['Content-Type'] = 'application/json';
77
78
  if (this.configuration && this.configuration.accessToken) {
78
79
  const token = this.configuration.accessToken;
79
80
  const tokenString = yield token("bearerAuth", []);
@@ -88,6 +89,7 @@ class TimeOffApi extends runtime.BaseAPI {
88
89
  method: 'POST',
89
90
  headers: headerParameters,
90
91
  query: queryParameters,
92
+ body: (0, index_1.DeleteTimeOffRequestToJSON)(requestParameters['deleteTimeOffRequest']),
91
93
  }, initOverrides);
92
94
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GenericResponseFromJSON)(jsonValue));
93
95
  });
@@ -136,45 +138,6 @@ class TimeOffApi extends runtime.BaseAPI {
136
138
  return yield response.value();
137
139
  });
138
140
  }
139
- /**
140
- * Auto-generated: shiftTimeOff
141
- */
142
- shiftTimeOffRaw(requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- if (requestParameters['timeOff'] == null) {
145
- throw new runtime.RequiredError('timeOff', 'Required parameter "timeOff" was null or undefined when calling shiftTimeOff().');
146
- }
147
- const queryParameters = {};
148
- const headerParameters = {};
149
- headerParameters['Content-Type'] = 'application/json';
150
- if (this.configuration && this.configuration.accessToken) {
151
- const token = this.configuration.accessToken;
152
- const tokenString = yield token("bearerAuth", []);
153
- if (tokenString) {
154
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
155
- }
156
- }
157
- let urlPath = `/api/time-off/{timeOff}/shift`;
158
- urlPath = urlPath.replace(`{${"timeOff"}}`, encodeURIComponent(String(requestParameters['timeOff'])));
159
- const response = yield this.request({
160
- path: urlPath,
161
- method: 'POST',
162
- headers: headerParameters,
163
- query: queryParameters,
164
- body: (0, index_1.ShiftTimeOffRequestToJSON)(requestParameters['shiftTimeOffRequest']),
165
- }, initOverrides);
166
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TimeOffResourceFromJSON)(jsonValue));
167
- });
168
- }
169
- /**
170
- * Auto-generated: shiftTimeOff
171
- */
172
- shiftTimeOff(requestParameters, initOverrides) {
173
- return __awaiter(this, void 0, void 0, function* () {
174
- const response = yield this.shiftTimeOffRaw(requestParameters, initOverrides);
175
- return yield response.value();
176
- });
177
- }
178
141
  /**
179
142
  * Auto-generated: showTimeOff
180
143
  */
@@ -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
  }
@@ -64,43 +64,6 @@ class TimeOffDaysApi extends runtime.BaseAPI {
64
64
  return yield response.value();
65
65
  });
66
66
  }
67
- /**
68
- * Auto-generated: destroyTimeOffDay
69
- */
70
- destroyTimeOffDayRaw(requestParameters, initOverrides) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- if (requestParameters['timeOffDay'] == null) {
73
- throw new runtime.RequiredError('timeOffDay', 'Required parameter "timeOffDay" was null or undefined when calling destroyTimeOffDay().');
74
- }
75
- const queryParameters = {};
76
- const headerParameters = {};
77
- if (this.configuration && this.configuration.accessToken) {
78
- const token = this.configuration.accessToken;
79
- const tokenString = yield token("bearerAuth", []);
80
- if (tokenString) {
81
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
82
- }
83
- }
84
- let urlPath = `/api/time-off-days/{timeOffDay}/delete`;
85
- urlPath = urlPath.replace(`{${"timeOffDay"}}`, encodeURIComponent(String(requestParameters['timeOffDay'])));
86
- const response = yield this.request({
87
- path: urlPath,
88
- method: 'POST',
89
- headers: headerParameters,
90
- query: queryParameters,
91
- }, initOverrides);
92
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.GenericResponseFromJSON)(jsonValue));
93
- });
94
- }
95
- /**
96
- * Auto-generated: destroyTimeOffDay
97
- */
98
- destroyTimeOffDay(requestParameters, initOverrides) {
99
- return __awaiter(this, void 0, void 0, function* () {
100
- const response = yield this.destroyTimeOffDayRaw(requestParameters, initOverrides);
101
- return yield response.value();
102
- });
103
- }
104
67
  /**
105
68
  * Auto-generated: indexTimeOffDay
106
69
  */
@@ -136,44 +99,5 @@ class TimeOffDaysApi extends runtime.BaseAPI {
136
99
  return yield response.value();
137
100
  });
138
101
  }
139
- /**
140
- * Auto-generated: updateTimeOffDay
141
- */
142
- updateTimeOffDayRaw(requestParameters, initOverrides) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- if (requestParameters['timeOffDay'] == null) {
145
- throw new runtime.RequiredError('timeOffDay', 'Required parameter "timeOffDay" was null or undefined when calling updateTimeOffDay().');
146
- }
147
- const queryParameters = {};
148
- const headerParameters = {};
149
- headerParameters['Content-Type'] = 'application/json';
150
- if (this.configuration && this.configuration.accessToken) {
151
- const token = this.configuration.accessToken;
152
- const tokenString = yield token("bearerAuth", []);
153
- if (tokenString) {
154
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
155
- }
156
- }
157
- let urlPath = `/api/time-off-days/{timeOffDay}/update`;
158
- urlPath = urlPath.replace(`{${"timeOffDay"}}`, encodeURIComponent(String(requestParameters['timeOffDay'])));
159
- const response = yield this.request({
160
- path: urlPath,
161
- method: 'POST',
162
- headers: headerParameters,
163
- query: queryParameters,
164
- body: (0, index_1.UpdateTimeOffDayRequestToJSON)(requestParameters['updateTimeOffDayRequest']),
165
- }, initOverrides);
166
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TimeOffResourceFromJSON)(jsonValue));
167
- });
168
- }
169
- /**
170
- * Auto-generated: updateTimeOffDay
171
- */
172
- updateTimeOffDay(requestParameters, initOverrides) {
173
- return __awaiter(this, void 0, void 0, function* () {
174
- const response = yield this.updateTimeOffDayRaw(requestParameters, initOverrides);
175
- return yield response.value();
176
- });
177
- }
178
102
  }
179
103
  exports.TimeOffDaysApi = TimeOffDaysApi;
@@ -10,20 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AllocationDayResourceArrayResponse, AllocationResource, GenericResponse, PaginatedAllocationDayResourceResponse, SearchAllAllocationDaysRequest, SearchAllocationDaysRequest, UpdateAllocationDayRequest } from '../models/index';
13
+ import type { AllocationDayResourceArrayResponse, PaginatedAllocationDayResourceResponse, SearchAllAllocationDaysRequest, SearchAllocationDaysRequest } from '../models/index';
14
14
  export interface AllAllocationDayRequest {
15
15
  searchAllAllocationDaysRequest?: SearchAllAllocationDaysRequest;
16
16
  }
17
- export interface DestroyAllocationDayRequest {
18
- allocationDay: number;
19
- }
20
17
  export interface IndexAllocationDayRequest {
21
18
  searchAllocationDaysRequest?: SearchAllocationDaysRequest;
22
19
  }
23
- export interface UpdateAllocationDayOperationRequest {
24
- allocationDay: number;
25
- updateAllocationDayRequest?: UpdateAllocationDayRequest;
26
- }
27
20
  /**
28
21
  *
29
22
  */
@@ -36,14 +29,6 @@ export declare class AllocationDaysApi extends runtime.BaseAPI {
36
29
  * Auto-generated: allAllocationDay
37
30
  */
38
31
  allAllocationDay(requestParameters?: AllAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllocationDayResourceArrayResponse>;
39
- /**
40
- * Auto-generated: destroyAllocationDay
41
- */
42
- destroyAllocationDayRaw(requestParameters: DestroyAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GenericResponse>>;
43
- /**
44
- * Auto-generated: destroyAllocationDay
45
- */
46
- destroyAllocationDay(requestParameters: DestroyAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GenericResponse>;
47
32
  /**
48
33
  * Auto-generated: indexAllocationDay
49
34
  */
@@ -52,12 +37,4 @@ export declare class AllocationDaysApi extends runtime.BaseAPI {
52
37
  * Auto-generated: indexAllocationDay
53
38
  */
54
39
  indexAllocationDay(requestParameters?: IndexAllocationDayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedAllocationDayResourceResponse>;
55
- /**
56
- * Auto-generated: updateAllocationDay
57
- */
58
- updateAllocationDayRaw(requestParameters: UpdateAllocationDayOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AllocationResource>>;
59
- /**
60
- * Auto-generated: updateAllocationDay
61
- */
62
- updateAllocationDay(requestParameters: UpdateAllocationDayOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AllocationResource>;
63
40
  }