refactor kal

This commit is contained in:
2024-11-05 00:02:04 +03:00
parent e900901765
commit 1d0095c7c4
8 changed files with 175 additions and 21 deletions

BIN
bun.lockb Executable file

Binary file not shown.

View File

@@ -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';

View File

@@ -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;
};

View File

@@ -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;
};

View File

@@ -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;
};

View File

@@ -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);
};

View File

@@ -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);
};

View File

@@ -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<FileRouteTypes>()
/* ROUTE_MANIFEST_START
{