sowhat-types 2.0.0 → 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.
- package/dist/enums/asset-type.enum.d.ts +7 -0
- package/dist/enums/asset-type.enum.js +11 -0
- package/dist/enums/authentication-method.enum.d.ts +4 -0
- package/dist/enums/authentication-method.enum.js +8 -0
- package/dist/enums/bank-account-scheme-name.d.ts +7 -0
- package/dist/enums/bank-account-scheme-name.js +11 -0
- package/dist/enums/bank-account-transaction-type.enum.d.ts +18 -0
- package/dist/enums/bank-account-transaction-type.enum.js +22 -0
- package/dist/enums/bank-account-type.enum.d.ts +5 -0
- package/dist/enums/bank-account-type.enum.js +9 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/enums/index.js +21 -0
- package/dist/enums/mobility-type.enum.d.ts +6 -0
- package/dist/enums/mobility-type.enum.js +10 -0
- package/dist/exact-match.d.ts +1 -0
- package/dist/exact-match.js +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/inputs/asset/bank-account/fetch-user-bank-accounts.input.d.ts +4 -0
- package/dist/inputs/asset/bank-account/fetch-user-bank-accounts.input.js +2 -0
- package/dist/inputs/asset/create-asset-co-owner.input.d.ts +5 -0
- package/dist/inputs/asset/create-asset-co-owner.input.js +2 -0
- package/dist/inputs/asset/create-asset-date-of-acquisition.input.d.ts +4 -0
- package/dist/inputs/asset/create-asset-date-of-acquisition.input.js +2 -0
- package/dist/inputs/asset/mobility/create-mobility.input.d.ts +16 -0
- package/dist/inputs/asset/mobility/create-mobility.input.js +2 -0
- package/dist/inputs/asset/real-estate/create-real-estate.input.d.ts +11 -0
- package/dist/inputs/asset/real-estate/create-real-estate.input.js +2 -0
- package/dist/inputs/auth/logout-user.input.d.ts +3 -0
- package/dist/inputs/auth/logout-user.input.js +2 -0
- package/dist/inputs/index.d.ts +5 -0
- package/dist/inputs/index.js +24 -0
- package/dist/responses/asset/asset-co-owner.response.d.ts +6 -0
- package/dist/responses/asset/asset-co-owner.response.js +2 -0
- package/dist/responses/asset/asset-date-of-acquisition.response.d.ts +4 -0
- package/dist/responses/asset/asset-date-of-acquisition.response.js +2 -0
- package/dist/responses/asset/assets.response.d.ts +12 -0
- package/dist/responses/asset/assets.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-balances.response.d.ts +22 -0
- package/dist/responses/asset/bank-account/bank-account-balances.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-orignal-transaction.response.d.ts +6 -0
- package/dist/responses/asset/bank-account/bank-account-orignal-transaction.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-transaction-counterparty.response.d.ts +6 -0
- package/dist/responses/asset/bank-account/bank-account-transaction-counterparty.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-transaction-extra-data.response.d.ts +6 -0
- package/dist/responses/asset/bank-account/bank-account-transaction-extra-data.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-transaction-wording.response.d.ts +9 -0
- package/dist/responses/asset/bank-account/bank-account-transaction-wording.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-transaction.response.d.ts +22 -0
- package/dist/responses/asset/bank-account/bank-account-transaction.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account-transactions.response.d.ts +4 -0
- package/dist/responses/asset/bank-account/bank-account-transactions.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-account.response.d.ts +11 -0
- package/dist/responses/asset/bank-account/bank-account.response.js +2 -0
- package/dist/responses/asset/bank-account/bank-accounts.response.d.ts +6 -0
- package/dist/responses/asset/bank-account/bank-accounts.response.js +2 -0
- package/dist/responses/asset/cryptocurrency/cryptocurrency.response.d.ts +3 -0
- package/dist/responses/asset/cryptocurrency/cryptocurrency.response.js +2 -0
- package/dist/responses/asset/mobility/mobility-deleted.response.d.ts +4 -0
- package/dist/responses/asset/mobility/mobility-deleted.response.js +2 -0
- package/dist/responses/asset/mobility/mobility.response.d.ts +19 -0
- package/dist/responses/asset/mobility/mobility.response.js +2 -0
- package/dist/responses/asset/other/other-asset.response.d.ts +3 -0
- package/dist/responses/asset/other/other-asset.response.js +2 -0
- package/dist/responses/asset/real-estate/real-estate-deleted.response.d.ts +4 -0
- package/dist/responses/asset/real-estate/real-estate-deleted.response.js +2 -0
- package/dist/responses/asset/real-estate/real-estate.response.d.ts +14 -0
- package/dist/responses/asset/real-estate/real-estate.response.js +2 -0
- package/dist/responses/asset/stock-exchange/stock-exchange.response.d.ts +3 -0
- package/dist/responses/asset/stock-exchange/stock-exchange.response.js +2 -0
- package/dist/responses/index.d.ts +19 -0
- package/dist/responses/index.js +42 -0
- package/exact-match.ts +1 -0
- package/index.ts +3 -3
- package/package.json +2 -11
- package/src/enums/asset-type.enum.ts +7 -0
- package/src/enums/authentication-method.enum.ts +4 -0
- package/src/enums/bank-account-scheme-name.ts +7 -0
- package/src/enums/bank-account-transaction-type.enum.ts +18 -0
- package/src/enums/bank-account-type.enum.ts +5 -0
- package/src/enums/index.ts +5 -0
- package/src/enums/mobility-type.enum.ts +6 -0
- package/src/inputs/asset/bank-account/fetch-user-bank-accounts.input.ts +4 -0
- package/src/inputs/asset/create-asset-co-owner.input.ts +5 -0
- package/src/inputs/asset/create-asset-date-of-acquisition.input.ts +4 -0
- package/src/inputs/asset/mobility/create-mobility.input.ts +17 -0
- package/src/inputs/asset/real-estate/create-real-estate.input.ts +12 -0
- package/src/inputs/auth/logout-user.input.ts +3 -0
- package/src/inputs/index.ts +11 -0
- package/src/responses/asset/asset-co-owner.response.ts +6 -0
- package/src/responses/asset/asset-date-of-acquisition.response.ts +4 -0
- package/src/responses/asset/assets.response.ts +13 -0
- package/src/responses/asset/bank-account/bank-account-balances.response.ts +26 -0
- package/src/responses/asset/bank-account/bank-account-orignal-transaction.response.ts +6 -0
- package/src/responses/asset/bank-account/bank-account-transaction-counterparty.response.ts +7 -0
- package/src/responses/asset/bank-account/bank-account-transaction-extra-data.response.ts +7 -0
- package/src/responses/asset/bank-account/bank-account-transaction-wording.response.ts +9 -0
- package/src/responses/asset/bank-account/bank-account-transaction.response.ts +23 -0
- package/src/responses/asset/bank-account/bank-account-transactions.response.ts +5 -0
- package/src/responses/asset/bank-account/bank-account.response.ts +12 -0
- package/src/responses/asset/bank-account/bank-accounts.response.ts +7 -0
- package/src/responses/asset/cryptocurrency/cryptocurrency.response.ts +3 -0
- package/src/responses/asset/mobility/mobility-deleted.response.ts +4 -0
- package/src/responses/asset/mobility/mobility.response.ts +20 -0
- package/src/responses/asset/other/other-asset.response.ts +3 -0
- package/src/responses/asset/real-estate/real-estate-deleted.response.ts +4 -0
- package/src/responses/asset/real-estate/real-estate.response.ts +15 -0
- package/src/responses/asset/stock-exchange/stock-exchange.response.ts +3 -0
- package/src/responses/index.ts +32 -0
- package/tsconfig.json +10 -0
|
@@ -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,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,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,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,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,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 {};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -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,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,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,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,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,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,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,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,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,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,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,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/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './enums
|
|
2
|
-
export * from './inputs
|
|
3
|
-
export * from './responses
|
|
1
|
+
export * from './src/enums';
|
|
2
|
+
export * from './src/inputs';
|
|
3
|
+
export * from './src/responses';
|
|
4
4
|
export * from './exact-match';
|
package/package.json
CHANGED
|
@@ -1,25 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sowhat-types",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"type": "module",
|
|
3
|
+
"version": "2.0.2",
|
|
5
4
|
"description": "sowhat types",
|
|
6
5
|
"main": "index.ts",
|
|
7
6
|
"scripts": {
|
|
8
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
9
|
-
"
|
|
10
|
-
"prepublish:only": "tsc && rollup -c"
|
|
8
|
+
"build": "tsc"
|
|
11
9
|
},
|
|
12
10
|
"author": "hugobayoud",
|
|
13
11
|
"license": "ISC",
|
|
14
12
|
"devDependencies": {
|
|
15
13
|
"rollup": "^4.19.1",
|
|
16
14
|
"typescript": "^5.5.4"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"index.js",
|
|
20
|
-
"index.d.ts"
|
|
21
|
-
],
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"rollup-plugin-dts": "^6.1.1"
|
|
24
15
|
}
|
|
25
16
|
}
|
|
@@ -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,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,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,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,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,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,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,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,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,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';
|