@develit-services/ledger 0.0.19 → 0.0.21
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.DFymid1H.cjs → ledger.9tetE9eC.cjs} +2 -1
- package/dist/shared/{ledger.B9zveEhM.mjs → ledger.BXyTnCr6.mjs} +1 -1
- package/dist/shared/{ledger.B_wM5r25.mjs → ledger.Bkq62KHp.mjs} +2 -1
- package/dist/shared/{ledger.Di0-7_JN.d.cts → ledger.C41JFtlX.d.cts} +5 -4
- package/dist/shared/{ledger.Di0-7_JN.d.mts → ledger.C41JFtlX.d.mts} +5 -4
- package/dist/shared/{ledger.Di0-7_JN.d.ts → ledger.C41JFtlX.d.ts} +5 -4
- package/dist/shared/{ledger.LrybLfmP.d.mts → ledger.CG2Q_Db1.d.mts} +6 -5
- package/dist/shared/{ledger.Wj5OAaIO.d.ts → ledger.CHmV-HnX.d.cts} +6 -5
- package/dist/shared/{ledger.D2mntyVk.cjs → ledger.Ca6jkAMb.cjs} +1 -1
- package/dist/shared/{ledger.-S7bit-v.d.cts → ledger.J0NBnZwR.d.ts} +6 -5
- 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 +6 -9
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.Ca6jkAMb.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.9tetE9eC.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.C41JFtlX.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.C41JFtlX.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.C41JFtlX.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.BXyTnCr6.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.Bkq62KHp.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.Ca6jkAMb.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionConfirmationSentAt = require('../shared/ledger.
|
|
10
|
+
const updateTransactionConfirmationSentAt = require('../shared/ledger.9tetE9eC.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.CHmV-HnX.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.C41JFtlX.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.CG2Q_Db1.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.C41JFtlX.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.J0NBnZwR.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.C41JFtlX.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.BXyTnCr6.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.Bkq62KHp.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]);
|
|
@@ -68,7 +68,7 @@ const TRANSACTION_STATUSES = [
|
|
|
68
68
|
"RETURNED",
|
|
69
69
|
"FAILED",
|
|
70
70
|
"CANCELLED",
|
|
71
|
-
"
|
|
71
|
+
"SETTLED"
|
|
72
72
|
];
|
|
73
73
|
const TRANSACTION_TYPES = [
|
|
74
74
|
"CLIENT_FUND_IN",
|
|
@@ -198,6 +198,7 @@ const deleteAccountInputSchema = zod.z.object({
|
|
|
198
198
|
|
|
199
199
|
const failTransactionInputSchema = zod.z.object({
|
|
200
200
|
transactionId: zod.z.uuid(),
|
|
201
|
+
statusReason: zod.z.string().optional(),
|
|
201
202
|
completedAt: zod.z.date().optional()
|
|
202
203
|
});
|
|
203
204
|
|
|
@@ -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.Bkq62KHp.mjs';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
|
|
7
7
|
const account = sqliteTable("account", {
|
|
@@ -66,7 +66,7 @@ const TRANSACTION_STATUSES = [
|
|
|
66
66
|
"RETURNED",
|
|
67
67
|
"FAILED",
|
|
68
68
|
"CANCELLED",
|
|
69
|
-
"
|
|
69
|
+
"SETTLED"
|
|
70
70
|
];
|
|
71
71
|
const TRANSACTION_TYPES = [
|
|
72
72
|
"CLIENT_FUND_IN",
|
|
@@ -196,6 +196,7 @@ const deleteAccountInputSchema = z.object({
|
|
|
196
196
|
|
|
197
197
|
const failTransactionInputSchema = z.object({
|
|
198
198
|
transactionId: z.uuid(),
|
|
199
|
+
statusReason: z.string().optional(),
|
|
199
200
|
completedAt: z.date().optional()
|
|
200
201
|
});
|
|
201
202
|
|
|
@@ -590,7 +590,7 @@ declare const IDENTIFIER_KINDS: readonly ["IBAN", "LOCAL_CZ", "SWIFT", "CRYPTO_A
|
|
|
590
590
|
type IdentifierKind = (typeof IDENTIFIER_KINDS)[number];
|
|
591
591
|
declare const ENTRY_STATUSES: readonly ["PENDING", "REALIZED", "FAILED", "CANCELED"];
|
|
592
592
|
type EntryStatus = (typeof ENTRY_STATUSES)[number];
|
|
593
|
-
declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "
|
|
593
|
+
declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
|
|
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];
|
|
@@ -641,6 +641,7 @@ interface TransactionMetadata {
|
|
|
641
641
|
currency?: CurrencyCode;
|
|
642
642
|
amount?: number;
|
|
643
643
|
purpose?: string;
|
|
644
|
+
sendAsSinglePayment?: boolean;
|
|
644
645
|
};
|
|
645
646
|
/**
|
|
646
647
|
* Tags for categorization or grouping of the transaction
|
|
@@ -1113,20 +1114,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1113
1114
|
tableName: "transaction";
|
|
1114
1115
|
dataType: "string";
|
|
1115
1116
|
columnType: "SQLiteText";
|
|
1116
|
-
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "
|
|
1117
|
+
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "SETTLED";
|
|
1117
1118
|
driverParam: string;
|
|
1118
1119
|
notNull: true;
|
|
1119
1120
|
hasDefault: false;
|
|
1120
1121
|
isPrimaryKey: false;
|
|
1121
1122
|
isAutoincrement: false;
|
|
1122
1123
|
hasRuntimeDefault: false;
|
|
1123
|
-
enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "
|
|
1124
|
+
enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
|
|
1124
1125
|
baseColumn: never;
|
|
1125
1126
|
identity: undefined;
|
|
1126
1127
|
generated: undefined;
|
|
1127
1128
|
}, {}, {
|
|
1128
1129
|
length: number | undefined;
|
|
1129
|
-
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "
|
|
1130
|
+
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "SETTLED";
|
|
1130
1131
|
}>;
|
|
1131
1132
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1132
1133
|
name: "status_reason";
|
|
@@ -590,7 +590,7 @@ declare const IDENTIFIER_KINDS: readonly ["IBAN", "LOCAL_CZ", "SWIFT", "CRYPTO_A
|
|
|
590
590
|
type IdentifierKind = (typeof IDENTIFIER_KINDS)[number];
|
|
591
591
|
declare const ENTRY_STATUSES: readonly ["PENDING", "REALIZED", "FAILED", "CANCELED"];
|
|
592
592
|
type EntryStatus = (typeof ENTRY_STATUSES)[number];
|
|
593
|
-
declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "
|
|
593
|
+
declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
|
|
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];
|
|
@@ -641,6 +641,7 @@ interface TransactionMetadata {
|
|
|
641
641
|
currency?: CurrencyCode;
|
|
642
642
|
amount?: number;
|
|
643
643
|
purpose?: string;
|
|
644
|
+
sendAsSinglePayment?: boolean;
|
|
644
645
|
};
|
|
645
646
|
/**
|
|
646
647
|
* Tags for categorization or grouping of the transaction
|
|
@@ -1113,20 +1114,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1113
1114
|
tableName: "transaction";
|
|
1114
1115
|
dataType: "string";
|
|
1115
1116
|
columnType: "SQLiteText";
|
|
1116
|
-
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "
|
|
1117
|
+
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "SETTLED";
|
|
1117
1118
|
driverParam: string;
|
|
1118
1119
|
notNull: true;
|
|
1119
1120
|
hasDefault: false;
|
|
1120
1121
|
isPrimaryKey: false;
|
|
1121
1122
|
isAutoincrement: false;
|
|
1122
1123
|
hasRuntimeDefault: false;
|
|
1123
|
-
enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "
|
|
1124
|
+
enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
|
|
1124
1125
|
baseColumn: never;
|
|
1125
1126
|
identity: undefined;
|
|
1126
1127
|
generated: undefined;
|
|
1127
1128
|
}, {}, {
|
|
1128
1129
|
length: number | undefined;
|
|
1129
|
-
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "
|
|
1130
|
+
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "SETTLED";
|
|
1130
1131
|
}>;
|
|
1131
1132
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1132
1133
|
name: "status_reason";
|
|
@@ -590,7 +590,7 @@ declare const IDENTIFIER_KINDS: readonly ["IBAN", "LOCAL_CZ", "SWIFT", "CRYPTO_A
|
|
|
590
590
|
type IdentifierKind = (typeof IDENTIFIER_KINDS)[number];
|
|
591
591
|
declare const ENTRY_STATUSES: readonly ["PENDING", "REALIZED", "FAILED", "CANCELED"];
|
|
592
592
|
type EntryStatus = (typeof ENTRY_STATUSES)[number];
|
|
593
|
-
declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "
|
|
593
|
+
declare const TRANSACTION_STATUSES: readonly ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
|
|
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];
|
|
@@ -641,6 +641,7 @@ interface TransactionMetadata {
|
|
|
641
641
|
currency?: CurrencyCode;
|
|
642
642
|
amount?: number;
|
|
643
643
|
purpose?: string;
|
|
644
|
+
sendAsSinglePayment?: boolean;
|
|
644
645
|
};
|
|
645
646
|
/**
|
|
646
647
|
* Tags for categorization or grouping of the transaction
|
|
@@ -1113,20 +1114,20 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1113
1114
|
tableName: "transaction";
|
|
1114
1115
|
dataType: "string";
|
|
1115
1116
|
columnType: "SQLiteText";
|
|
1116
|
-
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "
|
|
1117
|
+
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "SETTLED";
|
|
1117
1118
|
driverParam: string;
|
|
1118
1119
|
notNull: true;
|
|
1119
1120
|
hasDefault: false;
|
|
1120
1121
|
isPrimaryKey: false;
|
|
1121
1122
|
isAutoincrement: false;
|
|
1122
1123
|
hasRuntimeDefault: false;
|
|
1123
|
-
enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "
|
|
1124
|
+
enumValues: ["WAITING_FOR_PAYMENT", "PAUSED", "WAITING_FOR_MANUAL_PROCESSING", "MATCHED", "RETURNING", "RETURNED", "FAILED", "CANCELLED", "SETTLED"];
|
|
1124
1125
|
baseColumn: never;
|
|
1125
1126
|
identity: undefined;
|
|
1126
1127
|
generated: undefined;
|
|
1127
1128
|
}, {}, {
|
|
1128
1129
|
length: number | undefined;
|
|
1129
|
-
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "
|
|
1130
|
+
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "SETTLED";
|
|
1130
1131
|
}>;
|
|
1131
1132
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1132
1133
|
name: "status_reason";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.C41JFtlX.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -554,6 +554,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
554
554
|
AVAX: "AVAX";
|
|
555
555
|
}>>;
|
|
556
556
|
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
IM: "IM";
|
|
557
558
|
AF: "AF";
|
|
558
559
|
AL: "AL";
|
|
559
560
|
DZ: "DZ";
|
|
@@ -642,7 +643,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
642
643
|
IR: "IR";
|
|
643
644
|
IQ: "IQ";
|
|
644
645
|
IE: "IE";
|
|
645
|
-
IM: "IM";
|
|
646
646
|
IL: "IL";
|
|
647
647
|
IT: "IT";
|
|
648
648
|
CI: "CI";
|
|
@@ -883,6 +883,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
883
883
|
AVAX: "AVAX";
|
|
884
884
|
}>>;
|
|
885
885
|
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
886
|
+
IM: "IM";
|
|
886
887
|
AF: "AF";
|
|
887
888
|
AL: "AL";
|
|
888
889
|
DZ: "DZ";
|
|
@@ -971,7 +972,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
971
972
|
IR: "IR";
|
|
972
973
|
IQ: "IQ";
|
|
973
974
|
IE: "IE";
|
|
974
|
-
IM: "IM";
|
|
975
975
|
IL: "IL";
|
|
976
976
|
IT: "IT";
|
|
977
977
|
CI: "CI";
|
|
@@ -1169,7 +1169,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1169
1169
|
RETURNED: "RETURNED";
|
|
1170
1170
|
FAILED: "FAILED";
|
|
1171
1171
|
CANCELLED: "CANCELLED";
|
|
1172
|
-
|
|
1172
|
+
SETTLED: "SETTLED";
|
|
1173
1173
|
}>;
|
|
1174
1174
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
1175
1175
|
CZK: "CZK";
|
|
@@ -1244,6 +1244,7 @@ interface DeleteAccountOutput {
|
|
|
1244
1244
|
|
|
1245
1245
|
declare const failTransactionInputSchema: z.ZodObject<{
|
|
1246
1246
|
transactionId: z.ZodUUID;
|
|
1247
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
1247
1248
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1248
1249
|
}, z.core.$strip>;
|
|
1249
1250
|
interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
|
|
@@ -1392,7 +1393,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1392
1393
|
RETURNED: "RETURNED";
|
|
1393
1394
|
FAILED: "FAILED";
|
|
1394
1395
|
CANCELLED: "CANCELLED";
|
|
1395
|
-
|
|
1396
|
+
SETTLED: "SETTLED";
|
|
1396
1397
|
}>>;
|
|
1397
1398
|
search: z.ZodOptional<z.ZodString>;
|
|
1398
1399
|
}, 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.C41JFtlX.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -554,6 +554,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
554
554
|
AVAX: "AVAX";
|
|
555
555
|
}>>;
|
|
556
556
|
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
IM: "IM";
|
|
557
558
|
AF: "AF";
|
|
558
559
|
AL: "AL";
|
|
559
560
|
DZ: "DZ";
|
|
@@ -642,7 +643,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
642
643
|
IR: "IR";
|
|
643
644
|
IQ: "IQ";
|
|
644
645
|
IE: "IE";
|
|
645
|
-
IM: "IM";
|
|
646
646
|
IL: "IL";
|
|
647
647
|
IT: "IT";
|
|
648
648
|
CI: "CI";
|
|
@@ -883,6 +883,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
883
883
|
AVAX: "AVAX";
|
|
884
884
|
}>>;
|
|
885
885
|
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
886
|
+
IM: "IM";
|
|
886
887
|
AF: "AF";
|
|
887
888
|
AL: "AL";
|
|
888
889
|
DZ: "DZ";
|
|
@@ -971,7 +972,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
971
972
|
IR: "IR";
|
|
972
973
|
IQ: "IQ";
|
|
973
974
|
IE: "IE";
|
|
974
|
-
IM: "IM";
|
|
975
975
|
IL: "IL";
|
|
976
976
|
IT: "IT";
|
|
977
977
|
CI: "CI";
|
|
@@ -1169,7 +1169,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1169
1169
|
RETURNED: "RETURNED";
|
|
1170
1170
|
FAILED: "FAILED";
|
|
1171
1171
|
CANCELLED: "CANCELLED";
|
|
1172
|
-
|
|
1172
|
+
SETTLED: "SETTLED";
|
|
1173
1173
|
}>;
|
|
1174
1174
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
1175
1175
|
CZK: "CZK";
|
|
@@ -1244,6 +1244,7 @@ interface DeleteAccountOutput {
|
|
|
1244
1244
|
|
|
1245
1245
|
declare const failTransactionInputSchema: z.ZodObject<{
|
|
1246
1246
|
transactionId: z.ZodUUID;
|
|
1247
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
1247
1248
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1248
1249
|
}, z.core.$strip>;
|
|
1249
1250
|
interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
|
|
@@ -1392,7 +1393,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1392
1393
|
RETURNED: "RETURNED";
|
|
1393
1394
|
FAILED: "FAILED";
|
|
1394
1395
|
CANCELLED: "CANCELLED";
|
|
1395
|
-
|
|
1396
|
+
SETTLED: "SETTLED";
|
|
1396
1397
|
}>>;
|
|
1397
1398
|
search: z.ZodOptional<z.ZodString>;
|
|
1398
1399
|
}, 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.9tetE9eC.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.C41JFtlX.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -554,6 +554,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
554
554
|
AVAX: "AVAX";
|
|
555
555
|
}>>;
|
|
556
556
|
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
557
|
+
IM: "IM";
|
|
557
558
|
AF: "AF";
|
|
558
559
|
AL: "AL";
|
|
559
560
|
DZ: "DZ";
|
|
@@ -642,7 +643,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
642
643
|
IR: "IR";
|
|
643
644
|
IQ: "IQ";
|
|
644
645
|
IE: "IE";
|
|
645
|
-
IM: "IM";
|
|
646
646
|
IL: "IL";
|
|
647
647
|
IT: "IT";
|
|
648
648
|
CI: "CI";
|
|
@@ -883,6 +883,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
883
883
|
AVAX: "AVAX";
|
|
884
884
|
}>>;
|
|
885
885
|
countryCode: z.ZodOptional<z.ZodEnum<{
|
|
886
|
+
IM: "IM";
|
|
886
887
|
AF: "AF";
|
|
887
888
|
AL: "AL";
|
|
888
889
|
DZ: "DZ";
|
|
@@ -971,7 +972,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
971
972
|
IR: "IR";
|
|
972
973
|
IQ: "IQ";
|
|
973
974
|
IE: "IE";
|
|
974
|
-
IM: "IM";
|
|
975
975
|
IL: "IL";
|
|
976
976
|
IT: "IT";
|
|
977
977
|
CI: "CI";
|
|
@@ -1169,7 +1169,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1169
1169
|
RETURNED: "RETURNED";
|
|
1170
1170
|
FAILED: "FAILED";
|
|
1171
1171
|
CANCELLED: "CANCELLED";
|
|
1172
|
-
|
|
1172
|
+
SETTLED: "SETTLED";
|
|
1173
1173
|
}>;
|
|
1174
1174
|
currency: z.ZodOptional<z.ZodEnum<{
|
|
1175
1175
|
CZK: "CZK";
|
|
@@ -1244,6 +1244,7 @@ interface DeleteAccountOutput {
|
|
|
1244
1244
|
|
|
1245
1245
|
declare const failTransactionInputSchema: z.ZodObject<{
|
|
1246
1246
|
transactionId: z.ZodUUID;
|
|
1247
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
1247
1248
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1248
1249
|
}, z.core.$strip>;
|
|
1249
1250
|
interface FailTransactionInput extends z.infer<typeof failTransactionInputSchema> {
|
|
@@ -1392,7 +1393,7 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1392
1393
|
RETURNED: "RETURNED";
|
|
1393
1394
|
FAILED: "FAILED";
|
|
1394
1395
|
CANCELLED: "CANCELLED";
|
|
1395
|
-
|
|
1396
|
+
SETTLED: "SETTLED";
|
|
1396
1397
|
}>>;
|
|
1397
1398
|
search: z.ZodOptional<z.ZodString>;
|
|
1398
1399
|
}, z.core.$strip>;
|
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.9tetE9eC.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.C41JFtlX.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CHmV-HnX.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.CHmV-HnX.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.C41JFtlX.mjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CG2Q_Db1.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.CG2Q_Db1.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.C41JFtlX.js';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.J0NBnZwR.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.J0NBnZwR.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.Bkq62KHp.mjs';
|
|
2
2
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/ledger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.21",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -30,28 +30,25 @@
|
|
|
30
30
|
"./dist"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"dev": "wrangler dev --port
|
|
33
|
+
"dev": "wrangler dev --port 9235 --persist-to ../../.wrangler/state",
|
|
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
39
|
"types": "wrangler types --env-interface LedgerEnv --include-runtime false",
|
|
40
|
-
"typecheck": "tsc",
|
|
41
40
|
"lint": "biome check",
|
|
42
41
|
"lint:fix": "biome format --write && biome lint --write",
|
|
43
42
|
"test": "vitest",
|
|
44
43
|
"test:cov": "vitest run --coverage",
|
|
45
44
|
"test:unit": "vitest unit fixtures",
|
|
46
45
|
"test:int": "vitest integration",
|
|
47
|
-
"build": "unbuild"
|
|
48
|
-
"changelogen": "bunx changelogen@latest --bump",
|
|
49
|
-
"release": "bun run build && bunx changelogen@latest --release --push && npm publish --access public"
|
|
46
|
+
"build": "unbuild"
|
|
50
47
|
},
|
|
51
48
|
"peerDependencies": {
|
|
52
|
-
"@develit-io/backend-sdk": "
|
|
53
|
-
"drizzle-kit": "
|
|
54
|
-
"drizzle-orm": "
|
|
49
|
+
"@develit-io/backend-sdk": "9.1.6",
|
|
50
|
+
"drizzle-kit": "0.31.8",
|
|
51
|
+
"drizzle-orm": "0.45.0",
|
|
55
52
|
"drizzle-seed": "*",
|
|
56
53
|
"wrangler": "4.50.0",
|
|
57
54
|
"zod": "4.1.13"
|