@joao.sumi/qdule 0.0.3 → 0.0.5
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 +4 -5
- package/README.md +4 -9
- package/api.ts +101 -541
- package/dist/api.d.ts +53 -298
- package/dist/api.js +77 -543
- package/docs/ScheduleResourceApi.md +15 -8
- package/docs/ShiftBreakRequest.md +22 -0
- package/docs/ShiftBreakResponse.md +24 -0
- package/docs/ShiftCreateRequest.md +6 -4
- package/docs/ShiftResponse.md +6 -4
- package/docs/ShiftStatus.md +10 -0
- package/docs/ShiftUpdateRequest.md +6 -4
- package/docs/TreatmentCreateRequest.md +2 -0
- package/docs/TreatmentResourceApi.md +4 -1
- package/docs/TreatmentResponse.md +2 -0
- package/docs/TreatmentType.md +12 -0
- package/docs/TreatmentUpdateRequest.md +2 -0
- package/package.json +1 -1
|
@@ -25,12 +25,18 @@ import {
|
|
|
25
25
|
const configuration = new Configuration();
|
|
26
26
|
const apiInstance = new ScheduleResourceApi(configuration);
|
|
27
27
|
|
|
28
|
-
let page: number; // (
|
|
29
|
-
let size: number; // (
|
|
28
|
+
let page: number; // (default to undefined)
|
|
29
|
+
let size: number; // (default to undefined)
|
|
30
|
+
let start: string; // (optional) (default to undefined)
|
|
31
|
+
let end: string; // (optional) (default to undefined)
|
|
32
|
+
let status: ScheduleStatus; // (optional) (default to undefined)
|
|
30
33
|
|
|
31
34
|
const { status, data } = await apiInstance.schedulesGet(
|
|
32
35
|
page,
|
|
33
|
-
size
|
|
36
|
+
size,
|
|
37
|
+
start,
|
|
38
|
+
end,
|
|
39
|
+
status
|
|
34
40
|
);
|
|
35
41
|
```
|
|
36
42
|
|
|
@@ -38,8 +44,11 @@ const { status, data } = await apiInstance.schedulesGet(
|
|
|
38
44
|
|
|
39
45
|
|Name | Type | Description | Notes|
|
|
40
46
|
|------------- | ------------- | ------------- | -------------|
|
|
41
|
-
| **page** | [**number**] | |
|
|
42
|
-
| **size** | [**number**] | |
|
|
47
|
+
| **page** | [**number**] | | defaults to undefined|
|
|
48
|
+
| **size** | [**number**] | | defaults to undefined|
|
|
49
|
+
| **start** | [**string**] | | (optional) defaults to undefined|
|
|
50
|
+
| **end** | [**string**] | | (optional) defaults to undefined|
|
|
51
|
+
| **status** | **ScheduleStatus** | | (optional) defaults to undefined|
|
|
43
52
|
|
|
44
53
|
|
|
45
54
|
### Return type
|
|
@@ -258,7 +267,7 @@ const { status, data } = await apiInstance.schedulesPost(
|
|
|
258
267
|
|
|
259
268
|
### Authorization
|
|
260
269
|
|
|
261
|
-
|
|
270
|
+
No authorization required
|
|
262
271
|
|
|
263
272
|
### HTTP request headers
|
|
264
273
|
|
|
@@ -270,8 +279,6 @@ const { status, data } = await apiInstance.schedulesPost(
|
|
|
270
279
|
| Status code | Description | Response headers |
|
|
271
280
|
|-------------|-------------|------------------|
|
|
272
281
|
|**201** | Schedule created | - |
|
|
273
|
-
|**401** | Not Authorized | - |
|
|
274
|
-
|**403** | Not Allowed | - |
|
|
275
282
|
|**400** | Bad Request | - |
|
|
276
283
|
|
|
277
284
|
[[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,22 @@
|
|
|
1
|
+
# ShiftBreakRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**startTime** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**endTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { ShiftBreakRequest } from '@joao.sumi/qdule';
|
|
15
|
+
|
|
16
|
+
const instance: ShiftBreakRequest = {
|
|
17
|
+
startTime,
|
|
18
|
+
endTime,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[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,24 @@
|
|
|
1
|
+
# ShiftBreakResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **number** | | [optional] [default to undefined]
|
|
9
|
+
**startTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**endTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ShiftBreakResponse } from '@joao.sumi/qdule';
|
|
16
|
+
|
|
17
|
+
const instance: ShiftBreakResponse = {
|
|
18
|
+
id,
|
|
19
|
+
startTime,
|
|
20
|
+
endTime,
|
|
21
|
+
};
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -9,8 +9,9 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**startTime** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**endTime** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**restTimeBetweenAppointments** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
12
|
+
**breaks** | [**Array<ShiftBreakRequest>**](ShiftBreakRequest.md) | | [optional] [default to undefined]
|
|
13
|
+
**dayOfWeek** | [**DayOfWeek**](DayOfWeek.md) | | [optional] [default to undefined]
|
|
14
|
+
**status** | [**ShiftStatus**](ShiftStatus.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -22,8 +23,9 @@ const instance: ShiftCreateRequest = {
|
|
|
22
23
|
startTime,
|
|
23
24
|
endTime,
|
|
24
25
|
restTimeBetweenAppointments,
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
breaks,
|
|
27
|
+
dayOfWeek,
|
|
28
|
+
status,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
package/docs/ShiftResponse.md
CHANGED
|
@@ -10,8 +10,9 @@ Name | Type | Description | Notes
|
|
|
10
10
|
**startTime** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**endTime** | **string** | | [optional] [default to undefined]
|
|
12
12
|
**restTimeBetweenAppointments** | **string** | | [optional] [default to undefined]
|
|
13
|
-
**
|
|
14
|
-
**
|
|
13
|
+
**breaks** | [**Array<ShiftBreakResponse>**](ShiftBreakResponse.md) | | [optional] [default to undefined]
|
|
14
|
+
**dayOfWeek** | [**DayOfWeek**](DayOfWeek.md) | | [optional] [default to undefined]
|
|
15
|
+
**status** | [**ShiftStatus**](ShiftStatus.md) | | [optional] [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -24,8 +25,9 @@ const instance: ShiftResponse = {
|
|
|
24
25
|
startTime,
|
|
25
26
|
endTime,
|
|
26
27
|
restTimeBetweenAppointments,
|
|
27
|
-
|
|
28
|
-
|
|
28
|
+
breaks,
|
|
29
|
+
dayOfWeek,
|
|
30
|
+
status,
|
|
29
31
|
};
|
|
30
32
|
```
|
|
31
33
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# ShiftStatus
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Enabled` (value: `'ENABLED'`)
|
|
7
|
+
|
|
8
|
+
* `Disabled` (value: `'DISABLED'`)
|
|
9
|
+
|
|
10
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -9,8 +9,9 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**startTime** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**endTime** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**restTimeBetweenAppointments** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
12
|
+
**breaks** | [**Array<ShiftBreakRequest>**](ShiftBreakRequest.md) | | [optional] [default to undefined]
|
|
13
|
+
**dayOfWeek** | [**DayOfWeek**](DayOfWeek.md) | | [optional] [default to undefined]
|
|
14
|
+
**status** | [**ShiftStatus**](ShiftStatus.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -22,8 +23,9 @@ const instance: ShiftUpdateRequest = {
|
|
|
22
23
|
startTime,
|
|
23
24
|
endTime,
|
|
24
25
|
restTimeBetweenAppointments,
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
breaks,
|
|
27
|
+
dayOfWeek,
|
|
28
|
+
status,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**price** | **number** | | [optional] [default to undefined]
|
|
12
12
|
**imagePath** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**status** | [**TreatmentStatus**](TreatmentStatus.md) | | [optional] [default to undefined]
|
|
14
|
+
**type** | [**TreatmentType**](TreatmentType.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: TreatmentCreateRequest = {
|
|
|
24
25
|
price,
|
|
25
26
|
imagePath,
|
|
26
27
|
status,
|
|
28
|
+
type,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -27,10 +27,12 @@ const apiInstance = new TreatmentResourceApi(configuration);
|
|
|
27
27
|
|
|
28
28
|
let page: number; // (optional) (default to undefined)
|
|
29
29
|
let size: number; // (optional) (default to undefined)
|
|
30
|
+
let type: TreatmentType; // (optional) (default to undefined)
|
|
30
31
|
|
|
31
32
|
const { status, data } = await apiInstance.treatmentsGet(
|
|
32
33
|
page,
|
|
33
|
-
size
|
|
34
|
+
size,
|
|
35
|
+
type
|
|
34
36
|
);
|
|
35
37
|
```
|
|
36
38
|
|
|
@@ -40,6 +42,7 @@ const { status, data } = await apiInstance.treatmentsGet(
|
|
|
40
42
|
|------------- | ------------- | ------------- | -------------|
|
|
41
43
|
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
42
44
|
| **size** | [**number**] | | (optional) defaults to undefined|
|
|
45
|
+
| **type** | **TreatmentType** | | (optional) defaults to undefined|
|
|
43
46
|
|
|
44
47
|
|
|
45
48
|
### Return type
|
|
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**price** | **number** | | [optional] [default to undefined]
|
|
13
13
|
**imagePath** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**status** | [**TreatmentStatus**](TreatmentStatus.md) | | [optional] [default to undefined]
|
|
15
|
+
**type** | [**TreatmentType**](TreatmentType.md) | | [optional] [default to undefined]
|
|
15
16
|
|
|
16
17
|
## Example
|
|
17
18
|
|
|
@@ -26,6 +27,7 @@ const instance: TreatmentResponse = {
|
|
|
26
27
|
price,
|
|
27
28
|
imagePath,
|
|
28
29
|
status,
|
|
30
|
+
type,
|
|
29
31
|
};
|
|
30
32
|
```
|
|
31
33
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# TreatmentType
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Enum
|
|
5
|
+
|
|
6
|
+
* `Facial` (value: `'FACIAL'`)
|
|
7
|
+
|
|
8
|
+
* `Body` (value: `'BODY'`)
|
|
9
|
+
|
|
10
|
+
* `MassageTherapy` (value: `'MASSAGE_THERAPY'`)
|
|
11
|
+
|
|
12
|
+
[[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,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**price** | **number** | | [optional] [default to undefined]
|
|
12
12
|
**imagePath** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**status** | [**TreatmentStatus**](TreatmentStatus.md) | | [optional] [default to undefined]
|
|
14
|
+
**type** | [**TreatmentType**](TreatmentType.md) | | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: TreatmentUpdateRequest = {
|
|
|
24
25
|
price,
|
|
25
26
|
imagePath,
|
|
26
27
|
status,
|
|
28
|
+
type,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|