@dimrev4/fitness-v3-backend 0.0.30 → 0.0.31

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
@@ -4018,6 +4018,47 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
4018
4018
 
4019
4019
 
4020
4020
 
4021
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4022
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4023
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
4024
+
4025
+ return {
4026
+ url: toPathString(localVarUrlObj),
4027
+ options: localVarRequestOptions,
4028
+ };
4029
+ },
4030
+ /**
4031
+ *
4032
+ * @summary Get ingredient by id
4033
+ * @param {string} id
4034
+ * @param {*} [options] Override http request option.
4035
+ * @throws {RequiredError}
4036
+ */
4037
+ ingredientsV1ControllerGetIngredientById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4038
+ // verify required parameter 'id' is not null or undefined
4039
+ assertParamExists('ingredientsV1ControllerGetIngredientById', 'id', id)
4040
+ const localVarPath = `/api/ingredients/v1/{id}`
4041
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
4042
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4043
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4044
+ let baseOptions;
4045
+ if (configuration) {
4046
+ baseOptions = configuration.baseOptions;
4047
+ }
4048
+
4049
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
4050
+ const localVarHeaderParameter = {} as any;
4051
+ const localVarQueryParameter = {} as any;
4052
+
4053
+ // authentication apiKey required
4054
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
4055
+
4056
+ // authentication bearer required
4057
+ // http bearer authentication required
4058
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4059
+
4060
+
4061
+
4021
4062
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4022
4063
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4023
4064
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -4133,6 +4174,19 @@ export const IngredientsV1ApiFp = function(configuration?: Configuration) {
4133
4174
  const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetAllIngredients']?.[localVarOperationServerIndex]?.url;
4134
4175
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4135
4176
  },
4177
+ /**
4178
+ *
4179
+ * @summary Get ingredient by id
4180
+ * @param {string} id
4181
+ * @param {*} [options] Override http request option.
4182
+ * @throws {RequiredError}
4183
+ */
4184
+ async ingredientsV1ControllerGetIngredientById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>> {
4185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerGetIngredientById(id, options);
4186
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4187
+ const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredientById']?.[localVarOperationServerIndex]?.url;
4188
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4189
+ },
4136
4190
  /**
4137
4191
  *
4138
4192
  * @summary Get ingredients
@@ -4181,6 +4235,16 @@ export const IngredientsV1ApiFactory = function (configuration?: Configuration,
4181
4235
  ingredientsV1ControllerGetAllIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto> {
4182
4236
  return localVarFp.ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
4183
4237
  },
4238
+ /**
4239
+ *
4240
+ * @summary Get ingredient by id
4241
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
4242
+ * @param {*} [options] Override http request option.
4243
+ * @throws {RequiredError}
4244
+ */
4245
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto> {
4246
+ return localVarFp.ingredientsV1ControllerGetIngredientById(requestParameters.id, options).then((request) => request(axios, basePath));
4247
+ },
4184
4248
  /**
4185
4249
  *
4186
4250
  * @summary Get ingredients
@@ -4220,6 +4284,16 @@ export interface IngredientsV1ApiInterface {
4220
4284
  */
4221
4285
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
4222
4286
 
4287
+ /**
4288
+ *
4289
+ * @summary Get ingredient by id
4290
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
4291
+ * @param {*} [options] Override http request option.
4292
+ * @throws {RequiredError}
4293
+ * @memberof IngredientsV1ApiInterface
4294
+ */
4295
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
4296
+
4223
4297
  /**
4224
4298
  *
4225
4299
  * @summary Get ingredients
@@ -4281,6 +4355,20 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest
4281
4355
  readonly isAsc?: boolean
4282
4356
  }
4283
4357
 
4358
+ /**
4359
+ * Request parameters for ingredientsV1ControllerGetIngredientById operation in IngredientsV1Api.
4360
+ * @export
4361
+ * @interface IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest
4362
+ */
4363
+ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest {
4364
+ /**
4365
+ *
4366
+ * @type {string}
4367
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredientById
4368
+ */
4369
+ readonly id: string
4370
+ }
4371
+
4284
4372
  /**
4285
4373
  * Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
4286
4374
  * @export
@@ -4361,6 +4449,18 @@ export class IngredientsV1Api extends BaseAPI implements IngredientsV1ApiInterfa
4361
4449
  return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
4362
4450
  }
4363
4451
 
4452
+ /**
4453
+ *
4454
+ * @summary Get ingredient by id
4455
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
4456
+ * @param {*} [options] Override http request option.
4457
+ * @throws {RequiredError}
4458
+ * @memberof IngredientsV1Api
4459
+ */
4460
+ public ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig) {
4461
+ return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredientById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
4462
+ }
4463
+
4364
4464
  /**
4365
4465
  *
4366
4466
  * @summary Get ingredients
package/dist/api.d.ts CHANGED
@@ -3438,6 +3438,14 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
3438
3438
  * @throws {RequiredError}
3439
3439
  */
