@restaround/react 1.3.29 → 1.3.32

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.
Files changed (52) hide show
  1. package/dist/components/Pricing/Pricing.d.ts +4 -3
  2. package/dist/components/Pricing/PricingPlanAmount.d.ts +3 -3
  3. package/dist/constants/constants/index.d.ts +1 -0
  4. package/dist/constants/index.d.ts +1 -0
  5. package/dist/constants/index.esm.js +1 -1
  6. package/dist/constants/index.esm.js.map +1 -1
  7. package/dist/constants/index.js +1 -1
  8. package/dist/constants/index.js.map +1 -1
  9. package/dist/constants/{constants/pricing.d.ts → modules/subscription/constants.d.ts} +3 -1
  10. package/dist/constants/modules/subscription/models.d.ts +36 -0
  11. package/dist/index.esm.js +1 -1
  12. package/dist/index.esm.js.map +1 -1
  13. package/dist/index.js +1 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/models/index.d.ts +1 -1
  16. package/dist/models/index.esm.js +1 -1
  17. package/dist/models/index.esm.js.map +1 -1
  18. package/dist/models/index.js +1 -1
  19. package/dist/models/index.js.map +1 -1
  20. package/dist/models/models/index.d.ts +1 -1
  21. package/dist/models/modules/business/models.d.ts +2 -19
  22. package/dist/models/modules/subscription/models.d.ts +36 -0
  23. package/dist/modules/business/models.d.ts +2 -19
  24. package/dist/{constants/pricing.d.ts → modules/subscription/constants.d.ts} +3 -1
  25. package/dist/modules/subscription/index.d.ts +3 -0
  26. package/dist/modules/subscription/models.d.ts +36 -0
  27. package/dist/modules/subscription/utils.d.ts +1 -0
  28. package/dist/services/translation/locales/az/index.d.ts +2 -0
  29. package/dist/services/translation/locales/az/pricing.d.ts +2 -0
  30. package/dist/services/translation/locales/et/index.d.ts +2 -0
  31. package/dist/services/translation/locales/et/pricing.d.ts +2 -0
  32. package/dist/services/translation/locales/index.d.ts +10 -0
  33. package/dist/services/translation/locales/nl/index.d.ts +2 -0
  34. package/dist/services/translation/locales/nl/pricing.d.ts +2 -0
  35. package/dist/services/translation/locales/ru/index.d.ts +2 -0
  36. package/dist/services/translation/locales/ru/pricing.d.ts +2 -0
  37. package/dist/services/translation/locales/tr/index.d.ts +2 -0
  38. package/dist/services/translation/locales/tr/pricing.d.ts +2 -0
  39. package/dist/styles/ui.css +1 -1
  40. package/dist/styles/ui.css.map +1 -1
  41. package/dist/utils/index.d.ts +1 -0
  42. package/dist/utils/index.esm.js +1 -1
  43. package/dist/utils/index.js +1 -1
  44. package/dist/utils/models/index.d.ts +1 -1
  45. package/dist/utils/modules/business/models.d.ts +2 -19
  46. package/dist/utils/modules/subscription/models.d.ts +36 -0
  47. package/dist/utils/utils/index.d.ts +1 -0
  48. package/package.json +5 -5
  49. package/dist/constants/models/pricing.d.ts +0 -17
  50. package/dist/models/models/pricing.d.ts +0 -17
  51. package/dist/models/pricing.d.ts +0 -17
  52. package/dist/utils/models/pricing.d.ts +0 -17
@@ -6,6 +6,6 @@ export * from "../modules/feature/models";
6
6
  export * from "../modules/order/models";
7
7
  export * from "../modules/product/models";
8
8
  export * from "../modules/view/models";
9
+ export * from "../modules/subscription/models";
9
10
  export * from "./category";
10
11
  export * from "./menu";
