@develit-services/ledger 0.0.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/@types.cjs +42 -0
- package/dist/@types.d.cts +44 -0
- package/dist/@types.d.mts +44 -0
- package/dist/@types.d.ts +44 -0
- package/dist/@types.mjs +4 -0
- package/dist/database/schema.cjs +20 -0
- package/dist/database/schema.d.cts +5 -0
- package/dist/database/schema.d.mts +5 -0
- package/dist/database/schema.d.ts +5 -0
- package/dist/database/schema.mjs +7 -0
- package/dist/export/worker.cjs +764 -0
- package/dist/export/worker.d.cts +39 -0
- package/dist/export/worker.d.mts +37 -0
- package/dist/export/worker.d.ts +39 -0
- package/dist/export/worker.mjs +759 -0
- package/dist/export/wrangler.cjs +90 -0
- package/dist/export/wrangler.d.cts +40 -0
- package/dist/export/wrangler.d.mts +40 -0
- package/dist/export/wrangler.d.ts +40 -0
- package/dist/export/wrangler.mjs +88 -0
- package/dist/shared/ledger.BGDeCrA0.d.mts +1019 -0
- package/dist/shared/ledger.Bl4HgQDw.mjs +108 -0
- package/dist/shared/ledger.ByUO4e44.mjs +285 -0
- package/dist/shared/ledger.CSKqugjV.d.ts +1019 -0
- package/dist/shared/ledger.CSi5bWgX.d.cts +1019 -0
- package/dist/shared/ledger.Ce2yPDUS.d.cts +18 -0
- package/dist/shared/ledger.Ce2yPDUS.d.mts +18 -0
- package/dist/shared/ledger.Ce2yPDUS.d.ts +18 -0
- package/dist/shared/ledger.D1MIlhpb.cjs +317 -0
- package/dist/shared/ledger.DGu3Pj-Y.cjs +118 -0
- package/dist/shared/ledger._YlR4Uxg.d.cts +1320 -0
- package/dist/shared/ledger._YlR4Uxg.d.mts +1320 -0
- package/dist/shared/ledger._YlR4Uxg.d.ts +1320 -0
- package/package.json +59 -0
package/dist/@types.cjs
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const updateTransactionConfirmationSentAt = require('./shared/ledger.D1MIlhpb.cjs');
|
|
4
|
+
const generalCodes = require('@develit-io/general-codes');
|
|
5
|
+
require('zod');
|
|
6
|
+
require('@develit-io/backend-sdk');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.ACCOUNT_TYPES = updateTransactionConfirmationSentAt.ACCOUNT_TYPES;
|
|
11
|
+
exports.ALLOWED_TRANSACTION_FILTERS = updateTransactionConfirmationSentAt.ALLOWED_TRANSACTION_FILTERS;
|
|
12
|
+
exports.ASSET_TYPES = updateTransactionConfirmationSentAt.ASSET_TYPES;
|
|
13
|
+
exports.BALANCE_STRATEGIES = updateTransactionConfirmationSentAt.BALANCE_STRATEGIES;
|
|
14
|
+
exports.BATCH_STATUSES = updateTransactionConfirmationSentAt.BATCH_STATUSES;
|
|
15
|
+
exports.COUNTRY_CODES = updateTransactionConfirmationSentAt.COUNTRY_CODES;
|
|
16
|
+
exports.ENTRY_STATUSES = updateTransactionConfirmationSentAt.ENTRY_STATUSES;
|
|
17
|
+
exports.IDENTIFIER_KINDS = updateTransactionConfirmationSentAt.IDENTIFIER_KINDS;
|
|
18
|
+
exports.PAYMENT_CHARGE_TYPES = updateTransactionConfirmationSentAt.PAYMENT_CHARGE_TYPES;
|
|
19
|
+
exports.PAYMENT_DIRECTIONS = updateTransactionConfirmationSentAt.PAYMENT_DIRECTIONS;
|
|
20
|
+
exports.PAYMENT_STATUSES = updateTransactionConfirmationSentAt.PAYMENT_STATUSES;
|
|
21
|
+
exports.PAYMENT_TYPES = updateTransactionConfirmationSentAt.PAYMENT_TYPES;
|
|
22
|
+
exports.REFERENCE_TYPES = updateTransactionConfirmationSentAt.REFERENCE_TYPES;
|
|
23
|
+
exports.TRANSACTION_STATUSES = updateTransactionConfirmationSentAt.TRANSACTION_STATUSES;
|
|
24
|
+
exports.TRANSACTION_TYPES = updateTransactionConfirmationSentAt.TRANSACTION_TYPES;
|
|
25
|
+
exports.createAccountInputSchema = updateTransactionConfirmationSentAt.createAccountInputSchema;
|
|
26
|
+
exports.createTransactionInputSchema = updateTransactionConfirmationSentAt.createTransactionInputSchema;
|
|
27
|
+
exports.deleteAccountInputSchema = updateTransactionConfirmationSentAt.deleteAccountInputSchema;
|
|
28
|
+
exports.findAccountByIdentifierInputSchema = updateTransactionConfirmationSentAt.findAccountByIdentifierInputSchema;
|
|
29
|
+
exports.getAccountBalanceInputSchema = updateTransactionConfirmationSentAt.getAccountBalanceInputSchema;
|
|
30
|
+
exports.getAccountIdentifierInputSchema = updateTransactionConfirmationSentAt.getAccountIdentifierInputSchema;
|
|
31
|
+
exports.getAccountInputSchema = updateTransactionConfirmationSentAt.getAccountInputSchema;
|
|
32
|
+
exports.getAccountsByOwnerInputSchema = updateTransactionConfirmationSentAt.getAccountsByOwnerInputSchema;
|
|
33
|
+
exports.getTransactionByIdInputSchema = updateTransactionConfirmationSentAt.getTransactionByIdInputSchema;
|
|
34
|
+
exports.getTransactionsByReferenceIdInputSchema = updateTransactionConfirmationSentAt.getTransactionsByReferenceIdInputSchema;
|
|
35
|
+
exports.getTransactionsInputSchema = updateTransactionConfirmationSentAt.getTransactionsInputSchema;
|
|
36
|
+
exports.listAccountIdentifiersInputSchema = updateTransactionConfirmationSentAt.listAccountIdentifiersInputSchema;
|
|
37
|
+
exports.listAccountsInputSchema = updateTransactionConfirmationSentAt.listAccountsInputSchema;
|
|
38
|
+
exports.updateAccountInputSchema = updateTransactionConfirmationSentAt.updateAccountInputSchema;
|
|
39
|
+
exports.updateTransactionConfirmationSentAtInputSchema = updateTransactionConfirmationSentAt.updateTransactionConfirmationSentAtInputSchema;
|
|
40
|
+
exports.updateTransactionInputSchema = updateTransactionConfirmationSentAt.updateTransactionInputSchema;
|
|
41
|
+
exports.BANK_CODES = generalCodes.BANK_CODES;
|
|
42
|
+
exports.CURRENCY_CODES = generalCodes.CURRENCY_CODES;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger._YlR4Uxg.cjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CSi5bWgX.cjs';
|
|
3
|
+
export { K as AccountIdentifierInsertType, N as AccountIdentifierMappingInsertType, M as AccountIdentifierMappingSelectType, J as AccountIdentifierSelectType, H as AccountInsertType, E as AccountSelectType, P as AccountWithIdentifiersSelectType, h as CreateAccountInput, i as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, I as IncludeRelation, B as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, O as TransactionInsertType, j as UpdateAccountInput, k as UpdateAccountOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, Q as createAccountInputSchema, R as createTransactionInputSchema, S as deleteAccountInputSchema, V as findAccountByIdentifierInputSchema, X as getAccountBalanceInputSchema, Y as getAccountIdentifierInputSchema, W as getAccountInputSchema, Z as getAccountsByOwnerInputSchema, a2 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a4 as getTransactionsInputSchema, _ as listAccountIdentifiersInputSchema, $ as listAccountsInputSchema, a0 as updateAccountInputSchema, a5 as updateTransactionConfirmationSentAtInputSchema, a1 as updateTransactionInputSchema } from './shared/ledger.CSi5bWgX.cjs';
|
|
4
|
+
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.cjs';
|
|
5
|
+
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
import '@develit-io/backend-sdk';
|
|
9
|
+
import 'zod';
|
|
10
|
+
|
|
11
|
+
declare const ALLOWED_TRANSACTION_FILTERS: {
|
|
12
|
+
readonly CORRELATION_ID: "filterTransactionCorrelationId";
|
|
13
|
+
readonly REFERENCE_TYPE: "filterTransactionReferenceType";
|
|
14
|
+
readonly REFERENCE_ID: "filterTransactionReferenceId";
|
|
15
|
+
readonly TYPE: "filterTransactionType";
|
|
16
|
+
readonly FROM: "filterTransactionDateFrom";
|
|
17
|
+
readonly TO: "filterTransactionDateTo";
|
|
18
|
+
readonly DESCRIPTION: "filterTransactionDescription";
|
|
19
|
+
readonly COMPLETED_AT: "filterTransactionCompletedAt";
|
|
20
|
+
readonly STATUS: "filterTransactionStatus";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface LedgerEntry {
|
|
24
|
+
accountType: string;
|
|
25
|
+
amount: number;
|
|
26
|
+
direction: 'IN' | 'OUT';
|
|
27
|
+
currency: string;
|
|
28
|
+
}
|
|
29
|
+
interface LedgerDeposit {
|
|
30
|
+
entries: LedgerEntry[];
|
|
31
|
+
}
|
|
32
|
+
type LedgerTransactionEvent = BaseEvent & {
|
|
33
|
+
eventType: 'LEDGER_TRANSACTION';
|
|
34
|
+
ledgerTransaction: TransactionSelectType;
|
|
35
|
+
};
|
|
36
|
+
interface BaseEvent {
|
|
37
|
+
metadata: {
|
|
38
|
+
timestamp: string;
|
|
39
|
+
correlationId: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ALLOWED_TRANSACTION_FILTERS, TransactionSelectType };
|
|
44
|
+
export type { LedgerDeposit, LedgerEntry, LedgerTransactionEvent };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger._YlR4Uxg.mjs';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.BGDeCrA0.mjs';
|
|
3
|
+
export { K as AccountIdentifierInsertType, N as AccountIdentifierMappingInsertType, M as AccountIdentifierMappingSelectType, J as AccountIdentifierSelectType, H as AccountInsertType, E as AccountSelectType, P as AccountWithIdentifiersSelectType, h as CreateAccountInput, i as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, I as IncludeRelation, B as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, O as TransactionInsertType, j as UpdateAccountInput, k as UpdateAccountOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, Q as createAccountInputSchema, R as createTransactionInputSchema, S as deleteAccountInputSchema, V as findAccountByIdentifierInputSchema, X as getAccountBalanceInputSchema, Y as getAccountIdentifierInputSchema, W as getAccountInputSchema, Z as getAccountsByOwnerInputSchema, a2 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a4 as getTransactionsInputSchema, _ as listAccountIdentifiersInputSchema, $ as listAccountsInputSchema, a0 as updateAccountInputSchema, a5 as updateTransactionConfirmationSentAtInputSchema, a1 as updateTransactionInputSchema } from './shared/ledger.BGDeCrA0.mjs';
|
|
4
|
+
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.mjs';
|
|
5
|
+
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
import '@develit-io/backend-sdk';
|
|
9
|
+
import 'zod';
|
|
10
|
+
|
|
11
|
+
declare const ALLOWED_TRANSACTION_FILTERS: {
|
|
12
|
+
readonly CORRELATION_ID: "filterTransactionCorrelationId";
|
|
13
|
+
readonly REFERENCE_TYPE: "filterTransactionReferenceType";
|
|
14
|
+
readonly REFERENCE_ID: "filterTransactionReferenceId";
|
|
15
|
+
readonly TYPE: "filterTransactionType";
|
|
16
|
+
readonly FROM: "filterTransactionDateFrom";
|
|
17
|
+
readonly TO: "filterTransactionDateTo";
|
|
18
|
+
readonly DESCRIPTION: "filterTransactionDescription";
|
|
19
|
+
readonly COMPLETED_AT: "filterTransactionCompletedAt";
|
|
20
|
+
readonly STATUS: "filterTransactionStatus";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface LedgerEntry {
|
|
24
|
+
accountType: string;
|
|
25
|
+
amount: number;
|
|
26
|
+
direction: 'IN' | 'OUT';
|
|
27
|
+
currency: string;
|
|
28
|
+
}
|
|
29
|
+
interface LedgerDeposit {
|
|
30
|
+
entries: LedgerEntry[];
|
|
31
|
+
}
|
|
32
|
+
type LedgerTransactionEvent = BaseEvent & {
|
|
33
|
+
eventType: 'LEDGER_TRANSACTION';
|
|
34
|
+
ledgerTransaction: TransactionSelectType;
|
|
35
|
+
};
|
|
36
|
+
interface BaseEvent {
|
|
37
|
+
metadata: {
|
|
38
|
+
timestamp: string;
|
|
39
|
+
correlationId: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ALLOWED_TRANSACTION_FILTERS, TransactionSelectType };
|
|
44
|
+
export type { LedgerDeposit, LedgerEntry, LedgerTransactionEvent };
|
package/dist/@types.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger._YlR4Uxg.js';
|
|
2
|
+
import { T as TransactionSelectType } from './shared/ledger.CSKqugjV.js';
|
|
3
|
+
export { K as AccountIdentifierInsertType, N as AccountIdentifierMappingInsertType, M as AccountIdentifierMappingSelectType, J as AccountIdentifierSelectType, H as AccountInsertType, E as AccountSelectType, P as AccountWithIdentifiersSelectType, h as CreateAccountInput, i as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, l as DeleteAccountOutput, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, r as GetAccountIdentifierInput, s as GetAccountIdentifierOutput, m as GetAccountInput, n as GetAccountOutput, o as GetAccountsByOwnerInput, p as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, I as IncludeRelation, B as InferResultType, u as ListAccountIdentifiersInput, v as ListAccountIdentifiersOutput, L as ListAccountsInput, q as ListAccountsOutput, O as TransactionInsertType, j as UpdateAccountInput, k as UpdateAccountOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, Q as createAccountInputSchema, R as createTransactionInputSchema, S as deleteAccountInputSchema, V as findAccountByIdentifierInputSchema, X as getAccountBalanceInputSchema, Y as getAccountIdentifierInputSchema, W as getAccountInputSchema, Z as getAccountsByOwnerInputSchema, a2 as getTransactionByIdInputSchema, a3 as getTransactionsByReferenceIdInputSchema, a4 as getTransactionsInputSchema, _ as listAccountIdentifiersInputSchema, $ as listAccountsInputSchema, a0 as updateAccountInputSchema, a5 as updateTransactionConfirmationSentAtInputSchema, a1 as updateTransactionInputSchema } from './shared/ledger.CSKqugjV.js';
|
|
4
|
+
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.js';
|
|
5
|
+
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
|
+
import 'drizzle-orm';
|
|
7
|
+
import 'drizzle-orm/sqlite-core';
|
|
8
|
+
import '@develit-io/backend-sdk';
|
|
9
|
+
import 'zod';
|
|
10
|
+
|
|
11
|
+
declare const ALLOWED_TRANSACTION_FILTERS: {
|
|
12
|
+
readonly CORRELATION_ID: "filterTransactionCorrelationId";
|
|
13
|
+
readonly REFERENCE_TYPE: "filterTransactionReferenceType";
|
|
14
|
+
readonly REFERENCE_ID: "filterTransactionReferenceId";
|
|
15
|
+
readonly TYPE: "filterTransactionType";
|
|
16
|
+
readonly FROM: "filterTransactionDateFrom";
|
|
17
|
+
readonly TO: "filterTransactionDateTo";
|
|
18
|
+
readonly DESCRIPTION: "filterTransactionDescription";
|
|
19
|
+
readonly COMPLETED_AT: "filterTransactionCompletedAt";
|
|
20
|
+
readonly STATUS: "filterTransactionStatus";
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
interface LedgerEntry {
|
|
24
|
+
accountType: string;
|
|
25
|
+
amount: number;
|
|
26
|
+
direction: 'IN' | 'OUT';
|
|
27
|
+
currency: string;
|
|
28
|
+
}
|
|
29
|
+
interface LedgerDeposit {
|
|
30
|
+
entries: LedgerEntry[];
|
|
31
|
+
}
|
|
32
|
+
type LedgerTransactionEvent = BaseEvent & {
|
|
33
|
+
eventType: 'LEDGER_TRANSACTION';
|
|
34
|
+
ledgerTransaction: TransactionSelectType;
|
|
35
|
+
};
|
|
36
|
+
interface BaseEvent {
|
|
37
|
+
metadata: {
|
|
38
|
+
timestamp: string;
|
|
39
|
+
correlationId: string;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export { ALLOWED_TRANSACTION_FILTERS, TransactionSelectType };
|
|
44
|
+
export type { LedgerDeposit, LedgerEntry, LedgerTransactionEvent };
|
package/dist/@types.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { A as ACCOUNT_TYPES, c as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, w as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, v as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, s as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, d as createAccountInputSchema, e as createTransactionInputSchema, f as deleteAccountInputSchema, g as findAccountByIdentifierInputSchema, i as getAccountBalanceInputSchema, j as getAccountIdentifierInputSchema, h as getAccountInputSchema, k as getAccountsByOwnerInputSchema, o as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, q as getTransactionsInputSchema, l as listAccountIdentifiersInputSchema, m as listAccountsInputSchema, u as updateAccountInputSchema, r as updateTransactionConfirmationSentAtInputSchema, n as updateTransactionInputSchema } from './shared/ledger.ByUO4e44.mjs';
|
|
2
|
+
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import '@develit-io/backend-sdk';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const database_schema = require('../shared/ledger.DGu3Pj-Y.cjs');
|
|
4
|
+
require('@develit-io/backend-sdk');
|
|
5
|
+
require('drizzle-orm');
|
|
6
|
+
require('drizzle-orm/sqlite-core');
|
|
7
|
+
require('../shared/ledger.D1MIlhpb.cjs');
|
|
8
|
+
require('@develit-io/general-codes');
|
|
9
|
+
require('zod');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
exports.account = database_schema.account;
|
|
14
|
+
exports.accountIdentifier = database_schema.accountIdentifier;
|
|
15
|
+
exports.accountIdentifierMapping = database_schema.accountIdentifierMapping;
|
|
16
|
+
exports.accountIdentifierMappingRelations = database_schema.accountIdentifierMappingRelations;
|
|
17
|
+
exports.accountIdentifierRelations = database_schema.accountIdentifierRelations;
|
|
18
|
+
exports.accountRelations = database_schema.accountRelations;
|
|
19
|
+
exports.entry = database_schema.entry;
|
|
20
|
+
exports.transaction = database_schema.transaction;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger._YlR4Uxg.cjs';
|
|
2
|
+
import 'drizzle-orm';
|
|
3
|
+
import 'drizzle-orm/sqlite-core';
|
|
4
|
+
import '@develit-io/general-codes';
|
|
5
|
+
import '@develit-io/backend-sdk';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger._YlR4Uxg.mjs';
|
|
2
|
+
import 'drizzle-orm';
|
|
3
|
+
import 'drizzle-orm/sqlite-core';
|
|
4
|
+
import '@develit-io/general-codes';
|
|
5
|
+
import '@develit-io/backend-sdk';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger._YlR4Uxg.js';
|
|
2
|
+
import 'drizzle-orm';
|
|
3
|
+
import 'drizzle-orm/sqlite-core';
|
|
4
|
+
import '@develit-io/general-codes';
|
|
5
|
+
import '@develit-io/backend-sdk';
|
|
@@ -0,0 +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.Bl4HgQDw.mjs';
|
|
2
|
+
import '@develit-io/backend-sdk';
|
|
3
|
+
import 'drizzle-orm';
|
|
4
|
+
import 'drizzle-orm/sqlite-core';
|
|
5
|
+
import '../shared/ledger.ByUO4e44.mjs';
|
|
6
|
+
import '@develit-io/general-codes';
|
|
7
|
+
import 'zod';
|