@develit-services/ledger 0.3.0 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/database/schema.cjs +2 -2
  2. package/dist/database/schema.d.cts +1 -1
  3. package/dist/database/schema.d.mts +1 -1
  4. package/dist/database/schema.d.ts +1 -1
  5. package/dist/database/schema.mjs +2 -2
  6. package/dist/export/worker.cjs +73 -20
  7. package/dist/export/worker.d.cts +6 -4
  8. package/dist/export/worker.d.mts +6 -4
  9. package/dist/export/worker.d.ts +6 -4
  10. package/dist/export/worker.mjs +55 -2
  11. package/dist/export/wrangler.d.cts +1 -1
  12. package/dist/export/wrangler.d.mts +1 -1
  13. package/dist/export/wrangler.d.ts +1 -1
  14. package/dist/shared/{ledger.CvKXXw9R.mjs → ledger.BGgIPMu-.mjs} +2 -2
  15. package/dist/shared/{ledger.229hTbXo.mjs → ledger.BVNtjljl.mjs} +13 -3
  16. package/dist/shared/{ledger.B2SLAQpo.cjs → ledger.C7cMVCgk.cjs} +4 -4
  17. package/dist/shared/{ledger.DHX1YtaC.d.ts → ledger.CDdw0Nyc.d.ts} +34 -5
  18. package/dist/shared/{ledger.D9n1klaX.d.cts → ledger.CLVyCzRb.d.cts} +41 -521
  19. package/dist/shared/{ledger.D9n1klaX.d.mts → ledger.CLVyCzRb.d.mts} +41 -521
  20. package/dist/shared/{ledger.D9n1klaX.d.ts → ledger.CLVyCzRb.d.ts} +41 -521
  21. package/dist/shared/{ledger.o5dDJQGc.d.mts → ledger.D7boja6V.d.cts} +34 -5
  22. package/dist/shared/{ledger.B9-7wKL6.d.cts → ledger.D_uHoy5E.d.mts} +34 -5
  23. package/dist/shared/{ledger.C6xAPWKq.cjs → ledger.Dfi_K5W2.cjs} +13 -2
  24. package/dist/shared/{ledger.Ce2yPDUS.d.cts → ledger.VQWxyeV6.d.cts} +1 -1
  25. package/dist/shared/{ledger.Ce2yPDUS.d.mts → ledger.VQWxyeV6.d.mts} +1 -1
  26. package/dist/shared/{ledger.Ce2yPDUS.d.ts → ledger.VQWxyeV6.d.ts} +1 -1
  27. package/dist/types.cjs +35 -34
  28. package/dist/types.d.cts +4 -4
  29. package/dist/types.d.mts +4 -4
  30. package/dist/types.d.ts +4 -4
  31. package/dist/types.mjs +1 -1
  32. package/package.json +4 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { D as schema } from './ledger.D9n1klaX.js';
2
+ import { D as schema } from './ledger.CLVyCzRb.js';
3
3
  import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
4
4
 
5
5
  interface TSchema extends ExtractTablesWithRelations<typeof tables> {
@@ -415,6 +415,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
415
415
  ORDER: "ORDER";
416
416
  "INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
417
417
  FORWARD: "FORWARD";
418
+ TRANSACTION: "TRANSACTION";
418
419
  }>;
419
420
  referenceId: z.ZodOptional<z.ZodString>;
420
421
  type: z.ZodEnum<{
@@ -427,6 +428,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
427
428
  ADJUSTMENT: "ADJUSTMENT";
428
429
  TRANSFER: "TRANSFER";
429
430
  COLLATERAL: "COLLATERAL";
431
+ REFUND: "REFUND";
430
432
  }>;
431
433
  description: z.ZodOptional<z.ZodString>;
432
434
  paymentId: z.ZodOptional<z.ZodString>;
@@ -565,7 +567,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
565
567
  AVAX: "AVAX";
566
568
  }>>;
