@develit-services/bank 0.0.40 → 0.0.41
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.mjs +1 -1
- package/dist/export/worker.cjs +2 -2
- package/dist/export/worker.mjs +2 -2
- package/dist/shared/{bank.Cugt-fWW.cjs → bank.C2tmTjwq.cjs} +3 -4
- package/dist/shared/{bank.D1w0vdmc.cjs → bank.DBgpADhg.cjs} +1 -1
- package/dist/shared/{bank.wULhiPzr.mjs → bank.E-nyO12E.mjs} +1 -1
- package/dist/shared/{bank.Ceuz_VuD.mjs → bank.HuMp6uP6.mjs} +3 -4
- package/dist/types.cjs +2 -2
- package/dist/types.mjs +2 -2
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
package/dist/database/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { y as account, z as accountCredentials, r as batch, x as ott, v as payment, w as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { y as account, z as accountCredentials, r as batch, x as ott, v as payment, w as paymentRelations } from '../shared/bank.HuMp6uP6.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import 'drizzle-orm';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
6
|
const cloudflare_workers = require('cloudflare:workers');
|
|
7
7
|
const d1 = require('drizzle-orm/d1');
|
|
8
|
-
const database_schema = require('../shared/bank.
|
|
8
|
+
const database_schema = require('../shared/bank.C2tmTjwq.cjs');
|
|
9
9
|
require('jose');
|
|
10
10
|
const generalCodes = require('@develit-io/general-codes');
|
|
11
11
|
const zod = require('zod');
|
|
12
12
|
const drizzleOrm = require('drizzle-orm');
|
|
13
|
-
const mockCobs_connector = require('../shared/bank.
|
|
13
|
+
const mockCobs_connector = require('../shared/bank.DBgpADhg.cjs');
|
|
14
14
|
require('drizzle-orm/sqlite-core');
|
|
15
15
|
require('drizzle-zod');
|
|
16
16
|
require('date-fns');
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { uuidv4, develitWorker, createInternalError, first, RPCResponse, action, service } from '@develit-io/backend-sdk';
|
|
2
2
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector, P as PAYMENT_TYPES, e as CONNECTOR_KEYS, B as BATCH_STATUSES, c as PAYMENT_STATUSES, d as PAYMENT_DIRECTIONS, q as getPaymentDirection } from '../shared/bank.
|
|
4
|
+
import { t as tables, F as FinbricksConnector, M as MockConnector, E as ErsteConnector, P as PAYMENT_TYPES, e as CONNECTOR_KEYS, B as BATCH_STATUSES, c as PAYMENT_STATUSES, d as PAYMENT_DIRECTIONS, q as getPaymentDirection } from '../shared/bank.HuMp6uP6.mjs';
|
|
5
5
|
import 'jose';
|
|
6
6
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
import { eq, inArray, and, sql, asc, desc, gte, lte } from 'drizzle-orm';
|
|
9
|
-
import { M as MockCobsConnector } from '../shared/bank.
|
|
9
|
+
import { M as MockCobsConnector } from '../shared/bank.E-nyO12E.mjs';
|
|
10
10
|
import 'drizzle-orm/sqlite-core';
|
|
11
11
|
import 'drizzle-zod';
|
|
12
12
|
import 'date-fns';
|
|
@@ -567,7 +567,7 @@ class FinbricksConnector extends IBankConnector {
|
|
|
567
567
|
(acc) => acc.iban === account.iban
|
|
568
568
|
).token,
|
|
569
569
|
paymentProvider: this.PROVIDER,
|
|
570
|
-
bankAccountId: account.
|
|
570
|
+
bankAccountId: account.bankRefId,
|
|
571
571
|
dateFrom,
|
|
572
572
|
dateTo,
|
|
573
573
|
currency: account.currency,
|
|
@@ -580,9 +580,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
580
580
|
do {
|
|
581
581
|
const [response, error] = await fetchTransactions(cursor);
|
|
582
582
|
if (error || !response) {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
});
|
|
583
|
+
console.error(error, "TRANSACTIONS GET ERROR");
|
|
584
|
+
throw backendSdk.createInternalError(error);
|
|
586
585
|
}
|
|
587
586
|
const { transactions, links } = response;
|
|
588
587
|
cursor = links?.[0]?.value || null;
|
|
@@ -565,7 +565,7 @@ class FinbricksConnector extends IBankConnector {
|
|
|
565
565
|
(acc) => acc.iban === account.iban
|
|
566
566
|
).token,
|
|
567
567
|
paymentProvider: this.PROVIDER,
|
|
568
|
-
bankAccountId: account.
|
|
568
|
+
bankAccountId: account.bankRefId,
|
|
569
569
|
dateFrom,
|
|
570
570
|
dateTo,
|
|
571
571
|
currency: account.currency,
|
|
@@ -578,9 +578,8 @@ class FinbricksConnector extends IBankConnector {
|
|
|
578
578
|
do {
|
|
579
579
|
const [response, error] = await fetchTransactions(cursor);
|
|
580
580
|
if (error || !response) {
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
});
|
|
581
|
+
console.error(error, "TRANSACTIONS GET ERROR");
|
|
582
|
+
throw createInternalError(error);
|
|
584
583
|
}
|
|
585
584
|
const { transactions, links } = response;
|
|
586
585
|
cursor = links?.[0]?.value || null;
|
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.C2tmTjwq.cjs');
|
|
4
|
+
const mockCobs_connector = require('./shared/bank.DBgpADhg.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.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, e as CONNECTOR_KEYS, C as COUNTRY_CODES, f as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, M as MockConnector, d as PAYMENT_DIRECTIONS, c as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, j as accountCredentialsInsertSchema, l as accountCredentialsSelectSchema, k as accountCredentialsUpdateSchema, g as accountInsertSchema, i as accountSelectSchema, h as accountUpdateSchema, o as ottInsertSchema, n as ottSelectSchema, m 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, e as CONNECTOR_KEYS, C as COUNTRY_CODES, f as CREDENTIALS_TYPES, E as ErsteConnector, b as FINBRICKS_ENDPOINTS, a as FinbricksClient, F as FinbricksConnector, I as IBankConnector, M as MockConnector, d as PAYMENT_DIRECTIONS, c as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, j as accountCredentialsInsertSchema, l as accountCredentialsSelectSchema, k as accountCredentialsUpdateSchema, g as accountInsertSchema, i as accountSelectSchema, h as accountUpdateSchema, o as ottInsertSchema, n as ottSelectSchema, m as ottUpdateSchema, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.HuMp6uP6.mjs';
|
|
2
|
+
export { M as MockCobsConnector } from './shared/bank.E-nyO12E.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';
|