@djangocfg/ext-payments 1.0.0

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 (67) hide show
  1. package/README.md +206 -0
  2. package/dist/chunk-5KY6HVXF.js +2593 -0
  3. package/dist/hooks.cjs +2666 -0
  4. package/dist/hooks.d.cts +186 -0
  5. package/dist/hooks.d.ts +186 -0
  6. package/dist/hooks.js +1 -0
  7. package/dist/index.cjs +2590 -0
  8. package/dist/index.d.cts +1287 -0
  9. package/dist/index.d.ts +1287 -0
  10. package/dist/index.js +1 -0
  11. package/package.json +79 -0
  12. package/src/api/generated/ext_payments/_utils/fetchers/ext_payments__payments.ts +408 -0
  13. package/src/api/generated/ext_payments/_utils/fetchers/index.ts +28 -0
  14. package/src/api/generated/ext_payments/_utils/hooks/ext_payments__payments.ts +147 -0
  15. package/src/api/generated/ext_payments/_utils/hooks/index.ts +28 -0
  16. package/src/api/generated/ext_payments/_utils/schemas/Balance.schema.ts +23 -0
  17. package/src/api/generated/ext_payments/_utils/schemas/Currency.schema.ts +28 -0
  18. package/src/api/generated/ext_payments/_utils/schemas/PaginatedPaymentListList.schema.ts +24 -0
  19. package/src/api/generated/ext_payments/_utils/schemas/PaymentDetail.schema.ts +44 -0
  20. package/src/api/generated/ext_payments/_utils/schemas/PaymentList.schema.ts +28 -0
  21. package/src/api/generated/ext_payments/_utils/schemas/Transaction.schema.ts +28 -0
  22. package/src/api/generated/ext_payments/_utils/schemas/index.ts +24 -0
  23. package/src/api/generated/ext_payments/api-instance.ts +131 -0
  24. package/src/api/generated/ext_payments/client.ts +301 -0
  25. package/src/api/generated/ext_payments/enums.ts +64 -0
  26. package/src/api/generated/ext_payments/errors.ts +116 -0
  27. package/src/api/generated/ext_payments/ext_payments__payments/client.ts +118 -0
  28. package/src/api/generated/ext_payments/ext_payments__payments/index.ts +2 -0
  29. package/src/api/generated/ext_payments/ext_payments__payments/models.ts +135 -0
  30. package/src/api/generated/ext_payments/http.ts +103 -0
  31. package/src/api/generated/ext_payments/index.ts +273 -0
  32. package/src/api/generated/ext_payments/logger.ts +259 -0
  33. package/src/api/generated/ext_payments/retry.ts +175 -0
  34. package/src/api/generated/ext_payments/schema.json +850 -0
  35. package/src/api/generated/ext_payments/storage.ts +161 -0
  36. package/src/api/generated/ext_payments/validation-events.ts +133 -0
  37. package/src/api/index.ts +9 -0
  38. package/src/config.ts +20 -0
  39. package/src/contexts/BalancesContext.tsx +62 -0
  40. package/src/contexts/CurrenciesContext.tsx +63 -0
  41. package/src/contexts/OverviewContext.tsx +173 -0
  42. package/src/contexts/PaymentsContext.tsx +121 -0
  43. package/src/contexts/PaymentsExtensionProvider.tsx +55 -0
  44. package/src/contexts/README.md +201 -0
  45. package/src/contexts/RootPaymentsContext.tsx +65 -0
  46. package/src/contexts/index.ts +45 -0
  47. package/src/contexts/types.ts +40 -0
  48. package/src/hooks/index.ts +20 -0
  49. package/src/index.ts +36 -0
  50. package/src/layouts/PaymentsLayout/PaymentsLayout.tsx +92 -0
  51. package/src/layouts/PaymentsLayout/components/CreatePaymentDialog.tsx +291 -0
  52. package/src/layouts/PaymentsLayout/components/PaymentDetailsDialog.tsx +290 -0
  53. package/src/layouts/PaymentsLayout/components/index.ts +2 -0
  54. package/src/layouts/PaymentsLayout/events.ts +47 -0
  55. package/src/layouts/PaymentsLayout/index.ts +16 -0
  56. package/src/layouts/PaymentsLayout/types.ts +6 -0
  57. package/src/layouts/PaymentsLayout/views/overview/components/BalanceCard.tsx +128 -0
  58. package/src/layouts/PaymentsLayout/views/overview/components/RecentPayments.tsx +142 -0
  59. package/src/layouts/PaymentsLayout/views/overview/components/index.ts +2 -0
  60. package/src/layouts/PaymentsLayout/views/overview/index.tsx +20 -0
  61. package/src/layouts/PaymentsLayout/views/payments/components/PaymentsList.tsx +277 -0
  62. package/src/layouts/PaymentsLayout/views/payments/components/index.ts +1 -0
  63. package/src/layouts/PaymentsLayout/views/payments/index.tsx +17 -0
  64. package/src/layouts/PaymentsLayout/views/transactions/components/TransactionsList.tsx +273 -0
  65. package/src/layouts/PaymentsLayout/views/transactions/components/index.ts +1 -0
  66. package/src/layouts/PaymentsLayout/views/transactions/index.tsx +17 -0
  67. package/src/utils/logger.ts +9 -0
