@joao.sumi/qdule 0.0.3 → 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/.openapi-generator/FILES +1 -0
- package/README.md +1 -0
- package/api.ts +26 -5
- package/dist/api.d.ts +14 -2
- package/dist/api.js +19 -9
- 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
package/.openapi-generator/FILES
CHANGED
package/README.md
CHANGED
|
@@ -108,6 +108,7 @@ Class | Method | HTTP request | Description
|
|
|
108
108
|
- [TreatmentCreateRequest](docs/TreatmentCreateRequest.md)
|
|
109
109
|
- [TreatmentResponse](docs/TreatmentResponse.md)
|
|
110
110
|
- [TreatmentStatus](docs/TreatmentStatus.md)
|
|
111
|
+
- [TreatmentType](docs/TreatmentType.md)
|
|
111
112
|
- [TreatmentUpdateRequest](docs/TreatmentUpdateRequest.md)
|
|
112
113
|
- [UserCreateRequest](docs/UserCreateRequest.md)
|
|
113
114
|
- [UserResponse](docs/UserResponse.md)
|
package/api.ts
CHANGED
|
@@ -165,6 +165,7 @@ export interface TreatmentCreateRequest {
|
|
|
165
165
|
'price'?: number;
|
|
166
166
|
'imagePath'?: string;
|
|
167
167
|
'status'?: TreatmentStatus;
|
|
168
|
+
'type'?: TreatmentType;
|
|
168
169
|
}
|
|
169
170
|
|
|
170
171
|
|
|
@@ -176,6 +177,7 @@ export interface TreatmentResponse {
|
|
|
176
177
|
'price'?: number;
|
|
177
178
|
'imagePath'?: string;
|
|
178
179
|
'status'?: TreatmentStatus;
|
|
180
|
+
'type'?: TreatmentType;
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
|
|
@@ -188,6 +190,16 @@ export const TreatmentStatus = {
|
|
|
188
190
|
export type TreatmentStatus = typeof TreatmentStatus[keyof typeof TreatmentStatus];
|
|
189
191
|
|
|
190
192
|
|
|
193
|
+
|
|
194
|
+
export const TreatmentType = {
|
|
195
|
+
Facial: 'FACIAL',
|
|
196
|
+
Body: 'BODY',
|
|
197
|
+
MassageTherapy: 'MASSAGE_THERAPY',
|
|
198
|
+
} as const;
|
|
199
|
+
|
|
200
|
+
export type TreatmentType = typeof TreatmentType[keyof typeof TreatmentType];
|
|
201
|
+
|
|
202
|
+
|
|
191
203
|
export interface TreatmentUpdateRequest {
|
|
192
204
|
'name'?: string;
|
|
193
205
|
'description'?: string;
|
|
@@ -195,6 +207,7 @@ export interface TreatmentUpdateRequest {
|
|
|
195
207
|
'price'?: number;
|
|
196
208
|
'imagePath'?: string;
|
|
197
209
|
'status'?: TreatmentStatus;
|
|
210
|
+
'type'?: TreatmentType;
|
|
198
211
|
}
|
|
199
212
|
|
|
200
213
|
|
|
@@ -2213,10 +2226,11 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2213
2226
|
* @summary Get Treatments
|
|
2214
2227
|
* @param {number} [page]
|
|
2215
2228
|
* @param {number} [size]
|
|
2229
|
+
* @param {TreatmentType} [type]
|
|
2216
2230
|
* @param {*} [options] Override http request option.
|
|
2217
2231
|
* @throws {RequiredError}
|
|
2218
2232
|
*/
|
|
2219
|
-
treatmentsGet: async (page?: number, size?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2233
|
+
treatmentsGet: async (page?: number, size?: number, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2220
2234
|
const localVarPath = `/treatments`;
|
|
2221
2235
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2222
2236
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2237,6 +2251,10 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2237
2251
|
localVarQueryParameter['size'] = size;
|
|
2238
2252
|
}
|
|
2239
2253
|
|
|
2254
|
+
if (type !== undefined) {
|
|
2255
|
+
localVarQueryParameter['type'] = type;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2240
2258
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2241
2259
|
|
|
2242
2260
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -2415,11 +2433,12 @@ export const TreatmentResourceApiFp = function(configuration?: Configuration) {
|
|
|
2415
2433
|
* @summary Get Treatments
|
|
2416
2434
|
* @param {number} [page]
|
|
2417
2435
|
* @param {number} [size]
|
|
2436
|
+
* @param {TreatmentType} [type]
|
|
2418
2437
|
* @param {*} [options] Override http request option.
|
|
2419
2438
|
* @throws {RequiredError}
|
|
2420
2439
|
*/
|
|
2421
|
-
async treatmentsGet(page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2422
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, options);
|
|
2440
|
+
async treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, type, options);
|
|
2423
2442
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2424
2443
|
const localVarOperationServerBasePath = operationServerMap['TreatmentResourceApi.treatmentsGet']?.[localVarOperationServerIndex]?.url;
|
|
2425
2444
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2494,7 +2513,7 @@ export const TreatmentResourceApiFactory = function (configuration?: Configurati
|
|
|
2494
2513
|
* @throws {RequiredError}
|
|
2495
2514
|
*/
|
|
2496
2515
|
treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
2497
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, options).then((request) => request(axios, basePath));
|
|
2516
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2498
2517
|
},
|
|
2499
2518
|
/**
|
|
2500
2519
|
*
|
|
@@ -2597,6 +2616,8 @@ export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
|
2597
2616
|
readonly page?: number
|
|
2598
2617
|
|
|
2599
2618
|
readonly size?: number
|
|
2619
|
+
|
|
2620
|
+
readonly type?: TreatmentType
|
|
2600
2621
|
}
|
|
2601
2622
|
|
|
2602
2623
|
/**
|
|
@@ -2641,7 +2662,7 @@ export class TreatmentResourceApi extends BaseAPI implements TreatmentResourceAp
|
|
|
2641
2662
|
* @throws {RequiredError}
|
|
2642
2663
|
*/
|
|
2643
2664
|
public treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
2644
|
-
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, options).then((request) => request(this.axios, this.basePath));
|
|
2665
|
+
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2645
2666
|
}
|
|
2646
2667
|
|
|
2647
2668
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ export interface TreatmentCreateRequest {
|
|
|
141
141
|
'price'?: number;
|
|
142
142
|
'imagePath'?: string;
|
|
143
143
|
'status'?: TreatmentStatus;
|
|
144
|
+
'type'?: TreatmentType;
|
|
144
145
|
}
|
|
145
146
|
export interface TreatmentResponse {
|
|
146
147
|
'id'?: number;
|
|
@@ -150,12 +151,19 @@ export interface TreatmentResponse {
|
|
|
150
151
|
'price'?: number;
|
|
151
152
|
'imagePath'?: string;
|
|
152
153
|
'status'?: TreatmentStatus;
|
|
154
|
+
'type'?: TreatmentType;
|
|
153
155
|
}
|
|
154
156
|
export declare const TreatmentStatus: {
|
|
155
157
|
readonly Active: "ACTIVE";
|
|
156
158
|
readonly Inactive: "INACTIVE";
|
|
157
159
|
};
|
|
158
160
|
export type TreatmentStatus = typeof TreatmentStatus[keyof typeof TreatmentStatus];
|
|
161
|
+
export declare const TreatmentType: {
|
|
162
|
+
readonly Facial: "FACIAL";
|
|
163
|
+
readonly Body: "BODY";
|
|
164
|
+
readonly MassageTherapy: "MASSAGE_THERAPY";
|
|
165
|
+
};
|
|
166
|
+
export type TreatmentType = typeof TreatmentType[keyof typeof TreatmentType];
|
|
159
167
|
export interface TreatmentUpdateRequest {
|
|
160
168
|
'name'?: string;
|
|
161
169
|
'description'?: string;
|
|
@@ -163,6 +171,7 @@ export interface TreatmentUpdateRequest {
|
|
|
163
171
|
'price'?: number;
|
|
164
172
|
'imagePath'?: string;
|
|
165
173
|
'status'?: TreatmentStatus;
|
|
174
|
+
'type'?: TreatmentType;
|
|
166
175
|
}
|
|
167
176
|
export interface UserCreateRequest {
|
|
168
177
|
'name'?: string;
|
|
@@ -1262,10 +1271,11 @@ export declare const TreatmentResourceApiAxiosParamCreator: (configuration?: Con
|
|
|
1262
1271
|
* @summary Get Treatments
|
|
1263
1272
|
* @param {number} [page]
|
|
1264
1273
|
* @param {number} [size]
|
|
1274
|
+
* @param {TreatmentType} [type]
|
|
1265
1275
|
* @param {*} [options] Override http request option.
|
|
1266
1276
|
* @throws {RequiredError}
|
|
1267
1277
|
*/
|
|
1268
|
-
treatmentsGet: (page?: number, size?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1278
|
+
treatmentsGet: (page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1269
1279
|
/**
|
|
1270
1280
|
*
|
|
1271
1281
|
* @summary Delete Treatment By Id
|
|
@@ -1309,10 +1319,11 @@ export declare const TreatmentResourceApiFp: (configuration?: Configuration) =>
|
|
|
1309
1319
|
* @summary Get Treatments
|
|
1310
1320
|
* @param {number} [page]
|
|
1311
1321
|
* @param {number} [size]
|
|
1322
|
+
* @param {TreatmentType} [type]
|
|
1312
1323
|
* @param {*} [options] Override http request option.
|
|
1313
1324
|
* @throws {RequiredError}
|
|
1314
1325
|
*/
|
|
1315
|
-
treatmentsGet(page?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
1326
|
+
treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
1316
1327
|
/**
|
|
1317
1328
|
*
|
|
1318
1329
|
* @summary Delete Treatment By Id
|
|
@@ -1443,6 +1454,7 @@ export interface TreatmentResourceApiInterface {
|
|
|
1443
1454
|
export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
1444
1455
|
readonly page?: number;
|
|
1445
1456
|
readonly size?: number;
|
|
1457
|
+
readonly type?: TreatmentType;
|
|
1446
1458
|
}
|
|
1447
1459
|
/**
|
|
1448
1460
|
* Request parameters for treatmentsIdDelete operation in TreatmentResourceApi.
|
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
|
*/
|
|
@@ -2098,15 +2103,16 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2098
2103
|
* @summary Get Treatments
|
|
2099
2104
|
* @param {number} [page]
|
|
2100
2105
|
* @param {number} [size]
|
|
2106
|
+
* @param {TreatmentType} [type]
|
|
2101
2107
|
* @param {*} [options] Override http request option.
|
|
2102
2108
|
* @throws {RequiredError}
|
|
2103
2109
|
*/
|
|
2104
|
-
treatmentsGet: function (page_1, size_1) {
|
|
2110
|
+
treatmentsGet: function (page_1, size_1, type_1) {
|
|
2105
2111
|
var args_1 = [];
|
|
2106
|
-
for (var _i =
|
|
2107
|
-
args_1[_i -
|
|
2112
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
2113
|
+
args_1[_i - 3] = arguments[_i];
|
|
2108
2114
|
}
|
|
2109
|
-
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) {
|
|
2110
2116
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2111
2117
|
if (options === void 0) { options = {}; }
|
|
2112
2118
|
return __generator(this, function (_a) {
|
|
@@ -2124,6 +2130,9 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2124
2130
|
if (size !== undefined) {
|
|
2125
2131
|
localVarQueryParameter['size'] = size;
|
|
2126
2132
|
}
|
|
2133
|
+
if (type !== undefined) {
|
|
2134
|
+
localVarQueryParameter['type'] = type;
|
|
2135
|
+
}
|
|
2127
2136
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
2128
2137
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2129
2138
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -2336,16 +2345,17 @@ var TreatmentResourceApiFp = function (configuration) {
|
|
|
2336
2345
|
* @summary Get Treatments
|
|
2337
2346
|
* @param {number} [page]
|
|
2338
2347
|
* @param {number} [size]
|
|
2348
|
+
* @param {TreatmentType} [type]
|
|
2339
2349
|
* @param {*} [options] Override http request option.
|
|
2340
2350
|
* @throws {RequiredError}
|
|
2341
2351
|
*/
|
|
2342
|
-
treatmentsGet: function (page, size, options) {
|
|
2352
|
+
treatmentsGet: function (page, size, type, options) {
|
|
2343
2353
|
return __awaiter(this, void 0, void 0, function () {
|
|
2344
2354
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2345
2355
|
var _a, _b, _c;
|
|
2346
2356
|
return __generator(this, function (_d) {
|
|
2347
2357
|
switch (_d.label) {
|
|
2348
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, options)];
|
|
2358
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, type, options)];
|
|
2349
2359
|
case 1:
|
|
2350
2360
|
localVarAxiosArgs = _d.sent();
|
|
2351
2361
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2466,7 +2476,7 @@ var TreatmentResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
2466
2476
|
*/
|
|
2467
2477
|
treatmentsGet: function (requestParameters, options) {
|
|
2468
2478
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2469
|
-
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); });
|
|
2470
2480
|
},
|
|
2471
2481
|
/**
|
|
2472
2482
|
*
|
|
@@ -2529,7 +2539,7 @@ var TreatmentResourceApi = /** @class */ (function (_super) {
|
|
|
2529
2539
|
TreatmentResourceApi.prototype.treatmentsGet = function (requestParameters, options) {
|
|
2530
2540
|
var _this = this;
|
|
2531
2541
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2532
|
-
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); });
|
|
2533
2543
|
};
|
|
2534
2544
|
/**
|
|
2535
2545
|
*
|
|
@@ -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
|
|