feat(api): generate and update API client modules
Add new API client modules for various endpoints including authentication, orders, events, and configuration management. Update existing modules to use the standardized request utility. Add post-generation script to restore request.ts after openapi-ts generation to prevent file deletion issues. The API client generation now includes comprehensive TypeScript types and proper request handling for all endpoints. The request utility has been enhanced to handle query parameters and response parsing consistently across all API calls.
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
"release": "pnpm run package && electron-builder --publish always",
|
||||
"lint": "eslint --ext .ts,.tsx .",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"openapi": "dotenv -e .env -- openapi-ts",
|
||||
"openapi": "dotenv -e .env -- openapi-ts && node scripts/restore-api-request.mjs",
|
||||
"generate-prod-entry": "node build/scripts/generateProdEntry.js",
|
||||
"clean": "node build/scripts/clean.js",
|
||||
"build:encrypt": "pnpm run clean && pnpm run build:vite && pnpm run package",
|
||||
|
||||
Reference in New Issue
Block a user