@bunnyapp/components 1.6.0-beta.14 → 1.6.0-beta.16

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 (100) hide show
  1. package/README.md +42 -0
  2. package/dist/cjs/index.js +2521 -2191
  3. package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
  4. package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +1 -1
  5. package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
  6. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  7. package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
  8. package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  9. package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
  10. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  11. package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  12. package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  13. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  14. package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
  15. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  16. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  17. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  18. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -5
  19. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -4
  20. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  21. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  22. package/dist/{esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawerQuoteFragment.d.ts → cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts} +4 -0
  23. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -3
  24. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +2 -2
  25. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
  26. package/dist/{esm/types/src/components/Subscriptions/quantityChangeDrawer → cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput}/QuantityInput.d.ts +2 -9
  27. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  28. package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +3 -2
  29. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
  30. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  31. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  32. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
  33. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
  34. package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
  35. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  36. package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  37. package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
  38. package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +91 -0
  39. package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
  40. package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
  41. package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +1 -1
  42. package/dist/esm/index.js +2564 -2234
  43. package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
  44. package/dist/esm/types/src/components/Checkout/Checkout.d.ts +1 -1
  45. package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
  46. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
  47. package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
  48. package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
  49. package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
  50. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
  51. package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
  52. package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
  53. package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
  54. package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
  55. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
  56. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
  57. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
  58. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -5
  59. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -4
  60. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
  61. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
  62. package/dist/{cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawerQuoteFragment.d.ts → esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawer_QuoteFragment.d.ts} +4 -0
  63. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -3
  64. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +2 -2
  65. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
  66. package/dist/{cjs/types/src/components/Subscriptions/quantityChangeDrawer → esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput}/QuantityInput.d.ts +2 -9
  67. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
  68. package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +3 -2
  69. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
  70. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
  71. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
  72. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
  73. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
  74. package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
  75. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
  76. package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
  77. package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
  78. package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +91 -0
  79. package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
  80. package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
  81. package/dist/esm/types/src/utils/pricePickerUtils.d.ts +1 -1
  82. package/package.json +1 -1
  83. package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
  84. package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  85. package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
  86. package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  87. package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
  88. package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
  89. package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
  90. package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
  91. package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
  92. package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
  93. /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeCreate.d.ts +0 -0
  94. /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeUpdate.d.ts +0 -0
  95. /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteSubscriptionUpdate.d.ts +0 -0
  96. /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
  97. /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeCreate.d.ts +0 -0
  98. /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeUpdate.d.ts +0 -0
  99. /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteSubscriptionUpdate.d.ts +0 -0
  100. /package/dist/esm/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
@@ -0,0 +1,9 @@
1
+ export declare const getPriceListChangeOptions: ({ apiHost, productId, token, }: {
2
+ apiHost: string;
3
+ productId: string;
4
+ token?: string;
5
+ }) => Promise<{
6
+ [$tada.fragmentRefs]: {
7
+ SubscriptionCardActions_PriceListChangeOptionsFragment: "PriceListChangeOptions";
8
+ };
9
+ }>;
@@ -0,0 +1,2 @@
1
+ import { SubscriptionCharge } from '../../../../types/SubscriptionCharge';
2
+ export declare const filterSubscriptionCharges: (charges: SubscriptionCharge[]) => SubscriptionCharge[];
@@ -0,0 +1,2 @@
1
+ import { SubscriptionCharge } from '../../../../types/SubscriptionCharge';
2
+ export declare const sortSubscriptionCharges: (charges: SubscriptionCharge[]) => SubscriptionCharge[];
@@ -1,9 +1,8 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, productId, token, upgradingSubscription, }: {
1
+ import { PriceListChangeOptions } from '@bunnyapp/common';
2
+ declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode, token, subscriptionId, }: {
3
3
  apiHost: string;
4
4
  isInPreviewMode?: boolean;
5
- productId?: string;
6
5
  token?: string;
7
- upgradingSubscription?: Subscription;
6
+ subscriptionId?: string;
8
7
  }) => Promise<PriceListChangeOptions>;
9
8
  export default getPriceListChangeOptions;