11
- export * from "./pricing";
@@ -1,2 +1,2 @@
1
- var E,D,A,I,L,R,n,N,P,C,T,O,i,e;!function(E){E.SINGLE="SINGLE",E.MULTIPLE="MULTIPLE"}(E||(E={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(D||(D={})),function(E){E.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",E.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",E.PICKUP_ORDER_ENABLED="pickupOrderEnabled",E.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",E.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(A||(A={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(I||(I={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(L||(L={})),function(E){E.ORDER="feature_order"}(R||(R={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(n||(n={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(N||(N={})),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"}(P||(P={})),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"}(O||(O={})),function(E){E.LIST="list",E.GRID="grid"}(i||(i={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial"}(e||(e={}));export{A as BusinessSetting,L as CustomerAddressType,I as CustomerAuthStep,R as Feature,n as FeatureSegment,E as MenuAddonSelectType,C as OrderItemStatus,P as OrderStatus,O as OrderStep,N as OrderType,T as PaymentMethod,e as PlanType,i as ProductView,D as SubscriptionStatus};
1
+ var E,D,I,L,A,R,n,N,P,T,C,i,O,e;!function(E){E.SINGLE="SINGLE",E.MULTIPLE="MULTIPLE"}(E||(E={})),function(E){E.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",E.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",E.PICKUP_ORDER_ENABLED="pickupOrderEnabled",E.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",E.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(D||(D={})),function(E){E.PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL"}(I||(I={})),function(E){E.HOME="HOME",E.WORK="WORK",E.TRAVEL="TRAVEL"}(L||(L={})),function(E){E.ORDER="feature_order"}(A||(A={})),function(E){E.ALPHA="ALPHA",E.BETA="BETA",E.ALL="ALL"}(R||(R={})),function(E){E.DINE_IN="DINE_IN",E.PICK_UP="PICK_UP",E.DELIVERY="DELIVERY"}(n||(n={})),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"}(P||(P={})),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"}(C||(C={})),function(E){E.LIST="list",E.GRID="grid"}(i||(i={})),function(E){E.APPETIZER="appetizer",E.MAIN_COURSE="mainCourse",E.CHEFS_SPECIAL="chefsSpecial",E.LIFETIME="lifeTime"}(O||(O={})),function(E){E.ACTIVE="ACTIVE",E.EXPIRED="EXPIRED",E.CANCELLED="CANCELLED"}(e||(e={}));export{D as BusinessSetting,L as CustomerAddressType,I as CustomerAuthStep,A as Feature,R as FeatureSegment,E as MenuAddonSelectType,P as OrderItemStatus,N as OrderStatus,C as OrderStep,n as OrderType,T as PaymentMethod,O as PlanType,i as ProductView,e 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\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: 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?: 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 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}\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","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType"],"mappings":"IAAYA,ECIAC,EAkCAC,ECtCAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,GNAZ,SAAYb,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,IA8BD,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAMX,CAAA,IC5CD,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,IA8DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IC1DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,MACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,IC5CD,SAAYC,GACXA,EAAA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,cACA,CAJD,CAAYA,IAAAA,EAIX,CAAA"}
1
+ {"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/modules/subscription/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","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 interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: 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\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 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"],"names":["MenuAddonSelectType","BusinessSetting","CustomerAuthStep","CustomerAddressType","Feature","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus"],"mappings":"IAAYA,ECiBAC,ECjBAC,EAMAC,ECNAC,EAGAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,GNvBZ,SAAYb,GACXA,EAAA,OAAA,SACAA,EAAA,SAAA,UACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,ICcD,SAAYC,GACXA,EAAA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,mBACA,CAND,CAAYA,IAAAA,EAMX,CAAA,ICvBD,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,IA8DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA,IC1DD,SAAYC,GACXA,EAAA,KAAA,OACAA,EAAA,KAAA,MACA,CAHD,CAAYA,IAAAA,EAGX,CAAA,IC5CD,SAAYC,GACXA,EAAA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,eACAA,EAAA,SAAA,UACA,CALD,CAAYA,IAAAA,EAKX,CAAA,IAkBD,SAAYC,GACXA,EAAA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA,WACA,CAJD,CAAYA,IAAAA,EAIX,CAAA"}
@@ -1,2 +1,2 @@
1
- "use strict";var e,t,r,E,s,o,p,A,D,I,d,L,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.BusinessSetting=void 0,(r=exports.BusinessSetting||(exports.BusinessSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",r.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",r.PICKUP_ORDER_ENABLED="pickupOrderEnabled",r.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",r.MIN_DELIVERY_AMOUNT="minDeliveryAmount",exports.CustomerAuthStep=void 0,(E=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL",exports.CustomerAddressType=void 0,(s=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",s.WORK="WORK",s.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,(p=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",p.PICK_UP="PICK_UP",p.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(A=exports.OrderStatus||(exports.OrderStatus={})).DRAFT="DRAFT",A.PENDING="PENDING",A.CONFIRMED="CONFIRMED",A.PREPARING="PREPARING",A.READY="READY",A.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",A.DELIVERED="DELIVERED",A.COMPLETED="COMPLETED",A.CANCELLED="CANCELLED",A.FAILED="FAILED",exports.OrderItemStatus=void 0,(D=exports.OrderItemStatus||(exports.OrderItemStatus={})).PENDING="PENDING",D.PREPARING="PREPARING",D.READY="READY",D.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,(d=exports.OrderStep||(exports.OrderStep={})).CART="CART",d.DETAILS="DETAILS",d.COMPLETED="COMPLETED",exports.ProductView=void 0,(L=exports.ProductView||(exports.ProductView={})).LIST="list",L.GRID="grid",exports.PlanType=void 0,(R=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",R.MAIN_COURSE="mainCourse",R.CHEFS_SPECIAL="chefsSpecial";
1
+ "use strict";var e,t,E,r,s,o,p,A,I,D,d,L,R;exports.MenuAddonSelectType=void 0,(e=exports.MenuAddonSelectType||(exports.MenuAddonSelectType={})).SINGLE="SINGLE",e.MULTIPLE="MULTIPLE",exports.BusinessSetting=void 0,(t=exports.BusinessSetting||(exports.BusinessSetting={})).MAX_DELIVERY_DISTANCE="maxDeliveryDistance",t.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",t.PICKUP_ORDER_ENABLED="pickupOrderEnabled",t.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",t.MIN_DELIVERY_AMOUNT="minDeliveryAmount",exports.CustomerAuthStep=void 0,(E=exports.CustomerAuthStep||(exports.CustomerAuthStep={})).PHONE="PHONE",E.OTP="OTP",E.EMAIL="EMAIL",exports.CustomerAddressType=void 0,(r=exports.CustomerAddressType||(exports.CustomerAddressType={})).HOME="HOME",r.WORK="WORK",r.TRAVEL="TRAVEL",exports.Feature=void 0,(exports.Feature||(exports.Feature={})).ORDER="feature_order",exports.FeatureSegment=void 0,(s=exports.FeatureSegment||(exports.FeatureSegment={})).ALPHA="ALPHA",s.BETA="BETA",s.ALL="ALL",exports.OrderType=void 0,(o=exports.OrderType||(exports.OrderType={})).DINE_IN="DINE_IN",o.PICK_UP="PICK_UP",o.DELIVERY="DELIVERY",exports.OrderStatus=void 0,(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,(D=exports.OrderStep||(exports.OrderStep={})).CART="CART",D.DETAILS="DETAILS",D.COMPLETED="COMPLETED",exports.ProductView=void 0,(d=exports.ProductView||(exports.ProductView={})).LIST="list",d.GRID="grid",exports.PlanType=void 0,(L=exports.PlanType||(exports.PlanType={})).APPETIZER="appetizer",L.MAIN_COURSE="mainCourse",L.CHEFS_SPECIAL="chefsSpecial",L.LIFETIME="lifeTime",exports.SubscriptionStatus=void 0,(R=exports.SubscriptionStatus||(exports.SubscriptionStatus={})).ACTIVE="ACTIVE",R.EXPIRED="EXPIRED",R.CANCELLED="CANCELLED";
2
2
  //# sourceMappingURL=index.js.map
@@ -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\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: 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?: 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 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}\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","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","Feature"],"mappings":"aAAA,IAAYA,ECIAC,EAkCAC,ECtCAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,ENAAZ,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,YA+BWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAMX,CAAA,IALA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBC3CWC,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,WA+DWC,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YCzDWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAGX,CAAA,IAFA,KAAA,OACAA,EAAA,KAAA,OC3CWC,QAAAA,cAAAA,GAAAA,EAAAA,QAAQA,WAARA,iBAIX,CAAA,IAHA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA"}
1
+ {"version":3,"file":"index.js","sources":["../../../src/modules/addon/models.ts","../../../src/modules/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"],"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 * 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 interface BusinessSettings {\n\tdeliveryOrderEnabled: boolean;\n\tpickupOrderEnabled: boolean;\n\tdineInOrderEnabled: boolean;\n\tmaxDeliveryDistance: number;\n\tminDeliveryAmount: 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\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 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"],"names":["MenuAddonSelectType","BusinessSetting","CustomerAuthStep","CustomerAddressType","FeatureSegment","OrderType","OrderStatus","OrderItemStatus","PaymentMethod","OrderStep","ProductView","PlanType","SubscriptionStatus","Feature"],"mappings":"aAAA,IAAYA,ECiBAC,ECjBAC,EAMAC,ECHAC,ECDAC,EAMAC,EAaAC,EAOAC,EAmEAC,ECtDAC,ECzCAC,EAuBAC,ENvBAZ,QAAAA,yBAAAA,GAAAA,EAAAA,QAAmBA,sBAAnBA,4BAGX,CAAA,IAFA,OAAA,SACAA,EAAA,SAAA,WCeWC,QAAAA,qBAAAA,GAAAA,EAAAA,QAAeA,kBAAfA,wBAMX,CAAA,IALA,sBAAA,sBACAA,EAAA,uBAAA,uBACAA,EAAA,qBAAA,qBACAA,EAAA,sBAAA,qBACAA,EAAA,oBAAA,oBCtBWC,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,SCTWU,QAAAA,aAAAA,GAAAA,QAAOA,UAAPA,gBAEX,CAAA,IADA,MAAA,gBAEWT,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,WA+DWC,QAAAA,eAAAA,GAAAA,EAAAA,QAASA,YAATA,kBAIX,CAAA,IAHA,KAAA,OACAA,EAAA,QAAA,UACAA,EAAA,UAAA,YCzDWC,QAAAA,iBAAAA,GAAAA,EAAAA,QAAWA,cAAXA,oBAGX,CAAA,IAFA,KAAA,OACAA,EAAA,KAAA,OC3CWC,QAAAA,cAAAA,GAAAA,EAAAA,QAAQA,WAARA,iBAKX,CAAA,IAJA,UAAA,YACAA,EAAA,YAAA,aACAA,EAAA,cAAA,eACAA,EAAA,SAAA,WAmBWC,QAAAA,wBAAAA,GAAAA,EAAAA,QAAkBA,qBAAlBA,2BAIX,CAAA,IAHA,OAAA,SACAA,EAAA,QAAA,UACAA,EAAA,UAAA"}
@@ -6,6 +6,6 @@ export * from "../modules/feature/models";
6
6
  export * from "../modules/order/models";
7
7
  export * from "../modules/product/models";
8
8
  export * from "../modules/view/models";
9
+ export * from "../modules/subscription/models";
9
10
  export * from "./category";
10
11
  export * from "./menu";
11
- export * from "./pricing";
@@ -1,22 +1,5 @@
1
- import { PricingInterval } from "src/models/pricing";
2
1
  import * as featureModels from "../feature/models";
3
- export declare enum SubscriptionStatus {
4
- ACTIVE = "ACTIVE",
5
- EXPIRED = "EXPIRED",
6
- CANCELLED = "CANCELLED"
7
- }
8
- export type BillingInterval = "MONTH" | "YEAR";
9
- export interface Subscription {
10
- id: number;
11
- billingInterval: BillingInterval;
12
- billingIntervalCount: number;
13
- startDate: string;
14
- endDate: string;
15
- interval: PricingInterval;
16
- status: SubscriptionStatus;
17
- business_id?: number;
18
- planName: string;
19
- }
2
+ import * as subscriptionModels from "../subscription/models";
20
3
  export interface BusinessLanguage {
21
4
  id: number;
22
5
  code: string;
@@ -50,7 +33,7 @@ export interface Business {
50
33
  createdAt?: number;
51
34
  currency: string;
52
35
  languages: BusinessLanguage[];
53
- subscriptions?: Subscription[];
36
+ subscriptions?: subscriptionModels.Subscription[];
54
37
  segment?: featureModels.FeatureSegment;
55
38
  settings?: BusinessSettings;
56
39
  }
@@ -0,0 +1,36 @@
1
+ export declare enum PlanType {
2
+ APPETIZER = "appetizer",
3
+ MAIN_COURSE = "mainCourse",
4
+ CHEFS_SPECIAL = "chefsSpecial",
5
+ LIFETIME = "lifeTime"
6
+ }
7
+ export interface PricingPlan {
8
+ title: string;
9
+ price: {
10
+ monthly: number;
11
+ annually: number;
12
+ };
13
+ discountedPrice?: number;
14
+ ribbonText?: string;
15
+ }
16
+ export interface PricingPlans {
17
+ [key: string]: PricingPlan;
18
+ }
19
+ export type PricingInterval = "monthly" | "annually";
20
+ export declare enum SubscriptionStatus {
21
+ ACTIVE = "ACTIVE",
22
+ EXPIRED = "EXPIRED",
23
+ CANCELLED = "CANCELLED"
24
+ }
25
+ export type BillingInterval = "MONTH" | "YEAR";
26
+ export interface Subscription {
27
+ id: number;
28
+ billingInterval: BillingInterval;
29
+ billingIntervalCount: number;
30
+ startDate: string;
31
+ endDate: string;
32
+ interval: PricingInterval;
33
+ status: SubscriptionStatus;
34
+ business_id?: number;
35
+ planName: string;
36
+ }
@@ -1,22 +1,5 @@
1
- import { PricingInterval } from "src/models/pricing";
2
1
  import * as featureModels from "../feature/models";
3
- export declare enum SubscriptionStatus {
4
- ACTIVE = "ACTIVE",
5
- EXPIRED = "EXPIRED",
6
- CANCELLED = "CANCELLED"
7
- }
8
- export type BillingInterval = "MONTH" | "YEAR";
9
- export interface Subscription {
10
- id: number;
11
- billingInterval: BillingInterval;
12
- billingIntervalCount: number;
13
- startDate: string;
14
- endDate: string;
15
- interval: PricingInterval;
16
- status: SubscriptionStatus;
17
- business_id?: number;
18
- planName: string;
19
- }
2
+ import * as subscriptionModels from "../subscription/models";
20
3
  export interface BusinessLanguage {
21
4
  id: number;
22
5
  code: string;
@@ -50,7 +33,7 @@ export interface Business {
50
33
  createdAt?: number;
51
34
  currency: string;
52
35
  languages: BusinessLanguage[];
53
- subscriptions?: Subscription[];
36
+ subscriptions?: subscriptionModels.Subscription[];
54
37
  segment?: featureModels.FeatureSegment;
55
38
  settings?: BusinessSettings;
56
39
  }
@@ -1,8 +1,10 @@
1
- import { PricingPlans } from "src/models/pricing";
1
+ import { PricingPlans } from "./models";
2
2
  export declare const PRICING: PricingPlans;
3
3
  export declare const PRICING_BENEFITS: {
4
4
  title: string;
5
5
  appetizer: boolean;
6
6
  mainCourse: boolean;
7
7
  chefsSpecial: boolean;
8
+ lifeTime: boolean;
8
9
  }[];
10
+ export declare const LIFETIME_PROMO_CODES: string[];
@@ -0,0 +1,3 @@
1
+ export * as models from "./models";
2
+ export * as constants from "./constants";
3
+ export * as utils from "./utils";
@@ -0,0 +1,36 @@
1
+ export declare enum PlanType {
2
+ APPETIZER = "appetizer",
3
+ MAIN_COURSE = "mainCourse",
4
+ CHEFS_SPECIAL = "chefsSpecial",
5
+ LIFETIME = "lifeTime"
6
+ }
7
+ export interface PricingPlan {
8
+ title: string;
9
+ price: {
10
+ monthly: number;
11
+ annually: number;
12
+ };
13
+ discountedPrice?: number;
14
+ ribbonText?: string;
15
+ }
16
+ export interface PricingPlans {
17
+ [key: string]: PricingPlan;
18
+ }
19
+ export type PricingInterval = "monthly" | "annually";
20
+ export declare enum SubscriptionStatus {
21
+ ACTIVE = "ACTIVE",
22
+ EXPIRED = "EXPIRED",
23
+ CANCELLED = "CANCELLED"
24
+ }
25
+ export type BillingInterval = "MONTH" | "YEAR";
26
+ export interface Subscription {
27
+ id: number;
28
+ billingInterval: BillingInterval;
29
+ billingIntervalCount: number;
30
+ startDate: string;
31
+ endDate: string;
32
+ interval: PricingInterval;
33
+ status: SubscriptionStatus;
34
+ business_id?: number;
35
+ planName: string;
36
+ }
@@ -0,0 +1 @@
1
+ export declare const isLifeTimeAvailable: (promoCode: string) => boolean;
@@ -116,6 +116,8 @@ declare const _default: {
116
116
  "Main Course": string;
117
117
  "Unlimited Languages": string;
118
118
  "30-day money-back guarantee": string;
119
+ "Limited Time Only": string;
120
+ "/ lifetime": string;
119
121
  };
120
122
  };
121
123
  export default _default;
@@ -29,5 +29,7 @@ declare const _default: {
29
29
  "Main Course": string;
30
30
  "Unlimited Languages": string;
31
31
  "30-day money-back guarantee": string;
32
+ "Limited Time Only": string;
33
+ "/ lifetime": string;
32
34
  };
33
35
  export default _default;
@@ -115,6 +115,8 @@ declare const _default: {
115
115
  "Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
116
116
  "Unlimited Languages": string;
117
117
  "30-day money-back guarantee": string;
118
+ "Limited Time Only": string;
119
+ "/ lifetime": string;
118
120
  };
119
121
  };
120
122
  export default _default;
@@ -27,5 +27,7 @@ declare const _default: {
27
27
  "Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
28
28
  "Unlimited Languages": string;
29
29
  "30-day money-back guarantee": string;
30
+ "Limited Time Only": string;
31
+ "/ lifetime": string;
30
32
  };
31
33
  export default _default;
@@ -117,6 +117,8 @@ declare const _default: {
117
117
  "Main Course": string;
118
118
  "Unlimited Languages": string;
119
119
  "30-day money-back guarantee": string;
120
+ "Limited Time Only": string;
121
+ "/ lifetime": string;
120
122
  };
121
123
  };
122
124
  en: {
@@ -258,6 +260,8 @@ declare const _default: {
258
260
  "Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
259
261
  "Unlimited Languages": string;
260
262
  "30-day money-back guarantee": string;
263
+ "Limited Time Only": string;
264
+ "/ lifetime": string;
261
265
  };
262
266
  };
263
267
  tr: {
@@ -377,6 +381,8 @@ declare const _default: {
377
381
  "Flexible Plans for Every Business - Simple Pricing, More Value!": string;
378
382
  "Unlimited Languages": string;
379
383
  "30-day money-back guarantee": string;
384
+ "Limited Time Only": string;
385
+ "/ lifetime": string;
380
386
  };
381
387
  };
382
388
  nl: {
@@ -496,6 +502,8 @@ declare const _default: {
496
502
  "Flexible Plans for Every Business - Simple Pricing, More Value!": string;
497
503
  "Unlimited Languages": string;
498
504
  "30-day money-back guarantee": string;
505
+ "Limited Time Only": string;
506
+ "/ lifetime": string;
499
507
  };
500
508
  };
501
509
  et: {
@@ -615,6 +623,8 @@ declare const _default: {
615
623
  "Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
616
624
  "Unlimited Languages": string;
617
625
  "30-day money-back guarantee": string;
626
+ "Limited Time Only": string;
627
+ "/ lifetime": string;
618
628
  };
619
629
  };
620
630
  };
