@develit-services/bank 0.8.7 → 0.8.9
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.cjs +1 -1
- 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/database/schema.mjs +1 -1
- package/dist/export/worker.cjs +237 -277
- package/dist/export/worker.d.cts +25 -20
- package/dist/export/worker.d.mts +25 -20
- package/dist/export/worker.d.ts +25 -20
- package/dist/export/worker.mjs +238 -278
- package/dist/export/workflows.cjs +58 -96
- package/dist/export/workflows.mjs +59 -97
- 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.DEmzZGZW.mjs → bank.B5bZRvgq.mjs} +2 -5
- package/dist/shared/{bank.CQBfbG8u.d.cts → bank.BP_3WMIF.d.cts} +1 -0
- package/dist/shared/{bank.CQBfbG8u.d.mts → bank.BP_3WMIF.d.mts} +1 -0
- package/dist/shared/{bank.CQBfbG8u.d.ts → bank.BP_3WMIF.d.ts} +1 -0
- package/dist/shared/{bank.CA5ytXxp.mjs → bank.BoZtXQpG.mjs} +1 -1
- package/dist/shared/{bank.D1jqaHaF.mjs → bank.BtszLapg.mjs} +128 -20
- package/dist/shared/{bank.C0UN6luZ.mjs → bank.C6jjS1Pl.mjs} +0 -2
- package/dist/shared/{bank.BYRq3yJf.d.ts → bank.CHQ3VSEh.d.ts} +1 -1
- package/dist/shared/{bank.DwyCCyd0.cjs → bank.CtnsGHM8.cjs} +128 -20
- package/dist/shared/{bank.CO89tR9U.d.cts → bank.CwuH4spB.d.mts} +1 -1
- package/dist/shared/{bank.62VzK9Aj.cjs → bank.DJnDSYqE.cjs} +1 -1
- package/dist/shared/{bank.Dm8GHThw.cjs → bank.DT6bg8k5.cjs} +2 -5
- package/dist/shared/{bank.BS7fFjGA.cjs → bank.JVlyPAAb.cjs} +0 -2
- package/dist/shared/{bank.Cns5ss41.d.cts → bank.pgyk4j94.d.cts} +12 -25
- package/dist/shared/{bank.Cns5ss41.d.mts → bank.pgyk4j94.d.mts} +12 -25
- package/dist/shared/{bank.Cns5ss41.d.ts → bank.pgyk4j94.d.ts} +12 -25
- package/dist/shared/{bank.CreoSb2d.d.mts → bank.vPWD7Ce4.d.cts} +1 -1
- package/dist/types.cjs +3 -3
- package/dist/types.d.cts +10 -6
- package/dist/types.d.mts +10 -6
- package/dist/types.d.ts +10 -6
- package/dist/types.mjs +3 -3
- package/package.json +1 -1
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector, c as PaymentType, d as CurrencyCode } from '../shared/bank.
|
|
2
|
-
import { P as PaymentQueueMessage, S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector, c as PaymentType, d as CurrencyCode } from '../shared/bank.pgyk4j94.cjs';
|
|
2
|
+
import { P as PaymentQueueMessage, S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.vPWD7Ce4.cjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -832,16 +832,16 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
832
832
|
}, z.core.$strip>;
|
|
833
833
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
834
834
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
835
|
-
COMPLETED: "COMPLETED";
|
|
836
835
|
SIGNED: "SIGNED";
|
|
836
|
+
COMPLETED: "COMPLETED";
|
|
837
837
|
FAILED: "FAILED";
|
|
838
838
|
OPEN: "OPEN";
|
|
839
839
|
PROCESSING: "PROCESSING";
|
|
840
840
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
841
841
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
842
842
|
}>, z.ZodArray<z.ZodEnum<{
|
|
843
|
-
COMPLETED: "COMPLETED";
|
|
844
843
|
SIGNED: "SIGNED";
|
|
844
|
+
COMPLETED: "COMPLETED";
|
|
845
845
|
FAILED: "FAILED";
|
|
846
846
|
OPEN: "OPEN";
|
|
847
847
|
PROCESSING: "PROCESSING";
|
|
@@ -1092,26 +1092,31 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1092
1092
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1093
1093
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1094
1094
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1095
|
-
COMPLETED: "COMPLETED";
|
|
1096
1095
|
CREATED: "CREATED";
|
|
1097
1096
|
PREPARED: "PREPARED";
|
|
1098
1097
|
SIGNED: "SIGNED";
|
|
1099
1098
|
PENDING: "PENDING";
|
|
1099
|
+
COMPLETED: "COMPLETED";
|
|
1100
1100
|
FAILED: "FAILED";
|
|
1101
1101
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1102
|
-
COMPLETED: "COMPLETED";
|
|
1103
1102
|
CREATED: "CREATED";
|
|
1104
1103
|
PREPARED: "PREPARED";
|
|
1105
1104
|
SIGNED: "SIGNED";
|
|
1106
1105
|
PENDING: "PENDING";
|
|
1106
|
+
COMPLETED: "COMPLETED";
|
|
1107
1107
|
FAILED: "FAILED";
|
|
1108
1108
|
}>>]>>;
|
|
1109
|
-
filterPaymentType: z.ZodOptional<z.ZodEnum<{
|
|
1109
|
+
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1110
1110
|
SEPA: "SEPA";
|
|
1111
1111
|
SWIFT: "SWIFT";
|
|
1112
1112
|
DOMESTIC: "DOMESTIC";
|
|
1113
1113
|
UNKNOWN: "UNKNOWN";
|
|
1114
|
-
}
|
|
1114
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1115
|
+
SEPA: "SEPA";
|
|
1116
|
+
SWIFT: "SWIFT";
|
|
1117
|
+
DOMESTIC: "DOMESTIC";
|
|
1118
|
+
UNKNOWN: "UNKNOWN";
|
|
1119
|
+
}>>]>>;
|
|
1115
1120
|
filterPaymentMinAmount: z.ZodOptional<z.ZodNumber>;
|
|
1116
1121
|
filterPaymentMaxAmount: z.ZodOptional<z.ZodNumber>;
|
|
1117
1122
|
filterPaymentVariableSymbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1121,6 +1126,7 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1121
1126
|
filterPaymentCreditorIban: z.ZodOptional<z.ZodString>;
|
|
1122
1127
|
filterPaymentDebtorIban: z.ZodOptional<z.ZodString>;
|
|
1123
1128
|
filterPaymentBatchId: z.ZodOptional<z.ZodUUID>;
|
|
1129
|
+
filterPaymentBankRefId: z.ZodOptional<z.ZodString>;
|
|
1124
1130
|
}, z.core.$strip>;
|
|
1125
1131
|
type GetPaymentsInput = z.input<typeof getPaymentsInputSchema>;
|
|
1126
1132
|
type GetPaymentsOutput = {
|
|
@@ -1836,18 +1842,18 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
1836
1842
|
}, z.core.$strip>;
|
|
1837
1843
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1838
1844
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1839
|
-
COMPLETED: "COMPLETED";
|
|
1840
1845
|
CREATED: "CREATED";
|
|
1841
1846
|
PREPARED: "PREPARED";
|
|
1842
1847
|
SIGNED: "SIGNED";
|
|
1843
1848
|
PENDING: "PENDING";
|
|
1849
|
+
COMPLETED: "COMPLETED";
|
|
1844
1850
|
FAILED: "FAILED";
|
|
1845
1851
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1846
|
-
COMPLETED: "COMPLETED";
|
|
1847
1852
|
CREATED: "CREATED";
|
|
1848
1853
|
PREPARED: "PREPARED";
|
|
1849
1854
|
SIGNED: "SIGNED";
|
|
1850
1855
|
PENDING: "PENDING";
|
|
1856
|
+
COMPLETED: "COMPLETED";
|
|
1851
1857
|
FAILED: "FAILED";
|
|
1852
1858
|
}>>]>>;
|
|
1853
1859
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -1982,15 +1988,7 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
1982
1988
|
filterConstantSymbol: z.ZodOptional<z.ZodString>;
|
|
1983
1989
|
filterMessage: z.ZodOptional<z.ZodString>;
|
|
1984
1990
|
filterBankRefId: z.ZodOptional<z.ZodString>;
|
|
1985
|
-
|
|
1986
|
-
filterDirection: z.ZodOptional<z.ZodEnum<{
|
|
1987
|
-
INCOMING: "INCOMING";
|
|
1988
|
-
OUTGOING: "OUTGOING";
|
|
1989
|
-
}>>;
|
|
1990
|
-
filterSource: z.ZodOptional<z.ZodEnum<{
|
|
1991
|
-
API: "API";
|
|
1992
|
-
BANK: "BANK";
|
|
1993
|
-
}>>;
|
|
1991
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1994
1992
|
}, z.core.$strip>;
|
|
1995
1993
|
type GetPaymentRequestsInput = z.input<typeof getPaymentRequestsInputSchema>;
|
|
1996
1994
|
type GetPaymentRequestsOutput = {
|
|
@@ -2001,6 +1999,12 @@ type GetPaymentRequestOutput = {
|
|
|
2001
1999
|
paymentRequest: PaymentRequestSelectType;
|
|
2002
2000
|
};
|
|
2003
2001
|
|
|
2002
|
+
declare const updatePaymentStatusesOutputSchema: z.ZodObject<{
|
|
2003
|
+
processed: z.ZodNumber;
|
|
2004
|
+
statusChanged: z.ZodNumber;
|
|
2005
|
+
}, z.core.$strip>;
|
|
2006
|
+
type UpdatePaymentStatusesOutput = z.infer<typeof updatePaymentStatusesOutputSchema>;
|
|
2007
|
+
|
|
2004
2008
|
declare const BankServiceBase_base: (abstract new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
|
|
2005
2009
|
declare class BankServiceBase extends BankServiceBase_base {
|
|
2006
2010
|
readonly db: DrizzleD1Database<typeof tables>;
|
|
@@ -2100,6 +2104,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2100
2104
|
statusChanged: boolean;
|
|
2101
2105
|
} | null>;
|
|
2102
2106
|
updateBatchStatuses(input?: UpdateBatchStatusesInput): Promise<IRPCResponse<UpdateBatchStatusesOutput>>;
|
|
2107
|
+
updatePaymentStatuses(): Promise<IRPCResponse<UpdatePaymentStatusesOutput>>;
|
|
2103
2108
|
handleAuthorizationCallback(input: HandleAuthorizationCallbackInput): Promise<IRPCResponse<HandleAuthorizationCallbackOutput>>;
|
|
2104
2109
|
addPaymentsToBatch({ paymentIds }: {
|
|
2105
2110
|
paymentIds: string[];
|
|
@@ -2154,7 +2159,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2154
2159
|
getBatches(input: GetBatchesInput): Promise<IRPCResponse<GetBatchesOutput>>;
|
|
2155
2160
|
getPaymentRequests(input: GetPaymentRequestsInput): Promise<IRPCResponse<GetPaymentRequestsOutput>>;
|
|
2156
2161
|
getPaymentRequest(input: {
|
|
2157
|
-
|
|
2162
|
+
paymentRequestId: string;
|
|
2158
2163
|
}): Promise<IRPCResponse<GetPaymentRequestOutput>>;
|
|
2159
2164
|
getFinbricksSupportedBanks(): Promise<FinbricksSupportedBanksResponse>;
|
|
2160
2165
|
}
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector, c as PaymentType, d as CurrencyCode } from '../shared/bank.
|
|
2
|
-
import { P as PaymentQueueMessage, S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector, c as PaymentType, d as CurrencyCode } from '../shared/bank.pgyk4j94.mjs';
|
|
2
|
+
import { P as PaymentQueueMessage, S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CwuH4spB.mjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -832,16 +832,16 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
832
832
|
}, z.core.$strip>;
|
|
833
833
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
834
834
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
835
|
-
COMPLETED: "COMPLETED";
|
|
836
835
|
SIGNED: "SIGNED";
|
|
836
|
+
COMPLETED: "COMPLETED";
|
|
837
837
|
FAILED: "FAILED";
|
|
838
838
|
OPEN: "OPEN";
|
|
839
839
|
PROCESSING: "PROCESSING";
|
|
840
840
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
841
841
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
842
842
|
}>, z.ZodArray<z.ZodEnum<{
|
|
843
|
-
COMPLETED: "COMPLETED";
|
|
844
843
|
SIGNED: "SIGNED";
|
|
844
|
+
COMPLETED: "COMPLETED";
|
|
845
845
|
FAILED: "FAILED";
|
|
846
846
|
OPEN: "OPEN";
|
|
847
847
|
PROCESSING: "PROCESSING";
|
|
@@ -1092,26 +1092,31 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1092
1092
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1093
1093
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1094
1094
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1095
|
-
COMPLETED: "COMPLETED";
|
|
1096
1095
|
CREATED: "CREATED";
|
|
1097
1096
|
PREPARED: "PREPARED";
|
|
1098
1097
|
SIGNED: "SIGNED";
|
|
1099
1098
|
PENDING: "PENDING";
|
|
1099
|
+
COMPLETED: "COMPLETED";
|
|
1100
1100
|
FAILED: "FAILED";
|
|
1101
1101
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1102
|
-
COMPLETED: "COMPLETED";
|
|
1103
1102
|
CREATED: "CREATED";
|
|
1104
1103
|
PREPARED: "PREPARED";
|
|
1105
1104
|
SIGNED: "SIGNED";
|
|
1106
1105
|
PENDING: "PENDING";
|
|
1106
|
+
COMPLETED: "COMPLETED";
|
|
1107
1107
|
FAILED: "FAILED";
|
|
1108
1108
|
}>>]>>;
|
|
1109
|
-
filterPaymentType: z.ZodOptional<z.ZodEnum<{
|
|
1109
|
+
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1110
1110
|
SEPA: "SEPA";
|
|
1111
1111
|
SWIFT: "SWIFT";
|
|
1112
1112
|
DOMESTIC: "DOMESTIC";
|
|
1113
1113
|
UNKNOWN: "UNKNOWN";
|
|
1114
|
-
}
|
|
1114
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1115
|
+
SEPA: "SEPA";
|
|
1116
|
+
SWIFT: "SWIFT";
|
|
1117
|
+
DOMESTIC: "DOMESTIC";
|
|
1118
|
+
UNKNOWN: "UNKNOWN";
|
|
1119
|
+
}>>]>>;
|
|
1115
1120
|
filterPaymentMinAmount: z.ZodOptional<z.ZodNumber>;
|
|
1116
1121
|
filterPaymentMaxAmount: z.ZodOptional<z.ZodNumber>;
|
|
1117
1122
|
filterPaymentVariableSymbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1121,6 +1126,7 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1121
1126
|
filterPaymentCreditorIban: z.ZodOptional<z.ZodString>;
|
|
1122
1127
|
filterPaymentDebtorIban: z.ZodOptional<z.ZodString>;
|
|
1123
1128
|
filterPaymentBatchId: z.ZodOptional<z.ZodUUID>;
|
|
1129
|
+
filterPaymentBankRefId: z.ZodOptional<z.ZodString>;
|
|
1124
1130
|
}, z.core.$strip>;
|
|
1125
1131
|
type GetPaymentsInput = z.input<typeof getPaymentsInputSchema>;
|
|
1126
1132
|
type GetPaymentsOutput = {
|
|
@@ -1836,18 +1842,18 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
1836
1842
|
}, z.core.$strip>;
|
|
1837
1843
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1838
1844
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1839
|
-
COMPLETED: "COMPLETED";
|
|
1840
1845
|
CREATED: "CREATED";
|
|
1841
1846
|
PREPARED: "PREPARED";
|
|
1842
1847
|
SIGNED: "SIGNED";
|
|
1843
1848
|
PENDING: "PENDING";
|
|
1849
|
+
COMPLETED: "COMPLETED";
|
|
1844
1850
|
FAILED: "FAILED";
|
|
1845
1851
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1846
|
-
COMPLETED: "COMPLETED";
|
|
1847
1852
|
CREATED: "CREATED";
|
|
1848
1853
|
PREPARED: "PREPARED";
|
|
1849
1854
|
SIGNED: "SIGNED";
|
|
1850
1855
|
PENDING: "PENDING";
|
|
1856
|
+
COMPLETED: "COMPLETED";
|
|
1851
1857
|
FAILED: "FAILED";
|
|
1852
1858
|
}>>]>>;
|
|
1853
1859
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -1982,15 +1988,7 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
1982
1988
|
filterConstantSymbol: z.ZodOptional<z.ZodString>;
|
|
1983
1989
|
filterMessage: z.ZodOptional<z.ZodString>;
|
|
1984
1990
|
filterBankRefId: z.ZodOptional<z.ZodString>;
|
|
1985
|
-
|
|
1986
|
-
filterDirection: z.ZodOptional<z.ZodEnum<{
|
|
1987
|
-
INCOMING: "INCOMING";
|
|
1988
|
-
OUTGOING: "OUTGOING";
|
|
1989
|
-
}>>;
|
|
1990
|
-
filterSource: z.ZodOptional<z.ZodEnum<{
|
|
1991
|
-
API: "API";
|
|
1992
|
-
BANK: "BANK";
|
|
1993
|
-
}>>;
|
|
1991
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1994
1992
|
}, z.core.$strip>;
|
|
1995
1993
|
type GetPaymentRequestsInput = z.input<typeof getPaymentRequestsInputSchema>;
|
|
1996
1994
|
type GetPaymentRequestsOutput = {
|
|
@@ -2001,6 +1999,12 @@ type GetPaymentRequestOutput = {
|
|
|
2001
1999
|
paymentRequest: PaymentRequestSelectType;
|
|
2002
2000
|
};
|
|
2003
2001
|
|
|
2002
|
+
declare const updatePaymentStatusesOutputSchema: z.ZodObject<{
|
|
2003
|
+
processed: z.ZodNumber;
|
|
2004
|
+
statusChanged: z.ZodNumber;
|
|
2005
|
+
}, z.core.$strip>;
|
|
2006
|
+
type UpdatePaymentStatusesOutput = z.infer<typeof updatePaymentStatusesOutputSchema>;
|
|
2007
|
+
|
|
2004
2008
|
declare const BankServiceBase_base: (abstract new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
|
|
2005
2009
|
declare class BankServiceBase extends BankServiceBase_base {
|
|
2006
2010
|
readonly db: DrizzleD1Database<typeof tables>;
|
|
@@ -2100,6 +2104,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2100
2104
|
statusChanged: boolean;
|
|
2101
2105
|
} | null>;
|
|
2102
2106
|
updateBatchStatuses(input?: UpdateBatchStatusesInput): Promise<IRPCResponse<UpdateBatchStatusesOutput>>;
|
|
2107
|
+
updatePaymentStatuses(): Promise<IRPCResponse<UpdatePaymentStatusesOutput>>;
|
|
2103
2108
|
handleAuthorizationCallback(input: HandleAuthorizationCallbackInput): Promise<IRPCResponse<HandleAuthorizationCallbackOutput>>;
|
|
2104
2109
|
addPaymentsToBatch({ paymentIds }: {
|
|
2105
2110
|
paymentIds: string[];
|
|
@@ -2154,7 +2159,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2154
2159
|
getBatches(input: GetBatchesInput): Promise<IRPCResponse<GetBatchesOutput>>;
|
|
2155
2160
|
getPaymentRequests(input: GetPaymentRequestsInput): Promise<IRPCResponse<GetPaymentRequestsOutput>>;
|
|
2156
2161
|
getPaymentRequest(input: {
|
|
2157
|
-
|
|
2162
|
+
paymentRequestId: string;
|
|
2158
2163
|
}): Promise<IRPCResponse<GetPaymentRequestOutput>>;
|
|
2159
2164
|
getFinbricksSupportedBanks(): Promise<FinbricksSupportedBanksResponse>;
|
|
2160
2165
|
}
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector, c as PaymentType, d as CurrencyCode } from '../shared/bank.
|
|
2
|
-
import { P as PaymentQueueMessage, S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector, c as PaymentType, d as CurrencyCode } from '../shared/bank.pgyk4j94.js';
|
|
2
|
+
import { P as PaymentQueueMessage, S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.CHQ3VSEh.js';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -832,16 +832,16 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
832
832
|
}, z.core.$strip>;
|
|
833
833
|
filterBatchAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
834
834
|
filterBatchStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
835
|
-
COMPLETED: "COMPLETED";
|
|
836
835
|
SIGNED: "SIGNED";
|
|
836
|
+
COMPLETED: "COMPLETED";
|
|
837
837
|
FAILED: "FAILED";
|
|
838
838
|
OPEN: "OPEN";
|
|
839
839
|
PROCESSING: "PROCESSING";
|
|
840
840
|
READY_TO_SIGN: "READY_TO_SIGN";
|
|
841
841
|
SIGNATURE_FAILED: "SIGNATURE_FAILED";
|
|
842
842
|
}>, z.ZodArray<z.ZodEnum<{
|
|
843
|
-
COMPLETED: "COMPLETED";
|
|
844
843
|
SIGNED: "SIGNED";
|
|
844
|
+
COMPLETED: "COMPLETED";
|
|
845
845
|
FAILED: "FAILED";
|
|
846
846
|
OPEN: "OPEN";
|
|
847
847
|
PROCESSING: "PROCESSING";
|
|
@@ -1092,26 +1092,31 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1092
1092
|
filterPaymentDateFrom: z.ZodOptional<z.ZodDate>;
|
|
1093
1093
|
filterPaymentDateTo: z.ZodOptional<z.ZodDate>;
|
|
1094
1094
|
filterPaymentStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1095
|
-
COMPLETED: "COMPLETED";
|
|
1096
1095
|
CREATED: "CREATED";
|
|
1097
1096
|
PREPARED: "PREPARED";
|
|
1098
1097
|
SIGNED: "SIGNED";
|
|
1099
1098
|
PENDING: "PENDING";
|
|
1099
|
+
COMPLETED: "COMPLETED";
|
|
1100
1100
|
FAILED: "FAILED";
|
|
1101
1101
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1102
|
-
COMPLETED: "COMPLETED";
|
|
1103
1102
|
CREATED: "CREATED";
|
|
1104
1103
|
PREPARED: "PREPARED";
|
|
1105
1104
|
SIGNED: "SIGNED";
|
|
1106
1105
|
PENDING: "PENDING";
|
|
1106
|
+
COMPLETED: "COMPLETED";
|
|
1107
1107
|
FAILED: "FAILED";
|
|
1108
1108
|
}>>]>>;
|
|
1109
|
-
filterPaymentType: z.ZodOptional<z.ZodEnum<{
|
|
1109
|
+
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1110
1110
|
SEPA: "SEPA";
|
|
1111
1111
|
SWIFT: "SWIFT";
|
|
1112
1112
|
DOMESTIC: "DOMESTIC";
|
|
1113
1113
|
UNKNOWN: "UNKNOWN";
|
|
1114
|
-
}
|
|
1114
|
+
}>, z.ZodArray<z.ZodEnum<{
|
|
1115
|
+
SEPA: "SEPA";
|
|
1116
|
+
SWIFT: "SWIFT";
|
|
1117
|
+
DOMESTIC: "DOMESTIC";
|
|
1118
|
+
UNKNOWN: "UNKNOWN";
|
|
1119
|
+
}>>]>>;
|
|
1115
1120
|
filterPaymentMinAmount: z.ZodOptional<z.ZodNumber>;
|
|
1116
1121
|
filterPaymentMaxAmount: z.ZodOptional<z.ZodNumber>;
|
|
1117
1122
|
filterPaymentVariableSymbol: z.ZodOptional<z.ZodString>;
|
|
@@ -1121,6 +1126,7 @@ declare const getPaymentsInputSchema: z.ZodObject<{
|
|
|
1121
1126
|
filterPaymentCreditorIban: z.ZodOptional<z.ZodString>;
|
|
1122
1127
|
filterPaymentDebtorIban: z.ZodOptional<z.ZodString>;
|
|
1123
1128
|
filterPaymentBatchId: z.ZodOptional<z.ZodUUID>;
|
|
1129
|
+
filterPaymentBankRefId: z.ZodOptional<z.ZodString>;
|
|
1124
1130
|
}, z.core.$strip>;
|
|
1125
1131
|
type GetPaymentsInput = z.input<typeof getPaymentsInputSchema>;
|
|
1126
1132
|
type GetPaymentsOutput = {
|
|
@@ -1836,18 +1842,18 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
1836
1842
|
}, z.core.$strip>;
|
|
1837
1843
|
filterAccountId: z.ZodOptional<z.ZodUnion<readonly [z.ZodUUID, z.ZodArray<z.ZodUUID>]>>;
|
|
1838
1844
|
filterStatus: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1839
|
-
COMPLETED: "COMPLETED";
|
|
1840
1845
|
CREATED: "CREATED";
|
|
1841
1846
|
PREPARED: "PREPARED";
|
|
1842
1847
|
SIGNED: "SIGNED";
|
|
1843
1848
|
PENDING: "PENDING";
|
|
1849
|
+
COMPLETED: "COMPLETED";
|
|
1844
1850
|
FAILED: "FAILED";
|
|
1845
1851
|
}>, z.ZodArray<z.ZodEnum<{
|
|
1846
|
-
COMPLETED: "COMPLETED";
|
|
1847
1852
|
CREATED: "CREATED";
|
|
1848
1853
|
PREPARED: "PREPARED";
|
|
1849
1854
|
SIGNED: "SIGNED";
|
|
1850
1855
|
PENDING: "PENDING";
|
|
1856
|
+
COMPLETED: "COMPLETED";
|
|
1851
1857
|
FAILED: "FAILED";
|
|
1852
1858
|
}>>]>>;
|
|
1853
1859
|
filterPaymentType: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
@@ -1982,15 +1988,7 @@ declare const getPaymentRequestsInputSchema: z.ZodObject<{
|
|
|
1982
1988
|
filterConstantSymbol: z.ZodOptional<z.ZodString>;
|
|
1983
1989
|
filterMessage: z.ZodOptional<z.ZodString>;
|
|
1984
1990
|
filterBankRefId: z.ZodOptional<z.ZodString>;
|
|
1985
|
-
|
|
1986
|
-
filterDirection: z.ZodOptional<z.ZodEnum<{
|
|
1987
|
-
INCOMING: "INCOMING";
|
|
1988
|
-
OUTGOING: "OUTGOING";
|
|
1989
|
-
}>>;
|
|
1990
|
-
filterSource: z.ZodOptional<z.ZodEnum<{
|
|
1991
|
-
API: "API";
|
|
1992
|
-
BANK: "BANK";
|
|
1993
|
-
}>>;
|
|
1991
|
+
ids: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1994
1992
|
}, z.core.$strip>;
|
|
1995
1993
|
type GetPaymentRequestsInput = z.input<typeof getPaymentRequestsInputSchema>;
|
|
1996
1994
|
type GetPaymentRequestsOutput = {
|
|
@@ -2001,6 +1999,12 @@ type GetPaymentRequestOutput = {
|
|
|
2001
1999
|
paymentRequest: PaymentRequestSelectType;
|
|
2002
2000
|
};
|
|
2003
2001
|
|
|
2002
|
+
declare const updatePaymentStatusesOutputSchema: z.ZodObject<{
|
|
2003
|
+
processed: z.ZodNumber;
|
|
2004
|
+
statusChanged: z.ZodNumber;
|
|
2005
|
+
}, z.core.$strip>;
|
|
2006
|
+
type UpdatePaymentStatusesOutput = z.infer<typeof updatePaymentStatusesOutputSchema>;
|
|
2007
|
+
|
|
2004
2008
|
declare const BankServiceBase_base: (abstract new (ctx: ExecutionContext, env: BankEnv) => WorkerEntrypoint<BankEnv, {}>) & (abstract new (...args: any[]) => _develit_io_backend_sdk.DevelitWorkerMethods);
|
|
2005
2009
|
declare class BankServiceBase extends BankServiceBase_base {
|
|
2006
2010
|
readonly db: DrizzleD1Database<typeof tables>;
|
|
@@ -2100,6 +2104,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2100
2104
|
statusChanged: boolean;
|
|
2101
2105
|
} | null>;
|
|
2102
2106
|
updateBatchStatuses(input?: UpdateBatchStatusesInput): Promise<IRPCResponse<UpdateBatchStatusesOutput>>;
|
|
2107
|
+
updatePaymentStatuses(): Promise<IRPCResponse<UpdatePaymentStatusesOutput>>;
|
|
2103
2108
|
handleAuthorizationCallback(input: HandleAuthorizationCallbackInput): Promise<IRPCResponse<HandleAuthorizationCallbackOutput>>;
|
|
2104
2109
|
addPaymentsToBatch({ paymentIds }: {
|
|
2105
2110
|
paymentIds: string[];
|
|
@@ -2154,7 +2159,7 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
2154
2159
|
getBatches(input: GetBatchesInput): Promise<IRPCResponse<GetBatchesOutput>>;
|
|
2155
2160
|
getPaymentRequests(input: GetPaymentRequestsInput): Promise<IRPCResponse<GetPaymentRequestsOutput>>;
|
|
2156
2161
|
getPaymentRequest(input: {
|
|
2157
|
-
|
|
2162
|
+
paymentRequestId: string;
|
|
2158
2163
|
}): Promise<IRPCResponse<GetPaymentRequestOutput>>;
|
|
2159
2164
|
getFinbricksSupportedBanks(): Promise<FinbricksSupportedBanksResponse>;
|
|
2160
2165
|
}
|