@joao.sumi/qdule 0.0.2 → 0.0.4

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/dist/api.js CHANGED
@@ -84,7 +84,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
84
84
  return to.concat(ar || Array.prototype.slice.call(from));
85
85
  };
86
86
  Object.defineProperty(exports, "__esModule", { value: true });
87
- exports.WorkScheduleResourceApi = exports.WorkScheduleResourceApiFactory = exports.WorkScheduleResourceApiFp = exports.WorkScheduleResourceApiAxiosParamCreator = exports.UserResourceApi = exports.UserResourceApiFactory = exports.UserResourceApiFp = exports.UserResourceApiAxiosParamCreator = exports.TreatmentResourceApi = exports.TreatmentResourceApiFactory = exports.TreatmentResourceApiFp = exports.TreatmentResourceApiAxiosParamCreator = exports.ShiftResourceApi = exports.ShiftResourceApiFactory = exports.ShiftResourceApiFp = exports.ShiftResourceApiAxiosParamCreator = exports.ScheduleResourceApi = exports.ScheduleResourceApiFactory = exports.ScheduleResourceApiFp = exports.ScheduleResourceApiAxiosParamCreator = exports.ClientResourceApi = exports.ClientResourceApiFactory = exports.ClientResourceApiFp = exports.ClientResourceApiAxiosParamCreator = exports.ChangelogResourceApi = exports.ChangelogResourceApiFactory = exports.ChangelogResourceApiFp = exports.ChangelogResourceApiAxiosParamCreator = exports.AuthResourceApi = exports.AuthResourceApiFactory = exports.AuthResourceApiFp = exports.AuthResourceApiAxiosParamCreator = exports.TreatmentStatus = exports.ScheduleStatus = exports.DayOfWeek = void 0;
87
+ exports.WorkScheduleResourceApi = exports.WorkScheduleResourceApiFactory = exports.WorkScheduleResourceApiFp = exports.WorkScheduleResourceApiAxiosParamCreator = exports.UserResourceApi = exports.UserResourceApiFactory = exports.UserResourceApiFp = exports.UserResourceApiAxiosParamCreator = exports.TreatmentResourceApi = exports.TreatmentResourceApiFactory = exports.TreatmentResourceApiFp = exports.TreatmentResourceApiAxiosParamCreator = exports.ShiftResourceApi = exports.ShiftResourceApiFactory = exports.ShiftResourceApiFp = exports.ShiftResourceApiAxiosParamCreator = exports.ScheduleResourceApi = exports.ScheduleResourceApiFactory = exports.ScheduleResourceApiFp = exports.ScheduleResourceApiAxiosParamCreator = exports.ClientResourceApi = exports.ClientResourceApiFactory = exports.ClientResourceApiFp = exports.ClientResourceApiAxiosParamCreator = exports.ChangelogResourceApi = exports.ChangelogResourceApiFactory = exports.ChangelogResourceApiFp = exports.ChangelogResourceApiAxiosParamCreator = exports.AuthResourceApi = exports.AuthResourceApiFactory = exports.AuthResourceApiFp = exports.AuthResourceApiAxiosParamCreator = exports.TreatmentType = exports.TreatmentStatus = exports.ScheduleStatus = exports.DayOfWeek = void 0;
88
88
  var axios_1 = require("axios");
89
89
  // Some imports not used depending on template conditions
90
90
  // @ts-ignore
@@ -111,6 +111,11 @@ exports.TreatmentStatus = {
111
111
  Active: 'ACTIVE',
112
112
  Inactive: 'INACTIVE',
113
113
  };
114
+ exports.TreatmentType = {
115
+ Facial: 'FACIAL',
116
+ Body: 'BODY',
117
+ MassageTherapy: 'MASSAGE_THERAPY',
118
+ };
114
119
  /**
115
120
  * AuthResourceApi - axios parameter creator
116
121
  */
