sowhat-types 2.0.4 → 2.0.6

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 (114) hide show
  1. package/dist/index.d.mts +354 -0
  2. package/dist/index.d.ts +354 -4
  3. package/dist/index.js +135 -18
  4. package/dist/index.js.map +1 -0
  5. package/dist/index.mjs +102 -0
  6. package/dist/index.mjs.map +1 -0
  7. package/package.json +9 -3
  8. package/dist/enums/asset-type.enum.d.ts +0 -7
  9. package/dist/enums/asset-type.enum.js +0 -11
  10. package/dist/enums/authentication-method.enum.d.ts +0 -4
  11. package/dist/enums/authentication-method.enum.js +0 -8
  12. package/dist/enums/bank-account-scheme-name.d.ts +0 -7
  13. package/dist/enums/bank-account-scheme-name.js +0 -11
  14. package/dist/enums/bank-account-transaction-type.enum.d.ts +0 -18
  15. package/dist/enums/bank-account-transaction-type.enum.js +0 -22
  16. package/dist/enums/bank-account-type.enum.d.ts +0 -5
  17. package/dist/enums/bank-account-type.enum.js +0 -9
  18. package/dist/enums/index.d.ts +0 -5
  19. package/dist/enums/index.js +0 -21
  20. package/dist/enums/mobility-type.enum.d.ts +0 -6
  21. package/dist/enums/mobility-type.enum.js +0 -10
  22. package/dist/exact-match.d.ts +0 -1
  23. package/dist/exact-match.js +0 -2
  24. package/dist/inputs/asset/bank-account/fetch-user-bank-accounts.input.d.ts +0 -4
  25. package/dist/inputs/asset/bank-account/fetch-user-bank-accounts.input.js +0 -2
  26. package/dist/inputs/asset/create-asset-co-owner.input.d.ts +0 -5
  27. package/dist/inputs/asset/create-asset-co-owner.input.js +0 -2
  28. package/dist/inputs/asset/create-asset-date-of-acquisition.input.d.ts +0 -4
  29. package/dist/inputs/asset/create-asset-date-of-acquisition.input.js +0 -2
  30. package/dist/inputs/asset/mobility/create-mobility.input.d.ts +0 -16
  31. package/dist/inputs/asset/mobility/create-mobility.input.js +0 -2
  32. package/dist/inputs/asset/real-estate/create-real-estate.input.d.ts +0 -11
  33. package/dist/inputs/asset/real-estate/create-real-estate.input.js +0 -2
  34. package/dist/inputs/auth/logout-user.input.d.ts +0 -3
  35. package/dist/inputs/auth/logout-user.input.js +0 -2
  36. package/dist/inputs/index.d.ts +0 -5
  37. package/dist/inputs/index.js +0 -24
  38. package/dist/responses/asset/asset-co-owner.response.d.ts +0 -6
  39. package/dist/responses/asset/asset-co-owner.response.js +0 -2
  40. package/dist/responses/asset/asset-date-of-acquisition.response.d.ts +0 -4
  41. package/dist/responses/asset/asset-date-of-acquisition.response.js +0 -2
  42. package/dist/responses/asset/assets.response.d.ts +0 -12
  43. package/dist/responses/asset/assets.response.js +0 -2
  44. package/dist/responses/asset/bank-account/bank-account-balances.response.d.ts +0 -22
  45. package/dist/responses/asset/bank-account/bank-account-balances.response.js +0 -2
  46. package/dist/responses/asset/bank-account/bank-account-orignal-transaction.response.d.ts +0 -6
  47. package/dist/responses/asset/bank-account/bank-account-orignal-transaction.response.js +0 -2
  48. package/dist/responses/asset/bank-account/bank-account-transaction-counterparty.response.d.ts +0 -6
  49. package/dist/responses/asset/bank-account/bank-account-transaction-counterparty.response.js +0 -2
  50. package/dist/responses/asset/bank-account/bank-account-transaction-extra-data.response.d.ts +0 -6
  51. package/dist/responses/asset/bank-account/bank-account-transaction-extra-data.response.js +0 -2
  52. package/dist/responses/asset/bank-account/bank-account-transaction-wording.response.d.ts +0 -9
  53. package/dist/responses/asset/bank-account/bank-account-transaction-wording.response.js +0 -2
  54. package/dist/responses/asset/bank-account/bank-account-transaction.response.d.ts +0 -22
  55. package/dist/responses/asset/bank-account/bank-account-transaction.response.js +0 -2
  56. package/dist/responses/asset/bank-account/bank-account-transactions.response.d.ts +0 -4
  57. package/dist/responses/asset/bank-account/bank-account-transactions.response.js +0 -2
  58. package/dist/responses/asset/bank-account/bank-account.response.d.ts +0 -11
  59. package/dist/responses/asset/bank-account/bank-account.response.js +0 -2
  60. package/dist/responses/asset/bank-account/bank-accounts.response.d.ts +0 -6
  61. package/dist/responses/asset/bank-account/bank-accounts.response.js +0 -2
  62. package/dist/responses/asset/cryptocurrency/cryptocurrency.response.d.ts +0 -3
  63. package/dist/responses/asset/cryptocurrency/cryptocurrency.response.js +0 -2
  64. package/dist/responses/asset/mobility/mobility-deleted.response.d.ts +0 -4
  65. package/dist/responses/asset/mobility/mobility-deleted.response.js +0 -2
  66. package/dist/responses/asset/mobility/mobility.response.d.ts +0 -19
  67. package/dist/responses/asset/mobility/mobility.response.js +0 -2
  68. package/dist/responses/asset/other/other-asset.response.d.ts +0 -3
  69. package/dist/responses/asset/other/other-asset.response.js +0 -2
  70. package/dist/responses/asset/real-estate/real-estate-deleted.response.d.ts +0 -4
  71. package/dist/responses/asset/real-estate/real-estate-deleted.response.js +0 -2
  72. package/dist/responses/asset/real-estate/real-estate.response.d.ts +0 -14
  73. package/dist/responses/asset/real-estate/real-estate.response.js +0 -2
  74. package/dist/responses/asset/stock-exchange/stock-exchange.response.d.ts +0 -3
  75. package/dist/responses/asset/stock-exchange/stock-exchange.response.js +0 -2
  76. package/dist/responses/index.d.ts +0 -19
  77. package/dist/responses/index.js +0 -42
  78. package/src/enums/asset-type.enum.ts +0 -7
  79. package/src/enums/authentication-method.enum.ts +0 -4
  80. package/src/enums/bank-account-scheme-name.ts +0 -7
  81. package/src/enums/bank-account-transaction-type.enum.ts +0 -18
  82. package/src/enums/bank-account-type.enum.ts +0 -5
  83. package/src/enums/index.ts +0 -5
  84. package/src/enums/mobility-type.enum.ts +0 -6
  85. package/src/exact-match.ts +0 -1
  86. package/src/index.ts +0 -4
  87. package/src/inputs/asset/bank-account/fetch-user-bank-accounts.input.ts +0 -4
  88. package/src/inputs/asset/create-asset-co-owner.input.ts +0 -5
  89. package/src/inputs/asset/create-asset-date-of-acquisition.input.ts +0 -4
  90. package/src/inputs/asset/mobility/create-mobility.input.ts +0 -17
  91. package/src/inputs/asset/real-estate/create-real-estate.input.ts +0 -12
  92. package/src/inputs/auth/logout-user.input.ts +0 -3
  93. package/src/inputs/index.ts +0 -11
  94. package/src/responses/asset/asset-co-owner.response.ts +0 -6
  95. package/src/responses/asset/asset-date-of-acquisition.response.ts +0 -4
  96. package/src/responses/asset/assets.response.ts +0 -13
  97. package/src/responses/asset/bank-account/bank-account-balances.response.ts +0 -26
  98. package/src/responses/asset/bank-account/bank-account-orignal-transaction.response.ts +0 -6
  99. package/src/responses/asset/bank-account/bank-account-transaction-counterparty.response.ts +0 -7
  100. package/src/responses/asset/bank-account/bank-account-transaction-extra-data.response.ts +0 -7
  101. package/src/responses/asset/bank-account/bank-account-transaction-wording.response.ts +0 -9
  102. package/src/responses/asset/bank-account/bank-account-transaction.response.ts +0 -23
  103. package/src/responses/asset/bank-account/bank-account-transactions.response.ts +0 -5
  104. package/src/responses/asset/bank-account/bank-account.response.ts +0 -12
  105. package/src/responses/asset/bank-account/bank-accounts.response.ts +0 -7
  106. package/src/responses/asset/cryptocurrency/cryptocurrency.response.ts +0 -3
  107. package/src/responses/asset/mobility/mobility-deleted.response.ts +0 -4
  108. package/src/responses/asset/mobility/mobility.response.ts +0 -20
  109. package/src/responses/asset/other/other-asset.response.ts +0 -3
  110. package/src/responses/asset/real-estate/real-estate-deleted.response.ts +0 -4
  111. package/src/responses/asset/real-estate/real-estate.response.ts +0 -15
  112. package/src/responses/asset/stock-exchange/stock-exchange.response.ts +0 -3
  113. package/src/responses/index.ts +0 -32
  114. package/tsconfig.json +0 -108
