import { scalar } from "./base.scalar"; import { entity } from "./base.entity"; import { pair } from "./base.pair"; import { projectEntity } from "./projectEntity"; import { subscriptionEntity } from "./subscriptionEntity"; import { profileEntity } from "./profileEntity"; import { userEntity } from "./userEntity"; import { planEntity } from "./planEntity"; import { orderStatusEnum } from "./orderStatusEnum"; import { orderProviderEnum } from "./orderProviderEnum"; export declare namespace orderEntity { type Id = scalar.Uuid; interface Doc extends entity.Doc { name?: scalar.Title; _name?: scalar.Alpha; project?: projectEntity.Id; profile?: profileEntity.Id; user?: userEntity.Id; subscription?: subscriptionEntity.Id; plan?: planEntity.Id; status?: orderStatusEnum.Id; provider?: orderProviderEnum.Id; custom?: Custom; } type Table = entity.Wrapper; interface View extends entity.View { name?: scalar.Title; project?: projectEntity.View; profile?: profileEntity.View; user?: userEntity.View; subscription?: subscriptionEntity.View; plan?: planEntity.View; status?: orderStatusEnum.Id; provider?: orderProviderEnum.Id; custom?: Custom; } type Custom = scalar.AnyObject; interface Pair extends pair.Core { } type IdOrPair = Id | Pair; interface CreateDto { plan: planEntity.Id; subscription: subscriptionEntity.Id; status: orderStatusEnum.Id; remote: scalar.AnyObject; } interface UpdateDto { id: Id; subscription: subscriptionEntity.Id; status: orderStatusEnum.Id; remote: scalar.AnyObject; } interface SetStateDto { id: Id; status: orderStatusEnum.Id; remote: scalar.AnyObject; } interface SetStatusDto { id: Id; status: orderStatusEnum.Id; remote: scalar.AnyObject; } interface CmsUpdate { id?: Id; subscription?: subscriptionEntity.Id; status?: orderStatusEnum.Id; custom?: Custom; } }