@develit-services/ledger 0.0.14 → 0.0.16

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.
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { D as schema } from './ledger.C9ZgmZrv.mjs';
2
+ import { D as schema } from './ledger.N4btQFi1.js';
3
3
  import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
4
4
 
5
5
  interface TSchema extends ExtractTablesWithRelations<typeof tables> {
@@ -329,9 +329,9 @@ declare const createAccountInputSchema: z.ZodObject<{
329
329
  }>>;
330
330
  identifier: z.ZodOptional<z.ZodObject<{
331
331
  kind: z.ZodEnum<{
332
- SWIFT: "SWIFT";
333
332
  IBAN: "IBAN";
334
333
  LOCAL_CZ: "LOCAL_CZ";
334
+ SWIFT: "SWIFT";
335
335
  CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
336
336
  }>;
337
337
  iban: z.ZodOptional<z.ZodString>;
@@ -401,17 +401,17 @@ interface CreateAccountOutput {
401
401
  declare const createTransactionInputSchema: z.ZodObject<{
402
402
  correlationId: z.ZodString;
403
403
  referenceType: z.ZodEnum<{
404
- EXCHANGE: "EXCHANGE";
405
404
  PAYMENT: "PAYMENT";
405
+ EXCHANGE: "EXCHANGE";
406
406
  ORDER: "ORDER";
407
407
  }>;
408
408
  referenceId: z.ZodOptional<z.ZodString>;
409
409
  type: z.ZodEnum<{
410
+ EXCHANGE: "EXCHANGE";
410
411
  CLIENT_FUND_IN: "CLIENT_FUND_IN";
411
412
  CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
412
413
  PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
413
414
  PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
414
- EXCHANGE: "EXCHANGE";
415
415
  UNMATCHED: "UNMATCHED";
416
416
  ADJUSTMENT: "ADJUSTMENT";
417
417
  TRANSFER: "TRANSFER";
@@ -428,6 +428,18 @@ declare const createTransactionInputSchema: z.ZodObject<{
428
428
  ss: z.ZodOptional<z.ZodString>;
429
429
  ks: z.ZodOptional<z.ZodString>;
430
430
  message: z.ZodOptional<z.ZodString>;
431
+ type: z.ZodEnum<{
432
+ SWIFT: "SWIFT";
433
+ DOMESTIC: "DOMESTIC";
434
+ SEPA: "SEPA";
435
+ UNKNOWN: "UNKNOWN";
436
+ }>;
437
+ paymentChargeType: z.ZodOptional<z.ZodEnum<{
438
+ SHA: "SHA";
439
+ OUR: "OUR";
440
+ BEN: "BEN";
441
+ }>>;
442
+ expressPayment: z.ZodOptional<z.ZodBoolean>;
431
443
  reference: z.ZodOptional<z.ZodString>;
432
444
  creditor: z.ZodOptional<z.ZodObject<{
433
445
  id: z.ZodOptional<z.ZodString>;
@@ -1144,9 +1156,9 @@ declare const createTransactionInputSchema: z.ZodObject<{
1144
1156
  AVAX: "AVAX";
1145
1157
  }>>;
1146
1158
  amount: z.ZodOptional<z.ZodNumber>;
1147
- paymentChargeType: z.ZodOptional<z.ZodString>;
1159
+ purpose: z.ZodOptional<z.ZodString>;
1148
1160
  }, z.core.$strip>>;
1149
- }, z.core.$catchall<z.ZodUnknown>>>>;
1161
+ }, z.core.$strip>>>;
1150
1162
  status: z.ZodEnum<{
1151
1163
  FAILED: "FAILED";
1152
1164
  COMPLETED: "COMPLETED";
@@ -1158,6 +1170,62 @@ declare const createTransactionInputSchema: z.ZodObject<{
1158
1170
  RETURNED: "RETURNED";
1159
1171
  CANCELLED: "CANCELLED";
1160
1172
  }>;
1173
+ currency: z.ZodOptional<z.ZodEnum<{
1174
+ CZK: "CZK";
1175
+ EUR: "EUR";
1176
+ USD: "USD";
1177
+ PLN: "PLN";
1178
+ RON: "RON";
1179
+ GBP: "GBP";
1180
+ RUB: "RUB";
1181
+ HUF: "HUF";
1182
+ CHF: "CHF";
1183
+ DKK: "DKK";
1184
+ SEK: "SEK";
1185
+ HRK: "HRK";
1186
+ NOK: "NOK";
1187
+ BGN: "BGN";
1188
+ TRY: "TRY";
1189
+ AUD: "AUD";
1190
+ CAD: "CAD";
1191
+ JPY: "JPY";
1192
+ CNY: "CNY";
1193
+ INR: "INR";
1194
+ BRL: "BRL";
1195
+ MXN: "MXN";
1196
+ ZAR: "ZAR";
1197
+ SGD: "SGD";
1198
+ HKD: "HKD";
1199
+ KRW: "KRW";
1200
+ MYR: "MYR";
1201
+ THB: "THB";
1202
+ IDR: "IDR";
1203
+ PHP: "PHP";
1204
+ AED: "AED";
1205
+ SAR: "SAR";
1206
+ ILS: "ILS";
1207
+ EGP: "EGP";
1208
+ NGN: "NGN";
1209
+ PKR: "PKR";
1210
+ COP: "COP";
1211
+ CLP: "CLP";
1212
+ PEN: "PEN";
1213
+ VND: "VND";
1214
+ KZT: "KZT";
1215
+ UAH: "UAH";
1216
+ BTC: "BTC";
1217
+ ETH: "ETH";
1218
+ ADA: "ADA";
1219
+ DOT: "DOT";
1220
+ ATOM: "ATOM";
1221
+ XRP: "XRP";
1222
+ LTC: "LTC";
1223
+ SOL: "SOL";
1224
+ DOGE: "DOGE";
1225
+ MATIC: "MATIC";
1226
+ AVAX: "AVAX";
1227
+ }>>;
1228
+ amount: z.ZodOptional<z.ZodNumber>;
1161
1229
  }, z.core.$strip>;
1162
1230
  interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
1163
1231
  }
@@ -1294,17 +1362,17 @@ declare const getTransactionsInputSchema: z.ZodObject<{
1294
1362
  }, z.core.$strip>;
1295
1363
  filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
1296
1364
  filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
1297
- EXCHANGE: "EXCHANGE";
1298
1365
  PAYMENT: "PAYMENT";
1366
+ EXCHANGE: "EXCHANGE";
1299
1367
  ORDER: "ORDER";
1300
1368
  }>>;
1301
1369
  filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
1302
1370
  filterTransactionType: z.ZodOptional<z.ZodEnum<{
1371
+ EXCHANGE: "EXCHANGE";
1303
1372
  CLIENT_FUND_IN: "CLIENT_FUND_IN";
1304
1373
  CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
1305
1374
  PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
1306
1375
  PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
1307
- EXCHANGE: "EXCHANGE";
1308
1376
  UNMATCHED: "UNMATCHED";
1309
1377
  ADJUSTMENT: "ADJUSTMENT";
1310
1378
  TRANSFER: "TRANSFER";
@@ -1335,8 +1403,8 @@ interface GetTransactionsOutput {
1335
1403
 
1336
1404
  declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
1337
1405
  referenceType: z.ZodEnum<{
1338
- EXCHANGE: "EXCHANGE";
1339
1406
  PAYMENT: "PAYMENT";
1407
+ EXCHANGE: "EXCHANGE";
1340
1408
  ORDER: "ORDER";
1341
1409
  }>;
1342
1410
  referenceId: z.ZodUUID;
@@ -1449,6 +1517,7 @@ interface ListAccountsOutput {
1449
1517
 
1450
1518
  declare const matchTransactionInputSchema: z.ZodObject<{
1451
1519
  transactionId: z.ZodUUID;
1520
+ paymentId: z.ZodString;
1452
1521
  completedAt: z.ZodOptional<z.ZodDate>;
1453
1522
  }, z.core.$strip>;
1454
1523
  interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
@@ -85,6 +85,7 @@ const TRANSACTION_TYPES = [
85
85
  ];
86
86
  const REFERENCE_TYPES = ["PAYMENT", "EXCHANGE", "ORDER"];
87
87
  const PAYMENT_CHARGE_TYPES = ["SHA", "OUR", "BEN"];
88
+ const PAYMENT_TYPES = ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
88
89
 
89
90
  const ALLOWED_TRANSACTION_FILTERS = {
90
91
  CORRELATION_ID: "filterTransactionCorrelationId",
@@ -98,7 +99,6 @@ const ALLOWED_TRANSACTION_FILTERS = {
98
99
  STATUS: "filterTransactionStatus"
99
100
  };
100
101
 
101
- const PAYMENT_TYPES = ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
102
102
  const PAYMENT_STATUSES = [
103
103
  "PREPARED",
104
104
  "INITIALIZED",
@@ -155,6 +155,10 @@ const transactionMetadataSchema = zod.z.object({
155
155
  // konstantní symbol
156
156
  message: zod.z.string().optional(),
157
157
  // zpráva pro příjemce
158
+ type: zod.z.enum(PAYMENT_TYPES),
159
+ // typ platby
160
+ paymentChargeType: zod.z.enum(PAYMENT_CHARGE_TYPES).optional(),
161
+ expressPayment: zod.z.boolean().optional(),
158
162
  reference: zod.z.string().optional(),
159
163
  // další reference
160
164
  creditor: backendSdk.bankAccountMetadataSchema.optional(),
@@ -165,10 +169,10 @@ const transactionMetadataSchema = zod.z.object({
165
169
  // ISO 8601
166
170
  currency: zod.z.enum(generalCodes.CURRENCY_CODES).optional(),
167
171
  amount: zod.z.number().optional(),
168
- paymentChargeType: zod.z.string().optional()
169
- // typ poplatku za platbu
172
+ purpose: zod.z.string().optional()
173
+ // účel platby
170
174
  }).optional()
171
- }).catchall(zod.z.unknown());
175
+ });
172
176
  const createTransactionInputSchema = zod.z.object({
173
177
  correlationId: zod.z.string().min(1),
174
178
  referenceType: zod.z.enum(REFERENCE_TYPES),
@@ -177,7 +181,9 @@ const createTransactionInputSchema = zod.z.object({
177
181
  description: zod.z.string().optional(),
178
182
  paymentId: zod.z.string().optional(),
179
183
  metadata: transactionMetadataSchema.optional().default({}),
180
- status: zod.z.enum(TRANSACTION_STATUSES)
184
+ status: zod.z.enum(TRANSACTION_STATUSES),
185
+ currency: zod.z.enum(generalCodes.CURRENCY_CODES).optional(),
186
+ amount: zod.z.number().optional()
181
187
  // entries: z.array(entryInputSchema).min(1),
182
188
  });
183
189
 
@@ -269,6 +275,7 @@ const listAccountsInputSchema = zod.z.object({
269
275
 
270
276
  const matchTransactionInputSchema = zod.z.object({
271
277
  transactionId: zod.z.uuid(),
278
+ paymentId: zod.z.string(),
272
279
  completedAt: zod.z.date().optional()
273
280
  });
274
281
 
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { D as schema } from './ledger.C9ZgmZrv.js';
2
+ import { D as schema } from './ledger.N4btQFi1.mjs';
3
3
  import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
4
4
 
5
5
  interface TSchema extends ExtractTablesWithRelations<typeof tables> {
@@ -329,9 +329,9 @@ declare const createAccountInputSchema: z.ZodObject<{
329
329
  }>>;
330
330
  identifier: z.ZodOptional<z.ZodObject<{
331
331
  kind: z.ZodEnum<{
332
- SWIFT: "SWIFT";
333
332
  IBAN: "IBAN";
334
333
  LOCAL_CZ: "LOCAL_CZ";
334
+ SWIFT: "SWIFT";
335
335
  CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
336
336
  }>;
337
337
  iban: z.ZodOptional<z.ZodString>;
@@ -401,17 +401,17 @@ interface CreateAccountOutput {
401
401
  declare const createTransactionInputSchema: z.ZodObject<{
402
402
  correlationId: z.ZodString;
403
403
  referenceType: z.ZodEnum<{
404
- EXCHANGE: "EXCHANGE";
405
404
  PAYMENT: "PAYMENT";
405
+ EXCHANGE: "EXCHANGE";
406
406
  ORDER: "ORDER";
407
407
  }>;
408
408
  referenceId: z.ZodOptional<z.ZodString>;
409
409
  type: z.ZodEnum<{
410
+ EXCHANGE: "EXCHANGE";
410
411
  CLIENT_FUND_IN: "CLIENT_FUND_IN";
411
412
  CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
412
413
  PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
413
414
  PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
414
- EXCHANGE: "EXCHANGE";
415
415
  UNMATCHED: "UNMATCHED";
416
416
  ADJUSTMENT: "ADJUSTMENT";
417
417
  TRANSFER: "TRANSFER";
@@ -428,6 +428,18 @@ declare const createTransactionInputSchema: z.ZodObject<{
428
428
  ss: z.ZodOptional<z.ZodString>;
429
429
  ks: z.ZodOptional<z.ZodString>;
430
430
  message: z.ZodOptional<z.ZodString>;
431
+ type: z.ZodEnum<{
432
+ SWIFT: "SWIFT";
433
+ DOMESTIC: "DOMESTIC";
434
+ SEPA: "SEPA";
435
+ UNKNOWN: "UNKNOWN";
436
+ }>;
437
+ paymentChargeType: z.ZodOptional<z.ZodEnum<{
438
+ SHA: "SHA";
439
+ OUR: "OUR";
440
+ BEN: "BEN";
441
+ }>>;
442
+ expressPayment: z.ZodOptional<z.ZodBoolean>;
431
443
  reference: z.ZodOptional<z.ZodString>;
432
444
  creditor: z.ZodOptional<z.ZodObject<{
433
445
  id: z.ZodOptional<z.ZodString>;
@@ -1144,9 +1156,9 @@ declare const createTransactionInputSchema: z.ZodObject<{
1144
1156
  AVAX: "AVAX";
1145
1157
  }>>;
1146
1158
  amount: z.ZodOptional<z.ZodNumber>;
1147
- paymentChargeType: z.ZodOptional<z.ZodString>;
1159
+ purpose: z.ZodOptional<z.ZodString>;
1148
1160
  }, z.core.$strip>>;
1149
- }, z.core.$catchall<z.ZodUnknown>>>>;
1161
+ }, z.core.$strip>>>;
1150
1162
  status: z.ZodEnum<{
1151
1163
  FAILED: "FAILED";
1152
1164
  COMPLETED: "COMPLETED";
@@ -1158,6 +1170,62 @@ declare const createTransactionInputSchema: z.ZodObject<{
1158
1170
  RETURNED: "RETURNED";
1159
1171
  CANCELLED: "CANCELLED";
1160
1172
  }>;
1173
+ currency: z.ZodOptional<z.ZodEnum<{
1174
+ CZK: "CZK";
1175
+ EUR: "EUR";
1176
+ USD: "USD";
1177
+ PLN: "PLN";
1178
+ RON: "RON";
1179
+ GBP: "GBP";
1180
+ RUB: "RUB";
1181
+ HUF: "HUF";
1182
+ CHF: "CHF";
1183
+ DKK: "DKK";
1184
+ SEK: "SEK";
1185
+ HRK: "HRK";
1186
+ NOK: "NOK";
1187
+ BGN: "BGN";
1188
+ TRY: "TRY";
1189
+ AUD: "AUD";
1190
+ CAD: "CAD";
1191
+ JPY: "JPY";
1192
+ CNY: "CNY";
1193
+ INR: "INR";
1194
+ BRL: "BRL";
1195
+ MXN: "MXN";
1196
+ ZAR: "ZAR";
1197
+ SGD: "SGD";
1198
+ HKD: "HKD";
1199
+ KRW: "KRW";
1200
+ MYR: "MYR";
1201
+ THB: "THB";
1202
+ IDR: "IDR";
1203
+ PHP: "PHP";
1204
+ AED: "AED";
1205
+ SAR: "SAR";
1206
+ ILS: "ILS";
1207
+ EGP: "EGP";
1208
+ NGN: "NGN";
1209
+ PKR: "PKR";
1210
+ COP: "COP";
1211
+ CLP: "CLP";
1212
+ PEN: "PEN";
1213
+ VND: "VND";
1214
+ KZT: "KZT";
1215
+ UAH: "UAH";
1216
+ BTC: "BTC";
1217
+ ETH: "ETH";
1218
+ ADA: "ADA";
1219
+ DOT: "DOT";
1220
+ ATOM: "ATOM";
1221
+ XRP: "XRP";
1222
+ LTC: "LTC";
1223
+ SOL: "SOL";
1224
+ DOGE: "DOGE";
1225
+ MATIC: "MATIC";
1226
+ AVAX: "AVAX";
1227
+ }>>;
1228
+ amount: z.ZodOptional<z.ZodNumber>;
1161
1229
  }, z.core.$strip>;
1162
1230
  interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
1163
1231
  }
@@ -1294,17 +1362,17 @@ declare const getTransactionsInputSchema: z.ZodObject<{
1294
1362
  }, z.core.$strip>;
1295
1363
  filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
1296
1364
  filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
1297
- EXCHANGE: "EXCHANGE";
1298
1365
  PAYMENT: "PAYMENT";
1366
+ EXCHANGE: "EXCHANGE";
1299
1367
  ORDER: "ORDER";
1300
1368
  }>>;
1301
1369
  filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
1302
1370
  filterTransactionType: z.ZodOptional<z.ZodEnum<{
1371
+ EXCHANGE: "EXCHANGE";
1303
1372
  CLIENT_FUND_IN: "CLIENT_FUND_IN";
1304
1373
  CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
1305
1374
  PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
1306
1375
  PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
1307
- EXCHANGE: "EXCHANGE";
1308
1376
  UNMATCHED: "UNMATCHED";
1309
1377
  ADJUSTMENT: "ADJUSTMENT";
1310
1378
  TRANSFER: "TRANSFER";
@@ -1335,8 +1403,8 @@ interface GetTransactionsOutput {
1335
1403
 
1336
1404
  declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
1337
1405
  referenceType: z.ZodEnum<{
1338
- EXCHANGE: "EXCHANGE";
1339
1406
  PAYMENT: "PAYMENT";
1407
+ EXCHANGE: "EXCHANGE";
1340
1408
  ORDER: "ORDER";
1341
1409
  }>;
1342
1410
  referenceId: z.ZodUUID;
@@ -1449,6 +1517,7 @@ interface ListAccountsOutput {
1449
1517
 
1450
1518
  declare const matchTransactionInputSchema: z.ZodObject<{
1451
1519
  transactionId: z.ZodUUID;
1520
+ paymentId: z.ZodString;
1452
1521
  completedAt: z.ZodOptional<z.ZodDate>;
1453
1522
  }, z.core.$strip>;
1454
1523
  interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
@@ -243,7 +243,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
243
243
  tableName: "account_identifier";
244
244
  dataType: "string";
245
245
  columnType: "SQLiteText";
246
- data: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
246
+ data: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
247
247
  driverParam: string;
248
248
  notNull: true;
249
249
  hasDefault: false;
@@ -256,7 +256,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
256
256
  generated: undefined;
257
257
  }, {}, {
258
258
  length: number | undefined;
259
- $type: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
259
+ $type: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
260
260
  }>;
261
261
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
262
262
  name: "iban";
@@ -598,8 +598,7 @@ declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER"];
598
598
  type ReferenceType = (typeof REFERENCE_TYPES)[number];
599
599
  declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
600
600
  type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
601
-
602
- declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
601
+ declare const PAYMENT_TYPES: readonly ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
603
602
  type PaymentType = (typeof PAYMENT_TYPES)[number];
604
603
 
605
604
  type CryptoNetworkCode = (typeof CRYPTO_NETWORK_CODES)[number];
@@ -632,7 +631,7 @@ interface TransactionMetadata {
632
631
  ss?: string;
633
632
  ks?: string;
634
633
  message?: string;
635
- type: 'DOMESTIC' | 'SEPA' | 'SWIFT' | 'UNKNOWN';
634
+ type: PaymentType;
636
635
  paymentChargeType?: PaymentChargeType;
637
636
  expressPayment?: boolean;
638
637
  reference?: string;
@@ -1002,7 +1001,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1002
1001
  tableName: "transaction";
1003
1002
  dataType: "string";
1004
1003
  columnType: "SQLiteText";
1005
- data: "EXCHANGE" | "PAYMENT" | "ORDER";
1004
+ data: "PAYMENT" | "EXCHANGE" | "ORDER";
1006
1005
  driverParam: string;
1007
1006
  notNull: true;
1008
1007
  hasDefault: false;
@@ -1015,7 +1014,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1015
1014
  generated: undefined;
1016
1015
  }, {}, {
1017
1016
  length: number | undefined;
1018
- $type: "EXCHANGE" | "PAYMENT" | "ORDER";
1017
+ $type: "PAYMENT" | "EXCHANGE" | "ORDER";
1019
1018
  }>;
1020
1019
  referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
1021
1020
  name: "reference_id";
@@ -1041,7 +1040,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1041
1040
  tableName: "transaction";
1042
1041
  dataType: "string";
1043
1042
  columnType: "SQLiteText";
1044
- data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1043
+ data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1045
1044
  driverParam: string;
1046
1045
  notNull: true;
1047
1046
  hasDefault: false;
@@ -1054,7 +1053,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1054
1053
  generated: undefined;
1055
1054
  }, {}, {
1056
1055
  length: number | undefined;
1057
- $type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1056
+ $type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1058
1057
  }>;
1059
1058
  description: drizzle_orm_sqlite_core.SQLiteColumn<{
1060
1059
  name: "description";
@@ -1318,5 +1317,5 @@ declare namespace schema {
1318
1317
  };
1319
1318
  }
1320
1319
 
1321
- export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as n, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1322
- export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, TransactionMetadata as l, EntryMetadata as m, PaymentType as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
1320
+ export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as l, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1321
+ export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, PaymentType as m, TransactionMetadata as n, EntryMetadata as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
@@ -243,7 +243,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
243
243
  tableName: "account_identifier";
244
244
  dataType: "string";
245
245
  columnType: "SQLiteText";
246
- data: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
246
+ data: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
247
247
  driverParam: string;
248
248
  notNull: true;
249
249
  hasDefault: false;
@@ -256,7 +256,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
256
256
  generated: undefined;
257
257
  }, {}, {
258
258
  length: number | undefined;
259
- $type: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
259
+ $type: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
260
260
  }>;
261
261
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
262
262
  name: "iban";
@@ -598,8 +598,7 @@ declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER"];
598
598
  type ReferenceType = (typeof REFERENCE_TYPES)[number];
599
599
  declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
600
600
  type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
601
-
602
- declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
601
+ declare const PAYMENT_TYPES: readonly ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
603
602
  type PaymentType = (typeof PAYMENT_TYPES)[number];
604
603
 
605
604
  type CryptoNetworkCode = (typeof CRYPTO_NETWORK_CODES)[number];
@@ -632,7 +631,7 @@ interface TransactionMetadata {
632
631
  ss?: string;
633
632
  ks?: string;
634
633
  message?: string;
635
- type: 'DOMESTIC' | 'SEPA' | 'SWIFT' | 'UNKNOWN';
634
+ type: PaymentType;
636
635
  paymentChargeType?: PaymentChargeType;
637
636
  expressPayment?: boolean;
638
637
  reference?: string;
@@ -1002,7 +1001,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1002
1001
  tableName: "transaction";
1003
1002
  dataType: "string";
1004
1003
  columnType: "SQLiteText";
1005
- data: "EXCHANGE" | "PAYMENT" | "ORDER";
1004
+ data: "PAYMENT" | "EXCHANGE" | "ORDER";
1006
1005
  driverParam: string;
1007
1006
  notNull: true;
1008
1007
  hasDefault: false;
@@ -1015,7 +1014,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1015
1014
  generated: undefined;
1016
1015
  }, {}, {
1017
1016
  length: number | undefined;
1018
- $type: "EXCHANGE" | "PAYMENT" | "ORDER";
1017
+ $type: "PAYMENT" | "EXCHANGE" | "ORDER";
1019
1018
  }>;
1020
1019
  referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
1021
1020
  name: "reference_id";
@@ -1041,7 +1040,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1041
1040
  tableName: "transaction";
1042
1041
  dataType: "string";
1043
1042
  columnType: "SQLiteText";
1044
- data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1043
+ data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1045
1044
  driverParam: string;
1046
1045
  notNull: true;
1047
1046
  hasDefault: false;
@@ -1054,7 +1053,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1054
1053
  generated: undefined;
1055
1054
  }, {}, {
1056
1055
  length: number | undefined;
1057
- $type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1056
+ $type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1058
1057
  }>;
1059
1058
  description: drizzle_orm_sqlite_core.SQLiteColumn<{
1060
1059
  name: "description";
@@ -1318,5 +1317,5 @@ declare namespace schema {
1318
1317
  };
1319
1318
  }
1320
1319
 
1321
- export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as n, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1322
- export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, TransactionMetadata as l, EntryMetadata as m, PaymentType as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
1320
+ export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as l, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1321
+ export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, PaymentType as m, TransactionMetadata as n, EntryMetadata as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
@@ -243,7 +243,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
243
243
  tableName: "account_identifier";
244
244
  dataType: "string";
245
245
  columnType: "SQLiteText";
246
- data: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
246
+ data: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
247
247
  driverParam: string;
248
248
  notNull: true;
249
249
  hasDefault: false;
@@ -256,7 +256,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
256
256
  generated: undefined;
257
257
  }, {}, {
258
258
  length: number | undefined;
259
- $type: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
259
+ $type: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
260
260
  }>;
261
261
  iban: drizzle_orm_sqlite_core.SQLiteColumn<{
262
262
  name: "iban";
@@ -598,8 +598,7 @@ declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER"];
598
598
  type ReferenceType = (typeof REFERENCE_TYPES)[number];
599
599
  declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
600
600
  type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
601
-
602
- declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
601
+ declare const PAYMENT_TYPES: readonly ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
603
602
  type PaymentType = (typeof PAYMENT_TYPES)[number];
604
603
 
605
604
  type CryptoNetworkCode = (typeof CRYPTO_NETWORK_CODES)[number];
@@ -632,7 +631,7 @@ interface TransactionMetadata {
632
631
  ss?: string;
633
632
  ks?: string;
634
633
  message?: string;
635
- type: 'DOMESTIC' | 'SEPA' | 'SWIFT' | 'UNKNOWN';
634
+ type: PaymentType;
636
635
  paymentChargeType?: PaymentChargeType;
637
636
  expressPayment?: boolean;
638
637
  reference?: string;
@@ -1002,7 +1001,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1002
1001
  tableName: "transaction";
1003
1002
  dataType: "string";
1004
1003
  columnType: "SQLiteText";
1005
- data: "EXCHANGE" | "PAYMENT" | "ORDER";
1004
+ data: "PAYMENT" | "EXCHANGE" | "ORDER";
1006
1005
  driverParam: string;
1007
1006
  notNull: true;
1008
1007
  hasDefault: false;
@@ -1015,7 +1014,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1015
1014
  generated: undefined;
1016
1015
  }, {}, {
1017
1016
  length: number | undefined;
1018
- $type: "EXCHANGE" | "PAYMENT" | "ORDER";
1017
+ $type: "PAYMENT" | "EXCHANGE" | "ORDER";
1019
1018
  }>;
1020
1019
  referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
1021
1020
  name: "reference_id";
@@ -1041,7 +1040,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1041
1040
  tableName: "transaction";
1042
1041
  dataType: "string";
1043
1042
  columnType: "SQLiteText";
1044
- data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1043
+ data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1045
1044
  driverParam: string;
1046
1045
  notNull: true;
1047
1046
  hasDefault: false;
@@ -1054,7 +1053,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
1054
1053
  generated: undefined;
1055
1054
  }, {}, {
1056
1055
  length: number | undefined;
1057
- $type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1056
+ $type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
1058
1057
  }>;
1059
1058
  description: drizzle_orm_sqlite_core.SQLiteColumn<{
1060
1059
  name: "description";
@@ -1318,5 +1317,5 @@ declare namespace schema {
1318
1317
  };
1319
1318
  }
1320
1319
 
1321
- export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as n, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1322
- export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, TransactionMetadata as l, EntryMetadata as m, PaymentType as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
1320
+ export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, schema as D, ENTRY_STATUSES as E, account as F, accountIdentifier as G, accountIdentifierMapping as H, IDENTIFIER_KINDS as I, accountRelations as J, accountIdentifierRelations as K, accountIdentifierMappingRelations as L, entry as M, transaction as N, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as b, TRANSACTION_TYPES as h, PAYMENT_TYPES as l, PAYMENT_STATUSES as p, PAYMENT_DIRECTIONS as r, BATCH_STATUSES as u, COUNTRY_CODES as y };
1321
+ export type { CryptoNetworkCode as C, AccountType as a, AssetType as c, BalanceStrategy as d, IdentifierKind as e, EntryStatus as f, TransactionStatus as g, TransactionType as i, ReferenceType as j, PaymentChargeType as k, PaymentType as m, TransactionMetadata as n, EntryMetadata as o, PaymentStatus as q, PaymentDirection as s, CurrencyCode as t, BatchStatus as v, Currency as w, BankCode as x, CountryCode as z };
@@ -1,7 +1,7 @@
1
1
  import { base } from '@develit-io/backend-sdk';
2
2
  import { relations } from 'drizzle-orm';
3
3
  import { sqliteTable, integer, text, real } from 'drizzle-orm/sqlite-core';
4
- import { T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.D8XNEnr1.mjs';
4
+ import { T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.CYkZYSMS.mjs';
5
5
  import '@develit-io/general-codes';
6
6
 
7
7
  const account = sqliteTable("account", {
package/dist/types.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const updateTransactionConfirmationSentAt = require('./shared/ledger.DXlB4bbD.cjs');
3
+ const updateTransactionConfirmationSentAt = require('./shared/ledger.CwcPuqoq.cjs');
4
4
  const generalCodes = require('@develit-io/general-codes');
5
5
  require('zod');
6
6
  require('@develit-io/backend-sdk');