@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.
- package/README.md +42 -0
- package/dist/cjs/index.js +2521 -2191
- package/dist/cjs/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +1 -1
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/cjs/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/cjs/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/cjs/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/cjs/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -5
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -4
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
- 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
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +2 -2
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
- package/dist/{esm/types/src/components/Subscriptions/quantityChangeDrawer → cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput}/QuantityInput.d.ts +2 -9
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +3 -2
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
- package/dist/cjs/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
- package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +1 -0
- package/dist/cjs/types/src/hooks/useCreateQueryClient.d.ts +2 -0
- package/dist/cjs/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/cjs/types/src/utils/QueryKeyFactory.d.ts +91 -0
- package/dist/cjs/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/cjs/types/src/utils/createStateContext.d.ts +11 -0
- package/dist/cjs/types/src/utils/pricePickerUtils.d.ts +1 -1
- package/dist/esm/index.js +2564 -2234
- package/dist/esm/types/src/components/BunnyProvider.d.ts +0 -2
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +1 -1
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +4 -4
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFieldsFragment.d.ts +65 -0
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +16 -112
- package/dist/esm/types/src/components/QuoteProvider/hooks/useFeatureQuantities.d.ts +12 -0
- package/dist/esm/types/src/components/QuoteProvider/hooks/useQuoteQuantities.d.ts +0 -5
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChangeUpdate.d.ts +16 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/getQuantityFromQuoteChange.d.ts +11 -0
- package/dist/esm/types/src/components/QuoteProvider/utils/quoteChangeCanBeEdited.d.ts +4 -0
- package/dist/esm/types/src/components/Subscriptions/Subscriptions.d.ts +1 -5
- package/dist/esm/types/src/components/Subscriptions/SubscriptionsListContainer.d.ts +0 -4
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/PlanPicker.d.ts +1 -2
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/checkoutBar/PlanPickerCheckoutBar.d.ts +19 -0
- package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/planManagerUtils.d.ts +5 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +1 -5
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityDrawer.d.ts +1 -4
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuoteChangeSummarySection.d.ts +11 -6
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/context/quoteIdContext.d.ts +5 -0
- 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
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +2 -2
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop.d.ts +1 -6
- package/dist/{cjs/types/src/components/Subscriptions/quantityChangeDrawer → esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput}/QuantityInput.d.ts +2 -9
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/quantityInput/fragments/QuantityInput_QuoteFragment.d.ts +27 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/utils.d.ts +3 -2
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionChargeTotal.d.ts +3 -3
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/components/SubscriptionCardActions.d.ts +21 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/subscriptionCardHeader/queries/getPriceListChangeOptions.d.ts +9 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/filterSubscriptionCharges.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/utils/sortSubscriptionCharges.d.ts +2 -0
- package/dist/esm/types/src/graphql/queries/getPriceListChangeOptions.d.ts +3 -4
- package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +1 -0
- package/dist/esm/types/src/hooks/useCreateQueryClient.d.ts +2 -0
- package/dist/esm/types/src/types/SubscriptionCharge.d.ts +39 -0
- package/dist/esm/types/src/utils/QueryKeyFactory.d.ts +91 -0
- package/dist/esm/types/src/utils/chargeUtils.d.ts +5 -2
- package/dist/esm/types/src/utils/createStateContext.d.ts +11 -0
- package/dist/esm/types/src/utils/pricePickerUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/cjs/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
- package/dist/cjs/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/cjs/types/src/utils/GraphQLClient.d.ts +0 -2
- package/dist/esm/types/src/components/QuoteProvider/mutations/quoteChargeUpdate.d.ts +0 -23
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts +0 -9
- package/dist/esm/types/src/graphql/queries/getFeatureUsage.d.ts +0 -7
- package/dist/esm/types/src/hooks/usePriceListChangeOptions.d.ts +0 -9
- package/dist/esm/types/src/utils/GraphQLClient.d.ts +0 -2
- /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeCreate.d.ts +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeUpdate.d.ts +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteSubscriptionUpdate.d.ts +0 -0
- /package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/{SubscriptionCardHeader.d.ts → subscriptionCardHeader/SubscriptionCardHeader.d.ts} +0 -0
- /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeCreate.d.ts +0 -0
- /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteChargeUpdate.d.ts +0 -0
- /package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{queries → mutations}/quoteSubscriptionUpdate.d.ts +0 -0
- /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
|
+
}>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { PriceListChangeOptions
|
|
2
|
-
declare const getPriceListChangeOptions: ({ apiHost, isInPreviewMode,
|
|
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
|
-
|
|
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,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 {
|
|
2
|
-
export declare function canEditChargeQuantity(charge:
|
|
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) =>
|
|
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,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;
|
package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts
DELETED
|
@@ -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,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,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;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionCardActions.d.ts
DELETED
|
@@ -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,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;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|