@mft/moneyhub-api-client 5.0.0-4 → 5.0.1
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/.dccache +1 -0
- package/dist/exchange-code-for-token.d.ts +23 -0
- package/dist/exchange-code-for-token.d.ts.map +1 -0
- package/dist/{src/exchange-code-for-token.js → exchange-code-for-token.js} +30 -7
- package/dist/exchange-code-for-token.js.map +1 -0
- package/dist/get-auth-urls.d.ts +150 -0
- package/dist/get-auth-urls.d.ts.map +1 -0
- package/dist/{src/get-auth-urls.js → get-auth-urls.js} +63 -33
- package/dist/get-auth-urls.js.map +1 -0
- package/dist/index.d.ts +594 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/{src/index.js → index.js} +3 -3
- package/dist/index.js.map +1 -0
- package/dist/request.d.ts +40 -0
- package/dist/request.d.ts.map +1 -0
- package/dist/request.js +82 -0
- package/dist/request.js.map +1 -0
- package/dist/requests/accounts.d.ts +5 -0
- package/dist/requests/accounts.d.ts.map +1 -0
- package/dist/{src/requests → requests}/accounts.js +0 -0
- package/dist/requests/accounts.js.map +1 -0
- package/dist/requests/affordability.d.ts +16 -0
- package/dist/requests/affordability.d.ts.map +1 -0
- package/dist/requests/affordability.js +30 -0
- package/dist/requests/affordability.js.map +1 -0
- package/dist/requests/auth-requests.d.ts +5 -0
- package/dist/requests/auth-requests.d.ts.map +1 -0
- package/dist/{src/requests → requests}/auth-requests.js +0 -0
- package/dist/requests/auth-requests.js.map +1 -0
- package/dist/requests/beneficiaries.d.ts +5 -0
- package/dist/requests/beneficiaries.d.ts.map +1 -0
- package/dist/{src/requests → requests}/beneficiaries.js +0 -0
- package/dist/requests/beneficiaries.js.map +1 -0
- package/dist/requests/categories.d.ts +5 -0
- package/dist/requests/categories.d.ts.map +1 -0
- package/dist/{src/requests → requests}/categories.js +0 -0
- package/dist/requests/categories.js.map +1 -0
- package/dist/requests/index.d.ts +406 -0
- package/dist/requests/index.d.ts.map +1 -0
- package/dist/{src/requests → requests}/index.js +2 -0
- package/dist/requests/index.js.map +1 -0
- package/dist/requests/payees.d.ts +5 -0
- package/dist/requests/payees.d.ts.map +1 -0
- package/dist/{src/requests → requests}/payees.js +0 -0
- package/dist/requests/payees.js.map +1 -0
- package/dist/requests/payments.d.ts +5 -0
- package/dist/requests/payments.d.ts.map +1 -0
- package/dist/{src/requests → requests}/payments.js +0 -0
- package/dist/requests/payments.js.map +1 -0
- package/dist/requests/projects.d.ts +5 -0
- package/dist/requests/projects.d.ts.map +1 -0
- package/dist/{src/requests → requests}/projects.js +0 -0
- package/dist/requests/projects.js.map +1 -0
- package/dist/requests/recurring-payments.d.ts +5 -0
- package/dist/requests/recurring-payments.d.ts.map +1 -0
- package/dist/{src/requests → requests}/recurring-payments.js +0 -0
- package/dist/requests/recurring-payments.js.map +1 -0
- package/dist/requests/regular-transactions.d.ts +5 -0
- package/dist/requests/regular-transactions.d.ts.map +1 -0
- package/dist/{src/requests → requests}/regular-transactions.js +0 -0
- package/dist/requests/regular-transactions.js.map +1 -0
- package/dist/requests/rental-records.d.ts +5 -0
- package/dist/requests/rental-records.d.ts.map +1 -0
- package/dist/{src/requests → requests}/rental-records.js +0 -0
- package/dist/requests/rental-records.js.map +1 -0
- package/dist/requests/savings-goals.d.ts +5 -0
- package/dist/requests/savings-goals.d.ts.map +1 -0
- package/dist/{src/requests → requests}/savings-goals.js +0 -0
- package/dist/requests/savings-goals.js.map +1 -0
- package/dist/requests/spending-analysis.d.ts +5 -0
- package/dist/requests/spending-analysis.d.ts.map +1 -0
- package/dist/{src/requests → requests}/spending-analysis.js +0 -0
- package/dist/requests/spending-analysis.js.map +1 -0
- package/dist/requests/spending-goals.d.ts +5 -0
- package/dist/requests/spending-goals.d.ts.map +1 -0
- package/dist/{src/requests → requests}/spending-goals.js +0 -0
- package/dist/requests/spending-goals.js.map +1 -0
- package/dist/requests/standing-orders.d.ts +5 -0
- package/dist/requests/standing-orders.d.ts.map +1 -0
- package/dist/{src/requests → requests}/standing-orders.js +0 -0
- package/dist/requests/standing-orders.js.map +1 -0
- package/dist/requests/sync.d.ts +5 -0
- package/dist/requests/sync.d.ts.map +1 -0
- package/dist/{src/requests → requests}/sync.js +0 -0
- package/dist/requests/sync.js.map +1 -0
- package/dist/requests/tax.d.ts +5 -0
- package/dist/requests/tax.d.ts.map +1 -0
- package/dist/{src/requests → requests}/tax.js +0 -0
- package/dist/requests/tax.js.map +1 -0
- package/dist/requests/transaction-files.d.ts +5 -0
- package/dist/requests/transaction-files.d.ts.map +1 -0
- package/dist/{src/requests → requests}/transaction-files.js +3 -3
- package/dist/requests/transaction-files.js.map +1 -0
- package/dist/requests/transaction-splits.d.ts +5 -0
- package/dist/requests/transaction-splits.d.ts.map +1 -0
- package/dist/{src/requests → requests}/transaction-splits.js +0 -0
- package/dist/requests/transaction-splits.js.map +1 -0
- package/dist/requests/transactions.d.ts +5 -0
- package/dist/requests/transactions.d.ts.map +1 -0
- package/dist/{src/requests → requests}/transactions.js +0 -0
- package/dist/requests/transactions.js.map +1 -0
- package/dist/requests/types/accounts.d.ts +67 -0
- package/dist/requests/types/accounts.d.ts.map +1 -0
- package/dist/requests/types/accounts.js +3 -0
- package/dist/requests/types/accounts.js.map +1 -0
- package/dist/requests/types/auth-requests.d.ts +38 -0
- package/dist/requests/types/auth-requests.d.ts.map +1 -0
- package/dist/requests/types/auth-requests.js +3 -0
- package/dist/requests/types/auth-requests.js.map +1 -0
- package/dist/requests/types/beneficiaries.d.ts +21 -0
- package/dist/requests/types/beneficiaries.d.ts.map +1 -0
- package/dist/requests/types/beneficiaries.js +3 -0
- package/dist/requests/types/beneficiaries.js.map +1 -0
- package/dist/requests/types/categories.d.ts +38 -0
- package/dist/requests/types/categories.d.ts.map +1 -0
- package/dist/requests/types/categories.js +3 -0
- package/dist/requests/types/categories.js.map +1 -0
- package/dist/requests/types/payees.d.ts +16 -0
- package/dist/requests/types/payees.d.ts.map +1 -0
- package/dist/requests/types/payees.js +3 -0
- package/dist/requests/types/payees.js.map +1 -0
- package/dist/requests/types/payments.d.ts +12 -0
- package/dist/requests/types/payments.d.ts.map +1 -0
- package/dist/requests/types/payments.js +3 -0
- package/dist/requests/types/payments.js.map +1 -0
- package/dist/requests/types/projects.d.ts +26 -0
- package/dist/requests/types/projects.d.ts.map +1 -0
- package/dist/requests/types/projects.js +3 -0
- package/dist/requests/types/projects.js.map +1 -0
- package/dist/requests/types/recurring-payments.d.ts +16 -0
- package/dist/requests/types/recurring-payments.d.ts.map +1 -0
- package/dist/requests/types/recurring-payments.js +3 -0
- package/dist/requests/types/recurring-payments.js.map +1 -0
- package/dist/requests/types/regular-transactions.d.ts +9 -0
- package/dist/requests/types/regular-transactions.d.ts.map +1 -0
- package/dist/requests/types/regular-transactions.js +3 -0
- package/dist/requests/types/regular-transactions.js.map +1 -0
- package/dist/requests/types/rental-records.d.ts +16 -0
- package/dist/requests/types/rental-records.d.ts.map +1 -0
- package/dist/requests/types/rental-records.js +3 -0
- package/dist/requests/types/rental-records.js.map +1 -0
- package/dist/requests/types/savings-goals.d.ts +40 -0
- package/dist/requests/types/savings-goals.d.ts.map +1 -0
- package/dist/requests/types/savings-goals.js +3 -0
- package/dist/requests/types/savings-goals.js.map +1 -0
- package/dist/requests/types/spending-analysis.d.ts +18 -0
- package/dist/requests/types/spending-analysis.d.ts.map +1 -0
- package/dist/requests/types/spending-analysis.js +3 -0
- package/dist/requests/types/spending-analysis.js.map +1 -0
- package/dist/requests/types/spending-goals.d.ts +32 -0
- package/dist/requests/types/spending-goals.d.ts.map +1 -0
- package/dist/requests/types/spending-goals.js +3 -0
- package/dist/requests/types/spending-goals.js.map +1 -0
- package/dist/requests/types/standing-orders.d.ts +9 -0
- package/dist/requests/types/standing-orders.d.ts.map +1 -0
- package/dist/requests/types/standing-orders.js +3 -0
- package/dist/requests/types/standing-orders.js.map +1 -0
- package/dist/requests/types/sync.d.ts +11 -0
- package/dist/requests/types/sync.d.ts.map +1 -0
- package/dist/requests/types/sync.js +3 -0
- package/dist/requests/types/sync.js.map +1 -0
- package/dist/requests/types/tax.d.ts +9 -0
- package/dist/requests/types/tax.d.ts.map +1 -0
- package/dist/requests/types/tax.js +3 -0
- package/dist/requests/types/tax.js.map +1 -0
- package/dist/requests/types/transaction-files.d.ts +25 -0
- package/dist/requests/types/transaction-files.d.ts.map +1 -0
- package/dist/requests/types/transaction-files.js +3 -0
- package/dist/requests/types/transaction-files.js.map +1 -0
- package/dist/requests/types/transaction-splits.d.ts +24 -0
- package/dist/requests/types/transaction-splits.d.ts.map +1 -0
- package/dist/requests/types/transaction-splits.js +3 -0
- package/dist/requests/types/transaction-splits.js.map +1 -0
- package/dist/requests/types/transactions.d.ts +35 -0
- package/dist/requests/types/transactions.d.ts.map +1 -0
- package/dist/requests/types/transactions.js +3 -0
- package/dist/requests/types/transactions.js.map +1 -0
- package/dist/requests/types/unauthenticated.d.ts +12 -0
- package/dist/requests/types/unauthenticated.d.ts.map +1 -0
- package/dist/requests/types/unauthenticated.js +3 -0
- package/dist/requests/types/unauthenticated.js.map +1 -0
- package/dist/requests/types/users-and-connections.d.ts +39 -0
- package/dist/requests/types/users-and-connections.d.ts.map +1 -0
- package/dist/requests/types/users-and-connections.js +3 -0
- package/dist/requests/types/users-and-connections.js.map +1 -0
- package/dist/requests/unauthenticated.d.ts +5 -0
- package/dist/requests/unauthenticated.d.ts.map +1 -0
- package/dist/{src/requests → requests}/unauthenticated.js +0 -0
- package/dist/requests/unauthenticated.js.map +1 -0
- package/dist/requests/users-and-connections.d.ts +5 -0
- package/dist/requests/users-and-connections.d.ts.map +1 -0
- package/dist/{src/requests → requests}/users-and-connections.js +0 -0
- package/dist/requests/users-and-connections.js.map +1 -0
- package/dist/schema/account.d.ts +79 -0
- package/dist/schema/account.d.ts.map +1 -0
- package/dist/schema/account.js +3 -0
- package/dist/schema/account.js.map +1 -0
- package/dist/schema/affordability.d.ts +41 -0
- package/dist/schema/affordability.d.ts.map +1 -0
- package/dist/schema/affordability.js +3 -0
- package/dist/schema/affordability.js.map +1 -0
- package/dist/schema/amount.d.ts +7 -0
- package/dist/schema/amount.d.ts.map +1 -0
- package/dist/schema/amount.js +3 -0
- package/dist/schema/amount.js.map +1 -0
- package/dist/schema/auth-request.d.ts +26 -0
- package/dist/schema/auth-request.d.ts.map +1 -0
- package/dist/schema/auth-request.js +3 -0
- package/dist/schema/auth-request.js.map +1 -0
- package/dist/schema/balance.d.ts +19 -0
- package/dist/schema/balance.d.ts.map +1 -0
- package/dist/schema/balance.js +3 -0
- package/dist/schema/balance.js.map +1 -0
- package/dist/schema/beneficiary.d.ts +19 -0
- package/dist/schema/beneficiary.d.ts.map +1 -0
- package/dist/schema/beneficiary.js +3 -0
- package/dist/schema/beneficiary.js.map +1 -0
- package/dist/schema/category.d.ts +16 -0
- package/dist/schema/category.d.ts.map +1 -0
- package/dist/schema/category.js +3 -0
- package/dist/schema/category.js.map +1 -0
- package/dist/schema/config.d.ts +66 -0
- package/dist/schema/config.d.ts.map +1 -0
- package/dist/schema/config.js +3 -0
- package/dist/schema/config.js.map +1 -0
- package/dist/schema/connection.d.ts +40 -0
- package/dist/schema/connection.d.ts.map +1 -0
- package/dist/schema/connection.js +3 -0
- package/dist/schema/connection.js.map +1 -0
- package/dist/schema/counterparty.d.ts +30 -0
- package/dist/schema/counterparty.d.ts.map +1 -0
- package/dist/schema/counterparty.js +3 -0
- package/dist/schema/counterparty.js.map +1 -0
- package/dist/schema/holding.d.ts +51 -0
- package/dist/schema/holding.d.ts.map +1 -0
- package/dist/schema/holding.js +3 -0
- package/dist/schema/holding.js.map +1 -0
- package/dist/schema/payee.d.ts +18 -0
- package/dist/schema/payee.d.ts.map +1 -0
- package/dist/schema/payee.js +3 -0
- package/dist/schema/payee.js.map +1 -0
- package/dist/schema/payment.d.ts +112 -0
- package/dist/schema/payment.d.ts.map +1 -0
- package/dist/schema/payment.js +3 -0
- package/dist/schema/payment.js.map +1 -0
- package/dist/schema/project.d.ts +21 -0
- package/dist/schema/project.d.ts.map +1 -0
- package/dist/schema/project.js +3 -0
- package/dist/schema/project.js.map +1 -0
- package/dist/schema/regular-transaction.d.ts +31 -0
- package/dist/schema/regular-transaction.d.ts.map +1 -0
- package/dist/schema/regular-transaction.js +3 -0
- package/dist/schema/regular-transaction.js.map +1 -0
- package/dist/schema/rental-record.d.ts +40 -0
- package/dist/schema/rental-record.d.ts.map +1 -0
- package/dist/schema/rental-record.js +3 -0
- package/dist/schema/rental-record.js.map +1 -0
- package/dist/schema/savings-goal.d.ts +15 -0
- package/dist/schema/savings-goal.d.ts.map +1 -0
- package/dist/schema/savings-goal.js +3 -0
- package/dist/schema/savings-goal.js.map +1 -0
- package/dist/schema/spending-analysis.d.ts +14 -0
- package/dist/schema/spending-analysis.d.ts.map +1 -0
- package/dist/schema/spending-analysis.js +3 -0
- package/dist/schema/spending-analysis.js.map +1 -0
- package/dist/schema/spending-goal.d.ts +17 -0
- package/dist/schema/spending-goal.d.ts.map +1 -0
- package/dist/schema/spending-goal.js +3 -0
- package/dist/schema/spending-goal.js.map +1 -0
- package/dist/schema/standing-order.d.ts +65 -0
- package/dist/schema/standing-order.d.ts.map +1 -0
- package/dist/schema/standing-order.js +3 -0
- package/dist/schema/standing-order.js.map +1 -0
- package/dist/schema/sync.d.ts +20 -0
- package/dist/schema/sync.d.ts.map +1 -0
- package/dist/schema/sync.js +3 -0
- package/dist/schema/sync.js.map +1 -0
- package/dist/schema/tax.d.ts +35 -0
- package/dist/schema/tax.d.ts.map +1 -0
- package/dist/schema/tax.js +3 -0
- package/dist/schema/tax.js.map +1 -0
- package/dist/schema/transaction.d.ts +126 -0
- package/dist/schema/transaction.d.ts.map +1 -0
- package/dist/schema/transaction.js +3 -0
- package/dist/schema/transaction.js.map +1 -0
- package/dist/schema/user.d.ts +15 -0
- package/dist/schema/user.d.ts.map +1 -0
- package/dist/schema/user.js +3 -0
- package/dist/schema/user.js.map +1 -0
- package/dist/tokens.d.ts +31 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +128 -0
- package/dist/tokens.js.map +1 -0
- package/dist/types/requests/categories.d.ts +7 -7
- package/dist/types/requests/categories.d.ts.map +1 -1
- package/dist/types/schema/category.d.ts +0 -4
- package/dist/types/schema/category.d.ts.map +1 -1
- package/dist/types/schema/connection.d.ts +0 -1
- package/dist/types/schema/connection.d.ts.map +1 -1
- package/package.json +13 -21
- package/readme.md +2 -0
- package/dist/src/exchange-code-for-token.d.ts +0 -9
- package/dist/src/exchange-code-for-token.d.ts.map +0 -1
- package/dist/src/exchange-code-for-token.js.map +0 -1
- package/dist/src/get-auth-urls.d.ts +0 -142
- package/dist/src/get-auth-urls.d.ts.map +0 -1
- package/dist/src/get-auth-urls.js.map +0 -1
- package/dist/src/index.d.ts +0 -25
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js.map +0 -1
- package/dist/src/request.d.ts +0 -8
- package/dist/src/request.d.ts.map +0 -1
- package/dist/src/request.js +0 -53
- package/dist/src/request.js.map +0 -1
- package/dist/src/requests/accounts.d.ts +0 -5
- package/dist/src/requests/accounts.d.ts.map +0 -1
- package/dist/src/requests/accounts.js.map +0 -1
- package/dist/src/requests/auth-requests.d.ts +0 -5
- package/dist/src/requests/auth-requests.d.ts.map +0 -1
- package/dist/src/requests/auth-requests.js.map +0 -1
- package/dist/src/requests/beneficiaries.d.ts +0 -5
- package/dist/src/requests/beneficiaries.d.ts.map +0 -1
- package/dist/src/requests/beneficiaries.js.map +0 -1
- package/dist/src/requests/categories.d.ts +0 -5
- package/dist/src/requests/categories.d.ts.map +0 -1
- package/dist/src/requests/categories.js.map +0 -1
- package/dist/src/requests/index.d.ts +0 -5
- package/dist/src/requests/index.d.ts.map +0 -1
- package/dist/src/requests/index.js.map +0 -1
- package/dist/src/requests/payees.d.ts +0 -5
- package/dist/src/requests/payees.d.ts.map +0 -1
- package/dist/src/requests/payees.js.map +0 -1
- package/dist/src/requests/payments.d.ts +0 -5
- package/dist/src/requests/payments.d.ts.map +0 -1
- package/dist/src/requests/payments.js.map +0 -1
- package/dist/src/requests/projects.d.ts +0 -5
- package/dist/src/requests/projects.d.ts.map +0 -1
- package/dist/src/requests/projects.js.map +0 -1
- package/dist/src/requests/recurring-payments.d.ts +0 -5
- package/dist/src/requests/recurring-payments.d.ts.map +0 -1
- package/dist/src/requests/recurring-payments.js.map +0 -1
- package/dist/src/requests/regular-transactions.d.ts +0 -5
- package/dist/src/requests/regular-transactions.d.ts.map +0 -1
- package/dist/src/requests/regular-transactions.js.map +0 -1
- package/dist/src/requests/rental-records.d.ts +0 -5
- package/dist/src/requests/rental-records.d.ts.map +0 -1
- package/dist/src/requests/rental-records.js.map +0 -1
- package/dist/src/requests/savings-goals.d.ts +0 -5
- package/dist/src/requests/savings-goals.d.ts.map +0 -1
- package/dist/src/requests/savings-goals.js.map +0 -1
- package/dist/src/requests/spending-analysis.d.ts +0 -5
- package/dist/src/requests/spending-analysis.d.ts.map +0 -1
- package/dist/src/requests/spending-analysis.js.map +0 -1
- package/dist/src/requests/spending-goals.d.ts +0 -5
- package/dist/src/requests/spending-goals.d.ts.map +0 -1
- package/dist/src/requests/spending-goals.js.map +0 -1
- package/dist/src/requests/standing-orders.d.ts +0 -5
- package/dist/src/requests/standing-orders.d.ts.map +0 -1
- package/dist/src/requests/standing-orders.js.map +0 -1
- package/dist/src/requests/sync.d.ts +0 -5
- package/dist/src/requests/sync.d.ts.map +0 -1
- package/dist/src/requests/sync.js.map +0 -1
- package/dist/src/requests/tax.d.ts +0 -5
- package/dist/src/requests/tax.d.ts.map +0 -1
- package/dist/src/requests/tax.js.map +0 -1
- package/dist/src/requests/transaction-files.d.ts +0 -5
- package/dist/src/requests/transaction-files.d.ts.map +0 -1
- package/dist/src/requests/transaction-files.js.map +0 -1
- package/dist/src/requests/transaction-splits.d.ts +0 -5
- package/dist/src/requests/transaction-splits.d.ts.map +0 -1
- package/dist/src/requests/transaction-splits.js.map +0 -1
- package/dist/src/requests/transactions.d.ts +0 -5
- package/dist/src/requests/transactions.d.ts.map +0 -1
- package/dist/src/requests/transactions.js.map +0 -1
- package/dist/src/requests/unauthenticated.d.ts +0 -5
- package/dist/src/requests/unauthenticated.d.ts.map +0 -1
- package/dist/src/requests/unauthenticated.js.map +0 -1
- package/dist/src/requests/users-and-connections.d.ts +0 -5
- package/dist/src/requests/users-and-connections.d.ts.map +0 -1
- package/dist/src/requests/users-and-connections.js.map +0 -1
- package/dist/src/tokens.d.ts +0 -24
- package/dist/src/tokens.d.ts.map +0 -1
- package/dist/src/tokens.js +0 -64
- package/dist/src/tokens.js.map +0 -1
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,594 @@
|
|
|
1
|
+
import { generators } from "openid-client";
|
|
2
|
+
import type { ApiClientConfig } from "./schema/config";
|
|
3
|
+
declare const _Moneyhub: (apiClientConfig: ApiClientConfig) => Promise<{
|
|
4
|
+
keys: () => {
|
|
5
|
+
keys: import("./schema/config").JSONWebKey[];
|
|
6
|
+
} | null;
|
|
7
|
+
generators: typeof generators;
|
|
8
|
+
registerUser: ({ clientUserId, }: {
|
|
9
|
+
clientUserId: string;
|
|
10
|
+
}) => Promise<Users.User>;
|
|
11
|
+
getUsers: (params?: import("./request").SearchParams | undefined) => Promise<import("./request").ApiResponse<Users.User[]>>;
|
|
12
|
+
getSCIMUsers: (params?: import("./request").SearchParams | undefined) => Promise<import("./request").ApiResponse<any>>;
|
|
13
|
+
getUser: ({ userId, }: {
|
|
14
|
+
userId: string;
|
|
15
|
+
}) => Promise<Users.User>;
|
|
16
|
+
getUserConnections: ({ userId, }: {
|
|
17
|
+
userId: string;
|
|
18
|
+
}) => Promise<import("./request").ApiResponse<import("./schema/connection").UserConnection[]>>;
|
|
19
|
+
deleteUserConnection: ({ userId, connectionId, }: {
|
|
20
|
+
userId: string;
|
|
21
|
+
connectionId: string;
|
|
22
|
+
}) => Promise<number>;
|
|
23
|
+
deleteUser: ({ userId, }: {
|
|
24
|
+
userId: string;
|
|
25
|
+
}) => Promise<number>;
|
|
26
|
+
getConnectionSyncs: ({ userId, connectionId, params, }: {
|
|
27
|
+
userId: string;
|
|
28
|
+
connectionId: string;
|
|
29
|
+
params?: import("./request").SearchParams | undefined;
|
|
30
|
+
}) => Promise<import("./request").ApiResponse<Syncs.ConnectionSync[]>>;
|
|
31
|
+
getSync: ({ userId, syncId, }: {
|
|
32
|
+
userId: string;
|
|
33
|
+
syncId: string;
|
|
34
|
+
}) => Promise<import("./request").ApiResponse<Syncs.ConnectionSync>>;
|
|
35
|
+
updateUserConnection: ({ userId, connectionId, expiresAt, }: {
|
|
36
|
+
userId: string;
|
|
37
|
+
connectionId: string;
|
|
38
|
+
expiresAt: string;
|
|
39
|
+
}) => Promise<number>;
|
|
40
|
+
getGlobalCounterparties: (params?: Counterparties.GlobalCounterpartiesSearchParams | undefined) => Promise<import("./request").ApiResponse<Counterparties.GlobalCounterparty[]>>;
|
|
41
|
+
listConnections: () => Promise<import("./schema/connection").WellKnownConnection[]>;
|
|
42
|
+
listAPIConnections: () => Promise<import("./schema/connection").WellKnownConnection[]>;
|
|
43
|
+
listTestConnections: () => Promise<import("./schema/connection").WellKnownConnection[]>;
|
|
44
|
+
listBetaConnections: () => Promise<import("./schema/connection").WellKnownConnection[]>;
|
|
45
|
+
getOpenIdConfig: () => Promise<unknown>;
|
|
46
|
+
getTransactions: ({ userId, params, }: {
|
|
47
|
+
userId: string;
|
|
48
|
+
params?: Transactions.TransactionSearchParams | undefined;
|
|
49
|
+
}) => Promise<import("./request").ApiResponse<Transactions.Transaction[]>>;
|
|
50
|
+
getTransaction: ({ userId, transactionId, }: {
|
|
51
|
+
userId: string;
|
|
52
|
+
transactionId: string;
|
|
53
|
+
}) => Promise<import("./request").ApiResponse<Transactions.Transaction>>;
|
|
54
|
+
addTransaction: ({ userId, transaction, }: {
|
|
55
|
+
userId: string;
|
|
56
|
+
transaction: Transactions.TransactionPost;
|
|
57
|
+
}) => Promise<import("./request").ApiResponse<Transactions.Transaction>>;
|
|
58
|
+
addTransactions: ({ userId, transactions, params, }: {
|
|
59
|
+
userId: string;
|
|
60
|
+
transactions: Transactions.TransactionPost[];
|
|
61
|
+
params?: {
|
|
62
|
+
categorise?: boolean | undefined;
|
|
63
|
+
} | undefined;
|
|
64
|
+
}) => Promise<import("./request").ApiResponse<{
|
|
65
|
+
id: string;
|
|
66
|
+
}[]>>;
|
|
67
|
+
updateTransaction: ({ userId, transactionId, transaction, }: {
|
|
68
|
+
userId: string;
|
|
69
|
+
transactionId: string;
|
|
70
|
+
transaction: Partial<Transactions.TransactionPost>;
|
|
71
|
+
}) => Promise<import("./request").ApiResponse<Transactions.Transaction>>;
|
|
72
|
+
deleteTransaction: ({ userId, transactionId, }: {
|
|
73
|
+
userId: string;
|
|
74
|
+
transactionId: string;
|
|
75
|
+
}) => Promise<import("./request").ApiResponse<number>>;
|
|
76
|
+
splitTransaction: ({ userId, transactionId, splits, }: {
|
|
77
|
+
userId: string;
|
|
78
|
+
transactionId: string;
|
|
79
|
+
splits: Transactions.TransactionSplitPost[];
|
|
80
|
+
}) => Promise<import("./request").ApiResponse<Transactions.TransactionSplit[]>>;
|
|
81
|
+
getTransactionSplits: ({ userId, transactionId, }: {
|
|
82
|
+
userId: string;
|
|
83
|
+
transactionId: string;
|
|
84
|
+
}) => Promise<import("./request").ApiResponse<Transactions.TransactionSplit[]>>;
|
|
85
|
+
patchTransactionSplit: ({ userId, transactionId, splitId, split, }: {
|
|
86
|
+
userId: string;
|
|
87
|
+
transactionId: string;
|
|
88
|
+
splitId: string;
|
|
89
|
+
split: Transactions.TransactionSplitPatch;
|
|
90
|
+
}) => Promise<import("./request").ApiResponse<Transactions.TransactionSplit[]>>;
|
|
91
|
+
deleteTransactionSplits: ({ userId, transactionId, }: {
|
|
92
|
+
userId: string;
|
|
93
|
+
transactionId: string;
|
|
94
|
+
}) => Promise<number>;
|
|
95
|
+
addFileToTransaction: ({ userId, transactionId, fileData, fileName, }: {
|
|
96
|
+
userId: string;
|
|
97
|
+
transactionId: string;
|
|
98
|
+
fileName: string;
|
|
99
|
+
fileData: any;
|
|
100
|
+
}) => Promise<import("./request").ApiResponse<Transactions.TransactionFile>>;
|
|
101
|
+
getTransactionFiles: ({ userId, transactionId, }: {
|
|
102
|
+
userId: string;
|
|
103
|
+
transactionId: string;
|
|
104
|
+
}) => Promise<import("./request").ApiResponse<Transactions.TransactionFile[]>>;
|
|
105
|
+
getTransactionFile: ({ userId, transactionId, fileId, }: {
|
|
106
|
+
userId: string;
|
|
107
|
+
transactionId: string;
|
|
108
|
+
fileId: string;
|
|
109
|
+
}) => Promise<import("./request").ApiResponse<Transactions.TransactionFile>>;
|
|
110
|
+
deleteTransactionFile: ({ userId, transactionId, fileId, }: {
|
|
111
|
+
userId: string;
|
|
112
|
+
transactionId: string;
|
|
113
|
+
fileId: string;
|
|
114
|
+
}) => Promise<number>;
|
|
115
|
+
getTaxReturn: ({ userId, params, }: {
|
|
116
|
+
userId: string;
|
|
117
|
+
params?: Taxes.TaxSearchParams | undefined;
|
|
118
|
+
}) => Promise<import("./request").ApiResponse<Taxes.Tax>>;
|
|
119
|
+
syncUserConnection: ({ userId, connectionId, customerIpAddress, customerLastLoggedTime, }: {
|
|
120
|
+
userId: string;
|
|
121
|
+
connectionId: string;
|
|
122
|
+
customerIpAddress?: string | undefined;
|
|
123
|
+
customerLastLoggedTime?: string | undefined;
|
|
124
|
+
}) => Promise<import("./request").ApiResponse<Syncs.SyncResponse>>;
|
|
125
|
+
getStandingOrder: ({ id }: {
|
|
126
|
+
id: string;
|
|
127
|
+
}) => Promise<import("./request").ApiResponse<StandingOrders.StandingOrderRequest>>;
|
|
128
|
+
getStandingOrders: (params?: StandingOrders.StandingOrderSearchParams | undefined) => Promise<import("./request").ApiResponse<StandingOrders.StandingOrderRequest[]>>;
|
|
129
|
+
getSpendingGoals: (params: import("./request").SearchParams, userId: string) => Promise<import("./request").ApiResponse<SpendingGoals.SpendingGoal[]>>;
|
|
130
|
+
getSpendingGoal: ({ goalId, userId, }: {
|
|
131
|
+
goalId: string;
|
|
132
|
+
userId: string;
|
|
133
|
+
}) => Promise<import("./request").ApiResponse<SpendingGoals.SpendingGoal>>;
|
|
134
|
+
createSpendingGoal: ({ categoryId, periodType, periodStart, amount, userId, }: {
|
|
135
|
+
categoryId: string;
|
|
136
|
+
periodType?: ("monthly" | "annual") | undefined;
|
|
137
|
+
periodStart?: string | undefined;
|
|
138
|
+
amount: {
|
|
139
|
+
value: number;
|
|
140
|
+
};
|
|
141
|
+
userId: string;
|
|
142
|
+
}) => Promise<import("./request").ApiResponse<SpendingGoals.SpendingGoal>>;
|
|
143
|
+
updateSpendingGoal: ({ goalId, categoryId, amount, userId, }: {
|
|
144
|
+
goalId: string;
|
|
145
|
+
categoryId?: string | undefined;
|
|
146
|
+
amount?: {
|
|
147
|
+
value: number;
|
|
148
|
+
} | undefined;
|
|
149
|
+
userId: string;
|
|
150
|
+
}) => Promise<import("./request").ApiResponse<SpendingGoals.SpendingGoal>>;
|
|
151
|
+
deleteSpendingGoal: ({ goalId, userId, }: {
|
|
152
|
+
goalId: string;
|
|
153
|
+
userId: string;
|
|
154
|
+
}) => Promise<number>;
|
|
155
|
+
getSpendingAnalysis: ({ userId, dates, accountIds, categoryIds, projectIds, }: {
|
|
156
|
+
userId: string;
|
|
157
|
+
dates: {
|
|
158
|
+
name: string;
|
|
159
|
+
from: string;
|
|
160
|
+
to: string;
|
|
161
|
+
}[];
|
|
162
|
+
accountIds?: string[] | undefined;
|
|
163
|
+
categoryIds?: string[] | undefined;
|
|
164
|
+
projectIds?: string[] | undefined;
|
|
165
|
+
}) => Promise<import("./request").ApiResponse<SpendingAnalysis.SpendingAnalysis>>;
|
|
166
|
+
getSavingsGoals: (params: import("./request").SearchParams, userId: string) => Promise<import("./request").ApiResponse<SavingsGoals.SavingsGoal[]>>;
|
|
167
|
+
getSavingsGoal: ({ goalId, userId, }: {
|
|
168
|
+
goalId: string;
|
|
169
|
+
userId: string;
|
|
170
|
+
}) => Promise<import("./request").ApiResponse<SavingsGoals.SavingsGoal>>;
|
|
171
|
+
createSavingsGoal: ({ name, imageUrl, notes, accounts, amount, userId, }: {
|
|
172
|
+
name: string;
|
|
173
|
+
imageUrl?: string | undefined;
|
|
174
|
+
notes?: string | undefined;
|
|
175
|
+
accounts: {
|
|
176
|
+
id: string;
|
|
177
|
+
}[];
|
|
178
|
+
amount: {
|
|
179
|
+
value: number;
|
|
180
|
+
currency?: string | undefined;
|
|
181
|
+
};
|
|
182
|
+
userId: string;
|
|
183
|
+
}) => Promise<import("./request").ApiResponse<SavingsGoals.SavingsGoal>>;
|
|
184
|
+
updateSavingsGoal: ({ goalId, name, amount, imageUrl, notes, accounts, userId, }: {
|
|
185
|
+
goalId: string;
|
|
186
|
+
name?: string | undefined;
|
|
187
|
+
imageUrl?: string | undefined;
|
|
188
|
+
notes?: string | undefined;
|
|
189
|
+
accounts: {
|
|
190
|
+
id: string;
|
|
191
|
+
}[];
|
|
192
|
+
amount?: {
|
|
193
|
+
value: number;
|
|
194
|
+
} | undefined;
|
|
195
|
+
userId: string;
|
|
196
|
+
}) => Promise<import("./request").ApiResponse<SavingsGoals.SavingsGoal>>;
|
|
197
|
+
deleteSavingsGoal: ({ goalId, userId, }: {
|
|
198
|
+
goalId: string;
|
|
199
|
+
userId: string;
|
|
200
|
+
}) => Promise<number>;
|
|
201
|
+
getRentalRecords: ({ userId, }: {
|
|
202
|
+
userId: string;
|
|
203
|
+
}) => Promise<import("./request").ApiResponse<RentalRecords.RentalRecord[]>>;
|
|
204
|
+
createRentalRecord: ({ userId, rentalData, }: {
|
|
205
|
+
userId: string;
|
|
206
|
+
rentalData: RentalRecords.RentalRecordPost;
|
|
207
|
+
}) => Promise<import("./request").ApiResponse<RentalRecords.RentalRecord>>;
|
|
208
|
+
deleteRentalRecord: ({ userId, rentalId, }: {
|
|
209
|
+
userId: string;
|
|
210
|
+
rentalId: string;
|
|
211
|
+
}) => Promise<number>;
|
|
212
|
+
getRegularTransactions: ({ userId, params, }: {
|
|
213
|
+
userId: string;
|
|
214
|
+
params?: RegularTransactions.RegularTransactionSearchParams | undefined;
|
|
215
|
+
}) => Promise<import("./request").ApiResponse<RegularTransactions.RegularTransaction[]>>;
|
|
216
|
+
getRecurringPayments: (params?: Payments.RecurringPaymentSearchParams | undefined) => Promise<import("./request").ApiResponse<Payments.RecurringPaymentRequest[]>>;
|
|
217
|
+
getRecurringPayment: ({ recurringPaymentId, }: {
|
|
218
|
+
recurringPaymentId: string;
|
|
219
|
+
}) => Promise<import("./request").ApiResponse<Payments.RecurringPaymentRequest>>;
|
|
220
|
+
makeRecurringPayment: ({ recurringPaymentId, payment, }: {
|
|
221
|
+
recurringPaymentId: string;
|
|
222
|
+
payment: Payments.PaymentsClaims;
|
|
223
|
+
}) => Promise<import("./request").ApiResponse<Payments.RecurringPaymentRequest>>;
|
|
224
|
+
revokeRecurringPayment: ({ recurringPaymentId, }: {
|
|
225
|
+
recurringPaymentId: string;
|
|
226
|
+
}) => Promise<number>;
|
|
227
|
+
getProjects: ({ userId, params, }: {
|
|
228
|
+
userId: string;
|
|
229
|
+
params?: import("./request").SearchParams | undefined;
|
|
230
|
+
}) => Promise<import("./request").ApiResponse<Projects.Project[]>>;
|
|
231
|
+
getProject: ({ userId, projectId, }: {
|
|
232
|
+
userId: string;
|
|
233
|
+
projectId: string;
|
|
234
|
+
}) => Promise<import("./request").ApiResponse<Projects.Project>>;
|
|
235
|
+
addProject: ({ userId, project, }: {
|
|
236
|
+
userId: string;
|
|
237
|
+
project: Projects.ProjectPost;
|
|
238
|
+
}) => Promise<import("./request").ApiResponse<Projects.Project>>;
|
|
239
|
+
updateProject: ({ userId, projectId, project, }: {
|
|
240
|
+
userId: string;
|
|
241
|
+
projectId: string;
|
|
242
|
+
project: Projects.ProjectPatch;
|
|
243
|
+
}) => Promise<import("./request").ApiResponse<Projects.Project>>;
|
|
244
|
+
deleteProject: ({ userId, projectId, }: {
|
|
245
|
+
userId: string;
|
|
246
|
+
projectId: string;
|
|
247
|
+
}) => Promise<number>;
|
|
248
|
+
getPayment: ({ id }: {
|
|
249
|
+
id: string;
|
|
250
|
+
}) => Promise<import("./request").ApiResponse<Payments.Payment>>;
|
|
251
|
+
getPayments: (params?: Payments.PaymentSearchParams | undefined) => Promise<import("./request").ApiResponse<Payments.Payment[]>>;
|
|
252
|
+
getPaymentFromIDToken: ({ idToken }: {
|
|
253
|
+
idToken: string;
|
|
254
|
+
}) => Promise<import("./request").ApiResponse<Payments.Payment>>;
|
|
255
|
+
addPayee: ({ accountNumber, sortCode, name, externalId, userId, }: {
|
|
256
|
+
accountNumber: string;
|
|
257
|
+
sortCode: string;
|
|
258
|
+
name: string;
|
|
259
|
+
externalId?: string | undefined;
|
|
260
|
+
userId?: string | undefined;
|
|
261
|
+
}) => Promise<import("./request").ApiResponse<Payees.Payee>>;
|
|
262
|
+
getPayees: (params?: Payees.PayeesSearchParams | undefined) => Promise<import("./request").ApiResponse<Payees.Payee[]>>;
|
|
263
|
+
getPayee: ({ id }: {
|
|
264
|
+
id: string;
|
|
265
|
+
}) => Promise<import("./request").ApiResponse<Payees.Payee>>;
|
|
266
|
+
getCategories: ({ userId, params, }: {
|
|
267
|
+
userId: string;
|
|
268
|
+
params?: (import("./request").SearchParams & {
|
|
269
|
+
type?: Categories.CategoryType | undefined;
|
|
270
|
+
}) | undefined;
|
|
271
|
+
}) => Promise<import("./request").ApiResponse<Categories.Category[]>>;
|
|
272
|
+
getStandardCategories: ({ params, }: {
|
|
273
|
+
params?: (import("./request").SearchParams & {
|
|
274
|
+
type?: Categories.CategoryType | undefined;
|
|
275
|
+
}) | undefined;
|
|
276
|
+
}) => Promise<import("./request").ApiResponse<Categories.Category[]>>;
|
|
277
|
+
getCategory: ({ userId, categoryId, params, }: {
|
|
278
|
+
userId: string;
|
|
279
|
+
categoryId: string;
|
|
280
|
+
params?: {
|
|
281
|
+
type?: Categories.CategoryType | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
}) => Promise<import("./request").ApiResponse<Categories.Category>>;
|
|
284
|
+
getCategoryGroups: ({ userId, params, }: {
|
|
285
|
+
userId: string;
|
|
286
|
+
params?: {
|
|
287
|
+
type?: Categories.CategoryType | undefined;
|
|
288
|
+
} | undefined;
|
|
289
|
+
}) => Promise<import("./request").ApiResponse<Categories.CategoryGroup[]>>;
|
|
290
|
+
getStandardCategoryGroups: ({ params, }: {
|
|
291
|
+
params?: {
|
|
292
|
+
type?: Categories.CategoryType | undefined;
|
|
293
|
+
} | undefined;
|
|
294
|
+
}) => Promise<import("./request").ApiResponse<Categories.CategoryGroup[]>>;
|
|
295
|
+
createCustomCategory: ({ userId, category, }: {
|
|
296
|
+
userId: string;
|
|
297
|
+
category: Categories.CategoryPost;
|
|
298
|
+
}) => Promise<import("./request").ApiResponse<Categories.Category>>;
|
|
299
|
+
getBeneficiary: ({ id, userId, }: {
|
|
300
|
+
id: string;
|
|
301
|
+
userId: string;
|
|
302
|
+
}) => Promise<import("./request").ApiResponse<Beneficiaries.Beneficiary>>;
|
|
303
|
+
getBeneficiaryWithDetail: ({ id, userId, }: {
|
|
304
|
+
id: string;
|
|
305
|
+
userId: string;
|
|
306
|
+
}) => Promise<import("./request").ApiResponse<Beneficiaries.BeneficiaryWithDetails>>;
|
|
307
|
+
getBeneficiaries: ({ params, userId, }: {
|
|
308
|
+
params?: import("./request").SearchParams | undefined;
|
|
309
|
+
userId: string;
|
|
310
|
+
}) => Promise<import("./request").ApiResponse<Beneficiaries.Beneficiary[]>>;
|
|
311
|
+
getBeneficiariesWithDetail: ({ params, userId, }: {
|
|
312
|
+
params?: import("./request").SearchParams | undefined;
|
|
313
|
+
userId: string;
|
|
314
|
+
}) => Promise<import("./request").ApiResponse<Beneficiaries.BeneficiaryWithDetails[]>>;
|
|
315
|
+
createAuthRequest: ({ redirectUri, userId, scope, connectionId, payment, standingOrder, recurringPayment, reversePayment, categorisationType, benefitsCheck, counterpartiesCheck, permissions, expirationDateTime, transactionsFromDateTime, sync, }: {
|
|
316
|
+
redirectUri?: string | undefined;
|
|
317
|
+
userId?: string | undefined;
|
|
318
|
+
scope: string;
|
|
319
|
+
connectionId?: string | undefined;
|
|
320
|
+
payment?: Payments.AuthRequestPostPayment | undefined;
|
|
321
|
+
standingOrder?: StandingOrders.AuthRequestStandingOrderPost | undefined;
|
|
322
|
+
recurringPayment?: Payments.AuthRequestPostRecurringPayment | undefined;
|
|
323
|
+
reversePayment?: Payments.AuthRequestPostReversePayment | undefined;
|
|
324
|
+
categorisationType?: Accounts.AccountType | undefined;
|
|
325
|
+
benefitsCheck?: boolean | undefined;
|
|
326
|
+
counterpartiesCheck?: string[] | undefined;
|
|
327
|
+
permissions?: ("ReadStandingOrdersBasic" | "ReadStandingOrdersDetail" | "ReadBeneficiariesDetail") | undefined;
|
|
328
|
+
expirationDateTime?: string | undefined;
|
|
329
|
+
transactionsFromDateTime?: string | undefined;
|
|
330
|
+
sync?: {
|
|
331
|
+
enableAsync?: boolean | undefined;
|
|
332
|
+
} | undefined;
|
|
333
|
+
}) => Promise<import("./request").ApiResponse<AuthRequests.AuthRequest>>;
|
|
334
|
+
completeAuthRequest: ({ id, authParams, }: {
|
|
335
|
+
id: string;
|
|
336
|
+
authParams: AuthRequests.AuthParams;
|
|
337
|
+
}) => Promise<import("./request").ApiResponse<AuthRequests.AuthRequest>>;
|
|
338
|
+
getAllAuthRequests: (params?: import("./request").SearchParams | undefined) => Promise<import("./request").ApiResponse<AuthRequests.AuthRequest[]>>;
|
|
339
|
+
getAuthRequest: ({ id }: {
|
|
340
|
+
id: string;
|
|
341
|
+
}) => Promise<import("./request").ApiResponse<AuthRequests.AuthRequest>>;
|
|
342
|
+
createAffordability: ({ userId }: {
|
|
343
|
+
userId: string;
|
|
344
|
+
}) => Promise<import("./request").ApiResponse<Affordability.Affordability>>;
|
|
345
|
+
getAffordability: ({ userId, id }: {
|
|
346
|
+
userId: string;
|
|
347
|
+
id: string;
|
|
348
|
+
}) => Promise<import("./request").ApiResponse<Affordability.Affordability>>;
|
|
349
|
+
getAllAffordability: ({ userId, ...query }: {
|
|
350
|
+
userId: string;
|
|
351
|
+
} & import("./request").SearchParams) => Promise<import("./request").ApiResponse<Affordability.AffordabilityMetadata[]>>;
|
|
352
|
+
getAccounts: ({ userId }: {
|
|
353
|
+
userId: string;
|
|
354
|
+
params?: import("./request").SearchParams | undefined;
|
|
355
|
+
}) => Promise<import("./request").ApiResponse<Accounts.Account[]>>;
|
|
356
|
+
getAccountsWithDetails: ({ userId, }: {
|
|
357
|
+
userId: string;
|
|
358
|
+
params?: import("./request").SearchParams | undefined;
|
|
359
|
+
}) => Promise<Accounts.AccountWithDetails[]>;
|
|
360
|
+
getAccount: ({ userId, accountId }: {
|
|
361
|
+
userId: string;
|
|
362
|
+
accountId: string;
|
|
363
|
+
}) => Promise<import("./request").ApiResponse<Accounts.Account>>;
|
|
364
|
+
getAccountBalances: ({ userId, accountId, }: {
|
|
365
|
+
userId: string;
|
|
366
|
+
accountId: string;
|
|
367
|
+
}) => Promise<Balances.Balance[]>;
|
|
368
|
+
getAccountWithDetails: ({ userId, accountId, }: {
|
|
369
|
+
userId: string;
|
|
370
|
+
accountId: string;
|
|
371
|
+
}) => Promise<import("./request").ApiResponse<Accounts.AccountWithDetails>>;
|
|
372
|
+
getAccountHoldings: ({ userId, accountId, }: {
|
|
373
|
+
userId: string;
|
|
374
|
+
accountId: string;
|
|
375
|
+
}) => Promise<import("./request").ApiResponse<Holdings.HoldingsValuation[]>>;
|
|
376
|
+
getAccountHoldingsWithMatches: ({ userId, accountId, }: {
|
|
377
|
+
userId: string;
|
|
378
|
+
accountId: string;
|
|
379
|
+
}) => Promise<import("./request").ApiResponse<Holdings.HoldingWithMatches[]>>;
|
|
380
|
+
getAccountCounterparties: ({ userId, accountId, }: {
|
|
381
|
+
userId: string;
|
|
382
|
+
accountId: string;
|
|
383
|
+
}) => Promise<import("./request").ApiResponse<Counterparties.Counterparty[]>>;
|
|
384
|
+
getAccountRecurringTransactions: ({ userId, accountId, }: {
|
|
385
|
+
userId: string;
|
|
386
|
+
accountId: string;
|
|
387
|
+
}) => Promise<import("./request").ApiResponse<Transactions.RecurringTransactionEstimate[]>>;
|
|
388
|
+
getAccountStandingOrders: ({ userId, accountId, }: {
|
|
389
|
+
userId: string;
|
|
390
|
+
accountId: string;
|
|
391
|
+
}) => Promise<import("./request").ApiResponse<StandingOrders.StandingOrder[]>>;
|
|
392
|
+
createAccount: ({ userId }: {
|
|
393
|
+
userId: string;
|
|
394
|
+
account: Accounts.AccountPost;
|
|
395
|
+
}) => Promise<import("./request").ApiResponse<Accounts.Account>>;
|
|
396
|
+
deleteAccount: ({ userId, accountId }: {
|
|
397
|
+
userId: string;
|
|
398
|
+
accountId: string;
|
|
399
|
+
}) => Promise<number>;
|
|
400
|
+
getAccountHolding: ({ userId, accountId, holdingId, }: {
|
|
401
|
+
userId: string;
|
|
402
|
+
accountId: string;
|
|
403
|
+
holdingId: string;
|
|
404
|
+
}) => Promise<import("./request").ApiResponse<Holdings.HoldingWithMatchesAndHistory>>;
|
|
405
|
+
getAccountStandingOrdersWithDetail: ({ userId, accountId, }: {
|
|
406
|
+
userId: string;
|
|
407
|
+
accountId: string;
|
|
408
|
+
}) => Promise<import("./request").ApiResponse<StandingOrders.StandingOrderWithDetail[]>>;
|
|
409
|
+
exchangeCodeForTokensLegacy: ({ state, code, nonce, id_token, }: {
|
|
410
|
+
state: string;
|
|
411
|
+
code: string;
|
|
412
|
+
nonce: string;
|
|
413
|
+
id_token?: string | undefined;
|
|
414
|
+
}) => Promise<import("openid-client").TokenSet>;
|
|
415
|
+
exchangeCodeForTokens: ({ paramsFromCallback, localParams }: {
|
|
416
|
+
paramsFromCallback: import("./exchange-code-for-token").ParamsFromCallback;
|
|
417
|
+
localParams: import("./exchange-code-for-token").LocalParams;
|
|
418
|
+
}) => Promise<import("openid-client").TokenSet>;
|
|
419
|
+
refreshTokens: ({ refreshToken }: {
|
|
420
|
+
refreshToken: string | import("openid-client").TokenSet;
|
|
421
|
+
}) => Promise<import("openid-client").TokenSet>;
|
|
422
|
+
getClientCredentialTokens: ({ scope, sub }: {
|
|
423
|
+
scope: string;
|
|
424
|
+
sub: string;
|
|
425
|
+
}) => Promise<import("openid-client").TokenSet>;
|
|
426
|
+
getJWTBearerToken: ({ scope, sub }: {
|
|
427
|
+
scope: string;
|
|
428
|
+
sub: string;
|
|
429
|
+
}) => Promise<import("openid-client").TokenSet>;
|
|
430
|
+
createJWTBearerGrantToken: (sub: string) => Promise<string>;
|
|
431
|
+
getAuthorizeUrl: ({ state, scope, nonce, claims, permissions, enableAsync, expirationDateTime, transactionFromDateTime, }: {
|
|
432
|
+
state?: string | undefined;
|
|
433
|
+
scope: string;
|
|
434
|
+
nonce?: string | undefined;
|
|
435
|
+
claims?: any;
|
|
436
|
+
permissions?: string[] | undefined;
|
|
437
|
+
enableAsync?: boolean | undefined;
|
|
438
|
+
expirationDateTime?: string | undefined;
|
|
439
|
+
transactionFromDateTime?: string | undefined;
|
|
440
|
+
}) => Promise<string>;
|
|
441
|
+
getAuthorizeUrlFromRequestUri: ({ requestUri }: {
|
|
442
|
+
requestUri: string;
|
|
443
|
+
}) => string;
|
|
444
|
+
requestObject: ({ scope, state, claims, nonce, }: {
|
|
445
|
+
scope: string;
|
|
446
|
+
state?: string | undefined;
|
|
447
|
+
claims: object;
|
|
448
|
+
nonce?: string | undefined;
|
|
449
|
+
}) => Promise<string>;
|
|
450
|
+
getRequestUri: (requestObject: any) => Promise<string>;
|
|
451
|
+
getAuthorizeUrlForCreatedUser: ({ bankId, state, nonce, userId, claims, permissions, expirationDateTime, transactionFromDateTime, enableAsync, }: {
|
|
452
|
+
bankId: string;
|
|
453
|
+
state?: string | undefined;
|
|
454
|
+
nonce?: string | undefined;
|
|
455
|
+
userId: string;
|
|
456
|
+
claims?: any;
|
|
457
|
+
permissions?: string[] | undefined;
|
|
458
|
+
expirationDateTime?: string | undefined;
|
|
459
|
+
transactionFromDateTime?: string | undefined;
|
|
460
|
+
enableAsync?: boolean | undefined;
|
|
461
|
+
}) => Promise<string>;
|
|
462
|
+
getReauthAuthorizeUrlForCreatedUser: ({ userId, connectionId, state, nonce, claims, expirationDateTime, transactionFromDateTime, enableAsync, }: {
|
|
463
|
+
userId: string;
|
|
464
|
+
connectionId: string;
|
|
465
|
+
state?: string | undefined;
|
|
466
|
+
nonce?: string | undefined;
|
|
467
|
+
claims?: any;
|
|
468
|
+
expirationDateTime?: string | undefined;
|
|
469
|
+
transactionFromDateTime?: string | undefined;
|
|
470
|
+
enableAsync?: boolean | undefined;
|
|
471
|
+
}) => Promise<string>;
|
|
472
|
+
getReconsentAuthorizeUrlForCreatedUser: ({ userId, connectionId, expiresAt, state, nonce, claims, }: {
|
|
473
|
+
userId: string;
|
|
474
|
+
connectionId: string;
|
|
475
|
+
state?: string | undefined;
|
|
476
|
+
nonce?: string | undefined;
|
|
477
|
+
claims?: any;
|
|
478
|
+
expiresAt?: string | undefined;
|
|
479
|
+
}) => Promise<string>;
|
|
480
|
+
getRefreshAuthorizeUrlForCreatedUser: ({ userId, connectionId, state, nonce, claims, expirationDateTime, transactionFromDateTime, enableAsync, }: {
|
|
481
|
+
userId?: string | undefined;
|
|
482
|
+
connectionId: string;
|
|
483
|
+
state?: string | undefined;
|
|
484
|
+
nonce?: string | undefined;
|
|
485
|
+
claims?: any;
|
|
486
|
+
expirationDateTime?: string | undefined;
|
|
487
|
+
transactionFromDateTime?: string | undefined;
|
|
488
|
+
enableAsync?: boolean | undefined;
|
|
489
|
+
}) => Promise<string>;
|
|
490
|
+
getPaymentAuthorizeUrl: ({ bankId, payeeRef, payeeId, payeeType, amount, payerRef, payerId, payerType, state, nonce, context, readRefundAccount, userId, claims, }: {
|
|
491
|
+
bankId: string;
|
|
492
|
+
payeeRef: string;
|
|
493
|
+
payeeId: string;
|
|
494
|
+
payeeType?: string | undefined;
|
|
495
|
+
amount: number;
|
|
496
|
+
payerRef: string;
|
|
497
|
+
payerId?: string | undefined;
|
|
498
|
+
payerType?: string | undefined;
|
|
499
|
+
state?: string | undefined;
|
|
500
|
+
nonce?: string | undefined;
|
|
501
|
+
context?: string | undefined;
|
|
502
|
+
readRefundAccount?: boolean | undefined;
|
|
503
|
+
userId?: string | undefined;
|
|
504
|
+
claims?: any;
|
|
505
|
+
}) => Promise<string>;
|
|
506
|
+
getReversePaymentAuthorizeUrl: ({ bankId, paymentId, state, nonce, amount, claims, payerId, payerType, }: {
|
|
507
|
+
bankId: string;
|
|
508
|
+
paymentId: string;
|
|
509
|
+
state?: string | undefined;
|
|
510
|
+
nonce?: string | undefined;
|
|
511
|
+
amount: number;
|
|
512
|
+
claims?: any;
|
|
513
|
+
payerId?: string | undefined;
|
|
514
|
+
payerType?: Payments.PaymentActorType | undefined;
|
|
515
|
+
}) => Promise<string>;
|
|
516
|
+
getRecurringPaymentAuthorizeUrl: ({ bankId, payeeId, payeeType, payerId, payerType, reference, validFromDate, validToDate, maximumIndividualAmount, currency, periodicLimits, type, context, state, nonce, userId, claims, }: {
|
|
517
|
+
bankId: string;
|
|
518
|
+
payeeId?: string | undefined;
|
|
519
|
+
payeeType?: string | undefined;
|
|
520
|
+
payerId?: string | undefined;
|
|
521
|
+
payerType?: string | undefined;
|
|
522
|
+
reference?: string | undefined;
|
|
523
|
+
validFromDate?: string | undefined;
|
|
524
|
+
validToDate?: string | undefined;
|
|
525
|
+
maximumIndividualAmount?: number | undefined;
|
|
526
|
+
currency?: string | undefined;
|
|
527
|
+
periodicLimits?: any;
|
|
528
|
+
type?: string | undefined;
|
|
529
|
+
context?: string | undefined;
|
|
530
|
+
state?: string | undefined;
|
|
531
|
+
nonce?: string | undefined;
|
|
532
|
+
userId: string;
|
|
533
|
+
claims?: any;
|
|
534
|
+
}) => Promise<string>;
|
|
535
|
+
getStandingOrderAuthorizeUrl: ({ bankId, payeeId, payeeType, payerId, payerType, reference, frequency, numberOfPayments, firstPaymentAmount, recurringPaymentAmount, finalPaymentAmount, currency, firstPaymentDate, recurringPaymentDate, finalPaymentDate, state, nonce, context, claims, }: {
|
|
536
|
+
bankId: string;
|
|
537
|
+
payeeId: string;
|
|
538
|
+
payeeType?: string | undefined;
|
|
539
|
+
payerId?: string | undefined;
|
|
540
|
+
payerType?: string | undefined;
|
|
541
|
+
reference: string;
|
|
542
|
+
frequency: StandingOrders.StandingOrderFrequency;
|
|
543
|
+
numberOfPayments?: number | undefined;
|
|
544
|
+
firstPaymentAmount: number;
|
|
545
|
+
recurringPaymentAmount: number;
|
|
546
|
+
finalPaymentAmount: number;
|
|
547
|
+
currency?: string | undefined;
|
|
548
|
+
firstPaymentDate: string;
|
|
549
|
+
recurringPaymentDate: string;
|
|
550
|
+
finalPaymentDate: string;
|
|
551
|
+
state?: string | undefined;
|
|
552
|
+
nonce?: string | undefined;
|
|
553
|
+
context: string;
|
|
554
|
+
claims?: any;
|
|
555
|
+
}) => Promise<string>;
|
|
556
|
+
getPushedAuthorisationRequestUrl: ({ bankId, state, nonce, userId, claims, permissions, expirationDateTime, transactionFromDateTime, enableAsync, codeChallenge, }: {
|
|
557
|
+
bankId: string;
|
|
558
|
+
state?: string | undefined;
|
|
559
|
+
nonce?: string | undefined;
|
|
560
|
+
userId?: string | undefined;
|
|
561
|
+
context?: string | undefined;
|
|
562
|
+
claims?: any;
|
|
563
|
+
permissions?: string[] | undefined;
|
|
564
|
+
expirationDateTime?: string | undefined;
|
|
565
|
+
transactionFromDateTime?: string | undefined;
|
|
566
|
+
enableAsync?: boolean | undefined;
|
|
567
|
+
codeChallenge?: string | undefined;
|
|
568
|
+
}) => Promise<string>;
|
|
569
|
+
}>;
|
|
570
|
+
export declare type MoneyhubInstance = Awaited<ReturnType<typeof _Moneyhub>>;
|
|
571
|
+
declare const Moneyhub: (apiClientConfig: ApiClientConfig) => Promise<MoneyhubInstance>;
|
|
572
|
+
import type * as Accounts from "./schema/account";
|
|
573
|
+
import type * as Affordability from "./schema/affordability";
|
|
574
|
+
import type * as AuthRequests from "./schema/auth-request";
|
|
575
|
+
import type * as Balances from "./schema/balance";
|
|
576
|
+
import type * as Beneficiaries from "./schema/beneficiary";
|
|
577
|
+
import type * as Categories from "./schema/category";
|
|
578
|
+
import type * as Counterparties from "./schema/counterparty";
|
|
579
|
+
import type * as Holdings from "./schema/holding";
|
|
580
|
+
import type * as Payees from "./schema/payee";
|
|
581
|
+
import type * as Payments from "./schema/payment";
|
|
582
|
+
import type * as Projects from "./schema/project";
|
|
583
|
+
import type * as RegularTransactions from "./schema/regular-transaction";
|
|
584
|
+
import type * as RentalRecords from "./schema/rental-record";
|
|
585
|
+
import type * as SavingsGoals from "./schema/savings-goal";
|
|
586
|
+
import type * as SpendingAnalysis from "./schema/spending-analysis";
|
|
587
|
+
import type * as SpendingGoals from "./schema/spending-goal";
|
|
588
|
+
import type * as StandingOrders from "./schema/standing-order";
|
|
589
|
+
import type * as Syncs from "./schema/sync";
|
|
590
|
+
import type * as Taxes from "./schema/tax";
|
|
591
|
+
import type * as Transactions from "./schema/transaction";
|
|
592
|
+
import type * as Users from "./schema/user";
|
|
593
|
+
export { Accounts, Affordability, AuthRequests, Balances, Beneficiaries, Categories, Counterparties, Holdings, Payees, Payments, Projects, RegularTransactions, RentalRecords, SavingsGoals, SpendingAnalysis, SpendingGoals, StandingOrders, Syncs, Taxes, Transactions, Users, ApiClientConfig, Moneyhub, };
|
|
594
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAA;AAMxD,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAA;AAGpD,QAAA,MAAM,SAAS,oBAA2B,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DxD,CAAA;AAED,oBAAY,gBAAgB,GAAG,OAAO,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAA;AACpE,QAAA,MAAM,QAAQ,EAAE,CAAC,eAAe,EAAE,eAAe,KAAK,OAAO,CAAC,gBAAgB,CAAa,CAAA;AAE3F,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,KAAK,aAAa,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,KAAK,YAAY,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,KAAK,aAAa,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,KAAK,UAAU,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,KAAK,cAAc,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAC7C,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,KAAK,QAAQ,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,KAAK,mBAAmB,MAAM,8BAA8B,CAAA;AACxE,OAAO,KAAK,KAAK,aAAa,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,KAAK,YAAY,MAAM,uBAAuB,CAAA;AAC1D,OAAO,KAAK,KAAK,gBAAgB,MAAM,4BAA4B,CAAA;AACnE,OAAO,KAAK,KAAK,aAAa,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,KAAK,cAAc,MAAM,yBAAyB,CAAA;AAC9D,OAAO,KAAK,KAAK,KAAK,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,KAAK,YAAY,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,KAAK,KAAK,MAAM,eAAe,CAAA;AAE3C,OAAO,EACL,QAAQ,EACR,aAAa,EACb,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,UAAU,EACV,cAAc,EACd,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,cAAc,EACd,KAAK,EACL,KAAK,EACL,YAAY,EACZ,KAAK,EACL,eAAe,EACf,QAAQ,GACT,CAAA"}
|
|
@@ -28,14 +28,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.Moneyhub = void 0;
|
|
30
30
|
const openid_client_1 = require("openid-client");
|
|
31
|
-
const jose_1 = require("jose");
|
|
32
31
|
const get_auth_urls_1 = __importDefault(require("./get-auth-urls"));
|
|
33
32
|
const tokens_1 = __importDefault(require("./tokens"));
|
|
34
33
|
const requests_1 = __importDefault(require("./requests"));
|
|
35
34
|
const R = __importStar(require("ramda"));
|
|
36
35
|
const request_1 = __importDefault(require("./request"));
|
|
37
36
|
const DEFAULT_TIMEOUT = 60000;
|
|
38
|
-
const
|
|
37
|
+
const _Moneyhub = async (apiClientConfig) => {
|
|
39
38
|
const config = R.evolve({
|
|
40
39
|
identityServiceUrl: (val) => val.replace("/oidc", ""),
|
|
41
40
|
}, apiClientConfig);
|
|
@@ -62,10 +61,11 @@ const Moneyhub = async (apiClientConfig) => {
|
|
|
62
61
|
...(0, get_auth_urls_1.default)({ client, config }),
|
|
63
62
|
...(0, tokens_1.default)({ client, config }),
|
|
64
63
|
...(0, requests_1.default)({ config, request }),
|
|
65
|
-
keys: () => (keys && keys.length ?
|
|
64
|
+
keys: () => (keys && keys.length ? { keys } : null),
|
|
66
65
|
generators: openid_client_1.generators,
|
|
67
66
|
};
|
|
68
67
|
return moneyhub;
|
|
69
68
|
};
|
|
69
|
+
const Moneyhub = _Moneyhub;
|
|
70
70
|
exports.Moneyhub = Moneyhub;
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAwD;AACxD,oEAAgD;AAChD,sDAAuC;AACvC,0DAAwC;AACxC,yCAA0B;AAC1B,wDAA2B;AAE3B,MAAM,eAAe,GAAG,KAAK,CAAA;AAE7B,MAAM,SAAS,GAAG,KAAK,EAAE,eAAgC,EAAE,EAAE;IAC3D,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CACrB;QACE,kBAAkB,EAAE,CAAC,GAA0C,EAAE,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC;KAC7F,EACD,eAAe,CAChB,CAAA;IAED,MAAM,EACJ,kBAAkB,EAClB,OAAO,GAAG,EAAE,EACZ,MAAM,EAAE,EACN,SAAS,EACT,aAAa,EACb,4BAA4B,EAC5B,0BAA0B,EAC1B,YAAY,EACZ,IAAI,EACJ,0BAA0B,GAC3B,GACF,GAAG,MAAM,CAAA;IAEV,MAAM,EAAC,OAAO,GAAG,eAAe,EAAC,GAAG,OAAO,CAAA;IAE3C,sBAAM,CAAC,sBAAsB,CAAC;QAC5B,OAAO;KACR,CAAC,CAAA;IAEF,MAAM,cAAc,GAAG,MAAM,sBAAM,CAAC,QAAQ,CAAC,kBAAkB,GAAG,OAAO,CAAC,CAAA;IAE1E,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,MAAM,CACtC;QACE,SAAS;QACT,aAAa;QACb,4BAA4B;QAC5B,YAAY;QACZ,0BAA0B;QAC1B,0BAA0B;KAC3B,EACD,EAAC,IAAI,EAAC,CACP,CAAA;IAED,MAAM,CAAC,sBAAM,CAAC,eAAe,CAAC,GAAG,EAAE,CAAA;IAEnC,MAAM,OAAO,GAAG,IAAA,iBAAG,EAAC;QAClB,MAAM;QACN,OAAO,EAAE,EAAC,OAAO,EAAC;KACnB,CAAC,CAAA;IAEF,MAAM,QAAQ,GAAG;QACf,GAAG,IAAA,uBAAkB,EAAC,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC;QACvC,GAAG,IAAA,gBAAgB,EAAC,EAAC,MAAM,EAAE,MAAM,EAAC,CAAC;QACrC,GAAG,IAAA,kBAAe,EAAC,EAAC,MAAM,EAAE,OAAO,EAAC,CAAC;QACrC,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAC,IAAI,EAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QACjD,UAAU,EAAV,0BAAU;KACX,CAAA;IAED,OAAO,QAAQ,CAAA;AACjB,CAAC,CAAA;AAGD,MAAM,QAAQ,GAAoE,SAAS,CAAA;AA+CzF,4BAAQ"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Options } from "got";
|
|
2
|
+
import { Client } from "openid-client";
|
|
3
|
+
import type { ApiClientConfig } from "./schema/config";
|
|
4
|
+
interface RequestOptions extends Pick<Options, "method" | "headers" | "searchParams" | "json" | "form"> {
|
|
5
|
+
searchParams?: any;
|
|
6
|
+
body?: Record<string, any>;
|
|
7
|
+
formData?: any;
|
|
8
|
+
returnStatus?: boolean;
|
|
9
|
+
cc?: {
|
|
10
|
+
scope: string;
|
|
11
|
+
sub?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface Links {
|
|
15
|
+
next?: string;
|
|
16
|
+
prev?: string;
|
|
17
|
+
self: string;
|
|
18
|
+
}
|
|
19
|
+
export declare type Request = <T>(url: string, opts?: RequestOptions) => Promise<T>;
|
|
20
|
+
export interface RequestsParams {
|
|
21
|
+
config: ApiClientConfig;
|
|
22
|
+
request: Request;
|
|
23
|
+
}
|
|
24
|
+
export interface SearchParams {
|
|
25
|
+
limit?: number;
|
|
26
|
+
offset?: number;
|
|
27
|
+
}
|
|
28
|
+
export interface ApiResponse<T> {
|
|
29
|
+
data: T;
|
|
30
|
+
links?: Links;
|
|
31
|
+
meta?: object;
|
|
32
|
+
}
|
|
33
|
+
declare const _default: ({ client, options: { timeout }, }: {
|
|
34
|
+
client: Client;
|
|
35
|
+
options: {
|
|
36
|
+
timeout?: number | undefined;
|
|
37
|
+
};
|
|
38
|
+
}) => <T>(url: string, opts?: RequestOptions) => Promise<T>;
|
|
39
|
+
export default _default;
|
|
40
|
+
//# sourceMappingURL=request.d.ts.map
|