@@ -0,0 +1 @@
1
+ export declare const useAllErrorFormats: () => (error: any, mutationName?: string) => any;
@@ -0,0 +1,2 @@
1
+ import { QueryClient } from '@tanstack/react-query';
2
+ export declare const useCreateQueryClient: () => () => QueryClient;
@@ -0,0 +1,39 @@
1
+ import { Account, BillingPeriod, ChargeType, Currency, Feature, FeatureUsage, PriceList, PriceListCharge, PriceTier, PricingModel, QuoteChangeKind } from '@bunnyapp/common';
2
+ export type SubscriptionCharge = {
3
+ account: Account;
4
+ amount: number;
5
+ billingPeriod: BillingPeriod;
6
+ chargeType: ChargeType;
7
+ createdAt: string;
8
+ currency: Currency;
9
+ discount?: number;
10
+ discountedPrice: string;
11
+ endDate: string;
12
+ expired: boolean;
13
+ feature?: Feature;
14
+ id: string;
15
+ invoiceLineText: string;
16
+ isAmendment: boolean;
17
+ isRamp?: boolean;
18
+ kind: QuoteChangeKind;
19
+ name: string;
20
+ periodPrice: number;
21
+ price: string;
22
+ priceDecimals: number;
23
+ priceList: PriceList;
24
+ priceListCharge?: PriceListCharge;
25
+ priceListChargeId: string;
26
+ priceListId: string;
27
+ priceTiers: PriceTier[];
28
+ pricingModel: PricingModel;
29
+ prorationRate?: number;
30
+ quantity: number;
31
+ quantityMax?: number;
32
+ quantityMin?: number;
33
+ selfServiceQuantity?: boolean;
34
+ startDate: string;
35
+ tieredAveragePrice?: number;
36
+ trial: boolean;
37
+ updatedAt: string;
38
+ histogram?: FeatureUsage;
39
+ };
@@ -0,0 +1,91 @@
1
+ export declare const CHILD_SEARCH_CACHE_KEY = "childSearch";
2
+ export declare const SEARCH_CACHE_KEY = "search";
3
+ interface AccountPaymentMethodKeyParams {
4
+ accountId?: string;
5
+ entityId?: string;
6
+ token?: string;
7
+ }
8
+ interface BillingDetailsKeyParams {
9
+ entityId?: string;
10
+ token?: string;
11
+ }
12
+ interface CalculatedPricesKeyParams {
13
+ priceListId?: string;
14
+ quantity?: number;
15
+ token?: string;
16
+ }
17
+ interface EventsKeyParams {
18
+ entityId: string;
19
+ pluralType: string;
20
+ token?: string;
21
+ }
22
+ interface ObjectKeyParams {
23
+ id?: string;
24
+ objectName: string;
25
+ token?: string;
26
+ }
27
+ interface TableKeyParams {
28
+ filterString?: string;
29
+ pluralType: string;
30
+ token?: string;
31
+ }
32
+ interface FormattedInvoiceKeyParams {
33
+ id?: string;
34
+ token?: string;
35
+ }
36
+ interface InvoiceKeyParams {
37
+ id?: string;
38
+ token?: string;
39
+ }
40
+ interface PlanChangeOptionsKeyParams {
41
+ subscriptionId?: string | null;
42
+ productId?: string | null;
43
+ token?: string;
44
+ }
45
+ interface PortalPreviewDataKeyParams {
46
+ productId?: string | null;
47
+ token?: string;
48
+ }
49
+ interface QuoteKeyParams {
50
+ id?: string;
51
+ token?: string;
52
+ }
53
+ interface QuoteTaxCalculateKeyParams {
54
+ id?: string;
55
+ token?: string;
56
+ }
57
+ interface TaxationRequiredAccountFieldsKeyParams {
58
+ entityId?: string;
59
+ token?: string;
60
+ }
61
+ interface TransactionsKeyParams {
62
+ filter?: string;
63
+ token?: string;
64
+ }
65
+ declare const QueryKeyFactory: {
66
+ accountPaymentMethodsKey: ({ accountId, entityId, token }: AccountPaymentMethodKeyParams) => string[];
67
+ billingDetailsKey: ({ entityId, token }: BillingDetailsKeyParams) => string[];
68
+ brandingKey: (token?: string) => string[];
69
+ calculatedPricesKey: ({ priceListId, quantity, token }: CalculatedPricesKeyParams) => (string | number)[];
70
+ createEventsKey: ({ entityId, pluralType, token }: EventsKeyParams) => string[];
71
+ createFormattedInvoiceKey: ({ id, token }: FormattedInvoiceKeyParams) => (string | undefined)[];
72
+ createInvoiceKey: ({ id, token }: InvoiceKeyParams) => (string | undefined)[];
73
+ createObjectKey: ({ id, objectName, token }: ObjectKeyParams) => string[];
74
+ createQuoteKey: ({ id, token }: QuoteKeyParams) => (string | undefined)[];
75
+ createQuoteTaxCalculateKey: ({ id, token }: QuoteTaxCalculateKeyParams) => string[];
76
+ createTableKey: ({ filterString, pluralType, token }: TableKeyParams) => (string | undefined)[];
77
+ currentUserKey: (token?: string) => string[];
78
+ editingQuoteKey: (token?: string) => string[];
79
+ finixAchKey: (token?: string) => string[];
80
+ finixKey: (token?: string) => string[];
81
+ planChangeOptionsKey: ({ subscriptionId, productId, token }: PlanChangeOptionsKeyParams) => string[];
82
+ pluginsKey: (token?: string) => string[];
83
+ portalPreviewDataKey: ({ productId, token }: PortalPreviewDataKeyParams) => string[];
84
+ taxationRequiredAccountFieldsKey: ({ entityId, token, }: TaxationRequiredAccountFieldsKeyParams) => string[];
85
+ transactionsKey: ({ filter, token }: TransactionsKeyParams) => string[];
86
+ availableAddonPlansKey: ({ priceListId, token, }: {
87
+ priceListId: string | undefined;
88
+ token?: string;
89
+ }) => (string | undefined)[];
90
+ };
91
+ export default QueryKeyFactory;
@@ -1,2 +1,5 @@
1
- import { PriceListCharge } from '@bunnyapp/common';
2
- export declare function canEditChargeQuantity(charge: PriceListCharge): boolean;
1
+ import { ChargeType, PricingModel } from '@/graphql-codegen/exportedScalarTypes';
2
+ export declare function canEditChargeQuantity(charge: {
3
+ chargeType: ChargeType | null;
4
+ pricingModel: PricingModel | null;
5
+ } | null): boolean;
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * Creates a context and provider for a state value
4
+ * @param useValue - A function that returns the state value
5
+ * @returns A tuple containing the provider and the context value
6
+ * @example take a look at how this is used in the quoteIdContext in the QuantityDrawer
7
+ */
8
+ export declare const createStateContext: <Value, State>(useValue: (init?: Value) => State) => readonly [({ initialValue, children, }: {
9
+ initialValue?: Value;
10
+ children?: ReactNode;
11
+ }) => import("react/jsx-runtime").JSX.Element, () => State & ({} | undefined)];
@@ -1,5 +1,5 @@
1
1
  import { Plan, Product } from '@bunnyapp/common';
