@dimrev4/fitness-v3-backend 0.0.29 → 0.0.30

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.
@@ -22,6 +22,7 @@ docs/ExerciseDto.md
22
22
  docs/ExerciseSetsDto.md
23
23
  docs/ExerciseWithSetsDto.md
24
24
  docs/ExercisesV1Api.md
25
+ docs/GetAllIngredientsResponseDto.md
25
26
  docs/GetAllMealsResponseDto.md
26
27
  docs/GetAllMeasurementsResponseDto.md
27
28
  docs/GetAllUserMealConsumptionResponseDto.md
package/api.ts CHANGED
@@ -811,6 +811,25 @@ export const ExerciseWithSetsDtoDifficultyEnum = {
811
811
 
812
812
  export type ExerciseWithSetsDtoDifficultyEnum = typeof ExerciseWithSetsDtoDifficultyEnum[keyof typeof ExerciseWithSetsDtoDifficultyEnum];
813
813
 
814
+ /**
815
+ *
816
+ * @export
817
+ * @interface GetAllIngredientsResponseDto
818
+ */
819
+ export interface GetAllIngredientsResponseDto {
820
+ /**
821
+ *
822
+ * @type {Array<IngredientDto>}
823
+ * @memberof GetAllIngredientsResponseDto
824
+ */
825
+ 'items': Array<IngredientDto>;
826
+ /**
827
+ *
828
+ * @type {number}
829
+ * @memberof GetAllIngredientsResponseDto
830
+ */
831
+ 'totalItems': number;
832
+ }
814
833
  /**
815
834
  *
816
835
  * @export
@@ -3951,6 +3970,63 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
3951
3970
  options: localVarRequestOptions,
3952
3971
  };
3953
3972
  },
3973
+ /**
3974
+ *
3975
+ * @summary Get all ingredients
3976
+ * @param {string} [name] Ingredient name
3977
+ * @param {string} [query] Ingredient query
3978
+ * @param {string} [orderBy] Order by
3979
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
3980
+ * @param {*} [options] Override http request option.
3981
+ * @throws {RequiredError}
3982
+ */
3983
+ ingredientsV1ControllerGetAllIngredients: async (name?: string, query?: string, orderBy?: string, isAsc?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3984
+ const localVarPath = `/api/ingredients/v1/all`;
3985
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3986
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3987
+ let baseOptions;
3988
+ if (configuration) {
3989
+ baseOptions = configuration.baseOptions;
3990
+ }
3991
+
3992
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3993
+ const localVarHeaderParameter = {} as any;
3994
+ const localVarQueryParameter = {} as any;
3995
+
3996
+ // authentication apiKey required
3997
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
3998
+
3999
+ // authentication bearer required
4000
+ // http bearer authentication required
4001
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
4002
+
4003
+ if (name !== undefined) {
4004
+ localVarQueryParameter['name'] = name;
4005
+ }
4006
+
4007
+ if (query !== undefined) {
4008
+ localVarQueryParameter['query'] = query;
4009
+ }
4010
+
4011
+ if (orderBy !== undefined) {
4012
+ localVarQueryParameter['orderBy'] = orderBy;
4013
+ }
4014
+
4015
+ if (isAsc !== undefined) {
4016
+ localVarQueryParameter['isAsc'] = isAsc;
4017
+ }
4018
+
4019
+
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
+ },
3954
4030
  /**
3955
4031
  *
3956
4032
  * @summary Get ingredients
@@ -4041,6 +4117,22 @@ export const IngredientsV1ApiFp = function(configuration?: Configuration) {
4041
4117
  const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerCreateIngredient']?.[localVarOperationServerIndex]?.url;
4042
4118
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4043
4119
  },
4120
+ /**
4121
+ *
4122
+ * @summary Get all ingredients
4123
+ * @param {string} [name] Ingredient name
4124
+ * @param {string} [query] Ingredient query
4125
+ * @param {string} [orderBy] Order by
4126
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
4127
+ * @param {*} [options] Override http request option.
4128
+ * @throws {RequiredError}
4129
+ */
4130
+ async ingredientsV1ControllerGetAllIngredients(name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllIngredientsResponseDto>> {
4131
+ const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerGetAllIngredients(name, query, orderBy, isAsc, options);
4132
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4133
+ const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetAllIngredients']?.[localVarOperationServerIndex]?.url;
4134
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4135
+ },
4044
4136
  /**
4045
4137
  *
4046
4138
  * @summary Get ingredients
@@ -4079,6 +4171,16 @@ export const IngredientsV1ApiFactory = function (configuration?: Configuration,
4079
4171
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto> {
4080
4172
  return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
4081
4173
  },
4174
+ /**
4175
+ *
4176
+ * @summary Get all ingredients
4177
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
4178
+ * @param {*} [options] Override http request option.
4179
+ * @throws {RequiredError}
4180
+ */
4181
+ ingredientsV1ControllerGetAllIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto> {
4182
+ return localVarFp.ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
4183
+ },
4082
4184
  /**
4083
4185
  *
4084
4186
  * @summary Get ingredients
@@ -4108,6 +4210,16 @@ export interface IngredientsV1ApiInterface {
4108
4210
  */
4109
4211
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
4110
4212
 
4213
+ /**
4214
+ *
4215
+ * @summary Get all ingredients
4216
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
4217
+ * @param {*} [options] Override http request option.
4218
+ * @throws {RequiredError}
4219
+ * @memberof IngredientsV1ApiInterface
4220
+ */
4221
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
4222
+
4111
4223
  /**
4112
4224
  *
4113
4225
  * @summary Get ingredients
@@ -4134,6 +4246,41 @@ export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
4134
4246
  readonly createIngredientRequestDto: CreateIngredientRequestDto
4135
4247
  }
4136
4248
 
4249
+ /**
4250
+ * Request parameters for ingredientsV1ControllerGetAllIngredients operation in IngredientsV1Api.
4251
+ * @export
4252
+ * @interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest
4253
+ */
4254
+ export interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest {
4255
+ /**
4256
+ * Ingredient name
4257
+ * @type {string}
4258
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
4259
+ */
4260
+ readonly name?: string
4261
+
4262
+ /**
4263
+ * Ingredient query
4264
+ * @type {string}
4265
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
4266
+ */
4267
+ readonly query?: string
4268
+
4269
+ /**
4270
+ * Order by
4271
+ * @type {string}
4272
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
4273
+ */
4274
+ readonly orderBy?: string
4275
+
4276
+ /**
4277
+ * Sort order direction (true for ascending, false for descending)
4278
+ * @type {boolean}
4279
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
4280
+ */
4281
+ readonly isAsc?: boolean
4282
+ }
4283
+
4137
4284
  /**
4138
4285
  * Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
4139
4286
  * @export
@@ -4202,6 +4349,18 @@ export class IngredientsV1Api extends BaseAPI implements IngredientsV1ApiInterfa
4202
4349
  return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
4203
4350
  }
4204
4351
 
4352
+ /**
4353
+ *
4354
+ * @summary Get all ingredients
4355
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
4356
+ * @param {*} [options] Override http request option.
4357
+ * @throws {RequiredError}
4358
+ * @memberof IngredientsV1Api
4359
+ */
4360
+ public ingredientsV1ControllerGetAllIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest = {}, options?: RawAxiosRequestConfig) {
4361
+ return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
4362
+ }
4363
+
4205
4364
  /**
4206
4365
  *
4207
4366
  * @summary Get ingredients
package/dist/api.d.ts CHANGED
@@ -777,6 +777,25 @@ export declare const ExerciseWithSetsDtoDifficultyEnum: {
777
777
  readonly Hard: "HARD";
778
778
  };
779
779
  export type ExerciseWithSetsDtoDifficultyEnum = typeof ExerciseWithSetsDtoDifficultyEnum[keyof typeof ExerciseWithSetsDtoDifficultyEnum];
780
+ /**
781
+ *
782
+ * @export
783
+ * @interface GetAllIngredientsResponseDto
784
+ */
785
+ export interface GetAllIngredientsResponseDto {
786
+ /**
787
+ *
788
+ * @type {Array<IngredientDto>}
789
+ * @memberof GetAllIngredientsResponseDto
790
+ */
791
+ 'items': Array<IngredientDto>;
792
+ /**
793
+ *
794
+ * @type {number}
795
+ * @memberof GetAllIngredientsResponseDto
796
+ */
797
+ 'totalItems': number;
798
+ }
780
799
  /**
781
800
  *
782
801
  * @export
@@ -3408,6 +3427,17 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
3408
3427
  * @throws {RequiredError}
3409
3428
  */
3410
3429
  ingredientsV1ControllerCreateIngredient: (createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3430
+ /**
3431
+ *
3432
+ * @summary Get all ingredients
3433
+ * @param {string} [name] Ingredient name
3434
+ * @param {string} [query] Ingredient query
3435
+ * @param {string} [orderBy] Order by
3436
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
3437
+ * @param {*} [options] Override http request option.
3438
+ * @throws {RequiredError}
3439
+ */
3440
+ ingredientsV1ControllerGetAllIngredients: (name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3411
3441
  /**
3412
3442
  *
3413
3443
  * @summary Get ingredients
@@ -3435,6 +3465,17 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
3435
3465
  * @throws {RequiredError}
3436
3466
  */
3437
3467
  ingredientsV1ControllerCreateIngredient(createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
3468
+ /**
3469
+ *
3470
+ * @summary Get all ingredients
3471
+ * @param {string} [name] Ingredient name
3472
+ * @param {string} [query] Ingredient query
3473
+ * @param {string} [orderBy] Order by
3474
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
3475
+ * @param {*} [options] Override http request option.
3476
+ * @throws {RequiredError}
3477
+ */
3478
+ ingredientsV1ControllerGetAllIngredients(name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllIngredientsResponseDto>>;
3438
3479
  /**
3439
3480
  *
3440
3481
  * @summary Get ingredients
@@ -3462,6 +3503,14 @@ export declare const IngredientsV1ApiFactory: (configuration?: Configuration, ba
3462
3503
  * @throws {RequiredError}
3463
3504
  */
3464
3505
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3506
+ /**
3507
+ *
3508
+ * @summary Get all ingredients
3509
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
3510
+ * @param {*} [options] Override http request option.
3511
+ * @throws {RequiredError}
3512
+ */
3513
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3465
3514
  /**
3466
3515
  *
3467
3516
  * @summary Get ingredients
@@ -3486,6 +3535,15 @@ export interface IngredientsV1ApiInterface {
3486
3535
  * @memberof IngredientsV1ApiInterface
3487
3536
  */
3488
3537
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3538
+ /**
3539
+ *
3540
+ * @summary Get all ingredients
3541
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
3542
+ * @param {*} [options] Override http request option.
3543
+ * @throws {RequiredError}
3544
+ * @memberof IngredientsV1ApiInterface
3545
+ */
3546
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3489
3547
  /**
3490
3548
  *
3491
3549
  * @summary Get ingredients
@@ -3509,6 +3567,37 @@ export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
3509
3567
  */
3510
3568
  readonly createIngredientRequestDto: CreateIngredientRequestDto;
3511
3569
  }
3570
+ /**
3571
+ * Request parameters for ingredientsV1ControllerGetAllIngredients operation in IngredientsV1Api.
3572
+ * @export
3573
+ * @interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest
3574
+ */
3575
+ export interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest {
3576
+ /**
3577
+ * Ingredient name
3578
+ * @type {string}
3579
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3580
+ */
3581
+ readonly name?: string;
3582
+ /**
3583
+ * Ingredient query
3584
+ * @type {string}
3585
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3586
+ */
3587
+ readonly query?: string;
3588
+ /**
3589
+ * Order by
3590
+ * @type {string}
3591
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3592
+ */
3593
+ readonly orderBy?: string;
3594
+ /**
3595
+ * Sort order direction (true for ascending, false for descending)
3596
+ * @type {boolean}
3597
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3598
+ */
3599
+ readonly isAsc?: boolean;
3600
+ }
3512
3601
  /**
3513
3602
  * Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
3514
3603
  * @export
@@ -3568,6 +3657,15 @@ export declare class IngredientsV1Api extends BaseAPI implements IngredientsV1Ap
3568
3657
  * @memberof IngredientsV1Api
3569
3658
  */
3570
3659
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
3660
+ /**
3661
+ *
3662
+ * @summary Get all ingredients
3663
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
3664
+ * @param {*} [options] Override http request option.
3665
+ * @throws {RequiredError}
3666
+ * @memberof IngredientsV1Api
3667
+ */
3668
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAllIngredientsResponseDto, any, {}>>;
3571
3669
  /**
3572
3670
  *
3573
3671
  * @summary Get ingredients
package/dist/api.js CHANGED
@@ -998,6 +998,52 @@ const IngredientsV1ApiAxiosParamCreator = function (configuration) {
998
998
  options: localVarRequestOptions,
999
999
  };
1000
1000
  }),
1001
+ /**
1002
+ *
1003
+ * @summary Get all ingredients
1004
+ * @param {string} [name] Ingredient name
1005
+ * @param {string} [query] Ingredient query
1006
+ * @param {string} [orderBy] Order by
1007
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
1008
+ * @param {*} [options] Override http request option.
1009
+ * @throws {RequiredError}
1010
+ */
1011
+ ingredientsV1ControllerGetAllIngredients: (name_1, query_1, orderBy_1, isAsc_1, ...args_1) => __awaiter(this, [name_1, query_1, orderBy_1, isAsc_1, ...args_1], void 0, function* (name, query, orderBy, isAsc, options = {}) {
1012
+ const localVarPath = `/api/ingredients/v1/all`;
1013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1014
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1015
+ let baseOptions;
1016
+ if (configuration) {
1017
+ baseOptions = configuration.baseOptions;
1018
+ }
1019
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1020
+ const localVarHeaderParameter = {};
1021
+ const localVarQueryParameter = {};
1022
+ // authentication apiKey required
1023
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
1024
+ // authentication bearer required
1025
+ // http bearer authentication required
1026
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1027
+ if (name !== undefined) {
1028
+ localVarQueryParameter['name'] = name;
1029
+ }
1030
+ if (query !== undefined) {
1031
+ localVarQueryParameter['query'] = query;
1032
+ }
1033
+ if (orderBy !== undefined) {
1034
+ localVarQueryParameter['orderBy'] = orderBy;
1035
+ }
1036
+ if (isAsc !== undefined) {
1037
+ localVarQueryParameter['isAsc'] = isAsc;
1038
+ }
1039
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1040
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1041
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1042
+ return {
1043
+ url: (0, common_1.toPathString)(localVarUrlObj),
1044
+ options: localVarRequestOptions,
1045
+ };
1046
+ }),
1001
1047
  /**
1002
1048
  *
1003
1049
  * @summary Get ingredients
@@ -1078,6 +1124,25 @@ const IngredientsV1ApiFp = function (configuration) {
1078
1124
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1079
1125
  });
1080
1126
  },
1127
+ /**
1128
+ *
1129
+ * @summary Get all ingredients
1130
+ * @param {string} [name] Ingredient name
1131
+ * @param {string} [query] Ingredient query
1132
+ * @param {string} [orderBy] Order by
1133
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
1134
+ * @param {*} [options] Override http request option.
1135
+ * @throws {RequiredError}
1136
+ */
1137
+ ingredientsV1ControllerGetAllIngredients(name, query, orderBy, isAsc, options) {
1138
+ return __awaiter(this, void 0, void 0, function* () {
1139
+ var _a, _b, _c;
1140
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetAllIngredients(name, query, orderBy, isAsc, options);
1141
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1142
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetAllIngredients']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1143
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1144
+ });
1145
+ },
1081
1146
  /**
1082
1147
  *
1083
1148
  * @summary Get ingredients
@@ -1119,6 +1184,16 @@ const IngredientsV1ApiFactory = function (configuration, basePath, axios) {
1119
1184
  ingredientsV1ControllerCreateIngredient(requestParameters, options) {
1120
1185
  return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
1121
1186
  },
1187
+ /**
1188
+ *
1189
+ * @summary Get all ingredients
1190
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ */
1194
+ ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1195
+ return localVarFp.ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
1196
+ },
1122
1197
  /**
1123
1198
  *
1124
1199
  * @summary Get ingredients
@@ -1150,6 +1225,17 @@ class IngredientsV1Api extends base_1.BaseAPI {
1150
1225
  ingredientsV1ControllerCreateIngredient(requestParameters, options) {
1151
1226
  return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
1152
1227
  }
1228
+ /**
1229
+ *
1230
+ * @summary Get all ingredients
1231
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
1232
+ * @param {*} [options] Override http request option.
1233
+ * @throws {RequiredError}
1234
+ * @memberof IngredientsV1Api
1235
+ */
1236
+ ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1237
+ return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
1238
+ }
1153
1239
  /**
1154
1240
  *
1155
1241
  * @summary Get ingredients
package/dist/esm/api.d.ts CHANGED
@@ -777,6 +777,25 @@ export declare const ExerciseWithSetsDtoDifficultyEnum: {
777
777
  readonly Hard: "HARD";
778
778
  };
779
779
  export type ExerciseWithSetsDtoDifficultyEnum = typeof ExerciseWithSetsDtoDifficultyEnum[keyof typeof ExerciseWithSetsDtoDifficultyEnum];
780
+ /**
781
+ *
782
+ * @export
783
+ * @interface GetAllIngredientsResponseDto
784
+ */
785
+ export interface GetAllIngredientsResponseDto {
786
+ /**
787
+ *
788
+ * @type {Array<IngredientDto>}
789
+ * @memberof GetAllIngredientsResponseDto
790
+ */
791
+ 'items': Array<IngredientDto>;
792
+ /**
793
+ *
794
+ * @type {number}
795
+ * @memberof GetAllIngredientsResponseDto
796
+ */
797
+ 'totalItems': number;
798
+ }
780
799
  /**
781
800
  *
782
801
  * @export
@@ -3408,6 +3427,17 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
3408
3427
  * @throws {RequiredError}
3409
3428
  */
3410
3429
  ingredientsV1ControllerCreateIngredient: (createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3430
+ /**
3431
+ *
3432
+ * @summary Get all ingredients
3433
+ * @param {string} [name] Ingredient name
3434
+ * @param {string} [query] Ingredient query
3435
+ * @param {string} [orderBy] Order by
3436
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
3437
+ * @param {*} [options] Override http request option.
3438
+ * @throws {RequiredError}
3439
+ */
3440
+ ingredientsV1ControllerGetAllIngredients: (name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
3411
3441
  /**
3412
3442
  *
3413
3443
  * @summary Get ingredients
@@ -3435,6 +3465,17 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
3435
3465
  * @throws {RequiredError}
3436
3466
  */
3437
3467
  ingredientsV1ControllerCreateIngredient(createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
3468
+ /**
3469
+ *
3470
+ * @summary Get all ingredients
3471
+ * @param {string} [name] Ingredient name
3472
+ * @param {string} [query] Ingredient query
3473
+ * @param {string} [orderBy] Order by
3474
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
3475
+ * @param {*} [options] Override http request option.
3476
+ * @throws {RequiredError}
3477
+ */
3478
+ ingredientsV1ControllerGetAllIngredients(name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllIngredientsResponseDto>>;
3438
3479
  /**
3439
3480
  *
3440
3481
  * @summary Get ingredients
@@ -3462,6 +3503,14 @@ export declare const IngredientsV1ApiFactory: (configuration?: Configuration, ba
3462
3503
  * @throws {RequiredError}
3463
3504
  */
3464
3505
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3506
+ /**
3507
+ *
3508
+ * @summary Get all ingredients
3509
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
3510
+ * @param {*} [options] Override http request option.
3511
+ * @throws {RequiredError}
3512
+ */
3513
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3465
3514
  /**
3466
3515
  *
3467
3516
  * @summary Get ingredients
@@ -3486,6 +3535,15 @@ export interface IngredientsV1ApiInterface {
3486
3535
  * @memberof IngredientsV1ApiInterface
3487
3536
  */
3488
3537
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
3538
+ /**
3539
+ *
3540
+ * @summary Get all ingredients
3541
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
3542
+ * @param {*} [options] Override http request option.
3543
+ * @throws {RequiredError}
3544
+ * @memberof IngredientsV1ApiInterface
3545
+ */
3546
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllIngredientsResponseDto>;
3489
3547
  /**
3490
3548
  *
3491
3549
  * @summary Get ingredients
@@ -3509,6 +3567,37 @@ export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
3509
3567
  */
3510
3568
  readonly createIngredientRequestDto: CreateIngredientRequestDto;
3511
3569
  }
3570
+ /**
3571
+ * Request parameters for ingredientsV1ControllerGetAllIngredients operation in IngredientsV1Api.
3572
+ * @export
3573
+ * @interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest
3574
+ */
3575
+ export interface IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest {
3576
+ /**
3577
+ * Ingredient name
3578
+ * @type {string}
3579
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3580
+ */
3581
+ readonly name?: string;
3582
+ /**
3583
+ * Ingredient query
3584
+ * @type {string}
3585
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3586
+ */
3587
+ readonly query?: string;
3588
+ /**
3589
+ * Order by
3590
+ * @type {string}
3591
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3592
+ */
3593
+ readonly orderBy?: string;
3594
+ /**
3595
+ * Sort order direction (true for ascending, false for descending)
3596
+ * @type {boolean}
3597
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetAllIngredients
3598
+ */
3599
+ readonly isAsc?: boolean;
3600
+ }
3512
3601
  /**
3513
3602
  * Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
3514
3603
  * @export
@@ -3568,6 +3657,15 @@ export declare class IngredientsV1Api extends BaseAPI implements IngredientsV1Ap
3568
3657
  * @memberof IngredientsV1Api
3569
3658
  */
3570
3659
  ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
3660
+ /**
3661
+ *
3662
+ * @summary Get all ingredients
3663
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
3664
+ * @param {*} [options] Override http request option.
3665
+ * @throws {RequiredError}
3666
+ * @memberof IngredientsV1Api
3667
+ */
3668
+ ingredientsV1ControllerGetAllIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAllIngredientsResponseDto, any, {}>>;
3571
3669
  /**
3572
3670
  *
3573
3671
  * @summary Get ingredients
package/dist/esm/api.js CHANGED
@@ -986,6 +986,52 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration) {
986
986
  options: localVarRequestOptions,
987
987
  };
988
988
  }),
989
+ /**
990
+ *
991
+ * @summary Get all ingredients
992
+ * @param {string} [name] Ingredient name
993
+ * @param {string} [query] Ingredient query
994
+ * @param {string} [orderBy] Order by
995
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
996
+ * @param {*} [options] Override http request option.
997
+ * @throws {RequiredError}
998
+ */
999
+ ingredientsV1ControllerGetAllIngredients: (name_1, query_1, orderBy_1, isAsc_1, ...args_1) => __awaiter(this, [name_1, query_1, orderBy_1, isAsc_1, ...args_1], void 0, function* (name, query, orderBy, isAsc, options = {}) {
1000
+ const localVarPath = `/api/ingredients/v1/all`;
1001
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1002
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1003
+ let baseOptions;
1004
+ if (configuration) {
1005
+ baseOptions = configuration.baseOptions;
1006
+ }
1007
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1008
+ const localVarHeaderParameter = {};
1009
+ const localVarQueryParameter = {};
1010
+ // authentication apiKey required
1011
+ yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
1012
+ // authentication bearer required
1013
+ // http bearer authentication required
1014
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1015
+ if (name !== undefined) {
1016
+ localVarQueryParameter['name'] = name;
1017
+ }
1018
+ if (query !== undefined) {
1019
+ localVarQueryParameter['query'] = query;
1020
+ }
1021
+ if (orderBy !== undefined) {
1022
+ localVarQueryParameter['orderBy'] = orderBy;
1023
+ }
1024
+ if (isAsc !== undefined) {
1025
+ localVarQueryParameter['isAsc'] = isAsc;
1026
+ }
1027
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1028
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1029
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1030
+ return {
1031
+ url: toPathString(localVarUrlObj),
1032
+ options: localVarRequestOptions,
1033
+ };
1034
+ }),
989
1035
  /**
990
1036
  *
991
1037
  * @summary Get ingredients
@@ -1065,6 +1111,25 @@ export const IngredientsV1ApiFp = function (configuration) {
1065
1111
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1066
1112
  });
1067
1113
  },
1114
+ /**
1115
+ *
1116
+ * @summary Get all ingredients
1117
+ * @param {string} [name] Ingredient name
1118
+ * @param {string} [query] Ingredient query
1119
+ * @param {string} [orderBy] Order by
1120
+ * @param {boolean} [isAsc] Sort order direction (true for ascending, false for descending)
1121
+ * @param {*} [options] Override http request option.
1122
+ * @throws {RequiredError}
1123
+ */
1124
+ ingredientsV1ControllerGetAllIngredients(name, query, orderBy, isAsc, options) {
1125
+ return __awaiter(this, void 0, void 0, function* () {
1126
+ var _a, _b, _c;
1127
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerGetAllIngredients(name, query, orderBy, isAsc, options);
1128
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1129
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetAllIngredients']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1130
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1131
+ });
1132
+ },
1068
1133
  /**
1069
1134
  *
1070
1135
  * @summary Get ingredients
@@ -1105,6 +1170,16 @@ export const IngredientsV1ApiFactory = function (configuration, basePath, axios)
1105
1170
  ingredientsV1ControllerCreateIngredient(requestParameters, options) {
1106
1171
  return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
1107
1172
  },
1173
+ /**
1174
+ *
1175
+ * @summary Get all ingredients
1176
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
1177
+ * @param {*} [options] Override http request option.
1178
+ * @throws {RequiredError}
1179
+ */
1180
+ ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1181
+ return localVarFp.ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
1182
+ },
1108
1183
  /**
1109
1184
  *
1110
1185
  * @summary Get ingredients
@@ -1135,6 +1210,17 @@ export class IngredientsV1Api extends BaseAPI {
1135
1210
  ingredientsV1ControllerCreateIngredient(requestParameters, options) {
1136
1211
  return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
1137
1212
  }
1213
+ /**
1214
+ *
1215
+ * @summary Get all ingredients
1216
+ * @param {IngredientsV1ApiIngredientsV1ControllerGetAllIngredientsRequest} requestParameters Request parameters.
1217
+ * @param {*} [options] Override http request option.
1218
+ * @throws {RequiredError}
1219
+ * @memberof IngredientsV1Api
1220
+ */
1221
+ ingredientsV1ControllerGetAllIngredients(requestParameters = {}, options) {
1222
+ return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetAllIngredients(requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(this.axios, this.basePath));
1223
+ }
1138
1224
  /**
1139
1225
  *
1140
1226
  * @summary Get ingredients
@@ -0,0 +1,22 @@
1
+ # GetAllIngredientsResponseDto
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **items** | [**Array&lt;IngredientDto&gt;**](IngredientDto.md) | | [default to undefined]
9
+ **totalItems** | **number** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { GetAllIngredientsResponseDto } from '@dimrev4/fitness-v3-backend-sdk';
15
+
16
+ const instance: GetAllIngredientsResponseDto = {
17
+ items,
18
+ totalItems,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
7
  |[**ingredientsV1ControllerCreateIngredient**](#ingredientsv1controllercreateingredient) | **POST** /api/ingredients/v1 | Create ingredient|
8
+ |[**ingredientsV1ControllerGetAllIngredients**](#ingredientsv1controllergetallingredients) | **GET** /api/ingredients/v1/all | Get all ingredients|
8
9
  |[**ingredientsV1ControllerGetIngredients**](#ingredientsv1controllergetingredients) | **GET** /api/ingredients/v1 | Get ingredients|
9
10
 
10
11
  # **ingredientsV1ControllerCreateIngredient**
@@ -61,6 +62,68 @@ const { status, data } = await apiInstance.ingredientsV1ControllerCreateIngredie
61
62
 
62
63
  [[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
64
 
65
+ # **ingredientsV1ControllerGetAllIngredients**
66
+ > GetAllIngredientsResponseDto ingredientsV1ControllerGetAllIngredients()
67
+
68
+
69
+ ### Example
70
+
71
+ ```typescript
72
+ import {
73
+ IngredientsV1Api,
74
+ Configuration
75
+ } from '@dimrev4/fitness-v3-backend-sdk';
76
+
77
+ const configuration = new Configuration();
78
+ const apiInstance = new IngredientsV1Api(configuration);
79
+
80
+ let name: string; //Ingredient name (optional) (default to undefined)
81
+ let query: string; //Ingredient query (optional) (default to undefined)
82
+ let orderBy: string; //Order by (optional) (default to undefined)
83
+ let isAsc: boolean; //Sort order direction (true for ascending, false for descending) (optional) (default to undefined)
84
+
85
+ const { status, data } = await apiInstance.ingredientsV1ControllerGetAllIngredients(
86
+ name,
87
+ query,
88
+ orderBy,
89
+ isAsc
90
+ );
91
+ ```
92
+
93
+ ### Parameters
94
+
95
+ |Name | Type | Description | Notes|
96
+ |------------- | ------------- | ------------- | -------------|
97
+ | **name** | [**string**] | Ingredient name | (optional) defaults to undefined|
98
+ | **query** | [**string**] | Ingredient query | (optional) defaults to undefined|
99
+ | **orderBy** | [**string**] | Order by | (optional) defaults to undefined|
100
+ | **isAsc** | [**boolean**] | Sort order direction (true for ascending, false for descending) | (optional) defaults to undefined|
101
+
102
+
103
+ ### Return type
104
+
105
+ **GetAllIngredientsResponseDto**
106
+
107
+ ### Authorization
108
+
109
+ [apiKey](../README.md#apiKey), [bearer](../README.md#bearer)
110
+
111
+ ### HTTP request headers
112
+
113
+ - **Content-Type**: Not defined
114
+ - **Accept**: application/json
115
+
116
+
117
+ ### HTTP response details
118
+ | Status code | Description | Response headers |
119
+ |-------------|-------------|------------------|
120
+ |**200** | | - |
121
+ |**400** | Invalid JWT payload structure or validation failed | - |
122
+ |**401** | JWT token is missing, expired, or invalid | - |
123
+ |**500** | Internal server error during JWT validation | - |
124
+
125
+ [[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)
126
+
64
127
  # **ingredientsV1ControllerGetIngredients**
65
128
  > GetIngredientsResponseDto ingredientsV1ControllerGetIngredients()
66
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimrev4/fitness-v3-backend",
3
- "version": "0.0.29",
3
+ "version": "0.0.30",
4
4
  "description": "OpenAPI client for @dimrev4/fitness-v3-backend",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {