@restaround/react 1.3.1 → 1.3.4
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.
- package/dist/constants/index.d.ts +1 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.esm.js +1 -1
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/menu.d.ts +3 -0
- package/dist/models/models/menu.d.ts +3 -0
- package/dist/models/modules/order/models.d.ts +1 -1
- package/dist/modules/feature/constants.d.ts +4 -0
- package/dist/modules/feature/hooks.d.ts +1 -1
- package/dist/modules/order/constants.d.ts +2 -1
- package/dist/modules/order/hooks.d.ts +1 -0
- package/dist/modules/order/models.d.ts +1 -1
- package/dist/modules/order/services.d.ts +1 -1
- package/dist/services/translation/locales/az/customer.d.ts +1 -0
- package/dist/services/translation/locales/az/error.d.ts +2 -0
- package/dist/services/translation/locales/az/index.d.ts +6 -0
- package/dist/services/translation/locales/az/order.d.ts +1 -0
- package/dist/services/translation/locales/az/pricing.d.ts +2 -0
- package/dist/services/translation/locales/en/error.d.ts +2 -0
- package/dist/services/translation/locales/en/index.d.ts +2 -0
- package/dist/services/translation/locales/et/error.d.ts +2 -0
- package/dist/services/translation/locales/et/index.d.ts +3 -0
- package/dist/services/translation/locales/et/order.d.ts +1 -0
- package/dist/services/translation/locales/index.d.ts +22 -0
- package/dist/services/translation/locales/nl/error.d.ts +2 -0
- package/dist/services/translation/locales/nl/index.d.ts +3 -0
- package/dist/services/translation/locales/nl/order.d.ts +1 -0
- package/dist/services/translation/locales/ru/customer.d.ts +1 -0
- package/dist/services/translation/locales/ru/error.d.ts +2 -0
- package/dist/services/translation/locales/ru/index.d.ts +4 -0
- package/dist/services/translation/locales/ru/order.d.ts +1 -0
- package/dist/services/translation/locales/tr/customer.d.ts +1 -0
- package/dist/services/translation/locales/tr/error.d.ts +2 -0
- package/dist/services/translation/locales/tr/index.d.ts +4 -0
- package/dist/services/translation/locales/tr/order.d.ts +1 -0
- package/dist/store/order.d.ts +3 -0
- package/dist/utils/models/menu.d.ts +3 -0
- package/dist/utils/modules/order/models.d.ts +1 -1
- package/package.json +6 -6
package/dist/models/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var E,L,A,I,D,
|
|
1
|
+
var E,L,A,I,R,D,P,N,C,T,n,O,i;!function(E){E.SINGLE="SINGLE",E.MULTIPLE="MULTIPLE"}(E||(E={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(L||(L={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(A||(A={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(I||(I={})),function(E){E.ORDER="feature_order"}(R||(R={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(D||(D={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(P||(P={})),function(E){E.DRAFT="DRAFT",E.PENDING="PENDING",E.CONFIRMED="CONFIRMED",E.PREPARING="PREPARING",E.READY="READY",E.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",E.DELIVERED="DELIVERED",E.COMPLETED="COMPLETED",E.CANCELLED="CANCELLED",E.FAILED="FAILED"}(N||(N={})),function(E){E.PENDING="PENDING",E.PREPARING="PREPARING",E.READY="READY",E.SERVED="SERVED"}(C||(C={})),function(E){E.CASH="CASH",E.CARD="CARD",E.WALLET="WALLET",E.TERMINAL="TERMINAL"}(T||(T={})),function(E){E.CART="CART",E.DETAILS="DETAILS",E.COMPLETED="COMPLETED"}(n||(n={})),function(E){E.LIST="list",E.GRID="grid"}(O||(O={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial"}(i||(i={}));export{I as CustomerAddressType,A as CustomerAuthStep,R as Feature,D as FeatureSegment,E as MenuAddonSelectType,C as OrderItemStatus,N as OrderStatus,n as OrderStep,P as OrderType,T as PaymentMethod,i as PlanType,O as ProductView,L as SubscriptionStatus};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/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","import { PricingInterval } from \"src/models/pricing\";\n\nimport * as featureModels from \"../feature/models\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\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\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/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","import { PricingInterval } from \"src/models/pricing\";\n\nimport * as featureModels from \"../feature/models\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\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\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tOUT_FOR_DELIVERY = \"OUT_FOR_DELIVERY\",\n\tDELIVERED = \"DELIVERED\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n\tFAILED = \"FAILED\",\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\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\tcustomer?: customerModels.Customer;\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\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\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","SubscriptionStatus","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType"],"mappings":"IAAYA,ECIAC,ECJAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EA+DAC,EClDAC,ECzCAC,GNAZ,SAAYZ,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,ICCD,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICRD,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,IACD,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,KACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,ICLD,SAAYC,GACXA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,UACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IAED,SAAYC,GACXA,EAAA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,OAAA,QACA,CAXD,CAAYA,IAAAA,EAWX,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,ICtDD,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"}
|
package/dist/models/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e,t,r,E,o,s,p,A,I,L,d,
|
|
1
|
+
"use strict";var e,t,r,E,o,s,p,A,I,L,d,R;exports.MenuAddonSelectType=void 0,(e=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",e.MULTIPLE="MULTIPLE",exports.SubscriptionStatus=void 0,(t=exports.SubscriptionStatus||(exports.SubscriptionStatus={})).ACTIVE="ACTIVE",t.EXPIRED="EXPIRED",t.CANCELLED="CANCELLED",exports.CustomerAuthStep=void 0,(r=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",r.OTP="OTP",r.EMAIL="EMAIL",exports.CustomerAddressType=void 0,(E=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL",exports.Feature=void 0,(exports.Feature||(exports.Feature={})).ORDER="feature_order",exports.FeatureSegment=void 0,(o=exports.FeatureSegment||(exports.FeatureSegment={})).ALPHA="ALPHA",o.BETA="BETA",o.ALL="ALL",exports.OrderType=void 0,(s=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",s.PICK_UP="PICK_UP",s.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(p=exports.OrderStatus||(exports.OrderStatus={})).DRAFT="DRAFT",p.PENDING="PENDING",p.CONFIRMED="CONFIRMED",p.PREPARING="PREPARING",p.READY="READY",p.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",p.DELIVERED="DELIVERED",p.COMPLETED="COMPLETED",p.CANCELLED="CANCELLED",p.FAILED="FAILED",exports.OrderItemStatus=void 0,(A=exports.OrderItemStatus||(exports.OrderItemStatus={})).PENDING="PENDING",A.PREPARING="PREPARING",A.READY="READY",A.SERVED="SERVED",exports.PaymentMethod=void 0,(I=exports.PaymentMethod||(exports.PaymentMethod={})).CASH="CASH",I.CARD="CARD",I.WALLET="WALLET",I.TERMINAL="TERMINAL",exports.OrderStep=void 0,(L=exports.OrderStep||(exports.OrderStep={})).CART="CART",L.DETAILS="DETAILS",L.COMPLETED="COMPLETED",exports.ProductView=void 0,(d=exports.ProductView||(exports.ProductView={})).LIST="list",d.GRID="grid",exports.PlanType=void 0,(R=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",R.MAIN_COURSE="mainCourse",R.CHEFS_SPECIAL="chefsSpecial";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/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","import { PricingInterval } from \"src/models/pricing\";\n\nimport * as featureModels from \"../feature/models\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\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\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/business/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","import { PricingInterval } from \"src/models/pricing\";\n\nimport * as featureModels from \"../feature/models\";\n\nexport enum SubscriptionStatus {\n\tACTIVE = \"ACTIVE\",\n\tEXPIRED = \"EXPIRED\",\n\tCANCELLED = \"CANCELLED\",\n}\n\nexport type BillingInterval = \"MONTH\" | \"YEAR\";\n\nexport interface Subscription {\n\tid: number;\n\tbillingInterval: BillingInterval;\n\tbillingIntervalCount: number;\n\tstartDate: string;\n\tendDate: string;\n\tinterval: PricingInterval;\n\tstatus: SubscriptionStatus;\n\tbusiness_id?: number;\n\tplanName: string;\n}\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n}\n\nexport interface Business {\n\tid: number;\n\tname: string;\n\tusername: string;\n\tavatar64?: string;\n\tavatar128?: string;\n\tavatar256?: string;\n\tcoverPhoto?: string;\n\tinstagram?: string;\n\tfacebook?: string;\n\ttiktok?: string;\n\tcreatedAt?: number;\n\tcurrency: string;\n\tlanguages: BusinessLanguage[];\n\tsubscriptions?: Subscription[];\n\tsegment?: featureModels.FeatureSegment;\n\tsettings?: BusinessSettings;\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\tphoneNumber: string;\n\tfullName: string;\n\tsmsVerified?: boolean;\n\temailVerified?: boolean;\n\taddress?: CustomerAddress;\n\taddresses?: CustomerAddress[];\n}\n\nexport type CustomerUpdatePayload = Partial<Customer>;\n","export enum Feature {\n\tORDER = \"feature_order\",\n}\nexport enum FeatureSegment {\n\tALPHA = \"ALPHA\",\n\tBETA = \"BETA\",\n\tALL = \"ALL\",\n}\n","import * as customerModels from \"../customer/models\";\n\nexport enum OrderType {\n\tDINE_IN = \"DINE_IN\",\n\tPICK_UP = \"PICK_UP\",\n\tDELIVERY = \"DELIVERY\",\n}\n\nexport enum OrderStatus {\n\tDRAFT = \"DRAFT\",\n\tPENDING = \"PENDING\",\n\tCONFIRMED = \"CONFIRMED\",\n\tPREPARING = \"PREPARING\",\n\tREADY = \"READY\",\n\tOUT_FOR_DELIVERY = \"OUT_FOR_DELIVERY\",\n\tDELIVERED = \"DELIVERED\",\n\tCOMPLETED = \"COMPLETED\",\n\tCANCELLED = \"CANCELLED\",\n\tFAILED = \"FAILED\",\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\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\tcustomer?: customerModels.Customer;\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\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\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","SubscriptionStatus","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","Feature"],"mappings":"aAAA,IAAYA,ECIAC,ECJAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EA+DAC,EClDAC,ECzCAC,ENAAX,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAGX,CAAA,IAFA,OAAA,SACAA,EAAA,SAAA,WCEWC,QAAAA,wBAAAA,GAAAA,EAAAA,QAAkBA,qBAAlBA,2BAIX,CAAA,IAHA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YCPWC,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,SCTWS,QAAAA,aAAAA,GAAAA,QAAOA,UAAPA,gBAEX,CAAA,IADA,MAAA,gBAEWR,QAAAA,oBAAAA,GAAAA,EAAAA,QAAcA,iBAAdA,uBAIX,CAAA,IAHA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MCJWC,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WAGWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAWX,CAAA,IAVA,MAAA,QACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,MAAA,QACAA,EAAA,iBAAA,mBACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,UAAA,YACAA,EAAA,OAAA,SAGWC,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,YCrDWC,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"}
|
package/dist/models/menu.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import * as productModels from "src/modules/product/models";
|
|
|
2
2
|
import * as branchModels from "src/modules/branch/models";
|
|
3
3
|
import * as categoryModels from "./category";
|
|
4
4
|
import * as businessModels from "src/modules/business/models";
|
|
5
|
+
import * as featureModels from "src/modules/feature/models";
|
|
5
6
|
export interface PublicMenuData {
|
|
6
7
|
businessId: number;
|
|
7
8
|
branches: branchModels.Branch[];
|
|
@@ -23,6 +24,8 @@ export interface PublicMenuData {
|
|
|
23
24
|
rootPath?: string;
|
|
24
25
|
hostname?: string | null;
|
|
25
26
|
imageTag?: any;
|
|
27
|
+
businessSegment?: featureModels.FeatureSegment;
|
|
28
|
+
businessSettings?: businessModels.BusinessSettings;
|
|
26
29
|
onBranchSelect?: (branchId: number) => void;
|
|
27
30
|
onLanguageSelect?: (code: string) => void;
|
|
28
31
|
}
|
|
@@ -2,6 +2,7 @@ import * as productModels from "src/modules/product/models";
|
|
|
2
2
|
import * as branchModels from "src/modules/branch/models";
|
|
3
3
|
import * as categoryModels from "./category";
|
|
4
4
|
import * as businessModels from "src/modules/business/models";
|
|
5
|
+
import * as featureModels from "src/modules/feature/models";
|
|
5
6
|
export interface PublicMenuData {
|
|
6
7
|
businessId: number;
|
|
7
8
|
branches: branchModels.Branch[];
|
|
@@ -23,6 +24,8 @@ export interface PublicMenuData {
|
|
|
23
24
|
rootPath?: string;
|
|
24
25
|
hostname?: string | null;
|
|
25
26
|
imageTag?: any;
|
|
27
|
+
businessSegment?: featureModels.FeatureSegment;
|
|
28
|
+
businessSettings?: businessModels.BusinessSettings;
|
|
26
29
|
onBranchSelect?: (branchId: number) => void;
|
|
27
30
|
onLanguageSelect?: (code: string) => void;
|
|
28
31
|
}
|
|
@@ -10,7 +10,7 @@ export declare enum OrderStatus {
|
|
|
10
10
|
CONFIRMED = "CONFIRMED",
|
|
11
11
|
PREPARING = "PREPARING",
|
|
12
12
|
READY = "READY",
|
|
13
|
-
|
|
13
|
+
OUT_FOR_DELIVERY = "OUT_FOR_DELIVERY",
|
|
14
14
|
DELIVERED = "DELIVERED",
|
|
15
15
|
COMPLETED = "COMPLETED",
|
|
16
16
|
CANCELLED = "CANCELLED",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Feature } from "./models";
|
|
2
2
|
export declare const useFeatureActive: (feature: Feature) => boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrderType, PaymentMethod } from "./models";
|
|
1
|
+
import { OrderStep, OrderType, PaymentMethod } from "./models";
|
|
2
2
|
export declare const initialOrder: {
|
|
3
3
|
orderType: OrderType;
|
|
4
4
|
totalPriceWithTax: number;
|
|
@@ -7,3 +7,4 @@ export declare const initialOrder: {
|
|
|
7
7
|
vat: number;
|
|
8
8
|
paymentMethod: PaymentMethod;
|
|
9
9
|
};
|
|
10
|
+
export declare const ORDER_STEPS: OrderStep[];
|
|
@@ -10,7 +10,7 @@ export declare enum OrderStatus {
|
|
|
10
10
|
CONFIRMED = "CONFIRMED",
|
|
11
11
|
PREPARING = "PREPARING",
|
|
12
12
|
READY = "READY",
|
|
13
|
-
|
|
13
|
+
OUT_FOR_DELIVERY = "OUT_FOR_DELIVERY",
|
|
14
14
|
DELIVERED = "DELIVERED",
|
|
15
15
|
COMPLETED = "COMPLETED",
|
|
16
16
|
CANCELLED = "CANCELLED",
|
|
@@ -8,6 +8,8 @@ declare const _default: {
|
|
|
8
8
|
INVALID_OTP: string;
|
|
9
9
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
11
13
|
};
|
|
12
14
|
common: {
|
|
13
15
|
Save: string;
|
|
@@ -44,6 +46,7 @@ declare const _default: {
|
|
|
44
46
|
"Not available": string;
|
|
45
47
|
"In order": string;
|
|
46
48
|
"Product choices": string;
|
|
49
|
+
"Track order": string;
|
|
47
50
|
};
|
|
48
51
|
customer: {
|
|
49
52
|
"Unknown address": string;
|
|
@@ -118,6 +121,7 @@ declare const _default: {
|
|
|
118
121
|
Lachin: string;
|
|
119
122
|
Kalbajar: string;
|
|
120
123
|
Khankendi: string;
|
|
124
|
+
Nakhchivan: string;
|
|
121
125
|
};
|
|
122
126
|
auth: {
|
|
123
127
|
"Create an account or log in": string;
|
|
@@ -159,6 +163,8 @@ declare const _default: {
|
|
|
159
163
|
annually: string;
|
|
160
164
|
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
161
165
|
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
166
|
+
Appetizer: string;
|
|
167
|
+
"Main Course": string;
|
|
162
168
|
};
|
|
163
169
|
};
|
|
164
170
|
export default _default;
|
|
@@ -25,5 +25,7 @@ declare const _default: {
|
|
|
25
25
|
annually: string;
|
|
26
26
|
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
27
27
|
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
28
|
+
Appetizer: string;
|
|
29
|
+
"Main Course": string;
|
|
28
30
|
};
|
|
29
31
|
export default _default;
|
|
@@ -8,6 +8,8 @@ declare const _default: {
|
|
|
8
8
|
INVALID_OTP: string;
|
|
9
9
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
11
13
|
};
|
|
12
14
|
common: {
|
|
13
15
|
Save: string;
|
|
@@ -45,6 +47,7 @@ declare const _default: {
|
|
|
45
47
|
"Special instructions, allergies, etc.": string;
|
|
46
48
|
"Place order": string;
|
|
47
49
|
Continue: string;
|
|
50
|
+
"Track order": string;
|
|
48
51
|
};
|
|
49
52
|
customer: {
|
|
50
53
|
"Unknown address": string;
|
|
@@ -9,6 +9,8 @@ declare const _default: {
|
|
|
9
9
|
INVALID_OTP: string;
|
|
10
10
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
11
11
|
"Invalid Email Address": string;
|
|
12
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
14
|
};
|
|
13
15
|
common: {
|
|
14
16
|
Save: string;
|
|
@@ -45,6 +47,7 @@ declare const _default: {
|
|
|
45
47
|
"Not available": string;
|
|
46
48
|
"In order": string;
|
|
47
49
|
"Product choices": string;
|
|
50
|
+
"Track order": string;
|
|
48
51
|
};
|
|
49
52
|
customer: {
|
|
50
53
|
"Unknown address": string;
|
|
@@ -119,6 +122,7 @@ declare const _default: {
|
|
|
119
122
|
Lachin: string;
|
|
120
123
|
Kalbajar: string;
|
|
121
124
|
Khankendi: string;
|
|
125
|
+
Nakhchivan: string;
|
|
122
126
|
};
|
|
123
127
|
auth: {
|
|
124
128
|
"Create an account or log in": string;
|
|
@@ -160,6 +164,8 @@ declare const _default: {
|
|
|
160
164
|
annually: string;
|
|
161
165
|
"Flexible Plans for Every Business - Simple Pricing, More Value!": string;
|
|
162
166
|
"Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
|
|
167
|
+
Appetizer: string;
|
|
168
|
+
"Main Course": string;
|
|
163
169
|
};
|
|
164
170
|
};
|
|
165
171
|
en: {
|
|
@@ -168,6 +174,8 @@ declare const _default: {
|
|
|
168
174
|
FIELD_REQUIRED: string;
|
|
169
175
|
INVALID_OTP: string;
|
|
170
176
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
177
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
178
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
171
179
|
};
|
|
172
180
|
common: {};
|
|
173
181
|
order: {};
|
|
@@ -186,6 +194,8 @@ declare const _default: {
|
|
|
186
194
|
INVALID_OTP: string;
|
|
187
195
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
188
196
|
"Invalid Email Address": string;
|
|
197
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
198
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
189
199
|
};
|
|
190
200
|
common: {
|
|
191
201
|
Save: string;
|
|
@@ -223,6 +233,7 @@ declare const _default: {
|
|
|
223
233
|
"Special instructions, allergies, etc.": string;
|
|
224
234
|
"Place order": string;
|
|
225
235
|
Continue: string;
|
|
236
|
+
"Track order": string;
|
|
226
237
|
};
|
|
227
238
|
customer: {
|
|
228
239
|
"Unknown address": string;
|
|
@@ -297,6 +308,7 @@ declare const _default: {
|
|
|
297
308
|
Lachin: string;
|
|
298
309
|
Kalbajar: string;
|
|
299
310
|
Khankendi: string;
|
|
311
|
+
Nakhchivan: string;
|
|
300
312
|
};
|
|
301
313
|
auth: {
|
|
302
314
|
"Create an account or log in": string;
|
|
@@ -350,6 +362,8 @@ declare const _default: {
|
|
|
350
362
|
INVALID_OTP: string;
|
|
351
363
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
352
364
|
"Invalid Email Address": string;
|
|
365
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
366
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
353
367
|
};
|
|
354
368
|
common: {
|
|
355
369
|
Save: string;
|
|
@@ -387,6 +401,7 @@ declare const _default: {
|
|
|
387
401
|
"Special instructions, allergies, etc.": string;
|
|
388
402
|
"Place order": string;
|
|
389
403
|
Continue: string;
|
|
404
|
+
"Track order": string;
|
|
390
405
|
};
|
|
391
406
|
customer: {
|
|
392
407
|
"Unknown address": string;
|
|
@@ -461,6 +476,7 @@ declare const _default: {
|
|
|
461
476
|
Lachin: string;
|
|
462
477
|
Kalbajar: string;
|
|
463
478
|
Khankendi: string;
|
|
479
|
+
Nakhchivan: string;
|
|
464
480
|
};
|
|
465
481
|
auth: {
|
|
466
482
|
"Create an account or log in": string;
|
|
@@ -514,6 +530,8 @@ declare const _default: {
|
|
|
514
530
|
INVALID_OTP: string;
|
|
515
531
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
516
532
|
"Invalid Email Address": string;
|
|
533
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
534
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
517
535
|
};
|
|
518
536
|
common: {
|
|
519
537
|
Save: string;
|
|
@@ -551,6 +569,7 @@ declare const _default: {
|
|
|
551
569
|
"Special instructions, allergies, etc.": string;
|
|
552
570
|
"Place order": string;
|
|
553
571
|
Continue: string;
|
|
572
|
+
"Track order": string;
|
|
554
573
|
};
|
|
555
574
|
customer: {
|
|
556
575
|
"Unknown address": string;
|
|
@@ -678,6 +697,8 @@ declare const _default: {
|
|
|
678
697
|
INVALID_OTP: string;
|
|
679
698
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
680
699
|
"Invalid Email Address": string;
|
|
700
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
701
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
681
702
|
};
|
|
682
703
|
common: {
|
|
683
704
|
Save: string;
|
|
@@ -715,6 +736,7 @@ declare const _default: {
|
|
|
715
736
|
"Special instructions, allergies, etc.": string;
|
|
716
737
|
"Place order": string;
|
|
717
738
|
Continue: string;
|
|
739
|
+
"Track order": string;
|
|
718
740
|
};
|
|
719
741
|
customer: {
|
|
720
742
|
"Unknown address": string;
|
|
@@ -8,6 +8,8 @@ declare const _default: {
|
|
|
8
8
|
INVALID_OTP: string;
|
|
9
9
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
11
13
|
};
|
|
12
14
|
common: {
|
|
13
15
|
Save: string;
|
|
@@ -45,6 +47,7 @@ declare const _default: {
|
|
|
45
47
|
"Special instructions, allergies, etc.": string;
|
|
46
48
|
"Place order": string;
|
|
47
49
|
Continue: string;
|
|
50
|
+
"Track order": string;
|
|
48
51
|
};
|
|
49
52
|
customer: {
|
|
50
53
|
"Unknown address": string;
|
|
@@ -8,6 +8,8 @@ declare const _default: {
|
|
|
8
8
|
INVALID_OTP: string;
|
|
9
9
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
11
13
|
};
|
|
12
14
|
common: {
|
|
13
15
|
Save: string;
|
|
@@ -45,6 +47,7 @@ declare const _default: {
|
|
|
45
47
|
"Special instructions, allergies, etc.": string;
|
|
46
48
|
"Place order": string;
|
|
47
49
|
Continue: string;
|
|
50
|
+
"Track order": string;
|
|
48
51
|
};
|
|
49
52
|
customer: {
|
|
50
53
|
"Unknown address": string;
|
|
@@ -119,6 +122,7 @@ declare const _default: {
|
|
|
119
122
|
Lachin: string;
|
|
120
123
|
Kalbajar: string;
|
|
121
124
|
Khankendi: string;
|
|
125
|
+
Nakhchivan: string;
|
|
122
126
|
};
|
|
123
127
|
auth: {
|
|
124
128
|
"Create an account or log in": string;
|
|
@@ -8,6 +8,8 @@ declare const _default: {
|
|
|
8
8
|
INVALID_OTP: string;
|
|
9
9
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
|
+
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
11
13
|
};
|
|
12
14
|
common: {
|
|
13
15
|
Save: string;
|
|
@@ -45,6 +47,7 @@ declare const _default: {
|
|
|
45
47
|
"Special instructions, allergies, etc.": string;
|
|
46
48
|
"Place order": string;
|
|
47
49
|
Continue: string;
|
|
50
|
+
"Track order": string;
|
|
48
51
|
};
|
|
49
52
|
customer: {
|
|
50
53
|
"Unknown address": string;
|
|
@@ -119,6 +122,7 @@ declare const _default: {
|
|
|
119
122
|
Lachin: string;
|
|
120
123
|
Kalbajar: string;
|
|
121
124
|
Khankendi: string;
|
|
125
|
+
Nakhchivan: string;
|
|
122
126
|
};
|
|
123
127
|
auth: {
|
|
124
128
|
"Create an account or log in": string;
|
package/dist/store/order.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ type OrderContent = {
|
|
|
15
15
|
orderItems: orderModels.OrderItems;
|
|
16
16
|
isOrderOpen: boolean;
|
|
17
17
|
customer: customerModels.Customer;
|
|
18
|
+
trackingId: string;
|
|
18
19
|
setOrderStep: Dispatch<React.SetStateAction<orderModels.OrderStep>>;
|
|
19
20
|
updateOrder: (updatedFields: Partial<orderModels.Order>) => void;
|
|
20
21
|
addProduct: (params: UpdateOrderItemsParams) => void;
|
|
@@ -22,6 +23,8 @@ type OrderContent = {
|
|
|
22
23
|
removeAllProductVariants: (productId: number) => void;
|
|
23
24
|
setIsOrderOpen: Dispatch<React.SetStateAction<boolean>>;
|
|
24
25
|
getCustomer: () => void;
|
|
26
|
+
resetOrder: () => void;
|
|
27
|
+
setTrackingId: Dispatch<React.SetStateAction<string>>;
|
|
25
28
|
};
|
|
26
29
|
export declare const OrderProvider: ({ children }: {
|
|
27
30
|
children: ReactNode;
|
|
@@ -2,6 +2,7 @@ import * as productModels from "src/modules/product/models";
|
|
|
2
2
|
import * as branchModels from "src/modules/branch/models";
|
|
3
3
|
import * as categoryModels from "./category";
|
|
4
4
|
import * as businessModels from "src/modules/business/models";
|
|
5
|
+
import * as featureModels from "src/modules/feature/models";
|
|
5
6
|
export interface PublicMenuData {
|
|
6
7
|
businessId: number;
|
|
7
8
|
branches: branchModels.Branch[];
|
|
@@ -23,6 +24,8 @@ export interface PublicMenuData {
|
|
|
23
24
|
rootPath?: string;
|
|
24
25
|
hostname?: string | null;
|
|
25
26
|
imageTag?: any;
|
|
27
|
+
businessSegment?: featureModels.FeatureSegment;
|
|
28
|
+
businessSettings?: businessModels.BusinessSettings;
|
|
26
29
|
onBranchSelect?: (branchId: number) => void;
|
|
27
30
|
onLanguageSelect?: (code: string) => void;
|
|
28
31
|
}
|
|
@@ -10,7 +10,7 @@ export declare enum OrderStatus {
|
|
|
10
10
|
CONFIRMED = "CONFIRMED",
|
|
11
11
|
PREPARING = "PREPARING",
|
|
12
12
|
READY = "READY",
|
|
13
|
-
|
|
13
|
+
OUT_FOR_DELIVERY = "OUT_FOR_DELIVERY",
|
|
14
14
|
DELIVERED = "DELIVERED",
|
|
15
15
|
COMPLETED = "COMPLETED",
|
|
16
16
|
CANCELLED = "CANCELLED",
|