@dimrev4/fitness-v3-backend 0.0.45 → 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/api.ts +100 -0
- package/dist/api.d.ts +55 -0
- package/dist/api.js +71 -0
- package/dist/esm/api.d.ts +55 -0
- package/dist/esm/api.js +71 -0
- package/docs/IngredientsV1Api.md +54 -0
- package/package.json +1 -1
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
|
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
|
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
|
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
|
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
|
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
|
|