567
569
  countryCode: z.ZodOptional<z.ZodEnum<{
568
- IM: "IM";
569
570
  AF: "AF";
570
571
  AL: "AL";
571
572
  DZ: "DZ";
@@ -654,6 +655,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
654
655
  IR: "IR";
655
656
  IQ: "IQ";
656
657
  IE: "IE";
658
+ IM: "IM";
657
659
  IL: "IL";
658
660
  IT: "IT";
659
661
  CI: "CI";
@@ -894,7 +896,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
894
896
  AVAX: "AVAX";
895
897
  }>>;
896
898
  countryCode: z.ZodOptional<z.ZodEnum<{
897
- IM: "IM";
898
899
  AF: "AF";
899
900
  AL: "AL";
900
901
  DZ: "DZ";
@@ -983,6 +984,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
983
984
  IR: "IR";
984
985
  IQ: "IQ";
985
986
  IE: "IE";
987
+ IM: "IM";
986
988
  IL: "IL";
987
989
  IT: "IT";
988
990
  CI: "CI";
@@ -1382,6 +1384,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
1382
1384
  ORDER: "ORDER";
1383
1385
  "INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
1384
1386
  FORWARD: "FORWARD";
1387
+ TRANSACTION: "TRANSACTION";
1385
1388
  }>>;
1386
1389
  filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
1387
1390
  filterTransactionType: z.ZodOptional<z.ZodEnum<{
@@ -1394,6 +1397,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
1394
1397
  ADJUSTMENT: "ADJUSTMENT";
1395
1398
  TRANSFER: "TRANSFER";
1396
1399
  COLLATERAL: "COLLATERAL";
1400
+ REFUND: "REFUND";
1397
1401
  }>>;
1398
1402
  filterTransactionDescription: z.ZodOptional<z.ZodString>;
1399
1403
  filterTransactionDateFrom: z.ZodOptional<z.ZodDate>;
@@ -1428,6 +1432,7 @@ declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
1428
1432
  ORDER: "ORDER";
1429
1433
  "INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
1430
1434
  FORWARD: "FORWARD";
1435
+ TRANSACTION: "TRANSACTION";
1431
1436
  }>;
1432
1437
  referenceId: z.ZodUUID;
1433
1438
  }, z.core.$strip>;
@@ -1646,7 +1651,31 @@ interface UpdateTransactionConfirmationSentAtInput extends z.input<typeof update
1646
1651
  }
1647
1652
  type UpdateTransactionConfirmationSentAtOutput = void;
1648
1653
 
1654
+ declare const updateTransactionStatusInputSchema: z.ZodObject<{
1655
+ transactionId: z.ZodUUID;
1656
+ status: z.ZodEnum<{
1657
+ FAILED: "FAILED";
1658
+ WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
1659
+ WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
1660
+ COLLATERAL_PAID: "COLLATERAL_PAID";
1661
+ PAUSED: "PAUSED";
1662
+ WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
1663
+ MATCHED: "MATCHED";
1664
+ RETURNING: "RETURNING";
1665
+ RETURNED: "RETURNED";
1666
+ CANCELLED: "CANCELLED";
1667
+ SETTLED: "SETTLED";
1668
+ }>;
1669
+ statusReason: z.ZodOptional<z.ZodString>;
1670
+ paymentId: z.ZodOptional<z.ZodString>;
1671
+ completedAt: z.ZodOptional<z.ZodDate>;
1672
+ }, z.core.$strip>;
1673
+ interface UpdateTransactionStatusInput extends z.infer<typeof updateTransactionStatusInputSchema> {
1674
+ }
1675
+ interface UpdateTransactionStatusOutput extends TransactionSelectType {
1676
+ }
1677
+
1649
1678
  declare const tables: typeof schema;
1650
1679
 
