UNPKG

pure-orm

Version:

A SQL Toolkit based on pure business objects passed to and from stateful data access objects

51 lines (50 loc) 1.45 kB
import { UtmSource } from './utm-source'; import { Customer } from './customer'; import { PhysicalAddress } from './physical-address'; import { IModel, ICollection, IColumns } from '../../../src/index'; export declare const tableName: string; export declare const columns: IColumns; export declare class Order implements IModel { id: number; email: string; customerId: number; customer?: Customer; shippingAddressId: number; shippingAddress?: PhysicalAddress; billingAddressId: number; billingAddress?: PhysicalAddress; browserIp: number; browserUserAgent: number; kujoImportedDate: Date; createdDate: Date; cancelReason: string; cancelledDate: Date; closedDate: Date; processedDate: Date; updatedDate: Date; note: string; subtotalPrice: number; taxesIncluded: boolean; totalDiscounts: number; totalPrice: number; totalTax: number; totalWeight: number; orderStatusUrl: string; utmSourceId: number; utmSource?: UtmSource; utmMediumId: number; utmCampaign: string; utmContent: string; utmTerm: string; constructor(props: any); } export declare class Orders implements ICollection<Order> { models: Array<Order>; constructor({ models }: any); } export declare const orderEntity: { tableName: string; columns: import("../../../src/core").IColumn[]; Model: typeof Order; Collection: typeof Orders; };