@develit-services/ledger 0.3.1 → 0.3.3

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.cjs CHANGED
@@ -1,44 +1,47 @@
1
1
  'use strict';
2
2
 
3
- const updateTransactionConfirmationSentAt = require('./shared/ledger.C6xAPWKq.cjs');
3
+ const updateTransactionStatus = require('./shared/ledger.QNHpaH-m.cjs');
4
4
  const generalCodes = require('@develit-io/general-codes');
5
5
  require('zod');
6
6
  require('@develit-io/backend-sdk');
7
7
 
8
8
 
9
9
 
10
- exports.ACCOUNT_TYPES = updateTransactionConfirmationSentAt.ACCOUNT_TYPES;
11
- exports.ALLOWED_TRANSACTION_FILTERS = updateTransactionConfirmationSentAt.ALLOWED_TRANSACTION_FILTERS;
12
- exports.ASSET_TYPES = updateTransactionConfirmationSentAt.ASSET_TYPES;
13
- exports.BALANCE_STRATEGIES = updateTransactionConfirmationSentAt.BALANCE_STRATEGIES;
14
- exports.BATCH_STATUSES = updateTransactionConfirmationSentAt.BATCH_STATUSES;
15
- exports.COUNTRY_CODES = updateTransactionConfirmationSentAt.COUNTRY_CODES;
16
- exports.ENTRY_STATUSES = updateTransactionConfirmationSentAt.ENTRY_STATUSES;
17
- exports.IDENTIFIER_KINDS = updateTransactionConfirmationSentAt.IDENTIFIER_KINDS;
18
- exports.PAYMENT_CHARGE_TYPES = updateTransactionConfirmationSentAt.PAYMENT_CHARGE_TYPES;
19
- exports.PAYMENT_DIRECTIONS = updateTransactionConfirmationSentAt.PAYMENT_DIRECTIONS;
20
- exports.PAYMENT_STATUSES = updateTransactionConfirmationSentAt.PAYMENT_STATUSES;
21
- exports.PAYMENT_TYPES = updateTransactionConfirmationSentAt.PAYMENT_TYPES;
22
- exports.REFERENCE_TYPES = updateTransactionConfirmationSentAt.REFERENCE_TYPES;
23
- exports.TRANSACTION_STATUSES = updateTransactionConfirmationSentAt.TRANSACTION_STATUSES;
24
- exports.TRANSACTION_TYPES = updateTransactionConfirmationSentAt.TRANSACTION_TYPES;
25
- exports.cancelTransactionInputSchema = updateTransactionConfirmationSentAt.cancelTransactionInputSchema;
26
- exports.createAccountInputSchema = updateTransactionConfirmationSentAt.createAccountInputSchema;
27
- exports.createTransactionInputSchema = updateTransactionConfirmationSentAt.createTransactionInputSchema;
28
- exports.deleteAccountInputSchema = updateTransactionConfirmationSentAt.deleteAccountInputSchema;
29
- exports.failTransactionInputSchema = updateTransactionConfirmationSentAt.failTransactionInputSchema;
30
- exports.findAccountByIdentifierInputSchema = updateTransactionConfirmationSentAt.findAccountByIdentifierInputSchema;
31
- exports.getAccountBalanceInputSchema = updateTransactionConfirmationSentAt.getAccountBalanceInputSchema;
32
- exports.getAccountIdentifierInputSchema = updateTransactionConfirmationSentAt.getAccountIdentifierInputSchema;
33
- exports.getAccountInputSchema = updateTransactionConfirmationSentAt.getAccountInputSchema;
34
- exports.getAccountsByOwnerInputSchema = updateTransactionConfirmationSentAt.getAccountsByOwnerInputSchema;
35
- exports.getTransactionByIdInputSchema = updateTransactionConfirmationSentAt.getTransactionByIdInputSchema;
36
- exports.getTransactionsByReferenceIdInputSchema = updateTransactionConfirmationSentAt.getTransactionsByReferenceIdInputSchema;
37
- exports.getTransactionsInputSchema = updateTransactionConfirmationSentAt.getTransactionsInputSchema;
38
- exports.listAccountIdentifiersInputSchema = updateTransactionConfirmationSentAt.listAccountIdentifiersInputSchema;
39
- exports.listAccountsInputSchema = updateTransactionConfirmationSentAt.listAccountsInputSchema;
40
- exports.matchTransactionInputSchema = updateTransactionConfirmationSentAt.matchTransactionInputSchema;
41
- exports.updateAccountInputSchema = updateTransactionConfirmationSentAt.updateAccountInputSchema;
42
- exports.updateTransactionConfirmationSentAtInputSchema = updateTransactionConfirmationSentAt.updateTransactionConfirmationSentAtInputSchema;
10
+ exports.ACCOUNT_TYPES = updateTransactionStatus.ACCOUNT_TYPES;
11
+ exports.ALLOWED_TRANSACTION_FILTERS = updateTransactionStatus.ALLOWED_TRANSACTION_FILTERS;
12
+ exports.ASSET_TYPES = updateTransactionStatus.ASSET_TYPES;
13
+ exports.BALANCE_STRATEGIES = updateTransactionStatus.BALANCE_STRATEGIES;
14
+ exports.BATCH_STATUSES = updateTransactionStatus.BATCH_STATUSES;
15
+ exports.COUNTRY_CODES = updateTransactionStatus.COUNTRY_CODES;
16
+ exports.ENTRY_STATUSES = updateTransactionStatus.ENTRY_STATUSES;
17
+ exports.IDENTIFIER_KINDS = updateTransactionStatus.IDENTIFIER_KINDS;
18
+ exports.PAYMENT_CHARGE_TYPES = updateTransactionStatus.PAYMENT_CHARGE_TYPES;
19
+ exports.PAYMENT_DIRECTIONS = updateTransactionStatus.PAYMENT_DIRECTIONS;
20
+ exports.PAYMENT_STATUSES = updateTransactionStatus.PAYMENT_STATUSES;
21
+ exports.PAYMENT_TYPES = updateTransactionStatus.PAYMENT_TYPES;
22
+ exports.REFERENCE_TYPES = updateTransactionStatus.REFERENCE_TYPES;
23
+ exports.REFUNDABLE_TRANSACTION_STATUSES = updateTransactionStatus.REFUNDABLE_TRANSACTION_STATUSES;
24
+ exports.TRANSACTION_STATUSES = updateTransactionStatus.TRANSACTION_STATUSES;
25
+ exports.TRANSACTION_TYPES = updateTransactionStatus.TRANSACTION_TYPES;
26
+ exports.cancelTransactionInputSchema = updateTransactionStatus.cancelTransactionInputSchema;
27
+ exports.createAccountInputSchema = updateTransactionStatus.createAccountInputSchema;
28
+ exports.createTransactionInputSchema = updateTransactionStatus.createTransactionInputSchema;
29
+ exports.deleteAccountInputSchema = updateTransactionStatus.deleteAccountInputSchema;
30
+ exports.failTransactionInputSchema = updateTransactionStatus.failTransactionInputSchema;
31
+ exports.findAccountByIdentifierInputSchema = updateTransactionStatus.findAccountByIdentifierInputSchema;
32
+ exports.getAccountBalanceInputSchema = updateTransactionStatus.getAccountBalanceInputSchema;
33
+ exports.getAccountIdentifierInputSchema = updateTransactionStatus.getAccountIdentifierInputSchema;
34
+ exports.getAccountInputSchema = updateTransactionStatus.getAccountInputSchema;
35
+ exports.getAccountsByOwnerInputSchema = updateTransactionStatus.getAccountsByOwnerInputSchema;
36
+ exports.getTransactionByIdInputSchema = updateTransactionStatus.getTransactionByIdInputSchema;
37
+ exports.getTransactionsByReferenceIdInputSchema = updateTransactionStatus.getTransactionsByReferenceIdInputSchema;
38
+ exports.getTransactionsInputSchema = updateTransactionStatus.getTransactionsInputSchema;
39
+ exports.listAccountIdentifiersInputSchema = updateTransactionStatus.listAccountIdentifiersInputSchema;
40
+ exports.listAccountsInputSchema = updateTransactionStatus.listAccountsInputSchema;
41
+ exports.matchTransactionInputSchema = updateTransactionStatus.matchTransactionInputSchema;
42
+ exports.refundTransactionInputSchema = updateTransactionStatus.refundTransactionInputSchema;
43
+ exports.updateAccountInputSchema = updateTransactionStatus.updateAccountInputSchema;
44
+ exports.updateTransactionConfirmationSentAtInputSchema = updateTransactionStatus.updateTransactionConfirmationSentAtInputSchema;
45
+ exports.updateTransactionStatusInputSchema = updateTransactionStatus.updateTransactionStatusInputSchema;
43
46
  exports.BANK_CODES = generalCodes.BANK_CODES;
