factura-middle
Version:
Factura+ queries definitions
41 lines (24 loc) • 617 B
text/typescript
import { ObjectType, Field, registerEnumType } from "type-graphql";
@ObjectType()
class AgencyPhoneType {
e164: string;
nationalNumber: string;
countryCode: string;
}
@ObjectType()
class AgencyAddressType {
@Field({ description: "Country" })
country: string;
@Field({ description: "Province" })
province: string;
@Field({ description: "Exact Address" })
address: string;
}
@ObjectType()
export class Agency {
_id: string;
IDUser: string;
agencyName:string;
address: AgencyAddressType;
phone:AgencyPhoneType;
}