@develit-services/bank 0.7.10 → 0.8.0
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.d.cts +5 -5
- package/dist/export/worker.d.mts +5 -5
- package/dist/export/worker.d.ts +5 -5
- package/dist/export/workflows.cjs +24 -19
- package/dist/export/workflows.mjs +24 -19
- package/dist/shared/{bank.0qpz9IIt.d.cts → bank.BJ7LqYtJ.d.cts} +4 -4
- package/dist/shared/{bank.0qpz9IIt.d.mts → bank.BJ7LqYtJ.d.mts} +4 -4
- package/dist/shared/{bank.0qpz9IIt.d.ts → bank.BJ7LqYtJ.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 { aq as account, ar as accountCredentials, as as batch, at as ott, au as payment, av as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { aq as account, ar as accountCredentials, as as batch, at as ott, au as payment, av as paymentRelations } from '../shared/bank.BJ7LqYtJ.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aq as account, ar as accountCredentials, as as batch, at as ott, au as payment, av as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { aq as account, ar as accountCredentials, as as batch, at as ott, au as payment, av as paymentRelations } from '../shared/bank.BJ7LqYtJ.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aq as account, ar as accountCredentials, as as batch, at as ott, au as payment, av as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { aq as account, ar as accountCredentials, as as batch, at as ott, au as payment, av as paymentRelations } from '../shared/bank.BJ7LqYtJ.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
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, a as ConnectorKey, I as IBankConnector } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.BJ7LqYtJ.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 { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.COC0tqmL.cjs';
|
|
@@ -802,19 +802,19 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
802
802
|
}, z.core.$strip>;
|
|
803
803
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
804
804
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
805
|
+
FAILED: "FAILED";
|
|
805
806
|
OPEN: "OPEN";
|
|
806
807
|
PROCESSING: "PROCESSING";
|
|
807
808
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
808
809
|
SIGNED: "SIGNED";
|
|
809
810
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
810
|
-
FAILED: "FAILED";
|
|
811
811
|
}>, z.ZodArray<z.ZodEnum<{
|
|
812
|
+
FAILED: "FAILED";
|
|
812
813
|
OPEN: "OPEN";
|
|
813
814
|
PROCESSING: "PROCESSING";
|
|
814
815
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
815
816
|
SIGNED: "SIGNED";
|
|
816
817
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
817
|
-
FAILED: "FAILED";
|
|
818
818
|
}>>]>>;
|
|
819
819
|
}, z.core.$strip>;
|
|
820
820
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1059,14 +1059,14 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1059
1059
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1060
1060
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1061
1061
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1062
|
-
FAILED: "FAILED";
|
|
1063
1062
|
PREPARED: "PREPARED";
|
|
1063
|
+
FAILED: "FAILED";
|
|
1064
1064
|
PENDING: "PENDING";
|
|
1065
1065
|
COMPLETED: "COMPLETED";
|
|
1066
1066
|
CREATED: "CREATED";
|
|
1067
1067
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1068
|
-
FAILED: "FAILED";
|
|
1069
1068
|
PREPARED: "PREPARED";
|
|
1069
|
+
FAILED: "FAILED";
|
|
1070
1070
|
PENDING: "PENDING";
|
|
1071
1071
|
COMPLETED: "COMPLETED";
|
|
1072
1072
|
CREATED: "CREATED";
|
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, a as ConnectorKey, I as IBankConnector } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.BJ7LqYtJ.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 { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.COC0tqmL.mjs';
|
|
@@ -802,19 +802,19 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
802
802
|
}, z.core.$strip>;
|
|
803
803
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
804
804
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
805
|
+
FAILED: "FAILED";
|
|
805
806
|
OPEN: "OPEN";
|
|
806
807
|
PROCESSING: "PROCESSING";
|
|
807
808
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
808
809
|
SIGNED: "SIGNED";
|
|
809
810
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
810
|
-
FAILED: "FAILED";
|
|
811
811
|
}>, z.ZodArray<z.ZodEnum<{
|
|
812
|
+
FAILED: "FAILED";
|
|
812
813
|
OPEN: "OPEN";
|
|
813
814
|
PROCESSING: "PROCESSING";
|
|
814
815
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
815
816
|
SIGNED: "SIGNED";
|
|
816
817
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
817
|
-
FAILED: "FAILED";
|
|
818
818
|
}>>]>>;
|
|
819
819
|
}, z.core.$strip>;
|
|
820
820
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1059,14 +1059,14 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1059
1059
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1060
1060
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1061
1061
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1062
|
-
FAILED: "FAILED";
|
|
1063
1062
|
PREPARED: "PREPARED";
|
|
1063
|
+
FAILED: "FAILED";
|
|
1064
1064
|
PENDING: "PENDING";
|
|
1065
1065
|
COMPLETED: "COMPLETED";
|
|
1066
1066
|
CREATED: "CREATED";
|
|
1067
1067
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1068
|
-
FAILED: "FAILED";
|
|
1069
1068
|
PREPARED: "PREPARED";
|
|
1069
|
+
FAILED: "FAILED";
|
|
1070
1070
|
PENDING: "PENDING";
|
|
1071
1071
|
COMPLETED: "COMPLETED";
|
|
1072
1072
|
CREATED: "CREATED";
|
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, a as ConnectorKey, I as IBankConnector } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.BJ7LqYtJ.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 { S as SendPaymentInput, a as SendPaymentOutput } from '../shared/bank.COC0tqmL.js';
|
|
@@ -802,19 +802,19 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
802
802
|
}, z.core.$strip>;
|
|
803
803
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
804
804
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
805
|
+
FAILED: "FAILED";
|
|
805
806
|
OPEN: "OPEN";
|
|
806
807
|
PROCESSING: "PROCESSING";
|
|
807
808
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
808
809
|
SIGNED: "SIGNED";
|
|
809
810
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
810
|
-
FAILED: "FAILED";
|
|
811
811
|
}>, z.ZodArray<z.ZodEnum<{
|
|
812
|
+
FAILED: "FAILED";
|
|
812
813
|
OPEN: "OPEN";
|
|
813
814
|
PROCESSING: "PROCESSING";
|
|
814
815
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
815
816
|
SIGNED: "SIGNED";
|
|
816
817
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
817
|
-
FAILED: "FAILED";
|
|
818
818
|
}>>]>>;
|
|
819
819
|
}, z.core.$strip>;
|
|
820
820
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
@@ -1059,14 +1059,14 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1059
1059
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1060
1060
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1061
1061
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1062
|
-
FAILED: "FAILED";
|
|
1063
1062
|
PREPARED: "PREPARED";
|
|
1063
|
+
FAILED: "FAILED";
|
|
1064
1064
|
PENDING: "PENDING";
|
|
1065
1065
|
COMPLETED: "COMPLETED";
|
|
1066
1066
|
CREATED: "CREATED";
|
|
1067
1067
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1068
|
-
FAILED: "FAILED";
|
|
1069
1068
|
PREPARED: "PREPARED";
|
|
1069
|
+
FAILED: "FAILED";
|
|
1070
1070
|
PENDING: "PENDING";
|
|
1071
1071
|
COMPLETED: "COMPLETED";
|
|
1072
1072
|
CREATED: "CREATED";
|
|
@@ -273,25 +273,30 @@ class BankSyncAccountPayments extends cloudflare_workers.WorkflowEntrypoint {
|
|
|
273
273
|
timeout: "30 seconds"
|
|
274
274
|
},
|
|
275
275
|
async () => {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
276
|
+
try {
|
|
277
|
+
const resolveCredentials = await drizzle.createCredentialsResolver(
|
|
278
|
+
db,
|
|
279
|
+
this.env
|
|
280
|
+
);
|
|
281
|
+
const connector = await mock_connector.initiateConnector({
|
|
282
|
+
env: this.env,
|
|
283
|
+
bank: account.connectorKey,
|
|
284
|
+
resolveCredentials,
|
|
285
|
+
connectedAccounts: [
|
|
286
|
+
{
|
|
287
|
+
...account,
|
|
288
|
+
iban: account.iban
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
});
|
|
292
|
+
return await connector.getAllAccountPayments({
|
|
293
|
+
account,
|
|
294
|
+
filter: { dateFrom: account.lastSyncAt }
|
|
295
|
+
});
|
|
296
|
+
} catch (err) {
|
|
297
|
+
const message = err instanceof Error ? err.message : typeof err === "object" && err !== null && "message" in err ? String(err.message) : JSON.stringify(err);
|
|
298
|
+
throw new Error(message);
|
|
299
|
+
}
|
|
295
300
|
}
|
|
296
301
|
);
|
|
297
302
|
const paymentsToProcess = payments.filter(
|
|
@@ -271,25 +271,30 @@ class BankSyncAccountPayments extends WorkflowEntrypoint {
|
|
|
271
271
|
timeout: "30 seconds"
|
|
272
272
|
},
|
|
273
273
|
async () => {
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
274
|
+
try {
|
|
275
|
+
const resolveCredentials = await createCredentialsResolver(
|
|
276
|
+
db,
|
|
277
|
+
this.env
|
|
278
|
+
);
|
|
279
|
+
const connector = await initiateConnector({
|
|
280
|
+
env: this.env,
|
|
281
|
+
bank: account.connectorKey,
|
|
282
|
+
resolveCredentials,
|
|
283
|
+
connectedAccounts: [
|
|
284
|
+
{
|
|
285
|
+
...account,
|
|
286
|
+
iban: account.iban
|
|
287
|
+
}
|
|
288
|
+
]
|
|
289
|
+
});
|
|
290
|
+
return await connector.getAllAccountPayments({
|
|
291
|
+
account,
|
|
292
|
+
filter: { dateFrom: account.lastSyncAt }
|
|
293
|
+
});
|
|
294
|
+
} catch (err) {
|
|
295
|
+
const message = err instanceof Error ? err.message : typeof err === "object" && err !== null && "message" in err ? String(err.message) : JSON.stringify(err);
|
|
296
|
+
throw new Error(message);
|
|
297
|
+
}
|
|
293
298
|
}
|
|
294
299
|
);
|
|
295
300
|
const paymentsToProcess = payments.filter(
|
|
@@ -2629,7 +2629,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2629
2629
|
tableName: "batch";
|
|
2630
2630
|
dataType: "string";
|
|
2631
2631
|
columnType: "SQLiteText";
|
|
2632
|
-
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2632
|
+
data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2633
2633
|
driverParam: string;
|
|
2634
2634
|
notNull: false;
|
|
2635
2635
|
hasDefault: false;
|
|
@@ -2642,7 +2642,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2642
2642
|
generated: undefined;
|
|
2643
2643
|
}, {}, {
|
|
2644
2644
|
length: number | undefined;
|
|
2645
|
-
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2645
|
+
$type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2646
2646
|
}>;
|
|
2647
2647
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2648
2648
|
name: "status_reason";
|
|
@@ -3072,7 +3072,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3072
3072
|
tableName: "payment";
|
|
3073
3073
|
dataType: "string";
|
|
3074
3074
|
columnType: "SQLiteText";
|
|
3075
|
-
data: "
|
|
3075
|
+
data: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3076
3076
|
driverParam: string;
|
|
3077
3077
|
notNull: true;
|
|
3078
3078
|
hasDefault: false;
|
|
@@ -3085,7 +3085,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3085
3085
|
generated: undefined;
|
|
3086
3086
|
}, {}, {
|
|
3087
3087
|
length: number | undefined;
|
|
3088
|
-
$type: "
|
|
3088
|
+
$type: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3089
3089
|
}>;
|
|
3090
3090
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3091
3091
|
name: "status_reason";
|
|
@@ -2629,7 +2629,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2629
2629
|
tableName: "batch";
|
|
2630
2630
|
dataType: "string";
|
|
2631
2631
|
columnType: "SQLiteText";
|
|
2632
|
-
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2632
|
+
data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2633
2633
|
driverParam: string;
|
|
2634
2634
|
notNull: false;
|
|
2635
2635
|
hasDefault: false;
|
|
@@ -2642,7 +2642,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2642
2642
|
generated: undefined;
|
|
2643
2643
|
}, {}, {
|
|
2644
2644
|
length: number | undefined;
|
|
2645
|
-
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2645
|
+
$type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2646
2646
|
}>;
|
|
2647
2647
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2648
2648
|
name: "status_reason";
|
|
@@ -3072,7 +3072,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3072
3072
|
tableName: "payment";
|
|
3073
3073
|
dataType: "string";
|
|
3074
3074
|
columnType: "SQLiteText";
|
|
3075
|
-
data: "
|
|
3075
|
+
data: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3076
3076
|
driverParam: string;
|
|
3077
3077
|
notNull: true;
|
|
3078
3078
|
hasDefault: false;
|
|
@@ -3085,7 +3085,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3085
3085
|
generated: undefined;
|
|
3086
3086
|
}, {}, {
|
|
3087
3087
|
length: number | undefined;
|
|
3088
|
-
$type: "
|
|
3088
|
+
$type: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3089
3089
|
}>;
|
|
3090
3090
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3091
3091
|
name: "status_reason";
|
|
@@ -2629,7 +2629,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2629
2629
|
tableName: "batch";
|
|
2630
2630
|
dataType: "string";
|
|
2631
2631
|
columnType: "SQLiteText";
|
|
2632
|
-
data: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2632
|
+
data: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2633
2633
|
driverParam: string;
|
|
2634
2634
|
notNull: false;
|
|
2635
2635
|
hasDefault: false;
|
|
@@ -2642,7 +2642,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2642
2642
|
generated: undefined;
|
|
2643
2643
|
}, {}, {
|
|
2644
2644
|
length: number | undefined;
|
|
2645
|
-
$type: "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED"
|
|
2645
|
+
$type: "FAILED" | "OPEN" | "PROCESSING" | "READY_TO_SIGN" | "SIGNED" | "SIGNATURE_FAILED";
|
|
2646
2646
|
}>;
|
|
2647
2647
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2648
2648
|
name: "status_reason";
|
|
@@ -3072,7 +3072,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3072
3072
|
tableName: "payment";
|
|
3073
3073
|
dataType: "string";
|
|
3074
3074
|
columnType: "SQLiteText";
|
|
3075
|
-
data: "
|
|
3075
|
+
data: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3076
3076
|
driverParam: string;
|
|
3077
3077
|
notNull: true;
|
|
3078
3078
|
hasDefault: false;
|
|
@@ -3085,7 +3085,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3085
3085
|
generated: undefined;
|
|
3086
3086
|
}, {}, {
|
|
3087
3087
|
length: number | undefined;
|
|
3088
|
-
$type: "
|
|
3088
|
+
$type: "PREPARED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
3089
3089
|
}>;
|
|
3090
3090
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
3091
3091
|
name: "status_reason";
|
package/dist/types.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, e as ConnectedAccount, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as PaymentType, q as BatchMetadata, r as Currency, P as PaymentSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CreatedBatch, V as CredentialsType, W as INSTRUCTION_PRIORITIES, X as InstructionPriority, L as LastSyncMetadata, Y as PAYMENT_DIRECTIONS, Z as PAYMENT_STATUSES, _ as PAYMENT_TYPES, $ as PaymentDirection, a0 as PaymentFailedInsertType, a1 as PaymentInsertType, a2 as PaymentLifecycle, a3 as PaymentPreparedInsertType, a4 as ProcessingBatch, a5 as ReadyToSignBatch, a6 as ResolvedCredentials, a7 as SignedBatch, a8 as TOKEN_TYPES, a9 as TokenType, aa as accountCredentialsInsertSchema, ab as accountCredentialsSelectSchema, ac as accountCredentialsUpdateSchema, ad as accountInsertSchema, ae as accountSelectSchema, af as accountUpdateSchema, ag as hasPaymentAccountAssigned, ah as isBatchCompleted, ai as isBatchFailed, aj as isBatchInitiated, ak as isBatchOpen, al as isBatchProcessing, am as isBatchReadyToSign, an as isBatchSigned, ao as isPaymentCompleted, ap as isPaymentPrepared } from './shared/bank.
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, e as ConnectedAccount, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as PaymentType, q as BatchMetadata, r as Currency, P as PaymentSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment } from './shared/bank.BJ7LqYtJ.cjs';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CreatedBatch, V as CredentialsType, W as INSTRUCTION_PRIORITIES, X as InstructionPriority, L as LastSyncMetadata, Y as PAYMENT_DIRECTIONS, Z as PAYMENT_STATUSES, _ as PAYMENT_TYPES, $ as PaymentDirection, a0 as PaymentFailedInsertType, a1 as PaymentInsertType, a2 as PaymentLifecycle, a3 as PaymentPreparedInsertType, a4 as ProcessingBatch, a5 as ReadyToSignBatch, a6 as ResolvedCredentials, a7 as SignedBatch, a8 as TOKEN_TYPES, a9 as TokenType, aa as accountCredentialsInsertSchema, ab as accountCredentialsSelectSchema, ac as accountCredentialsUpdateSchema, ad as accountInsertSchema, ae as accountSelectSchema, af as accountUpdateSchema, ag as hasPaymentAccountAssigned, ah as isBatchCompleted, ai as isBatchFailed, aj as isBatchInitiated, ak as isBatchOpen, al as isBatchProcessing, am as isBatchReadyToSign, an as isBatchSigned, ao as isPaymentCompleted, ap as isPaymentPrepared } from './shared/bank.BJ7LqYtJ.cjs';
|
|
3
3
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BC06Rbrx.cjs';
|
|
4
4
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
5
5
|
import * as drizzle_zod from 'drizzle-zod';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, e as ConnectedAccount, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as PaymentType, q as BatchMetadata, r as Currency, P as PaymentSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CreatedBatch, V as CredentialsType, W as INSTRUCTION_PRIORITIES, X as InstructionPriority, L as LastSyncMetadata, Y as PAYMENT_DIRECTIONS, Z as PAYMENT_STATUSES, _ as PAYMENT_TYPES, $ as PaymentDirection, a0 as PaymentFailedInsertType, a1 as PaymentInsertType, a2 as PaymentLifecycle, a3 as PaymentPreparedInsertType, a4 as ProcessingBatch, a5 as ReadyToSignBatch, a6 as ResolvedCredentials, a7 as SignedBatch, a8 as TOKEN_TYPES, a9 as TokenType, aa as accountCredentialsInsertSchema, ab as accountCredentialsSelectSchema, ac as accountCredentialsUpdateSchema, ad as accountInsertSchema, ae as accountSelectSchema, af as accountUpdateSchema, ag as hasPaymentAccountAssigned, ah as isBatchCompleted, ai as isBatchFailed, aj as isBatchInitiated, ak as isBatchOpen, al as isBatchProcessing, am as isBatchReadyToSign, an as isBatchSigned, ao as isPaymentCompleted, ap as isPaymentPrepared } from './shared/bank.
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, e as ConnectedAccount, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as PaymentType, q as BatchMetadata, r as Currency, P as PaymentSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment } from './shared/bank.BJ7LqYtJ.mjs';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CreatedBatch, V as CredentialsType, W as INSTRUCTION_PRIORITIES, X as InstructionPriority, L as LastSyncMetadata, Y as PAYMENT_DIRECTIONS, Z as PAYMENT_STATUSES, _ as PAYMENT_TYPES, $ as PaymentDirection, a0 as PaymentFailedInsertType, a1 as PaymentInsertType, a2 as PaymentLifecycle, a3 as PaymentPreparedInsertType, a4 as ProcessingBatch, a5 as ReadyToSignBatch, a6 as ResolvedCredentials, a7 as SignedBatch, a8 as TOKEN_TYPES, a9 as TokenType, aa as accountCredentialsInsertSchema, ab as accountCredentialsSelectSchema, ac as accountCredentialsUpdateSchema, ad as accountInsertSchema, ae as accountSelectSchema, af as accountUpdateSchema, ag as hasPaymentAccountAssigned, ah as isBatchCompleted, ai as isBatchFailed, aj as isBatchInitiated, ak as isBatchOpen, al as isBatchProcessing, am as isBatchReadyToSign, an as isBatchSigned, ao as isPaymentCompleted, ap as isPaymentPrepared } from './shared/bank.BJ7LqYtJ.mjs';
|
|
3
3
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BC06Rbrx.mjs';
|
|
4
4
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
5
5
|
import * as drizzle_zod from 'drizzle-zod';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, e as ConnectedAccount, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as PaymentType, q as BatchMetadata, r as Currency, P as PaymentSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment } from './shared/bank.
|
|
2
|
-
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CreatedBatch, V as CredentialsType, W as INSTRUCTION_PRIORITIES, X as InstructionPriority, L as LastSyncMetadata, Y as PAYMENT_DIRECTIONS, Z as PAYMENT_STATUSES, _ as PAYMENT_TYPES, $ as PaymentDirection, a0 as PaymentFailedInsertType, a1 as PaymentInsertType, a2 as PaymentLifecycle, a3 as PaymentPreparedInsertType, a4 as ProcessingBatch, a5 as ReadyToSignBatch, a6 as ResolvedCredentials, a7 as SignedBatch, a8 as TOKEN_TYPES, a9 as TokenType, aa as accountCredentialsInsertSchema, ab as accountCredentialsSelectSchema, ac as accountCredentialsUpdateSchema, ad as accountInsertSchema, ae as accountSelectSchema, af as accountUpdateSchema, ag as hasPaymentAccountAssigned, ah as isBatchCompleted, ai as isBatchFailed, aj as isBatchInitiated, ak as isBatchOpen, al as isBatchProcessing, am as isBatchReadyToSign, an as isBatchSigned, ao as isPaymentCompleted, ap as isPaymentPrepared } from './shared/bank.
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, e as ConnectedAccount, f as CredentialsResolver, g as AccountCredentialsInsertType, h as AccountInsertType, i as BatchedPayment, j as InitiatedBatch, k as IncomingPayment, l as InitiatedPayment, A as AccountSelectType, m as ParsedBankPayment, n as PaymentStatus, o as BatchStatus, p as PaymentType, q as BatchMetadata, r as Currency, P as PaymentSelectType, s as AccountAssignedPayment, u as PreparedPayment, v as CompletedPayment } from './shared/bank.BJ7LqYtJ.js';
|
|
2
|
+
export { w as ACCOUNT_STATUSES, x as AccountCredentialsPatchType, y as AccountCredentialsSelectType, z as AccountCredentialsUpdateType, D as AccountPatchType, E as AccountStatus, F as AccountUpdateType, G as BATCH_STATUES, G as BATCH_STATUSES, H as BankAccountWithLastSync, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CreatedBatch, V as CredentialsType, W as INSTRUCTION_PRIORITIES, X as InstructionPriority, L as LastSyncMetadata, Y as PAYMENT_DIRECTIONS, Z as PAYMENT_STATUSES, _ as PAYMENT_TYPES, $ as PaymentDirection, a0 as PaymentFailedInsertType, a1 as PaymentInsertType, a2 as PaymentLifecycle, a3 as PaymentPreparedInsertType, a4 as ProcessingBatch, a5 as ReadyToSignBatch, a6 as ResolvedCredentials, a7 as SignedBatch, a8 as TOKEN_TYPES, a9 as TokenType, aa as accountCredentialsInsertSchema, ab as accountCredentialsSelectSchema, ac as accountCredentialsUpdateSchema, ad as accountInsertSchema, ae as accountSelectSchema, af as accountUpdateSchema, ag as hasPaymentAccountAssigned, ah as isBatchCompleted, ai as isBatchFailed, aj as isBatchInitiated, ak as isBatchOpen, al as isBatchProcessing, am as isBatchReadyToSign, an as isBatchSigned, ao as isPaymentCompleted, ap as isPaymentPrepared } from './shared/bank.BJ7LqYtJ.js';
|
|
3
3
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BC06Rbrx.js';
|
|
4
4
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
5
5
|
import * as drizzle_zod from 'drizzle-zod';
|