@develit-services/ledger 0.0.6 → 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.
- package/dist/database/schema.d.cts +2 -2
- package/dist/database/schema.d.mts +2 -2
- package/dist/database/schema.d.ts +2 -2
- package/dist/export/worker.cjs +18 -20
- package/dist/export/worker.d.cts +3 -3
- package/dist/export/worker.d.mts +3 -3
- package/dist/export/worker.d.ts +3 -3
- package/dist/export/worker.mjs +20 -22
- package/dist/export/wrangler.cjs +6 -16
- package/dist/export/wrangler.d.cts +15 -16
- package/dist/export/wrangler.d.mts +15 -16
- package/dist/export/wrangler.d.ts +15 -16
- package/dist/export/wrangler.mjs +6 -16
- package/dist/shared/{ledger.CSKqugjV.d.ts → ledger.B097jcnG.d.ts} +8 -8
- package/dist/shared/{ledger.BGDeCrA0.d.mts → ledger.DRJcpNto.d.cts} +8 -8
- package/dist/shared/{ledger._YlR4Uxg.d.mts → ledger.MnYNWZoo.d.cts} +117 -117
- package/dist/shared/{ledger._YlR4Uxg.d.ts → ledger.MnYNWZoo.d.mts} +117 -117
- package/dist/shared/{ledger._YlR4Uxg.d.cts → ledger.MnYNWZoo.d.ts} +117 -117
- package/dist/shared/{ledger.CSi5bWgX.d.cts → ledger.w4G_kYoj.d.mts} +8 -8
- package/dist/{@types.d.cts → types.d.cts} +5 -10
- package/dist/{@types.d.mts → types.d.mts} +5 -10
- package/dist/{@types.d.ts → types.d.ts} +5 -10
- package/package.json +12 -12
- /package/dist/{@types.cjs → types.cjs} +0 -0
- /package/dist/{@types.mjs → types.mjs} +0 -0
|
@@ -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.
|
|
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.
|
|
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.
|
|
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';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -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(
|
|
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;
|
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.DRJcpNto.cjs';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
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
|
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.w4G_kYoj.mjs';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
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 };
|
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.B097jcnG.js';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import 'zod';
|
|
7
|
-
import '../shared/ledger.
|
|
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
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
2
|
-
import { first, develitWorker, uuidv4, useResult, createInternalError,
|
|
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,
|
|
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(
|
|
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 };
|
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,21 @@ 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
|
+
workers_dev: boolean;
|
|
34
|
+
keep_vars: boolean;
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
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,21 @@ 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
|
+
workers_dev: boolean;
|
|
34
|
+
keep_vars: boolean;
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
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,21 @@ 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
|
+
workers_dev: boolean;
|
|
34
|
+
keep_vars: boolean;
|
|
36
35
|
};
|
|
37
36
|
|
|
38
37
|
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.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.
|
|
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>;
|