@develit-services/ledger 0.3.4 → 0.3.5
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.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- 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/shared/{ledger.B08p9mSv.d.mts → ledger.BZeNQHQ7.d.cts} +8 -6
- package/dist/shared/{ledger.CZjiiQQk.d.mts → ledger.CT5yBFAm.d.cts} +6 -6
- package/dist/shared/{ledger.CZjiiQQk.d.ts → ledger.CT5yBFAm.d.mts} +6 -6
- package/dist/shared/{ledger.CZjiiQQk.d.cts → ledger.CT5yBFAm.d.ts} +6 -6
- package/dist/shared/{ledger.BUVGgzID.d.cts → ledger.Cn5pQymQ.d.mts} +8 -6
- package/dist/shared/{ledger.5cAlw89w.d.ts → ledger.DKJ1Mplk.d.ts} +8 -6
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/package.json +2 -2
|
@@ -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.CT5yBFAm.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.CT5yBFAm.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.CT5yBFAm.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
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.BZeNQHQ7.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CT5yBFAm.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.Cn5pQymQ.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CT5yBFAm.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.DKJ1Mplk.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.CT5yBFAm.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CT5yBFAm.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";
|
|
@@ -1378,8 +1380,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1378
1380
|
}, z.core.$strip>;
|
|
1379
1381
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1380
1382
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
EXCHANGE: "EXCHANGE";
|
|
1382
1383
|
PAYMENT: "PAYMENT";
|
|
1384
|
+
EXCHANGE: "EXCHANGE";
|
|
1383
1385
|
ORDER: "ORDER";
|
|
1384
1386
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1385
1387
|
FORWARD: "FORWARD";
|
|
@@ -1387,13 +1389,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1387
1389
|
}>>;
|
|
1388
1390
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1389
1391
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
EXCHANGE: "EXCHANGE";
|
|
1390
1393
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1394
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1395
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1396
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1397
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1398
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
-
EXCHANGE: "EXCHANGE";
|
|
1397
1399
|
UNMATCHED: "UNMATCHED";
|
|
1398
1400
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1399
1401
|
TRANSFER: "TRANSFER";
|
|
@@ -1424,8 +1426,8 @@ interface GetTransactionsOutput {
|
|
|
1424
1426
|
|
|
1425
1427
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1426
1428
|
referenceType: z.ZodEnum<{
|
|
1427
|
-
EXCHANGE: "EXCHANGE";
|
|
1428
1429
|
PAYMENT: "PAYMENT";
|
|
1430
|
+
EXCHANGE: "EXCHANGE";
|
|
1429
1431
|
ORDER: "ORDER";
|
|
1430
1432
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1431
1433
|
FORWARD: "FORWARD";
|
|
@@ -954,7 +954,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
954
954
|
tableName: "entry";
|
|
955
955
|
dataType: "string";
|
|
956
956
|
columnType: "SQLiteText";
|
|
957
|
-
data: "
|
|
957
|
+
data: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
958
958
|
driverParam: string;
|
|
959
959
|
notNull: true;
|
|
960
960
|
hasDefault: false;
|
|
@@ -967,7 +967,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
967
967
|
generated: undefined;
|
|
968
968
|
}, {}, {
|
|
969
969
|
length: number | undefined;
|
|
970
|
-
$type: "
|
|
970
|
+
$type: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
971
971
|
}>;
|
|
972
972
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
973
973
|
name: "is_balanced";
|
|
@@ -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";
|
|
@@ -954,7 +954,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
954
954
|
tableName: "entry";
|
|
955
955
|
dataType: "string";
|
|
956
956
|
columnType: "SQLiteText";
|
|
957
|
-
data: "
|
|
957
|
+
data: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
958
958
|
driverParam: string;
|
|
959
959
|
notNull: true;
|
|
960
960
|
hasDefault: false;
|
|
@@ -967,7 +967,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
967
967
|
generated: undefined;
|
|
968
968
|
}, {}, {
|
|
969
969
|
length: number | undefined;
|
|
970
|
-
$type: "
|
|
970
|
+
$type: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
971
971
|
}>;
|
|
972
972
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
973
973
|
name: "is_balanced";
|
|
@@ -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";
|
|
@@ -954,7 +954,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
954
954
|
tableName: "entry";
|
|
955
955
|
dataType: "string";
|
|
956
956
|
columnType: "SQLiteText";
|
|
957
|
-
data: "
|
|
957
|
+
data: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
958
958
|
driverParam: string;
|
|
959
959
|
notNull: true;
|
|
960
960
|
hasDefault: false;
|
|
@@ -967,7 +967,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
967
967
|
generated: undefined;
|
|
968
968
|
}, {}, {
|
|
969
969
|
length: number | undefined;
|
|
970
|
-
$type: "
|
|
970
|
+
$type: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
971
971
|
}>;
|
|
972
972
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
973
973
|
name: "is_balanced";
|
|
@@ -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";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CT5yBFAm.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";
|
|
@@ -1378,8 +1380,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1378
1380
|
}, z.core.$strip>;
|
|
1379
1381
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1380
1382
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
EXCHANGE: "EXCHANGE";
|
|
1382
1383
|
PAYMENT: "PAYMENT";
|
|
1384
|
+
EXCHANGE: "EXCHANGE";
|
|
1383
1385
|
ORDER: "ORDER";
|
|
1384
1386
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1385
1387
|
FORWARD: "FORWARD";
|
|
@@ -1387,13 +1389,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1387
1389
|
}>>;
|
|
1388
1390
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1389
1391
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
EXCHANGE: "EXCHANGE";
|
|
1390
1393
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1394
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1395
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1396
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1397
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1398
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
-
EXCHANGE: "EXCHANGE";
|
|
1397
1399
|
UNMATCHED: "UNMATCHED";
|
|
1398
1400
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1399
1401
|
TRANSFER: "TRANSFER";
|
|
@@ -1424,8 +1426,8 @@ interface GetTransactionsOutput {
|
|
|
1424
1426
|
|
|
1425
1427
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1426
1428
|
referenceType: z.ZodEnum<{
|
|
1427
|
-
EXCHANGE: "EXCHANGE";
|
|
1428
1429
|
PAYMENT: "PAYMENT";
|
|
1430
|
+
EXCHANGE: "EXCHANGE";
|
|
1429
1431
|
ORDER: "ORDER";
|
|
1430
1432
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1431
1433
|
FORWARD: "FORWARD";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { F as schema } from './ledger.
|
|
2
|
+
import { F as schema } from './ledger.CT5yBFAm.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";
|
|
@@ -1378,8 +1380,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1378
1380
|
}, z.core.$strip>;
|
|
1379
1381
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1380
1382
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1381
|
-
EXCHANGE: "EXCHANGE";
|
|
1382
1383
|
PAYMENT: "PAYMENT";
|
|
1384
|
+
EXCHANGE: "EXCHANGE";
|
|
1383
1385
|
ORDER: "ORDER";
|
|
1384
1386
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1385
1387
|
FORWARD: "FORWARD";
|
|
@@ -1387,13 +1389,13 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1387
1389
|
}>>;
|
|
1388
1390
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1389
1391
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1392
|
+
EXCHANGE: "EXCHANGE";
|
|
1390
1393
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1391
1394
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1392
1395
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1393
1396
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
1397
|
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
1398
|
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
-
EXCHANGE: "EXCHANGE";
|
|
1397
1399
|
UNMATCHED: "UNMATCHED";
|
|
1398
1400
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1399
1401
|
TRANSFER: "TRANSFER";
|
|
@@ -1424,8 +1426,8 @@ interface GetTransactionsOutput {
|
|
|
1424
1426
|
|
|
1425
1427
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1426
1428
|
referenceType: z.ZodEnum<{
|
|
1427
|
-
EXCHANGE: "EXCHANGE";
|
|
1428
1429
|
PAYMENT: "PAYMENT";
|
|
1430
|
+
EXCHANGE: "EXCHANGE";
|
|
1429
1431
|
ORDER: "ORDER";
|
|
1430
1432
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1431
1433
|
FORWARD: "FORWARD";
|
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.CT5yBFAm.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.BZeNQHQ7.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.BZeNQHQ7.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.CT5yBFAm.mjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.Cn5pQymQ.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.Cn5pQymQ.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.CT5yBFAm.js';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.DKJ1Mplk.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.DKJ1Mplk.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/ledger",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
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"
|