@develit-services/ledger 0.3.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types.d.cts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as CHARGE_BEARERS, h as COUNTRY_CODES, i as ChargeBearer, j as CountryCode, k as CryptoNetworkCode, l as Currency, m as CurrencyCode, E as ENTRY_STATUSES, n as EntryMetadata, o as EntryStatus, I as IDENTIFIER_KINDS, p as IdentifierKind, P as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, r as PAYMENT_TYPES, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as REFUNDABLE_TRANSACTION_STATUSES, w as ReferenceType, T as TRANSACTION_STATUSES, x as TRANSACTION_TYPES, y as TransactionMetadata, z as TransactionStatus, D as TransactionType } from './shared/ledger.CclKAyrw.cjs';
2
- import { T as TransactionSelectType } from './shared/ledger.CWua2AX5.cjs';
3
- export { N as AccountIdentifierInsertType, O as AccountIdentifierMappingInsertType, P as AccountIdentifierMappingSelectType, Q as AccountIdentifierSelectType, S as AccountInsertType, V as AccountSelectType, W as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, l as CreateAccountInput, m as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, o as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, X as IncludeRelation, Y as InferResultType, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, L as ListAccountsInput, u as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, Z as TransactionInsertType, U as UpdateAccountInput, n as UpdateAccountOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput, _ as cancelTransactionInputSchema, $ as createAccountInputSchema, a0 as createTransactionInputSchema, a1 as deleteAccountInputSchema, a2 as failTransactionInputSchema, a3 as findAccountByIdentifierInputSchema, a4 as getAccountBalanceInputSchema, a5 as getAccountIdentifierInputSchema, a6 as getAccountInputSchema, a7 as getAccountsByOwnerInputSchema, a8 as getTransactionByIdInputSchema, a9 as getTransactionsByReferenceIdInputSchema, aa as getTransactionsInputSchema, ab as listAccountIdentifiersInputSchema, ac as listAccountsInputSchema, ad as matchTransactionInputSchema, ae as refundTransactionInputSchema, af as updateAccountInputSchema, ag as updateTransactionConfirmationSentAtInputSchema, ah as updateTransactionStatusInputSchema } from './shared/ledger.CWua2AX5.cjs';
1
+ export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as CHARGE_BEARERS, h as COUNTRY_CODES, i as ChargeBearer, j as CountryCode, k as CryptoNetworkCode, l as Currency, m as CurrencyCode, E as ENTRY_STATUSES, n as EntryMetadata, o as EntryStatus, I as IDENTIFIER_KINDS, p as IdentifierKind, P as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, r as PAYMENT_TYPES, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as REFUNDABLE_TRANSACTION_STATUSES, w as ReferenceType, T as TRANSACTION_STATUSES, x as TRANSACTION_TYPES, y as TransactionMetadata, z as TransactionStatus, D as TransactionType } from './shared/ledger.BtCTt25C.cjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.WHp2MLCf.cjs';
3
+ export { P as AccountIdentifierInsertType, Q as AccountIdentifierMappingInsertType, S as AccountIdentifierMappingSelectType, V as AccountIdentifierSelectType, W as AccountInsertType, X as AccountSelectType, Y as AccountWithIdentifiersSelectType, e as CancelTransactionInput, f as CancelTransactionOutput, n as CreateAccountInput, o as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, q as DeleteAccountOutput, F as FailTransactionInput, d as FailTransactionOutput, B as FindAccountByIdentifierInput, E as FindAccountByIdentifierOutput, H as GetAccountBalanceInput, I as GetAccountBalanceOutput, x as GetAccountIdentifierInput, y as GetAccountIdentifierOutput, r as GetAccountInput, s as GetAccountOutput, u as GetAccountsByOwnerInput, v as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, i as GetTransactionByIdOutput, j as GetTransactionsByIdReferenceInput, k as GetTransactionsByReferenceIdOutput, l as GetTransactionsInput, m as GetTransactionsOutput, Z as IncludeRelation, _ as InferResultType, z as ListAccountIdentifiersInput, A as ListAccountIdentifiersOutput, L as ListAccountsInput, w as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, g as RefundTransactionInput, h as RefundTransactionOutput, R as ResolveUnmatchedTransactionInput, c as ResolveUnmatchedTransactionOutput, $ as TransactionInsertType, U as UpdateAccountInput, p as UpdateAccountOutput, J as UpdateTransactionConfirmationSentAtInput, K as UpdateTransactionConfirmationSentAtOutput, N as UpdateTransactionStatusInput, O as UpdateTransactionStatusOutput, a0 as cancelTransactionInputSchema, a1 as createAccountInputSchema, a2 as createTransactionInputSchema, a3 as deleteAccountInputSchema, a4 as failTransactionInputSchema, a5 as findAccountByIdentifierInputSchema, a6 as getAccountBalanceInputSchema, a7 as getAccountIdentifierInputSchema, a8 as getAccountInputSchema, a9 as getAccountsByOwnerInputSchema, aa as getTransactionByIdInputSchema, ab as getTransactionsByReferenceIdInputSchema, ac as getTransactionsInputSchema, ad as listAccountIdentifiersInputSchema, ae as listAccountsInputSchema, af as matchTransactionInputSchema, ag as refundTransactionInputSchema, ah as resolveUnmatchedTransactionInputSchema, ai as updateAccountInputSchema, aj as updateTransactionConfirmationSentAtInputSchema, ak as updateTransactionStatusInputSchema } from './shared/ledger.WHp2MLCf.cjs';
4
4
  export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.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';
