@joao.sumi/qdule 0.0.2
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 +37 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +118 -0
- package/api.ts +3325 -0
- package/base.ts +62 -0
- package/common.ts +127 -0
- package/configuration.ts +121 -0
- package/dist/api.d.ts +1826 -0
- package/dist/api.js +3290 -0
- package/dist/base.d.ts +42 -0
- package/dist/base.js +67 -0
- package/dist/common.d.ts +34 -0
- package/dist/common.js +231 -0
- package/dist/configuration.d.ts +98 -0
- package/dist/configuration.js +57 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +31 -0
- package/docs/AuthRequest.md +22 -0
- package/docs/AuthResourceApi.md +60 -0
- package/docs/ChangelogCreateRequest.md +24 -0
- package/docs/ChangelogResourceApi.md +272 -0
- package/docs/ChangelogUpdateRequest.md +24 -0
- package/docs/ClientCreateRequest.md +24 -0
- package/docs/ClientResourceApi.md +224 -0
- package/docs/ClientUpdateRequest.md +24 -0
- package/docs/DayOfWeek.md +20 -0
- package/docs/ScheduleCreateRequest.md +30 -0
- package/docs/ScheduleResourceApi.md +278 -0
- package/docs/ScheduleStatus.md +16 -0
- package/docs/ScheduleUpdateRequest.md +26 -0
- package/docs/ShiftCreateRequest.md +30 -0
- package/docs/ShiftResourceApi.md +280 -0
- package/docs/ShiftUpdateRequest.md +30 -0
- package/docs/TreatmentCreateRequest.md +30 -0
- package/docs/TreatmentResourceApi.md +278 -0
- package/docs/TreatmentStatus.md +10 -0
- package/docs/TreatmentUpdateRequest.md +30 -0
- package/docs/UserCreateRequest.md +24 -0
- package/docs/UserResourceApi.md +113 -0
- package/docs/WorkScheduleCreateRequest.md +22 -0
- package/docs/WorkScheduleResourceApi.md +278 -0
- package/docs/WorkScheduleUpdateRequest.md +22 -0
- package/git_push.sh +57 -0
- package/index.ts +18 -0
- package/package.json +27 -0
- package/tsconfig.json +21 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
# ScheduleResourceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**schedulesGet**](#schedulesget) | **GET** /schedules | Get Schedules|
|
|
8
|
+
|[**schedulesIdDelete**](#schedulesiddelete) | **DELETE** /schedules/{id} | Delete Schedule By Id|
|
|
9
|
+
|[**schedulesIdGet**](#schedulesidget) | **GET** /schedules/{id} | Find Schedule By Id|
|
|
10
|
+
|[**schedulesIdPut**](#schedulesidput) | **PUT** /schedules/{id} | Update Schedule|
|
|
11
|
+
|[**schedulesPost**](#schedulespost) | **POST** /schedules | Create Schedule|
|
|
12
|
+
|
|
13
|
+
# **schedulesGet**
|
|
14
|
+
> any schedulesGet()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ScheduleResourceApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@joao.sumi/qdule';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ScheduleResourceApi(configuration);
|
|
27
|
+
|
|
28
|
+
let page: number; // (optional) (default to undefined)
|
|
29
|
+
let size: number; // (optional) (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.schedulesGet(
|
|
32
|
+
page,
|
|
33
|
+
size
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
42
|
+
| **size** | [**number**] | | (optional) defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**any**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
No authorization required
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: Not defined
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | OK | - |
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
# **schedulesIdDelete**
|
|
67
|
+
> any schedulesIdDelete()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
ScheduleResourceApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@joao.sumi/qdule';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new ScheduleResourceApi(configuration);
|
|
80
|
+
|
|
81
|
+
let id: number; // (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.schedulesIdDelete(
|
|
84
|
+
id
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **id** | [**number**] | | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**any**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | OK | - |
|
|
113
|
+
|**401** | Not Authorized | - |
|
|
114
|
+
|**403** | Not Allowed | - |
|
|
115
|
+
|
|
116
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
117
|
+
|
|
118
|
+
# **schedulesIdGet**
|
|
119
|
+
> any schedulesIdGet()
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Example
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import {
|
|
126
|
+
ScheduleResourceApi,
|
|
127
|
+
Configuration
|
|
128
|
+
} from '@joao.sumi/qdule';
|
|
129
|
+
|
|
130
|
+
const configuration = new Configuration();
|
|
131
|
+
const apiInstance = new ScheduleResourceApi(configuration);
|
|
132
|
+
|
|
133
|
+
let id: number; // (default to undefined)
|
|
134
|
+
|
|
135
|
+
const { status, data } = await apiInstance.schedulesIdGet(
|
|
136
|
+
id
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **id** | [**number**] | | defaults to undefined|
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**any**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
No authorization required
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### HTTP response details
|
|
162
|
+
| Status code | Description | Response headers |
|
|
163
|
+
|-------------|-------------|------------------|
|
|
164
|
+
|**200** | OK | - |
|
|
165
|
+
|
|
166
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
167
|
+
|
|
168
|
+
# **schedulesIdPut**
|
|
169
|
+
> any schedulesIdPut(scheduleUpdateRequest)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
### Example
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import {
|
|
176
|
+
ScheduleResourceApi,
|
|
177
|
+
Configuration,
|
|
178
|
+
ScheduleUpdateRequest
|
|
179
|
+
} from '@joao.sumi/qdule';
|
|
180
|
+
|
|
181
|
+
const configuration = new Configuration();
|
|
182
|
+
const apiInstance = new ScheduleResourceApi(configuration);
|
|
183
|
+
|
|
184
|
+
let id: number; // (default to undefined)
|
|
185
|
+
let scheduleUpdateRequest: ScheduleUpdateRequest; //
|
|
186
|
+
|
|
187
|
+
const { status, data } = await apiInstance.schedulesIdPut(
|
|
188
|
+
id,
|
|
189
|
+
scheduleUpdateRequest
|
|
190
|
+
);
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Parameters
|
|
194
|
+
|
|
195
|
+
|Name | Type | Description | Notes|
|
|
196
|
+
|------------- | ------------- | ------------- | -------------|
|
|
197
|
+
| **scheduleUpdateRequest** | **ScheduleUpdateRequest**| | |
|
|
198
|
+
| **id** | [**number**] | | defaults to undefined|
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Return type
|
|
202
|
+
|
|
203
|
+
**any**
|
|
204
|
+
|
|
205
|
+
### Authorization
|
|
206
|
+
|
|
207
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
208
|
+
|
|
209
|
+
### HTTP request headers
|
|
210
|
+
|
|
211
|
+
- **Content-Type**: application/json
|
|
212
|
+
- **Accept**: application/json
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
### HTTP response details
|
|
216
|
+
| Status code | Description | Response headers |
|
|
217
|
+
|-------------|-------------|------------------|
|
|
218
|
+
|**200** | OK | - |
|
|
219
|
+
|**401** | Not Authorized | - |
|
|
220
|
+
|**403** | Not Allowed | - |
|
|
221
|
+
|**400** | Bad Request | - |
|
|
222
|
+
|
|
223
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
224
|
+
|
|
225
|
+
# **schedulesPost**
|
|
226
|
+
> any schedulesPost(scheduleCreateRequest)
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
### Example
|
|
230
|
+
|
|
231
|
+
```typescript
|
|
232
|
+
import {
|
|
233
|
+
ScheduleResourceApi,
|
|
234
|
+
Configuration,
|
|
235
|
+
ScheduleCreateRequest
|
|
236
|
+
} from '@joao.sumi/qdule';
|
|
237
|
+
|
|
238
|
+
const configuration = new Configuration();
|
|
239
|
+
const apiInstance = new ScheduleResourceApi(configuration);
|
|
240
|
+
|
|
241
|
+
let scheduleCreateRequest: ScheduleCreateRequest; //
|
|
242
|
+
|
|
243
|
+
const { status, data } = await apiInstance.schedulesPost(
|
|
244
|
+
scheduleCreateRequest
|
|
245
|
+
);
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
### Parameters
|
|
249
|
+
|
|
250
|
+
|Name | Type | Description | Notes|
|
|
251
|
+
|------------- | ------------- | ------------- | -------------|
|
|
252
|
+
| **scheduleCreateRequest** | **ScheduleCreateRequest**| | |
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
### Return type
|
|
256
|
+
|
|
257
|
+
**any**
|
|
258
|
+
|
|
259
|
+
### Authorization
|
|
260
|
+
|
|
261
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
262
|
+
|
|
263
|
+
### HTTP request headers
|
|
264
|
+
|
|
265
|
+
- **Content-Type**: application/json
|
|
266
|
+
- **Accept**: application/json
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
### HTTP response details
|
|
270
|
+
| Status code | Description | Response headers |
|
|
271
|
+
|-------------|-------------|------------------|
|
|
272
|
+
|**200** | OK | - |
|
|
273
|
+
|**401** | Not Authorized | - |
|
|
274
|
+
|**403** | Not Allowed | - |
|
|
275
|
+
|**400** | Bad Request | - |
|
|
276
|
+
|
|
277
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
278
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# ScheduleStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Done` (value: `'DONE'`)
|
|
7
|
+
|
|
8
|
+
* `Scheduled` (value: `'SCHEDULED'`)
|
|
9
|
+
|
|
10
|
+
* `Rescheduled` (value: `'RESCHEDULED'`)
|
|
11
|
+
|
|
12
|
+
* `Pending` (value: `'PENDING'`)
|
|
13
|
+
|
|
14
|
+
* `Canceled` (value: `'CANCELED'`)
|
|
15
|
+
|
|
16
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ScheduleUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**startDateTime** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**endDateTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**status** | [**ScheduleStatus**](ScheduleStatus.md) | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ScheduleUpdateRequest } from '@joao.sumi/qdule';
|
|
17
|
+
|
|
18
|
+
const instance: ScheduleUpdateRequest = {
|
|
19
|
+
startDateTime,
|
|
20
|
+
endDateTime,
|
|
21
|
+
reason,
|
|
22
|
+
status,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ShiftCreateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**startTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**endTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**restTimeBetweenAppointments** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**breakStartTime** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**breakEndTime** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ShiftCreateRequest } from '@joao.sumi/qdule';
|
|
19
|
+
|
|
20
|
+
const instance: ShiftCreateRequest = {
|
|
21
|
+
name,
|
|
22
|
+
startTime,
|
|
23
|
+
endTime,
|
|
24
|
+
restTimeBetweenAppointments,
|
|
25
|
+
breakStartTime,
|
|
26
|
+
breakEndTime,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
# ShiftResourceApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**shiftsGet**](#shiftsget) | **GET** /shifts | Get Shifts|
|
|
8
|
+
|[**shiftsIdDelete**](#shiftsiddelete) | **DELETE** /shifts/{id} | Delete Shift By Id|
|
|
9
|
+
|[**shiftsIdGet**](#shiftsidget) | **GET** /shifts/{id} | Find Shift By Id|
|
|
10
|
+
|[**shiftsIdPut**](#shiftsidput) | **PUT** /shifts/{id} | Update Shift|
|
|
11
|
+
|[**shiftsPost**](#shiftspost) | **POST** /shifts | Create Shift|
|
|
12
|
+
|
|
13
|
+
# **shiftsGet**
|
|
14
|
+
> any shiftsGet()
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import {
|
|
21
|
+
ShiftResourceApi,
|
|
22
|
+
Configuration
|
|
23
|
+
} from '@joao.sumi/qdule';
|
|
24
|
+
|
|
25
|
+
const configuration = new Configuration();
|
|
26
|
+
const apiInstance = new ShiftResourceApi(configuration);
|
|
27
|
+
|
|
28
|
+
let page: number; // (optional) (default to undefined)
|
|
29
|
+
let size: number; // (optional) (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.shiftsGet(
|
|
32
|
+
page,
|
|
33
|
+
size
|
|
34
|
+
);
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
### Parameters
|
|
38
|
+
|
|
39
|
+
|Name | Type | Description | Notes|
|
|
40
|
+
|------------- | ------------- | ------------- | -------------|
|
|
41
|
+
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
42
|
+
| **size** | [**number**] | | (optional) defaults to undefined|
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### Return type
|
|
46
|
+
|
|
47
|
+
**any**
|
|
48
|
+
|
|
49
|
+
### Authorization
|
|
50
|
+
|
|
51
|
+
No authorization required
|
|
52
|
+
|
|
53
|
+
### HTTP request headers
|
|
54
|
+
|
|
55
|
+
- **Content-Type**: Not defined
|
|
56
|
+
- **Accept**: application/json
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
### HTTP response details
|
|
60
|
+
| Status code | Description | Response headers |
|
|
61
|
+
|-------------|-------------|------------------|
|
|
62
|
+
|**200** | OK | - |
|
|
63
|
+
|
|
64
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
65
|
+
|
|
66
|
+
# **shiftsIdDelete**
|
|
67
|
+
> any shiftsIdDelete()
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
ShiftResourceApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@joao.sumi/qdule';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new ShiftResourceApi(configuration);
|
|
80
|
+
|
|
81
|
+
let id: number; // (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.shiftsIdDelete(
|
|
84
|
+
id
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **id** | [**number**] | | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**any**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | OK | - |
|
|
113
|
+
|**401** | Not Authorized | - |
|
|
114
|
+
|**403** | Not Allowed | - |
|
|
115
|
+
|
|
116
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
117
|
+
|
|
118
|
+
# **shiftsIdGet**
|
|
119
|
+
> any shiftsIdGet()
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
### Example
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import {
|
|
126
|
+
ShiftResourceApi,
|
|
127
|
+
Configuration
|
|
128
|
+
} from '@joao.sumi/qdule';
|
|
129
|
+
|
|
130
|
+
const configuration = new Configuration();
|
|
131
|
+
const apiInstance = new ShiftResourceApi(configuration);
|
|
132
|
+
|
|
133
|
+
let id: number; // (default to undefined)
|
|
134
|
+
|
|
135
|
+
const { status, data } = await apiInstance.shiftsIdGet(
|
|
136
|
+
id
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **id** | [**number**] | | defaults to undefined|
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**any**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### HTTP response details
|
|
162
|
+
| Status code | Description | Response headers |
|
|
163
|
+
|-------------|-------------|------------------|
|
|
164
|
+
|**200** | OK | - |
|
|
165
|
+
|**401** | Not Authorized | - |
|
|
166
|
+
|**403** | Not Allowed | - |
|
|
167
|
+
|
|
168
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
169
|
+
|
|
170
|
+
# **shiftsIdPut**
|
|
171
|
+
> any shiftsIdPut(shiftUpdateRequest)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Example
|
|
175
|
+
|
|
176
|
+
```typescript
|
|
177
|
+
import {
|
|
178
|
+
ShiftResourceApi,
|
|
179
|
+
Configuration,
|
|
180
|
+
ShiftUpdateRequest
|
|
181
|
+
} from '@joao.sumi/qdule';
|
|
182
|
+
|
|
183
|
+
const configuration = new Configuration();
|
|
184
|
+
const apiInstance = new ShiftResourceApi(configuration);
|
|
185
|
+
|
|
186
|
+
let id: number; // (default to undefined)
|
|
187
|
+
let shiftUpdateRequest: ShiftUpdateRequest; //
|
|
188
|
+
|
|
189
|
+
const { status, data } = await apiInstance.shiftsIdPut(
|
|
190
|
+
id,
|
|
191
|
+
shiftUpdateRequest
|
|
192
|
+
);
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
### Parameters
|
|
196
|
+
|
|
197
|
+
|Name | Type | Description | Notes|
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **shiftUpdateRequest** | **ShiftUpdateRequest**| | |
|
|
200
|
+
| **id** | [**number**] | | defaults to undefined|
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
### Return type
|
|
204
|
+
|
|
205
|
+
**any**
|
|
206
|
+
|
|
207
|
+
### Authorization
|
|
208
|
+
|
|
209
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
210
|
+
|
|
211
|
+
### HTTP request headers
|
|
212
|
+
|
|
213
|
+
- **Content-Type**: application/json
|
|
214
|
+
- **Accept**: application/json
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### HTTP response details
|
|
218
|
+
| Status code | Description | Response headers |
|
|
219
|
+
|-------------|-------------|------------------|
|
|
220
|
+
|**200** | OK | - |
|
|
221
|
+
|**401** | Not Authorized | - |
|
|
222
|
+
|**403** | Not Allowed | - |
|
|
223
|
+
|**400** | Bad Request | - |
|
|
224
|
+
|
|
225
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
226
|
+
|
|
227
|
+
# **shiftsPost**
|
|
228
|
+
> any shiftsPost(shiftCreateRequest)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Example
|
|
232
|
+
|
|
233
|
+
```typescript
|
|
234
|
+
import {
|
|
235
|
+
ShiftResourceApi,
|
|
236
|
+
Configuration,
|
|
237
|
+
ShiftCreateRequest
|
|
238
|
+
} from '@joao.sumi/qdule';
|
|
239
|
+
|
|
240
|
+
const configuration = new Configuration();
|
|
241
|
+
const apiInstance = new ShiftResourceApi(configuration);
|
|
242
|
+
|
|
243
|
+
let shiftCreateRequest: ShiftCreateRequest; //
|
|
244
|
+
|
|
245
|
+
const { status, data } = await apiInstance.shiftsPost(
|
|
246
|
+
shiftCreateRequest
|
|
247
|
+
);
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### Parameters
|
|
251
|
+
|
|
252
|
+
|Name | Type | Description | Notes|
|
|
253
|
+
|------------- | ------------- | ------------- | -------------|
|
|
254
|
+
| **shiftCreateRequest** | **ShiftCreateRequest**| | |
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
### Return type
|
|
258
|
+
|
|
259
|
+
**any**
|
|
260
|
+
|
|
261
|
+
### Authorization
|
|
262
|
+
|
|
263
|
+
[SecurityScheme](../README.md#SecurityScheme)
|
|
264
|
+
|
|
265
|
+
### HTTP request headers
|
|
266
|
+
|
|
267
|
+
- **Content-Type**: application/json
|
|
268
|
+
- **Accept**: application/json
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
### HTTP response details
|
|
272
|
+
| Status code | Description | Response headers |
|
|
273
|
+
|-------------|-------------|------------------|
|
|
274
|
+
|**200** | OK | - |
|
|
275
|
+
|**401** | Not Authorized | - |
|
|
276
|
+
|**403** | Not Allowed | - |
|
|
277
|
+
|**400** | Bad Request | - |
|
|
278
|
+
|
|
279
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
280
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# ShiftUpdateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**startTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**endTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**restTimeBetweenAppointments** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**breakStartTime** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**breakEndTime** | **string** | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { ShiftUpdateRequest } from '@joao.sumi/qdule';
|
|
19
|
+
|
|
20
|
+
const instance: ShiftUpdateRequest = {
|
|
21
|
+
name,
|
|
22
|
+
startTime,
|
|
23
|
+
endTime,
|
|
24
|
+
restTimeBetweenAppointments,
|
|
25
|
+
breakStartTime,
|
|
26
|
+
breakEndTime,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# TreatmentCreateRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**duration** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**price** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**imagePath** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**status** | [**TreatmentStatus**](TreatmentStatus.md) | | [optional] [default to undefined]
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { TreatmentCreateRequest } from '@joao.sumi/qdule';
|
|
19
|
+
|
|
20
|
+
const instance: TreatmentCreateRequest = {
|
|
21
|
+
name,
|
|
22
|
+
description,
|
|
23
|
+
duration,
|
|
24
|
+
price,
|
|
25
|
+
imagePath,
|
|
26
|
+
status,
|
|
27
|
+
};
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|