sowhat-types 2.0.1 → 2.0.2

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.
Files changed (109) hide show
  1. package/dist/enums/asset-type.enum.d.ts +7 -0
  2. package/dist/enums/asset-type.enum.js +11 -0
  3. package/dist/enums/authentication-method.enum.d.ts +4 -0
  4. package/dist/enums/authentication-method.enum.js +8 -0
  5. package/dist/enums/bank-account-scheme-name.d.ts +7 -0
  6. package/dist/enums/bank-account-scheme-name.js +11 -0
  7. package/dist/enums/bank-account-transaction-type.enum.d.ts +18 -0
  8. package/dist/enums/bank-account-transaction-type.enum.js +22 -0
  9. package/dist/enums/bank-account-type.enum.d.ts +5 -0
  10. package/dist/enums/bank-account-type.enum.js +9 -0
  11. package/dist/enums/index.d.ts +5 -0
  12. package/dist/enums/index.js +21 -0
  13. package/dist/enums/mobility-type.enum.d.ts +6 -0
  14. package/dist/enums/mobility-type.enum.js +10 -0
  15. package/dist/exact-match.d.ts +1 -0
  16. package/dist/exact-match.js +1 -0
  17. package/dist/index.d.ts +4 -0
  18. package/dist/index.js +4 -0
  19. package/dist/inputs/asset/bank-account/fetch-user-bank-accounts.input.d.ts +4 -0
  20. package/dist/inputs/asset/bank-account/fetch-user-bank-accounts.input.js +2 -0
  21. package/dist/inputs/asset/create-asset-co-owner.input.d.ts +5 -0
  22. package/dist/inputs/asset/create-asset-co-owner.input.js +2 -0
  23. package/dist/inputs/asset/create-asset-date-of-acquisition.input.d.ts +4 -0
  24. package/dist/inputs/asset/create-asset-date-of-acquisition.input.js +2 -0
  25. package/dist/inputs/asset/mobility/create-mobility.input.d.ts +16 -0
  26. package/dist/inputs/asset/mobility/create-mobility.input.js +2 -0
  27. package/dist/inputs/asset/real-estate/create-real-estate.input.d.ts +11 -0
  28. package/dist/inputs/asset/real-estate/create-real-estate.input.js +2 -0
  29. package/dist/inputs/auth/logout-user.input.d.ts +3 -0
  30. package/dist/inputs/auth/logout-user.input.js +2 -0
  31. package/dist/inputs/index.d.ts +5 -0
  32. package/dist/inputs/index.js +24 -0
  33. package/dist/responses/asset/asset-co-owner.response.d.ts +6 -0
  34. package/dist/responses/asset/asset-co-owner.response.js +2 -0
  35. package/dist/responses/asset/asset-date-of-acquisition.response.d.ts +4 -0
  36. package/dist/responses/asset/asset-date-of-acquisition.response.js +2 -0
  37. package/dist/responses/asset/assets.response.d.ts +12 -0
  38. package/dist/responses/asset/assets.response.js +2 -0
  39. package/dist/responses/asset/bank-account/bank-account-balances.response.d.ts +22 -0
  40. package/dist/responses/asset/bank-account/bank-account-balances.response.js +2 -0
  41. package/dist/responses/asset/bank-account/bank-account-orignal-transaction.response.d.ts +6 -0
  42. package/dist/responses/asset/bank-account/bank-account-orignal-transaction.response.js +2 -0
  43. package/dist/responses/asset/bank-account/bank-account-transaction-counterparty.response.d.ts +6 -0
  44. package/dist/responses/asset/bank-account/bank-account-transaction-counterparty.response.js +2 -0
  45. package/dist/responses/asset/bank-account/bank-account-transaction-extra-data.response.d.ts +6 -0
  46. package/dist/responses/asset/bank-account/bank-account-transaction-extra-data.response.js +2 -0
  47. package/dist/responses/asset/bank-account/bank-account-transaction-wording.response.d.ts +9 -0
  48. package/dist/responses/asset/bank-account/bank-account-transaction-wording.response.js +2 -0
  49. package/dist/responses/asset/bank-account/bank-account-transaction.response.d.ts +22 -0
  50. package/dist/responses/asset/bank-account/bank-account-transaction.response.js +2 -0
  51. package/dist/responses/asset/bank-account/bank-account-transactions.response.d.ts +4 -0
  52. package/dist/responses/asset/bank-account/bank-account-transactions.response.js +2 -0
  53. package/dist/responses/asset/bank-account/bank-account.response.d.ts +11 -0
  54. package/dist/responses/asset/bank-account/bank-account.response.js +2 -0
  55. package/dist/responses/asset/bank-account/bank-accounts.response.d.ts +6 -0
  56. package/dist/responses/asset/bank-account/bank-accounts.response.js +2 -0
  57. package/dist/responses/asset/cryptocurrency/cryptocurrency.response.d.ts +3 -0
  58. package/dist/responses/asset/cryptocurrency/cryptocurrency.response.js +2 -0
  59. package/dist/responses/asset/mobility/mobility-deleted.response.d.ts +4 -0
  60. package/dist/responses/asset/mobility/mobility-deleted.response.js +2 -0
  61. package/dist/responses/asset/mobility/mobility.response.d.ts +19 -0
  62. package/dist/responses/asset/mobility/mobility.response.js +2 -0
  63. package/dist/responses/asset/other/other-asset.response.d.ts +3 -0
  64. package/dist/responses/asset/other/other-asset.response.js +2 -0
  65. package/dist/responses/asset/real-estate/real-estate-deleted.response.d.ts +4 -0
  66. package/dist/responses/asset/real-estate/real-estate-deleted.response.js +2 -0
  67. package/dist/responses/asset/real-estate/real-estate.response.d.ts +14 -0
  68. package/dist/responses/asset/real-estate/real-estate.response.js +2 -0
  69. package/dist/responses/asset/stock-exchange/stock-exchange.response.d.ts +3 -0
  70. package/dist/responses/asset/stock-exchange/stock-exchange.response.js +2 -0
  71. package/dist/responses/index.d.ts +19 -0
  72. package/dist/responses/index.js +42 -0
  73. package/exact-match.ts +1 -0
  74. package/package.json +1 -9
  75. package/src/enums/asset-type.enum.ts +7 -0
  76. package/src/enums/authentication-method.enum.ts +4 -0
  77. package/src/enums/bank-account-scheme-name.ts +7 -0
  78. package/src/enums/bank-account-transaction-type.enum.ts +18 -0
  79. package/src/enums/bank-account-type.enum.ts +5 -0
  80. package/src/enums/index.ts +5 -0
  81. package/src/enums/mobility-type.enum.ts +6 -0
  82. package/src/inputs/asset/bank-account/fetch-user-bank-accounts.input.ts +4 -0
  83. package/src/inputs/asset/create-asset-co-owner.input.ts +5 -0
  84. package/src/inputs/asset/create-asset-date-of-acquisition.input.ts +4 -0
  85. package/src/inputs/asset/mobility/create-mobility.input.ts +17 -0
  86. package/src/inputs/asset/real-estate/create-real-estate.input.ts +12 -0
  87. package/src/inputs/auth/logout-user.input.ts +3 -0
  88. package/src/inputs/index.ts +11 -0
  89. package/src/responses/asset/asset-co-owner.response.ts +6 -0
  90. package/src/responses/asset/asset-date-of-acquisition.response.ts +4 -0
  91. package/src/responses/asset/assets.response.ts +13 -0
  92. package/src/responses/asset/bank-account/bank-account-balances.response.ts +26 -0
  93. package/src/responses/asset/bank-account/bank-account-orignal-transaction.response.ts +6 -0
  94. package/src/responses/asset/bank-account/bank-account-transaction-counterparty.response.ts +7 -0
  95. package/src/responses/asset/bank-account/bank-account-transaction-extra-data.response.ts +7 -0
  96. package/src/responses/asset/bank-account/bank-account-transaction-wording.response.ts +9 -0
  97. package/src/responses/asset/bank-account/bank-account-transaction.response.ts +23 -0
  98. package/src/responses/asset/bank-account/bank-account-transactions.response.ts +5 -0
  99. package/src/responses/asset/bank-account/bank-account.response.ts +12 -0
  100. package/src/responses/asset/bank-account/bank-accounts.response.ts +7 -0
  101. package/src/responses/asset/cryptocurrency/cryptocurrency.response.ts +3 -0
  102. package/src/responses/asset/mobility/mobility-deleted.response.ts +4 -0
  103. package/src/responses/asset/mobility/mobility.response.ts +20 -0
  104. package/src/responses/asset/other/other-asset.response.ts +3 -0
  105. package/src/responses/asset/real-estate/real-estate-deleted.response.ts +4 -0
  106. package/src/responses/asset/real-estate/real-estate.response.ts +15 -0
  107. package/src/responses/asset/stock-exchange/stock-exchange.response.ts +3 -0
  108. package/src/responses/index.ts +32 -0
  109. package/tsconfig.json +10 -0