@@ -18,6 +18,7 @@ declare const ALLOWED_TRANSACTION_FILTERS: {
18
18
  readonly DESCRIPTION: "filterTransactionDescription";
19
19
  readonly COMPLETED_AT: "filterTransactionCompletedAt";
20
20
  readonly STATUS: "filterTransactionStatus";
21
+ readonly STATUSES: "filterTransactionStatuses";
21
22
  };
22
23
 
23
24
  interface LedgerEntry {
@@ -32,7 +33,7 @@ interface LedgerDeposit {
32
33
 
33
34
  type LedgerTransactionEvent = BaseEvent & {
34
35
  eventType: 'LEDGER_TRANSACTION';
35
- eventSignal: 'created' | 'updated' | 'matched' | 'failed' | 'refunding';
36
+ eventSignal: 'created' | 'updated' | 'matched' | 'partiallyMatched' | 'failed' | 'refunding';
36
37
  ledgerTransaction: TransactionSelectType;
37
38
  };
38
39
 
package/dist/types.d.mts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as CHARGE_BEARERS, h as COUNTRY_CODES, i as ChargeBearer, j as CountryCode, k as CryptoNetworkCode, l as Currency, m as CurrencyCode, E as ENTRY_STATUSES, n as EntryMetadata, o as EntryStatus, I as IDENTIFIER_KINDS, p as IdentifierKind, P as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, r as PAYMENT_TYPES, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as REFUNDABLE_TRANSACTION_STATUSES, w as ReferenceType, T as TRANSACTION_STATUSES, x as TRANSACTION_TYPES, y as TransactionMetadata, z as TransactionStatus, D as TransactionType } from './shared/ledger.CclKAyrw.mjs';
2
- import { T as TransactionSelectType } from './shared/ledger.QqlD3imC.mjs';
3
- export { N as AccountIdentifierInsertType, O as AccountIdentifierMappingInsertType, P as AccountIdentifierMappingSelectType, Q as AccountIdentifierSelectType, S as AccountInsertType, V as AccountSelectType, W as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, l as CreateAccountInput, m as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, o as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, X as IncludeRelation, Y as InferResultType, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, L as ListAccountsInput, u as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, Z as TransactionInsertType, U as UpdateAccountInput, n as UpdateAccountOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput, _ as cancelTransactionInputSchema, $ as createAccountInputSchema, a0 as createTransactionInputSchema, a1 as deleteAccountInputSchema, a2 as failTransactionInputSchema, a3 as findAccountByIdentifierInputSchema, a4 as getAccountBalanceInputSchema, a5 as getAccountIdentifierInputSchema, a6 as getAccountInputSchema, a7 as getAccountsByOwnerInputSchema, a8 as getTransactionByIdInputSchema, a9 as getTransactionsByReferenceIdInputSchema, aa as getTransactionsInputSchema, ab as listAccountIdentifiersInputSchema, ac as listAccountsInputSchema, ad as matchTransactionInputSchema, ae as refundTransactionInputSchema, af as updateAccountInputSchema, ag as updateTransactionConfirmationSentAtInputSchema, ah as updateTransactionStatusInputSchema } from './shared/ledger.QqlD3imC.mjs';
1
+ export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as CHARGE_BEARERS, h as COUNTRY_CODES, i as ChargeBearer, j as CountryCode, k as CryptoNetworkCode, l as Currency, m as CurrencyCode, E as ENTRY_STATUSES, n as EntryMetadata, o as EntryStatus, I as IDENTIFIER_KINDS, p as IdentifierKind, P as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, r as PAYMENT_TYPES, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as REFUNDABLE_TRANSACTION_STATUSES, w as ReferenceType, T as TRANSACTION_STATUSES, x as TRANSACTION_TYPES, y as TransactionMetadata, z as TransactionStatus, D as TransactionType } from './shared/ledger.BtCTt25C.mjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.D_QC9ub6.mjs';
3
+ export { P as AccountIdentifierInsertType, Q as AccountIdentifierMappingInsertType, S as AccountIdentifierMappingSelectType, V as AccountIdentifierSelectType, W as AccountInsertType, X as AccountSelectType, Y as AccountWithIdentifiersSelectType, e as CancelTransactionInput, f as CancelTransactionOutput, n as CreateAccountInput, o as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, q as DeleteAccountOutput, F as FailTransactionInput, d as FailTransactionOutput, B as FindAccountByIdentifierInput, E as FindAccountByIdentifierOutput, H as GetAccountBalanceInput, I as GetAccountBalanceOutput, x as GetAccountIdentifierInput, y as GetAccountIdentifierOutput, r as GetAccountInput, s as GetAccountOutput, u as GetAccountsByOwnerInput, v as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, i as GetTransactionByIdOutput, j as GetTransactionsByIdReferenceInput, k as GetTransactionsByReferenceIdOutput, l as GetTransactionsInput, m as GetTransactionsOutput, Z as IncludeRelation, _ as InferResultType, z as ListAccountIdentifiersInput, A as ListAccountIdentifiersOutput, L as ListAccountsInput, w as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, g as RefundTransactionInput, h as RefundTransactionOutput, R as ResolveUnmatchedTransactionInput, c as ResolveUnmatchedTransactionOutput, $ as TransactionInsertType, U as UpdateAccountInput, p as UpdateAccountOutput, J as UpdateTransactionConfirmationSentAtInput, K as UpdateTransactionConfirmationSentAtOutput, N as UpdateTransactionStatusInput, O as UpdateTransactionStatusOutput, a0 as cancelTransactionInputSchema, a1 as createAccountInputSchema, a2 as createTransactionInputSchema, a3 as deleteAccountInputSchema, a4 as failTransactionInputSchema, a5 as findAccountByIdentifierInputSchema, a6 as getAccountBalanceInputSchema, a7 as getAccountIdentifierInputSchema, a8 as getAccountInputSchema, a9 as getAccountsByOwnerInputSchema, aa as getTransactionByIdInputSchema, ab as getTransactionsByReferenceIdInputSchema, ac as getTransactionsInputSchema, ad as listAccountIdentifiersInputSchema, ae as listAccountsInputSchema, af as matchTransactionInputSchema, ag as refundTransactionInputSchema, ah as resolveUnmatchedTransactionInputSchema, ai as updateAccountInputSchema, aj as updateTransactionConfirmationSentAtInputSchema, ak as updateTransactionStatusInputSchema } from './shared/ledger.D_QC9ub6.mjs';
4
4
  export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.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';