@@ -307,7 +312,6 @@ var ChangelogResourceApiAxiosParamCreator = function (configuration) {
307
312
  localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
308
313
  localVarHeaderParameter = {};
309
314
  localVarQueryParameter = {};
310
- localVarHeaderParameter['Accept'] = 'application/json';
311
315
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
316
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
317
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -736,7 +740,6 @@ var ClientResourceApiAxiosParamCreator = function (configuration) {
736
740
  // authentication SecurityScheme required
737
741
  // http bearer authentication required
738
742
  _a.sent();
739
- localVarHeaderParameter['Accept'] = 'application/json';
740
743
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
741
744
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
742
745
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1181,7 +1184,6 @@ var ScheduleResourceApiAxiosParamCreator = function (configuration) {
1181
1184
  // authentication SecurityScheme required
1182
1185
  // http bearer authentication required
1183
1186
  _a.sent();
1184
- localVarHeaderParameter['Accept'] = 'application/json';
1185
1187
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1186
1188
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1187
1189
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -1673,7 +1675,6 @@ var ShiftResourceApiAxiosParamCreator = function (configuration) {
1673
1675
  // authentication SecurityScheme required
1674
1676
  // http bearer authentication required
1675
1677
  _a.sent();
1676
- localVarHeaderParameter['Accept'] = 'application/json';
1677
1678
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1678
1679
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1679
1680
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2102,15 +2103,16 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
2102
2103
  * @summary Get Treatments
2103
2104
  * @param {number} [page]
2104
2105
  * @param {number} [size]
2106
+ * @param {TreatmentType} [type]
2105
2107
  * @param {*} [options] Override http request option.
2106
2108
  * @throws {RequiredError}
2107
2109
  */
2108
- treatmentsGet: function (page_1, size_1) {
2110
+ treatmentsGet: function (page_1, size_1, type_1) {
2109
2111
  var args_1 = [];
2110
- for (var _i = 2; _i < arguments.length; _i++) {
2111
- args_1[_i - 2] = arguments[_i];
2112
+ for (var _i = 3; _i < arguments.length; _i++) {
2113
+ args_1[_i - 3] = arguments[_i];
2112
2114
  }
2113
- return __awaiter(_this, __spreadArray([page_1, size_1], args_1, true), void 0, function (page, size, options) {
2115
+ return __awaiter(_this, __spreadArray([page_1, size_1, type_1], args_1, true), void 0, function (page, size, type, options) {
2114
2116
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
2115
2117
  if (options === void 0) { options = {}; }
2116
2118
  return __generator(this, function (_a) {
@@ -2128,6 +2130,9 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
2128
2130
  if (size !== undefined) {
2129
2131
  localVarQueryParameter['size'] = size;
2130
2132
  }
2133
+ if (type !== undefined) {
2134
+ localVarQueryParameter['type'] = type;
2135
+ }
2131
2136
  localVarHeaderParameter['Accept'] = 'application/json';
2132
2137
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2133
2138
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -2175,7 +2180,6 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
2175
2180
  // authentication SecurityScheme required
2176
2181
  // http bearer authentication required
2177
2182
  _a.sent();
2178
- localVarHeaderParameter['Accept'] = 'application/json';
2179
2183
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2180
2184
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2181
2185
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2341,16 +2345,17 @@ var TreatmentResourceApiFp = function (configuration) {
2341
2345
  * @summary Get Treatments
2342
2346
  * @param {number} [page]
2343
2347
  * @param {number} [size]
2348
+ * @param {TreatmentType} [type]
2344
2349
  * @param {*} [options] Override http request option.
2345
2350
  * @throws {RequiredError}
2346
2351
  */
2347
- treatmentsGet: function (page, size, options) {
2352
+ treatmentsGet: function (page, size, type, options) {
2348
2353
  return __awaiter(this, void 0, void 0, function () {
2349
2354
  var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2350
2355
  var _a, _b, _c;
2351
2356
  return __generator(this, function (_d) {
2352
2357
  switch (_d.label) {
2353
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, options)];
2358
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, type, options)];
2354
2359
  case 1:
2355
2360
  localVarAxiosArgs = _d.sent();
2356
2361
  localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
@@ -2471,7 +2476,7 @@ var TreatmentResourceApiFactory = function (configuration, basePath, axios) {
2471
2476
  */
2472
2477
  treatmentsGet: function (requestParameters, options) {
2473
2478
  if (requestParameters === void 0) { requestParameters = {}; }
2474
- return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(axios, basePath); });
2479
+ return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
2475
2480
  },
2476
2481
  /**
2477
2482
  *
@@ -2534,7 +2539,7 @@ var TreatmentResourceApi = /** @class */ (function (_super) {
2534
2539
  TreatmentResourceApi.prototype.treatmentsGet = function (requestParameters, options) {
2535
2540
  var _this = this;
2536
2541
  if (requestParameters === void 0) { requestParameters = {}; }
2537
- return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, options).then(function (request) { return request(_this.axios, _this.basePath); });
2542
+ return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
2538
2543
  };
2539
2544
  /**
2540
2545
  *
@@ -2880,7 +2885,6 @@ var WorkScheduleResourceApiAxiosParamCreator = function (configuration) {
2880
2885
  // authentication SecurityScheme required
2881
2886
  // http bearer authentication required
2882
2887
  _a.sent();
2883
- localVarHeaderParameter['Accept'] = 'application/json';
2884
2888
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2885
2889
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2886
2890
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -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
- > any authPost(authRequest)
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
- **any**
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** | OK | - |
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
- > any changelogsGet()
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
- **any**
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** | OK | - |
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
- > any changelogsIdDelete()
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
- **any**
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**: application/json
106
+ - **Accept**: Not defined
107
107
 
108
108
 
109
109
  ### HTTP response details
110
110
  | Status code | Description | Response headers |
111
111
  |-------------|-------------|------------------|
112
- |**200** | OK | - |
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
- > any changelogsIdGet()
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
- **any**
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** | OK | - |
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
- > any changelogsIdPut(changelogUpdateRequest)
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
- **any**
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** | OK | - |
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
- > any changelogsPost(changelogCreateRequest)
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
- **any**
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
- |**200** | OK | - |
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
- > any clientsIdDelete()
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
- **any**
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**: application/json
52
+ - **Accept**: Not defined
53
53
 
54
54
 
55
55
  ### HTTP response details
56
56
  | Status code | Description | Response headers |
57
57
  |-------------|-------------|------------------|
58
- |**200** | OK | - |
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
- > any clientsIdGet()
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
- **any**
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** | OK | - |
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
- > any clientsIdPut(clientUpdateRequest)
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
- **any**
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** | OK | - |
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
- > any clientsPost(clientCreateRequest)
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
- **any**
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
- |**200** | OK | - |
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&lt;any&gt;** | | [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
- > any schedulesGet()
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
- **any**
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** | OK | - |
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
- > any schedulesIdDelete()
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
- **any**
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**: application/json
106
+ - **Accept**: Not defined
107
107
 
108
108
 
109
109
  ### HTTP response details
110
110
  | Status code | Description | Response headers |
111
111
  |-------------|-------------|------------------|
112
- |**200** | OK | - |
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
- > any schedulesIdGet()
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
- **any**
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** | OK | - |
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
- > any schedulesIdPut(scheduleUpdateRequest)
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
- **any**
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** | OK | - |
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
- > any schedulesPost(scheduleCreateRequest)
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
- **any**
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
- |**200** | OK | - |
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)