@joao.sumi/qdule 0.0.5 → 0.0.6
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/README.md +2 -2
- package/api.ts +13 -5
- package/dist/api.d.ts +5 -2
- package/dist/api.js +13 -8
- package/docs/TreatmentResourceApi.md +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @joao.sumi/qdule@0.0.
|
|
1
|
+
## @joao.sumi/qdule@0.0.6
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @joao.sumi/qdule@0.0.
|
|
39
|
+
npm install @joao.sumi/qdule@0.0.6 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/api.ts
CHANGED
|
@@ -2253,11 +2253,12 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2253
2253
|
* @summary Get Treatments
|
|
2254
2254
|
* @param {number} [page]
|
|
2255
2255
|
* @param {number} [size]
|
|
2256
|
+
* @param {string} [text]
|
|
2256
2257
|
* @param {TreatmentType} [type]
|
|
2257
2258
|
* @param {*} [options] Override http request option.
|
|
2258
2259
|
* @throws {RequiredError}
|
|
2259
2260
|
*/
|
|
2260
|
-
treatmentsGet: async (page?: number, size?: number, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2261
|
+
treatmentsGet: async (page?: number, size?: number, text?: string, type?: TreatmentType, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
2261
2262
|
const localVarPath = `/treatments`;
|
|
2262
2263
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2263
2264
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2278,6 +2279,10 @@ export const TreatmentResourceApiAxiosParamCreator = function (configuration?: C
|
|
|
2278
2279
|
localVarQueryParameter['size'] = size;
|
|
2279
2280
|
}
|
|
2280
2281
|
|
|
2282
|
+
if (text !== undefined) {
|
|
2283
|
+
localVarQueryParameter['text'] = text;
|
|
2284
|
+
}
|
|
2285
|
+
|
|
2281
2286
|
if (type !== undefined) {
|
|
2282
2287
|
localVarQueryParameter['type'] = type;
|
|
2283
2288
|
}
|
|
@@ -2460,12 +2465,13 @@ export const TreatmentResourceApiFp = function(configuration?: Configuration) {
|
|
|
2460
2465
|
* @summary Get Treatments
|
|
2461
2466
|
* @param {number} [page]
|
|
2462
2467
|
* @param {number} [size]
|
|
2468
|
+
* @param {string} [text]
|
|
2463
2469
|
* @param {TreatmentType} [type]
|
|
2464
2470
|
* @param {*} [options] Override http request option.
|
|
2465
2471
|
* @throws {RequiredError}
|
|
2466
2472
|
*/
|
|
2467
|
-
async treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2468
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, type, options);
|
|
2473
|
+
async treatmentsGet(page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>> {
|
|
2474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.treatmentsGet(page, size, text, type, options);
|
|
2469
2475
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2470
2476
|
const localVarOperationServerBasePath = operationServerMap['TreatmentResourceApi.treatmentsGet']?.[localVarOperationServerIndex]?.url;
|
|
2471
2477
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2540,7 +2546,7 @@ export const TreatmentResourceApiFactory = function (configuration?: Configurati
|
|
|
2540
2546
|
* @throws {RequiredError}
|
|
2541
2547
|
*/
|
|
2542
2548
|
treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<PageResponse> {
|
|
2543
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2549
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then((request) => request(axios, basePath));
|
|
2544
2550
|
},
|
|
2545
2551
|
/**
|
|
2546
2552
|
*
|
|
@@ -2644,6 +2650,8 @@ export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
|
2644
2650
|
|
|
2645
2651
|
readonly size?: number
|
|
2646
2652
|
|
|
2653
|
+
readonly text?: string
|
|
2654
|
+
|
|
2647
2655
|
readonly type?: TreatmentType
|
|
2648
2656
|
}
|
|
2649
2657
|
|
|
@@ -2689,7 +2697,7 @@ export class TreatmentResourceApi extends BaseAPI implements TreatmentResourceAp
|
|
|
2689
2697
|
* @throws {RequiredError}
|
|
2690
2698
|
*/
|
|
2691
2699
|
public treatmentsGet(requestParameters: TreatmentResourceApiTreatmentsGetRequest = {}, options?: RawAxiosRequestConfig) {
|
|
2692
|
-
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2700
|
+
return TreatmentResourceApiFp(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then((request) => request(this.axios, this.basePath));
|
|
2693
2701
|
}
|
|
2694
2702
|
|
|
2695
2703
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -1275,11 +1275,12 @@ export declare const TreatmentResourceApiAxiosParamCreator: (configuration?: Con
|
|
|
1275
1275
|
* @summary Get Treatments
|
|
1276
1276
|
* @param {number} [page]
|
|
1277
1277
|
* @param {number} [size]
|
|
1278
|
+
* @param {string} [text]
|
|
1278
1279
|
* @param {TreatmentType} [type]
|
|
1279
1280
|
* @param {*} [options] Override http request option.
|
|
1280
1281
|
* @throws {RequiredError}
|
|
1281
1282
|
*/
|
|
1282
|
-
treatmentsGet: (page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1283
|
+
treatmentsGet: (page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
1283
1284
|
/**
|
|
1284
1285
|
*
|
|
1285
1286
|
* @summary Delete Treatment By Id
|
|
@@ -1323,11 +1324,12 @@ export declare const TreatmentResourceApiFp: (configuration?: Configuration) =>
|
|
|
1323
1324
|
* @summary Get Treatments
|
|
1324
1325
|
* @param {number} [page]
|
|
1325
1326
|
* @param {number} [size]
|
|
1327
|
+
* @param {string} [text]
|
|
1326
1328
|
* @param {TreatmentType} [type]
|
|
1327
1329
|
* @param {*} [options] Override http request option.
|
|
1328
1330
|
* @throws {RequiredError}
|
|
1329
1331
|
*/
|
|
1330
|
-
treatmentsGet(page?: number, size?: number, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
1332
|
+
treatmentsGet(page?: number, size?: number, text?: string, type?: TreatmentType, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PageResponse>>;
|
|
1331
1333
|
/**
|
|
1332
1334
|
*
|
|
1333
1335
|
* @summary Delete Treatment By Id
|
|
@@ -1458,6 +1460,7 @@ export interface TreatmentResourceApiInterface {
|
|
|
1458
1460
|
export interface TreatmentResourceApiTreatmentsGetRequest {
|
|
1459
1461
|
readonly page?: number;
|
|
1460
1462
|
readonly size?: number;
|
|
1463
|
+
readonly text?: string;
|
|
1461
1464
|
readonly type?: TreatmentType;
|
|
1462
1465
|
}
|
|
1463
1466
|
/**
|
package/dist/api.js
CHANGED
|
@@ -2118,16 +2118,17 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2118
2118
|
* @summary Get Treatments
|
|
2119
2119
|
* @param {number} [page]
|
|
2120
2120
|
* @param {number} [size]
|
|
2121
|
+
* @param {string} [text]
|
|
2121
2122
|
* @param {TreatmentType} [type]
|
|
2122
2123
|
* @param {*} [options] Override http request option.
|
|
2123
2124
|
* @throws {RequiredError}
|
|
2124
2125
|
*/
|
|
2125
|
-
treatmentsGet: function (page_1, size_1, type_1) {
|
|
2126
|
+
treatmentsGet: function (page_1, size_1, text_1, type_1) {
|
|
2126
2127
|
var args_1 = [];
|
|
2127
|
-
for (var _i =
|
|
2128
|
-
args_1[_i -
|
|
2128
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
2129
|
+
args_1[_i - 4] = arguments[_i];
|
|
2129
2130
|
}
|
|
2130
|
-
return __awaiter(_this, __spreadArray([page_1, size_1, type_1], args_1, true), void 0, function (page, size, type, options) {
|
|
2131
|
+
return __awaiter(_this, __spreadArray([page_1, size_1, text_1, type_1], args_1, true), void 0, function (page, size, text, type, options) {
|
|
2131
2132
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2132
2133
|
if (options === void 0) { options = {}; }
|
|
2133
2134
|
return __generator(this, function (_a) {
|
|
@@ -2145,6 +2146,9 @@ var TreatmentResourceApiAxiosParamCreator = function (configuration) {
|
|
|
2145
2146
|
if (size !== undefined) {
|
|
2146
2147
|
localVarQueryParameter['size'] = size;
|
|
2147
2148
|
}
|
|
2149
|
+
if (text !== undefined) {
|
|
2150
|
+
localVarQueryParameter['text'] = text;
|
|
2151
|
+
}
|
|
2148
2152
|
if (type !== undefined) {
|
|
2149
2153
|
localVarQueryParameter['type'] = type;
|
|
2150
2154
|
}
|
|
@@ -2360,17 +2364,18 @@ var TreatmentResourceApiFp = function (configuration) {
|
|
|
2360
2364
|
* @summary Get Treatments
|
|
2361
2365
|
* @param {number} [page]
|
|
2362
2366
|
* @param {number} [size]
|
|
2367
|
+
* @param {string} [text]
|
|
2363
2368
|
* @param {TreatmentType} [type]
|
|
2364
2369
|
* @param {*} [options] Override http request option.
|
|
2365
2370
|
* @throws {RequiredError}
|
|
2366
2371
|
*/
|
|
2367
|
-
treatmentsGet: function (page, size, type, options) {
|
|
2372
|
+
treatmentsGet: function (page, size, text, type, options) {
|
|
2368
2373
|
return __awaiter(this, void 0, void 0, function () {
|
|
2369
2374
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2370
2375
|
var _a, _b, _c;
|
|
2371
2376
|
return __generator(this, function (_d) {
|
|
2372
2377
|
switch (_d.label) {
|
|
2373
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, type, options)];
|
|
2378
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.treatmentsGet(page, size, text, type, options)];
|
|
2374
2379
|
case 1:
|
|
2375
2380
|
localVarAxiosArgs = _d.sent();
|
|
2376
2381
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -2491,7 +2496,7 @@ var TreatmentResourceApiFactory = function (configuration, basePath, axios) {
|
|
|
2491
2496
|
*/
|
|
2492
2497
|
treatmentsGet: function (requestParameters, options) {
|
|
2493
2498
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2494
|
-
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
|
|
2499
|
+
return localVarFp.treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then(function (request) { return request(axios, basePath); });
|
|
2495
2500
|
},
|
|
2496
2501
|
/**
|
|
2497
2502
|
*
|
|
@@ -2554,7 +2559,7 @@ var TreatmentResourceApi = /** @class */ (function (_super) {
|
|
|
2554
2559
|
TreatmentResourceApi.prototype.treatmentsGet = function (requestParameters, options) {
|
|
2555
2560
|
var _this = this;
|
|
2556
2561
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
2557
|
-
return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2562
|
+
return (0, exports.TreatmentResourceApiFp)(this.configuration).treatmentsGet(requestParameters.page, requestParameters.size, requestParameters.text, requestParameters.type, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2558
2563
|
};
|
|
2559
2564
|
/**
|
|
2560
2565
|
*
|
|
@@ -27,11 +27,13 @@ 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 text: string; // (optional) (default to undefined)
|
|
30
31
|
let type: TreatmentType; // (optional) (default to undefined)
|
|
31
32
|
|
|
32
33
|
const { status, data } = await apiInstance.treatmentsGet(
|
|
33
34
|
page,
|
|
34
35
|
size,
|
|
36
|
+
text,
|
|
35
37
|
type
|
|
36
38
|
);
|
|
37
39
|
```
|
|
@@ -42,6 +44,7 @@ const { status, data } = await apiInstance.treatmentsGet(
|
|
|
42
44
|
|------------- | ------------- | ------------- | -------------|
|
|
43
45
|
| **page** | [**number**] | | (optional) defaults to undefined|
|
|
44
46
|
| **size** | [**number**] | | (optional) defaults to undefined|
|
|
47
|
+
| **text** | [**string**] | | (optional) defaults to undefined|
|
|
45
48
|
| **type** | **TreatmentType** | | (optional) defaults to undefined|
|
|
46
49
|
|
|
47
50
|
|