lib-fints 1.5.0 → 1.5.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/README.md +21 -17
- package/dist/accountDescriptor.js +65 -0
- package/dist/bankAccount.js +8 -0
- package/dist/client.js +41 -40
- package/dist/config.js +57 -10
- package/dist/interactions/balanceInteraction.js +10 -8
- package/dist/interactions/creditcardStatementInteraction.js +8 -7
- package/dist/interactions/electronicStatementInteraction.js +6 -5
- package/dist/interactions/portfolioInteraction.js +9 -7
- package/dist/interactions/sepaAccountInteraction.js +6 -5
- package/dist/interactions/statementInteractionCAMT.js +6 -5
- package/dist/interactions/statementInteractionMT940.js +7 -6
- package/dist/message.js +5 -1
- package/dist/segments/HKKAZ.js +1 -1
- package/dist/tests/accountDescriptor.test.js +99 -0
- package/dist/tests/accountReference.test.js +126 -0
- package/dist/tests/interactionAccountDescriptor.test.js +153 -0
- package/dist/tests/message.test.js +18 -0
- package/dist/types/accountDescriptor.d.ts +49 -0
- package/dist/types/accountDescriptor.d.ts.map +1 -0
- package/dist/types/bankAccount.d.ts +13 -0
- package/dist/types/bankAccount.d.ts.map +1 -1
- package/dist/types/client.d.ts +21 -20
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/config.d.ts +27 -6
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/interactions/balanceInteraction.d.ts +3 -2
- package/dist/types/interactions/balanceInteraction.d.ts.map +1 -1
- package/dist/types/interactions/creditcardStatementInteraction.d.ts +3 -2
- package/dist/types/interactions/creditcardStatementInteraction.d.ts.map +1 -1
- package/dist/types/interactions/electronicStatementInteraction.d.ts +3 -2
- package/dist/types/interactions/electronicStatementInteraction.d.ts.map +1 -1
- package/dist/types/interactions/portfolioInteraction.d.ts +3 -2
- package/dist/types/interactions/portfolioInteraction.d.ts.map +1 -1
- package/dist/types/interactions/sepaAccountInteraction.d.ts +3 -2
- package/dist/types/interactions/sepaAccountInteraction.d.ts.map +1 -1
- package/dist/types/interactions/statementInteractionCAMT.d.ts +3 -2
- package/dist/types/interactions/statementInteractionCAMT.d.ts.map +1 -1
- package/dist/types/interactions/statementInteractionMT940.d.ts +3 -2
- package/dist/types/interactions/statementInteractionMT940.d.ts.map +1 -1
- package/dist/types/message.d.ts.map +1 -1
- package/dist/types/segments/HKKAZ.d.ts +2 -2
- package/dist/types/segments/HKKAZ.d.ts.map +1 -1
- package/dist/types/tests/accountDescriptor.test.d.ts +2 -0
- package/dist/types/tests/accountDescriptor.test.d.ts.map +1 -0
- package/dist/types/tests/accountReference.test.d.ts +2 -0
- package/dist/types/tests/accountReference.test.d.ts.map +1 -0
- package/dist/types/tests/interactionAccountDescriptor.test.d.ts +2 -0
- package/dist/types/tests/interactionAccountDescriptor.test.d.ts.map +1 -0
- package/package.json +1 -1
package/dist/types/client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AccountRef } from './bankAccount.js';
|
|
1
2
|
import { FinTSConfig } from './config.js';
|
|
2
3
|
import { type AccountBalanceResponse } from './interactions/balanceInteraction.js';
|
|
3
4
|
import type { StatementResponse } from './interactions/customerInteraction.js';
|
|
@@ -43,16 +44,16 @@ export declare class FinTSClient {
|
|
|
43
44
|
synchronizeWithTan(tanReference: string, tan?: string): Promise<SynchronizeResponse>;
|
|
44
45
|
/**
|
|
45
46
|
* Checks if the bank supports fetching an account balance in general or for the given account number when provided
|
|
46
|
-
* @param
|
|
47
|
+
* @param account when the account number is provided, checks if the account supports fetching the balance
|
|
47
48
|
* @returns true if the bank (and account) supports fetching the account balance
|
|
48
49
|
*/
|
|
49
|
-
canGetAccountBalance(
|
|
50
|
+
canGetAccountBalance(account?: AccountRef): boolean;
|
|
50
51
|
/**
|
|
51
52
|
* Fetches the account balance for the given account number
|
|
52
|
-
* @param
|
|
53
|
+
* @param account - the account number to fetch the balance for, must be an account available in the config.baningInformation.UPD.accounts
|
|
53
54
|
* @returns the account balance response
|
|
54
55
|
*/
|
|
55
|
-
getAccountBalance(
|
|
56
|
+
getAccountBalance(account: AccountRef): Promise<AccountBalanceResponse>;
|
|
56
57
|
/**
|
|
57
58
|
* Continues the account balance fetching when a TAN is required
|
|
58
59
|
* @param tanReference The TAN reference provided in the first call's response
|
|
@@ -62,19 +63,19 @@ export declare class FinTSClient {
|
|
|
62
63
|
getAccountBalanceWithTan(tanReference: string, tan?: string): Promise<AccountBalanceResponse>;
|
|
63
64
|
/**
|
|
64
65
|
* Checks if the bank supports fetching account statements in general or for the given account number when provided
|
|
65
|
-
* @param
|
|
66
|
+
* @param account when the account number is provided, checks if the account supports fetching of statements
|
|
66
67
|
* @returns true if the bank (and account) supports fetching account statements
|
|
67
68
|
*/
|
|
68
|
-
canGetAccountStatements(
|
|
69
|
+
canGetAccountStatements(account?: AccountRef): boolean;
|
|
69
70
|
/**
|
|
70
71
|
* Fetches the account statements for the given account number
|
|
71
|
-
* @param
|
|
72
|
+
* @param account - the account number to fetch the statements for, must be an account available in the config.baningInformation.UPD.accounts
|
|
72
73
|
* @param from - an optional start date of the period to fetch the statements for
|
|
73
74
|
* @param to - an optional end date of the period to fetch the statements for
|
|
74
75
|
* @param preferCamt - whether to prefer CAMT format over MT940 when both are supported (default: true)
|
|
75
76
|
* @returns an account statements response containing an array of statements
|
|
76
77
|
*/
|
|
77
|
-
getAccountStatements(
|
|
78
|
+
getAccountStatements(account: AccountRef, from?: Date, to?: Date, preferCamt?: boolean): Promise<StatementResponse>;
|
|
78
79
|
/**
|
|
79
80
|
* Continues the account statements fetching when a TAN is required
|
|
80
81
|
* @param tanReference The TAN reference provided in the first call's response
|
|
@@ -84,19 +85,19 @@ export declare class FinTSClient {
|
|
|
84
85
|
getAccountStatementsWithTan(tanReference: string, tan?: string): Promise<StatementResponse>;
|
|
85
86
|
/**
|
|
86
87
|
* Checks if the bank supports fetching portfolio information in general or for the given account number when provided
|
|
87
|
-
* @param
|
|
88
|
+
* @param account when the account number is provided, checks if the account supports fetching of portfolio information
|
|
88
89
|
* @returns true if the bank (and account) supports fetching portfolio information
|
|
89
90
|
*/
|
|
90
|
-
canGetPortfolio(
|
|
91
|
+
canGetPortfolio(account?: AccountRef): boolean;
|
|
91
92
|
/**
|
|
92
93
|
* Fetches the portfolio information for the given depot account number
|
|
93
|
-
* @param
|
|
94
|
+
* @param account - the depot account number to fetch the portfolio for, must be an account available in the config.bankingInformation.UPD.accounts
|
|
94
95
|
* @param currency - optional currency filter for the portfolio statement
|
|
95
96
|
* @param priceQuality - optional price quality filter ('1' for real-time, '2' for delayed)
|
|
96
97
|
* @param maxEntries - optional maximum number of entries to retrieve
|
|
97
98
|
* @returns a portfolio response containing holdings and total value
|
|
98
99
|
*/
|
|
99
|
-
getPortfolio(
|
|
100
|
+
getPortfolio(account: AccountRef, currency?: string, priceQuality?: '1' | '2', maxEntries?: number): Promise<PortfolioResponse>;
|
|
100
101
|
/**
|
|
101
102
|
* Continues the portfolio fetching when a TAN is required
|
|
102
103
|
* @param tanReference The TAN reference provided in the first call's response
|
|
@@ -107,19 +108,19 @@ export declare class FinTSClient {
|
|
|
107
108
|
getPortfolioWithTan(tanReference: string, tan?: string): Promise<PortfolioResponse>;
|
|
108
109
|
/**
|
|
109
110
|
* Checks if the bank supports fetching credit card statements in general or for the given account number
|
|
110
|
-
* @param
|
|
111
|
+
* @param account when the account number is provided, checks if the account supports fetching of statements
|
|
111
112
|
* @returns true if the bank (and account) supports fetching credit card statements
|
|
112
113
|
*/
|
|
113
|
-
canGetCreditCardStatements(
|
|
114
|
+
canGetCreditCardStatements(account?: AccountRef): boolean;
|
|
114
115
|
/**
|
|
115
116
|
* Fetches the credit card statements for the given account number
|
|
116
|
-
* @param
|
|
117
|
+
* @param account - the account number to fetch the statements for, must be a credit card account available
|
|
117
118
|
* in the config.baningInformation.UPD.accounts
|
|
118
119
|
* @param from - an optional start date of the period to fetch the statements for
|
|
119
120
|
* @param to - an optional end date of the period to fetch the statements for
|
|
120
121
|
* @returns an account statements response containing an array of statements
|
|
121
122
|
*/
|
|
122
|
-
getCreditCardStatements(
|
|
123
|
+
getCreditCardStatements(account: AccountRef, from?: Date): Promise<StatementResponse>;
|
|
123
124
|
/**
|
|
124
125
|
* Continues the credit card statements fetching when a TAN is required
|
|
125
126
|
* @param tanReference The TAN reference provided in the first call's response
|
|
@@ -129,10 +130,10 @@ export declare class FinTSClient {
|
|
|
129
130
|
getCreditCardStatementsWithTan(tanReference: string, tan?: string): Promise<StatementResponse>;
|
|
130
131
|
/**
|
|
131
132
|
* Checks if the bank supports fetching electronic account statements in general or for the given account number
|
|
132
|
-
* @param
|
|
133
|
+
* @param account when the account number is provided, checks if the account supports fetching of electronic statements
|
|
133
134
|
* @returns true if the bank (and account) supports fetching electronic account statements
|
|
134
135
|
*/
|
|
135
|
-
canGetElectronicStatements(
|
|
136
|
+
canGetElectronicStatements(account?: AccountRef): boolean;
|
|
136
137
|
/**
|
|
137
138
|
* Fetches an electronic account statement (Elektronischer Kontoauszug) for the given account number
|
|
138
139
|
*
|
|
@@ -142,11 +143,11 @@ export declare class FinTSClient {
|
|
|
142
143
|
* fetch the next one. Banks that set `receiptRequired` in their HIEKAS parameters keep
|
|
143
144
|
* offering a statement until it has been acknowledged with its receipt.
|
|
144
145
|
*
|
|
145
|
-
* @param
|
|
146
|
+
* @param account - the account number to fetch the statement for, must be an account available in the config.bankingInformation.upd.accounts
|
|
146
147
|
* @param options - optional format, statement number and year, entry limit and offset
|
|
147
148
|
* @returns a response containing the statement documents and the offset of a waiting successor
|
|
148
149
|
*/
|
|
149
|
-
getElectronicStatements(
|
|
150
|
+
getElectronicStatements(account: AccountRef, options?: ElectronicStatementOptions): Promise<ElectronicStatementResponse>;
|
|
150
151
|
/**
|
|
151
152
|
* Continues the electronic account statement fetching when a TAN is required
|
|
152
153
|
* @param tanReference The TAN reference provided in the first call's response
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,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|
|
|
1
|
-
import type { BankAccount } from './bankAccount.js';
|
|
1
|
+
import type { AccountRef, BankAccount } from './bankAccount.js';
|
|
2
2
|
import type { BankingInformation } from './bankingInformation.js';
|
|
3
3
|
import type { TanMethod } from './tanMethod.js';
|
|
4
4
|
/**
|
|
@@ -86,21 +86,42 @@ export declare class FinTSConfig {
|
|
|
86
86
|
* @param transId The transaction ID
|
|
87
87
|
*/
|
|
88
88
|
isTransactionSupported(transId: string): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* The account the bank meant, without demanding that it be unambiguous.
|
|
91
|
+
*
|
|
92
|
+
* For entries the *bank* supplied — a SEPA account from HISPA, say — rather than
|
|
93
|
+
* ones a caller asked for. A caller who names an ambiguous account has made a
|
|
94
|
+
* mistake worth an exception; a bank listing its own accounts has not, and
|
|
95
|
+
* throwing there would break every dialog at an institution that shares numbers.
|
|
96
|
+
*
|
|
97
|
+
* @param account An account number with, where the bank gave one, its sub-account id
|
|
98
|
+
*/
|
|
99
|
+
matchBankAccount(account: {
|
|
100
|
+
accountNumber: string;
|
|
101
|
+
subAccountId?: string;
|
|
102
|
+
}): BankAccount | undefined;
|
|
89
103
|
/**
|
|
90
104
|
* Checks if a transaction is supported for a specific account
|
|
91
|
-
* @param
|
|
105
|
+
* @param account An account number, or an account from `bankingInformation.upd.bankAccounts`
|
|
92
106
|
* @param transId The transaction ID
|
|
93
107
|
*/
|
|
94
|
-
isAccountTransactionSupported(
|
|
108
|
+
isAccountTransactionSupported(account: AccountRef, transId: string): boolean;
|
|
95
109
|
/**
|
|
96
110
|
* Gets the maximum supported transaction version of a transaction, considering this client's support and the bank's support
|
|
97
111
|
* @param transId The transaction ID
|
|
98
112
|
*/
|
|
99
113
|
getMaxSupportedTransactionVersion(transId: string): number | undefined;
|
|
100
114
|
/**
|
|
101
|
-
*
|
|
102
|
-
*
|
|
115
|
+
* Resolves an account reference against the accounts the bank reported.
|
|
116
|
+
*
|
|
117
|
+
* A number alone is enough wherever it is unique, which is the usual case. Where
|
|
118
|
+
* it is not, this throws instead of picking one: FinTS identifies an account by
|
|
119
|
+
* number *and* sub-account id, so a number that matches two accounts does not say
|
|
120
|
+
* which one is meant, and answering for the wrong one produces a balance or a list
|
|
121
|
+
* of transactions that belongs to a different account with nothing to indicate it.
|
|
122
|
+
*
|
|
123
|
+
* @param account An account number, or an account from `bankingInformation.upd.bankAccounts`
|
|
103
124
|
*/
|
|
104
|
-
getBankAccount(
|
|
125
|
+
getBankAccount(account: AccountRef): BankAccount;
|
|
105
126
|
}
|
|
106
127
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AACH,qBAAa,WAAW;IAKf,SAAS,EAAE,MAAM;IACjB,cAAc,EAAE,MAAM;IAC7B,OAAO,CAAC,GAAG,CAAC;IACZ,OAAO,CAAC,kBAAkB,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM;IACf,GAAG,CAAC,EAAE,MAAM;IAEZ,WAAW,CAAC,EAAE,MAAM;IACpB,YAAY,CAAC,EAAE,MAAM;IACrB,UAAU,CAAC,EAAE,MAAM;IAC1B,OAAO,CAAC,OAAO;IAdhB,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,YAAY,UAAS;IAErB,OAAO;IA+CP;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,eAAe,CACrB,SAAS,EAAE,MAAM,E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EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO;IAK5E;;;OAGG;IACH,iCAAiC,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAgBtE;;;;;;;;;;OAUG;IACH,cAAc,CAAC,OAAO,EAAE,UAAU,GAAG,WAAW;CAqChD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AccountBalance } from '../accountBalance.js';
|
|
2
|
+
import { type AccountRef } from '../bankAccount.js';
|
|
2
3
|
import type { FinTSConfig } from '../config.js';
|
|
3
4
|
import type { Message } from '../message.js';
|
|
4
5
|
import type { Segment } from '../segment.js';
|
|
@@ -7,8 +8,8 @@ export interface AccountBalanceResponse extends ClientResponse {
|
|
|
7
8
|
balance?: AccountBalance;
|
|
8
9
|
}
|
|
9
10
|
export declare class BalanceInteraction extends CustomerOrderInteraction {
|
|
10
|
-
|
|
11
|
-
constructor(
|
|
11
|
+
account: AccountRef;
|
|
12
|
+
constructor(account: AccountRef);
|
|
12
13
|
createSegments(init: FinTSConfig): Segment[];
|
|
13
14
|
handleResponse(response: Message, clientResponse: AccountBalanceResponse): void;
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"balanceInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/balanceInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC7D,OAAO,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,qBAAa,kBAAmB,SAAQ,wBAAwB;IAC5C,
|
|
1
|
+
{"version":3,"file":"balanceInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/balanceInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAE3D,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AAErE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC7D,OAAO,CAAC,EAAE,cAAc,CAAC;CACzB;AAED,qBAAa,kBAAmB,SAAQ,wBAAwB;IAC5C,OAAO,EAAE,UAAU;gBAAnB,OAAO,EAAE,UAAU;IAItC,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,EAAE;IA0B5C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB;CAaxE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { AccountBalance } from '../accountBalance.js';
|
|
2
|
+
import { type AccountRef } from '../bankAccount.js';
|
|
2
3
|
import type { FinTSConfig } from '../config.js';
|
|
3
4
|
import type { CreditCardStatement } from '../creditCardStatement.js';
|
|
4
5
|
import type { Message } from '../message.js';
|
|
@@ -9,9 +10,9 @@ export interface CreditCardStatementResponse extends ClientResponse {
|
|
|
9
10
|
statements: CreditCardStatement[];
|
|
10
11
|
}
|
|
11
12
|
export declare class CreditCardStatementInteraction extends CustomerOrderInteraction {
|
|
12
|
-
|
|
13
|
+
account: AccountRef;
|
|
13
14
|
from?: Date | undefined;
|
|
14
|
-
constructor(
|
|
15
|
+
constructor(account: AccountRef, from?: Date | undefined);
|
|
15
16
|
createSegments(init: FinTSConfig): Segment[];
|
|
16
17
|
handleResponse(response: Message, clientResponse: CreditCardStatementResponse): void;
|
|
17
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"creditcardStatementInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/creditcardStatementInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IAClE,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,mBAAmB,EAAE,CAAC;CAClC;AAED,qBAAa,8BAA+B,SAAQ,wBAAwB;IAEnE,
|
|
1
|
+
{"version":3,"file":"creditcardStatementInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/creditcardStatementInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IAClE,OAAO,EAAE,cAAc,CAAC;IACxB,UAAU,EAAE,mBAAmB,EAAE,CAAC;CAClC;AAED,qBAAa,8BAA+B,SAAQ,wBAAwB;IAEnE,OAAO,EAAE,UAAU;IACnB,IAAI,CAAC,EAAE,IAAI;gBADX,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,IAAI,YAAA;IAKnB,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,EAAE;IAuB5C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,2BAA2B;CAuF7E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AccountRef } from '../bankAccount.js';
|
|
1
2
|
import type { FinTSConfig } from '../config.js';
|
|
2
3
|
import type { ElectronicStatement } from '../electronicStatement.js';
|
|
3
4
|
import type { Message } from '../message.js';
|
|
@@ -24,9 +25,9 @@ export interface ElectronicStatementOptions {
|
|
|
24
25
|
offset?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare class ElectronicStatementInteraction extends CustomerOrderInteraction {
|
|
27
|
-
|
|
28
|
+
account: AccountRef;
|
|
28
29
|
options: ElectronicStatementOptions;
|
|
29
|
-
constructor(
|
|
30
|
+
constructor(account: AccountRef, options?: ElectronicStatementOptions);
|
|
30
31
|
createSegments(init: FinTSConfig): Segment[];
|
|
31
32
|
handleResponse(response: Message, clientResponse: ElectronicStatementResponse): void;
|
|
32
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"electronicStatementInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/electronicStatementInteraction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"electronicStatementInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/electronicStatementInteraction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAA4B,KAAK,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IAClE,UAAU,EAAE,mBAAmB,EAAE,CAAC;IAClC;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,0BAA0B;IAC1C,uFAAuF;IACvF,MAAM,CAAC,EAAE,eAAe,CAAC;IACzB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAwCD,qBAAa,8BAA+B,SAAQ,wBAAwB;IAEnE,OAAO,EAAE,UAAU;IACnB,OAAO,EAAE,0BAA0B;gBADnC,OAAO,EAAE,UAAU,EACnB,OAAO,GAAE,0BAA+B;IAKhD,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,EAAE;IAyB5C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,2BAA2B;CA4B7E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type AccountRef } from '../bankAccount.js';
|
|
1
2
|
import type { FinTSConfig } from '../config.js';
|
|
2
3
|
import type { Message } from '../message.js';
|
|
3
4
|
import { type Holding, type StatementOfHoldings } from '../mt535parser.js';
|
|
@@ -27,12 +28,12 @@ export interface PortfolioResponse extends ClientResponse {
|
|
|
27
28
|
* Interaction for requesting and parsing stock portfolio information (HKWPD/HIWPD)
|
|
28
29
|
*/
|
|
29
30
|
export declare class PortfolioInteraction extends CustomerOrderInteraction {
|
|
30
|
-
|
|
31
|
+
account: AccountRef;
|
|
31
32
|
private currency?;
|
|
32
33
|
private priceQuality?;
|
|
33
34
|
private maxEntries?;
|
|
34
35
|
private paginationMarker?;
|
|
35
|
-
constructor(
|
|
36
|
+
constructor(account: AccountRef, currency?: string | undefined, priceQuality?: "1" | "2" | undefined, maxEntries?: number | undefined, paginationMarker?: string | undefined);
|
|
36
37
|
createSegments(config: FinTSConfig): Segment[];
|
|
37
38
|
handleResponse(response: Message, clientResponse: PortfolioResponse): void;
|
|
38
39
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portfolioInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/portfolioInteraction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"portfolioInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/portfolioInteraction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAmB,MAAM,mBAAmB,CAAC;AACrE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,KAAK,OAAO,EAAe,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxF,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC;AAEvC;;;GAGG;AACH,MAAM,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;AAE3D,MAAM,WAAW,iBAAkB,SAAQ,cAAc;IACxD;;OAEG;IACH,kBAAkB,CAAC,EAAE,wBAAwB,CAAC;IAC9C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,qBAAa,oBAAqB,SAAQ,wBAAwB;IAEzD,OAAO,EAAE,UAAU;IAC1B,OAAO,CAAC,QAAQ,CAAC;IACjB,OAAO,CAAC,YAAY,CAAC;IACrB,OAAO,CAAC,UAAU,CAAC;IACnB,OAAO,CAAC,gBAAgB,CAAC;gBAJlB,OAAO,EAAE,UAAU,EAClB,QAAQ,CAAC,EAAE,MAAM,YAAA,EACjB,YAAY,CAAC,EAAE,GAAG,GAAG,GAAG,YAAA,EACxB,UAAU,CAAC,EAAE,MAAM,YAAA,EACnB,gBAAgB,CAAC,EAAE,MAAM,YAAA;IAKlC,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,EAAE;IA4B9C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB,GAAG,IAAI;CAqB1E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AccountRef } from '../bankAccount.js';
|
|
1
2
|
import type { FinTSConfig } from '../config.js';
|
|
2
3
|
import type { SepaAccount } from '../dataGroups/SepaAccount.js';
|
|
3
4
|
import type { Message } from '../message.js';
|
|
@@ -7,9 +8,9 @@ export interface SepaAccountResponse extends ClientResponse {
|
|
|
7
8
|
sepaAccounts?: SepaAccount[];
|
|
8
9
|
}
|
|
9
10
|
export declare class SepaAccountInteraction extends CustomerOrderInteraction {
|
|
10
|
-
accounts?:
|
|
11
|
+
accounts?: AccountRef[] | undefined;
|
|
11
12
|
maxEntries?: number | undefined;
|
|
12
|
-
constructor(accounts?:
|
|
13
|
+
constructor(accounts?: AccountRef[] | undefined, // optional: only these accounts
|
|
13
14
|
maxEntries?: number | undefined);
|
|
14
15
|
createSegments(init: FinTSConfig): Segment[];
|
|
15
16
|
handleResponse(response: Message, clientResponse: SepaAccountResponse): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sepaAccountInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/sepaAccountInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IAC1D,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,qBAAa,sBAAuB,SAAQ,wBAAwB;IAE3D,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"sepaAccountInteraction.d.ts","sourceRoot":"","sources":["../../../src/interactions/sepaAccountInteraction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,KAAK,cAAc,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAEzF,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IAC1D,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC;CAC7B;AAED,qBAAa,sBAAuB,SAAQ,wBAAwB;IAE3D,QAAQ,CAAC,EAAE,UAAU,EAAE;IACvB,UAAU,CAAC,EAAE,MAAM;gBADnB,QAAQ,CAAC,EAAE,UAAU,EAAE,YAAA,EAAE,gCAAgC;IACzD,UAAU,CAAC,EAAE,MAAM,YAAA;IAK3B,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,EAAE;IAsB5C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,mBAAmB;CAwBrE"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { AccountRef } from '../bankAccount.js';
|
|
1
2
|
import type { FinTSConfig } from '../config.js';
|
|
2
3
|
import type { Message } from '../message.js';
|
|
3
4
|
import type { Segment } from '../segment.js';
|
|
4
5
|
import { CustomerOrderInteraction, type StatementResponse } from './customerInteraction.js';
|
|
5
6
|
export declare class StatementInteractionCAMT extends CustomerOrderInteraction {
|
|
6
|
-
|
|
7
|
+
account: AccountRef;
|
|
7
8
|
from?: Date | undefined;
|
|
8
9
|
to?: Date | undefined;
|
|
9
|
-
constructor(
|
|
10
|
+
constructor(account: AccountRef, from?: Date | undefined, to?: Date | undefined);
|
|
10
11
|
createSegments(init: FinTSConfig): Segment[];
|
|
11
12
|
handleResponse(response: Message, clientResponse: StatementResponse): void;
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statementInteractionCAMT.d.ts","sourceRoot":"","sources":["../../../src/interactions/statementInteractionCAMT.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAK7C,OAAO,EAAE,wBAAwB,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,qBAAa,wBAAyB,SAAQ,wBAAwB;IAE7D,
|
|
1
|
+
{"version":3,"file":"statementInteractionCAMT.d.ts","sourceRoot":"","sources":["../../../src/interactions/statementInteractionCAMT.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAK7C,OAAO,EAAE,wBAAwB,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,qBAAa,wBAAyB,SAAQ,wBAAwB;IAE7D,OAAO,EAAE,UAAU;IACnB,IAAI,CAAC,EAAE,IAAI;IACX,EAAE,CAAC,EAAE,IAAI;gBAFT,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,IAAI,YAAA,EACX,EAAE,CAAC,EAAE,IAAI,YAAA;IAKjB,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,EAAE;IA6B5C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB;CAuCnE"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { AccountRef } from '../bankAccount.js';
|
|
1
2
|
import type { FinTSConfig } from '../config.js';
|
|
2
3
|
import type { Message } from '../message.js';
|
|
3
4
|
import type { Segment } from '../segment.js';
|
|
4
5
|
import { CustomerOrderInteraction, type StatementResponse } from './customerInteraction.js';
|
|
5
6
|
export declare class StatementInteractionMT940 extends CustomerOrderInteraction {
|
|
6
|
-
|
|
7
|
+
account: AccountRef;
|
|
7
8
|
from?: Date | undefined;
|
|
8
9
|
to?: Date | undefined;
|
|
9
|
-
constructor(
|
|
10
|
+
constructor(account: AccountRef, from?: Date | undefined, to?: Date | undefined);
|
|
10
11
|
createSegments(init: FinTSConfig): Segment[];
|
|
11
12
|
handleResponse(response: Message, clientResponse: StatementResponse): void;
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"statementInteractionMT940.d.ts","sourceRoot":"","sources":["../../../src/interactions/statementInteractionMT940.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"statementInteractionMT940.d.ts","sourceRoot":"","sources":["../../../src/interactions/statementInteractionMT940.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAG7C,OAAO,EAAE,wBAAwB,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,qBAAa,yBAA0B,SAAQ,wBAAwB;IAE9D,OAAO,EAAE,UAAU;IACnB,IAAI,CAAC,EAAE,IAAI;IACX,EAAE,CAAC,EAAE,IAAI;gBAFT,OAAO,EAAE,UAAU,EACnB,IAAI,CAAC,EAAE,IAAI,YAAA,EACX,EAAE,CAAC,EAAE,IAAI,YAAA;IAKjB,cAAc,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,EAAE;IAsB5C,cAAc,CAAC,QAAQ,EAAE,OAAO,EAAE,cAAc,EAAE,iBAAiB;CAsBnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../../src/message.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIlD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAa5C,OAAO,EAAE,KAAK,cAAc,EAAY,MAAM,qBAAqB,CAAC;AAEpE,qBAAa,OAAO;IACA,QAAQ,EAAE,OAAO,EAAE;gBAAnB,QAAQ,EAAE,OAAO,EAAE;IAEtC,WAAW,CAAC,CAAC,SAAS,OAAO,EAAE,SAAS,EAAE,MAAM,GAAG,CAAC,GAAG,S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B,IAAI,MAAM;IAU9B,cAAc,IAAI,UAAU,EAAE;IA6B9B,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO;IAoBlE,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,mBAAmB,CAAC,EAAE,MAAM,GAAG,OAAO;IAqBzE,QAAQ,CAAC,cAAc,UAAQ,GAAG,MAAM;CAQxC;AAED,qBAAa,eAAgB,SAAQ,OAAO;IAC3C,mBAAmB,SAAK;gBAEZ,QAAQ,GAAE,MAAY,EAAE,KAAK,SAAI;IAiB7C,MAAM,IAAI,MAAM;IA4EhB,IAAI,CACH,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,MAAM,EACjB,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM;IAuCb,UAAU,CAAC,OAAO,EAAE,OAAO;CAS3B;AAED,qBAAa,oBAAqB,SAAQ,eAAe;IAEhD,UAAU,EAAE,MAAM;IAClB,kBAAkB,EAAE,MAAM;gBAD1B,UAAU,EAAE,MAAM,EAClB,kBAAkB,EAAE,MAAM,EACjC,QAAQ,GAAE,MAAY,EACtB,KAAK,SAAI;IAKV,IAAI,8BAA8B,IAAI,OAAO,CAG5C;CACD"}
|
|
@@ -3,11 +3,11 @@ import { Dat } from '../dataElements/Dat.js';
|
|
|
3
3
|
import { Numeric } from '../dataElements/Numeric.js';
|
|
4
4
|
import { YesNo } from '../dataElements/YesNo.js';
|
|
5
5
|
import { type Account, AccountGroup } from '../dataGroups/Account.js';
|
|
6
|
-
import { InternationalAccountGroup } from '../dataGroups/InternationalAccount.js';
|
|
6
|
+
import { type InternationalAccount, InternationalAccountGroup } from '../dataGroups/InternationalAccount.js';
|
|
7
7
|
import type { SegmentWithContinuationMark } from '../segment.js';
|
|
8
8
|
import { SegmentDefinition } from '../segmentDefinition.js';
|
|
9
9
|
export type HKKAZSegment = SegmentWithContinuationMark & {
|
|
10
|
-
account: Account;
|
|
10
|
+
account: Account | InternationalAccount;
|
|
11
11
|
allAccounts: boolean;
|
|
12
12
|
from?: Date;
|
|
13
13
|
to?: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HKKAZ.d.ts","sourceRoot":"","sources":["../../../src/segments/HKKAZ.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,KAAK,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,
|
|
1
|
+
{"version":3,"file":"HKKAZ.d.ts","sourceRoot":"","sources":["../../../src/segments/HKKAZ.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,GAAG,EAAE,MAAM,wBAAwB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,KAAK,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EACN,KAAK,oBAAoB,EACzB,yBAAyB,EACzB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG,2BAA2B,GAAG;IACxD,OAAO,EAAE,OAAO,GAAG,oBAAoB,CAAC;IACxC,WAAW,EAAE,OAAO,CAAC;IACrB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,EAAE,CAAC,EAAE,IAAI,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,qBAAa,KAAM,SAAQ,iBAAiB;IAC3C,MAAM,CAAC,EAAE,SAAW;IACpB,MAAM,CAAC,OAAO,SAAK;;IAInB,OAAO,SAAiB;IACxB,QAAQ,sFAQN;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountDescriptor.test.d.ts","sourceRoot":"","sources":["../../../src/tests/accountDescriptor.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accountReference.test.d.ts","sourceRoot":"","sources":["../../../src/tests/accountReference.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactionAccountDescriptor.test.d.ts","sourceRoot":"","sources":["../../../src/tests/interactionAccountDescriptor.test.ts"],"names":[],"mappings":""}
|