@bunnyapp/components 1.0.60 → 1.0.62

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 (78) hide show
  1. package/dist/cjs/index.js +458 -345
  2. package/dist/cjs/src/components/Checkout/Checkout.d.ts +2 -2
  3. package/dist/cjs/src/components/Checkout/QuoteCheckout.d.ts +2 -2
  4. package/dist/cjs/src/components/Invoice/Invoice.d.ts +2 -2
  5. package/dist/cjs/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  6. package/dist/cjs/src/components/LegacyInvoicePDF.d.ts +3 -4
  7. package/dist/cjs/src/components/PaymentForm/CouponEditor.d.ts +8 -0
  8. package/dist/cjs/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +1 -1
  9. package/dist/cjs/src/components/PaymentForm/PaymentMethodSelector.d.ts +1 -1
  10. package/dist/cjs/src/components/Quote/Quote.stories.d.ts +5 -5
  11. package/dist/cjs/src/components/Signup/PriceListDisplay.d.ts +3 -4
  12. package/dist/cjs/src/components/Signup/Signup.d.ts +5 -5
  13. package/dist/cjs/src/components/Signup/Signup.stories.d.ts +2 -3
  14. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanManager.d.ts +4 -0
  15. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +1 -1
  16. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +4 -1
  17. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +1 -1
  18. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
  19. package/dist/cjs/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -1
  20. package/dist/cjs/src/components/Subscriptions/Subscriptions.d.ts +2 -1
  21. package/dist/cjs/src/components/Subscriptions/SubscriptionsContext.d.ts +3 -2
  22. package/dist/cjs/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +2 -2
  23. package/dist/cjs/src/components/icons/CardIcon.d.ts +3 -1
  24. package/dist/cjs/src/graphql/mutations/checkout.d.ts +1 -1
  25. package/dist/cjs/src/graphql/mutations/quoteAddCoupon.d.ts +1 -1
  26. package/dist/cjs/src/graphql/mutations/quoteCompose.d.ts +2 -2
  27. package/dist/cjs/src/graphql/queries/getBillingDetails.d.ts +2 -2
  28. package/dist/cjs/src/graphql/queries/getBranding.d.ts +2 -2
  29. package/dist/cjs/src/graphql/queries/getFeatureUsage.d.ts +1 -1
  30. package/dist/cjs/src/graphql/queries/getFormattedQuote.d.ts +1 -1
  31. package/dist/cjs/src/graphql/queries/getPlanChangeOptions.d.ts +1 -1
  32. package/dist/cjs/src/graphql/queries/getPriceList.d.ts +1 -1
  33. package/dist/cjs/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  34. package/dist/cjs/src/graphql/queries/getQuote.d.ts +1 -1
  35. package/dist/cjs/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  36. package/dist/cjs/src/mocks/handlers.d.ts +1 -1
  37. package/dist/cjs/src/utils/apiUtils.d.ts +8 -0
  38. package/dist/esm/index.js +440 -327
  39. package/dist/esm/src/components/Checkout/Checkout.d.ts +2 -2
  40. package/dist/esm/src/components/Checkout/QuoteCheckout.d.ts +2 -2
  41. package/dist/esm/src/components/Invoice/Invoice.d.ts +2 -2
  42. package/dist/esm/src/components/Invoice/InvoiceQuoteView.d.ts +2 -2
  43. package/dist/esm/src/components/LegacyInvoicePDF.d.ts +3 -4
  44. package/dist/esm/src/components/PaymentForm/CouponEditor.d.ts +8 -0
  45. package/dist/esm/src/components/PaymentForm/DemoPay/hooks/usePay.d.ts +1 -1
  46. package/dist/esm/src/components/PaymentForm/PaymentMethodSelector.d.ts +1 -1
  47. package/dist/esm/src/components/Quote/Quote.stories.d.ts +5 -5
  48. package/dist/esm/src/components/Signup/PriceListDisplay.d.ts +3 -4
  49. package/dist/esm/src/components/Signup/Signup.d.ts +5 -5
  50. package/dist/esm/src/components/Signup/Signup.stories.d.ts +2 -3
  51. package/dist/esm/src/components/Subscriptions/PlanManager/PlanManager.d.ts +4 -0
  52. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/PlanPicker.d.ts +1 -1
  53. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +4 -1
  54. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/planPickerDesktop/PriceListCardDesktop.d.ts +1 -1
  55. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCard.d.ts +1 -1
  56. package/dist/esm/src/components/Subscriptions/PlanManager/PlanPicker/priceListCard/PriceListCardButton.d.ts +1 -1
  57. package/dist/esm/src/components/Subscriptions/Subscriptions.d.ts +2 -1
  58. package/dist/esm/src/components/Subscriptions/SubscriptionsContext.d.ts +3 -2
  59. package/dist/esm/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +2 -2
  60. package/dist/esm/src/components/icons/CardIcon.d.ts +3 -1
  61. package/dist/esm/src/graphql/mutations/checkout.d.ts +1 -1
  62. package/dist/esm/src/graphql/mutations/quoteAddCoupon.d.ts +1 -1
  63. package/dist/esm/src/graphql/mutations/quoteCompose.d.ts +2 -2
  64. package/dist/esm/src/graphql/queries/getBillingDetails.d.ts +2 -2
  65. package/dist/esm/src/graphql/queries/getBranding.d.ts +2 -2
  66. package/dist/esm/src/graphql/queries/getFeatureUsage.d.ts +1 -1
  67. package/dist/esm/src/graphql/queries/getFormattedQuote.d.ts +1 -1
  68. package/dist/esm/src/graphql/queries/getPlanChangeOptions.d.ts +1 -1
  69. package/dist/esm/src/graphql/queries/getPriceList.d.ts +1 -1
  70. package/dist/esm/src/graphql/queries/getPriceListChangeOptions.d.ts +1 -1
  71. package/dist/esm/src/graphql/queries/getQuote.d.ts +1 -1
  72. package/dist/esm/src/graphql/queries/getTaxationRequiredAccountFields.d.ts +1 -1
  73. package/dist/esm/src/mocks/handlers.d.ts +1 -1
  74. package/dist/esm/src/utils/apiUtils.d.ts +8 -0
  75. package/dist/index.d.ts +5 -4
  76. package/package.json +3 -3
  77. package/dist/cjs/src/components/Checkout/CouponComponent.d.ts +0 -7
  78. package/dist/esm/src/components/Checkout/CouponComponent.d.ts +0 -7
