@dimrev4/fitness-v3-backend 0.0.5 → 0.0.6
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/.openapi-generator/FILES +2 -0
- package/api.ts +428 -0
- package/dist/api.d.ts +304 -0
- package/dist/api.js +201 -1
- package/dist/esm/api.d.ts +304 -0
- package/dist/esm/api.js +196 -0
- package/docs/CreateIngredientRequestDto.md +58 -0
- package/docs/IngredientsV1Api.md +128 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -7,11 +7,13 @@ common.ts
|
|
|
7
7
|
configuration.ts
|
|
8
8
|
docs/AuthV1Api.md
|
|
9
9
|
docs/ConfirmOtpRequestDto.md
|
|
10
|
+
docs/CreateIngredientRequestDto.md
|
|
10
11
|
docs/CreateMeasurementRequestDto.md
|
|
11
12
|
docs/DeleteMeasurementResponseDto.md
|
|
12
13
|
docs/GetMeResponseDto.md
|
|
13
14
|
docs/GetMeasurementsResponseDto.md
|
|
14
15
|
docs/GroupDto.md
|
|
16
|
+
docs/IngredientsV1Api.md
|
|
15
17
|
docs/LoginRequestDto.md
|
|
16
18
|
docs/LoginResponseDto.md
|
|
17
19
|
docs/LogoutResponseDto.md
|
package/api.ts
CHANGED
|
@@ -48,6 +48,148 @@ export interface ConfirmOtpRequestDto {
|
|
|
48
48
|
*/
|
|
49
49
|
'metaHash': string;
|
|
50
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
*
|
|
53
|
+
* @export
|
|
54
|
+
* @interface CreateIngredientRequestDto
|
|
55
|
+
*/
|
|
56
|
+
export interface CreateIngredientRequestDto {
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @type {string}
|
|
60
|
+
* @memberof CreateIngredientRequestDto
|
|
61
|
+
*/
|
|
62
|
+
'name': string;
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @type {string}
|
|
66
|
+
* @memberof CreateIngredientRequestDto
|
|
67
|
+
*/
|
|
68
|
+
'description': string;
|
|
69
|
+
/**
|
|
70
|
+
*
|
|
71
|
+
* @type {number}
|
|
72
|
+
* @memberof CreateIngredientRequestDto
|
|
73
|
+
*/
|
|
74
|
+
'portionGrams': number;
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @type {string}
|
|
78
|
+
* @memberof CreateIngredientRequestDto
|
|
79
|
+
*/
|
|
80
|
+
'imgUrl': string;
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @type {string}
|
|
84
|
+
* @memberof CreateIngredientRequestDto
|
|
85
|
+
*/
|
|
86
|
+
'FoodCategory': CreateIngredientRequestDtoFoodCategoryEnum;
|
|
87
|
+
/**
|
|
88
|
+
*
|
|
89
|
+
* @type {number}
|
|
90
|
+
* @memberof CreateIngredientRequestDto
|
|
91
|
+
*/
|
|
92
|
+
'calories': number;
|
|
93
|
+
/**
|
|
94
|
+
*
|
|
95
|
+
* @type {number}
|
|
96
|
+
* @memberof CreateIngredientRequestDto
|
|
97
|
+
*/
|
|
98
|
+
'totalFatGrams': number;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {number}
|
|
102
|
+
* @memberof CreateIngredientRequestDto
|
|
103
|
+
*/
|
|
104
|
+
'saturatedFatGrams': number;
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @type {number}
|
|
108
|
+
* @memberof CreateIngredientRequestDto
|
|
109
|
+
*/
|
|
110
|
+
'transFatGrams': number;
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {number}
|
|
114
|
+
* @memberof CreateIngredientRequestDto
|
|
115
|
+
*/
|
|
116
|
+
'cholesterolMg': number;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {number}
|
|
120
|
+
* @memberof CreateIngredientRequestDto
|
|
121
|
+
*/
|
|
122
|
+
'sodiumMg': number;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof CreateIngredientRequestDto
|
|
127
|
+
*/
|
|
128
|
+
'totalCarbohydrateGrams': number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @memberof CreateIngredientRequestDto
|
|
133
|
+
*/
|
|
134
|
+
'dietaryFiberGrams': number;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {number}
|
|
138
|
+
* @memberof CreateIngredientRequestDto
|
|
139
|
+
*/
|
|
140
|
+
'totalSugarGrams': number;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {number}
|
|
144
|
+
* @memberof CreateIngredientRequestDto
|
|
145
|
+
*/
|
|
146
|
+
'addedSugarGrams': number;
|
|
147
|
+
/**
|
|
148
|
+
*
|
|
149
|
+
* @type {number}
|
|
150
|
+
* @memberof CreateIngredientRequestDto
|
|
151
|
+
*/
|
|
152
|
+
'proteinGrams': number;
|
|
153
|
+
/**
|
|
154
|
+
*
|
|
155
|
+
* @type {number}
|
|
156
|
+
* @memberof CreateIngredientRequestDto
|
|
157
|
+
*/
|
|
158
|
+
'vitaminDGrams': number;
|
|
159
|
+
/**
|
|
160
|
+
*
|
|
161
|
+
* @type {number}
|
|
162
|
+
* @memberof CreateIngredientRequestDto
|
|
163
|
+
*/
|
|
164
|
+
'calciumGrams': number;
|
|
165
|
+
/**
|
|
166
|
+
*
|
|
167
|
+
* @type {number}
|
|
168
|
+
* @memberof CreateIngredientRequestDto
|
|
169
|
+
*/
|
|
170
|
+
'ironGrams': number;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @type {number}
|
|
174
|
+
* @memberof CreateIngredientRequestDto
|
|
175
|
+
*/
|
|
176
|
+
'potassiumGrams': number;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export const CreateIngredientRequestDtoFoodCategoryEnum = {
|
|
180
|
+
Dairy: 'DAIRY',
|
|
181
|
+
Protein: 'PROTEIN',
|
|
182
|
+
Carbohydrates: 'CARBOHYDRATES',
|
|
183
|
+
Fruits: 'FRUITS',
|
|
184
|
+
Vegetables: 'VEGETABLES',
|
|
185
|
+
Fats: 'FATS',
|
|
186
|
+
Grains: 'GRAINS',
|
|
187
|
+
Beverages: 'BEVERAGES',
|
|
188
|
+
Sweets: 'SWEETS'
|
|
189
|
+
} as const;
|
|
190
|
+
|
|
191
|
+
export type CreateIngredientRequestDtoFoodCategoryEnum = typeof CreateIngredientRequestDtoFoodCategoryEnum[keyof typeof CreateIngredientRequestDtoFoodCategoryEnum];
|
|
192
|
+
|
|
51
193
|
/**
|
|
52
194
|
*
|
|
53
195
|
* @export
|
|
@@ -1146,6 +1288,292 @@ export class AuthV1Api extends BaseAPI implements AuthV1ApiInterface {
|
|
|
1146
1288
|
|
|
1147
1289
|
|
|
1148
1290
|
|
|
1291
|
+
/**
|
|
1292
|
+
* IngredientsV1Api - axios parameter creator
|
|
1293
|
+
* @export
|
|
1294
|
+
*/
|
|
1295
|
+
export const IngredientsV1ApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
1296
|
+
return {
|
|
1297
|
+
/**
|
|
1298
|
+
*
|
|
1299
|
+
* @param {CreateIngredientRequestDto} createIngredientRequestDto
|
|
1300
|
+
* @param {*} [options] Override http request option.
|
|
1301
|
+
* @throws {RequiredError}
|
|
1302
|
+
*/
|
|
1303
|
+
ingredientsV1ControllerCreateIngredient: async (createIngredientRequestDto: CreateIngredientRequestDto, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1304
|
+
// verify required parameter 'createIngredientRequestDto' is not null or undefined
|
|
1305
|
+
assertParamExists('ingredientsV1ControllerCreateIngredient', 'createIngredientRequestDto', createIngredientRequestDto)
|
|
1306
|
+
const localVarPath = `/api/ingredients/v1`;
|
|
1307
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1308
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1309
|
+
let baseOptions;
|
|
1310
|
+
if (configuration) {
|
|
1311
|
+
baseOptions = configuration.baseOptions;
|
|
1312
|
+
}
|
|
1313
|
+
|
|
1314
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1315
|
+
const localVarHeaderParameter = {} as any;
|
|
1316
|
+
const localVarQueryParameter = {} as any;
|
|
1317
|
+
|
|
1318
|
+
// authentication bearer required
|
|
1319
|
+
// http bearer authentication required
|
|
1320
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1325
|
+
|
|
1326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1328
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1329
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createIngredientRequestDto, localVarRequestOptions, configuration)
|
|
1330
|
+
|
|
1331
|
+
return {
|
|
1332
|
+
url: toPathString(localVarUrlObj),
|
|
1333
|
+
options: localVarRequestOptions,
|
|
1334
|
+
};
|
|
1335
|
+
},
|
|
1336
|
+
/**
|
|
1337
|
+
*
|
|
1338
|
+
* @param {number} [limit] Limit
|
|
1339
|
+
* @param {number} [offset] Offset
|
|
1340
|
+
* @param {string} [name] Ingredient name
|
|
1341
|
+
* @param {string} [query] Ingredient query
|
|
1342
|
+
* @param {string} [orderBy] Order by
|
|
1343
|
+
* @param {*} [options] Override http request option.
|
|
1344
|
+
* @throws {RequiredError}
|
|
1345
|
+
*/
|
|
1346
|
+
ingredientsV1ControllerGetIngredients: async (limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1347
|
+
const localVarPath = `/api/ingredients/v1`;
|
|
1348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1350
|
+
let baseOptions;
|
|
1351
|
+
if (configuration) {
|
|
1352
|
+
baseOptions = configuration.baseOptions;
|
|
1353
|
+
}
|
|
1354
|
+
|
|
1355
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1356
|
+
const localVarHeaderParameter = {} as any;
|
|
1357
|
+
const localVarQueryParameter = {} as any;
|
|
1358
|
+
|
|
1359
|
+
// authentication bearer required
|
|
1360
|
+
// http bearer authentication required
|
|
1361
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1362
|
+
|
|
1363
|
+
if (limit !== undefined) {
|
|
1364
|
+
localVarQueryParameter['limit'] = limit;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
if (offset !== undefined) {
|
|
1368
|
+
localVarQueryParameter['offset'] = offset;
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
if (name !== undefined) {
|
|
1372
|
+
localVarQueryParameter['name'] = name;
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
if (query !== undefined) {
|
|
1376
|
+
localVarQueryParameter['query'] = query;
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
if (orderBy !== undefined) {
|
|
1380
|
+
localVarQueryParameter['orderBy'] = orderBy;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1386
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1387
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1388
|
+
|
|
1389
|
+
return {
|
|
1390
|
+
url: toPathString(localVarUrlObj),
|
|
1391
|
+
options: localVarRequestOptions,
|
|
1392
|
+
};
|
|
1393
|
+
},
|
|
1394
|
+
}
|
|
1395
|
+
};
|
|
1396
|
+
|
|
1397
|
+
/**
|
|
1398
|
+
* IngredientsV1Api - functional programming interface
|
|
1399
|
+
* @export
|
|
1400
|
+
*/
|
|
1401
|
+
export const IngredientsV1ApiFp = function(configuration?: Configuration) {
|
|
1402
|
+
const localVarAxiosParamCreator = IngredientsV1ApiAxiosParamCreator(configuration)
|
|
1403
|
+
return {
|
|
1404
|
+
/**
|
|
1405
|
+
*
|
|
1406
|
+
* @param {CreateIngredientRequestDto} createIngredientRequestDto
|
|
1407
|
+
* @param {*} [options] Override http request option.
|
|
1408
|
+
* @throws {RequiredError}
|
|
1409
|
+
*/
|
|
1410
|
+
async ingredientsV1ControllerCreateIngredient(createIngredientRequestDto: CreateIngredientRequestDto, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1411
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerCreateIngredient(createIngredientRequestDto, options);
|
|
1412
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1413
|
+
const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerCreateIngredient']?.[localVarOperationServerIndex]?.url;
|
|
1414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1415
|
+
},
|
|
1416
|
+
/**
|
|
1417
|
+
*
|
|
1418
|
+
* @param {number} [limit] Limit
|
|
1419
|
+
* @param {number} [offset] Offset
|
|
1420
|
+
* @param {string} [name] Ingredient name
|
|
1421
|
+
* @param {string} [query] Ingredient query
|
|
1422
|
+
* @param {string} [orderBy] Order by
|
|
1423
|
+
* @param {*} [options] Override http request option.
|
|
1424
|
+
* @throws {RequiredError}
|
|
1425
|
+
*/
|
|
1426
|
+
async ingredientsV1ControllerGetIngredients(limit?: number, offset?: number, name?: string, query?: string, orderBy?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1427
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.ingredientsV1ControllerGetIngredients(limit, offset, name, query, orderBy, options);
|
|
1428
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1429
|
+
const localVarOperationServerBasePath = operationServerMap['IngredientsV1Api.ingredientsV1ControllerGetIngredients']?.[localVarOperationServerIndex]?.url;
|
|
1430
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1431
|
+
},
|
|
1432
|
+
}
|
|
1433
|
+
};
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* IngredientsV1Api - factory interface
|
|
1437
|
+
* @export
|
|
1438
|
+
*/
|
|
1439
|
+
export const IngredientsV1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1440
|
+
const localVarFp = IngredientsV1ApiFp(configuration)
|
|
1441
|
+
return {
|
|
1442
|
+
/**
|
|
1443
|
+
*
|
|
1444
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest} requestParameters Request parameters.
|
|
1445
|
+
* @param {*} [options] Override http request option.
|
|
1446
|
+
* @throws {RequiredError}
|
|
1447
|
+
*/
|
|
1448
|
+
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1449
|
+
return localVarFp.ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(axios, basePath));
|
|
1450
|
+
},
|
|
1451
|
+
/**
|
|
1452
|
+
*
|
|
1453
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest} requestParameters Request parameters.
|
|
1454
|
+
* @param {*} [options] Override http request option.
|
|
1455
|
+
* @throws {RequiredError}
|
|
1456
|
+
*/
|
|
1457
|
+
ingredientsV1ControllerGetIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
1458
|
+
return localVarFp.ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(axios, basePath));
|
|
1459
|
+
},
|
|
1460
|
+
};
|
|
1461
|
+
};
|
|
1462
|
+
|
|
1463
|
+
/**
|
|
1464
|
+
* IngredientsV1Api - interface
|
|
1465
|
+
* @export
|
|
1466
|
+
* @interface IngredientsV1Api
|
|
1467
|
+
*/
|
|
1468
|
+
export interface IngredientsV1ApiInterface {
|
|
1469
|
+
/**
|
|
1470
|
+
*
|
|
1471
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest} requestParameters Request parameters.
|
|
1472
|
+
* @param {*} [options] Override http request option.
|
|
1473
|
+
* @throws {RequiredError}
|
|
1474
|
+
* @memberof IngredientsV1ApiInterface
|
|
1475
|
+
*/
|
|
1476
|
+
ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1477
|
+
|
|
1478
|
+
/**
|
|
1479
|
+
*
|
|
1480
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest} requestParameters Request parameters.
|
|
1481
|
+
* @param {*} [options] Override http request option.
|
|
1482
|
+
* @throws {RequiredError}
|
|
1483
|
+
* @memberof IngredientsV1ApiInterface
|
|
1484
|
+
*/
|
|
1485
|
+
ingredientsV1ControllerGetIngredients(requestParameters?: IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
|
|
1486
|
+
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
/**
|
|
1490
|
+
* Request parameters for ingredientsV1ControllerCreateIngredient operation in IngredientsV1Api.
|
|
1491
|
+
* @export
|
|
1492
|
+
* @interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest
|
|
1493
|
+
*/
|
|
1494
|
+
export interface IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest {
|
|
1495
|
+
/**
|
|
1496
|
+
*
|
|
1497
|
+
* @type {CreateIngredientRequestDto}
|
|
1498
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerCreateIngredient
|
|
1499
|
+
*/
|
|
1500
|
+
readonly createIngredientRequestDto: CreateIngredientRequestDto
|
|
1501
|
+
}
|
|
1502
|
+
|
|
1503
|
+
/**
|
|
1504
|
+
* Request parameters for ingredientsV1ControllerGetIngredients operation in IngredientsV1Api.
|
|
1505
|
+
* @export
|
|
1506
|
+
* @interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest
|
|
1507
|
+
*/
|
|
1508
|
+
export interface IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest {
|
|
1509
|
+
/**
|
|
1510
|
+
* Limit
|
|
1511
|
+
* @type {number}
|
|
1512
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
|
|
1513
|
+
*/
|
|
1514
|
+
readonly limit?: number
|
|
1515
|
+
|
|
1516
|
+
/**
|
|
1517
|
+
* Offset
|
|
1518
|
+
* @type {number}
|
|
1519
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
|
|
1520
|
+
*/
|
|
1521
|
+
readonly offset?: number
|
|
1522
|
+
|
|
1523
|
+
/**
|
|
1524
|
+
* Ingredient name
|
|
1525
|
+
* @type {string}
|
|
1526
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
|
|
1527
|
+
*/
|
|
1528
|
+
readonly name?: string
|
|
1529
|
+
|
|
1530
|
+
/**
|
|
1531
|
+
* Ingredient query
|
|
1532
|
+
* @type {string}
|
|
1533
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
|
|
1534
|
+
*/
|
|
1535
|
+
readonly query?: string
|
|
1536
|
+
|
|
1537
|
+
/**
|
|
1538
|
+
* Order by
|
|
1539
|
+
* @type {string}
|
|
1540
|
+
* @memberof IngredientsV1ApiIngredientsV1ControllerGetIngredients
|
|
1541
|
+
*/
|
|
1542
|
+
readonly orderBy?: string
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
* IngredientsV1Api - object-oriented interface
|
|
1547
|
+
* @export
|
|
1548
|
+
* @class IngredientsV1Api
|
|
1549
|
+
* @extends {BaseAPI}
|
|
1550
|
+
*/
|
|
1551
|
+
export class IngredientsV1Api extends BaseAPI implements IngredientsV1ApiInterface {
|
|
1552
|
+
/**
|
|
1553
|
+
*
|
|
1554
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest} requestParameters Request parameters.
|
|
1555
|
+
* @param {*} [options] Override http request option.
|
|
1556
|
+
* @throws {RequiredError}
|
|
1557
|
+
* @memberof IngredientsV1Api
|
|
1558
|
+
*/
|
|
1559
|
+
public ingredientsV1ControllerCreateIngredient(requestParameters: IngredientsV1ApiIngredientsV1ControllerCreateIngredientRequest, options?: RawAxiosRequestConfig) {
|
|
1560
|
+
return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerCreateIngredient(requestParameters.createIngredientRequestDto, options).then((request) => request(this.axios, this.basePath));
|
|
1561
|
+
}
|
|
1562
|
+
|
|
1563
|
+
/**
|
|
1564
|
+
*
|
|
1565
|
+
* @param {IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest} requestParameters Request parameters.
|
|
1566
|
+
* @param {*} [options] Override http request option.
|
|
1567
|
+
* @throws {RequiredError}
|
|
1568
|
+
* @memberof IngredientsV1Api
|
|
1569
|
+
*/
|
|
1570
|
+
public ingredientsV1ControllerGetIngredients(requestParameters: IngredientsV1ApiIngredientsV1ControllerGetIngredientsRequest = {}, options?: RawAxiosRequestConfig) {
|
|
1571
|
+
return IngredientsV1ApiFp(this.configuration).ingredientsV1ControllerGetIngredients(requestParameters.limit, requestParameters.offset, requestParameters.name, requestParameters.query, requestParameters.orderBy, options).then((request) => request(this.axios, this.basePath));
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
|
|
1576
|
+
|
|
1149
1577
|
/**
|
|
1150
1578
|
* MeasurementsV1Api - axios parameter creator
|
|
1151
1579
|
* @export
|