3440
3440
  ingredientsV1ControllerGetAllIngredients: (name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3441
+ /**
3442
+ *
3443
+ * @summary Get ingredient by id
3444
+ * @param {string} id
3445
+ * @param {*} [options] Override http request option.
3446
+ * @throws {RequiredError}
3447
+ */
3448
+ ingredientsV1ControllerGetIngredientById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3441
3449
  /**
3442
3450
  *
3443
3451
  * @summary Get ingredients
@@ -3476,6 +3484,14 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
3476
3484
  * @throws {RequiredError}
3477
3485
  */
3478
3486
  ingredientsV1ControllerGetAllIngredients(name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllIngredientsResponseDto>>;
3487
+ /**
3488
+ *
3489
+ * @summary Get ingredient by id
3490
+ * @param {string} id
3491
+ * @param {*} [options] Override http request option.
3492
+ * @throws {RequiredError}
3493
+ */
3494
+ ingredientsV1ControllerGetIngredientById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
3479
3495
  /**
3480
3496
  *
3481
3497
  * @summary Get ingredients
@@ -3511,6 +3527,14 @@ export declare const IngredientsV1ApiFactory: (configuration?: Configuration, ba
3511
3527
  * @throws {RequiredError}
3512
3528
  */
3513
3529
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3530
+ /**
3531
+ *
3532
+ * @summary Get ingredient by id
3533
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
3534
+ * @param {*} [options] Override http request option.
3535
+ * @throws {RequiredError}
3536
+ */
3537
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3514
3538
  /**
3515
3539
  *
3516
3540
  * @summary Get ingredients
@@ -3544,6 +3568,15 @@ export interface IngredientsV1ApiInterface {
3544
3568
  * @memberof IngredientsV1ApiInterface
3545
3569
  */
3546
3570
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3571
+ /**
3572
+ *
3573
+ * @summary Get ingredient by id
3574
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
3575
+ * @param {*} [options] Override http request option.
3576
+ * @throws {RequiredError}
3577
+ * @memberof IngredientsV1ApiInterface
3578
+ */
3579
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3547
3580
  /**
3548
3581
  *
3549
3582
  * @summary Get ingredients
@@ -3598,6 +3631,19 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest
3598
3631
  */
3599
3632
  readonly isAsc?: boolean;
3600
3633
  }
3634
+ /**
3635
+ * Request parameters for ingredientsV1ControllerGetIngredientById operation in IngredientsV1Api.
3636
+ * @export
3637
+ * @interface IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest
3638
+ */
3639
+ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest {
3640
+ /**
3641
+ *
3642
+ * @type {string}
3643
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredientById
3644
+ */
3645
+ readonly id: string;
3646
+ }
3601
3647
  /**
3602
3648
  * Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
3603
3649
  * @export
@@ -3666,6 +3712,15 @@ export declare class IngredientsV1Api extends BaseAPI implements IngredientsV1Ap
3666
3712
  * @memberof IngredientsV1Api
3667
3713
  */
3668
3714
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAllIngredientsResponseDto, any, {}>>;
3715
+ /**
3716
+ *
3717
+ * @summary Get ingredient by id
3718
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
3719
+ * @param {*} [options] Override http request option.
3720
+ * @throws {RequiredError}
3721
+ * @memberof IngredientsV1Api
3722
+ */
3723
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
3669
3724
  /**
3670
3725
  *
3671
3726
  * @summary Get ingredients
package/dist/api.js CHANGED
@@ -1044,6 +1044,40 @@ const IngredientsV1ApiAxiosParamCreator = function (configuration) {
1044
1044
  options: localVarRequestOptions,
1045
1045
  };
1046
1046
  }),
1047
+ /**
1048
+ *
1049
+ * @summary Get ingredient by id
1050
+ * @param {string} id
1051
+ * @param {*} [options] Override http request option.
1052
+ * @throws {RequiredError}
1053
+ */
1054
+ ingredientsV1ControllerGetIngredientById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1055
+ // verify required parameter 'id' is not null or undefined
1056
+ (0, common_1.assertParamExists)('ingredientsV1ControllerGetIngredientById', 'id', id);
1057
+ const localVarPath = `/api/ingredients/v1/{id}`
1058
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1059
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1060
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1061
+ let baseOptions;
1062
+ if (configuration) {
1063
+ baseOptions = configuration.baseOptions;
1064
+ }
1065
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1066
+ const localVarHeaderParameter = {};
1067
+ const localVarQueryParameter = {};
1068
+ // authentication apiKey required
1069
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
1070
+ // authentication bearer required
1071
+ // http bearer authentication required
1072
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1073
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1074
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1075
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1076
+ return {
1077
+ url: (0, common_1.toPathString)(localVarUrlObj),
1078
+ options: localVarRequestOptions,
1079
+ };
1080
+ }),
1047
1081
  /**
1048
1082
  *
1049
1083
  * @summary Get ingredients
@@ -1143,6 +1177,22 @@ const IngredientsV1ApiFp = function (configuration) {
1143
1177
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1144
1178
  });
1145
1179
  },
1180
+ /**
1181
+ *
1182
+ * @summary Get ingredient by id
1183
+ * @param {string} id
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ */
1187
+ ingredientsV1ControllerGetIngredientById(id, options) {
1188
+ return __awaiter(this, void 0, void 0, function* () {
1189
+ var _a, _b, _c;
1190
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetIngredientById(id, options);
1191
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1192
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredientById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1193
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1194
+ });
1195
+ },
1146
1196
  /**
1147
1197
  *
1148
1198
  * @summary Get ingredients
@@ -1194,6 +1244,16 @@ const IngredientsV1ApiFactory = function (configuration, basePath, axios) {
1194
1244
  ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1195
1245
  return localVarFp.ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
1196
1246
  },
1247
+ /**
1248
+ *
1249
+ * @summary Get ingredient by id
1250
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
1251
+ * @param {*} [options] Override http request option.
1252
+ * @throws {RequiredError}
1253
+ */
1254
+ ingredientsV1ControllerGetIngredientById(requestParameters, options) {
1255
+ return localVarFp.ingredientsV1ControllerGetIngredientById(requestParameters.id, options).then((request) => request(axios, basePath));
1256
+ },
1197
1257
  /**
1198
1258
  *
1199
1259
  * @summary Get ingredients
@@ -1236,6 +1296,17 @@ class IngredientsV1Api extends base_1.BaseAPI {
1236
1296
  ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1237
1297
  return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
1238
1298
  }
1299
+ /**
1300
+ *
1301
+ * @summary Get ingredient by id
1302
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ * @memberof IngredientsV1Api
1306
+ */
1307
+ ingredientsV1ControllerGetIngredientById(requestParameters, options) {
1308
+ return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerGetIngredientById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1309
+ }
1239
1310
  /**
1240
1311
  *
1241
1312
  * @summary Get ingredients
package/dist/esm/api.d.ts CHANGED
@@ -3438,6 +3438,14 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
3438
3438
  * @throws {RequiredError}
3439
3439
  */
