@develit-services/bank 0.1.8 → 0.2.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.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 +7 -124
- package/dist/export/worker.d.cts +6 -9
- package/dist/export/worker.d.mts +6 -9
- package/dist/export/worker.d.ts +6 -9
- package/dist/export/worker.mjs +7 -124
- package/dist/export/workflows.cjs +27 -20
- package/dist/export/workflows.mjs +27 -20
- package/dist/shared/{bank.DCTBX1dp.d.ts → bank.2BgwPCw_.d.ts} +8 -8
- package/dist/shared/{bank.B_nwGY5X.mjs → bank.B6xe3pyX.mjs} +4 -8
- package/dist/shared/{bank.BFGDv0oC.d.cts → bank.BGZYksmV.d.cts} +8 -4
- package/dist/shared/{bank.BFGDv0oC.d.mts → bank.BGZYksmV.d.mts} +8 -4
- package/dist/shared/{bank.BFGDv0oC.d.ts → bank.BGZYksmV.d.ts} +8 -4
- package/dist/shared/{bank.DSVzOCrh.d.cts → bank.BOe_Qmuw.d.mts} +8 -8
- package/dist/shared/{bank.DHj3MnQJ.mjs → bank.BTcR2cZW.mjs} +16 -7
- package/dist/shared/{bank.DulU-rr_.mjs → bank.BgD9dJ3A.mjs} +1 -1
- package/dist/shared/{bank.DrMnskU2.cjs → bank.DCUsXXjG.cjs} +15 -6
- package/dist/shared/{bank.YNS7gdPU.cjs → bank.Dp5YErpd.cjs} +1 -1
- package/dist/shared/{bank.CrRs_x0N.d.mts → bank.RD4xwHFf.d.cts} +8 -8
- package/dist/shared/{bank.pT49Hbb4.cjs → bank.U_QWeuG5.cjs} +2 -7
- package/dist/types.cjs +2 -2
- package/dist/types.d.cts +8 -8
- package/dist/types.d.mts +8 -8
- package/dist/types.d.ts +8 -8
- package/dist/types.mjs +2 -2
- package/package.json +1 -1
|
@@ -664,7 +664,10 @@ class FinbricksConnector extends IBankConnector {
|
|
|
664
664
|
cursor = links?.[0]?.value || null;
|
|
665
665
|
if (transactions) {
|
|
666
666
|
for (const tx of transactions) {
|
|
667
|
-
allPayments.push(
|
|
667
|
+
allPayments.push({
|
|
668
|
+
raw: tx,
|
|
669
|
+
parsed: mapFinbricksTransactionToPayment(tx, account)
|
|
670
|
+
});
|
|
668
671
|
}
|
|
669
672
|
}
|
|
670
673
|
} while (cursor != null);
|
|
@@ -1000,8 +1003,11 @@ class ErsteConnector extends IBankConnector {
|
|
|
1000
1003
|
status: "COMPLETED"
|
|
1001
1004
|
};
|
|
1002
1005
|
return {
|
|
1003
|
-
|
|
1004
|
-
|
|
1006
|
+
raw: payment,
|
|
1007
|
+
parsed: {
|
|
1008
|
+
...paymentInsert,
|
|
1009
|
+
direction: account.iban ? getPaymentDirection(paymentInsert, account.iban) : "INCOMING"
|
|
1010
|
+
}
|
|
1005
1011
|
};
|
|
1006
1012
|
});
|
|
1007
1013
|
return payments;
|
|
@@ -1092,8 +1098,11 @@ class MockConnector extends IBankConnector {
|
|
|
1092
1098
|
)
|
|
1093
1099
|
);
|
|
1094
1100
|
return payments.map((payment) => ({
|
|
1095
|
-
|
|
1096
|
-
|
|
1101
|
+
raw: payment,
|
|
1102
|
+
parsed: {
|
|
1103
|
+
...payment,
|
|
1104
|
+
status: "COMPLETED"
|
|
1105
|
+
}
|
|
1097
1106
|
}));
|
|
1098
1107
|
}
|
|
1099
1108
|
getPaymentStatus(_) {
|
|
@@ -1173,7 +1182,7 @@ const account = sqliteCore.sqliteTable(
|
|
|
1173
1182
|
...backendSdk.bankAccount,
|
|
1174
1183
|
number: sqliteCore.text("number").notNull(),
|
|
1175
1184
|
iban: sqliteCore.text("iban").notNull(),
|
|
1176
|
-
bankCode: sqliteCore.text("bank_code").notNull(),
|
|
1185
|
+
bankCode: sqliteCore.text("bank_code", { enum: generalCodes.BANK_CODES }).notNull(),
|
|
1177
1186
|
connectorKey: sqliteCore.text("connector_key", {
|
|
1178
1187
|
enum: CONNECTOR_KEYS
|
|
1179
1188
|
}).$type().notNull(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables, b as ParsedBankPayment } from './bank.BGZYksmV.cjs';
|
|
4
4
|
import { CURRENCY_CODES, BANK_CODES, CODES } from '@develit-io/general-codes';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as drizzle_zod from 'drizzle-zod';
|
|
@@ -114,7 +114,7 @@ declare abstract class IBankConnector {
|
|
|
114
114
|
dateFrom: Date;
|
|
115
115
|
dateTo?: Date;
|
|
116
116
|
};
|
|
117
|
-
}): Promise<
|
|
117
|
+
}): Promise<ParsedBankPayment[]>;
|
|
118
118
|
abstract getPaymentStatus({ paymentId, }: {
|
|
119
119
|
paymentId: string;
|
|
120
120
|
}): Promise<PaymentStatus>;
|
|
@@ -171,14 +171,14 @@ declare const accountInsertSchema: drizzle_zod.BuildSchema<"insert", {
|
|
|
171
171
|
tableName: "account";
|
|
172
172
|
dataType: "string";
|
|
173
173
|
columnType: "SQLiteText";
|
|
174
|
-
data:
|
|
174
|
+
data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
|
|
175
175
|
driverParam: string;
|
|
176
176
|
notNull: true;
|
|
177
177
|
hasDefault: false;
|
|
178
178
|
isPrimaryKey: false;
|
|
179
179
|
isAutoincrement: false;
|
|
180
180
|
hasRuntimeDefault: false;
|
|
181
|
-
enumValues: [
|
|
181
|
+
enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
|
|
182
182
|
baseColumn: never;
|
|
183
183
|
identity: undefined;
|
|
184
184
|
generated: undefined;
|
|
@@ -619,14 +619,14 @@ declare const accountUpdateSchema: drizzle_zod.BuildSchema<"update", {
|
|
|
619
619
|
tableName: "account";
|
|
620
620
|
dataType: "string";
|
|
621
621
|
columnType: "SQLiteText";
|
|
622
|
-
data:
|
|
622
|
+
data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
|
|
623
623
|
driverParam: string;
|
|
624
624
|
notNull: true;
|
|
625
625
|
hasDefault: false;
|
|
626
626
|
isPrimaryKey: false;
|
|
627
627
|
isAutoincrement: false;
|
|
628
628
|
hasRuntimeDefault: false;
|
|
629
|
-
enumValues: [
|
|
629
|
+
enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
|
|
630
630
|
baseColumn: never;
|
|
631
631
|
identity: undefined;
|
|
632
632
|
generated: undefined;
|
|
@@ -1067,14 +1067,14 @@ declare const accountSelectSchema: drizzle_zod.BuildSchema<"select", {
|
|
|
1067
1067
|
tableName: "account";
|
|
1068
1068
|
dataType: "string";
|
|
1069
1069
|
columnType: "SQLiteText";
|
|
1070
|
-
data:
|
|
1070
|
+
data: "5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500";
|
|
1071
1071
|
driverParam: string;
|
|
1072
1072
|
notNull: true;
|
|
1073
1073
|
hasDefault: false;
|
|
1074
1074
|
isPrimaryKey: false;
|
|
1075
1075
|
isAutoincrement: false;
|
|
1076
1076
|
hasRuntimeDefault: false;
|
|
1077
|
-
enumValues: [
|
|
1077
|
+
enumValues: ["5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500", ...("5051" | "0100" | "0300" | "0600" | "0710" | "0800" | "2010" | "2060" | "2070" | "2100" | "2200" | "2220" | "2250" | "2260" | "2600" | "2700" | "3030" | "3060" | "3500" | "4300" | "5500" | "5800" | "6000" | "6200" | "6210" | "6300" | "6363" | "6700" | "6800" | "7910" | "7950" | "7960" | "7970" | "7990" | "8030" | "8040" | "8060" | "8090" | "8150" | "8190" | "8198" | "8220" | "8250" | "8255" | "8265" | "8500")[]];
|
|
1078
1078
|
baseColumn: never;
|
|
1079
1079
|
identity: undefined;
|
|
1080
1080
|
generated: undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./bank.
|
|
3
|
+
const database_schema = require('./bank.DCUsXXjG.cjs');
|
|
4
4
|
const drizzleOrm = require('drizzle-orm');
|
|
5
|
-
const mockCobs_connector = require('./bank.
|
|
5
|
+
const mockCobs_connector = require('./bank.Dp5YErpd.cjs');
|
|
6
6
|
require('jose');
|
|
7
7
|
require('@develit-io/general-codes');
|
|
8
8
|
|
|
@@ -36,10 +36,6 @@ const getCredentialsByAccountId = async (db, { accountId }) => {
|
|
|
36
36
|
return cred;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
const getPaymentsByBankRefIdsQuery = async (db, { ids }) => {
|
|
40
|
-
return await db.select().from(database_schema.tables.payment).where(drizzleOrm.inArray(database_schema.tables.payment.bankRefId, ids));
|
|
41
|
-
};
|
|
42
|
-
|
|
43
39
|
class CreditasConnector extends database_schema.FinbricksConnector {
|
|
44
40
|
constructor(config) {
|
|
45
41
|
super("CREDITAS", config);
|
|
@@ -114,7 +110,6 @@ const initiateConnector = ({
|
|
|
114
110
|
|
|
115
111
|
exports.createPaymentCommand = createPaymentCommand;
|
|
116
112
|
exports.getCredentialsByAccountId = getCredentialsByAccountId;
|
|
117
|
-
exports.getPaymentsByBankRefIdsQuery = getPaymentsByBankRefIdsQuery;
|
|
118
113
|
exports.initiateConnector = initiateConnector;
|
|
119
114
|
exports.updateAccountLastSyncCommand = updateAccountLastSyncCommand;
|
|
120
115
|
exports.updatePaymentCommand = updatePaymentCommand;
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const database_schema = require('./shared/bank.
|
|
4
|
-
const mockCobs_connector = require('./shared/bank.
|
|
3
|
+
const database_schema = require('./shared/bank.DCUsXXjG.cjs');
|
|
4
|
+
const mockCobs_connector = require('./shared/bank.Dp5YErpd.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
|
7
7
|
require('drizzle-orm/sqlite-core');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.RD4xwHFf.cjs';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.RD4xwHFf.cjs';
|
|
3
|
+
import { b as ParsedBankPayment, t as tables, P as PaymentSelectType } from './shared/bank.BGZYksmV.cjs';
|
|
4
|
+
export { c as BatchInsertType, B as BatchSelectType, a as PaymentInsertType, p as paymentInsertTypeZod } from './shared/bank.BGZYksmV.cjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.cjs';
|
|
@@ -65,7 +65,7 @@ declare class ErsteConnector extends IBankConnector {
|
|
|
65
65
|
dateFrom: Date;
|
|
66
66
|
dateTo?: Date;
|
|
67
67
|
};
|
|
68
|
-
}): Promise<
|
|
68
|
+
}): Promise<ParsedBankPayment[]>;
|
|
69
69
|
getPaymentStatus(_: {
|
|
70
70
|
paymentId: string;
|
|
71
71
|
}): Promise<PaymentStatus>;
|
|
@@ -490,7 +490,7 @@ declare abstract class FinbricksConnector extends IBankConnector {
|
|
|
490
490
|
dateFrom: Date;
|
|
491
491
|
dateTo?: Date;
|
|
492
492
|
};
|
|
493
|
-
}): Promise<
|
|
493
|
+
}): Promise<ParsedBankPayment[]>;
|
|
494
494
|
getPaymentStatus({ paymentId, }: {
|
|
495
495
|
paymentId: string;
|
|
496
496
|
}): Promise<PaymentStatus>;
|
|
@@ -524,7 +524,7 @@ declare class MockConnector extends IBankConnector {
|
|
|
524
524
|
}): Promise<InitiatedBatch>;
|
|
525
525
|
getAllAccountPayments({ db, }: {
|
|
526
526
|
db: DrizzleD1Database<typeof tables>;
|
|
527
|
-
}): Promise<
|
|
527
|
+
}): Promise<ParsedBankPayment[]>;
|
|
528
528
|
getPaymentStatus(_: {
|
|
529
529
|
paymentId: string;
|
|
530
530
|
}): Promise<PaymentStatus>;
|
|
@@ -1125,5 +1125,5 @@ type OneTimeTokenUpdateType = z.infer<typeof ottInsertSchema>;
|
|
|
1125
1125
|
type OneTimeTokenPatchType = z.infer<typeof ottUpdateSchema>;
|
|
1126
1126
|
type OneTimeTokenSelectType = z.infer<typeof ottSelectSchema>;
|
|
1127
1127
|
|
|
1128
|
-
export { AccountCredentialsInsertType, AccountInsertType, AccountSelectType, AuthInput, BankCode, BatchMetadata, BatchStatus, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector,
|
|
1128
|
+
export { AccountCredentialsInsertType, AccountInsertType, AccountSelectType, AuthInput, BankCode, BatchMetadata, BatchStatus, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentPreparedInsertType, PaymentSelectType, PaymentStatus, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, useFinbricksFetch };
|
|
1129
1129
|
export type { BankPaymentEvent, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccount, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksAuthTokenResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectAccountResponse, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider, FinbricksRequestInit, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.BOe_Qmuw.mjs';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.BOe_Qmuw.mjs';
|
|
3
|
+
import { b as ParsedBankPayment, t as tables, P as PaymentSelectType } from './shared/bank.BGZYksmV.mjs';
|
|
4
|
+
export { c as BatchInsertType, B as BatchSelectType, a as PaymentInsertType, p as paymentInsertTypeZod } from './shared/bank.BGZYksmV.mjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.mjs';
|
|
@@ -65,7 +65,7 @@ declare class ErsteConnector extends IBankConnector {
|
|
|
65
65
|
dateFrom: Date;
|
|
66
66
|
dateTo?: Date;
|
|
67
67
|
};
|
|
68
|
-
}): Promise<
|
|
68
|
+
}): Promise<ParsedBankPayment[]>;
|
|
69
69
|
getPaymentStatus(_: {
|
|
70
70
|
paymentId: string;
|
|
71
71
|
}): Promise<PaymentStatus>;
|
|
@@ -490,7 +490,7 @@ declare abstract class FinbricksConnector extends IBankConnector {
|
|
|
490
490
|
dateFrom: Date;
|
|
491
491
|
dateTo?: Date;
|
|
492
492
|
};
|
|
493
|
-
}): Promise<
|
|
493
|
+
}): Promise<ParsedBankPayment[]>;
|
|
494
494
|
getPaymentStatus({ paymentId, }: {
|
|
495
495
|
paymentId: string;
|
|
496
496
|
}): Promise<PaymentStatus>;
|
|
@@ -524,7 +524,7 @@ declare class MockConnector extends IBankConnector {
|
|
|
524
524
|
}): Promise<InitiatedBatch>;
|
|
525
525
|
getAllAccountPayments({ db, }: {
|
|
526
526
|
db: DrizzleD1Database<typeof tables>;
|
|
527
|
-
}): Promise<
|
|
527
|
+
}): Promise<ParsedBankPayment[]>;
|
|
528
528
|
getPaymentStatus(_: {
|
|
529
529
|
paymentId: string;
|
|
530
530
|
}): Promise<PaymentStatus>;
|
|
@@ -1125,5 +1125,5 @@ type OneTimeTokenUpdateType = z.infer<typeof ottInsertSchema>;
|
|
|
1125
1125
|
type OneTimeTokenPatchType = z.infer<typeof ottUpdateSchema>;
|
|
1126
1126
|
type OneTimeTokenSelectType = z.infer<typeof ottSelectSchema>;
|
|
1127
1127
|
|
|
1128
|
-
export { AccountCredentialsInsertType, AccountInsertType, AccountSelectType, AuthInput, BankCode, BatchMetadata, BatchStatus, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector,
|
|
1128
|
+
export { AccountCredentialsInsertType, AccountInsertType, AccountSelectType, AuthInput, BankCode, BatchMetadata, BatchStatus, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentPreparedInsertType, PaymentSelectType, PaymentStatus, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, useFinbricksFetch };
|
|
1129
1129
|
export type { BankPaymentEvent, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccount, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksAuthTokenResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectAccountResponse, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider, FinbricksRequestInit, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.
|
|
2
|
-
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import {
|
|
4
|
-
export {
|
|
1
|
+
import { I as IBankConnector, b as IncomingPaymentMessage, c as InitiatedPayment, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, P as PaymentPreparedInsertType, g as InitiatedBatch, B as BatchMetadata, A as AccountSelectType, h as PaymentStatus, i as BatchStatus, j as CurrencyCode, k as BankCode, l as CountryCode, m as AuthInput, n as Currency } from './shared/bank.2BgwPCw_.js';
|
|
2
|
+
export { D as ACCOUNT_STATUSES, Y as AccountCredentialsPatchType, Z as AccountCredentialsSelectType, X as AccountCredentialsUpdateType, S as AccountPatchType, E as AccountStatus, R as AccountUpdateType, q as BATCH_STATUES, q as BATCH_STATUSES, G as BankAccountWithLastSync, t as CHARGE_BEARERS, H as CONNECTOR_KEYS, F as COUNTRY_CODES, J as CREDENTIALS_TYPES, u as ChargeBearer, C as ConfigEnvironmentBank, K as CredentialsType, v as INSTRUCTION_PRIORITIES, w as InstructionPriority, O as OutgoingPaymentMessage, y as PAYMENT_DIRECTIONS, x as PAYMENT_STATUSES, r as PAYMENT_TYPES, z as PaymentDirection, o as PaymentFailedInsertType, s as PaymentType, T as TOKEN_TYPES, L as TokenType, U as accountCredentialsInsertSchema, W as accountCredentialsSelectSchema, V as accountCredentialsUpdateSchema, M as accountInsertSchema, Q as accountSelectSchema, N as accountUpdateSchema, p as paymentInitializedInsertType } from './shared/bank.2BgwPCw_.js';
|
|
3
|
+
import { b as ParsedBankPayment, t as tables, P as PaymentSelectType } from './shared/bank.BGZYksmV.js';
|
|
4
|
+
export { c as BatchInsertType, B as BatchSelectType, a as PaymentInsertType, p as paymentInsertTypeZod } from './shared/bank.BGZYksmV.js';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BchnXQDL.js';
|
|
@@ -65,7 +65,7 @@ declare class ErsteConnector extends IBankConnector {
|
|
|
65
65
|
dateFrom: Date;
|
|
66
66
|
dateTo?: Date;
|
|
67
67
|
};
|
|
68
|
-
}): Promise<
|
|
68
|
+
}): Promise<ParsedBankPayment[]>;
|
|
69
69
|
getPaymentStatus(_: {
|
|
70
70
|
paymentId: string;
|
|
71
71
|
}): Promise<PaymentStatus>;
|
|
@@ -490,7 +490,7 @@ declare abstract class FinbricksConnector extends IBankConnector {
|
|
|
490
490
|
dateFrom: Date;
|
|
491
491
|
dateTo?: Date;
|
|
492
492
|
};
|
|
493
|
-
}): Promise<
|
|
493
|
+
}): Promise<ParsedBankPayment[]>;
|
|
494
494
|
getPaymentStatus({ paymentId, }: {
|
|
495
495
|
paymentId: string;
|
|
496
496
|
}): Promise<PaymentStatus>;
|
|
@@ -524,7 +524,7 @@ declare class MockConnector extends IBankConnector {
|
|
|
524
524
|
}): Promise<InitiatedBatch>;
|
|
525
525
|
getAllAccountPayments({ db, }: {
|
|
526
526
|
db: DrizzleD1Database<typeof tables>;
|
|
527
|
-
}): Promise<
|
|
527
|
+
}): Promise<ParsedBankPayment[]>;
|
|
528
528
|
getPaymentStatus(_: {
|
|
529
529
|
paymentId: string;
|
|
530
530
|
}): Promise<PaymentStatus>;
|
|
@@ -1125,5 +1125,5 @@ type OneTimeTokenUpdateType = z.infer<typeof ottInsertSchema>;
|
|
|
1125
1125
|
type OneTimeTokenPatchType = z.infer<typeof ottUpdateSchema>;
|
|
1126
1126
|
type OneTimeTokenSelectType = z.infer<typeof ottSelectSchema>;
|
|
1127
1127
|
|
|
1128
|
-
export { AccountCredentialsInsertType, AccountInsertType, AccountSelectType, AuthInput, BankCode, BatchMetadata, BatchStatus, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector,
|
|
1128
|
+
export { AccountCredentialsInsertType, AccountInsertType, AccountSelectType, AuthInput, BankCode, BatchMetadata, BatchStatus, ConnectedAccount, ConnectorKey, CountryCode, Currency, CurrencyCode, ErsteConnector, FINBRICKS_ENDPOINTS, FinbricksClient, FinbricksConnector, IBankConnector, IncomingPaymentMessage, InitiatedBatch, InitiatedPayment, MockCobsConnector, MockConnector, ParsedBankPayment, PaymentPreparedInsertType, PaymentSelectType, PaymentStatus, ottInsertSchema, ottSelectSchema, ottUpdateSchema, signFinbricksJws, useFinbricksFetch };
|
|
1129
1129
|
export type { BankPaymentEvent, ErsteAuthenticationResponse, ErsteBatchPaymentInitiationResponse, ErsteIncomingPaymentResponse, ErsteObtainAuthorizationURLResponse, ErstePaymentInitiationResponse, FinbricksAccount, FinbricksAccountTransactionsResponse, FinbricksAccountsListResponse, FinbricksAuthTokenResponse, FinbricksBatchBody, FinbricksBatchResponse, FinbricksBatchStatus, FinbricksConnectAccountBody, FinbricksConnectAccountResponse, FinbricksConnectorConfig, FinbricksEndpoint, FinbricksEndpointPath, FinbricksFetchConfig, FinbricksForeignPaymentBody, FinbricksGetBatchStatusBody, FinbricksGetBatchStatusResponse, FinbricksGetTransactionStatusResponse, FinbricksJWSData, FinbricksPaymentBody, FinbricksPaymentResponse, FinbricksProvider, FinbricksRequestInit, FinbricksTransactionStatus, OneTimeTokenInsertType, OneTimeTokenPatchType, OneTimeTokenSelectType, OneTimeTokenUpdateType };
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, r as ottSelectSchema, q as ottUpdateSchema, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.
|
|
2
|
-
export { M as MockCobsConnector } from './shared/bank.
|
|
1
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, g as CONNECTOR_KEYS, f as COUNTRY_CODES, h as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, c as INSTRUCTION_PRIORITIES, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, l as accountCredentialsInsertSchema, n as accountCredentialsSelectSchema, m as accountCredentialsUpdateSchema, i as accountInsertSchema, k as accountSelectSchema, j as accountUpdateSchema, o as ottInsertSchema, r as ottSelectSchema, q as ottUpdateSchema, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.BTcR2cZW.mjs';
|
|
2
|
+
export { M as MockCobsConnector } from './shared/bank.BgD9dJ3A.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
5
5
|
import 'drizzle-orm/sqlite-core';
|