sowhat-types 2.0.63 → 2.0.65
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 +38 -23
- package/dist/index.d.ts +38 -23
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -224,6 +224,25 @@ interface UpdateBudgetIncomesAllocationInput {
|
|
|
224
224
|
bankAccountId?: string | null;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
interface CreateBudgetSavingsAllocationInput {
|
|
228
|
+
name: string;
|
|
229
|
+
icon: string;
|
|
230
|
+
color: string;
|
|
231
|
+
currency: string;
|
|
232
|
+
initialBalance: number;
|
|
233
|
+
theoricalValuePerMonth: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface UpdateBudgetSavingsAllocationInput {
|
|
237
|
+
id: string;
|
|
238
|
+
name?: string;
|
|
239
|
+
icon?: string;
|
|
240
|
+
color?: string;
|
|
241
|
+
theoricalValuePerMonth?: number;
|
|
242
|
+
balance?: number;
|
|
243
|
+
currency?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
227
246
|
interface UpdateUserInput {
|
|
228
247
|
currency?: AvailableCurrencyEnum;
|
|
229
248
|
consentToBudget?: boolean;
|
|
@@ -497,15 +516,6 @@ interface LogoutUserResponse {
|
|
|
497
516
|
isLoggedOut: boolean;
|
|
498
517
|
}
|
|
499
518
|
|
|
500
|
-
interface BudgetOperationResponse {
|
|
501
|
-
id: string;
|
|
502
|
-
applicationDate: Date;
|
|
503
|
-
value: number;
|
|
504
|
-
currency: string;
|
|
505
|
-
transactionId: string | null;
|
|
506
|
-
allocationId: string;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
519
|
interface BudgetExpensesAllocationDeletedResponse {
|
|
510
520
|
deleted: boolean;
|
|
511
521
|
errorMessage: string | null;
|
|
@@ -526,42 +536,47 @@ interface BudgetIncomesAllocationUpdatedResponse {
|
|
|
526
536
|
errorMessage: string | null;
|
|
527
537
|
}
|
|
528
538
|
|
|
539
|
+
interface BudgetSavingsAllocationUpdatedResponse {
|
|
540
|
+
updated: boolean;
|
|
541
|
+
errorMessage: string | null;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
interface SavingsMonthlyOperationResponse {
|
|
545
|
+
id: string;
|
|
546
|
+
value: number;
|
|
547
|
+
currency: string;
|
|
548
|
+
monthId: string;
|
|
549
|
+
}
|
|
550
|
+
|
|
529
551
|
interface BudgetSavingsAllocationResponse {
|
|
530
552
|
id: string;
|
|
531
553
|
name: string;
|
|
532
|
-
budget: string;
|
|
533
554
|
icon: string;
|
|
534
555
|
color: string;
|
|
535
556
|
theoricalValuePerMonth: number;
|
|
536
|
-
value: number;
|
|
537
557
|
balance: number;
|
|
538
558
|
currency: string;
|
|
539
|
-
|
|
559
|
+
currentMonthlyOperation: SavingsMonthlyOperationResponse | null;
|
|
560
|
+
monthlyOperations: SavingsMonthlyOperationResponse[];
|
|
540
561
|
isDefault: boolean;
|
|
541
|
-
operations: BudgetOperationResponse[];
|
|
542
562
|
createdAt: Date;
|
|
543
563
|
updatedAt: Date | null;
|
|
544
564
|
}
|
|
545
565
|
|
|
546
|
-
interface
|
|
566
|
+
interface UserSavingsBudgetResponse {
|
|
547
567
|
/**
|
|
548
|
-
* e.
|
|
568
|
+
* equal total user's savings, i.e. `sum of savings bank accounts of type SAVING`
|
|
549
569
|
*/
|
|
550
|
-
|
|
551
|
-
currency: string;
|
|
552
|
-
/**
|
|
553
|
-
* equal total user's savings, i.e. `other assets` + `sum of savings bank accounts`
|
|
554
|
-
*/
|
|
555
|
-
totalBalance: number;
|
|
570
|
+
availableSavingsBalance: number;
|
|
556
571
|
/**
|
|
557
572
|
* It is the value diff between the actual totalBalance and the value of the last report
|
|
558
573
|
* If `null`, there's no last report.
|
|
559
574
|
*/
|
|
560
|
-
vsLastMonth: number | null;
|
|
561
575
|
/**
|
|
562
576
|
* Equal `other assets` total balance
|
|
563
577
|
*/
|
|
564
578
|
lockedInSavingsBalance: number;
|
|
579
|
+
currency: string;
|
|
565
580
|
allocations: BudgetSavingsAllocationResponse[];
|
|
566
581
|
}
|
|
567
582
|
|
|
@@ -668,4 +683,4 @@ declare class FilterArgs {
|
|
|
668
683
|
take: number;
|
|
669
684
|
}
|
|
670
685
|
|
|
671
|
-
export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerInput, type AssetCoOwnerResponse, AssetTypeEnum, 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 BudgetExpensesAllocationUpdatedResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationUpdatedResponse, type BudgetIncomesAllocationsResponse, type
|
|
686
|
+
export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerInput, type AssetCoOwnerResponse, AssetTypeEnum, 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 BudgetExpensesAllocationUpdatedResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationUpdatedResponse, type BudgetIncomesAllocationsResponse, type BudgetSavingsAllocationResponse, type BudgetSavingsAllocationUpdatedResponse, BudgetTypeEnum, type CoOwnerDeletedResponse, type CoOwnerResponse, type CoOwnerUpdatedResponse, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateBudgetSavingsAllocationInput, type CreateMobilityInput, type CreateOtherAssetInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, type DeleteUserCoOwnerInput, type ExactMatch, type FetchBankAccountTransactionsInput, type FetchBankAccountsListInput, type FetchUserCoOwnerInput, FilterArgs, type GlobalWealthStatisticsResponse, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, type MobilityUpdatedResponse, type OtherAssetDeletedResponse, type OtherAssetResponse, type OtherAssetUpdatedResponse, type PaginationInput, type PaginationResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type RealEstateUpdatedResponse, type ReportBudgetResponse, type ReportValueResponse, type ReportWealthResponse, type SavingsMonthlyOperationResponse, SortEnum, type StockExchangeResponse, SupportedCurrencyEnum, type TimePaginationInput, type TimePaginationResponse, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateBudgetExpensesAllocationInput, type UpdateBudgetIncomesAllocationInput, type UpdateBudgetSavingsAllocationInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateRealEstateInput, type UpdateUserCoOwnerInput, type UpdateUserInput, type UserAssetsResponse, type UserCoOwnerResponse, type UserProfileResponse, type UserReportResponse, type UserSavingsBudgetResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
|
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,25 @@ interface UpdateBudgetIncomesAllocationInput {
|
|
|
224
224
|
bankAccountId?: string | null;
|
|
225
225
|
}
|
|
226
226
|
|
|
227
|
+
interface CreateBudgetSavingsAllocationInput {
|
|
228
|
+
name: string;
|
|
229
|
+
icon: string;
|
|
230
|
+
color: string;
|
|
231
|
+
currency: string;
|
|
232
|
+
initialBalance: number;
|
|
233
|
+
theoricalValuePerMonth: number;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
interface UpdateBudgetSavingsAllocationInput {
|
|
237
|
+
id: string;
|
|
238
|
+
name?: string;
|
|
239
|
+
icon?: string;
|
|
240
|
+
color?: string;
|
|
241
|
+
theoricalValuePerMonth?: number;
|
|
242
|
+
balance?: number;
|
|
243
|
+
currency?: string;
|
|
244
|
+
}
|
|
245
|
+
|
|
227
246
|
interface UpdateUserInput {
|
|
228
247
|
currency?: AvailableCurrencyEnum;
|
|
229
248
|
consentToBudget?: boolean;
|
|
@@ -497,15 +516,6 @@ interface LogoutUserResponse {
|
|
|
497
516
|
isLoggedOut: boolean;
|
|
498
517
|
}
|
|
499
518
|
|
|
500
|
-
interface BudgetOperationResponse {
|
|
501
|
-
id: string;
|
|
502
|
-
applicationDate: Date;
|
|
503
|
-
value: number;
|
|
504
|
-
currency: string;
|
|
505
|
-
transactionId: string | null;
|
|
506
|
-
allocationId: string;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
519
|
interface BudgetExpensesAllocationDeletedResponse {
|
|
510
520
|
deleted: boolean;
|
|
511
521
|
errorMessage: string | null;
|
|
@@ -526,42 +536,47 @@ interface BudgetIncomesAllocationUpdatedResponse {
|
|
|
526
536
|
errorMessage: string | null;
|
|
527
537
|
}
|
|
528
538
|
|
|
539
|
+
interface BudgetSavingsAllocationUpdatedResponse {
|
|
540
|
+
updated: boolean;
|
|
541
|
+
errorMessage: string | null;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
interface SavingsMonthlyOperationResponse {
|
|
545
|
+
id: string;
|
|
546
|
+
value: number;
|
|
547
|
+
currency: string;
|
|
548
|
+
monthId: string;
|
|
549
|
+
}
|
|
550
|
+
|
|
529
551
|
interface BudgetSavingsAllocationResponse {
|
|
530
552
|
id: string;
|
|
531
553
|
name: string;
|
|
532
|
-
budget: string;
|
|
533
554
|
icon: string;
|
|
534
555
|
color: string;
|
|
535
556
|
theoricalValuePerMonth: number;
|
|
536
|
-
value: number;
|
|
537
557
|
balance: number;
|
|
538
558
|
currency: string;
|
|
539
|
-
|
|
559
|
+
currentMonthlyOperation: SavingsMonthlyOperationResponse | null;
|
|
560
|
+
monthlyOperations: SavingsMonthlyOperationResponse[];
|
|
540
561
|
isDefault: boolean;
|
|
541
|
-
operations: BudgetOperationResponse[];
|
|
542
562
|
createdAt: Date;
|
|
543
563
|
updatedAt: Date | null;
|
|
544
564
|
}
|
|
545
565
|
|
|
546
|
-
interface
|
|
566
|
+
interface UserSavingsBudgetResponse {
|
|
547
567
|
/**
|
|
548
|
-
* e.
|
|
568
|
+
* equal total user's savings, i.e. `sum of savings bank accounts of type SAVING`
|
|
549
569
|
*/
|
|
550
|
-
|
|
551
|
-
currency: string;
|
|
552
|
-
/**
|
|
553
|
-
* equal total user's savings, i.e. `other assets` + `sum of savings bank accounts`
|
|
554
|
-
*/
|
|
555
|
-
totalBalance: number;
|
|
570
|
+
availableSavingsBalance: number;
|
|
556
571
|
/**
|
|
557
572
|
* It is the value diff between the actual totalBalance and the value of the last report
|
|
558
573
|
* If `null`, there's no last report.
|
|
559
574
|
*/
|
|
560
|
-
vsLastMonth: number | null;
|
|
561
575
|
/**
|
|
562
576
|
* Equal `other assets` total balance
|
|
563
577
|
*/
|
|
564
578
|
lockedInSavingsBalance: number;
|
|
579
|
+
currency: string;
|
|
565
580
|
allocations: BudgetSavingsAllocationResponse[];
|
|
566
581
|
}
|
|
567
582
|
|
|
@@ -668,4 +683,4 @@ declare class FilterArgs {
|
|
|
668
683
|
take: number;
|
|
669
684
|
}
|
|
670
685
|
|
|
671
|
-
export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerInput, type AssetCoOwnerResponse, AssetTypeEnum, 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 BudgetExpensesAllocationUpdatedResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationUpdatedResponse, type BudgetIncomesAllocationsResponse, type
|
|
686
|
+
export { type AccessTokensResponse, type AllocateTransactionInput, type AssetCoOwnerInput, type AssetCoOwnerResponse, AssetTypeEnum, 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 BudgetExpensesAllocationUpdatedResponse, type BudgetExpensesAllocationsResponse, type BudgetIncomesAllocationDeletedResponse, type BudgetIncomesAllocationResponse, type BudgetIncomesAllocationUpdatedResponse, type BudgetIncomesAllocationsResponse, type BudgetSavingsAllocationResponse, type BudgetSavingsAllocationUpdatedResponse, BudgetTypeEnum, type CoOwnerDeletedResponse, type CoOwnerResponse, type CoOwnerUpdatedResponse, type CreateBudgetExpensesAllocationInput, type CreateBudgetIncomesAllocationInput, type CreateBudgetSavingsAllocationInput, type CreateMobilityInput, type CreateOtherAssetInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteBudgetExpensesAllocationInput, type DeleteBudgetIncomesAllocationInput, type DeleteUserCoOwnerInput, type ExactMatch, type FetchBankAccountTransactionsInput, type FetchBankAccountsListInput, type FetchUserCoOwnerInput, FilterArgs, type GlobalWealthStatisticsResponse, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, type MobilityUpdatedResponse, type OtherAssetDeletedResponse, type OtherAssetResponse, type OtherAssetUpdatedResponse, type PaginationInput, type PaginationResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type RealEstateUpdatedResponse, type ReportBudgetResponse, type ReportValueResponse, type ReportWealthResponse, type SavingsMonthlyOperationResponse, SortEnum, type StockExchangeResponse, SupportedCurrencyEnum, type TimePaginationInput, type TimePaginationResponse, type TransactionBudgetAllocationsResponse, type UpdateBankAccountInput, type UpdateBankAccountTransactionInput, type UpdateBudgetExpensesAllocationInput, type UpdateBudgetIncomesAllocationInput, type UpdateBudgetSavingsAllocationInput, type UpdateMobilityInput, type UpdateOtherAssetInput, type UpdateRealEstateInput, type UpdateUserCoOwnerInput, type UpdateUserInput, type UserAssetsResponse, type UserCoOwnerResponse, type UserProfileResponse, type UserReportResponse, type UserSavingsBudgetResponse, type UserStatisticsResponse, UserStatusEnum, type UserUpdatedResponse };
|