diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..8ee4233 Binary files /dev/null and b/bun.lockb differ diff --git a/src/client/index.ts b/src/client/index.ts index c436ab0..9c6db4a 100644 --- a/src/client/index.ts +++ b/src/client/index.ts @@ -25,7 +25,6 @@ export type { BaseEnumListSchema } from './models/BaseEnumListSchema'; export type { BaseEnumSchema } from './models/BaseEnumSchema'; export type { BaseMarketplaceSchema } from './models/BaseMarketplaceSchema'; export type { BaseShippingWarehouseSchema } from './models/BaseShippingWarehouseSchema'; -export type { BillPaymentInfo } from './models/BillPaymentInfo'; export type { BillPaymentStatus } from './models/BillPaymentStatus'; export type { BillStatusUpdateRequest } from './models/BillStatusUpdateRequest'; export type { Body_upload_product_barcode_image } from './models/Body_upload_product_barcode_image'; diff --git a/src/client/models/BillStatusUpdateRequest.ts b/src/client/models/BillStatusUpdateRequest.ts index e1249f4..e1a5848 100644 --- a/src/client/models/BillStatusUpdateRequest.ts +++ b/src/client/models/BillStatusUpdateRequest.ts @@ -2,12 +2,11 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { BillPaymentInfo } from './BillPaymentInfo'; import type { BillPaymentStatus } from './BillPaymentStatus'; import type { NotificationChannel } from './NotificationChannel'; export type BillStatusUpdateRequest = { listenerTransactionId: number; channel: NotificationChannel; - info: (BillPaymentInfo | BillPaymentStatus); + info: BillPaymentStatus; }; diff --git a/src/client/models/Body_upload_product_barcode_image.ts b/src/client/models/Body_upload_product_barcode_image.ts new file mode 100644 index 0000000..eb116f9 --- /dev/null +++ b/src/client/models/Body_upload_product_barcode_image.ts @@ -0,0 +1,8 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type Body_upload_product_barcode_image = { + upload_file: Blob; +}; + diff --git a/src/client/models/ProductDeleteBarcodeImageResponse.ts b/src/client/models/ProductDeleteBarcodeImageResponse.ts new file mode 100644 index 0000000..3e1f756 --- /dev/null +++ b/src/client/models/ProductDeleteBarcodeImageResponse.ts @@ -0,0 +1,9 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ProductDeleteBarcodeImageResponse = { + ok: boolean; + message: string; +}; + diff --git a/src/client/models/ProductGetBarcodeImageResponse.ts b/src/client/models/ProductGetBarcodeImageResponse.ts new file mode 100644 index 0000000..d50d4aa --- /dev/null +++ b/src/client/models/ProductGetBarcodeImageResponse.ts @@ -0,0 +1,8 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ProductGetBarcodeImageResponse = { + barcodeImageUrl?: (string | null); +}; + diff --git a/src/client/models/ProductUploadBarcodeImageResponse.ts b/src/client/models/ProductUploadBarcodeImageResponse.ts new file mode 100644 index 0000000..bd9f401 --- /dev/null +++ b/src/client/models/ProductUploadBarcodeImageResponse.ts @@ -0,0 +1,10 @@ +/* generated using openapi-typescript-codegen -- do not edit */ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export type ProductUploadBarcodeImageResponse = { + ok: boolean; + message: string; + barcodeImageUrl?: (string | null); +}; + diff --git a/src/routeTree.gen.ts b/src/routeTree.gen.ts index 25d0fb8..2f4d3a7 100644 --- a/src/routeTree.gen.ts +++ b/src/routeTree.gen.ts @@ -1,12 +1,12 @@ -/* prettier-ignore-start */ - /* eslint-disable */ // @ts-nocheck // noinspection JSUnusedGlobalSymbols -// This file is auto-generated by TanStack Router +// This file was automatically generated by TanStack Router. +// You should NOT make any changes in this file as it will be overwritten. +// Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. import { createFileRoute } from '@tanstack/react-router' @@ -32,11 +32,13 @@ const IndexLazyImport = createFileRoute('/')() // Create/Update Routes const TestLazyRoute = TestLazyImport.update({ + id: '/test', path: '/test', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/test.lazy').then((d) => d.Route)) const ShippingwarehousesLazyRoute = ShippingwarehousesLazyImport.update({ + id: '/shipping_warehouses', path: '/shipping_warehouses', getParentRoute: () => rootRoute, } as any).lazy(() => @@ -44,51 +46,61 @@ const ShippingwarehousesLazyRoute = ShippingwarehousesLazyImport.update({ ) const ServicesLazyRoute = ServicesLazyImport.update({ + id: '/services', path: '/services', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/services.lazy').then((d) => d.Route)) const ProductsLazyRoute = ProductsLazyImport.update({ + id: '/products', path: '/products', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/products.lazy').then((d) => d.Route)) const MarketplacesLazyRoute = MarketplacesLazyImport.update({ + id: '/marketplaces', path: '/marketplaces', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/marketplaces.lazy').then((d) => d.Route)) const LoginLazyRoute = LoginLazyImport.update({ + id: '/login', path: '/login', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/login.lazy').then((d) => d.Route)) const LeadsLazyRoute = LeadsLazyImport.update({ + id: '/leads', path: '/leads', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/leads.lazy').then((d) => d.Route)) const ClientsLazyRoute = ClientsLazyImport.update({ + id: '/clients', path: '/clients', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/clients.lazy').then((d) => d.Route)) const BarcodeLazyRoute = BarcodeLazyImport.update({ + id: '/barcode', path: '/barcode', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/barcode.lazy').then((d) => d.Route)) const AdminLazyRoute = AdminLazyImport.update({ + id: '/admin', path: '/admin', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/admin.lazy').then((d) => d.Route)) const IndexLazyRoute = IndexLazyImport.update({ + id: '/', path: '/', getParentRoute: () => rootRoute, } as any).lazy(() => import('./routes/index.lazy').then((d) => d.Route)) const DealsDealIdRoute = DealsDealIdImport.update({ + id: '/deals/$dealId', path: '/deals/$dealId', getParentRoute: () => rootRoute, } as any) @@ -186,22 +198,131 @@ declare module '@tanstack/react-router' { // Create and export the route tree -export const routeTree = rootRoute.addChildren({ - IndexLazyRoute, - AdminLazyRoute, - BarcodeLazyRoute, - ClientsLazyRoute, - LeadsLazyRoute, - LoginLazyRoute, - MarketplacesLazyRoute, - ProductsLazyRoute, - ServicesLazyRoute, - ShippingwarehousesLazyRoute, - TestLazyRoute, - DealsDealIdRoute, -}) +export interface FileRoutesByFullPath { + '/': typeof IndexLazyRoute + '/admin': typeof AdminLazyRoute + '/barcode': typeof BarcodeLazyRoute + '/clients': typeof ClientsLazyRoute + '/leads': typeof LeadsLazyRoute + '/login': typeof LoginLazyRoute + '/marketplaces': typeof MarketplacesLazyRoute + '/products': typeof ProductsLazyRoute + '/services': typeof ServicesLazyRoute + '/shipping_warehouses': typeof ShippingwarehousesLazyRoute + '/test': typeof TestLazyRoute + '/deals/$dealId': typeof DealsDealIdRoute +} -/* prettier-ignore-end */ +export interface FileRoutesByTo { + '/': typeof IndexLazyRoute + '/admin': typeof AdminLazyRoute + '/barcode': typeof BarcodeLazyRoute + '/clients': typeof ClientsLazyRoute + '/leads': typeof LeadsLazyRoute + '/login': typeof LoginLazyRoute + '/marketplaces': typeof MarketplacesLazyRoute + '/products': typeof ProductsLazyRoute + '/services': typeof ServicesLazyRoute + '/shipping_warehouses': typeof ShippingwarehousesLazyRoute + '/test': typeof TestLazyRoute + '/deals/$dealId': typeof DealsDealIdRoute +} + +export interface FileRoutesById { + __root__: typeof rootRoute + '/': typeof IndexLazyRoute + '/admin': typeof AdminLazyRoute + '/barcode': typeof BarcodeLazyRoute + '/clients': typeof ClientsLazyRoute + '/leads': typeof LeadsLazyRoute + '/login': typeof LoginLazyRoute + '/marketplaces': typeof MarketplacesLazyRoute + '/products': typeof ProductsLazyRoute + '/services': typeof ServicesLazyRoute + '/shipping_warehouses': typeof ShippingwarehousesLazyRoute + '/test': typeof TestLazyRoute + '/deals/$dealId': typeof DealsDealIdRoute +} + +export interface FileRouteTypes { + fileRoutesByFullPath: FileRoutesByFullPath + fullPaths: + | '/' + | '/admin' + | '/barcode' + | '/clients' + | '/leads' + | '/login' + | '/marketplaces' + | '/products' + | '/services' + | '/shipping_warehouses' + | '/test' + | '/deals/$dealId' + fileRoutesByTo: FileRoutesByTo + to: + | '/' + | '/admin' + | '/barcode' + | '/clients' + | '/leads' + | '/login' + | '/marketplaces' + | '/products' + | '/services' + | '/shipping_warehouses' + | '/test' + | '/deals/$dealId' + id: + | '__root__' + | '/' + | '/admin' + | '/barcode' + | '/clients' + | '/leads' + | '/login' + | '/marketplaces' + | '/products' + | '/services' + | '/shipping_warehouses' + | '/test' + | '/deals/$dealId' + fileRoutesById: FileRoutesById +} + +export interface RootRouteChildren { + IndexLazyRoute: typeof IndexLazyRoute + AdminLazyRoute: typeof AdminLazyRoute + BarcodeLazyRoute: typeof BarcodeLazyRoute + ClientsLazyRoute: typeof ClientsLazyRoute + LeadsLazyRoute: typeof LeadsLazyRoute + LoginLazyRoute: typeof LoginLazyRoute + MarketplacesLazyRoute: typeof MarketplacesLazyRoute + ProductsLazyRoute: typeof ProductsLazyRoute + ServicesLazyRoute: typeof ServicesLazyRoute + ShippingwarehousesLazyRoute: typeof ShippingwarehousesLazyRoute + TestLazyRoute: typeof TestLazyRoute + DealsDealIdRoute: typeof DealsDealIdRoute +} + +const rootRouteChildren: RootRouteChildren = { + IndexLazyRoute: IndexLazyRoute, + AdminLazyRoute: AdminLazyRoute, + BarcodeLazyRoute: BarcodeLazyRoute, + ClientsLazyRoute: ClientsLazyRoute, + LeadsLazyRoute: LeadsLazyRoute, + LoginLazyRoute: LoginLazyRoute, + MarketplacesLazyRoute: MarketplacesLazyRoute, + ProductsLazyRoute: ProductsLazyRoute, + ServicesLazyRoute: ServicesLazyRoute, + ShippingwarehousesLazyRoute: ShippingwarehousesLazyRoute, + TestLazyRoute: TestLazyRoute, + DealsDealIdRoute: DealsDealIdRoute, +} + +export const routeTree = rootRoute + ._addFileChildren(rootRouteChildren) + ._addFileTypes() /* ROUTE_MANIFEST_START {