@dimrev4/fitness-v3-backend 0.0.8 → 0.0.10

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/api.ts CHANGED
@@ -2294,10 +2294,11 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
2294
2294
  * @param {string} [name] Ingredient name
2295
2295
  * @param {string} [query] Ingredient query
2296
2296
  * @param {string} [orderBy] Order by
2297
+ * @param {boolean} [isAsc] Ascending order
2297
2298
  * @param {*} [options] Override http request option.
2298
2299
  * @throws {RequiredError}
2299
2300
  */
2300
- ingredientsV1ControllerGetIngredients: async (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2301
+ ingredientsV1ControllerGetIngredients: async (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2301
2302
  const localVarPath = `/api/ingredients/v1`;
2302
2303
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2303
2304
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2337,6 +2338,10 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
2337
2338
  localVarQueryParameter['orderBy'] = orderBy;
2338
2339
  }
2339
2340
 
2341
+ if (isAsc !== undefined) {
2342
+ localVarQueryParameter['isAsc'] = isAsc;
2343
+ }
2344
+
2340
2345
 
2341
2346
 
2342
2347
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2379,11 +2384,12 @@ export const IngredientsV1ApiFp = function(configuration?: Configuration) {
2379
2384
  * @param {string} [name] Ingredient name
2380
2385
  * @param {string} [query] Ingredient query
2381
2386
  * @param {string} [orderBy] Order by
2387
+ * @param {boolean} [isAsc] Ascending order
2382
2388
  * @param {*} [options] Override http request option.
2383
2389
  * @throws {RequiredError}
2384
2390
  */
2385
- async ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>> {
2386
- const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, options);
2391
+ async ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>> {
2392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, isAsc, options);
2387
2393
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2388
2394
  const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredients']?.[localVarOperationServerIndex]?.url;
2389
2395
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2416,7 +2422,7 @@ export const IngredientsV1ApiFactory = function (configuration?: Configuration,
2416
2422
  * @throws {RequiredError}
2417
2423
  */
2418
2424
  ingredientsV1ControllerGetIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetIngredientsResponseDto> {
2419
- return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(axios, basePath));
2425
+ return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
2420
2426
  },
2421
2427
  };
2422
2428
  };
@@ -2503,6 +2509,13 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest {
2503
2509
  * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2504
2510
  */
2505
2511
  readonly orderBy?: string
2512
+
2513
+ /**
2514
+ * Ascending order
2515
+ * @type {boolean}
2516
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2517
+ */
2518
+ readonly isAsc?: boolean
2506
2519
  }
2507
2520
 
2508
2521
  /**
@@ -2533,7 +2546,7 @@ export class IngredientsV1Api extends BaseAPI implements IngredientsV1ApiInterfa
2533
2546
  * @memberof IngredientsV1Api
2534
2547
  */
2535
2548
  public ingredientsV1ControllerGetIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest = {}, options?: RawAxiosRequestConfig) {
2536
- return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
2549
+ return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
2537
2550
  }
2538
2551
  }
2539
2552
 
package/dist/api.d.ts CHANGED
@@ -1957,10 +1957,11 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
1957
1957
  * @param {string} [name] Ingredient name
1958
1958
  * @param {string} [query] Ingredient query
1959
1959
  * @param {string} [orderBy] Order by
1960
+ * @param {boolean} [isAsc] Ascending order
1960
1961
  * @param {*} [options] Override http request option.
1961
1962
  * @throws {RequiredError}
1962
1963
  */
1963
- ingredientsV1ControllerGetIngredients: (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1964
+ ingredientsV1ControllerGetIngredients: (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1964
1965
  };
1965
1966
  /**
1966
1967
  * IngredientsV1Api - functional programming interface
@@ -1983,10 +1984,11 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
1983
1984
  * @param {string} [name] Ingredient name
1984
1985
  * @param {string} [query] Ingredient query
1985
1986
  * @param {string} [orderBy] Order by
1987
+ * @param {boolean} [isAsc] Ascending order
1986
1988
  * @param {*} [options] Override http request option.
1987
1989
  * @throws {RequiredError}
1988
1990
  */
1989
- ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>>;
1991
+ ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>>;
1990
1992
  };
1991
1993
  /**
1992
1994
  * IngredientsV1Api - factory interface
@@ -2084,6 +2086,12 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest {
2084
2086
  * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2085
2087
  */
2086
2088
  readonly orderBy?: string;
2089
+ /**
2090
+ * Ascending order
2091
+ * @type {boolean}
2092
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2093
+ */
2094
+ readonly isAsc?: boolean;
2087
2095
  }