1651
- export { findAccountByIdentifierInputSchema as $, cancelTransactionInputSchema as W, createAccountInputSchema as X, createTransactionInputSchema as Y, deleteAccountInputSchema as Z, failTransactionInputSchema as _, getAccountInputSchema as a0, getAccountBalanceInputSchema as a1, getAccountIdentifierInputSchema as a2, getAccountsByOwnerInputSchema as a3, getTransactionByIdInputSchema as a4, getTransactionsInputSchema as a5, getTransactionsByReferenceIdInputSchema as a6, listAccountIdentifiersInputSchema as a7, listAccountsInputSchema as a8, matchTransactionInputSchema as a9, updateAccountInputSchema as aa, updateTransactionConfirmationSentAtInputSchema as ab, tables as t };
1652
- export type { GetAccountBalanceInput as A, GetAccountBalanceOutput as B, CreateTransactionInput as C, DeleteAccountInput as D, UpdateTransactionConfirmationSentAtInput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtOutput as H, IncludeRelation as I, InferResultType as J, AccountSelectType as K, ListAccountsInput as L, MatchTransactionInput as M, AccountInsertType as N, AccountIdentifierSelectType as O, AccountIdentifierInsertType as P, AccountIdentifierMappingSelectType as Q, AccountIdentifierMappingInsertType as R, TransactionInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountWithIdentifiersSelectType as V, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, GetTransactionByIdOutput as f, GetTransactionsByIdReferenceInput as g, GetTransactionsByReferenceIdOutput as h, GetTransactionsInput as i, GetTransactionsOutput as j, CreateAccountInput as k, CreateAccountOutput as l, UpdateAccountOutput as m, DeleteAccountOutput as n, GetAccountInput as o, GetAccountOutput as p, GetAccountsByOwnerInput as q, GetAccountsByOwnerOutput as r, ListAccountsOutput as s, GetAccountIdentifierInput as u, GetAccountIdentifierOutput as v, ListAccountIdentifiersInput as w, ListAccountIdentifiersOutput as x, FindAccountByIdentifierInput as y, FindAccountByIdentifierOutput as z };
1680
+ export { deleteAccountInputSchema as $, cancelTransactionInputSchema as Y, createAccountInputSchema as Z, createTransactionInputSchema as _, failTransactionInputSchema as a0, findAccountByIdentifierInputSchema as a1, getAccountBalanceInputSchema as a2, getAccountIdentifierInputSchema as a3, getAccountInputSchema as a4, getAccountsByOwnerInputSchema as a5, getTransactionByIdInputSchema as a6, getTransactionsByReferenceIdInputSchema as a7, getTransactionsInputSchema as a8, listAccountIdentifiersInputSchema as a9, listAccountsInputSchema as aa, matchTransactionInputSchema as ab, updateAccountInputSchema as ac, updateTransactionConfirmationSentAtInputSchema as ad, updateTransactionStatusInputSchema as ae, tables as t };
1681
+ export type { GetAccountBalanceInput as A, GetAccountBalanceOutput as B, CreateTransactionInput as C, DeleteAccountInput as D, UpdateTransactionConfirmationSentAtInput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtOutput as H, UpdateTransactionStatusInput as I, UpdateTransactionStatusOutput as J, AccountIdentifierInsertType as K, ListAccountsInput as L, MatchTransactionInput as M, AccountIdentifierMappingInsertType as N, AccountIdentifierMappingSelectType as O, AccountIdentifierSelectType as P, AccountInsertType as Q, AccountSelectType as R, AccountWithIdentifiersSelectType as S, TransactionSelectType as T, UpdateAccountInput as U, IncludeRelation as V, InferResultType as W, TransactionInsertType as X, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, GetTransactionByIdOutput as f, GetTransactionsByIdReferenceInput as g, GetTransactionsByReferenceIdOutput as h, GetTransactionsInput as i, GetTransactionsOutput as j, CreateAccountInput as k, CreateAccountOutput as l, UpdateAccountOutput as m, DeleteAccountOutput as n, GetAccountInput as o, GetAccountOutput as p, GetAccountsByOwnerInput as q, GetAccountsByOwnerOutput as r, ListAccountsOutput as s, GetAccountIdentifierInput as u, GetAccountIdentifierOutput as v, ListAccountIdentifiersInput as w, ListAccountIdentifiersOutput as x, FindAccountByIdentifierInput as y, FindAccountByIdentifierOutput as z };