@bunnyapp/components 1.6.0-beta.10 → 1.6.0-beta.12
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/cjs/index.js +817 -727
- package/dist/cjs/types/src/components/Checkout/Checkout.d.ts +18 -3
- package/dist/cjs/types/src/components/Checkout/QuoteCheckout.d.ts +77 -3
- package/dist/cjs/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
- package/dist/cjs/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +65 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +2 -3
- package/dist/cjs/types/src/components/Subscriptions/{QuantityDrawerContainer.d.ts → quantityChangeDrawer/QuantityDrawer.d.ts} +4 -4
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +3 -11
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawerQuoteFragment.d.ts +10 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/queries/quoteChargeCreate.d.ts +23 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/queries/quoteChargeUpdate.d.ts +12 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/queries/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
- package/dist/cjs/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +0 -9
- package/dist/cjs/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/cjs/types/src/components/TaxationForm.d.ts +3 -3
- package/dist/cjs/types/src/graphql/QuoteRequests.d.ts +0 -5
- package/dist/esm/index.js +817 -727
- package/dist/esm/types/src/components/Checkout/Checkout.d.ts +18 -3
- package/dist/esm/types/src/components/Checkout/QuoteCheckout.d.ts +77 -3
- package/dist/esm/types/src/components/Checkout/checkoutUtils.d.ts +4 -2
- package/dist/esm/types/src/components/QuoteProvider/fragments/quoteFragment.d.ts +65 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts +2 -3
- package/dist/esm/types/src/components/Subscriptions/{QuantityDrawerContainer.d.ts → quantityChangeDrawer/QuantityDrawer.d.ts} +4 -4
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityInput.d.ts +3 -11
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/fragments/QuantityDrawerQuoteFragment.d.ts +10 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useQuoteQueryData.d.ts +3 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/hooks/useSetQuoteQueryData.d.ts +5 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/queries/quoteChargeCreate.d.ts +23 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/queries/quoteChargeUpdate.d.ts +12 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/queries/quoteSubscriptionUpdate.d.ts +22 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/utils/formatDateForApi.d.ts +2 -0
- package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/{utils.d.ts → utils/utils.d.ts} +0 -9
- package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts +1 -1
- package/dist/esm/types/src/components/TaxationForm.d.ts +3 -3
- package/dist/esm/types/src/graphql/QuoteRequests.d.ts +0 -5
- package/package.json +1 -1
|
@@ -1,13 +1,28 @@
|
|
|
1
|
-
import { FormattedInvoice
|
|
1
|
+
import { FormattedInvoice } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
|
+
export declare const Checkout_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
|
+
id: string | null;
|
|
5
|
+
accountId: string;
|
|
6
|
+
formattedQuote: {
|
|
7
|
+
html: string | null;
|
|
8
|
+
} | null;
|
|
9
|
+
[$tada.fragmentRefs]: {
|
|
10
|
+
QuoteCheckout_QuoteFragment: "Quote";
|
|
11
|
+
};
|
|
12
|
+
}, {}, {
|
|
13
|
+
fragment: "Checkout_QuoteFragment";
|
|
14
|
+
on: "Quote";
|
|
15
|
+
masked: true;
|
|
16
|
+
}>;
|
|
2
17
|
type CheckoutProps = {
|
|
3
18
|
invoice?: FormattedInvoice;
|
|
4
19
|
onCancel: () => void;
|
|
5
20
|
onFail: (error: any) => void;
|
|
6
21
|
onSuccess: () => void;
|
|
7
22
|
open: boolean;
|
|
8
|
-
quote?:
|
|
23
|
+
quote?: FragmentOf<typeof Checkout_QuoteFragment>;
|
|
9
24
|
token?: string;
|
|
10
25
|
isUpdatingQuote: boolean;
|
|
11
26
|
};
|
|
12
|
-
declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote, isUpdatingQuote, }: CheckoutProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
+
declare const Checkout: ({ onCancel, onSuccess, onFail, invoice, open, quote: maskedQuote, isUpdatingQuote, }: CheckoutProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
13
28
|
export default Checkout;
|
|
@@ -1,12 +1,86 @@
|
|
|
1
|
-
import { Account, PaymentMethod,
|
|
1
|
+
import { Account, PaymentMethod, TaxationRequiredAccountFields } from '@bunnyapp/common';
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
3
|
import { InvoiceQuoteParentProps } from '../PaymentForm/PaymentFormTypes';
|
|
4
|
+
export declare const QuoteCheckout_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
5
|
+
id: string | null;
|
|
6
|
+
accountId: string;
|
|
7
|
+
amountDue: number | null;
|
|
8
|
+
amount: number;
|
|
9
|
+
quoteChanges: ({
|
|
10
|
+
id: string | null;
|
|
11
|
+
charges: {
|
|
12
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
13
|
+
coupon: {
|
|
14
|
+
couponCode: string;
|
|
15
|
+
} | null;
|
|
16
|
+
}[];
|
|
17
|
+
}[] & {
|
|
18
|
+
currencyId: string;
|
|
19
|
+
id: string | null;
|
|
20
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
|
+
charges: {
|
|
22
|
+
subtotal: number | null;
|
|
23
|
+
amountsByPeriod: {
|
|
24
|
+
amount: number | null;
|
|
25
|
+
startDate: unknown;
|
|
26
|
+
}[] | null;
|
|
27
|
+
amount: number | null;
|
|
28
|
+
billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
|
|
29
|
+
currencyId: string;
|
|
30
|
+
feature: {
|
|
31
|
+
unitName: string | null;
|
|
32
|
+
} | null;
|
|
33
|
+
id: string | null;
|
|
34
|
+
name: string | null;
|
|
35
|
+
priceListCharge: {
|
|
36
|
+
id: string;
|
|
37
|
+
} | null;
|
|
38
|
+
priceList: {
|
|
39
|
+
id: string;
|
|
40
|
+
} | null;
|
|
41
|
+
coupon: {
|
|
42
|
+
couponCode: string;
|
|
43
|
+
} | null;
|
|
44
|
+
quantity: number | null;
|
|
45
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
46
|
+
}[];
|
|
47
|
+
priceList: {
|
|
48
|
+
id: string;
|
|
49
|
+
plan: {
|
|
50
|
+
name: string;
|
|
51
|
+
} | null;
|
|
52
|
+
product: {
|
|
53
|
+
name: string;
|
|
54
|
+
} | null;
|
|
55
|
+
} | null;
|
|
56
|
+
}[]) | null;
|
|
57
|
+
smallUnitAmountDue: number | null;
|
|
58
|
+
currencyId: string;
|
|
59
|
+
payableId: string | null;
|
|
60
|
+
periodAmount: number | null;
|
|
61
|
+
subtotal: number;
|
|
62
|
+
taxAmount: number;
|
|
63
|
+
startDate: unknown;
|
|
64
|
+
formattedQuote: {
|
|
65
|
+
html: string | null;
|
|
66
|
+
} | null;
|
|
67
|
+
amountsByPeriod: {
|
|
68
|
+
amount: number | null;
|
|
69
|
+
startDate: unknown;
|
|
70
|
+
}[];
|
|
71
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
72
|
+
}, {}, {
|
|
73
|
+
fragment: "QuoteCheckout_QuoteFragment";
|
|
74
|
+
on: "Quote";
|
|
75
|
+
masked: true;
|
|
76
|
+
}>;
|
|
3
77
|
interface QuoteCheckoutProps extends InvoiceQuoteParentProps {
|
|
4
78
|
account: Account;
|
|
5
|
-
quote:
|
|
79
|
+
quote: FragmentOf<typeof QuoteCheckout_QuoteFragment>;
|
|
6
80
|
taxationRequiredAccountFields?: TaxationRequiredAccountFields | null;
|
|
7
81
|
token?: string;
|
|
8
82
|
storedPaymentMethod?: PaymentMethod;
|
|
9
83
|
onRecalculateTaxes: () => void;
|
|
10
84
|
}
|
|
11
|
-
declare const QuoteCheckout: ({ account, onSuccess, onFail, quote, taxationRequiredAccountFields, onRecalculateTaxes, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
85
|
+
declare const QuoteCheckout: ({ account, onSuccess, onFail, quote: maskedQuote, taxationRequiredAccountFields, onRecalculateTaxes, }: QuoteCheckoutProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
86
|
export default QuoteCheckout;
|
|
@@ -1,3 +1,68 @@
|
|
|
1
|
+
export declare const QuoteFields_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
accountId: string;
|
|
3
|
+
amount: number;
|
|
4
|
+
amountDue: number | null;
|
|
5
|
+
smallUnitAmountDue: number | null;
|
|
6
|
+
currencyId: string;
|
|
7
|
+
id: string | null;
|
|
8
|
+
payableId: string | null;
|
|
9
|
+
periodAmount: number | null;
|
|
10
|
+
subtotal: number;
|
|
11
|
+
taxAmount: number;
|
|
12
|
+
startDate: unknown;
|
|
13
|
+
formattedQuote: {
|
|
14
|
+
html: string | null;
|
|
15
|
+
} | null;
|
|
16
|
+
amountsByPeriod: {
|
|
17
|
+
amount: number | null;
|
|
18
|
+
startDate: unknown;
|
|
19
|
+
}[];
|
|
20
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
21
|
+
quoteChanges: {
|
|
22
|
+
currencyId: string;
|
|
23
|
+
id: string | null;
|
|
24
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE";
|
|
25
|
+
charges: {
|
|
26
|
+
subtotal: number | null;
|
|
27
|
+
amountsByPeriod: {
|
|
28
|
+
amount: number | null;
|
|
29
|
+
startDate: unknown;
|
|
30
|
+
}[] | null;
|
|
31
|
+
amount: number | null;
|
|
32
|
+
billingPeriod: "ONCE" | "MONTHLY" | "QUARTERLY" | "SEMI_ANNUAL" | "ANNUAL" | null;
|
|
33
|
+
currencyId: string;
|
|
34
|
+
feature: {
|
|
35
|
+
unitName: string | null;
|
|
36
|
+
} | null;
|
|
37
|
+
id: string | null;
|
|
38
|
+
name: string | null;
|
|
39
|
+
priceListCharge: {
|
|
40
|
+
id: string;
|
|
41
|
+
} | null;
|
|
42
|
+
priceList: {
|
|
43
|
+
id: string;
|
|
44
|
+
} | null;
|
|
45
|
+
coupon: {
|
|
46
|
+
couponCode: string;
|
|
47
|
+
} | null;
|
|
48
|
+
quantity: number | null;
|
|
49
|
+
kind: "COUPON" | "SUBSCRIBE" | "UPDATE" | "RENEW" | "REINSTATE" | "UNSUBSCRIBE" | "ADJUSTMENT" | "DISCOUNT" | "CREDIT" | "PRICE_UPDATE" | "QUANTITY_UPDATE" | "FREE_PERIOD_DISCOUNT" | "ACTIVATE" | null;
|
|
50
|
+
}[];
|
|
51
|
+
priceList: {
|
|
52
|
+
id: string;
|
|
53
|
+
plan: {
|
|
54
|
+
name: string;
|
|
55
|
+
} | null;
|
|
56
|
+
product: {
|
|
57
|
+
name: string;
|
|
58
|
+
} | null;
|
|
59
|
+
} | null;
|
|
60
|
+
}[] | null;
|
|
61
|
+
}, {}, {
|
|
62
|
+
fragment: "QuoteFields_QuoteFragment";
|
|
63
|
+
on: "Quote";
|
|
64
|
+
masked: false;
|
|
65
|
+
}>;
|
|
1
66
|
/**
|
|
2
67
|
* Central quote fragment for QuoteProvider context.
|
|
3
68
|
*
|
package/dist/esm/types/src/components/Subscriptions/quantityChangeDrawer/QuantityChangeGridRow.d.ts
CHANGED
|
@@ -39,10 +39,9 @@ export declare const QuantityChangeGridRow_SubscriptionFragment: import("gql.tad
|
|
|
39
39
|
on: "Subscription";
|
|
40
40
|
masked: true;
|
|
41
41
|
}>;
|
|
42
|
-
declare const QuantityChangeGridRow: ({
|
|
43
|
-
chargeIndex: number;
|
|
42
|
+
declare const QuantityChangeGridRow: ({ editingQuote, editingQuoteId, setEditingQuoteData, subscription: maskedSubscription, subscriptionCharge: maskedSubscriptionCharge, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
|
|
44
43
|
editingQuote?: Quote;
|
|
45
|
-
|
|
44
|
+
editingQuoteId?: string;
|
|
46
45
|
setEditingQuoteData: (value: any) => void;
|
|
47
46
|
subscription: FragmentOf<typeof QuantityChangeGridRow_SubscriptionFragment>;
|
|
48
47
|
subscriptionCharge: FragmentOf<typeof QuantityChangeGridRow_SubscriptionChargeFragment>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
import { QuantityDrawerDesktop_SubscriptionFragment } from './
|
|
2
|
+
import { QuantityDrawerDesktop_SubscriptionFragment } from './quantityChangeDrawerDesktop/QuantityChangeDrawerDesktop';
|
|
3
3
|
export type EditingQuoteDataType = {
|
|
4
4
|
id: string;
|
|
5
5
|
isTrial: boolean;
|
|
6
6
|
};
|
|
7
|
-
interface
|
|
7
|
+
interface QuantityDrawerProps {
|
|
8
8
|
subscriptions: (FragmentOf<typeof QuantityDrawerDesktop_SubscriptionFragment> | null)[];
|
|
9
9
|
quantityDrawerOpen: boolean;
|
|
10
10
|
setQuantityDrawerOpen: (open: boolean) => void;
|
|
11
11
|
handlePortalErrors?: (errors: any) => void;
|
|
12
12
|
setShowInactive: (showInactive: boolean) => void;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export
|
|
14
|
+
export declare const QuantityDrawer: ({ subscriptions, quantityDrawerOpen, setQuantityDrawerOpen, handlePortalErrors, setShowInactive, }: QuantityDrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Quote } from '@bunnyapp/common';
|
|
2
|
-
import { FragmentOf
|
|
2
|
+
import { FragmentOf } from 'gql.tada';
|
|
3
3
|
export declare const QuantityInput_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
4
4
|
id: string | null;
|
|
5
5
|
quantity: number | null;
|
|
@@ -31,23 +31,15 @@ export declare const QuantityInput_SubscriptionFragment: import("gql.tada").Tada
|
|
|
31
31
|
on: "Subscription";
|
|
32
32
|
masked: true;
|
|
33
33
|
}>;
|
|
34
|
-
|
|
35
|
-
chargeId: string;
|
|
36
|
-
chargeIndex: number;
|
|
37
|
-
quantity: number | undefined;
|
|
38
|
-
subscription: ResultOf<typeof QuantityInput_SubscriptionFragment>;
|
|
39
|
-
subscriptionIndex: number;
|
|
40
|
-
};
|
|
41
|
-
declare const QuantityInput: ({ charge: maskedCharge, chargeIndex, editingQuote, setEditingQuoteData, subscription: maskedSubscription, subscriptionIndex, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
|
|
34
|
+
declare const QuantityInput: ({ charge: maskedCharge, editingQuote, editingQuoteId, setEditingQuoteData, subscription: maskedSubscription, setUpdatingChargeQuantityId, updatingChargeQuantityId, setErrorUpdatingQuantity, }: {
|
|
42
35
|
charge: FragmentOf<typeof QuantityInput_SubscriptionChargeFragment>;
|
|
43
|
-
chargeIndex: number;
|
|
44
36
|
editingQuote?: Quote;
|
|
37
|
+
editingQuoteId?: string;
|
|
45
38
|
setEditingQuoteData: (editingQuoteData: {
|
|
46
39
|
id: string;
|
|
47
40
|
isTrial: boolean;
|
|
48
41
|
} | undefined) => void;
|
|
49
42
|
subscription: FragmentOf<typeof QuantityInput_SubscriptionFragment>;
|
|
50
|
-
subscriptionIndex: number;
|
|
51
43
|
setUpdatingChargeQuantityId: (updatingChargeQuantityId: string | undefined) => void;
|
|
52
44
|
updatingChargeQuantityId: string | undefined;
|
|
53
45
|
setErrorUpdatingQuantity: (errorUpdatingQuantity: boolean) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const QuantityDrawer_QuoteFragment: import("gql.tada").TadaDocumentNode<{
|
|
2
|
+
id: string | null;
|
|
3
|
+
[$tada.fragmentRefs]: {
|
|
4
|
+
Checkout_QuoteFragment: "Quote";
|
|
5
|
+
};
|
|
6
|
+
}, {}, {
|
|
7
|
+
fragment: "QuantityDrawer_QuoteFragment";
|
|
8
|
+
on: "Quote";
|
|
9
|
+
masked: true;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { FragmentOf } from 'gql.tada';
|
|
2
|
+
import { QuantityDrawer_QuoteFragment } from '../fragments/QuantityDrawerQuoteFragment';
|
|
3
|
+
export declare const useSetQuoteQueryData: () => {
|
|
4
|
+
setQuoteQueryData: (quoteId: string, maskedQuote: FragmentOf<typeof QuantityDrawer_QuoteFragment> | null) => void;
|
|
5
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
type QuoteChangeCreateChargeProps = {
|
|
2
|
+
apiHost: string;
|
|
3
|
+
price?: number;
|
|
4
|
+
priceListChargeId?: string;
|
|
5
|
+
quantity?: number;
|
|
6
|
+
quoteChangeId: string;
|
|
7
|
+
startDate: string;
|
|
8
|
+
subscriptionChargeId?: string;
|
|
9
|
+
token?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const quoteChargeCreate: ({ price, priceListChargeId, quantity, quoteChangeId, startDate, subscriptionChargeId, token, apiHost, }: QuoteChangeCreateChargeProps) => Promise<{
|
|
12
|
+
quoteChange: {
|
|
13
|
+
id: string | null;
|
|
14
|
+
quoteId: string;
|
|
15
|
+
quote: {
|
|
16
|
+
[$tada.fragmentRefs]: {
|
|
17
|
+
QuantityDrawer_QuoteFragment: "Quote";
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
id: string | null;
|
|
22
|
+
} | null | undefined>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const quoteChargeUpdate: (quoteChargeId: string, quantity: number, apiHost: string, token?: string) => Promise<{
|
|
2
|
+
quoteChange: {
|
|
3
|
+
id: string | null;
|
|
4
|
+
quoteId: string;
|
|
5
|
+
quote: {
|
|
6
|
+
[$tada.fragmentRefs]: {
|
|
7
|
+
QuantityDrawer_QuoteFragment: "Quote";
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
id: string | null;
|
|
12
|
+
} | null | undefined>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const quoteSubscriptionUpdate: (subscriptionIds: string[], apiHost: string, token?: string) => Promise<{
|
|
2
|
+
id: string | null;
|
|
3
|
+
quoteChanges: {
|
|
4
|
+
id: string | null;
|
|
5
|
+
priceList: {
|
|
6
|
+
id: string;
|
|
7
|
+
} | null;
|
|
8
|
+
subscription: {
|
|
9
|
+
charges: {
|
|
10
|
+
startDate: unknown;
|
|
11
|
+
endDate: unknown;
|
|
12
|
+
id: string | null;
|
|
13
|
+
priceListCharge: {
|
|
14
|
+
id: string;
|
|
15
|
+
} | null;
|
|
16
|
+
}[] | null;
|
|
17
|
+
} | null;
|
|
18
|
+
}[] | null;
|
|
19
|
+
[$tada.fragmentRefs]: {
|
|
20
|
+
QuantityDrawer_QuoteFragment: "Quote";
|
|
21
|
+
};
|
|
22
|
+
} | null | undefined>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { Quote } from '@bunnyapp/common';
|
|
2
1
|
import { FragmentOf } from 'gql.tada';
|
|
3
|
-
import { EditingSubscriptionType } from './QuantityInput';
|
|
4
2
|
export declare const CanShowQuantitiesInput_SubscriptionChargeFragment: import("gql.tada").TadaDocumentNode<{
|
|
5
3
|
id: string | null;
|
|
6
4
|
pricingModel: "FLAT" | "TIERED" | "VOLUME" | "BANDS" | null;
|
|
@@ -27,13 +25,6 @@ export declare const CanShowQuantitiesInput_SubscriptionFragment: import("gql.ta
|
|
|
27
25
|
on: "Subscription";
|
|
28
26
|
masked: true;
|
|
29
27
|
}>;
|
|
30
|
-
export declare const createQuoteParams: (quote: Quote, subscriptionQuantity: number, editedSubscription?: EditingSubscriptionType) => {
|
|
31
|
-
charges: {
|
|
32
|
-
id: string;
|
|
33
|
-
quantity: number;
|
|
34
|
-
}[];
|
|
35
|
-
quoteChange: import("@bunnyapp/common").QuoteChange | undefined;
|
|
36
|
-
};
|
|
37
28
|
export declare const getUpdatingChargeQuantityId: (priceListChargeId: string, subscriptionId: string) => string;
|
|
38
29
|
export declare const canShowQuantitiesInput: ({ charge: maskedCharge, subscription: maskedSubscription, }: {
|
|
39
30
|
charge: FragmentOf<typeof CanShowQuantitiesInput_SubscriptionChargeFragment>;
|
package/dist/esm/types/src/components/Subscriptions/subscriptionsList/SubscriptionsNavigation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FragmentOf } from 'gql.tada';
|
|
2
|
-
import { CanShowQuantitiesInput_SubscriptionFragment } from '../quantityChangeDrawer/utils';
|
|
2
|
+
import { CanShowQuantitiesInput_SubscriptionFragment } from '../quantityChangeDrawer/utils/utils';
|
|
3
3
|
declare const SubscriptionsNavigation: ({ inactiveSwitchVisible, showInactive, setShowInactive, setQuantityDrawerOpen, subscriptions, }: {
|
|
4
4
|
inactiveSwitchVisible: boolean;
|
|
5
5
|
showInactive: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Account
|
|
2
|
-
declare const TaxationForm: ({ account,
|
|
1
|
+
import { Account } from '@bunnyapp/common';
|
|
2
|
+
declare const TaxationForm: ({ account, accountId }: {
|
|
3
3
|
account: Account;
|
|
4
|
-
|
|
4
|
+
accountId: string;
|
|
5
5
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export default TaxationForm;
|
|
@@ -4,11 +4,6 @@ export declare const quoteSubscriptionUpgrade: ({ subscriptionId, priceListId, a
|
|
|
4
4
|
apiHost: string;
|
|
5
5
|
token?: string;
|
|
6
6
|
}) => Promise<unknown>;
|
|
7
|
-
export declare const useCreateSubscriptionQuote: () => (subscriptionIds: string[], apiHost: string, token?: string) => Promise<unknown>;
|
|
8
|
-
export declare const useQuoteChangeUpdate: () => (charges: {
|
|
9
|
-
id: string;
|
|
10
|
-
quantity: number;
|
|
11
|
-
}[], quoteChangeId: string, apiHost: string, token?: string) => Promise<any>;
|
|
12
7
|
export declare const useQuoteDelete: () => (quoteId: string, apiHost: string, token?: string) => Promise<unknown>;
|
|
13
8
|
export declare const quoteSubscriptionAddon: ({ subscriptionId, priceListId, apiHost, token, }: {
|
|
14
9
|
subscriptionId: string;
|
package/package.json
CHANGED