@develit-services/ledger 0.2.0 → 0.3.0

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.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, 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.Bo3kdRvg.js';
2
- import { T as TransactionSelectType } from './shared/ledger.Vn3IgETm.js';
3
- export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.Vn3IgETm.js';
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.D9n1klaX.js';
2
+ import { T as TransactionSelectType } from './shared/ledger.DHX1YtaC.js';
3
+ export { P as AccountIdentifierInsertType, R as AccountIdentifierMappingInsertType, Q as AccountIdentifierMappingSelectType, O as AccountIdentifierSelectType, N as AccountInsertType, K as AccountSelectType, V as AccountWithIdentifiersSelectType, d as CancelTransactionInput, e as CancelTransactionOutput, k as CreateAccountInput, l as CreateAccountOutput, C as CreateTransactionInput, a as CreateTransactionOutput, D as DeleteAccountInput, n as DeleteAccountOutput, F as FailTransactionInput, c as FailTransactionOutput, y as FindAccountByIdentifierInput, z as FindAccountByIdentifierOutput, A as GetAccountBalanceInput, B as GetAccountBalanceOutput, u as GetAccountIdentifierInput, v as GetAccountIdentifierOutput, o as GetAccountInput, p as GetAccountOutput, q as GetAccountsByOwnerInput, r as GetAccountsByOwnerOutput, G as GetTransactionByIdInput, f as GetTransactionByIdOutput, g as GetTransactionsByIdReferenceInput, h as GetTransactionsByReferenceIdOutput, i as GetTransactionsInput, j as GetTransactionsOutput, I as IncludeRelation, J as InferResultType, w as ListAccountIdentifiersInput, x as ListAccountIdentifiersOutput, L as ListAccountsInput, s as ListAccountsOutput, M as MatchTransactionInput, b as MatchTransactionOutput, S as TransactionInsertType, U as UpdateAccountInput, m as UpdateAccountOutput, E as UpdateTransactionConfirmationSentAtInput, H as UpdateTransactionConfirmationSentAtOutput, W as cancelTransactionInputSchema, X as createAccountInputSchema, Y as createTransactionInputSchema, Z as deleteAccountInputSchema, _ as failTransactionInputSchema, $ as findAccountByIdentifierInputSchema, a1 as getAccountBalanceInputSchema, a2 as getAccountIdentifierInputSchema, a0 as getAccountInputSchema, a3 as getAccountsByOwnerInputSchema, a4 as getTransactionByIdInputSchema, a6 as getTransactionsByReferenceIdInputSchema, a5 as getTransactionsInputSchema, a7 as listAccountIdentifiersInputSchema, a8 as listAccountsInputSchema, a9 as matchTransactionInputSchema, aa as updateAccountInputSchema, ab as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.DHX1YtaC.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, y as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, x as PAYMENT_DIRECTIONS, w as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as cancelTransactionInputSchema, f as createAccountInputSchema, g as createTransactionInputSchema, h as deleteAccountInputSchema, i as failTransactionInputSchema, j as findAccountByIdentifierInputSchema, l as getAccountBalanceInputSchema, m as getAccountIdentifierInputSchema, k as getAccountInputSchema, n as getAccountsByOwnerInputSchema, o as getTransactionByIdInputSchema, q as getTransactionsByReferenceIdInputSchema, p as getTransactionsInputSchema, r as listAccountIdentifiersInputSchema, s as listAccountsInputSchema, t as matchTransactionInputSchema, u as updateAccountInputSchema, v as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger._BGfS_Xc.mjs';
1
+ export { A as ACCOUNT_TYPES, d as ALLOWED_TRANSACTION_FILTERS, a as ASSET_TYPES, B as BALANCE_STRATEGIES, y as BATCH_STATUSES, C as COUNTRY_CODES, E as ENTRY_STATUSES, I as IDENTIFIER_KINDS, P as PAYMENT_CHARGE_TYPES, x as PAYMENT_DIRECTIONS, w as PAYMENT_STATUSES, c as PAYMENT_TYPES, R as REFERENCE_TYPES, T as TRANSACTION_STATUSES, b as TRANSACTION_TYPES, e as cancelTransactionInputSchema, f as createAccountInputSchema, g as createTransactionInputSchema, h as deleteAccountInputSchema, i as failTransactionInputSchema, j as findAccountByIdentifierInputSchema, l as getAccountBalanceInputSchema, m as getAccountIdentifierInputSchema, k as getAccountInputSchema, n as getAccountsByOwnerInputSchema, o as getTransactionByIdInputSchema, q as getTransactionsByReferenceIdInputSchema, p as getTransactionsInputSchema, r as listAccountIdentifiersInputSchema, s as listAccountsInputSchema, t as matchTransactionInputSchema, u as updateAccountInputSchema, v as updateTransactionConfirmationSentAtInputSchema } from './shared/ledger.229hTbXo.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.2.0",
3
+ "version": "0.3.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -33,9 +33,9 @@
33
33
  "dev": "wrangler dev --port 9235 --persist-to ../../.wrangler/state -c ./wrangler.jsonc -c ../../apps/secrets-store/wrangler.jsonc",
34
34
  "wrangler:generate": "bunx develit wrangler:generate --types",
35
35
  "db:init": "wrangler d1 execute develit-ledger --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
36
- "db:generate": "drizzle-kit generate",
37
- "db:migrate": "drizzle-kit migrate",
38
- "db:explore": "drizzle-kit studio",
36
+ "db:generate": "NODE_OPTIONS='--import tsx' drizzle-kit generate",
37
+ "db:migrate": "NODE_OPTIONS='--import tsx' drizzle-kit migrate",
38
+ "db:explore": "NODE_OPTIONS='--import tsx' drizzle-kit studio",
39
39
  "types": "bash typegen.sh",
40
40
  "lint": "biome check",
41
41
  "lint:fix": "biome format --write && biome lint --write",
@@ -46,11 +46,9 @@
46
46
  "build": "unbuild"
47
47
  },
48
48
  "peerDependencies": {
49
- "@develit-io/backend-sdk": "9.1.6",
50
- "drizzle-kit": "0.31.8",
51
- "drizzle-orm": "0.45.0",
52
- "drizzle-seed": "*",
53
- "wrangler": "4.50.0",
54
- "zod": "4.1.13"
49
+ "@develit-io/backend-sdk": "^9.8.1",
50
+ "@develit-io/general-codes": "^1.14.0",
51
+ "drizzle-orm": "^0.45.0",
52
+ "zod": "^4.1.13"
55
53
  }
56
54
  }