44
47
  exports.CURRENCY_CODES = generalCodes.CURRENCY_CODES;
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 COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.cjs';
2
- import { T as TransactionSelectType } from './shared/ledger.CeePJr7h.cjs';
3
- export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.CeePJr7h.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 COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, 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.aRF1eJOD.cjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.OvxTlwqn.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.OvxTlwqn.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';
@@ -32,7 +32,7 @@ interface LedgerDeposit {
32
32
 
33
33
  type LedgerTransactionEvent = BaseEvent & {
34
34
  eventType: 'LEDGER_TRANSACTION';
35
- eventSignal: 'created' | 'updated' | 'matched' | 'failed';
35
+ eventSignal: 'created' | 'updated' | 'matched' | 'failed' | 'refunding';
36
36
  ledgerTransaction: TransactionSelectType;
37
37
  };
38
38
 
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 COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.mjs';
2
- import { T as TransactionSelectType } from './shared/ledger.C63GL8Bq.mjs';
3
- export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.C63GL8Bq.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 COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, 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.aRF1eJOD.mjs';
2
+ import { T as TransactionSelectType } from './shared/ledger.rYDhcjdG.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.rYDhcjdG.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';
@@ -32,7 +32,7 @@ interface LedgerDeposit {
32
32
 
33
33
  type LedgerTransactionEvent = BaseEvent & {
34
34
  eventType: 'LEDGER_TRANSACTION';
35
- eventSignal: 'created' | 'updated' | 'matched' | 'failed';
35
+ eventSignal: 'created' | 'updated' | 'matched' | 'failed' | 'refunding';
36
36
  ledgerTransaction: TransactionSelectType;
37
37
  };
38
38
 
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 COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, s as PaymentDirection, t as PaymentStatus, u as PaymentType, R as REFERENCE_TYPES, v as ReferenceType, T as TRANSACTION_STATUSES, w as TRANSACTION_TYPES, x as TransactionMetadata, y as TransactionStatus, z as TransactionType } from './shared/ledger.Ci2NnLFo.js';
2
- import { T as TransactionSelectType } from './shared/ledger.Bombc2Sm.js';
3
- export { I as AccountIdentifierInsertType, J as AccountIdentifierMappingInsertType, K as AccountIdentifierMappingSelectType, N as AccountIdentifierSelectType, O as AccountInsertType, P as AccountSelectType, Q as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, R as IncludeRelation, S as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, V as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a0 as getAccountBalanceInputSchema, a1 as getAccountIdentifierInputSchema, a2 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a5 as getTransactionsByReferenceIdInputSchema, a6 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.Bombc2Sm.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 COUNTRY_CODES, h as CountryCode, i as CryptoNetworkCode, j as Currency, k as CurrencyCode, E as ENTRY_STATUSES, l as EntryMetadata, m as EntryStatus, I as IDENTIFIER_KINDS, n as IdentifierKind, P as PAYMENT_CHARGE_TYPES, o as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, q as PAYMENT_TYPES, r as PaymentChargeType, 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.aRF1eJOD.js';
2
+ import { T as TransactionSelectType } from './shared/ledger.BeDlCGN3.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.BeDlCGN3.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';
@@ -32,7 +32,7 @@ interface LedgerDeposit {
32
32
 
33
33
  type LedgerTransactionEvent = BaseEvent & {
34
34
  eventType: 'LEDGER_TRANSACTION';
35
- eventSignal: 'created' | 'updated' | 'matched' | 'failed';
35
+ eventSignal: 'created' | 'updated' | 'matched' | 'failed' | 'refunding';
36
36
  ledgerTransaction: TransactionSelectType;
37
37
  };
38
38
 
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 COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, d as PAYMENT_DIRECTIONS, e as PAYMENT_STATUSES, f as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, g as TRANSACTION_TYPES, h as cancelTransactionInputSchema, i as createAccountInputSchema, j as createTransactionInputSchema, k as deleteAccountInputSchema, l as failTransactionInputSchema, m as findAccountByIdentifierInputSchema, n as getAccountBalanceInputSchema, o as getAccountIdentifierInputSchema, p as getAccountInputSchema, q as getAccountsByOwnerInputSchema, r as getTransactionByIdInputSchema, s as getTransactionsByReferenceIdInputSchema, t as getTransactionsInputSchema, u as listAccountIdentifiersInputSchema, v as listAccountsInputSchema, w as matchTransactionInputSchema, x as updateAccountInputSchema, y as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.DkcYdsVZ.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 COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, d 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.DWO4eS7Q.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.1",
3
+ "version": "0.3.3",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {