flinks-api 1.0.2
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/LICENSE +21 -0
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +563 -0
- package/package.json +35 -0
- package/readme.md +219 -0
- package/src/FlinksApi.ts +474 -0
- package/src/index.ts +2 -0
- package/src/types.ts +532 -0
- package/tsconfig.json +13 -0
- package/tsdown.config.ts +8 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,532 @@
|
|
|
1
|
+
import {AxiosInstance, AxiosRequestConfig} from "axios";
|
|
2
|
+
|
|
3
|
+
export interface Logger {
|
|
4
|
+
log(message: string, ...optionalParams: any[]): void;
|
|
5
|
+
error(message: string, ...optionalParams: any[]): void;
|
|
6
|
+
info?(message: string, ...optionalParams: any[]): void;
|
|
7
|
+
warn?(message: string, ...optionalParams: any[]): void;
|
|
8
|
+
debug?(message: string, ...optionalParams: any[]): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface FlinksApiConfiguration {
|
|
12
|
+
|
|
13
|
+
country: CountryShortcode,
|
|
14
|
+
customerId:string,
|
|
15
|
+
url:string,
|
|
16
|
+
apiKey: string,
|
|
17
|
+
authKey:string,
|
|
18
|
+
bearerToken:string,
|
|
19
|
+
axiosInstance?: AxiosInstance,
|
|
20
|
+
logger?:Logger,
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export enum AllowedCurrencyTypes {
|
|
24
|
+
"cad" = "CAD",
|
|
25
|
+
"usd" = "USD",
|
|
26
|
+
}
|
|
27
|
+
// Based on: https://www.canada.ca/en/revenue-agency/services/tax/businesses/topics/completing-slips-summaries/financial-slips-summaries/return-investment-income-t5/provincial-territorial-codes.html
|
|
28
|
+
export enum ProvincesShortcode {
|
|
29
|
+
"Alberta" = "AB",
|
|
30
|
+
"British Columbia" = "BC",
|
|
31
|
+
"Manitoba" = "MB",
|
|
32
|
+
"New Brunswick" = "NB",
|
|
33
|
+
"Newfoundland and Labrador" = "NL",
|
|
34
|
+
"Northwest Territories" = "NT",
|
|
35
|
+
"Nova Scotia" = "NS",
|
|
36
|
+
"Ontario" = "ON",
|
|
37
|
+
"Prince Edward Island" = "PE",
|
|
38
|
+
"Quebec" = "QC",
|
|
39
|
+
"Saskatchewan" = "SK",
|
|
40
|
+
"Yukon" = "YT",
|
|
41
|
+
"Nunavut" = "NU",
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export enum StatesShortcode {
|
|
45
|
+
Alabama = "AL",
|
|
46
|
+
Alaska = "AK",
|
|
47
|
+
Arizona = "AZ",
|
|
48
|
+
Arkansas = "AR",
|
|
49
|
+
California = "CA",
|
|
50
|
+
Colorado = "CO",
|
|
51
|
+
Connecticut = "CT",
|
|
52
|
+
Delaware = "DE",
|
|
53
|
+
Florida = "FL",
|
|
54
|
+
Georgia = "GA",
|
|
55
|
+
Hawaii = "HI",
|
|
56
|
+
Idaho = "ID",
|
|
57
|
+
Illinois = "IL",
|
|
58
|
+
Indiana = "IN",
|
|
59
|
+
Iowa = "IA",
|
|
60
|
+
Kansas = "KS",
|
|
61
|
+
Kentucky = "KY",
|
|
62
|
+
Louisiana = "LA",
|
|
63
|
+
Maine = "ME",
|
|
64
|
+
Maryland = "MD",
|
|
65
|
+
Massachusetts = "MA",
|
|
66
|
+
Michigan = "MI",
|
|
67
|
+
Minnesota = "MN",
|
|
68
|
+
Mississippi = "MS",
|
|
69
|
+
Missouri = "MO",
|
|
70
|
+
Montana = "MT",
|
|
71
|
+
Nebraska = "NE",
|
|
72
|
+
Nevada = "NV",
|
|
73
|
+
NewHampshire = "NH",
|
|
74
|
+
NewJersey = "NJ",
|
|
75
|
+
NewMexico = "NM",
|
|
76
|
+
NewYork = "NY",
|
|
77
|
+
NorthCarolina = "NC",
|
|
78
|
+
NorthDakota = "ND",
|
|
79
|
+
Ohio = "OH",
|
|
80
|
+
Oklahoma = "OK",
|
|
81
|
+
Oregon = "OR",
|
|
82
|
+
Pennsylvania = "PA",
|
|
83
|
+
RhodeIsland = "RI",
|
|
84
|
+
SouthCarolina = "SC",
|
|
85
|
+
SouthDakota = "SD",
|
|
86
|
+
Tennessee = "TN",
|
|
87
|
+
Texas = "TX",
|
|
88
|
+
Utah = "UT",
|
|
89
|
+
Vermont = "VT",
|
|
90
|
+
Virginia = "VA",
|
|
91
|
+
Washington = "WA",
|
|
92
|
+
WestVirginia = "WV",
|
|
93
|
+
Wisconsin = "WI",
|
|
94
|
+
Wyoming = "WY",
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//Based on: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2
|
|
98
|
+
export enum CountryShortcode {
|
|
99
|
+
"Canada" = "CA",
|
|
100
|
+
"United States" = "US",
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
export type CaAddress = {
|
|
105
|
+
CivicAddress: string;
|
|
106
|
+
City: string;
|
|
107
|
+
Province: ProvincesShortcode;
|
|
108
|
+
PostalCode: string;
|
|
109
|
+
POBox?: string;
|
|
110
|
+
Country: CountryShortcode;
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
export interface WordLists {
|
|
114
|
+
adjectives: string[];
|
|
115
|
+
verbs: string[]; // gerunds (verb-ing)
|
|
116
|
+
nouns: string[];
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
export interface PendingPackage {
|
|
121
|
+
requestId?: string;
|
|
122
|
+
headers: Record<string, string>;
|
|
123
|
+
PathParam: string;
|
|
124
|
+
FlinksCode?: string;
|
|
125
|
+
Body?: string;
|
|
126
|
+
Config?: AxiosRequestConfig;
|
|
127
|
+
Links?: [
|
|
128
|
+
{
|
|
129
|
+
rel: string;
|
|
130
|
+
href: string;
|
|
131
|
+
example: string;
|
|
132
|
+
},
|
|
133
|
+
];
|
|
134
|
+
HttpStatusCode: number;
|
|
135
|
+
Message?: string;
|
|
136
|
+
RequestId?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface SecurityChallenge {
|
|
140
|
+
Type: FlinksSecurityType;
|
|
141
|
+
Prompt: string;
|
|
142
|
+
Iterables: string[];
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export interface SecurityResponses {
|
|
146
|
+
[key: string]: string[];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export enum DaysOfTransactionsOptions {
|
|
150
|
+
"Days90" = "Days90",
|
|
151
|
+
"Days365" = "Days365",
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface BankInfoOptions {
|
|
155
|
+
/**
|
|
156
|
+
* Contains a valid Authorize Token and represents a successful call to the /Authorize endpoint.
|
|
157
|
+
*/
|
|
158
|
+
requestId?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Enable Instant Bank Verification (IBV).
|
|
161
|
+
* Defaults to false.
|
|
162
|
+
*/
|
|
163
|
+
WithAccountIdentity?: boolean;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Include customer (KYC) information in account details.
|
|
167
|
+
* Defaults to false.
|
|
168
|
+
*/
|
|
169
|
+
WithKYC?: boolean;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Include transactions in account details.
|
|
173
|
+
* Defaults to false.
|
|
174
|
+
*/
|
|
175
|
+
WithTransactions?: boolean;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Include balances in account details.
|
|
179
|
+
* Defaults to false.
|
|
180
|
+
*/
|
|
181
|
+
WithBalance?: boolean;
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* Limit the session to specific account IDs.
|
|
185
|
+
*/
|
|
186
|
+
AccountsFilter?: string[];
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Number of days of transaction history.
|
|
190
|
+
* Defaults to "Days90".
|
|
191
|
+
* - "Days90"
|
|
192
|
+
* - "Days365"
|
|
193
|
+
*/
|
|
194
|
+
DaysOfTransactions?: DaysOfTransactionsOptions;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Enable PDF banking statements (Base64).
|
|
198
|
+
* Defaults to false.
|
|
199
|
+
* Must be enabled by Flinks support.
|
|
200
|
+
*/
|
|
201
|
+
WithDetailsAndBankingStatements?: boolean;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Number of PDF banking statements to return.
|
|
205
|
+
*/
|
|
206
|
+
NumberOfBankingStatements?: number;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export interface FlinksTransactionDetails {
|
|
210
|
+
transactionId: string;
|
|
211
|
+
AccountID: string;
|
|
212
|
+
Key: string;
|
|
213
|
+
Signature: string;
|
|
214
|
+
FlinksAccountID: string;
|
|
215
|
+
FlinksLoginID: string;
|
|
216
|
+
Amount: number;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface MFAQuestions {
|
|
220
|
+
Question: string;
|
|
221
|
+
Answer?: string;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export interface Transaction {
|
|
225
|
+
Date: string;
|
|
226
|
+
Code: string | null;
|
|
227
|
+
Description: string;
|
|
228
|
+
Debit: number;
|
|
229
|
+
Credit: number;
|
|
230
|
+
Balance: number;
|
|
231
|
+
Id: string;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface TransactionHistory {
|
|
235
|
+
Accounts: {
|
|
236
|
+
Transactions: Transaction[];
|
|
237
|
+
}[];
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export enum NumberOfStatements {
|
|
241
|
+
"Most Recent" = "MostRecent",
|
|
242
|
+
"Months 3" = "Months3",
|
|
243
|
+
"Months 12" = "Months12",
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
export type StatementsByAccount = {
|
|
247
|
+
AccountNumber: string;
|
|
248
|
+
Statements: [
|
|
249
|
+
{ UniqueId: string; FileType: string; Base64Bytes: string },
|
|
250
|
+
];
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export type AccountFromSummary = {
|
|
254
|
+
EftEligibleRatio: number;
|
|
255
|
+
ETransferEligibleRatio: number;
|
|
256
|
+
Title: string;
|
|
257
|
+
AccountNumber: string;
|
|
258
|
+
LastFourDigits?: string;
|
|
259
|
+
Balance: Balance;
|
|
260
|
+
Category: string;
|
|
261
|
+
Type: string;
|
|
262
|
+
Currency: AllowedCurrencyTypes;
|
|
263
|
+
Holder: {
|
|
264
|
+
Name: string;
|
|
265
|
+
Address: CaAddress;
|
|
266
|
+
Email: string;
|
|
267
|
+
Id: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
export interface BankAccountDetails {
|
|
272
|
+
FinancialInstitutionNumber: string;
|
|
273
|
+
BranchTransitNumber: string;
|
|
274
|
+
AccountNumber: string;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
export interface FlinksDataOptions {
|
|
278
|
+
includeHeaders?: FlinksHeaderOptions[];
|
|
279
|
+
headers?: Record<string,string>;
|
|
280
|
+
requestId?: string;
|
|
281
|
+
pathParams?: string[];
|
|
282
|
+
queryParams?: Record<string,string>;
|
|
283
|
+
customTimeout?: number;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export interface FlinksPostOptions extends FlinksDataOptions {
|
|
287
|
+
body?: unknown;
|
|
288
|
+
}
|
|
289
|
+
export interface FlinksPatchOptions extends FlinksDataOptions {
|
|
290
|
+
body?: unknown;
|
|
291
|
+
}
|
|
292
|
+
export interface FlinksGetOptions extends FlinksDataOptions {}
|
|
293
|
+
export interface FlinksDeleteOptions extends FlinksDataOptions {}
|
|
294
|
+
|
|
295
|
+
export enum FlinksHeaderOptions {
|
|
296
|
+
AuthKey = "AuthKey",
|
|
297
|
+
ApiKey = "ApiKey",
|
|
298
|
+
BearerToken = "BearerToken",
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* This could probably be extensible, for the different Security Types
|
|
303
|
+
*/
|
|
304
|
+
export interface FlinksAuthorizeOptions extends BankInfoOptions {
|
|
305
|
+
mostRecentCached?: boolean;
|
|
306
|
+
save?: boolean;
|
|
307
|
+
mfaResponse?: SecurityResponses[];
|
|
308
|
+
tag?: string;
|
|
309
|
+
customTimeout?: number;
|
|
310
|
+
requestId?: string;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export enum FlinksSecurityType {
|
|
314
|
+
"QuestionAndAnswer" = "QuestionAndAnswer",
|
|
315
|
+
"ImageSelection" = "ImageSelection",
|
|
316
|
+
"MultipleChoice" = "MultipleChoice",
|
|
317
|
+
"TextOrCall" = "TextOrCall",
|
|
318
|
+
"WaitUntilEUAccept" = "WaitUntilEUAccept",
|
|
319
|
+
"MultipleChoiceMultipleAnswers" = "MultipleChoiceMultipleAnswers",
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
export type Balance = {
|
|
324
|
+
Available?: number;
|
|
325
|
+
Current?: number;
|
|
326
|
+
Limit?: number;
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
export interface IFlinksBankAccountDetails {
|
|
330
|
+
Transactions: IFlinksTransaction[];
|
|
331
|
+
TransitNumber: string;
|
|
332
|
+
InstitutionNumber: string;
|
|
333
|
+
OverdraftLimit: number;
|
|
334
|
+
Title: string;
|
|
335
|
+
AccountNumber: string;
|
|
336
|
+
LastFourDigits: string;
|
|
337
|
+
Balance: IFlinksBalance;
|
|
338
|
+
Category: string;
|
|
339
|
+
Type: string;
|
|
340
|
+
Currency: AllowedCurrencyTypes;
|
|
341
|
+
Holder: IFlinksHolder;
|
|
342
|
+
AccountType: string;
|
|
343
|
+
Id: string;
|
|
344
|
+
}
|
|
345
|
+
export interface IFlinksHolder {
|
|
346
|
+
Name: string;
|
|
347
|
+
Address: IFlinksAddress;
|
|
348
|
+
Email: string;
|
|
349
|
+
PhoneNumber: string;
|
|
350
|
+
}
|
|
351
|
+
export interface IFlinksBalance {
|
|
352
|
+
Available?: number;
|
|
353
|
+
Current?: number;
|
|
354
|
+
Limit?: number;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
export interface IFlinksAddress {
|
|
358
|
+
CivicAddress: string;
|
|
359
|
+
City: string;
|
|
360
|
+
Province: ProvincesShortcode | StatesShortcode;
|
|
361
|
+
PostalCode: string;
|
|
362
|
+
POBox?: string;
|
|
363
|
+
Country: CountryShortcode;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
export interface IFlinksLogin {
|
|
367
|
+
Username: string;
|
|
368
|
+
IsScheduledRefresh: boolean;
|
|
369
|
+
LastRefresh: string;
|
|
370
|
+
Type: string;
|
|
371
|
+
Id: string;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
export interface IFlinksTransaction {
|
|
375
|
+
Date: string;
|
|
376
|
+
Code?: string | null;
|
|
377
|
+
Description: string;
|
|
378
|
+
Debit?: number | null;
|
|
379
|
+
Credit?: number | null;
|
|
380
|
+
Balance: number;
|
|
381
|
+
Id: string;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
export interface IFlinksAccountCredential {
|
|
385
|
+
loginId: string;
|
|
386
|
+
accountId: string;
|
|
387
|
+
institution: string;
|
|
388
|
+
country: CountryShortcode;
|
|
389
|
+
securityType?: FlinksSecurityType;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
export interface IFlinksLink {
|
|
393
|
+
rel: string;
|
|
394
|
+
href: string;
|
|
395
|
+
example: string;
|
|
396
|
+
}
|
|
397
|
+
export interface FlinksResponse {
|
|
398
|
+
HttpStatusCode: number;
|
|
399
|
+
StatusCode?: number;
|
|
400
|
+
Message?: string;
|
|
401
|
+
FlinksCode?: string;
|
|
402
|
+
RequestId?: string;
|
|
403
|
+
[key: string]: any;
|
|
404
|
+
PathParam?: string;
|
|
405
|
+
ApiKeyNeeded?: boolean;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
export interface OnboardEditOrganizationDto {
|
|
410
|
+
organizationId: string;
|
|
411
|
+
organizationName: string;
|
|
412
|
+
organizationCountry: CountryShortcode;
|
|
413
|
+
organizationPlan: string;
|
|
414
|
+
}
|
|
415
|
+
export interface OnboardEditUserDto {
|
|
416
|
+
userId: string;
|
|
417
|
+
firstName: string;
|
|
418
|
+
lastName?: string;
|
|
419
|
+
email: string;
|
|
420
|
+
country: CountryShortcode;
|
|
421
|
+
}
|
|
422
|
+
// IFlinksResponse contains all possible returned key-value pairs. It should be extended by specific classes when the types are Known.
|
|
423
|
+
export interface IFlinksResponse {
|
|
424
|
+
HttpStatusCode: number;
|
|
425
|
+
Links?: IFlinksLink[];
|
|
426
|
+
Login?: {
|
|
427
|
+
Username: string;
|
|
428
|
+
IsScheduledRefresh: boolean;
|
|
429
|
+
LastRefresh: string;
|
|
430
|
+
Type: string;
|
|
431
|
+
Id: string;
|
|
432
|
+
};
|
|
433
|
+
StatementsByAccount?: IFlinksStatementsByAccount[];
|
|
434
|
+
SecurityChallenges?: SecurityChallenge[];
|
|
435
|
+
InstitutionName?: string;
|
|
436
|
+
InstitutionId?: number;
|
|
437
|
+
Institution?: string;
|
|
438
|
+
RequestId?: string;
|
|
439
|
+
Accounts?: IFlinksBankAccountDetails[];
|
|
440
|
+
Message?: string;
|
|
441
|
+
Tag?: string;
|
|
442
|
+
FlinksCode?: EFlinksCodes;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export interface IFlinksStatementsByAccount {
|
|
446
|
+
AccountNumber: string;
|
|
447
|
+
Statements: IFlinksStatement[];
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export interface IFlinksStatement {
|
|
451
|
+
UniqueId: string;
|
|
452
|
+
FileType: string; // FileType Enum?
|
|
453
|
+
Base64Bytes: string;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
export interface IFlinksToken extends IFlinksResponse {
|
|
457
|
+
Token: string;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
export interface IFlinksAuthorize extends IFlinksResponse {
|
|
461
|
+
RequestId: string;
|
|
462
|
+
Institution: string;
|
|
463
|
+
Links: IFlinksLink[];
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
export interface IFlinksDetails extends IFlinksResponse {
|
|
467
|
+
HttpStatusCode: number;
|
|
468
|
+
Accounts: IFlinksBankAccountDetails[];
|
|
469
|
+
Links: IFlinksLink[];
|
|
470
|
+
Tag: string;
|
|
471
|
+
InstitutionName: string;
|
|
472
|
+
Login: IFlinksLogin;
|
|
473
|
+
InstitutionId: number;
|
|
474
|
+
Institution: string;
|
|
475
|
+
RequestId: string;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export interface IFlinksSummary extends IFlinksResponse {
|
|
479
|
+
Login: IFlinksLogin;
|
|
480
|
+
Tag: string;
|
|
481
|
+
InstitutionName: string;
|
|
482
|
+
InstitutionId: number;
|
|
483
|
+
Institution: string;
|
|
484
|
+
RequestId: string;
|
|
485
|
+
Accounts: IFlinksBankAccountDetails[];
|
|
486
|
+
Links: IFlinksLink[];
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
export interface FlinksAuthorizeToken {
|
|
490
|
+
token: string;
|
|
491
|
+
timestamp: number;
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
export enum EFlinksCodes {
|
|
495
|
+
"INVALID_LOGIN" = "INVALID_LOGIN",
|
|
496
|
+
"METHOD_NOT_AVAILABLE" = "METHOD_NOT_AVAILABLE",
|
|
497
|
+
"INVALID_SECURITY_RESPONSE" = "INVALID_SECURITY_RESPONSE",
|
|
498
|
+
"UNKNOWN_CHALLENGE_KEY" = "UNKNOWN_CHALLENGE_KEY",
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
export enum MFAType {
|
|
502
|
+
"Cached" = "Cached",
|
|
503
|
+
"ActionRequired" = "ActionRequired",
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export enum ResponseType {
|
|
507
|
+
GetAccountsDetail = "GetAccountsDetail",
|
|
508
|
+
KYC = "KYC"
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
export interface ICachedFlinksWebhook {
|
|
512
|
+
ResponseType: ResponseType;
|
|
513
|
+
HttpStatusCode: number;
|
|
514
|
+
Accounts?:IFlinksBankAccountDetails[];
|
|
515
|
+
Login:IFlinksLogin;
|
|
516
|
+
Institution:string;
|
|
517
|
+
RequestId:string;
|
|
518
|
+
Tag?:string;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export interface IFlinksWebhookTag {
|
|
522
|
+
origin: string;
|
|
523
|
+
[key: string]: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export interface IUniqueLogin{
|
|
527
|
+
institution: string;
|
|
528
|
+
flinksId:string;
|
|
529
|
+
title?:string;
|
|
530
|
+
lastRefresh:Date;
|
|
531
|
+
authorizedAccountIds:string[];
|
|
532
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"moduleResolution":"Node",
|
|
6
|
+
"esModuleInterop": true,
|
|
7
|
+
"forceConsistentCasingInFileNames": true,
|
|
8
|
+
"strict": true,
|
|
9
|
+
"skipLibCheck": true,
|
|
10
|
+
"outDir": "dist"
|
|
11
|
+
},
|
|
12
|
+
"include": ["src"]
|
|
13
|
+
}
|