@pantry-pilot/pantry-pilot-api 1.0.1

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.
@@ -0,0 +1,741 @@
1
+ import type { QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
+ import type { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
3
+ export type BodyCreatePantryItemPantryItemsPostExpirationDate = string | null;
4
+ export type BodyCreatePantryItemPantryItemsPostLocation = LocationEnum | null;
5
+ export type BodyCreatePantryItemPantryItemsPostNotes = string | null;
6
+ export type BodyCreatePantryItemPantryItemsPostImage = string | null;
7
+ export interface BodyCreatePantryItemPantryItemsPost {
8
+ name: string;
9
+ item_type: ItemTypeEnum;
10
+ quantity: number;
11
+ quantity_unit: QuantityUnitEnum;
12
+ expiration_date?: BodyCreatePantryItemPantryItemsPostExpirationDate;
13
+ location?: BodyCreatePantryItemPantryItemsPostLocation;
14
+ notes?: BodyCreatePantryItemPantryItemsPostNotes;
15
+ image?: BodyCreatePantryItemPantryItemsPostImage;
16
+ }
17
+ export interface BodyCreateRecipeRecipesPost {
18
+ name: string;
19
+ cuisine: CuisineTypeEnum;
20
+ instructions: string;
21
+ ingredients: string;
22
+ prep_time?: number;
23
+ cook_time?: number;
24
+ servings?: number;
25
+ image?: string;
26
+ }
27
+ export type BodyUpdatePantryItemPantryItemsItemIdPutName = string | null;
28
+ export type BodyUpdatePantryItemPantryItemsItemIdPutItemType = ItemTypeEnum | null;
29
+ export type BodyUpdatePantryItemPantryItemsItemIdPutQuantity = number | null;
30
+ export type BodyUpdatePantryItemPantryItemsItemIdPutQuantityUnit = QuantityUnitEnum | null;
31
+ export type BodyUpdatePantryItemPantryItemsItemIdPutExpirationDate = string | null;
32
+ export type BodyUpdatePantryItemPantryItemsItemIdPutLocation = LocationEnum | null;
33
+ export type BodyUpdatePantryItemPantryItemsItemIdPutNotes = string | null;
34
+ export type BodyUpdatePantryItemPantryItemsItemIdPutImage = string | null;
35
+ export type BodyUpdatePantryItemPantryItemsItemIdPutClearImage = string | null;
36
+ export interface BodyUpdatePantryItemPantryItemsItemIdPut {
37
+ name?: BodyUpdatePantryItemPantryItemsItemIdPutName;
38
+ item_type?: BodyUpdatePantryItemPantryItemsItemIdPutItemType;
39
+ quantity?: BodyUpdatePantryItemPantryItemsItemIdPutQuantity;
40
+ quantity_unit?: BodyUpdatePantryItemPantryItemsItemIdPutQuantityUnit;
41
+ expiration_date?: BodyUpdatePantryItemPantryItemsItemIdPutExpirationDate;
42
+ location?: BodyUpdatePantryItemPantryItemsItemIdPutLocation;
43
+ notes?: BodyUpdatePantryItemPantryItemsItemIdPutNotes;
44
+ image?: BodyUpdatePantryItemPantryItemsItemIdPutImage;
45
+ clear_image?: BodyUpdatePantryItemPantryItemsItemIdPutClearImage;
46
+ }
47
+ export type BodyUpdateRecipeRecipesRecipeIdPutCuisine = CuisineTypeEnum | null;
48
+ export type BodyUpdateRecipeRecipesRecipeIdPutClearImage = string | null;
49
+ export interface BodyUpdateRecipeRecipesRecipeIdPut {
50
+ name?: string;
51
+ cuisine?: BodyUpdateRecipeRecipesRecipeIdPutCuisine;
52
+ instructions?: string;
53
+ ingredients?: string;
54
+ prep_time?: number;
55
+ cook_time?: number;
56
+ servings?: number;
57
+ image?: string;
58
+ clear_image?: BodyUpdateRecipeRecipesRecipeIdPutClearImage;
59
+ }
60
+ export type CuisineTypeEnum = typeof CuisineTypeEnum[keyof typeof CuisineTypeEnum];
61
+ export declare const CuisineTypeEnum: {
62
+ readonly italian: "italian";
63
+ readonly chinese: "chinese";
64
+ readonly mexican: "mexican";
65
+ readonly indian: "indian";
66
+ readonly french: "french";
67
+ readonly japanese: "japanese";
68
+ readonly thai: "thai";
69
+ readonly mediterranean: "mediterranean";
70
+ readonly american: "american";
71
+ readonly other: "other";
72
+ };
73
+ export interface HTTPValidationError {
74
+ detail?: ValidationError[];
75
+ }
76
+ export type ItemTypeEnum = typeof ItemTypeEnum[keyof typeof ItemTypeEnum];
77
+ export declare const ItemTypeEnum: {
78
+ readonly spices: "spices";
79
+ readonly dairy: "dairy";
80
+ readonly meat: "meat";
81
+ readonly vegetables: "vegetables";
82
+ readonly fruits: "fruits";
83
+ readonly grains: "grains";
84
+ readonly condiments: "condiments";
85
+ readonly beverages: "beverages";
86
+ readonly other: "other";
87
+ };
88
+ export type LocationEnum = typeof LocationEnum[keyof typeof LocationEnum];
89
+ export declare const LocationEnum: {
90
+ readonly fridge: "fridge";
91
+ readonly freezer: "freezer";
92
+ readonly cabinet: "cabinet";
93
+ readonly counter: "counter";
94
+ readonly pantry: "pantry";
95
+ readonly other: "other";
96
+ };
97
+ export type OrderByEnum = typeof OrderByEnum[keyof typeof OrderByEnum];
98
+ export declare const OrderByEnum: {
99
+ readonly name: "name";
100
+ readonly created_at: "created_at";
101
+ readonly expiration_date: "expiration_date";
102
+ };
103
+ export type OrderEnum = typeof OrderEnum[keyof typeof OrderEnum];
104
+ export declare const OrderEnum: {
105
+ readonly asc: "asc";
106
+ readonly desc: "desc";
107
+ };
108
+ export type PantryItemResponseImage = string | null;
109
+ export type PantryItemResponseExpirationDate = string | null;
110
+ export type PantryItemResponseLocation = string | null;
111
+ export type PantryItemResponseNotes = string | null;
112
+ export interface PantryItemResponse {
113
+ id: number;
114
+ name: string;
115
+ image: PantryItemResponseImage;
116
+ item_type: ItemTypeEnum;
117
+ quantity: number;
118
+ quantity_unit: QuantityUnitEnum;
119
+ expiration_date: PantryItemResponseExpirationDate;
120
+ location: PantryItemResponseLocation;
121
+ notes: PantryItemResponseNotes;
122
+ user_id: number;
123
+ created_at: string;
124
+ updated_at: string;
125
+ }
126
+ export interface PasswordChange {
127
+ current_password: string;
128
+ new_password: string;
129
+ }
130
+ export type QuantityUnitEnum = typeof QuantityUnitEnum[keyof typeof QuantityUnitEnum];
131
+ export declare const QuantityUnitEnum: {
132
+ readonly lbs: "lbs";
133
+ readonly pieces: "pieces";
134
+ readonly tablespoon: "tablespoon";
135
+ readonly teaspoon: "teaspoon";
136
+ readonly cups: "cups";
137
+ readonly oz: "oz";
138
+ readonly grams: "grams";
139
+ readonly ml: "ml";
140
+ readonly liters: "liters";
141
+ };
142
+ export type RecipeIngredientResponseUnit = string | null;
143
+ export type RecipeIngredientResponsePantryItemId = number | null;
144
+ export interface RecipeIngredientResponse {
145
+ name: string;
146
+ quantity: number;
147
+ unit?: RecipeIngredientResponseUnit;
148
+ pantry_item_id?: RecipeIngredientResponsePantryItemId;
149
+ }
150
+ export type RecipeResponseImage = string | null;
151
+ export type RecipeResponsePrepTime = number | null;
152
+ export type RecipeResponseCookTime = number | null;
153
+ export type RecipeResponseServings = number | null;
154
+ export interface RecipeResponse {
155
+ id: number;
156
+ name: string;
157
+ image: RecipeResponseImage;
158
+ cuisine: CuisineTypeEnum;
159
+ instructions: string;
160
+ user_id: number;
161
+ created_at: string;
162
+ updated_at: string;
163
+ ingredients?: RecipeIngredientResponse[];
164
+ prep_time?: RecipeResponsePrepTime;
165
+ cook_time?: RecipeResponseCookTime;
166
+ servings?: RecipeResponseServings;
167
+ }
168
+ export interface Token {
169
+ access_token: string;
170
+ token_type: string;
171
+ }
172
+ export interface UserCreate {
173
+ username: string;
174
+ email: string;
175
+ first_name: string;
176
+ last_name: string;
177
+ password: string;
178
+ }
179
+ export interface UserLogin {
180
+ email: string;
181
+ password: string;
182
+ }
183
+ export interface UserResponse {
184
+ id: number;
185
+ username: string;
186
+ email: string;
187
+ first_name: string;
188
+ last_name: string;
189
+ is_active: boolean;
190
+ }
191
+ export type UserUpdateFirstName = string | null;
192
+ export type UserUpdateLastName = string | null;
193
+ export type UserUpdateEmail = string | null;
194
+ export interface UserUpdate {
195
+ first_name?: UserUpdateFirstName;
196
+ last_name?: UserUpdateLastName;
197
+ email?: UserUpdateEmail;
198
+ }
199
+ export type ValidationErrorLocItem = string | number;
200
+ export type ValidationErrorCtx = {
201
+ [key: string]: unknown;
202
+ };
203
+ export interface ValidationError {
204
+ loc: ValidationErrorLocItem[];
205
+ msg: string;
206
+ type: string;
207
+ input?: unknown;
208
+ ctx?: ValidationErrorCtx;
209
+ }
210
+ export type UpdateProfileAuthMePatch200 = {
211
+ [key: string]: unknown;
212
+ };
213
+ export type ChangePasswordAuthChangePasswordPost200 = {
214
+ [key: string]: string;
215
+ };
216
+ export type GetPantryItemsPantryItemsGetParams = {
217
+ /**
218
+ * @minimum 0
219
+ */
220
+ skip?: number;
221
+ /**
222
+ * @minimum 1
223
+ * @maximum 100
224
+ */
225
+ limit?: number;
226
+ item_type?: ItemTypeEnum | null;
227
+ expired?: boolean | null;
228
+ order_by?: OrderByEnum;
229
+ order?: OrderEnum;
230
+ };
231
+ export type DeletePantryItemPantryItemsItemIdDelete200 = {
232
+ [key: string]: string;
233
+ };
234
+ export type SearchPantryItemsRecipesPantrySearchGetParams = {
235
+ /**
236
+ * Search text
237
+ * @minLength 1
238
+ */
239
+ q: string;
240
+ /**
241
+ * @minimum 0
242
+ */
243
+ skip?: number;
244
+ /**
245
+ * @minimum 1
246
+ * @maximum 100
247
+ */
248
+ limit?: number;
249
+ };
250
+ export type SearchPantryItemsRecipesPantrySearchGet200 = {
251
+ [key: string]: unknown;
252
+ };
253
+ export type GetRecipesRecipesGetParams = {
254
+ /**
255
+ * @minimum 0
256
+ */
257
+ skip?: number;
258
+ /**
259
+ * @minimum 1
260
+ * @maximum 100
261
+ */
262
+ limit?: number;
263
+ cuisine?: CuisineTypeEnum | null;
264
+ };
265
+ export type DeleteRecipeRecipesRecipeIdDelete200 = {
266
+ [key: string]: string;
267
+ };
268
+ export type ReadRootGet200 = {
269
+ [key: string]: string;
270
+ };
271
+ type AwaitedInput<T> = PromiseLike<T> | T;
272
+ type Awaited<O> = O extends AwaitedInput<infer T> ? T : never;
273
+ /**
274
+ * @summary Signup
275
+ */
276
+ export declare const signupAuthSignupPost: (userCreate: UserCreate, options?: AxiosRequestConfig) => Promise<AxiosResponse<UserResponse>>;
277
+ export declare const getSignupAuthSignupPostMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
278
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof signupAuthSignupPost>>, TError, {
279
+ data: UserCreate;
280
+ }, TContext>;
281
+ axios?: AxiosRequestConfig;
282
+ }) => UseMutationOptions<Awaited<ReturnType<typeof signupAuthSignupPost>>, TError, {
283
+ data: UserCreate;
284
+ }, TContext>;
285
+ export type SignupAuthSignupPostMutationResult = NonNullable<Awaited<ReturnType<typeof signupAuthSignupPost>>>;
286
+ export type SignupAuthSignupPostMutationBody = UserCreate;
287
+ export type SignupAuthSignupPostMutationError = AxiosError<HTTPValidationError>;
288
+ /**
289
+ * @summary Signup
290
+ */
291
+ export declare const useSignupAuthSignupPost: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
292
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof signupAuthSignupPost>>, TError, {
293
+ data: UserCreate;
294
+ }, TContext>;
295
+ axios?: AxiosRequestConfig;
296
+ }) => UseMutationResult<Awaited<ReturnType<typeof signupAuthSignupPost>>, TError, {
297
+ data: UserCreate;
298
+ }, TContext>;
299
+ /**
300
+ * @summary Login
301
+ */
302
+ export declare const loginAuthLoginPost: (userLogin: UserLogin, options?: AxiosRequestConfig) => Promise<AxiosResponse<Token>>;
303
+ export declare const getLoginAuthLoginPostMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
304
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof loginAuthLoginPost>>, TError, {
305
+ data: UserLogin;
306
+ }, TContext>;
307
+ axios?: AxiosRequestConfig;
308
+ }) => UseMutationOptions<Awaited<ReturnType<typeof loginAuthLoginPost>>, TError, {
309
+ data: UserLogin;
310
+ }, TContext>;
311
+ export type LoginAuthLoginPostMutationResult = NonNullable<Awaited<ReturnType<typeof loginAuthLoginPost>>>;
312
+ export type LoginAuthLoginPostMutationBody = UserLogin;
313
+ export type LoginAuthLoginPostMutationError = AxiosError<HTTPValidationError>;
314
+ /**
315
+ * @summary Login
316
+ */
317
+ export declare const useLoginAuthLoginPost: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
318
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof loginAuthLoginPost>>, TError, {
319
+ data: UserLogin;
320
+ }, TContext>;
321
+ axios?: AxiosRequestConfig;
322
+ }) => UseMutationResult<Awaited<ReturnType<typeof loginAuthLoginPost>>, TError, {
323
+ data: UserLogin;
324
+ }, TContext>;
325
+ /**
326
+ * @summary Get Current User Info
327
+ */
328
+ export declare const getCurrentUserInfoAuthMeGet: (options?: AxiosRequestConfig) => Promise<AxiosResponse<UserResponse>>;
329
+ export declare const getGetCurrentUserInfoAuthMeGetQueryKey: () => readonly ["/auth/me"];
330
+ export declare const getGetCurrentUserInfoAuthMeGetQueryOptions: <TData = Awaited<ReturnType<typeof getCurrentUserInfoAuthMeGet>>, TError = AxiosError<unknown>>(options?: {
331
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getCurrentUserInfoAuthMeGet>>, TError, TData>;
332
+ axios?: AxiosRequestConfig;
333
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getCurrentUserInfoAuthMeGet>>, TError, TData> & {
334
+ queryKey: QueryKey;
335
+ };
336
+ export type GetCurrentUserInfoAuthMeGetQueryResult = NonNullable<Awaited<ReturnType<typeof getCurrentUserInfoAuthMeGet>>>;
337
+ export type GetCurrentUserInfoAuthMeGetQueryError = AxiosError<unknown>;
338
+ /**
339
+ * @summary Get Current User Info
340
+ */
341
+ export declare function useGetCurrentUserInfoAuthMeGet<TData = Awaited<ReturnType<typeof getCurrentUserInfoAuthMeGet>>, TError = AxiosError<unknown>>(options?: {
342
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getCurrentUserInfoAuthMeGet>>, TError, TData>;
343
+ axios?: AxiosRequestConfig;
344
+ }): UseQueryResult<TData, TError> & {
345
+ queryKey: QueryKey;
346
+ };
347
+ /**
348
+ * @summary Update Profile
349
+ */
350
+ export declare const updateProfileAuthMePatch: (userUpdate: UserUpdate, options?: AxiosRequestConfig) => Promise<AxiosResponse<UpdateProfileAuthMePatch200>>;
351
+ export declare const getUpdateProfileAuthMePatchMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
352
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProfileAuthMePatch>>, TError, {
353
+ data: UserUpdate;
354
+ }, TContext>;
355
+ axios?: AxiosRequestConfig;
356
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateProfileAuthMePatch>>, TError, {
357
+ data: UserUpdate;
358
+ }, TContext>;
359
+ export type UpdateProfileAuthMePatchMutationResult = NonNullable<Awaited<ReturnType<typeof updateProfileAuthMePatch>>>;
360
+ export type UpdateProfileAuthMePatchMutationBody = UserUpdate;
361
+ export type UpdateProfileAuthMePatchMutationError = AxiosError<HTTPValidationError>;
362
+ /**
363
+ * @summary Update Profile
364
+ */
365
+ export declare const useUpdateProfileAuthMePatch: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
366
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateProfileAuthMePatch>>, TError, {
367
+ data: UserUpdate;
368
+ }, TContext>;
369
+ axios?: AxiosRequestConfig;
370
+ }) => UseMutationResult<Awaited<ReturnType<typeof updateProfileAuthMePatch>>, TError, {
371
+ data: UserUpdate;
372
+ }, TContext>;
373
+ /**
374
+ * @summary Change Password
375
+ */
376
+ export declare const changePasswordAuthChangePasswordPost: (passwordChange: PasswordChange, options?: AxiosRequestConfig) => Promise<AxiosResponse<ChangePasswordAuthChangePasswordPost200>>;
377
+ export declare const getChangePasswordAuthChangePasswordPostMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
378
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof changePasswordAuthChangePasswordPost>>, TError, {
379
+ data: PasswordChange;
380
+ }, TContext>;
381
+ axios?: AxiosRequestConfig;
382
+ }) => UseMutationOptions<Awaited<ReturnType<typeof changePasswordAuthChangePasswordPost>>, TError, {
383
+ data: PasswordChange;
384
+ }, TContext>;
385
+ export type ChangePasswordAuthChangePasswordPostMutationResult = NonNullable<Awaited<ReturnType<typeof changePasswordAuthChangePasswordPost>>>;
386
+ export type ChangePasswordAuthChangePasswordPostMutationBody = PasswordChange;
387
+ export type ChangePasswordAuthChangePasswordPostMutationError = AxiosError<HTTPValidationError>;
388
+ /**
389
+ * @summary Change Password
390
+ */
391
+ export declare const useChangePasswordAuthChangePasswordPost: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
392
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof changePasswordAuthChangePasswordPost>>, TError, {
393
+ data: PasswordChange;
394
+ }, TContext>;
395
+ axios?: AxiosRequestConfig;
396
+ }) => UseMutationResult<Awaited<ReturnType<typeof changePasswordAuthChangePasswordPost>>, TError, {
397
+ data: PasswordChange;
398
+ }, TContext>;
399
+ /**
400
+ * @summary Get Pantry Image
401
+ */
402
+ export declare const getPantryImagePantryItemsPantryImageFilenameGet: (filename: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<unknown>>;
403
+ export declare const getGetPantryImagePantryItemsPantryImageFilenameGetQueryKey: (filename?: string) => readonly [`/pantry-items/pantry-image/${string}`];
404
+ export declare const getGetPantryImagePantryItemsPantryImageFilenameGetQueryOptions: <TData = Awaited<ReturnType<typeof getPantryImagePantryItemsPantryImageFilenameGet>>, TError = AxiosError<HTTPValidationError>>(filename: string, options?: {
405
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPantryImagePantryItemsPantryImageFilenameGet>>, TError, TData>;
406
+ axios?: AxiosRequestConfig;
407
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getPantryImagePantryItemsPantryImageFilenameGet>>, TError, TData> & {
408
+ queryKey: QueryKey;
409
+ };
410
+ export type GetPantryImagePantryItemsPantryImageFilenameGetQueryResult = NonNullable<Awaited<ReturnType<typeof getPantryImagePantryItemsPantryImageFilenameGet>>>;
411
+ export type GetPantryImagePantryItemsPantryImageFilenameGetQueryError = AxiosError<HTTPValidationError>;
412
+ /**
413
+ * @summary Get Pantry Image
414
+ */
415
+ export declare function useGetPantryImagePantryItemsPantryImageFilenameGet<TData = Awaited<ReturnType<typeof getPantryImagePantryItemsPantryImageFilenameGet>>, TError = AxiosError<HTTPValidationError>>(filename: string, options?: {
416
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPantryImagePantryItemsPantryImageFilenameGet>>, TError, TData>;
417
+ axios?: AxiosRequestConfig;
418
+ }): UseQueryResult<TData, TError> & {
419
+ queryKey: QueryKey;
420
+ };
421
+ /**
422
+ * @summary Create Pantry Item
423
+ */
424
+ export declare const createPantryItemPantryItemsPost: (bodyCreatePantryItemPantryItemsPost: BodyCreatePantryItemPantryItemsPost, options?: AxiosRequestConfig) => Promise<AxiosResponse<PantryItemResponse>>;
425
+ export declare const getCreatePantryItemPantryItemsPostMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
426
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPantryItemPantryItemsPost>>, TError, {
427
+ data: BodyCreatePantryItemPantryItemsPost;
428
+ }, TContext>;
429
+ axios?: AxiosRequestConfig;
430
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createPantryItemPantryItemsPost>>, TError, {
431
+ data: BodyCreatePantryItemPantryItemsPost;
432
+ }, TContext>;
433
+ export type CreatePantryItemPantryItemsPostMutationResult = NonNullable<Awaited<ReturnType<typeof createPantryItemPantryItemsPost>>>;
434
+ export type CreatePantryItemPantryItemsPostMutationBody = BodyCreatePantryItemPantryItemsPost;
435
+ export type CreatePantryItemPantryItemsPostMutationError = AxiosError<HTTPValidationError>;
436
+ /**
437
+ * @summary Create Pantry Item
438
+ */
439
+ export declare const useCreatePantryItemPantryItemsPost: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
440
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createPantryItemPantryItemsPost>>, TError, {
441
+ data: BodyCreatePantryItemPantryItemsPost;
442
+ }, TContext>;
443
+ axios?: AxiosRequestConfig;
444
+ }) => UseMutationResult<Awaited<ReturnType<typeof createPantryItemPantryItemsPost>>, TError, {
445
+ data: BodyCreatePantryItemPantryItemsPost;
446
+ }, TContext>;
447
+ /**
448
+ * @summary Get Pantry Items
449
+ */
450
+ export declare const getPantryItemsPantryItemsGet: (params?: GetPantryItemsPantryItemsGetParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<PantryItemResponse[]>>;
451
+ export declare const getGetPantryItemsPantryItemsGetQueryKey: (params?: GetPantryItemsPantryItemsGetParams) => readonly ["/pantry-items/", ...GetPantryItemsPantryItemsGetParams[]];
452
+ export declare const getGetPantryItemsPantryItemsGetQueryOptions: <TData = Awaited<ReturnType<typeof getPantryItemsPantryItemsGet>>, TError = AxiosError<HTTPValidationError>>(params?: GetPantryItemsPantryItemsGetParams, options?: {
453
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPantryItemsPantryItemsGet>>, TError, TData>;
454
+ axios?: AxiosRequestConfig;
455
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getPantryItemsPantryItemsGet>>, TError, TData> & {
456
+ queryKey: QueryKey;
457
+ };
458
+ export type GetPantryItemsPantryItemsGetQueryResult = NonNullable<Awaited<ReturnType<typeof getPantryItemsPantryItemsGet>>>;
459
+ export type GetPantryItemsPantryItemsGetQueryError = AxiosError<HTTPValidationError>;
460
+ /**
461
+ * @summary Get Pantry Items
462
+ */
463
+ export declare function useGetPantryItemsPantryItemsGet<TData = Awaited<ReturnType<typeof getPantryItemsPantryItemsGet>>, TError = AxiosError<HTTPValidationError>>(params?: GetPantryItemsPantryItemsGetParams, options?: {
464
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPantryItemsPantryItemsGet>>, TError, TData>;
465
+ axios?: AxiosRequestConfig;
466
+ }): UseQueryResult<TData, TError> & {
467
+ queryKey: QueryKey;
468
+ };
469
+ /**
470
+ * @summary Get Pantry Item
471
+ */
472
+ export declare const getPantryItemPantryItemsItemIdGet: (itemId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<PantryItemResponse>>;
473
+ export declare const getGetPantryItemPantryItemsItemIdGetQueryKey: (itemId?: number) => readonly ["/pantry-items/undefined" | `/pantry-items/${number}`];
474
+ export declare const getGetPantryItemPantryItemsItemIdGetQueryOptions: <TData = Awaited<ReturnType<typeof getPantryItemPantryItemsItemIdGet>>, TError = AxiosError<HTTPValidationError>>(itemId: number, options?: {
475
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPantryItemPantryItemsItemIdGet>>, TError, TData>;
476
+ axios?: AxiosRequestConfig;
477
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getPantryItemPantryItemsItemIdGet>>, TError, TData> & {
478
+ queryKey: QueryKey;
479
+ };
480
+ export type GetPantryItemPantryItemsItemIdGetQueryResult = NonNullable<Awaited<ReturnType<typeof getPantryItemPantryItemsItemIdGet>>>;
481
+ export type GetPantryItemPantryItemsItemIdGetQueryError = AxiosError<HTTPValidationError>;
482
+ /**
483
+ * @summary Get Pantry Item
484
+ */
485
+ export declare function useGetPantryItemPantryItemsItemIdGet<TData = Awaited<ReturnType<typeof getPantryItemPantryItemsItemIdGet>>, TError = AxiosError<HTTPValidationError>>(itemId: number, options?: {
486
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPantryItemPantryItemsItemIdGet>>, TError, TData>;
487
+ axios?: AxiosRequestConfig;
488
+ }): UseQueryResult<TData, TError> & {
489
+ queryKey: QueryKey;
490
+ };
491
+ /**
492
+ * @summary Update Pantry Item
493
+ */
494
+ export declare const updatePantryItemPantryItemsItemIdPut: (itemId: number, bodyUpdatePantryItemPantryItemsItemIdPut: BodyUpdatePantryItemPantryItemsItemIdPut, options?: AxiosRequestConfig) => Promise<AxiosResponse<PantryItemResponse>>;
495
+ export declare const getUpdatePantryItemPantryItemsItemIdPutMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
496
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePantryItemPantryItemsItemIdPut>>, TError, {
497
+ itemId: number;
498
+ data: BodyUpdatePantryItemPantryItemsItemIdPut;
499
+ }, TContext>;
500
+ axios?: AxiosRequestConfig;
501
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updatePantryItemPantryItemsItemIdPut>>, TError, {
502
+ itemId: number;
503
+ data: BodyUpdatePantryItemPantryItemsItemIdPut;
504
+ }, TContext>;
505
+ export type UpdatePantryItemPantryItemsItemIdPutMutationResult = NonNullable<Awaited<ReturnType<typeof updatePantryItemPantryItemsItemIdPut>>>;
506
+ export type UpdatePantryItemPantryItemsItemIdPutMutationBody = BodyUpdatePantryItemPantryItemsItemIdPut;
507
+ export type UpdatePantryItemPantryItemsItemIdPutMutationError = AxiosError<HTTPValidationError>;
508
+ /**
509
+ * @summary Update Pantry Item
510
+ */
511
+ export declare const useUpdatePantryItemPantryItemsItemIdPut: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
512
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updatePantryItemPantryItemsItemIdPut>>, TError, {
513
+ itemId: number;
514
+ data: BodyUpdatePantryItemPantryItemsItemIdPut;
515
+ }, TContext>;
516
+ axios?: AxiosRequestConfig;
517
+ }) => UseMutationResult<Awaited<ReturnType<typeof updatePantryItemPantryItemsItemIdPut>>, TError, {
518
+ itemId: number;
519
+ data: BodyUpdatePantryItemPantryItemsItemIdPut;
520
+ }, TContext>;
521
+ /**
522
+ * @summary Delete Pantry Item
523
+ */
524
+ export declare const deletePantryItemPantryItemsItemIdDelete: (itemId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DeletePantryItemPantryItemsItemIdDelete200>>;
525
+ export declare const getDeletePantryItemPantryItemsItemIdDeleteMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
526
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePantryItemPantryItemsItemIdDelete>>, TError, {
527
+ itemId: number;
528
+ }, TContext>;
529
+ axios?: AxiosRequestConfig;
530
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deletePantryItemPantryItemsItemIdDelete>>, TError, {
531
+ itemId: number;
532
+ }, TContext>;
533
+ export type DeletePantryItemPantryItemsItemIdDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof deletePantryItemPantryItemsItemIdDelete>>>;
534
+ export type DeletePantryItemPantryItemsItemIdDeleteMutationError = AxiosError<HTTPValidationError>;
535
+ /**
536
+ * @summary Delete Pantry Item
537
+ */
538
+ export declare const useDeletePantryItemPantryItemsItemIdDelete: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
539
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deletePantryItemPantryItemsItemIdDelete>>, TError, {
540
+ itemId: number;
541
+ }, TContext>;
542
+ axios?: AxiosRequestConfig;
543
+ }) => UseMutationResult<Awaited<ReturnType<typeof deletePantryItemPantryItemsItemIdDelete>>, TError, {
544
+ itemId: number;
545
+ }, TContext>;
546
+ /**
547
+ * @summary Get Recipe Image
548
+ */
549
+ export declare const getRecipeImageRecipesRecipeImageFilenameGet: (filename: string, options?: AxiosRequestConfig) => Promise<AxiosResponse<unknown>>;
550
+ export declare const getGetRecipeImageRecipesRecipeImageFilenameGetQueryKey: (filename?: string) => readonly [`/recipes/recipe-image/${string}`];
551
+ export declare const getGetRecipeImageRecipesRecipeImageFilenameGetQueryOptions: <TData = Awaited<ReturnType<typeof getRecipeImageRecipesRecipeImageFilenameGet>>, TError = AxiosError<HTTPValidationError>>(filename: string, options?: {
552
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRecipeImageRecipesRecipeImageFilenameGet>>, TError, TData>;
553
+ axios?: AxiosRequestConfig;
554
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getRecipeImageRecipesRecipeImageFilenameGet>>, TError, TData> & {
555
+ queryKey: QueryKey;
556
+ };
557
+ export type GetRecipeImageRecipesRecipeImageFilenameGetQueryResult = NonNullable<Awaited<ReturnType<typeof getRecipeImageRecipesRecipeImageFilenameGet>>>;
558
+ export type GetRecipeImageRecipesRecipeImageFilenameGetQueryError = AxiosError<HTTPValidationError>;
559
+ /**
560
+ * @summary Get Recipe Image
561
+ */
562
+ export declare function useGetRecipeImageRecipesRecipeImageFilenameGet<TData = Awaited<ReturnType<typeof getRecipeImageRecipesRecipeImageFilenameGet>>, TError = AxiosError<HTTPValidationError>>(filename: string, options?: {
563
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRecipeImageRecipesRecipeImageFilenameGet>>, TError, TData>;
564
+ axios?: AxiosRequestConfig;
565
+ }): UseQueryResult<TData, TError> & {
566
+ queryKey: QueryKey;
567
+ };
568
+ /**
569
+ * Search pantry items:
570
+ - Exact case-insensitive match -> results
571
+ - >=50% similarity but <100% -> suggestions
572
+ * @summary Search Pantry Items
573
+ */
574
+ export declare const searchPantryItemsRecipesPantrySearchGet: (params: SearchPantryItemsRecipesPantrySearchGetParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<SearchPantryItemsRecipesPantrySearchGet200>>;
575
+ export declare const getSearchPantryItemsRecipesPantrySearchGetQueryKey: (params?: SearchPantryItemsRecipesPantrySearchGetParams) => readonly ["/recipes/pantry/search", ...SearchPantryItemsRecipesPantrySearchGetParams[]];
576
+ export declare const getSearchPantryItemsRecipesPantrySearchGetQueryOptions: <TData = Awaited<ReturnType<typeof searchPantryItemsRecipesPantrySearchGet>>, TError = AxiosError<HTTPValidationError>>(params: SearchPantryItemsRecipesPantrySearchGetParams, options?: {
577
+ query?: UseQueryOptions<Awaited<ReturnType<typeof searchPantryItemsRecipesPantrySearchGet>>, TError, TData>;
578
+ axios?: AxiosRequestConfig;
579
+ }) => UseQueryOptions<Awaited<ReturnType<typeof searchPantryItemsRecipesPantrySearchGet>>, TError, TData> & {
580
+ queryKey: QueryKey;
581
+ };
582
+ export type SearchPantryItemsRecipesPantrySearchGetQueryResult = NonNullable<Awaited<ReturnType<typeof searchPantryItemsRecipesPantrySearchGet>>>;
583
+ export type SearchPantryItemsRecipesPantrySearchGetQueryError = AxiosError<HTTPValidationError>;
584
+ /**
585
+ * @summary Search Pantry Items
586
+ */
587
+ export declare function useSearchPantryItemsRecipesPantrySearchGet<TData = Awaited<ReturnType<typeof searchPantryItemsRecipesPantrySearchGet>>, TError = AxiosError<HTTPValidationError>>(params: SearchPantryItemsRecipesPantrySearchGetParams, options?: {
588
+ query?: UseQueryOptions<Awaited<ReturnType<typeof searchPantryItemsRecipesPantrySearchGet>>, TError, TData>;
589
+ axios?: AxiosRequestConfig;
590
+ }): UseQueryResult<TData, TError> & {
591
+ queryKey: QueryKey;
592
+ };
593
+ /**
594
+ * @summary Create Recipe
595
+ */
596
+ export declare const createRecipeRecipesPost: (bodyCreateRecipeRecipesPost: BodyCreateRecipeRecipesPost, options?: AxiosRequestConfig) => Promise<AxiosResponse<RecipeResponse>>;
597
+ export declare const getCreateRecipeRecipesPostMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
598
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createRecipeRecipesPost>>, TError, {
599
+ data: BodyCreateRecipeRecipesPost;
600
+ }, TContext>;
601
+ axios?: AxiosRequestConfig;
602
+ }) => UseMutationOptions<Awaited<ReturnType<typeof createRecipeRecipesPost>>, TError, {
603
+ data: BodyCreateRecipeRecipesPost;
604
+ }, TContext>;
605
+ export type CreateRecipeRecipesPostMutationResult = NonNullable<Awaited<ReturnType<typeof createRecipeRecipesPost>>>;
606
+ export type CreateRecipeRecipesPostMutationBody = BodyCreateRecipeRecipesPost;
607
+ export type CreateRecipeRecipesPostMutationError = AxiosError<HTTPValidationError>;
608
+ /**
609
+ * @summary Create Recipe
610
+ */
611
+ export declare const useCreateRecipeRecipesPost: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
612
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof createRecipeRecipesPost>>, TError, {
613
+ data: BodyCreateRecipeRecipesPost;
614
+ }, TContext>;
615
+ axios?: AxiosRequestConfig;
616
+ }) => UseMutationResult<Awaited<ReturnType<typeof createRecipeRecipesPost>>, TError, {
617
+ data: BodyCreateRecipeRecipesPost;
618
+ }, TContext>;
619
+ /**
620
+ * @summary Get Recipes
621
+ */
622
+ export declare const getRecipesRecipesGet: (params?: GetRecipesRecipesGetParams, options?: AxiosRequestConfig) => Promise<AxiosResponse<RecipeResponse[]>>;
623
+ export declare const getGetRecipesRecipesGetQueryKey: (params?: GetRecipesRecipesGetParams) => readonly ["/recipes/", ...GetRecipesRecipesGetParams[]];
624
+ export declare const getGetRecipesRecipesGetQueryOptions: <TData = Awaited<ReturnType<typeof getRecipesRecipesGet>>, TError = AxiosError<HTTPValidationError>>(params?: GetRecipesRecipesGetParams, options?: {
625
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRecipesRecipesGet>>, TError, TData>;
626
+ axios?: AxiosRequestConfig;
627
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getRecipesRecipesGet>>, TError, TData> & {
628
+ queryKey: QueryKey;
629
+ };
630
+ export type GetRecipesRecipesGetQueryResult = NonNullable<Awaited<ReturnType<typeof getRecipesRecipesGet>>>;
631
+ export type GetRecipesRecipesGetQueryError = AxiosError<HTTPValidationError>;
632
+ /**
633
+ * @summary Get Recipes
634
+ */
635
+ export declare function useGetRecipesRecipesGet<TData = Awaited<ReturnType<typeof getRecipesRecipesGet>>, TError = AxiosError<HTTPValidationError>>(params?: GetRecipesRecipesGetParams, options?: {
636
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRecipesRecipesGet>>, TError, TData>;
637
+ axios?: AxiosRequestConfig;
638
+ }): UseQueryResult<TData, TError> & {
639
+ queryKey: QueryKey;
640
+ };
641
+ /**
642
+ * @summary Get Recipe
643
+ */
644
+ export declare const getRecipeRecipesRecipeIdGet: (recipeId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<RecipeResponse>>;
645
+ export declare const getGetRecipeRecipesRecipeIdGetQueryKey: (recipeId?: number) => readonly ["/recipes/undefined" | `/recipes/${number}`];
646
+ export declare const getGetRecipeRecipesRecipeIdGetQueryOptions: <TData = Awaited<ReturnType<typeof getRecipeRecipesRecipeIdGet>>, TError = AxiosError<HTTPValidationError>>(recipeId: number, options?: {
647
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRecipeRecipesRecipeIdGet>>, TError, TData>;
648
+ axios?: AxiosRequestConfig;
649
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getRecipeRecipesRecipeIdGet>>, TError, TData> & {
650
+ queryKey: QueryKey;
651
+ };
652
+ export type GetRecipeRecipesRecipeIdGetQueryResult = NonNullable<Awaited<ReturnType<typeof getRecipeRecipesRecipeIdGet>>>;
653
+ export type GetRecipeRecipesRecipeIdGetQueryError = AxiosError<HTTPValidationError>;
654
+ /**
655
+ * @summary Get Recipe
656
+ */
657
+ export declare function useGetRecipeRecipesRecipeIdGet<TData = Awaited<ReturnType<typeof getRecipeRecipesRecipeIdGet>>, TError = AxiosError<HTTPValidationError>>(recipeId: number, options?: {
658
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRecipeRecipesRecipeIdGet>>, TError, TData>;
659
+ axios?: AxiosRequestConfig;
660
+ }): UseQueryResult<TData, TError> & {
661
+ queryKey: QueryKey;
662
+ };
663
+ /**
664
+ * @summary Update Recipe
665
+ */
666
+ export declare const updateRecipeRecipesRecipeIdPut: (recipeId: number, bodyUpdateRecipeRecipesRecipeIdPut: BodyUpdateRecipeRecipesRecipeIdPut, options?: AxiosRequestConfig) => Promise<AxiosResponse<RecipeResponse>>;
667
+ export declare const getUpdateRecipeRecipesRecipeIdPutMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
668
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateRecipeRecipesRecipeIdPut>>, TError, {
669
+ recipeId: number;
670
+ data: BodyUpdateRecipeRecipesRecipeIdPut;
671
+ }, TContext>;
672
+ axios?: AxiosRequestConfig;
673
+ }) => UseMutationOptions<Awaited<ReturnType<typeof updateRecipeRecipesRecipeIdPut>>, TError, {
674
+ recipeId: number;
675
+ data: BodyUpdateRecipeRecipesRecipeIdPut;
676
+ }, TContext>;
677
+ export type UpdateRecipeRecipesRecipeIdPutMutationResult = NonNullable<Awaited<ReturnType<typeof updateRecipeRecipesRecipeIdPut>>>;
678
+ export type UpdateRecipeRecipesRecipeIdPutMutationBody = BodyUpdateRecipeRecipesRecipeIdPut;
679
+ export type UpdateRecipeRecipesRecipeIdPutMutationError = AxiosError<HTTPValidationError>;
680
+ /**
681
+ * @summary Update Recipe
682
+ */
683
+ export declare const useUpdateRecipeRecipesRecipeIdPut: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
684
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof updateRecipeRecipesRecipeIdPut>>, TError, {
685
+ recipeId: number;
686
+ data: BodyUpdateRecipeRecipesRecipeIdPut;
687
+ }, TContext>;
688
+ axios?: AxiosRequestConfig;
689
+ }) => UseMutationResult<Awaited<ReturnType<typeof updateRecipeRecipesRecipeIdPut>>, TError, {
690
+ recipeId: number;
691
+ data: BodyUpdateRecipeRecipesRecipeIdPut;
692
+ }, TContext>;
693
+ /**
694
+ * @summary Delete Recipe
695
+ */
696
+ export declare const deleteRecipeRecipesRecipeIdDelete: (recipeId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<DeleteRecipeRecipesRecipeIdDelete200>>;
697
+ export declare const getDeleteRecipeRecipesRecipeIdDeleteMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
698
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteRecipeRecipesRecipeIdDelete>>, TError, {
699
+ recipeId: number;
700
+ }, TContext>;
701
+ axios?: AxiosRequestConfig;
702
+ }) => UseMutationOptions<Awaited<ReturnType<typeof deleteRecipeRecipesRecipeIdDelete>>, TError, {
703
+ recipeId: number;
704
+ }, TContext>;
705
+ export type DeleteRecipeRecipesRecipeIdDeleteMutationResult = NonNullable<Awaited<ReturnType<typeof deleteRecipeRecipesRecipeIdDelete>>>;
706
+ export type DeleteRecipeRecipesRecipeIdDeleteMutationError = AxiosError<HTTPValidationError>;
707
+ /**
708
+ * @summary Delete Recipe
709
+ */
710
+ export declare const useDeleteRecipeRecipesRecipeIdDelete: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
711
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteRecipeRecipesRecipeIdDelete>>, TError, {
712
+ recipeId: number;
713
+ }, TContext>;
714
+ axios?: AxiosRequestConfig;
715
+ }) => UseMutationResult<Awaited<ReturnType<typeof deleteRecipeRecipesRecipeIdDelete>>, TError, {
716
+ recipeId: number;
717
+ }, TContext>;
718
+ /**
719
+ * @summary Read Root
720
+ */
721
+ export declare const readRootGet: (options?: AxiosRequestConfig) => Promise<AxiosResponse<ReadRootGet200>>;
722
+ export declare const getReadRootGetQueryKey: () => readonly ["/"];
723
+ export declare const getReadRootGetQueryOptions: <TData = Awaited<ReturnType<typeof readRootGet>>, TError = AxiosError<unknown>>(options?: {
724
+ query?: UseQueryOptions<Awaited<ReturnType<typeof readRootGet>>, TError, TData>;
725
+ axios?: AxiosRequestConfig;
726
+ }) => UseQueryOptions<Awaited<ReturnType<typeof readRootGet>>, TError, TData> & {
727
+ queryKey: QueryKey;
728
+ };
729
+ export type ReadRootGetQueryResult = NonNullable<Awaited<ReturnType<typeof readRootGet>>>;
730
+ export type ReadRootGetQueryError = AxiosError<unknown>;
731
+ /**
732
+ * @summary Read Root
733
+ */
734
+ export declare function useReadRootGet<TData = Awaited<ReturnType<typeof readRootGet>>, TError = AxiosError<unknown>>(options?: {
735
+ query?: UseQueryOptions<Awaited<ReturnType<typeof readRootGet>>, TError, TData>;
736
+ axios?: AxiosRequestConfig;
737
+ }): UseQueryResult<TData, TError> & {
738
+ queryKey: QueryKey;
739
+ };
740
+ export {};
741
+ //# sourceMappingURL=index.d.ts.map