connect-react-native
Advanced tools
Comparing version 2.34.4 to 2.35.0
@@ -222,2 +222,7 @@ "use strict"; | ||
async presentAccountSelection() { | ||
let response = await _nativeInterface.default.presentAccountSelection(this.userID); | ||
return this.getAccount(response); | ||
} | ||
getParameters() { | ||
@@ -239,8 +244,8 @@ return _nativeInterface.default.getConnectionParameters(this.userID); | ||
getTransactionsForAccount(account, startDate, endDate) { | ||
return _nativeInterface.default.getTransactionsForAccount(this.userID, account.id, startDate.getTime(), endDate.getTime()); | ||
getTransactionsForAccount(account, startDate, endDate, type) { | ||
return _nativeInterface.default.getTransactionsForAccount(this.userID, account.id, startDate.getTime(), endDate.getTime(), type); | ||
} | ||
getTransactionsForCard(card, startDate, endDate) { | ||
return _nativeInterface.default.getTransactionsForCard(this.userID, card.id, startDate.getTime(), endDate.getTime()); | ||
getTransactionsForCard(card, startDate, endDate, type) { | ||
return _nativeInterface.default.getTransactionsForCard(this.userID, card.id, startDate.getTime(), endDate.getTime(), type); | ||
} | ||
@@ -247,0 +252,0 @@ |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.DapiEnvironment = exports.DapiEndpoint = exports.BeneficiaryType = void 0; | ||
exports.DapiTransactionsType = exports.DapiEnvironment = exports.DapiEndpoint = exports.BeneficiaryType = void 0; | ||
let DapiEnvironment; | ||
@@ -16,2 +16,15 @@ exports.DapiEnvironment = DapiEnvironment; | ||
let DapiTransactionsType; | ||
/** | ||
* @deprecated Not usable anymore because Dapi backend accepts the default endpoints paths only now | ||
*/ | ||
exports.DapiTransactionsType = DapiTransactionsType; | ||
(function (DapiTransactionsType) { | ||
DapiTransactionsType["enriched"] = "enriched"; | ||
DapiTransactionsType["categorized"] = "categorized"; | ||
DapiTransactionsType["default"] = "default"; | ||
})(DapiTransactionsType || (exports.DapiTransactionsType = DapiTransactionsType = {})); | ||
let DapiEndpoint; | ||
@@ -18,0 +31,0 @@ exports.DapiEndpoint = DapiEndpoint; |
@@ -186,2 +186,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
async presentAccountSelection() { | ||
let response = await NativeInterface.presentAccountSelection(this.userID); | ||
return this.getAccount(response); | ||
} | ||
getParameters() { | ||
@@ -203,8 +208,8 @@ return NativeInterface.getConnectionParameters(this.userID); | ||
getTransactionsForAccount(account, startDate, endDate) { | ||
return NativeInterface.getTransactionsForAccount(this.userID, account.id, startDate.getTime(), endDate.getTime()); | ||
getTransactionsForAccount(account, startDate, endDate, type) { | ||
return NativeInterface.getTransactionsForAccount(this.userID, account.id, startDate.getTime(), endDate.getTime(), type); | ||
} | ||
getTransactionsForCard(card, startDate, endDate) { | ||
return NativeInterface.getTransactionsForCard(this.userID, card.id, startDate.getTime(), endDate.getTime()); | ||
getTransactionsForCard(card, startDate, endDate, type) { | ||
return NativeInterface.getTransactionsForCard(this.userID, card.id, startDate.getTime(), endDate.getTime(), type); | ||
} | ||
@@ -211,0 +216,0 @@ |
@@ -8,2 +8,13 @@ export let DapiEnvironment; | ||
export let DapiTransactionsType; | ||
/** | ||
* @deprecated Not usable anymore because Dapi backend accepts the default endpoints paths only now | ||
*/ | ||
(function (DapiTransactionsType) { | ||
DapiTransactionsType["enriched"] = "enriched"; | ||
DapiTransactionsType["categorized"] = "categorized"; | ||
DapiTransactionsType["default"] = "default"; | ||
})(DapiTransactionsType || (DapiTransactionsType = {})); | ||
export let DapiEndpoint; | ||
@@ -10,0 +21,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { IDapiConfigurations, IAccount, ICard, IBeneficiary, IWireBeneficiary, IDapiConnection, IPair, IAccountResponse, IIdentityResponse, ITransactionResponse, IAccountsMetadataResponse, DapiEnvironment, IBankBeneficiaryResponse, IBankWireBeneficiaryResponse, IDapiResult, DapiEndpoint, ITransferResponse, ICardResponse, ICardBalance, ILineAddress, IAccountBalance } from './internal/types'; | ||
import { IDapiConfigurations, IAccount, ICard, IBeneficiary, IWireBeneficiary, IDapiConnection, IPair, IAccountResponse, IIdentityResponse, ITransactionResponse, IAccountsMetadataResponse, DapiEnvironment, IBankBeneficiaryResponse, IBankWireBeneficiaryResponse, IDapiResult, DapiEndpoint, ITransferResponse, ICardResponse, ICardBalance, ILineAddress, IAccountBalance, DapiTransactionsType } from './internal/types'; | ||
export declare class DapiConfigurations implements IDapiConfigurations { | ||
@@ -45,2 +45,3 @@ environment?: DapiEnvironment; | ||
constructor(clientUserID: string, userID: string, bankID: string, swiftCode: string, country: string, bankShortName: string, bankFullName: string, accounts: IAccount[], cards: ICard[], fullLogo: string, halfLogo: string, miniLogo: string); | ||
presentAccountSelection(): Promise<IAccount | undefined>; | ||
getParameters(): Promise<string>; | ||
@@ -50,4 +51,4 @@ getIdentity(): Promise<IIdentityResponse>; | ||
getCards(): Promise<ICardResponse>; | ||
getTransactionsForAccount(account: IAccount, startDate: Date, endDate: Date): Promise<ITransactionResponse>; | ||
getTransactionsForCard(card: ICard, startDate: Date, endDate: Date): Promise<ITransactionResponse>; | ||
getTransactionsForAccount(account: IAccount, startDate: Date, endDate: Date, type: DapiTransactionsType): Promise<ITransactionResponse>; | ||
getTransactionsForCard(card: ICard, startDate: Date, endDate: Date, type: DapiTransactionsType): Promise<ITransactionResponse>; | ||
getAccountsMetadata(): Promise<IAccountsMetadataResponse>; | ||
@@ -54,0 +55,0 @@ delete(): Promise<void>; |
import { DapiConnection } from '..'; | ||
import { IDapiConfigurations, ICardResponse, IBeneficiary, IWireBeneficiary, IDapiConnection, IAccountResponse, IIdentityResponse, IAccountsMetadataResponse, ITransactionResponse, IBankBeneficiaryResponse, IBankWireBeneficiaryResponse, IDapiResult } from './types'; | ||
import { IDapiConfigurations, ICardResponse, IBeneficiary, IWireBeneficiary, IDapiConnection, IAccountResponse, IIdentityResponse, IAccountsMetadataResponse, ITransactionResponse, IBankBeneficiaryResponse, IBankWireBeneficiaryResponse, IDapiResult, DapiTransactionsType } from './types'; | ||
export interface DapiConnectNativeModule { | ||
@@ -15,4 +15,4 @@ start(appKey: string, clientUserID: string, configurations: IDapiConfigurations): Promise<void>; | ||
getCards(userID: string): Promise<ICardResponse>; | ||
getTransactionsForAccount(userID: string, accountID: string, startDateMilliseconds: number, endDateMilliseconds: number): Promise<ITransactionResponse>; | ||
getTransactionsForCard(userID: string, cardID: string, startDateMilliseconds: number, endDateMilliseconds: number): Promise<ITransactionResponse>; | ||
getTransactionsForAccount(userID: string, accountID: string, startDateMilliseconds: number, endDateMilliseconds: number, type: DapiTransactionsType): Promise<ITransactionResponse>; | ||
getTransactionsForCard(userID: string, cardID: string, startDateMilliseconds: number, endDateMilliseconds: number, type: DapiTransactionsType): Promise<ITransactionResponse>; | ||
delete(userID: string): Promise<any>; | ||
@@ -31,2 +31,3 @@ getAccountsMetadata(userID: string): Promise<IAccountsMetadataResponse>; | ||
getConnectionParameters(userID: string): Promise<string>; | ||
presentAccountSelection(userID: string): Promise<string>; | ||
} |
export interface IDapiConfigurations { | ||
/** | ||
* @deprecated Not usable anymore because Dapi backend accepts the default endpoints paths only now | ||
*/ | ||
endpoints?: Map<DapiEndpoint, string>; | ||
@@ -42,2 +45,10 @@ endPointExtraQueryItems?: Map<string, any>; | ||
} | ||
export declare enum DapiTransactionsType { | ||
enriched = "enriched", | ||
categorized = "categorized", | ||
default = "default" | ||
} | ||
/** | ||
* @deprecated Not usable anymore because Dapi backend accepts the default endpoints paths only now | ||
*/ | ||
export declare enum DapiEndpoint { | ||
@@ -229,3 +240,9 @@ exchangeToken = "auth/ExchangeToken", | ||
readonly reference?: string | null; | ||
readonly category?: string | null; | ||
readonly brandDetails?: IBrandDetails | null; | ||
} | ||
export interface IBrandDetails { | ||
readonly logo?: string | null; | ||
readonly name?: string | null; | ||
} | ||
export interface IDapiResult { | ||
@@ -263,6 +280,6 @@ readonly operationID: string; | ||
readonly value: number; | ||
readonly unit: 'hrs'; | ||
readonly unit: string; | ||
}; | ||
readonly transactionRange: { | ||
readonly unit: 'days'; | ||
readonly unit: string; | ||
readonly value: number; | ||
@@ -290,4 +307,4 @@ }; | ||
getCards(): Promise<ICardResponse>; | ||
getTransactionsForAccount(account: IAccount, startDate: Date, endDate: Date): Promise<ITransactionResponse>; | ||
getTransactionsForCard(card: ICard, startDate: Date, endDate: Date): Promise<ITransactionResponse>; | ||
getTransactionsForAccount(account: IAccount, startDate: Date, endDate: Date, type: DapiTransactionsType): Promise<ITransactionResponse>; | ||
getTransactionsForCard(card: ICard, startDate: Date, endDate: Date, type: DapiTransactionsType): Promise<ITransactionResponse>; | ||
getAccountsMetadata(): Promise<IAccountsMetadataResponse>; | ||
@@ -304,4 +321,5 @@ delete(): Promise<void>; | ||
getParameters(): Promise<string>; | ||
presentAccountSelection(): Promise<IAccount | undefined>; | ||
} | ||
export declare type IAddress = IAddressGeneral; | ||
export {}; |
{ | ||
"name": "connect-react-native", | ||
"version": "2.34.4", | ||
"version": "2.35.0", | ||
"description": "Financial APIs to connect users' bank accounts", | ||
@@ -5,0 +5,0 @@ "react-native": "src/index.ts", |
@@ -24,2 +24,3 @@ import NativeInterface from './internal/nativeInterface'; | ||
IAccountBalance, | ||
DapiTransactionsType, | ||
} from './internal/types'; | ||
@@ -184,2 +185,6 @@ | ||
} | ||
async presentAccountSelection(): Promise<IAccount | undefined> { | ||
let response = await NativeInterface.presentAccountSelection(this.userID); | ||
return this.getAccount(response); | ||
} | ||
@@ -207,2 +212,3 @@ getParameters(): Promise<string> { | ||
endDate: Date, | ||
type: DapiTransactionsType | ||
): Promise<ITransactionResponse> { | ||
@@ -214,2 +220,3 @@ return NativeInterface.getTransactionsForAccount( | ||
endDate.getTime(), | ||
type | ||
); | ||
@@ -222,2 +229,3 @@ } | ||
endDate: Date, | ||
type: DapiTransactionsType, | ||
): Promise<ITransactionResponse> { | ||
@@ -229,2 +237,3 @@ return NativeInterface.getTransactionsForCard( | ||
endDate.getTime(), | ||
type | ||
); | ||
@@ -231,0 +240,0 @@ } |
@@ -15,2 +15,4 @@ import { DapiConnection } from '..'; | ||
IDapiResult, | ||
DapiTransactionsType, | ||
IAccount, | ||
} from './types'; | ||
@@ -49,2 +51,3 @@ | ||
endDateMilliseconds: number, | ||
type: DapiTransactionsType, | ||
): Promise<ITransactionResponse>; | ||
@@ -57,2 +60,3 @@ | ||
endDateMilliseconds: number, | ||
type: DapiTransactionsType, | ||
): Promise<ITransactionResponse>; | ||
@@ -110,2 +114,4 @@ | ||
presentAccountSelection(userID: string) : Promise<string> | ||
} |
export interface IDapiConfigurations { | ||
/** | ||
* @deprecated Not usable anymore because Dapi backend accepts the default endpoints paths only now | ||
*/ | ||
endpoints?: Map<DapiEndpoint, string>; | ||
@@ -54,2 +57,11 @@ endPointExtraQueryItems?: Map<string, any>; | ||
export enum DapiTransactionsType { | ||
enriched = 'enriched', | ||
categorized = 'categorized', | ||
default = "default" | ||
} | ||
/** | ||
* @deprecated Not usable anymore because Dapi backend accepts the default endpoints paths only now | ||
*/ | ||
export enum DapiEndpoint { | ||
@@ -266,4 +278,11 @@ exchangeToken = 'auth/ExchangeToken', | ||
readonly reference?: string | null; | ||
readonly category?: string | null; | ||
readonly brandDetails?: IBrandDetails | null; | ||
} | ||
export interface IBrandDetails { | ||
readonly logo?: string | null | ||
readonly name?: string | null | ||
} | ||
export interface IDapiResult { | ||
@@ -305,6 +324,6 @@ readonly operationID: string; | ||
readonly value: number; | ||
readonly unit: 'hrs'; | ||
readonly unit: string; | ||
}; | ||
readonly transactionRange: { | ||
readonly unit: 'days'; | ||
readonly unit: string; | ||
readonly value: number; | ||
@@ -342,2 +361,3 @@ }; | ||
endDate: Date, | ||
type: DapiTransactionsType, | ||
): Promise<ITransactionResponse>; | ||
@@ -349,2 +369,3 @@ | ||
endDate: Date, | ||
type: DapiTransactionsType, | ||
): Promise<ITransactionResponse>; | ||
@@ -393,4 +414,6 @@ | ||
getParameters(): Promise<string> | ||
presentAccountSelection() : Promise<IAccount | undefined> | ||
} | ||
export type IAddress = IAddressGeneral; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
8667558
149
3659