sowhat-types 2.0.38 → 2.0.39

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
@@ -88,13 +88,16 @@ interface AllocateTransactionInput {
88
88
  applicationDate: Date;
89
89
  }
90
90
 
91
- interface PaginationInput {
92
- offset: number | null;
93
- limit: number | null;
91
+ interface TimePaginationInput {
94
92
  startDate: Date | null;
95
93
  endDate: Date | null;
96
94
  }
97
95
 
96
+ interface PaginationInput extends TimePaginationInput {
97
+ offset: number | null;
98
+ limit: number | null;
99
+ }
100
+
98
101
  interface FetchBankAccountTransactionsInput {
99
102
  accountId: string;
100
103
  pagination: PaginationInput;
@@ -498,6 +501,30 @@ interface AssetsResponse {
498
501
  otherAssets: OtherAssetResponse[];
499
502
  }
500
503
 
504
+ interface ReportValueResponse {
505
+ value: number | null;
506
+ vsLastMonthPercent: number | null;
507
+ }
508
+
509
+ interface ReportBudgetResponse {
510
+ incomes: ReportValueResponse;
511
+ expenses: ReportValueResponse;
512
+ savings: ReportValueResponse;
513
+ }
514
+
515
+ interface ReportWealthResponse {
516
+ balanceCheckingAccounts: ReportValueResponse;
517
+ balanceSavingsAccounts: ReportValueResponse;
518
+ balanceAssets: ReportValueResponse;
519
+ }
520
+
521
+ interface UserReportResponse {
522
+ userId: string;
523
+ reportId: string;
524
+ budget: ReportBudgetResponse | null;
525
+ wealth: ReportWealthResponse;
526
+ }
527
+
501
528
  type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
502
529
 
503
530
  declare class FilterArgs {
@@ -505,4 +532,4 @@ declare class FilterArgs {
505
532
  take: number;
506
533
  }
507
534
 
508
- export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, 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 StockExchangeResponse, SupportedCurrencyEnum, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UserCoOwnerResponse, type UserResponse, type UserStatisticsResponse, UserStatusEnum };
535
+ export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, 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 TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UserCoOwnerResponse, type UserReportResponse, type UserResponse, type UserStatisticsResponse, UserStatusEnum };
package/dist/index.d.ts CHANGED
@@ -88,13 +88,16 @@ interface AllocateTransactionInput {
88
88
  applicationDate: Date;
89
89
  }
90
90
 
91
- interface PaginationInput {
92
- offset: number | null;
93
- limit: number | null;
91
+ interface TimePaginationInput {
94
92
  startDate: Date | null;
95
93
  endDate: Date | null;
96
94
  }
97
95
 
96
+ interface PaginationInput extends TimePaginationInput {
97
+ offset: number | null;
98
+ limit: number | null;
99
+ }
100
+
98
101
  interface FetchBankAccountTransactionsInput {
99
102
  accountId: string;
100
103
  pagination: PaginationInput;
@@ -498,6 +501,30 @@ interface AssetsResponse {
498
501
  otherAssets: OtherAssetResponse[];
499
502
  }
500
503
 
504
+ interface ReportValueResponse {
505
+ value: number | null;
506
+ vsLastMonthPercent: number | null;
507
+ }
508
+
509
+ interface ReportBudgetResponse {
510
+ incomes: ReportValueResponse;
511
+ expenses: ReportValueResponse;
512
+ savings: ReportValueResponse;
513
+ }
514
+
515
+ interface ReportWealthResponse {
516
+ balanceCheckingAccounts: ReportValueResponse;
517
+ balanceSavingsAccounts: ReportValueResponse;
518
+ balanceAssets: ReportValueResponse;
519
+ }
520
+
521
+ interface UserReportResponse {
522
+ userId: string;
523
+ reportId: string;
524
+ budget: ReportBudgetResponse | null;
525
+ wealth: ReportWealthResponse;
526
+ }
527
+
501
528
  type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
502
529
 
503
530
  declare class FilterArgs {
@@ -505,4 +532,4 @@ declare class FilterArgs {
505
532
  take: number;
506
533
  }
507
534
 
508
- export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, 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 StockExchangeResponse, SupportedCurrencyEnum, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UserCoOwnerResponse, type UserResponse, type UserStatisticsResponse, UserStatusEnum };
535
+ export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, 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 TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UserCoOwnerResponse, type UserReportResponse, type UserResponse, type UserStatisticsResponse, UserStatusEnum };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sowhat-types",
3
- "version": "2.0.38",
3
+ "version": "2.0.39",
4
4
  "description": "Sowhat types",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",