@develit-services/ledger 0.3.4 → 0.3.6
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 +2 -2
- package/dist/export/worker.d.cts +2 -2
- package/dist/export/worker.d.mts +2 -2
- package/dist/export/worker.d.ts +2 -2
- package/dist/export/worker.mjs +2 -2
- package/dist/shared/{ledger.5cAlw89w.d.ts → ledger.BEmulMH8.d.ts} +13 -6
- package/dist/shared/{ledger.DKVdStuQ.mjs → ledger.CGMCq9Gr.mjs} +1 -1
- package/dist/shared/{ledger.B08p9mSv.d.mts → ledger.CWua2AX5.d.cts} +13 -6
- package/dist/shared/{ledger.CZjiiQQk.d.mts → ledger.CclKAyrw.d.cts} +4 -4
- package/dist/shared/{ledger.CZjiiQQk.d.ts → ledger.CclKAyrw.d.mts} +4 -4
- package/dist/shared/{ledger.CZjiiQQk.d.cts → ledger.CclKAyrw.d.ts} +4 -4
- package/dist/shared/{ledger.V5SF3fcq.cjs → ledger.DOcqPJUV.cjs} +1 -1
- package/dist/shared/{ledger.Bb6l1o9P.mjs → ledger.DvlQNN83.mjs} +3 -1
- package/dist/shared/{ledger.BUVGgzID.d.cts → ledger.QqlD3imC.d.mts} +13 -6
- package/dist/shared/{ledger.Bmi7Cafn.cjs → ledger.qc5F0gBL.cjs} +3 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.mjs +1 -1
- package/package.json +2 -2
package/dist/database/schema.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('../shared/ledger.
|
|
3
|
+
const database_schema = require('../shared/ledger.DOcqPJUV.cjs');
|
|
4
4
|
require('@develit-io/backend-sdk');
|
|
5
5
|
require('drizzle-orm');
|
|
6
6
|
require('drizzle-orm/sqlite-core');
|
|
7
|
-
require('../shared/ledger.
|
|
7
|
+
require('../shared/ledger.qc5F0gBL.cjs');
|
|
8
8
|
require('zod');
|
|
9
9
|
require('@develit-io/general-codes');
|
|
10
10
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.
|
|
1
|
+
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.CclKAyrw.cjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.
|
|
1
|
+
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.CclKAyrw.mjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.
|
|
1
|
+
export { G as account, H as accountIdentifier, J as accountIdentifierMapping, K as accountIdentifierMappingRelations, L as accountIdentifierRelations, M as accountRelations, N as entry, O as transaction } from '../shared/ledger.CclKAyrw.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as account, b as accountIdentifier, c as accountIdentifierMapping, d as accountIdentifierMappingRelations, e as accountIdentifierRelations, f as accountRelations, g as entry, t as transaction } from '../shared/ledger.
|
|
1
|
+
export { a as account, b as accountIdentifier, c as accountIdentifierMapping, d as accountIdentifierMappingRelations, e as accountIdentifierRelations, f as accountRelations, g as entry, t as transaction } from '../shared/ledger.CGMCq9Gr.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
5
|
-
import '../shared/ledger.
|
|
5
|
+
import '../shared/ledger.DvlQNN83.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@develit-io/general-codes';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
8
|
-
const database_schema = require('../shared/ledger.
|
|
8
|
+
const database_schema = require('../shared/ledger.DOcqPJUV.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionStatus = require('../shared/ledger.
|
|
10
|
+
const updateTransactionStatus = require('../shared/ledger.qc5F0gBL.cjs');
|
|
11
11
|
require('@develit-io/general-codes');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('zod');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.CWua2AX5.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CclKAyrw.cjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.QqlD3imC.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CclKAyrw.mjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, R as RefundTransactionInput, f as RefundTransactionOutput, G as GetTransactionByIdInput, g as GetTransactionByIdOutput, h as GetTransactionsByIdReferenceInput, i as GetTransactionsByReferenceIdOutput, j as GetTransactionsInput, k as GetTransactionsOutput, l as CreateAccountInput, m as CreateAccountOutput, U as UpdateAccountInput, n as UpdateAccountOutput, D as DeleteAccountInput, o as DeleteAccountOutput, p as GetAccountInput, q as GetAccountOutput, r as GetAccountsByOwnerInput, s as GetAccountsByOwnerOutput, L as ListAccountsInput, u as ListAccountsOutput, v as GetAccountIdentifierInput, w as GetAccountIdentifierOutput, x as ListAccountIdentifiersInput, y as ListAccountIdentifiersOutput, z as FindAccountByIdentifierInput, A as FindAccountByIdentifierOutput, B as GetAccountBalanceInput, E as GetAccountBalanceOutput, H as UpdateTransactionConfirmationSentAtInput, I as UpdateTransactionConfirmationSentAtOutput, J as UpdateTransactionStatusInput, K as UpdateTransactionStatusOutput } from '../shared/ledger.BEmulMH8.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CclKAyrw.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { first, develitWorker, uuidv4, useResult, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { s as schema } from '../shared/ledger.
|
|
4
|
+
import { s as schema } from '../shared/ledger.CGMCq9Gr.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import { k as createTransactionInputSchema, x as matchTransactionInputSchema, m as failTransactionInputSchema, i as cancelTransactionInputSchema, y as refundTransactionInputSchema, g as REFUNDABLE_TRANSACTION_STATUSES, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, j as createAccountInputSchema, z as updateAccountInputSchema, l as deleteAccountInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, w as listAccountsInputSchema, p as getAccountIdentifierInputSchema, v as listAccountIdentifiersInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, D as updateTransactionConfirmationSentAtInputSchema, F as updateTransactionStatusInputSchema } from '../shared/ledger.
|
|
6
|
+
import { k as createTransactionInputSchema, x as matchTransactionInputSchema, m as failTransactionInputSchema, i as cancelTransactionInputSchema, y as refundTransactionInputSchema, g as REFUNDABLE_TRANSACTION_STATUSES, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, j as createAccountInputSchema, z as updateAccountInputSchema, l as deleteAccountInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, w as listAccountsInputSchema, p as getAccountIdentifierInputSchema, v as listAccountIdentifiersInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, D as updateTransactionConfirmationSentAtInputSchema, F as updateTransactionStatusInputSchema } from '../shared/ledger.DvlQNN83.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CclKAyrw.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
|
-
EXCHANGE: "EXCHANGE";
|
|
415
414
|
PAYMENT: "PAYMENT";
|
|
415
|
+
EXCHANGE: "EXCHANGE";
|
|
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";
|
|
423
424
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
425
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
426
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
427
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
428
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
429
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
-
EXCHANGE: "EXCHANGE";
|
|
430
430
|
UNMATCHED: "UNMATCHED";
|
|
431
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
432
432
|
TRANSFER: "TRANSFER";
|
|
@@ -770,6 +770,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
770
770
|
UA: "UA";
|
|
771
771
|
AE: "AE";
|
|
772
772
|
GB: "GB";
|
|
773
|
+
US: "US";
|
|
773
774
|
UZ: "UZ";
|
|
774
775
|
VU: "VU";
|
|
775
776
|
VE: "VE";
|
|
@@ -1099,6 +1100,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1099
1100
|
UA: "UA";
|
|
1100
1101
|
AE: "AE";
|
|
1101
1102
|
GB: "GB";
|
|
1103
|
+
US: "US";
|
|
1102
1104
|
UZ: "UZ";
|
|
1103
1105
|
VU: "VU";
|
|
1104
1106
|
VE: "VE";
|
|
@@ -1173,6 +1175,11 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1173
1175
|
}>>;
|
|
1174
1176
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
1175
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>;
|
|
1176
1183
|
}, z.core.$strip>>;
|
|
1177
1184
|
}, z.core.$strip>>>;
|
|
1178
1185
|
status: z.ZodEnum<{
|
|
@@ -1378,8 +1385,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1378
1385
|
}, z.core.$strip>;
|
|
1379
1386
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1380
1387
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
EXCHANGE: "EXCHANGE";
|
|
1382
1388
|
PAYMENT: "PAYMENT";
|
|
1389
|
+
EXCHANGE: "EXCHANGE";
|
|
1383
1390
|
ORDER: "ORDER";
|
|
1384
1391
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1385
1392
|
FORWARD: "FORWARD";
|
|
@@ -1387,13 +1394,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1387
1394
|
}>>;
|
|
1388
1395
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1389
1396
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1397
|
+
EXCHANGE: "EXCHANGE";
|
|
1390
1398
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1399
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1400
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1401
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1402
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1403
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
-
EXCHANGE: "EXCHANGE";
|
|
1397
1404
|
UNMATCHED: "UNMATCHED";
|
|
1398
1405
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1399
1406
|
TRANSFER: "TRANSFER";
|
|
@@ -1424,8 +1431,8 @@ interface GetTransactionsOutput {
|
|
|
1424
1431
|
|
|
1425
1432
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1426
1433
|
referenceType: z.ZodEnum<{
|
|
1427
|
-
EXCHANGE: "EXCHANGE";
|
|
1428
1434
|
PAYMENT: "PAYMENT";
|
|
1435
|
+
EXCHANGE: "EXCHANGE";
|
|
1429
1436
|
ORDER: "ORDER";
|
|
1430
1437
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1431
1438
|
FORWARD: "FORWARD";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { base } from '@develit-io/backend-sdk';
|
|
2
2
|
import { relations } from 'drizzle-orm';
|
|
3
3
|
import { sqliteTable, integer, text, real } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import { T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.
|
|
4
|
+
import { T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.DvlQNN83.mjs';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
|
|
7
7
|
const account = sqliteTable("account", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CclKAyrw.cjs';
|
|
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
|
-
EXCHANGE: "EXCHANGE";
|
|
415
414
|
PAYMENT: "PAYMENT";
|
|
415
|
+
EXCHANGE: "EXCHANGE";
|
|
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";
|
|
423
424
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
425
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
426
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
427
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
428
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
429
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
-
EXCHANGE: "EXCHANGE";
|
|
430
430
|
UNMATCHED: "UNMATCHED";
|
|
431
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
432
432
|
TRANSFER: "TRANSFER";
|
|
@@ -770,6 +770,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
770
770
|
UA: "UA";
|
|
771
771
|
AE: "AE";
|
|
772
772
|
GB: "GB";
|
|
773
|
+
US: "US";
|
|
773
774
|
UZ: "UZ";
|
|
774
775
|
VU: "VU";
|
|
775
776
|
VE: "VE";
|
|
@@ -1099,6 +1100,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1099
1100
|
UA: "UA";
|
|
1100
1101
|
AE: "AE";
|
|
1101
1102
|
GB: "GB";
|
|
1103
|
+
US: "US";
|
|
1102
1104
|
UZ: "UZ";
|
|
1103
1105
|
VU: "VU";
|
|
1104
1106
|
VE: "VE";
|
|
@@ -1173,6 +1175,11 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1173
1175
|
}>>;
|
|
1174
1176
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
1175
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>;
|
|
1176
1183
|
}, z.core.$strip>>;
|
|
1177
1184
|
}, z.core.$strip>>>;
|
|
1178
1185
|
status: z.ZodEnum<{
|
|
@@ -1378,8 +1385,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1378
1385
|
}, z.core.$strip>;
|
|
1379
1386
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1380
1387
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
EXCHANGE: "EXCHANGE";
|
|
1382
1388
|
PAYMENT: "PAYMENT";
|
|
1389
|
+
EXCHANGE: "EXCHANGE";
|
|
1383
1390
|
ORDER: "ORDER";
|
|
1384
1391
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1385
1392
|
FORWARD: "FORWARD";
|
|
@@ -1387,13 +1394,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1387
1394
|
}>>;
|
|
1388
1395
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1389
1396
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1397
|
+
EXCHANGE: "EXCHANGE";
|
|
1390
1398
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1399
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1400
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1401
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1402
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1403
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
-
EXCHANGE: "EXCHANGE";
|
|
1397
1404
|
UNMATCHED: "UNMATCHED";
|
|
1398
1405
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1399
1406
|
TRANSFER: "TRANSFER";
|
|
@@ -1424,8 +1431,8 @@ interface GetTransactionsOutput {
|
|
|
1424
1431
|
|
|
1425
1432
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1426
1433
|
referenceType: z.ZodEnum<{
|
|
1427
|
-
EXCHANGE: "EXCHANGE";
|
|
1428
1434
|
PAYMENT: "PAYMENT";
|
|
1435
|
+
EXCHANGE: "EXCHANGE";
|
|
1429
1436
|
ORDER: "ORDER";
|
|
1430
1437
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1431
1438
|
FORWARD: "FORWARD";
|
|
@@ -1181,7 +1181,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1181
1181
|
tableName: "transaction";
|
|
1182
1182
|
dataType: "string";
|
|
1183
1183
|
columnType: "SQLiteText";
|
|
1184
|
-
data: "
|
|
1184
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
|
|
1185
1185
|
driverParam: string;
|
|
1186
1186
|
notNull: true;
|
|
1187
1187
|
hasDefault: false;
|
|
@@ -1194,7 +1194,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1194
1194
|
generated: undefined;
|
|
1195
1195
|
}, {}, {
|
|
1196
1196
|
length: number | undefined;
|
|
1197
|
-
$type: "
|
|
1197
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
|
|
1198
1198
|
}>;
|
|
1199
1199
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1200
1200
|
name: "reference_id";
|
|
@@ -1220,7 +1220,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1220
1220
|
tableName: "transaction";
|
|
1221
1221
|
dataType: "string";
|
|
1222
1222
|
columnType: "SQLiteText";
|
|
1223
|
-
data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "
|
|
1223
|
+
data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
|
|
1224
1224
|
driverParam: string;
|
|
1225
1225
|
notNull: true;
|
|
1226
1226
|
hasDefault: false;
|
|
@@ -1233,7 +1233,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1233
1233
|
generated: undefined;
|
|
1234
1234
|
}, {}, {
|
|
1235
1235
|
length: number | undefined;
|
|
1236
|
-
$type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "
|
|
1236
|
+
$type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
|
|
1237
1237
|
}>;
|
|
1238
1238
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1239
1239
|
name: "description";
|
|
@@ -1181,7 +1181,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1181
1181
|
tableName: "transaction";
|
|
1182
1182
|
dataType: "string";
|
|
1183
1183
|
columnType: "SQLiteText";
|
|
1184
|
-
data: "
|
|
1184
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
|
|
1185
1185
|
driverParam: string;
|
|
1186
1186
|
notNull: true;
|
|
1187
1187
|
hasDefault: false;
|
|
@@ -1194,7 +1194,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1194
1194
|
generated: undefined;
|
|
1195
1195
|
}, {}, {
|
|
1196
1196
|
length: number | undefined;
|
|
1197
|
-
$type: "
|
|
1197
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
|
|
1198
1198
|
}>;
|
|
1199
1199
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1200
1200
|
name: "reference_id";
|
|
@@ -1220,7 +1220,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1220
1220
|
tableName: "transaction";
|
|
1221
1221
|
dataType: "string";
|
|
1222
1222
|
columnType: "SQLiteText";
|
|
1223
|
-
data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "
|
|
1223
|
+
data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
|
|
1224
1224
|
driverParam: string;
|
|
1225
1225
|
notNull: true;
|
|
1226
1226
|
hasDefault: false;
|
|
@@ -1233,7 +1233,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1233
1233
|
generated: undefined;
|
|
1234
1234
|
}, {}, {
|
|
1235
1235
|
length: number | undefined;
|
|
1236
|
-
$type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "
|
|
1236
|
+
$type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
|
|
1237
1237
|
}>;
|
|
1238
1238
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1239
1239
|
name: "description";
|
|
@@ -1181,7 +1181,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1181
1181
|
tableName: "transaction";
|
|
1182
1182
|
dataType: "string";
|
|
1183
1183
|
columnType: "SQLiteText";
|
|
1184
|
-
data: "
|
|
1184
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
|
|
1185
1185
|
driverParam: string;
|
|
1186
1186
|
notNull: true;
|
|
1187
1187
|
hasDefault: false;
|
|
@@ -1194,7 +1194,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1194
1194
|
generated: undefined;
|
|
1195
1195
|
}, {}, {
|
|
1196
1196
|
length: number | undefined;
|
|
1197
|
-
$type: "
|
|
1197
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER" | "FORWARD" | "TRANSACTION";
|
|
1198
1198
|
}>;
|
|
1199
1199
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1200
1200
|
name: "reference_id";
|
|
@@ -1220,7 +1220,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1220
1220
|
tableName: "transaction";
|
|
1221
1221
|
dataType: "string";
|
|
1222
1222
|
columnType: "SQLiteText";
|
|
1223
|
-
data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "
|
|
1223
|
+
data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
|
|
1224
1224
|
driverParam: string;
|
|
1225
1225
|
notNull: true;
|
|
1226
1226
|
hasDefault: false;
|
|
@@ -1233,7 +1233,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1233
1233
|
generated: undefined;
|
|
1234
1234
|
}, {}, {
|
|
1235
1235
|
length: number | undefined;
|
|
1236
|
-
$type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "
|
|
1236
|
+
$type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "COLLATERAL_FUND_IN" | "COLLATERAL_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER" | "REFUND";
|
|
1237
1237
|
}>;
|
|
1238
1238
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1239
1239
|
name: "description";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const drizzleOrm = require('drizzle-orm');
|
|
5
5
|
const sqliteCore = require('drizzle-orm/sqlite-core');
|
|
6
|
-
const updateTransactionStatus = require('./ledger.
|
|
6
|
+
const updateTransactionStatus = require('./ledger.qc5F0gBL.cjs');
|
|
7
7
|
require('@develit-io/general-codes');
|
|
8
8
|
|
|
9
9
|
const account = sqliteCore.sqliteTable("account", {
|
|
@@ -186,8 +186,10 @@ const transactionMetadataSchema = z.object({
|
|
|
186
186
|
// ISO 8601
|
|
187
187
|
currency: z.enum(CURRENCY_CODES).optional(),
|
|
188
188
|
amount: z.number().optional(),
|
|
189
|
-
purpose: z.string().optional()
|
|
189
|
+
purpose: z.string().optional(),
|
|
190
190
|
// účel platby
|
|
191
|
+
direction: z.enum(PAYMENT_DIRECTIONS).optional(),
|
|
192
|
+
sendAsSinglePayment: z.boolean().optional()
|
|
191
193
|
}).optional()
|
|
192
194
|
});
|
|
193
195
|
const createTransactionInputSchema = z.object({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CclKAyrw.mjs';
|
|
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
|
-
EXCHANGE: "EXCHANGE";
|
|
415
414
|
PAYMENT: "PAYMENT";
|
|
415
|
+
EXCHANGE: "EXCHANGE";
|
|
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";
|
|
423
424
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
425
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
426
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
427
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
428
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
429
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
-
EXCHANGE: "EXCHANGE";
|
|
430
430
|
UNMATCHED: "UNMATCHED";
|
|
431
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
432
432
|
TRANSFER: "TRANSFER";
|
|
@@ -770,6 +770,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
770
770
|
UA: "UA";
|
|
771
771
|
AE: "AE";
|
|
772
772
|
GB: "GB";
|
|
773
|
+
US: "US";
|
|
773
774
|
UZ: "UZ";
|
|
774
775
|
VU: "VU";
|
|
775
776
|
VE: "VE";
|
|
@@ -1099,6 +1100,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1099
1100
|
UA: "UA";
|
|
1100
1101
|
AE: "AE";
|
|
1101
1102
|
GB: "GB";
|
|
1103
|
+
US: "US";
|
|
1102
1104
|
UZ: "UZ";
|
|
1103
1105
|
VU: "VU";
|
|
1104
1106
|
VE: "VE";
|
|
@@ -1173,6 +1175,11 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1173
1175
|
}>>;
|
|
1174
1176
|
amount: z.ZodOptional<z.ZodNumber>;
|
|
1175
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>;
|
|
1176
1183
|
}, z.core.$strip>>;
|
|
1177
1184
|
}, z.core.$strip>>>;
|
|
1178
1185
|
status: z.ZodEnum<{
|
|
@@ -1378,8 +1385,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1378
1385
|
}, z.core.$strip>;
|
|
1379
1386
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1380
1387
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
EXCHANGE: "EXCHANGE";
|
|
1382
1388
|
PAYMENT: "PAYMENT";
|
|
1389
|
+
EXCHANGE: "EXCHANGE";
|
|
1383
1390
|
ORDER: "ORDER";
|
|
1384
1391
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1385
1392
|
FORWARD: "FORWARD";
|
|
@@ -1387,13 +1394,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1387
1394
|
}>>;
|
|
1388
1395
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1389
1396
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1397
|
+
EXCHANGE: "EXCHANGE";
|
|
1390
1398
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1399
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1400
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1401
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1402
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1403
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
-
EXCHANGE: "EXCHANGE";
|
|
1397
1404
|
UNMATCHED: "UNMATCHED";
|
|
1398
1405
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1399
1406
|
TRANSFER: "TRANSFER";
|
|
@@ -1424,8 +1431,8 @@ interface GetTransactionsOutput {
|
|
|
1424
1431
|
|
|
1425
1432
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1426
1433
|
referenceType: z.ZodEnum<{
|
|
1427
|
-
EXCHANGE: "EXCHANGE";
|
|
1428
1434
|
PAYMENT: "PAYMENT";
|
|
1435
|
+
EXCHANGE: "EXCHANGE";
|
|
1429
1436
|
ORDER: "ORDER";
|
|
1430
1437
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1431
1438
|
FORWARD: "FORWARD";
|
|
@@ -188,8 +188,10 @@ const transactionMetadataSchema = zod.z.object({
|
|
|
188
188
|
// ISO 8601
|
|
189
189
|
currency: zod.z.enum(generalCodes.CURRENCY_CODES).optional(),
|
|
190
190
|
amount: zod.z.number().optional(),
|
|
191
|
-
purpose: zod.z.string().optional()
|
|
191
|
+
purpose: zod.z.string().optional(),
|
|
192
192
|
// účel platby
|
|
193
|
+
direction: zod.z.enum(PAYMENT_DIRECTIONS).optional(),
|
|
194
|
+
sendAsSinglePayment: zod.z.boolean().optional()
|
|
193
195
|
}).optional()
|
|
194
196
|
});
|
|
195
197
|
const createTransactionInputSchema = zod.z.object({
|
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.qc5F0gBL.cjs');
|
|
4
4
|
const generalCodes = require('@develit-io/general-codes');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
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 { 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.
|
|
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';
|
|
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';
|
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 { 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.
|
|
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';
|
|
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';
|
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 { 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.
|
|
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';
|
|
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';
|
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.
|
|
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';
|
|
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.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@cloudflare/workers-types": "^4.20251202.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@develit-io/backend-sdk": "^9.
|
|
52
|
+
"@develit-io/backend-sdk": "^9.10.3",
|
|
53
53
|
"@develit-io/general-codes": "^1.15.0",
|
|
54
54
|
"drizzle-orm": "^0.45.0",
|
|
55
55
|
"zod": "^4.1.13"
|