diff --git a/bun.lock b/bun.lock index d682b2d..befc9fe 100644 --- a/bun.lock +++ b/bun.lock @@ -13,7 +13,7 @@ "@react-navigation/elements": "^2.6.3", "@react-navigation/native": "^7.1.8", "@repo/core": "1.0.1", - "@repo/sdk": "1.0.4", + "@repo/sdk": "1.0.6", "@sentry/react-native": "^7.8.0", "@shopify/flash-list": "^2.2.0", "@stripe/react-stripe-js": "^5.4.1", @@ -616,7 +616,7 @@ "@repo/core": ["@repo/core@1.0.1", "https://gitea.bowongai.com/api/packages/bowong/npm/%40repo%2Fcore/-/1.0.1/core-1.0.1.tgz", {}, "sha512-dzdae2NBT0L4GWCtz6PscmaRvElGFXWeJ46vQhDYc2z49wjnRYRxZgIcwB5bxXjfYZF3sj0cnbbs5mz8F16oAw=="], - "@repo/sdk": ["@repo/sdk@1.0.4", "https://gitea.bowongai.com/api/packages/bowong/npm/%40repo%2Fsdk/-/1.0.4/sdk-1.0.4.tgz", { "dependencies": { "@repo/core": "1.0.1", "reflect-metadata": "^0.2.1", "zod": "^4.2.1" } }, "sha512-uMjxK4G2aEvssshtcxBIZsDSnP2JYLC8ClB/GrstjKeBuElbZKTAomaeIL8PmZILfIA96Jq6sWKh5ZlKVK2jfg=="], + "@repo/sdk": ["@repo/sdk@1.0.6", "https://gitea.bowongai.com/api/packages/bowong/npm/%40repo%2Fsdk/-/1.0.6/sdk-1.0.6.tgz", { "dependencies": { "@repo/core": "1.0.1", "reflect-metadata": "^0.2.1", "zod": "^4.2.1" } }, "sha512-Ge2QnbJzJRbMx3qiejjr24+d9jAWQn0V/ljetu69g07UWYNNqNQrRQnr9BLglroaOnRF6R6laYao2IFRcbuTsQ=="], "@rtsao/scc": ["@rtsao/scc@1.1.0", "", {}, "sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g=="], diff --git a/hooks/actions/use-template-actions.ts b/hooks/actions/use-template-actions.ts index 7a2c943..f43ec34 100644 --- a/hooks/actions/use-template-actions.ts +++ b/hooks/actions/use-template-actions.ts @@ -51,23 +51,6 @@ export const useTemplateActions = () => { return { generationId: data?.generationId, error: null } }, []) - const createGeneration = useCallback(async (params: CreateTemplateGenerationInput) => { - setLoading(true) - setError(null) - - const templateGeneration = root.get(TemplateGenerationController) - const { data, error } = await handleError(async () => await templateGeneration.create(params)) - - if (error) { - setError(error) - setLoading(false) - return { generation: null, error } - } - - setLoading(false) - return { generation: data, error: null } - }, []) - const deleteGeneration = useCallback(async (id: string) => { setLoading(true) setError(null) @@ -106,7 +89,6 @@ export const useTemplateActions = () => { loading, error, runTemplate, - createGeneration, deleteGeneration, batchDeleteGenerations, reRunTemplate, diff --git a/package.json b/package.json index d15b628..e145bba 100644 --- a/package.json +++ b/package.json @@ -41,7 +41,7 @@ "@react-navigation/elements": "^2.6.3", "@react-navigation/native": "^7.1.8", "@repo/core": "1.0.1", - "@repo/sdk": "1.0.4", + "@repo/sdk": "1.0.6", "@sentry/react-native": "^7.8.0", "@shopify/flash-list": "^2.2.0", "@stripe/react-stripe-js": "^5.4.1",