@develit-services/ledger 0.0.5 → 0.0.7
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.d.cts +3 -3
- package/dist/@types.d.mts +3 -3
- package/dist/@types.d.ts +3 -3
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/worker.d.cts +2 -2
- package/dist/export/worker.d.mts +2 -2
- package/dist/export/worker.d.ts +2 -2
- package/dist/export/wrangler.cjs +6 -16
- package/dist/export/wrangler.d.cts +16 -16
- package/dist/export/wrangler.d.mts +16 -16
- package/dist/export/wrangler.d.ts +16 -16
- package/dist/export/wrangler.mjs +6 -16
- package/dist/shared/{ledger.hh5byAnS.d.cts → ledger.BGDeCrA0.d.mts} +8 -8
- package/dist/shared/{ledger.SIFMVIVa.d.ts → ledger.CSKqugjV.d.ts} +8 -8
- package/dist/shared/{ledger.DYO-p4CG.d.mts → ledger.CSi5bWgX.d.cts} +8 -8
- package/dist/shared/{ledger.DAZkVJGP.d.cts → ledger._YlR4Uxg.d.cts} +4 -4
- package/dist/shared/{ledger.DAZkVJGP.d.mts → ledger._YlR4Uxg.d.mts} +4 -4
- package/dist/shared/{ledger.DAZkVJGP.d.ts → ledger._YlR4Uxg.d.ts} +4 -4
- package/package.json +8 -8
package/dist/@types.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export { 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.
|
|
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
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.cjs';
|
|
5
5
|
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
6
|
import 'drizzle-orm';
|
package/dist/@types.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export { 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.
|
|
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
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.mjs';
|
|
5
5
|
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
6
|
import 'drizzle-orm';
|
package/dist/@types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { A as ACCOUNT_TYPES, b as ASSET_TYPES, a as AccountType, c as AssetType, B as BALANCE_STRATEGIES, u as BATCH_STATUSES, d as BalanceStrategy, x as BankCode, v as BatchStatus, y as COUNTRY_CODES, z as CountryCode, C as CryptoNetworkCode, w as Currency, t as CurrencyCode, E as ENTRY_STATUSES, m as EntryMetadata, f as EntryStatus, I as IDENTIFIER_KINDS, e as IdentifierKind, P as PAYMENT_CHARGE_TYPES, r as PAYMENT_DIRECTIONS, p as PAYMENT_STATUSES, n as PAYMENT_TYPES, k as PaymentChargeType, s as PaymentDirection, q as PaymentStatus, o as PaymentType, R as REFERENCE_TYPES, j as ReferenceType, T as TRANSACTION_STATUSES, h as TRANSACTION_TYPES, l as TransactionMetadata, g as TransactionStatus, i as TransactionType } from './shared/ledger.
|
|
2
|
-
import { T as TransactionSelectType } from './shared/ledger.
|
|
3
|
-
export { 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.
|
|
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
4
|
export { b as LedgerServiceEnv, a as LedgerServiceEnvironmentConfig, L as LedgerServiceWranglerConfig } from './shared/ledger.Ce2yPDUS.js';
|
|
5
5
|
export { BANK_CODES, CRYPTO_NETWORK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
6
6
|
import 'drizzle-orm';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger._YlR4Uxg.cjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger._YlR4Uxg.mjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger.
|
|
1
|
+
export { F as account, G as accountIdentifier, H as accountIdentifierMapping, L as accountIdentifierMappingRelations, K as accountIdentifierRelations, J as accountRelations, M as entry, N as transaction } from '../shared/ledger._YlR4Uxg.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, h as CreateAccountInput, i as CreateAccountOutput, j 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, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.
|
|
4
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, h as CreateAccountInput, i as CreateAccountOutput, j 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, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.CSi5bWgX.cjs';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger._YlR4Uxg.cjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, h as CreateAccountInput, i as CreateAccountOutput, j 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, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.
|
|
4
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, h as CreateAccountInput, i as CreateAccountOutput, j 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, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.BGDeCrA0.mjs';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger._YlR4Uxg.mjs';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
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
|
-
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, h as CreateAccountInput, i as CreateAccountOutput, j 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, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.
|
|
4
|
+
import { t as tables, C as CreateTransactionInput, a as CreateTransactionOutput, U as UpdateTransactionInput, b as UpdateTransactionOutput, G as GetTransactionByIdInput, c as GetTransactionByIdOutput, d as GetTransactionsByIdReferenceInput, e as GetTransactionsByReferenceIdOutput, f as GetTransactionsInput, g as GetTransactionsOutput, h as CreateAccountInput, i as CreateAccountOutput, j 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, F as FindAccountByIdentifierInput, w as FindAccountByIdentifierOutput, x as GetAccountBalanceInput, y as GetAccountBalanceOutput, z as UpdateTransactionConfirmationSentAtInput, A as UpdateTransactionConfirmationSentAtOutput } from '../shared/ledger.CSKqugjV.js';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
7
|
+
import '../shared/ledger._YlR4Uxg.js';
|
|
8
8
|
import 'drizzle-orm';
|
|
9
9
|
import 'drizzle-orm/sqlite-core';
|
|
10
10
|
import '@develit-io/general-codes';
|
package/dist/export/wrangler.cjs
CHANGED
|
@@ -1,24 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
+
|
|
3
5
|
function defineLedgerServiceWrangler(config) {
|
|
4
6
|
const { project, name, envs } = config;
|
|
5
7
|
const base = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
compatibility_flags: ["nodejs_compat"],
|
|
11
|
-
observability: {
|
|
12
|
-
enabled: true,
|
|
13
|
-
head_sampling_rate: 1,
|
|
14
|
-
logs: {
|
|
15
|
-
enabled: true,
|
|
16
|
-
invocation_logs: false
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
preview_urls: false,
|
|
20
|
-
workers_dev: false,
|
|
21
|
-
keep_vars: true,
|
|
8
|
+
...backendSdk.composeWranglerBase({
|
|
9
|
+
project,
|
|
10
|
+
name
|
|
11
|
+
}),
|
|
22
12
|
vars: {
|
|
23
13
|
//vars
|
|
24
14
|
...envs.local.vars,
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { L as LedgerServiceWranglerConfig } from '../shared/ledger.Ce2yPDUS.cjs';
|
|
2
2
|
|
|
3
3
|
declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig): {
|
|
4
|
-
$schema: string;
|
|
5
|
-
name: string;
|
|
6
|
-
main: string;
|
|
7
|
-
compatibility_date: string;
|
|
8
|
-
compatibility_flags: string[];
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
head_sampling_rate: number;
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
invocation_logs: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
preview_urls: boolean;
|
|
18
|
-
workers_dev: boolean;
|
|
19
|
-
keep_vars: boolean;
|
|
20
4
|
vars: {
|
|
21
5
|
ENVIRONMENT: string;
|
|
22
6
|
};
|
|
@@ -33,6 +17,22 @@ declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig
|
|
|
33
17
|
}[];
|
|
34
18
|
};
|
|
35
19
|
env: Record<string, unknown>;
|
|
20
|
+
$schema: string;
|
|
21
|
+
name: string;
|
|
22
|
+
main: string;
|
|
23
|
+
compatibility_date: string;
|
|
24
|
+
compatibility_flags: string[];
|
|
25
|
+
observability: {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
head_sampling_rate: number;
|
|
28
|
+
logs: {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
invocation_logs: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
preview_urls: boolean;
|
|
34
|
+
workers_dev: boolean;
|
|
35
|
+
keep_vars: boolean;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export { defineLedgerServiceWrangler };
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { L as LedgerServiceWranglerConfig } from '../shared/ledger.Ce2yPDUS.mjs';
|
|
2
2
|
|
|
3
3
|
declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig): {
|
|
4
|
-
$schema: string;
|
|
5
|
-
name: string;
|
|
6
|
-
main: string;
|
|
7
|
-
compatibility_date: string;
|
|
8
|
-
compatibility_flags: string[];
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
head_sampling_rate: number;
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
invocation_logs: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
preview_urls: boolean;
|
|
18
|
-
workers_dev: boolean;
|
|
19
|
-
keep_vars: boolean;
|
|
20
4
|
vars: {
|
|
21
5
|
ENVIRONMENT: string;
|
|
22
6
|
};
|
|
@@ -33,6 +17,22 @@ declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig
|
|
|
33
17
|
}[];
|
|
34
18
|
};
|
|
35
19
|
env: Record<string, unknown>;
|
|
20
|
+
$schema: string;
|
|
21
|
+
name: string;
|
|
22
|
+
main: string;
|
|
23
|
+
compatibility_date: string;
|
|
24
|
+
compatibility_flags: string[];
|
|
25
|
+
observability: {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
head_sampling_rate: number;
|
|
28
|
+
logs: {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
invocation_logs: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
preview_urls: boolean;
|
|
34
|
+
workers_dev: boolean;
|
|
35
|
+
keep_vars: boolean;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export { defineLedgerServiceWrangler };
|
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { L as LedgerServiceWranglerConfig } from '../shared/ledger.Ce2yPDUS.js';
|
|
2
2
|
|
|
3
3
|
declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig): {
|
|
4
|
-
$schema: string;
|
|
5
|
-
name: string;
|
|
6
|
-
main: string;
|
|
7
|
-
compatibility_date: string;
|
|
8
|
-
compatibility_flags: string[];
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: boolean;
|
|
11
|
-
head_sampling_rate: number;
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: boolean;
|
|
14
|
-
invocation_logs: boolean;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
preview_urls: boolean;
|
|
18
|
-
workers_dev: boolean;
|
|
19
|
-
keep_vars: boolean;
|
|
20
4
|
vars: {
|
|
21
5
|
ENVIRONMENT: string;
|
|
22
6
|
};
|
|
@@ -33,6 +17,22 @@ declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig
|
|
|
33
17
|
}[];
|
|
34
18
|
};
|
|
35
19
|
env: Record<string, unknown>;
|
|
20
|
+
$schema: string;
|
|
21
|
+
name: string;
|
|
22
|
+
main: string;
|
|
23
|
+
compatibility_date: string;
|
|
24
|
+
compatibility_flags: string[];
|
|
25
|
+
observability: {
|
|
26
|
+
enabled: boolean;
|
|
27
|
+
head_sampling_rate: number;
|
|
28
|
+
logs: {
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
invocation_logs: boolean;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
preview_urls: boolean;
|
|
34
|
+
workers_dev: boolean;
|
|
35
|
+
keep_vars: boolean;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
export { defineLedgerServiceWrangler };
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -1,22 +1,12 @@
|
|
|
1
|
+
import { composeWranglerBase } from '@develit-io/backend-sdk';
|
|
2
|
+
|
|
1
3
|
function defineLedgerServiceWrangler(config) {
|
|
2
4
|
const { project, name, envs } = config;
|
|
3
5
|
const base = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
compatibility_flags: ["nodejs_compat"],
|
|
9
|
-
observability: {
|
|
10
|
-
enabled: true,
|
|
11
|
-
head_sampling_rate: 1,
|
|
12
|
-
logs: {
|
|
13
|
-
enabled: true,
|
|
14
|
-
invocation_logs: false
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
preview_urls: false,
|
|
18
|
-
workers_dev: false,
|
|
19
|
-
keep_vars: true,
|
|
6
|
+
...composeWranglerBase({
|
|
7
|
+
project,
|
|
8
|
+
name
|
|
9
|
+
}),
|
|
20
10
|
vars: {
|
|
21
11
|
//vars
|
|
22
12
|
...envs.local.vars,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger._YlR4Uxg.mjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
declare const tables: typeof schema;
|
|
@@ -331,9 +331,9 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
331
331
|
}>>;
|
|
332
332
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
333
333
|
kind: z.ZodEnum<{
|
|
334
|
+
SWIFT: "SWIFT";
|
|
334
335
|
IBAN: "IBAN";
|
|
335
336
|
LOCAL_CZ: "LOCAL_CZ";
|
|
336
|
-
SWIFT: "SWIFT";
|
|
337
337
|
CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
|
|
338
338
|
}>;
|
|
339
339
|
iban: z.ZodOptional<z.ZodString>;
|
|
@@ -606,15 +606,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
606
606
|
}, z.core.$strip>>;
|
|
607
607
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
608
608
|
status: z.ZodEnum<{
|
|
609
|
+
FAILED: "FAILED";
|
|
610
|
+
COMPLETED: "COMPLETED";
|
|
609
611
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
610
612
|
PAUSED: "PAUSED";
|
|
611
613
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
612
614
|
MATCHED: "MATCHED";
|
|
613
615
|
RETURNING: "RETURNING";
|
|
614
616
|
RETURNED: "RETURNED";
|
|
615
|
-
FAILED: "FAILED";
|
|
616
617
|
CANCELLED: "CANCELLED";
|
|
617
|
-
COMPLETED: "COMPLETED";
|
|
618
618
|
}>;
|
|
619
619
|
}, z.core.$strip>;
|
|
620
620
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
@@ -919,15 +919,15 @@ interface UpdateAccountOutput extends AccountSelectType {
|
|
|
919
919
|
declare const updateTransactionInputSchema: z.ZodObject<{
|
|
920
920
|
transactionId: z.ZodUUID;
|
|
921
921
|
status: z.ZodEnum<{
|
|
922
|
+
FAILED: "FAILED";
|
|
923
|
+
COMPLETED: "COMPLETED";
|
|
922
924
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
923
925
|
PAUSED: "PAUSED";
|
|
924
926
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
925
927
|
MATCHED: "MATCHED";
|
|
926
928
|
RETURNING: "RETURNING";
|
|
927
929
|
RETURNED: "RETURNED";
|
|
928
|
-
FAILED: "FAILED";
|
|
929
930
|
CANCELLED: "CANCELLED";
|
|
930
|
-
COMPLETED: "COMPLETED";
|
|
931
931
|
}>;
|
|
932
932
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
933
933
|
}, z.core.$strip>;
|
|
@@ -989,15 +989,15 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
989
989
|
filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
|
|
990
990
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
991
991
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
992
|
+
FAILED: "FAILED";
|
|
993
|
+
COMPLETED: "COMPLETED";
|
|
992
994
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
993
995
|
PAUSED: "PAUSED";
|
|
994
996
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
995
997
|
MATCHED: "MATCHED";
|
|
996
998
|
RETURNING: "RETURNING";
|
|
997
999
|
RETURNED: "RETURNED";
|
|
998
|
-
FAILED: "FAILED";
|
|
999
1000
|
CANCELLED: "CANCELLED";
|
|
1000
|
-
COMPLETED: "COMPLETED";
|
|
1001
1001
|
}>>;
|
|
1002
1002
|
search: z.ZodOptional<z.ZodString>;
|
|
1003
1003
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger._YlR4Uxg.js';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
declare const tables: typeof schema;
|
|
@@ -331,9 +331,9 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
331
331
|
}>>;
|
|
332
332
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
333
333
|
kind: z.ZodEnum<{
|
|
334
|
+
SWIFT: "SWIFT";
|
|
334
335
|
IBAN: "IBAN";
|
|
335
336
|
LOCAL_CZ: "LOCAL_CZ";
|
|
336
|
-
SWIFT: "SWIFT";
|
|
337
337
|
CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
|
|
338
338
|
}>;
|
|
339
339
|
iban: z.ZodOptional<z.ZodString>;
|
|
@@ -606,15 +606,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
606
606
|
}, z.core.$strip>>;
|
|
607
607
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
608
608
|
status: z.ZodEnum<{
|
|
609
|
+
FAILED: "FAILED";
|
|
610
|
+
COMPLETED: "COMPLETED";
|
|
609
611
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
610
612
|
PAUSED: "PAUSED";
|
|
611
613
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
612
614
|
MATCHED: "MATCHED";
|
|
613
615
|
RETURNING: "RETURNING";
|
|
614
616
|
RETURNED: "RETURNED";
|
|
615
|
-
FAILED: "FAILED";
|
|
616
617
|
CANCELLED: "CANCELLED";
|
|
617
|
-
COMPLETED: "COMPLETED";
|
|
618
618
|
}>;
|
|
619
619
|
}, z.core.$strip>;
|
|
620
620
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
@@ -919,15 +919,15 @@ interface UpdateAccountOutput extends AccountSelectType {
|
|
|
919
919
|
declare const updateTransactionInputSchema: z.ZodObject<{
|
|
920
920
|
transactionId: z.ZodUUID;
|
|
921
921
|
status: z.ZodEnum<{
|
|
922
|
+
FAILED: "FAILED";
|
|
923
|
+
COMPLETED: "COMPLETED";
|
|
922
924
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
923
925
|
PAUSED: "PAUSED";
|
|
924
926
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
925
927
|
MATCHED: "MATCHED";
|
|
926
928
|
RETURNING: "RETURNING";
|
|
927
929
|
RETURNED: "RETURNED";
|
|
928
|
-
FAILED: "FAILED";
|
|
929
930
|
CANCELLED: "CANCELLED";
|
|
930
|
-
COMPLETED: "COMPLETED";
|
|
931
931
|
}>;
|
|
932
932
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
933
933
|
}, z.core.$strip>;
|
|
@@ -989,15 +989,15 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
989
989
|
filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
|
|
990
990
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
991
991
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
992
|
+
FAILED: "FAILED";
|
|
993
|
+
COMPLETED: "COMPLETED";
|
|
992
994
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
993
995
|
PAUSED: "PAUSED";
|
|
994
996
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
995
997
|
MATCHED: "MATCHED";
|
|
996
998
|
RETURNING: "RETURNING";
|
|
997
999
|
RETURNED: "RETURNED";
|
|
998
|
-
FAILED: "FAILED";
|
|
999
1000
|
CANCELLED: "CANCELLED";
|
|
1000
|
-
COMPLETED: "COMPLETED";
|
|
1001
1001
|
}>>;
|
|
1002
1002
|
search: z.ZodOptional<z.ZodString>;
|
|
1003
1003
|
}, z.core.$strip>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { D as schema } from './ledger.
|
|
2
|
+
import { D as schema } from './ledger._YlR4Uxg.cjs';
|
|
3
3
|
import { InferSelectModel, ExtractTablesWithRelations, DBQueryConfig, BuildQueryResult, InferInsertModel } from 'drizzle-orm';
|
|
4
4
|
|
|
5
5
|
declare const tables: typeof schema;
|
|
@@ -331,9 +331,9 @@ declare const createAccountInputSchema: z.ZodObject<{
|
|
|
331
331
|
}>>;
|
|
332
332
|
identifier: z.ZodOptional<z.ZodObject<{
|
|
333
333
|
kind: z.ZodEnum<{
|
|
334
|
+
SWIFT: "SWIFT";
|
|
334
335
|
IBAN: "IBAN";
|
|
335
336
|
LOCAL_CZ: "LOCAL_CZ";
|
|
336
|
-
SWIFT: "SWIFT";
|
|
337
337
|
CRYPTO_ADDRESS: "CRYPTO_ADDRESS";
|
|
338
338
|
}>;
|
|
339
339
|
iban: z.ZodOptional<z.ZodString>;
|
|
@@ -606,15 +606,15 @@ declare const createTransactionInputSchema: z.ZodObject<{
|
|
|
606
606
|
}, z.core.$strip>>;
|
|
607
607
|
}, z.core.$catchall<z.ZodUnknown>>>>;
|
|
608
608
|
status: z.ZodEnum<{
|
|
609
|
+
FAILED: "FAILED";
|
|
610
|
+
COMPLETED: "COMPLETED";
|
|
609
611
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
610
612
|
PAUSED: "PAUSED";
|
|
611
613
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
612
614
|
MATCHED: "MATCHED";
|
|
613
615
|
RETURNING: "RETURNING";
|
|
614
616
|
RETURNED: "RETURNED";
|
|
615
|
-
FAILED: "FAILED";
|
|
616
617
|
CANCELLED: "CANCELLED";
|
|
617
|
-
COMPLETED: "COMPLETED";
|
|
618
618
|
}>;
|
|
619
619
|
}, z.core.$strip>;
|
|
620
620
|
interface CreateTransactionInput extends z.infer<typeof createTransactionInputSchema> {
|
|
@@ -919,15 +919,15 @@ interface UpdateAccountOutput extends AccountSelectType {
|
|
|
919
919
|
declare const updateTransactionInputSchema: z.ZodObject<{
|
|
920
920
|
transactionId: z.ZodUUID;
|
|
921
921
|
status: z.ZodEnum<{
|
|
922
|
+
FAILED: "FAILED";
|
|
923
|
+
COMPLETED: "COMPLETED";
|
|
922
924
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
923
925
|
PAUSED: "PAUSED";
|
|
924
926
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
925
927
|
MATCHED: "MATCHED";
|
|
926
928
|
RETURNING: "RETURNING";
|
|
927
929
|
RETURNED: "RETURNED";
|
|
928
|
-
FAILED: "FAILED";
|
|
929
930
|
CANCELLED: "CANCELLED";
|
|
930
|
-
COMPLETED: "COMPLETED";
|
|
931
931
|
}>;
|
|
932
932
|
completedAt: z.ZodOptional<z.ZodDate>;
|
|
933
933
|
}, z.core.$strip>;
|
|
@@ -989,15 +989,15 @@ declare const getTransactionsInputSchema: z.ZodObject<{
|
|
|
989
989
|
filterTransactionDateTo: z.ZodOptional<z.ZodDate>;
|
|
990
990
|
filterTransactionCompletedAt: z.ZodOptional<z.ZodDate>;
|
|
991
991
|
filterTransactionStatus: z.ZodOptional<z.ZodEnum<{
|
|
992
|
+
FAILED: "FAILED";
|
|
993
|
+
COMPLETED: "COMPLETED";
|
|
992
994
|
WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
|
|
993
995
|
PAUSED: "PAUSED";
|
|
994
996
|
WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
|
|
995
997
|
MATCHED: "MATCHED";
|
|
996
998
|
RETURNING: "RETURNING";
|
|
997
999
|
RETURNED: "RETURNED";
|
|
998
|
-
FAILED: "FAILED";
|
|
999
1000
|
CANCELLED: "CANCELLED";
|
|
1000
|
-
COMPLETED: "COMPLETED";
|
|
1001
1001
|
}>>;
|
|
1002
1002
|
search: z.ZodOptional<z.ZodString>;
|
|
1003
1003
|
}, z.core.$strip>;
|
|
@@ -262,7 +262,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
262
262
|
tableName: "account_identifier";
|
|
263
263
|
dataType: "string";
|
|
264
264
|
columnType: "SQLiteText";
|
|
265
|
-
data: "
|
|
265
|
+
data: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
|
|
266
266
|
driverParam: string;
|
|
267
267
|
notNull: true;
|
|
268
268
|
hasDefault: false;
|
|
@@ -275,7 +275,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
275
275
|
generated: undefined;
|
|
276
276
|
}, {}, {
|
|
277
277
|
length: number | undefined;
|
|
278
|
-
$type: "
|
|
278
|
+
$type: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
|
|
279
279
|
}>;
|
|
280
280
|
iban: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
281
281
|
name: "iban";
|
|
@@ -1112,7 +1112,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1112
1112
|
tableName: "transaction";
|
|
1113
1113
|
dataType: "string";
|
|
1114
1114
|
columnType: "SQLiteText";
|
|
1115
|
-
data: "
|
|
1115
|
+
data: "FAILED" | "COMPLETED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED";
|
|
1116
1116
|
driverParam: string;
|
|
1117
1117
|
notNull: true;
|
|
1118
1118
|
hasDefault: false;
|
|
@@ -1125,7 +1125,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1125
1125
|
generated: undefined;
|
|
1126
1126
|
}, {}, {
|
|
1127
1127
|
length: number | undefined;
|
|
1128
|
-
$type: "
|
|
1128
|
+
$type: "FAILED" | "COMPLETED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED";
|
|
1129
1129
|
}>;
|
|
1130
1130
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1131
1131
|
name: "status_reason";
|
|
@@ -262,7 +262,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
262
262
|
tableName: "account_identifier";
|
|
263
263
|
dataType: "string";
|
|
264
264
|
columnType: "SQLiteText";
|
|
265
|
-
data: "
|
|
265
|
+
data: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
|
|
266
266
|
driverParam: string;
|
|
267
267
|
notNull: true;
|
|
268
268
|
hasDefault: false;
|
|
@@ -275,7 +275,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
275
275
|
generated: undefined;
|
|
276
276
|
}, {}, {
|
|
277
277
|
length: number | undefined;
|
|
278
|
-
$type: "
|
|
278
|
+
$type: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
|
|
279
279
|
}>;
|
|
280
280
|
iban: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
281
281
|
name: "iban";
|
|
@@ -1112,7 +1112,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1112
1112
|
tableName: "transaction";
|
|
1113
1113
|
dataType: "string";
|
|
1114
1114
|
columnType: "SQLiteText";
|
|
1115
|
-
data: "
|
|
1115
|
+
data: "FAILED" | "COMPLETED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED";
|
|
1116
1116
|
driverParam: string;
|
|
1117
1117
|
notNull: true;
|
|
1118
1118
|
hasDefault: false;
|
|
@@ -1125,7 +1125,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1125
1125
|
generated: undefined;
|
|
1126
1126
|
}, {}, {
|
|
1127
1127
|
length: number | undefined;
|
|
1128
|
-
$type: "
|
|
1128
|
+
$type: "FAILED" | "COMPLETED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED";
|
|
1129
1129
|
}>;
|
|
1130
1130
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1131
1131
|
name: "status_reason";
|
|
@@ -262,7 +262,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
262
262
|
tableName: "account_identifier";
|
|
263
263
|
dataType: "string";
|
|
264
264
|
columnType: "SQLiteText";
|
|
265
|
-
data: "
|
|
265
|
+
data: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
|
|
266
266
|
driverParam: string;
|
|
267
267
|
notNull: true;
|
|
268
268
|
hasDefault: false;
|
|
@@ -275,7 +275,7 @@ declare const accountIdentifier: drizzle_orm_sqlite_core.SQLiteTableWithColumns<
|
|
|
275
275
|
generated: undefined;
|
|
276
276
|
}, {}, {
|
|
277
277
|
length: number | undefined;
|
|
278
|
-
$type: "
|
|
278
|
+
$type: "SWIFT" | "IBAN" | "LOCAL_CZ" | "CRYPTO_ADDRESS";
|
|
279
279
|
}>;
|
|
280
280
|
iban: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
281
281
|
name: "iban";
|
|
@@ -1112,7 +1112,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1112
1112
|
tableName: "transaction";
|
|
1113
1113
|
dataType: "string";
|
|
1114
1114
|
columnType: "SQLiteText";
|
|
1115
|
-
data: "
|
|
1115
|
+
data: "FAILED" | "COMPLETED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED";
|
|
1116
1116
|
driverParam: string;
|
|
1117
1117
|
notNull: true;
|
|
1118
1118
|
hasDefault: false;
|
|
@@ -1125,7 +1125,7 @@ declare const transaction: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
1125
1125
|
generated: undefined;
|
|
1126
1126
|
}, {}, {
|
|
1127
1127
|
length: number | undefined;
|
|
1128
|
-
$type: "
|
|
1128
|
+
$type: "FAILED" | "COMPLETED" | "WAITING_FOR_PAYMENT" | "PAUSED" | "WAITING_FOR_MANUAL_PROCESSING" | "MATCHED" | "RETURNING" | "RETURNED" | "CANCELLED";
|
|
1129
1129
|
}>;
|
|
1130
1130
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1131
1131
|
name: "status_reason";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/ledger",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "wrangler dev --port 9232 --persist-to ../../.wrangler/state",
|
|
34
|
-
"wrangler:generate": "
|
|
34
|
+
"wrangler:generate": "develit wrangler:generate",
|
|
35
35
|
"db:init": "wrangler d1 execute develit-ledger --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
36
36
|
"db:generate": "drizzle-kit generate",
|
|
37
37
|
"db:migrate": "drizzle-kit migrate",
|
|
@@ -49,11 +49,11 @@
|
|
|
49
49
|
"release": "bun run build && bunx changelogen@latest --release --push && npm publish --access public"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@develit-io/backend-sdk": "
|
|
53
|
-
"drizzle-kit": "
|
|
54
|
-
"drizzle-orm": "
|
|
55
|
-
"drizzle-seed": "
|
|
56
|
-
"wrangler": "
|
|
57
|
-
"zod": "
|
|
52
|
+
"@develit-io/backend-sdk": "*",
|
|
53
|
+
"drizzle-kit": "*",
|
|
54
|
+
"drizzle-orm": "*",
|
|
55
|
+
"drizzle-seed": "*",
|
|
56
|
+
"wrangler": "*",
|
|
57
|
+
"zod": "*"
|
|
58
58
|
}
|
|
59
59
|
}
|