sowhat-types 2.0.45 → 2.0.47

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 CHANGED
@@ -444,6 +444,15 @@ interface LogoutUserResponse {
444
444
  isLoggedOut: boolean;
445
445
  }
446
446
 
447
+ interface BudgetOperationResponse {
448
+ id: string;
449
+ applicationDate: Date;
450
+ value: number;
451
+ currency: string;
452
+ transactionId: string | null;
453
+ allocationId: string;
454
+ }
455
+
447
456
  interface BudgetExpensesAllocationDeletedResponse {
448
457
  deleted: boolean;
449
458
  errorMessage: string | null;
@@ -454,6 +463,44 @@ interface BudgetIncomesAllocationDeletedResponse {
454
463
  errorMessage: string | null;
455
464
  }
456
465
 
466
+ interface BudgetSavingsAllocationResponse {
467
+ id: string;
468
+ name: string;
469
+ budget: string;
470
+ icon: string;
471
+ color: string;
472
+ theoricalValuePerMonth: number;
473
+ value: number;
474
+ balance: number;
475
+ currency: string;
476
+ note: string;
477
+ isDefault: boolean;
478
+ operations: BudgetOperationResponse[];
479
+ createdAt: Date;
480
+ updatedAt: Date;
481
+ }
482
+
483
+ interface BudgetSavingsResponse {
484
+ /**
485
+ * e.g. "12-2024"
486
+ */
487
+ id: string;
488
+ currency: string;
489
+ /**
490
+ * equal total user's savings, i.e. `other assets` + `sum of savings bank accounts`
491
+ */
492
+ totalBalance: number;
493
+ /**
494
+ * It is the value diff between the actual totalBalance and the value of the last report
495
+ */
496
+ vsLastMonth: number;
497
+ /**
498
+ * Equal `other assets` total balance
499
+ */
500
+ lockedInSavingsBalance: number;
501
+ allocations: BudgetSavingsAllocationResponse[];
502
+ }
503
+
457
504
  interface CoOwnerDeletedResponse {
458
505
  deleted: boolean;
459
506
  errorMessage: string | null;
@@ -497,6 +544,7 @@ interface UserProfileResponse {
497
544
  id: string;
498
545
  currency: AvailableCurrencyEnum;
499
546
  status: UserStatusEnum;
547
+ numberOfCowners: number;
500
548
  createdAt: Date;
501
549
  updatedAt: Date;
502
550
  }
@@ -551,4 +599,4 @@ declare class FilterArgs {
551
599
  take: number;
552
600
  }
553
601
 
554
- export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountUpdatedResponse, type BankAccountsBatchUpdatedResponse, type BankAccountsResponse, type BudgetExpensesAllocationDeletedResponse, type BudgetExpensesAllocationResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationsResponse, BudgetTypeEnum, type CoOwnerDeletedResponse, type CoOwnerResponse, type CreateAssetCoOwnerInput, type CreateAssetDateOfAcquisitionInput, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateMobilityInput, type CreateOtherAssetInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, type DeleteUserCoOwnerInput, type ExactMatch, type FetchBankAccountTransactionsInput, type FetchUserCoOwnerInput, FilterArgs, type GlobalWealthStatisticsResponse, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationInput, type PaginationResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type ReportBudgetResponse, type ReportValueResponse, type ReportWealthResponse, type StockExchangeResponse, SupportedCurrencyEnum, type TimePaginationInput, type TimePaginationResponse, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateUserInput, type UserCoOwnerResponse, type UserProfileResponse, type UserReportResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
602
+ export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountUpdatedResponse, type BankAccountsBatchUpdatedResponse, type BankAccountsResponse, type BudgetExpensesAllocationDeletedResponse, type BudgetExpensesAllocationResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationsResponse, type BudgetOperationResponse, type BudgetSavingsAllocationResponse, type BudgetSavingsResponse, BudgetTypeEnum, type CoOwnerDeletedResponse, type CoOwnerResponse, type CreateAssetCoOwnerInput, type CreateAssetDateOfAcquisitionInput, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateMobilityInput, type CreateOtherAssetInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, type DeleteUserCoOwnerInput, type ExactMatch, type FetchBankAccountTransactionsInput, type FetchUserCoOwnerInput, FilterArgs, type GlobalWealthStatisticsResponse, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationInput, type PaginationResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type ReportBudgetResponse, type ReportValueResponse, type ReportWealthResponse, type StockExchangeResponse, SupportedCurrencyEnum, type TimePaginationInput, type TimePaginationResponse, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateUserInput, type UserCoOwnerResponse, type UserProfileResponse, type UserReportResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
package/dist/index.d.ts CHANGED
@@ -444,6 +444,15 @@ interface LogoutUserResponse {
444
444
  isLoggedOut: boolean;
445
445
  }
446
446
 
447
+ interface BudgetOperationResponse {
448
+ id: string;
449
+ applicationDate: Date;
450
+ value: number;
451
+ currency: string;
452
+ transactionId: string | null;
453
+ allocationId: string;
454
+ }
455
+
447
456
  interface BudgetExpensesAllocationDeletedResponse {
448
457
  deleted: boolean;
449
458
  errorMessage: string | null;
@@ -454,6 +463,44 @@ interface BudgetIncomesAllocationDeletedResponse {
454
463
  errorMessage: string | null;
455
464
  }
456
465
 
466
+ interface BudgetSavingsAllocationResponse {
467
+ id: string;
468
+ name: string;
469
+ budget: string;
470
+ icon: string;
471
+ color: string;
472
+ theoricalValuePerMonth: number;
473
+ value: number;
474
+ balance: number;
475
+ currency: string;
476
+ note: string;
477
+ isDefault: boolean;
478
+ operations: BudgetOperationResponse[];
479
+ createdAt: Date;
480
+ updatedAt: Date;
481
+ }
482
+
483
+ interface BudgetSavingsResponse {
484
+ /**
485
+ * e.g. "12-2024"
486
+ */
487
+ id: string;
488
+ currency: string;
489
+ /**
490
+ * equal total user's savings, i.e. `other assets` + `sum of savings bank accounts`
491
+ */
492
+ totalBalance: number;
493
+ /**
494
+ * It is the value diff between the actual totalBalance and the value of the last report
495
+ */
496
+ vsLastMonth: number;
497
+ /**
498
+ * Equal `other assets` total balance
499
+ */
500
+ lockedInSavingsBalance: number;
501
+ allocations: BudgetSavingsAllocationResponse[];
502
+ }
503
+
457
504
  interface CoOwnerDeletedResponse {
458
505
  deleted: boolean;
459
506
  errorMessage: string | null;
@@ -497,6 +544,7 @@ interface UserProfileResponse {
497
544
  id: string;
498
545
  currency: AvailableCurrencyEnum;
499
546
  status: UserStatusEnum;
547
+ numberOfCowners: number;
500
548
  createdAt: Date;
501
549
  updatedAt: Date;
502
550
  }
@@ -551,4 +599,4 @@ declare class FilterArgs {
551
599
  take: number;
552
600
  }
553
601
 
554
- export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountUpdatedResponse, type BankAccountsBatchUpdatedResponse, type BankAccountsResponse, type BudgetExpensesAllocationDeletedResponse, type BudgetExpensesAllocationResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationsResponse, BudgetTypeEnum, type CoOwnerDeletedResponse, type CoOwnerResponse, type CreateAssetCoOwnerInput, type CreateAssetDateOfAcquisitionInput, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateMobilityInput, type CreateOtherAssetInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, type DeleteUserCoOwnerInput, type ExactMatch, type FetchBankAccountTransactionsInput, type FetchUserCoOwnerInput, FilterArgs, type GlobalWealthStatisticsResponse, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationInput, type PaginationResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type ReportBudgetResponse, type ReportValueResponse, type ReportWealthResponse, type StockExchangeResponse, SupportedCurrencyEnum, type TimePaginationInput, type TimePaginationResponse, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateUserInput, type UserCoOwnerResponse, type UserProfileResponse, type UserReportResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
602
+ export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, AvailableCurrencyEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountUpdatedResponse, type BankAccountsBatchUpdatedResponse, type BankAccountsResponse, type BudgetExpensesAllocationDeletedResponse, type BudgetExpensesAllocationResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationsResponse, type BudgetOperationResponse, type BudgetSavingsAllocationResponse, type BudgetSavingsResponse, BudgetTypeEnum, type CoOwnerDeletedResponse, type CoOwnerResponse, type CreateAssetCoOwnerInput, type CreateAssetDateOfAcquisitionInput, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateMobilityInput, type CreateOtherAssetInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, type DeleteUserCoOwnerInput, type ExactMatch, type FetchBankAccountTransactionsInput, type FetchUserCoOwnerInput, FilterArgs, type GlobalWealthStatisticsResponse, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetDeletedResponse, type OtherAssetResponse, type PaginationInput, type PaginationResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type ReportBudgetResponse, type ReportValueResponse, type ReportWealthResponse, type StockExchangeResponse, SupportedCurrencyEnum, type TimePaginationInput, type TimePaginationResponse, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateUserInput, type UserCoOwnerResponse, type UserProfileResponse, type UserReportResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sowhat-types",
3
- "version": "2.0.45",
3
+ "version": "2.0.47",
4
4
  "description": "Sowhat types",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",