sowhat-types 2.0.204 → 2.0.206
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/dist/index.d.mts +56 -533
- package/dist/index.d.ts +56 -533
- package/dist/index.js +28 -63
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -57
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
declare const EMAIL_REGEX: RegExp;
|
|
2
|
-
declare const BUDGET_ID_REGEX: RegExp;
|
|
3
2
|
declare const LIVES_OUTSIDE_FRANCE = "LIVES_OUTSIDE_FRANCE";
|
|
4
3
|
|
|
5
4
|
declare enum AssetTypeEnum {
|
|
@@ -10,11 +9,6 @@ declare enum AssetTypeEnum {
|
|
|
10
9
|
OTHER = "OTHER"
|
|
11
10
|
}
|
|
12
11
|
|
|
13
|
-
declare enum AuthenticationMethodEnum {
|
|
14
|
-
PHONE = "PHONE",
|
|
15
|
-
EMAIL = "EMAIL"
|
|
16
|
-
}
|
|
17
|
-
|
|
18
12
|
declare enum AvailableCryptocurrencySymbolEnum {
|
|
19
13
|
BTC = "BTC",// Bitcoin
|
|
20
14
|
ETH = "ETH",// Ethereum
|
|
@@ -42,12 +36,11 @@ declare enum AvailableCurrencyEnum {
|
|
|
42
36
|
EUR = "EUR"
|
|
43
37
|
}
|
|
44
38
|
|
|
45
|
-
declare enum
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
TPAN = "TPAN"
|
|
39
|
+
declare enum SupportedCurrencyExchangesEnum {
|
|
40
|
+
EUR = "EUR",
|
|
41
|
+
USD = "USD",
|
|
42
|
+
GBP = "GBP",
|
|
43
|
+
JPY = "JPY"
|
|
51
44
|
}
|
|
52
45
|
|
|
53
46
|
declare enum BankAccountTransactionTypeEnum {
|
|
@@ -237,13 +230,6 @@ declare enum RealEstateTypeEnum {
|
|
|
237
230
|
MANSION = "MANSION"
|
|
238
231
|
}
|
|
239
232
|
|
|
240
|
-
declare enum UserStatusEnum {
|
|
241
|
-
ANONYMOUS = "ANONYMOUS",
|
|
242
|
-
REGISTERED = "REGISTERED",
|
|
243
|
-
DELETED = "DELETED",
|
|
244
|
-
BLACK_LISTED = "BLACK_LISTED"
|
|
245
|
-
}
|
|
246
|
-
|
|
247
233
|
declare enum ProjectNeedEnum {
|
|
248
234
|
WEALTH_ASSESSMENT = "WEALTH_ASSESSMENT",
|
|
249
235
|
INVEST_IN_STOCK_EXCHANGE = "INVEST_IN_STOCK_EXCHANGE",
|
|
@@ -271,10 +257,11 @@ declare enum ProjectStatusEnum {
|
|
|
271
257
|
FULLFILLED_BY_US = "FULLFILLED_BY_US"
|
|
272
258
|
}
|
|
273
259
|
|
|
274
|
-
declare enum
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
260
|
+
declare enum SupportedCurrencySymbolsEnum {
|
|
261
|
+
EUR = "\u20AC",
|
|
262
|
+
USD = "$",
|
|
263
|
+
GBP = "\u00A3",
|
|
264
|
+
JPY = "\u00A5"
|
|
278
265
|
}
|
|
279
266
|
|
|
280
267
|
declare enum UserAiSummaryStatusEnum {
|
|
@@ -283,43 +270,22 @@ declare enum UserAiSummaryStatusEnum {
|
|
|
283
270
|
FAILED = "FAILED"
|
|
284
271
|
}
|
|
285
272
|
|
|
286
|
-
declare enum
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
MULTI_CHOICE = "MULTI_CHOICE",
|
|
292
|
-
SINGLE_CHOICE = "SINGLE_CHOICE"
|
|
273
|
+
declare enum UserStatusEnum {
|
|
274
|
+
ANONYMOUS = "ANONYMOUS",
|
|
275
|
+
REGISTERED = "REGISTERED",
|
|
276
|
+
DELETED = "DELETED",
|
|
277
|
+
BLACK_LISTED = "BLACK_LISTED"
|
|
293
278
|
}
|
|
294
279
|
|
|
295
280
|
interface UpdateBankAccountInput {
|
|
296
281
|
id: string;
|
|
297
282
|
name?: string;
|
|
298
283
|
alertThreshold?: number;
|
|
299
|
-
position?: number;
|
|
300
|
-
iOwnShare?: number;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
interface AllocateTransactionInput {
|
|
304
|
-
transactionId: string;
|
|
305
|
-
allocationId: string | null;
|
|
306
|
-
type: BudgetTypeEnum;
|
|
307
|
-
applicationDate: Date;
|
|
308
|
-
internalTransfer: boolean;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
interface AllocateMultipleTransactionsInput {
|
|
312
|
-
transactionIds: string[];
|
|
313
|
-
allocationId: string | null;
|
|
314
|
-
type: BudgetTypeEnum;
|
|
315
|
-
applicationDate: Date;
|
|
316
|
-
areInternalTransfers: boolean;
|
|
317
284
|
}
|
|
318
285
|
|
|
319
286
|
interface UpdateBankAccountTransactionInput {
|
|
320
287
|
id: string;
|
|
321
|
-
|
|
322
|
-
newApplicationDate?: Date;
|
|
288
|
+
name?: string;
|
|
323
289
|
}
|
|
324
290
|
|
|
325
291
|
interface UpdateCryptocurrencyAssetInput {
|
|
@@ -378,89 +344,6 @@ interface UpdateOtherAssetInput {
|
|
|
378
344
|
iOwnShare: number;
|
|
379
345
|
}
|
|
380
346
|
|
|
381
|
-
interface CreateBudgetExpensesAllocationInput {
|
|
382
|
-
name: string;
|
|
383
|
-
icon: string;
|
|
384
|
-
color: string;
|
|
385
|
-
currency: string;
|
|
386
|
-
theoricalValuePerMonth: number;
|
|
387
|
-
bankAccountId: string | null;
|
|
388
|
-
budgetId?: string | null;
|
|
389
|
-
fromParentId?: string | null;
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
interface DeleteBudgetExpensesAllocationInput {
|
|
393
|
-
id: string;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
interface UpdateBudgetExpensesAllocationInput {
|
|
397
|
-
id: string;
|
|
398
|
-
name?: string;
|
|
399
|
-
icon?: string;
|
|
400
|
-
color?: string;
|
|
401
|
-
currency?: string;
|
|
402
|
-
position?: number;
|
|
403
|
-
theoricalValuePerMonth?: number;
|
|
404
|
-
bankAccountId?: string | null;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
interface CreateBudgetIncomesAllocationInput {
|
|
408
|
-
name: string;
|
|
409
|
-
icon: string;
|
|
410
|
-
color: string;
|
|
411
|
-
currency: string;
|
|
412
|
-
theoricalValuePerMonth: number;
|
|
413
|
-
bankAccountId: string | null;
|
|
414
|
-
budgetId?: string | null;
|
|
415
|
-
fromParentId?: string | null;
|
|
416
|
-
}
|
|
417
|
-
|
|
418
|
-
interface DeleteBudgetIncomesAllocationInput {
|
|
419
|
-
id: string;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
interface UpdateBudgetIncomesAllocationInput {
|
|
423
|
-
id: string;
|
|
424
|
-
name?: string;
|
|
425
|
-
icon?: string;
|
|
426
|
-
color?: string;
|
|
427
|
-
currency?: string;
|
|
428
|
-
position?: number;
|
|
429
|
-
theoricalValuePerMonth?: number;
|
|
430
|
-
bankAccountId?: string | null;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
interface BatchUpdateBudgetSavingsAllocationInput {
|
|
434
|
-
id: string | null;
|
|
435
|
-
theoricalValuePerMonth?: number;
|
|
436
|
-
balance?: number;
|
|
437
|
-
currency: string;
|
|
438
|
-
position?: number;
|
|
439
|
-
name?: string;
|
|
440
|
-
icon?: string;
|
|
441
|
-
color?: string;
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
interface BatchUpdateBudgetSavingsAllocationsInput {
|
|
445
|
-
allocations: BatchUpdateBudgetSavingsAllocationInput[];
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
interface CreateBudgetSavingsAllocationInput {
|
|
449
|
-
name: string;
|
|
450
|
-
icon: string;
|
|
451
|
-
color: string;
|
|
452
|
-
currency: string;
|
|
453
|
-
initialBalance: number;
|
|
454
|
-
theoricalValuePerMonth: number;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
interface UpdateBudgetSavingsAllocationInput {
|
|
458
|
-
id: string;
|
|
459
|
-
name?: string;
|
|
460
|
-
icon?: string;
|
|
461
|
-
color?: string;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
347
|
interface CreateProjectInput {
|
|
465
348
|
option: ProjectOptionEnum;
|
|
466
349
|
initialAmount: number;
|
|
@@ -481,37 +364,6 @@ interface UpdateProjectInput {
|
|
|
481
364
|
note?: string | null;
|
|
482
365
|
}
|
|
483
366
|
|
|
484
|
-
interface QuestionOptionInput {
|
|
485
|
-
key: string;
|
|
486
|
-
label: string;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
interface CreateQuestionInput {
|
|
490
|
-
key: string;
|
|
491
|
-
text: string;
|
|
492
|
-
description: string;
|
|
493
|
-
category: QuestionCategoryEnum;
|
|
494
|
-
type: QuestionTypeEnum;
|
|
495
|
-
isRequired: boolean;
|
|
496
|
-
isAccessible: boolean;
|
|
497
|
-
options: QuestionOptionInput[];
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
interface UpdateQuestionInput {
|
|
501
|
-
text?: string;
|
|
502
|
-
description?: string;
|
|
503
|
-
category?: QuestionCategoryEnum;
|
|
504
|
-
type?: QuestionTypeEnum;
|
|
505
|
-
isRequired?: boolean;
|
|
506
|
-
isAccessible?: boolean;
|
|
507
|
-
options?: QuestionOptionInput[];
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
interface UpdateQuestionPositionInput {
|
|
511
|
-
key: string;
|
|
512
|
-
position: number;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
367
|
interface FinancialSummariesFiltersInput {
|
|
516
368
|
offset: number;
|
|
517
369
|
limit: number;
|
|
@@ -549,9 +401,6 @@ interface UpdateUserPersonalSummaryInput {
|
|
|
549
401
|
}
|
|
550
402
|
|
|
551
403
|
interface UpdateUserInput {
|
|
552
|
-
currency?: AvailableCurrencyEnum;
|
|
553
|
-
consentToBudget?: boolean;
|
|
554
|
-
newTransferIntoDefault?: boolean;
|
|
555
404
|
hasCompletedOnboarding?: boolean;
|
|
556
405
|
}
|
|
557
406
|
|
|
@@ -564,7 +413,27 @@ interface LoanResponse {
|
|
|
564
413
|
availableAmount: number | null;
|
|
565
414
|
rate: number | null;
|
|
566
415
|
type: LoanTypeEnum;
|
|
567
|
-
currency:
|
|
416
|
+
currency: AvailableCurrencyEnum | null;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
interface BankAccountBalancesResponse {
|
|
420
|
+
/**
|
|
421
|
+
* total balance for checking type accounts
|
|
422
|
+
*/
|
|
423
|
+
checking: number | null;
|
|
424
|
+
/**
|
|
425
|
+
* total incoming balance for checking type accounts
|
|
426
|
+
*/
|
|
427
|
+
incomingChecking: number | null;
|
|
428
|
+
/**
|
|
429
|
+
* total balance for savings type accounts
|
|
430
|
+
*/
|
|
431
|
+
savings: number | null;
|
|
432
|
+
/**
|
|
433
|
+
* total incoming balance for savings type accounts
|
|
434
|
+
*/
|
|
435
|
+
incomingSavings: number | null;
|
|
436
|
+
currency: AvailableCurrencyEnum;
|
|
568
437
|
}
|
|
569
438
|
|
|
570
439
|
interface BankAccountOriginalTransactionResponse {
|
|
@@ -574,59 +443,6 @@ interface BankAccountOriginalTransactionResponse {
|
|
|
574
443
|
commissionCurrency: string | null;
|
|
575
444
|
}
|
|
576
445
|
|
|
577
|
-
interface BankAccountResponse {
|
|
578
|
-
id: string;
|
|
579
|
-
powensId: number;
|
|
580
|
-
powensConnectionId: number;
|
|
581
|
-
image: string | null;
|
|
582
|
-
name: string;
|
|
583
|
-
balance: number | null;
|
|
584
|
-
comingBalance: number | null;
|
|
585
|
-
currency: string | null;
|
|
586
|
-
alertThreshold: number;
|
|
587
|
-
type: BankAccountTypeEnum;
|
|
588
|
-
gotLoan: boolean;
|
|
589
|
-
iban: string | null;
|
|
590
|
-
position: number;
|
|
591
|
-
deletedByBank: Date | null;
|
|
592
|
-
transactions: BankAccountTransactionResponse[];
|
|
593
|
-
iOwnShare: number;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
interface BudgetIncomesAllocationResponse {
|
|
597
|
-
id: string;
|
|
598
|
-
name: string;
|
|
599
|
-
icon: string;
|
|
600
|
-
color: string;
|
|
601
|
-
budget: string;
|
|
602
|
-
theoricalValuePerMonth: number;
|
|
603
|
-
isDefault: boolean;
|
|
604
|
-
value: number;
|
|
605
|
-
currency: string;
|
|
606
|
-
position: number;
|
|
607
|
-
transactions: BankAccountTransactionResponse[];
|
|
608
|
-
bankAccount: BankAccountResponse | null;
|
|
609
|
-
updatedAt: Date | null;
|
|
610
|
-
createdAt: Date;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
interface BudgetExpensesAllocationResponse {
|
|
614
|
-
id: string;
|
|
615
|
-
name: string;
|
|
616
|
-
icon: string;
|
|
617
|
-
color: string;
|
|
618
|
-
budget: string;
|
|
619
|
-
theoricalValuePerMonth: number;
|
|
620
|
-
isDefault: boolean;
|
|
621
|
-
value: number;
|
|
622
|
-
currency: string;
|
|
623
|
-
position: number;
|
|
624
|
-
transactions: BankAccountTransactionResponse[];
|
|
625
|
-
bankAccount: BankAccountResponse | null;
|
|
626
|
-
updatedAt: Date | null;
|
|
627
|
-
createdAt: Date;
|
|
628
|
-
}
|
|
629
|
-
|
|
630
446
|
interface BankAccountTransactionResponse {
|
|
631
447
|
id: string;
|
|
632
448
|
accountId: string;
|
|
@@ -639,56 +455,12 @@ interface BankAccountTransactionResponse {
|
|
|
639
455
|
coming: boolean;
|
|
640
456
|
active: boolean;
|
|
641
457
|
cardNumber: string | null;
|
|
642
|
-
note: string | null;
|
|
643
458
|
lastUpdate: Date | null;
|
|
644
459
|
deleted: Date | null;
|
|
645
460
|
type: BankAccountTransactionTypeEnum;
|
|
646
|
-
internalTransfer: boolean;
|
|
647
461
|
originalTransaction: BankAccountOriginalTransactionResponse | null;
|
|
648
462
|
country: string | null;
|
|
649
463
|
category: BudgetTypeEnum;
|
|
650
|
-
allocation: BudgetIncomesAllocationResponse | BudgetExpensesAllocationResponse | null;
|
|
651
|
-
allocated: Date | null;
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
interface TransactionAllocatedResponse {
|
|
655
|
-
transaction: BankAccountTransactionResponse;
|
|
656
|
-
allocated: boolean;
|
|
657
|
-
errorMessage: string | null;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
type MultipleTransactionsAllocationResponse = {
|
|
661
|
-
allocated: boolean;
|
|
662
|
-
errorMessage: string | null;
|
|
663
|
-
};
|
|
664
|
-
|
|
665
|
-
interface BankAccountBalancesResponse {
|
|
666
|
-
/**
|
|
667
|
-
* total balance for checking type accounts
|
|
668
|
-
*/
|
|
669
|
-
checking: number | null;
|
|
670
|
-
/**
|
|
671
|
-
* total incoming balance for checking type accounts
|
|
672
|
-
*/
|
|
673
|
-
incomingChecking: number | null;
|
|
674
|
-
/**
|
|
675
|
-
* total balance for savings type accounts
|
|
676
|
-
*/
|
|
677
|
-
savings: number | null;
|
|
678
|
-
/**
|
|
679
|
-
* total incoming balance for savings type accounts
|
|
680
|
-
*/
|
|
681
|
-
incomingSavings: number | null;
|
|
682
|
-
/**
|
|
683
|
-
* e.g. '€'
|
|
684
|
-
*/
|
|
685
|
-
currency: string;
|
|
686
|
-
}
|
|
687
|
-
|
|
688
|
-
interface BankAccountTransactionCounterpartyResponse {
|
|
689
|
-
label: string | null;
|
|
690
|
-
accountScheme: BankAccountSchemeNameEnum | null;
|
|
691
|
-
type: string | null;
|
|
692
464
|
}
|
|
693
465
|
|
|
694
466
|
interface PaginationResponse {
|
|
@@ -703,14 +475,20 @@ interface BankAccountTransactionsResponse {
|
|
|
703
475
|
pagination: PaginationResponse;
|
|
704
476
|
}
|
|
705
477
|
|
|
706
|
-
interface
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
478
|
+
interface BankAccountResponse {
|
|
479
|
+
id: string;
|
|
480
|
+
powensId: number;
|
|
481
|
+
powensConnectionId: number;
|
|
482
|
+
image: string | null;
|
|
483
|
+
name: string;
|
|
484
|
+
balance: number | null;
|
|
485
|
+
comingBalance: number | null;
|
|
486
|
+
currency: AvailableCurrencyEnum | null;
|
|
487
|
+
alertThreshold: number;
|
|
488
|
+
type: BankAccountTypeEnum;
|
|
489
|
+
iban: string | null;
|
|
490
|
+
deletedByBank: Date | null;
|
|
491
|
+
transactions: BankAccountTransactionResponse[];
|
|
714
492
|
}
|
|
715
493
|
|
|
716
494
|
interface BankAccountsResponse {
|
|
@@ -719,16 +497,6 @@ interface BankAccountsResponse {
|
|
|
719
497
|
powensConnectionsInError: boolean;
|
|
720
498
|
}
|
|
721
499
|
|
|
722
|
-
interface UserBankAccountsRefreshedResponse {
|
|
723
|
-
refreshed: boolean;
|
|
724
|
-
errorMessage: string | null;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
interface UserBankAccountRefreshedResponse {
|
|
728
|
-
refreshed: boolean;
|
|
729
|
-
errorMessage: string | null;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
500
|
interface CryptocurrencyAssetDeletedResponse {
|
|
733
501
|
deleted: boolean;
|
|
734
502
|
errorMessage: string | null;
|
|
@@ -794,11 +562,6 @@ interface RealEstateDeletedResponse {
|
|
|
794
562
|
errorMessage: string | null;
|
|
795
563
|
}
|
|
796
564
|
|
|
797
|
-
interface RealEstateUpdatedResponse {
|
|
798
|
-
updated: boolean;
|
|
799
|
-
errorMessage: string | null;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
565
|
interface RealEstateResponse {
|
|
803
566
|
id: string;
|
|
804
567
|
name: string;
|
|
@@ -813,136 +576,12 @@ interface RealEstateResponse {
|
|
|
813
576
|
createdAt: Date;
|
|
814
577
|
}
|
|
815
578
|
|
|
816
|
-
interface StockExchangeResponse {
|
|
817
|
-
id: string;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
579
|
interface UserAuthenticatedResponse {
|
|
821
580
|
authenticated: boolean;
|
|
822
581
|
errorMessage: string | null;
|
|
823
582
|
hasPincode: boolean;
|
|
824
583
|
}
|
|
825
584
|
|
|
826
|
-
interface BudgetExpensesAllocationDeletedResponse {
|
|
827
|
-
deleted: boolean;
|
|
828
|
-
errorMessage: string | null;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
interface BudgetExpensesAllocationUpdatedResponse {
|
|
832
|
-
updated: boolean;
|
|
833
|
-
errorMessage: string | null;
|
|
834
|
-
}
|
|
835
|
-
|
|
836
|
-
interface BudgetExpensesAllocationsBatchUpdatedResponse {
|
|
837
|
-
batchUpdated: boolean;
|
|
838
|
-
errorMessage: string | null;
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
interface BudgetExpensesAllocationsResponse {
|
|
842
|
-
id: string;
|
|
843
|
-
allocations: BudgetExpensesAllocationResponse[];
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
interface BudgetIncomesAllocationDeletedResponse {
|
|
847
|
-
deleted: boolean;
|
|
848
|
-
errorMessage: string | null;
|
|
849
|
-
}
|
|
850
|
-
|
|
851
|
-
interface BudgetIncomesAllocationUpdatedResponse {
|
|
852
|
-
updated: boolean;
|
|
853
|
-
errorMessage: string | null;
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
interface BudgetIncomesAllocationsBatchUpdatedResponse {
|
|
857
|
-
batchUpdated: boolean;
|
|
858
|
-
errorMessage: string | null;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
interface BudgetIncomesAllocationsResponse {
|
|
862
|
-
id: string;
|
|
863
|
-
allocations: BudgetIncomesAllocationResponse[];
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
interface BudgetSavingsAllocationDeletedResponse {
|
|
867
|
-
deleted: boolean;
|
|
868
|
-
errorMessage: string | null;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
interface SavingsMonthlyOperationResponse {
|
|
872
|
-
id: string;
|
|
873
|
-
value: number;
|
|
874
|
-
currency: string;
|
|
875
|
-
monthId: string;
|
|
876
|
-
}
|
|
877
|
-
|
|
878
|
-
interface BudgetSavingsAllocationResponse {
|
|
879
|
-
id: string;
|
|
880
|
-
name: string;
|
|
881
|
-
icon: string;
|
|
882
|
-
color: string;
|
|
883
|
-
theoricalValuePerMonth: number;
|
|
884
|
-
balance: number;
|
|
885
|
-
currency: string;
|
|
886
|
-
currentMonthlyOperation: SavingsMonthlyOperationResponse | null;
|
|
887
|
-
monthlyOperations: SavingsMonthlyOperationResponse[];
|
|
888
|
-
position: number;
|
|
889
|
-
isDefault: boolean;
|
|
890
|
-
createdAt: Date;
|
|
891
|
-
updatedAt: Date | null;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
interface BudgetSavingsAllocationUpdatedResponse {
|
|
895
|
-
updated: boolean;
|
|
896
|
-
errorMessage: string | null;
|
|
897
|
-
allocation: BudgetSavingsAllocationResponse;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
interface BudgetSavingsAllocationsBatchUpdatedResponse {
|
|
901
|
-
allUpdated: boolean;
|
|
902
|
-
errorMessage: string | null;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
interface UserSavingsBudgetResponse {
|
|
906
|
-
/**
|
|
907
|
-
* equal total user's savings, i.e. `sum of savings bank accounts of type SAVING`
|
|
908
|
-
*/
|
|
909
|
-
availableSavingsBalance: number;
|
|
910
|
-
/**
|
|
911
|
-
* It is the value diff between the actual totalBalance and the value of the last report
|
|
912
|
-
* If `null`, there's no last report.
|
|
913
|
-
*/
|
|
914
|
-
/**
|
|
915
|
-
* Equal `other assets` total balance
|
|
916
|
-
*/
|
|
917
|
-
lockedInSavingsBalance: number;
|
|
918
|
-
currency: string;
|
|
919
|
-
allocations: BudgetSavingsAllocationResponse[];
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
interface BudgetResponse {
|
|
923
|
-
id: string;
|
|
924
|
-
expenses: BudgetExpensesAllocationResponse[];
|
|
925
|
-
unallocatedExpensesTransactionsBalance: number;
|
|
926
|
-
internalTransfersExpensesBalance: number;
|
|
927
|
-
incomes: BudgetIncomesAllocationResponse[];
|
|
928
|
-
unallocatedIncomesTransactionsBalance: number;
|
|
929
|
-
internalTransfersIncomesBalance: number;
|
|
930
|
-
currency: string;
|
|
931
|
-
}
|
|
932
|
-
|
|
933
|
-
interface SwipableBudgetResponse {
|
|
934
|
-
id: string;
|
|
935
|
-
budgetId: string;
|
|
936
|
-
expensesAllocations: BudgetExpensesAllocationResponse[];
|
|
937
|
-
incomesAllocations: BudgetIncomesAllocationResponse[];
|
|
938
|
-
}
|
|
939
|
-
|
|
940
|
-
interface SwipableBudgetsResponse {
|
|
941
|
-
previousBudget: SwipableBudgetResponse | null;
|
|
942
|
-
currentBudget: SwipableBudgetResponse | null;
|
|
943
|
-
nextBudget: SwipableBudgetResponse | null;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
585
|
interface LegalDocumentResponse {
|
|
947
586
|
type: LegalDocumentTypeEnum;
|
|
948
587
|
content: string;
|
|
@@ -990,26 +629,6 @@ interface ProjectResponse {
|
|
|
990
629
|
createdAt: Date;
|
|
991
630
|
}
|
|
992
631
|
|
|
993
|
-
interface GlobalWealthStatisticsResponse {
|
|
994
|
-
totalSavings: number;
|
|
995
|
-
personalTotalSavings: number;
|
|
996
|
-
totalCheckings: number;
|
|
997
|
-
personalTotalCheckings: number;
|
|
998
|
-
totalAssets: number;
|
|
999
|
-
personalTotalAssets: number;
|
|
1000
|
-
percentageSavings: number;
|
|
1001
|
-
personalPercentageSavings: number;
|
|
1002
|
-
percentageCheckings: number;
|
|
1003
|
-
personalPercentageCheckings: number;
|
|
1004
|
-
percentageAssets: number;
|
|
1005
|
-
personalPercentageAssets: number;
|
|
1006
|
-
}
|
|
1007
|
-
|
|
1008
|
-
interface UserStatisticsResponse {
|
|
1009
|
-
userId: string;
|
|
1010
|
-
globalWealth: GlobalWealthStatisticsResponse;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
632
|
declare const AI_SUMMARY_TEMPLATE_VERSION = "1";
|
|
1014
633
|
interface AiSummaryTemplateResponse {
|
|
1015
634
|
version: typeof AI_SUMMARY_TEMPLATE_VERSION;
|
|
@@ -1060,7 +679,6 @@ interface AnonymousUserResponse {
|
|
|
1060
679
|
totalRealEstatesValue: number;
|
|
1061
680
|
totalMobilitiesValue: number;
|
|
1062
681
|
totalCryptocurrenciesValue: number;
|
|
1063
|
-
totalStockExchangesValue: number;
|
|
1064
682
|
totalOtherAssetsValue: number;
|
|
1065
683
|
totalCheckingBankAccounts: number;
|
|
1066
684
|
totalCheckingBankAccountsBalance: number;
|
|
@@ -1068,7 +686,7 @@ interface AnonymousUserResponse {
|
|
|
1068
686
|
totalSavingsBankAccountsBalance: number;
|
|
1069
687
|
totalLoans: number;
|
|
1070
688
|
totalLoansBalance: number;
|
|
1071
|
-
currency:
|
|
689
|
+
currency: AvailableCurrencyEnum;
|
|
1072
690
|
createdAt: Date;
|
|
1073
691
|
}
|
|
1074
692
|
|
|
@@ -1087,15 +705,6 @@ interface UserAiSummaryResponse {
|
|
|
1087
705
|
createdAt: Date;
|
|
1088
706
|
}
|
|
1089
707
|
|
|
1090
|
-
interface UserConsentResponse {
|
|
1091
|
-
version: string;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
interface UserConsentsResponse {
|
|
1095
|
-
privacyPolicy: UserConsentResponse;
|
|
1096
|
-
termOfUsage: UserConsentResponse;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
708
|
interface UserFinancialSummaryResponse {
|
|
1100
709
|
currency: string;
|
|
1101
710
|
projectNeeds: ProjectNeedEnum[];
|
|
@@ -1136,6 +745,8 @@ interface UserProfileResponse {
|
|
|
1136
745
|
currency: AvailableCurrencyEnum;
|
|
1137
746
|
status: UserStatusEnum;
|
|
1138
747
|
gotPowensUser: boolean;
|
|
748
|
+
latestTermsOfUsageVersionConsented: string;
|
|
749
|
+
latestPrivacyPolicyVersionConsented: string;
|
|
1139
750
|
createdAt: Date;
|
|
1140
751
|
updatedAt: Date;
|
|
1141
752
|
}
|
|
@@ -1151,105 +762,17 @@ interface UserAssetsBalancesResponse {
|
|
|
1151
762
|
mobility: number;
|
|
1152
763
|
otherAsset: number;
|
|
1153
764
|
cryptocurrency: number;
|
|
1154
|
-
|
|
1155
|
-
currency: string;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
interface UserAssetsBatchUpdatedResponse {
|
|
1159
|
-
batchUpdated: boolean;
|
|
1160
|
-
errorMessage: string | null;
|
|
765
|
+
currency: AvailableCurrencyEnum;
|
|
1161
766
|
}
|
|
1162
767
|
|
|
1163
768
|
interface UserAssetsResponse {
|
|
1164
769
|
realEstateAssets: RealEstateResponse[];
|
|
1165
770
|
mobilityAssets: MobilityResponse[];
|
|
1166
771
|
cryptocurrencyAssets: CryptocurrencyAssetResponse[];
|
|
1167
|
-
stockExchangeAssets: StockExchangeResponse[];
|
|
1168
772
|
otherAssets: OtherAssetResponse[];
|
|
1169
773
|
balances: UserAssetsBalancesResponse;
|
|
1170
774
|
}
|
|
1171
775
|
|
|
1172
|
-
interface ReportValueResponse {
|
|
1173
|
-
value: number;
|
|
1174
|
-
vsLastMonthPercent: number | null;
|
|
1175
|
-
}
|
|
1176
|
-
|
|
1177
|
-
interface ReportBudgetResponse {
|
|
1178
|
-
incomes: ReportValueResponse;
|
|
1179
|
-
internalTransferIncomes: number;
|
|
1180
|
-
expenses: ReportValueResponse;
|
|
1181
|
-
internalTransferExpenses: number;
|
|
1182
|
-
savings: ReportValueResponse;
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
interface ReportWealthResponse {
|
|
1186
|
-
balanceCheckingAccounts: ReportValueResponse;
|
|
1187
|
-
balanceSavingsAccounts: ReportValueResponse;
|
|
1188
|
-
balanceAssets: ReportValueResponse;
|
|
1189
|
-
}
|
|
1190
|
-
|
|
1191
|
-
/**
|
|
1192
|
-
* @deprecated
|
|
1193
|
-
*/
|
|
1194
|
-
interface UserReportResponse {
|
|
1195
|
-
userId: string;
|
|
1196
|
-
reportId: string;
|
|
1197
|
-
budget: ReportBudgetResponse | null;
|
|
1198
|
-
wealth: ReportWealthResponse | null;
|
|
1199
|
-
createdAt: Date | null;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
interface ReportResponse {
|
|
1203
|
-
monthId: string;
|
|
1204
|
-
budget: ReportBudgetResponse | null;
|
|
1205
|
-
wealth: ReportWealthResponse | null;
|
|
1206
|
-
createdAt: Date | null;
|
|
1207
|
-
}
|
|
1208
|
-
|
|
1209
|
-
interface ReportsResponse {
|
|
1210
|
-
reports: ReportResponse[];
|
|
1211
|
-
pagination: PaginationResponse;
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
interface QuestionOptionResponse {
|
|
1215
|
-
key: string;
|
|
1216
|
-
label: string;
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
interface QuestionVersionResponse {
|
|
1220
|
-
id: string;
|
|
1221
|
-
version: number;
|
|
1222
|
-
text: string;
|
|
1223
|
-
description: string;
|
|
1224
|
-
type: QuestionTypeEnum;
|
|
1225
|
-
isRequired: boolean;
|
|
1226
|
-
isAccessible: boolean;
|
|
1227
|
-
options: QuestionOptionResponse[] | null;
|
|
1228
|
-
createdAt: Date;
|
|
1229
|
-
updatedAt: Date;
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
interface QuestionResponse {
|
|
1233
|
-
id: string;
|
|
1234
|
-
key: string;
|
|
1235
|
-
lastVersion: QuestionVersionResponse;
|
|
1236
|
-
versions: QuestionVersionResponse[];
|
|
1237
|
-
category: QuestionCategoryEnum;
|
|
1238
|
-
position: number;
|
|
1239
|
-
}
|
|
1240
|
-
|
|
1241
|
-
interface UserAnswerResponse {
|
|
1242
|
-
id: string;
|
|
1243
|
-
userId: string;
|
|
1244
|
-
question: QuestionResponse;
|
|
1245
|
-
answer: string;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
776
|
type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
|
|
1249
777
|
|
|
1250
|
-
|
|
1251
|
-
skip: number;
|
|
1252
|
-
take: number;
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
export { AI_SUMMARY_TEMPLATE_VERSION, type AiSummaryTemplateResponse, type AllocateMultipleTransactionsInput, type AllocateTransactionInput, type AnonymousUserResponse, type AnonymousUsersResponse, AssetTypeEnum, AuthenticationMethodEnum, AvailableCryptocurrencySymbolEnum, AvailableCurrencyEnum, BUDGET_ID_REGEX, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountUpdatedResponse, type BankAccountsBatchUpdatedResponse, type BankAccountsResponse, type BatchUpdateBudgetSavingsAllocationInput, type BatchUpdateBudgetSavingsAllocationsInput, type BudgetExpensesAllocationDeletedResponse, type BudgetExpensesAllocationResponse, type BudgetExpensesAllocationUpdatedResponse, type BudgetExpensesAllocationsBatchUpdatedResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationUpdatedResponse, type BudgetIncomesAllocationsBatchUpdatedResponse, type BudgetIncomesAllocationsResponse, type BudgetResponse, type BudgetSavingsAllocationDeletedResponse, type BudgetSavingsAllocationResponse, type BudgetSavingsAllocationUpdatedResponse, type BudgetSavingsAllocationsBatchUpdatedResponse, BudgetTypeEnum, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateBudgetSavingsAllocationInput, type CreateMobilityInput, type CreateProjectInput, type CreateQuestionInput, type CreateRealEstateInput, type CryptocurrencyAssetDeletedResponse, type CryptocurrencyAssetResponse, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, EMAIL_REGEX, type ExactMatch, FetchPowensConnectionsTypeEnum, FilterArgs, FinancialProductEnum, type FinancialSummariesFiltersInput, type GlobalWealthStatisticsResponse, LIVES_OUTSIDE_FRANCE, type LegalDocumentResponse, LegalDocumentTypeEnum, type LoanResponse, LoanTypeEnum, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type MultipleTransactionsAllocationResponse, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationResponse, type PowensConnectWebviewResponse, type PowensConnectionDeletedResponse, type PowensConnectionResponse, PowensConnectionStateEnum, type PowensManageWebviewResponse, type PowensReconnectWebviewResponse, PowensUserStatusEnum, ProfessionEnum, ProfessionStatusEnum, ProjectNeedEnum, ProjectOptionEnum, type ProjectResponse, ProjectStatusEnum, QuestionCategoryEnum, type QuestionOptionInput, type QuestionOptionResponse, type QuestionResponse, QuestionTypeEnum, type QuestionVersionResponse, type RealEstateDeletedResponse, type RealEstateResponse, RealEstateTypeEnum, type RealEstateUpdatedResponse, type ReportBudgetResponse, type ReportResponse, type ReportValueResponse, type ReportWealthResponse, type ReportsResponse, type SavingsMonthlyOperationResponse, type StockExchangeResponse, type SwipableBudgetResponse, type SwipableBudgetsResponse, type TransactionAllocatedResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateBudgetExpensesAllocationInput, type UpdateBudgetIncomesAllocationInput, type UpdateBudgetSavingsAllocationInput, type UpdateCryptocurrencyAssetInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateProjectInput, type UpdateQuestionInput, type UpdateQuestionPositionInput, type UpdateRealEstateInput, type UpdateUserInput, type UpdateUserPersonalSummaryInput, type UserAiSummaryResponse, UserAiSummaryStatusEnum, type UserAnswerResponse, type UserAssetsBalancesResponse, type UserAssetsBatchUpdatedResponse, type UserAssetsResponse, type UserAuthenticatedResponse, type UserBankAccountRefreshedResponse, type UserBankAccountsRefreshedResponse, type UserConsentResponse, type UserConsentsResponse, type UserFinancialSummaryResponse, type UserPersonalSummaryResponse, type UserProfileResponse, type UserReportResponse, type UserSavingsBudgetResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
|
|
778
|
+
export { AI_SUMMARY_TEMPLATE_VERSION, type AiSummaryTemplateResponse, type AnonymousUserResponse, type AnonymousUsersResponse, AssetTypeEnum, AvailableCryptocurrencySymbolEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, BudgetTypeEnum, type CreateMobilityInput, type CreateProjectInput, type CreateRealEstateInput, type CryptocurrencyAssetDeletedResponse, type CryptocurrencyAssetResponse, type CryptocurrencyResponse, EMAIL_REGEX, type ExactMatch, FetchPowensConnectionsTypeEnum, FinancialProductEnum, type FinancialSummariesFiltersInput, LIVES_OUTSIDE_FRANCE, type LegalDocumentResponse, LegalDocumentTypeEnum, type LoanResponse, LoanTypeEnum, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationResponse, type PowensConnectWebviewResponse, type PowensConnectionDeletedResponse, type PowensConnectionResponse, PowensConnectionStateEnum, type PowensManageWebviewResponse, type PowensReconnectWebviewResponse, PowensUserStatusEnum, ProfessionEnum, ProfessionStatusEnum, ProjectNeedEnum, ProjectOptionEnum, type ProjectResponse, ProjectStatusEnum, type RealEstateDeletedResponse, type RealEstateResponse, RealEstateTypeEnum, SupportedCurrencyExchangesEnum, SupportedCurrencySymbolsEnum, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateCryptocurrencyAssetInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateProjectInput, type UpdateRealEstateInput, type UpdateUserInput, type UpdateUserPersonalSummaryInput, type UserAiSummaryResponse, UserAiSummaryStatusEnum, type UserAssetsBalancesResponse, type UserAssetsResponse, type UserAuthenticatedResponse, type UserFinancialSummaryResponse, type UserPersonalSummaryResponse, type UserProfileResponse, UserStatusEnum, type UserUpdatedResponse };
|