@restaround/react 1.4.25 → 1.4.26
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/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +1 -0
- package/dist/components/PublicMenu/OrderPaymentSummary/OrderPaymentSummary.d.ts +4 -1
- 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/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +1 -0
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/modules/order/hooks.d.ts +3 -10
- package/dist/models/modules/order/models.d.ts +14 -0
- package/dist/models/services/translation/locales/az/error.d.ts +1 -0
- package/dist/models/services/translation/locales/az/index.d.ts +2 -0
- package/dist/models/services/translation/locales/az/order.d.ts +1 -0
- package/dist/models/services/translation/locales/en/error.d.ts +1 -0
- package/dist/models/services/translation/locales/en/index.d.ts +1 -0
- package/dist/models/services/translation/locales/et/error.d.ts +1 -0
- package/dist/models/services/translation/locales/et/index.d.ts +2 -0
- package/dist/models/services/translation/locales/et/order.d.ts +1 -0
- package/dist/models/services/translation/locales/index.d.ts +11 -0
- package/dist/models/services/translation/locales/nl/error.d.ts +1 -0
- package/dist/models/services/translation/locales/nl/index.d.ts +2 -0
- package/dist/models/services/translation/locales/nl/order.d.ts +1 -0
- package/dist/models/services/translation/locales/ru/error.d.ts +1 -0
- package/dist/models/services/translation/locales/ru/index.d.ts +2 -0
- package/dist/models/services/translation/locales/ru/order.d.ts +1 -0
- package/dist/models/services/translation/locales/tr/error.d.ts +1 -0
- package/dist/models/services/translation/locales/tr/index.d.ts +2 -0
- package/dist/models/services/translation/locales/tr/order.d.ts +1 -0
- package/dist/modules/order/hooks.d.ts +3 -10
- package/dist/modules/order/models.d.ts +14 -0
- package/dist/services/translation/locales/az/error.d.ts +1 -0
- package/dist/services/translation/locales/az/index.d.ts +2 -0
- package/dist/services/translation/locales/az/order.d.ts +1 -0
- package/dist/services/translation/locales/en/error.d.ts +1 -0
- package/dist/services/translation/locales/en/index.d.ts +1 -0
- package/dist/services/translation/locales/et/error.d.ts +1 -0
- package/dist/services/translation/locales/et/index.d.ts +2 -0
- package/dist/services/translation/locales/et/order.d.ts +1 -0
- package/dist/services/translation/locales/index.d.ts +11 -0
- package/dist/services/translation/locales/nl/error.d.ts +1 -0
- package/dist/services/translation/locales/nl/index.d.ts +2 -0
- package/dist/services/translation/locales/nl/order.d.ts +1 -0
- package/dist/services/translation/locales/ru/error.d.ts +1 -0
- package/dist/services/translation/locales/ru/index.d.ts +2 -0
- package/dist/services/translation/locales/ru/order.d.ts +1 -0
- package/dist/services/translation/locales/tr/error.d.ts +1 -0
- package/dist/services/translation/locales/tr/index.d.ts +2 -0
- package/dist/services/translation/locales/tr/order.d.ts +1 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/dist/utils/components/PublicMenu/OrderMethods/OrderMethods.types.d.ts +1 -0
- package/dist/utils/index.esm.js.map +1 -1
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/modules/order/hooks.d.ts +3 -10
- package/dist/utils/modules/order/models.d.ts +14 -0
- package/dist/utils/services/translation/locales/az/error.d.ts +1 -0
- package/dist/utils/services/translation/locales/az/index.d.ts +2 -0
- package/dist/utils/services/translation/locales/az/order.d.ts +1 -0
- package/dist/utils/services/translation/locales/en/error.d.ts +1 -0
- package/dist/utils/services/translation/locales/en/index.d.ts +1 -0
- package/dist/utils/services/translation/locales/et/error.d.ts +1 -0
- package/dist/utils/services/translation/locales/et/index.d.ts +2 -0
- package/dist/utils/services/translation/locales/et/order.d.ts +1 -0
- package/dist/utils/services/translation/locales/index.d.ts +11 -0
- package/dist/utils/services/translation/locales/nl/error.d.ts +1 -0
- package/dist/utils/services/translation/locales/nl/index.d.ts +2 -0
- package/dist/utils/services/translation/locales/nl/order.d.ts +1 -0
- package/dist/utils/services/translation/locales/ru/error.d.ts +1 -0
- package/dist/utils/services/translation/locales/ru/index.d.ts +2 -0
- package/dist/utils/services/translation/locales/ru/order.d.ts +1 -0
- package/dist/utils/services/translation/locales/tr/error.d.ts +1 -0
- package/dist/utils/services/translation/locales/tr/index.d.ts +2 -0
- package/dist/utils/services/translation/locales/tr/order.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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/modules/subscription/models.ts","../../../src/modules/table/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 type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\n};\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\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?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\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 OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\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\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\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","export enum TableShape {\n\tSQUARE = \"SQUARE\",\n\tCIRCLE = \"CIRCLE\",\n\tRECTANGLE = \"RECTANGLE\",\n\tRECTANGLE_VERTICAL = \"RECTANGLE_VERTICAL\",\n\tSINGLE_AT_BAR = \"SINGLE_AT_BAR\",\n\tOTHER = \"OTHER\",\n}\n\nexport enum TableStatus {\n\tVACANT = \"VACANT\", // Free and available\n\tRESERVED = \"RESERVED\", // Booked but not yet seated\n\tOCCUPIED = \"OCCUPIED\", // Currently in use\n\tBLOCKED = \"BLOCKED\", // Temporarily blocked/unavailable\n\tNEEDS_CLEANING = \"NEEDS_CLEANING\", // Dirty, awaiting cleanup\n\tOUT_OF_SERVICE = \"OUT_OF_SERVICE\", // Permanently unavailable repair/maintenance\n\tPENDING_CONFIRMATION = \"PENDING_CONFIRMATION\", // Reservation not yet confirmed\n\tNO_SHOW = \"NO_SHOW\", // Reserved but guest didn’t arrive\n}\n\nexport enum TableLocation {\n\t// Indoor\n\tMAIN_HALL = \"MAIN_HALL\",\n\tPRIVATE_DINING = \"PRIVATE_DINING\",\n\tVIP_ROOM = \"VIP_ROOM\",\n\tBANQUET_HALL = \"BANQUET_HALL\",\n\tBAR_AREA = \"BAR_AREA\",\n\tLOUNGE = \"LOUNGE\",\n\tOPEN_KITCHEN = \"OPEN_KITCHEN\",\n\tBOOTH_SECTION = \"BOOTH_SECTION\",\n\tMEZZANINE = \"MEZZANINE\",\n\tWINE_CELLAR = \"WINE_CELLAR\",\n\n\t// Outdoor\n\tTERRACE = \"TERRACE\",\n\tPATIO = \"PATIO\",\n\tGARDEN = \"GARDEN\",\n\tCOURTYARD = \"COURTYARD\",\n\tROOFTOP = \"ROOFTOP\",\n\tBALCONY = \"BALCONY\",\n\tSIDEWALK = \"SIDEWALK\",\n\tPOOLSIDE = \"POOLSIDE\",\n\n\t// Special Sections\n\tSMOKING_AREA = \"SMOKING_AREA\",\n\tNON_SMOKING = \"NON_SMOKING\",\n\tFAMILY_SECTION = \"FAMILY_SECTION\",\n\tKIDS_AREA = \"KIDS_AREA\",\n\tWAITING_AREA = \"WAITING_AREA\",\n\tDANCE_FLOOR = \"DANCE_FLOOR\",\n}\n\nexport interface Table {\n\tid: number;\n\tbusinessId: number;\n\tbranchId: number;\n\tname: string;\n\tseatCount: number;\n\tshape: TableShape;\n\tlocation: TableLocation;\n\tstatus: TableStatus;\n}\n\nexport interface TableState {\n\ttables: Table[];\n}\n\nexport type TableForm = Omit<Table, \"id\" | \"businessId\" | \"branchId\"> & {\n\tbranchId: string | number;\n};\n\nexport type TableUpdate = Partial<Omit<Table, \"id\" | \"businessId\">>;\n\nexport type TableFilter = Partial<Pick<Table, \"branchId\" | \"shape\" | \"location\" | \"status\">>;\n\nexport type TableFilterParams = { field: keyof TableFilter; value: TableFilter[keyof TableFilter] };\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation"],"mappings":"IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,GRpBZ,SAAYjB,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,ICoBD,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,mBACA,CAPD,CAAYA,IAAAA,EAOX,CAAA,ICrBD,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAMX,CAAA,ICfD,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,eAC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,EAAA,cAAA,gBACAA,EAAA,MAAA,OACA,CAPD,CAAYA,IAAAA,EAOX,CAAA,IAED,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,QAAA,SACA,CATD,CAAYA,IAAAA,EASX,CAAA,IAED,SAAYC,GAEXA,EAAA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,SAAA,WACAA,EAAA,aAAA,eACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,YAAA,cAGAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WAGAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,eAAA,iBACAA,EAAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA,aACA,CA9BD,CAAYA,IAAAA,EA8BX,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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/modules/subscription/models.ts","../../../src/modules/table/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 type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\n};\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\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?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\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 OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\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\ttotalPriceWithTaxAndFees?: 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\tdeliveryFeeAmount?: 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\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\n}\n\nexport type OrderPriceDetails = {\n\ttotalPriceWithTax: number;\n\ttotalPriceWithTaxAndFees: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n};\n\nexport type OrderFormattedPriceDetails = {\n\ttotalPriceWithTax: string;\n\ttotalPriceWithTaxAndFees: string;\n\ttotalPriceWithoutTax: string;\n\ttotalTax: string;\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\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\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","export enum TableShape {\n\tSQUARE = \"SQUARE\",\n\tCIRCLE = \"CIRCLE\",\n\tRECTANGLE = \"RECTANGLE\",\n\tRECTANGLE_VERTICAL = \"RECTANGLE_VERTICAL\",\n\tSINGLE_AT_BAR = \"SINGLE_AT_BAR\",\n\tOTHER = \"OTHER\",\n}\n\nexport enum TableStatus {\n\tVACANT = \"VACANT\", // Free and available\n\tRESERVED = \"RESERVED\", // Booked but not yet seated\n\tOCCUPIED = \"OCCUPIED\", // Currently in use\n\tBLOCKED = \"BLOCKED\", // Temporarily blocked/unavailable\n\tNEEDS_CLEANING = \"NEEDS_CLEANING\", // Dirty, awaiting cleanup\n\tOUT_OF_SERVICE = \"OUT_OF_SERVICE\", // Permanently unavailable repair/maintenance\n\tPENDING_CONFIRMATION = \"PENDING_CONFIRMATION\", // Reservation not yet confirmed\n\tNO_SHOW = \"NO_SHOW\", // Reserved but guest didn’t arrive\n}\n\nexport enum TableLocation {\n\t// Indoor\n\tMAIN_HALL = \"MAIN_HALL\",\n\tPRIVATE_DINING = \"PRIVATE_DINING\",\n\tVIP_ROOM = \"VIP_ROOM\",\n\tBANQUET_HALL = \"BANQUET_HALL\",\n\tBAR_AREA = \"BAR_AREA\",\n\tLOUNGE = \"LOUNGE\",\n\tOPEN_KITCHEN = \"OPEN_KITCHEN\",\n\tBOOTH_SECTION = \"BOOTH_SECTION\",\n\tMEZZANINE = \"MEZZANINE\",\n\tWINE_CELLAR = \"WINE_CELLAR\",\n\n\t// Outdoor\n\tTERRACE = \"TERRACE\",\n\tPATIO = \"PATIO\",\n\tGARDEN = \"GARDEN\",\n\tCOURTYARD = \"COURTYARD\",\n\tROOFTOP = \"ROOFTOP\",\n\tBALCONY = \"BALCONY\",\n\tSIDEWALK = \"SIDEWALK\",\n\tPOOLSIDE = \"POOLSIDE\",\n\n\t// Special Sections\n\tSMOKING_AREA = \"SMOKING_AREA\",\n\tNON_SMOKING = \"NON_SMOKING\",\n\tFAMILY_SECTION = \"FAMILY_SECTION\",\n\tKIDS_AREA = \"KIDS_AREA\",\n\tWAITING_AREA = \"WAITING_AREA\",\n\tDANCE_FLOOR = \"DANCE_FLOOR\",\n}\n\nexport interface Table {\n\tid: number;\n\tbusinessId: number;\n\tbranchId: number;\n\tname: string;\n\tseatCount: number;\n\tshape: TableShape;\n\tlocation: TableLocation;\n\tstatus: TableStatus;\n}\n\nexport interface TableState {\n\ttables: Table[];\n}\n\nexport type TableForm = Omit<Table, \"id\" | \"businessId\" | \"branchId\"> & {\n\tbranchId: string | number;\n};\n\nexport type TableUpdate = Partial<Omit<Table, \"id\" | \"businessId\">>;\n\nexport type TableFilter = Partial<Pick<Table, \"branchId\" | \"shape\" | \"location\" | \"status\">>;\n\nexport type TableFilterParams = { field: keyof TableFilter; value: TableFilter[keyof TableFilter] };\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation"],"mappings":"IAAYA,ECuBAC,ECdA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AA,cAGAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WAGAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,eAAA,iBACAA,EAAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA,aACA,CA9BD,CAAYA,IAAAA,EA8BX,CAAA"}
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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/modules/subscription/models.ts","../../../src/modules/table/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 type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\n};\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\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?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\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 OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\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\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\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","export enum TableShape {\n\tSQUARE = \"SQUARE\",\n\tCIRCLE = \"CIRCLE\",\n\tRECTANGLE = \"RECTANGLE\",\n\tRECTANGLE_VERTICAL = \"RECTANGLE_VERTICAL\",\n\tSINGLE_AT_BAR = \"SINGLE_AT_BAR\",\n\tOTHER = \"OTHER\",\n}\n\nexport enum TableStatus {\n\tVACANT = \"VACANT\", // Free and available\n\tRESERVED = \"RESERVED\", // Booked but not yet seated\n\tOCCUPIED = \"OCCUPIED\", // Currently in use\n\tBLOCKED = \"BLOCKED\", // Temporarily blocked/unavailable\n\tNEEDS_CLEANING = \"NEEDS_CLEANING\", // Dirty, awaiting cleanup\n\tOUT_OF_SERVICE = \"OUT_OF_SERVICE\", // Permanently unavailable repair/maintenance\n\tPENDING_CONFIRMATION = \"PENDING_CONFIRMATION\", // Reservation not yet confirmed\n\tNO_SHOW = \"NO_SHOW\", // Reserved but guest didn’t arrive\n}\n\nexport enum TableLocation {\n\t// Indoor\n\tMAIN_HALL = \"MAIN_HALL\",\n\tPRIVATE_DINING = \"PRIVATE_DINING\",\n\tVIP_ROOM = \"VIP_ROOM\",\n\tBANQUET_HALL = \"BANQUET_HALL\",\n\tBAR_AREA = \"BAR_AREA\",\n\tLOUNGE = \"LOUNGE\",\n\tOPEN_KITCHEN = \"OPEN_KITCHEN\",\n\tBOOTH_SECTION = \"BOOTH_SECTION\",\n\tMEZZANINE = \"MEZZANINE\",\n\tWINE_CELLAR = \"WINE_CELLAR\",\n\n\t// Outdoor\n\tTERRACE = \"TERRACE\",\n\tPATIO = \"PATIO\",\n\tGARDEN = \"GARDEN\",\n\tCOURTYARD = \"COURTYARD\",\n\tROOFTOP = \"ROOFTOP\",\n\tBALCONY = \"BALCONY\",\n\tSIDEWALK = \"SIDEWALK\",\n\tPOOLSIDE = \"POOLSIDE\",\n\n\t// Special Sections\n\tSMOKING_AREA = \"SMOKING_AREA\",\n\tNON_SMOKING = \"NON_SMOKING\",\n\tFAMILY_SECTION = \"FAMILY_SECTION\",\n\tKIDS_AREA = \"KIDS_AREA\",\n\tWAITING_AREA = \"WAITING_AREA\",\n\tDANCE_FLOOR = \"DANCE_FLOOR\",\n}\n\nexport interface Table {\n\tid: number;\n\tbusinessId: number;\n\tbranchId: number;\n\tname: string;\n\tseatCount: number;\n\tshape: TableShape;\n\tlocation: TableLocation;\n\tstatus: TableStatus;\n}\n\nexport interface TableState {\n\ttables: Table[];\n}\n\nexport type TableForm = Omit<Table, \"id\" | \"businessId\" | \"branchId\"> & {\n\tbranchId: string | number;\n};\n\nexport type TableUpdate = Partial<Omit<Table, \"id\" | \"businessId\">>;\n\nexport type TableFilter = Partial<Pick<Table, \"branchId\" | \"shape\" | \"location\" | \"status\">>;\n\nexport type TableFilterParams = { field: keyof TableFilter; value: TableFilter[keyof TableFilter] };\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","Feature"],"mappings":"aAAA,IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,ERpBAhB,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAGX,CAAA,IAFA,OAAA,SACAA,EAAA,SAAA,WCqBWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAaA,gBAAbA,sBAOX,CAAA,IANA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,oBCpBWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAMX,CAAA,IALA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBCdWC,QAAAA,sBAAAA,GAAAA,EAAAA,QAAgBA,mBAAhBA,yBAIX,CAAA,IAHA,MAAA,QACAA,EAAA,IAAA,MACAA,EAAA,MAAA,QAGWC,QAAAA,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,SAAA,WAmBWC,QAAAA,wBAAAA,GAAAA,EAAAA,QAAkBA,qBAAlBA,2BAIX,CAAA,IAHA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YC1BWC,QAAAA,gBAAAA,GAAAA,EAAAA,QAAUA,aAAVA,mBAOX,CAAA,IANA,OAAA,SACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,mBAAA,qBACAA,EAAA,cAAA,gBACAA,EAAA,MAAA,QAGWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBASX,CAAA,IARA,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,QAAA,UAGWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAaA,gBAAbA,sBA8BX,CAAA,IA5BA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,SAAA,WACAA,EAAA,aAAA,eACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,YAAA,cAGAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WAGAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,eAAA,iBACAA,EAAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/branch/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/modules/subscription/models.ts","../../../src/modules/table/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 type BranchWorkHour = {\n\topenAt: string;\n\tcloseAt: string;\n};\n\nexport type BranchWorkDay = {\n\tday: number;\n\thours: BranchWorkHour | null;\n};\n\nexport type BranchWorkDays = {\n\tdays: BranchWorkDay[];\n};\n\nexport interface BranchSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: number;\n\tdeliveryFeeAmount: number;\n}\n\nexport enum BranchSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\n\tDELIVERY_FEE_AMOUNT = \"deliveryFeeAmount\",\n}\n\nexport interface Branch {\n\tid: number;\n\tname: string;\n\tbusinessId: number;\n\taddress: string;\n\tlongitude?: number;\n\tlatitude?: number;\n\tphone?: string;\n\twifiPassword?: string;\n\tcreatedAt?: number;\n\tcoverPhoto?: string;\n\tsettings?: BranchSettings;\n\topeningHours?: BranchWorkDays;\n\tdeliveryHours?: BranchWorkDays;\n}\n\nexport type BranchServes = {\n\tisOpen: boolean;\n\tisDelivering: boolean;\n};\n","import * as featureModels from \"../feature/models\";\nimport * as subscriptionModels from \"../subscription/models\";\n\nexport interface BusinessLanguage {\n\tid: number;\n\tcode: string;\n\tbusinessId: number;\n}\n\nexport enum BusinessSetting {\n\tMAX_DELIVERY_DISTANCE = \"maxDeliveryDistance\",\n\tDELIVERY_ORDER_ENABLED = \"deliveryOrderEnabled\",\n\tPICKUP_ORDER_ENABLED = \"pickupOrderEnabled\",\n\tDINE_IN_ORDER_ENABLED = \"dineInOrderEnabled\",\n\tMIN_DELIVERY_AMOUNT = \"minDeliveryAmount\",\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?: subscriptionModels.Subscription[];\n\tsegment?: featureModels.FeatureSegment;\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 OrderAddonOption {\n\toptionId: number;\n\tprice: number;\n}\n\nexport interface OrderAddon {\n\tid?: number;\n\taddonId: number;\n\toptions: OrderAddonOption[];\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\ttotalPriceWithTaxAndFees?: 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\tdeliveryFeeAmount?: 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\nexport interface OrderPayload extends Order {\n\tcustomerAddressId: number;\n\tcustomerId: number;\n}\n\nexport type OrderPriceDetails = {\n\ttotalPriceWithTax: number;\n\ttotalPriceWithTaxAndFees: number;\n\ttotalPriceWithoutTax: number;\n\ttotalTax: number;\n};\n\nexport type OrderFormattedPriceDetails = {\n\ttotalPriceWithTax: string;\n\ttotalPriceWithTaxAndFees: string;\n\ttotalPriceWithoutTax: string;\n\ttotalTax: string;\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\tLIFETIME = \"lifeTime\",\n}\n\nexport interface PricingPlan {\n\ttitle: string;\n\tprice: {\n\t\tmonthly: number;\n\t\tannually: number;\n\t};\n\tdiscountedPrice?: number;\n\tribbonText?: string;\n}\n\nexport interface PricingPlans {\n\t[key: string]: PricingPlan;\n}\n\nexport type PricingInterval = \"monthly\" | \"annually\";\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","export enum TableShape {\n\tSQUARE = \"SQUARE\",\n\tCIRCLE = \"CIRCLE\",\n\tRECTANGLE = \"RECTANGLE\",\n\tRECTANGLE_VERTICAL = \"RECTANGLE_VERTICAL\",\n\tSINGLE_AT_BAR = \"SINGLE_AT_BAR\",\n\tOTHER = \"OTHER\",\n}\n\nexport enum TableStatus {\n\tVACANT = \"VACANT\", // Free and available\n\tRESERVED = \"RESERVED\", // Booked but not yet seated\n\tOCCUPIED = \"OCCUPIED\", // Currently in use\n\tBLOCKED = \"BLOCKED\", // Temporarily blocked/unavailable\n\tNEEDS_CLEANING = \"NEEDS_CLEANING\", // Dirty, awaiting cleanup\n\tOUT_OF_SERVICE = \"OUT_OF_SERVICE\", // Permanently unavailable repair/maintenance\n\tPENDING_CONFIRMATION = \"PENDING_CONFIRMATION\", // Reservation not yet confirmed\n\tNO_SHOW = \"NO_SHOW\", // Reserved but guest didn’t arrive\n}\n\nexport enum TableLocation {\n\t// Indoor\n\tMAIN_HALL = \"MAIN_HALL\",\n\tPRIVATE_DINING = \"PRIVATE_DINING\",\n\tVIP_ROOM = \"VIP_ROOM\",\n\tBANQUET_HALL = \"BANQUET_HALL\",\n\tBAR_AREA = \"BAR_AREA\",\n\tLOUNGE = \"LOUNGE\",\n\tOPEN_KITCHEN = \"OPEN_KITCHEN\",\n\tBOOTH_SECTION = \"BOOTH_SECTION\",\n\tMEZZANINE = \"MEZZANINE\",\n\tWINE_CELLAR = \"WINE_CELLAR\",\n\n\t// Outdoor\n\tTERRACE = \"TERRACE\",\n\tPATIO = \"PATIO\",\n\tGARDEN = \"GARDEN\",\n\tCOURTYARD = \"COURTYARD\",\n\tROOFTOP = \"ROOFTOP\",\n\tBALCONY = \"BALCONY\",\n\tSIDEWALK = \"SIDEWALK\",\n\tPOOLSIDE = \"POOLSIDE\",\n\n\t// Special Sections\n\tSMOKING_AREA = \"SMOKING_AREA\",\n\tNON_SMOKING = \"NON_SMOKING\",\n\tFAMILY_SECTION = \"FAMILY_SECTION\",\n\tKIDS_AREA = \"KIDS_AREA\",\n\tWAITING_AREA = \"WAITING_AREA\",\n\tDANCE_FLOOR = \"DANCE_FLOOR\",\n}\n\nexport interface Table {\n\tid: number;\n\tbusinessId: number;\n\tbranchId: number;\n\tname: string;\n\tseatCount: number;\n\tshape: TableShape;\n\tlocation: TableLocation;\n\tstatus: TableStatus;\n}\n\nexport interface TableState {\n\ttables: Table[];\n}\n\nexport type TableForm = Omit<Table, \"id\" | \"businessId\" | \"branchId\"> & {\n\tbranchId: string | number;\n};\n\nexport type TableUpdate = Partial<Omit<Table, \"id\" | \"businessId\">>;\n\nexport type TableFilter = Partial<Pick<Table, \"branchId\" | \"shape\" | \"location\" | \"status\">>;\n\nexport type TableFilterParams = { field: keyof TableFilter; value: TableFilter[keyof TableFilter] };\n"],"names":["MenuAddonSelectType","BranchSetting","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","TableShape","TableStatus","TableLocation","Feature"],"mappings":"aAAA,IAAYA,ECuBAC,ECdAC,ECTAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAqEAC,ECxDAC,ECzCAC,EAuBAC,ECvBAC,EASAC,EAWAC,ERpBAhB,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAGX,CAAA,IAFA,OAAA,SACAA,EAAA,SAAA,WCqBWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAaA,gBAAbA,sBAOX,CAAA,IANA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBACAA,EAAA,oBAAA,oBCpBWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAMX,CAAA,IALA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBCdWC,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,SCTWa,QAAAA,aAAAA,GAAAA,QAAOA,UAAPA,gBAEX,CAAA,IADA,MAAA,gBAEWZ,QAAAA,oBAAAA,GAAAA,EAAAA,QAAcA,iBAAdA,uBAIX,CAAA,IAHA,MAAA,QACAA,EAAA,KAAA,OACAA,EAAA,IAAA,MCJWC,QAAA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GWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBASX,CAAA,IARA,OAAA,SACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WACAA,EAAA,QAAA,UACAA,EAAA,eAAA,iBACAA,EAAA,eAAA,iBACAA,EAAA,qBAAA,uBACAA,EAAA,QAAA,UAGWC,QAAAA,mBAAAA,GAAAA,EAAAA,QAAaA,gBAAbA,sBA8BX,CAAA,IA5BA,UAAA,YACAA,EAAA,eAAA,iBACAA,EAAA,SAAA,WACAA,EAAA,aAAA,eACAA,EAAA,SAAA,WACAA,EAAA,OAAA,SACAA,EAAA,aAAA,eACAA,EAAA,cAAA,gBACAA,EAAA,UAAA,YACAA,EAAA,YAAA,cAGAA,EAAA,QAAA,UACAA,EAAA,MAAA,QACAA,EAAA,OAAA,SACAA,EAAA,UAAA,YACAA,EAAA,QAAA,UACAA,EAAA,QAAA,UACAA,EAAA,SAAA,WACAA,EAAA,SAAA,WAGAA,EAAA,aAAA,eACAA,EAAA,YAAA,cACAA,EAAA,eAAA,iBACAA,EAAA,UAAA,YACAA,EAAA,aAAA,eACAA,EAAA,YAAA"}
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { Order, OrderItem, OrderPayload, SelectedAddons } from "./models";
|
|
2
|
-
export declare const useOrderPriceDetails: () =>
|
|
3
|
-
|
|
4
|
-
totalPriceWithoutTax: number;
|
|
5
|
-
totalTax: number;
|
|
6
|
-
};
|
|
1
|
+
import { Order, OrderFormattedPriceDetails, OrderItem, OrderPayload, OrderPriceDetails, SelectedAddons } from "./models";
|
|
2
|
+
export declare const useOrderPriceDetails: () => OrderPriceDetails;
|
|
3
|
+
export declare const useOrderFormattedPriceDetails: () => OrderFormattedPriceDetails;
|
|
7
4
|
export declare const usePrepareOrder: (existingOrderData?: Partial<Order>) => OrderPayload;
|
|
8
5
|
export declare const useTotalOrderItemsCount: () => number;
|
|
9
|
-
export declare const useOrderItemsTotalPrice: () => {
|
|
10
|
-
totalPrice: number;
|
|
11
|
-
formattedTotalPrice: string;
|
|
12
|
-
};
|
|
13
6
|
export declare const useProductQuantityInOrder: ({ productId, variantId, selectedAddons, }: {
|
|
14
7
|
productId: number;
|
|
15
8
|
variantId?: number | null;
|
|
@@ -67,6 +67,7 @@ export interface Order {
|
|
|
67
67
|
employeeId?: number;
|
|
68
68
|
orderType: OrderType;
|
|
69
69
|
totalPriceWithTax: number;
|
|
70
|
+
totalPriceWithTaxAndFees?: number;
|
|
70
71
|
totalPriceWithoutTax: number;
|
|
71
72
|
totalTax: number;
|
|
72
73
|
items: OrderItem[];
|
|
@@ -77,6 +78,7 @@ export interface Order {
|
|
|
77
78
|
createdAt?: number;
|
|
78
79
|
updatedAt?: number;
|
|
79
80
|
customer?: customerModels.Customer;
|
|
81
|
+
deliveryFeeAmount?: number;
|
|
80
82
|
}
|
|
81
83
|
export interface OrderItems {
|
|
82
84
|
[key: string]: OrderItem;
|
|
@@ -90,3 +92,15 @@ export interface OrderPayload extends Order {
|
|
|
90
92
|
customerAddressId: number;
|
|
91
93
|
customerId: number;
|
|
92
94
|
}
|
|
95
|
+
export type OrderPriceDetails = {
|
|
96
|
+
totalPriceWithTax: number;
|
|
97
|
+
totalPriceWithTaxAndFees: number;
|
|
98
|
+
totalPriceWithoutTax: number;
|
|
99
|
+
totalTax: number;
|
|
100
|
+
};
|
|
101
|
+
export type OrderFormattedPriceDetails = {
|
|
102
|
+
totalPriceWithTax: string;
|
|
103
|
+
totalPriceWithTaxAndFees: string;
|
|
104
|
+
totalPriceWithoutTax: string;
|
|
105
|
+
totalTax: string;
|
|
106
|
+
};
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -63,6 +64,7 @@ declare const _default: {
|
|
|
63
64
|
"Select Table": string;
|
|
64
65
|
Card: string;
|
|
65
66
|
"Closed Now": string;
|
|
67
|
+
"Delivery Fee": string;
|
|
66
68
|
};
|
|
67
69
|
customer: {
|
|
68
70
|
"Unknown address": string;
|
|
@@ -5,6 +5,7 @@ declare const _default: {
|
|
|
5
5
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
6
6
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
7
7
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
8
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
8
9
|
COUNTRY_REQUIRED: string;
|
|
9
10
|
CITY_REQUIRED: string;
|
|
10
11
|
STREET_REQUIRED: string;
|
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
7
7
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
8
8
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
9
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
9
10
|
COUNTRY_REQUIRED: string;
|
|
10
11
|
CITY_REQUIRED: string;
|
|
11
12
|
STREET_REQUIRED: string;
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
"Select Table": string;
|
|
65
66
|
Card: string;
|
|
66
67
|
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
67
69
|
};
|
|
68
70
|
customer: {
|
|
69
71
|
"Unknown address": string;
|
|
@@ -11,6 +11,7 @@ declare const _default: {
|
|
|
11
11
|
"Invalid Email Address": string;
|
|
12
12
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
13
13
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
14
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
14
15
|
COUNTRY_REQUIRED: string;
|
|
15
16
|
CITY_REQUIRED: string;
|
|
16
17
|
STREET_REQUIRED: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
"Select Table": string;
|
|
65
66
|
Card: string;
|
|
66
67
|
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
67
69
|
};
|
|
68
70
|
customer: {
|
|
69
71
|
"Unknown address": string;
|
|
@@ -151,6 +153,7 @@ declare const _default: {
|
|
|
151
153
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
152
154
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
153
155
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
156
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
154
157
|
COUNTRY_REQUIRED: string;
|
|
155
158
|
CITY_REQUIRED: string;
|
|
156
159
|
STREET_REQUIRED: string;
|
|
@@ -186,6 +189,7 @@ declare const _default: {
|
|
|
186
189
|
"Invalid Email Address": string;
|
|
187
190
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
188
191
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
192
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
189
193
|
COUNTRY_REQUIRED: string;
|
|
190
194
|
CITY_REQUIRED: string;
|
|
191
195
|
STREET_REQUIRED: string;
|
|
@@ -240,6 +244,7 @@ declare const _default: {
|
|
|
240
244
|
"Select Table": string;
|
|
241
245
|
Card: string;
|
|
242
246
|
"Closed Now": string;
|
|
247
|
+
"Delivery Fee": string;
|
|
243
248
|
};
|
|
244
249
|
customer: {
|
|
245
250
|
"Unknown address": string;
|
|
@@ -329,6 +334,7 @@ declare const _default: {
|
|
|
329
334
|
"Invalid Email Address": string;
|
|
330
335
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
331
336
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
337
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
332
338
|
COUNTRY_REQUIRED: string;
|
|
333
339
|
CITY_REQUIRED: string;
|
|
334
340
|
STREET_REQUIRED: string;
|
|
@@ -383,6 +389,7 @@ declare const _default: {
|
|
|
383
389
|
"Select Table": string;
|
|
384
390
|
Card: string;
|
|
385
391
|
"Closed Now": string;
|
|
392
|
+
"Delivery Fee": string;
|
|
386
393
|
};
|
|
387
394
|
customer: {
|
|
388
395
|
"Unknown address": string;
|
|
@@ -472,6 +479,7 @@ declare const _default: {
|
|
|
472
479
|
"Invalid Email Address": string;
|
|
473
480
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
474
481
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
482
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
475
483
|
COUNTRY_REQUIRED: string;
|
|
476
484
|
CITY_REQUIRED: string;
|
|
477
485
|
STREET_REQUIRED: string;
|
|
@@ -526,6 +534,7 @@ declare const _default: {
|
|
|
526
534
|
"Select Table": string;
|
|
527
535
|
Card: string;
|
|
528
536
|
"Closed Now": string;
|
|
537
|
+
"Delivery Fee": string;
|
|
529
538
|
};
|
|
530
539
|
customer: {
|
|
531
540
|
"Unknown address": string;
|
|
@@ -615,6 +624,7 @@ declare const _default: {
|
|
|
615
624
|
"Invalid Email Address": string;
|
|
616
625
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
617
626
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
627
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
618
628
|
COUNTRY_REQUIRED: string;
|
|
619
629
|
CITY_REQUIRED: string;
|
|
620
630
|
STREET_REQUIRED: string;
|
|
@@ -669,6 +679,7 @@ declare const _default: {
|
|
|
669
679
|
"Select Table": string;
|
|
670
680
|
Card: string;
|
|
671
681
|
"Closed Now": string;
|
|
682
|
+
"Delivery Fee": string;
|
|
672
683
|
};
|
|
673
684
|
customer: {
|
|
674
685
|
"Unknown address": string;
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
"Select Table": string;
|
|
65
66
|
Card: string;
|
|
66
67
|
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
67
69
|
};
|
|
68
70
|
customer: {
|
|
69
71
|
"Unknown address": string;
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
"Select Table": string;
|
|
65
66
|
Card: string;
|
|
66
67
|
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
67
69
|
};
|
|
68
70
|
customer: {
|
|
69
71
|
"Unknown address": string;
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
"Select Table": string;
|
|
65
66
|
Card: string;
|
|
66
67
|
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
67
69
|
};
|
|
68
70
|
customer: {
|
|
69
71
|
"Unknown address": string;
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
import { Order, OrderItem, OrderPayload, SelectedAddons } from "./models";
|
|
2
|
-
export declare const useOrderPriceDetails: () =>
|
|
3
|
-
|
|
4
|
-
totalPriceWithoutTax: number;
|
|
5
|
-
totalTax: number;
|
|
6
|
-
};
|
|
1
|
+
import { Order, OrderFormattedPriceDetails, OrderItem, OrderPayload, OrderPriceDetails, SelectedAddons } from "./models";
|
|
2
|
+
export declare const useOrderPriceDetails: () => OrderPriceDetails;
|
|
3
|
+
export declare const useOrderFormattedPriceDetails: () => OrderFormattedPriceDetails;
|
|
7
4
|
export declare const usePrepareOrder: (existingOrderData?: Partial<Order>) => OrderPayload;
|
|
8
5
|
export declare const useTotalOrderItemsCount: () => number;
|
|
9
|
-
export declare const useOrderItemsTotalPrice: () => {
|
|
10
|
-
totalPrice: number;
|
|
11
|
-
formattedTotalPrice: string;
|
|
12
|
-
};
|
|
13
6
|
export declare const useProductQuantityInOrder: ({ productId, variantId, selectedAddons, }: {
|
|
14
7
|
productId: number;
|
|
15
8
|
variantId?: number | null;
|
|
@@ -67,6 +67,7 @@ export interface Order {
|
|
|
67
67
|
employeeId?: number;
|
|
68
68
|
orderType: OrderType;
|
|
69
69
|
totalPriceWithTax: number;
|
|
70
|
+
totalPriceWithTaxAndFees?: number;
|
|
70
71
|
totalPriceWithoutTax: number;
|
|
71
72
|
totalTax: number;
|
|
72
73
|
items: OrderItem[];
|
|
@@ -77,6 +78,7 @@ export interface Order {
|
|
|
77
78
|
createdAt?: number;
|
|
78
79
|
updatedAt?: number;
|
|
79
80
|
customer?: customerModels.Customer;
|
|
81
|
+
deliveryFeeAmount?: number;
|
|
80
82
|
}
|
|
81
83
|
export interface OrderItems {
|
|
82
84
|
[key: string]: OrderItem;
|
|
@@ -90,3 +92,15 @@ export interface OrderPayload extends Order {
|
|
|
90
92
|
customerAddressId: number;
|
|
91
93
|
customerId: number;
|
|
92
94
|
}
|
|
95
|
+
export type OrderPriceDetails = {
|
|
96
|
+
totalPriceWithTax: number;
|
|
97
|
+
totalPriceWithTaxAndFees: number;
|
|
98
|
+
totalPriceWithoutTax: number;
|
|
99
|
+
totalTax: number;
|
|
100
|
+
};
|
|
101
|
+
export type OrderFormattedPriceDetails = {
|
|
102
|
+
totalPriceWithTax: string;
|
|
103
|
+
totalPriceWithTaxAndFees: string;
|
|
104
|
+
totalPriceWithoutTax: string;
|
|
105
|
+
totalTax: string;
|
|
106
|
+
};
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -63,6 +64,7 @@ declare const _default: {
|
|
|
63
64
|
"Select Table": string;
|
|
64
65
|
Card: string;
|
|
65
66
|
"Closed Now": string;
|
|
67
|
+
"Delivery Fee": string;
|
|
66
68
|
};
|
|
67
69
|
customer: {
|
|
68
70
|
"Unknown address": string;
|
|
@@ -5,6 +5,7 @@ declare const _default: {
|
|
|
5
5
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
6
6
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
7
7
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
8
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
8
9
|
COUNTRY_REQUIRED: string;
|
|
9
10
|
CITY_REQUIRED: string;
|
|
10
11
|
STREET_REQUIRED: string;
|
|
@@ -6,6 +6,7 @@ declare const _default: {
|
|
|
6
6
|
OTP_RATE_LIMIT_EXCEEDED: string;
|
|
7
7
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
8
8
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
9
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
9
10
|
COUNTRY_REQUIRED: string;
|
|
10
11
|
CITY_REQUIRED: string;
|
|
11
12
|
STREET_REQUIRED: string;
|
|
@@ -9,6 +9,7 @@ declare const _default: {
|
|
|
9
9
|
"Invalid Email Address": string;
|
|
10
10
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
11
11
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
12
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
12
13
|
COUNTRY_REQUIRED: string;
|
|
13
14
|
CITY_REQUIRED: string;
|
|
14
15
|
STREET_REQUIRED: string;
|
|
@@ -10,6 +10,7 @@ declare const _default: {
|
|
|
10
10
|
"Invalid Email Address": string;
|
|
11
11
|
FEATURE_NOT_AVAILABLE_FOR_SEGMENT: string;
|
|
12
12
|
ORDER_TYPE_DISABLED_FOR_BUSINESS: string;
|
|
13
|
+
ORDER_TYPE_DISABLED_AT_THIS_TIME: string;
|
|
13
14
|
COUNTRY_REQUIRED: string;
|
|
14
15
|
CITY_REQUIRED: string;
|
|
15
16
|
STREET_REQUIRED: string;
|
|
@@ -64,6 +65,7 @@ declare const _default: {
|
|
|
64
65
|
"Select Table": string;
|
|
65
66
|
Card: string;
|
|
66
67
|
"Closed Now": string;
|
|
68
|
+
"Delivery Fee": string;
|
|
67
69
|
};
|
|
68
70
|
customer: {
|
|
69
71
|
"Unknown address": string;
|