2
2
  import { BillingPeriod } from '@/graphql-codegen/exportedScalarTypes';
3
3
  export declare const periodMonthsConverter: (period?: number) => "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL";
4
- export declare const billingPeriodConverter: (period?: BillingPeriod) => 1 | 0 | 3 | 6 | 12;
4
+ export declare const billingPeriodConverter: (period?: BillingPeriod) => 0 | 1 | 3 | 6 | 12;
5
5
  export declare const createAvailableBillingPeriods: (plans?: Plan[], selectedProduct?: Product) => (0 | 1 | 3 | 6 | 12)[] | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunnyapp/components",
3
- "version": "1.6.0-beta.14",
3
+ "version": "1.6.0-beta.16",
4
4
  "description": "Components from the Bunny portal to embed Bunny UI functionality into your application.",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -1,23 +0,0 @@
1
- declare const quoteChargeUpdate: ({ discount, name, price, quantity, quoteChargeId, startDate, subtotal, apiHost, token, }: {
2
- discount?: number;
3
- name?: string;
4
- price?: number;
5
- quantity?: number;
6
- quoteChargeId: string;
7
- startDate?: string;
8
- subtotal?: number;
9
- apiHost: string;
10
- token: string;
11
- }) => Promise<{
12
- quoteChange: {
13
- id: string | null;
14
- quoteId: string;
15
- quote: {
16
- [$tada.fragmentRefs]: {
17
- QuoteContext_QuoteFragment: "Quote";
18
- };
19
- };
20
- };
21
- id: string | null;
22
- } | null | undefined>;
23
- export default quoteChargeUpdate;
@@ -1,9 +0,0 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, isPaymentMethodLoading, }: {
3
- onChangePlanClick?: (subscription: Subscription) => void;
4
- onCancelSubscriptionClick?: (subscription: Subscription) => void;
5
- priceListChangeOptions?: PriceListChangeOptions;
6
- subscription: Subscription;
7
- isPaymentMethodLoading: boolean;
8
- }) => import("react/jsx-runtime").JSX.Element | null;
9
- export default SubscriptionCardActions;
@@ -1,7 +0,0 @@
1
- import { FeatureUsage } from '@bunnyapp/common';
2
- declare const getFeatureUsage: ({ subscriptionChargeId, token, apiHost, }: {
3
- subscriptionChargeId: string;
4
- token?: string;
5
- apiHost: string;
6
- }) => Promise<FeatureUsage>;
7
- export default getFeatureUsage;
@@ -1,9 +0,0 @@
1
- import { Subscription } from '@bunnyapp/common';
2
- declare const usePriceListChangeOptions: ({ subscription, onChangePlanClick, }: {
3
- subscription?: Subscription;
4
- onChangePlanClick?: (subscription: Subscription) => void;
5
- }) => {
6
- priceListChangeOptions: import("@bunnyapp/common").PriceListChangeOptions | undefined;
7
- arePriceListChangeOptionsLoading: boolean;
8
- };
9
- export default usePriceListChangeOptions;
@@ -1,2 +0,0 @@
1
- import { GraphQLClient } from "graphql-request";
2
- export declare const createGraphQLClient: (apiHost: string, token?: string) => GraphQLClient;
@@ -1,23 +0,0 @@
1
- declare const quoteChargeUpdate: ({ discount, name, price, quantity, quoteChargeId, startDate, subtotal, apiHost, token, }: {
2
- discount?: number;
3
- name?: string;
4
- price?: number;
5
- quantity?: number;
6
- quoteChargeId: string;
7
- startDate?: string;
8
- subtotal?: number;
9
- apiHost: string;
10
- token: string;
11
- }) => Promise<{
12
- quoteChange: {
13
- id: string | null;
14
- quoteId: string;
15
- quote: {
16
- [$tada.fragmentRefs]: {
17
- QuoteContext_QuoteFragment: "Quote";
18
- };
19
- };
20
- };
21
- id: string | null;
22
- } | null | undefined>;
23
- export default quoteChargeUpdate;
@@ -1,9 +0,0 @@
1
- import { PriceListChangeOptions, Subscription } from '@bunnyapp/common';
2
- declare const SubscriptionCardActions: ({ onChangePlanClick, onCancelSubscriptionClick, priceListChangeOptions, subscription, isPaymentMethodLoading, }: {
3
- onChangePlanClick?: (subscription: Subscription) => void;
4
- onCancelSubscriptionClick?: (subscription: Subscription) => void;
5
- priceListChangeOptions?: PriceListChangeOptions;
6
- subscription: Subscription;
7
- isPaymentMethodLoading: boolean;
8
- }) => import("react/jsx-runtime").JSX.Element | null;
9
- export default SubscriptionCardActions;
@@ -1,7 +0,0 @@
1
- import { FeatureUsage } from '@bunnyapp/common';
2
- declare const getFeatureUsage: ({ subscriptionChargeId, token, apiHost, }: {
3
- subscriptionChargeId: string;
4
- token?: string;
5
- apiHost: string;
6
- }) => Promise<FeatureUsage>;
7
- export default getFeatureUsage;
@@ -1,9 +0,0 @@
1
- import { Subscription } from '@bunnyapp/common';
2
- declare const usePriceListChangeOptions: ({ subscription, onChangePlanClick, }: {
3
- subscription?: Subscription;
4
- onChangePlanClick?: (subscription: Subscription) => void;
5
- }) => {
6
- priceListChangeOptions: import("@bunnyapp/common").PriceListChangeOptions | undefined;
7
- arePriceListChangeOptionsLoading: boolean;
8
- };
9
- export default usePriceListChangeOptions;
@@ -1,2 +0,0 @@
1
- import { GraphQLClient } from "graphql-request";
2
- export declare const createGraphQLClient: (apiHost: string, token?: string) => GraphQLClient;