@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.
Files changed (47) hide show
  1. package/.openapi-generator/FILES +37 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +118 -0
  5. package/api.ts +3325 -0
  6. package/base.ts +62 -0
  7. package/common.ts +127 -0
  8. package/configuration.ts +121 -0
  9. package/dist/api.d.ts +1826 -0
  10. package/dist/api.js +3290 -0
  11. package/dist/base.d.ts +42 -0
  12. package/dist/base.js +67 -0
  13. package/dist/common.d.ts +34 -0
  14. package/dist/common.js +231 -0
  15. package/dist/configuration.d.ts +98 -0
  16. package/dist/configuration.js +57 -0
  17. package/dist/index.d.ts +13 -0
  18. package/dist/index.js +31 -0
  19. package/docs/AuthRequest.md +22 -0
  20. package/docs/AuthResourceApi.md +60 -0
  21. package/docs/ChangelogCreateRequest.md +24 -0
  22. package/docs/ChangelogResourceApi.md +272 -0
  23. package/docs/ChangelogUpdateRequest.md +24 -0
  24. package/docs/ClientCreateRequest.md +24 -0
  25. package/docs/ClientResourceApi.md +224 -0
  26. package/docs/ClientUpdateRequest.md +24 -0
  27. package/docs/DayOfWeek.md +20 -0
  28. package/docs/ScheduleCreateRequest.md +30 -0
  29. package/docs/ScheduleResourceApi.md +278 -0
  30. package/docs/ScheduleStatus.md +16 -0
  31. package/docs/ScheduleUpdateRequest.md +26 -0
  32. package/docs/ShiftCreateRequest.md +30 -0
  33. package/docs/ShiftResourceApi.md +280 -0
  34. package/docs/ShiftUpdateRequest.md +30 -0
  35. package/docs/TreatmentCreateRequest.md +30 -0
  36. package/docs/TreatmentResourceApi.md +278 -0
  37. package/docs/TreatmentStatus.md +10 -0
  38. package/docs/TreatmentUpdateRequest.md +30 -0
  39. package/docs/UserCreateRequest.md +24 -0
  40. package/docs/UserResourceApi.md +113 -0
  41. package/docs/WorkScheduleCreateRequest.md +22 -0
  42. package/docs/WorkScheduleResourceApi.md +278 -0
  43. package/docs/WorkScheduleUpdateRequest.md +22 -0
  44. package/git_push.sh +57 -0
  45. package/index.ts +18 -0
  46. package/package.json +27 -0
  47. package/tsconfig.json +21 -0
