@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/README.md +318 -0
- package/dist/database/schema.cjs +2 -2
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +2 -2
- package/dist/export/worker.cjs +212 -20
- package/dist/export/worker.d.cts +4 -2
- package/dist/export/worker.d.mts +4 -2
- package/dist/export/worker.d.ts +4 -2
- package/dist/export/worker.mjs +194 -2
- package/dist/shared/{ledger.149a0ags.mjs → ledger.B-gGCFFu.mjs} +1 -1
- package/dist/shared/{ledger.CeePJr7h.d.cts → ledger.BeDlCGN3.d.ts} +45 -11
- package/dist/shared/{ledger.DkcYdsVZ.mjs → ledger.DWO4eS7Q.mjs} +26 -8
- package/dist/shared/{ledger.Bombc2Sm.d.ts → ledger.OvxTlwqn.d.cts} +45 -11
- package/dist/shared/{ledger.C6xAPWKq.cjs → ledger.QNHpaH-m.cjs} +28 -7
- package/dist/shared/{ledger.B2SLAQpo.cjs → ledger._WA8Ag9K.cjs} +4 -4
- package/dist/shared/{ledger.Ci2NnLFo.d.mts → ledger.aRF1eJOD.d.cts} +23 -16
- package/dist/shared/{ledger.Ci2NnLFo.d.cts → ledger.aRF1eJOD.d.mts} +23 -16
- package/dist/shared/{ledger.Ci2NnLFo.d.ts → ledger.aRF1eJOD.d.ts} +23 -16
- package/dist/shared/{ledger.C63GL8Bq.d.mts → ledger.rYDhcjdG.d.mts} +45 -11
- package/dist/types.cjs +37 -34
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
package/dist/types.cjs
CHANGED
|
@@ -1,44 +1,47 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const
|
|
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 =
|
|
11
|
-
exports.ALLOWED_TRANSACTION_FILTERS =
|
|
12
|
-
exports.ASSET_TYPES =
|
|
13
|
-
exports.BALANCE_STRATEGIES =
|
|
14
|
-
exports.BATCH_STATUSES =
|
|
15
|
-
exports.COUNTRY_CODES =
|
|
16
|
-
exports.ENTRY_STATUSES =
|
|
17
|
-
exports.IDENTIFIER_KINDS =
|
|
18
|
-
exports.PAYMENT_CHARGE_TYPES =
|
|
19
|
-
exports.PAYMENT_DIRECTIONS =
|
|
20
|
-
exports.PAYMENT_STATUSES =
|
|
21
|
-
exports.PAYMENT_TYPES =
|
|
22
|
-
exports.REFERENCE_TYPES =
|
|
23
|
-
exports.
|
|
24
|
-
exports.
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.
|
|
35
|
-
exports.
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
38
|
-
exports.
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
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,
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
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,
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
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,
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
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,
|
|
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';
|