@dimrev4/fitness-v3-backend 0.0.44 → 0.0.46
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/.turbo/turbo-build.log +4 -5
- package/api.ts +200 -0
- package/dist/api.d.ts +110 -0
- package/dist/api.js +142 -0
- package/dist/esm/api.d.ts +110 -0
- package/dist/esm/api.js +142 -0
- package/docs/IngredientsV1Api.md +54 -0
- package/docs/SavedMealsV1Api.md +54 -0
- package/package.json +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
>
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
|
|
2
|
+
> @dimrev4/fitness-v3-backend@0.0.44 build /home/dimar/Dev/Prod/fitness-app/fitness-mono-repo/packages/fitness-v3-backend-sdk
|
|
3
|
+
> tsc && tsc -p tsconfig.esm.json
|
|
4
|
+
|
package/api.ts
CHANGED
|
@@ -5390,6 +5390,47 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Confi
|
|
|
5390
5390
|
options: localVarRequestOptions,
|
|
5391
5391
|
};
|
|
5392
5392
|
},
|
|
5393
|
+
/**
|
|
5394
|
+
*
|
|
5395
|
+
* @summary Delete ingredient
|
|
5396
|
+
* @param {string} id
|
|
5397
|
+
* @param {*} [options] Override http request option.
|
|
5398
|
+
* @throws {RequiredError}
|
|
5399
|
+
*/
|
|
5400
|
+
ingredientsV1ControllerDeleteIngredient: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
5401
|
+
// verify required parameter 'id' is not null or undefined
|
|
5402
|
+
assertParamExists('ingredientsV1ControllerDeleteIngredient', 'id', id)
|
|
5403
|
+
const localVarPath = `/api/ingredients/v1/{id}`
|
|
5404
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
5405
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5406
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
5407
|
+
let baseOptions;
|
|
5408
|
+
if (configuration) {
|
|
5409
|
+
baseOptions = configuration.baseOptions;
|
|
5410
|
+
}
|
|
5411
|
+
|
|
5412
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
5413
|
+
const localVarHeaderParameter = {} as any;
|
|
5414
|
+
const localVarQueryParameter = {} as any;
|
|
5415
|
+
|
|
5416
|
+
// authentication apiKey required
|
|
5417
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
5418
|
+
|
|
5419
|
+
// authentication bearer required
|
|
5420
|
+
// http bearer authentication required
|
|
5421
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
5422
|
+
|
|
5423
|
+
|
|
5424
|
+
|
|
5425
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5427
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
5428
|
+
|
|
5429
|
+
return {
|
|
5430
|
+
url: toPathString(localVarUrlObj),
|
|
5431
|
+
options: localVarRequestOptions,
|
|
5432
|
+
};
|
|
5433
|
+
},
|
|
5393
5434
|
/**
|
|
5394
5435
|
*
|
|
5395
5436
|
* @summary Get all ingredients
|
|
@@ -5625,6 +5666,19 @@ export const IngredientsV1ApiFp = function(configuration?: Configuration) {
|
|
|
5625
5666
|
const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerCreateIngredient']?.[localVarOperationServerIndex]?.url;
|
|
5626
5667
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5627
5668
|
},
|
|
5669
|
+
/**
|
|
5670
|
+
*
|
|
5671
|
+
* @summary Delete ingredient
|
|
5672
|
+
* @param {string} id
|
|
5673
|
+
* @param {*} [options] Override http request option.
|
|
5674
|
+
* @throws {RequiredError}
|
|
5675
|
+
*/
|
|
5676
|
+
async ingredientsV1ControllerDeleteIngredient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>> {
|
|
5677
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerDeleteIngredient(id, options);
|
|
5678
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
5679
|
+
const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerDeleteIngredient']?.[localVarOperationServerIndex]?.url;
|
|
5680
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5681
|
+
},
|
|
5628
5682
|
/**
|
|
5629
5683
|
*
|
|
5630
5684
|
* @summary Get all ingredients
|
|
@@ -5706,6 +5760,16 @@ export const IngredientsV1ApiFactory = function (configuration?: Configuration,
|
|
|
5706
5760
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto> {
|
|
5707
5761
|
return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
|
|
5708
5762
|
},
|
|
5763
|
+
/**
|
|
5764
|
+
*
|
|
5765
|
+
* @summary Delete ingredient
|
|
5766
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
5767
|
+
* @param {*} [options] Override http request option.
|
|
5768
|
+
* @throws {RequiredError}
|
|
5769
|
+
*/
|
|
5770
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto> {
|
|
5771
|
+
return localVarFp.ingredientsV1ControllerDeleteIngredient(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
5772
|
+
},
|
|
5709
5773
|
/**
|
|
5710
5774
|
*
|
|
5711
5775
|
* @summary Get all ingredients
|
|
@@ -5765,6 +5829,16 @@ export interface IngredientsV1ApiInterface {
|
|
|
5765
5829
|
*/
|
|
5766
5830
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
5767
5831
|
|
|
5832
|
+
/**
|
|
5833
|
+
*
|
|
5834
|
+
* @summary Delete ingredient
|
|
5835
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
5836
|
+
* @param {*} [options] Override http request option.
|
|
5837
|
+
* @throws {RequiredError}
|
|
5838
|
+
* @memberof IngredientsV1ApiInterface
|
|
5839
|
+
*/
|
|
5840
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
5841
|
+
|
|
5768
5842
|
/**
|
|
5769
5843
|
*
|
|
5770
5844
|
* @summary Get all ingredients
|
|
@@ -5821,6 +5895,20 @@ export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
|
|
|
5821
5895
|
readonly createIngredientRequestDto: CreateIngredientRequestDto
|
|
5822
5896
|
}
|
|
5823
5897
|
|
|
5898
|
+
/**
|
|
5899
|
+
* Request parameters for ingredientsV1ControllerDeleteIngredient operation in IngredientsV1Api.
|
|
5900
|
+
* @export
|
|
5901
|
+
* @interface IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest
|
|
5902
|
+
*/
|
|
5903
|
+
export interface IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest {
|
|
5904
|
+
/**
|
|
5905
|
+
*
|
|
5906
|
+
* @type {string}
|
|
5907
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerDeleteIngredient
|
|
5908
|
+
*/
|
|
5909
|
+
readonly id: string
|
|
5910
|
+
}
|
|
5911
|
+
|
|
5824
5912
|
/**
|
|
5825
5913
|
* Request parameters for ingredientsV1ControllerGetAllIngredients operation in IngredientsV1Api.
|
|
5826
5914
|
* @export
|
|
@@ -5959,6 +6047,18 @@ export class IngredientsV1Api extends BaseAPI implements IngredientsV1ApiInterfa
|
|
|
5959
6047
|
return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
5960
6048
|
}
|
|
5961
6049
|
|
|
6050
|
+
/**
|
|
6051
|
+
*
|
|
6052
|
+
* @summary Delete ingredient
|
|
6053
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
6054
|
+
* @param {*} [options] Override http request option.
|
|
6055
|
+
* @throws {RequiredError}
|
|
6056
|
+
* @memberof IngredientsV1Api
|
|
6057
|
+
*/
|
|
6058
|
+
public ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig) {
|
|
6059
|
+
return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerDeleteIngredient(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
6060
|
+
}
|
|
6061
|
+
|
|
5962
6062
|
/**
|
|
5963
6063
|
*
|
|
5964
6064
|
* @summary Get all ingredients
|
|
@@ -7052,6 +7152,47 @@ export const SavedMealsV1ApiAxiosParamCreator = function (configuration?: Config
|
|
|
7052
7152
|
options: localVarRequestOptions,
|
|
7053
7153
|
};
|
|
7054
7154
|
},
|
|
7155
|
+
/**
|
|
7156
|
+
*
|
|
7157
|
+
* @summary Delete saved meal
|
|
7158
|
+
* @param {string} id
|
|
7159
|
+
* @param {*} [options] Override http request option.
|
|
7160
|
+
* @throws {RequiredError}
|
|
7161
|
+
*/
|
|
7162
|
+
savedMealsV1ControllerDeleteSavedMeal: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7163
|
+
// verify required parameter 'id' is not null or undefined
|
|
7164
|
+
assertParamExists('savedMealsV1ControllerDeleteSavedMeal', 'id', id)
|
|
7165
|
+
const localVarPath = `/api/meals/v1/{id}`
|
|
7166
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
7167
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7168
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
7169
|
+
let baseOptions;
|
|
7170
|
+
if (configuration) {
|
|
7171
|
+
baseOptions = configuration.baseOptions;
|
|
7172
|
+
}
|
|
7173
|
+
|
|
7174
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
7175
|
+
const localVarHeaderParameter = {} as any;
|
|
7176
|
+
const localVarQueryParameter = {} as any;
|
|
7177
|
+
|
|
7178
|
+
// authentication apiKey required
|
|
7179
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
|
|
7180
|
+
|
|
7181
|
+
// authentication bearer required
|
|
7182
|
+
// http bearer authentication required
|
|
7183
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
7184
|
+
|
|
7185
|
+
|
|
7186
|
+
|
|
7187
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7188
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7189
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7190
|
+
|
|
7191
|
+
return {
|
|
7192
|
+
url: toPathString(localVarUrlObj),
|
|
7193
|
+
options: localVarRequestOptions,
|
|
7194
|
+
};
|
|
7195
|
+
},
|
|
7055
7196
|
/**
|
|
7056
7197
|
*
|
|
7057
7198
|
* @summary Get saved meals
|
|
@@ -7337,6 +7478,19 @@ export const SavedMealsV1ApiFp = function(configuration?: Configuration) {
|
|
|
7337
7478
|
const localVarOperationServerBasePath = operationServerMap['SavedMealsV1Api.savedMealsV1ControllerCreateSavedMeal']?.[localVarOperationServerIndex]?.url;
|
|
7338
7479
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7339
7480
|
},
|
|
7481
|
+
/**
|
|
7482
|
+
*
|
|
7483
|
+
* @summary Delete saved meal
|
|
7484
|
+
* @param {string} id
|
|
7485
|
+
* @param {*} [options] Override http request option.
|
|
7486
|
+
* @throws {RequiredError}
|
|
7487
|
+
*/
|
|
7488
|
+
async savedMealsV1ControllerDeleteSavedMeal(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7489
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.savedMealsV1ControllerDeleteSavedMeal(id, options);
|
|
7490
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7491
|
+
const localVarOperationServerBasePath = operationServerMap['SavedMealsV1Api.savedMealsV1ControllerDeleteSavedMeal']?.[localVarOperationServerIndex]?.url;
|
|
7492
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7493
|
+
},
|
|
7340
7494
|
/**
|
|
7341
7495
|
*
|
|
7342
7496
|
* @summary Get saved meals
|
|
@@ -7428,6 +7582,16 @@ export const SavedMealsV1ApiFactory = function (configuration?: Configuration, b
|
|
|
7428
7582
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto> {
|
|
7429
7583
|
return localVarFp.savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(axios, basePath));
|
|
7430
7584
|
},
|
|
7585
|
+
/**
|
|
7586
|
+
*
|
|
7587
|
+
* @summary Delete saved meal
|
|
7588
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
7589
|
+
* @param {*} [options] Override http request option.
|
|
7590
|
+
* @throws {RequiredError}
|
|
7591
|
+
*/
|
|
7592
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
7593
|
+
return localVarFp.savedMealsV1ControllerDeleteSavedMeal(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
7594
|
+
},
|
|
7431
7595
|
/**
|
|
7432
7596
|
*
|
|
7433
7597
|
* @summary Get saved meals
|
|
@@ -7487,6 +7651,16 @@ export interface SavedMealsV1ApiInterface {
|
|
|
7487
7651
|
*/
|
|
7488
7652
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
|
|
7489
7653
|
|
|
7654
|
+
/**
|
|
7655
|
+
*
|
|
7656
|
+
* @summary Delete saved meal
|
|
7657
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
7658
|
+
* @param {*} [options] Override http request option.
|
|
7659
|
+
* @throws {RequiredError}
|
|
7660
|
+
* @memberof SavedMealsV1ApiInterface
|
|
7661
|
+
*/
|
|
7662
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
7663
|
+
|
|
7490
7664
|
/**
|
|
7491
7665
|
*
|
|
7492
7666
|
* @summary Get saved meals
|
|
@@ -7543,6 +7717,20 @@ export interface SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest {
|
|
|
7543
7717
|
readonly createMealRequestDto: CreateMealRequestDto
|
|
7544
7718
|
}
|
|
7545
7719
|
|
|
7720
|
+
/**
|
|
7721
|
+
* Request parameters for savedMealsV1ControllerDeleteSavedMeal operation in SavedMealsV1Api.
|
|
7722
|
+
* @export
|
|
7723
|
+
* @interface SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest
|
|
7724
|
+
*/
|
|
7725
|
+
export interface SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest {
|
|
7726
|
+
/**
|
|
7727
|
+
*
|
|
7728
|
+
* @type {string}
|
|
7729
|
+
* @memberof SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMeal
|
|
7730
|
+
*/
|
|
7731
|
+
readonly id: string
|
|
7732
|
+
}
|
|
7733
|
+
|
|
7546
7734
|
/**
|
|
7547
7735
|
* Request parameters for savedMealsV1ControllerGetAllSavedMeals operation in SavedMealsV1Api.
|
|
7548
7736
|
* @export
|
|
@@ -7751,6 +7939,18 @@ export class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiInterface
|
|
|
7751
7939
|
return SavedMealsV1ApiFp(this.configuration).savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
7752
7940
|
}
|
|
7753
7941
|
|
|
7942
|
+
/**
|
|
7943
|
+
*
|
|
7944
|
+
* @summary Delete saved meal
|
|
7945
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
7946
|
+
* @param {*} [options] Override http request option.
|
|
7947
|
+
* @throws {RequiredError}
|
|
7948
|
+
* @memberof SavedMealsV1Api
|
|
7949
|
+
*/
|
|
7950
|
+
public savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig) {
|
|
7951
|
+
return SavedMealsV1ApiFp(this.configuration).savedMealsV1ControllerDeleteSavedMeal(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
7952
|
+
}
|
|
7953
|
+
|
|
7754
7954
|
/**
|
|
7755
7955
|
*
|
|
7756
7956
|
* @summary Get saved meals
|
package/dist/api.d.ts
CHANGED
|
@@ -4341,6 +4341,14 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
|
|
|
4341
4341
|
* @throws {RequiredError}
|
|
4342
4342
|
*/
|
|
4343
4343
|
ingredientsV1ControllerCreateIngredient: (createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4344
|
+
/**
|
|
4345
|
+
*
|
|
4346
|
+
* @summary Delete ingredient
|
|
4347
|
+
* @param {string} id
|
|
4348
|
+
* @param {*} [options] Override http request option.
|
|
4349
|
+
* @throws {RequiredError}
|
|
4350
|
+
*/
|
|
4351
|
+
ingredientsV1ControllerDeleteIngredient: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4344
4352
|
/**
|
|
4345
4353
|
*
|
|
4346
4354
|
* @summary Get all ingredients
|
|
@@ -4396,6 +4404,14 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
|
|
|
4396
4404
|
* @throws {RequiredError}
|
|
4397
4405
|
*/
|
|
4398
4406
|
ingredientsV1ControllerCreateIngredient(createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
|
|
4407
|
+
/**
|
|
4408
|
+
*
|
|
4409
|
+
* @summary Delete ingredient
|
|
4410
|
+
* @param {string} id
|
|
4411
|
+
* @param {*} [options] Override http request option.
|
|
4412
|
+
* @throws {RequiredError}
|
|
4413
|
+
*/
|
|
4414
|
+
ingredientsV1ControllerDeleteIngredient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
|
|
4399
4415
|
/**
|
|
4400
4416
|
*
|
|
4401
4417
|
* @summary Get all ingredients
|
|
@@ -4451,6 +4467,14 @@ export declare const IngredientsV1ApiFactory: (configuration?: Configuration, ba
|
|
|
4451
4467
|
* @throws {RequiredError}
|
|
4452
4468
|
*/
|
|
4453
4469
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Delete ingredient
|
|
4473
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
*/
|
|
4477
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4454
4478
|
/**
|
|
4455
4479
|
*
|
|
4456
4480
|
* @summary Get all ingredients
|
|
@@ -4499,6 +4523,15 @@ export interface IngredientsV1ApiInterface {
|
|
|
4499
4523
|
* @memberof IngredientsV1ApiInterface
|
|
4500
4524
|
*/
|
|
4501
4525
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4526
|
+
/**
|
|
4527
|
+
*
|
|
4528
|
+
* @summary Delete ingredient
|
|
4529
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
4530
|
+
* @param {*} [options] Override http request option.
|
|
4531
|
+
* @throws {RequiredError}
|
|
4532
|
+
* @memberof IngredientsV1ApiInterface
|
|
4533
|
+
*/
|
|
4534
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4502
4535
|
/**
|
|
4503
4536
|
*
|
|
4504
4537
|
* @summary Get all ingredients
|
|
@@ -4549,6 +4582,19 @@ export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
|
|
|
4549
4582
|
*/
|
|
4550
4583
|
readonly createIngredientRequestDto: CreateIngredientRequestDto;
|
|
4551
4584
|
}
|
|
4585
|
+
/**
|
|
4586
|
+
* Request parameters for ingredientsV1ControllerDeleteIngredient operation in IngredientsV1Api.
|
|
4587
|
+
* @export
|
|
4588
|
+
* @interface IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest
|
|
4589
|
+
*/
|
|
4590
|
+
export interface IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest {
|
|
4591
|
+
/**
|
|
4592
|
+
*
|
|
4593
|
+
* @type {string}
|
|
4594
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerDeleteIngredient
|
|
4595
|
+
*/
|
|
4596
|
+
readonly id: string;
|
|
4597
|
+
}
|
|
4552
4598
|
/**
|
|
4553
4599
|
* Request parameters for ingredientsV1ControllerGetAllIngredients operation in IngredientsV1Api.
|
|
4554
4600
|
* @export
|
|
@@ -4671,6 +4717,15 @@ export declare class IngredientsV1Api extends BaseAPI implements IngredientsV1Ap
|
|
|
4671
4717
|
* @memberof IngredientsV1Api
|
|
4672
4718
|
*/
|
|
4673
4719
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
|
|
4720
|
+
/**
|
|
4721
|
+
*
|
|
4722
|
+
* @summary Delete ingredient
|
|
4723
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
4724
|
+
* @param {*} [options] Override http request option.
|
|
4725
|
+
* @throws {RequiredError}
|
|
4726
|
+
* @memberof IngredientsV1Api
|
|
4727
|
+
*/
|
|
4728
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
|
|
4674
4729
|
/**
|
|
4675
4730
|
*
|
|
4676
4731
|
* @summary Get all ingredients
|
|
@@ -5274,6 +5329,14 @@ export declare const SavedMealsV1ApiAxiosParamCreator: (configuration?: Configur
|
|
|
5274
5329
|
* @throws {RequiredError}
|
|
5275
5330
|
*/
|
|
5276
5331
|
savedMealsV1ControllerCreateSavedMeal: (createMealRequestDto: CreateMealRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5332
|
+
/**
|
|
5333
|
+
*
|
|
5334
|
+
* @summary Delete saved meal
|
|
5335
|
+
* @param {string} id
|
|
5336
|
+
* @param {*} [options] Override http request option.
|
|
5337
|
+
* @throws {RequiredError}
|
|
5338
|
+
*/
|
|
5339
|
+
savedMealsV1ControllerDeleteSavedMeal: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5277
5340
|
/**
|
|
5278
5341
|
*
|
|
5279
5342
|
* @summary Get saved meals
|
|
@@ -5339,6 +5402,14 @@ export declare const SavedMealsV1ApiFp: (configuration?: Configuration) => {
|
|
|
5339
5402
|
* @throws {RequiredError}
|
|
5340
5403
|
*/
|
|
5341
5404
|
savedMealsV1ControllerCreateSavedMeal(createMealRequestDto: CreateMealRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SavedMealDetailsDto>>;
|
|
5405
|
+
/**
|
|
5406
|
+
*
|
|
5407
|
+
* @summary Delete saved meal
|
|
5408
|
+
* @param {string} id
|
|
5409
|
+
* @param {*} [options] Override http request option.
|
|
5410
|
+
* @throws {RequiredError}
|
|
5411
|
+
*/
|
|
5412
|
+
savedMealsV1ControllerDeleteSavedMeal(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5342
5413
|
/**
|
|
5343
5414
|
*
|
|
5344
5415
|
* @summary Get saved meals
|
|
@@ -5404,6 +5475,14 @@ export declare const SavedMealsV1ApiFactory: (configuration?: Configuration, bas
|
|
|
5404
5475
|
* @throws {RequiredError}
|
|
5405
5476
|
*/
|
|
5406
5477
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
|
|
5478
|
+
/**
|
|
5479
|
+
*
|
|
5480
|
+
* @summary Delete saved meal
|
|
5481
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
5482
|
+
* @param {*} [options] Override http request option.
|
|
5483
|
+
* @throws {RequiredError}
|
|
5484
|
+
*/
|
|
5485
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5407
5486
|
/**
|
|
5408
5487
|
*
|
|
5409
5488
|
* @summary Get saved meals
|
|
@@ -5452,6 +5531,15 @@ export interface SavedMealsV1ApiInterface {
|
|
|
5452
5531
|
* @memberof SavedMealsV1ApiInterface
|
|
5453
5532
|
*/
|
|
5454
5533
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
|
|
5534
|
+
/**
|
|
5535
|
+
*
|
|
5536
|
+
* @summary Delete saved meal
|
|
5537
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
5538
|
+
* @param {*} [options] Override http request option.
|
|
5539
|
+
* @throws {RequiredError}
|
|
5540
|
+
* @memberof SavedMealsV1ApiInterface
|
|
5541
|
+
*/
|
|
5542
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5455
5543
|
/**
|
|
5456
5544
|
*
|
|
5457
5545
|
* @summary Get saved meals
|
|
@@ -5502,6 +5590,19 @@ export interface SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest {
|
|
|
5502
5590
|
*/
|
|
5503
5591
|
readonly createMealRequestDto: CreateMealRequestDto;
|
|
5504
5592
|
}
|
|
5593
|
+
/**
|
|
5594
|
+
* Request parameters for savedMealsV1ControllerDeleteSavedMeal operation in SavedMealsV1Api.
|
|
5595
|
+
* @export
|
|
5596
|
+
* @interface SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest
|
|
5597
|
+
*/
|
|
5598
|
+
export interface SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest {
|
|
5599
|
+
/**
|
|
5600
|
+
*
|
|
5601
|
+
* @type {string}
|
|
5602
|
+
* @memberof SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMeal
|
|
5603
|
+
*/
|
|
5604
|
+
readonly id: string;
|
|
5605
|
+
}
|
|
5505
5606
|
/**
|
|
5506
5607
|
* Request parameters for savedMealsV1ControllerGetAllSavedMeals operation in SavedMealsV1Api.
|
|
5507
5608
|
* @export
|
|
@@ -5684,6 +5785,15 @@ export declare class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiI
|
|
|
5684
5785
|
* @memberof SavedMealsV1Api
|
|
5685
5786
|
*/
|
|
5686
5787
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SavedMealDetailsDto, any, {}>>;
|
|
5788
|
+
/**
|
|
5789
|
+
*
|
|
5790
|
+
* @summary Delete saved meal
|
|
5791
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
5792
|
+
* @param {*} [options] Override http request option.
|
|
5793
|
+
* @throws {RequiredError}
|
|
5794
|
+
* @memberof SavedMealsV1Api
|
|
5795
|
+
*/
|
|
5796
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
5687
5797
|
/**
|
|
5688
5798
|
*
|
|
5689
5799
|
* @summary Get saved meals
|
package/dist/api.js
CHANGED
|
@@ -1825,6 +1825,40 @@ const IngredientsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
1825
1825
|
options: localVarRequestOptions,
|
|
1826
1826
|
};
|
|
1827
1827
|
}),
|
|
1828
|
+
/**
|
|
1829
|
+
*
|
|
1830
|
+
* @summary Delete ingredient
|
|
1831
|
+
* @param {string} id
|
|
1832
|
+
* @param {*} [options] Override http request option.
|
|
1833
|
+
* @throws {RequiredError}
|
|
1834
|
+
*/
|
|
1835
|
+
ingredientsV1ControllerDeleteIngredient: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1836
|
+
// verify required parameter 'id' is not null or undefined
|
|
1837
|
+
(0, common_1.assertParamExists)('ingredientsV1ControllerDeleteIngredient', 'id', id);
|
|
1838
|
+
const localVarPath = `/api/ingredients/v1/{id}`
|
|
1839
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1841
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1842
|
+
let baseOptions;
|
|
1843
|
+
if (configuration) {
|
|
1844
|
+
baseOptions = configuration.baseOptions;
|
|
1845
|
+
}
|
|
1846
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1847
|
+
const localVarHeaderParameter = {};
|
|
1848
|
+
const localVarQueryParameter = {};
|
|
1849
|
+
// authentication apiKey required
|
|
1850
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
1851
|
+
// authentication bearer required
|
|
1852
|
+
// http bearer authentication required
|
|
1853
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1854
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1855
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1856
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1857
|
+
return {
|
|
1858
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1859
|
+
options: localVarRequestOptions,
|
|
1860
|
+
};
|
|
1861
|
+
}),
|
|
1828
1862
|
/**
|
|
1829
1863
|
*
|
|
1830
1864
|
* @summary Get all ingredients
|
|
@@ -2024,6 +2058,22 @@ const IngredientsV1ApiFp = function (configuration) {
|
|
|
2024
2058
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2025
2059
|
});
|
|
2026
2060
|
},
|
|
2061
|
+
/**
|
|
2062
|
+
*
|
|
2063
|
+
* @summary Delete ingredient
|
|
2064
|
+
* @param {string} id
|
|
2065
|
+
* @param {*} [options] Override http request option.
|
|
2066
|
+
* @throws {RequiredError}
|
|
2067
|
+
*/
|
|
2068
|
+
ingredientsV1ControllerDeleteIngredient(id, options) {
|
|
2069
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2070
|
+
var _a, _b, _c;
|
|
2071
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerDeleteIngredient(id, options);
|
|
2072
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2073
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['IngredientsV1Api.ingredientsV1ControllerDeleteIngredient']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2074
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2075
|
+
});
|
|
2076
|
+
},
|
|
2027
2077
|
/**
|
|
2028
2078
|
*
|
|
2029
2079
|
* @summary Get all ingredients
|
|
@@ -2117,6 +2167,16 @@ const IngredientsV1ApiFactory = function (configuration, basePath, axios) {
|
|
|
2117
2167
|
ingredientsV1ControllerCreateIngredient(requestParameters, options) {
|
|
2118
2168
|
return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
|
|
2119
2169
|
},
|
|
2170
|
+
/**
|
|
2171
|
+
*
|
|
2172
|
+
* @summary Delete ingredient
|
|
2173
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
2174
|
+
* @param {*} [options] Override http request option.
|
|
2175
|
+
* @throws {RequiredError}
|
|
2176
|
+
*/
|
|
2177
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters, options) {
|
|
2178
|
+
return localVarFp.ingredientsV1ControllerDeleteIngredient(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2179
|
+
},
|
|
2120
2180
|
/**
|
|
2121
2181
|
*
|
|
2122
2182
|
* @summary Get all ingredients
|
|
@@ -2178,6 +2238,17 @@ class IngredientsV1Api extends base_1.BaseAPI {
|
|
|
2178
2238
|
ingredientsV1ControllerCreateIngredient(requestParameters, options) {
|
|
2179
2239
|
return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
2180
2240
|
}
|
|
2241
|
+
/**
|
|
2242
|
+
*
|
|
2243
|
+
* @summary Delete ingredient
|
|
2244
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
2245
|
+
* @param {*} [options] Override http request option.
|
|
2246
|
+
* @throws {RequiredError}
|
|
2247
|
+
* @memberof IngredientsV1Api
|
|
2248
|
+
*/
|
|
2249
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters, options) {
|
|
2250
|
+
return (0, exports.IngredientsV1ApiFp)(this.configuration).ingredientsV1ControllerDeleteIngredient(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2251
|
+
}
|
|
2181
2252
|
/**
|
|
2182
2253
|
*
|
|
2183
2254
|
* @summary Get all ingredients
|
|
@@ -2935,6 +3006,40 @@ const SavedMealsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
2935
3006
|
options: localVarRequestOptions,
|
|
2936
3007
|
};
|
|
2937
3008
|
}),
|
|
3009
|
+
/**
|
|
3010
|
+
*
|
|
3011
|
+
* @summary Delete saved meal
|
|
3012
|
+
* @param {string} id
|
|
3013
|
+
* @param {*} [options] Override http request option.
|
|
3014
|
+
* @throws {RequiredError}
|
|
3015
|
+
*/
|
|
3016
|
+
savedMealsV1ControllerDeleteSavedMeal: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
3017
|
+
// verify required parameter 'id' is not null or undefined
|
|
3018
|
+
(0, common_1.assertParamExists)('savedMealsV1ControllerDeleteSavedMeal', 'id', id);
|
|
3019
|
+
const localVarPath = `/api/meals/v1/{id}`
|
|
3020
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
3021
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3022
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3023
|
+
let baseOptions;
|
|
3024
|
+
if (configuration) {
|
|
3025
|
+
baseOptions = configuration.baseOptions;
|
|
3026
|
+
}
|
|
3027
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3028
|
+
const localVarHeaderParameter = {};
|
|
3029
|
+
const localVarQueryParameter = {};
|
|
3030
|
+
// authentication apiKey required
|
|
3031
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
|
|
3032
|
+
// authentication bearer required
|
|
3033
|
+
// http bearer authentication required
|
|
3034
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3035
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3036
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3037
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3038
|
+
return {
|
|
3039
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3040
|
+
options: localVarRequestOptions,
|
|
3041
|
+
};
|
|
3042
|
+
}),
|
|
2938
3043
|
/**
|
|
2939
3044
|
*
|
|
2940
3045
|
* @summary Get saved meals
|
|
@@ -3174,6 +3279,22 @@ const SavedMealsV1ApiFp = function (configuration) {
|
|
|
3174
3279
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3175
3280
|
});
|
|
3176
3281
|
},
|
|
3282
|
+
/**
|
|
3283
|
+
*
|
|
3284
|
+
* @summary Delete saved meal
|
|
3285
|
+
* @param {string} id
|
|
3286
|
+
* @param {*} [options] Override http request option.
|
|
3287
|
+
* @throws {RequiredError}
|
|
3288
|
+
*/
|
|
3289
|
+
savedMealsV1ControllerDeleteSavedMeal(id, options) {
|
|
3290
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3291
|
+
var _a, _b, _c;
|
|
3292
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.savedMealsV1ControllerDeleteSavedMeal(id, options);
|
|
3293
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3294
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SavedMealsV1Api.savedMealsV1ControllerDeleteSavedMeal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3295
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3296
|
+
});
|
|
3297
|
+
},
|
|
3177
3298
|
/**
|
|
3178
3299
|
*
|
|
3179
3300
|
* @summary Get saved meals
|
|
@@ -3277,6 +3398,16 @@ const SavedMealsV1ApiFactory = function (configuration, basePath, axios) {
|
|
|
3277
3398
|
savedMealsV1ControllerCreateSavedMeal(requestParameters, options) {
|
|
3278
3399
|
return localVarFp.savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(axios, basePath));
|
|
3279
3400
|
},
|
|
3401
|
+
/**
|
|
3402
|
+
*
|
|
3403
|
+
* @summary Delete saved meal
|
|
3404
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
3405
|
+
* @param {*} [options] Override http request option.
|
|
3406
|
+
* @throws {RequiredError}
|
|
3407
|
+
*/
|
|
3408
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters, options) {
|
|
3409
|
+
return localVarFp.savedMealsV1ControllerDeleteSavedMeal(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3410
|
+
},
|
|
3280
3411
|
/**
|
|
3281
3412
|
*
|
|
3282
3413
|
* @summary Get saved meals
|
|
@@ -3338,6 +3469,17 @@ class SavedMealsV1Api extends base_1.BaseAPI {
|
|
|
3338
3469
|
savedMealsV1ControllerCreateSavedMeal(requestParameters, options) {
|
|
3339
3470
|
return (0, exports.SavedMealsV1ApiFp)(this.configuration).savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3340
3471
|
}
|
|
3472
|
+
/**
|
|
3473
|
+
*
|
|
3474
|
+
* @summary Delete saved meal
|
|
3475
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
3476
|
+
* @param {*} [options] Override http request option.
|
|
3477
|
+
* @throws {RequiredError}
|
|
3478
|
+
* @memberof SavedMealsV1Api
|
|
3479
|
+
*/
|
|
3480
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters, options) {
|
|
3481
|
+
return (0, exports.SavedMealsV1ApiFp)(this.configuration).savedMealsV1ControllerDeleteSavedMeal(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3482
|
+
}
|
|
3341
3483
|
/**
|
|
3342
3484
|
*
|
|
3343
3485
|
* @summary Get saved meals
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -4341,6 +4341,14 @@ export declare const IngredientsV1ApiAxiosParamCreator: (configuration?: Configu
|
|
|
4341
4341
|
* @throws {RequiredError}
|
|
4342
4342
|
*/
|
|
4343
4343
|
ingredientsV1ControllerCreateIngredient: (createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4344
|
+
/**
|
|
4345
|
+
*
|
|
4346
|
+
* @summary Delete ingredient
|
|
4347
|
+
* @param {string} id
|
|
4348
|
+
* @param {*} [options] Override http request option.
|
|
4349
|
+
* @throws {RequiredError}
|
|
4350
|
+
*/
|
|
4351
|
+
ingredientsV1ControllerDeleteIngredient: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4344
4352
|
/**
|
|
4345
4353
|
*
|
|
4346
4354
|
* @summary Get all ingredients
|
|
@@ -4396,6 +4404,14 @@ export declare const IngredientsV1ApiFp: (configuration?: Configuration) => {
|
|
|
4396
4404
|
* @throws {RequiredError}
|
|
4397
4405
|
*/
|
|
4398
4406
|
ingredientsV1ControllerCreateIngredient(createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
|
|
4407
|
+
/**
|
|
4408
|
+
*
|
|
4409
|
+
* @summary Delete ingredient
|
|
4410
|
+
* @param {string} id
|
|
4411
|
+
* @param {*} [options] Override http request option.
|
|
4412
|
+
* @throws {RequiredError}
|
|
4413
|
+
*/
|
|
4414
|
+
ingredientsV1ControllerDeleteIngredient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IngredientDto>>;
|
|
4399
4415
|
/**
|
|
4400
4416
|
*
|
|
4401
4417
|
* @summary Get all ingredients
|
|
@@ -4451,6 +4467,14 @@ export declare const IngredientsV1ApiFactory: (configuration?: Configuration, ba
|
|
|
4451
4467
|
* @throws {RequiredError}
|
|
4452
4468
|
*/
|
|
4453
4469
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Delete ingredient
|
|
4473
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
4474
|
+
* @param {*} [options] Override http request option.
|
|
4475
|
+
* @throws {RequiredError}
|
|
4476
|
+
*/
|
|
4477
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4454
4478
|
/**
|
|
4455
4479
|
*
|
|
4456
4480
|
* @summary Get all ingredients
|
|
@@ -4499,6 +4523,15 @@ export interface IngredientsV1ApiInterface {
|
|
|
4499
4523
|
* @memberof IngredientsV1ApiInterface
|
|
4500
4524
|
*/
|
|
4501
4525
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4526
|
+
/**
|
|
4527
|
+
*
|
|
4528
|
+
* @summary Delete ingredient
|
|
4529
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
4530
|
+
* @param {*} [options] Override http request option.
|
|
4531
|
+
* @throws {RequiredError}
|
|
4532
|
+
* @memberof IngredientsV1ApiInterface
|
|
4533
|
+
*/
|
|
4534
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<IngredientDto>;
|
|
4502
4535
|
/**
|
|
4503
4536
|
*
|
|
4504
4537
|
* @summary Get all ingredients
|
|
@@ -4549,6 +4582,19 @@ export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
|
|
|
4549
4582
|
*/
|
|
4550
4583
|
readonly createIngredientRequestDto: CreateIngredientRequestDto;
|
|
4551
4584
|
}
|
|
4585
|
+
/**
|
|
4586
|
+
* Request parameters for ingredientsV1ControllerDeleteIngredient operation in IngredientsV1Api.
|
|
4587
|
+
* @export
|
|
4588
|
+
* @interface IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest
|
|
4589
|
+
*/
|
|
4590
|
+
export interface IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest {
|
|
4591
|
+
/**
|
|
4592
|
+
*
|
|
4593
|
+
* @type {string}
|
|
4594
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerDeleteIngredient
|
|
4595
|
+
*/
|
|
4596
|
+
readonly id: string;
|
|
4597
|
+
}
|
|
4552
4598
|
/**
|
|
4553
4599
|
* Request parameters for ingredientsV1ControllerGetAllIngredients operation in IngredientsV1Api.
|
|
4554
4600
|
* @export
|
|
@@ -4671,6 +4717,15 @@ export declare class IngredientsV1Api extends BaseAPI implements IngredientsV1Ap
|
|
|
4671
4717
|
* @memberof IngredientsV1Api
|
|
4672
4718
|
*/
|
|
4673
4719
|
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
|
|
4720
|
+
/**
|
|
4721
|
+
*
|
|
4722
|
+
* @summary Delete ingredient
|
|
4723
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
4724
|
+
* @param {*} [options] Override http request option.
|
|
4725
|
+
* @throws {RequiredError}
|
|
4726
|
+
* @memberof IngredientsV1Api
|
|
4727
|
+
*/
|
|
4728
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<IngredientDto, any, {}>>;
|
|
4674
4729
|
/**
|
|
4675
4730
|
*
|
|
4676
4731
|
* @summary Get all ingredients
|
|
@@ -5274,6 +5329,14 @@ export declare const SavedMealsV1ApiAxiosParamCreator: (configuration?: Configur
|
|
|
5274
5329
|
* @throws {RequiredError}
|
|
5275
5330
|
*/
|
|
5276
5331
|
savedMealsV1ControllerCreateSavedMeal: (createMealRequestDto: CreateMealRequestDto, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5332
|
+
/**
|
|
5333
|
+
*
|
|
5334
|
+
* @summary Delete saved meal
|
|
5335
|
+
* @param {string} id
|
|
5336
|
+
* @param {*} [options] Override http request option.
|
|
5337
|
+
* @throws {RequiredError}
|
|
5338
|
+
*/
|
|
5339
|
+
savedMealsV1ControllerDeleteSavedMeal: (id: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
5277
5340
|
/**
|
|
5278
5341
|
*
|
|
5279
5342
|
* @summary Get saved meals
|
|
@@ -5339,6 +5402,14 @@ export declare const SavedMealsV1ApiFp: (configuration?: Configuration) => {
|
|
|
5339
5402
|
* @throws {RequiredError}
|
|
5340
5403
|
*/
|
|
5341
5404
|
savedMealsV1ControllerCreateSavedMeal(createMealRequestDto: CreateMealRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SavedMealDetailsDto>>;
|
|
5405
|
+
/**
|
|
5406
|
+
*
|
|
5407
|
+
* @summary Delete saved meal
|
|
5408
|
+
* @param {string} id
|
|
5409
|
+
* @param {*} [options] Override http request option.
|
|
5410
|
+
* @throws {RequiredError}
|
|
5411
|
+
*/
|
|
5412
|
+
savedMealsV1ControllerDeleteSavedMeal(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
5342
5413
|
/**
|
|
5343
5414
|
*
|
|
5344
5415
|
* @summary Get saved meals
|
|
@@ -5404,6 +5475,14 @@ export declare const SavedMealsV1ApiFactory: (configuration?: Configuration, bas
|
|
|
5404
5475
|
* @throws {RequiredError}
|
|
5405
5476
|
*/
|
|
5406
5477
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
|
|
5478
|
+
/**
|
|
5479
|
+
*
|
|
5480
|
+
* @summary Delete saved meal
|
|
5481
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
5482
|
+
* @param {*} [options] Override http request option.
|
|
5483
|
+
* @throws {RequiredError}
|
|
5484
|
+
*/
|
|
5485
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5407
5486
|
/**
|
|
5408
5487
|
*
|
|
5409
5488
|
* @summary Get saved meals
|
|
@@ -5452,6 +5531,15 @@ export interface SavedMealsV1ApiInterface {
|
|
|
5452
5531
|
* @memberof SavedMealsV1ApiInterface
|
|
5453
5532
|
*/
|
|
5454
5533
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<SavedMealDetailsDto>;
|
|
5534
|
+
/**
|
|
5535
|
+
*
|
|
5536
|
+
* @summary Delete saved meal
|
|
5537
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
5538
|
+
* @param {*} [options] Override http request option.
|
|
5539
|
+
* @throws {RequiredError}
|
|
5540
|
+
* @memberof SavedMealsV1ApiInterface
|
|
5541
|
+
*/
|
|
5542
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
5455
5543
|
/**
|
|
5456
5544
|
*
|
|
5457
5545
|
* @summary Get saved meals
|
|
@@ -5502,6 +5590,19 @@ export interface SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest {
|
|
|
5502
5590
|
*/
|
|
5503
5591
|
readonly createMealRequestDto: CreateMealRequestDto;
|
|
5504
5592
|
}
|
|
5593
|
+
/**
|
|
5594
|
+
* Request parameters for savedMealsV1ControllerDeleteSavedMeal operation in SavedMealsV1Api.
|
|
5595
|
+
* @export
|
|
5596
|
+
* @interface SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest
|
|
5597
|
+
*/
|
|
5598
|
+
export interface SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest {
|
|
5599
|
+
/**
|
|
5600
|
+
*
|
|
5601
|
+
* @type {string}
|
|
5602
|
+
* @memberof SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMeal
|
|
5603
|
+
*/
|
|
5604
|
+
readonly id: string;
|
|
5605
|
+
}
|
|
5505
5606
|
/**
|
|
5506
5607
|
* Request parameters for savedMealsV1ControllerGetAllSavedMeals operation in SavedMealsV1Api.
|
|
5507
5608
|
* @export
|
|
@@ -5684,6 +5785,15 @@ export declare class SavedMealsV1Api extends BaseAPI implements SavedMealsV1ApiI
|
|
|
5684
5785
|
* @memberof SavedMealsV1Api
|
|
5685
5786
|
*/
|
|
5686
5787
|
savedMealsV1ControllerCreateSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerCreateSavedMealRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SavedMealDetailsDto, any, {}>>;
|
|
5788
|
+
/**
|
|
5789
|
+
*
|
|
5790
|
+
* @summary Delete saved meal
|
|
5791
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
5792
|
+
* @param {*} [options] Override http request option.
|
|
5793
|
+
* @throws {RequiredError}
|
|
5794
|
+
* @memberof SavedMealsV1Api
|
|
5795
|
+
*/
|
|
5796
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters: SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
5687
5797
|
/**
|
|
5688
5798
|
*
|
|
5689
5799
|
* @summary Get saved meals
|
package/dist/esm/api.js
CHANGED
|
@@ -1809,6 +1809,40 @@ export const IngredientsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
1809
1809
|
options: localVarRequestOptions,
|
|
1810
1810
|
};
|
|
1811
1811
|
}),
|
|
1812
|
+
/**
|
|
1813
|
+
*
|
|
1814
|
+
* @summary Delete ingredient
|
|
1815
|
+
* @param {string} id
|
|
1816
|
+
* @param {*} [options] Override http request option.
|
|
1817
|
+
* @throws {RequiredError}
|
|
1818
|
+
*/
|
|
1819
|
+
ingredientsV1ControllerDeleteIngredient: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
1820
|
+
// verify required parameter 'id' is not null or undefined
|
|
1821
|
+
assertParamExists('ingredientsV1ControllerDeleteIngredient', 'id', id);
|
|
1822
|
+
const localVarPath = `/api/ingredients/v1/{id}`
|
|
1823
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1824
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1825
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1826
|
+
let baseOptions;
|
|
1827
|
+
if (configuration) {
|
|
1828
|
+
baseOptions = configuration.baseOptions;
|
|
1829
|
+
}
|
|
1830
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
1831
|
+
const localVarHeaderParameter = {};
|
|
1832
|
+
const localVarQueryParameter = {};
|
|
1833
|
+
// authentication apiKey required
|
|
1834
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1835
|
+
// authentication bearer required
|
|
1836
|
+
// http bearer authentication required
|
|
1837
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1838
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1839
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1840
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1841
|
+
return {
|
|
1842
|
+
url: toPathString(localVarUrlObj),
|
|
1843
|
+
options: localVarRequestOptions,
|
|
1844
|
+
};
|
|
1845
|
+
}),
|
|
1812
1846
|
/**
|
|
1813
1847
|
*
|
|
1814
1848
|
* @summary Get all ingredients
|
|
@@ -2007,6 +2041,22 @@ export const IngredientsV1ApiFp = function (configuration) {
|
|
|
2007
2041
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2008
2042
|
});
|
|
2009
2043
|
},
|
|
2044
|
+
/**
|
|
2045
|
+
*
|
|
2046
|
+
* @summary Delete ingredient
|
|
2047
|
+
* @param {string} id
|
|
2048
|
+
* @param {*} [options] Override http request option.
|
|
2049
|
+
* @throws {RequiredError}
|
|
2050
|
+
*/
|
|
2051
|
+
ingredientsV1ControllerDeleteIngredient(id, options) {
|
|
2052
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2053
|
+
var _a, _b, _c;
|
|
2054
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.ingredientsV1ControllerDeleteIngredient(id, options);
|
|
2055
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2056
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['IngredientsV1Api.ingredientsV1ControllerDeleteIngredient']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2057
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2058
|
+
});
|
|
2059
|
+
},
|
|
2010
2060
|
/**
|
|
2011
2061
|
*
|
|
2012
2062
|
* @summary Get all ingredients
|
|
@@ -2099,6 +2149,16 @@ export const IngredientsV1ApiFactory = function (configuration, basePath, axios)
|
|
|
2099
2149
|
ingredientsV1ControllerCreateIngredient(requestParameters, options) {
|
|
2100
2150
|
return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
|
|
2101
2151
|
},
|
|
2152
|
+
/**
|
|
2153
|
+
*
|
|
2154
|
+
* @summary Delete ingredient
|
|
2155
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
2156
|
+
* @param {*} [options] Override http request option.
|
|
2157
|
+
* @throws {RequiredError}
|
|
2158
|
+
*/
|
|
2159
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters, options) {
|
|
2160
|
+
return localVarFp.ingredientsV1ControllerDeleteIngredient(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
2161
|
+
},
|
|
2102
2162
|
/**
|
|
2103
2163
|
*
|
|
2104
2164
|
* @summary Get all ingredients
|
|
@@ -2159,6 +2219,17 @@ export class IngredientsV1Api extends BaseAPI {
|
|
|
2159
2219
|
ingredientsV1ControllerCreateIngredient(requestParameters, options) {
|
|
2160
2220
|
return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
2161
2221
|
}
|
|
2222
|
+
/**
|
|
2223
|
+
*
|
|
2224
|
+
* @summary Delete ingredient
|
|
2225
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerDeleteIngredientRequest} requestParameters Request parameters.
|
|
2226
|
+
* @param {*} [options] Override http request option.
|
|
2227
|
+
* @throws {RequiredError}
|
|
2228
|
+
* @memberof IngredientsV1Api
|
|
2229
|
+
*/
|
|
2230
|
+
ingredientsV1ControllerDeleteIngredient(requestParameters, options) {
|
|
2231
|
+
return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerDeleteIngredient(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
2232
|
+
}
|
|
2162
2233
|
/**
|
|
2163
2234
|
*
|
|
2164
2235
|
* @summary Get all ingredients
|
|
@@ -2911,6 +2982,40 @@ export const SavedMealsV1ApiAxiosParamCreator = function (configuration) {
|
|
|
2911
2982
|
options: localVarRequestOptions,
|
|
2912
2983
|
};
|
|
2913
2984
|
}),
|
|
2985
|
+
/**
|
|
2986
|
+
*
|
|
2987
|
+
* @summary Delete saved meal
|
|
2988
|
+
* @param {string} id
|
|
2989
|
+
* @param {*} [options] Override http request option.
|
|
2990
|
+
* @throws {RequiredError}
|
|
2991
|
+
*/
|
|
2992
|
+
savedMealsV1ControllerDeleteSavedMeal: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
2993
|
+
// verify required parameter 'id' is not null or undefined
|
|
2994
|
+
assertParamExists('savedMealsV1ControllerDeleteSavedMeal', 'id', id);
|
|
2995
|
+
const localVarPath = `/api/meals/v1/{id}`
|
|
2996
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
2997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2998
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2999
|
+
let baseOptions;
|
|
3000
|
+
if (configuration) {
|
|
3001
|
+
baseOptions = configuration.baseOptions;
|
|
3002
|
+
}
|
|
3003
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3004
|
+
const localVarHeaderParameter = {};
|
|
3005
|
+
const localVarQueryParameter = {};
|
|
3006
|
+
// authentication apiKey required
|
|
3007
|
+
yield setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
3008
|
+
// authentication bearer required
|
|
3009
|
+
// http bearer authentication required
|
|
3010
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3011
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3013
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3014
|
+
return {
|
|
3015
|
+
url: toPathString(localVarUrlObj),
|
|
3016
|
+
options: localVarRequestOptions,
|
|
3017
|
+
};
|
|
3018
|
+
}),
|
|
2914
3019
|
/**
|
|
2915
3020
|
*
|
|
2916
3021
|
* @summary Get saved meals
|
|
@@ -3149,6 +3254,22 @@ export const SavedMealsV1ApiFp = function (configuration) {
|
|
|
3149
3254
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3150
3255
|
});
|
|
3151
3256
|
},
|
|
3257
|
+
/**
|
|
3258
|
+
*
|
|
3259
|
+
* @summary Delete saved meal
|
|
3260
|
+
* @param {string} id
|
|
3261
|
+
* @param {*} [options] Override http request option.
|
|
3262
|
+
* @throws {RequiredError}
|
|
3263
|
+
*/
|
|
3264
|
+
savedMealsV1ControllerDeleteSavedMeal(id, options) {
|
|
3265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3266
|
+
var _a, _b, _c;
|
|
3267
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.savedMealsV1ControllerDeleteSavedMeal(id, options);
|
|
3268
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3269
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SavedMealsV1Api.savedMealsV1ControllerDeleteSavedMeal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3270
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3271
|
+
});
|
|
3272
|
+
},
|
|
3152
3273
|
/**
|
|
3153
3274
|
*
|
|
3154
3275
|
* @summary Get saved meals
|
|
@@ -3251,6 +3372,16 @@ export const SavedMealsV1ApiFactory = function (configuration, basePath, axios)
|
|
|
3251
3372
|
savedMealsV1ControllerCreateSavedMeal(requestParameters, options) {
|
|
3252
3373
|
return localVarFp.savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(axios, basePath));
|
|
3253
3374
|
},
|
|
3375
|
+
/**
|
|
3376
|
+
*
|
|
3377
|
+
* @summary Delete saved meal
|
|
3378
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
3379
|
+
* @param {*} [options] Override http request option.
|
|
3380
|
+
* @throws {RequiredError}
|
|
3381
|
+
*/
|
|
3382
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters, options) {
|
|
3383
|
+
return localVarFp.savedMealsV1ControllerDeleteSavedMeal(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
3384
|
+
},
|
|
3254
3385
|
/**
|
|
3255
3386
|
*
|
|
3256
3387
|
* @summary Get saved meals
|
|
@@ -3311,6 +3442,17 @@ export class SavedMealsV1Api extends BaseAPI {
|
|
|
3311
3442
|
savedMealsV1ControllerCreateSavedMeal(requestParameters, options) {
|
|
3312
3443
|
return SavedMealsV1ApiFp(this.configuration).savedMealsV1ControllerCreateSavedMeal(requestParameters.createMealRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
3313
3444
|
}
|
|
3445
|
+
/**
|
|
3446
|
+
*
|
|
3447
|
+
* @summary Delete saved meal
|
|
3448
|
+
* @param {SavedMealsV1ApiSavedMealsV1ControllerDeleteSavedMealRequest} requestParameters Request parameters.
|
|
3449
|
+
* @param {*} [options] Override http request option.
|
|
3450
|
+
* @throws {RequiredError}
|
|
3451
|
+
* @memberof SavedMealsV1Api
|
|
3452
|
+
*/
|
|
3453
|
+
savedMealsV1ControllerDeleteSavedMeal(requestParameters, options) {
|
|
3454
|
+
return SavedMealsV1ApiFp(this.configuration).savedMealsV1ControllerDeleteSavedMeal(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
3455
|
+
}
|
|
3314
3456
|
/**
|
|
3315
3457
|
*
|
|
3316
3458
|
* @summary Get saved meals
|
package/docs/IngredientsV1Api.md
CHANGED
|
@@ -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
|
+
|[**ingredientsV1ControllerDeleteIngredient**](#ingredientsv1controllerdeleteingredient) | **DELETE** /api/ingredients/v1/{id} | Delete ingredient|
|
|
8
9
|
|[**ingredientsV1ControllerGetAllIngredients**](#ingredientsv1controllergetallingredients) | **GET** /api/ingredients/v1/all | Get all ingredients|
|
|
9
10
|
|[**ingredientsV1ControllerGetIngredientById**](#ingredientsv1controllergetingredientbyid) | **GET** /api/ingredients/v1/{id} | Get ingredient by id|
|
|
10
11
|
|[**ingredientsV1ControllerGetIngredients**](#ingredientsv1controllergetingredients) | **GET** /api/ingredients/v1 | Get ingredients|
|
|
@@ -64,6 +65,59 @@ const { status, data } = await apiInstance.ingredientsV1ControllerCreateIngredie
|
|
|
64
65
|
|
|
65
66
|
[[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)
|
|
66
67
|
|
|
68
|
+
# **ingredientsV1ControllerDeleteIngredient**
|
|
69
|
+
> IngredientDto ingredientsV1ControllerDeleteIngredient()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
IngredientsV1Api,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new IngredientsV1Api(configuration);
|
|
82
|
+
|
|
83
|
+
let id: string; // (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.ingredientsV1ControllerDeleteIngredient(
|
|
86
|
+
id
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
**IngredientDto**
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[apiKey](../README.md#apiKey), [bearer](../README.md#bearer)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | | - |
|
|
115
|
+
|**400** | Invalid JWT payload structure or validation failed | - |
|
|
116
|
+
|**401** | JWT token is missing, expired, or invalid | - |
|
|
117
|
+
|**500** | Internal server error during JWT validation | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
|
67
121
|
# **ingredientsV1ControllerGetAllIngredients**
|
|
68
122
|
> GetAllIngredientsResponseDto ingredientsV1ControllerGetAllIngredients()
|
|
69
123
|
|
package/docs/SavedMealsV1Api.md
CHANGED
|
@@ -5,6 +5,7 @@ All URIs are relative to *http://localhost*
|
|
|
5
5
|
|Method | HTTP request | Description|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
|[**savedMealsV1ControllerCreateSavedMeal**](#savedmealsv1controllercreatesavedmeal) | **POST** /api/meals/v1 | Create saved meal|
|
|
8
|
+
|[**savedMealsV1ControllerDeleteSavedMeal**](#savedmealsv1controllerdeletesavedmeal) | **DELETE** /api/meals/v1/{id} | Delete saved meal|
|
|
8
9
|
|[**savedMealsV1ControllerGetAllSavedMeals**](#savedmealsv1controllergetallsavedmeals) | **GET** /api/meals/v1/all | Get saved meals|
|
|
9
10
|
|[**savedMealsV1ControllerGetSavedMeal**](#savedmealsv1controllergetsavedmeal) | **GET** /api/meals/v1/{id} | Get saved meal|
|
|
10
11
|
|[**savedMealsV1ControllerGetSavedMealsPaginated**](#savedmealsv1controllergetsavedmealspaginated) | **GET** /api/meals/v1 | Get saved meals (paginated)|
|
|
@@ -64,6 +65,59 @@ const { status, data } = await apiInstance.savedMealsV1ControllerCreateSavedMeal
|
|
|
64
65
|
|
|
65
66
|
[[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)
|
|
66
67
|
|
|
68
|
+
# **savedMealsV1ControllerDeleteSavedMeal**
|
|
69
|
+
> savedMealsV1ControllerDeleteSavedMeal()
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
### Example
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
import {
|
|
76
|
+
SavedMealsV1Api,
|
|
77
|
+
Configuration
|
|
78
|
+
} from '@dimrev4/fitness-v3-backend-sdk';
|
|
79
|
+
|
|
80
|
+
const configuration = new Configuration();
|
|
81
|
+
const apiInstance = new SavedMealsV1Api(configuration);
|
|
82
|
+
|
|
83
|
+
let id: string; // (default to undefined)
|
|
84
|
+
|
|
85
|
+
const { status, data } = await apiInstance.savedMealsV1ControllerDeleteSavedMeal(
|
|
86
|
+
id
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Parameters
|
|
91
|
+
|
|
92
|
+
|Name | Type | Description | Notes|
|
|
93
|
+
|------------- | ------------- | ------------- | -------------|
|
|
94
|
+
| **id** | [**string**] | | defaults to undefined|
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Return type
|
|
98
|
+
|
|
99
|
+
void (empty response body)
|
|
100
|
+
|
|
101
|
+
### Authorization
|
|
102
|
+
|
|
103
|
+
[apiKey](../README.md#apiKey), [bearer](../README.md#bearer)
|
|
104
|
+
|
|
105
|
+
### HTTP request headers
|
|
106
|
+
|
|
107
|
+
- **Content-Type**: Not defined
|
|
108
|
+
- **Accept**: application/json
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### HTTP response details
|
|
112
|
+
| Status code | Description | Response headers |
|
|
113
|
+
|-------------|-------------|------------------|
|
|
114
|
+
|**200** | | - |
|
|
115
|
+
|**400** | Invalid JWT payload structure or validation failed | - |
|
|
116
|
+
|**401** | JWT token is missing, expired, or invalid | - |
|
|
117
|
+
|**500** | Internal server error during JWT validation | - |
|
|
118
|
+
|
|
119
|
+
[[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)
|
|
120
|
+
|
|
67
121
|
# **savedMealsV1ControllerGetAllSavedMeals**
|
|
68
122
|
> GetAllMealsResponseDto savedMealsV1ControllerGetAllSavedMeals()
|
|
69
123
|
|