@@ -0,0 +1,186 @@
1
+ import { API, PaymentList as PaymentList$1 } from './index.cjs';
2
+ export { APIClient, APIError, APILogger, APIOptions, Balance, BalanceSchema, CookieStorageAdapter, Currency, CurrencySchema, DEFAULT_RETRY_CONFIG, Enums, ErrorLog, ExtPaymentsPaymentsTypes, FailedAttemptInfo, FetchAdapter, Fetchers, HttpClientAdapter, HttpRequest, HttpResponse, LocalStorageAdapter, LoggerConfig, MemoryStorageAdapter, NetworkError, PAYMENT_EVENTS, PaginatedPaymentListList, PaginatedPaymentListListSchema, PaymentDetail, PaymentDetailSchema, PaymentEvent, PaymentListSchema, PaymentTab, PaymentsLayout, PaymentsLayoutProps, REFRESH_TOKEN_KEY, RequestLog, ResponseLog, RetryConfig, Schemas, StorageAdapter, TOKEN_KEY, Transaction, TransactionSchema, ValidationErrorDetail, ValidationErrorEvent, apiPayments, clearAPITokens, closePaymentsDialog, configureAPI, createPaymentsPaymentsConfirmCreate, createPaymentsPaymentsCreateCreate, dispatchValidationError, formatZodError, getAPIInstance, getPaymentsBalanceRetrieve, getPaymentsCurrenciesList, getPaymentsPaymentsList, getPaymentsPaymentsRetrieve, getPaymentsPaymentsStatusRetrieve, getPaymentsTransactionsList, isAPIConfigured, onValidationError, openCreatePaymentDialog, openPaymentDetailsDialog, reconfigureAPI, resetAPI, shouldRetry, withRetry } from './index.cjs';
3
+ import useSWR from 'swr';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import React, { ReactNode } from 'react';
6
+ import 'consola';
7
+ import 'zod';
8
+
9
+ /**
10
+ * SWR Hooks for Payments
11
+ *
12
+ * React hooks powered by SWR for data fetching with automatic caching,
13
+ * revalidation, and optimistic updates.
14
+ *
15
+ * Usage:
16
+ * ```typescript
17
+ * // Query hooks (GET)
18
+ * const { data, error, isLoading } = useUsers({ page: 1 })
19
+ *
20
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
21
+ * const createUser = useCreateUser()
22
+ * await createUser({ name: 'John', email: 'john@example.com' })
23
+ * ```
24
+ */
25
+
26
+ /**
27
+ * Get user balance
28
+ *
29
+ * @method GET
30
+ * @path /cfg/payments/balance/
31
+ */
32
+ declare function usePaymentsBalanceRetrieve(client?: API): ReturnType<typeof useSWR<Balance>>;
33
+ /**
34
+ * Get available currencies
35
+ *
36
+ * @method GET
37
+ * @path /cfg/payments/currencies/
38
+ */
39
+ declare function usePaymentsCurrenciesList(client?: API): ReturnType<typeof useSWR<any>>;
40
+ /**
41
+ * API operation
42
+ *
43
+ * @method GET
44
+ * @path /cfg/payments/payments/
45
+ */
46
+ declare function usePaymentsPaymentsList(params?: {
47
+ page?: number;
48
+ page_size?: number;
49
+ }, client?: API): ReturnType<typeof useSWR<PaginatedPaymentListList>>;
50
+ /**
51
+ * API operation
52
+ *
53
+ * @method GET
54
+ * @path /cfg/payments/payments/{id}/
55
+ */
56
+ declare function usePaymentsPaymentsRetrieve(id: string, client?: API): ReturnType<typeof useSWR<PaymentDetail>>;
57
+ /**
58
+ * API operation
59
+ *
60
+ * @method POST
61
+ * @path /cfg/payments/payments/{id}/confirm/
62
+ */
63
+ declare function useCreatePaymentsPaymentsConfirmCreate(): (id: string, client?: API) => Promise<PaymentList$1>;
64
+ /**
65
+ * API operation
66
+ *
67
+ * @method GET
68
+ * @path /cfg/payments/payments/{id}/status/
69
+ */
70
+ declare function usePaymentsPaymentsStatusRetrieve(id: string, client?: API): ReturnType<typeof useSWR<PaymentList>>;
71
+ /**
72
+ * API operation
73
+ *
74
+ * @method POST
75
+ * @path /cfg/payments/payments/create/
76
+ */
77
+ declare function useCreatePaymentsPaymentsCreateCreate(): (client?: API) => Promise<PaymentList$1>;
78
+ /**
79
+ * Get user transactions
80
+ *
81
+ * @method GET
82
+ * @path /cfg/payments/transactions/
83
+ */
84
+ declare function usePaymentsTransactionsList(params?: {
85
+ limit?: number;
86
+ offset?: number;
87
+ type?: string;
88
+ }, client?: API): ReturnType<typeof useSWR<any>>;
89
+
90
+ /**
91
+ * Payments Types
92
+ * Centralized type definitions for payments contexts
93
+ */
94
+
95
+ type PaginatedPaymentListList = NonNullable<Awaited<ReturnType<typeof usePaymentsPaymentsList>>['data']>;
96
+ type PaymentDetail = NonNullable<Awaited<ReturnType<typeof usePaymentsPaymentsRetrieve>>['data']>;
97
+ type PaymentList = NonNullable<Awaited<ReturnType<typeof usePaymentsPaymentsList>>['data']> extends {
98
+ results: infer T;
99
+ } ? T extends Array<infer U> ? U : never : never;
100
+
101
+ interface PaymentsContextValue {
102
+ payments: PaginatedPaymentListList | undefined;
103
+ isLoadingPayments: boolean;
104
+ paymentsError: Error | undefined;
105
+ refreshPayments: () => Promise<void>;
106
+ getPayment: (id: string) => Promise<PaymentDetail | undefined>;
107
+ createPayment: () => Promise<PaymentList>;
108
+ confirmPayment: (id: string) => Promise<PaymentList>;
109
+ checkPaymentStatus: (id: string) => Promise<PaymentList | undefined>;
110
+ }
111
+ declare function PaymentsProvider({ children }: {
112
+ children: ReactNode;
113
+ }): react_jsx_runtime.JSX.Element;
114
+ declare function usePaymentsContext(): PaymentsContextValue;
115
+
116
+ interface BalancesContextValue {
117
+ balance: any | undefined;
118
+ isLoadingBalance: boolean;
119
+ balanceError: Error | undefined;
120
+ refreshBalance: () => Promise<void>;
121
+ }
122
+ declare function BalancesProvider({ children }: {
123
+ children: ReactNode;
124
+ }): react_jsx_runtime.JSX.Element;
125
+ declare function useBalancesContext(): BalancesContextValue;
126
+
127
+ interface CurrenciesContextValue {
128
+ currencies: any | undefined;
129
+ isLoadingCurrencies: boolean;
130
+ currenciesError: Error | undefined;
131
+ refreshCurrencies: () => Promise<void>;
132
+ }
133
+ declare function CurrenciesProvider({ children }: {
134
+ children: ReactNode;
135
+ }): react_jsx_runtime.JSX.Element;
136
+ declare function useCurrenciesContext(): CurrenciesContextValue;
137
+
138
+ interface OverviewContextValue {
139
+ balance: any | undefined;
140
+ isLoadingBalance: boolean;
141
+ balanceError: Error | undefined;
142
+ refreshBalance: () => Promise<void>;
143
+ payments: PaginatedPaymentListList | undefined;
144
+ isLoadingPayments: boolean;
145
+ paymentsError: Error | undefined;
146
+ refreshPayments: () => Promise<void>;
147
+ transactions: any | undefined;
148
+ isLoadingTransactions: boolean;
149
+ transactionsError: Error | undefined;
150
+ refreshTransactions: () => Promise<void>;
151
+ createPayment: () => Promise<PaymentList>;
152
+ isLoadingOverview: boolean;
153
+ overviewError: Error | undefined;
154
+ refreshOverview: () => Promise<void>;
155
+ }
156
+ declare function OverviewProvider({ children }: {
157
+ children: ReactNode;
158
+ }): react_jsx_runtime.JSX.Element;
159
+ declare function useOverviewContext(): OverviewContextValue;
160
+
161
+ interface RootPaymentsContextValue {
162
+ currencies: any | undefined;
163
+ isLoadingCurrencies: boolean;
164
+ currenciesError: Error | undefined;
165
+ refreshCurrencies: () => Promise<void>;
166
+ }
167
+ declare function RootPaymentsProvider({ children }: {
168
+ children: ReactNode;
169
+ }): react_jsx_runtime.JSX.Element;
170
+ declare function useRootPaymentsContext(): RootPaymentsContextValue;
171
+
172
+ /**
173
+ * Create Payment Dialog (v2.0 - Simplified)
174
+ * Dialog for creating new payments
175
+ */
176
+
177
+ declare const CreatePaymentDialog: React.FC;
178
+
179
+ /**
180
+ * Payment Details Dialog (v2.0 - Simplified)
181
+ * Shows payment details with QR code, address, and status
182
+ */
183
+
184
+ declare const PaymentDetailsDialog: React.FC;
185
+
186
+ export { API, type BalancesContextValue, BalancesProvider, CreatePaymentDialog, type CurrenciesContextValue, CurrenciesProvider, type OverviewContextValue, OverviewProvider, PaymentDetailsDialog, PaymentList$1 as PaymentList, type PaymentsContextValue, PaymentsProvider, type RootPaymentsContextValue, RootPaymentsProvider, useBalancesContext, useCreatePaymentsPaymentsConfirmCreate, useCreatePaymentsPaymentsCreateCreate, useCurrenciesContext, useOverviewContext, usePaymentsBalanceRetrieve, usePaymentsContext, usePaymentsCurrenciesList, usePaymentsPaymentsList, usePaymentsPaymentsRetrieve, usePaymentsPaymentsStatusRetrieve, usePaymentsTransactionsList, useRootPaymentsContext };
@@ -0,0 +1,186 @@
1
+ import { API, PaymentList as PaymentList$1 } from './index.js';
2
+ export { APIClient, APIError, APILogger, APIOptions, Balance, BalanceSchema, CookieStorageAdapter, Currency, CurrencySchema, DEFAULT_RETRY_CONFIG, Enums, ErrorLog, ExtPaymentsPaymentsTypes, FailedAttemptInfo, FetchAdapter, Fetchers, HttpClientAdapter, HttpRequest, HttpResponse, LocalStorageAdapter, LoggerConfig, MemoryStorageAdapter, NetworkError, PAYMENT_EVENTS, PaginatedPaymentListList, PaginatedPaymentListListSchema, PaymentDetail, PaymentDetailSchema, PaymentEvent, PaymentListSchema, PaymentTab, PaymentsLayout, PaymentsLayoutProps, REFRESH_TOKEN_KEY, RequestLog, ResponseLog, RetryConfig, Schemas, StorageAdapter, TOKEN_KEY, Transaction, TransactionSchema, ValidationErrorDetail, ValidationErrorEvent, apiPayments, clearAPITokens, closePaymentsDialog, configureAPI, createPaymentsPaymentsConfirmCreate, createPaymentsPaymentsCreateCreate, dispatchValidationError, formatZodError, getAPIInstance, getPaymentsBalanceRetrieve, getPaymentsCurrenciesList, getPaymentsPaymentsList, getPaymentsPaymentsRetrieve, getPaymentsPaymentsStatusRetrieve, getPaymentsTransactionsList, isAPIConfigured, onValidationError, openCreatePaymentDialog, openPaymentDetailsDialog, reconfigureAPI, resetAPI, shouldRetry, withRetry } from './index.js';
3
+ import useSWR from 'swr';
4
+ import * as react_jsx_runtime from 'react/jsx-runtime';
5
+ import React, { ReactNode } from 'react';
6
+ import 'consola';
7
+ import 'zod';
8
+
9
+ /**
10
+ * SWR Hooks for Payments
11
+ *
12
+ * React hooks powered by SWR for data fetching with automatic caching,
13
+ * revalidation, and optimistic updates.
14
+ *
15
+ * Usage:
16
+ * ```typescript
17
+ * // Query hooks (GET)
18
+ * const { data, error, isLoading } = useUsers({ page: 1 })
19
+ *
20
+ * // Mutation hooks (POST/PUT/PATCH/DELETE)
21
+ * const createUser = useCreateUser()
22
+ * await createUser({ name: 'John', email: 'john@example.com' })
23
+ * ```
24
+ */
25
+
26
+ /**
27
+ * Get user balance
28
+ *
29
+ * @method GET
30
+ * @path /cfg/payments/balance/
31
+ */
32
+ declare function usePaymentsBalanceRetrieve(client?: API): ReturnType<typeof useSWR<Balance>>;
33
+ /**
34
+ * Get available currencies
35
+ *
36
+ * @method GET
37
+ * @path /cfg/payments/currencies/
38
+ */
39
+ declare function usePaymentsCurrenciesList(client?: API): ReturnType<typeof useSWR<any>>;
40
+ /**
41
+ * API operation
42
+ *
43
+ * @method GET
44
+ * @path /cfg/payments/payments/
45
+ */
46
+ declare function usePaymentsPaymentsList(params?: {
47
+ page?: number;
48
+ page_size?: number;
49
+ }, client?: API): ReturnType<typeof useSWR<PaginatedPaymentListList>>;
50
+ /**
51
+ * API operation
52
+ *
53
+ * @method GET
54
+ * @path /cfg/payments/payments/{id}/
55
+ */
56
+ declare function usePaymentsPaymentsRetrieve(id: string, client?: API): ReturnType<typeof useSWR<PaymentDetail>>;
57
+ /**
58
+ * API operation
59
+ *
60
+ * @method POST
61
+ * @path /cfg/payments/payments/{id}/confirm/
62
+ */
63
+ declare function useCreatePaymentsPaymentsConfirmCreate(): (id: string, client?: API) => Promise<PaymentList$1>;
64
+ /**
65
+ * API operation
66
+ *
67
+ * @method GET
68
+ * @path /cfg/payments/payments/{id}/status/
69
+ */
70
+ declare function usePaymentsPaymentsStatusRetrieve(id: string, client?: API): ReturnType<typeof useSWR<PaymentList>>;
71
+ /**
72
+ * API operation
73
+ *
74
+ * @method POST
75
+ * @path /cfg/payments/payments/create/
76
+ */
77
+ declare function useCreatePaymentsPaymentsCreateCreate(): (client?: API) => Promise<PaymentList$1>;
78
+ /**
79
+ * Get user transactions
80
+ *
81
+ * @method GET
82
+ * @path /cfg/payments/transactions/
83
+ */
84
+ declare function usePaymentsTransactionsList(params?: {
85
+ limit?: number;
86
+ offset?: number;
87
+ type?: string;
88
+ }, client?: API): ReturnType<typeof useSWR<any>>;
89
+
90
+ /**
91
+ * Payments Types
92
+ * Centralized type definitions for payments contexts
93
+ */
94
+
95
+ type PaginatedPaymentListList = NonNullable<Awaited<ReturnType<typeof usePaymentsPaymentsList>>['data']>;
96
+ type PaymentDetail = NonNullable<Awaited<ReturnType<typeof usePaymentsPaymentsRetrieve>>['data']>;
97
+ type PaymentList = NonNullable<Awaited<ReturnType<typeof usePaymentsPaymentsList>>['data']> extends {
98
+ results: infer T;
99
+ } ? T extends Array<infer U> ? U : never : never;
100
+
101
+ interface PaymentsContextValue {
102
+ payments: PaginatedPaymentListList | undefined;
103
+ isLoadingPayments: boolean;
104
+ paymentsError: Error | undefined;
105
+ refreshPayments: () => Promise<void>;
106
+ getPayment: (id: string) => Promise<PaymentDetail | undefined>;
107
+ createPayment: () => Promise<PaymentList>;
108
+ confirmPayment: (id: string) => Promise<PaymentList>;
109
+ checkPaymentStatus: (id: string) => Promise<PaymentList | undefined>;
110
+ }
111
+ declare function PaymentsProvider({ children }: {
112
+ children: ReactNode;
113
+ }): react_jsx_runtime.JSX.Element;
114
+ declare function usePaymentsContext(): PaymentsContextValue;
115
+
116
+ interface BalancesContextValue {
117
+ balance: any | undefined;
118
+ isLoadingBalance: boolean;
119
+ balanceError: Error | undefined;
120
+ refreshBalance: () => Promise<void>;
121
+ }
122
+ declare function BalancesProvider({ children }: {
123
+ children: ReactNode;
124
+ }): react_jsx_runtime.JSX.Element;
125
+ declare function useBalancesContext(): BalancesContextValue;
126
+
127
+ interface CurrenciesContextValue {
128
+ currencies: any | undefined;
129
+ isLoadingCurrencies: boolean;
130
+ currenciesError: Error | undefined;
131
+ refreshCurrencies: () => Promise<void>;
132
+ }
133
+ declare function CurrenciesProvider({ children }: {
134
+ children: ReactNode;
135
+ }): react_jsx_runtime.JSX.Element;
136
+ declare function useCurrenciesContext(): CurrenciesContextValue;
137
+
138
+ interface OverviewContextValue {
139
+ balance: any | undefined;
140
+ isLoadingBalance: boolean;
141
+ balanceError: Error | undefined;
142
+ refreshBalance: () => Promise<void>;
143
+ payments: PaginatedPaymentListList | undefined;
144
+ isLoadingPayments: boolean;
145
+ paymentsError: Error | undefined;
146
+ refreshPayments: () => Promise<void>;
147
+ transactions: any | undefined;
148
+ isLoadingTransactions: boolean;
149
+ transactionsError: Error | undefined;
150
+ refreshTransactions: () => Promise<void>;
151
+ createPayment: () => Promise<PaymentList>;
152
+ isLoadingOverview: boolean;
153
+ overviewError: Error | undefined;
154
+ refreshOverview: () => Promise<void>;
155
+ }
156
+ declare function OverviewProvider({ children }: {
157
+ children: ReactNode;
158
+ }): react_jsx_runtime.JSX.Element;
159
+ declare function useOverviewContext(): OverviewContextValue;
160
+
161
+ interface RootPaymentsContextValue {
162
+ currencies: any | undefined;
163
+ isLoadingCurrencies: boolean;
164
+ currenciesError: Error | undefined;
165
+ refreshCurrencies: () => Promise<void>;
166
+ }
167
+ declare function RootPaymentsProvider({ children }: {
168
+ children: ReactNode;
169
+ }): react_jsx_runtime.JSX.Element;
170
+ declare function useRootPaymentsContext(): RootPaymentsContextValue;
171
+
172
+ /**
173
+ * Create Payment Dialog (v2.0 - Simplified)
174
+ * Dialog for creating new payments
175
+ */
176
+
177
+ declare const CreatePaymentDialog: React.FC;
178
+
179
+ /**
180
+ * Payment Details Dialog (v2.0 - Simplified)
181
+ * Shows payment details with QR code, address, and status
182
+ */
183
+
184
+ declare const PaymentDetailsDialog: React.FC;
185
+
186
+ export { API, type BalancesContextValue, BalancesProvider, CreatePaymentDialog, type CurrenciesContextValue, CurrenciesProvider, type OverviewContextValue, OverviewProvider, PaymentDetailsDialog, PaymentList$1 as PaymentList, type PaymentsContextValue, PaymentsProvider, type RootPaymentsContextValue, RootPaymentsProvider, useBalancesContext, useCreatePaymentsPaymentsConfirmCreate, useCreatePaymentsPaymentsCreateCreate, useCurrenciesContext, useOverviewContext, usePaymentsBalanceRetrieve, usePaymentsContext, usePaymentsCurrenciesList, usePaymentsPaymentsList, usePaymentsPaymentsRetrieve, usePaymentsPaymentsStatusRetrieve, usePaymentsTransactionsList, useRootPaymentsContext };
package/dist/hooks.js ADDED
@@ -0,0 +1 @@
1
+ export { API, APIClient, APIError, APILogger, BalanceSchema, BalancesProvider, CookieStorageAdapter, CreatePaymentDialog, CurrenciesProvider, CurrencySchema, DEFAULT_RETRY_CONFIG, enums_exports as Enums, models_exports as ExtPaymentsPaymentsTypes, FetchAdapter, fetchers_exports as Fetchers, LocalStorageAdapter, MemoryStorageAdapter, NetworkError, OverviewProvider, PAYMENT_EVENTS, PaginatedPaymentListListSchema, PaymentDetailSchema, PaymentDetailsDialog, PaymentListSchema, PaymentsLayout, PaymentsProvider, REFRESH_TOKEN_KEY, RootPaymentsProvider, schemas_exports as Schemas, TOKEN_KEY, TransactionSchema, apiPayments, clearAPITokens, closePaymentsDialog, configureAPI, createPaymentsPaymentsConfirmCreate, createPaymentsPaymentsCreateCreate, dispatchValidationError, formatZodError, getAPIInstance, getPaymentsBalanceRetrieve, getPaymentsCurrenciesList, getPaymentsPaymentsList, getPaymentsPaymentsRetrieve, getPaymentsPaymentsStatusRetrieve, getPaymentsTransactionsList, isAPIConfigured, onValidationError, openCreatePaymentDialog, openPaymentDetailsDialog, reconfigureAPI, resetAPI, shouldRetry, useBalancesContext, useCreatePaymentsPaymentsConfirmCreate, useCreatePaymentsPaymentsCreateCreate, useCurrenciesContext, useOverviewContext, usePaymentsBalanceRetrieve, usePaymentsContext, usePaymentsCurrenciesList, usePaymentsPaymentsList, usePaymentsPaymentsRetrieve, usePaymentsPaymentsStatusRetrieve, usePaymentsTransactionsList, useRootPaymentsContext, withRetry } from './chunk-5KY6HVXF.js';