@develit-services/ledger 0.3.2 → 0.3.4
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/README.md +318 -0
- 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 +141 -2
- package/dist/export/worker.d.cts +3 -2
- package/dist/export/worker.d.mts +3 -2
- package/dist/export/worker.d.ts +3 -2
- package/dist/export/worker.mjs +141 -2
- package/dist/shared/{ledger.D7boja6V.d.cts → ledger.5cAlw89w.d.ts} +26 -20
- package/dist/shared/{ledger.D_uHoy5E.d.mts → ledger.B08p9mSv.d.mts} +26 -20
- package/dist/shared/{ledger.CDdw0Nyc.d.ts → ledger.BUVGgzID.d.cts} +26 -20
- package/dist/shared/{ledger.BVNtjljl.mjs → ledger.Bb6l1o9P.mjs} +17 -9
- package/dist/shared/{ledger.Dfi_K5W2.cjs → ledger.Bmi7Cafn.cjs} +19 -9
- package/dist/shared/{ledger.CLVyCzRb.d.cts → ledger.CZjiiQQk.d.cts} +534 -46
- package/dist/shared/{ledger.CLVyCzRb.d.mts → ledger.CZjiiQQk.d.mts} +534 -46
- package/dist/shared/{ledger.CLVyCzRb.d.ts → ledger.CZjiiQQk.d.ts} +534 -46
- package/dist/shared/{ledger.BGgIPMu-.mjs → ledger.DKVdStuQ.mjs} +1 -1
- package/dist/shared/{ledger.C7cMVCgk.cjs → ledger.V5SF3fcq.cjs} +1 -1
- package/dist/types.cjs +4 -2
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/types.mjs +1 -1
- package/package.json +2 -2
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.DKVdStuQ.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import {
|
|
6
|
+
import { k as createTransactionInputSchema, x as matchTransactionInputSchema, m as failTransactionInputSchema, i as cancelTransactionInputSchema, y as refundTransactionInputSchema, g as REFUNDABLE_TRANSACTION_STATUSES, s as getTransactionByIdInputSchema, t as getTransactionsByReferenceIdInputSchema, u as getTransactionsInputSchema, j as createAccountInputSchema, z as updateAccountInputSchema, l as deleteAccountInputSchema, q as getAccountInputSchema, r as getAccountsByOwnerInputSchema, w as listAccountsInputSchema, p as getAccountIdentifierInputSchema, v as listAccountIdentifiersInputSchema, n as findAccountByIdentifierInputSchema, o as getAccountBalanceInputSchema, D as updateTransactionConfirmationSentAtInputSchema, F as updateTransactionStatusInputSchema } from '../shared/ledger.Bb6l1o9P.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -534,6 +534,142 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
534
534
|
}
|
|
535
535
|
);
|
|
536
536
|
}
|
|
537
|
+
async refundTransaction(input) {
|
|
538
|
+
return this.handleAction(
|
|
539
|
+
{ data: input, schema: refundTransactionInputSchema },
|
|
540
|
+
{ successMessage: "Transaction successfully refunded." },
|
|
541
|
+
async (params) => {
|
|
542
|
+
const { transactionId, amount, reason } = params;
|
|
543
|
+
const originalTx = await getTransactionByIdQuery(this.db, transactionId);
|
|
544
|
+
if (!originalTx) {
|
|
545
|
+
throw createInternalError(null, {
|
|
546
|
+
message: "Transaction not found",
|
|
547
|
+
status: 404,
|
|
548
|
+
code: "DB-L-03"
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
if (!REFUNDABLE_TRANSACTION_STATUSES.some(
|
|
552
|
+
(status) => status === originalTx.status
|
|
553
|
+
)) {
|
|
554
|
+
throw createInternalError(null, {
|
|
555
|
+
message: `Transaction with status ${originalTx.status} cannot be refunded`,
|
|
556
|
+
status: 400,
|
|
557
|
+
code: "VALID-L-01"
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
const refundAmount = amount || originalTx.value || 0;
|
|
561
|
+
if (refundAmount <= 0) {
|
|
562
|
+
throw createInternalError(null, {
|
|
563
|
+
message: "Invalid refund amount",
|
|
564
|
+
status: 400,
|
|
565
|
+
code: "VALID-L-02"
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
if (originalTx.value && refundAmount > originalTx.value) {
|
|
569
|
+
throw createInternalError(null, {
|
|
570
|
+
message: "Refund amount exceeds transaction value",
|
|
571
|
+
status: 400,
|
|
572
|
+
code: "VALID-L-03"
|
|
573
|
+
});
|
|
574
|
+
}
|
|
575
|
+
const originalPayment = originalTx.metadata?.payment;
|
|
576
|
+
if (!originalPayment?.debtor || !originalPayment?.creditor) {
|
|
577
|
+
throw createInternalError(null, {
|
|
578
|
+
message: "Transaction missing payment information for refund",
|
|
579
|
+
status: 400,
|
|
580
|
+
code: "VALID-L-04"
|
|
581
|
+
});
|
|
582
|
+
}
|
|
583
|
+
if (!originalTx.currency) {
|
|
584
|
+
throw createInternalError(null, {
|
|
585
|
+
message: "Transaction missing currency information",
|
|
586
|
+
status: 400,
|
|
587
|
+
code: "VALID-L-05"
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
const refundTxId = uuidv4();
|
|
591
|
+
const correlationId = uuidv4();
|
|
592
|
+
const timestamp = /* @__PURE__ */ new Date();
|
|
593
|
+
const isPartialRefund = amount !== void 0 && originalTx.value != null && amount < originalTx.value;
|
|
594
|
+
const refundTransaction = {
|
|
595
|
+
id: refundTxId,
|
|
596
|
+
correlationId,
|
|
597
|
+
referenceType: "TRANSACTION",
|
|
598
|
+
referenceId: transactionId,
|
|
599
|
+
type: "REFUND",
|
|
600
|
+
description: `Refund: ${reason}`,
|
|
601
|
+
status: "WAITING_FOR_PAYMENT",
|
|
602
|
+
value: refundAmount,
|
|
603
|
+
currency: originalTx.currency,
|
|
604
|
+
createdAt: timestamp,
|
|
605
|
+
updatedAt: timestamp,
|
|
606
|
+
completedAt: null,
|
|
607
|
+
metadata: {
|
|
608
|
+
tags: ["refund", `refund-${originalTx.type.toLowerCase()}`],
|
|
609
|
+
note: reason,
|
|
610
|
+
payment: {
|
|
611
|
+
amount: refundAmount,
|
|
612
|
+
currency: originalPayment.currency,
|
|
613
|
+
type: originalPayment.type || "DOMESTIC",
|
|
614
|
+
vs: originalPayment.vs,
|
|
615
|
+
ss: originalPayment.ss,
|
|
616
|
+
ks: originalPayment.ks,
|
|
617
|
+
debtor: originalPayment.creditor,
|
|
618
|
+
creditor: originalPayment.debtor
|
|
619
|
+
},
|
|
620
|
+
refund: {
|
|
621
|
+
isPartialRefund
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
};
|
|
625
|
+
const insertRefundCommand = this.db.insert(tables.transaction).values(refundTransaction).returning();
|
|
626
|
+
const { command: updateOriginalCommand } = updateTransactionStatusCommand(this.db, {
|
|
627
|
+
transactionId,
|
|
628
|
+
status: "RETURNING",
|
|
629
|
+
statusReason: `Refund in progress via transaction ${refundTxId}`
|
|
630
|
+
});
|
|
631
|
+
const [refundResult, originalResult] = await this.db.batch([
|
|
632
|
+
insertRefundCommand,
|
|
633
|
+
updateOriginalCommand
|
|
634
|
+
]);
|
|
635
|
+
const createdRefundTx = first(refundResult);
|
|
636
|
+
const updatedOriginalTx = first(originalResult);
|
|
637
|
+
if (!createdRefundTx || !updatedOriginalTx) {
|
|
638
|
+
throw createInternalError(null, {
|
|
639
|
+
message: "Failed to process refund transaction",
|
|
640
|
+
status: 500,
|
|
641
|
+
code: "DB-L-02"
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
await Promise.all([
|
|
645
|
+
this.pushToQueue(this.env.QUEUE_BUS_QUEUE, {
|
|
646
|
+
eventType: "LEDGER_TRANSACTION",
|
|
647
|
+
eventSignal: "created",
|
|
648
|
+
ledgerTransaction: createdRefundTx,
|
|
649
|
+
metadata: {
|
|
650
|
+
correlationId: uuidv4(),
|
|
651
|
+
entityId: createdRefundTx.id,
|
|
652
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
653
|
+
}
|
|
654
|
+
}),
|
|
655
|
+
this.pushToQueue(this.env.QUEUE_BUS_QUEUE, {
|
|
656
|
+
eventType: "LEDGER_TRANSACTION",
|
|
657
|
+
eventSignal: "refunding",
|
|
658
|
+
ledgerTransaction: updatedOriginalTx,
|
|
659
|
+
metadata: {
|
|
660
|
+
correlationId: uuidv4(),
|
|
661
|
+
entityId: updatedOriginalTx.id,
|
|
662
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
663
|
+
}
|
|
664
|
+
})
|
|
665
|
+
]);
|
|
666
|
+
return {
|
|
667
|
+
refundTransaction: createdRefundTx,
|
|
668
|
+
originalTransaction: updatedOriginalTx
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
);
|
|
672
|
+
}
|
|
537
673
|
async getTransactionById(input) {
|
|
538
674
|
return this.handleAction(
|
|
539
675
|
{ data: input, schema: getTransactionByIdInputSchema },
|
|
@@ -860,6 +996,9 @@ __decorateClass([
|
|
|
860
996
|
__decorateClass([
|
|
861
997
|
action("cancel-transaction")
|
|
862
998
|
], LedgerServiceBase.prototype, "cancelTransaction", 1);
|
|
999
|
+
__decorateClass([
|
|
1000
|
+
action("refund-transaction")
|
|
1001
|
+
], LedgerServiceBase.prototype, "refundTransaction", 1);
|
|
863
1002
|
__decorateClass([
|
|
864
1003
|
action("get-transaction-by-id")
|
|
865
1004
|
], LedgerServiceBase.prototype, "getTransactionById", 1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { F as schema } from './ledger.CZjiiQQk.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -326,6 +326,7 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
326
326
|
UA: "UA";
|
|
327
327
|
AE: "AE";
|
|
328
328
|
GB: "GB";
|
|
329
|
+
US: "US";
|
|
329
330
|
UZ: "UZ";
|
|
330
331
|
VU: "VU";
|
|
331
332
|
VE: "VE";
|
|
@@ -410,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
410
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
412
|
correlationId: z.ZodString;
|
|
412
413
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
415
416
|
ORDER: "ORDER";
|
|
416
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
418
|
FORWARD: "FORWARD";
|
|
@@ -419,15 +420,16 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
419
420
|
}>;
|
|
420
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
type: z.ZodEnum<{
|
|
422
|
-
EXCHANGE: "EXCHANGE";
|
|
423
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
|
+
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
|
+
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
427
430
|
UNMATCHED: "UNMATCHED";
|
|
428
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
429
432
|
TRANSFER: "TRANSFER";
|
|
430
|
-
COLLATERAL: "COLLATERAL";
|
|
431
433
|
REFUND: "REFUND";
|
|
432
434
|
}>;
|
|
433
435
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -448,7 +450,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
448
450
|
SEPA: "SEPA";
|
|
449
451
|
UNKNOWN: "UNKNOWN";
|
|
450
452
|
}>;
|
|
451
|
-
|
|
453
|
+
chargeBearer: z.ZodOptional<z.ZodEnum<{
|
|
452
454
|
SHA: "SHA";
|
|
453
455
|
OUR: "OUR";
|
|
454
456
|
BEN: "BEN";
|
|
@@ -1176,9 +1178,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1176
1178
|
status: z.ZodEnum<{
|
|
1177
1179
|
FAILED: "FAILED";
|
|
1178
1180
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1179
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1180
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1181
|
-
PAUSED: "PAUSED";
|
|
1182
1181
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1183
1182
|
MATCHED: "MATCHED";
|
|
1184
1183
|
RETURNING: "RETURNING";
|
|
@@ -1379,8 +1378,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1379
1378
|
}, z.core.$strip>;
|
|
1380
1379
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1381
1380
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1382
|
-
PAYMENT: "PAYMENT";
|
|
1383
1381
|
EXCHANGE: "EXCHANGE";
|
|
1382
|
+
PAYMENT: "PAYMENT";
|
|
1384
1383
|
ORDER: "ORDER";
|
|
1385
1384
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1386
1385
|
FORWARD: "FORWARD";
|
|
@@ -1388,15 +1387,16 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1388
1387
|
}>>;
|
|
1389
1388
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1390
1389
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1391
|
-
EXCHANGE: "EXCHANGE";
|
|
1392
1390
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1393
1391
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1394
1392
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1395
1393
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
|
+
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
|
+
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
+
EXCHANGE: "EXCHANGE";
|
|
1396
1397
|
UNMATCHED: "UNMATCHED";
|
|
1397
1398
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1398
1399
|
TRANSFER: "TRANSFER";
|
|
1399
|
-
COLLATERAL: "COLLATERAL";
|
|
1400
1400
|
REFUND: "REFUND";
|
|
1401
1401
|
}>>;
|
|
1402
1402
|
filterTransactionDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -1406,9 +1406,6 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1406
1406
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1407
1407
|
FAILED: "FAILED";
|
|
1408
1408
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1409
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1410
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1411
|
-
PAUSED: "PAUSED";
|
|
1412
1409
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1413
1410
|
MATCHED: "MATCHED";
|
|
1414
1411
|
RETURNING: "RETURNING";
|
|
@@ -1427,8 +1424,8 @@ interface GetTransactionsOutput {
|
|
|
1427
1424
|
|
|
1428
1425
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1429
1426
|
referenceType: z.ZodEnum<{
|
|
1430
|
-
PAYMENT: "PAYMENT";
|
|
1431
1427
|
EXCHANGE: "EXCHANGE";
|
|
1428
|
+
PAYMENT: "PAYMENT";
|
|
1432
1429
|
ORDER: "ORDER";
|
|
1433
1430
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1434
1431
|
FORWARD: "FORWARD";
|
|
@@ -1651,14 +1648,23 @@ interface UpdateTransactionConfirmationSentAtInput extends z.input<typeof update
|
|
|
1651
1648
|
}
|
|
1652
1649
|
type UpdateTransactionConfirmationSentAtOutput = void;
|
|
1653
1650
|
|
|
1651
|
+
declare const refundTransactionInputSchema: z.ZodObject<{
|
|
1652
|
+
transactionId: z.ZodUUID;
|
|
1653
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1654
|
+
reason: z.ZodString;
|
|
1655
|
+
}, z.core.$strip>;
|
|
1656
|
+
interface RefundTransactionInput extends z.infer<typeof refundTransactionInputSchema> {
|
|
1657
|
+
}
|
|
1658
|
+
interface RefundTransactionOutput {
|
|
1659
|
+
refundTransaction: TransactionSelectType;
|
|
1660
|
+
originalTransaction: TransactionSelectType;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1654
1663
|
declare const updateTransactionStatusInputSchema: z.ZodObject<{
|
|
1655
1664
|
transactionId: z.ZodUUID;
|
|
1656
1665
|
status: z.ZodEnum<{
|
|
1657
1666
|
FAILED: "FAILED";
|
|
1658
1667
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1659
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1660
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1661
|
-
PAUSED: "PAUSED";
|
|
1662
1668
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1663
1669
|
MATCHED: "MATCHED";
|
|
1664
1670
|
RETURNING: "RETURNING";
|
|
@@ -1677,5 +1683,5 @@ interface UpdateTransactionStatusOutput extends TransactionSelectType {
|
|
|
1677
1683
|
|
|
1678
1684
|
declare const tables: typeof schema;
|
|
1679
1685
|
|
|
1680
|
-
export {
|
|
1681
|
-
export type {
|
|
1686
|
+
export { createAccountInputSchema as $, cancelTransactionInputSchema as _, createTransactionInputSchema as a0, deleteAccountInputSchema as a1, failTransactionInputSchema as a2, findAccountByIdentifierInputSchema as a3, getAccountBalanceInputSchema as a4, getAccountIdentifierInputSchema as a5, getAccountInputSchema as a6, getAccountsByOwnerInputSchema as a7, getTransactionByIdInputSchema as a8, getTransactionsByReferenceIdInputSchema as a9, getTransactionsInputSchema as aa, listAccountIdentifiersInputSchema as ab, listAccountsInputSchema as ac, matchTransactionInputSchema as ad, refundTransactionInputSchema as ae, updateAccountInputSchema as af, updateTransactionConfirmationSentAtInputSchema as ag, updateTransactionStatusInputSchema as ah, tables as t };
|
|
1687
|
+
export type { FindAccountByIdentifierOutput as A, GetAccountBalanceInput as B, CreateTransactionInput as C, DeleteAccountInput as D, GetAccountBalanceOutput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtInput as H, UpdateTransactionConfirmationSentAtOutput as I, UpdateTransactionStatusInput as J, UpdateTransactionStatusOutput as K, ListAccountsInput as L, MatchTransactionInput as M, AccountIdentifierInsertType as N, AccountIdentifierMappingInsertType as O, AccountIdentifierMappingSelectType as P, AccountIdentifierSelectType as Q, RefundTransactionInput as R, AccountInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountSelectType as V, AccountWithIdentifiersSelectType as W, IncludeRelation as X, InferResultType as Y, TransactionInsertType as Z, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, RefundTransactionOutput as f, GetTransactionByIdOutput as g, GetTransactionsByIdReferenceInput as h, GetTransactionsByReferenceIdOutput as i, GetTransactionsInput as j, GetTransactionsOutput as k, CreateAccountInput as l, CreateAccountOutput as m, UpdateAccountOutput as n, DeleteAccountOutput as o, GetAccountInput as p, GetAccountOutput as q, GetAccountsByOwnerInput as r, GetAccountsByOwnerOutput as s, ListAccountsOutput as u, GetAccountIdentifierInput as v, GetAccountIdentifierOutput as w, ListAccountIdentifiersInput as x, ListAccountIdentifiersOutput as y, FindAccountByIdentifierInput as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { F as schema } from './ledger.CZjiiQQk.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -326,6 +326,7 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
326
326
|
UA: "UA";
|
|
327
327
|
AE: "AE";
|
|
328
328
|
GB: "GB";
|
|
329
|
+
US: "US";
|
|
329
330
|
UZ: "UZ";
|
|
330
331
|
VU: "VU";
|
|
331
332
|
VE: "VE";
|
|
@@ -410,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
410
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
412
|
correlationId: z.ZodString;
|
|
412
413
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
415
416
|
ORDER: "ORDER";
|
|
416
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
418
|
FORWARD: "FORWARD";
|
|
@@ -419,15 +420,16 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
419
420
|
}>;
|
|
420
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
type: z.ZodEnum<{
|
|
422
|
-
EXCHANGE: "EXCHANGE";
|
|
423
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
|
+
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
|
+
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
427
430
|
UNMATCHED: "UNMATCHED";
|
|
428
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
429
432
|
TRANSFER: "TRANSFER";
|
|
430
|
-
COLLATERAL: "COLLATERAL";
|
|
431
433
|
REFUND: "REFUND";
|
|
432
434
|
}>;
|
|
433
435
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -448,7 +450,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
448
450
|
SEPA: "SEPA";
|
|
449
451
|
UNKNOWN: "UNKNOWN";
|
|
450
452
|
}>;
|
|
451
|
-
|
|
453
|
+
chargeBearer: z.ZodOptional<z.ZodEnum<{
|
|
452
454
|
SHA: "SHA";
|
|
453
455
|
OUR: "OUR";
|
|
454
456
|
BEN: "BEN";
|
|
@@ -1176,9 +1178,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1176
1178
|
status: z.ZodEnum<{
|
|
1177
1179
|
FAILED: "FAILED";
|
|
1178
1180
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1179
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1180
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1181
|
-
PAUSED: "PAUSED";
|
|
1182
1181
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1183
1182
|
MATCHED: "MATCHED";
|
|
1184
1183
|
RETURNING: "RETURNING";
|
|
@@ -1379,8 +1378,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1379
1378
|
}, z.core.$strip>;
|
|
1380
1379
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1381
1380
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1382
|
-
PAYMENT: "PAYMENT";
|
|
1383
1381
|
EXCHANGE: "EXCHANGE";
|
|
1382
|
+
PAYMENT: "PAYMENT";
|
|
1384
1383
|
ORDER: "ORDER";
|
|
1385
1384
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1386
1385
|
FORWARD: "FORWARD";
|
|
@@ -1388,15 +1387,16 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1388
1387
|
}>>;
|
|
1389
1388
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1390
1389
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1391
|
-
EXCHANGE: "EXCHANGE";
|
|
1392
1390
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1393
1391
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1394
1392
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1395
1393
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
|
+
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
|
+
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
+
EXCHANGE: "EXCHANGE";
|
|
1396
1397
|
UNMATCHED: "UNMATCHED";
|
|
1397
1398
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1398
1399
|
TRANSFER: "TRANSFER";
|
|
1399
|
-
COLLATERAL: "COLLATERAL";
|
|
1400
1400
|
REFUND: "REFUND";
|
|
1401
1401
|
}>>;
|
|
1402
1402
|
filterTransactionDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -1406,9 +1406,6 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1406
1406
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1407
1407
|
FAILED: "FAILED";
|
|
1408
1408
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1409
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1410
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1411
|
-
PAUSED: "PAUSED";
|
|
1412
1409
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1413
1410
|
MATCHED: "MATCHED";
|
|
1414
1411
|
RETURNING: "RETURNING";
|
|
@@ -1427,8 +1424,8 @@ interface GetTransactionsOutput {
|
|
|
1427
1424
|
|
|
1428
1425
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1429
1426
|
referenceType: z.ZodEnum<{
|
|
1430
|
-
PAYMENT: "PAYMENT";
|
|
1431
1427
|
EXCHANGE: "EXCHANGE";
|
|
1428
|
+
PAYMENT: "PAYMENT";
|
|
1432
1429
|
ORDER: "ORDER";
|
|
1433
1430
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1434
1431
|
FORWARD: "FORWARD";
|
|
@@ -1651,14 +1648,23 @@ interface UpdateTransactionConfirmationSentAtInput extends z.input<typeof update
|
|
|
1651
1648
|
}
|
|
1652
1649
|
type UpdateTransactionConfirmationSentAtOutput = void;
|
|
1653
1650
|
|
|
1651
|
+
declare const refundTransactionInputSchema: z.ZodObject<{
|
|
1652
|
+
transactionId: z.ZodUUID;
|
|
1653
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1654
|
+
reason: z.ZodString;
|
|
1655
|
+
}, z.core.$strip>;
|
|
1656
|
+
interface RefundTransactionInput extends z.infer<typeof refundTransactionInputSchema> {
|
|
1657
|
+
}
|
|
1658
|
+
interface RefundTransactionOutput {
|
|
1659
|
+
refundTransaction: TransactionSelectType;
|
|
1660
|
+
originalTransaction: TransactionSelectType;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1654
1663
|
declare const updateTransactionStatusInputSchema: z.ZodObject<{
|
|
1655
1664
|
transactionId: z.ZodUUID;
|
|
1656
1665
|
status: z.ZodEnum<{
|
|
1657
1666
|
FAILED: "FAILED";
|
|
1658
1667
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1659
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1660
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1661
|
-
PAUSED: "PAUSED";
|
|
1662
1668
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1663
1669
|
MATCHED: "MATCHED";
|
|
1664
1670
|
RETURNING: "RETURNING";
|
|
@@ -1677,5 +1683,5 @@ interface UpdateTransactionStatusOutput extends TransactionSelectType {
|
|
|
1677
1683
|
|
|
1678
1684
|
declare const tables: typeof schema;
|
|
1679
1685
|
|
|
1680
|
-
export {
|
|
1681
|
-
export type {
|
|
1686
|
+
export { createAccountInputSchema as $, cancelTransactionInputSchema as _, createTransactionInputSchema as a0, deleteAccountInputSchema as a1, failTransactionInputSchema as a2, findAccountByIdentifierInputSchema as a3, getAccountBalanceInputSchema as a4, getAccountIdentifierInputSchema as a5, getAccountInputSchema as a6, getAccountsByOwnerInputSchema as a7, getTransactionByIdInputSchema as a8, getTransactionsByReferenceIdInputSchema as a9, getTransactionsInputSchema as aa, listAccountIdentifiersInputSchema as ab, listAccountsInputSchema as ac, matchTransactionInputSchema as ad, refundTransactionInputSchema as ae, updateAccountInputSchema as af, updateTransactionConfirmationSentAtInputSchema as ag, updateTransactionStatusInputSchema as ah, tables as t };
|
|
1687
|
+
export type { FindAccountByIdentifierOutput as A, GetAccountBalanceInput as B, CreateTransactionInput as C, DeleteAccountInput as D, GetAccountBalanceOutput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtInput as H, UpdateTransactionConfirmationSentAtOutput as I, UpdateTransactionStatusInput as J, UpdateTransactionStatusOutput as K, ListAccountsInput as L, MatchTransactionInput as M, AccountIdentifierInsertType as N, AccountIdentifierMappingInsertType as O, AccountIdentifierMappingSelectType as P, AccountIdentifierSelectType as Q, RefundTransactionInput as R, AccountInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountSelectType as V, AccountWithIdentifiersSelectType as W, IncludeRelation as X, InferResultType as Y, TransactionInsertType as Z, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, RefundTransactionOutput as f, GetTransactionByIdOutput as g, GetTransactionsByIdReferenceInput as h, GetTransactionsByReferenceIdOutput as i, GetTransactionsInput as j, GetTransactionsOutput as k, CreateAccountInput as l, CreateAccountOutput as m, UpdateAccountOutput as n, DeleteAccountOutput as o, GetAccountInput as p, GetAccountOutput as q, GetAccountsByOwnerInput as r, GetAccountsByOwnerOutput as s, ListAccountsOutput as u, GetAccountIdentifierInput as v, GetAccountIdentifierOutput as w, ListAccountIdentifiersInput as x, ListAccountIdentifiersOutput as y, FindAccountByIdentifierInput as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { F as schema } from './ledger.CZjiiQQk.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
interface TSchema extends ExtractTablesWithRelations<typeof tables> {
|
|
@@ -326,6 +326,7 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
326
326
|
UA: "UA";
|
|
327
327
|
AE: "AE";
|
|
328
328
|
GB: "GB";
|
|
329
|
+
US: "US";
|
|
329
330
|
UZ: "UZ";
|
|
330
331
|
VU: "VU";
|
|
331
332
|
VE: "VE";
|
|
@@ -410,8 +411,8 @@ interface CreateAccountOutput {
|
|
|
410
411
|
declare const createTransactionInputSchema: z.ZodObject<{
|
|
411
412
|
correlationId: z.ZodString;
|
|
412
413
|
referenceType: z.ZodEnum<{
|
|
413
|
-
PAYMENT: "PAYMENT";
|
|
414
414
|
EXCHANGE: "EXCHANGE";
|
|
415
|
+
PAYMENT: "PAYMENT";
|
|
415
416
|
ORDER: "ORDER";
|
|
416
417
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
417
418
|
FORWARD: "FORWARD";
|
|
@@ -419,15 +420,16 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
419
420
|
}>;
|
|
420
421
|
referenceId: z.ZodOptional<z.ZodString>;
|
|
421
422
|
type: z.ZodEnum<{
|
|
422
|
-
EXCHANGE: "EXCHANGE";
|
|
423
423
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
424
424
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
425
425
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
426
426
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
427
|
+
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
428
|
+
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
429
|
+
EXCHANGE: "EXCHANGE";
|
|
427
430
|
UNMATCHED: "UNMATCHED";
|
|
428
431
|
ADJUSTMENT: "ADJUSTMENT";
|
|
429
432
|
TRANSFER: "TRANSFER";
|
|
430
|
-
COLLATERAL: "COLLATERAL";
|
|
431
433
|
REFUND: "REFUND";
|
|
432
434
|
}>;
|
|
433
435
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -448,7 +450,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
448
450
|
SEPA: "SEPA";
|
|
449
451
|
UNKNOWN: "UNKNOWN";
|
|
450
452
|
}>;
|
|
451
|
-
|
|
453
|
+
chargeBearer: z.ZodOptional<z.ZodEnum<{
|
|
452
454
|
SHA: "SHA";
|
|
453
455
|
OUR: "OUR";
|
|
454
456
|
BEN: "BEN";
|
|
@@ -1176,9 +1178,6 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1176
1178
|
status: z.ZodEnum<{
|
|
1177
1179
|
FAILED: "FAILED";
|
|
1178
1180
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1179
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1180
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1181
|
-
PAUSED: "PAUSED";
|
|
1182
1181
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1183
1182
|
MATCHED: "MATCHED";
|
|
1184
1183
|
RETURNING: "RETURNING";
|
|
@@ -1379,8 +1378,8 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1379
1378
|
}, z.core.$strip>;
|
|
1380
1379
|
filterTransactionCorrelationId: z.ZodOptional<z.ZodUUID>;
|
|
1381
1380
|
filterTransactionReferenceType: z.ZodOptional<z.ZodEnum<{
|
|
1382
|
-
PAYMENT: "PAYMENT";
|
|
1383
1381
|
EXCHANGE: "EXCHANGE";
|
|
1382
|
+
PAYMENT: "PAYMENT";
|
|
1384
1383
|
ORDER: "ORDER";
|
|
1385
1384
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1386
1385
|
FORWARD: "FORWARD";
|
|
@@ -1388,15 +1387,16 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1388
1387
|
}>>;
|
|
1389
1388
|
filterTransactionReferenceId: z.ZodOptional<z.ZodUUID>;
|
|
1390
1389
|
filterTransactionType: z.ZodOptional<z.ZodEnum<{
|
|
1391
|
-
EXCHANGE: "EXCHANGE";
|
|
1392
1390
|
CLIENT_FUND_IN: "CLIENT_FUND_IN";
|
|
1393
1391
|
CLIENT_FUND_OUT: "CLIENT_FUND_OUT";
|
|
1394
1392
|
PROVIDER_FUND_IN: "PROVIDER_FUND_IN";
|
|
1395
1393
|
PROVIDER_FUND_OUT: "PROVIDER_FUND_OUT";
|
|
1394
|
+
COLLATERAL_FUND_IN: "COLLATERAL_FUND_IN";
|
|
1395
|
+
COLLATERAL_FUND_OUT: "COLLATERAL_FUND_OUT";
|
|
1396
|
+
EXCHANGE: "EXCHANGE";
|
|
1396
1397
|
UNMATCHED: "UNMATCHED";
|
|
1397
1398
|
ADJUSTMENT: "ADJUSTMENT";
|
|
1398
1399
|
TRANSFER: "TRANSFER";
|
|
1399
|
-
COLLATERAL: "COLLATERAL";
|
|
1400
1400
|
REFUND: "REFUND";
|
|
1401
1401
|
}>>;
|
|
1402
1402
|
filterTransactionDescription: z.ZodOptional<z.ZodString>;
|
|
@@ -1406,9 +1406,6 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
1406
1406
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
1407
1407
|
FAILED: "FAILED";
|
|
1408
1408
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1409
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1410
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1411
|
-
PAUSED: "PAUSED";
|
|
1412
1409
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1413
1410
|
MATCHED: "MATCHED";
|
|
1414
1411
|
RETURNING: "RETURNING";
|
|
@@ -1427,8 +1424,8 @@ interface GetTransactionsOutput {
|
|
|
1427
1424
|
|
|
1428
1425
|
declare const getTransactionsByReferenceIdInputSchema: z.ZodObject<{
|
|
1429
1426
|
referenceType: z.ZodEnum<{
|
|
1430
|
-
PAYMENT: "PAYMENT";
|
|
1431
1427
|
EXCHANGE: "EXCHANGE";
|
|
1428
|
+
PAYMENT: "PAYMENT";
|
|
1432
1429
|
ORDER: "ORDER";
|
|
1433
1430
|
"INTERNAL-TRANSFER": "INTERNAL-TRANSFER";
|
|
1434
1431
|
FORWARD: "FORWARD";
|
|
@@ -1651,14 +1648,23 @@ interface UpdateTransactionConfirmationSentAtInput extends z.input<typeof update
|
|
|
1651
1648
|
}
|
|
1652
1649
|
type UpdateTransactionConfirmationSentAtOutput = void;
|
|
1653
1650
|
|
|
1651
|
+
declare const refundTransactionInputSchema: z.ZodObject<{
|
|
1652
|
+
transactionId: z.ZodUUID;
|
|
1653
|
+
amount: z.ZodOptional<z.ZodNumber>;
|
|
1654
|
+
reason: z.ZodString;
|
|
1655
|
+
}, z.core.$strip>;
|
|
1656
|
+
interface RefundTransactionInput extends z.infer<typeof refundTransactionInputSchema> {
|
|
1657
|
+
}
|
|
1658
|
+
interface RefundTransactionOutput {
|
|
1659
|
+
refundTransaction: TransactionSelectType;
|
|
1660
|
+
originalTransaction: TransactionSelectType;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1654
1663
|
declare const updateTransactionStatusInputSchema: z.ZodObject<{
|
|
1655
1664
|
transactionId: z.ZodUUID;
|
|
1656
1665
|
status: z.ZodEnum<{
|
|
1657
1666
|
FAILED: "FAILED";
|
|
1658
1667
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
1659
|
-
WAITING_FOR_COLLATERAL: "WAITING_FOR_COLLATERAL";
|
|
1660
|
-
COLLATERAL_PAID: "COLLATERAL_PAID";
|
|
1661
|
-
PAUSED: "PAUSED";
|
|
1662
1668
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
1663
1669
|
MATCHED: "MATCHED";
|
|
1664
1670
|
RETURNING: "RETURNING";
|
|
@@ -1677,5 +1683,5 @@ interface UpdateTransactionStatusOutput extends TransactionSelectType {
|
|
|
1677
1683
|
|
|
1678
1684
|
declare const tables: typeof schema;
|
|
1679
1685
|
|
|
1680
|
-
export {
|
|
1681
|
-
export type {
|
|
1686
|
+
export { createAccountInputSchema as $, cancelTransactionInputSchema as _, createTransactionInputSchema as a0, deleteAccountInputSchema as a1, failTransactionInputSchema as a2, findAccountByIdentifierInputSchema as a3, getAccountBalanceInputSchema as a4, getAccountIdentifierInputSchema as a5, getAccountInputSchema as a6, getAccountsByOwnerInputSchema as a7, getTransactionByIdInputSchema as a8, getTransactionsByReferenceIdInputSchema as a9, getTransactionsInputSchema as aa, listAccountIdentifiersInputSchema as ab, listAccountsInputSchema as ac, matchTransactionInputSchema as ad, refundTransactionInputSchema as ae, updateAccountInputSchema as af, updateTransactionConfirmationSentAtInputSchema as ag, updateTransactionStatusInputSchema as ah, tables as t };
|
|
1687
|
+
export type { FindAccountByIdentifierOutput as A, GetAccountBalanceInput as B, CreateTransactionInput as C, DeleteAccountInput as D, GetAccountBalanceOutput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtInput as H, UpdateTransactionConfirmationSentAtOutput as I, UpdateTransactionStatusInput as J, UpdateTransactionStatusOutput as K, ListAccountsInput as L, MatchTransactionInput as M, AccountIdentifierInsertType as N, AccountIdentifierMappingInsertType as O, AccountIdentifierMappingSelectType as P, AccountIdentifierSelectType as Q, RefundTransactionInput as R, AccountInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountSelectType as V, AccountWithIdentifiersSelectType as W, IncludeRelation as X, InferResultType as Y, TransactionInsertType as Z, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, RefundTransactionOutput as f, GetTransactionByIdOutput as g, GetTransactionsByIdReferenceInput as h, GetTransactionsByReferenceIdOutput as i, GetTransactionsInput as j, GetTransactionsOutput as k, CreateAccountInput as l, CreateAccountOutput as m, UpdateAccountOutput as n, DeleteAccountOutput as o, GetAccountInput as p, GetAccountOutput as q, GetAccountsByOwnerInput as r, GetAccountsByOwnerOutput as s, ListAccountsOutput as u, GetAccountIdentifierInput as v, GetAccountIdentifierOutput as w, ListAccountIdentifiersInput as x, ListAccountIdentifiersOutput as y, FindAccountByIdentifierInput as z };
|