@@ -0,0 +1,7 @@
1
+ export declare enum AssetTypeEnum {
2
+ REAL_ESTATE = "REAL_ESTATE",
3
+ MOBILITY = "MOBILITY",
4
+ STOCK_EXCHANGE = "STOCK_EXCHANGE",
5
+ CRYPTOCURRENCY = "CRYPTOCURRENCY",
6
+ OTHER = "OTHER"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AssetTypeEnum = void 0;
4
+ var AssetTypeEnum;
5
+ (function (AssetTypeEnum) {
6
+ AssetTypeEnum["REAL_ESTATE"] = "REAL_ESTATE";
7
+ AssetTypeEnum["MOBILITY"] = "MOBILITY";
8
+ AssetTypeEnum["STOCK_EXCHANGE"] = "STOCK_EXCHANGE";
9
+ AssetTypeEnum["CRYPTOCURRENCY"] = "CRYPTOCURRENCY";
10
+ AssetTypeEnum["OTHER"] = "OTHER";
11
+ })(AssetTypeEnum || (exports.AssetTypeEnum = AssetTypeEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum AuthenticationMethodEnum {
2
+ PHONE = "PHONE",
3
+ EMAIL = "EMAIL"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuthenticationMethodEnum = void 0;
4
+ var AuthenticationMethodEnum;
5
+ (function (AuthenticationMethodEnum) {
6
+ AuthenticationMethodEnum["PHONE"] = "PHONE";
7
+ AuthenticationMethodEnum["EMAIL"] = "EMAIL";
8
+ })(AuthenticationMethodEnum || (exports.AuthenticationMethodEnum = AuthenticationMethodEnum = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum BankAccountSchemeNameEnum {
2
+ IBAN = "IBAN",
3
+ BBAN = "BBAN",
4
+ SORT_CODE_ACCOUNT_NUMBER = "SORT_CODE_ACCOUNT_NUMBER",
5
+ CPAN = "CPAN",
6
+ TPAN = "TPAN"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BankAccountSchemeNameEnum = void 0;
4
+ var BankAccountSchemeNameEnum;
5
+ (function (BankAccountSchemeNameEnum) {
6
+ BankAccountSchemeNameEnum["IBAN"] = "IBAN";
7
+ BankAccountSchemeNameEnum["BBAN"] = "BBAN";
8
+ BankAccountSchemeNameEnum["SORT_CODE_ACCOUNT_NUMBER"] = "SORT_CODE_ACCOUNT_NUMBER";
9
+ BankAccountSchemeNameEnum["CPAN"] = "CPAN";
10
+ BankAccountSchemeNameEnum["TPAN"] = "TPAN";
11
+ })(BankAccountSchemeNameEnum || (exports.BankAccountSchemeNameEnum = BankAccountSchemeNameEnum = {}));
@@ -0,0 +1,18 @@
1
+ export declare enum BankAccountTransactionTypeEnum {
2
+ TRANSFER = "TRANSFER",// Transfer
3
+ ORDER = "ORDER",// Order
4
+ CHECK = "CHECK",// Check
5
+ DEPOSIT = "DEPOSIT",// Mandatory/voluntary deposits, contributions, money transfers
6
+ PAYBACK = "PAYBACK",// Payback
7
+ WITHDRAWAL = "WITHDRAWAL",// Withdrawal
8
+ LOAN_REPAYMENT = "LOAN_REPAYMENT",// Loan payment
9
+ BANK = "BANK",// Bank fees
10
+ CARD = "CARD",// Card operation
11
+ DEFERRED_CARD = "DEFERRED_CARD",// Deferred card operation
12
+ SUMMARY_CARD = "SUMMARY_CARD",// Monthly debit of a deferred card
13
+ UNKNOWN = "UNKNOWN",//Unknown transaction type
14
+ MARKET_ORDER = "MARKET_ORDER",// Market order
15
+ MARKET_FEE = "MARKET_FEE",// Fees regarding a market order
16
+ ARBITRAGE = "ARBITRAGE",// Arbitrage
17
+ PROFIT = "PROFIT"
18
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BankAccountTransactionTypeEnum = void 0;
4
+ var BankAccountTransactionTypeEnum;
5
+ (function (BankAccountTransactionTypeEnum) {
6
+ BankAccountTransactionTypeEnum["TRANSFER"] = "TRANSFER";
7
+ BankAccountTransactionTypeEnum["ORDER"] = "ORDER";
8
+ BankAccountTransactionTypeEnum["CHECK"] = "CHECK";
9
+ BankAccountTransactionTypeEnum["DEPOSIT"] = "DEPOSIT";
10
+ BankAccountTransactionTypeEnum["PAYBACK"] = "PAYBACK";
11
+ BankAccountTransactionTypeEnum["WITHDRAWAL"] = "WITHDRAWAL";
12
+ BankAccountTransactionTypeEnum["LOAN_REPAYMENT"] = "LOAN_REPAYMENT";
13
+ BankAccountTransactionTypeEnum["BANK"] = "BANK";
14
+ BankAccountTransactionTypeEnum["CARD"] = "CARD";
15
+ BankAccountTransactionTypeEnum["DEFERRED_CARD"] = "DEFERRED_CARD";
16
+ BankAccountTransactionTypeEnum["SUMMARY_CARD"] = "SUMMARY_CARD";
17
+ BankAccountTransactionTypeEnum["UNKNOWN"] = "UNKNOWN";
18
+ BankAccountTransactionTypeEnum["MARKET_ORDER"] = "MARKET_ORDER";
19
+ BankAccountTransactionTypeEnum["MARKET_FEE"] = "MARKET_FEE";
20
+ BankAccountTransactionTypeEnum["ARBITRAGE"] = "ARBITRAGE";
21
+ BankAccountTransactionTypeEnum["PROFIT"] = "PROFIT";
22
+ })(BankAccountTransactionTypeEnum || (exports.BankAccountTransactionTypeEnum = BankAccountTransactionTypeEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum BankAccountTypeEnum {
2
+ CHECKING = "CHECKING",
3
+ SAVINGS = "SAVINGS",
4
+ OTHER = "OTHER"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BankAccountTypeEnum = void 0;
4
+ var BankAccountTypeEnum;
5
+ (function (BankAccountTypeEnum) {
6
+ BankAccountTypeEnum["CHECKING"] = "CHECKING";
7
+ BankAccountTypeEnum["SAVINGS"] = "SAVINGS";
8
+ BankAccountTypeEnum["OTHER"] = "OTHER";
9
+ })(BankAccountTypeEnum || (exports.BankAccountTypeEnum = BankAccountTypeEnum = {}));
@@ -0,0 +1,5 @@
1
+ export * from "./authentication-method.enum";
2
+ export * from "./mobility-type.enum";
3
+ export * from "./bank-account-scheme-name";
4
+ export * from "./bank-account-transaction-type.enum";
5
+ export * from "./bank-account-type.enum";
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./authentication-method.enum"), exports);
18
+ __exportStar(require("./mobility-type.enum"), exports);
19
+ __exportStar(require("./bank-account-scheme-name"), exports);
20
+ __exportStar(require("./bank-account-transaction-type.enum"), exports);
21
+ __exportStar(require("./bank-account-type.enum"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum MobilityTypeEnum {
2
+ CAR = "CAR",
3
+ MOTORCYCLE = "MOTORCYCLE",
4
+ BICYCLE = "BICYCLE",
5
+ OTHER = "OTHER"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MobilityTypeEnum = void 0;
4
+ var MobilityTypeEnum;
5
+ (function (MobilityTypeEnum) {
6
+ MobilityTypeEnum["CAR"] = "CAR";
7
+ MobilityTypeEnum["MOTORCYCLE"] = "MOTORCYCLE";
8
+ MobilityTypeEnum["BICYCLE"] = "BICYCLE";
9
+ MobilityTypeEnum["OTHER"] = "OTHER";
10
+ })(MobilityTypeEnum || (exports.MobilityTypeEnum = MobilityTypeEnum = {}));
@@ -0,0 +1 @@
1
+ export type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './enums/index';
2
+ export * from './inputs/index';
3
+ export * from './responses/index';
4
+ export * from './exact-match';
package/dist/index.js ADDED
@@ -0,0 +1,4 @@
1
+ export * from './enums/index';
2
+ export * from './inputs/index';
3
+ export * from './responses/index';
4
+ export * from './exact-match';
@@ -0,0 +1,4 @@
1
+ export interface FetchUserBankAccountsInput {
2
+ userId: string;
3
+ accountId: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface CreateAssetCoOwnerInput {
2
+ id: string;
3
+ coOwnershipShare: number;
4
+ coOwnerFinancialShare: number;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface CreateAssetDateOfAcquisitionInput {
2
+ month: number;
3
+ year: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { MobilityTypeEnum } from '../../../enums/mobility-type.enum';
2
+ import { CreateAssetCoOwnerInput } from '../create-asset-co-owner.input';
3
+ import { CreateAssetDateOfAcquisitionInput } from '../create-asset-date-of-acquisition.input';
4
+ export interface CreateMobilityInput {
5
+ userId: string;
6
+ customTitle: string;
7
+ customImage: string | null;
8
+ price: number;
9
+ licenceNumber: string | null;
10
+ dateOfAcquisition: CreateAssetDateOfAcquisitionInput | null;
11
+ mobilityType: MobilityTypeEnum;
12
+ mileage: number | null;
13
+ note: string | null;
14
+ gotLoan: boolean;
15
+ coOwner: CreateAssetCoOwnerInput | null;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { CreateAssetCoOwnerInput } from "../create-asset-co-owner.input";
2
+ export interface CreateRealEstateInput {
3
+ userId: string;
4
+ gotLoan: boolean;
5
+ customTitle: string;
6
+ customImage: string | null;
7
+ price: number;
8
+ note: string | null;
9
+ isMainResidence: boolean;
10
+ coOwner: CreateAssetCoOwnerInput | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface LogoutUserInput {
2
+ userId: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export * from './asset/create-asset-co-owner.input';
2
+ export * from './asset/create-asset-date-of-acquisition.input';
3
+ export * from './asset/bank-account/fetch-user-bank-accounts.input';
4
+ export * from './asset/mobility/create-mobility.input';
5
+ export * from './asset/real-estate/create-real-estate.input';
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./asset/create-asset-co-owner.input"), exports);
18
+ __exportStar(require("./asset/create-asset-date-of-acquisition.input"), exports);
19
+ // Bank Account
20
+ __exportStar(require("./asset/bank-account/fetch-user-bank-accounts.input"), exports);
21
+ // Mobility
22
+ __exportStar(require("./asset/mobility/create-mobility.input"), exports);
23
+ // Real Estate
24
+ __exportStar(require("./asset/real-estate/create-real-estate.input"), exports);
@@ -0,0 +1,6 @@
1
+ export interface AssetCoOwnerResponse {
2
+ id: string;
3
+ customName: string;
4
+ coOwnershipShare: number;
5
+ coOwnerFinancialShare: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface AssetDateOfAcquisitionResponse {
2
+ month: number;
3
+ year: number;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ import { MobilityResponse } from './mobility/mobility.response';
2
+ import { OtherAssetResponse } from './other/other-asset.response';
3
+ import { RealEstateResponse } from './real-estate/real-estate.response';
4
+ import { StockExchangeResponse } from './stock-exchange/stock-exchange.response';
5
+ import { CryptocurrencyResponse } from './cryptocurrency/cryptocurrency.response';
6
+ export interface AssetsResponse {
7
+ realEstateAssets: RealEstateResponse[];
8
+ mobilityAssets: MobilityResponse[];
9
+ cryptocurrencyAssets: CryptocurrencyResponse[];
10
+ stockExchangeAssets: StockExchangeResponse[];
11
+ otherAssets: OtherAssetResponse[];
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ export interface BankAccountBalancesResponse {
2
+ /**
3
+ * total balance for checking type accounts
4
+ */
5
+ checking: number | null;
6
+ /**
7
+ * total incoming balance for checking type accounts
8
+ */
9
+ incomingChecking: number | null;
10
+ /**
11
+ * total balance for savings type accounts
12
+ */
13
+ savings: number | null;
14
+ /**
15
+ * total incoming balance for savings type accounts
16
+ */
17
+ incomingSavings: number | null;
18
+ /**
19
+ * e.g. '€'
20
+ */
21
+ currency: string;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface BankAccountOriginalTransactionResponse {
2
+ value: number;
3
+ currency: string;
4
+ commission: number | null;
5
+ commissionCurrency: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { BankAccountSchemeNameEnum } from '../../../enums/bank-account-scheme-name';
2
+ export interface BankAccountTransactionCounterpartyResponse {
3
+ label: string | null;
4
+ accountScheme: BankAccountSchemeNameEnum | null;
5
+ type: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { BankAccountTransactionCounterpartyResponse } from './bank-account-transaction-counterparty.response';
2
+ export interface BankAccountTransactionExtraDataResponse {
3
+ datetime: Date | null;
4
+ counterparty: BankAccountTransactionCounterpartyResponse | null;
5
+ country: string | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export interface BankAccountTransactionWordingResponse {
2
+ original: string;
3
+ stemmed: string;
4
+ simplified: string;
5
+ /**
6
+ * The one that can be edited by the user and update in the transaction by Powens API
7
+ */
8
+ custom: string | null;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { BankAccountTransactionWordingResponse } from './bank-account-transaction-wording.response';
2
+ import { BankAccountOriginalTransactionResponse } from './bank-account-orignal-transaction.response';
3
+ import { BankAccountTransactionExtraDataResponse } from './bank-account-transaction-extra-data.response';
4
+ import { BankAccountTransactionTypeEnum } from '../../../enums/bank-account-transaction-type.enum';
5
+ export interface BankAccountTransactionResponse {
6
+ id: string;
7
+ accountId: string;
8
+ date: Date;
9
+ value: number | null;
10
+ currency: string | null;
11
+ wording: BankAccountTransactionWordingResponse;
12
+ coming: boolean;
13
+ active: boolean;
14
+ comment: string | null;
15
+ lastUpdate: Date | null;
16
+ deleted: Date | null;
17
+ cardNumber: string | null;
18
+ type: BankAccountTransactionTypeEnum;
19
+ new: boolean;
20
+ originalTransaction: BankAccountOriginalTransactionResponse | null;
21
+ extraData: BankAccountTransactionExtraDataResponse;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { BankAccountTransactionResponse } from './bank-account-transaction.response';
2
+ export interface BankAccountTransactionsResponse {
3
+ transactions: BankAccountTransactionResponse[];
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { BankAccountTypeEnum } from '../../../enums/bank-account-type.enum';
2
+ export interface BankAccountResponse {
3
+ id: number;
4
+ balance: number | null;
5
+ name: string;
6
+ originalName: string;
7
+ currency: string;
8
+ type: BankAccountTypeEnum;
9
+ gotLoan: boolean;
10
+ iban: string | null;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { BankAccountResponse } from './bank-account.response';
2
+ import { BankAccountBalancesResponse } from './bank-account-balances.response';
3
+ export interface BankAccountsResponse {
4
+ accounts: BankAccountResponse[];
5
+ balances: BankAccountBalancesResponse | null;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface CryptocurrencyResponse {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface MobilityDeletedResponse {
2
+ deleted: boolean;
3
+ errorMessage: string | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { MobilityTypeEnum } from '../../../enums/mobility-type.enum';
2
+ import { AssetCoOwnerResponse } from '../asset-co-owner.response';
3
+ import { AssetDateOfAcquisitionResponse } from '../asset-date-of-acquisition.response';
4
+ export interface MobilityResponse {
5
+ id: string;
6
+ userId: string;
7
+ customImage: string | null;
8
+ customTitle: string;
9
+ price: number;
10
+ licenceNumber: string | null;
11
+ dateOfAcquisition: AssetDateOfAcquisitionResponse | null;
12
+ mobilityType: MobilityTypeEnum;
13
+ mileage: number | null;
14
+ note: string | null;
15
+ gotLoan: boolean;
16
+ coOwner: AssetCoOwnerResponse | null;
17
+ createdAt: Date;
18
+ updatedAt: Date;
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface OtherAssetResponse {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface RealEstateDeletedResponse {
2
+ deleted: boolean;
3
+ errorMessage: string | null;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { AssetCoOwnerResponse } from '../asset-co-owner.response';
2
+ export interface RealEstateResponse {
3
+ id: string;
4
+ userId: string;
5
+ gotLoan: boolean;
6
+ customTitle: string;
7
+ customImage: string | null;
8
+ price: number;
9
+ note: string | null;
10
+ isMainResidence: boolean;
11
+ coOwner: AssetCoOwnerResponse | null;
12
+ createdAt: Date;
13
+ updatedAt: Date;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export interface StockExchangeResponse {
2
+ id: string;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ export * from './asset/bank-account/bank-account-balances.response';
2
+ export * from './asset/bank-account/bank-account-orignal-transaction.response';
3
+ export * from './asset/bank-account/bank-account-transaction-counterparty.response';
4
+ export * from './asset/bank-account/bank-account-transaction-extra-data.response';
5
+ export * from './asset/bank-account/bank-account-transaction-wording.response';
6
+ export * from './asset/bank-account/bank-account-transaction.response';
7
+ export * from './asset/bank-account/bank-account-transactions.response';
8
+ export * from './asset/bank-account/bank-account.response';
9
+ export * from './asset/bank-account/bank-accounts.response';
10
+ export * from './asset/cryptocurrency/cryptocurrency.response';
11
+ export * from './asset/mobility/mobility-deleted.response';
12
+ export * from './asset/mobility/mobility.response';
13
+ export * from './asset/other/other-asset.response';
14
+ export * from './asset/real-estate/real-estate-deleted.response';
15
+ export * from './asset/real-estate/real-estate.response';
16
+ export * from './asset/stock-exchange/stock-exchange.response';
17
+ export * from './asset/asset-co-owner.response';
18
+ export * from './asset/asset-date-of-acquisition.response';
19
+ export * from './asset/assets.response';
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Bank Account
18
+ __exportStar(require("./asset/bank-account/bank-account-balances.response"), exports);
19
+ __exportStar(require("./asset/bank-account/bank-account-orignal-transaction.response"), exports);
20
+ __exportStar(require("./asset/bank-account/bank-account-transaction-counterparty.response"), exports);
21
+ __exportStar(require("./asset/bank-account/bank-account-transaction-extra-data.response"), exports);
22
+ __exportStar(require("./asset/bank-account/bank-account-transaction-wording.response"), exports);
23
+ __exportStar(require("./asset/bank-account/bank-account-transaction.response"), exports);
24
+ __exportStar(require("./asset/bank-account/bank-account-transactions.response"), exports);
25
+ __exportStar(require("./asset/bank-account/bank-account.response"), exports);
26
+ __exportStar(require("./asset/bank-account/bank-accounts.response"), exports);
27
+ // Cryptocurrency
28
+ __exportStar(require("./asset/cryptocurrency/cryptocurrency.response"), exports);
29
+ // Mobility
30
+ __exportStar(require("./asset/mobility/mobility-deleted.response"), exports);
31
+ __exportStar(require("./asset/mobility/mobility.response"), exports);
32
+ // Other
33
+ __exportStar(require("./asset/other/other-asset.response"), exports);
34
+ // Real Estate
35
+ __exportStar(require("./asset/real-estate/real-estate-deleted.response"), exports);
36
+ __exportStar(require("./asset/real-estate/real-estate.response"), exports);
37
+ // Stock Exchange
38
+ __exportStar(require("./asset/stock-exchange/stock-exchange.response"), exports);
39
+ // Shared
40
+ __exportStar(require("./asset/asset-co-owner.response"), exports);
41
+ __exportStar(require("./asset/asset-date-of-acquisition.response"), exports);
42
+ __exportStar(require("./asset/assets.response"), exports);
package/exact-match.ts ADDED
@@ -0,0 +1 @@
1
+ export type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
package/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "sowhat-types",
3
- "version": "2.0.1",
4
- "type": "module",
3
+ "version": "2.0.2",
5
4
  "description": "sowhat types",
6
5
  "main": "index.ts",
7
6
  "scripts": {
@@ -13,12 +12,5 @@
13
12
  "devDependencies": {
14
13
  "rollup": "^4.19.1",
15
14
  "typescript": "^5.5.4"
16
- },
17
- "files": [
18
- "index.js",
19
- "index.d.ts"
20
- ],
21
- "dependencies": {
22
- "rollup-plugin-dts": "^6.1.1"
23
15
  }
24
16
  }
@@ -0,0 +1,7 @@
1
+ export enum AssetTypeEnum {
2
+ REAL_ESTATE = "REAL_ESTATE",
3
+ MOBILITY = "MOBILITY",
4
+ STOCK_EXCHANGE = "STOCK_EXCHANGE",
5
+ CRYPTOCURRENCY = "CRYPTOCURRENCY",
6
+ OTHER = "OTHER",
7
+ }
@@ -0,0 +1,4 @@
1
+ export enum AuthenticationMethodEnum {
2
+ PHONE = "PHONE",
3
+ EMAIL = "EMAIL",
4
+ }
@@ -0,0 +1,7 @@
1
+ export enum BankAccountSchemeNameEnum {
2
+ IBAN = "IBAN",
3
+ BBAN = "BBAN",
4
+ SORT_CODE_ACCOUNT_NUMBER = "SORT_CODE_ACCOUNT_NUMBER",
5
+ CPAN = "CPAN",
6
+ TPAN = "TPAN",
7
+ }
@@ -0,0 +1,18 @@
1
+ export enum BankAccountTransactionTypeEnum {
2
+ TRANSFER = "TRANSFER", // Transfer
3
+ ORDER = "ORDER", // Order
4
+ CHECK = "CHECK", // Check
5
+ DEPOSIT = "DEPOSIT", // Mandatory/voluntary deposits, contributions, money transfers
6
+ PAYBACK = "PAYBACK", // Payback
7
+ WITHDRAWAL = "WITHDRAWAL", // Withdrawal
8
+ LOAN_REPAYMENT = "LOAN_REPAYMENT", // Loan payment
9
+ BANK = "BANK", // Bank fees
10
+ CARD = "CARD", // Card operation
11
+ DEFERRED_CARD = "DEFERRED_CARD", // Deferred card operation
12
+ SUMMARY_CARD = "SUMMARY_CARD", // Monthly debit of a deferred card
13
+ UNKNOWN = "UNKNOWN", //Unknown transaction type
14
+ MARKET_ORDER = "MARKET_ORDER", // Market order
15
+ MARKET_FEE = "MARKET_FEE", // Fees regarding a market order
16
+ ARBITRAGE = "ARBITRAGE", // Arbitrage
17
+ PROFIT = "PROFIT", // Positive earnings from interests/coupons/dividends
18
+ }
@@ -0,0 +1,5 @@
1
+ export enum BankAccountTypeEnum {
2
+ CHECKING = "CHECKING",
3
+ SAVINGS = "SAVINGS",
4
+ OTHER = "OTHER",
5
+ }
@@ -0,0 +1,5 @@
1
+ export * from "./authentication-method.enum";
2
+ export * from "./mobility-type.enum";
3
+ export * from "./bank-account-scheme-name";
4
+ export * from "./bank-account-transaction-type.enum";
5
+ export * from "./bank-account-type.enum";
@@ -0,0 +1,6 @@
1
+ export enum MobilityTypeEnum {
2
+ CAR = "CAR",
3
+ MOTORCYCLE = "MOTORCYCLE",
4
+ BICYCLE = "BICYCLE",
5
+ OTHER = "OTHER",
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface FetchUserBankAccountsInput {
2
+ userId: string;
3
+ accountId: number;
4
+ }
@@ -0,0 +1,5 @@
1
+ export interface CreateAssetCoOwnerInput {
2
+ id: string;
3
+ coOwnershipShare: number;
4
+ coOwnerFinancialShare: number;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface CreateAssetDateOfAcquisitionInput {
2
+ month: number;
3
+ year: number;
4
+ }
@@ -0,0 +1,17 @@
1
+ import { MobilityTypeEnum } from '../../../enums/mobility-type.enum';
2
+ import { CreateAssetCoOwnerInput } from '../create-asset-co-owner.input';
3
+ import { CreateAssetDateOfAcquisitionInput } from '../create-asset-date-of-acquisition.input';
4
+
5
+ export interface CreateMobilityInput {
6
+ userId: string;
7
+ customTitle: string;
8
+ customImage: string | null;
9
+ price: number;
10
+ licenceNumber: string | null;
11
+ dateOfAcquisition: CreateAssetDateOfAcquisitionInput | null;
12
+ mobilityType: MobilityTypeEnum;
13
+ mileage: number | null;
14
+ note: string | null;
15
+ gotLoan: boolean;
16
+ coOwner: CreateAssetCoOwnerInput | null;
17
+ }
@@ -0,0 +1,12 @@
1
+ import { CreateAssetCoOwnerInput } from "../create-asset-co-owner.input";
2
+
3
+ export interface CreateRealEstateInput {
4
+ userId: string;
5
+ gotLoan: boolean;
6
+ customTitle: string;
7
+ customImage: string | null;
8
+ price: number;
9
+ note: string | null;
10
+ isMainResidence: boolean;
11
+ coOwner: CreateAssetCoOwnerInput | null;
12
+ }
@@ -0,0 +1,3 @@
1
+ export interface LogoutUserInput {
2
+ userId: string;
3
+ }
@@ -0,0 +1,11 @@
1
+ export * from './asset/create-asset-co-owner.input';
2
+ export * from './asset/create-asset-date-of-acquisition.input';
3
+
4
+ // Bank Account
5
+ export * from './asset/bank-account/fetch-user-bank-accounts.input';
6
+
7
+ // Mobility
8
+ export * from './asset/mobility/create-mobility.input';
9
+
10
+ // Real Estate
11
+ export * from './asset/real-estate/create-real-estate.input';
@@ -0,0 +1,6 @@
1
+ export interface AssetCoOwnerResponse {
2
+ id: string;
3
+ customName: string;
4
+ coOwnershipShare: number;
5
+ coOwnerFinancialShare: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface AssetDateOfAcquisitionResponse {
2
+ month: number;
3
+ year: number;
4
+ }
@@ -0,0 +1,13 @@
1
+ import { MobilityResponse } from './mobility/mobility.response';
2
+ import { OtherAssetResponse } from './other/other-asset.response';
3
+ import { RealEstateResponse } from './real-estate/real-estate.response';
4
+ import { StockExchangeResponse } from './stock-exchange/stock-exchange.response';
5
+ import { CryptocurrencyResponse } from './cryptocurrency/cryptocurrency.response';
6
+
7
+ export interface AssetsResponse {
8
+ realEstateAssets: RealEstateResponse[];
9
+ mobilityAssets: MobilityResponse[];
10
+ cryptocurrencyAssets: CryptocurrencyResponse[];
11
+ stockExchangeAssets: StockExchangeResponse[];
12
+ otherAssets: OtherAssetResponse[];
13
+ }
@@ -0,0 +1,26 @@
1
+ export interface BankAccountBalancesResponse {
2
+ /**
3
+ * total balance for checking type accounts
4
+ */
5
+ checking: number | null;
6
+
7
+ /**
8
+ * total incoming balance for checking type accounts
9
+ */
10
+ incomingChecking: number | null;
11
+
12
+ /**
13
+ * total balance for savings type accounts
14
+ */
15
+ savings: number | null;
16
+
17
+ /**
18
+ * total incoming balance for savings type accounts
19
+ */
20
+ incomingSavings: number | null;
21
+
22
+ /**
23
+ * e.g. '€'
24
+ */
25
+ currency: string;
26
+ }
@@ -0,0 +1,6 @@
1
+ export interface BankAccountOriginalTransactionResponse {
2
+ value: number;
3
+ currency: string;
4
+ commission: number | null;
5
+ commissionCurrency: string | null;
6
+ }
@@ -0,0 +1,7 @@
1
+ import { BankAccountSchemeNameEnum } from '../../../enums/bank-account-scheme-name';
2
+
3
+ export interface BankAccountTransactionCounterpartyResponse {
4
+ label: string | null;
5
+ accountScheme: BankAccountSchemeNameEnum | null;
6
+ type: string | null;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { BankAccountTransactionCounterpartyResponse } from './bank-account-transaction-counterparty.response';
2
+
3
+ export interface BankAccountTransactionExtraDataResponse {
4
+ datetime: Date | null;
5
+ counterparty: BankAccountTransactionCounterpartyResponse | null;
6
+ country: string | null;
7
+ }
@@ -0,0 +1,9 @@
1
+ export interface BankAccountTransactionWordingResponse {
2
+ original: string;
3
+ stemmed: string;
4
+ simplified: string;
5
+ /**
6
+ * The one that can be edited by the user and update in the transaction by Powens API
7
+ */
8
+ custom: string | null;
9
+ }
@@ -0,0 +1,23 @@
1
+ import { BankAccountTransactionWordingResponse } from './bank-account-transaction-wording.response';
2
+ import { BankAccountOriginalTransactionResponse } from './bank-account-orignal-transaction.response';
3
+ import { BankAccountTransactionExtraDataResponse } from './bank-account-transaction-extra-data.response';
4
+ import { BankAccountTransactionTypeEnum } from '../../../enums/bank-account-transaction-type.enum';
5
+
6
+ export interface BankAccountTransactionResponse {
7
+ id: string;
8
+ accountId: string;
9
+ date: Date;
10
+ value: number | null; // try to fetch the value from the value, formatted_value
11
+ currency: string | null; // It is the Currency of the account (but get it from the formated_value)
12
+ wording: BankAccountTransactionWordingResponse;
13
+ coming: boolean;
14
+ active: boolean;
15
+ comment: string | null;
16
+ lastUpdate: Date | null;
17
+ deleted: Date | null; // If set, transaction has been deleted from the bank
18
+ cardNumber: string | null;
19
+ type: BankAccountTransactionTypeEnum;
20
+ new: boolean;
21
+ originalTransaction: BankAccountOriginalTransactionResponse | null; // If the transaction has an original_currency
22
+ extraData: BankAccountTransactionExtraDataResponse;
23
+ }
@@ -0,0 +1,5 @@
1
+ import { BankAccountTransactionResponse } from './bank-account-transaction.response';
2
+
3
+ export interface BankAccountTransactionsResponse {
4
+ transactions: BankAccountTransactionResponse[];
5
+ }
@@ -0,0 +1,12 @@
1
+ import { BankAccountTypeEnum } from '../../../enums/bank-account-type.enum';
2
+
3
+ export interface BankAccountResponse {
4
+ id: number;
5
+ balance: number | null;
6
+ name: string;
7
+ originalName: string;
8
+ currency: string;
9
+ type: BankAccountTypeEnum;
10
+ gotLoan: boolean;
11
+ iban: string | null;
12
+ }
@@ -0,0 +1,7 @@
1
+ import { BankAccountResponse } from './bank-account.response';
2
+ import { BankAccountBalancesResponse } from './bank-account-balances.response';
3
+
4
+ export interface BankAccountsResponse {
5
+ accounts: BankAccountResponse[];
6
+ balances: BankAccountBalancesResponse | null;
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface CryptocurrencyResponse {
2
+ id: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface MobilityDeletedResponse {
2
+ deleted: boolean;
3
+ errorMessage: string | null;
4
+ }
@@ -0,0 +1,20 @@
1
+ import { MobilityTypeEnum } from '../../../enums/mobility-type.enum';
2
+ import { AssetCoOwnerResponse } from '../asset-co-owner.response';
3
+ import { AssetDateOfAcquisitionResponse } from '../asset-date-of-acquisition.response';
4
+
5
+ export interface MobilityResponse {
6
+ id: string;
7
+ userId: string;
8
+ customImage: string | null;
9
+ customTitle: string;
10
+ price: number;
11
+ licenceNumber: string | null;
12
+ dateOfAcquisition: AssetDateOfAcquisitionResponse | null;
13
+ mobilityType: MobilityTypeEnum;
14
+ mileage: number | null;
15
+ note: string | null;
16
+ gotLoan: boolean;
17
+ coOwner: AssetCoOwnerResponse | null;
18
+ createdAt: Date;
19
+ updatedAt: Date;
20
+ }
@@ -0,0 +1,3 @@
1
+ export interface OtherAssetResponse {
2
+ id: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ export interface RealEstateDeletedResponse {
2
+ deleted: boolean;
3
+ errorMessage: string | null;
4
+ }
@@ -0,0 +1,15 @@
1
+ import { AssetCoOwnerResponse } from '../asset-co-owner.response';
2
+
3
+ export interface RealEstateResponse {
4
+ id: string;
5
+ userId: string;
6
+ gotLoan: boolean;
7
+ customTitle: string;
8
+ customImage: string | null;
9
+ price: number;
10
+ note: string | null;
11
+ isMainResidence: boolean;
12
+ coOwner: AssetCoOwnerResponse | null;
13
+ createdAt: Date;
14
+ updatedAt: Date;
15
+ }
@@ -0,0 +1,3 @@
1
+ export interface StockExchangeResponse {
2
+ id: string;
3
+ }
@@ -0,0 +1,32 @@
1
+ // Bank Account
2
+ export * from './asset/bank-account/bank-account-balances.response';
3
+ export * from './asset/bank-account/bank-account-orignal-transaction.response';
4
+ export * from './asset/bank-account/bank-account-transaction-counterparty.response';
5
+ export * from './asset/bank-account/bank-account-transaction-extra-data.response';
6
+ export * from './asset/bank-account/bank-account-transaction-wording.response';
7
+ export * from './asset/bank-account/bank-account-transaction.response';
8
+ export * from './asset/bank-account/bank-account-transactions.response';
9
+ export * from './asset/bank-account/bank-account.response';
10
+ export * from './asset/bank-account/bank-accounts.response';
11
+
12
+ // Cryptocurrency
13
+ export * from './asset/cryptocurrency/cryptocurrency.response';
14
+
15
+ // Mobility
16
+ export * from './asset/mobility/mobility-deleted.response';
17
+ export * from './asset/mobility/mobility.response';
18
+
19
+ // Other
20
+ export * from './asset/other/other-asset.response';
21
+
22
+ // Real Estate
23
+ export * from './asset/real-estate/real-estate-deleted.response';
24
+ export * from './asset/real-estate/real-estate.response';
25
+
26
+ // Stock Exchange
27
+ export * from './asset/stock-exchange/stock-exchange.response';
28
+
29
+ // Shared
30
+ export * from './asset/asset-co-owner.response';
31
+ export * from './asset/asset-date-of-acquisition.response';
32
+ export * from './asset/assets.response';
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2021",
4
+ "module": "CommonJS",
5
+ "declaration": true,
6
+ "outDir": "./dist",
7
+ "strict": true
8
+ },
9
+ "include": ["src/**/*"]
10
+ }