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