@@ -1,5 +1,5 @@
1
- import { PaymentMethod } from "@bunnyapp/common";
2
- import { CheckoutProps } from "../PaymentForm/PaymentFormTypes";
1
+ import { PaymentMethod } from '@bunnyapp/common';
2
+ import { CheckoutProps } from '../PaymentForm/PaymentFormTypes';
3
3
  interface CheckoutComponentProps extends CheckoutProps {
4
4
  isMobile: boolean;
5
5
  token?: string;
@@ -1,5 +1,5 @@
1
- import { Account, PaymentMethod, Quote, TaxationRequiredAccountFields } from "@bunnyapp/common";
2
- import { InvoiceQuoteParentProps } from "../PaymentForm/PaymentFormTypes";
1
+ import { Account, PaymentMethod, Quote, TaxationRequiredAccountFields } from '@bunnyapp/common';
2
+ import { InvoiceQuoteParentProps } from '../PaymentForm/PaymentFormTypes';
3
3
  interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
4
4
  account: Account;
5
5
  quote: Quote;
@@ -1,3 +1,3 @@
1
- import "../../styles/index.less";
2
- import { InvoiceQuoteContextProps } from "./InvoiceQuoteContext";
1
+ import '../../styles/index.less';
2
+ import { InvoiceQuoteContextProps } from './InvoiceQuoteContext';
3
3
  export default function Invoice({ id, invoiceQuoteViewComponent, backButtonName, onBackButtonClick, onInvoiceDownloadError, onPaymentSuccess, shadow, className, hideDownloadButton, onInvoiceLoaded, }: InvoiceQuoteContextProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { FormattedInvoice } from "@bunnyapp/common";
1
+ import { ReactNode } from 'react';
2
+ import { FormattedInvoice } from '@bunnyapp/common';
3
3
  declare const InvoiceQuoteView: ({ children, formattedInvoice, html, backButtonName, onBackButtonClick, onDownloadError, }: {
4
4
  html: string;
5
5
  children?: ReactNode;
@@ -1,5 +1,4 @@
1
- export default function InvoicePDF({ invoiceUuid, apiHost, token, }: {
2
- invoiceUuid?: string;
3
- apiHost: string;
4
- token?: string;
1
+ export default function LegacyDocument({ documentUuid, documentType, }: {
2
+ documentUuid: string;
3
+ documentType: string;
5
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { Quote } from '@bunnyapp/common';
2
+ declare function CouponEditor({ className, onAddCoupon, isAddingCoupon, }: {
3
+ className?: string;
4
+ quote: Quote;
5
+ onAddCoupon: (couponCode: string) => void;
6
+ isAddingCoupon: boolean;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export default CouponEditor;
@@ -1,4 +1,4 @@
1
- import { FormattedInvoice, PaymentMethod, PluginData, Quote } from "@bunnyapp/common";
1
+ import { FormattedInvoice, PaymentMethod, PluginData, Quote } from '@bunnyapp/common';
2
2
  export declare function usePay({ onPaymentSuccess, onPaymentError, quote, invoice, storedPaymentMethod, plugin, }: {
3
3
  onPaymentSuccess: (response: any) => void;
4
4
  onPaymentError?: (error: any) => void;
@@ -1,4 +1,4 @@
1
- import { PluginData } from "@bunnyapp/common";
1
+ import { PluginData } from '@bunnyapp/common';
2
2
  declare const PaymentMethodSelector: ({ paymentMethodAllowedPlugins, onSelect, value, }: {
3
3
  onSelect: (paymentPlugin?: PluginData) => void;
4
4
  paymentMethodAllowedPlugins?: PluginData[] | undefined;
@@ -18,11 +18,11 @@ export declare const Default: import("@storybook/core/csf").StoryAnnotations<imp
18
18
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
19
19
  }, {
20
20
  className?: string | undefined;
21
- id?: string | undefined;
22
21
  backButtonName?: string | undefined;
23
22
  onBackButtonClick?: (() => void) | undefined;
24
23
  shadow?: import("../../types/shadowType").ShadowType | undefined;
25
24
  hideDownloadButton?: boolean | undefined;
25
+ id?: string | undefined;
26
26
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
27
27
  invoiceQuoteViewComponent?: import("react").ReactNode;
28
28
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -43,11 +43,11 @@ export declare const NoShadow: import("@storybook/core/csf").StoryAnnotations<im
43
43
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
44
44
  }, {
45
45
  className?: string | undefined;
46
- id?: string | undefined;
47
46
  backButtonName?: string | undefined;
48
47
  onBackButtonClick?: (() => void) | undefined;
49
48
  shadow?: import("../../types/shadowType").ShadowType | undefined;
50
49
  hideDownloadButton?: boolean | undefined;
50
+ id?: string | undefined;
51
51
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
52
52
  invoiceQuoteViewComponent?: import("react").ReactNode;
53
53
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -68,11 +68,11 @@ export declare const Mobile: import("@storybook/core/csf").StoryAnnotations<impo
68
68
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
69
69
  }, {
70
70
  className?: string | undefined;
71
- id?: string | undefined;
72
71
  backButtonName?: string | undefined;
73
72
  onBackButtonClick?: (() => void) | undefined;
74
73
  shadow?: import("../../types/shadowType").ShadowType | undefined;
75
74
  hideDownloadButton?: boolean | undefined;
75
+ id?: string | undefined;
76
76
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
77
77
  invoiceQuoteViewComponent?: import("react").ReactNode;
78
78
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -93,11 +93,11 @@ export declare const CustomClassName: import("@storybook/core/csf").StoryAnnotat
93
93
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
94
94
  }, {
95
95
  className?: string | undefined;
96
- id?: string | undefined;
97
96
  backButtonName?: string | undefined;
98
97
  onBackButtonClick?: (() => void) | undefined;
99
98
  shadow?: import("../../types/shadowType").ShadowType | undefined;
100
99
  hideDownloadButton?: boolean | undefined;
100
+ id?: string | undefined;
101
101
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
102
102
  invoiceQuoteViewComponent?: import("react").ReactNode;
103
103
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -121,11 +121,11 @@ export declare const DarkMode: import("@storybook/core/csf").StoryAnnotations<im
121
121
  onQuoteLoaded?: ((formattedQuote: import("@bunnyapp/common").FormattedQuote) => void) | undefined;
122
122
  }, {
123
123
  className?: string | undefined;
124
- id?: string | undefined;
125
124
  backButtonName?: string | undefined;
126
125
  onBackButtonClick?: (() => void) | undefined;
127
126
  shadow?: import("../../types/shadowType").ShadowType | undefined;
128
127
  hideDownloadButton?: boolean | undefined;
128
+ id?: string | undefined;
129
129
  onPaymentSuccess?: ((savePaymentMethod?: boolean | undefined) => void) | undefined;
130
130
  invoiceQuoteViewComponent?: import("react").ReactNode;
131
131
  onInvoiceDownloadError?: (() => void) | undefined;
@@ -1,6 +1,5 @@
1
- import "../../styles/index.less";
2
- import { PriceList } from "@bunnyapp/common";
3
- export default function PriceListDisplay({ priceListData, topNavImageUrl, }: {
1
+ import '../../styles/index.less';
2
+ import { PriceList } from '@bunnyapp/common';
3
+ export default function PriceListDisplay({ priceListData }: {
4
4
  priceListData?: PriceList;
5
- topNavImageUrl: string;
6
5
  }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,15 +1,15 @@
1
1
  /// <reference types="react" />
2
- import "../../styles/index.less";
3
- import { ShadowType } from "../../types/shadowType";
4
- export default function Signup({ companyName, priceListCode, returnUrl, isCardEnabled, className, shadow, style, entityId, }: {
2
+ import '../../styles/index.less';
3
+ import { ShadowType } from '../../types/shadowType';
4
+ export default function Signup({ companyName, priceListCode, returnUrl, couponCode, className, shadow, style, entityId, }: {
5
5
  /** The company name to display on the signup page */
6
6
  companyName: string;
7
7
  /** The price list code to use for the signup */
8
8
  priceListCode: string;
9
9
  /** The return URL to that customers can be redirected to after signup */
10
10
  returnUrl?: string;
11
- /** Whether or not to display signup within a card */
12
- isCardEnabled?: boolean;
11
+ /** An optional coupon code that gets applied automatically */
12
+ couponCode?: string;
13
13
  /** A custom class name to apply to the component */
14
14
  className?: string;
15
15
  /** The shadow level to apply to the component */
@@ -1,10 +1,9 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import Signup from "./Signup";
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import Signup from './Signup';
3
3
  declare const meta: Meta<typeof Signup>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof meta>;
6
6
  export declare const Default: Story;
7
- export declare const NoCard: Story;
8
7
  export declare const Mobile: Story;
9
8
  export declare const CustomClassName: Story;
10
9
  export declare const DarkMode: Story;
@@ -1,3 +1,7 @@
1
+ export type EditingQuoteDataType = {
2
+ id?: string;
3
+ isTrial?: boolean;
4
+ };
1
5
  declare const PlanManager: ({ onChangePlanCancel, handlePortalErrors, }: {
2
6
  onChangePlanCancel: () => void;
3
7
  handlePortalErrors?: ((error: any) => void) | undefined;
@@ -1,4 +1,4 @@
1
- import { PriceList } from "@bunnyapp/common";
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  export type QuotePreviewData = {
3
3
  priceList?: PriceList;
4
4
  quantity?: number;
@@ -1,4 +1,7 @@
1
- declare const PlanPickerCheckoutBarWrapper: ({ handlePortalErrors, onCheckoutSuccess, }: {
1
+ import { EditingQuoteDataType } from '../../PlanManager';
2
+ declare const PlanPickerCheckoutBarWrapper: ({ editingQuote, setEditingQuoteData, handlePortalErrors, onCheckoutSuccess, }: {
3
+ editingQuote?: EditingQuoteDataType | undefined;
4
+ setEditingQuoteData?: ((quoteId?: string, isTrial?: boolean) => void) | undefined;
2
5
  handlePortalErrors?: ((errors: any) => void) | undefined;
3
6
  onCheckoutSuccess: () => void;
4
7
  }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +1,4 @@
1
- import { Feature, PriceList, Subscription } from "@bunnyapp/common";
1
+ import { Feature, PriceList, Subscription } from '@bunnyapp/common';
2
2
  declare const PriceListCardDesktop: ({ description, disableOnClick, feature, isPriceListCurrentSubscription, isSelected, onClick, priceList, subscriptionPlan, trialRemainingDays, }: {
3
3
  description: string;
4
4
  disableOnClick: boolean;
@@ -1,4 +1,4 @@
1
- import { PriceList, Subscription } from "@bunnyapp/common";
1
+ import { PriceList, Subscription } from '@bunnyapp/common';
2
2
  declare const PriceListCard: ({ isSelected, onClick, priceList, subscriptions, trialRemainingDays, }: {
3
3
  isSelected: boolean;
4
4
  onClick: (priceList: PriceList) => void;
@@ -1,4 +1,4 @@
1
- import { PriceList, Subscription } from "@bunnyapp/common";
1
+ import { PriceList, Subscription } from '@bunnyapp/common';
2
2
  declare const PriceListCardButton: ({ disableOnClick, isPriceListCurrentSubscription, isSelected, priceList, subscriptionPlan, }: {
3
3
  disableOnClick: boolean;
4
4
  isPriceListCurrentSubscription: boolean;
@@ -3,7 +3,7 @@ export type EditingQuoteDataType = {
3
3
  id: string;
4
4
  isTrial: boolean;
5
5
  };
6
- declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle, hideExpiredToggle, }: {
6
+ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPreviewMode, productId, className, styles: userStyles, noSubscriptionsComponent, hideTitle, hideExpired, hideExpiredToggle, }: {
7
7
  handlePortalErrors?: ((errors: any) => void) | undefined;
8
8
  companyName: string;
9
9
  isInPreviewMode?: boolean | undefined;
@@ -16,6 +16,7 @@ declare const SubscriptionsWrapper: ({ handlePortalErrors, companyName, isInPrev
16
16
  } | undefined;
17
17
  noSubscriptionsComponent?: React.ReactNode;
18
18
  hideTitle?: boolean | undefined;
19
+ hideExpired?: boolean | undefined;
19
20
  hideExpiredToggle?: boolean | undefined;
20
21
  }) => import("react/jsx-runtime").JSX.Element;
21
22
  export default SubscriptionsWrapper;
@@ -1,13 +1,14 @@
1
1
  /// <reference types="react" />
2
- import { QuotePreviewData, Subscription } from "@bunnyapp/common";
2
+ import { QuotePreviewData, Subscription } from '@bunnyapp/common';
3
3
  export type SubscriptionsContextValues = {
4
4
  gap?: number;
5
- shadow?: "none" | "sm" | "md" | "lg";
5
+ shadow?: 'none' | 'sm' | 'md' | 'lg';
6
6
  showTitle?: boolean;
7
7
  className?: string;
8
8
  subscriptionProductNameStyle?: React.CSSProperties;
9
9
  productId?: string;
10
10
  isInPreviewMode: boolean;
11
+ hideExpired?: boolean;
11
12
  upgradingSubscription?: Subscription;
12
13
  setUpgradingSubscription: React.Dispatch<React.SetStateAction<Subscription | undefined>>;
13
14
  updatingChargeQuantityId?: string;
@@ -1,5 +1,5 @@
1
- import { Quote, Subscription } from "@bunnyapp/common";
2
- import { EditingQuoteDataType } from "../../SubscriptionsListContainer";
1
+ import { Quote, Subscription } from '@bunnyapp/common';
2
+ import { EditingQuoteDataType } from '../../SubscriptionsListContainer';
3
3
  export declare const QUANTITY_CHANGE_HEADER_TITLE = "Update unit quantity";
4
4
  export declare const QUANTITY_CHANGE_HEADER_DESCRIPTION = "Adjust quantities below. The change will take effect immediately after checkout has been completed.";
5
5
  declare const QuantityChangeDrawerDesktop: ({ editingQuote, editingQuoteData, onClose, open, openCheckout, setEditingQuoteData, subscriptions, }: {
@@ -1,2 +1,4 @@
1
- declare const CardIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const CardIcon: ({ className }: {
2
+ className?: string | undefined;
3
+ }) => import("react/jsx-runtime").JSX.Element;
2
4
  export default CardIcon;
@@ -1,4 +1,4 @@
1
- import { Payment, Invoice, Transaction, PaymentApplication } from "@bunnyapp/common";
1
+ import { Payment, Invoice, Transaction, PaymentApplication } from '@bunnyapp/common';
2
2
  export type CheckoutResponse = {
3
3
  invoice: Invoice;
4
4
  payment: Payment;
@@ -1,4 +1,4 @@
1
- import { Quote } from "@bunnyapp/common";
1
+ import { Quote } from '@bunnyapp/common';
2
2
  declare const quoteAddCoupon: ({ quoteId, couponCode, token, apiHost, }: {
3
3
  quoteId?: string | undefined;
4
4
  couponCode?: string | undefined;
@@ -1,5 +1,5 @@
1
- import { Quote } from "@bunnyapp/common";
2
- export declare const QUOTE_FIELDS = "quote {\n formattedQuote {\n html\n }\n acceptedByName\n acceptedByTitle\n accountId\n amount\n amountDue\n applicationDate\n applied\n billingDay\n contactId\n createdAt\n credits\n currencyId\n dealId\n discount\n discountValue\n endDate\n evergreen\n expiresAt\n id\n invoiceUntil\n isPendingApprovalRequest\n kind\n message\n name\n netPaymentDays\n notes\n ownerId\n periodAmount\n poNumber\n requiresApproval\n startDate\n state\n subtotal\n taxAmount\n updatedAt\n uuid\n amountsByPeriod {\n amount\n id\n name\n }\n endDateOptions {\n endDate\n label\n }\n invoiceUntilOptions {\n endDate\n label\n }\n quoteChanges {\n id\n priceListId\n charges {\n amount\n amountsByPeriod { amount startDate }\n billingPeriod\n billingPeriodAmounts { id amount prorationRate }\n chargeType\n couponId\n createdAt\n currencyId\n discount\n endDate\n feature { id name code isUnit unitName }\n id\n invoiceLineText\n name\n price\n priceDecimals\n priceTiers { starts price }\n pricingModel\n prorationRate\n quantity\n quantityMax\n quantityMin\n startDate\n tieredAveragePrice\n updatedAt\n }\n }\n}";
1
+ import { Quote } from '@bunnyapp/common';
2
+ export declare const QUOTE_FIELDS = "quote {\n formattedQuote {\n html\n }\n acceptedByName\n acceptedByTitle\n accountId\n amount\n amountDue\n applicationDate\n applied\n billingDay\n contactId\n createdAt\n credits\n currencyId\n dealId\n discount\n discountValue\n endDate\n evergreen\n expiresAt\n id\n invoiceUntil\n isPendingApprovalRequest\n kind\n message\n name\n netPaymentDays\n notes\n ownerId\n periodAmount\n poNumber\n requiresApproval\n startDate\n state\n subtotal\n taxAmount\n updatedAt\n uuid\n amountsByPeriod {\n amount\n id\n name\n }\n endDateOptions {\n endDate\n label\n }\n invoiceUntilOptions {\n endDate\n label\n }\n quoteChanges {\n currencyId\n id\n kind\n charges {\n amountsByPeriod {\n amount\n startDate\n }\n amount\n billingPeriod\n billingPeriodAmounts { id amount prorationRate }\n chargeType\n couponId\n createdAt\n currencyId\n discount\n endDate\n feature { id name code isUnit unitName }\n id\n name\n priceListCharge {\n id\n }\n priceList {\n id\n }\n couponId\n price\n priceDecimals\n priceTiers { starts price }\n pricingModel\n prorationRate\n quantity\n quantityMax\n quantityMin\n startDate\n tieredAveragePrice\n updatedAt\n kind\n }\n priceList {\n id\n plan {\n name\n }\n product {\n name\n }\n }\n }\n}";
3
3
  type Options = {
4
4
  quoteId?: string;
5
5
  priceListId?: string;
@@ -1,5 +1,5 @@
1
- import BillingDetails from "../../types/billingDetails";
2
- declare const getBillingDetails: ({ token, apiHost, }: {
1
+ import BillingDetails from '../../types/billingDetails';
2
+ declare const getBillingDetails: ({ token, apiHost }: {
3
3
  token?: string | undefined;
4
4
  apiHost: string;
5
5
  }) => Promise<BillingDetails>;
@@ -1,5 +1,5 @@
1
- import { EntityBranding } from "@bunnyapp/common";
2
- declare const getBranding: ({ token, apiHost, }: {
1
+ import { EntityBranding } from '@bunnyapp/common';
2
+ declare const getBranding: ({ token, apiHost }: {
3
3
  token?: string | undefined;
4
4
  apiHost: string;
5
5
  }) => Promise<EntityBranding>;
@@ -1,4 +1,4 @@
1
- import { FeatureUsage } from "@bunnyapp/common";
1
+ import { FeatureUsage } from '@bunnyapp/common';
2
2
  declare const getFeatureUsage: ({ subscriptionChargeId, startDate, endDate, dataInterval, token, apiHost, }: {
3
3
  subscriptionChargeId: string;
4
4
  startDate?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { FormattedQuote } from "@bunnyapp/common";
1
+ import { FormattedQuote } from '@bunnyapp/common';
2
2
  declare const getFormattedQuote: ({ id, token, apiHost, }: {
3
3
  id?: string | undefined;
4
4
  apiHost: string;
@@ -1,4 +1,4 @@
1
- import { Subscription } from "@bunnyapp/common";
1
+ import { Subscription } from '@bunnyapp/common';
2
2
  declare const getPlanChangeOptions: ({ isInPreviewMode, token, upgradingSubscription, apiHost, }: {
3
3
  isInPreviewMode?: boolean | undefined;
4
4
  token?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { PriceList } from "@bunnyapp/common";
1
+ import { PriceList } from '@bunnyapp/common';
2
2
  declare const getPriceList: ({ token, code, apiHost, }: {
3
3
  token?: string | undefined;
4
4
  code: string;
@@ -1,4 +1,4 @@
1
- import { Subscription } from "@bunnyapp/common";
1
+ import { Subscription } from '@bunnyapp/common';
2
2
  declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
3
3
  apiHost: string;
4
4
  isInPreviewMode?: boolean | undefined;
@@ -1,4 +1,4 @@
1
- import { Quote } from "@bunnyapp/common";
1
+ import { Quote } from '@bunnyapp/common';
2
2
  declare const getQuote: ({ id, token, apiHost, }: {
3
3
  id: string;
4
4
  token?: string | undefined;
@@ -1,4 +1,4 @@
1
- import { TaxationRequiredAccountFields } from "@bunnyapp/common";
1
+ import { TaxationRequiredAccountFields } from '@bunnyapp/common';
2
2
  declare const getTaxationRequiredAccountFields: ({ apiHost, token, }: {
3
3
  apiHost: string;
4
4
  token?: string | undefined;
@@ -1 +1 @@
1
- export declare const handlers: (import("msw/lib/core/handlers/HttpHandler").HttpHandler | import("msw/lib/core/GraphQLHandler-C5CUIS_N").G)[];
1
+ export declare const handlers: import("msw/lib/core/GraphQLHandler-C5CUIS_N").G[];
@@ -1,2 +1,10 @@
1
+ export declare const PACKAGE_VERSION = "__PACKAGE_VERSION__";
1
2
  export declare const getGraphQLBaseURL: (apiHost: string) => string;
2
3
  export declare const useGraphQLRequest: () => (query: string, apiHost: string, token?: string, variables?: any) => Promise<unknown>;
4
+ export declare const gqlRequest: ({ query, apiHost, token, vars, isInPreviewMode, }: {
5
+ query: string;
6
+ apiHost: string;
7
+ token?: string | undefined;
8
+ vars?: any;
9
+ isInPreviewMode?: boolean | undefined;
10
+ }) => Promise<unknown>;