@develit-services/ledger 0.0.16 → 0.0.18
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.mjs +2 -2
- package/dist/export/worker.cjs +8 -4
- package/dist/export/worker.d.cts +1 -1
- package/dist/export/worker.d.mts +1 -1
- package/dist/export/worker.d.ts +1 -1
- package/dist/export/worker.mjs +8 -4
- package/dist/shared/{ledger.BvbOZ0WG.d.cts → ledger.B-BlO0j7.d.cts} +1 -1
- package/dist/shared/{ledger.Cd1qa4GB.d.ts → ledger.BPiU8WKv.d.ts} +1 -1
- package/dist/shared/{ledger.CYkZYSMS.mjs → ledger.C4oVv-Pm.mjs} +1 -1
- package/dist/shared/{ledger.al23fGGy.mjs → ledger.CYraqLo1.mjs} +1 -1
- package/dist/shared/{ledger.DRm7L41a.d.mts → ledger.D84I58YG.d.mts} +1 -1
- package/dist/shared/{ledger.CwcPuqoq.cjs → ledger.DuWXAYgr.cjs} +1 -1
- package/dist/shared/{ledger.CcYWtEGS.cjs → ledger.IlgzDspB.cjs} +1 -1
- package/dist/types.cjs +1 -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 +3 -3
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.IlgzDspB.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.DuWXAYgr.cjs');
|
|
8
8
|
require('@develit-io/general-codes');
|
|
9
9
|
require('zod');
|
|
10
10
|
|
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.CYraqLo1.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.C4oVv-Pm.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.IlgzDspB.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
|
-
const updateTransactionConfirmationSentAt = require('../shared/ledger.
|
|
10
|
+
const updateTransactionConfirmationSentAt = require('../shared/ledger.DuWXAYgr.cjs');
|
|
11
11
|
require('@develit-io/general-codes');
|
|
12
12
|
require('drizzle-orm/sqlite-core');
|
|
13
13
|
require('zod');
|
|
@@ -327,7 +327,9 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
327
327
|
description,
|
|
328
328
|
paymentId,
|
|
329
329
|
metadata,
|
|
330
|
-
status
|
|
330
|
+
status,
|
|
331
|
+
value,
|
|
332
|
+
currency
|
|
331
333
|
// TODO: entries will be implemented later
|
|
332
334
|
// entries: inputEntries,
|
|
333
335
|
} = params;
|
|
@@ -349,7 +351,9 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(
|
|
|
349
351
|
status,
|
|
350
352
|
paymentId,
|
|
351
353
|
metadata,
|
|
352
|
-
updatedAt: timestamp
|
|
354
|
+
updatedAt: timestamp,
|
|
355
|
+
value,
|
|
356
|
+
currency
|
|
353
357
|
};
|
|
354
358
|
const [data, error] = await backendSdk.useResult(
|
|
355
359
|
this.db.insert(tables.transaction).values(transaction).returning().then(backendSdk.first)
|
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, 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.B-BlO0j7.cjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../shared/ledger.N4btQFi1.cjs';
|
|
8
8
|
import 'drizzle-orm';
|
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, 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.D84I58YG.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../shared/ledger.N4btQFi1.mjs';
|
|
8
8
|
import 'drizzle-orm';
|
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, 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.BPiU8WKv.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '../shared/ledger.N4btQFi1.js';
|
|
8
8
|
import 'drizzle-orm';
|
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.CYraqLo1.mjs';
|
|
5
5
|
import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
|
|
6
|
-
import { f as createTransactionInputSchema, s as matchTransactionInputSchema, h as failTransactionInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, e as createAccountInputSchema, u as updateAccountInputSchema, g as deleteAccountInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, r as listAccountsInputSchema, l as getAccountIdentifierInputSchema, q as listAccountIdentifiersInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.
|
|
6
|
+
import { f as createTransactionInputSchema, s as matchTransactionInputSchema, h as failTransactionInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, e as createAccountInputSchema, u as updateAccountInputSchema, g as deleteAccountInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, r as listAccountsInputSchema, l as getAccountIdentifierInputSchema, q as listAccountIdentifiersInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.C4oVv-Pm.mjs';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'zod';
|
|
@@ -323,7 +323,9 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
323
323
|
description,
|
|
324
324
|
paymentId,
|
|
325
325
|
metadata,
|
|
326
|
-
status
|
|
326
|
+
status,
|
|
327
|
+
value,
|
|
328
|
+
currency
|
|
327
329
|
// TODO: entries will be implemented later
|
|
328
330
|
// entries: inputEntries,
|
|
329
331
|
} = params;
|
|
@@ -345,7 +347,9 @@ let LedgerServiceBase = class extends develitWorker(
|
|
|
345
347
|
status,
|
|
346
348
|
paymentId,
|
|
347
349
|
metadata,
|
|
348
|
-
updatedAt: timestamp
|
|
350
|
+
updatedAt: timestamp,
|
|
351
|
+
value,
|
|
352
|
+
currency
|
|
349
353
|
};
|
|
350
354
|
const [data, error] = await useResult(
|
|
351
355
|
this.db.insert(tables.transaction).values(transaction).returning().then(first)
|
|
@@ -1225,7 +1225,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1225
1225
|
MATIC: "MATIC";
|
|
1226
1226
|
AVAX: "AVAX";
|
|
1227
1227
|
}>>;
|
|
1228
|
-
|
|
1228
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1229
1229
|
}, z.core.$strip>;
|
|
1230
1230
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
1231
1231
|
}
|
|
@@ -1225,7 +1225,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1225
1225
|
MATIC: "MATIC";
|
|
1226
1226
|
AVAX: "AVAX";
|
|
1227
1227
|
}>>;
|
|
1228
|
-
|
|
1228
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1229
1229
|
}, z.core.$strip>;
|
|
1230
1230
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
1231
1231
|
}
|
|
@@ -181,7 +181,7 @@ const createTransactionInputSchema = z.object({
|
|
|
181
181
|
metadata: transactionMetadataSchema.optional().default({}),
|
|
182
182
|
status: z.enum(TRANSACTION_STATUSES),
|
|
183
183
|
currency: z.enum(CURRENCY_CODES).optional(),
|
|
184
|
-
|
|
184
|
+
value: z.number().optional()
|
|
185
185
|
// entries: z.array(entryInputSchema).min(1),
|
|
186
186
|
});
|
|
187
187
|
|
|
@@ -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.C4oVv-Pm.mjs';
|
|
5
5
|
import '@develit-io/general-codes';
|
|
6
6
|
|
|
7
7
|
const account = sqliteTable("account", {
|
|
@@ -1225,7 +1225,7 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
1225
1225
|
MATIC: "MATIC";
|
|
1226
1226
|
AVAX: "AVAX";
|
|
1227
1227
|
}>>;
|
|
1228
|
-
|
|
1228
|
+
value: z.ZodOptional<z.ZodNumber>;
|
|
1229
1229
|
}, z.core.$strip>;
|
|
1230
1230
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
1231
1231
|
}
|
|
@@ -183,7 +183,7 @@ const createTransactionInputSchema = zod.z.object({
|
|
|
183
183
|
metadata: transactionMetadataSchema.optional().default({}),
|
|
184
184
|
status: zod.z.enum(TRANSACTION_STATUSES),
|
|
185
185
|
currency: zod.z.enum(generalCodes.CURRENCY_CODES).optional(),
|
|
186
|
-
|
|
186
|
+
value: zod.z.number().optional()
|
|
187
187
|
// entries: z.array(entryInputSchema).min(1),
|
|
188
188
|
});
|
|
189
189
|
|
|
@@ -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.DuWXAYgr.cjs');
|
|
7
7
|
require('@develit-io/general-codes');
|
|
8
8
|
|
|
9
9
|
const account = sqliteCore.sqliteTable("account", {
|
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.DuWXAYgr.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
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.N4btQFi1.cjs';
|
|
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.
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.B-BlO0j7.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.B-BlO0j7.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.N4btQFi1.mjs';
|
|
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.
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.D84I58YG.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.D84I58YG.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.N4btQFi1.js';
|
|
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.
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.BPiU8WKv.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.BPiU8WKv.js';
|
|
4
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.js';
|
|
5
5
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, x as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, w as PAYMENT_DIRECTIONS, v as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as createAccountInputSchema, f as createTransactionInputSchema, g as deleteAccountInputSchema, h as failTransactionInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, l as getAccountIdentifierInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, q as listAccountIdentifiersInputSchema, r as listAccountsInputSchema, s as matchTransactionInputSchema, u as updateAccountInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.
|
|
1
|
+
export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, x as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, w as PAYMENT_DIRECTIONS, v as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as createAccountInputSchema, f as createTransactionInputSchema, g as deleteAccountInputSchema, h as failTransactionInputSchema, i as findAccountByIdentifierInputSchema, k as getAccountBalanceInputSchema, l as getAccountIdentifierInputSchema, j as getAccountInputSchema, m as getAccountsByOwnerInputSchema, n as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, o as getTransactionsInputSchema, q as listAccountIdentifiersInputSchema, r as listAccountsInputSchema, s as matchTransactionInputSchema, u as updateAccountInputSchema, t as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.C4oVv-Pm.mjs';
|
|
2
2
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/ledger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"drizzle-kit": "*",
|
|
54
54
|
"drizzle-orm": "*",
|
|
55
55
|
"drizzle-seed": "*",
|
|
56
|
-
"wrangler": "
|
|
57
|
-
"zod": "
|
|
56
|
+
"wrangler": "4.50.0",
|
|
57
|
+
"zod": "4.1.13"
|
|
58
58
|
}
|
|
59
59
|
}
|