@develit-services/ledger 0.3.5 → 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/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 +190 -18
- package/dist/export/worker.d.cts +8 -2
- package/dist/export/worker.d.mts +8 -2
- package/dist/export/worker.d.ts +8 -2
- package/dist/export/worker.mjs +190 -18
- package/dist/shared/{ledger.CT5yBFAm.d.mts → ledger.BtCTt25C.d.cts} +39 -10
- package/dist/shared/{ledger.CT5yBFAm.d.ts → ledger.BtCTt25C.d.mts} +39 -10
- package/dist/shared/{ledger.CT5yBFAm.d.cts → ledger.BtCTt25C.d.ts} +39 -10
- package/dist/shared/{ledger.V5SF3fcq.cjs → ledger.C4eXkZIj.cjs} +2 -1
- package/dist/shared/{ledger.Bmi7Cafn.cjs → ledger.CAoxOU3F.cjs} +18 -4
- package/dist/shared/{ledger.Cn5pQymQ.d.mts → ledger.D_QC9ub6.d.mts} +40 -8
- package/dist/shared/{ledger.Bb6l1o9P.mjs → ledger.De19PrJa.mjs} +18 -5
- package/dist/shared/{ledger.DKVdStuQ.mjs → ledger.Dpxzz64a.mjs} +2 -1
- package/dist/shared/{ledger.DKJ1Mplk.d.ts → ledger.WHp2MLCf.d.cts} +40 -8
- package/dist/shared/{ledger.BZeNQHQ7.d.cts → ledger.ZADe_DAC.d.ts} +40 -8
- package/dist/types.cjs +2 -1
- package/dist/types.d.cts +5 -4
- package/dist/types.d.mts +5 -4
- package/dist/types.d.ts +5 -4
- package/dist/types.mjs +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.BtCTt25C.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -411,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
411
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
412
412
|
correlationId: z.ZodString;
|
|
413
413
|
referenceType: z.ZodEnum<{
|
|
414
|
-
PAYMENT: "PAYMENT";
|
|
415
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
416
416
|
ORDER: "ORDER";
|
|
417
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
418
418
|
FORWARD: "FORWARD";
|
|
@@ -420,13 +420,13 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
420
420
|
}>;
|
|
421
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
422
422
|
type: z.ZodEnum<{
|
|
423
|
-
EXCHANGE: "EXCHANGE";
|
|
424
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
425
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
426
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
427
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
428
427
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
429
428
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
430
430
|
UNMATCHED: "UNMATCHED";
|
|
431
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
432
432
|
TRANSFER: "TRANSFER";
|
|
@@ -1175,11 +1175,17 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1175
1175
|
}>>;
|
|
1176
1176
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
1177
1177
|
purpose: z.ZodOptional<z.ZodString>;
|
|
1178
|
+
direction: z.ZodOptional<z.ZodEnum<{
|
|
1179
|
+
INCOMING: "INCOMING";
|
|
1180
|
+
OUTGOING: "OUTGOING";
|
|
1181
|
+
}>>;
|
|
1182
|
+
sendAsSinglePayment: z.ZodOptional<z.ZodBoolean>;
|
|
1178
1183
|
}, z.core.$strip>>;
|
|
1179
1184
|
}, z.core.$strip>>>;
|
|
1180
1185
|
status: z.ZodEnum<{
|
|
1181
1186
|
FAILED: "FAILED";
|
|
1182
1187
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1188
|
+
PARTIALLY_MATCHED: "PARTIALLY_MATCHED";
|
|
1183
1189
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1184
1190
|
MATCHED: "MATCHED";
|
|
1185
1191
|
RETURNING: "RETURNING";
|
|
@@ -1380,8 +1386,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1380
1386
|
}, z.core.$strip>;
|
|
1381
1387
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1382
1388
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1383
|
-
PAYMENT: "PAYMENT";
|
|
1384
1389
|
EXCHANGE: "EXCHANGE";
|
|
1390
|
+
PAYMENT: "PAYMENT";
|
|
1385
1391
|
ORDER: "ORDER";
|
|
1386
1392
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1387
1393
|
FORWARD: "FORWARD";
|
|
@@ -1389,13 +1395,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1389
1395
|
}>>;
|
|
1390
1396
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1391
1397
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
-
EXCHANGE: "EXCHANGE";
|
|
1393
1398
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1394
1399
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1395
1400
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1396
1401
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1397
1402
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1398
1403
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1404
|
+
EXCHANGE: "EXCHANGE";
|
|
1399
1405
|
UNMATCHED: "UNMATCHED";
|
|
1400
1406
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1401
1407
|
TRANSFER: "TRANSFER";
|
|
@@ -1408,6 +1414,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1408
1414
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1409
1415
|
FAILED: "FAILED";
|
|
1410
1416
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1417
|
+
PARTIALLY_MATCHED: "PARTIALLY_MATCHED";
|
|
1411
1418
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1412
1419
|
MATCHED: "MATCHED";
|
|
1413
1420
|
RETURNING: "RETURNING";
|
|
@@ -1415,6 +1422,17 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1415
1422
|
CANCELLED: "CANCELLED";
|
|
1416
1423
|
SETTLED: "SETTLED";
|
|
1417
1424
|
}>>;
|
|
1425
|
+
filterTransactionStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
1426
|
+
FAILED: "FAILED";
|
|
1427
|
+
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1428
|
+
PARTIALLY_MATCHED: "PARTIALLY_MATCHED";
|
|
1429
|
+
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1430
|
+
MATCHED: "MATCHED";
|
|
1431
|
+
RETURNING: "RETURNING";
|
|
1432
|
+
RETURNED: "RETURNED";
|
|
1433
|
+
CANCELLED: "CANCELLED";
|
|
1434
|
+
SETTLED: "SETTLED";
|
|
1435
|
+
}>>>;
|
|
1418
1436
|
search: z.ZodOptional<z.ZodString>;
|
|
1419
1437
|
}, z.core.$strip>;
|
|
1420
1438
|
interface GetTransactionsInput extends z.input<typeof getTransactionsInputSchema> {
|
|
@@ -1426,8 +1444,8 @@ interface GetTransactionsOutput {
|
|
|
1426
1444
|
|
|
1427
1445
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1428
1446
|
referenceType: z.ZodEnum<{
|
|
1429
|
-
PAYMENT: "PAYMENT";
|
|
1430
1447
|
EXCHANGE: "EXCHANGE";
|
|
1448
|
+
PAYMENT: "PAYMENT";
|
|
1431
1449
|
ORDER: "ORDER";
|
|
1432
1450
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1433
1451
|
FORWARD: "FORWARD";
|
|
@@ -1544,6 +1562,7 @@ interface ListAccountsOutput {
|
|
|
1544
1562
|
declare const matchTransactionInputSchema: z.ZodObject<{
|
|
1545
1563
|
transactionId: z.ZodUUID;
|
|
1546
1564
|
paymentId: z.ZodString;
|
|
1565
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1547
1566
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1548
1567
|
}, z.core.$strip>;
|
|
1549
1568
|
interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
|
|
@@ -1654,6 +1673,7 @@ declare const refundTransactionInputSchema: z.ZodObject<{
|
|
|
1654
1673
|
transactionId: z.ZodUUID;
|
|
1655
1674
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
1656
1675
|
reason: z.ZodString;
|
|
1676
|
+
performedBy: z.ZodOptional<z.ZodString>;
|
|
1657
1677
|
}, z.core.$strip>;
|
|
1658
1678
|
interface RefundTransactionInput extends z.infer<typeof refundTransactionInputSchema> {
|
|
1659
1679
|
}
|
|
@@ -1662,11 +1682,23 @@ interface RefundTransactionOutput {
|
|
|
1662
1682
|
originalTransaction: TransactionSelectType;
|
|
1663
1683
|
}
|
|
1664
1684
|
|
|
1685
|
+
declare const resolveUnmatchedTransactionInputSchema: z.ZodObject<{
|
|
1686
|
+
unmatchedTransactionId: z.ZodUUID;
|
|
1687
|
+
targetTransactionId: z.ZodUUID;
|
|
1688
|
+
note: z.ZodString;
|
|
1689
|
+
performedBy: z.ZodString;
|
|
1690
|
+
}, z.core.$strip>;
|
|
1691
|
+
interface ResolveUnmatchedTransactionInput extends z.infer<typeof resolveUnmatchedTransactionInputSchema> {
|
|
1692
|
+
}
|
|
1693
|
+
interface ResolveUnmatchedTransactionOutput extends TransactionSelectType {
|
|
1694
|
+
}
|
|
1695
|
+
|
|
1665
1696
|
declare const updateTransactionStatusInputSchema: z.ZodObject<{
|
|
1666
1697
|
transactionId: z.ZodUUID;
|
|
1667
1698
|
status: z.ZodEnum<{
|
|
1668
1699
|
FAILED: "FAILED";
|
|
1669
1700
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1701
|
+
PARTIALLY_MATCHED: "PARTIALLY_MATCHED";
|
|
1670
1702
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1671
1703
|
MATCHED: "MATCHED";
|
|
1672
1704
|
RETURNING: "RETURNING";
|
|
@@ -1685,5 +1717,5 @@ interface UpdateTransactionStatusOutput extends TransactionSelectType {
|
|
|
1685
1717
|
|
|
1686
1718
|
declare const tables: typeof schema;
|
|
1687
1719
|
|
|
1688
|
-
export {
|
|
1689
|
-
export type {
|
|
1720
|
+
export { cancelTransactionInputSchema as a0, createAccountInputSchema as a1, createTransactionInputSchema as a2, deleteAccountInputSchema as a3, failTransactionInputSchema as a4, findAccountByIdentifierInputSchema as a5, getAccountBalanceInputSchema as a6, getAccountIdentifierInputSchema as a7, getAccountInputSchema as a8, getAccountsByOwnerInputSchema as a9, getTransactionByIdInputSchema as aa, getTransactionsByReferenceIdInputSchema as ab, getTransactionsInputSchema as ac, listAccountIdentifiersInputSchema as ad, listAccountsInputSchema as ae, matchTransactionInputSchema as af, refundTransactionInputSchema as ag, resolveUnmatchedTransactionInputSchema as ah, updateAccountInputSchema as ai, updateTransactionConfirmationSentAtInputSchema as aj, updateTransactionStatusInputSchema as ak, tables as t };
|
|
1721
|
+
export type { TransactionInsertType as $, ListAccountIdentifiersOutput as A, FindAccountByIdentifierInput as B, CreateTransactionInput as C, DeleteAccountInput as D, FindAccountByIdentifierOutput as E, FailTransactionInput as F, GetTransactionByIdInput as G, GetAccountBalanceInput as H, GetAccountBalanceOutput as I, UpdateTransactionConfirmationSentAtInput as J, UpdateTransactionConfirmationSentAtOutput as K, ListAccountsInput as L, MatchTransactionInput as M, UpdateTransactionStatusInput as N, UpdateTransactionStatusOutput as O, AccountIdentifierInsertType as P, AccountIdentifierMappingInsertType as Q, ResolveUnmatchedTransactionInput as R, AccountIdentifierMappingSelectType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountIdentifierSelectType as V, AccountInsertType as W, AccountSelectType as X, AccountWithIdentifiersSelectType as Y, IncludeRelation as Z, InferResultType as _, CreateTransactionOutput as a, MatchTransactionOutput as b, ResolveUnmatchedTransactionOutput as c, FailTransactionOutput as d, CancelTransactionInput as e, CancelTransactionOutput as f, RefundTransactionInput as g, RefundTransactionOutput as h, GetTransactionByIdOutput as i, GetTransactionsByIdReferenceInput as j, GetTransactionsByReferenceIdOutput as k, GetTransactionsInput as l, GetTransactionsOutput as m, CreateAccountInput as n, CreateAccountOutput as o, UpdateAccountOutput as p, DeleteAccountOutput as q, GetAccountInput as r, GetAccountOutput as s, GetAccountsByOwnerInput as u, GetAccountsByOwnerOutput as v, ListAccountsOutput as w, GetAccountIdentifierInput as x, GetAccountIdentifierOutput as y, ListAccountIdentifiersInput as z };
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const updateTransactionStatus = require('./shared/ledger.
|
|
3
|
+
const updateTransactionStatus = require('./shared/ledger.CAoxOU3F.cjs');
|
|
4
4
|
const generalCodes = require('@develit-io/general-codes');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
|
@@ -40,6 +40,7 @@ exports.listAccountIdentifiersInputSchema = updateTransactionStatus.listAccountI
|
|
|
40
40
|
exports.listAccountsInputSchema = updateTransactionStatus.listAccountsInputSchema;
|
|
41
41
|
exports.matchTransactionInputSchema = updateTransactionStatus.matchTransactionInputSchema;
|
|
42
42
|
exports.refundTransactionInputSchema = updateTransactionStatus.refundTransactionInputSchema;
|
|
43
|
+
exports.resolveUnmatchedTransactionInputSchema = updateTransactionStatus.resolveUnmatchedTransactionInputSchema;
|
|
43
44
|
exports.updateAccountInputSchema = updateTransactionStatus.updateAccountInputSchema;
|
|
44
45
|
exports.updateTransactionConfirmationSentAtInputSchema = updateTransactionStatus.updateTransactionConfirmationSentAtInputSchema;
|
|
45
46
|
exports.updateTransactionStatusInputSchema = updateTransactionStatus.updateTransactionStatusInputSchema;
|
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.
|
|
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 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.
|
|
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 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.
|
|
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 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
|
|
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
|
+
"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.
|
|
49
|
+
"@cloudflare/workers-types": "^4.20260217.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@develit-io/backend-sdk": "^9.10.3",
|