@develit-services/ledger 0.1.0 → 0.1.1
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 +3 -3
- package/dist/database/schema.mjs +3 -3
- package/dist/export/worker.cjs +52 -2
- package/dist/export/worker.d.cts +2 -1
- package/dist/export/worker.d.mts +2 -1
- package/dist/export/worker.d.ts +2 -1
- package/dist/export/worker.mjs +52 -2
- package/dist/shared/{ledger.CetIK9En.d.ts → ledger.3eeQznZ1.d.ts} +11 -2
- package/dist/shared/{ledger.9tetE9eC.cjs → ledger.BChJGa5-.cjs} +7 -1
- package/dist/shared/{ledger.BRuBZNMq.d.cts → ledger.BgIj13HQ.d.cts} +11 -2
- package/dist/shared/{ledger.Ca6jkAMb.cjs → ledger.BzCZUESF.cjs} +1 -1
- package/dist/shared/{ledger.Ck7a6dAE.d.mts → ledger.DfLcucD6.d.mts} +11 -2
- package/dist/shared/{ledger.BXyTnCr6.mjs → ledger.X_sUCnek.mjs} +1 -1
- package/dist/shared/{ledger.Bkq62KHp.mjs → ledger._BGfS_Xc.mjs} +7 -2
- package/dist/types.cjs +2 -1
- package/dist/types.d.cts +2 -2
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('../shared/ledger.
|
|
3
|
+
const database_schema = require('../shared/ledger.BzCZUESF.cjs');
|
|
4
4
|
require('@develit-io/backend-sdk');
|
|
5
5
|
require('drizzle-orm');
|
|
6
6
|
require('drizzle-orm/sqlite-core');
|
|
7
|
-
require('../shared/ledger.
|
|
8
|
-
require('@develit-io/general-codes');
|
|
7
|
+
require('../shared/ledger.BChJGa5-.cjs');
|
|
9
8
|
require('zod');
|
|
9
|
+
require('@develit-io/general-codes');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
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.X_sUCnek.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
5
|
-
import '../shared/ledger.
|
|
6
|
-
import '@develit-io/general-codes';
|
|
5
|
+
import '../shared/ledger._BGfS_Xc.mjs';
|
|
7
6
|
import 'zod';
|
|
7
|
+
import '@develit-io/general-codes';
|
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.BzCZUESF.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionConfirmationSentAt = require('../shared/ledger.
|
|
10
|
+
const updateTransactionConfirmationSentAt = require('../shared/ledger.BChJGa5-.cjs');
|
|
11
11
|
require('@develit-io/general-codes');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('zod');
|
|
@@ -491,6 +491,53 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
491
491
|
}
|
|
492
492
|
);
|
|
493
493
|
}
|
|
494
|
+
async cancelTransaction(input) {
|
|
495
|
+
return this.handleAction(
|
|
496
|
+
{ data: input, schema: updateTransactionConfirmationSentAt.cancelTransactionInputSchema },
|
|
497
|
+
{ successMessage: "Transaction successfully cancelled." },
|
|
498
|
+
async ({ transactionId, statusReason }) => {
|
|
499
|
+
const existingTransaction = await getTransactionByIdQuery(
|
|
500
|
+
this.db,
|
|
501
|
+
transactionId
|
|
502
|
+
);
|
|
503
|
+
if (!existingTransaction) {
|
|
504
|
+
throw backendSdk.createInternalError(null, {
|
|
505
|
+
message: "Transaction not found",
|
|
506
|
+
status: 404,
|
|
507
|
+
code: "NOT_FOUND"
|
|
508
|
+
});
|
|
509
|
+
}
|
|
510
|
+
const { command } = updateTransactionStatusCommand(this.db, {
|
|
511
|
+
transactionId,
|
|
512
|
+
status: "CANCELLED",
|
|
513
|
+
statusReason
|
|
514
|
+
});
|
|
515
|
+
const [updatedTransaction] = await this.db.batch([command]);
|
|
516
|
+
if (!updatedTransaction) {
|
|
517
|
+
throw backendSdk.createInternalError(null, {
|
|
518
|
+
message: "Failed to update transaction",
|
|
519
|
+
status: 500,
|
|
520
|
+
code: "INTERNAL_ERROR"
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
const transaction = backendSdk.first(updatedTransaction);
|
|
524
|
+
await this.pushToQueue(
|
|
525
|
+
this.env.QUEUE_BUS_QUEUE,
|
|
526
|
+
{
|
|
527
|
+
eventType: "LEDGER_TRANSACTION",
|
|
528
|
+
eventSignal: "updated",
|
|
529
|
+
ledgerTransaction: transaction,
|
|
530
|
+
metadata: {
|
|
531
|
+
correlationId: backendSdk.uuidv4(),
|
|
532
|
+
entityId: transaction.id,
|
|
533
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
);
|
|
537
|
+
return transaction;
|
|
538
|
+
}
|
|
539
|
+
);
|
|
540
|
+
}
|
|
494
541
|
async getTransactionById(input) {
|
|
495
542
|
return this.handleAction(
|
|
496
543
|
{ data: input, schema: updateTransactionConfirmationSentAt.getTransactionByIdInputSchema },
|
|
@@ -764,6 +811,9 @@ __decorateClass([
|
|
|
764
811
|
__decorateClass([
|
|
765
812
|
backendSdk.action("fail-transaction")
|
|
766
813
|
], LedgerServiceBase.prototype, "failTransaction", 1);
|
|
814
|
+
__decorateClass([
|
|
815
|
+
backendSdk.action("cancel-transaction")
|
|
816
|
+
], LedgerServiceBase.prototype, "cancelTransaction", 1);
|
|
767
817
|
__decorateClass([
|
|
768
818
|
backendSdk.action("get-transaction-by-id")
|
|
769
819
|
], LedgerServiceBase.prototype, "getTransactionById", 1);
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ 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,
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.BgIj13HQ.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../shared/ledger.D7ev87ps.cjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
@@ -16,6 +16,7 @@ declare class LedgerServiceBase extends LedgerServiceBase_base {
|
|
|
16
16
|
createTransaction(input: CreateTransactionInput): Promise<IRPCResponse<CreateTransactionOutput>>;
|
|
17
17
|
matchTransaction(input: MatchTransactionInput): Promise<IRPCResponse<MatchTransactionOutput>>;
|
|
18
18
|
failTransaction(input: FailTransactionInput): Promise<IRPCResponse<FailTransactionOutput>>;
|
|
19
|
+
cancelTransaction(input: CancelTransactionInput): Promise<IRPCResponse<CancelTransactionOutput>>;
|
|
19
20
|
getTransactionById(input: GetTransactionByIdInput): Promise<IRPCResponse<GetTransactionByIdOutput | undefined>>;
|
|
20
21
|
getTransactionsByReferenceId(input: GetTransactionsByIdReferenceInput): Promise<IRPCResponse<GetTransactionsByReferenceIdOutput | undefined>>;
|
|
21
22
|
getTransactions(input: GetTransactionsInput): Promise<IRPCResponse<GetTransactionsOutput>>;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ 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,
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.DfLcucD6.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../shared/ledger.D7ev87ps.mjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
@@ -16,6 +16,7 @@ declare class LedgerServiceBase extends LedgerServiceBase_base {
|
|
|
16
16
|
createTransaction(input: CreateTransactionInput): Promise<IRPCResponse<CreateTransactionOutput>>;
|
|
17
17
|
matchTransaction(input: MatchTransactionInput): Promise<IRPCResponse<MatchTransactionOutput>>;
|
|
18
18
|
failTransaction(input: FailTransactionInput): Promise<IRPCResponse<FailTransactionOutput>>;
|
|
19
|
+
cancelTransaction(input: CancelTransactionInput): Promise<IRPCResponse<CancelTransactionOutput>>;
|
|
19
20
|
getTransactionById(input: GetTransactionByIdInput): Promise<IRPCResponse<GetTransactionByIdOutput | undefined>>;
|
|
20
21
|
getTransactionsByReferenceId(input: GetTransactionsByIdReferenceInput): Promise<IRPCResponse<GetTransactionsByReferenceIdOutput | undefined>>;
|
|
21
22
|
getTransactions(input: GetTransactionsInput): Promise<IRPCResponse<GetTransactionsOutput>>;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ 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,
|
|
5
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, M as MatchTransactionInput, b as MatchTransactionOutput, F as FailTransactionInput, c as FailTransactionOutput, d as CancelTransactionInput, e as CancelTransactionOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, k as CreateAccountInput, l as CreateAccountOutput, U as UpdateAccountInput, m as UpdateAccountOutput, D as DeleteAccountInput, n as DeleteAccountOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, L as ListAccountsInput, s as ListAccountsOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.3eeQznZ1.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../shared/ledger.D7ev87ps.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
@@ -16,6 +16,7 @@ declare class LedgerServiceBase extends LedgerServiceBase_base {
|
|
|
16
16
|
createTransaction(input: CreateTransactionInput): Promise<IRPCResponse<CreateTransactionOutput>>;
|
|
17
17
|
matchTransaction(input: MatchTransactionInput): Promise<IRPCResponse<MatchTransactionOutput>>;
|
|
18
18
|
failTransaction(input: FailTransactionInput): Promise<IRPCResponse<FailTransactionOutput>>;
|
|
19
|
+
cancelTransaction(input: CancelTransactionInput): Promise<IRPCResponse<CancelTransactionOutput>>;
|
|
19
20
|
getTransactionById(input: GetTransactionByIdInput): Promise<IRPCResponse<GetTransactionByIdOutput | undefined>>;
|
|
20
21
|
getTransactionsByReferenceId(input: GetTransactionsByIdReferenceInput): Promise<IRPCResponse<GetTransactionsByReferenceIdOutput | undefined>>;
|
|
21
22
|
getTransactions(input: GetTransactionsInput): Promise<IRPCResponse<GetTransactionsOutput>>;
|
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.X_sUCnek.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import {
|
|
6
|
+
import { g as createTransactionInputSchema, t as matchTransactionInputSchema, i as failTransactionInputSchema, e as cancelTransactionInputSchema, o as getTransactionByIdInputSchema, q as getTransactionsByReferenceIdInputSchema, p as getTransactionsInputSchema, f as createAccountInputSchema, u as updateAccountInputSchema, h as deleteAccountInputSchema, k as getAccountInputSchema, n as getAccountsByOwnerInputSchema, s as listAccountsInputSchema, m as getAccountIdentifierInputSchema, r as listAccountIdentifiersInputSchema, j as findAccountByIdentifierInputSchema, l as getAccountBalanceInputSchema, v as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger._BGfS_Xc.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -487,6 +487,53 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
487
487
|
}
|
|
488
488
|
);
|
|
489
489
|
}
|
|
490
|
+
async cancelTransaction(input) {
|
|
491
|
+
return this.handleAction(
|
|
492
|
+
{ data: input, schema: cancelTransactionInputSchema },
|
|
493
|
+
{ successMessage: "Transaction successfully cancelled." },
|
|
494
|
+
async ({ transactionId, statusReason }) => {
|
|
495
|
+
const existingTransaction = await getTransactionByIdQuery(
|
|
496
|
+
this.db,
|
|
497
|
+
transactionId
|
|
498
|
+
);
|
|
499
|
+
if (!existingTransaction) {
|
|
500
|
+
throw createInternalError(null, {
|
|
501
|
+
message: "Transaction not found",
|
|
502
|
+
status: 404,
|
|
503
|
+
code: "NOT_FOUND"
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
const { command } = updateTransactionStatusCommand(this.db, {
|
|
507
|
+
transactionId,
|
|
508
|
+
status: "CANCELLED",
|
|
509
|
+
statusReason
|
|
510
|
+
});
|
|
511
|
+
const [updatedTransaction] = await this.db.batch([command]);
|
|
512
|
+
if (!updatedTransaction) {
|
|
513
|
+
throw createInternalError(null, {
|
|
514
|
+
message: "Failed to update transaction",
|
|
515
|
+
status: 500,
|
|
516
|
+
code: "INTERNAL_ERROR"
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
const transaction = first(updatedTransaction);
|
|
520
|
+
await this.pushToQueue(
|
|
521
|
+
this.env.QUEUE_BUS_QUEUE,
|
|
522
|
+
{
|
|
523
|
+
eventType: "LEDGER_TRANSACTION",
|
|
524
|
+
eventSignal: "updated",
|
|
525
|
+
ledgerTransaction: transaction,
|
|
526
|
+
metadata: {
|
|
527
|
+
correlationId: uuidv4(),
|
|
528
|
+
entityId: transaction.id,
|
|
529
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
);
|
|
533
|
+
return transaction;
|
|
534
|
+
}
|
|
535
|
+
);
|
|
536
|
+
}
|
|
490
537
|
async getTransactionById(input) {
|
|
491
538
|
return this.handleAction(
|
|
492
539
|
{ data: input, schema: getTransactionByIdInputSchema },
|
|
@@ -760,6 +807,9 @@ __decorateClass([
|
|
|
760
807
|
__decorateClass([
|
|
761
808
|
action("fail-transaction")
|
|
762
809
|
], LedgerServiceBase.prototype, "failTransaction", 1);
|
|
810
|
+
__decorateClass([
|
|
811
|
+
action("cancel-transaction")
|
|
812
|
+
], LedgerServiceBase.prototype, "cancelTransaction", 1);
|
|
763
813
|
__decorateClass([
|
|
764
814
|
action("get-transaction-by-id")
|
|
765
815
|
], LedgerServiceBase.prototype, "getTransactionById", 1);
|
|
@@ -29,6 +29,15 @@ interface AccountWithIdentifiersSelectType extends InferResultType<'account', {
|
|
|
29
29
|
interface TransactionSelectType extends InferSelectModel<typeof tables.transaction> {
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
declare const cancelTransactionInputSchema: z.ZodObject<{
|
|
33
|
+
transactionId: z.ZodUUID;
|
|
34
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
interface CancelTransactionInput extends z.infer<typeof cancelTransactionInputSchema> {
|
|
37
|
+
}
|
|
38
|
+
interface CancelTransactionOutput extends TransactionSelectType {
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
declare const createAccountInputSchema: z.ZodObject<{
|
|
33
42
|
name: z.ZodString;
|
|
34
43
|
ownerId: z.ZodString;
|
|
@@ -1630,5 +1639,5 @@ type UpdateTransactionConfirmationSentAtOutput = void;
|
|
|
1630
1639
|
|
|
1631
1640
|
declare const tables: typeof schema;
|
|
1632
1641
|
|
|
1633
|
-
export {
|
|
1634
|
-
export type {
|
|
1642
|
+
export { findAccountByIdentifierInputSchema as $, cancelTransactionInputSchema as W, createAccountInputSchema as X, createTransactionInputSchema as Y, deleteAccountInputSchema as Z, failTransactionInputSchema as _, getAccountInputSchema as a0, getAccountBalanceInputSchema as a1, getAccountIdentifierInputSchema as a2, getAccountsByOwnerInputSchema as a3, getTransactionByIdInputSchema as a4, getTransactionsInputSchema as a5, getTransactionsByReferenceIdInputSchema as a6, listAccountIdentifiersInputSchema as a7, listAccountsInputSchema as a8, matchTransactionInputSchema as a9, updateAccountInputSchema as aa, updateTransactionConfirmationSentAtInputSchema as ab, tables as t };
|
|
1643
|
+
export type { GetAccountBalanceInput as A, GetAccountBalanceOutput as B, CreateTransactionInput as C, DeleteAccountInput as D, UpdateTransactionConfirmationSentAtInput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtOutput as H, IncludeRelation as I, InferResultType as J, AccountSelectType as K, ListAccountsInput as L, MatchTransactionInput as M, AccountInsertType as N, AccountIdentifierSelectType as O, AccountIdentifierInsertType as P, AccountIdentifierMappingSelectType as Q, AccountIdentifierMappingInsertType as R, TransactionInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountWithIdentifiersSelectType as V, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, GetTransactionByIdOutput as f, GetTransactionsByIdReferenceInput as g, GetTransactionsByReferenceIdOutput as h, GetTransactionsInput as i, GetTransactionsOutput as j, CreateAccountInput as k, CreateAccountOutput as l, UpdateAccountOutput as m, DeleteAccountOutput as n, GetAccountInput as o, GetAccountOutput as p, GetAccountsByOwnerInput as q, GetAccountsByOwnerOutput as r, ListAccountsOutput as s, GetAccountIdentifierInput as u, GetAccountIdentifierOutput as v, ListAccountIdentifiersInput as w, ListAccountIdentifiersOutput as x, FindAccountByIdentifierInput as y, FindAccountByIdentifierOutput as z };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const generalCodes = require('@develit-io/general-codes');
|
|
4
3
|
const zod = require('zod');
|
|
4
|
+
const generalCodes = require('@develit-io/general-codes');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
|
|
7
7
|
const ACCOUNT_TYPES = [
|
|
@@ -104,6 +104,11 @@ const ALLOWED_TRANSACTION_FILTERS = {
|
|
|
104
104
|
STATUS: "filterTransactionStatus"
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
+
const cancelTransactionInputSchema = zod.z.object({
|
|
108
|
+
transactionId: zod.z.uuid(),
|
|
109
|
+
statusReason: zod.z.string().optional()
|
|
110
|
+
});
|
|
111
|
+
|
|
107
112
|
const PAYMENT_STATUSES = [
|
|
108
113
|
"PREPARED",
|
|
109
114
|
"INITIALIZED",
|
|
@@ -316,6 +321,7 @@ exports.PAYMENT_TYPES = PAYMENT_TYPES;
|
|
|
316
321
|
exports.REFERENCE_TYPES = REFERENCE_TYPES;
|
|
317
322
|
exports.TRANSACTION_STATUSES = TRANSACTION_STATUSES;
|
|
318
323
|
exports.TRANSACTION_TYPES = TRANSACTION_TYPES;
|
|
324
|
+
exports.cancelTransactionInputSchema = cancelTransactionInputSchema;
|
|
319
325
|
exports.createAccountInputSchema = createAccountInputSchema;
|
|
320
326
|
exports.createTransactionInputSchema = createTransactionInputSchema;
|
|
321
327
|
exports.deleteAccountInputSchema = deleteAccountInputSchema;
|
|
@@ -29,6 +29,15 @@ interface AccountWithIdentifiersSelectType extends InferResultType<'account', {
|
|
|
29
29
|
interface TransactionSelectType extends InferSelectModel<typeof tables.transaction> {
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
declare const cancelTransactionInputSchema: z.ZodObject<{
|
|
33
|
+
transactionId: z.ZodUUID;
|
|
34
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
interface CancelTransactionInput extends z.infer<typeof cancelTransactionInputSchema> {
|
|
37
|
+
}
|
|
38
|
+
interface CancelTransactionOutput extends TransactionSelectType {
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
declare const createAccountInputSchema: z.ZodObject<{
|
|
33
42
|
name: z.ZodString;
|
|
34
43
|
ownerId: z.ZodString;
|
|
@@ -1630,5 +1639,5 @@ type UpdateTransactionConfirmationSentAtOutput = void;
|
|
|
1630
1639
|
|
|
1631
1640
|
declare const tables: typeof schema;
|
|
1632
1641
|
|
|
1633
|
-
export {
|
|
1634
|
-
export type {
|
|
1642
|
+
export { findAccountByIdentifierInputSchema as $, cancelTransactionInputSchema as W, createAccountInputSchema as X, createTransactionInputSchema as Y, deleteAccountInputSchema as Z, failTransactionInputSchema as _, getAccountInputSchema as a0, getAccountBalanceInputSchema as a1, getAccountIdentifierInputSchema as a2, getAccountsByOwnerInputSchema as a3, getTransactionByIdInputSchema as a4, getTransactionsInputSchema as a5, getTransactionsByReferenceIdInputSchema as a6, listAccountIdentifiersInputSchema as a7, listAccountsInputSchema as a8, matchTransactionInputSchema as a9, updateAccountInputSchema as aa, updateTransactionConfirmationSentAtInputSchema as ab, tables as t };
|
|
1643
|
+
export type { GetAccountBalanceInput as A, GetAccountBalanceOutput as B, CreateTransactionInput as C, DeleteAccountInput as D, UpdateTransactionConfirmationSentAtInput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtOutput as H, IncludeRelation as I, InferResultType as J, AccountSelectType as K, ListAccountsInput as L, MatchTransactionInput as M, AccountInsertType as N, AccountIdentifierSelectType as O, AccountIdentifierInsertType as P, AccountIdentifierMappingSelectType as Q, AccountIdentifierMappingInsertType as R, TransactionInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountWithIdentifiersSelectType as V, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, GetTransactionByIdOutput as f, GetTransactionsByIdReferenceInput as g, GetTransactionsByReferenceIdOutput as h, GetTransactionsInput as i, GetTransactionsOutput as j, CreateAccountInput as k, CreateAccountOutput as l, UpdateAccountOutput as m, DeleteAccountOutput as n, GetAccountInput as o, GetAccountOutput as p, GetAccountsByOwnerInput as q, GetAccountsByOwnerOutput as r, ListAccountsOutput as s, GetAccountIdentifierInput as u, GetAccountIdentifierOutput as v, ListAccountIdentifiersInput as w, ListAccountIdentifiersOutput as x, FindAccountByIdentifierInput as y, FindAccountByIdentifierOutput as z };
|
|
@@ -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.BChJGa5-.cjs');
|
|
7
7
|
require('@develit-io/general-codes');
|
|
8
8
|
|
|
9
9
|
const account = sqliteCore.sqliteTable("account", {
|
|
@@ -29,6 +29,15 @@ interface AccountWithIdentifiersSelectType extends InferResultType<'account', {
|
|
|
29
29
|
interface TransactionSelectType extends InferSelectModel<typeof tables.transaction> {
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
declare const cancelTransactionInputSchema: z.ZodObject<{
|
|
33
|
+
transactionId: z.ZodUUID;
|
|
34
|
+
statusReason: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
interface CancelTransactionInput extends z.infer<typeof cancelTransactionInputSchema> {
|
|
37
|
+
}
|
|
38
|
+
interface CancelTransactionOutput extends TransactionSelectType {
|
|
39
|
+
}
|
|
40
|
+
|
|
32
41
|
declare const createAccountInputSchema: z.ZodObject<{
|
|
33
42
|
name: z.ZodString;
|
|
34
43
|
ownerId: z.ZodString;
|
|
@@ -1630,5 +1639,5 @@ type UpdateTransactionConfirmationSentAtOutput = void;
|
|
|
1630
1639
|
|
|
1631
1640
|
declare const tables: typeof schema;
|
|
1632
1641
|
|
|
1633
|
-
export {
|
|
1634
|
-
export type {
|
|
1642
|
+
export { findAccountByIdentifierInputSchema as $, cancelTransactionInputSchema as W, createAccountInputSchema as X, createTransactionInputSchema as Y, deleteAccountInputSchema as Z, failTransactionInputSchema as _, getAccountInputSchema as a0, getAccountBalanceInputSchema as a1, getAccountIdentifierInputSchema as a2, getAccountsByOwnerInputSchema as a3, getTransactionByIdInputSchema as a4, getTransactionsInputSchema as a5, getTransactionsByReferenceIdInputSchema as a6, listAccountIdentifiersInputSchema as a7, listAccountsInputSchema as a8, matchTransactionInputSchema as a9, updateAccountInputSchema as aa, updateTransactionConfirmationSentAtInputSchema as ab, tables as t };
|
|
1643
|
+
export type { GetAccountBalanceInput as A, GetAccountBalanceOutput as B, CreateTransactionInput as C, DeleteAccountInput as D, UpdateTransactionConfirmationSentAtInput as E, FailTransactionInput as F, GetTransactionByIdInput as G, UpdateTransactionConfirmationSentAtOutput as H, IncludeRelation as I, InferResultType as J, AccountSelectType as K, ListAccountsInput as L, MatchTransactionInput as M, AccountInsertType as N, AccountIdentifierSelectType as O, AccountIdentifierInsertType as P, AccountIdentifierMappingSelectType as Q, AccountIdentifierMappingInsertType as R, TransactionInsertType as S, TransactionSelectType as T, UpdateAccountInput as U, AccountWithIdentifiersSelectType as V, CreateTransactionOutput as a, MatchTransactionOutput as b, FailTransactionOutput as c, CancelTransactionInput as d, CancelTransactionOutput as e, GetTransactionByIdOutput as f, GetTransactionsByIdReferenceInput as g, GetTransactionsByReferenceIdOutput as h, GetTransactionsInput as i, GetTransactionsOutput as j, CreateAccountInput as k, CreateAccountOutput as l, UpdateAccountOutput as m, DeleteAccountOutput as n, GetAccountInput as o, GetAccountOutput as p, GetAccountsByOwnerInput as q, GetAccountsByOwnerOutput as r, ListAccountsOutput as s, GetAccountIdentifierInput as u, GetAccountIdentifierOutput as v, ListAccountIdentifiersInput as w, ListAccountIdentifiersOutput as x, FindAccountByIdentifierInput as y, FindAccountByIdentifierOutput as z };
|
|
@@ -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._BGfS_Xc.mjs';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
|
|
7
7
|
const account = sqliteTable("account", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { COUNTRY_CODES_2, BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
2
1
|
import { z } from 'zod';
|
|
2
|
+
import { COUNTRY_CODES_2, BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
3
|
import { bankAccountMetadataSchema } from '@develit-io/backend-sdk';
|
|
4
4
|
|
|
5
5
|
const ACCOUNT_TYPES = [
|
|
@@ -102,6 +102,11 @@ const ALLOWED_TRANSACTION_FILTERS = {
|
|
|
102
102
|
STATUS: "filterTransactionStatus"
|
|
103
103
|
};
|
|
104
104
|
|
|
105
|
+
const cancelTransactionInputSchema = z.object({
|
|
106
|
+
transactionId: z.uuid(),
|
|
107
|
+
statusReason: z.string().optional()
|
|
108
|
+
});
|
|
109
|
+
|
|
105
110
|
const PAYMENT_STATUSES = [
|
|
106
111
|
"PREPARED",
|
|
107
112
|
"INITIALIZED",
|
|
@@ -299,4 +304,4 @@ const updateTransactionConfirmationSentAtInputSchema = z.object({
|
|
|
299
304
|
transactionId: z.uuid()
|
|
300
305
|
});
|
|
301
306
|
|
|
302
|
-
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, ENTRY_STATUSES as E, IDENTIFIER_KINDS as I, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as a, TRANSACTION_TYPES as b, PAYMENT_TYPES as c, ALLOWED_TRANSACTION_FILTERS as d,
|
|
307
|
+
export { ACCOUNT_TYPES as A, BALANCE_STRATEGIES as B, COUNTRY_CODES as C, ENTRY_STATUSES as E, IDENTIFIER_KINDS as I, PAYMENT_CHARGE_TYPES as P, REFERENCE_TYPES as R, TRANSACTION_STATUSES as T, ASSET_TYPES as a, TRANSACTION_TYPES as b, PAYMENT_TYPES as c, ALLOWED_TRANSACTION_FILTERS as d, cancelTransactionInputSchema as e, createAccountInputSchema as f, createTransactionInputSchema as g, deleteAccountInputSchema as h, failTransactionInputSchema as i, findAccountByIdentifierInputSchema as j, getAccountInputSchema as k, getAccountBalanceInputSchema as l, getAccountIdentifierInputSchema as m, getAccountsByOwnerInputSchema as n, getTransactionByIdInputSchema as o, getTransactionsInputSchema as p, getTransactionsByReferenceIdInputSchema as q, listAccountIdentifiersInputSchema as r, listAccountsInputSchema as s, matchTransactionInputSchema as t, updateAccountInputSchema as u, updateTransactionConfirmationSentAtInputSchema as v, PAYMENT_STATUSES as w, PAYMENT_DIRECTIONS as x, BATCH_STATUSES as y };
|
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.BChJGa5-.cjs');
|
|
4
4
|
const generalCodes = require('@develit-io/general-codes');
|
|
5
5
|
require('zod');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
|
@@ -22,6 +22,7 @@ exports.PAYMENT_TYPES = updateTransactionConfirmationSentAt.PAYMENT_TYPES;
|
|
|
22
22
|
exports.REFERENCE_TYPES = updateTransactionConfirmationSentAt.REFERENCE_TYPES;
|
|
23
23
|
exports.TRANSACTION_STATUSES = updateTransactionConfirmationSentAt.TRANSACTION_STATUSES;
|
|
24
24
|
exports.TRANSACTION_TYPES = updateTransactionConfirmationSentAt.TRANSACTION_TYPES;
|
|
25
|
+
exports.cancelTransactionInputSchema = updateTransactionConfirmationSentAt.cancelTransactionInputSchema;
|
|
25
26
|
exports.createAccountInputSchema = updateTransactionConfirmationSentAt.createAccountInputSchema;
|
|
26
27
|
exports.createTransactionInputSchema = updateTransactionConfirmationSentAt.createTransactionInputSchema;
|
|
27
28
|
exports.deleteAccountInputSchema = updateTransactionConfirmationSentAt.deleteAccountInputSchema;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.D7ev87ps.cjs';
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.BgIj13HQ.cjs';
|
|
3
|
+
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.BgIj13HQ.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
1
|
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.D7ev87ps.mjs';
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.DfLcucD6.mjs';
|
|
3
|
+
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.DfLcucD6.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
1
|
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, o as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, l as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, m as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, n as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.D7ev87ps.js';
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export {
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.3eeQznZ1.js';
|
|
3
|
+
export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.3eeQznZ1.js';
|
|
4
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.js';
|
|
5
5
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES,
|
|
1
|
+
export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, y as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, x as PAYMENT_DIRECTIONS, w as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as cancelTransactionInputSchema, f as createAccountInputSchema, g as createTransactionInputSchema, h as deleteAccountInputSchema, i as failTransactionInputSchema, j as findAccountByIdentifierInputSchema, l as getAccountBalanceInputSchema, m as getAccountIdentifierInputSchema, k as getAccountInputSchema, n as getAccountsByOwnerInputSchema, o as getTransactionByIdInputSchema, q as getTransactionsByReferenceIdInputSchema, p as getTransactionsInputSchema, r as listAccountIdentifiersInputSchema, s as listAccountsInputSchema, t as matchTransactionInputSchema, u as updateAccountInputSchema, v as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger._BGfS_Xc.mjs';
|
|
2
2
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@develit-io/backend-sdk';
|