@@ -18,6 +18,7 @@ declare const ALLOWED_TRANSACTION_FILTERS: {
18
18
  readonly DESCRIPTION: "filterTransactionDescription";
19
19
  readonly COMPLETED_AT: "filterTransactionCompletedAt";
20
20
  readonly STATUS: "filterTransactionStatus";
21
+ readonly STATUSES: "filterTransactionStatuses";
21
22
  };
22
23
 
23
24
  interface LedgerEntry {
@@ -32,7 +33,7 @@ interface LedgerDeposit {
32
33
 
33
34
  type LedgerTransactionEvent = BaseEvent & {
34
35
  eventType: 'LEDGER_TRANSACTION';
35
- eventSignal: 'created' | 'updated' | 'matched' | 'failed' | 'refunding';
36
+ eventSignal: 'created' | 'updated' | 'matched' | 'partiallyMatched' | 'failed' | 'refunding';
36
37
  ledgerTransaction: TransactionSelectType;
37
38
  };
38
39
 
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as CHARGE_BEARERS, h as COUNTRY_CODES, i as ChargeBearer, j as CountryCode, k as CryptoNetworkCode, l as Currency, m as CurrencyCode, E as ENTRY_STATUSES, n as EntryMetadata, o as EntryStatus, I as IDENTIFIER_KINDS, p as IdentifierKind, P as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, r as PAYMENT_TYPES, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as REFUNDABLE_TRANSACTION_STATUSES, w as ReferenceType, T as TRANSACTION_STATUSES, x as TRANSACTION_TYPES, y as TransactionMetadata, z as TransactionStatus, D as TransactionType } from './shared/ledger.CclKAyrw.js';
2
- import { T as TransactionSelectType } from './shared/ledger.BEmulMH8.js';
3
- export { N as AccountIdentifierInsertType, O as AccountIdentifierMappingInsertType, P as AccountIdentifierMappingSelectType, Q as AccountIdentifierSelectType, S as AccountInsertType, V as AccountSelectType, W as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, l as CreateAccountInput, m as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, o as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, X as IncludeRelation, Y as InferResultType, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, L as ListAccountsInput, u as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, Z as TransactionInsertType, U as UpdateAccountInput, n as UpdateAccountOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput, _ as cancelTransactionInputSchema, $ as createAccountInputSchema, a0 as createTransactionInputSchema, a1 as deleteAccountInputSchema, a2 as failTransactionInputSchema, a3 as findAccountByIdentifierInputSchema, a4 as getAccountBalanceInputSchema, a5 as getAccountIdentifierInputSchema, a6 as getAccountInputSchema, a7 as getAccountsByOwnerInputSchema, a8 as getTransactionByIdInputSchema, a9 as getTransactionsByReferenceIdInputSchema, aa as getTransactionsInputSchema, ab as listAccountIdentifiersInputSchema, ac as listAccountsInputSchema, ad as matchTransactionInputSchema, ae as refundTransactionInputSchema, af as updateAccountInputSchema, ag as updateTransactionConfirmationSentAtInputSchema, ah as updateTransactionStatusInputSchema } from './shared/ledger.BEmulMH8.js';
1
+ export { A as ACCOUNT_TYPES, a as ASSET_TYPES, b as AccountType, c as AssetType, B as BALANCE_STRATEGIES, d as BATCH_STATUSES, e as BalanceStrategy, f as BankCode, g as BatchStatus, C as CHARGE_BEARERS, h as COUNTRY_CODES, i as ChargeBearer, j as CountryCode, k as CryptoNetworkCode, l as Currency, m as CurrencyCode, E as ENTRY_STATUSES, n as EntryMetadata, o as EntryStatus, I as IDENTIFIER_KINDS, p as IdentifierKind, P as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, r as PAYMENT_TYPES, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as REFUNDABLE_TRANSACTION_STATUSES, w as ReferenceType, T as TRANSACTION_STATUSES, x as TRANSACTION_TYPES, y as TransactionMetadata, z as TransactionStatus, D as TransactionType } from './shared/ledger.BtCTt25C.js';
2
+ import { T as TransactionSelectType } from './shared/ledger.ZADe_DAC.js';
3
+ export { P as AccountIdentifierInsertType, Q as AccountIdentifierMappingInsertType, S as AccountIdentifierMappingSelectType, V as AccountIdentifierSelectType, W as AccountInsertType, X as AccountSelectType, Y as AccountWithIdentifiersSelectType, e as CancelTransactionInput, f as CancelTransactionOutput, n as CreateAccountInput, o as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, q as DeleteAccountOutput, F as FailTransactionInput, d as FailTransactionOutput, B as FindAccountByIdentifierInput, E as FindAccountByIdentifierOutput, H as GetAccountBalanceInput, I as GetAccountBalanceOutput, x as GetAccountIdentifierInput, y as GetAccountIdentifierOutput, r as GetAccountInput, s as GetAccountOutput, u as GetAccountsByOwnerInput, v as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, i as GetTransactionByIdOutput, j as GetTransactionsByIdReferenceInput, k as GetTransactionsByReferenceIdOutput, l as GetTransactionsInput, m as GetTransactionsOutput, Z as IncludeRelation, _ as InferResultType, z as ListAccountIdentifiersInput, A as ListAccountIdentifiersOutput, L as ListAccountsInput, w as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, g as RefundTransactionInput, h as RefundTransactionOutput, R as ResolveUnmatchedTransactionInput, c as ResolveUnmatchedTransactionOutput, $ as TransactionInsertType, U as UpdateAccountInput, p as UpdateAccountOutput, J as UpdateTransactionConfirmationSentAtInput, K as UpdateTransactionConfirmationSentAtOutput, N as UpdateTransactionStatusInput, O as UpdateTransactionStatusOutput, a0 as cancelTransactionInputSchema, a1 as createAccountInputSchema, a2 as createTransactionInputSchema, a3 as deleteAccountInputSchema, a4 as failTransactionInputSchema, a5 as findAccountByIdentifierInputSchema, a6 as getAccountBalanceInputSchema, a7 as getAccountIdentifierInputSchema, a8 as getAccountInputSchema, a9 as getAccountsByOwnerInputSchema, aa as getTransactionByIdInputSchema, ab as getTransactionsByReferenceIdInputSchema, ac as getTransactionsInputSchema, ad as listAccountIdentifiersInputSchema, ae as listAccountsInputSchema, af as matchTransactionInputSchema, ag as refundTransactionInputSchema, ah as resolveUnmatchedTransactionInputSchema, ai as updateAccountInputSchema, aj as updateTransactionConfirmationSentAtInputSchema, ak as updateTransactionStatusInputSchema } from './shared/ledger.ZADe_DAC.js';
4
4
  export { a as LedgerServiceEnv, b as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.VQWxyeV6.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';
@@ -18,6 +18,7 @@ declare const ALLOWED_TRANSACTION_FILTERS: {
18
18
  readonly DESCRIPTION: "filterTransactionDescription";
19
19
  readonly COMPLETED_AT: "filterTransactionCompletedAt";
20
20
  readonly STATUS: "filterTransactionStatus";
21
+ readonly STATUSES: "filterTransactionStatuses";
21
22
  };
22
23
 
23
24
  interface LedgerEntry {
@@ -32,7 +33,7 @@ interface LedgerDeposit {
32
33
 
33
34
  type LedgerTransactionEvent = BaseEvent & {
34
35
  eventType: 'LEDGER_TRANSACTION';
35
- eventSignal: 'created' | 'updated' | 'matched' | 'failed' | 'refunding';
36
+ eventSignal: 'created' | 'updated' | 'matched' | 'partiallyMatched' | 'failed' | 'refunding';
36
37
  ledgerTransaction: TransactionSelectType;
37
38
  };
38
39
 
package/dist/types.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { A as ACCOUNT_TYPES, a as ALLOWED_TRANSACTION_FILTERS, b as ASSET_TYPES, B as BALANCE_STRATEGIES, c as BATCH_STATUSES, C as CHARGE_BEARERS, d as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_DIRECTIONS, e as PAYMENT_STATUSES, f as PAYMENT_TYPES, R as REFERENCE_TYPES, g as REFUNDABLE_TRANSACTION_STATUSES, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, i as cancelTransactionInputSchema, j as createAccountInputSchema, k as createTransactionInputSchema, l as deleteAccountInputSchema, m as failTransactionInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, p as getAccountIdentifierInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, v as listAccountIdentifiersInputSchema, w as listAccountsInputSchema, x as matchTransactionInputSchema, y as refundTransactionInputSchema, z as updateAccountInputSchema, D as updateTransactionConfirmationSentAtInputSchema, F as updateTransactionStatusInputSchema } from './shared/ledger.DvlQNN83.mjs';
1
+ export { A as ACCOUNT_TYPES, a as ALLOWED_TRANSACTION_FILTERS, b as ASSET_TYPES, B as BALANCE_STRATEGIES, c as BATCH_STATUSES, C as CHARGE_BEARERS, d as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_DIRECTIONS, e as PAYMENT_STATUSES, f as PAYMENT_TYPES, R as REFERENCE_TYPES, g as REFUNDABLE_TRANSACTION_STATUSES, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, i as cancelTransactionInputSchema, j as createAccountInputSchema, k as createTransactionInputSchema, l as deleteAccountInputSchema, m as failTransactionInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, p as getAccountIdentifierInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, v as listAccountIdentifiersInputSchema, w as listAccountsInputSchema, x as matchTransactionInputSchema, y as refundTransactionInputSchema, z as resolveUnmatchedTransactionInputSchema, D as updateAccountInputSchema, F as updateTransactionConfirmationSentAtInputSchema, G as updateTransactionStatusInputSchema } from './shared/ledger.De19PrJa.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.3.6",
3
+ "version": "0.4.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -46,7 +46,7 @@
46
46
  "build": "unbuild"
47
47
  },
48
48
  "dependencies": {
49
- "@cloudflare/workers-types": "^4.20251202.0"
49
+ "@cloudflare/workers-types": "^4.20260217.0"
50
50
  },
51
51
  "peerDependencies": {
52
52
  "@develit-io/backend-sdk": "^9.10.3",