@dimrev4/fitness-v3-backend 0.0.9 → 0.0.11

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.
@@ -12,6 +12,7 @@ docs/CreateMealIngredientDto.md
12
12
  docs/CreateMealRequestDto.md
13
13
  docs/CreateMeasurementRequestDto.md
14
14
  docs/DeleteMeasurementResponseDto.md
15
+ docs/GetAllMealsResponseDto.md
15
16
  docs/GetIngredientsResponseDto.md
16
17
  docs/GetMeResponseDto.md
17
18
  docs/GetMealsResponseDto.md
package/api.ts CHANGED
@@ -329,6 +329,25 @@ export interface DeleteMeasurementResponseDto {
329
329
  */
330
330
  'id': string;
331
331
  }
332
+ /**
333
+ *
334
+ * @export
335
+ * @interface GetAllMealsResponseDto
336
+ */
337
+ export interface GetAllMealsResponseDto {
338
+ /**
339
+ *
340
+ * @type {Array<SavedMealDto>}
341
+ * @memberof GetAllMealsResponseDto
342
+ */
343
+ 'items': Array<SavedMealDto>;
344
+ /**
345
+ *
346
+ * @type {number}
347
+ * @memberof GetAllMealsResponseDto
348
+ */
349
+ 'totalItems': number;
350
+ }
332
351
  /**
333
352
  *
334
353
  * @export
@@ -532,18 +551,18 @@ export interface IngredientDto {
532
551
  * @memberof IngredientDto
533
552
  */
534
553
  'description': string;
535
- /**
536
- * Ingredient portion grams
537
- * @type {number}
538
- * @memberof IngredientDto
539
- */
540
- 'portionGrams': number;
541
554
  /**
542
555
  * Ingredient image URL
543
556
  * @type {string}
544
557
  * @memberof IngredientDto
545
558
  */
546
559
  'imgUrl': string;
560
+ /**
561
+ * Ingredient portion grams
562
+ * @type {number}
563
+ * @memberof IngredientDto
564
+ */
565
+ 'portionGrams': number;
547
566
  /**
548
567
  * Ingredient food category
549
568
  * @type {string}
@@ -2294,10 +2313,11 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
2294
2313
  * @param {string} [name] Ingredient name
2295
2314
  * @param {string} [query] Ingredient query
2296
2315
  * @param {string} [orderBy] Order by
2316
+ * @param {boolean} [isAsc] Ascending order
2297
2317
  * @param {*} [options] Override http request option.
2298
2318
  * @throws {RequiredError}
2299
2319
  */
2300
- ingredientsV1ControllerGetIngredients: async (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2320
+ ingredientsV1ControllerGetIngredients: async (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2301
2321
  const localVarPath = `/api/ingredients/v1`;
2302
2322
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2303
2323
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -2337,6 +2357,10 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
2337
2357
  localVarQueryParameter['orderBy'] = orderBy;
2338
2358
  }
2339
2359
 
2360
+ if (isAsc !== undefined) {
2361
+ localVarQueryParameter['isAsc'] = isAsc;
2362
+ }
2363
+
2340
2364
 
2341
2365
 
2342
2366
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -2379,11 +2403,12 @@ export const IngredientsV1ApiFp = function(configuration?: Configuration) {
2379
2403
  * @param {string} [name] Ingredient name
2380
2404
  * @param {string} [query] Ingredient query
2381
2405
  * @param {string} [orderBy] Order by
2406
+ * @param {boolean} [isAsc] Ascending order
2382
2407
  * @param {*} [options] Override http request option.
2383
2408
  * @throws {RequiredError}
2384
2409
  */
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);
2410
+ async ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>> {
2411
+ const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, isAsc, options);
2387
2412
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
2388
2413
  const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredients']?.[localVarOperationServerIndex]?.url;
2389
2414
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -2416,7 +2441,7 @@ export const IngredientsV1ApiFactory = function (configuration?: Configuration,
2416
2441
  * @throws {RequiredError}
2417
2442
  */
2418
2443
  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));
2444
+ return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, requestParameters.isAsc, options).then((request) => request(axios, basePath));
2420
2445
  },