@@ -0,0 +1,278 @@
1
+ # TreatmentResourceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**treatmentsGet**](#treatmentsget) | **GET** /treatments | Get Treatments|
8
+ |[**treatmentsIdDelete**](#treatmentsiddelete) | **DELETE** /treatments/{id} | Delete Treatment By Id|
9
+ |[**treatmentsIdGet**](#treatmentsidget) | **GET** /treatments/{id} | Find Treatment By Id|
10
+ |[**treatmentsIdPut**](#treatmentsidput) | **PUT** /treatments/{id} | Update Treatment|
11
+ |[**treatmentsPost**](#treatmentspost) | **POST** /treatments | Create Treatment|
12
+
13
+ # **treatmentsGet**
14
+ > any treatmentsGet()
15
+
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ TreatmentResourceApi,
22
+ Configuration
23
+ } from '@joao.sumi/qdule';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new TreatmentResourceApi(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.treatmentsGet(
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
+ # **treatmentsIdDelete**
67
+ > any treatmentsIdDelete()
68
+
69
+
70
+ ### Example
71
+
72
+ ```typescript
73
+ import {
74
+ TreatmentResourceApi,
75
+ Configuration
76
+ } from '@joao.sumi/qdule';
77
+
78
+ const configuration = new Configuration();
79
+ const apiInstance = new TreatmentResourceApi(configuration);
80
+
81
+ let id: number; // (default to undefined)
82
+
83
+ const { status, data } = await apiInstance.treatmentsIdDelete(
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
+ # **treatmentsIdGet**
119
+ > any treatmentsIdGet()
120
+
121
+
122
+ ### Example
123
+
124
+ ```typescript
125
+ import {
126
+ TreatmentResourceApi,
127
+ Configuration
128
+ } from '@joao.sumi/qdule';
129
+
130
+ const configuration = new Configuration();
131
+ const apiInstance = new TreatmentResourceApi(configuration);
132
+
133
+ let id: number; // (default to undefined)
134
+
135
+ const { status, data } = await apiInstance.treatmentsIdGet(
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
+ # **treatmentsIdPut**
169
+ > any treatmentsIdPut(treatmentUpdateRequest)
170
+
171
+
172
+ ### Example
173
+
174
+ ```typescript
175
+ import {
176
+ TreatmentResourceApi,
177
+ Configuration,
178
+ TreatmentUpdateRequest
179
+ } from '@joao.sumi/qdule';
180
+
181
+ const configuration = new Configuration();
182
+ const apiInstance = new TreatmentResourceApi(configuration);
183
+
184
+ let id: number; // (default to undefined)
185
+ let treatmentUpdateRequest: TreatmentUpdateRequest; //
186
+
187
+ const { status, data } = await apiInstance.treatmentsIdPut(
188
+ id,
189
+ treatmentUpdateRequest
190
+ );
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+ |Name | Type | Description | Notes|
196
+ |------------- | ------------- | ------------- | -------------|
197
+ | **treatmentUpdateRequest** | **TreatmentUpdateRequest**| | |
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
+ # **treatmentsPost**
226
+ > any treatmentsPost(treatmentCreateRequest)
227
+
228
+
229
+ ### Example
230
+
231
+ ```typescript
232
+ import {
233
+ TreatmentResourceApi,
234
+ Configuration,
235
+ TreatmentCreateRequest
236
+ } from '@joao.sumi/qdule';
237
+
238
+ const configuration = new Configuration();
239
+ const apiInstance = new TreatmentResourceApi(configuration);
240
+
241
+ let treatmentCreateRequest: TreatmentCreateRequest; //
242
+
243
+ const { status, data } = await apiInstance.treatmentsPost(
244
+ treatmentCreateRequest
245
+ );
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ |Name | Type | Description | Notes|
251
+ |------------- | ------------- | ------------- | -------------|
252
+ | **treatmentCreateRequest** | **TreatmentCreateRequest**| | |
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,10 @@
1
+ # TreatmentStatus
2
+
3
+
4
+ ## Enum
5
+
6
+ * `Active` (value: `'ACTIVE'`)
7
+
8
+ * `Inactive` (value: `'INACTIVE'`)
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)
@@ -0,0 +1,30 @@
1
+ # TreatmentUpdateRequest
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 { TreatmentUpdateRequest } from '@joao.sumi/qdule';
19
+
20
+ const instance: TreatmentUpdateRequest = {
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)
@@ -0,0 +1,24 @@
1
+ # UserCreateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **name** | **string** | | [optional] [default to undefined]
9
+ **password** | **string** | | [optional] [default to undefined]
10
+ **email** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { UserCreateRequest } from '@joao.sumi/qdule';
16
+
17
+ const instance: UserCreateRequest = {
18
+ name,
19
+ password,
20
+ email,
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)
@@ -0,0 +1,113 @@
1
+ # UserResourceApi
2
+
3
+ All URIs are relative to *http://localhost*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**usersIdGet**](#usersidget) | **GET** /users/{id} | Find User By Id|
8
+ |[**usersPost**](#userspost) | **POST** /users | Create User|
9
+
10
+ # **usersIdGet**
11
+ > any usersIdGet()
12
+
13
+
14
+ ### Example
15
+
16
+ ```typescript
17
+ import {
18
+ UserResourceApi,
19
+ Configuration
20
+ } from '@joao.sumi/qdule';
21
+
22
+ const configuration = new Configuration();
23
+ const apiInstance = new UserResourceApi(configuration);
24
+
25
+ let id: number; // (default to undefined)
26
+
27
+ const { status, data } = await apiInstance.usersIdGet(
28
+ id
29
+ );
30
+ ```
31
+
32
+ ### Parameters
33
+
34
+ |Name | Type | Description | Notes|
35
+ |------------- | ------------- | ------------- | -------------|
36
+ | **id** | [**number**] | | defaults to undefined|
37
+
38
+
39
+ ### Return type
40
+
41
+ **any**
42
+
43
+ ### Authorization
44
+
45
+ [SecurityScheme](../README.md#SecurityScheme)
46
+
47
+ ### HTTP request headers
48
+
49
+ - **Content-Type**: Not defined
50
+ - **Accept**: application/json
51
+
52
+
53
+ ### HTTP response details
54
+ | Status code | Description | Response headers |
55
+ |-------------|-------------|------------------|
56
+ |**200** | OK | - |
57
+ |**401** | Not Authorized | - |
58
+ |**403** | Not Allowed | - |
59
+
60
+ [[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)
61
+
62
+ # **usersPost**
63
+ > any usersPost(userCreateRequest)
64
+
65
+
66
+ ### Example
67
+
68
+ ```typescript
69
+ import {
70
+ UserResourceApi,
71
+ Configuration,
72
+ UserCreateRequest
73
+ } from '@joao.sumi/qdule';
74
+
75
+ const configuration = new Configuration();
76
+ const apiInstance = new UserResourceApi(configuration);
77
+
78
+ let userCreateRequest: UserCreateRequest; //
79
+
80
+ const { status, data } = await apiInstance.usersPost(
81
+ userCreateRequest
82
+ );
83
+ ```
84
+
85
+ ### Parameters
86
+
87
+ |Name | Type | Description | Notes|
88
+ |------------- | ------------- | ------------- | -------------|
89
+ | **userCreateRequest** | **UserCreateRequest**| | |
90
+
91
+
92
+ ### Return type
93
+
94
+ **any**
95
+
96
+ ### Authorization
97
+
98
+ No authorization required
99
+
100
+ ### HTTP request headers
101
+
102
+ - **Content-Type**: application/json
103
+ - **Accept**: application/json
104
+
105
+
106
+ ### HTTP response details
107
+ | Status code | Description | Response headers |
108
+ |-------------|-------------|------------------|
109
+ |**200** | OK | - |
110
+ |**400** | Bad Request | - |
111
+
112
+ [[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)
113
+
@@ -0,0 +1,22 @@
1
+ # WorkScheduleCreateRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **shiftId** | **number** | | [optional] [default to undefined]
9
+ **dayOfWeek** | [**DayOfWeek**](DayOfWeek.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { WorkScheduleCreateRequest } from '@joao.sumi/qdule';
15
+
16
+ const instance: WorkScheduleCreateRequest = {
17
+ shiftId,
18
+ dayOfWeek,
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)