khansama-api 1.66.0 โ 1.67.0
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/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Generated by orval v7.13.2 ๐บ
|
|
3
3
|
* Do not edit manually.
|
|
4
4
|
* Recipe Management API
|
|
5
|
-
* OpenAPI spec version: 1.
|
|
5
|
+
* OpenAPI spec version: 1.67.0
|
|
6
6
|
*/
|
|
7
7
|
import { useMutation, useQuery } from '@tanstack/react-query';
|
|
8
8
|
import axios from 'axios';
|
|
@@ -4046,6 +4046,35 @@ export function useGetPlanWeekViewPlansPlanIdWeekViewGet(planId, options) {
|
|
|
4046
4046
|
query.queryKey = queryOptions.queryKey;
|
|
4047
4047
|
return query;
|
|
4048
4048
|
}
|
|
4049
|
+
/**
|
|
4050
|
+
* Read-only per-day macros for a plan (PAN-537), recomputed from its
|
|
4051
|
+
persisted slots โ the week-view numbers without the shopping-list
|
|
4052
|
+
refresh, so viewing the plan never writes list rows.
|
|
4053
|
+
* @summary Get Plan Macros
|
|
4054
|
+
*/
|
|
4055
|
+
export const getPlanMacrosPlansPlanIdMacrosGet = (planId, options) => {
|
|
4056
|
+
return axios.get(`/plans/${planId}/macros`, options);
|
|
4057
|
+
};
|
|
4058
|
+
export const getGetPlanMacrosPlansPlanIdMacrosGetQueryKey = (planId) => {
|
|
4059
|
+
return [
|
|
4060
|
+
`/plans/${planId}/macros`
|
|
4061
|
+
];
|
|
4062
|
+
};
|
|
4063
|
+
export const getGetPlanMacrosPlansPlanIdMacrosGetQueryOptions = (planId, options) => {
|
|
4064
|
+
const { query: queryOptions, axios: axiosOptions } = options ?? {};
|
|
4065
|
+
const queryKey = queryOptions?.queryKey ?? getGetPlanMacrosPlansPlanIdMacrosGetQueryKey(planId);
|
|
4066
|
+
const queryFn = ({ signal }) => getPlanMacrosPlansPlanIdMacrosGet(planId, { signal, ...axiosOptions });
|
|
4067
|
+
return { queryKey, queryFn, enabled: !!(planId), ...queryOptions };
|
|
4068
|
+
};
|
|
4069
|
+
/**
|
|
4070
|
+
* @summary Get Plan Macros
|
|
4071
|
+
*/
|
|
4072
|
+
export function useGetPlanMacrosPlansPlanIdMacrosGet(planId, options) {
|
|
4073
|
+
const queryOptions = getGetPlanMacrosPlansPlanIdMacrosGetQueryOptions(planId, options);
|
|
4074
|
+
const query = useQuery(queryOptions);
|
|
4075
|
+
query.queryKey = queryOptions.queryKey;
|
|
4076
|
+
return query;
|
|
4077
|
+
}
|
|
4049
4078
|
/**
|
|
4050
4079
|
* The plan editor's workhorse (ยง5.5): create/update/delete slot cells
|
|
4051
4080
|
with per-item results. Items without id create; with id update (or delete
|