@develit-services/ledger 0.0.18 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/database/schema.cjs +2 -2
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/database/schema.mjs +2 -2
- package/dist/export/worker.cjs +8 -7
- package/dist/export/worker.d.cts +2 -2
- package/dist/export/worker.d.mts +2 -2
- package/dist/export/worker.d.ts +2 -2
- package/dist/export/worker.mjs +8 -7
- package/dist/shared/{ledger.N4btQFi1.d.mts → ledger.B7u8ydpE.d.cts} +8 -8
- package/dist/shared/{ledger.N4btQFi1.d.ts → ledger.B7u8ydpE.d.mts} +8 -8
- package/dist/shared/{ledger.N4btQFi1.d.cts → ledger.B7u8ydpE.d.ts} +8 -8
- package/dist/shared/{ledger.CYraqLo1.mjs → ledger.COjHoDby.mjs} +1 -1
- package/dist/shared/{ledger.BPiU8WKv.d.ts → ledger.CPQn1Ovn.d.cts} +7 -3
- package/dist/shared/{ledger.IlgzDspB.cjs → ledger.DItsDAaB.cjs} +1 -1
- package/dist/shared/{ledger.D84I58YG.d.mts → ledger.Dv8VNteJ.d.mts} +7 -3
- package/dist/shared/{ledger.B-BlO0j7.d.cts → ledger.JmkZHXkM.d.ts} +7 -3
- package/dist/shared/{ledger.DuWXAYgr.cjs → ledger.rz48dp3t.cjs} +7 -1
- package/dist/shared/{ledger.C4oVv-Pm.mjs → ledger.vnBUBchv.mjs} +7 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +3 -3
- package/dist/types.d.mts +3 -3
- package/dist/types.d.ts +3 -3
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('../shared/ledger.
|
|
3
|
+
const database_schema = require('../shared/ledger.DItsDAaB.cjs');
|
|
4
4
|
require('@develit-io/backend-sdk');
|
|
5
5
|
require('drizzle-orm');
|
|
6
6
|
require('drizzle-orm/sqlite-core');
|
|
7
|
-
require('../shared/ledger.
|
|
7
|
+
require('../shared/ledger.rz48dp3t.cjs');
|
|
8
8
|
require('@develit-io/general-codes');
|
|
9
9
|
require('zod');
|
|
10
10
|
|
|
@@ -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.B7u8ydpE.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.B7u8ydpE.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.B7u8ydpE.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { a as account, b as accountIdentifier, c as accountIdentifierMapping, f as accountIdentifierMappingRelations, e as accountIdentifierRelations, d as accountRelations, g as entry, t as transaction } from '../shared/ledger.
|
|
1
|
+
export { a as account, b as accountIdentifier, c as accountIdentifierMapping, f as accountIdentifierMappingRelations, e as accountIdentifierRelations, d as accountRelations, g as entry, t as transaction } from '../shared/ledger.COjHoDby.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
5
|
-
import '../shared/ledger.
|
|
5
|
+
import '../shared/ledger.vnBUBchv.mjs';
|
|
6
6
|
import '@develit-io/general-codes';
|
|
7
7
|
import 'zod';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
8
|
-
const database_schema = require('../shared/ledger.
|
|
8
|
+
const database_schema = require('../shared/ledger.DItsDAaB.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionConfirmationSentAt = require('../shared/ledger.
|
|
10
|
+
const updateTransactionConfirmationSentAt = require('../shared/ledger.rz48dp3t.cjs');
|
|
11
11
|
require('@develit-io/general-codes');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('zod');
|
|
@@ -41,14 +41,14 @@ const updateAccountCommand = async (db, id, input) => {
|
|
|
41
41
|
};
|
|
42
42
|
|
|
43
43
|
const updateTransactionStatusCommand = (db, data) => {
|
|
44
|
-
const { transactionId, status, paymentId, completedAt } = data;
|
|
45
|
-
const
|
|
44
|
+
const { transactionId, status, paymentId, completedAt, statusReason } = data;
|
|
45
|
+
const command = db.update(tables.transaction).set({
|
|
46
46
|
status,
|
|
47
|
+
statusReason,
|
|
47
48
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
48
49
|
completedAt,
|
|
49
50
|
paymentId
|
|
50
|
-
};
|
|
51
|
-
const command = db.update(tables.transaction).set(updateData).where(drizzleOrm.eq(tables.transaction.id, transactionId)).returning();
|
|
51
|
+
}).where(drizzleOrm.eq(tables.transaction.id, transactionId)).returning();
|
|
52
52
|
return { command };
|
|
53
53
|
};
|
|
54
54
|
|
|
@@ -447,7 +447,7 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
447
447
|
{ data: input, schema: updateTransactionConfirmationSentAt.failTransactionInputSchema },
|
|
448
448
|
{ successMessage: "Transaction successfully failed." },
|
|
449
449
|
async (params) => {
|
|
450
|
-
const { transactionId, completedAt } = params;
|
|
450
|
+
const { transactionId, completedAt, statusReason } = params;
|
|
451
451
|
const existingTransaction = await getTransactionByIdQuery(
|
|
452
452
|
this.db,
|
|
453
453
|
transactionId
|
|
@@ -462,6 +462,7 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
462
462
|
const { command } = updateTransactionStatusCommand(this.db, {
|
|
463
463
|
transactionId,
|
|
464
464
|
status: "FAILED",
|
|
465
|
+
statusReason,
|
|
465
466
|
completedAt
|
|
466
467
|
});
|
|
467
468
|
const [updatedTransaction] = await this.db.batch([command]);
|
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, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, i as CreateAccountInput, j as CreateAccountOutput, U as UpdateAccountInput, k as UpdateAccountOutput, D as DeleteAccountInput, l as DeleteAccountOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, L as ListAccountsInput, q as ListAccountsOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, A as UpdateTransactionConfirmationSentAtInput, B 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, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, i as CreateAccountInput, j as CreateAccountOutput, U as UpdateAccountInput, k as UpdateAccountOutput, D as DeleteAccountInput, l as DeleteAccountOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, L as ListAccountsInput, q as ListAccountsOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.CPQn1Ovn.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.B7u8ydpE.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, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, i as CreateAccountInput, j as CreateAccountOutput, U as UpdateAccountInput, k as UpdateAccountOutput, D as DeleteAccountInput, l as DeleteAccountOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, L as ListAccountsInput, q as ListAccountsOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, A as UpdateTransactionConfirmationSentAtInput, B 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, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, i as CreateAccountInput, j as CreateAccountOutput, U as UpdateAccountInput, k as UpdateAccountOutput, D as DeleteAccountInput, l as DeleteAccountOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, L as ListAccountsInput, q as ListAccountsOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.Dv8VNteJ.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.B7u8ydpE.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, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, i as CreateAccountInput, j as CreateAccountOutput, U as UpdateAccountInput, k as UpdateAccountOutput, D as DeleteAccountInput, l as DeleteAccountOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, L as ListAccountsInput, q as ListAccountsOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, A as UpdateTransactionConfirmationSentAtInput, B 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, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, i as CreateAccountInput, j as CreateAccountOutput, U as UpdateAccountInput, k as UpdateAccountOutput, D as DeleteAccountInput, l as DeleteAccountOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, L as ListAccountsInput, q as ListAccountsOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.JmkZHXkM.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.B7u8ydpE.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { first, develitWorker, uuidv4, useResult, createInternalError, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { s as schema } from '../shared/ledger.
|
|
4
|
+
import { s as schema } from '../shared/ledger.COjHoDby.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import { f as createTransactionInputSchema, s as matchTransactionInputSchema, h as failTransactionInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, e as createAccountInputSchema, u as updateAccountInputSchema, g as deleteAccountInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, r as listAccountsInputSchema, l as getAccountIdentifierInputSchema, q as listAccountIdentifiersInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.
|
|
6
|
+
import { f as createTransactionInputSchema, s as matchTransactionInputSchema, h as failTransactionInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, e as createAccountInputSchema, u as updateAccountInputSchema, g as deleteAccountInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, r as listAccountsInputSchema, l as getAccountIdentifierInputSchema, q as listAccountIdentifiersInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.vnBUBchv.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -37,14 +37,14 @@ const updateAccountCommand = async (db, id, input) => {
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
const updateTransactionStatusCommand = (db, data) => {
|
|
40
|
-
const { transactionId, status, paymentId, completedAt } = data;
|
|
41
|
-
const
|
|
40
|
+
const { transactionId, status, paymentId, completedAt, statusReason } = data;
|
|
41
|
+
const command = db.update(tables.transaction).set({
|
|
42
42
|
status,
|
|
43
|
+
statusReason,
|
|
43
44
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
44
45
|
completedAt,
|
|
45
46
|
paymentId
|
|
46
|
-
};
|
|
47
|
-
const command = db.update(tables.transaction).set(updateData).where(eq(tables.transaction.id, transactionId)).returning();
|
|
47
|
+
}).where(eq(tables.transaction.id, transactionId)).returning();
|
|
48
48
|
return { command };
|
|
49
49
|
};
|
|
50
50
|
|
|
@@ -443,7 +443,7 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
443
443
|
{ data: input, schema: failTransactionInputSchema },
|
|
444
444
|
{ successMessage: "Transaction successfully failed." },
|
|
445
445
|
async (params) => {
|
|
446
|
-
const { transactionId, completedAt } = params;
|
|
446
|
+
const { transactionId, completedAt, statusReason } = params;
|
|
447
447
|
const existingTransaction = await getTransactionByIdQuery(
|
|
448
448
|
this.db,
|
|
449
449
|
transactionId
|
|
@@ -458,6 +458,7 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
458
458
|
const { command } = updateTransactionStatusCommand(this.db, {
|
|
459
459
|
transactionId,
|
|
460
460
|
status: "FAILED",
|
|
461
|
+
statusReason,
|
|
461
462
|
completedAt
|
|
462
463
|
});
|
|
463
464
|
const [updatedTransaction] = await this.db.batch([command]);
|
|
@@ -594,7 +594,7 @@ declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "
|
|
|
594
594
|
type TransactionStatus = (typeof TRANSACTION_STATUSES)[number];
|
|
595
595
|
declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER"];
|
|
596
596
|
type TransactionType = (typeof TRANSACTION_TYPES)[number];
|
|
597
|
-
declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER"];
|
|
597
|
+
declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
|
|
598
598
|
type ReferenceType = (typeof REFERENCE_TYPES)[number];
|
|
599
599
|
declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
|
|
600
600
|
type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
|
|
@@ -831,7 +831,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
831
831
|
tableName: "entry";
|
|
832
832
|
dataType: "string";
|
|
833
833
|
columnType: "SQLiteText";
|
|
834
|
-
data: "
|
|
834
|
+
data: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
835
835
|
driverParam: string;
|
|
836
836
|
notNull: true;
|
|
837
837
|
hasDefault: false;
|
|
@@ -844,7 +844,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
844
844
|
generated: undefined;
|
|
845
845
|
}, {}, {
|
|
846
846
|
length: number | undefined;
|
|
847
|
-
$type: "
|
|
847
|
+
$type: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
848
848
|
}>;
|
|
849
849
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
850
850
|
name: "is_balanced";
|
|
@@ -1001,20 +1001,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1001
1001
|
tableName: "transaction";
|
|
1002
1002
|
dataType: "string";
|
|
1003
1003
|
columnType: "SQLiteText";
|
|
1004
|
-
data: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1004
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1005
1005
|
driverParam: string;
|
|
1006
1006
|
notNull: true;
|
|
1007
1007
|
hasDefault: false;
|
|
1008
1008
|
isPrimaryKey: false;
|
|
1009
1009
|
isAutoincrement: false;
|
|
1010
1010
|
hasRuntimeDefault: false;
|
|
1011
|
-
enumValues: ["PAYMENT", "EXCHANGE", "ORDER"];
|
|
1011
|
+
enumValues: ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
|
|
1012
1012
|
baseColumn: never;
|
|
1013
1013
|
identity: undefined;
|
|
1014
1014
|
generated: undefined;
|
|
1015
1015
|
}, {}, {
|
|
1016
1016
|
length: number | undefined;
|
|
1017
|
-
$type: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1017
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1018
1018
|
}>;
|
|
1019
1019
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1020
1020
|
name: "reference_id";
|
|
@@ -1113,7 +1113,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1113
1113
|
tableName: "transaction";
|
|
1114
1114
|
dataType: "string";
|
|
1115
1115
|
columnType: "SQLiteText";
|
|
1116
|
-
data: "FAILED" | "
|
|
1116
|
+
data: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "COMPLETED";
|
|
1117
1117
|
driverParam: string;
|
|
1118
1118
|
notNull: true;
|
|
1119
1119
|
hasDefault: false;
|
|
@@ -1126,7 +1126,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1126
1126
|
generated: undefined;
|
|
1127
1127
|
}, {}, {
|
|
1128
1128
|
length: number | undefined;
|
|
1129
|
-
$type: "FAILED" | "
|
|
1129
|
+
$type: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "COMPLETED";
|
|
1130
1130
|
}>;
|
|
1131
1131
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1132
1132
|
name: "status_reason";
|
|
@@ -594,7 +594,7 @@ declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "
|
|
|
594
594
|
type TransactionStatus = (typeof TRANSACTION_STATUSES)[number];
|
|
595
595
|
declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER"];
|
|
596
596
|
type TransactionType = (typeof TRANSACTION_TYPES)[number];
|
|
597
|
-
declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER"];
|
|
597
|
+
declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
|
|
598
598
|
type ReferenceType = (typeof REFERENCE_TYPES)[number];
|
|
599
599
|
declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
|
|
600
600
|
type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
|
|
@@ -831,7 +831,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
831
831
|
tableName: "entry";
|
|
832
832
|
dataType: "string";
|
|
833
833
|
columnType: "SQLiteText";
|
|
834
|
-
data: "
|
|
834
|
+
data: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
835
835
|
driverParam: string;
|
|
836
836
|
notNull: true;
|
|
837
837
|
hasDefault: false;
|
|
@@ -844,7 +844,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
844
844
|
generated: undefined;
|
|
845
845
|
}, {}, {
|
|
846
846
|
length: number | undefined;
|
|
847
|
-
$type: "
|
|
847
|
+
$type: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
848
848
|
}>;
|
|
849
849
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
850
850
|
name: "is_balanced";
|
|
@@ -1001,20 +1001,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1001
1001
|
tableName: "transaction";
|
|
1002
1002
|
dataType: "string";
|
|
1003
1003
|
columnType: "SQLiteText";
|
|
1004
|
-
data: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1004
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1005
1005
|
driverParam: string;
|
|
1006
1006
|
notNull: true;
|
|
1007
1007
|
hasDefault: false;
|
|
1008
1008
|
isPrimaryKey: false;
|
|
1009
1009
|
isAutoincrement: false;
|
|
1010
1010
|
hasRuntimeDefault: false;
|
|
1011
|
-
enumValues: ["PAYMENT", "EXCHANGE", "ORDER"];
|
|
1011
|
+
enumValues: ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
|
|
1012
1012
|
baseColumn: never;
|
|
1013
1013
|
identity: undefined;
|
|
1014
1014
|
generated: undefined;
|
|
1015
1015
|
}, {}, {
|
|
1016
1016
|
length: number | undefined;
|
|
1017
|
-
$type: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1017
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1018
1018
|
}>;
|
|
1019
1019
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1020
1020
|
name: "reference_id";
|
|
@@ -1113,7 +1113,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1113
1113
|
tableName: "transaction";
|
|
1114
1114
|
dataType: "string";
|
|
1115
1115
|
columnType: "SQLiteText";
|
|
1116
|
-
data: "FAILED" | "
|
|
1116
|
+
data: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "COMPLETED";
|
|
1117
1117
|
driverParam: string;
|
|
1118
1118
|
notNull: true;
|
|
1119
1119
|
hasDefault: false;
|
|
@@ -1126,7 +1126,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1126
1126
|
generated: undefined;
|
|
1127
1127
|
}, {}, {
|
|
1128
1128
|
length: number | undefined;
|
|
1129
|
-
$type: "FAILED" | "
|
|
1129
|
+
$type: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "COMPLETED";
|
|
1130
1130
|
}>;
|
|
1131
1131
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1132
1132
|
name: "status_reason";
|
|
@@ -594,7 +594,7 @@ declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "
|
|
|
594
594
|
type TransactionStatus = (typeof TRANSACTION_STATUSES)[number];
|
|
595
595
|
declare const TRANSACTION_TYPES: readonly ["CLIENT_FUND_IN", "CLIENT_FUND_OUT", "PROVIDER_FUND_IN", "PROVIDER_FUND_OUT", "EXCHANGE", "UNMATCHED", "ADJUSTMENT", "TRANSFER"];
|
|
596
596
|
type TransactionType = (typeof TRANSACTION_TYPES)[number];
|
|
597
|
-
declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER"];
|
|
597
|
+
declare const REFERENCE_TYPES: readonly ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
|
|
598
598
|
type ReferenceType = (typeof REFERENCE_TYPES)[number];
|
|
599
599
|
declare const PAYMENT_CHARGE_TYPES: readonly ["SHA", "OUR", "BEN"];
|
|
600
600
|
type PaymentChargeType = (typeof PAYMENT_CHARGE_TYPES)[number];
|
|
@@ -831,7 +831,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
831
831
|
tableName: "entry";
|
|
832
832
|
dataType: "string";
|
|
833
833
|
columnType: "SQLiteText";
|
|
834
|
-
data: "
|
|
834
|
+
data: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
835
835
|
driverParam: string;
|
|
836
836
|
notNull: true;
|
|
837
837
|
hasDefault: false;
|
|
@@ -844,7 +844,7 @@ declare const entry: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
844
844
|
generated: undefined;
|
|
845
845
|
}, {}, {
|
|
846
846
|
length: number | undefined;
|
|
847
|
-
$type: "
|
|
847
|
+
$type: "PENDING" | "REALIZED" | "FAILED" | "CANCELED";
|
|
848
848
|
}>;
|
|
849
849
|
isBalanced: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
850
850
|
name: "is_balanced";
|
|
@@ -1001,20 +1001,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1001
1001
|
tableName: "transaction";
|
|
1002
1002
|
dataType: "string";
|
|
1003
1003
|
columnType: "SQLiteText";
|
|
1004
|
-
data: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1004
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1005
1005
|
driverParam: string;
|
|
1006
1006
|
notNull: true;
|
|
1007
1007
|
hasDefault: false;
|
|
1008
1008
|
isPrimaryKey: false;
|
|
1009
1009
|
isAutoincrement: false;
|
|
1010
1010
|
hasRuntimeDefault: false;
|
|
1011
|
-
enumValues: ["PAYMENT", "EXCHANGE", "ORDER"];
|
|
1011
|
+
enumValues: ["PAYMENT", "EXCHANGE", "ORDER", "INTERNAL-TRANSFER"];
|
|
1012
1012
|
baseColumn: never;
|
|
1013
1013
|
identity: undefined;
|
|
1014
1014
|
generated: undefined;
|
|
1015
1015
|
}, {}, {
|
|
1016
1016
|
length: number | undefined;
|
|
1017
|
-
$type: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1017
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER" | "INTERNAL-TRANSFER";
|
|
1018
1018
|
}>;
|
|
1019
1019
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1020
1020
|
name: "reference_id";
|
|
@@ -1113,7 +1113,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1113
1113
|
tableName: "transaction";
|
|
1114
1114
|
dataType: "string";
|
|
1115
1115
|
columnType: "SQLiteText";
|
|
1116
|
-
data: "FAILED" | "
|
|
1116
|
+
data: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "COMPLETED";
|
|
1117
1117
|
driverParam: string;
|
|
1118
1118
|
notNull: true;
|
|
1119
1119
|
hasDefault: false;
|
|
@@ -1126,7 +1126,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1126
1126
|
generated: undefined;
|
|
1127
1127
|
}, {}, {
|
|
1128
1128
|
length: number | undefined;
|
|
1129
|
-
$type: "FAILED" | "
|
|
1129
|
+
$type: "FAILED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED" | "COMPLETED";
|
|
1130
1130
|
}>;
|
|
1131
1131
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1132
1132
|
name: "status_reason";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { base } from '@develit-io/backend-sdk';
|
|
2
2
|
import { relations } from 'drizzle-orm';
|
|
3
3
|
import { sqliteTable, integer, text, real } from 'drizzle-orm/sqlite-core';
|
|
4
|
-
import { T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.
|
|
4
|
+
import { T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, R as REFERENCE_TYPES } from './ledger.vnBUBchv.mjs';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
|
|
7
7
|
const account = sqliteTable("account", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.B7u8ydpE.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -404,6 +404,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
404
404
|
PAYMENT: "PAYMENT";
|
|
405
405
|
EXCHANGE: "EXCHANGE";
|
|
406
406
|
ORDER: "ORDER";
|
|
407
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
407
408
|
}>;
|
|
408
409
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
409
410
|
type: z.ZodEnum<{
|
|
@@ -1161,7 +1162,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1161
1162
|
}, z.core.$strip>>>;
|
|
1162
1163
|
status: z.ZodEnum<{
|
|
1163
1164
|
FAILED: "FAILED";
|
|
1164
|
-
COMPLETED: "COMPLETED";
|
|
1165
1165
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1166
1166
|
PAUSED: "PAUSED";
|
|
1167
1167
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
@@ -1169,6 +1169,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1169
1169
|
RETURNING: "RETURNING";
|
|
1170
1170
|
RETURNED: "RETURNED";
|
|
1171
1171
|
CANCELLED: "CANCELLED";
|
|
1172
|
+
COMPLETED: "COMPLETED";
|
|
1172
1173
|
}>;
|
|
1173
1174
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
1174
1175
|
CZK: "CZK";
|
|
@@ -1243,6 +1244,7 @@ interface DeleteAccountOutput {
|
|
|
1243
1244
|
|
|
1244
1245
|
declare const failTransactionInputSchema: z.ZodObject<{
|
|
1245
1246
|
transactionId: z.ZodUUID;
|
|
1247
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
1246
1248
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1247
1249
|
}, z.core.$strip>;
|
|
1248
1250
|
interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
|
|
@@ -1365,6 +1367,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1365
1367
|
PAYMENT: "PAYMENT";
|
|
1366
1368
|
EXCHANGE: "EXCHANGE";
|
|
1367
1369
|
ORDER: "ORDER";
|
|
1370
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1368
1371
|
}>>;
|
|
1369
1372
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1370
1373
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1383,7 +1386,6 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1383
1386
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
1384
1387
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1385
1388
|
FAILED: "FAILED";
|
|
1386
|
-
COMPLETED: "COMPLETED";
|
|
1387
1389
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1388
1390
|
PAUSED: "PAUSED";
|
|
1389
1391
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
@@ -1391,6 +1393,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1391
1393
|
RETURNING: "RETURNING";
|
|
1392
1394
|
RETURNED: "RETURNED";
|
|
1393
1395
|
CANCELLED: "CANCELLED";
|
|
1396
|
+
COMPLETED: "COMPLETED";
|
|
1394
1397
|
}>>;
|
|
1395
1398
|
search: z.ZodOptional<z.ZodString>;
|
|
1396
1399
|
}, z.core.$strip>;
|
|
@@ -1406,6 +1409,7 @@ declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
|
1406
1409
|
PAYMENT: "PAYMENT";
|
|
1407
1410
|
EXCHANGE: "EXCHANGE";
|
|
1408
1411
|
ORDER: "ORDER";
|
|
1412
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1409
1413
|
}>;
|
|
1410
1414
|
referenceId: z.ZodUUID;
|
|
1411
1415
|
}, z.core.$strip>;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const drizzleOrm = require('drizzle-orm');
|
|
5
5
|
const sqliteCore = require('drizzle-orm/sqlite-core');
|
|
6
|
-
const updateTransactionConfirmationSentAt = require('./ledger.
|
|
6
|
+
const updateTransactionConfirmationSentAt = require('./ledger.rz48dp3t.cjs');
|
|
7
7
|
require('@develit-io/general-codes');
|
|
8
8
|
|
|
9
9
|
const account = sqliteCore.sqliteTable("account", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.B7u8ydpE.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -404,6 +404,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
404
404
|
PAYMENT: "PAYMENT";
|
|
405
405
|
EXCHANGE: "EXCHANGE";
|
|
406
406
|
ORDER: "ORDER";
|
|
407
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
407
408
|
}>;
|
|
408
409
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
409
410
|
type: z.ZodEnum<{
|
|
@@ -1161,7 +1162,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1161
1162
|
}, z.core.$strip>>>;
|
|
1162
1163
|
status: z.ZodEnum<{
|
|
1163
1164
|
FAILED: "FAILED";
|
|
1164
|
-
COMPLETED: "COMPLETED";
|
|
1165
1165
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1166
1166
|
PAUSED: "PAUSED";
|
|
1167
1167
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
@@ -1169,6 +1169,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1169
1169
|
RETURNING: "RETURNING";
|
|
1170
1170
|
RETURNED: "RETURNED";
|
|
1171
1171
|
CANCELLED: "CANCELLED";
|
|
1172
|
+
COMPLETED: "COMPLETED";
|
|
1172
1173
|
}>;
|
|
1173
1174
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
1174
1175
|
CZK: "CZK";
|
|
@@ -1243,6 +1244,7 @@ interface DeleteAccountOutput {
|
|
|
1243
1244
|
|
|
1244
1245
|
declare const failTransactionInputSchema: z.ZodObject<{
|
|
1245
1246
|
transactionId: z.ZodUUID;
|
|
1247
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
1246
1248
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1247
1249
|
}, z.core.$strip>;
|
|
1248
1250
|
interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
|
|
@@ -1365,6 +1367,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1365
1367
|
PAYMENT: "PAYMENT";
|
|
1366
1368
|
EXCHANGE: "EXCHANGE";
|
|
1367
1369
|
ORDER: "ORDER";
|
|
1370
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1368
1371
|
}>>;
|
|
1369
1372
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1370
1373
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1383,7 +1386,6 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1383
1386
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
1384
1387
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1385
1388
|
FAILED: "FAILED";
|
|
1386
|
-
COMPLETED: "COMPLETED";
|
|
1387
1389
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1388
1390
|
PAUSED: "PAUSED";
|
|
1389
1391
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
@@ -1391,6 +1393,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1391
1393
|
RETURNING: "RETURNING";
|
|
1392
1394
|
RETURNED: "RETURNED";
|
|
1393
1395
|
CANCELLED: "CANCELLED";
|
|
1396
|
+
COMPLETED: "COMPLETED";
|
|
1394
1397
|
}>>;
|
|
1395
1398
|
search: z.ZodOptional<z.ZodString>;
|
|
1396
1399
|
}, z.core.$strip>;
|
|
@@ -1406,6 +1409,7 @@ declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
|
1406
1409
|
PAYMENT: "PAYMENT";
|
|
1407
1410
|
EXCHANGE: "EXCHANGE";
|
|
1408
1411
|
ORDER: "ORDER";
|
|
1412
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1409
1413
|
}>;
|
|
1410
1414
|
referenceId: z.ZodUUID;
|
|
1411
1415
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.B7u8ydpE.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -404,6 +404,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
404
404
|
PAYMENT: "PAYMENT";
|
|
405
405
|
EXCHANGE: "EXCHANGE";
|
|
406
406
|
ORDER: "ORDER";
|
|
407
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
407
408
|
}>;
|
|
408
409
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
409
410
|
type: z.ZodEnum<{
|
|
@@ -1161,7 +1162,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1161
1162
|
}, z.core.$strip>>>;
|
|
1162
1163
|
status: z.ZodEnum<{
|
|
1163
1164
|
FAILED: "FAILED";
|
|
1164
|
-
COMPLETED: "COMPLETED";
|
|
1165
1165
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1166
1166
|
PAUSED: "PAUSED";
|
|
1167
1167
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
@@ -1169,6 +1169,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1169
1169
|
RETURNING: "RETURNING";
|
|
1170
1170
|
RETURNED: "RETURNED";
|
|
1171
1171
|
CANCELLED: "CANCELLED";
|
|
1172
|
+
COMPLETED: "COMPLETED";
|
|
1172
1173
|
}>;
|
|
1173
1174
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
1174
1175
|
CZK: "CZK";
|
|
@@ -1243,6 +1244,7 @@ interface DeleteAccountOutput {
|
|
|
1243
1244
|
|
|
1244
1245
|
declare const failTransactionInputSchema: z.ZodObject<{
|
|
1245
1246
|
transactionId: z.ZodUUID;
|
|
1247
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
1246
1248
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1247
1249
|
}, z.core.$strip>;
|
|
1248
1250
|
interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
|
|
@@ -1365,6 +1367,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1365
1367
|
PAYMENT: "PAYMENT";
|
|
1366
1368
|
EXCHANGE: "EXCHANGE";
|
|
1367
1369
|
ORDER: "ORDER";
|
|
1370
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1368
1371
|
}>>;
|
|
1369
1372
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1370
1373
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1383,7 +1386,6 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1383
1386
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
1384
1387
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1385
1388
|
FAILED: "FAILED";
|
|
1386
|
-
COMPLETED: "COMPLETED";
|
|
1387
1389
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1388
1390
|
PAUSED: "PAUSED";
|
|
1389
1391
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
@@ -1391,6 +1393,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1391
1393
|
RETURNING: "RETURNING";
|
|
1392
1394
|
RETURNED: "RETURNED";
|
|
1393
1395
|
CANCELLED: "CANCELLED";
|
|
1396
|
+
COMPLETED: "COMPLETED";
|
|
1394
1397
|
}>>;
|
|
1395
1398
|
search: z.ZodOptional<z.ZodString>;
|
|
1396
1399
|
}, z.core.$strip>;
|
|
@@ -1406,6 +1409,7 @@ declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
|
1406
1409
|
PAYMENT: "PAYMENT";
|
|
1407
1410
|
EXCHANGE: "EXCHANGE";
|
|
1408
1411
|
ORDER: "ORDER";
|
|
1412
|
+
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1409
1413
|
}>;
|
|
1410
1414
|
referenceId: z.ZodUUID;
|
|
1411
1415
|
}, z.core.$strip>;
|
|
@@ -83,7 +83,12 @@ const TRANSACTION_TYPES = [
|
|
|
83
83
|
"TRANSFER"
|
|
84
84
|
// internal transfer between accounts
|
|
85
85
|
];
|
|
86
|
-
const REFERENCE_TYPES = [
|
|
86
|
+
const REFERENCE_TYPES = [
|
|
87
|
+
"PAYMENT",
|
|
88
|
+
"EXCHANGE",
|
|
89
|
+
"ORDER",
|
|
90
|
+
"INTERNAL-TRANSFER"
|
|
91
|
+
];
|
|
87
92
|
const PAYMENT_CHARGE_TYPES = ["SHA", "OUR", "BEN"];
|
|
88
93
|
const PAYMENT_TYPES = ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
|
|
89
94
|
|
|
@@ -193,6 +198,7 @@ const deleteAccountInputSchema = zod.z.object({
|
|
|
193
198
|
|
|
194
199
|
const failTransactionInputSchema = zod.z.object({
|
|
195
200
|
transactionId: zod.z.uuid(),
|
|
201
|
+
statusReason: zod.z.string().optional(),
|
|
196
202
|
completedAt: zod.z.date().optional()
|
|
197
203
|
});
|
|
198
204
|
|
|
@@ -81,7 +81,12 @@ const TRANSACTION_TYPES = [
|
|
|
81
81
|
"TRANSFER"
|
|
82
82
|
// internal transfer between accounts
|
|
83
83
|
];
|
|
84
|
-
const REFERENCE_TYPES = [
|
|
84
|
+
const REFERENCE_TYPES = [
|
|
85
|
+
"PAYMENT",
|
|
86
|
+
"EXCHANGE",
|
|
87
|
+
"ORDER",
|
|
88
|
+
"INTERNAL-TRANSFER"
|
|
89
|
+
];
|
|
85
90
|
const PAYMENT_CHARGE_TYPES = ["SHA", "OUR", "BEN"];
|
|
86
91
|
const PAYMENT_TYPES = ["DOMESTIC", "SEPA", "SWIFT", "UNKNOWN"];
|
|
87
92
|
|
|
@@ -191,6 +196,7 @@ const deleteAccountInputSchema = z.object({
|
|
|
191
196
|
|
|
192
197
|
const failTransactionInputSchema = z.object({
|
|
193
198
|
transactionId: z.uuid(),
|
|
199
|
+
statusReason: z.string().optional(),
|
|
194
200
|
completedAt: z.date().optional()
|
|
195
201
|
});
|
|
196
202
|
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const updateTransactionConfirmationSentAt = require('./shared/ledger.
|
|
3
|
+
const updateTransactionConfirmationSentAt = require('./shared/ledger.rz48dp3t.cjs');
|
|
4
4
|
const generalCodes = require('@develit-io/general-codes');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, 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 { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 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.B7u8ydpE.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CPQn1Ovn.cjs';
|
|
3
|
+
export { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.CPQn1Ovn.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 { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 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.B7u8ydpE.mjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.Dv8VNteJ.mjs';
|
|
3
|
+
export { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.Dv8VNteJ.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 { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 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.B7u8ydpE.js';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.JmkZHXkM.js';
|
|
3
|
+
export { N as AccountIdentifierInsertType, P as AccountIdentifierMappingInsertType, O as AccountIdentifierMappingSelectType, K as AccountIdentifierSelectType, J as AccountInsertType, H as AccountSelectType, R as AccountWithIdentifiersSelectType, i as CreateAccountInput, j as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, w as FindAccountByIdentifierInput, x as FindAccountByIdentifierOutput, y as GetAccountBalanceInput, z as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, d as GetTransactionByIdOutput, e as GetTransactionsByIdReferenceInput, f as GetTransactionsByReferenceIdOutput, g as GetTransactionsInput, h as GetTransactionsOutput, I as IncludeRelation, E as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, Q as TransactionInsertType, U as UpdateAccountInput, k as UpdateAccountOutput, A as UpdateTransactionConfirmationSentAtInput, B as UpdateTransactionConfirmationSentAtOutput, S as createAccountInputSchema, V as createTransactionInputSchema, W as deleteAccountInputSchema, X as failTransactionInputSchema, Y as findAccountByIdentifierInputSchema, _ as getAccountBalanceInputSchema, $ as getAccountIdentifierInputSchema, Z as getAccountInputSchema, a0 as getAccountsByOwnerInputSchema, a1 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a2 as getTransactionsInputSchema, a4 as listAccountIdentifiersInputSchema, a5 as listAccountsInputSchema, a6 as matchTransactionInputSchema, a7 as updateAccountInputSchema, a8 as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.JmkZHXkM.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/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, x as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, w as PAYMENT_DIRECTIONS, v as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as createAccountInputSchema, f as createTransactionInputSchema, g as deleteAccountInputSchema, h as failTransactionInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, l as getAccountIdentifierInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, q as listAccountIdentifiersInputSchema, r as listAccountsInputSchema, s as matchTransactionInputSchema, u as updateAccountInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.
|
|
1
|
+
export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, x as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, w as PAYMENT_DIRECTIONS, v as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as createAccountInputSchema, f as createTransactionInputSchema, g as deleteAccountInputSchema, h as failTransactionInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, l as getAccountIdentifierInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, q as listAccountIdentifiersInputSchema, r as listAccountsInputSchema, s as matchTransactionInputSchema, u as updateAccountInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.vnBUBchv.mjs';
|
|
2
2
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@develit-io/backend-sdk';
|