@develit-services/ledger 0.0.7 → 0.0.8

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.
@@ -1,5 +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';
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.MnYNWZoo.cjs';
2
2
  import 'drizzle-orm';
3
3
  import 'drizzle-orm/sqlite-core';
4
- import '@develit-io/general-codes';
5
4
  import '@develit-io/backend-sdk';
5
+ import '@develit-io/general-codes';
@@ -1,5 +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';
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.MnYNWZoo.mjs';
2
2
  import 'drizzle-orm';
3
3
  import 'drizzle-orm/sqlite-core';
4
- import '@develit-io/general-codes';
5
4
  import '@develit-io/backend-sdk';
5
+ import '@develit-io/general-codes';
@@ -1,5 +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';
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.MnYNWZoo.js';
2
2
  import 'drizzle-orm';
3
3
  import 'drizzle-orm/sqlite-core';
4
- import '@develit-io/general-codes';
5
4
  import '@develit-io/backend-sdk';
5
+ import '@develit-io/general-codes';
@@ -220,20 +220,6 @@ const listAccountsQuery = async (db, filters = {}, pagination = { limit: 100, of
220
220
  return { accounts, total };
221
221
  };
222
222
 
223
- const buildSearchConditions = (search, columns, opts = {}) => {
224
- const { wrap = "both" } = opts;
225
- if (!search || search.trim() === "" || columns.length === 0) return void 0;
226
- const searchTerm = search.toLowerCase();
227
- const pattern = wrap === "both" ? `%${searchTerm}%` : wrap === "prefix" ? `%${searchTerm}` : wrap === "suffix" ? `${searchTerm}%` : searchTerm;
228
- const parts = columns.map((col) => drizzleOrm.sql`LOWER(${col} || '') LIKE ${pattern}`);
229
- return parts.length === 1 ? parts[0] : drizzleOrm.or(...parts);
230
- };
231
-
232
- const resolveColumn = (table, column, fallback = "updatedAt") => {
233
- const key = column && column in table ? column : fallback;
234
- return table[key];
235
- };
236
-
237
223
  const getTransactionsWithPaginationQuery = async ({
238
224
  db,
239
225
  pagination: {
@@ -292,6 +278,20 @@ const getTransactionsWithPaginationQuery = async ({
292
278
  };
293
279
  };
294
280
 
281
+ const buildSearchConditions = (search, columns, opts = {}) => {
282
+ const { wrap = "both" } = opts;
283
+ if (!search || search.trim() === "" || columns.length === 0) return void 0;
284
+ const searchTerm = search.toLowerCase();
285
+ const pattern = wrap === "both" ? `%${searchTerm}%` : wrap === "prefix" ? `%${searchTerm}` : wrap === "suffix" ? `${searchTerm}%` : searchTerm;
286
+ const parts = columns.map((col) => drizzleOrm.sql`LOWER(${col} || '') LIKE ${pattern}`);
287
+ return parts.length === 1 ? parts[0] : drizzleOrm.or(...parts);
288
+ };
289
+
290
+ const resolveColumn = (table, column, fallback = "updatedAt") => {
291
+ const key = column && column in table ? column : fallback;
292
+ return table[key];
293
+ };
294
+
295
295
  var __defProp = Object.defineProperty;
296
296
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
297
297
  var __decorateClass = (decorators, target, key, kind) => {
@@ -302,13 +302,13 @@ var __decorateClass = (decorators, target, key, kind) => {
302
302
  if (kind && result) __defProp(target, key, result);
303
303
  return result;
304
304
  };
305
- let LedgerServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.WorkerEntrypoint) {
305
+ let LedgerServiceBase = class extends backendSdk.develitWorker(
306
+ cloudflare_workers.WorkerEntrypoint
307
+ ) {
306
308
  constructor(ctx, env) {
307
309
  super(ctx, env);
308
310
  this.db = d1.drizzle(this.env.LEDGER_D1, { schema: tables });
309
311
  }
310
- async queue(_batch) {
311
- }
312
312
  async createTransaction(input) {
313
313
  return this.handleAction(
314
314
  {
@@ -697,9 +697,6 @@ let LedgerServiceBase = class extends backendSdk.develitWorker(cloudflare_worker
697
697
  );
698
698
  }
699
699
  };
700
- __decorateClass([
701
- backendSdk.cloudflareQueue({ baseDelay: 60 })
702
- ], LedgerServiceBase.prototype, "queue", 1);
703
700
  __decorateClass([
704
701
  backendSdk.action("create-transaction")
705
702
  ], LedgerServiceBase.prototype, "createTransaction", 1);
@@ -758,6 +755,7 @@ function defineLedgerService() {
758
755
  }
759
756
  };
760
757
  }
758
+
761
759
  const LedgerService = defineLedgerService();
762
760
 
763
761
  exports.default = LedgerService;
@@ -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.CSi5bWgX.cjs';
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.DRJcpNto.cjs';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/ledger._YlR4Uxg.cjs';
7
+ import '../shared/ledger.MnYNWZoo.cjs';
8
8
  import 'drizzle-orm';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
  import '@develit-io/general-codes';
@@ -13,7 +13,6 @@ declare const LedgerServiceBase_base: (abstract new (ctx: ExecutionContext, env:
13
13
  declare class LedgerServiceBase extends LedgerServiceBase_base {
14
14
  readonly db: DrizzleD1Database<typeof tables>;
15
15
  constructor(ctx: ExecutionContext, env: LedgerEnv);
16
- queue(_batch: MessageBatch<unknown>): Promise<void>;
17
16
  createTransaction(input: CreateTransactionInput): Promise<IRPCResponse<CreateTransactionOutput>>;
18
17
  updateTransaction(input: UpdateTransactionInput): Promise<IRPCResponse<UpdateTransactionOutput>>;
19
18
  getTransactionById(input: GetTransactionByIdInput): Promise<IRPCResponse<GetTransactionByIdOutput | undefined>>;
@@ -32,6 +31,7 @@ declare class LedgerServiceBase extends LedgerServiceBase_base {
32
31
  updateTransactionConfirmationSentAt(input: UpdateTransactionConfirmationSentAtInput): Promise<IRPCResponse<UpdateTransactionConfirmationSentAtOutput>>;
33
32
  }
34
33
  declare function defineLedgerService(): new (ctx: ExecutionContext, env: LedgerEnv) => LedgerServiceBase;
34
+
35
35
  declare const _default: new (ctx: ExecutionContext, env: LedgerEnv) => WorkerEntrypoint<LedgerEnv>;
36
36
 
37
37
  // @ts-ignore
@@ -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.BGDeCrA0.mjs';
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.w4G_kYoj.mjs';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/ledger._YlR4Uxg.mjs';
7
+ import '../shared/ledger.MnYNWZoo.mjs';
8
8
  import 'drizzle-orm';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
  import '@develit-io/general-codes';
@@ -13,7 +13,6 @@ declare const LedgerServiceBase_base: (abstract new (ctx: ExecutionContext, env:
13
13
  declare class LedgerServiceBase extends LedgerServiceBase_base {
14
14
  readonly db: DrizzleD1Database<typeof tables>;
15
15
  constructor(ctx: ExecutionContext, env: LedgerEnv);
16
- queue(_batch: MessageBatch<unknown>): Promise<void>;
17
16
  createTransaction(input: CreateTransactionInput): Promise<IRPCResponse<CreateTransactionOutput>>;
18
17
  updateTransaction(input: UpdateTransactionInput): Promise<IRPCResponse<UpdateTransactionOutput>>;
19
18
  getTransactionById(input: GetTransactionByIdInput): Promise<IRPCResponse<GetTransactionByIdOutput | undefined>>;
@@ -32,6 +31,7 @@ declare class LedgerServiceBase extends LedgerServiceBase_base {
32
31
  updateTransactionConfirmationSentAt(input: UpdateTransactionConfirmationSentAtInput): Promise<IRPCResponse<UpdateTransactionConfirmationSentAtOutput>>;
33
32
  }
34
33
  declare function defineLedgerService(): new (ctx: ExecutionContext, env: LedgerEnv) => LedgerServiceBase;
34
+
35
35
  declare const _default: new (ctx: ExecutionContext, env: LedgerEnv) => WorkerEntrypoint<LedgerEnv>;
36
36
 
37
37
  export { _default as default, defineLedgerService };
@@ -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.CSKqugjV.js';
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.B097jcnG.js';
5
5
  import { DrizzleD1Database } from 'drizzle-orm/d1';
6
6
  import 'zod';
7
- import '../shared/ledger._YlR4Uxg.js';
7
+ import '../shared/ledger.MnYNWZoo.js';
8
8
  import 'drizzle-orm';
9
9
  import 'drizzle-orm/sqlite-core';
10
10
  import '@develit-io/general-codes';
@@ -13,7 +13,6 @@ declare const LedgerServiceBase_base: (abstract new (ctx: ExecutionContext, env:
13
13
  declare class LedgerServiceBase extends LedgerServiceBase_base {
14
14
  readonly db: DrizzleD1Database<typeof tables>;
15
15
  constructor(ctx: ExecutionContext, env: LedgerEnv);
16
- queue(_batch: MessageBatch<unknown>): Promise<void>;
17
16
  createTransaction(input: CreateTransactionInput): Promise<IRPCResponse<CreateTransactionOutput>>;
18
17
  updateTransaction(input: UpdateTransactionInput): Promise<IRPCResponse<UpdateTransactionOutput>>;
19
18
  getTransactionById(input: GetTransactionByIdInput): Promise<IRPCResponse<GetTransactionByIdOutput | undefined>>;
@@ -32,6 +31,7 @@ declare class LedgerServiceBase extends LedgerServiceBase_base {
32
31
  updateTransactionConfirmationSentAt(input: UpdateTransactionConfirmationSentAtInput): Promise<IRPCResponse<UpdateTransactionConfirmationSentAtOutput>>;
33
32
  }
34
33
  declare function defineLedgerService(): new (ctx: ExecutionContext, env: LedgerEnv) => LedgerServiceBase;
34
+
35
35
  declare const _default: new (ctx: ExecutionContext, env: LedgerEnv) => WorkerEntrypoint<LedgerEnv>;
36
36
 
37
37
  // @ts-ignore
@@ -1,9 +1,9 @@
1
1
  import { WorkerEntrypoint } from 'cloudflare:workers';
2
- import { first, develitWorker, uuidv4, useResult, createInternalError, cloudflareQueue, action, service } from '@develit-io/backend-sdk';
2
+ import { first, develitWorker, uuidv4, useResult, createInternalError, action, service } from '@develit-io/backend-sdk';
3
3
  import { e as createTransactionInputSchema, n as updateTransactionInputSchema, o as getTransactionByIdInputSchema, p as getTransactionsByReferenceIdInputSchema, q as getTransactionsInputSchema, d as createAccountInputSchema, u as updateAccountInputSchema, f as deleteAccountInputSchema, h as getAccountInputSchema, k as getAccountsByOwnerInputSchema, m as listAccountsInputSchema, j as getAccountIdentifierInputSchema, l as listAccountIdentifiersInputSchema, g as findAccountByIdentifierInputSchema, i as getAccountBalanceInputSchema, r as updateTransactionConfirmationSentAtInputSchema } from '../shared/ledger.ByUO4e44.mjs';
4
4
  import '@develit-io/general-codes';
5
5
  import { s as schema } from '../shared/ledger.Bl4HgQDw.mjs';
6
- import { eq, and, inArray, or, count, sql, gte, lte, asc, desc } from 'drizzle-orm';
6
+ import { eq, and, inArray, or, count, gte, lte, sql, asc, desc } from 'drizzle-orm';
7
7
  import { drizzle } from 'drizzle-orm/d1';
8
8
  import 'zod';
9
9
  import 'drizzle-orm/sqlite-core';
@@ -216,20 +216,6 @@ const listAccountsQuery = async (db, filters = {}, pagination = { limit: 100, of
216
216
  return { accounts, total };
217
217
  };
218
218
 
219
- const buildSearchConditions = (search, columns, opts = {}) => {
220
- const { wrap = "both" } = opts;
221
- if (!search || search.trim() === "" || columns.length === 0) return void 0;
222
- const searchTerm = search.toLowerCase();
223
- const pattern = wrap === "both" ? `%${searchTerm}%` : wrap === "prefix" ? `%${searchTerm}` : wrap === "suffix" ? `${searchTerm}%` : searchTerm;
224
- const parts = columns.map((col) => sql`LOWER(${col} || '') LIKE ${pattern}`);
225
- return parts.length === 1 ? parts[0] : or(...parts);
226
- };
227
-
228
- const resolveColumn = (table, column, fallback = "updatedAt") => {
229
- const key = column && column in table ? column : fallback;
230
- return table[key];
231
- };
232
-
233
219
  const getTransactionsWithPaginationQuery = async ({
234
220
  db,
235
221
  pagination: {
@@ -288,6 +274,20 @@ const getTransactionsWithPaginationQuery = async ({
288
274
  };
289
275
  };
290
276
 
277
+ const buildSearchConditions = (search, columns, opts = {}) => {
278
+ const { wrap = "both" } = opts;
279
+ if (!search || search.trim() === "" || columns.length === 0) return void 0;
280
+ const searchTerm = search.toLowerCase();
281
+ const pattern = wrap === "both" ? `%${searchTerm}%` : wrap === "prefix" ? `%${searchTerm}` : wrap === "suffix" ? `${searchTerm}%` : searchTerm;
282
+ const parts = columns.map((col) => sql`LOWER(${col} || '') LIKE ${pattern}`);
283
+ return parts.length === 1 ? parts[0] : or(...parts);
284
+ };
285
+
286
+ const resolveColumn = (table, column, fallback = "updatedAt") => {
287
+ const key = column && column in table ? column : fallback;
288
+ return table[key];
289
+ };
290
+
291
291
  var __defProp = Object.defineProperty;
292
292
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
293
293
  var __decorateClass = (decorators, target, key, kind) => {
@@ -298,13 +298,13 @@ var __decorateClass = (decorators, target, key, kind) => {
298
298
  if (kind && result) __defProp(target, key, result);
299
299
  return result;
300
300
  };
301
- let LedgerServiceBase = class extends develitWorker(WorkerEntrypoint) {
301
+ let LedgerServiceBase = class extends develitWorker(
302
+ WorkerEntrypoint
303
+ ) {
302
304
  constructor(ctx, env) {
303
305
  super(ctx, env);
304
306
  this.db = drizzle(this.env.LEDGER_D1, { schema: tables });
305
307
  }
306
- async queue(_batch) {
307
- }
308
308
  async createTransaction(input) {
309
309
  return this.handleAction(
310
310
  {
@@ -693,9 +693,6 @@ let LedgerServiceBase = class extends develitWorker(WorkerEntrypoint) {
693
693
  );
694
694
  }
695
695
  };
696
- __decorateClass([
697
- cloudflareQueue({ baseDelay: 60 })
698
- ], LedgerServiceBase.prototype, "queue", 1);
699
696
  __decorateClass([
700
697
  action("create-transaction")
701
698
  ], LedgerServiceBase.prototype, "createTransaction", 1);
@@ -754,6 +751,7 @@ function defineLedgerService() {
754
751
  }
755
752
  };
756
753
  }
754
+
757
755
  const LedgerService = defineLedgerService();
758
756
 
759
757
  export { LedgerService as default, defineLedgerService };
@@ -30,7 +30,6 @@ declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig
30
30
  invocation_logs: boolean;
31
31
  };
32
32
  };
33
- preview_urls: boolean;
34
33
  workers_dev: boolean;
35
34
  keep_vars: boolean;
36
35
  };
@@ -30,7 +30,6 @@ declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig
30
30
  invocation_logs: boolean;
31
31
  };
32
32
  };
33
- preview_urls: boolean;
34
33
  workers_dev: boolean;
35
34
  keep_vars: boolean;
36
35
  };
@@ -30,7 +30,6 @@ declare function defineLedgerServiceWrangler(config: LedgerServiceWranglerConfig
30
30
  invocation_logs: boolean;
31
31
  };
32
32
  };
33
- preview_urls: boolean;
34
33
  workers_dev: boolean;
35
34
  keep_vars: boolean;
36
35
  };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { D as schema } from './ledger._YlR4Uxg.js';
2
+ import { D as schema } from './ledger.MnYNWZoo.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";
335
334
  IBAN: "IBAN";
336
335
  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";
611
609
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
612
610
  PAUSED: "PAUSED";
613
611
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
614
612
  MATCHED: "MATCHED";
615
613
  RETURNING: "RETURNING";
616
614
  RETURNED: "RETURNED";
615
+ FAILED: "FAILED";
617
616
  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";
924
922
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
925
923
  PAUSED: "PAUSED";
926
924
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
927
925
  MATCHED: "MATCHED";
928
926
  RETURNING: "RETURNING";
929
927
  RETURNED: "RETURNED";
928
+ FAILED: "FAILED";
930
929
  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";
994
992
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
995
993
  PAUSED: "PAUSED";
996
994
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
997
995
  MATCHED: "MATCHED";
998
996
  RETURNING: "RETURNING";
999
997
  RETURNED: "RETURNED";
998
+ FAILED: "FAILED";
1000
999
  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._YlR4Uxg.mjs';
2
+ import { D as schema } from './ledger.MnYNWZoo.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";
335
334
  IBAN: "IBAN";
336
335
  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";
611
609
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
612
610
  PAUSED: "PAUSED";
613
611
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
614
612
  MATCHED: "MATCHED";
615
613
  RETURNING: "RETURNING";
616
614
  RETURNED: "RETURNED";
615
+ FAILED: "FAILED";
617
616
  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";
924
922
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
925
923
  PAUSED: "PAUSED";
926
924
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
927
925
  MATCHED: "MATCHED";
928
926
  RETURNING: "RETURNING";
929
927
  RETURNED: "RETURNED";
928
+ FAILED: "FAILED";
930
929
  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";
994
992
  WAITING_FOR_PAYMENT: "WAITING_FOR_PAYMENT";
995
993
  PAUSED: "PAUSED";
996
994
  WAITING_FOR_MANUAL_PROCESSING: "WAITING_FOR_MANUAL_PROCESSING";
997
995
  MATCHED: "MATCHED";
998
996
  RETURNING: "RETURNING";
999
997
  RETURNED: "RETURNED";
998
+ FAILED: "FAILED";
1000
999
  CANCELLED: "CANCELLED";
1000
+ COMPLETED: "COMPLETED";
1001
1001
  }>>;
1002
1002
  search: z.ZodOptional<z.ZodString>;
1003
1003
  }, z.core.$strip>;