@develit-services/bank 4.2.0 → 4.2.2
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 +121 -19
- package/dist/export/worker.d.cts +14 -14
- package/dist/export/worker.d.mts +14 -14
- package/dist/export/worker.d.ts +14 -14
- package/dist/export/worker.mjs +121 -19
- package/dist/export/workflows.cjs +2 -2
- package/dist/export/workflows.mjs +2 -2
- package/dist/export/wrangler.d.cts +2 -1
- package/dist/export/wrangler.d.mts +2 -1
- package/dist/export/wrangler.d.ts +2 -1
- package/dist/shared/{bank.BOI0GA-f.d.cts → bank.BCqBwSKC.d.cts} +23 -6
- package/dist/shared/{bank.BOI0GA-f.d.mts → bank.BCqBwSKC.d.mts} +23 -6
- package/dist/shared/{bank.BOI0GA-f.d.ts → bank.BCqBwSKC.d.ts} +23 -6
- package/dist/shared/{bank.qcrBpYcu.mjs → bank.BELDXSDV.mjs} +1 -1
- package/dist/shared/{bank.CL02VO9K.mjs → bank.BOMobxtA.mjs} +21 -14
- package/dist/shared/{bank.DDmes7Gx.d.ts → bank.BmX_IG66.d.ts} +1 -1
- package/dist/shared/{bank.DUd_XvqB.d.cts → bank.BnCJmT6k.d.mts} +1 -1
- package/dist/shared/{bank.Cfu7ZqyP.cjs → bank.CioJeFzf.cjs} +1 -1
- package/dist/shared/{bank.C2QV_SMx.cjs → bank.DiJmJkDt.cjs} +20 -12
- package/dist/shared/{bank.Dq24vYU7.d.cts → bank.DyZBd2qL.d.cts} +1 -0
- package/dist/shared/{bank.Dq24vYU7.d.mts → bank.DyZBd2qL.d.mts} +1 -0
- package/dist/shared/{bank.Dq24vYU7.d.ts → bank.DyZBd2qL.d.ts} +1 -0
- package/dist/shared/{bank.CT-uUhZB.d.mts → bank.mHFTrKBv.d.cts} +1 -1
- package/dist/types.cjs +2 -1
- package/dist/types.d.cts +5 -5
- package/dist/types.d.mts +5 -5
- package/dist/types.d.ts +5 -5
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BCqBwSKC.cjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BCqBwSKC.mjs';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { aB as account, aC as accountCredentials, aD as batch, aE as ott, aF as payment, aG as paymentRequest } from '../shared/bank.BCqBwSKC.js';
|
|
2
2
|
import 'drizzle-orm';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const ott_zod = require('../shared/bank.
|
|
4
|
+
const ott_zod = require('../shared/bank.DiJmJkDt.cjs');
|
|
5
5
|
const drizzleOrm = require('drizzle-orm');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
@@ -11,11 +11,10 @@ const database_schema = require('../shared/bank.9Yw4KHyl.cjs');
|
|
|
11
11
|
const generalCodes = require('@develit-io/general-codes');
|
|
12
12
|
require('date-fns');
|
|
13
13
|
require('node:crypto');
|
|
14
|
-
const credentialsResolver = require('../shared/bank.
|
|
14
|
+
const credentialsResolver = require('../shared/bank.CioJeFzf.cjs');
|
|
15
15
|
require('drizzle-orm/zod');
|
|
16
16
|
require('drizzle-orm/sqlite-core');
|
|
17
17
|
|
|
18
|
-
const SYNC_WORKFLOW_HEARTBEAT_CRON = "0 */8 * * *";
|
|
19
18
|
const DEAD_STATUSES = /* @__PURE__ */ new Set([
|
|
20
19
|
"complete",
|
|
21
20
|
"terminated",
|
|
@@ -816,6 +815,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
816
815
|
const byConnector = Map.groupBy(allPRs, (pr) => pr.connectorKey);
|
|
817
816
|
let processed = 0;
|
|
818
817
|
let statusChanged = 0;
|
|
818
|
+
let skippedNoBankRefId = 0;
|
|
819
819
|
const eventsToEmit = [];
|
|
820
820
|
for (const [connectorKey, requests] of byConnector) {
|
|
821
821
|
let connector;
|
|
@@ -828,10 +828,30 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
828
828
|
continue;
|
|
829
829
|
}
|
|
830
830
|
for (const pr of requests) {
|
|
831
|
+
if (!pr.bankRefId && pr.connectorKey === "DBU") {
|
|
832
|
+
skippedNoBankRefId++;
|
|
833
|
+
console.warn(
|
|
834
|
+
"[_resolvePaymentRequestStatuses] Skipping DBU PR without bankRefId",
|
|
835
|
+
{
|
|
836
|
+
prId: pr.id,
|
|
837
|
+
status: pr.status,
|
|
838
|
+
connectorKey: pr.connectorKey,
|
|
839
|
+
createdAt: pr.createdAt
|
|
840
|
+
}
|
|
841
|
+
);
|
|
842
|
+
continue;
|
|
843
|
+
}
|
|
831
844
|
try {
|
|
832
845
|
const paymentId = pr.bankRefId ?? pr.id;
|
|
833
846
|
const newStatus = await connector.getPaymentStatus({ paymentId });
|
|
834
847
|
if (newStatus !== pr.status) {
|
|
848
|
+
console.log("[_resolvePaymentRequestStatuses] Status changed", {
|
|
849
|
+
prId: pr.id,
|
|
850
|
+
connectorKey: pr.connectorKey,
|
|
851
|
+
bankRefId: pr.bankRefId,
|
|
852
|
+
oldStatus: pr.status,
|
|
853
|
+
newStatus
|
|
854
|
+
});
|
|
835
855
|
await credentialsResolver.updatePaymentRequestStatusCommand(this.db, {
|
|
836
856
|
id: pr.id,
|
|
837
857
|
status: newStatus,
|
|
@@ -844,17 +864,34 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
844
864
|
}
|
|
845
865
|
processed++;
|
|
846
866
|
} catch (err) {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
867
|
+
console.error(
|
|
868
|
+
"[_resolvePaymentRequestStatuses] Failed to get payment status",
|
|
869
|
+
{
|
|
870
|
+
prId: pr.id,
|
|
871
|
+
connectorKey: pr.connectorKey,
|
|
872
|
+
status: pr.status,
|
|
873
|
+
bankRefId: pr.bankRefId,
|
|
874
|
+
error: err instanceof Error ? err.message : String(err)
|
|
875
|
+
}
|
|
876
|
+
);
|
|
850
877
|
}
|
|
851
878
|
}
|
|
852
879
|
}
|
|
853
880
|
if (eventsToEmit.length > 0) {
|
|
854
|
-
|
|
855
|
-
this.
|
|
856
|
-
|
|
857
|
-
|
|
881
|
+
try {
|
|
882
|
+
await this.pushToQueue(
|
|
883
|
+
this.env.QUEUE_BUS_QUEUE,
|
|
884
|
+
eventsToEmit
|
|
885
|
+
);
|
|
886
|
+
} catch (err) {
|
|
887
|
+
console.error(
|
|
888
|
+
"[_resolvePaymentRequestStatuses] Failed to push events to queue",
|
|
889
|
+
{
|
|
890
|
+
eventCount: eventsToEmit.length,
|
|
891
|
+
error: err instanceof Error ? err.message : String(err)
|
|
892
|
+
}
|
|
893
|
+
);
|
|
894
|
+
}
|
|
858
895
|
}
|
|
859
896
|
const affectedBatchIds = [
|
|
860
897
|
...new Set(
|
|
@@ -862,7 +899,32 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
862
899
|
)
|
|
863
900
|
];
|
|
864
901
|
for (const batchId of affectedBatchIds) {
|
|
865
|
-
|
|
902
|
+
try {
|
|
903
|
+
await this._deriveBatchStatus(batchId);
|
|
904
|
+
} catch (err) {
|
|
905
|
+
console.error(
|
|
906
|
+
"[_resolvePaymentRequestStatuses] Failed to derive batch status",
|
|
907
|
+
{
|
|
908
|
+
batchId,
|
|
909
|
+
error: err instanceof Error ? err.message : String(err)
|
|
910
|
+
}
|
|
911
|
+
);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
console.log("[_resolvePaymentRequestStatuses] Summary", {
|
|
915
|
+
total: allPRs.length,
|
|
916
|
+
processed,
|
|
917
|
+
statusChanged,
|
|
918
|
+
skippedNoBankRefId
|
|
919
|
+
});
|
|
920
|
+
if (skippedNoBankRefId > 5) {
|
|
921
|
+
console.warn(
|
|
922
|
+
"[_resolvePaymentRequestStatuses] HIGH NUMBER of PRs without bankRefId",
|
|
923
|
+
{
|
|
924
|
+
count: skippedNoBankRefId,
|
|
925
|
+
note: "These PRs may be orphaned - payment sent but bankRefId not saved"
|
|
926
|
+
}
|
|
927
|
+
);
|
|
866
928
|
}
|
|
867
929
|
return { processed, statusChanged };
|
|
868
930
|
}
|
|
@@ -877,8 +939,9 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
877
939
|
if (!batch || batch.status === "COMPLETED" || batch.status === "FAILED")
|
|
878
940
|
return;
|
|
879
941
|
if (allPRs.length === 0) return;
|
|
942
|
+
const connectorKey = allPRs[0]?.connectorKey;
|
|
880
943
|
const allTerminal = allPRs.every(
|
|
881
|
-
(pr) => ott_zod.isTerminalStatus(pr.status)
|
|
944
|
+
(pr) => ott_zod.isTerminalStatus(pr.status, connectorKey)
|
|
882
945
|
);
|
|
883
946
|
const allAuthorizedOrHigher = allPRs.every((pr) => pr.status !== "OPENED");
|
|
884
947
|
if (allTerminal) {
|
|
@@ -899,16 +962,49 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
899
962
|
null,
|
|
900
963
|
{ successMessage: "Payment request statuses updated" },
|
|
901
964
|
async () => {
|
|
965
|
+
const startTime = Date.now();
|
|
966
|
+
console.log("[updatePaymentRequestStatuses] Starting", {
|
|
967
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
968
|
+
});
|
|
902
969
|
const nonTerminalPRs = await ott_zod.getNonTerminalPaymentRequestsQuery(this.db);
|
|
903
970
|
if (nonTerminalPRs.length === 0) {
|
|
971
|
+
console.log(
|
|
972
|
+
"[updatePaymentRequestStatuses] No non-terminal PRs found",
|
|
973
|
+
{
|
|
974
|
+
duration: `${Date.now() - startTime}ms`
|
|
975
|
+
}
|
|
976
|
+
);
|
|
904
977
|
return { processed: 0, statusChanged: 0 };
|
|
905
978
|
}
|
|
979
|
+
const byConnector = nonTerminalPRs.reduce(
|
|
980
|
+
(acc, pr) => {
|
|
981
|
+
const key = pr.connectorKey || "unknown";
|
|
982
|
+
acc[key] = (acc[key] || 0) + 1;
|
|
983
|
+
return acc;
|
|
984
|
+
},
|
|
985
|
+
{}
|
|
986
|
+
);
|
|
987
|
+
console.log("[updatePaymentRequestStatuses] By connector", byConnector);
|
|
906
988
|
const now = Date.now();
|
|
907
989
|
const pollableIds = [];
|
|
908
990
|
for (const pr of nonTerminalPRs) {
|
|
909
991
|
const status = pr.status;
|
|
992
|
+
if (ott_zod.isTerminalStatus(status, pr.connectorKey)) {
|
|
993
|
+
continue;
|
|
994
|
+
}
|
|
910
995
|
if (status === "OPENED" || status === "AUTHORIZED") {
|
|
911
996
|
if (pr.createdAt != null && now - pr.createdAt.getTime() > this.POLLING_TIMEOUT_MS) {
|
|
997
|
+
console.warn(
|
|
998
|
+
"[updatePaymentRequestStatuses] Closing PR due to timeout",
|
|
999
|
+
{
|
|
1000
|
+
prId: pr.id,
|
|
1001
|
+
status: pr.status,
|
|
1002
|
+
connectorKey: pr.connectorKey,
|
|
1003
|
+
createdAt: pr.createdAt,
|
|
1004
|
+
bankRefId: pr.bankRefId,
|
|
1005
|
+
age: `${Math.floor((now - pr.createdAt.getTime()) / (24 * 60 * 60 * 1e3))} days`
|
|
1006
|
+
}
|
|
1007
|
+
);
|
|
912
1008
|
await credentialsResolver.updatePaymentRequestStatusCommand(this.db, {
|
|
913
1009
|
id: pr.id,
|
|
914
1010
|
status: "CLOSED",
|
|
@@ -918,14 +1014,20 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
918
1014
|
continue;
|
|
919
1015
|
}
|
|
920
1016
|
pollableIds.push(pr.id);
|
|
921
|
-
} else if (status === "COMPLETED" || status === "BOOKED") {
|
|
922
|
-
if (pr.processedAt != null && now - pr.processedAt.getTime() > this.COMPLETED_POLLING_WINDOW_MS) {
|
|
923
|
-
continue;
|
|
924
|
-
}
|
|
925
|
-
pollableIds.push(pr.id);
|
|
926
1017
|
}
|
|
927
1018
|
}
|
|
928
|
-
|
|
1019
|
+
const result = await this._resolvePaymentRequestStatuses(pollableIds);
|
|
1020
|
+
const duration = Date.now() - startTime;
|
|
1021
|
+
console.log("[updatePaymentRequestStatuses] Completed", {
|
|
1022
|
+
duration: `${duration}ms`,
|
|
1023
|
+
metrics: {
|
|
1024
|
+
total: nonTerminalPRs.length,
|
|
1025
|
+
polled: pollableIds.length,
|
|
1026
|
+
processed: result.processed,
|
|
1027
|
+
statusChanged: result.statusChanged
|
|
1028
|
+
}
|
|
1029
|
+
});
|
|
1030
|
+
return result;
|
|
929
1031
|
}
|
|
930
1032
|
);
|
|
931
1033
|
}
|
|
@@ -935,7 +1037,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
935
1037
|
await this.updatePaymentRequestStatuses();
|
|
936
1038
|
return;
|
|
937
1039
|
}
|
|
938
|
-
if (controller.cron ===
|
|
1040
|
+
if (controller.cron === this.env.CRON_SYNC_WORKFLOW_HEARTBEAT) {
|
|
939
1041
|
console.log("Scheduled CRON sync workflow heartbeat");
|
|
940
1042
|
await this.heartbeatSyncWorkflows();
|
|
941
1043
|
}
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
3
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
2
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.BCqBwSKC.cjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.mHFTrKBv.cjs';
|
|
4
4
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
6
6
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2703
2703
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2704
2704
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2705
2705
|
AUTHORIZED: "AUTHORIZED";
|
|
2706
|
+
COMPLETED: "COMPLETED";
|
|
2706
2707
|
PROCESSING: "PROCESSING";
|
|
2707
2708
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2708
|
-
COMPLETED: "COMPLETED";
|
|
2709
2709
|
FAILED: "FAILED";
|
|
2710
2710
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2711
2711
|
AUTHORIZED: "AUTHORIZED";
|
|
2712
|
+
COMPLETED: "COMPLETED";
|
|
2712
2713
|
PROCESSING: "PROCESSING";
|
|
2713
2714
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2714
|
-
COMPLETED: "COMPLETED";
|
|
2715
2715
|
FAILED: "FAILED";
|
|
2716
2716
|
}>>]>>;
|
|
2717
2717
|
}, z.core.$strip>;
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
-
PROCESSING: "PROCESSING";
|
|
2952
|
-
PENDING: "PENDING";
|
|
2953
2951
|
BOOKED: "BOOKED";
|
|
2954
|
-
CANCELLED: "CANCELLED";
|
|
2955
2952
|
REJECTED: "REJECTED";
|
|
2953
|
+
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
|
+
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
PROCESSING: "PROCESSING";
|
|
2961
|
-
PENDING: "PENDING";
|
|
2962
2960
|
BOOKED: "BOOKED";
|
|
2963
|
-
CANCELLED: "CANCELLED";
|
|
2964
2961
|
REJECTED: "REJECTED";
|
|
2962
|
+
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
|
+
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
+
OPENED: "OPENED";
|
|
3600
3601
|
COMPLETED: "COMPLETED";
|
|
3601
3602
|
BOOKED: "BOOKED";
|
|
3602
|
-
REJECTED: "REJECTED";
|
|
3603
|
-
OPENED: "OPENED";
|
|
3604
3603
|
SETTLED: "SETTLED";
|
|
3604
|
+
REJECTED: "REJECTED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
+
OPENED: "OPENED";
|
|
3608
3609
|
COMPLETED: "COMPLETED";
|
|
3609
3610
|
BOOKED: "BOOKED";
|
|
3610
|
-
REJECTED: "REJECTED";
|
|
3611
|
-
OPENED: "OPENED";
|
|
3612
3611
|
SETTLED: "SETTLED";
|
|
3612
|
+
REJECTED: "REJECTED";
|
|
3613
3613
|
CLOSED: "CLOSED";
|
|
3614
3614
|
}>>]>>;
|
|
3615
3615
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
3
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
2
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.BCqBwSKC.mjs';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BnCJmT6k.mjs';
|
|
4
4
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
6
6
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2703
2703
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2704
2704
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2705
2705
|
AUTHORIZED: "AUTHORIZED";
|
|
2706
|
+
COMPLETED: "COMPLETED";
|
|
2706
2707
|
PROCESSING: "PROCESSING";
|
|
2707
2708
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2708
|
-
COMPLETED: "COMPLETED";
|
|
2709
2709
|
FAILED: "FAILED";
|
|
2710
2710
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2711
2711
|
AUTHORIZED: "AUTHORIZED";
|
|
2712
|
+
COMPLETED: "COMPLETED";
|
|
2712
2713
|
PROCESSING: "PROCESSING";
|
|
2713
2714
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2714
|
-
COMPLETED: "COMPLETED";
|
|
2715
2715
|
FAILED: "FAILED";
|
|
2716
2716
|
}>>]>>;
|
|
2717
2717
|
}, z.core.$strip>;
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
-
PROCESSING: "PROCESSING";
|
|
2952
|
-
PENDING: "PENDING";
|
|
2953
2951
|
BOOKED: "BOOKED";
|
|
2954
|
-
CANCELLED: "CANCELLED";
|
|
2955
2952
|
REJECTED: "REJECTED";
|
|
2953
|
+
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
|
+
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
PROCESSING: "PROCESSING";
|
|
2961
|
-
PENDING: "PENDING";
|
|
2962
2960
|
BOOKED: "BOOKED";
|
|
2963
|
-
CANCELLED: "CANCELLED";
|
|
2964
2961
|
REJECTED: "REJECTED";
|
|
2962
|
+
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
|
+
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
+
OPENED: "OPENED";
|
|
3600
3601
|
COMPLETED: "COMPLETED";
|
|
3601
3602
|
BOOKED: "BOOKED";
|
|
3602
|
-
REJECTED: "REJECTED";
|
|
3603
|
-
OPENED: "OPENED";
|
|
3604
3603
|
SETTLED: "SETTLED";
|
|
3604
|
+
REJECTED: "REJECTED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
+
OPENED: "OPENED";
|
|
3608
3609
|
COMPLETED: "COMPLETED";
|
|
3609
3610
|
BOOKED: "BOOKED";
|
|
3610
|
-
REJECTED: "REJECTED";
|
|
3611
|
-
OPENED: "OPENED";
|
|
3612
3611
|
SETTLED: "SETTLED";
|
|
3612
|
+
REJECTED: "REJECTED";
|
|
3613
3613
|
CLOSED: "CLOSED";
|
|
3614
3614
|
}>>]>>;
|
|
3615
3615
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as drizzle_orm from 'drizzle-orm';
|
|
2
|
-
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.
|
|
3
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
2
|
+
import { B as BatchSelectType, P as PaymentRequestSelectType, A as AccountSelectType, a as PaymentSelectType, L as LastSyncMetadata, C as ConnectorConfig, b as ConfigEnvironmentBank, t as tables, c as ConnectorKey, I as IBankConnector, d as PaymentType, e as CurrencyCode, H as HandleAuthorizationCallbackInput, f as HandleAuthorizationCallbackOutput } from '../shared/bank.BCqBwSKC.js';
|
|
3
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BmX_IG66.js';
|
|
4
4
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
6
6
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -2703,15 +2703,15 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
2703
2703
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
2704
2704
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2705
2705
|
AUTHORIZED: "AUTHORIZED";
|
|
2706
|
+
COMPLETED: "COMPLETED";
|
|
2706
2707
|
PROCESSING: "PROCESSING";
|
|
2707
2708
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2708
|
-
COMPLETED: "COMPLETED";
|
|
2709
2709
|
FAILED: "FAILED";
|
|
2710
2710
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2711
2711
|
AUTHORIZED: "AUTHORIZED";
|
|
2712
|
+
COMPLETED: "COMPLETED";
|
|
2712
2713
|
PROCESSING: "PROCESSING";
|
|
2713
2714
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
2714
|
-
COMPLETED: "COMPLETED";
|
|
2715
2715
|
FAILED: "FAILED";
|
|
2716
2716
|
}>>]>>;
|
|
2717
2717
|
}, z.core.$strip>;
|
|
@@ -2948,20 +2948,20 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
2948
2948
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
2949
2949
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
2950
2950
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
2951
|
-
PROCESSING: "PROCESSING";
|
|
2952
|
-
PENDING: "PENDING";
|
|
2953
2951
|
BOOKED: "BOOKED";
|
|
2954
|
-
CANCELLED: "CANCELLED";
|
|
2955
2952
|
REJECTED: "REJECTED";
|
|
2953
|
+
PENDING: "PENDING";
|
|
2954
|
+
PROCESSING: "PROCESSING";
|
|
2955
|
+
CANCELLED: "CANCELLED";
|
|
2956
2956
|
SCHEDULED: "SCHEDULED";
|
|
2957
2957
|
HOLD: "HOLD";
|
|
2958
2958
|
INFO: "INFO";
|
|
2959
2959
|
}>, z.ZodArray<z.ZodEnum<{
|
|
2960
|
-
PROCESSING: "PROCESSING";
|
|
2961
|
-
PENDING: "PENDING";
|
|
2962
2960
|
BOOKED: "BOOKED";
|
|
2963
|
-
CANCELLED: "CANCELLED";
|
|
2964
2961
|
REJECTED: "REJECTED";
|
|
2962
|
+
PENDING: "PENDING";
|
|
2963
|
+
PROCESSING: "PROCESSING";
|
|
2964
|
+
CANCELLED: "CANCELLED";
|
|
2965
2965
|
SCHEDULED: "SCHEDULED";
|
|
2966
2966
|
HOLD: "HOLD";
|
|
2967
2967
|
INFO: "INFO";
|
|
@@ -3597,19 +3597,19 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
3597
3597
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
3598
3598
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
3599
3599
|
AUTHORIZED: "AUTHORIZED";
|
|
3600
|
+
OPENED: "OPENED";
|
|
3600
3601
|
COMPLETED: "COMPLETED";
|
|
3601
3602
|
BOOKED: "BOOKED";
|
|
3602
|
-
REJECTED: "REJECTED";
|
|
3603
|
-
OPENED: "OPENED";
|
|
3604
3603
|
SETTLED: "SETTLED";
|
|
3604
|
+
REJECTED: "REJECTED";
|
|
3605
3605
|
CLOSED: "CLOSED";
|
|
3606
3606
|
}>, z.ZodArray<z.ZodEnum<{
|
|
3607
3607
|
AUTHORIZED: "AUTHORIZED";
|
|
3608
|
+
OPENED: "OPENED";
|
|
3608
3609
|
COMPLETED: "COMPLETED";
|
|
3609
3610
|
BOOKED: "BOOKED";
|
|
3610
|
-
REJECTED: "REJECTED";
|
|
3611
|
-
OPENED: "OPENED";
|
|
3612
3611
|
SETTLED: "SETTLED";
|
|
3612
|
+
REJECTED: "REJECTED";
|
|
3613
3613
|
CLOSED: "CLOSED";
|
|
3614
3614
|
}>>]>>;
|
|
3615
3615
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|