3440
3440
  ingredientsV1ControllerGetAllIngredients: (name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3441
+ /**
3442
+ *
3443
+ * @summary Get ingredient by id
3444
+ * @param {string} id
3445
+ * @param {*} [options] Override http request option.
3446
+ * @throws {RequiredError}
3447
+ */
3448
+ ingredientsV1ControllerGetIngredientById: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3441
3449
  /**
3442
3450
  *
3443
3451
  * @summary Get ingredients
@@ -3476,6 +3484,14 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
3476
3484
  * @throws {RequiredError}
3477
3485
  */
3478
3486
  ingredientsV1ControllerGetAllIngredients(name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllIngredientsResponseDto>>;
3487
+ /**
3488
+ *
3489
+ * @summary Get ingredient by id
3490
+ * @param {string} id
3491
+ * @param {*} [options] Override http request option.
3492
+ * @throws {RequiredError}
3493
+ */
3494
+ ingredientsV1ControllerGetIngredientById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
3479
3495
  /**
3480
3496
  *
3481
3497
  * @summary Get ingredients
@@ -3511,6 +3527,14 @@ export declare const IngredientsV1ApiFactory: (configuration?: Configuration, ba
3511
3527
  * @throws {RequiredError}
3512
3528
  */
3513
3529
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3530
+ /**
3531
+ *
3532
+ * @summary Get ingredient by id
3533
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
3534
+ * @param {*} [options] Override http request option.
3535
+ * @throws {RequiredError}
3536
+ */
3537
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3514
3538
  /**
3515
3539
  *
3516
3540
  * @summary Get ingredients
@@ -3544,6 +3568,15 @@ export interface IngredientsV1ApiInterface {
3544
3568
  * @memberof IngredientsV1ApiInterface
3545
3569
  */
3546
3570
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3571
+ /**
3572
+ *
3573
+ * @summary Get ingredient by id
3574
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
3575
+ * @param {*} [options] Override http request option.
3576
+ * @throws {RequiredError}
3577
+ * @memberof IngredientsV1ApiInterface
3578
+ */
3579
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3547
3580
  /**
3548
3581
  *
3549
3582
  * @summary Get ingredients
@@ -3598,6 +3631,19 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest
3598
3631
  */
3599
3632
  readonly isAsc?: boolean;
3600
3633
  }
3634
+ /**
3635
+ * Request parameters for ingredientsV1ControllerGetIngredientById operation in IngredientsV1Api.
3636
+ * @export
3637
+ * @interface IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest
3638
+ */
3639
+ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest {
3640
+ /**
3641
+ *
3642
+ * @type {string}
3643
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredientById
3644
+ */
3645
+ readonly id: string;
3646
+ }
3601
3647
  /**
3602
3648
  * Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
3603
3649
  * @export
@@ -3666,6 +3712,15 @@ export declare class IngredientsV1Api extends BaseAPI implements IngredientsV1Ap
3666
3712
  * @memberof IngredientsV1Api
3667
3713
  */
3668
3714
  ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAllIngredientsResponseDto, any, {}>>;
3715
+ /**
3716
+ *
3717
+ * @summary Get ingredient by id
3718
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
3719
+ * @param {*} [options] Override http request option.
3720
+ * @throws {RequiredError}
3721
+ * @memberof IngredientsV1Api
3722
+ */
3723
+ ingredientsV1ControllerGetIngredientById(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
3669
3724
  /**
3670
3725
  *
3671
3726
  * @summary Get ingredients
package/dist/esm/api.js CHANGED
@@ -1032,6 +1032,40 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration) {
1032
1032
  options: localVarRequestOptions,
1033
1033
  };
1034
1034
  }),
1035
+ /**
1036
+ *
1037
+ * @summary Get ingredient by id
1038
+ * @param {string} id
1039
+ * @param {*} [options] Override http request option.
1040
+ * @throws {RequiredError}
1041
+ */
1042
+ ingredientsV1ControllerGetIngredientById: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
1043
+ // verify required parameter 'id' is not null or undefined
1044
+ assertParamExists('ingredientsV1ControllerGetIngredientById', 'id', id);
1045
+ const localVarPath = `/api/ingredients/v1/{id}`
1046
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1047
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1048
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1049
+ let baseOptions;
1050
+ if (configuration) {
1051
+ baseOptions = configuration.baseOptions;
1052
+ }
1053
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1054
+ const localVarHeaderParameter = {};
1055
+ const localVarQueryParameter = {};
1056
+ // authentication apiKey required
1057
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
1058
+ // authentication bearer required
1059
+ // http bearer authentication required
1060
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1061
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1062
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1063
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1064
+ return {
1065
+ url: toPathString(localVarUrlObj),
1066
+ options: localVarRequestOptions,
1067
+ };
1068
+ }),
1035
1069
  /**
1036
1070
  *
1037
1071
  * @summary Get ingredients
@@ -1130,6 +1164,22 @@ export const IngredientsV1ApiFp = function (configuration) {
1130
1164
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1131
1165
  });
1132
1166
  },
1167
+ /**
1168
+ *
1169
+ * @summary Get ingredient by id
1170
+ * @param {string} id
1171
+ * @param {*} [options] Override http request option.
1172
+ * @throws {RequiredError}
1173
+ */
1174
+ ingredientsV1ControllerGetIngredientById(id, options) {
1175
+ return __awaiter(this, void 0, void 0, function* () {
1176
+ var _a, _b, _c;
1177
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetIngredientById(id, options);
1178
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1179
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredientById']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1180
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1181
+ });
1182
+ },
1133
1183
  /**
1134
1184
  *
1135
1185
  * @summary Get ingredients
@@ -1180,6 +1230,16 @@ export const IngredientsV1ApiFactory = function (configuration, basePath, axios)
1180
1230
  ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1181
1231
  return localVarFp.ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
1182
1232
  },
1233
+ /**
1234
+ *
1235
+ * @summary Get ingredient by id
1236
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
1237
+ * @param {*} [options] Override http request option.
1238
+ * @throws {RequiredError}
1239
+ */
1240
+ ingredientsV1ControllerGetIngredientById(requestParameters, options) {
1241
+ return localVarFp.ingredientsV1ControllerGetIngredientById(requestParameters.id, options).then((request) => request(axios, basePath));
1242
+ },
1183
1243
  /**
1184
1244
  *
1185
1245
  * @summary Get ingredients
@@ -1221,6 +1281,17 @@ export class IngredientsV1Api extends BaseAPI {
1221
1281
  ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1222
1282
  return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
1223
1283
  }
1284
+ /**
1285
+ *
1286
+ * @summary Get ingredient by id
1287
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientByIdRequest} requestParameters Request parameters.
1288
+ * @param {*} [options] Override http request option.
1289
+ * @throws {RequiredError}
1290
+ * @memberof IngredientsV1Api
1291
+ */
1292
+ ingredientsV1ControllerGetIngredientById(requestParameters, options) {
1293
+ return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredientById(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
1294
+ }
1224
1295
  /**
1225
1296
  *
1226
1297
  * @summary Get ingredients
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**ingredientsV1ControllerCreateIngredient**](#ingredientsv1controllercreateingredient) | **POST** /api/ingredients/v1 | Create ingredient|
8
8
  |[**ingredientsV1ControllerGetAllIngredients**](#ingredientsv1controllergetallingredients) | **GET** /api/ingredients/v1/all | Get all ingredients|
9
+ |[**ingredientsV1ControllerGetIngredientById**](#ingredientsv1controllergetingredientbyid) | **GET** /api/ingredients/v1/{id} | Get ingredient by id|
9
10
  |[**ingredientsV1ControllerGetIngredients**](#ingredientsv1controllergetingredients) | **GET** /api/ingredients/v1 | Get ingredients|
10
11
 
11
12
  # **ingredientsV1ControllerCreateIngredient**
@@ -114,6 +115,59 @@ const { status, data } = await apiInstance.ingredientsV1ControllerGetAllIngredie
114
115
  - **Accept**: application/json
115
116
 
116
117
 
118
+ ### HTTP response details
119
+ | Status code | Description | Response headers |
120
+ |-------------|-------------|------------------|
121
+ |**200** | | - |
122
+ |**400** | Invalid JWT payload structure or validation failed | - |
123
+ |**401** | JWT token is missing, expired, or invalid | - |
124
+ |**500** | Internal server error during JWT validation | - |
125
+
126
+ [[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)
127
+
128
+ # **ingredientsV1ControllerGetIngredientById**
129
+ > IngredientDto ingredientsV1ControllerGetIngredientById()
130
+
131
+
132
+ ### Example
133
+
134
+ ```typescript
135
+ import {
136
+ IngredientsV1Api,
137
+ Configuration
138
+ } from '@dimrev4/fitness-v3-backend-sdk';
139
+
140
+ const configuration = new Configuration();
141
+ const apiInstance = new IngredientsV1Api(configuration);
142
+
143
+ let id: string; // (default to undefined)
144
+
145
+ const { status, data } = await apiInstance.ingredientsV1ControllerGetIngredientById(
146
+ id
147
+ );
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+ |Name | Type | Description | Notes|
153
+ |------------- | ------------- | ------------- | -------------|
154
+ | **id** | [**string**] | | defaults to undefined|
155
+
156
+
157
+ ### Return type
158
+
159
+ **IngredientDto**
160
+
161
+ ### Authorization
162
+
163
+ [apiKey](../README.md#apiKey), [bearer](../README.md#bearer)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: Not defined
168
+ - **Accept**: application/json
169
+
170
+
117
171
  ### HTTP response details
118
172
  | Status code | Description | Response headers |
119
173
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimrev4/fitness-v3-backend",
3
- "version": "0.0.30",
3
+ "version": "0.0.31",
4
4
  "description": "OpenAPI client for @dimrev4/fitness-v3-backend",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {