@bunnyapp/components 1.8.0-beta.40 → 1.8.0-beta.42

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.
@@ -16,7 +16,7 @@ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPri
16
16
  selectedPriceList?: PriceList;
17
17
  token?: string;
18
18
  }) => {
19
- quote: {
19
+ quote: NoInfer<{
20
20
  [$tada.fragmentRefs]: {
21
21
  QuoteContext_QuoteFragment: "Quote";
22
22
  };
@@ -26,6 +26,6 @@ export declare const useQuoteCreate: ({ maskedUpgradingSubscription, selectedPri
26
26
  } & {
27
27
  FormattedQuoteFields_QuoteFragment: "Quote";
28
28
  };
29
- } | null | undefined;
29
+ } | null> | undefined;
30
30
  isQuotePending: boolean;
31
31
  };
@@ -4,9 +4,9 @@ export declare const useSignupQuoteQueryData: ({ tokenOverride, }: {
4
4
  tokenOverride?: string;
5
5
  }) => {
6
6
  data: ResultOf<typeof Signup_QuoteFragment> | undefined;
7
- refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<{
7
+ refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<NoInfer<{
8
8
  [$tada.fragmentRefs]: {
9
9
  Signup_QuoteFragment: "Quote";
10
10
  };
11
- } | undefined, Error>>;
11
+ } | undefined>, Error>>;
12
12
  };
@@ -1,5 +1,6 @@
1
1
  import PriceList from '@/types/PriceList';
2
2
  export declare const CheckoutBarSummarySection_QuoteFragment: import("gql.tada").TadaDocumentNode<{
3
+ accountId: string;
3
4
  quoteChanges: {
4
5
  charges: {
5
6
  id: string | null;
@@ -1,6 +1,6 @@
1
1
  import CurrentUser from '@/types/frontendTypes/currentUser';
2
2
  declare const useCurrentUserData: (token: string | undefined) => {
3
- currentUser: CurrentUser | {
3
+ currentUser: CurrentUser | NoInfer<{
4
4
  authObjectName: string | null;
5
5
  account: {
6
6
  billingCountry: string | null;
@@ -12,7 +12,7 @@ declare const useCurrentUserData: (token: string | undefined) => {
12
12
  privacyUrl: string | null;
13
13
  termsUrl: string | null;
14
14
  entityId: string | null;
15
- };
15
+ }>;
16
16
  isCurrentUserDataLoading: boolean;
17
17
  };
18
18
  export default useCurrentUserData;
@@ -2,7 +2,7 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
2
2
  accountId?: string;
3
3
  enabled?: boolean;
4
4
  }) => {
5
- paymentMethods: {
5
+ paymentMethods: NoInfer<{
6
6
  id: string;
7
7
  pluginId: string | null;
8
8
  accountId: string | null;
@@ -26,7 +26,7 @@ export declare const usePaymentMethod: ({ accountId, enabled, }: {
26
26
  } & {
27
27
  StoredPaymentMethods_PaymentMethodsFragment: "PaymentMethod";
28
28
  };
29
- }[] | undefined;
29
+ }[]> | undefined;
30
30
  defaultPaymentMethod: {
31
31
  id: string;
32
32
  pluginId: string | null;
@@ -1,4 +1,6 @@
1
- export declare const usePaymentPlugins: () => {
1
+ export declare const usePaymentPlugins: ({ accountId }?: {
2
+ accountId?: string;
3
+ }) => {
2
4
  paymentPlugins: {
3
5
  enabled: boolean;
4
6
  entities: string[];
@@ -105,7 +105,10 @@ declare const QueryKeyFactory: {
105
105
  priceListId: string;
106
106
  token?: string;
107
107
  }) => string[];
108
- paymentPluginsKey: (token?: string) => string[];
108
+ paymentPluginsKey: ({ token, accountId }?: {
109
+ token?: string;
110
+ accountId?: string;
111
+ }) => string[];
109
112
  subscriptionChargeHistogramsKey: ({ subscriptionId, token, }: {
110
113
  subscriptionId: string;
111
114
  token?: string;
@@ -0,0 +1,2 @@
1
+ import { FragmentOf, ResultOf, TadaDocumentNode } from 'gql.tada';
2
+ export declare function readNullableFragment<Doc extends TadaDocumentNode<any, any, any>>(fragment: Doc, data: FragmentOf<Doc> | null | undefined): ResultOf<Doc> | null | undefined;