@develit-services/ledger 0.0.8 → 0.0.10

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,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.ByUO4e44.mjs';
4
+ import { T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.D8XNEnr1.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.D1MIlhpb.cjs');
3
+ const updateTransactionConfirmationSentAt = require('./shared/ledger.DXlB4bbD.cjs');
4
4
  const generalCodes = require('@develit-io/general-codes');
5
5
  require('zod');
6
6
  require('@develit-io/backend-sdk');
@@ -25,6 +25,7 @@ exports.TRANSACTION_TYPES = updateTransactionConfirmationSentAt.TRANSACTION_TYPE
25
25
  exports.createAccountInputSchema = updateTransactionConfirmationSentAt.createAccountInputSchema;
26
26
  exports.createTransactionInputSchema = updateTransactionConfirmationSentAt.createTransactionInputSchema;
27
27
  exports.deleteAccountInputSchema = updateTransactionConfirmationSentAt.deleteAccountInputSchema;
28
+ exports.failTransactionInputSchema = updateTransactionConfirmationSentAt.failTransactionInputSchema;
28
29
  exports.findAccountByIdentifierInputSchema = updateTransactionConfirmationSentAt.findAccountByIdentifierInputSchema;
29
30
  exports.getAccountBalanceInputSchema = updateTransactionConfirmationSentAt.getAccountBalanceInputSchema;
30
31
  exports.getAccountIdentifierInputSchema = updateTransactionConfirmationSentAt.getAccountIdentifierInputSchema;
@@ -35,8 +36,8 @@ exports.getTransactionsByReferenceIdInputSchema = updateTransactionConfirmationS
35
36
  exports.getTransactionsInputSchema = updateTransactionConfirmationSentAt.getTransactionsInputSchema;
36
37
  exports.listAccountIdentifiersInputSchema = updateTransactionConfirmationSentAt.listAccountIdentifiersInputSchema;
37
38
  exports.listAccountsInputSchema = updateTransactionConfirmationSentAt.listAccountsInputSchema;
39
+ exports.matchTransactionInputSchema = updateTransactionConfirmationSentAt.matchTransactionInputSchema;
38
40
  exports.updateAccountInputSchema = updateTransactionConfirmationSentAt.updateAccountInputSchema;
39
41
  exports.updateTransactionConfirmationSentAtInputSchema = updateTransactionConfirmationSentAt.updateTransactionConfirmationSentAtInputSchema;
40
- exports.updateTransactionInputSchema = updateTransactionConfirmationSentAt.updateTransactionInputSchema;
41
42
  exports.BANK_CODES = generalCodes.BANK_CODES;
42
43
  exports.CURRENCY_CODES = generalCodes.CURRENCY_CODES;
package/dist/types.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.MnYNWZoo.cjs';
2
- import { T as TransactionSelectType } from './shared/ledger.DRJcpNto.cjs';
3
- export { K as AccountIdentifierInsertType, N as AccountIdentifierMappingInsertType, M as AccountIdentifierMappingSelectType, J as AccountIdentifierSelectType, H as AccountInsertType, E as AccountSelectType, P as AccountWithIdentifiersSelectType, h as CreateAccountInput, i as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, I as IncludeRelation, B as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, O as TransactionInsertType, j as UpdateAccountInput, k as UpdateAccountOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, Q as createAccountInputSchema, R as createTransactionInputSchema, S as deleteAccountInputSchema, V as findAccountByIdentifierInputSchema, X as getAccountBalanceInputSchema, Y as getAccountIdentifierInputSchema, W as getAccountInputSchema, Z as getAccountsByOwnerInputSchema, a2 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a4 as getTransactionsInputSchema, _ as listAccountIdentifiersInputSchema, $ as listAccountsInputSchema, a0 as updateAccountInputSchema, a5 as updateTransactionConfirmationSentAtInputSchema, a1 as updateTransactionInputSchema } from './shared/ledger.DRJcpNto.cjs';
1
+ export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.CBwk-FaO.cjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.B059yF_1.cjs';
3
+ export { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.B059yF_1.cjs';
4
4
  export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.cjs';
5
5
  import { BaseEvent } from '@develit-io/backend-sdk';
6
6
  export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
@@ -32,6 +32,7 @@ interface LedgerDeposit {
32
32
 
33
33
  type LedgerTransactionEvent = BaseEvent & {
34
34
  eventType: 'LEDGER_TRANSACTION';
35
+ eventSignal: 'created' | 'updated' | 'matched' | 'failed';
35
36
  ledgerTransaction: TransactionSelectType;
36
37
  };
37
38
 
package/dist/types.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.MnYNWZoo.mjs';
2
- import { T as TransactionSelectType } from './shared/ledger.w4G_kYoj.mjs';
3
- export { K as AccountIdentifierInsertType, N as AccountIdentifierMappingInsertType, M as AccountIdentifierMappingSelectType, J as AccountIdentifierSelectType, H as AccountInsertType, E as AccountSelectType, P as AccountWithIdentifiersSelectType, h as CreateAccountInput, i as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, I as IncludeRelation, B as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, O as TransactionInsertType, j as UpdateAccountInput, k as UpdateAccountOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, Q as createAccountInputSchema, R as createTransactionInputSchema, S as deleteAccountInputSchema, V as findAccountByIdentifierInputSchema, X as getAccountBalanceInputSchema, Y as getAccountIdentifierInputSchema, W as getAccountInputSchema, Z as getAccountsByOwnerInputSchema, a2 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a4 as getTransactionsInputSchema, _ as listAccountIdentifiersInputSchema, $ as listAccountsInputSchema, a0 as updateAccountInputSchema, a5 as updateTransactionConfirmationSentAtInputSchema, a1 as updateTransactionInputSchema } from './shared/ledger.w4G_kYoj.mjs';
1
+ export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.CBwk-FaO.mjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.DibE_sEN.mjs';
3
+ export { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.DibE_sEN.mjs';
4
4
  export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.mjs';
5
5
  import { BaseEvent } from '@develit-io/backend-sdk';
6
6
  export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
@@ -32,6 +32,7 @@ interface LedgerDeposit {
32
32
 
33
33
  type LedgerTransactionEvent = BaseEvent & {
34
34
  eventType: 'LEDGER_TRANSACTION';
35
+ eventSignal: 'created' | 'updated' | 'matched' | 'failed';
35
36
  ledgerTransaction: TransactionSelectType;
36
37
  };
37
38
 
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.MnYNWZoo.js';
2
- import { T as TransactionSelectType } from './shared/ledger.B097jcnG.js';
3
- export { K as AccountIdentifierInsertType, N as AccountIdentifierMappingInsertType, M as AccountIdentifierMappingSelectType, J as AccountIdentifierSelectType, H as AccountInsertType, E as AccountSelectType, P as AccountWithIdentifiersSelectType, h as CreateAccountInput, i as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, I as IncludeRelation, B as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, O as TransactionInsertType, j as UpdateAccountInput, k as UpdateAccountOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, Q as createAccountInputSchema, R as createTransactionInputSchema, S as deleteAccountInputSchema, V as findAccountByIdentifierInputSchema, X as getAccountBalanceInputSchema, Y as getAccountIdentifierInputSchema, W as getAccountInputSchema, Z as getAccountsByOwnerInputSchema, a2 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a4 as getTransactionsInputSchema, _ as listAccountIdentifiersInputSchema, $ as listAccountsInputSchema, a0 as updateAccountInputSchema, a5 as updateTransactionConfirmationSentAtInputSchema, a1 as updateTransactionInputSchema } from './shared/ledger.B097jcnG.js';
1
+ export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.CBwk-FaO.js';
2
+ import { T as TransactionSelectType } from './shared/ledger.DkvNelxD.js';
3
+ export { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.DkvNelxD.js';
4
4
  export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.js';
5
5
  import { BaseEvent } from '@develit-io/backend-sdk';
6
6
  export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
@@ -32,6 +32,7 @@ interface LedgerDeposit {
32
32
 
33
33
  type LedgerTransactionEvent = BaseEvent & {
34
34
  eventType: 'LEDGER_TRANSACTION';
35
+ eventSignal: 'created' | 'updated' | 'matched' | 'failed';
35
36
  ledgerTransaction: TransactionSelectType;
36
37
  };
37
38
 
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ACCOUNT_TYPES, c as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, w as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, v as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, s as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, d as createAccountInputSchema, e as createTransactionInputSchema, f as deleteAccountInputSchema, g as findAccountByIdentifierInputSchema, i as getAccountBalanceInputSchema, j as getAccountIdentifierInputSchema, h as getAccountInputSchema, k as getAccountsByOwnerInputSchema, o as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, q as getTransactionsInputSchema, l as listAccountIdentifiersInputSchema, m as listAccountsInputSchema, u as updateAccountInputSchema, r as updateTransactionConfirmationSentAtInputSchema, n as updateTransactionInputSchema } from './shared/ledger.ByUO4e44.mjs';
1
+ export { A as ACCOUNT_TYPES, c as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, x as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, w as PAYMENT_DIRECTIONS, v as PAYMENT_STATUSES, t as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, d as createAccountInputSchema, e as createTransactionInputSchema, f as deleteAccountInputSchema, g as failTransactionInputSchema, h as findAccountByIdentifierInputSchema, j as getAccountBalanceInputSchema, k as getAccountIdentifierInputSchema, i as getAccountInputSchema, l as getAccountsByOwnerInputSchema, m as getTransactionByIdInputSchema, o as getTransactionsByReferenceIdInputSchema, n as getTransactionsInputSchema, p as listAccountIdentifiersInputSchema, q as listAccountsInputSchema, r as matchTransactionInputSchema, u as updateAccountInputSchema, s as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.D8XNEnr1.mjs';
2
2
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
3
3
  import 'zod';
4
4
  import '@develit-io/backend-sdk';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/ledger",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,7 +30,7 @@
30
30
  "./dist"
31
31
  ],
32
32
  "scripts": {
33
- "dev": "wrangler dev --port 9233 --persist-to ../../.wrangler/state",
33
+ "dev": "wrangler dev --port 9234 --persist-to ../../.wrangler/state",
34
34
  "wrangler:generate": "develit wrangler:generate",
35
35
  "db:init": "wrangler d1 execute develit-ledger --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
36
36
  "db:generate": "drizzle-kit generate",