@joao.sumi/qdule 0.0.2 → 0.0.3
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 +10 -1
- package/README.md +10 -0
- package/api.ts +170 -102
- package/dist/api.d.ts +196 -128
- package/dist/api.js +0 -6
- package/docs/AuthResourceApi.md +3 -3
- package/docs/AuthResponse.md +20 -0
- package/docs/ChangelogResourceApi.md +16 -16
- package/docs/ChangelogResponse.md +26 -0
- package/docs/ClientResourceApi.md +13 -13
- package/docs/ClientResponse.md +26 -0
- package/docs/PageResponse.md +28 -0
- package/docs/ScheduleResourceApi.md +16 -16
- package/docs/ScheduleResponse.md +32 -0
- package/docs/Shift.md +32 -0
- package/docs/ShiftResourceApi.md +16 -16
- package/docs/ShiftResponse.md +32 -0
- package/docs/TreatmentResourceApi.md +16 -16
- package/docs/TreatmentResponse.md +32 -0
- package/docs/UserResourceApi.md +6 -6
- package/docs/UserResponse.md +24 -0
- package/docs/WorkScheduleResourceApi.md +16 -16
- package/docs/WorkScheduleResponse.md +24 -0
- package/package.json +5 -1
package/dist/api.js
CHANGED
|
@@ -307,7 +307,6 @@ var ChangelogResourceApiAxiosParamCreator = function (configuration) {
|
|
|
307
307
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
308
308
|
localVarHeaderParameter = {};
|
|
309
309
|
localVarQueryParameter = {};
|
|
310
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
311
310
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
311
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
313
312
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -736,7 +735,6 @@ var ClientResourceApiAxiosParamCreator = function (configuration) {
|
|
|
736
735
|
// authentication SecurityScheme required
|
|
737
736
|
// http bearer authentication required
|
|
738
737
|
_a.sent();
|
|
739
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
740
738
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
741
739
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
742
740
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1181,7 +1179,6 @@ var ScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
|
1181
1179
|
// authentication SecurityScheme required
|
|
1182
1180
|
// http bearer authentication required
|
|
1183
1181
|
_a.sent();
|
|
1184
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1185
1182
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1186
1183
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1187
1184
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1673,7 +1670,6 @@ var ShiftResourceApiAxiosParamCreator = function (configuration) {
|
|
|
1673
1670
|
// authentication SecurityScheme required
|
|
1674
1671
|
// http bearer authentication required
|
|
1675
1672
|
_a.sent();
|
|
1676
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1677
1673
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1678
1674
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1679
1675
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2175,7 +2171,6 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2175
2171
|
// authentication SecurityScheme required
|
|
2176
2172
|
// http bearer authentication required
|
|
2177
2173
|
_a.sent();
|
|
2178
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2179
2174
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2180
2175
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2181
2176
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2880,7 +2875,6 @@ var WorkScheduleResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2880
2875
|
// authentication SecurityScheme required
|
|
2881
2876
|
// http bearer authentication required
|
|
2882
2877
|
_a.sent();
|
|
2883
|
-
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2884
2878
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2885
2879
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2886
2880
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
package/docs/AuthResourceApi.md
CHANGED
|
@@ -7,7 +7,7 @@ All URIs are relative to *http://localhost*
|
|
|
7
7
|
|[**authPost**](#authpost) | **POST** /auth | Generate User Token|
|
|
8
8
|
|
|
9
9
|
# **authPost**
|
|
10
|
-
>
|
|
10
|
+
> AuthResponse authPost(authRequest)
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
### Example
|
|
@@ -38,7 +38,7 @@ const { status, data } = await apiInstance.authPost(
|
|
|
38
38
|
|
|
39
39
|
### Return type
|
|
40
40
|
|
|
41
|
-
**
|
|
41
|
+
**AuthResponse**
|
|
42
42
|
|
|
43
43
|
### Authorization
|
|
44
44
|
|
|
@@ -53,7 +53,7 @@ No authorization required
|
|
|
53
53
|
### HTTP response details
|
|
54
54
|
| Status code | Description | Response headers |
|
|
55
55
|
|-------------|-------------|------------------|
|
|
56
|
-
|**200** |
|
|
56
|
+
|**200** | User token generated | - |
|
|
57
57
|
|**400** | Bad Request | - |
|
|
58
58
|
|
|
59
59
|
[[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)
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# AuthResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**token** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { AuthResponse } from '@joao.sumi/qdule';
|
|
14
|
+
|
|
15
|
+
const instance: AuthResponse = {
|
|
16
|
+
token,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -11,7 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**changelogsPost**](#changelogspost) | **POST** /changelogs | Create Changelog|
|
|
12
12
|
|
|
13
13
|
# **changelogsGet**
|
|
14
|
-
>
|
|
14
|
+
> PageResponse changelogsGet()
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
### Example
|
|
@@ -44,7 +44,7 @@ const { status, data } = await apiInstance.changelogsGet(
|
|
|
44
44
|
|
|
45
45
|
### Return type
|
|
46
46
|
|
|
47
|
-
**
|
|
47
|
+
**PageResponse**
|
|
48
48
|
|
|
49
49
|
### Authorization
|
|
50
50
|
|
|
@@ -59,12 +59,12 @@ No authorization required
|
|
|
59
59
|
### HTTP response details
|
|
60
60
|
| Status code | Description | Response headers |
|
|
61
61
|
|-------------|-------------|------------------|
|
|
62
|
-
|**200** |
|
|
62
|
+
|**200** | Changelogs list | - |
|
|
63
63
|
|
|
64
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
65
|
|
|
66
66
|
# **changelogsIdDelete**
|
|
67
|
-
>
|
|
67
|
+
> changelogsIdDelete()
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
### Example
|
|
@@ -94,7 +94,7 @@ const { status, data } = await apiInstance.changelogsIdDelete(
|
|
|
94
94
|
|
|
95
95
|
### Return type
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
void (empty response body)
|
|
98
98
|
|
|
99
99
|
### Authorization
|
|
100
100
|
|
|
@@ -103,18 +103,18 @@ No authorization required
|
|
|
103
103
|
### HTTP request headers
|
|
104
104
|
|
|
105
105
|
- **Content-Type**: Not defined
|
|
106
|
-
- **Accept**:
|
|
106
|
+
- **Accept**: Not defined
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
### HTTP response details
|
|
110
110
|
| Status code | Description | Response headers |
|
|
111
111
|
|-------------|-------------|------------------|
|
|
112
|
-
|**
|
|
112
|
+
|**204** | Changelog deleted | - |
|
|
113
113
|
|
|
114
114
|
[[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)
|
|
115
115
|
|
|
116
116
|
# **changelogsIdGet**
|
|
117
|
-
>
|
|
117
|
+
> ChangelogResponse changelogsIdGet()
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
### Example
|
|
@@ -144,7 +144,7 @@ const { status, data } = await apiInstance.changelogsIdGet(
|
|
|
144
144
|
|
|
145
145
|
### Return type
|
|
146
146
|
|
|
147
|
-
**
|
|
147
|
+
**ChangelogResponse**
|
|
148
148
|
|
|
149
149
|
### Authorization
|
|
150
150
|
|
|
@@ -159,12 +159,12 @@ No authorization required
|
|
|
159
159
|
### HTTP response details
|
|
160
160
|
| Status code | Description | Response headers |
|
|
161
161
|
|-------------|-------------|------------------|
|
|
162
|
-
|**200** |
|
|
162
|
+
|**200** | Changelog details | - |
|
|
163
163
|
|
|
164
164
|
[[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)
|
|
165
165
|
|
|
166
166
|
# **changelogsIdPut**
|
|
167
|
-
>
|
|
167
|
+
> ChangelogResponse changelogsIdPut(changelogUpdateRequest)
|
|
168
168
|
|
|
169
169
|
|
|
170
170
|
### Example
|
|
@@ -198,7 +198,7 @@ const { status, data } = await apiInstance.changelogsIdPut(
|
|
|
198
198
|
|
|
199
199
|
### Return type
|
|
200
200
|
|
|
201
|
-
**
|
|
201
|
+
**ChangelogResponse**
|
|
202
202
|
|
|
203
203
|
### Authorization
|
|
204
204
|
|
|
@@ -213,13 +213,13 @@ No authorization required
|
|
|
213
213
|
### HTTP response details
|
|
214
214
|
| Status code | Description | Response headers |
|
|
215
215
|
|-------------|-------------|------------------|
|
|
216
|
-
|**200** |
|
|
216
|
+
|**200** | Changelog updated | - |
|
|
217
217
|
|**400** | Bad Request | - |
|
|
218
218
|
|
|
219
219
|
[[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)
|
|
220
220
|
|
|
221
221
|
# **changelogsPost**
|
|
222
|
-
>
|
|
222
|
+
> ChangelogResponse changelogsPost(changelogCreateRequest)
|
|
223
223
|
|
|
224
224
|
|
|
225
225
|
### Example
|
|
@@ -250,7 +250,7 @@ const { status, data } = await apiInstance.changelogsPost(
|
|
|
250
250
|
|
|
251
251
|
### Return type
|
|
252
252
|
|
|
253
|
-
**
|
|
253
|
+
**ChangelogResponse**
|
|
254
254
|
|
|
255
255
|
### Authorization
|
|
256
256
|
|
|
@@ -265,7 +265,7 @@ No authorization required
|
|
|
265
265
|
### HTTP response details
|
|
266
266
|
| Status code | Description | Response headers |
|
|
267
267
|
|-------------|-------------|------------------|
|
|
268
|
-
|**
|
|
268
|
+
|**201** | Changelog created | - |
|
|
269
269
|
|**400** | Bad Request | - |
|
|
270
270
|
|
|
271
271
|
[[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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ChangelogResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**dateTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**scheduleId** | **number** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ChangelogResponse } from '@joao.sumi/qdule';
|
|
17
|
+
|
|
18
|
+
const instance: ChangelogResponse = {
|
|
19
|
+
id,
|
|
20
|
+
dateTime,
|
|
21
|
+
description,
|
|
22
|
+
scheduleId,
|
|
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)
|
|
@@ -10,7 +10,7 @@ All URIs are relative to *http://localhost*
|
|
|
10
10
|
|[**clientsPost**](#clientspost) | **POST** /clients | Create Client|
|
|
11
11
|
|
|
12
12
|
# **clientsIdDelete**
|
|
13
|
-
>
|
|
13
|
+
> clientsIdDelete()
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
### Example
|
|
@@ -40,7 +40,7 @@ const { status, data } = await apiInstance.clientsIdDelete(
|
|
|
40
40
|
|
|
41
41
|
### Return type
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
void (empty response body)
|
|
44
44
|
|
|
45
45
|
### Authorization
|
|
46
46
|
|
|
@@ -49,20 +49,20 @@ const { status, data } = await apiInstance.clientsIdDelete(
|
|
|
49
49
|
### HTTP request headers
|
|
50
50
|
|
|
51
51
|
- **Content-Type**: Not defined
|
|
52
|
-
- **Accept**:
|
|
52
|
+
- **Accept**: Not defined
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
### HTTP response details
|
|
56
56
|
| Status code | Description | Response headers |
|
|
57
57
|
|-------------|-------------|------------------|
|
|
58
|
-
|**
|
|
58
|
+
|**204** | Client deleted | - |
|
|
59
59
|
|**401** | Not Authorized | - |
|
|
60
60
|
|**403** | Not Allowed | - |
|
|
61
61
|
|
|
62
62
|
[[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)
|
|
63
63
|
|
|
64
64
|
# **clientsIdGet**
|
|
65
|
-
>
|
|
65
|
+
> ClientResponse clientsIdGet()
|
|
66
66
|
|
|
67
67
|
|
|
68
68
|
### Example
|
|
@@ -92,7 +92,7 @@ const { status, data } = await apiInstance.clientsIdGet(
|
|
|
92
92
|
|
|
93
93
|
### Return type
|
|
94
94
|
|
|
95
|
-
**
|
|
95
|
+
**ClientResponse**
|
|
96
96
|
|
|
97
97
|
### Authorization
|
|
98
98
|
|
|
@@ -107,14 +107,14 @@ const { status, data } = await apiInstance.clientsIdGet(
|
|
|
107
107
|
### HTTP response details
|
|
108
108
|
| Status code | Description | Response headers |
|
|
109
109
|
|-------------|-------------|------------------|
|
|
110
|
-
|**200** |
|
|
110
|
+
|**200** | Client details | - |
|
|
111
111
|
|**401** | Not Authorized | - |
|
|
112
112
|
|**403** | Not Allowed | - |
|
|
113
113
|
|
|
114
114
|
[[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)
|
|
115
115
|
|
|
116
116
|
# **clientsIdPut**
|
|
117
|
-
>
|
|
117
|
+
> ClientResponse clientsIdPut(clientUpdateRequest)
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
### Example
|
|
@@ -148,7 +148,7 @@ const { status, data } = await apiInstance.clientsIdPut(
|
|
|
148
148
|
|
|
149
149
|
### Return type
|
|
150
150
|
|
|
151
|
-
**
|
|
151
|
+
**ClientResponse**
|
|
152
152
|
|
|
153
153
|
### Authorization
|
|
154
154
|
|
|
@@ -163,7 +163,7 @@ const { status, data } = await apiInstance.clientsIdPut(
|
|
|
163
163
|
### HTTP response details
|
|
164
164
|
| Status code | Description | Response headers |
|
|
165
165
|
|-------------|-------------|------------------|
|
|
166
|
-
|**200** |
|
|
166
|
+
|**200** | Client updated | - |
|
|
167
167
|
|**401** | Not Authorized | - |
|
|
168
168
|
|**403** | Not Allowed | - |
|
|
169
169
|
|**400** | Bad Request | - |
|
|
@@ -171,7 +171,7 @@ const { status, data } = await apiInstance.clientsIdPut(
|
|
|
171
171
|
[[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)
|
|
172
172
|
|
|
173
173
|
# **clientsPost**
|
|
174
|
-
>
|
|
174
|
+
> ClientResponse clientsPost(clientCreateRequest)
|
|
175
175
|
|
|
176
176
|
|
|
177
177
|
### Example
|
|
@@ -202,7 +202,7 @@ const { status, data } = await apiInstance.clientsPost(
|
|
|
202
202
|
|
|
203
203
|
### Return type
|
|
204
204
|
|
|
205
|
-
**
|
|
205
|
+
**ClientResponse**
|
|
206
206
|
|
|
207
207
|
### Authorization
|
|
208
208
|
|
|
@@ -217,7 +217,7 @@ No authorization required
|
|
|
217
217
|
### HTTP response details
|
|
218
218
|
| Status code | Description | Response headers |
|
|
219
219
|
|-------------|-------------|------------------|
|
|
220
|
-
|**
|
|
220
|
+
|**201** | Client created | - |
|
|
221
221
|
|**400** | Bad Request | - |
|
|
222
222
|
|
|
223
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)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClientResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**email** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**cellPhone** | **string** | | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClientResponse } from '@joao.sumi/qdule';
|
|
17
|
+
|
|
18
|
+
const instance: ClientResponse = {
|
|
19
|
+
id,
|
|
20
|
+
name,
|
|
21
|
+
email,
|
|
22
|
+
cellPhone,
|
|
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,28 @@
|
|
|
1
|
+
# PageResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**content** | **Array<any>** | | [optional] [default to undefined]
|
|
9
|
+
**page** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**size** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**totalElements** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**totalPages** | **number** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { PageResponse } from '@joao.sumi/qdule';
|
|
18
|
+
|
|
19
|
+
const instance: PageResponse = {
|
|
20
|
+
content,
|
|
21
|
+
page,
|
|
22
|
+
size,
|
|
23
|
+
totalElements,
|
|
24
|
+
totalPages,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -11,7 +11,7 @@ All URIs are relative to *http://localhost*
|
|
|
11
11
|
|[**schedulesPost**](#schedulespost) | **POST** /schedules | Create Schedule|
|
|
12
12
|
|
|
13
13
|
# **schedulesGet**
|
|
14
|
-
>
|
|
14
|
+
> PageResponse schedulesGet()
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
### Example
|
|
@@ -44,7 +44,7 @@ const { status, data } = await apiInstance.schedulesGet(
|
|
|
44
44
|
|
|
45
45
|
### Return type
|
|
46
46
|
|
|
47
|
-
**
|
|
47
|
+
**PageResponse**
|
|
48
48
|
|
|
49
49
|
### Authorization
|
|
50
50
|
|
|
@@ -59,12 +59,12 @@ No authorization required
|
|
|
59
59
|
### HTTP response details
|
|
60
60
|
| Status code | Description | Response headers |
|
|
61
61
|
|-------------|-------------|------------------|
|
|
62
|
-
|**200** |
|
|
62
|
+
|**200** | Schedules list | - |
|
|
63
63
|
|
|
64
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
65
|
|
|
66
66
|
# **schedulesIdDelete**
|
|
67
|
-
>
|
|
67
|
+
> schedulesIdDelete()
|
|
68
68
|
|
|
69
69
|
|
|
70
70
|
### Example
|
|
@@ -94,7 +94,7 @@ const { status, data } = await apiInstance.schedulesIdDelete(
|
|
|
94
94
|
|
|
95
95
|
### Return type
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
void (empty response body)
|
|
98
98
|
|
|
99
99
|
### Authorization
|
|
100
100
|
|
|
@@ -103,20 +103,20 @@ const { status, data } = await apiInstance.schedulesIdDelete(
|
|
|
103
103
|
### HTTP request headers
|
|
104
104
|
|
|
105
105
|
- **Content-Type**: Not defined
|
|
106
|
-
- **Accept**:
|
|
106
|
+
- **Accept**: Not defined
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
### HTTP response details
|
|
110
110
|
| Status code | Description | Response headers |
|
|
111
111
|
|-------------|-------------|------------------|
|
|
112
|
-
|**
|
|
112
|
+
|**204** | Schedule deleted | - |
|
|
113
113
|
|**401** | Not Authorized | - |
|
|
114
114
|
|**403** | Not Allowed | - |
|
|
115
115
|
|
|
116
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
117
|
|
|
118
118
|
# **schedulesIdGet**
|
|
119
|
-
>
|
|
119
|
+
> ScheduleResponse schedulesIdGet()
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
### Example
|
|
@@ -146,7 +146,7 @@ const { status, data } = await apiInstance.schedulesIdGet(
|
|
|
146
146
|
|
|
147
147
|
### Return type
|
|
148
148
|
|
|
149
|
-
**
|
|
149
|
+
**ScheduleResponse**
|
|
150
150
|
|
|
151
151
|
### Authorization
|
|
152
152
|
|
|
@@ -161,12 +161,12 @@ No authorization required
|
|
|
161
161
|
### HTTP response details
|
|
162
162
|
| Status code | Description | Response headers |
|
|
163
163
|
|-------------|-------------|------------------|
|
|
164
|
-
|**200** |
|
|
164
|
+
|**200** | Schedule details | - |
|
|
165
165
|
|
|
166
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
167
|
|
|
168
168
|
# **schedulesIdPut**
|
|
169
|
-
>
|
|
169
|
+
> ScheduleResponse schedulesIdPut(scheduleUpdateRequest)
|
|
170
170
|
|
|
171
171
|
|
|
172
172
|
### Example
|
|
@@ -200,7 +200,7 @@ const { status, data } = await apiInstance.schedulesIdPut(
|
|
|
200
200
|
|
|
201
201
|
### Return type
|
|
202
202
|
|
|
203
|
-
**
|
|
203
|
+
**ScheduleResponse**
|
|
204
204
|
|
|
205
205
|
### Authorization
|
|
206
206
|
|
|
@@ -215,7 +215,7 @@ const { status, data } = await apiInstance.schedulesIdPut(
|
|
|
215
215
|
### HTTP response details
|
|
216
216
|
| Status code | Description | Response headers |
|
|
217
217
|
|-------------|-------------|------------------|
|
|
218
|
-
|**200** |
|
|
218
|
+
|**200** | Schedule updated | - |
|
|
219
219
|
|**401** | Not Authorized | - |
|
|
220
220
|
|**403** | Not Allowed | - |
|
|
221
221
|
|**400** | Bad Request | - |
|
|
@@ -223,7 +223,7 @@ const { status, data } = await apiInstance.schedulesIdPut(
|
|
|
223
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
224
|
|
|
225
225
|
# **schedulesPost**
|
|
226
|
-
>
|
|
226
|
+
> ScheduleResponse schedulesPost(scheduleCreateRequest)
|
|
227
227
|
|
|
228
228
|
|
|
229
229
|
### Example
|
|
@@ -254,7 +254,7 @@ const { status, data } = await apiInstance.schedulesPost(
|
|
|
254
254
|
|
|
255
255
|
### Return type
|
|
256
256
|
|
|
257
|
-
**
|
|
257
|
+
**ScheduleResponse**
|
|
258
258
|
|
|
259
259
|
### Authorization
|
|
260
260
|
|
|
@@ -269,7 +269,7 @@ const { status, data } = await apiInstance.schedulesPost(
|
|
|
269
269
|
### HTTP response details
|
|
270
270
|
| Status code | Description | Response headers |
|
|
271
271
|
|-------------|-------------|------------------|
|
|
272
|
-
|**
|
|
272
|
+
|**201** | Schedule created | - |
|
|
273
273
|
|**401** | Not Authorized | - |
|
|
274
274
|
|**403** | Not Allowed | - |
|
|
275
275
|
|**400** | Bad Request | - |
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# ScheduleResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**treatmentId** | **number** | | [optional] [default to undefined]
|
|
10
|
+
**clientId** | **number** | | [optional] [default to undefined]
|
|
11
|
+
**startDateTime** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**endDateTime** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**reason** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**status** | [**ScheduleStatus**](ScheduleStatus.md) | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { ScheduleResponse } from '@joao.sumi/qdule';
|
|
20
|
+
|
|
21
|
+
const instance: ScheduleResponse = {
|
|
22
|
+
id,
|
|
23
|
+
treatmentId,
|
|
24
|
+
clientId,
|
|
25
|
+
startDateTime,
|
|
26
|
+
endDateTime,
|
|
27
|
+
reason,
|
|
28
|
+
status,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
package/docs/Shift.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Shift
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**startTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**endTime** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**restTimeBetweenAppointments** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**breakStartTime** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**breakEndTime** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { Shift } from '@joao.sumi/qdule';
|
|
20
|
+
|
|
21
|
+
const instance: Shift = {
|
|
22
|
+
id,
|
|
23
|
+
name,
|
|
24
|
+
startTime,
|
|
25
|
+
endTime,
|
|
26
|
+
restTimeBetweenAppointments,
|
|
27
|
+
breakStartTime,
|
|
28
|
+
breakEndTime,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|