@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.
- package/dist/components/Pricing/Pricing.d.ts +4 -3
- package/dist/components/Pricing/PricingPlanAmount.d.ts +3 -3
- package/dist/constants/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/constants/index.esm.js +1 -1
- package/dist/constants/index.esm.js.map +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/index.js.map +1 -1
- package/dist/constants/{constants/pricing.d.ts → modules/subscription/constants.d.ts} +3 -1
- package/dist/constants/modules/subscription/models.d.ts +36 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.ts +1 -1
- package/dist/models/index.esm.js +1 -1
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/models/index.d.ts +1 -1
- package/dist/models/modules/business/models.d.ts +2 -19
- package/dist/models/modules/subscription/models.d.ts +36 -0
- package/dist/modules/business/models.d.ts +2 -19
- package/dist/{constants/pricing.d.ts → modules/subscription/constants.d.ts} +3 -1
- package/dist/modules/subscription/index.d.ts +3 -0
- package/dist/modules/subscription/models.d.ts +36 -0
- package/dist/modules/subscription/utils.d.ts +1 -0
- package/dist/services/translation/locales/az/index.d.ts +2 -0
- package/dist/services/translation/locales/az/pricing.d.ts +2 -0
- package/dist/services/translation/locales/et/index.d.ts +2 -0
- package/dist/services/translation/locales/et/pricing.d.ts +2 -0
- package/dist/services/translation/locales/index.d.ts +10 -0
- package/dist/services/translation/locales/nl/index.d.ts +2 -0
- package/dist/services/translation/locales/nl/pricing.d.ts +2 -0
- package/dist/services/translation/locales/ru/index.d.ts +2 -0
- package/dist/services/translation/locales/ru/pricing.d.ts +2 -0
- package/dist/services/translation/locales/tr/index.d.ts +2 -0
- package/dist/services/translation/locales/tr/pricing.d.ts +2 -0
- package/dist/styles/ui.css +1 -1
- package/dist/styles/ui.css.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.esm.js +1 -1
- package/dist/utils/index.js +1 -1
- package/dist/utils/models/index.d.ts +1 -1
- package/dist/utils/modules/business/models.d.ts +2 -19
- package/dist/utils/modules/subscription/models.d.ts +36 -0
- package/dist/utils/utils/index.d.ts +1 -0
- package/package.json +5 -5
- package/dist/constants/models/pricing.d.ts +0 -17
- package/dist/models/models/pricing.d.ts +0 -17
- package/dist/models/pricing.d.ts +0 -17
- package/dist/utils/models/pricing.d.ts +0 -17
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var t=require("@sorocraft/js-utils"),r=require("@sorocraft/ui/icons");const e=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||{}},o=(t=0,r=1,e=0)=>t*r*(1+e/100),n="https://images.restaround.co",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=(t,r,e)=>i.charAt(t>>2)+i.charAt((3&t)<<4|r>>4)+i.charAt((15&r)<<2|e>>6)+i.charAt(63&e),s=(t,r)=>{var e;return(null===(e=((null==t?void 0:t.options)||[]).find((({id:t})=>t===r)))||void 0===e?void 0:e.price)||0};var d;!function(t){t.SINGLE="SINGLE",t.MULTIPLE="MULTIPLE"}(d||(d={}));const l=(t,r=1)=>{const{price:e=0,vat:n=0}=t||{};return o(e,r,n)},u=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.id===r)))||{}},c=(t,r={},e)=>((null==t?void 0:t.addons)||[]).filter((t=>Object.prototype.hasOwnProperty.call(r,t.id))).reduce(((t,e)=>{const{id:o,selectType:n}=e;if(n===d.SINGLE){const n=r[o];return t+s(e,n)}return t+(r[o]||[]).reduce(((t,r)=>t+s(e,r)),0)}),0)*e,p=(t,r,e)=>{const n=u(r,t),{vat:i}=r||{},{price:a}=n||{};return o(a,e,i)},E=({product:r,variantId:e,quantity:o=1,selectedAddons:n,noVat:i=!1})=>{if(t.isEmpty(r))return{price:0,optionsPrice:0,total:0};const a=Object.assign(Object.assign({},r),{vat:i?0:r.vat}),s=c(a,n,o),d=e?p(e,a,o):l(a,o);return{price:d,optionsPrice:s,total:d+s}};var A,v,g,P,I;!function(t){t.DINE_IN="DINE_IN",t.PICK_UP="PICK_UP",t.DELIVERY="DELIVERY"}(A||(A={})),function(t){t.DRAFT="DRAFT",t.PENDING="PENDING",t.CONFIRMED="CONFIRMED",t.PREPARING="PREPARING",t.READY="READY",t.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",t.DELIVERED="DELIVERED",t.COMPLETED="COMPLETED",t.CANCELLED="CANCELLED",t.FAILED="FAILED"}(v||(v={})),function(t){t.PENDING="PENDING",t.PREPARING="PREPARING",t.READY="READY",t.SERVED="SERVED"}(g||(g={})),function(t){t.CASH="CASH",t.CARD="CARD",t.WALLET="WALLET",t.TERMINAL="TERMINAL"}(P||(P={})),function(t){t.CART="CART",t.DETAILS="DETAILS",t.COMPLETED="COMPLETED"}(I||(I={}));const
|
|
1
|
+
"use strict";var t=require("@sorocraft/js-utils"),r=require("@sorocraft/ui/icons");const e=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||{}},o=(t=0,r=1,e=0)=>t*r*(1+e/100),n="https://images.restaround.co",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",a=(t,r,e)=>i.charAt(t>>2)+i.charAt((3&t)<<4|r>>4)+i.charAt((15&r)<<2|e>>6)+i.charAt(63&e),s=(t,r)=>{var e;return(null===(e=((null==t?void 0:t.options)||[]).find((({id:t})=>t===r)))||void 0===e?void 0:e.price)||0};var d;!function(t){t.SINGLE="SINGLE",t.MULTIPLE="MULTIPLE"}(d||(d={}));const l=(t,r=1)=>{const{price:e=0,vat:n=0}=t||{};return o(e,r,n)},u=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.id===r)))||{}},c=(t,r={},e)=>((null==t?void 0:t.addons)||[]).filter((t=>Object.prototype.hasOwnProperty.call(r,t.id))).reduce(((t,e)=>{const{id:o,selectType:n}=e;if(n===d.SINGLE){const n=r[o];return t+s(e,n)}return t+(r[o]||[]).reduce(((t,r)=>t+s(e,r)),0)}),0)*e,p=(t,r,e)=>{const n=u(r,t),{vat:i}=r||{},{price:a}=n||{};return o(a,e,i)},E=({product:r,variantId:e,quantity:o=1,selectedAddons:n,noVat:i=!1})=>{if(t.isEmpty(r))return{price:0,optionsPrice:0,total:0};const a=Object.assign(Object.assign({},r),{vat:i?0:r.vat}),s=c(a,n,o),d=e?p(e,a,o):l(a,o);return{price:d,optionsPrice:s,total:d+s}};var A,v,g,P,I;!function(t){t.DINE_IN="DINE_IN",t.PICK_UP="PICK_UP",t.DELIVERY="DELIVERY"}(A||(A={})),function(t){t.DRAFT="DRAFT",t.PENDING="PENDING",t.CONFIRMED="CONFIRMED",t.PREPARING="PREPARING",t.READY="READY",t.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",t.DELIVERED="DELIVERED",t.COMPLETED="COMPLETED",t.CANCELLED="CANCELLED",t.FAILED="FAILED"}(v||(v={})),function(t){t.PENDING="PENDING",t.PREPARING="PREPARING",t.READY="READY",t.SERVED="SERVED"}(g||(g={})),function(t){t.CASH="CASH",t.CARD="CARD",t.WALLET="WALLET",t.TERMINAL="TERMINAL"}(P||(P={})),function(t){t.CART="CART",t.DETAILS="DETAILS",t.COMPLETED="COMPLETED"}(I||(I={}));const m=t=>t.options.reduce(((t,r)=>t+r.price),0);function R(t=[],r=1){return r*t.reduce(((t,r)=>t+m(r)),0)}const f={994:t=>{const r=["50","51","10","55","99","70","77","60"];return new RegExp(`^(${r.join("|")})\\d{7}$`).test(t)?{isValid:!0}:{isValid:!1,error:`Azerbaijani numbers must be 9 digits and start with ${r.join(", ")}`}},31:t=>/^\d{9}$/.test(t)?{isValid:!0}:{isValid:!1,error:"Dutch numbers must be exactly 9 digits"}};function L(t){if(!t)return{isValid:!1,error:"FIELD_REQUIRED"};const r=t.replace(/\D/g,""),e=r.startsWith("994")?"994":r.startsWith("31")?"31":null;if(!e)return{isValid:!1,error:"Unsupported country code"};const o=r.slice(e.length);return(0,f[e])(o)}var T,D;!function(t){t.PHONE="PHONE",t.OTP="OTP",t.EMAIL="EMAIL"}(T||(T={})),function(t){t.HOME="HOME",t.WORK="WORK",t.TRAVEL="TRAVEL"}(D||(D={}));var x,N;!function(t){t.ORDER="feature_order"}(x||(x={})),function(t){t.ALPHA="ALPHA",t.BETA="BETA",t.ALL="ALL"}(N||(N={}));const O={[N.ALPHA]:[],[N.BETA]:[],[N.ALL]:[x.ORDER]},h="restaround.co",y=[h,"restaround.az","restaround.ee","restaround.nl"],b=t=>"az"===t?"az":"co";exports.IMAGE_BASE_URL=n,exports.buildSelectedAddonsPayload=(r=[],e={})=>Object.entries(e).map((([e,o])=>{const n=Number(e),i=Array.isArray(o)?o:[o],a=r.find((t=>t.id===n));if(t.isEmpty(a))return{addonId:n,options:[]};const s=(a.options||[]).filter((t=>i.includes(t.id))).map((t=>({optionId:t.id,price:t.price})));return{addonId:n,options:s}})),exports.calculatSingleAddonTotalPrice=m,exports.calculateTotalAddonPrice=R,exports.calculateTotalPrice=o,exports.formatAddressLine=(t,r,e)=>[t,[r,e].filter(Boolean).join("/")].filter(Boolean).join(" "),exports.formatCityLine=t=>(t||[]).filter(Boolean).join(", "),exports.generateOrderItemsId=(r,e,o)=>{if(!r)throw new Error("Product ID is required");let n=`${r}`;e&&(n+=`-${e}`);const i=Object.entries(o||{}).map((([r,e])=>{if(!r||!e)return null;const o=Array.isArray(e)?t.sortNumbers(e).filter(Boolean).join("-"):`${e}`;return o?`${r}-${o}`:null})).filter(Boolean).join("-");return i&&(n+=`-${i}`),n},exports.getAddonOptionRawPrice=s,exports.getAddonOptionTranslation=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||{}},exports.getAddonTitle=(t,r)=>{var e,o,n;return(null===(n=null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||void 0===n?void 0:n.title)||""},exports.getAddonTranslation=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||{}},exports.getBaseUrl=(t,r)=>{const e=y.includes(t)?t:h;return{url:`https://${e}/${r||"en"}`,domain:e}},exports.getCategoryNameById=(r,o,n)=>{var i;const a=null===(i=null==o?void 0:o.find)||void 0===i?void 0:i.call(o,(({id:t})=>t===r));if(t.isEmpty(a))return"";const{name:s}=e(a,n);return s},exports.getCategoryTranslation=e,exports.getCoverImageSource=t=>t?t.includes("base64")||t.startsWith("https://")?t:`${n}/${t}`:"https://images.restaround.co/restaround-doodle.webp",exports.getImageSource=t=>t?t.includes("base64")||t.startsWith("https://")?t:`${n}/${t}`:"",exports.getIsFeatureActive=(r,e)=>{if("1"===t.getQueryParam(r))return!0;return(e===N.ALPHA?[N.ALPHA,N.BETA,N.ALL]:e===N.BETA?[N.BETA,N.ALL]:[N.ALL]).some((t=>{var e;return null===(e=O[t])||void 0===e?void 0:e.includes(r)}))},exports.getLogoImageSource=t=>t?t.includes("base64")||t.startsWith("https://")?t:`${n}/${t}`:"https://images.restaround.co/no-photo-128.webp",exports.getOptionPrice=({option:r,currency:e="USD",language:o="en"})=>{const{price:n}=r||{};return{totalPrice:n,formattedTotalPrice:t.priceFormatter(n,e,o)}},exports.getOptionTitles=(t,r,e)=>{var o;if(Array.isArray(r))return t.filter((({id:t})=>r.includes(t))).map((({translations:t})=>{var r;return(null===(r=t.find((t=>t.language===e)))||void 0===r?void 0:r.title)||""})).filter(Boolean).join(", ");{const n=t.find((({id:t})=>t===r));return(null===(o=null==n?void 0:n.translations.find((t=>t.language===e)))||void 0===o?void 0:o.title)||""}},exports.getOrderItemPrice=t=>{var r;const{price:e,variant:o,addons:n,quantity:i,vat:a}=t||{},s=null!==(r=null==o?void 0:o.price)&&void 0!==r?r:e,d=s+R(n,1),l=s*(a/100),u=d+l;return{totalGross:u*i,totalNet:d*i,totalTax:l*i,itemGrossPrice:u,itemNetPrice:d,itemTax:l}},exports.getOrderPrice=(r,e,o)=>{let n=0,i=0;for(const t of r.items){const e=(a=t.price,s=t.quantity,d=t.addons,s*a+R(d,s));n+=e,void 0===r.vat&&t.vat&&(i+=e*t.vat/100)}var a,s,d;void 0!==r.vat&&(i=n*r.vat/100);const l=n+i;return{totalWithoutTax:n,totalWithoutTaxFormatted:t.priceFormatter(n,e,o),totalTax:i,totalTaxFormatted:t.priceFormatter(i,e,o),totalWithTax:l,totalWithTaxFormatted:t.priceFormatter(l,e,o)}},exports.getProductAddon=(t,r)=>((null==t?void 0:t.addons)||[]).find((({id:t})=>t===r))||{},exports.getProductOrderPrice=({product:r,variantId:e,quantity:o=1,currency:n,language:i,selectedAddons:a,noVat:s=!1})=>{const{total:d}=E({product:r,variantId:e,quantity:o,selectedAddons:a,noVat:s});return{totalPrice:d,formattedTotalPrice:t.priceFormatter(d,n,i)}},exports.getProductOrderRawPrice=E,exports.getProductPrice=(r,e,o,n=1)=>{const i=l(r,n);return{totalPrice:i,formattedTotalPrice:t.priceFormatter(i,e,o)}},exports.getProductRawPrice=l,exports.getProductTranslation=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||{}},exports.getProductVariant=u,exports.getProductVariantPrice=({variantId:r,currency:e="USD",language:o="en",product:n,quantity:i=1})=>{const a=p(r,n,i);return{totalPrice:a,formattedTotalPrice:t.priceFormatter(a,e,o)}},exports.getProductVariantRawPrice=p,exports.getProductVariantTranslation=(t,r)=>{var e,o;return(null===(o=null===(e=null==t?void 0:t.translations)||void 0===e?void 0:e.find)||void 0===o?void 0:o.call(e,(t=>t.language===r)))||{}},exports.getRegisterUrl=(t,r)=>`https://app.restaround.${b(t)}/auth/register?lang=${t}&utm_source=${r}`,exports.getSelectedAddonsFromOrderItems=t=>{const r={};for(const{addonId:e,options:o=[]}of t.addons||[]){const t=o.map((({optionId:t})=>t));r[e]=1===t.length?t[0]:t}return r},exports.getSelectedOptionsTotalPrice=c,exports.getStatusIcon=t=>{switch(t){case v.COMPLETED:return r.Check;case v.DELIVERED:return r.BagCheck;case v.OUT_FOR_DELIVERY:return r.Delivery;case v.PREPARING:return r.Chef;case v.CONFIRMED:return r.FileCheck;case v.PENDING:default:return r.HourglassHalf}},exports.getTLD=b,exports.prepareCategoryAndProductMap=(t,r)=>{const e=r.reduce(((t,r)=>{if(!r.visible)return t;const e=Number(r.categoryId);return t[e]||(t[e]=[]),t[e].push(r),t}),{});return t.map((t=>Object.assign(Object.assign({},t),{products:e[Number(t.id)]||[]}))).filter((t=>{var r;return(null===(r=null==t?void 0:t.products)||void 0===r?void 0:r.length)>0}))},exports.preparePhoneNumber=t=>`${t.countryCode}${t.phoneNumber}`.replaceAll("+",""),exports.rgbDataURL=(t,r,e)=>`data:image/gif;base64,R0lGODlhAQABAPAA${a(0,t,r)+a(e,255,255)}/yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==`,exports.validateAddressForm=t=>{const r={},{countryCode:e,cityName:o,street:n,houseNumber:i}=t||{};return e||(r.countryCode="COUNTRY_REQUIRED"),o||(r.cityName="CITY_REQUIRED"),n||(r.street="STREET_REQUIRED"),i||(r.houseNumber="STREET_NUMBER_REQUIRED"),r},exports.validateForm=(r,e)=>{const o={},{phoneNumber:n,email:i,otp:a}=r||{};switch(e){case T.PHONE:{const{isValid:t,error:r}=L(n);t||(o.phoneNumber=r);break}case T.OTP:{const{isValid:t,error:r}=L(n);t||(o.phoneNumber=r),a&&6===a.length||(o.otp="Invalid OTP");break}case T.EMAIL:i&&t.checkIsValidEmail(i)||(o.email="Invalid Email Address")}return o},exports.validatePhoneNumber=L;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -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
|
-
|
|
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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@restaround/react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.32",
|
|
4
4
|
"description": "React Library by restaround.co",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -78,17 +78,17 @@
|
|
|
78
78
|
"eslint-plugin-react": "^7.37.5",
|
|
79
79
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
80
80
|
"eslint-plugin-unicorn": "^60.0.0",
|
|
81
|
-
"jest": "^30.1.
|
|
82
|
-
"jest-environment-jsdom": "^30.1.
|
|
81
|
+
"jest": "^30.1.3",
|
|
82
|
+
"jest-environment-jsdom": "^30.1.2",
|
|
83
83
|
"rimraf": "^6.0.1",
|
|
84
84
|
"rollup-plugin-copy": "^3.5.0",
|
|
85
85
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
86
86
|
"rollup-plugin-postcss": "^4.0.2",
|
|
87
|
-
"sass": "^1.
|
|
87
|
+
"sass": "^1.92.0",
|
|
88
88
|
"ts-jest": "^29.4.1",
|
|
89
89
|
"ts-node": "^10.9.2",
|
|
90
90
|
"tslib": "^2.8.1",
|
|
91
91
|
"typescript": "^5.9.2",
|
|
92
|
-
"typescript-eslint": "^8.
|
|
92
|
+
"typescript-eslint": "^8.42.0"
|
|
93
93
|
}
|
|
94
94
|
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum PlanType {
|
|
2
|
-
APPETIZER = "appetizer",
|
|
3
|
-
MAIN_COURSE = "mainCourse",
|
|
4
|
-
CHEFS_SPECIAL = "chefsSpecial"
|
|
5
|
-
}
|
|
6
|
-
export interface PricingPlan {
|
|
7
|
-
title: string;
|
|
8
|
-
price: {
|
|
9
|
-
monthly: number;
|
|
10
|
-
annually: number;
|
|
11
|
-
};
|
|
12
|
-
discountedPrice?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PricingPlans {
|
|
15
|
-
[key: string]: PricingPlan;
|
|
16
|
-
}
|
|
17
|
-
export type PricingInterval = "monthly" | "annually";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum PlanType {
|
|
2
|
-
APPETIZER = "appetizer",
|
|
3
|
-
MAIN_COURSE = "mainCourse",
|
|
4
|
-
CHEFS_SPECIAL = "chefsSpecial"
|
|
5
|
-
}
|
|
6
|
-
export interface PricingPlan {
|
|
7
|
-
title: string;
|
|
8
|
-
price: {
|
|
9
|
-
monthly: number;
|
|
10
|
-
annually: number;
|
|
11
|
-
};
|
|
12
|
-
discountedPrice?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PricingPlans {
|
|
15
|
-
[key: string]: PricingPlan;
|
|
16
|
-
}
|
|
17
|
-
export type PricingInterval = "monthly" | "annually";
|
package/dist/models/pricing.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum PlanType {
|
|
2
|
-
APPETIZER = "appetizer",
|
|
3
|
-
MAIN_COURSE = "mainCourse",
|
|
4
|
-
CHEFS_SPECIAL = "chefsSpecial"
|
|
5
|
-
}
|
|
6
|
-
export interface PricingPlan {
|
|
7
|
-
title: string;
|
|
8
|
-
price: {
|
|
9
|
-
monthly: number;
|
|
10
|
-
annually: number;
|
|
11
|
-
};
|
|
12
|
-
discountedPrice?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PricingPlans {
|
|
15
|
-
[key: string]: PricingPlan;
|
|
16
|
-
}
|
|
17
|
-
export type PricingInterval = "monthly" | "annually";
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare enum PlanType {
|
|
2
|
-
APPETIZER = "appetizer",
|
|
3
|
-
MAIN_COURSE = "mainCourse",
|
|
4
|
-
CHEFS_SPECIAL = "chefsSpecial"
|
|
5
|
-
}
|
|
6
|
-
export interface PricingPlan {
|
|
7
|
-
title: string;
|
|
8
|
-
price: {
|
|
9
|
-
monthly: number;
|
|
10
|
-
annually: number;
|
|
11
|
-
};
|
|
12
|
-
discountedPrice?: number;
|
|
13
|
-
}
|
|
14
|
-
export interface PricingPlans {
|
|
15
|
-
[key: string]: PricingPlan;
|
|
16
|
-
}
|
|
17
|
-
export type PricingInterval = "monthly" | "annually";
|