import { createGetDB, type Generated, type Timestamp, type NamespaceDB, type NamespaceInsertable, type NamespaceSelectable, type NamespaceTable, type NamespaceTableName, type NamespaceTransaction, type NamespaceUpdateable, } from "@tailor-platform/sdk/kysely"; export interface Namespace { "main-db": { OutboundShipment: { id: Generated; status: "DRAFT" | "CANCELLED" | "POSTED"; effectiveDate: Timestamp; postedAt: Timestamp | null; createdAt: Generated; updatedAt: Generated; } OutboundShipmentLine: { id: Generated; outboundShipmentId: string; itemId: string; quantity: string; unitId: string; primaryQuantity: string; primaryUnitId: string; unitConversionRate: string; storageLocationId: string; stockType: "AVAILABLE" | "BLOCKED" | "IN_TRANSIT"; sourceDocumentType: "SALES_ORDER"; sourceDocumentId: string; sourceLineId: string; createdAt: Generated; updatedAt: Generated; } } } export const getDB = createGetDB(); export type DB = NamespaceDB; export type Transaction = NamespaceTransaction; type TableName = NamespaceTableName; export type Table = NamespaceTable; export type Insertable = NamespaceInsertable; export type Selectable = NamespaceSelectable; export type Updateable = NamespaceUpdateable;