@develit-services/bank 0.3.3 → 0.3.4
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 +25 -1
- package/dist/export/worker.d.cts +13 -7
- package/dist/export/worker.d.mts +13 -7
- package/dist/export/worker.d.ts +13 -7
- package/dist/export/worker.mjs +25 -1
- package/dist/shared/{bank.xrXNjWCo.d.cts → bank.CjJZ44pz.d.cts} +4 -4
- package/dist/shared/{bank.xrXNjWCo.d.mts → bank.CjJZ44pz.d.mts} +4 -4
- package/dist/shared/{bank.xrXNjWCo.d.ts → bank.CjJZ44pz.d.ts} +4 -4
- package/dist/types.d.cts +2 -2
- package/dist/types.d.mts +2 -2
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.CjJZ44pz.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'drizzle-zod';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.CjJZ44pz.mjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'drizzle-zod';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { a9 as account, aa as accountCredentials, a5 as batch, a8 as ott, a6 as payment, a7 as paymentRelations } from '../shared/bank.CjJZ44pz.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
import 'drizzle-zod';
|
|
4
4
|
import 'drizzle-orm/sqlite-core';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -1079,7 +1079,31 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
1079
1079
|
{ data: input, schema: getBatchesInputSchema },
|
|
1080
1080
|
{ successMessage: "Batches retrieved successfully" },
|
|
1081
1081
|
async (params) => {
|
|
1082
|
-
|
|
1082
|
+
const { batches, totalCount } = await getBatchesQuery(this.db, params);
|
|
1083
|
+
const batchesWithWorkflows = await Promise.all(
|
|
1084
|
+
batches.map(async (batch) => {
|
|
1085
|
+
let status;
|
|
1086
|
+
try {
|
|
1087
|
+
const instance = await this.env.PROCESS_BATCH_WORKFLOW.get(
|
|
1088
|
+
batch.id
|
|
1089
|
+
);
|
|
1090
|
+
status = await instance.status();
|
|
1091
|
+
} catch (_) {
|
|
1092
|
+
status = null;
|
|
1093
|
+
}
|
|
1094
|
+
return {
|
|
1095
|
+
...batch,
|
|
1096
|
+
workflow: status ? {
|
|
1097
|
+
instanceId: batch.id,
|
|
1098
|
+
details: status
|
|
1099
|
+
} : null
|
|
1100
|
+
};
|
|
1101
|
+
})
|
|
1102
|
+
);
|
|
1103
|
+
return {
|
|
1104
|
+
batches: batchesWithWorkflows,
|
|
1105
|
+
totalCount
|
|
1106
|
+
};
|
|
1083
1107
|
}
|
|
1084
1108
|
);
|
|
1085
1109
|
}
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.CjJZ44pz.cjs';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
@@ -1529,26 +1529,32 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1529
1529
|
}, z.core.$strip>;
|
|
1530
1530
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1531
1531
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1532
|
+
FAILED: "FAILED";
|
|
1532
1533
|
OPEN: "OPEN";
|
|
1533
1534
|
FULL: "FULL";
|
|
1534
1535
|
PROCESSING: "PROCESSING";
|
|
1535
1536
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1536
1537
|
SIGNED: "SIGNED";
|
|
1537
1538
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1538
|
-
FAILED: "FAILED";
|
|
1539
1539
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1540
|
+
FAILED: "FAILED";
|
|
1540
1541
|
OPEN: "OPEN";
|
|
1541
1542
|
FULL: "FULL";
|
|
1542
1543
|
PROCESSING: "PROCESSING";
|
|
1543
1544
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1544
1545
|
SIGNED: "SIGNED";
|
|
1545
1546
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1546
|
-
FAILED: "FAILED";
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
1550
|
+
type BatchWithWorkflow = BatchSelectType & {
|
|
1551
|
+
workflow: {
|
|
1552
|
+
instanceId: string;
|
|
1553
|
+
details: WorkflowInstanceStatus;
|
|
1554
|
+
} | null;
|
|
1555
|
+
};
|
|
1550
1556
|
type GetBatchesOutput = {
|
|
1551
|
-
batches:
|
|
1557
|
+
batches: BatchWithWorkflow[];
|
|
1552
1558
|
totalCount: number;
|
|
1553
1559
|
};
|
|
1554
1560
|
|
|
@@ -1786,16 +1792,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1786
1792
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1787
1793
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1788
1794
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1789
|
-
FAILED: "FAILED";
|
|
1790
1795
|
PREPARED: "PREPARED";
|
|
1791
1796
|
INITIALIZED: "INITIALIZED";
|
|
1797
|
+
FAILED: "FAILED";
|
|
1792
1798
|
PENDING: "PENDING";
|
|
1793
1799
|
COMPLETED: "COMPLETED";
|
|
1794
1800
|
CREATED: "CREATED";
|
|
1795
1801
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1796
|
-
FAILED: "FAILED";
|
|
1797
1802
|
PREPARED: "PREPARED";
|
|
1798
1803
|
INITIALIZED: "INITIALIZED";
|
|
1804
|
+
FAILED: "FAILED";
|
|
1799
1805
|
PENDING: "PENDING";
|
|
1800
1806
|
COMPLETED: "COMPLETED";
|
|
1801
1807
|
CREATED: "CREATED";
|
|
@@ -2462,7 +2468,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2462
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2463
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2464
2470
|
}): Promise<IRPCResponse<{
|
|
2465
|
-
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" |
|
|
2471
|
+
status: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | null;
|
|
2466
2472
|
id: string;
|
|
2467
2473
|
createdAt: Date | null;
|
|
2468
2474
|
updatedAt: Date | null;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.CjJZ44pz.mjs';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
@@ -1529,26 +1529,32 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1529
1529
|
}, z.core.$strip>;
|
|
1530
1530
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1531
1531
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1532
|
+
FAILED: "FAILED";
|
|
1532
1533
|
OPEN: "OPEN";
|
|
1533
1534
|
FULL: "FULL";
|
|
1534
1535
|
PROCESSING: "PROCESSING";
|
|
1535
1536
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1536
1537
|
SIGNED: "SIGNED";
|
|
1537
1538
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1538
|
-
FAILED: "FAILED";
|
|
1539
1539
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1540
|
+
FAILED: "FAILED";
|
|
1540
1541
|
OPEN: "OPEN";
|
|
1541
1542
|
FULL: "FULL";
|
|
1542
1543
|
PROCESSING: "PROCESSING";
|
|
1543
1544
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1544
1545
|
SIGNED: "SIGNED";
|
|
1545
1546
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1546
|
-
FAILED: "FAILED";
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
1550
|
+
type BatchWithWorkflow = BatchSelectType & {
|
|
1551
|
+
workflow: {
|
|
1552
|
+
instanceId: string;
|
|
1553
|
+
details: WorkflowInstanceStatus;
|
|
1554
|
+
} | null;
|
|
1555
|
+
};
|
|
1550
1556
|
type GetBatchesOutput = {
|
|
1551
|
-
batches:
|
|
1557
|
+
batches: BatchWithWorkflow[];
|
|
1552
1558
|
totalCount: number;
|
|
1553
1559
|
};
|
|
1554
1560
|
|
|
@@ -1786,16 +1792,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1786
1792
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1787
1793
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1788
1794
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1789
|
-
FAILED: "FAILED";
|
|
1790
1795
|
PREPARED: "PREPARED";
|
|
1791
1796
|
INITIALIZED: "INITIALIZED";
|
|
1797
|
+
FAILED: "FAILED";
|
|
1792
1798
|
PENDING: "PENDING";
|
|
1793
1799
|
COMPLETED: "COMPLETED";
|
|
1794
1800
|
CREATED: "CREATED";
|
|
1795
1801
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1796
|
-
FAILED: "FAILED";
|
|
1797
1802
|
PREPARED: "PREPARED";
|
|
1798
1803
|
INITIALIZED: "INITIALIZED";
|
|
1804
|
+
FAILED: "FAILED";
|
|
1799
1805
|
PENDING: "PENDING";
|
|
1800
1806
|
COMPLETED: "COMPLETED";
|
|
1801
1807
|
CREATED: "CREATED";
|
|
@@ -2462,7 +2468,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2462
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2463
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2464
2470
|
}): Promise<IRPCResponse<{
|
|
2465
|
-
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" |
|
|
2471
|
+
status: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | null;
|
|
2466
2472
|
id: string;
|
|
2467
2473
|
createdAt: Date | null;
|
|
2468
2474
|
updatedAt: Date | null;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, I as IBankConnector, a as ConnectorKey, b as PaymentInsertType, c as BatchMetadata } from '../shared/bank.CjJZ44pz.js';
|
|
2
2
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
3
3
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
@@ -1529,26 +1529,32 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
1529
1529
|
}, z.core.$strip>;
|
|
1530
1530
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1531
1531
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1532
|
+
FAILED: "FAILED";
|
|
1532
1533
|
OPEN: "OPEN";
|
|
1533
1534
|
FULL: "FULL";
|
|
1534
1535
|
PROCESSING: "PROCESSING";
|
|
1535
1536
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1536
1537
|
SIGNED: "SIGNED";
|
|
1537
1538
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1538
|
-
FAILED: "FAILED";
|
|
1539
1539
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1540
|
+
FAILED: "FAILED";
|
|
1540
1541
|
OPEN: "OPEN";
|
|
1541
1542
|
FULL: "FULL";
|
|
1542
1543
|
PROCESSING: "PROCESSING";
|
|
1543
1544
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
1544
1545
|
SIGNED: "SIGNED";
|
|
1545
1546
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
1546
|
-
FAILED: "FAILED";
|
|
1547
1547
|
}>>]>>;
|
|
1548
1548
|
}, z.core.$strip>;
|
|
1549
1549
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
1550
|
+
type BatchWithWorkflow = BatchSelectType & {
|
|
1551
|
+
workflow: {
|
|
1552
|
+
instanceId: string;
|
|
1553
|
+
details: WorkflowInstanceStatus;
|
|
1554
|
+
} | null;
|
|
1555
|
+
};
|
|
1550
1556
|
type GetBatchesOutput = {
|
|
1551
|
-
batches:
|
|
1557
|
+
batches: BatchWithWorkflow[];
|
|
1552
1558
|
totalCount: number;
|
|
1553
1559
|
};
|
|
1554
1560
|
|
|
@@ -1786,16 +1792,16 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1786
1792
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1787
1793
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1788
1794
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1789
|
-
FAILED: "FAILED";
|
|
1790
1795
|
PREPARED: "PREPARED";
|
|
1791
1796
|
INITIALIZED: "INITIALIZED";
|
|
1797
|
+
FAILED: "FAILED";
|
|
1792
1798
|
PENDING: "PENDING";
|
|
1793
1799
|
COMPLETED: "COMPLETED";
|
|
1794
1800
|
CREATED: "CREATED";
|
|
1795
1801
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1796
|
-
FAILED: "FAILED";
|
|
1797
1802
|
PREPARED: "PREPARED";
|
|
1798
1803
|
INITIALIZED: "INITIALIZED";
|
|
1804
|
+
FAILED: "FAILED";
|
|
1799
1805
|
PENDING: "PENDING";
|
|
1800
1806
|
COMPLETED: "COMPLETED";
|
|
1801
1807
|
CREATED: "CREATED";
|
|
@@ -2462,7 +2468,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2462
2468
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
2463
2469
|
paymentsToBatch: SendPaymentInput[];
|
|
2464
2470
|
}): Promise<IRPCResponse<{
|
|
2465
|
-
status: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" |
|
|
2471
|
+
status: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED" | null;
|
|
2466
2472
|
id: string;
|
|
2467
2473
|
createdAt: Date | null;
|
|
2468
2474
|
updatedAt: Date | null;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1077,7 +1077,31 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
1077
1077
|
{ data: input, schema: getBatchesInputSchema },
|
|
1078
1078
|
{ successMessage: "Batches retrieved successfully" },
|
|
1079
1079
|
async (params) => {
|
|
1080
|
-
|
|
1080
|
+
const { batches, totalCount } = await getBatchesQuery(this.db, params);
|
|
1081
|
+
const batchesWithWorkflows = await Promise.all(
|
|
1082
|
+
batches.map(async (batch) => {
|
|
1083
|
+
let status;
|
|
1084
|
+
try {
|
|
1085
|
+
const instance = await this.env.PROCESS_BATCH_WORKFLOW.get(
|
|
1086
|
+
batch.id
|
|
1087
|
+
);
|
|
1088
|
+
status = await instance.status();
|
|
1089
|
+
} catch (_) {
|
|
1090
|
+
status = null;
|
|
1091
|
+
}
|
|
1092
|
+
return {
|
|
1093
|
+
...batch,
|
|
1094
|
+
workflow: status ? {
|
|
1095
|
+
instanceId: batch.id,
|
|
1096
|
+
details: status
|
|
1097
|
+
} : null
|
|
1098
|
+
};
|
|
1099
|
+
})
|
|
1100
|
+
);
|
|
1101
|
+
return {
|
|
1102
|
+
batches: batchesWithWorkflows,
|
|
1103
|
+
totalCount
|
|
1104
|
+
};
|
|
1081
1105
|
}
|
|
1082
1106
|
);
|
|
1083
1107
|
}
|
|
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
71
71
|
tableName: "batch";
|
|
72
72
|
dataType: "string";
|
|
73
73
|
columnType: "SQLiteText";
|
|
74
|
-
data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
74
|
+
data: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
75
75
|
driverParam: string;
|
|
76
76
|
notNull: false;
|
|
77
77
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
84
84
|
generated: undefined;
|
|
85
85
|
}, {}, {
|
|
86
86
|
length: number | undefined;
|
|
87
|
-
$type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
87
|
+
$type: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
88
88
|
}>;
|
|
89
89
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
90
90
|
name: "payments";
|
|
@@ -399,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
399
399
|
tableName: "payment";
|
|
400
400
|
dataType: "string";
|
|
401
401
|
columnType: "SQLiteText";
|
|
402
|
-
data: "
|
|
402
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
403
403
|
driverParam: string;
|
|
404
404
|
notNull: true;
|
|
405
405
|
hasDefault: false;
|
|
@@ -412,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
412
412
|
generated: undefined;
|
|
413
413
|
}, {}, {
|
|
414
414
|
length: number | undefined;
|
|
415
|
-
$type: "
|
|
415
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
416
416
|
}>;
|
|
417
417
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
418
418
|
name: "status_reason";
|
|
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
71
71
|
tableName: "batch";
|
|
72
72
|
dataType: "string";
|
|
73
73
|
columnType: "SQLiteText";
|
|
74
|
-
data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
74
|
+
data: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
75
75
|
driverParam: string;
|
|
76
76
|
notNull: false;
|
|
77
77
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
84
84
|
generated: undefined;
|
|
85
85
|
}, {}, {
|
|
86
86
|
length: number | undefined;
|
|
87
|
-
$type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
87
|
+
$type: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
88
88
|
}>;
|
|
89
89
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
90
90
|
name: "payments";
|
|
@@ -399,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
399
399
|
tableName: "payment";
|
|
400
400
|
dataType: "string";
|
|
401
401
|
columnType: "SQLiteText";
|
|
402
|
-
data: "
|
|
402
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
403
403
|
driverParam: string;
|
|
404
404
|
notNull: true;
|
|
405
405
|
hasDefault: false;
|
|
@@ -412,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
412
412
|
generated: undefined;
|
|
413
413
|
}, {}, {
|
|
414
414
|
length: number | undefined;
|
|
415
|
-
$type: "
|
|
415
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
416
416
|
}>;
|
|
417
417
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
418
418
|
name: "status_reason";
|
|
@@ -71,7 +71,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
71
71
|
tableName: "batch";
|
|
72
72
|
dataType: "string";
|
|
73
73
|
columnType: "SQLiteText";
|
|
74
|
-
data: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
74
|
+
data: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
75
75
|
driverParam: string;
|
|
76
76
|
notNull: false;
|
|
77
77
|
hasDefault: false;
|
|
@@ -84,7 +84,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
84
84
|
generated: undefined;
|
|
85
85
|
}, {}, {
|
|
86
86
|
length: number | undefined;
|
|
87
|
-
$type: "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
87
|
+
$type: "FAILED" | "OPEN" | "FULL" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
88
88
|
}>;
|
|
89
89
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
90
90
|
name: "payments";
|
|
@@ -399,7 +399,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
399
399
|
tableName: "payment";
|
|
400
400
|
dataType: "string";
|
|
401
401
|
columnType: "SQLiteText";
|
|
402
|
-
data: "
|
|
402
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
403
403
|
driverParam: string;
|
|
404
404
|
notNull: true;
|
|
405
405
|
hasDefault: false;
|
|
@@ -412,7 +412,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
412
412
|
generated: undefined;
|
|
413
413
|
}, {}, {
|
|
414
414
|
length: number | undefined;
|
|
415
|
-
$type: "
|
|
415
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
416
416
|
}>;
|
|
417
417
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
418
418
|
name: "status_reason";
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.
|
|
2
|
-
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.CjJZ44pz.cjs';
|
|
2
|
+
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.CjJZ44pz.cjs';
|
|
3
3
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.
|
|
2
|
-
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.CjJZ44pz.mjs';
|
|
2
|
+
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.CjJZ44pz.mjs';
|
|
3
3
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.
|
|
2
|
-
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, d as IncomingPaymentMessage, e as InitiatedPayment, a as ConnectorKey, f as ConnectedAccount, g as AccountCredentialsInsertType, h as AccountInsertType, i as PaymentPreparedInsertType, j as InitiatedBatch, c as BatchMetadata, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as CurrencyCode, o as BankCode, p as CountryCode, q as AuthInput, t as tables, r as Currency, P as PaymentSelectType } from './shared/bank.CjJZ44pz.js';
|
|
2
|
+
export { K as ACCOUNT_STATUSES, a3 as AccountCredentialsPatchType, a4 as AccountCredentialsSelectType, a2 as AccountCredentialsUpdateType, _ as AccountPatchType, M as AccountStatus, Z as AccountUpdateType, w as BATCH_STATUES, w as BATCH_STATUSES, Q as BankAccountWithLastSync, v as BatchInsertType, B as BatchSelectType, z as CHARGE_BEARERS, R as CONNECTOR_KEYS, N as COUNTRY_CODES, S as CREDENTIALS_TYPES, D as ChargeBearer, C as ConfigEnvironmentBank, T as CredentialsType, E as INSTRUCTION_PRIORITIES, F as InstructionPriority, L as LastSyncMetadata, O as OutgoingPaymentMessage, H as PAYMENT_DIRECTIONS, G as PAYMENT_STATUSES, x as PAYMENT_TYPES, J as PaymentDirection, s as PaymentFailedInsertType, u as PaymentInitializedInsertType, b as PaymentInsertType, y as PaymentType, U as TOKEN_TYPES, V as TokenType, $ as accountCredentialsInsertSchema, a1 as accountCredentialsSelectSchema, a0 as accountCredentialsUpdateSchema, W as accountInsertSchema, Y as accountSelectSchema, X as accountUpdateSchema } from './shared/bank.CjJZ44pz.js';
|
|
3
3
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
|