sowhat-types 2.0.204 → 2.0.205
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 +58 -532
- package/dist/index.d.ts +58 -532
- 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
|
|
|
@@ -567,64 +416,34 @@ interface LoanResponse {
|
|
|
567
416
|
currency: string;
|
|
568
417
|
}
|
|
569
418
|
|
|
570
|
-
interface
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
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;
|
|
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
|
+
/**
|
|
437
|
+
* e.g. '€'
|
|
438
|
+
*/
|
|
605
439
|
currency: string;
|
|
606
|
-
position: number;
|
|
607
|
-
transactions: BankAccountTransactionResponse[];
|
|
608
|
-
bankAccount: BankAccountResponse | null;
|
|
609
|
-
updatedAt: Date | null;
|
|
610
|
-
createdAt: Date;
|
|
611
440
|
}
|
|
612
441
|
|
|
613
|
-
interface
|
|
614
|
-
id: string;
|
|
615
|
-
name: string;
|
|
616
|
-
icon: string;
|
|
617
|
-
color: string;
|
|
618
|
-
budget: string;
|
|
619
|
-
theoricalValuePerMonth: number;
|
|
620
|
-
isDefault: boolean;
|
|
442
|
+
interface BankAccountOriginalTransactionResponse {
|
|
621
443
|
value: number;
|
|
622
444
|
currency: string;
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
bankAccount: BankAccountResponse | null;
|
|
626
|
-
updatedAt: Date | null;
|
|
627
|
-
createdAt: Date;
|
|
445
|
+
commission: number;
|
|
446
|
+
commissionCurrency: string | null;
|
|
628
447
|
}
|
|
629
448
|
|
|
630
449
|
interface BankAccountTransactionResponse {
|
|
@@ -639,56 +458,12 @@ interface BankAccountTransactionResponse {
|
|
|
639
458
|
coming: boolean;
|
|
640
459
|
active: boolean;
|
|
641
460
|
cardNumber: string | null;
|
|
642
|
-
note: string | null;
|
|
643
461
|
lastUpdate: Date | null;
|
|
644
462
|
deleted: Date | null;
|
|
645
463
|
type: BankAccountTransactionTypeEnum;
|
|
646
|
-
internalTransfer: boolean;
|
|
647
464
|
originalTransaction: BankAccountOriginalTransactionResponse | null;
|
|
648
465
|
country: string | null;
|
|
649
466
|
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
467
|
}
|
|
693
468
|
|
|
694
469
|
interface PaginationResponse {
|
|
@@ -703,14 +478,20 @@ interface BankAccountTransactionsResponse {
|
|
|
703
478
|
pagination: PaginationResponse;
|
|
704
479
|
}
|
|
705
480
|
|
|
706
|
-
interface
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
481
|
+
interface BankAccountResponse {
|
|
482
|
+
id: string;
|
|
483
|
+
powensId: number;
|
|
484
|
+
powensConnectionId: number;
|
|
485
|
+
image: string | null;
|
|
486
|
+
name: string;
|
|
487
|
+
balance: number | null;
|
|
488
|
+
comingBalance: number | null;
|
|
489
|
+
currency: AvailableCurrencyEnum;
|
|
490
|
+
alertThreshold: number;
|
|
491
|
+
type: BankAccountTypeEnum;
|
|
492
|
+
iban: string | null;
|
|
493
|
+
deletedByBank: Date | null;
|
|
494
|
+
transactions: BankAccountTransactionResponse[];
|
|
714
495
|
}
|
|
715
496
|
|
|
716
497
|
interface BankAccountsResponse {
|
|
@@ -719,16 +500,6 @@ interface BankAccountsResponse {
|
|
|
719
500
|
powensConnectionsInError: boolean;
|
|
720
501
|
}
|
|
721
502
|
|
|
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
503
|
interface CryptocurrencyAssetDeletedResponse {
|
|
733
504
|
deleted: boolean;
|
|
734
505
|
errorMessage: string | null;
|
|
@@ -794,11 +565,6 @@ interface RealEstateDeletedResponse {
|
|
|
794
565
|
errorMessage: string | null;
|
|
795
566
|
}
|
|
796
567
|
|
|
797
|
-
interface RealEstateUpdatedResponse {
|
|
798
|
-
updated: boolean;
|
|
799
|
-
errorMessage: string | null;
|
|
800
|
-
}
|
|
801
|
-
|
|
802
568
|
interface RealEstateResponse {
|
|
803
569
|
id: string;
|
|
804
570
|
name: string;
|
|
@@ -813,136 +579,12 @@ interface RealEstateResponse {
|
|
|
813
579
|
createdAt: Date;
|
|
814
580
|
}
|
|
815
581
|
|
|
816
|
-
interface StockExchangeResponse {
|
|
817
|
-
id: string;
|
|
818
|
-
}
|
|
819
|
-
|
|
820
582
|
interface UserAuthenticatedResponse {
|
|
821
583
|
authenticated: boolean;
|
|
822
584
|
errorMessage: string | null;
|
|
823
585
|
hasPincode: boolean;
|
|
824
586
|
}
|
|
825
587
|
|
|
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
588
|
interface LegalDocumentResponse {
|
|
947
589
|
type: LegalDocumentTypeEnum;
|
|
948
590
|
content: string;
|
|
@@ -990,26 +632,6 @@ interface ProjectResponse {
|
|
|
990
632
|
createdAt: Date;
|
|
991
633
|
}
|
|
992
634
|
|
|
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
635
|
declare const AI_SUMMARY_TEMPLATE_VERSION = "1";
|
|
1014
636
|
interface AiSummaryTemplateResponse {
|
|
1015
637
|
version: typeof AI_SUMMARY_TEMPLATE_VERSION;
|
|
@@ -1060,7 +682,6 @@ interface AnonymousUserResponse {
|
|
|
1060
682
|
totalRealEstatesValue: number;
|
|
1061
683
|
totalMobilitiesValue: number;
|
|
1062
684
|
totalCryptocurrenciesValue: number;
|
|
1063
|
-
totalStockExchangesValue: number;
|
|
1064
685
|
totalOtherAssetsValue: number;
|
|
1065
686
|
totalCheckingBankAccounts: number;
|
|
1066
687
|
totalCheckingBankAccountsBalance: number;
|
|
@@ -1068,7 +689,7 @@ interface AnonymousUserResponse {
|
|
|
1068
689
|
totalSavingsBankAccountsBalance: number;
|
|
1069
690
|
totalLoans: number;
|
|
1070
691
|
totalLoansBalance: number;
|
|
1071
|
-
currency:
|
|
692
|
+
currency: AvailableCurrencyEnum;
|
|
1072
693
|
createdAt: Date;
|
|
1073
694
|
}
|
|
1074
695
|
|
|
@@ -1087,15 +708,6 @@ interface UserAiSummaryResponse {
|
|
|
1087
708
|
createdAt: Date;
|
|
1088
709
|
}
|
|
1089
710
|
|
|
1090
|
-
interface UserConsentResponse {
|
|
1091
|
-
version: string;
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
interface UserConsentsResponse {
|
|
1095
|
-
privacyPolicy: UserConsentResponse;
|
|
1096
|
-
termOfUsage: UserConsentResponse;
|
|
1097
|
-
}
|
|
1098
|
-
|
|
1099
711
|
interface UserFinancialSummaryResponse {
|
|
1100
712
|
currency: string;
|
|
1101
713
|
projectNeeds: ProjectNeedEnum[];
|
|
@@ -1136,6 +748,8 @@ interface UserProfileResponse {
|
|
|
1136
748
|
currency: AvailableCurrencyEnum;
|
|
1137
749
|
status: UserStatusEnum;
|
|
1138
750
|
gotPowensUser: boolean;
|
|
751
|
+
latestTermsOfUsageVersionConsented: string;
|
|
752
|
+
latestPrivacyPolicyVersionConsented: string;
|
|
1139
753
|
createdAt: Date;
|
|
1140
754
|
updatedAt: Date;
|
|
1141
755
|
}
|
|
@@ -1151,105 +765,17 @@ interface UserAssetsBalancesResponse {
|
|
|
1151
765
|
mobility: number;
|
|
1152
766
|
otherAsset: number;
|
|
1153
767
|
cryptocurrency: number;
|
|
1154
|
-
|
|
1155
|
-
currency: string;
|
|
1156
|
-
}
|
|
1157
|
-
|
|
1158
|
-
interface UserAssetsBatchUpdatedResponse {
|
|
1159
|
-
batchUpdated: boolean;
|
|
1160
|
-
errorMessage: string | null;
|
|
768
|
+
currency: AvailableCurrencyEnum;
|
|
1161
769
|
}
|
|
1162
770
|
|
|
1163
771
|
interface UserAssetsResponse {
|
|
1164
772
|
realEstateAssets: RealEstateResponse[];
|
|
1165
773
|
mobilityAssets: MobilityResponse[];
|
|
1166
774
|
cryptocurrencyAssets: CryptocurrencyAssetResponse[];
|
|
1167
|
-
stockExchangeAssets: StockExchangeResponse[];
|
|
1168
775
|
otherAssets: OtherAssetResponse[];
|
|
1169
776
|
balances: UserAssetsBalancesResponse;
|
|
1170
777
|
}
|
|
1171
778
|
|
|
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
779
|
type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
|
|
1249
780
|
|
|
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 };
|
|
781
|
+
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 };
|