@@ -0,0 +1,354 @@
1
+ declare enum AssetTypeEnum {
2
+ REAL_ESTATE = "REAL_ESTATE",
3
+ MOBILITY = "MOBILITY",
4
+ STOCK_EXCHANGE = "STOCK_EXCHANGE",
5
+ CRYPTOCURRENCY = "CRYPTOCURRENCY",
6
+ OTHER = "OTHER"
7
+ }
8
+
9
+ declare enum AuthenticationMethodEnum {
10
+ PHONE = "PHONE",
11
+ EMAIL = "EMAIL"
12
+ }
13
+
14
+ declare enum BankAccountSchemeNameEnum {
15
+ IBAN = "IBAN",
16
+ BBAN = "BBAN",
17
+ SORT_CODE_ACCOUNT_NUMBER = "SORT_CODE_ACCOUNT_NUMBER",
18
+ CPAN = "CPAN",
19
+ TPAN = "TPAN"
20
+ }
21
+
22
+ declare enum BankAccountTransactionTypeEnum {
23
+ TRANSFER = "TRANSFER",// Transfer
24
+ ORDER = "ORDER",// Order
25
+ CHECK = "CHECK",// Check
26
+ DEPOSIT = "DEPOSIT",// Mandatory/voluntary deposits, contributions, money transfers
27
+ PAYBACK = "PAYBACK",// Payback
28
+ WITHDRAWAL = "WITHDRAWAL",// Withdrawal
29
+ LOAN_REPAYMENT = "LOAN_REPAYMENT",// Loan payment
30
+ BANK = "BANK",// Bank fees
31
+ CARD = "CARD",// Card operation
32
+ DEFERRED_CARD = "DEFERRED_CARD",// Deferred card operation
33
+ SUMMARY_CARD = "SUMMARY_CARD",// Monthly debit of a deferred card
34
+ UNKNOWN = "UNKNOWN",//Unknown transaction type
35
+ MARKET_ORDER = "MARKET_ORDER",// Market order
36
+ MARKET_FEE = "MARKET_FEE",// Fees regarding a market order
37
+ ARBITRAGE = "ARBITRAGE",// Arbitrage
38
+ PROFIT = "PROFIT"
39
+ }
40
+
41
+ declare enum BankAccountTypeEnum {
42
+ CHECKING = "CHECKING",
43
+ SAVINGS = "SAVINGS",
44
+ OTHER = "OTHER"
45
+ }
46
+
47
+ declare enum MobilityTypeEnum {
48
+ CAR = "CAR",
49
+ MOTORCYCLE = "MOTORCYCLE",
50
+ BICYCLE = "BICYCLE",
51
+ OTHER = "OTHER"
52
+ }
53
+
54
+ declare enum PowensUserStatusEnum {
55
+ REGISTERED = "REGISTERED",
56
+ ATTEMPTING_NEW_CONNECTION = "ATTEMPTING_NEW_CONNECTION",
57
+ ON_ERROR = "ON_ERROR",
58
+ DELETED = "DELETED"
59
+ }
60
+
61
+ declare enum UserStatusEnum {
62
+ ANONYMOUS = "ANONYMOUS",
63
+ REGISTERED = "REGISTERED",
64
+ DELETED = "DELETED",
65
+ BLACK_LISTED = "BLACK_LISTED"
66
+ }
67
+
68
+ interface CreateAssetCoOwnerInput {
69
+ id: string;
70
+ coOwnershipShare: number;
71
+ coOwnerFinancialShare: number;
72
+ }
73
+
74
+ interface CreateAssetDateOfAcquisitionInput {
75
+ month: number;
76
+ year: number;
77
+ }
78
+
79
+ interface FetchUserBankAccountsInput {
80
+ userId: string;
81
+ accountId: number;
82
+ }
83
+
84
+ interface CreateMobilityInput {
85
+ userId: string;
86
+ customTitle: string;
87
+ customImage: string | null;
88
+ price: number;
89
+ licenceNumber: string | null;
90
+ dateOfAcquisition: CreateAssetDateOfAcquisitionInput | null;
91
+ mobilityType: MobilityTypeEnum;
92
+ mileage: number | null;
93
+ note: string | null;
94
+ gotLoan: boolean;
95
+ coOwner: CreateAssetCoOwnerInput | null;
96
+ }
97
+
98
+ interface CreateRealEstateInput {
99
+ userId: string;
100
+ gotLoan: boolean;
101
+ customTitle: string;
102
+ customImage: string | null;
103
+ price: number;
104
+ note: string | null;
105
+ isMainResidence: boolean;
106
+ coOwner: CreateAssetCoOwnerInput | null;
107
+ }
108
+
109
+ interface LogoutUserInput {
110
+ userId: string;
111
+ }
112
+
113
+ interface CreateUserCoOwnerInput {
114
+ userId: string;
115
+ customName: string;
116
+ email: string | null;
117
+ phone: string | null;
118
+ customImage: string | null;
119
+ }
120
+
121
+ interface DeleteUserCoOwnerInput {
122
+ userId: string;
123
+ coOwnerId: string;
124
+ }
125
+
126
+ interface FetchUserCoOwnerInput {
127
+ userId: string;
128
+ coOwnerId: string;
129
+ }
130
+
131
+ interface BankAccountBalancesResponse {
132
+ /**
133
+ * total balance for checking type accounts
134
+ */
135
+ checking: number | null;
136
+ /**
137
+ * total incoming balance for checking type accounts
138
+ */
139
+ incomingChecking: number | null;
140
+ /**
141
+ * total balance for savings type accounts
142
+ */
143
+ savings: number | null;
144
+ /**
145
+ * total incoming balance for savings type accounts
146
+ */
147
+ incomingSavings: number | null;
148
+ /**
149
+ * e.g. '€'
150
+ */
151
+ currency: string;
152
+ }
153
+
154
+ interface BankAccountOriginalTransactionResponse {
155
+ value: number;
156
+ currency: string;
157
+ commission: number | null;
158
+ commissionCurrency: string | null;
159
+ }
160
+
161
+ interface BankAccountTransactionCounterpartyResponse {
162
+ label: string | null;
163
+ accountScheme: BankAccountSchemeNameEnum | null;
164
+ type: string | null;
165
+ }
166
+
167
+ interface BankAccountTransactionExtraDataResponse {
168
+ datetime: Date | null;
169
+ counterparty: BankAccountTransactionCounterpartyResponse | null;
170
+ country: string | null;
171
+ }
172
+
173
+ interface BankAccountTransactionWordingResponse {
174
+ original: string;
175
+ stemmed: string;
176
+ simplified: string;
177
+ /**
178
+ * The one that can be edited by the user and update in the transaction by Powens API
179
+ */
180
+ custom: string | null;
181
+ }
182
+
183
+ interface BankAccountTransactionResponse {
184
+ id: string;
185
+ accountId: string;
186
+ date: Date;
187
+ value: number | null;
188
+ currency: string | null;
189
+ wording: BankAccountTransactionWordingResponse;
190
+ coming: boolean;
191
+ active: boolean;
192
+ comment: string | null;
193
+ lastUpdate: Date | null;
194
+ deleted: Date | null;
195
+ cardNumber: string | null;
196
+ type: BankAccountTransactionTypeEnum;
197
+ new: boolean;
198
+ originalTransaction: BankAccountOriginalTransactionResponse | null;
199
+ extraData: BankAccountTransactionExtraDataResponse;
200
+ }
201
+
202
+ interface BankAccountTransactionsResponse {
203
+ transactions: BankAccountTransactionResponse[];
204
+ }
205
+
206
+ interface BankAccountResponse {
207
+ id: number;
208
+ balance: number | null;
209
+ name: string;
210
+ originalName: string;
211
+ currency: string;
212
+ type: BankAccountTypeEnum;
213
+ gotLoan: boolean;
214
+ iban: string | null;
215
+ }
216
+
217
+ interface BankAccountsResponse {
218
+ accounts: BankAccountResponse[];
219
+ balances: BankAccountBalancesResponse | null;
220
+ }
221
+
222
+ interface CryptocurrencyResponse {
223
+ id: string;
224
+ }
225
+
226
+ interface MobilityDeletedResponse {
227
+ deleted: boolean;
228
+ errorMessage: string | null;
229
+ }
230
+
231
+ interface AssetCoOwnerResponse {
232
+ id: string;
233
+ customName: string;
234
+ coOwnershipShare: number;
235
+ coOwnerFinancialShare: number;
236
+ }
237
+
238
+ interface AssetDateOfAcquisitionResponse {
239
+ month: number;
240
+ year: number;
241
+ }
242
+
243
+ interface MobilityResponse {
244
+ id: string;
245
+ userId: string;
246
+ customImage: string | null;
247
+ customTitle: string;
248
+ price: number;
249
+ licenceNumber: string | null;
250
+ dateOfAcquisition: AssetDateOfAcquisitionResponse | null;
251
+ mobilityType: MobilityTypeEnum;
252
+ mileage: number | null;
253
+ note: string | null;
254
+ gotLoan: boolean;
255
+ coOwner: AssetCoOwnerResponse | null;
256
+ createdAt: Date;
257
+ updatedAt: Date;
258
+ }
259
+
260
+ interface OtherAssetResponse {
261
+ id: string;
262
+ }
263
+
264
+ interface RealEstateDeletedResponse {
265
+ deleted: boolean;
266
+ errorMessage: string | null;
267
+ }
268
+
269
+ interface RealEstateResponse {
270
+ id: string;
271
+ userId: string;
272
+ gotLoan: boolean;
273
+ customTitle: string;
274
+ customImage: string | null;
275
+ price: number;
276
+ note: string | null;
277
+ isMainResidence: boolean;
278
+ coOwner: AssetCoOwnerResponse | null;
279
+ createdAt: Date;
280
+ updatedAt: Date;
281
+ }
282
+
283
+ interface StockExchangeResponse {
284
+ id: string;
285
+ }
286
+
287
+ interface AccessTokensResponse {
288
+ accessToken: string;
289
+ accessTokenDuration: number;
290
+ refreshToken: string;
291
+ }
292
+
293
+ interface AuthenticationAccessResponse extends AccessTokensResponse {
294
+ userId: string;
295
+ isLogged: boolean;
296
+ }
297
+
298
+ interface LogoutUserResponse {
299
+ userId: string;
300
+ isLoggedOut: boolean;
301
+ }
302
+
303
+ interface CoOwnerDeletedResponse {
304
+ deleted: boolean;
305
+ errorMessage: string | null;
306
+ }
307
+
308
+ interface CoOwnerResponse {
309
+ id: string;
310
+ customName: string;
311
+ email: string | null;
312
+ phone: string | null;
313
+ customImage: string | null;
314
+ updatedAt: Date;
315
+ createdAt: Date;
316
+ }
317
+
318
+ interface UserCoOwnerResponse extends CoOwnerResponse {
319
+ numberOfCoOwnAssets: number;
320
+ }
321
+
322
+ interface PowensWebviewConnectionResponse {
323
+ id: string;
324
+ connectionUrl: string;
325
+ createdAt: Date;
326
+ }
327
+
328
+ interface UserResponse {
329
+ id: string;
330
+ clerkId: string;
331
+ firstname: string;
332
+ lastname: string | null;
333
+ email: string | null;
334
+ status: UserStatusEnum;
335
+ createdAt: Date;
336
+ updatedAt: Date;
337
+ }
338
+
339
+ interface AssetsResponse {
340
+ realEstateAssets: RealEstateResponse[];
341
+ mobilityAssets: MobilityResponse[];
342
+ cryptocurrencyAssets: CryptocurrencyResponse[];
343
+ stockExchangeAssets: StockExchangeResponse[];
344
+ otherAssets: OtherAssetResponse[];
345
+ }
346
+
347
+ type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
348
+
349
+ declare class FilterArgs {
350
+ skip: number;
351
+ take: number;
352
+ }
353
+
354
+ export { type AccessTokensResponse, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionExtraDataResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionWordingResponse, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, type CoOwnerDeletedResponse, type CoOwnerResponse, type CreateAssetCoOwnerInput, type CreateAssetDateOfAcquisitionInput, type CreateMobilityInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteUserCoOwnerInput, type ExactMatch, type FetchUserBankAccountsInput, type FetchUserCoOwnerInput, FilterArgs, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type StockExchangeResponse, type UserCoOwnerResponse, type UserResponse, UserStatusEnum };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,354 @@
1
- export * from './enums/index';
2
- export * from './inputs/index';
3
- export * from './responses/index';
4
- export * from './exact-match';
1
+ declare enum AssetTypeEnum {
2
+ REAL_ESTATE = "REAL_ESTATE",
3
+ MOBILITY = "MOBILITY",
4
+ STOCK_EXCHANGE = "STOCK_EXCHANGE",
5
+ CRYPTOCURRENCY = "CRYPTOCURRENCY",
6
+ OTHER = "OTHER"
7
+ }
8
+
9
+ declare enum AuthenticationMethodEnum {
10
+ PHONE = "PHONE",
11
+ EMAIL = "EMAIL"
12
+ }
13
+
14
+ declare enum BankAccountSchemeNameEnum {
15
+ IBAN = "IBAN",
16
+ BBAN = "BBAN",
17
+ SORT_CODE_ACCOUNT_NUMBER = "SORT_CODE_ACCOUNT_NUMBER",
18
+ CPAN = "CPAN",
19
+ TPAN = "TPAN"
20
+ }
21
+
22
+ declare enum BankAccountTransactionTypeEnum {
23
+ TRANSFER = "TRANSFER",// Transfer
24
+ ORDER = "ORDER",// Order
25
+ CHECK = "CHECK",// Check
26
+ DEPOSIT = "DEPOSIT",// Mandatory/voluntary deposits, contributions, money transfers
27
+ PAYBACK = "PAYBACK",// Payback
28
+ WITHDRAWAL = "WITHDRAWAL",// Withdrawal
29
+ LOAN_REPAYMENT = "LOAN_REPAYMENT",// Loan payment
30
+ BANK = "BANK",// Bank fees
31
+ CARD = "CARD",// Card operation
32
+ DEFERRED_CARD = "DEFERRED_CARD",// Deferred card operation
33
+ SUMMARY_CARD = "SUMMARY_CARD",// Monthly debit of a deferred card
34
+ UNKNOWN = "UNKNOWN",//Unknown transaction type
35
+ MARKET_ORDER = "MARKET_ORDER",// Market order
36
+ MARKET_FEE = "MARKET_FEE",// Fees regarding a market order
37
+ ARBITRAGE = "ARBITRAGE",// Arbitrage
38
+ PROFIT = "PROFIT"
39
+ }
40
+
41
+ declare enum BankAccountTypeEnum {
42
+ CHECKING = "CHECKING",
43
+ SAVINGS = "SAVINGS",
44
+ OTHER = "OTHER"
45
+ }
46
+
47
+ declare enum MobilityTypeEnum {
48
+ CAR = "CAR",
49
+ MOTORCYCLE = "MOTORCYCLE",
50
+ BICYCLE = "BICYCLE",
51
+ OTHER = "OTHER"
52
+ }
53
+
54
+ declare enum PowensUserStatusEnum {
55
+ REGISTERED = "REGISTERED",
56
+ ATTEMPTING_NEW_CONNECTION = "ATTEMPTING_NEW_CONNECTION",
57
+ ON_ERROR = "ON_ERROR",
58
+ DELETED = "DELETED"
59
+ }
60
+
61
+ declare enum UserStatusEnum {
62
+ ANONYMOUS = "ANONYMOUS",
63
+ REGISTERED = "REGISTERED",
64
+ DELETED = "DELETED",
65
+ BLACK_LISTED = "BLACK_LISTED"
66
+ }
67
+
68
+ interface CreateAssetCoOwnerInput {
69
+ id: string;
70
+ coOwnershipShare: number;
71
+ coOwnerFinancialShare: number;
72
+ }
73
+
74
+ interface CreateAssetDateOfAcquisitionInput {
75
+ month: number;
76
+ year: number;
77
+ }
78
+
79
+ interface FetchUserBankAccountsInput {
80
+ userId: string;
81
+ accountId: number;
82
+ }
83
+
84
+ interface CreateMobilityInput {
85
+ userId: string;
86
+ customTitle: string;
87
+ customImage: string | null;
88
+ price: number;
89
+ licenceNumber: string | null;
90
+ dateOfAcquisition: CreateAssetDateOfAcquisitionInput | null;
91
+ mobilityType: MobilityTypeEnum;
92
+ mileage: number | null;
93
+ note: string | null;
94
+ gotLoan: boolean;
95
+ coOwner: CreateAssetCoOwnerInput | null;
96
+ }
97
+
98
+ interface CreateRealEstateInput {
99
+ userId: string;
100
+ gotLoan: boolean;
101
+ customTitle: string;
102
+ customImage: string | null;
103
+ price: number;
104
+ note: string | null;
105
+ isMainResidence: boolean;
106
+ coOwner: CreateAssetCoOwnerInput | null;
107
+ }
108
+
109
+ interface LogoutUserInput {
110
+ userId: string;
111
+ }
112
+
113
+ interface CreateUserCoOwnerInput {
114
+ userId: string;
115
+ customName: string;
116
+ email: string | null;
117
+ phone: string | null;
118
+ customImage: string | null;
119
+ }
120
+
121
+ interface DeleteUserCoOwnerInput {
122
+ userId: string;
123
+ coOwnerId: string;
124
+ }
125
+
126
+ interface FetchUserCoOwnerInput {
127
+ userId: string;
128
+ coOwnerId: string;
129
+ }
130
+
131
+ interface BankAccountBalancesResponse {
132
+ /**
133
+ * total balance for checking type accounts
134
+ */
135
+ checking: number | null;
136
+ /**
137
+ * total incoming balance for checking type accounts
138
+ */
139
+ incomingChecking: number | null;
140
+ /**
141
+ * total balance for savings type accounts
142
+ */
143
+ savings: number | null;
144
+ /**
145
+ * total incoming balance for savings type accounts
146
+ */
147
+ incomingSavings: number | null;
148
+ /**
149
+ * e.g. '€'
150
+ */
151
+ currency: string;
152
+ }
153
+
154
+ interface BankAccountOriginalTransactionResponse {
155
+ value: number;
156
+ currency: string;
157
+ commission: number | null;
158
+ commissionCurrency: string | null;
159
+ }
160
+
161
+ interface BankAccountTransactionCounterpartyResponse {
162
+ label: string | null;
163
+ accountScheme: BankAccountSchemeNameEnum | null;
164
+ type: string | null;
165
+ }
166
+
167
+ interface BankAccountTransactionExtraDataResponse {
168
+ datetime: Date | null;
169
+ counterparty: BankAccountTransactionCounterpartyResponse | null;
170
+ country: string | null;
171
+ }
172
+
173
+ interface BankAccountTransactionWordingResponse {
174
+ original: string;
175
+ stemmed: string;
176
+ simplified: string;
177
+ /**
178
+ * The one that can be edited by the user and update in the transaction by Powens API
179
+ */
180
+ custom: string | null;
181
+ }
182
+
183
+ interface BankAccountTransactionResponse {
184
+ id: string;
185
+ accountId: string;
186
+ date: Date;
187
+ value: number | null;
188
+ currency: string | null;
189
+ wording: BankAccountTransactionWordingResponse;
190
+ coming: boolean;
191
+ active: boolean;
192
+ comment: string | null;
193
+ lastUpdate: Date | null;
194
+ deleted: Date | null;
195
+ cardNumber: string | null;
196
+ type: BankAccountTransactionTypeEnum;
197
+ new: boolean;
198
+ originalTransaction: BankAccountOriginalTransactionResponse | null;
199
+ extraData: BankAccountTransactionExtraDataResponse;
200
+ }
201
+
202
+ interface BankAccountTransactionsResponse {
203
+ transactions: BankAccountTransactionResponse[];
204
+ }
205
+
206
+ interface BankAccountResponse {
207
+ id: number;
208
+ balance: number | null;
209
+ name: string;
210
+ originalName: string;
211
+ currency: string;
212
+ type: BankAccountTypeEnum;
213
+ gotLoan: boolean;
214
+ iban: string | null;
215
+ }
216
+
217
+ interface BankAccountsResponse {
218
+ accounts: BankAccountResponse[];
219
+ balances: BankAccountBalancesResponse | null;
220
+ }
221
+
222
+ interface CryptocurrencyResponse {
223
+ id: string;
224
+ }
225
+
226
+ interface MobilityDeletedResponse {
227
+ deleted: boolean;
228
+ errorMessage: string | null;
229
+ }
230
+
231
+ interface AssetCoOwnerResponse {
232
+ id: string;
233
+ customName: string;
234
+ coOwnershipShare: number;
235
+ coOwnerFinancialShare: number;
236
+ }
237
+
238
+ interface AssetDateOfAcquisitionResponse {
239
+ month: number;
240
+ year: number;
241
+ }
242
+
243
+ interface MobilityResponse {
244
+ id: string;
245
+ userId: string;
246
+ customImage: string | null;
247
+ customTitle: string;
248
+ price: number;
249
+ licenceNumber: string | null;
250
+ dateOfAcquisition: AssetDateOfAcquisitionResponse | null;
251
+ mobilityType: MobilityTypeEnum;
252
+ mileage: number | null;
253
+ note: string | null;
254
+ gotLoan: boolean;
255
+ coOwner: AssetCoOwnerResponse | null;
256
+ createdAt: Date;
257
+ updatedAt: Date;
258
+ }
259
+
260
+ interface OtherAssetResponse {
261
+ id: string;
262
+ }
263
+
264
+ interface RealEstateDeletedResponse {
265
+ deleted: boolean;
266
+ errorMessage: string | null;
267
+ }
268
+
269
+ interface RealEstateResponse {
270
+ id: string;
271
+ userId: string;
272
+ gotLoan: boolean;
273
+ customTitle: string;
274
+ customImage: string | null;
275
+ price: number;
276
+ note: string | null;
277
+ isMainResidence: boolean;
278
+ coOwner: AssetCoOwnerResponse | null;
279
+ createdAt: Date;
280
+ updatedAt: Date;
281
+ }
282
+
283
+ interface StockExchangeResponse {
284
+ id: string;
285
+ }
286
+
287
+ interface AccessTokensResponse {
288
+ accessToken: string;
289
+ accessTokenDuration: number;
290
+ refreshToken: string;
291
+ }
292
+
293
+ interface AuthenticationAccessResponse extends AccessTokensResponse {
294
+ userId: string;
295
+ isLogged: boolean;
296
+ }
297
+
298
+ interface LogoutUserResponse {
299
+ userId: string;
300
+ isLoggedOut: boolean;
301
+ }
302
+
303
+ interface CoOwnerDeletedResponse {
304
+ deleted: boolean;
305
+ errorMessage: string | null;
306
+ }
307
+
308
+ interface CoOwnerResponse {
309
+ id: string;
310
+ customName: string;
311
+ email: string | null;
312
+ phone: string | null;
313
+ customImage: string | null;
314
+ updatedAt: Date;
315
+ createdAt: Date;
316
+ }
317
+
318
+ interface UserCoOwnerResponse extends CoOwnerResponse {
319
+ numberOfCoOwnAssets: number;
320
+ }
321
+
322
+ interface PowensWebviewConnectionResponse {
323
+ id: string;
324
+ connectionUrl: string;
325
+ createdAt: Date;
326
+ }
327
+
328
+ interface UserResponse {
329
+ id: string;
330
+ clerkId: string;
331
+ firstname: string;
332
+ lastname: string | null;
333
+ email: string | null;
334
+ status: UserStatusEnum;
335
+ createdAt: Date;
336
+ updatedAt: Date;
337
+ }
338
+
339
+ interface AssetsResponse {
340
+ realEstateAssets: RealEstateResponse[];
341
+ mobilityAssets: MobilityResponse[];
342
+ cryptocurrencyAssets: CryptocurrencyResponse[];
343
+ stockExchangeAssets: StockExchangeResponse[];
344
+ otherAssets: OtherAssetResponse[];
345
+ }
346
+
347
+ type ExactMatch<T, U extends T> = T & Record<keyof T, keyof U>;
348
+
349
+ declare class FilterArgs {
350
+ skip: number;
351
+ take: number;
352
+ }
353
+
354
+ export { type AccessTokensResponse, type AssetCoOwnerResponse, type AssetDateOfAcquisitionResponse, AssetTypeEnum, type AssetsResponse, type AuthenticationAccessResponse, AuthenticationMethodEnum, type BankAccountBalancesResponse, type BankAccountOriginalTransactionResponse, type BankAccountResponse, BankAccountSchemeNameEnum, type BankAccountTransactionCounterpartyResponse, type BankAccountTransactionExtraDataResponse, type BankAccountTransactionResponse, BankAccountTransactionTypeEnum, type BankAccountTransactionWordingResponse, type BankAccountTransactionsResponse, BankAccountTypeEnum, type BankAccountsResponse, type CoOwnerDeletedResponse, type CoOwnerResponse, type CreateAssetCoOwnerInput, type CreateAssetDateOfAcquisitionInput, type CreateMobilityInput, type CreateRealEstateInput, type CreateUserCoOwnerInput, type CryptocurrencyResponse, type DeleteUserCoOwnerInput, type ExactMatch, type FetchUserBankAccountsInput, type FetchUserCoOwnerInput, FilterArgs, type LogoutUserInput, type LogoutUserResponse, type MobilityDeletedResponse, type MobilityResponse, MobilityTypeEnum, type OtherAssetResponse, PowensUserStatusEnum, type PowensWebviewConnectionResponse, type RealEstateDeletedResponse, type RealEstateResponse, type StockExchangeResponse, type UserCoOwnerResponse, type UserResponse, UserStatusEnum };