@develit-services/ledger 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/schema.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/export/wrangler.cjs +6 -0
- package/dist/export/wrangler.d.cts +4 -0
- package/dist/export/wrangler.d.mts +4 -0
- package/dist/export/wrangler.d.ts +4 -0
- package/dist/export/wrangler.mjs +6 -0
- package/dist/shared/{ledger.BgIj13HQ.d.cts → ledger.9Ll_cqva.d.mts} +6 -6
- package/dist/shared/{ledger.D7ev87ps.d.ts → ledger.Bo3kdRvg.d.cts} +4 -4
- package/dist/shared/{ledger.D7ev87ps.d.cts → ledger.Bo3kdRvg.d.mts} +4 -4
- package/dist/shared/{ledger.D7ev87ps.d.mts → ledger.Bo3kdRvg.d.ts} +4 -4
- package/dist/shared/{ledger.DfLcucD6.d.mts → ledger.CG3rFnGr.d.cts} +6 -6
- package/dist/shared/{ledger.3eeQznZ1.d.ts → ledger.Vn3IgETm.d.ts} +6 -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 +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.Bo3kdRvg.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 { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.Bo3kdRvg.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 { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.Bo3kdRvg.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, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } 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, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.CG3rFnGr.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.Bo3kdRvg.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, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } 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, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.9Ll_cqva.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.Bo3kdRvg.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, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } 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, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.Vn3IgETm.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.Bo3kdRvg.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/wrangler.cjs
CHANGED
|
@@ -14,6 +14,12 @@ function defineLedgerServiceWrangler(config) {
|
|
|
14
14
|
...envs.local.vars,
|
|
15
15
|
ENVIRONMENT: "localhost"
|
|
16
16
|
},
|
|
17
|
+
services: [
|
|
18
|
+
{
|
|
19
|
+
binding: "SECRETS_STORE",
|
|
20
|
+
service: `${project}-secrets-store`
|
|
21
|
+
}
|
|
22
|
+
],
|
|
17
23
|
d1_databases: [
|
|
18
24
|
{
|
|
19
25
|
binding: "LEDGER_D1",
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -12,6 +12,12 @@ function defineLedgerServiceWrangler(config) {
|
|
|
12
12
|
...envs.local.vars,
|
|
13
13
|
ENVIRONMENT: "localhost"
|
|
14
14
|
},
|
|
15
|
+
services: [
|
|
16
|
+
{
|
|
17
|
+
binding: "SECRETS_STORE",
|
|
18
|
+
service: `${project}-secrets-store`
|
|
19
|
+
}
|
|
20
|
+
],
|
|
15
21
|
d1_databases: [
|
|
16
22
|
{
|
|
17
23
|
binding: "LEDGER_D1",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.Bo3kdRvg.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -410,18 +410,18 @@ interface CreateAccountOutput {
|
|
|
410
410
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
411
|
correlationId: z.ZodString;
|
|
412
412
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
413
|
EXCHANGE: "EXCHANGE";
|
|
414
|
+
PAYMENT: "PAYMENT";
|
|
415
415
|
ORDER: "ORDER";
|
|
416
416
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
417
|
}>;
|
|
418
418
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
419
419
|
type: z.ZodEnum<{
|
|
420
|
-
EXCHANGE: "EXCHANGE";
|
|
421
420
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
422
421
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
423
422
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
424
423
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
424
|
+
EXCHANGE: "EXCHANGE";
|
|
425
425
|
UNMATCHED: "UNMATCHED";
|
|
426
426
|
ADJUSTMENT: "ADJUSTMENT";
|
|
427
427
|
TRANSFER: "TRANSFER";
|
|
@@ -1373,18 +1373,18 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1373
1373
|
}, z.core.$strip>;
|
|
1374
1374
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1375
1375
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1376
|
-
PAYMENT: "PAYMENT";
|
|
1377
1376
|
EXCHANGE: "EXCHANGE";
|
|
1377
|
+
PAYMENT: "PAYMENT";
|
|
1378
1378
|
ORDER: "ORDER";
|
|
1379
1379
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1380
1380
|
}>>;
|
|
1381
1381
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1382
1382
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1383
|
-
EXCHANGE: "EXCHANGE";
|
|
1384
1383
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1385
1384
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1386
1385
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1387
1386
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1387
|
+
EXCHANGE: "EXCHANGE";
|
|
1388
1388
|
UNMATCHED: "UNMATCHED";
|
|
1389
1389
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1390
1390
|
TRANSFER: "TRANSFER";
|
|
@@ -1415,8 +1415,8 @@ interface GetTransactionsOutput {
|
|
|
1415
1415
|
|
|
1416
1416
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1417
1417
|
referenceType: z.ZodEnum<{
|
|
1418
|
-
PAYMENT: "PAYMENT";
|
|
1419
1418
|
EXCHANGE: "EXCHANGE";
|
|
1419
|
+
PAYMENT: "PAYMENT";
|
|
1420
1420
|
ORDER: "ORDER";
|
|
1421
1421
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1422
1422
|
}>;
|
|
@@ -1002,7 +1002,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1002
1002
|
tableName: "transaction";
|
|
1003
1003
|
dataType: "string";
|
|
1004
1004
|
columnType: "SQLiteText";
|
|
1005
|
-
data: "
|
|
1005
|
+
data: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1006
1006
|
driverParam: string;
|
|
1007
1007
|
notNull: true;
|
|
1008
1008
|
hasDefault: false;
|
|
@@ -1015,7 +1015,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1015
1015
|
generated: undefined;
|
|
1016
1016
|
}, {}, {
|
|
1017
1017
|
length: number | undefined;
|
|
1018
|
-
$type: "
|
|
1018
|
+
$type: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1019
1019
|
}>;
|
|
1020
1020
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1021
1021
|
name: "reference_id";
|
|
@@ -1041,7 +1041,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1041
1041
|
tableName: "transaction";
|
|
1042
1042
|
dataType: "string";
|
|
1043
1043
|
columnType: "SQLiteText";
|
|
1044
|
-
data: "
|
|
1044
|
+
data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1045
1045
|
driverParam: string;
|
|
1046
1046
|
notNull: true;
|
|
1047
1047
|
hasDefault: false;
|
|
@@ -1054,7 +1054,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1054
1054
|
generated: undefined;
|
|
1055
1055
|
}, {}, {
|
|
1056
1056
|
length: number | undefined;
|
|
1057
|
-
$type: "
|
|
1057
|
+
$type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1058
1058
|
}>;
|
|
1059
1059
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1060
1060
|
name: "description";
|
|
@@ -1002,7 +1002,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1002
1002
|
tableName: "transaction";
|
|
1003
1003
|
dataType: "string";
|
|
1004
1004
|
columnType: "SQLiteText";
|
|
1005
|
-
data: "
|
|
1005
|
+
data: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1006
1006
|
driverParam: string;
|
|
1007
1007
|
notNull: true;
|
|
1008
1008
|
hasDefault: false;
|
|
@@ -1015,7 +1015,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1015
1015
|
generated: undefined;
|
|
1016
1016
|
}, {}, {
|
|
1017
1017
|
length: number | undefined;
|
|
1018
|
-
$type: "
|
|
1018
|
+
$type: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1019
1019
|
}>;
|
|
1020
1020
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1021
1021
|
name: "reference_id";
|
|
@@ -1041,7 +1041,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1041
1041
|
tableName: "transaction";
|
|
1042
1042
|
dataType: "string";
|
|
1043
1043
|
columnType: "SQLiteText";
|
|
1044
|
-
data: "
|
|
1044
|
+
data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1045
1045
|
driverParam: string;
|
|
1046
1046
|
notNull: true;
|
|
1047
1047
|
hasDefault: false;
|
|
@@ -1054,7 +1054,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1054
1054
|
generated: undefined;
|
|
1055
1055
|
}, {}, {
|
|
1056
1056
|
length: number | undefined;
|
|
1057
|
-
$type: "
|
|
1057
|
+
$type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1058
1058
|
}>;
|
|
1059
1059
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1060
1060
|
name: "description";
|
|
@@ -1002,7 +1002,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1002
1002
|
tableName: "transaction";
|
|
1003
1003
|
dataType: "string";
|
|
1004
1004
|
columnType: "SQLiteText";
|
|
1005
|
-
data: "
|
|
1005
|
+
data: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1006
1006
|
driverParam: string;
|
|
1007
1007
|
notNull: true;
|
|
1008
1008
|
hasDefault: false;
|
|
@@ -1015,7 +1015,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1015
1015
|
generated: undefined;
|
|
1016
1016
|
}, {}, {
|
|
1017
1017
|
length: number | undefined;
|
|
1018
|
-
$type: "
|
|
1018
|
+
$type: "EXCHANGE" | "PAYMENT" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1019
1019
|
}>;
|
|
1020
1020
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1021
1021
|
name: "reference_id";
|
|
@@ -1041,7 +1041,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1041
1041
|
tableName: "transaction";
|
|
1042
1042
|
dataType: "string";
|
|
1043
1043
|
columnType: "SQLiteText";
|
|
1044
|
-
data: "
|
|
1044
|
+
data: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1045
1045
|
driverParam: string;
|
|
1046
1046
|
notNull: true;
|
|
1047
1047
|
hasDefault: false;
|
|
@@ -1054,7 +1054,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1054
1054
|
generated: undefined;
|
|
1055
1055
|
}, {}, {
|
|
1056
1056
|
length: number | undefined;
|
|
1057
|
-
$type: "
|
|
1057
|
+
$type: "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "EXCHANGE" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1058
1058
|
}>;
|
|
1059
1059
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1060
1060
|
name: "description";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.Bo3kdRvg.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -410,18 +410,18 @@ interface CreateAccountOutput {
|
|
|
410
410
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
411
|
correlationId: z.ZodString;
|
|
412
412
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
413
|
EXCHANGE: "EXCHANGE";
|
|
414
|
+
PAYMENT: "PAYMENT";
|
|
415
415
|
ORDER: "ORDER";
|
|
416
416
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
417
|
}>;
|
|
418
418
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
419
419
|
type: z.ZodEnum<{
|
|
420
|
-
EXCHANGE: "EXCHANGE";
|
|
421
420
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
422
421
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
423
422
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
424
423
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
424
|
+
EXCHANGE: "EXCHANGE";
|
|
425
425
|
UNMATCHED: "UNMATCHED";
|
|
426
426
|
ADJUSTMENT: "ADJUSTMENT";
|
|
427
427
|
TRANSFER: "TRANSFER";
|
|
@@ -1373,18 +1373,18 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1373
1373
|
}, z.core.$strip>;
|
|
1374
1374
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1375
1375
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1376
|
-
PAYMENT: "PAYMENT";
|
|
1377
1376
|
EXCHANGE: "EXCHANGE";
|
|
1377
|
+
PAYMENT: "PAYMENT";
|
|
1378
1378
|
ORDER: "ORDER";
|
|
1379
1379
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1380
1380
|
}>>;
|
|
1381
1381
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1382
1382
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1383
|
-
EXCHANGE: "EXCHANGE";
|
|
1384
1383
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1385
1384
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1386
1385
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1387
1386
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1387
|
+
EXCHANGE: "EXCHANGE";
|
|
1388
1388
|
UNMATCHED: "UNMATCHED";
|
|
1389
1389
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1390
1390
|
TRANSFER: "TRANSFER";
|
|
@@ -1415,8 +1415,8 @@ interface GetTransactionsOutput {
|
|
|
1415
1415
|
|
|
1416
1416
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1417
1417
|
referenceType: z.ZodEnum<{
|
|
1418
|
-
PAYMENT: "PAYMENT";
|
|
1419
1418
|
EXCHANGE: "EXCHANGE";
|
|
1419
|
+
PAYMENT: "PAYMENT";
|
|
1420
1420
|
ORDER: "ORDER";
|
|
1421
1421
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1422
1422
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.Bo3kdRvg.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -410,18 +410,18 @@ interface CreateAccountOutput {
|
|
|
410
410
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
411
|
correlationId: z.ZodString;
|
|
412
412
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
413
|
EXCHANGE: "EXCHANGE";
|
|
414
|
+
PAYMENT: "PAYMENT";
|
|
415
415
|
ORDER: "ORDER";
|
|
416
416
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
417
|
}>;
|
|
418
418
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
419
419
|
type: z.ZodEnum<{
|
|
420
|
-
EXCHANGE: "EXCHANGE";
|
|
421
420
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
422
421
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
423
422
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
424
423
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
424
|
+
EXCHANGE: "EXCHANGE";
|
|
425
425
|
UNMATCHED: "UNMATCHED";
|
|
426
426
|
ADJUSTMENT: "ADJUSTMENT";
|
|
427
427
|
TRANSFER: "TRANSFER";
|
|
@@ -1373,18 +1373,18 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1373
1373
|
}, z.core.$strip>;
|
|
1374
1374
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1375
1375
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1376
|
-
PAYMENT: "PAYMENT";
|
|
1377
1376
|
EXCHANGE: "EXCHANGE";
|
|
1377
|
+
PAYMENT: "PAYMENT";
|
|
1378
1378
|
ORDER: "ORDER";
|
|
1379
1379
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1380
1380
|
}>>;
|
|
1381
1381
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1382
1382
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1383
|
-
EXCHANGE: "EXCHANGE";
|
|
1384
1383
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1385
1384
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1386
1385
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1387
1386
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1387
|
+
EXCHANGE: "EXCHANGE";
|
|
1388
1388
|
UNMATCHED: "UNMATCHED";
|
|
1389
1389
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1390
1390
|
TRANSFER: "TRANSFER";
|
|
@@ -1415,8 +1415,8 @@ interface GetTransactionsOutput {
|
|
|
1415
1415
|
|
|
1416
1416
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1417
1417
|
referenceType: z.ZodEnum<{
|
|
1418
|
-
PAYMENT: "PAYMENT";
|
|
1419
1418
|
EXCHANGE: "EXCHANGE";
|
|
1419
|
+
PAYMENT: "PAYMENT";
|
|
1420
1420
|
ORDER: "ORDER";
|
|
1421
1421
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1422
1422
|
}>;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.
|
|
1
|
+
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.Bo3kdRvg.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CG3rFnGr.cjs';
|
|
3
|
+
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.CG3rFnGr.cjs';
|
|
4
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.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, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.
|
|
1
|
+
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.Bo3kdRvg.mjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.9Ll_cqva.mjs';
|
|
3
|
+
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.9Ll_cqva.mjs';
|
|
4
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.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, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.
|
|
1
|
+
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.Bo3kdRvg.js';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.Vn3IgETm.js';
|
|
3
|
+
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.Vn3IgETm.js';
|
|
4
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.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
|
+
"version": "0.2.0",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"./dist"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"dev": "wrangler dev --port 9235 --persist-to ../../.wrangler/state",
|
|
33
|
+
"dev": "wrangler dev --port 9235 --persist-to ../../.wrangler/state -c ./wrangler.jsonc -c ../../apps/secrets-store/wrangler.jsonc",
|
|
34
34
|
"wrangler:generate": "bunx develit wrangler:generate --types",
|
|
35
35
|
"db:init": "wrangler d1 execute develit-ledger --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
36
36
|
"db:generate": "drizzle-kit generate",
|
|
37
37
|
"db:migrate": "drizzle-kit migrate",
|
|
38
38
|
"db:explore": "drizzle-kit studio",
|
|
39
|
-
"types": "
|
|
39
|
+
"types": "bash typegen.sh",
|
|
40
40
|
"lint": "biome check",
|
|
41
41
|
"lint:fix": "biome format --write && biome lint --write",
|
|
42
42
|
"test": "vitest",
|