@develit-services/ledger 0.0.14 → 0.0.15
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 +14 -17
- 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 +14 -17
- package/dist/shared/{ledger.qEafj0Ix.mjs → ledger.62Uvzk2B.mjs} +1 -1
- package/dist/shared/{ledger.CDuhIB9s.cjs → ledger.B_rvkGCN.cjs} +1 -1
- package/dist/shared/{ledger.bWo3rI1l.d.cts → ledger.BisWaucp.d.mts} +12 -11
- package/dist/shared/{ledger.D8XNEnr1.mjs → ledger.C-t6MiyI.mjs} +1 -0
- package/dist/shared/{ledger.DXlB4bbD.cjs → ledger.CB2NrA0w.cjs} +1 -0
- package/dist/shared/{ledger.CrqaHbwM.d.ts → ledger.UBCm2g3M.d.cts} +12 -11
- package/dist/shared/{ledger.DLQ2e8kE.d.mts → ledger.ts44O6FU.d.ts} +12 -11
- package/dist/shared/{ledger.C9ZgmZrv.d.cts → ledger.x5MljBDs.d.cts} +8 -8
- package/dist/shared/{ledger.C9ZgmZrv.d.mts → ledger.x5MljBDs.d.mts} +8 -8
- package/dist/shared/{ledger.C9ZgmZrv.d.ts → ledger.x5MljBDs.d.ts} +8 -8
- 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.B_rvkGCN.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.CB2NrA0w.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.x5MljBDs.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.x5MljBDs.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.x5MljBDs.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.62Uvzk2B.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.C-t6MiyI.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.B_rvkGCN.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionConfirmationSentAt = require('../shared/ledger.
|
|
10
|
+
const updateTransactionConfirmationSentAt = require('../shared/ledger.CB2NrA0w.cjs');
|
|
11
11
|
require('@develit-io/general-codes');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('zod');
|
|
@@ -40,11 +40,13 @@ const updateAccountCommand = async (db, id, input) => {
|
|
|
40
40
|
return { command };
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
const updateTransactionStatusCommand =
|
|
43
|
+
const updateTransactionStatusCommand = (db, data) => {
|
|
44
|
+
const { transactionId, status, paymentId, completedAt } = data;
|
|
44
45
|
const updateData = {
|
|
45
46
|
status,
|
|
46
47
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
47
|
-
|
|
48
|
+
completedAt,
|
|
49
|
+
paymentId
|
|
48
50
|
};
|
|
49
51
|
const command = db.update(tables.transaction).set(updateData).where(drizzleOrm.eq(tables.transaction.id, transactionId)).returning();
|
|
50
52
|
return { command };
|
|
@@ -394,7 +396,7 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
394
396
|
{ data: input, schema: updateTransactionConfirmationSentAt.matchTransactionInputSchema },
|
|
395
397
|
{ successMessage: "Transaction successfully matched." },
|
|
396
398
|
async (params) => {
|
|
397
|
-
const { transactionId, completedAt } = params;
|
|
399
|
+
const { transactionId, completedAt, paymentId } = params;
|
|
398
400
|
const existingTransaction = await getTransactionByIdQuery(
|
|
399
401
|
this.db,
|
|
400
402
|
transactionId
|
|
@@ -406,21 +408,19 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
406
408
|
code: "NOT_FOUND"
|
|
407
409
|
});
|
|
408
410
|
}
|
|
409
|
-
const
|
|
410
|
-
this.db,
|
|
411
|
+
const transaction = await updateTransactionStatusCommand(this.db, {
|
|
411
412
|
transactionId,
|
|
412
|
-
"MATCHED",
|
|
413
|
-
completedAt
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
if (!
|
|
413
|
+
status: "MATCHED",
|
|
414
|
+
completedAt,
|
|
415
|
+
paymentId
|
|
416
|
+
}).command.execute().then(backendSdk.first);
|
|
417
|
+
if (!transaction) {
|
|
417
418
|
throw backendSdk.createInternalError(null, {
|
|
418
419
|
message: "Failed to update transaction",
|
|
419
420
|
status: 500,
|
|
420
421
|
code: "INTERNAL_ERROR"
|
|
421
422
|
});
|
|
422
423
|
}
|
|
423
|
-
const transaction = backendSdk.first(updatedTransaction);
|
|
424
424
|
await this.pushToQueue(
|
|
425
425
|
this.env.QUEUE_BUS_QUEUE,
|
|
426
426
|
{
|
|
@@ -457,10 +457,7 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
457
457
|
}
|
|
458
458
|
const { command } = await updateTransactionStatusCommand(
|
|
459
459
|
this.db,
|
|
460
|
-
transactionId
|
|
461
|
-
"FAILED",
|
|
462
|
-
completedAt
|
|
463
|
-
);
|
|
460
|
+
transactionId);
|
|
464
461
|
const [updatedTransaction] = await this.db.batch([command]);
|
|
465
462
|
if (!updatedTransaction) {
|
|
466
463
|
throw backendSdk.createInternalError(null, {
|
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.UBCm2g3M.cjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.x5MljBDs.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.BisWaucp.mjs';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.x5MljBDs.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.ts44O6FU.js';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger.x5MljBDs.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.62Uvzk2B.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import { e as createTransactionInputSchema, r as matchTransactionInputSchema, g as failTransactionInputSchema, m as getTransactionByIdInputSchema, o as getTransactionsByReferenceIdInputSchema, n as getTransactionsInputSchema, d as createAccountInputSchema, u as updateAccountInputSchema, f as deleteAccountInputSchema, i as getAccountInputSchema, l as getAccountsByOwnerInputSchema, q as listAccountsInputSchema, k as getAccountIdentifierInputSchema, p as listAccountIdentifiersInputSchema, h as findAccountByIdentifierInputSchema, j as getAccountBalanceInputSchema, s as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.
|
|
6
|
+
import { e as createTransactionInputSchema, r as matchTransactionInputSchema, g as failTransactionInputSchema, m as getTransactionByIdInputSchema, o as getTransactionsByReferenceIdInputSchema, n as getTransactionsInputSchema, d as createAccountInputSchema, u as updateAccountInputSchema, f as deleteAccountInputSchema, i as getAccountInputSchema, l as getAccountsByOwnerInputSchema, q as listAccountsInputSchema, k as getAccountIdentifierInputSchema, p as listAccountIdentifiersInputSchema, h as findAccountByIdentifierInputSchema, j as getAccountBalanceInputSchema, s as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.C-t6MiyI.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -36,11 +36,13 @@ const updateAccountCommand = async (db, id, input) => {
|
|
|
36
36
|
return { command };
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
const updateTransactionStatusCommand =
|
|
39
|
+
const updateTransactionStatusCommand = (db, data) => {
|
|
40
|
+
const { transactionId, status, paymentId, completedAt } = data;
|
|
40
41
|
const updateData = {
|
|
41
42
|
status,
|
|
42
43
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
43
|
-
|
|
44
|
+
completedAt,
|
|
45
|
+
paymentId
|
|
44
46
|
};
|
|
45
47
|
const command = db.update(tables.transaction).set(updateData).where(eq(tables.transaction.id, transactionId)).returning();
|
|
46
48
|
return { command };
|
|
@@ -390,7 +392,7 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
390
392
|
{ data: input, schema: matchTransactionInputSchema },
|
|
391
393
|
{ successMessage: "Transaction successfully matched." },
|
|
392
394
|
async (params) => {
|
|
393
|
-
const { transactionId, completedAt } = params;
|
|
395
|
+
const { transactionId, completedAt, paymentId } = params;
|
|
394
396
|
const existingTransaction = await getTransactionByIdQuery(
|
|
395
397
|
this.db,
|
|
396
398
|
transactionId
|
|
@@ -402,21 +404,19 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
402
404
|
code: "NOT_FOUND"
|
|
403
405
|
});
|
|
404
406
|
}
|
|
405
|
-
const
|
|
406
|
-
this.db,
|
|
407
|
+
const transaction = await updateTransactionStatusCommand(this.db, {
|
|
407
408
|
transactionId,
|
|
408
|
-
"MATCHED",
|
|
409
|
-
completedAt
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
if (!
|
|
409
|
+
status: "MATCHED",
|
|
410
|
+
completedAt,
|
|
411
|
+
paymentId
|
|
412
|
+
}).command.execute().then(first);
|
|
413
|
+
if (!transaction) {
|
|
413
414
|
throw createInternalError(null, {
|
|
414
415
|
message: "Failed to update transaction",
|
|
415
416
|
status: 500,
|
|
416
417
|
code: "INTERNAL_ERROR"
|
|
417
418
|
});
|
|
418
419
|
}
|
|
419
|
-
const transaction = first(updatedTransaction);
|
|
420
420
|
await this.pushToQueue(
|
|
421
421
|
this.env.QUEUE_BUS_QUEUE,
|
|
422
422
|
{
|
|
@@ -453,10 +453,7 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
453
453
|
}
|
|
454
454
|
const { command } = await updateTransactionStatusCommand(
|
|
455
455
|
this.db,
|
|
456
|
-
transactionId
|
|
457
|
-
"FAILED",
|
|
458
|
-
completedAt
|
|
459
|
-
);
|
|
456
|
+
transactionId);
|
|
460
457
|
const [updatedTransaction] = await this.db.batch([command]);
|
|
461
458
|
if (!updatedTransaction) {
|
|
462
459
|
throw createInternalError(null, {
|
|
@@ -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.C-t6MiyI.mjs';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
|
|
7
7
|
const account = sqliteTable("account", {
|
|
@@ -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.CB2NrA0w.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.x5MljBDs.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -329,9 +329,9 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
329
329
|
}>>;
|
|
330
330
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
kind: z.ZodEnum<{
|
|
332
|
-
SWIFT: "SWIFT";
|
|
333
332
|
IBAN: "IBAN";
|
|
334
333
|
LOCAL_CZ: "LOCAL_CZ";
|
|
334
|
+
SWIFT: "SWIFT";
|
|
335
335
|
CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
|
|
336
336
|
}>;
|
|
337
337
|
iban: z.ZodOptional<z.ZodString>;
|
|
@@ -401,17 +401,17 @@ interface CreateAccountOutput {
|
|
|
401
401
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
402
402
|
correlationId: z.ZodString;
|
|
403
403
|
referenceType: z.ZodEnum<{
|
|
404
|
-
EXCHANGE: "EXCHANGE";
|
|
405
404
|
PAYMENT: "PAYMENT";
|
|
405
|
+
EXCHANGE: "EXCHANGE";
|
|
406
406
|
ORDER: "ORDER";
|
|
407
407
|
}>;
|
|
408
408
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
409
409
|
type: z.ZodEnum<{
|
|
410
|
+
EXCHANGE: "EXCHANGE";
|
|
410
411
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
411
412
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
412
413
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
413
414
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
414
|
-
EXCHANGE: "EXCHANGE";
|
|
415
415
|
UNMATCHED: "UNMATCHED";
|
|
416
416
|
ADJUSTMENT: "ADJUSTMENT";
|
|
417
417
|
TRANSFER: "TRANSFER";
|
|
@@ -1148,15 +1148,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1148
1148
|
}, z.core.$strip>>;
|
|
1149
1149
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
1150
1150
|
status: z.ZodEnum<{
|
|
1151
|
-
FAILED: "FAILED";
|
|
1152
|
-
COMPLETED: "COMPLETED";
|
|
1153
1151
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1154
1152
|
PAUSED: "PAUSED";
|
|
1155
1153
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1156
1154
|
MATCHED: "MATCHED";
|
|
1157
1155
|
RETURNING: "RETURNING";
|
|
1158
1156
|
RETURNED: "RETURNED";
|
|
1157
|
+
FAILED: "FAILED";
|
|
1159
1158
|
CANCELLED: "CANCELLED";
|
|
1159
|
+
COMPLETED: "COMPLETED";
|
|
1160
1160
|
}>;
|
|
1161
1161
|
}, z.core.$strip>;
|
|
1162
1162
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
@@ -1294,17 +1294,17 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1294
1294
|
}, z.core.$strip>;
|
|
1295
1295
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1296
1296
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1297
|
-
EXCHANGE: "EXCHANGE";
|
|
1298
1297
|
PAYMENT: "PAYMENT";
|
|
1298
|
+
EXCHANGE: "EXCHANGE";
|
|
1299
1299
|
ORDER: "ORDER";
|
|
1300
1300
|
}>>;
|
|
1301
1301
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1302
1302
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1303
|
+
EXCHANGE: "EXCHANGE";
|
|
1303
1304
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1304
1305
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1305
1306
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1306
1307
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1307
|
-
EXCHANGE: "EXCHANGE";
|
|
1308
1308
|
UNMATCHED: "UNMATCHED";
|
|
1309
1309
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1310
1310
|
TRANSFER: "TRANSFER";
|
|
@@ -1314,15 +1314,15 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1314
1314
|
filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
|
|
1315
1315
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
1316
1316
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1317
|
-
FAILED: "FAILED";
|
|
1318
|
-
COMPLETED: "COMPLETED";
|
|
1319
1317
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1320
1318
|
PAUSED: "PAUSED";
|
|
1321
1319
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1322
1320
|
MATCHED: "MATCHED";
|
|
1323
1321
|
RETURNING: "RETURNING";
|
|
1324
1322
|
RETURNED: "RETURNED";
|
|
1323
|
+
FAILED: "FAILED";
|
|
1325
1324
|
CANCELLED: "CANCELLED";
|
|
1325
|
+
COMPLETED: "COMPLETED";
|
|
1326
1326
|
}>>;
|
|
1327
1327
|
search: z.ZodOptional<z.ZodString>;
|
|
1328
1328
|
}, z.core.$strip>;
|
|
@@ -1335,8 +1335,8 @@ interface GetTransactionsOutput {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1337
1337
|
referenceType: z.ZodEnum<{
|
|
1338
|
-
EXCHANGE: "EXCHANGE";
|
|
1339
1338
|
PAYMENT: "PAYMENT";
|
|
1339
|
+
EXCHANGE: "EXCHANGE";
|
|
1340
1340
|
ORDER: "ORDER";
|
|
1341
1341
|
}>;
|
|
1342
1342
|
referenceId: z.ZodUUID;
|
|
@@ -1449,6 +1449,7 @@ interface ListAccountsOutput {
|
|
|
1449
1449
|
|
|
1450
1450
|
declare const matchTransactionInputSchema: z.ZodObject<{
|
|
1451
1451
|
transactionId: z.ZodUUID;
|
|
1452
|
+
paymentId: z.ZodString;
|
|
1452
1453
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1453
1454
|
}, z.core.$strip>;
|
|
1454
1455
|
interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.x5MljBDs.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -329,9 +329,9 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
329
329
|
}>>;
|
|
330
330
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
kind: z.ZodEnum<{
|
|
332
|
-
SWIFT: "SWIFT";
|
|
333
332
|
IBAN: "IBAN";
|
|
334
333
|
LOCAL_CZ: "LOCAL_CZ";
|
|
334
|
+
SWIFT: "SWIFT";
|
|
335
335
|
CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
|
|
336
336
|
}>;
|
|
337
337
|
iban: z.ZodOptional<z.ZodString>;
|
|
@@ -401,17 +401,17 @@ interface CreateAccountOutput {
|
|
|
401
401
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
402
402
|
correlationId: z.ZodString;
|
|
403
403
|
referenceType: z.ZodEnum<{
|
|
404
|
-
EXCHANGE: "EXCHANGE";
|
|
405
404
|
PAYMENT: "PAYMENT";
|
|
405
|
+
EXCHANGE: "EXCHANGE";
|
|
406
406
|
ORDER: "ORDER";
|
|
407
407
|
}>;
|
|
408
408
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
409
409
|
type: z.ZodEnum<{
|
|
410
|
+
EXCHANGE: "EXCHANGE";
|
|
410
411
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
411
412
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
412
413
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
413
414
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
414
|
-
EXCHANGE: "EXCHANGE";
|
|
415
415
|
UNMATCHED: "UNMATCHED";
|
|
416
416
|
ADJUSTMENT: "ADJUSTMENT";
|
|
417
417
|
TRANSFER: "TRANSFER";
|
|
@@ -1148,15 +1148,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1148
1148
|
}, z.core.$strip>>;
|
|
1149
1149
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
1150
1150
|
status: z.ZodEnum<{
|
|
1151
|
-
FAILED: "FAILED";
|
|
1152
|
-
COMPLETED: "COMPLETED";
|
|
1153
1151
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1154
1152
|
PAUSED: "PAUSED";
|
|
1155
1153
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1156
1154
|
MATCHED: "MATCHED";
|
|
1157
1155
|
RETURNING: "RETURNING";
|
|
1158
1156
|
RETURNED: "RETURNED";
|
|
1157
|
+
FAILED: "FAILED";
|
|
1159
1158
|
CANCELLED: "CANCELLED";
|
|
1159
|
+
COMPLETED: "COMPLETED";
|
|
1160
1160
|
}>;
|
|
1161
1161
|
}, z.core.$strip>;
|
|
1162
1162
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
@@ -1294,17 +1294,17 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1294
1294
|
}, z.core.$strip>;
|
|
1295
1295
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1296
1296
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1297
|
-
EXCHANGE: "EXCHANGE";
|
|
1298
1297
|
PAYMENT: "PAYMENT";
|
|
1298
|
+
EXCHANGE: "EXCHANGE";
|
|
1299
1299
|
ORDER: "ORDER";
|
|
1300
1300
|
}>>;
|
|
1301
1301
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1302
1302
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1303
|
+
EXCHANGE: "EXCHANGE";
|
|
1303
1304
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1304
1305
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1305
1306
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1306
1307
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1307
|
-
EXCHANGE: "EXCHANGE";
|
|
1308
1308
|
UNMATCHED: "UNMATCHED";
|
|
1309
1309
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1310
1310
|
TRANSFER: "TRANSFER";
|
|
@@ -1314,15 +1314,15 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1314
1314
|
filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
|
|
1315
1315
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
1316
1316
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1317
|
-
FAILED: "FAILED";
|
|
1318
|
-
COMPLETED: "COMPLETED";
|
|
1319
1317
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1320
1318
|
PAUSED: "PAUSED";
|
|
1321
1319
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1322
1320
|
MATCHED: "MATCHED";
|
|
1323
1321
|
RETURNING: "RETURNING";
|
|
1324
1322
|
RETURNED: "RETURNED";
|
|
1323
|
+
FAILED: "FAILED";
|
|
1325
1324
|
CANCELLED: "CANCELLED";
|
|
1325
|
+
COMPLETED: "COMPLETED";
|
|
1326
1326
|
}>>;
|
|
1327
1327
|
search: z.ZodOptional<z.ZodString>;
|
|
1328
1328
|
}, z.core.$strip>;
|
|
@@ -1335,8 +1335,8 @@ interface GetTransactionsOutput {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1337
1337
|
referenceType: z.ZodEnum<{
|
|
1338
|
-
EXCHANGE: "EXCHANGE";
|
|
1339
1338
|
PAYMENT: "PAYMENT";
|
|
1339
|
+
EXCHANGE: "EXCHANGE";
|
|
1340
1340
|
ORDER: "ORDER";
|
|
1341
1341
|
}>;
|
|
1342
1342
|
referenceId: z.ZodUUID;
|
|
@@ -1449,6 +1449,7 @@ interface ListAccountsOutput {
|
|
|
1449
1449
|
|
|
1450
1450
|
declare const matchTransactionInputSchema: z.ZodObject<{
|
|
1451
1451
|
transactionId: z.ZodUUID;
|
|
1452
|
+
paymentId: z.ZodString;
|
|
1452
1453
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1453
1454
|
}, z.core.$strip>;
|
|
1454
1455
|
interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger.x5MljBDs.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -329,9 +329,9 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
329
329
|
}>>;
|
|
330
330
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
331
331
|
kind: z.ZodEnum<{
|
|
332
|
-
SWIFT: "SWIFT";
|
|
333
332
|
IBAN: "IBAN";
|
|
334
333
|
LOCAL_CZ: "LOCAL_CZ";
|
|
334
|
+
SWIFT: "SWIFT";
|
|
335
335
|
CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
|
|
336
336
|
}>;
|
|
337
337
|
iban: z.ZodOptional<z.ZodString>;
|
|
@@ -401,17 +401,17 @@ interface CreateAccountOutput {
|
|
|
401
401
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
402
402
|
correlationId: z.ZodString;
|
|
403
403
|
referenceType: z.ZodEnum<{
|
|
404
|
-
EXCHANGE: "EXCHANGE";
|
|
405
404
|
PAYMENT: "PAYMENT";
|
|
405
|
+
EXCHANGE: "EXCHANGE";
|
|
406
406
|
ORDER: "ORDER";
|
|
407
407
|
}>;
|
|
408
408
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
409
409
|
type: z.ZodEnum<{
|
|
410
|
+
EXCHANGE: "EXCHANGE";
|
|
410
411
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
411
412
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
412
413
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
413
414
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
414
|
-
EXCHANGE: "EXCHANGE";
|
|
415
415
|
UNMATCHED: "UNMATCHED";
|
|
416
416
|
ADJUSTMENT: "ADJUSTMENT";
|
|
417
417
|
TRANSFER: "TRANSFER";
|
|
@@ -1148,15 +1148,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1148
1148
|
}, z.core.$strip>>;
|
|
1149
1149
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
1150
1150
|
status: z.ZodEnum<{
|
|
1151
|
-
FAILED: "FAILED";
|
|
1152
|
-
COMPLETED: "COMPLETED";
|
|
1153
1151
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1154
1152
|
PAUSED: "PAUSED";
|
|
1155
1153
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1156
1154
|
MATCHED: "MATCHED";
|
|
1157
1155
|
RETURNING: "RETURNING";
|
|
1158
1156
|
RETURNED: "RETURNED";
|
|
1157
|
+
FAILED: "FAILED";
|
|
1159
1158
|
CANCELLED: "CANCELLED";
|
|
1159
|
+
COMPLETED: "COMPLETED";
|
|
1160
1160
|
}>;
|
|
1161
1161
|
}, z.core.$strip>;
|
|
1162
1162
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
@@ -1294,17 +1294,17 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1294
1294
|
}, z.core.$strip>;
|
|
1295
1295
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1296
1296
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1297
|
-
EXCHANGE: "EXCHANGE";
|
|
1298
1297
|
PAYMENT: "PAYMENT";
|
|
1298
|
+
EXCHANGE: "EXCHANGE";
|
|
1299
1299
|
ORDER: "ORDER";
|
|
1300
1300
|
}>>;
|
|
1301
1301
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1302
1302
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1303
|
+
EXCHANGE: "EXCHANGE";
|
|
1303
1304
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1304
1305
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1305
1306
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1306
1307
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1307
|
-
EXCHANGE: "EXCHANGE";
|
|
1308
1308
|
UNMATCHED: "UNMATCHED";
|
|
1309
1309
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1310
1310
|
TRANSFER: "TRANSFER";
|
|
@@ -1314,15 +1314,15 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1314
1314
|
filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
|
|
1315
1315
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
1316
1316
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1317
|
-
FAILED: "FAILED";
|
|
1318
|
-
COMPLETED: "COMPLETED";
|
|
1319
1317
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1320
1318
|
PAUSED: "PAUSED";
|
|
1321
1319
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1322
1320
|
MATCHED: "MATCHED";
|
|
1323
1321
|
RETURNING: "RETURNING";
|
|
1324
1322
|
RETURNED: "RETURNED";
|
|
1323
|
+
FAILED: "FAILED";
|
|
1325
1324
|
CANCELLED: "CANCELLED";
|
|
1325
|
+
COMPLETED: "COMPLETED";
|
|
1326
1326
|
}>>;
|
|
1327
1327
|
search: z.ZodOptional<z.ZodString>;
|
|
1328
1328
|
}, z.core.$strip>;
|
|
@@ -1335,8 +1335,8 @@ interface GetTransactionsOutput {
|
|
|
1335
1335
|
|
|
1336
1336
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1337
1337
|
referenceType: z.ZodEnum<{
|
|
1338
|
-
EXCHANGE: "EXCHANGE";
|
|
1339
1338
|
PAYMENT: "PAYMENT";
|
|
1339
|
+
EXCHANGE: "EXCHANGE";
|
|
1340
1340
|
ORDER: "ORDER";
|
|
1341
1341
|
}>;
|
|
1342
1342
|
referenceId: z.ZodUUID;
|
|
@@ -1449,6 +1449,7 @@ interface ListAccountsOutput {
|
|
|
1449
1449
|
|
|
1450
1450
|
declare const matchTransactionInputSchema: z.ZodObject<{
|
|
1451
1451
|
transactionId: z.ZodUUID;
|
|
1452
|
+
paymentId: z.ZodString;
|
|
1452
1453
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
1453
1454
|
}, z.core.$strip>;
|
|
1454
1455
|
interface MatchTransactionInput extends z.infer<typeof matchTransactionInputSchema> {
|
|
@@ -243,7 +243,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
243
243
|
tableName: "account_identifier";
|
|
244
244
|
dataType: "string";
|
|
245
245
|
columnType: "SQLiteText";
|
|
246
|
-
data: "
|
|
246
|
+
data: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
|
|
247
247
|
driverParam: string;
|
|
248
248
|
notNull: true;
|
|
249
249
|
hasDefault: false;
|
|
@@ -256,7 +256,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
256
256
|
generated: undefined;
|
|
257
257
|
}, {}, {
|
|
258
258
|
length: number | undefined;
|
|
259
|
-
$type: "
|
|
259
|
+
$type: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
|
|
260
260
|
}>;
|
|
261
261
|
iban: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
262
262
|
name: "iban";
|
|
@@ -1002,7 +1002,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1002
1002
|
tableName: "transaction";
|
|
1003
1003
|
dataType: "string";
|
|
1004
1004
|
columnType: "SQLiteText";
|
|
1005
|
-
data: "
|
|
1005
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1006
1006
|
driverParam: string;
|
|
1007
1007
|
notNull: true;
|
|
1008
1008
|
hasDefault: false;
|
|
@@ -1015,7 +1015,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1015
1015
|
generated: undefined;
|
|
1016
1016
|
}, {}, {
|
|
1017
1017
|
length: number | undefined;
|
|
1018
|
-
$type: "
|
|
1018
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1019
1019
|
}>;
|
|
1020
1020
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1021
1021
|
name: "reference_id";
|
|
@@ -1041,7 +1041,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1041
1041
|
tableName: "transaction";
|
|
1042
1042
|
dataType: "string";
|
|
1043
1043
|
columnType: "SQLiteText";
|
|
1044
|
-
data: "
|
|
1044
|
+
data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1045
1045
|
driverParam: string;
|
|
1046
1046
|
notNull: true;
|
|
1047
1047
|
hasDefault: false;
|
|
@@ -1054,7 +1054,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1054
1054
|
generated: undefined;
|
|
1055
1055
|
}, {}, {
|
|
1056
1056
|
length: number | undefined;
|
|
1057
|
-
$type: "
|
|
1057
|
+
$type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1058
1058
|
}>;
|
|
1059
1059
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1060
1060
|
name: "description";
|
|
@@ -1114,7 +1114,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1114
1114
|
tableName: "transaction";
|
|
1115
1115
|
dataType: "string";
|
|
1116
1116
|
columnType: "SQLiteText";
|
|
1117
|
-
data: "
|
|
1117
|
+
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "COMPLETED";
|
|
1118
1118
|
driverParam: string;
|
|
1119
1119
|
notNull: true;
|
|
1120
1120
|
hasDefault: false;
|
|
@@ -1127,7 +1127,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1127
1127
|
generated: undefined;
|
|
1128
1128
|
}, {}, {
|
|
1129
1129
|
length: number | undefined;
|
|
1130
|
-
$type: "
|
|
1130
|
+
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "COMPLETED";
|
|
1131
1131
|
}>;
|
|
1132
1132
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1133
1133
|
name: "status_reason";
|
|
@@ -243,7 +243,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
243
243
|
tableName: "account_identifier";
|
|
244
244
|
dataType: "string";
|
|
245
245
|
columnType: "SQLiteText";
|
|
246
|
-
data: "
|
|
246
|
+
data: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
|
|
247
247
|
driverParam: string;
|
|
248
248
|
notNull: true;
|
|
249
249
|
hasDefault: false;
|
|
@@ -256,7 +256,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
256
256
|
generated: undefined;
|
|
257
257
|
}, {}, {
|
|
258
258
|
length: number | undefined;
|
|
259
|
-
$type: "
|
|
259
|
+
$type: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
|
|
260
260
|
}>;
|
|
261
261
|
iban: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
262
262
|
name: "iban";
|
|
@@ -1002,7 +1002,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1002
1002
|
tableName: "transaction";
|
|
1003
1003
|
dataType: "string";
|
|
1004
1004
|
columnType: "SQLiteText";
|
|
1005
|
-
data: "
|
|
1005
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1006
1006
|
driverParam: string;
|
|
1007
1007
|
notNull: true;
|
|
1008
1008
|
hasDefault: false;
|
|
@@ -1015,7 +1015,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1015
1015
|
generated: undefined;
|
|
1016
1016
|
}, {}, {
|
|
1017
1017
|
length: number | undefined;
|
|
1018
|
-
$type: "
|
|
1018
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1019
1019
|
}>;
|
|
1020
1020
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1021
1021
|
name: "reference_id";
|
|
@@ -1041,7 +1041,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1041
1041
|
tableName: "transaction";
|
|
1042
1042
|
dataType: "string";
|
|
1043
1043
|
columnType: "SQLiteText";
|
|
1044
|
-
data: "
|
|
1044
|
+
data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1045
1045
|
driverParam: string;
|
|
1046
1046
|
notNull: true;
|
|
1047
1047
|
hasDefault: false;
|
|
@@ -1054,7 +1054,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1054
1054
|
generated: undefined;
|
|
1055
1055
|
}, {}, {
|
|
1056
1056
|
length: number | undefined;
|
|
1057
|
-
$type: "
|
|
1057
|
+
$type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1058
1058
|
}>;
|
|
1059
1059
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1060
1060
|
name: "description";
|
|
@@ -1114,7 +1114,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1114
1114
|
tableName: "transaction";
|
|
1115
1115
|
dataType: "string";
|
|
1116
1116
|
columnType: "SQLiteText";
|
|
1117
|
-
data: "
|
|
1117
|
+
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "COMPLETED";
|
|
1118
1118
|
driverParam: string;
|
|
1119
1119
|
notNull: true;
|
|
1120
1120
|
hasDefault: false;
|
|
@@ -1127,7 +1127,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1127
1127
|
generated: undefined;
|
|
1128
1128
|
}, {}, {
|
|
1129
1129
|
length: number | undefined;
|
|
1130
|
-
$type: "
|
|
1130
|
+
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "COMPLETED";
|
|
1131
1131
|
}>;
|
|
1132
1132
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1133
1133
|
name: "status_reason";
|
|
@@ -243,7 +243,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
243
243
|
tableName: "account_identifier";
|
|
244
244
|
dataType: "string";
|
|
245
245
|
columnType: "SQLiteText";
|
|
246
|
-
data: "
|
|
246
|
+
data: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
|
|
247
247
|
driverParam: string;
|
|
248
248
|
notNull: true;
|
|
249
249
|
hasDefault: false;
|
|
@@ -256,7 +256,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
256
256
|
generated: undefined;
|
|
257
257
|
}, {}, {
|
|
258
258
|
length: number | undefined;
|
|
259
|
-
$type: "
|
|
259
|
+
$type: "IBAN" | "LOCAL_CZ" | "SWIFT" | "CRYPTO_ADDRESS";
|
|
260
260
|
}>;
|
|
261
261
|
iban: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
262
262
|
name: "iban";
|
|
@@ -1002,7 +1002,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1002
1002
|
tableName: "transaction";
|
|
1003
1003
|
dataType: "string";
|
|
1004
1004
|
columnType: "SQLiteText";
|
|
1005
|
-
data: "
|
|
1005
|
+
data: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1006
1006
|
driverParam: string;
|
|
1007
1007
|
notNull: true;
|
|
1008
1008
|
hasDefault: false;
|
|
@@ -1015,7 +1015,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1015
1015
|
generated: undefined;
|
|
1016
1016
|
}, {}, {
|
|
1017
1017
|
length: number | undefined;
|
|
1018
|
-
$type: "
|
|
1018
|
+
$type: "PAYMENT" | "EXCHANGE" | "ORDER";
|
|
1019
1019
|
}>;
|
|
1020
1020
|
referenceId: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1021
1021
|
name: "reference_id";
|
|
@@ -1041,7 +1041,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1041
1041
|
tableName: "transaction";
|
|
1042
1042
|
dataType: "string";
|
|
1043
1043
|
columnType: "SQLiteText";
|
|
1044
|
-
data: "
|
|
1044
|
+
data: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1045
1045
|
driverParam: string;
|
|
1046
1046
|
notNull: true;
|
|
1047
1047
|
hasDefault: false;
|
|
@@ -1054,7 +1054,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1054
1054
|
generated: undefined;
|
|
1055
1055
|
}, {}, {
|
|
1056
1056
|
length: number | undefined;
|
|
1057
|
-
$type: "
|
|
1057
|
+
$type: "EXCHANGE" | "CLIENT_FUND_IN" | "CLIENT_FUND_OUT" | "PROVIDER_FUND_IN" | "PROVIDER_FUND_OUT" | "UNMATCHED" | "ADJUSTMENT" | "TRANSFER";
|
|
1058
1058
|
}>;
|
|
1059
1059
|
description: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1060
1060
|
name: "description";
|
|
@@ -1114,7 +1114,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1114
1114
|
tableName: "transaction";
|
|
1115
1115
|
dataType: "string";
|
|
1116
1116
|
columnType: "SQLiteText";
|
|
1117
|
-
data: "
|
|
1117
|
+
data: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "COMPLETED";
|
|
1118
1118
|
driverParam: string;
|
|
1119
1119
|
notNull: true;
|
|
1120
1120
|
hasDefault: false;
|
|
@@ -1127,7 +1127,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1127
1127
|
generated: undefined;
|
|
1128
1128
|
}, {}, {
|
|
1129
1129
|
length: number | undefined;
|
|
1130
|
-
$type: "
|
|
1130
|
+
$type: "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "FAILED" | "CANCELLED" | "COMPLETED";
|
|
1131
1131
|
}>;
|
|
1132
1132
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1133
1133
|
name: "status_reason";
|
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.CB2NrA0w.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, m 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, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l 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, m 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, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.x5MljBDs.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.UBCm2g3M.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.UBCm2g3M.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, m 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, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l 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, m 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, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.x5MljBDs.mjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.BisWaucp.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.BisWaucp.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, m 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, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l 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, m 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, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.x5MljBDs.js';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.ts44O6FU.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.ts44O6FU.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, c 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, t as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, d as createAccountInputSchema, e as createTransactionInputSchema, f as deleteAccountInputSchema, g as failTransactionInputSchema, h as findAccountByIdentifierInputSchema, j as getAccountBalanceInputSchema, k as getAccountIdentifierInputSchema, i as getAccountInputSchema, l as getAccountsByOwnerInputSchema, m as getTransactionByIdInputSchema, o as getTransactionsByReferenceIdInputSchema, n as getTransactionsInputSchema, p as listAccountIdentifiersInputSchema, q as listAccountsInputSchema, r as matchTransactionInputSchema, u as updateAccountInputSchema, s as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.
|
|
1
|
+
export { A as ACCOUNT_TYPES, c 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, t as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, d as createAccountInputSchema, e as createTransactionInputSchema, f as deleteAccountInputSchema, g as failTransactionInputSchema, h as findAccountByIdentifierInputSchema, j as getAccountBalanceInputSchema, k as getAccountIdentifierInputSchema, i as getAccountInputSchema, l as getAccountsByOwnerInputSchema, m as getTransactionByIdInputSchema, o as getTransactionsByReferenceIdInputSchema, n as getTransactionsInputSchema, p as listAccountIdentifiersInputSchema, q as listAccountsInputSchema, r as matchTransactionInputSchema, u as updateAccountInputSchema, s as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.C-t6MiyI.mjs';
|
|
2
2
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@develit-io/backend-sdk';
|