@restaround/react 1.2.16 → 1.2.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,10 @@
1
+ export * from "../modules/addon/models";
2
+ export * from "../modules/branch/models";
1
3
  export * from "../modules/business/models";
4
+ export * from "../modules/customer/models";
5
+ export * from "../modules/feature/models";
6
+ export * from "../modules/order/models";
2
7
  export * from "../modules/product/models";
3
- export * from "../modules/branch/models";
4
8
  export * from "./category";
5
9
  export * from "./menu";
6
10
  export * from "./pricing";
@@ -1,2 +1,2 @@
1
- var i,e;!function(i){i.LIST="list",i.GRID="grid"}(i||(i={})),function(i){i.APPETIZER="appetizer",i.MAIN_COURSE="mainCourse",i.CHEFS_SPECIAL="chefsSpecial"}(e||(e={}));export{e as PlanType,i as ProductView};
1
+ var E,I,R,L,A,P,D,N,n,C,T;!function(E){E.SINGLE="SINGLE",E.MULTIPLE="MULTIPLE"}(E||(E={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(I||(I={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(R||(R={})),function(E){E.ORDER="feature_order"}(L||(L={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(A||(A={})),function(E){E.PENDING="PENDING",E.CONFIRMED="CONFIRMED",E.PREPARING="PREPARING",E.READY="READY",E.COMPLETED="COMPLETED",E.CANCELLED="CANCELLED"}(P||(P={})),function(E){E.PENDING="PENDING",E.PREPARING="PREPARING",E.READY="READY",E.SERVED="SERVED"}(D||(D={})),function(E){E.CASH="CASH",E.CARD="CARD",E.WALLET="WALLET",E.TERMINAL="TERMINAL"}(N||(N={})),function(E){E.CART="CART",E.DETAILS="DETAILS",E.COMPLETED="COMPLETED"}(n||(n={})),function(E){E.LIST="list",E.GRID="grid"}(C||(C={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial"}(T||(T={}));export{R as CustomerAddressType,I as CustomerAuthStep,L as Feature,E as MenuAddonSelectType,D as OrderItemStatus,P as OrderStatus,n as OrderStep,A as OrderType,N as PaymentMethod,T as PlanType,C as ProductView};
2
2
  //# sourceMappingURL=index.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../src/modules/product/models.ts","../../../src/models/pricing.ts"],"sourcesContent":["import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n"],"names":["ProductView","PlanType"],"mappings":"IAyCYA,ECzCAC,GDyCZ,SAAYD,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,MACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,IC5CD,SAAYC,GACXA,EAAA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,cACA,CAJD,CAAYA,IAAAA,EAIX,CAAA"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/customer/models.ts","../../../src/modules/feature/models.ts","../../../src/modules/order/models.ts","../../../src/modules/product/models.ts","../../../src/models/pricing.ts"],"sourcesContent":["export enum MenuAddonSelectType {\n\tSINGLE = \"SINGLE\",\n\tMULTIPLE = \"MULTIPLE\",\n}\n\nexport interface MenuAddonTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOptionTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOption {\n\tid?: number;\n\tprice: number;\n\ttranslations: MenuAddonOptionTranslation[];\n\tremove?: boolean;\n}\n\nexport interface MenuAddon {\n\tid?: number;\n\tselectType: MenuAddonSelectType;\n\ttranslations: MenuAddonTranslation[];\n\toptions: MenuAddonOption[];\n\tbusinessId?: number;\n}\n","export enum CustomerAuthStep {\n\tPHONE = \"PHONE\",\n\tOTP = \"OTP\",\n\tEMAIL = \"EMAIL\",\n}\n\nexport enum CustomerAddressType {\n\tHOME = \"HOME\",\n\tWORK = \"WORK\",\n\tTRAVEL = \"TRAVEL\",\n}\n\nexport interface CustomerAddress {\n\tid?: number;\n\taddressId?: number; // Update address temporary\n\tcountryCode: string;\n\tcityName: string;\n\tstreet: string;\n\thouseNumber: string;\n\tadditionalNumber?: string;\n\tpostCode?: string;\n\tinstructions?: string;\n\tfloor?: number;\n\tlongitude?: number;\n\tlatitude?: number;\n\ttitle?: string;\n\ttype?: CustomerAddressType;\n}\n\nexport interface CustomerAuthForm {\n\tphoneNumber: string;\n\totp: string;\n\temail: string;\n}\n\nexport interface CustomerAuthPhoneForm {\n\tcountryCode: string;\n\tphoneNumber: string;\n}\n\nexport interface AuthResponse {\n\taccessToken: string;\n\trefreshToken: string;\n}\n\nexport interface Customer {\n\tid?: number;\n\temail: string;\n\tfullName: string;\n\taddress: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\n","export enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport enum OrderItemStatus {\n\tPENDING = \"PENDING\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tSERVED = \"SERVED\",\n}\n\nexport enum PaymentMethod {\n\tCASH = \"CASH\",\n\tCARD = \"CARD\",\n\tWALLET = \"WALLET\",\n\tTERMINAL = \"TERMINAL\",\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface SelectedAddons {\n\t[key: number]: number | number[];\n}\n\nexport interface OrderItemVariant {\n\tid?: number;\n\tvariantId: number;\n\tprice: number;\n}\n\nexport interface OrderItem {\n\tid?: number;\n\tproductId: number;\n\torderId?: number;\n\tquantity: number;\n\tprice: number;\n\tvariant?: OrderItemVariant;\n\taddons: OrderAddon[];\n\tnote?: string;\n\tstatus?: OrderItemStatus;\n\tvat?: number;\n\tisPaid?: boolean;\n}\n\nexport interface Order {\n\tid?: number;\n\tbusinessId?: number;\n\tbranchId?: number;\n\tworkingDayId?: number;\n\ttableId?: number;\n\tcustomerId?: number;\n\temployeeId?: number;\n\torderType: OrderType;\n\ttotalPriceWithTax: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n\titems: OrderItem[];\n\tstatus?: OrderStatus;\n\tvat?: number;\n\tpaymentMethod?: PaymentMethod;\n\tnote?: string;\n\tcreatedAt?: number;\n\tupdatedAt?: number;\n}\n\nexport interface OrderItems {\n\t[key: string]: OrderItem;\n}\n\nexport enum OrderStep {\n\tCART = \"CART\",\n\tDETAILS = \"DETAILS\",\n\tCOMPLETED = \"COMPLETED\",\n}\n","import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n\nexport interface DashboardProduct extends Omit<Product, \"addons\"> {\n\taddons: number[];\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n"],"names":["MenuAddonSelectType","CustomerAuthStep","CustomerAddressType","Feature","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType"],"mappings":"IAAYA,ECAAC,EAMAC,ECNAC,ECAAC,EAMAC,EASAC,EAOAC,EA+DAC,EC5CAC,ECzCAC,GLAZ,SAAYV,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,ICHD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,OACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,QACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICVD,SAAYC,GACXA,EAAA,MAAA,eACA,CAFD,CAAYA,IAAAA,EAEX,CAAA,ICFD,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,UACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,UAAA,YACAA,EAAA,UAAA,WACA,CAPD,CAAYA,IAAAA,EAOX,CAAA,IAED,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,OAAA,QACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IAED,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IA0DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IChDD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,MACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,IC5CD,SAAYC,GACXA,EAAA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,cACA,CAJD,CAAYA,IAAAA,EAIX,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e,r;exports.ProductView=void 0,(e=exports.ProductView||(exports.ProductView={})).LIST="list",e.GRID="grid",exports.PlanType=void 0,(r=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",r.MAIN_COURSE="mainCourse",r.CHEFS_SPECIAL="chefsSpecial";
1
+ "use strict";var e,t,r,o,E,s,p,d,A,P;exports.MenuAddonSelectType=void 0,(e=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",e.MULTIPLE="MULTIPLE",exports.CustomerAuthStep=void 0,(t=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",t.OTP="OTP",t.EMAIL="EMAIL",exports.CustomerAddressType=void 0,(r=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",r.WORK="WORK",r.TRAVEL="TRAVEL",exports.Feature=void 0,(exports.Feature||(exports.Feature={})).ORDER="feature_order",exports.OrderType=void 0,(o=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",o.PICK_UP="PICK_UP",o.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(E=exports.OrderStatus||(exports.OrderStatus={})).PENDING="PENDING",E.CONFIRMED="CONFIRMED",E.PREPARING="PREPARING",E.READY="READY",E.COMPLETED="COMPLETED",E.CANCELLED="CANCELLED",exports.OrderItemStatus=void 0,(s=exports.OrderItemStatus||(exports.OrderItemStatus={})).PENDING="PENDING",s.PREPARING="PREPARING",s.READY="READY",s.SERVED="SERVED",exports.PaymentMethod=void 0,(p=exports.PaymentMethod||(exports.PaymentMethod={})).CASH="CASH",p.CARD="CARD",p.WALLET="WALLET",p.TERMINAL="TERMINAL",exports.OrderStep=void 0,(d=exports.OrderStep||(exports.OrderStep={})).CART="CART",d.DETAILS="DETAILS",d.COMPLETED="COMPLETED",exports.ProductView=void 0,(A=exports.ProductView||(exports.ProductView={})).LIST="list",A.GRID="grid",exports.PlanType=void 0,(P=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",P.MAIN_COURSE="mainCourse",P.CHEFS_SPECIAL="chefsSpecial";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../../src/modules/product/models.ts","../../../src/models/pricing.ts"],"sourcesContent":["import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n"],"names":["ProductView","PlanType"],"mappings":"aAyCA,IAAYA,ECzCAC,EDyCAD,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAGX,CAAA,IAFA,KAAA,OACAA,EAAA,KAAA,OC3CWC,QAAAA,cAAAA,GAAAA,EAAAA,QAAQA,WAARA,iBAIX,CAAA,IAHA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/customer/models.ts","../../../src/modules/order/models.ts","../../../src/modules/product/models.ts","../../../src/models/pricing.ts","../../../src/modules/feature/models.ts"],"sourcesContent":["export enum MenuAddonSelectType {\n\tSINGLE = \"SINGLE\",\n\tMULTIPLE = \"MULTIPLE\",\n}\n\nexport interface MenuAddonTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOptionTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface MenuAddonOption {\n\tid?: number;\n\tprice: number;\n\ttranslations: MenuAddonOptionTranslation[];\n\tremove?: boolean;\n}\n\nexport interface MenuAddon {\n\tid?: number;\n\tselectType: MenuAddonSelectType;\n\ttranslations: MenuAddonTranslation[];\n\toptions: MenuAddonOption[];\n\tbusinessId?: number;\n}\n","export enum CustomerAuthStep {\n\tPHONE = \"PHONE\",\n\tOTP = \"OTP\",\n\tEMAIL = \"EMAIL\",\n}\n\nexport enum CustomerAddressType {\n\tHOME = \"HOME\",\n\tWORK = \"WORK\",\n\tTRAVEL = \"TRAVEL\",\n}\n\nexport interface CustomerAddress {\n\tid?: number;\n\taddressId?: number; // Update address temporary\n\tcountryCode: string;\n\tcityName: string;\n\tstreet: string;\n\thouseNumber: string;\n\tadditionalNumber?: string;\n\tpostCode?: string;\n\tinstructions?: string;\n\tfloor?: number;\n\tlongitude?: number;\n\tlatitude?: number;\n\ttitle?: string;\n\ttype?: CustomerAddressType;\n}\n\nexport interface CustomerAuthForm {\n\tphoneNumber: string;\n\totp: string;\n\temail: string;\n}\n\nexport interface CustomerAuthPhoneForm {\n\tcountryCode: string;\n\tphoneNumber: string;\n}\n\nexport interface AuthResponse {\n\taccessToken: string;\n\trefreshToken: string;\n}\n\nexport interface Customer {\n\tid?: number;\n\temail: string;\n\tfullName: string;\n\taddress: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport enum OrderItemStatus {\n\tPENDING = \"PENDING\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tSERVED = \"SERVED\",\n}\n\nexport enum PaymentMethod {\n\tCASH = \"CASH\",\n\tCARD = \"CARD\",\n\tWALLET = \"WALLET\",\n\tTERMINAL = \"TERMINAL\",\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface SelectedAddons {\n\t[key: number]: number | number[];\n}\n\nexport interface OrderItemVariant {\n\tid?: number;\n\tvariantId: number;\n\tprice: number;\n}\n\nexport interface OrderItem {\n\tid?: number;\n\tproductId: number;\n\torderId?: number;\n\tquantity: number;\n\tprice: number;\n\tvariant?: OrderItemVariant;\n\taddons: OrderAddon[];\n\tnote?: string;\n\tstatus?: OrderItemStatus;\n\tvat?: number;\n\tisPaid?: boolean;\n}\n\nexport interface Order {\n\tid?: number;\n\tbusinessId?: number;\n\tbranchId?: number;\n\tworkingDayId?: number;\n\ttableId?: number;\n\tcustomerId?: number;\n\temployeeId?: number;\n\torderType: OrderType;\n\ttotalPriceWithTax: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n\titems: OrderItem[];\n\tstatus?: OrderStatus;\n\tvat?: number;\n\tpaymentMethod?: PaymentMethod;\n\tnote?: string;\n\tcreatedAt?: number;\n\tupdatedAt?: number;\n}\n\nexport interface OrderItems {\n\t[key: string]: OrderItem;\n}\n\nexport enum OrderStep {\n\tCART = \"CART\",\n\tDETAILS = \"DETAILS\",\n\tCOMPLETED = \"COMPLETED\",\n}\n","import { MenuAddon } from \"../addon/models\";\n\nexport interface ProductTranslation {\n\tid: number;\n\tname: string;\n\tdescription?: string;\n\tlanguage: string;\n\tproductId?: number;\n}\n\nexport interface ProductVariantTranslation {\n\tid?: number;\n\ttitle: string;\n\tlanguage: string;\n}\n\nexport interface ProductVariant {\n\tid?: number;\n\tprice: number;\n\ttranslations: ProductVariantTranslation[];\n\tproductId?: number;\n\tremove?: boolean;\n}\n\nexport interface Product {\n\tid: number;\n\tcategoryId: number;\n\tvat?: number;\n\tprice: number;\n\tvolume?: string; // 100qr/250ml/1kq\n\timage160?: string;\n\timage580?: string;\n\timage1024?: string;\n\ttranslations: ProductTranslation[];\n\tvariants: ProductVariant[];\n\taddons: MenuAddon[];\n\tavailable?: boolean;\n\tvisible?: boolean;\n\tposition?: number;\n}\n\nexport enum ProductView {\n\tLIST = \"list\",\n\tGRID = \"grid\",\n}\n\nexport interface DashboardProduct extends Omit<Product, \"addons\"> {\n\taddons: number[];\n}\n","export enum PlanType {\n\tAPPETIZER = \"appetizer\",\n\tMAIN_COURSE = \"mainCourse\",\n\tCHEFS_SPECIAL = \"chefsSpecial\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\n"],"names":["MenuAddonSelectType","CustomerAuthStep","CustomerAddressType","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","Feature"],"mappings":"aAAA,IAAYA,ECAAC,EAMAC,ECNAC,EAMAC,EASAC,EAOAC,EA+DAC,EC5CAC,ECzCAC,EJAAT,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAGX,CAAA,IAFA,OAAA,SACAA,EAAA,SAAA,WCFWC,QAAAA,sBAAAA,GAAAA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,QAGWC,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAIX,CAAA,IAHA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SITWQ,QAAAA,aAAAA,GAAAA,QAAOA,UAAPA,gBAEX,CAAA,IADA,MAAA,gBHDWP,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WAGWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAOX,CAAA,IANA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YAGWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAKX,CAAA,IAJA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SAGWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAaA,gBAAbA,sBAKX,CAAA,IAJA,KAAA,OACAA,EAAA,KAAA,OACAA,EAAA,OAAA,SACAA,EAAA,SAAA,WA2DWC,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YC/CWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAGX,CAAA,IAFA,KAAA,OACAA,EAAA,KAAA,OC3CWC,QAAAA,cAAAA,GAAAA,EAAAA,QAAQA,WAARA,iBAIX,CAAA,IAHA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA"}
@@ -1,6 +1,10 @@
1
+ export * from "../modules/addon/models";
2
+ export * from "../modules/branch/models";
1
3
  export * from "../modules/business/models";
4
+ export * from "../modules/customer/models";
5
+ export * from "../modules/feature/models";
6
+ export * from "../modules/order/models";
2
7
  export * from "../modules/product/models";
3
- export * from "../modules/branch/models";
4
8
  export * from "./category";
5
9
  export * from "./menu";
6
10
  export * from "./pricing";
@@ -0,0 +1,47 @@
1
+ export declare enum CustomerAuthStep {
2
+ PHONE = "PHONE",
3
+ OTP = "OTP",
4
+ EMAIL = "EMAIL"
5
+ }
6
+ export declare enum CustomerAddressType {
7
+ HOME = "HOME",
8
+ WORK = "WORK",
9
+ TRAVEL = "TRAVEL"
10
+ }
11
+ export interface CustomerAddress {
12
+ id?: number;
13
+ addressId?: number;
14
+ countryCode: string;
15
+ cityName: string;
16
+ street: string;
17
+ houseNumber: string;
18
+ additionalNumber?: string;
19
+ postCode?: string;
20
+ instructions?: string;
21
+ floor?: number;
22
+ longitude?: number;
23
+ latitude?: number;
24
+ title?: string;
25
+ type?: CustomerAddressType;
26
+ }
27
+ export interface CustomerAuthForm {
28
+ phoneNumber: string;
29
+ otp: string;
30
+ email: string;
31
+ }
32
+ export interface CustomerAuthPhoneForm {
33
+ countryCode: string;
34
+ phoneNumber: string;
35
+ }
36
+ export interface AuthResponse {
37
+ accessToken: string;
38
+ refreshToken: string;
39
+ }
40
+ export interface Customer {
41
+ id?: number;
42
+ email: string;
43
+ fullName: string;
44
+ address: CustomerAddress;
45
+ addresses?: CustomerAddress[];
46
+ }
47
+ export type CustomerUpdatePayload = Partial<Customer>;
@@ -0,0 +1,3 @@
1
+ export declare enum Feature {
2
+ ORDER = "feature_order"
3
+ }
@@ -0,0 +1,80 @@
1
+ export declare enum OrderType {
2
+ DINE_IN = "DINE_IN",
3
+ PICK_UP = "PICK_UP",
4
+ DELIVERY = "DELIVERY"
5
+ }
6
+ export declare enum OrderStatus {
7
+ PENDING = "PENDING",
8
+ CONFIRMED = "CONFIRMED",
9
+ PREPARING = "PREPARING",
10
+ READY = "READY",
11
+ COMPLETED = "COMPLETED",
12
+ CANCELLED = "CANCELLED"
13
+ }
14
+ export declare enum OrderItemStatus {
15
+ PENDING = "PENDING",
16
+ PREPARING = "PREPARING",
17
+ READY = "READY",
18
+ SERVED = "SERVED"
19
+ }
20
+ export declare enum PaymentMethod {
21
+ CASH = "CASH",
22
+ CARD = "CARD",
23
+ WALLET = "WALLET",
24
+ TERMINAL = "TERMINAL"
25
+ }
26
+ export interface OrderAddon {
27
+ id?: number;
28
+ addonId: number;
29
+ optionId: number;
30
+ price: number;
31
+ }
32
+ export interface SelectedAddons {
33
+ [key: number]: number | number[];
34
+ }
35
+ export interface OrderItemVariant {
36
+ id?: number;
37
+ variantId: number;
38
+ price: number;
39
+ }
40
+ export interface OrderItem {
41
+ id?: number;
42
+ productId: number;
43
+ orderId?: number;
44
+ quantity: number;
45
+ price: number;
46
+ variant?: OrderItemVariant;
47
+ addons: OrderAddon[];
48
+ note?: string;
49
+ status?: OrderItemStatus;
50
+ vat?: number;
51
+ isPaid?: boolean;
52
+ }
53
+ export interface Order {
54
+ id?: number;
55
+ businessId?: number;
56
+ branchId?: number;
57
+ workingDayId?: number;
58
+ tableId?: number;
59
+ customerId?: number;
60
+ employeeId?: number;
61
+ orderType: OrderType;
62
+ totalPriceWithTax: number;
63
+ totalPriceWithoutTax: number;
64
+ totalTax: number;
65
+ items: OrderItem[];
66
+ status?: OrderStatus;
67
+ vat?: number;
68
+ paymentMethod?: PaymentMethod;
69
+ note?: string;
70
+ createdAt?: number;
71
+ updatedAt?: number;
72
+ }
73
+ export interface OrderItems {
74
+ [key: string]: OrderItem;
75
+ }
76
+ export declare enum OrderStep {
77
+ CART = "CART",
78
+ DETAILS = "DETAILS",
79
+ COMPLETED = "COMPLETED"
80
+ }
@@ -38,3 +38,6 @@ export declare enum ProductView {
38
38
  LIST = "list",
39
39
  GRID = "grid"
40
40
  }
41
+ export interface DashboardProduct extends Omit<Product, "addons"> {
42
+ addons: number[];
43
+ }
@@ -38,3 +38,6 @@ export declare enum ProductView {
38
38
  LIST = "list",
39
39
  GRID = "grid"
40
40
  }
41
+ export interface DashboardProduct extends Omit<Product, "addons"> {
42
+ addons: number[];
43
+ }
@@ -1,6 +1,10 @@
1
+ export * from "../modules/addon/models";
2
+ export * from "../modules/branch/models";
1
3
  export * from "../modules/business/models";
4
+ export * from "../modules/customer/models";
5
+ export * from "../modules/feature/models";
6
+ export * from "../modules/order/models";
2
7
  export * from "../modules/product/models";
3
- export * from "../modules/branch/models";
4
8
  export * from "./category";
5
9
  export * from "./menu";
6
10
  export * from "./pricing";
@@ -0,0 +1,47 @@
1
+ export declare enum CustomerAuthStep {
2
+ PHONE = "PHONE",
3
+ OTP = "OTP",
4
+ EMAIL = "EMAIL"
5
+ }
6
+ export declare enum CustomerAddressType {
7
+ HOME = "HOME",
8
+ WORK = "WORK",
9
+ TRAVEL = "TRAVEL"
10
+ }
11
+ export interface CustomerAddress {
12
+ id?: number;
13
+ addressId?: number;
14
+ countryCode: string;
15
+ cityName: string;
16
+ street: string;
17
+ houseNumber: string;
18
+ additionalNumber?: string;
19
+ postCode?: string;
20
+ instructions?: string;
21
+ floor?: number;
22
+ longitude?: number;
23
+ latitude?: number;
24
+ title?: string;
25
+ type?: CustomerAddressType;
26
+ }
27
+ export interface CustomerAuthForm {
28
+ phoneNumber: string;
29
+ otp: string;
30
+ email: string;
31
+ }
32
+ export interface CustomerAuthPhoneForm {
33
+ countryCode: string;
34
+ phoneNumber: string;
35
+ }
36
+ export interface AuthResponse {
37
+ accessToken: string;
38
+ refreshToken: string;
39
+ }
40
+ export interface Customer {
41
+ id?: number;
42
+ email: string;
43
+ fullName: string;
44
+ address: CustomerAddress;
45
+ addresses?: CustomerAddress[];
46
+ }
47
+ export type CustomerUpdatePayload = Partial<Customer>;
@@ -0,0 +1,3 @@
1
+ export declare enum Feature {
2
+ ORDER = "feature_order"
3
+ }
@@ -38,3 +38,6 @@ export declare enum ProductView {
38
38
  LIST = "list",
39
39
  GRID = "grid"
40
40
  }
41
+ export interface DashboardProduct extends Omit<Product, "addons"> {
42
+ addons: number[];
43
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@restaround/react",
3
- "version": "1.2.16",
3
+ "version": "1.2.18",
4
4
  "description": "React Library by restaround.co",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",