@develit-services/bank 0.0.33 → 0.0.34
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 +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/worker.cjs +27 -12
- package/dist/export/worker.d.cts +41 -14
- package/dist/export/worker.d.mts +41 -14
- package/dist/export/worker.d.ts +41 -14
- package/dist/export/worker.mjs +28 -13
- package/dist/shared/{bank.DclyB3RM.d.ts → bank.-qiBc98X.d.mts} +1 -1
- package/dist/shared/{bank.DkHmB4jn.d.cts → bank.BRiDHyNf.d.ts} +1 -1
- package/dist/shared/{bank.B31ygxgn.d.mts → bank._5C74-4K.d.cts} +1 -1
- package/dist/shared/{bank.B1d_PE1-.d.cts → bank.e_XSg9KV.d.cts} +6 -6
- package/dist/shared/{bank.B1d_PE1-.d.mts → bank.e_XSg9KV.d.mts} +6 -6
- package/dist/shared/{bank.B1d_PE1-.d.ts → bank.e_XSg9KV.d.ts} +6 -6
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.e_XSg9KV.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.e_XSg9KV.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { f as account, g as accountCredentials, c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.e_XSg9KV.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -206,16 +206,22 @@ const getPaymentsWithPaginationQuery = async (db, {
|
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
208
|
|
|
209
|
-
const getBatchesQuery = async (db, {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
209
|
+
const getBatchesQuery = async (db, {
|
|
210
|
+
limit,
|
|
211
|
+
page,
|
|
212
|
+
sort,
|
|
213
|
+
filterBatchAccountId,
|
|
214
|
+
filterBatchStatus
|
|
215
|
+
}) => {
|
|
216
|
+
const whereConditions = drizzleOrm.and(
|
|
217
|
+
buildMultiFilterConditions(database_schema.tables.batch.accountId, filterBatchAccountId),
|
|
218
|
+
buildMultiFilterConditions(database_schema.tables.batch.status, filterBatchStatus)
|
|
213
219
|
);
|
|
214
|
-
const
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
const
|
|
220
|
+
const sortColumn = resolveColumn(database_schema.tables.batch, sort.column);
|
|
221
|
+
const [{ totalCount }] = await db.select({
|
|
222
|
+
totalCount: drizzleOrm.sql`count(*)`
|
|
223
|
+
}).from(database_schema.tables.batch).where(whereConditions);
|
|
224
|
+
const batches = await db.select().from(database_schema.tables.batch).where(whereConditions).limit(limit).offset((page - 1) * limit).orderBy(sort.direction === "asc" ? drizzleOrm.asc(sortColumn) : drizzleOrm.desc(sortColumn));
|
|
219
225
|
return {
|
|
220
226
|
batches,
|
|
221
227
|
totalCount
|
|
@@ -393,10 +399,19 @@ const initiateConnectorInputSchema = zod.z.object({
|
|
|
393
399
|
withAuth: zod.z.boolean().default(true).optional()
|
|
394
400
|
});
|
|
395
401
|
|
|
402
|
+
const ALLOWED_BATCH_FILTERS = {
|
|
403
|
+
ACCOUNT_ID: "filterBatchAccountId",
|
|
404
|
+
STATUS: "filterBatchStatus"
|
|
405
|
+
};
|
|
396
406
|
const getBatchesInputSchema = zod.z.object({
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
407
|
+
page: zod.z.number().positive(),
|
|
408
|
+
limit: zod.z.number().positive(),
|
|
409
|
+
sort: zod.z.object({
|
|
410
|
+
column: zod.z.enum(["createdAt", "updatedAt", "batchPaymentInitiatedAt"]),
|
|
411
|
+
direction: zod.z.enum(["asc", "desc"])
|
|
412
|
+
}),
|
|
413
|
+
[ALLOWED_BATCH_FILTERS.ACCOUNT_ID]: zod.z.union([zod.z.uuid(), zod.z.uuid().array()]).optional(),
|
|
414
|
+
[ALLOWED_BATCH_FILTERS.STATUS]: zod.z.union([zod.z.enum(database_schema.BATCH_STATUSES), zod.z.enum(database_schema.BATCH_STATUSES).array()]).optional()
|
|
400
415
|
});
|
|
401
416
|
|
|
402
417
|
const processBatchInputSchema = zod.z.object({
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -2,8 +2,8 @@ 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
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
6
|
-
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.
|
|
5
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.e_XSg9KV.cjs';
|
|
6
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank._5C74-4K.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
@@ -221,16 +221,43 @@ interface initiateConnectorOutput {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
declare const getBatchesInputSchema: z.ZodObject<{
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
page: z.ZodNumber;
|
|
225
|
+
limit: z.ZodNumber;
|
|
226
|
+
sort: z.ZodObject<{
|
|
227
|
+
column: z.ZodEnum<{
|
|
228
|
+
createdAt: "createdAt";
|
|
229
|
+
updatedAt: "updatedAt";
|
|
230
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
231
|
+
}>;
|
|
232
|
+
direction: z.ZodEnum<{
|
|
233
|
+
asc: "asc";
|
|
234
|
+
desc: "desc";
|
|
235
|
+
}>;
|
|
236
|
+
}, z.core.$strip>;
|
|
226
237
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
238
|
+
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
239
|
+
OPEN: "OPEN";
|
|
240
|
+
PROCESSING: "PROCESSING";
|
|
241
|
+
READY_TO_SIGN: "READY_TO_SIGN";
|
|
242
|
+
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
243
|
+
PREPARED: "PREPARED";
|
|
244
|
+
COMPLETED: "COMPLETED";
|
|
245
|
+
FAILED: "FAILED";
|
|
246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
247
|
+
OPEN: "OPEN";
|
|
248
|
+
PROCESSING: "PROCESSING";
|
|
249
|
+
READY_TO_SIGN: "READY_TO_SIGN";
|
|
250
|
+
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
251
|
+
PREPARED: "PREPARED";
|
|
252
|
+
COMPLETED: "COMPLETED";
|
|
253
|
+
FAILED: "FAILED";
|
|
254
|
+
}>>]>>;
|
|
227
255
|
}, z.core.$strip>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
interface GetBatchesOutput {
|
|
256
|
+
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
257
|
+
type GetBatchesOutput = {
|
|
231
258
|
batches: BatchSelectType[];
|
|
232
259
|
totalCount: number;
|
|
233
|
-
}
|
|
260
|
+
};
|
|
234
261
|
|
|
235
262
|
declare const processBatchInputSchema: z.ZodObject<{
|
|
236
263
|
connectorKey: z.ZodEnum<{
|
|
@@ -252,9 +279,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
252
279
|
limit: z.ZodNumber;
|
|
253
280
|
sort: z.ZodObject<{
|
|
254
281
|
column: z.ZodEnum<{
|
|
255
|
-
amount: "amount";
|
|
256
282
|
createdAt: "createdAt";
|
|
257
283
|
updatedAt: "updatedAt";
|
|
284
|
+
amount: "amount";
|
|
258
285
|
}>;
|
|
259
286
|
direction: z.ZodEnum<{
|
|
260
287
|
asc: "asc";
|
|
@@ -383,17 +410,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
383
410
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
384
411
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
385
412
|
PREPARED: "PREPARED";
|
|
386
|
-
|
|
413
|
+
COMPLETED: "COMPLETED";
|
|
387
414
|
FAILED: "FAILED";
|
|
415
|
+
INITIALIZED: "INITIALIZED";
|
|
388
416
|
PENDING: "PENDING";
|
|
389
|
-
COMPLETED: "COMPLETED";
|
|
390
417
|
CREATED: "CREATED";
|
|
391
418
|
}>, z.ZodArray<z.ZodEnum<{
|
|
392
419
|
PREPARED: "PREPARED";
|
|
393
|
-
|
|
420
|
+
COMPLETED: "COMPLETED";
|
|
394
421
|
FAILED: "FAILED";
|
|
422
|
+
INITIALIZED: "INITIALIZED";
|
|
395
423
|
PENDING: "PENDING";
|
|
396
|
-
COMPLETED: "COMPLETED";
|
|
397
424
|
CREATED: "CREATED";
|
|
398
425
|
}>>]>>;
|
|
399
426
|
}, z.core.$strip>;
|
|
@@ -451,7 +478,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
451
478
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
452
479
|
paymentsToBatch: SendPaymentInput[];
|
|
453
480
|
}): Promise<IRPCResponse<{
|
|
454
|
-
status: "
|
|
481
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
455
482
|
id: string;
|
|
456
483
|
createdAt: Date | null;
|
|
457
484
|
updatedAt: Date | null;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -2,8 +2,8 @@ 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
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
6
|
-
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.
|
|
5
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.e_XSg9KV.mjs';
|
|
6
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.-qiBc98X.mjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
@@ -221,16 +221,43 @@ interface initiateConnectorOutput {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
declare const getBatchesInputSchema: z.ZodObject<{
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
page: z.ZodNumber;
|
|
225
|
+
limit: z.ZodNumber;
|
|
226
|
+
sort: z.ZodObject<{
|
|
227
|
+
column: z.ZodEnum<{
|
|
228
|
+
createdAt: "createdAt";
|
|
229
|
+
updatedAt: "updatedAt";
|
|
230
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
231
|
+
}>;
|
|
232
|
+
direction: z.ZodEnum<{
|
|
233
|
+
asc: "asc";
|
|
234
|
+
desc: "desc";
|
|
235
|
+
}>;
|
|
236
|
+
}, z.core.$strip>;
|
|
226
237
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
238
|
+
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
239
|
+
OPEN: "OPEN";
|
|
240
|
+
PROCESSING: "PROCESSING";
|
|
241
|
+
READY_TO_SIGN: "READY_TO_SIGN";
|
|
242
|
+
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
243
|
+
PREPARED: "PREPARED";
|
|
244
|
+
COMPLETED: "COMPLETED";
|
|
245
|
+
FAILED: "FAILED";
|
|
246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
247
|
+
OPEN: "OPEN";
|
|
248
|
+
PROCESSING: "PROCESSING";
|
|
249
|
+
READY_TO_SIGN: "READY_TO_SIGN";
|
|
250
|
+
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
251
|
+
PREPARED: "PREPARED";
|
|
252
|
+
COMPLETED: "COMPLETED";
|
|
253
|
+
FAILED: "FAILED";
|
|
254
|
+
}>>]>>;
|
|
227
255
|
}, z.core.$strip>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
interface GetBatchesOutput {
|
|
256
|
+
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
257
|
+
type GetBatchesOutput = {
|
|
231
258
|
batches: BatchSelectType[];
|
|
232
259
|
totalCount: number;
|
|
233
|
-
}
|
|
260
|
+
};
|
|
234
261
|
|
|
235
262
|
declare const processBatchInputSchema: z.ZodObject<{
|
|
236
263
|
connectorKey: z.ZodEnum<{
|
|
@@ -252,9 +279,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
252
279
|
limit: z.ZodNumber;
|
|
253
280
|
sort: z.ZodObject<{
|
|
254
281
|
column: z.ZodEnum<{
|
|
255
|
-
amount: "amount";
|
|
256
282
|
createdAt: "createdAt";
|
|
257
283
|
updatedAt: "updatedAt";
|
|
284
|
+
amount: "amount";
|
|
258
285
|
}>;
|
|
259
286
|
direction: z.ZodEnum<{
|
|
260
287
|
asc: "asc";
|
|
@@ -383,17 +410,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
383
410
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
384
411
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
385
412
|
PREPARED: "PREPARED";
|
|
386
|
-
|
|
413
|
+
COMPLETED: "COMPLETED";
|
|
387
414
|
FAILED: "FAILED";
|
|
415
|
+
INITIALIZED: "INITIALIZED";
|
|
388
416
|
PENDING: "PENDING";
|
|
389
|
-
COMPLETED: "COMPLETED";
|
|
390
417
|
CREATED: "CREATED";
|
|
391
418
|
}>, z.ZodArray<z.ZodEnum<{
|
|
392
419
|
PREPARED: "PREPARED";
|
|
393
|
-
|
|
420
|
+
COMPLETED: "COMPLETED";
|
|
394
421
|
FAILED: "FAILED";
|
|
422
|
+
INITIALIZED: "INITIALIZED";
|
|
395
423
|
PENDING: "PENDING";
|
|
396
|
-
COMPLETED: "COMPLETED";
|
|
397
424
|
CREATED: "CREATED";
|
|
398
425
|
}>>]>>;
|
|
399
426
|
}, z.core.$strip>;
|
|
@@ -451,7 +478,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
451
478
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
452
479
|
paymentsToBatch: SendPaymentInput[];
|
|
453
480
|
}): Promise<IRPCResponse<{
|
|
454
|
-
status: "
|
|
481
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
455
482
|
id: string;
|
|
456
483
|
createdAt: Date | null;
|
|
457
484
|
updatedAt: Date | null;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ 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
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
6
|
-
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.
|
|
5
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.e_XSg9KV.js';
|
|
6
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.BRiDHyNf.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
@@ -221,16 +221,43 @@ interface initiateConnectorOutput {
|
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
declare const getBatchesInputSchema: z.ZodObject<{
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
page: z.ZodNumber;
|
|
225
|
+
limit: z.ZodNumber;
|
|
226
|
+
sort: z.ZodObject<{
|
|
227
|
+
column: z.ZodEnum<{
|
|
228
|
+
createdAt: "createdAt";
|
|
229
|
+
updatedAt: "updatedAt";
|
|
230
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
231
|
+
}>;
|
|
232
|
+
direction: z.ZodEnum<{
|
|
233
|
+
asc: "asc";
|
|
234
|
+
desc: "desc";
|
|
235
|
+
}>;
|
|
236
|
+
}, z.core.$strip>;
|
|
226
237
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
238
|
+
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
239
|
+
OPEN: "OPEN";
|
|
240
|
+
PROCESSING: "PROCESSING";
|
|
241
|
+
READY_TO_SIGN: "READY_TO_SIGN";
|
|
242
|
+
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
243
|
+
PREPARED: "PREPARED";
|
|
244
|
+
COMPLETED: "COMPLETED";
|
|
245
|
+
FAILED: "FAILED";
|
|
246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
247
|
+
OPEN: "OPEN";
|
|
248
|
+
PROCESSING: "PROCESSING";
|
|
249
|
+
READY_TO_SIGN: "READY_TO_SIGN";
|
|
250
|
+
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
251
|
+
PREPARED: "PREPARED";
|
|
252
|
+
COMPLETED: "COMPLETED";
|
|
253
|
+
FAILED: "FAILED";
|
|
254
|
+
}>>]>>;
|
|
227
255
|
}, z.core.$strip>;
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
interface GetBatchesOutput {
|
|
256
|
+
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
257
|
+
type GetBatchesOutput = {
|
|
231
258
|
batches: BatchSelectType[];
|
|
232
259
|
totalCount: number;
|
|
233
|
-
}
|
|
260
|
+
};
|
|
234
261
|
|
|
235
262
|
declare const processBatchInputSchema: z.ZodObject<{
|
|
236
263
|
connectorKey: z.ZodEnum<{
|
|
@@ -252,9 +279,9 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
252
279
|
limit: z.ZodNumber;
|
|
253
280
|
sort: z.ZodObject<{
|
|
254
281
|
column: z.ZodEnum<{
|
|
255
|
-
amount: "amount";
|
|
256
282
|
createdAt: "createdAt";
|
|
257
283
|
updatedAt: "updatedAt";
|
|
284
|
+
amount: "amount";
|
|
258
285
|
}>;
|
|
259
286
|
direction: z.ZodEnum<{
|
|
260
287
|
asc: "asc";
|
|
@@ -383,17 +410,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
383
410
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
384
411
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
385
412
|
PREPARED: "PREPARED";
|
|
386
|
-
|
|
413
|
+
COMPLETED: "COMPLETED";
|
|
387
414
|
FAILED: "FAILED";
|
|
415
|
+
INITIALIZED: "INITIALIZED";
|
|
388
416
|
PENDING: "PENDING";
|
|
389
|
-
COMPLETED: "COMPLETED";
|
|
390
417
|
CREATED: "CREATED";
|
|
391
418
|
}>, z.ZodArray<z.ZodEnum<{
|
|
392
419
|
PREPARED: "PREPARED";
|
|
393
|
-
|
|
420
|
+
COMPLETED: "COMPLETED";
|
|
394
421
|
FAILED: "FAILED";
|
|
422
|
+
INITIALIZED: "INITIALIZED";
|
|
395
423
|
PENDING: "PENDING";
|
|
396
|
-
COMPLETED: "COMPLETED";
|
|
397
424
|
CREATED: "CREATED";
|
|
398
425
|
}>>]>>;
|
|
399
426
|
}, z.core.$strip>;
|
|
@@ -451,7 +478,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
451
478
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
452
479
|
paymentsToBatch: SendPaymentInput[];
|
|
453
480
|
}): Promise<IRPCResponse<{
|
|
454
|
-
status: "
|
|
481
|
+
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
455
482
|
id: string;
|
|
456
483
|
createdAt: Date | null;
|
|
457
484
|
updatedAt: Date | null;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uuidv4, develitWorker, createInternalError, first, RPCResponse, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector, P as PAYMENT_TYPES, e as CONNECTOR_KEYS, c as PAYMENT_STATUSES, d as PAYMENT_DIRECTIONS, q as getPaymentDirection } from '../shared/bank.ClfukJ-T.mjs';
|
|
4
|
+
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector, P as PAYMENT_TYPES, e as CONNECTOR_KEYS, B as BATCH_STATUSES, c as PAYMENT_STATUSES, d as PAYMENT_DIRECTIONS, q as getPaymentDirection } from '../shared/bank.ClfukJ-T.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
7
7
|
import { z } from 'zod';
|
|
@@ -202,16 +202,22 @@ const getPaymentsWithPaginationQuery = async (db, {
|
|
|
202
202
|
};
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
const getBatchesQuery = async (db, {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
205
|
+
const getBatchesQuery = async (db, {
|
|
206
|
+
limit,
|
|
207
|
+
page,
|
|
208
|
+
sort,
|
|
209
|
+
filterBatchAccountId,
|
|
210
|
+
filterBatchStatus
|
|
211
|
+
}) => {
|
|
212
|
+
const whereConditions = and(
|
|
213
|
+
buildMultiFilterConditions(tables.batch.accountId, filterBatchAccountId),
|
|
214
|
+
buildMultiFilterConditions(tables.batch.status, filterBatchStatus)
|
|
209
215
|
);
|
|
210
|
-
const
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
const
|
|
216
|
+
const sortColumn = resolveColumn(tables.batch, sort.column);
|
|
217
|
+
const [{ totalCount }] = await db.select({
|
|
218
|
+
totalCount: sql`count(*)`
|
|
219
|
+
}).from(tables.batch).where(whereConditions);
|
|
220
|
+
const batches = await db.select().from(tables.batch).where(whereConditions).limit(limit).offset((page - 1) * limit).orderBy(sort.direction === "asc" ? asc(sortColumn) : desc(sortColumn));
|
|
215
221
|
return {
|
|
216
222
|
batches,
|
|
217
223
|
totalCount
|
|
@@ -389,10 +395,19 @@ const initiateConnectorInputSchema = z.object({
|
|
|
389
395
|
withAuth: z.boolean().default(true).optional()
|
|
390
396
|
});
|
|
391
397
|
|
|
398
|
+
const ALLOWED_BATCH_FILTERS = {
|
|
399
|
+
ACCOUNT_ID: "filterBatchAccountId",
|
|
400
|
+
STATUS: "filterBatchStatus"
|
|
401
|
+
};
|
|
392
402
|
const getBatchesInputSchema = z.object({
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
403
|
+
page: z.number().positive(),
|
|
404
|
+
limit: z.number().positive(),
|
|
405
|
+
sort: z.object({
|
|
406
|
+
column: z.enum(["createdAt", "updatedAt", "batchPaymentInitiatedAt"]),
|
|
407
|
+
direction: z.enum(["asc", "desc"])
|
|
408
|
+
}),
|
|
409
|
+
[ALLOWED_BATCH_FILTERS.ACCOUNT_ID]: z.union([z.uuid(), z.uuid().array()]).optional(),
|
|
410
|
+
[ALLOWED_BATCH_FILTERS.STATUS]: z.union([z.enum(BATCH_STATUSES), z.enum(BATCH_STATUSES).array()]).optional()
|
|
396
411
|
});
|
|
397
412
|
|
|
398
413
|
const processBatchInputSchema = z.object({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.e_XSg9KV.mjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.e_XSg9KV.js';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.e_XSg9KV.cjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
PENDING: "PENDING";
|
|
88
|
-
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -165,7 +165,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
165
165
|
tableName: "batch";
|
|
166
166
|
dataType: "string";
|
|
167
167
|
columnType: "SQLiteText";
|
|
168
|
-
data: "
|
|
168
|
+
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
169
169
|
driverParam: string;
|
|
170
170
|
notNull: false;
|
|
171
171
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
178
178
|
generated: undefined;
|
|
179
179
|
}, {}, {
|
|
180
180
|
length: number | undefined;
|
|
181
|
-
$type: "
|
|
181
|
+
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
182
182
|
}>;
|
|
183
183
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
184
|
name: "payments";
|
|
@@ -455,7 +455,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
455
455
|
tableName: "payment";
|
|
456
456
|
dataType: "string";
|
|
457
457
|
columnType: "SQLiteText";
|
|
458
|
-
data: "PREPARED" | "
|
|
458
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
459
459
|
driverParam: string;
|
|
460
460
|
notNull: true;
|
|
461
461
|
hasDefault: false;
|
|
@@ -468,7 +468,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
468
468
|
generated: undefined;
|
|
469
469
|
}, {}, {
|
|
470
470
|
length: number | undefined;
|
|
471
|
-
$type: "PREPARED" | "
|
|
471
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
472
472
|
}>;
|
|
473
473
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
474
474
|
name: "status_reason";
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
PENDING: "PENDING";
|
|
88
|
-
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -165,7 +165,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
165
165
|
tableName: "batch";
|
|
166
166
|
dataType: "string";
|
|
167
167
|
columnType: "SQLiteText";
|
|
168
|
-
data: "
|
|
168
|
+
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
169
169
|
driverParam: string;
|
|
170
170
|
notNull: false;
|
|
171
171
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
178
178
|
generated: undefined;
|
|
179
179
|
}, {}, {
|
|
180
180
|
length: number | undefined;
|
|
181
|
-
$type: "
|
|
181
|
+
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
182
182
|
}>;
|
|
183
183
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
184
|
name: "payments";
|
|
@@ -455,7 +455,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
455
455
|
tableName: "payment";
|
|
456
456
|
dataType: "string";
|
|
457
457
|
columnType: "SQLiteText";
|
|
458
|
-
data: "PREPARED" | "
|
|
458
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
459
459
|
driverParam: string;
|
|
460
460
|
notNull: true;
|
|
461
461
|
hasDefault: false;
|
|
@@ -468,7 +468,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
468
468
|
generated: undefined;
|
|
469
469
|
}, {}, {
|
|
470
470
|
length: number | undefined;
|
|
471
|
-
$type: "PREPARED" | "
|
|
471
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
472
472
|
}>;
|
|
473
473
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
474
474
|
name: "status_reason";
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
PENDING: "PENDING";
|
|
88
|
-
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -165,7 +165,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
165
165
|
tableName: "batch";
|
|
166
166
|
dataType: "string";
|
|
167
167
|
columnType: "SQLiteText";
|
|
168
|
-
data: "
|
|
168
|
+
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
169
169
|
driverParam: string;
|
|
170
170
|
notNull: false;
|
|
171
171
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
178
178
|
generated: undefined;
|
|
179
179
|
}, {}, {
|
|
180
180
|
length: number | undefined;
|
|
181
|
-
$type: "
|
|
181
|
+
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
182
182
|
}>;
|
|
183
183
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
184
|
name: "payments";
|
|
@@ -455,7 +455,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
455
455
|
tableName: "payment";
|
|
456
456
|
dataType: "string";
|
|
457
457
|
columnType: "SQLiteText";
|
|
458
|
-
data: "PREPARED" | "
|
|
458
|
+
data: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
459
459
|
driverParam: string;
|
|
460
460
|
notNull: true;
|
|
461
461
|
hasDefault: false;
|
|
@@ -468,7 +468,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
468
468
|
generated: undefined;
|
|
469
469
|
}, {}, {
|
|
470
470
|
length: number | undefined;
|
|
471
|
-
$type: "PREPARED" | "
|
|
471
|
+
$type: "PREPARED" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "CREATED";
|
|
472
472
|
}>;
|
|
473
473
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
474
474
|
name: "status_reason";
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, U as AccountCredentialsPatchType, V as AccountCredentialsSelectType, S as AccountCredentialsUpdateType, M as AccountPatchType, x as AccountStatus, L as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, z as BankAccountWithLastSync, D as CONNECTOR_KEYS, y as COUNTRY_CODES, E as CREDENTIALS_TYPES, C as ConfigEnvironmentBank, F as CredentialsType, O as OutgoingPaymentMessage, u as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, r as PAYMENT_TYPES, v as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, G as TokenType, N as accountCredentialsInsertSchema, R as accountCredentialsSelectSchema, Q as accountCredentialsUpdateSchema, H as accountInsertSchema, K as accountSelectSchema, J as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank._5C74-4K.cjs';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, U as AccountCredentialsPatchType, V as AccountCredentialsSelectType, S as AccountCredentialsUpdateType, M as AccountPatchType, x as AccountStatus, L as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, z as BankAccountWithLastSync, D as CONNECTOR_KEYS, y as COUNTRY_CODES, E as CREDENTIALS_TYPES, C as ConfigEnvironmentBank, F as CredentialsType, O as OutgoingPaymentMessage, u as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, r as PAYMENT_TYPES, v as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, G as TokenType, N as accountCredentialsInsertSchema, R as accountCredentialsSelectSchema, Q as accountCredentialsUpdateSchema, H as accountInsertSchema, K as accountSelectSchema, J as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank._5C74-4K.cjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.e_XSg9KV.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.e_XSg9KV.cjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, U as AccountCredentialsPatchType, V as AccountCredentialsSelectType, S as AccountCredentialsUpdateType, M as AccountPatchType, x as AccountStatus, L as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, z as BankAccountWithLastSync, D as CONNECTOR_KEYS, y as COUNTRY_CODES, E as CREDENTIALS_TYPES, C as ConfigEnvironmentBank, F as CredentialsType, O as OutgoingPaymentMessage, u as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, r as PAYMENT_TYPES, v as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, G as TokenType, N as accountCredentialsInsertSchema, R as accountCredentialsSelectSchema, Q as accountCredentialsUpdateSchema, H as accountInsertSchema, K as accountSelectSchema, J as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.-qiBc98X.mjs';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, U as AccountCredentialsPatchType, V as AccountCredentialsSelectType, S as AccountCredentialsUpdateType, M as AccountPatchType, x as AccountStatus, L as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, z as BankAccountWithLastSync, D as CONNECTOR_KEYS, y as COUNTRY_CODES, E as CREDENTIALS_TYPES, C as ConfigEnvironmentBank, F as CredentialsType, O as OutgoingPaymentMessage, u as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, r as PAYMENT_TYPES, v as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, G as TokenType, N as accountCredentialsInsertSchema, R as accountCredentialsSelectSchema, Q as accountCredentialsUpdateSchema, H as accountInsertSchema, K as accountSelectSchema, J as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.-qiBc98X.mjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.e_XSg9KV.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.e_XSg9KV.mjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, U as AccountCredentialsPatchType, V as AccountCredentialsSelectType, S as AccountCredentialsUpdateType, M as AccountPatchType, x as AccountStatus, L as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, z as BankAccountWithLastSync, D as CONNECTOR_KEYS, y as COUNTRY_CODES, E as CREDENTIALS_TYPES, C as ConfigEnvironmentBank, F as CredentialsType, O as OutgoingPaymentMessage, u as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, r as PAYMENT_TYPES, v as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, G as TokenType, N as accountCredentialsInsertSchema, R as accountCredentialsSelectSchema, Q as accountCredentialsUpdateSchema, H as accountInsertSchema, K as accountSelectSchema, J as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.BRiDHyNf.js';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, U as AccountCredentialsPatchType, V as AccountCredentialsSelectType, S as AccountCredentialsUpdateType, M as AccountPatchType, x as AccountStatus, L as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, z as BankAccountWithLastSync, D as CONNECTOR_KEYS, y as COUNTRY_CODES, E as CREDENTIALS_TYPES, C as ConfigEnvironmentBank, F as CredentialsType, O as OutgoingPaymentMessage, u as PAYMENT_DIRECTIONS, t as PAYMENT_STATUSES, r as PAYMENT_TYPES, v as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, G as TokenType, N as accountCredentialsInsertSchema, R as accountCredentialsSelectSchema, Q as accountCredentialsUpdateSchema, H as accountInsertSchema, K as accountSelectSchema, J as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.BRiDHyNf.js';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.e_XSg9KV.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.e_XSg9KV.js';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
|