@@ -115,6 +115,8 @@ declare const _default: {
115
115
  "Flexible Plans for Every Business - Simple Pricing, More Value!": string;
116
116
  "Unlimited Languages": string;
117
117
  "30-day money-back guarantee": string;
118
+ "Limited Time Only": string;
119
+ "/ lifetime": string;
118
120
  };
119
121
  };
120
122
  export default _default;
@@ -27,5 +27,7 @@ declare const _default: {
27
27
  "Flexible Plans for Every Business - Simple Pricing, More Value!": string;
28
28
  "Unlimited Languages": string;
29
29
  "30-day money-back guarantee": string;
30
+ "Limited Time Only": string;
31
+ "/ lifetime": string;
30
32
  };
31
33
  export default _default;
@@ -115,6 +115,8 @@ declare const _default: {
115
115
  "Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
116
116
  "Unlimited Languages": string;
117
117
  "30-day money-back guarantee": string;
118
+ "Limited Time Only": string;
119
+ "/ lifetime": string;
118
120
  };
119
121
  };
120
122
  export default _default;
@@ -27,5 +27,7 @@ declare const _default: {
27
27
  "Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!": string;
28
28
  "Unlimited Languages": string;
29
29
  "30-day money-back guarantee": string;
30
+ "Limited Time Only": string;
31
+ "/ lifetime": string;
30
32
  };
31
33
  export default _default;
@@ -115,6 +115,8 @@ declare const _default: {
115
115
  "Flexible Plans for Every Business - Simple Pricing, More Value!": string;
116
116
  "Unlimited Languages": string;
117
117
  "30-day money-back guarantee": string;
118
+ "Limited Time Only": string;
119
+ "/ lifetime": string;
118
120
  };
119
121
  };
120
122
  export default _default;
@@ -27,5 +27,7 @@ declare const _default: {
27
27
  "Flexible Plans for Every Business - Simple Pricing, More Value!": string;
28
28
  "Unlimited Languages": string;
29
29
  "30-day money-back guarantee": string;
30
+ "Limited Time Only": string;
31
+ "/ lifetime": string;
30
32
  };
31
33
  export default _default;