feat(api): generate API models and hooks for public shop configuration and commerce entities
- Added generated API hooks and models for public shop configuration, including listing and retrieving configurations. - Introduced models for commerce categories, discount codes, orders, product images, and products with pagination and search parameters. - Ensured all generated files are structured for easy integration with React Query.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { defineConfig } from "orval";
|
||||
|
||||
const backendUrl = import.meta.env.VITE_BACKEND_URL || "http://localhost:8000";
|
||||
const backendUrl = process.env.VITE_BACKEND_URL || "http://localhost:8000";
|
||||
|
||||
// může se hodit pokud nechceme při buildu generovat klienta (nechat false pro produkci nebo vynechat)
|
||||
const SKIP_ORVAL = process.env.SKIP_ORVAL === "true";
|
||||
@@ -27,6 +27,7 @@ export default defineConfig({
|
||||
clean: true,
|
||||
client: "react-query",
|
||||
httpClient: "axios",
|
||||
tsconfig: "./tsconfig.app.json",
|
||||
override: {
|
||||
mutator: {
|
||||
path: "api/publicClient.ts",
|
||||
@@ -57,6 +58,7 @@ export default defineConfig({
|
||||
clean: true,
|
||||
client: "react-query",
|
||||
httpClient: "axios",
|
||||
tsconfig: "./tsconfig.app.json",
|
||||
override: {
|
||||
mutator: {
|
||||
path: "api/privateClient.ts",
|
||||
|
||||
Reference in New Issue
Block a user