2421
2446
  };
2422
2447
  };
@@ -2503,6 +2528,13 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest {
2503
2528
  * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2504
2529
  */
2505
2530
  readonly orderBy?: string
2531
+
2532
+ /**
2533
+ * Ascending order
2534
+ * @type {boolean}
2535
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2536
+ */
2537
+ readonly isAsc?: boolean
2506
2538
  }
2507
2539
 
2508
2540
  /**
@@ -2533,7 +2565,7 @@ export class IngredientsV1Api extends BaseAPI implements IngredientsV1ApiInterfa
2533
2565
  * @memberof IngredientsV1Api
2534
2566
  */
2535
2567
  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));
2568
+ 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
2569
  }
2538
2570
  }
2539
2571
 
@@ -3463,6 +3495,83 @@ export const SavedMealsV1ApiAxiosParamCreator = function (configuration?: Config
3463
3495
  options: localVarRequestOptions,
3464
3496
  };
3465
3497
  },
3498
+ /**
3499
+ *
3500
+ * @summary Get saved meals
3501
+ * @param {string} [name] Meal name
3502
+ * @param {string} [query] Meal query
3503
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>} [mealTypes] Order by
3504
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>} [foodCategories] Food category
3505
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>} [types] Resource type
3506
+ * @param {string} [userId] User id
3507
+ * @param {string} [groupIds] Group id
3508
+ * @param {string} [orderBy] Order by
3509
+ * @param {*} [options] Override http request option.
3510
+ * @throws {RequiredError}
3511
+ */
3512
+ savedMealsV1ControllerGetAllSavedMeals: async (name?: string, query?: string, mealTypes?: Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>, foodCategories?: Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>, types?: Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>, userId?: string, groupIds?: string, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3513
+ const localVarPath = `/api/meals/v1/all`;
3514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3516
+ let baseOptions;
3517
+ if (configuration) {
3518
+ baseOptions = configuration.baseOptions;
3519
+ }
3520
+
3521
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3522
+ const localVarHeaderParameter = {} as any;
3523
+ const localVarQueryParameter = {} as any;
3524
+
3525
+ // authentication apiKey required
3526
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
3527
+
3528
+ // authentication bearer required
3529
+ // http bearer authentication required
3530
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3531
+
3532
+ if (name !== undefined) {
3533
+ localVarQueryParameter['name'] = name;
3534
+ }
3535
+
3536
+ if (query !== undefined) {
3537
+ localVarQueryParameter['query'] = query;
3538
+ }
3539
+
3540
+ if (mealTypes) {
3541
+ localVarQueryParameter['mealTypes'] = mealTypes;
3542
+ }
3543
+
3544
+ if (foodCategories) {
3545
+ localVarQueryParameter['foodCategories'] = foodCategories;
3546
+ }
3547
+
3548
+ if (types) {
3549
+ localVarQueryParameter['types'] = types;
3550
+ }
3551
+
3552
+ if (userId !== undefined) {
3553
+ localVarQueryParameter['userId'] = userId;
3554
+ }
3555
+
3556
+ if (groupIds !== undefined) {
3557
+ localVarQueryParameter['groupIds'] = groupIds;
3558
+ }
3559
+
3560
+ if (orderBy !== undefined) {
3561
+ localVarQueryParameter['orderBy'] = orderBy;
3562
+ }
3563
+
3564
+
3565
+
3566
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3567
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3568
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3569
+
3570
+ return {
3571
+ url: toPathString(localVarUrlObj),
3572
+ options: localVarRequestOptions,
3573
+ };
3574
+ },
3466
3575
  /**
3467
3576
  *
3468
3577
  * @summary Get saved meal
@@ -3661,6 +3770,26 @@ export const SavedMealsV1ApiFp = function(configuration?: Configuration) {
3661
3770
  const localVarOperationServerBasePath = operationServerMap['SavedMealsV1Api.savedMealsV1ControllerCreateSavedMeal']?.[localVarOperationServerIndex]?.url;
3662
3771
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3663
3772
  },
3773
+ /**
3774
+ *
3775
+ * @summary Get saved meals
3776
+ * @param {string} [name] Meal name
3777
+ * @param {string} [query] Meal query
3778
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>} [mealTypes] Order by
3779
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>} [foodCategories] Food category
3780
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>} [types] Resource type
3781
+ * @param {string} [userId] User id
3782
+ * @param {string} [groupIds] Group id
3783
+ * @param {string} [orderBy] Order by
3784
+ * @param {*} [options] Override http request option.
3785
+ * @throws {RequiredError}
3786
+ */
3787
+ async savedMealsV1ControllerGetAllSavedMeals(name?: string, query?: string, mealTypes?: Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>, foodCategories?: Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>, types?: Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>, userId?: string, groupIds?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllMealsResponseDto>> {
3788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.savedMealsV1ControllerGetAllSavedMeals(name, query, mealTypes, foodCategories, types, userId, groupIds, orderBy, options);
3789
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3790
+ const localVarOperationServerBasePath = operationServerMap['SavedMealsV1Api.savedMealsV1ControllerGetAllSavedMeals']?.[localVarOperationServerIndex]?.url;
3791
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3792
+ },
3664
3793
  /**
3665
3794
  *
3666
3795
  * @summary Get saved meal
@@ -3730,6 +3859,16 @@ export const SavedMealsV1ApiFactory = function (configuration?: Configuration, b
3730
3859
  savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto> {
3731
3860
  return localVarFp.savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(axios, basePath));
3732
3861
  },
3862
+ /**
3863
+ *
3864
+ * @summary Get saved meals
3865
+ * @param {SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest} requestParameters Request parameters.
3866
+ * @param {*} [options] Override http request option.
3867
+ * @throws {RequiredError}
3868
+ */
3869
+ savedMealsV1ControllerGetAllSavedMeals(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<GetAllMealsResponseDto> {
3870
+ return localVarFp.savedMealsV1ControllerGetAllSavedMeals(requestParameters.name, requestParameters.query, requestParameters.mealTypes, requestParameters.foodCategories, requestParameters.types, requestParameters.userId, requestParameters.groupIds, requestParameters.orderBy, options).then((request) => request(axios, basePath));
3871
+ },
3733
3872
  /**
3734
3873
  *
3735
3874
  * @summary Get saved meal
@@ -3779,6 +3918,16 @@ export interface SavedMealsV1ApiInterface {
3779
3918
  */
3780
3919
  savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
3781
3920
 
3921
+ /**
3922
+ *
3923
+ * @summary Get saved meals
3924
+ * @param {SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest} requestParameters Request parameters.
3925
+ * @param {*} [options] Override http request option.
3926
+ * @throws {RequiredError}
3927
+ * @memberof SavedMealsV1ApiInterface
3928
+ */
3929
+ savedMealsV1ControllerGetAllSavedMeals(requestParameters?: SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllMealsResponseDto>;
3930
+
3782
3931
  /**
3783
3932
  *
3784
3933
  * @summary Get saved meal
@@ -3825,6 +3974,69 @@ export interface SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest {
3825
3974
  readonly createMealRequestDto: CreateMealRequestDto
3826
3975
  }
3827
3976
 
3977
+ /**
3978
+ * Request parameters for savedMealsV1ControllerGetAllSavedMeals operation in SavedMealsV1Api.
3979
+ * @export
3980
+ * @interface SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest
3981
+ */
3982
+ export interface SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest {
3983
+ /**
3984
+ * Meal name
3985
+ * @type {string}
3986
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
3987
+ */
3988
+ readonly name?: string
3989
+
3990
+ /**
3991
+ * Meal query
3992
+ * @type {string}
3993
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
3994
+ */
3995
+ readonly query?: string
3996
+
3997
+ /**
3998
+ * Order by
3999
+ * @type {Array<'BREAKFAST' | 'LUNCH' | 'DINNER' | 'SNACK' | 'DESSERT'>}
4000
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
4001
+ */
4002
+ readonly mealTypes?: Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>
4003
+
4004
+ /**
4005
+ * Food category
4006
+ * @type {Array<'DAIRY' | 'PROTEIN' | 'CARBOHYDRATES' | 'FRUITS' | 'VEGETABLES' | 'FATS' | 'GRAINS' | 'BEVERAGES' | 'SWEETS'>}
4007
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
4008
+ */
4009
+ readonly foodCategories?: Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>
4010
+
4011
+ /**
4012
+ * Resource type
4013
+ * @type {Array<'user' | 'group' | 'global'>}
4014
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
4015
+ */
4016
+ readonly types?: Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>
4017
+
4018
+ /**
4019
+ * User id
4020
+ * @type {string}
4021
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
4022
+ */
4023
+ readonly userId?: string
4024
+
4025
+ /**
4026
+ * Group id
4027
+ * @type {string}
4028
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
4029
+ */
4030
+ readonly groupIds?: string
4031
+
4032
+ /**
4033
+ * Order by
4034
+ * @type {string}
4035
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
4036
+ */
4037
+ readonly orderBy?: string
4038
+ }
4039
+
3828
4040
  /**
3829
4041
  * Request parameters for savedMealsV1ControllerGetSavedMeal operation in SavedMealsV1Api.
3830
4042
  * @export
@@ -3956,6 +4168,18 @@ export class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiInterface
3956
4168
  return SavedMealsV1ApiFp(this.configuration).savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(this.axios, this.basePath));
3957
4169
  }
3958
4170
 
4171
+ /**
4172
+ *
4173
+ * @summary Get saved meals
4174
+ * @param {SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest} requestParameters Request parameters.
4175
+ * @param {*} [options] Override http request option.
4176
+ * @throws {RequiredError}
4177
+ * @memberof SavedMealsV1Api
4178
+ */
4179
+ public savedMealsV1ControllerGetAllSavedMeals(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest = {}, options?: RawAxiosRequestConfig) {
4180
+ return SavedMealsV1ApiFp(this.configuration).savedMealsV1ControllerGetAllSavedMeals(requestParameters.name, requestParameters.query, requestParameters.mealTypes, requestParameters.foodCategories, requestParameters.types, requestParameters.userId, requestParameters.groupIds, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
4181
+ }
4182
+
3959
4183
  /**
3960
4184
  *
3961
4185
  * @summary Get saved meal
@@ -3993,6 +4217,41 @@ export class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiInterface
3993
4217
  }
3994
4218
  }
3995
4219
 
4220
+ /**
4221
+ * @export
4222
+ */
4223
+ export const SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum = {
4224
+ Breakfast: 'BREAKFAST',
4225
+ Lunch: 'LUNCH',
4226
+ Dinner: 'DINNER',
4227
+ Snack: 'SNACK',
4228
+ Dessert: 'DESSERT'
4229
+ } as const;
4230
+ export type SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum = typeof SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum[keyof typeof SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum];
4231
+ /**
4232
+ * @export
4233
+ */
4234
+ export const SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum = {
4235
+ Dairy: 'DAIRY',
4236
+ Protein: 'PROTEIN',
4237
+ Carbohydrates: 'CARBOHYDRATES',
4238
+ Fruits: 'FRUITS',
4239
+ Vegetables: 'VEGETABLES',
4240
+ Fats: 'FATS',
4241
+ Grains: 'GRAINS',
4242
+ Beverages: 'BEVERAGES',
4243
+ Sweets: 'SWEETS'
4244
+ } as const;
4245
+ export type SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum = typeof SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum[keyof typeof SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum];
4246
+ /**
4247
+ * @export
4248
+ */
4249
+ export const SavedMealsV1ControllerGetAllSavedMealsTypesEnum = {
4250
+ User: 'user',
4251
+ Group: 'group',
4252
+ Global: 'global'
4253
+ } as const;
4254
+ export type SavedMealsV1ControllerGetAllSavedMealsTypesEnum = typeof SavedMealsV1ControllerGetAllSavedMealsTypesEnum[keyof typeof SavedMealsV1ControllerGetAllSavedMealsTypesEnum];
3996
4255
  /**
3997
4256
  * @export
3998
4257
  */
package/dist/api.d.ts CHANGED
@@ -313,6 +313,25 @@ export interface DeleteMeasurementResponseDto {
313
313
  */
314
314
  'id': string;
315
315
  }
316
+ /**
317
+ *
318
+ * @export
319
+ * @interface GetAllMealsResponseDto
320
+ */
321
+ export interface GetAllMealsResponseDto {
322
+ /**
323
+ *
324
+ * @type {Array<SavedMealDto>}
325
+ * @memberof GetAllMealsResponseDto
326
+ */
327
+ 'items': Array<SavedMealDto>;
328
+ /**
329
+ *
330
+ * @type {number}
331
+ * @memberof GetAllMealsResponseDto
332
+ */
333
+ 'totalItems': number;
334
+ }
316
335
  /**
317
336
  *
318
337
  * @export
@@ -516,18 +535,18 @@ export interface IngredientDto {
516
535
  * @memberof IngredientDto
517
536
  */
518
537
  'description': string;
519
- /**
520
- * Ingredient portion grams
521
- * @type {number}
522
- * @memberof IngredientDto
523
- */
524
- 'portionGrams': number;
525
538
  /**
526
539
  * Ingredient image URL
527
540
  * @type {string}
528
541
  * @memberof IngredientDto
529
542
  */
530
543
  'imgUrl': string;
544
+ /**
545
+ * Ingredient portion grams
546
+ * @type {number}
547
+ * @memberof IngredientDto
548
+ */
549
+ 'portionGrams': number;
531
550
  /**
532
551
  * Ingredient food category
533
552
  * @type {string}
@@ -1957,10 +1976,11 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
1957
1976
  * @param {string} [name] Ingredient name
1958
1977
  * @param {string} [query] Ingredient query
1959
1978
  * @param {string} [orderBy] Order by
1979
+ * @param {boolean} [isAsc] Ascending order
1960
1980
  * @param {*} [options] Override http request option.
1961
1981
  * @throws {RequiredError}
1962
1982
  */
1963
- ingredientsV1ControllerGetIngredients: (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1983
+ ingredientsV1ControllerGetIngredients: (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1964
1984
  };
1965
1985
  /**
1966
1986
  * IngredientsV1Api - functional programming interface
@@ -1983,10 +2003,11 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
1983
2003
  * @param {string} [name] Ingredient name
1984
2004
  * @param {string} [query] Ingredient query
1985
2005
  * @param {string} [orderBy] Order by
2006
+ * @param {boolean} [isAsc] Ascending order
1986
2007
  * @param {*} [options] Override http request option.
1987
2008
  * @throws {RequiredError}
1988
2009
  */
1989
- ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>>;
2010
+ ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, isAsc?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetIngredientsResponseDto>>;
1990
2011
  };
1991
2012
  /**
1992
2013
  * IngredientsV1Api - factory interface
@@ -2084,6 +2105,12 @@ export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest {
2084
2105
  * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2085
2106
  */
2086
2107
  readonly orderBy?: string;
2108
+ /**
2109
+ * Ascending order
2110
+ * @type {boolean}
2111
+ * @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
2112
+ */
2113
+ readonly isAsc?: boolean;
2087
2114
  }
2088
2115
  /**
2089
2116
  * IngredientsV1Api - object-oriented interface
@@ -2614,6 +2641,21 @@ export declare const SavedMealsV1ApiAxiosParamCreator: (configuration?: Configur
2614
2641
  * @throws {RequiredError}
2615
2642
  */
2616
2643
  savedMealsV1ControllerCreateSavedMeal: (createMealRequestDto: CreateMealRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2644
+ /**
2645
+ *
2646
+ * @summary Get saved meals
2647
+ * @param {string} [name] Meal name
2648
+ * @param {string} [query] Meal query
2649
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>} [mealTypes] Order by
2650
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>} [foodCategories] Food category
2651
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>} [types] Resource type
2652
+ * @param {string} [userId] User id
2653
+ * @param {string} [groupIds] Group id
2654
+ * @param {string} [orderBy] Order by
2655
+ * @param {*} [options] Override http request option.
2656
+ * @throws {RequiredError}
2657
+ */
2658
+ savedMealsV1ControllerGetAllSavedMeals: (name?: string, query?: string, mealTypes?: Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>, foodCategories?: Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>, types?: Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>, userId?: string, groupIds?: string, orderBy?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2617
2659
  /**
2618
2660
  *
2619
2661
  * @summary Get saved meal
@@ -2662,6 +2704,21 @@ export declare const SavedMealsV1ApiFp: (configuration?: Configuration) => {
2662
2704
  * @throws {RequiredError}
2663
2705
  */
2664
2706
  savedMealsV1ControllerCreateSavedMeal(createMealRequestDto: CreateMealRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SavedMealDetailsDto>>;
2707
+ /**
2708
+ *
2709
+ * @summary Get saved meals
2710
+ * @param {string} [name] Meal name
2711
+ * @param {string} [query] Meal query
2712
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>} [mealTypes] Order by
2713
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>} [foodCategories] Food category
2714
+ * @param {Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>} [types] Resource type
2715
+ * @param {string} [userId] User id
2716
+ * @param {string} [groupIds] Group id
2717
+ * @param {string} [orderBy] Order by
2718
+ * @param {*} [options] Override http request option.
2719
+ * @throws {RequiredError}
2720
+ */
2721
+ savedMealsV1ControllerGetAllSavedMeals(name?: string, query?: string, mealTypes?: Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>, foodCategories?: Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>, types?: Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>, userId?: string, groupIds?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAllMealsResponseDto>>;
2665
2722
  /**
2666
2723
  *
2667
2724
  * @summary Get saved meal
@@ -2710,6 +2767,14 @@ export declare const SavedMealsV1ApiFactory: (configuration?: Configuration, bas
2710
2767
  * @throws {RequiredError}
2711
2768
  */
2712
2769
  savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
2770
+ /**
2771
+ *
2772
+ * @summary Get saved meals
2773
+ * @param {SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest} requestParameters Request parameters.
2774
+ * @param {*} [options] Override http request option.
2775
+ * @throws {RequiredError}
2776
+ */
2777
+ savedMealsV1ControllerGetAllSavedMeals(requestParameters?: SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllMealsResponseDto>;
2713
2778
  /**
2714
2779
  *
2715
2780
  * @summary Get saved meal
@@ -2750,6 +2815,15 @@ export interface SavedMealsV1ApiInterface {
2750
2815
  * @memberof SavedMealsV1ApiInterface
2751
2816
  */
2752
2817
  savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
2818
+ /**
2819
+ *
2820
+ * @summary Get saved meals
2821
+ * @param {SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest} requestParameters Request parameters.
2822
+ * @param {*} [options] Override http request option.
2823
+ * @throws {RequiredError}
2824
+ * @memberof SavedMealsV1ApiInterface
2825
+ */
2826
+ savedMealsV1ControllerGetAllSavedMeals(requestParameters?: SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest, options?: RawAxiosRequestConfig): AxiosPromise<GetAllMealsResponseDto>;
2753
2827
  /**
2754
2828
  *
2755
2829
  * @summary Get saved meal
@@ -2791,6 +2865,61 @@ export interface SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest {
2791
2865
  */
2792
2866
  readonly createMealRequestDto: CreateMealRequestDto;
2793
2867
  }
2868
+ /**
2869
+ * Request parameters for savedMealsV1ControllerGetAllSavedMeals operation in SavedMealsV1Api.
2870
+ * @export
2871
+ * @interface SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest
2872
+ */
2873
+ export interface SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest {
2874
+ /**
2875
+ * Meal name
2876
+ * @type {string}
2877
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2878
+ */
2879
+ readonly name?: string;
2880
+ /**
2881
+ * Meal query
2882
+ * @type {string}
2883
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2884
+ */
2885
+ readonly query?: string;
2886
+ /**
2887
+ * Order by
2888
+ * @type {Array<'BREAKFAST' | 'LUNCH' | 'DINNER' | 'SNACK' | 'DESSERT'>}
2889
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2890
+ */
2891
+ readonly mealTypes?: Array<SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum>;
2892
+ /**
2893
+ * Food category
2894
+ * @type {Array<'DAIRY' | 'PROTEIN' | 'CARBOHYDRATES' | 'FRUITS' | 'VEGETABLES' | 'FATS' | 'GRAINS' | 'BEVERAGES' | 'SWEETS'>}
2895
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2896
+ */
2897
+ readonly foodCategories?: Array<SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum>;
2898
+ /**
2899
+ * Resource type
2900
+ * @type {Array<'user' | 'group' | 'global'>}
2901
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2902
+ */
2903
+ readonly types?: Array<SavedMealsV1ControllerGetAllSavedMealsTypesEnum>;
2904
+ /**
2905
+ * User id
2906
+ * @type {string}
2907
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2908
+ */
2909
+ readonly userId?: string;
2910
+ /**
2911
+ * Group id
2912
+ * @type {string}
2913
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2914
+ */
2915
+ readonly groupIds?: string;
2916
+ /**
2917
+ * Order by
2918
+ * @type {string}
2919
+ * @memberof SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMeals
2920
+ */
2921
+ readonly orderBy?: string;
2922
+ }
2794
2923
  /**
2795
2924
  * Request parameters for savedMealsV1ControllerGetSavedMeal operation in SavedMealsV1Api.
2796
2925
  * @export
@@ -2906,6 +3035,15 @@ export declare class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiI
2906
3035
  * @memberof SavedMealsV1Api
2907
3036
  */
2908
3037
  savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SavedMealDetailsDto, any, {}>>;
3038
+ /**
3039
+ *
3040
+ * @summary Get saved meals
3041
+ * @param {SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest} requestParameters Request parameters.
3042
+ * @param {*} [options] Override http request option.
3043
+ * @throws {RequiredError}
3044
+ * @memberof SavedMealsV1Api
3045
+ */
3046
+ savedMealsV1ControllerGetAllSavedMeals(requestParameters?: SavedMealsV1ApiSavedMealsV1ControllerGetAllSavedMealsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAllMealsResponseDto, any, {}>>;
2909
3047
  /**
2910
3048
  *
2911
3049
  * @summary Get saved meal
@@ -2934,6 +3072,41 @@ export declare class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiI
2934
3072
  */
2935
3073
  savedMealsV1ControllerUpdateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerUpdateSavedMealRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SavedMealDetailsDto, any, {}>>;
2936
3074
  }
3075
+ /**
3076
+ * @export
3077
+ */
3078
+ export declare const SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum: {
3079
+ readonly Breakfast: "BREAKFAST";
3080
+ readonly Lunch: "LUNCH";
3081
+ readonly Dinner: "DINNER";
3082
+ readonly Snack: "SNACK";
3083
+ readonly Dessert: "DESSERT";
3084
+ };
3085
+ export type SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum = typeof SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum[keyof typeof SavedMealsV1ControllerGetAllSavedMealsMealTypesEnum];
3086
+ /**
3087
+ * @export
3088
+ */
3089
+ export declare const SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum: {
3090
+ readonly Dairy: "DAIRY";
3091
+ readonly Protein: "PROTEIN";
3092
+ readonly Carbohydrates: "CARBOHYDRATES";
3093
+ readonly Fruits: "FRUITS";
3094
+ readonly Vegetables: "VEGETABLES";
3095
+ readonly Fats: "FATS";
3096
+ readonly Grains: "GRAINS";
3097
+ readonly Beverages: "BEVERAGES";
3098
+ readonly Sweets: "SWEETS";
3099
+ };
3100
+ export type SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum = typeof SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum[keyof typeof SavedMealsV1ControllerGetAllSavedMealsFoodCategoriesEnum];
3101
+ /**
3102
+ * @export
3103
+ */
3104
+ export declare const SavedMealsV1ControllerGetAllSavedMealsTypesEnum: {
3105
+ readonly User: "user";
3106
+ readonly Group: "group";
3107
+ readonly Global: "global";
3108
+ };
3109
+ export type SavedMealsV1ControllerGetAllSavedMealsTypesEnum = typeof SavedMealsV1ControllerGetAllSavedMealsTypesEnum[keyof typeof SavedMealsV1ControllerGetAllSavedMealsTypesEnum];
2937
3110
  /**
2938
3111
  * @export
2939
3112
  */