@develit-services/bank 0.0.37 → 0.0.38
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 +1 -1
- package/dist/export/worker.d.cts +15 -15
- package/dist/export/worker.d.mts +15 -15
- package/dist/export/worker.d.ts +15 -15
- package/dist/export/worker.mjs +1 -1
- package/dist/shared/{bank.e_XSg9KV.d.mts → bank.B1d_PE1-.d.cts} +6 -6
- package/dist/shared/{bank.e_XSg9KV.d.ts → bank.B1d_PE1-.d.mts} +6 -6
- package/dist/shared/{bank.e_XSg9KV.d.cts → bank.B1d_PE1-.d.ts} +6 -6
- package/dist/shared/{bank.BmcSkaZh.d.mts → bank.CgnrZfJy.d.ts} +1 -1
- package/dist/shared/{bank.CELgdPJI.d.cts → bank.DkPy9YWm.d.cts} +1 -1
- package/dist/shared/{bank.C_BFyEi4.d.ts → bank.DyYQf_QJ.d.mts} +1 -1
- 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.B1d_PE1-.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.B1d_PE1-.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.B1d_PE1-.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -700,7 +700,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
700
700
|
}))
|
|
701
701
|
);
|
|
702
702
|
}
|
|
703
|
-
for (const acc of this.
|
|
703
|
+
for (const acc of await this.getAccounts()) {
|
|
704
704
|
const newPayments = supportedPayments.filter(
|
|
705
705
|
(payment) => payment.debtorIban === acc.iban && payment.currency === acc.currency
|
|
706
706
|
).map((payment) => ({
|
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.B1d_PE1-.cjs';
|
|
6
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.DkPy9YWm.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
@@ -225,9 +225,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
225
225
|
limit: z.ZodNumber;
|
|
226
226
|
sort: z.ZodObject<{
|
|
227
227
|
column: z.ZodEnum<{
|
|
228
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
229
228
|
createdAt: "createdAt";
|
|
230
229
|
updatedAt: "updatedAt";
|
|
230
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
231
231
|
}>;
|
|
232
232
|
direction: z.ZodEnum<{
|
|
233
233
|
asc: "asc";
|
|
@@ -236,21 +236,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
236
236
|
}, z.core.$strip>;
|
|
237
237
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
238
238
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
239
|
+
PREPARED: "PREPARED";
|
|
240
|
+
FAILED: "FAILED";
|
|
241
|
+
COMPLETED: "COMPLETED";
|
|
239
242
|
OPEN: "OPEN";
|
|
240
243
|
PROCESSING: "PROCESSING";
|
|
241
244
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
242
245
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
243
247
|
PREPARED: "PREPARED";
|
|
244
|
-
COMPLETED: "COMPLETED";
|
|
245
248
|
FAILED: "FAILED";
|
|
246
|
-
|
|
249
|
+
COMPLETED: "COMPLETED";
|
|
247
250
|
OPEN: "OPEN";
|
|
248
251
|
PROCESSING: "PROCESSING";
|
|
249
252
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
250
253
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
251
|
-
PREPARED: "PREPARED";
|
|
252
|
-
COMPLETED: "COMPLETED";
|
|
253
|
-
FAILED: "FAILED";
|
|
254
254
|
}>>]>>;
|
|
255
255
|
}, z.core.$strip>;
|
|
256
256
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -410,17 +410,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
410
410
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
411
411
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
412
412
|
PREPARED: "PREPARED";
|
|
413
|
-
COMPLETED: "COMPLETED";
|
|
414
|
-
FAILED: "FAILED";
|
|
415
413
|
INITIALIZED: "INITIALIZED";
|
|
414
|
+
FAILED: "FAILED";
|
|
416
415
|
PENDING: "PENDING";
|
|
416
|
+
COMPLETED: "COMPLETED";
|
|
417
417
|
CREATED: "CREATED";
|
|
418
418
|
}>, z.ZodArray<z.ZodEnum<{
|
|
419
419
|
PREPARED: "PREPARED";
|
|
420
|
-
COMPLETED: "COMPLETED";
|
|
421
|
-
FAILED: "FAILED";
|
|
422
420
|
INITIALIZED: "INITIALIZED";
|
|
421
|
+
FAILED: "FAILED";
|
|
423
422
|
PENDING: "PENDING";
|
|
423
|
+
COMPLETED: "COMPLETED";
|
|
424
424
|
CREATED: "CREATED";
|
|
425
425
|
}>>]>>;
|
|
426
426
|
}, z.core.$strip>;
|
|
@@ -479,14 +479,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
479
479
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
480
480
|
paymentsToBatch: SendPaymentInput[];
|
|
481
481
|
}): Promise<IRPCResponse<{
|
|
482
|
-
|
|
483
|
-
authorizationUrls: string | string[] | null;
|
|
484
|
-
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
482
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
|
|
485
483
|
id: string;
|
|
486
484
|
createdAt: Date | null;
|
|
487
485
|
updatedAt: Date | null;
|
|
488
486
|
deletedAt: Date | null;
|
|
489
487
|
accountId: string | null;
|
|
488
|
+
batchPaymentInitiatedAt: Date | null;
|
|
489
|
+
authorizationUrls: string | string[] | null;
|
|
490
490
|
payments: PaymentInsertType[];
|
|
491
491
|
metadata: object | null;
|
|
492
492
|
}[] | undefined>>;
|
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.B1d_PE1-.mjs';
|
|
6
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.DyYQf_QJ.mjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
@@ -225,9 +225,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
225
225
|
limit: z.ZodNumber;
|
|
226
226
|
sort: z.ZodObject<{
|
|
227
227
|
column: z.ZodEnum<{
|
|
228
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
229
228
|
createdAt: "createdAt";
|
|
230
229
|
updatedAt: "updatedAt";
|
|
230
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
231
231
|
}>;
|
|
232
232
|
direction: z.ZodEnum<{
|
|
233
233
|
asc: "asc";
|
|
@@ -236,21 +236,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
236
236
|
}, z.core.$strip>;
|
|
237
237
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
238
238
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
239
|
+
PREPARED: "PREPARED";
|
|
240
|
+
FAILED: "FAILED";
|
|
241
|
+
COMPLETED: "COMPLETED";
|
|
239
242
|
OPEN: "OPEN";
|
|
240
243
|
PROCESSING: "PROCESSING";
|
|
241
244
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
242
245
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
243
247
|
PREPARED: "PREPARED";
|
|
244
|
-
COMPLETED: "COMPLETED";
|
|
245
248
|
FAILED: "FAILED";
|
|
246
|
-
|
|
249
|
+
COMPLETED: "COMPLETED";
|
|
247
250
|
OPEN: "OPEN";
|
|
248
251
|
PROCESSING: "PROCESSING";
|
|
249
252
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
250
253
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
251
|
-
PREPARED: "PREPARED";
|
|
252
|
-
COMPLETED: "COMPLETED";
|
|
253
|
-
FAILED: "FAILED";
|
|
254
254
|
}>>]>>;
|
|
255
255
|
}, z.core.$strip>;
|
|
256
256
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -410,17 +410,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
410
410
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
411
411
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
412
412
|
PREPARED: "PREPARED";
|
|
413
|
-
COMPLETED: "COMPLETED";
|
|
414
|
-
FAILED: "FAILED";
|
|
415
413
|
INITIALIZED: "INITIALIZED";
|
|
414
|
+
FAILED: "FAILED";
|
|
416
415
|
PENDING: "PENDING";
|
|
416
|
+
COMPLETED: "COMPLETED";
|
|
417
417
|
CREATED: "CREATED";
|
|
418
418
|
}>, z.ZodArray<z.ZodEnum<{
|
|
419
419
|
PREPARED: "PREPARED";
|
|
420
|
-
COMPLETED: "COMPLETED";
|
|
421
|
-
FAILED: "FAILED";
|
|
422
420
|
INITIALIZED: "INITIALIZED";
|
|
421
|
+
FAILED: "FAILED";
|
|
423
422
|
PENDING: "PENDING";
|
|
423
|
+
COMPLETED: "COMPLETED";
|
|
424
424
|
CREATED: "CREATED";
|
|
425
425
|
}>>]>>;
|
|
426
426
|
}, z.core.$strip>;
|
|
@@ -479,14 +479,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
479
479
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
480
480
|
paymentsToBatch: SendPaymentInput[];
|
|
481
481
|
}): Promise<IRPCResponse<{
|
|
482
|
-
|
|
483
|
-
authorizationUrls: string | string[] | null;
|
|
484
|
-
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
482
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
|
|
485
483
|
id: string;
|
|
486
484
|
createdAt: Date | null;
|
|
487
485
|
updatedAt: Date | null;
|
|
488
486
|
deletedAt: Date | null;
|
|
489
487
|
accountId: string | null;
|
|
488
|
+
batchPaymentInitiatedAt: Date | null;
|
|
489
|
+
authorizationUrls: string | string[] | null;
|
|
490
490
|
payments: PaymentInsertType[];
|
|
491
491
|
metadata: object | null;
|
|
492
492
|
}[] | undefined>>;
|
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.B1d_PE1-.js';
|
|
6
|
+
import { A as AccountSelectType, C as ConfigEnvironmentBank, I as IBankConnector, a as ConnectorKey } from '../shared/bank.CgnrZfJy.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
@@ -225,9 +225,9 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
225
225
|
limit: z.ZodNumber;
|
|
226
226
|
sort: z.ZodObject<{
|
|
227
227
|
column: z.ZodEnum<{
|
|
228
|
-
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
229
228
|
createdAt: "createdAt";
|
|
230
229
|
updatedAt: "updatedAt";
|
|
230
|
+
batchPaymentInitiatedAt: "batchPaymentInitiatedAt";
|
|
231
231
|
}>;
|
|
232
232
|
direction: z.ZodEnum<{
|
|
233
233
|
asc: "asc";
|
|
@@ -236,21 +236,21 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
236
236
|
}, z.core.$strip>;
|
|
237
237
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
238
238
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
239
|
+
PREPARED: "PREPARED";
|
|
240
|
+
FAILED: "FAILED";
|
|
241
|
+
COMPLETED: "COMPLETED";
|
|
239
242
|
OPEN: "OPEN";
|
|
240
243
|
PROCESSING: "PROCESSING";
|
|
241
244
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
242
245
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
246
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
243
247
|
PREPARED: "PREPARED";
|
|
244
|
-
COMPLETED: "COMPLETED";
|
|
245
248
|
FAILED: "FAILED";
|
|
246
|
-
|
|
249
|
+
COMPLETED: "COMPLETED";
|
|
247
250
|
OPEN: "OPEN";
|
|
248
251
|
PROCESSING: "PROCESSING";
|
|
249
252
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
250
253
|
WAITING_FOR_PROCESSING: "WAITING_FOR_PROCESSING";
|
|
251
|
-
PREPARED: "PREPARED";
|
|
252
|
-
COMPLETED: "COMPLETED";
|
|
253
|
-
FAILED: "FAILED";
|
|
254
254
|
}>>]>>;
|
|
255
255
|
}, z.core.$strip>;
|
|
256
256
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -410,17 +410,17 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
410
410
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
411
411
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
412
412
|
PREPARED: "PREPARED";
|
|
413
|
-
COMPLETED: "COMPLETED";
|
|
414
|
-
FAILED: "FAILED";
|
|
415
413
|
INITIALIZED: "INITIALIZED";
|
|
414
|
+
FAILED: "FAILED";
|
|
416
415
|
PENDING: "PENDING";
|
|
416
|
+
COMPLETED: "COMPLETED";
|
|
417
417
|
CREATED: "CREATED";
|
|
418
418
|
}>, z.ZodArray<z.ZodEnum<{
|
|
419
419
|
PREPARED: "PREPARED";
|
|
420
|
-
COMPLETED: "COMPLETED";
|
|
421
|
-
FAILED: "FAILED";
|
|
422
420
|
INITIALIZED: "INITIALIZED";
|
|
421
|
+
FAILED: "FAILED";
|
|
423
422
|
PENDING: "PENDING";
|
|
423
|
+
COMPLETED: "COMPLETED";
|
|
424
424
|
CREATED: "CREATED";
|
|
425
425
|
}>>]>>;
|
|
426
426
|
}, z.core.$strip>;
|
|
@@ -479,14 +479,14 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
479
479
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
480
480
|
paymentsToBatch: SendPaymentInput[];
|
|
481
481
|
}): Promise<IRPCResponse<{
|
|
482
|
-
|
|
483
|
-
authorizationUrls: string | string[] | null;
|
|
484
|
-
status: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
482
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING" | null;
|
|
485
483
|
id: string;
|
|
486
484
|
createdAt: Date | null;
|
|
487
485
|
updatedAt: Date | null;
|
|
488
486
|
deletedAt: Date | null;
|
|
489
487
|
accountId: string | null;
|
|
488
|
+
batchPaymentInitiatedAt: Date | null;
|
|
489
|
+
authorizationUrls: string | string[] | null;
|
|
490
490
|
payments: PaymentInsertType[];
|
|
491
491
|
metadata: object | null;
|
|
492
492
|
}[] | undefined>>;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -696,7 +696,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
696
696
|
}))
|
|
697
697
|
);
|
|
698
698
|
}
|
|
699
|
-
for (const acc of this.
|
|
699
|
+
for (const acc of await this.getAccounts()) {
|
|
700
700
|
const newPayments = supportedPayments.filter(
|
|
701
701
|
(payment) => payment.debtorIban === acc.iban && payment.currency === acc.currency
|
|
702
702
|
).map((payment) => ({
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
COMPLETED: "COMPLETED";
|
|
86
|
-
FAILED: "FAILED";
|
|
87
85
|
INITIALIZED: "INITIALIZED";
|
|
86
|
+
FAILED: "FAILED";
|
|
88
87
|
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING";
|
|
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING";
|
|
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "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
|
-
COMPLETED: "COMPLETED";
|
|
86
|
-
FAILED: "FAILED";
|
|
87
85
|
INITIALIZED: "INITIALIZED";
|
|
86
|
+
FAILED: "FAILED";
|
|
88
87
|
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING";
|
|
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING";
|
|
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "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
|
-
COMPLETED: "COMPLETED";
|
|
86
|
-
FAILED: "FAILED";
|
|
87
85
|
INITIALIZED: "INITIALIZED";
|
|
86
|
+
FAILED: "FAILED";
|
|
88
87
|
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING";
|
|
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "WAITING_FOR_PROCESSING";
|
|
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
472
472
|
}>;
|
|
473
473
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
474
474
|
name: "status_reason";
|
|
@@ -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.B1d_PE1-.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.B1d_PE1-.cjs';
|
|
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.B1d_PE1-.mjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
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.DkPy9YWm.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.DkPy9YWm.cjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.B1d_PE1-.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.B1d_PE1-.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.DyYQf_QJ.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.DyYQf_QJ.mjs';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.B1d_PE1-.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.B1d_PE1-.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.CgnrZfJy.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.CgnrZfJy.js';
|
|
3
|
+
import { a as PaymentInsertType, t as tables, P as PaymentSelectType } from './shared/bank.B1d_PE1-.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.B1d_PE1-.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';
|