2088
2096
  /**
2089
2097
  * IngredientsV1Api - object-oriented interface
package/dist/api.js CHANGED
@@ -604,10 +604,11 @@ const IngredientsV1ApiAxiosParamCreator = function (configuration) {
604
604
  * @param {string} [name] Ingredient name
605
605
  * @param {string} [query] Ingredient query
606
606
  * @param {string} [orderBy] Order by
607
+ * @param {boolean} [isAsc] Ascending order
607
608
  * @param {*} [options] Override http request option.
608
609
  * @throws {RequiredError}
609
610
  */
610
- ingredientsV1ControllerGetIngredients: (limit_1, offset_1, name_1, query_1, orderBy_1, ...args_1) => __awaiter(this, [limit_1, offset_1, name_1, query_1, orderBy_1, ...args_1], void 0, function* (limit, offset, name, query, orderBy, options = {}) {
611
+ ingredientsV1ControllerGetIngredients: (limit_1, offset_1, name_1, query_1, orderBy_1, isAsc_1, ...args_1) => __awaiter(this, [limit_1, offset_1, name_1, query_1, orderBy_1, isAsc_1, ...args_1], void 0, function* (limit, offset, name, query, orderBy, isAsc, options = {}) {
611
612
  const localVarPath = `/api/ingredients/v1`;
612
613
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
613
614
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -638,6 +639,9 @@ const IngredientsV1ApiAxiosParamCreator = function (configuration) {
638
639
  if (orderBy !== undefined) {
639
640
  localVarQueryParameter['orderBy'] = orderBy;
640
641
  }
642
+ if (isAsc !== undefined) {
643
+ localVarQueryParameter['isAsc'] = isAsc;
644
+ }
641
645
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
642
646
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
643
647
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -680,13 +684,14 @@ const IngredientsV1ApiFp = function (configuration) {
680
684
  * @param {string} [name] Ingredient name
681
685
  * @param {string} [query] Ingredient query
682
686
  * @param {string} [orderBy] Order by
687
+ * @param {boolean} [isAsc] Ascending order
683
688
  * @param {*} [options] Override http request option.
684
689
  * @throws {RequiredError}
685
690
  */
686
- ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, options) {
691
+ ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, isAsc, options) {
687
692
  return __awaiter(this, void 0, void 0, function* () {
688
693
  var _a, _b, _c;
689
- const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, options);
694
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, isAsc, options);
690
695
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
691
696
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredients']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
692
697
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -720,7 +725,7 @@ const IngredientsV1ApiFactory = function (configuration, basePath, axios) {
720
725
  * @throws {RequiredError}
721
726
  */
722
727
  ingredientsV1ControllerGetIngredients(requestParameters = {}, options) {
723
- return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(axios, basePath));
728
+ return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
724
729
  },
725
730
  };
726
731
  };
@@ -752,7 +757,7 @@ class IngredientsV1Api extends base_1.BaseAPI {
752
757
  * @memberof IngredientsV1Api
753
758
  */
754
759
  ingredientsV1ControllerGetIngredients(requestParameters = {}, options) {
755
- return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
760
+ return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
756
761
  }
757
762
  }
758
763
  exports.IngredientsV1Api = IngredientsV1Api;
package/dist/esm/api.d.ts CHANGED
@@ -1957,10 +1957,11 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
1957
1957
  * @param {string} [name] Ingredient name
1958
1958
  * @param {string} [query] Ingredient query
1959
1959
  * @param {string} [orderBy] Order by
1960
+ * @param {boolean} [isAsc] Ascending order
1960
1961
  * @param {*} [options] Override http request option.
1961
1962
  * @throws {RequiredError}
1962
1963
  */
1963
- ingredientsV1ControllerGetIngredients: (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1964
+ ingredientsV1ControllerGetIngredients: (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1964
1965
  };
1965
1966
  /**
1966
1967
  * IngredientsV1Api - functional programming interface
@@ -1983,10 +1984,11 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
1983
1984
  * @param {string} [name] Ingredient name
1984
1985
  * @param {string} [query] Ingredient query
1985
1986
  * @param {string} [orderBy] Order by
1987
+ * @param {boolean} [isAsc] Ascending order
1986
1988
  * @param {*} [options] Override http request option.
1987
1989
  * @throws {RequiredError}
1988
1990
  */
1989
- ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>>;
1991
+ ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>>;
1990
1992
  };
1991
1993
  /**
1992
1994
  * IngredientsV1Api - factory interface
@@ -2084,6 +2086,12 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest {
2084
2086
  * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2085
2087
  */
2086
2088
  readonly orderBy?: string;
2089
+ /**
2090
+ * Ascending order
2091
+ * @type {boolean}
2092
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2093
+ */
2094
+ readonly isAsc?: boolean;
2087
2095
  }
2088
2096
  /**
2089
2097
  * IngredientsV1Api - object-oriented interface
package/dist/esm/api.js CHANGED
@@ -597,10 +597,11 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration) {
597
597
  * @param {string} [name] Ingredient name
598
598
  * @param {string} [query] Ingredient query
599
599
  * @param {string} [orderBy] Order by
600
+ * @param {boolean} [isAsc] Ascending order
600
601
  * @param {*} [options] Override http request option.
601
602
  * @throws {RequiredError}
602
603
  */
603
- ingredientsV1ControllerGetIngredients: (limit_1, offset_1, name_1, query_1, orderBy_1, ...args_1) => __awaiter(this, [limit_1, offset_1, name_1, query_1, orderBy_1, ...args_1], void 0, function* (limit, offset, name, query, orderBy, options = {}) {
604
+ ingredientsV1ControllerGetIngredients: (limit_1, offset_1, name_1, query_1, orderBy_1, isAsc_1, ...args_1) => __awaiter(this, [limit_1, offset_1, name_1, query_1, orderBy_1, isAsc_1, ...args_1], void 0, function* (limit, offset, name, query, orderBy, isAsc, options = {}) {
604
605
  const localVarPath = `/api/ingredients/v1`;
605
606
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
606
607
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -631,6 +632,9 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration) {
631
632
  if (orderBy !== undefined) {
632
633
  localVarQueryParameter['orderBy'] = orderBy;
633
634
  }
635
+ if (isAsc !== undefined) {
636
+ localVarQueryParameter['isAsc'] = isAsc;
637
+ }
634
638
  setSearchParams(localVarUrlObj, localVarQueryParameter);
635
639
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
636
640
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -672,13 +676,14 @@ export const IngredientsV1ApiFp = function (configuration) {
672
676
  * @param {string} [name] Ingredient name
673
677
  * @param {string} [query] Ingredient query
674
678
  * @param {string} [orderBy] Order by
679
+ * @param {boolean} [isAsc] Ascending order
675
680
  * @param {*} [options] Override http request option.
676
681
  * @throws {RequiredError}
677
682
  */
678
- ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, options) {
683
+ ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, isAsc, options) {
679
684
  return __awaiter(this, void 0, void 0, function* () {
680
685
  var _a, _b, _c;
681
- const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, options);
686
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, isAsc, options);
682
687
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
683
688
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredients']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
684
689
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -711,7 +716,7 @@ export const IngredientsV1ApiFactory = function (configuration, basePath, axios)
711
716
  * @throws {RequiredError}
712
717
  */
713
718
  ingredientsV1ControllerGetIngredients(requestParameters = {}, options) {
714
- return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(axios, basePath));
719
+ return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
715
720
  },
716
721
  };
717
722
  };
@@ -742,7 +747,7 @@ export class IngredientsV1Api extends BaseAPI {
742
747
  * @memberof IngredientsV1Api
743
748
  */
744
749
  ingredientsV1ControllerGetIngredients(requestParameters = {}, options) {
745
- return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
750
+ return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
746
751
  }
747
752
  }
748
753
  /**
@@ -81,13 +81,15 @@ let offset: number; //Offset (optional) (default to undefined)
81
81
  let name: string; //Ingredient name (optional) (default to undefined)
82
82
  let query: string; //Ingredient query (optional) (default to undefined)
83
83
  let orderBy: string; //Order by (optional) (default to undefined)
84
+ let isAsc: boolean; //Ascending order (optional) (default to undefined)
84
85
 
85
86
  const { status, data } = await apiInstance.ingredientsV1ControllerGetIngredients(
86
87
  limit,
87
88
  offset,
88
89
  name,
89
90
  query,
90
- orderBy
91
+ orderBy,
92
+ isAsc
91
93
  );
92
94
  ```
93
95
 
@@ -100,6 +102,7 @@ const { status, data } = await apiInstance.ingredientsV1ControllerGetIngredients
100
102
  | **name** | [**string**] | Ingredient name | (optional) defaults to undefined|
101
103
  | **query** | [**string**] | Ingredient query | (optional) defaults to undefined|
102
104
  | **orderBy** | [**string**] | Order by | (optional) defaults to undefined|
105
+ | **isAsc** | [**boolean**] | Ascending order | (optional) defaults to undefined|
103
106
 
104
107
 
105
108
  ### Return type
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimrev4/fitness-v3-backend",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "OpenAPI client for @dimrev4/fitness-v3-backend",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {