@develit-services/bank 0.3.56 → 0.3.57
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/export/worker.cjs +3 -3
- package/dist/export/worker.mjs +3 -3
- package/dist/export/workflows.cjs +2 -2
- package/dist/export/workflows.mjs +2 -2
- package/dist/shared/{bank.BdlPpN78.cjs → bank.0IwqmnZ7.cjs} +1 -1
- package/dist/shared/{bank.DbS9RyGZ.mjs → bank.CXcZewU9.mjs} +1 -1
- package/dist/shared/{bank.BfxCyEqX.cjs → bank.Cg05BigT.cjs} +1 -1
- package/dist/shared/{bank.BiOcvKnQ.mjs → bank.Dh6IUoHL.mjs} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.mjs +1 -1
- package/package.json +4 -4
package/dist/export/worker.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const cloudflare_workers = require('cloudflare:workers');
|
|
5
5
|
const d1 = require('drizzle-orm/d1');
|
|
6
|
-
const drizzle = require('../shared/bank.
|
|
6
|
+
const drizzle = require('../shared/bank.0IwqmnZ7.cjs');
|
|
7
7
|
const zod = require('zod');
|
|
8
8
|
const database_schema = require('../shared/bank.BnDb4liE.cjs');
|
|
9
9
|
const generalCodes = require('@develit-io/general-codes');
|
|
@@ -11,7 +11,7 @@ require('date-fns');
|
|
|
11
11
|
const drizzleOrm = require('drizzle-orm');
|
|
12
12
|
require('jose');
|
|
13
13
|
require('node:crypto');
|
|
14
|
-
const encryption = require('../shared/bank.
|
|
14
|
+
const encryption = require('../shared/bank.Cg05BigT.cjs');
|
|
15
15
|
require('drizzle-orm/sqlite-core');
|
|
16
16
|
require('drizzle-orm/relations');
|
|
17
17
|
require('drizzle-zod');
|
|
@@ -849,7 +849,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
|
|
|
849
849
|
async authorizeAccount(input) {
|
|
850
850
|
return this.handleAction(
|
|
851
851
|
{ data: input, schema: authorizeAccountInputSchema },
|
|
852
|
-
{ successMessage: "
|
|
852
|
+
{ successMessage: "Account connected" },
|
|
853
853
|
async ({ ott, urlParams, syncIntervalS, startSync, lastSyncAt }) => {
|
|
854
854
|
const ottRow = await getOttQuery(this.db, {
|
|
855
855
|
ott
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { uuidv4, first, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, 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 } from '../shared/bank.
|
|
4
|
+
import { t as tables } from '../shared/bank.Dh6IUoHL.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { I as INSTRUCTION_PRIORITIES, C as CHARGE_BEARERS, P as PAYMENT_TYPES, d as CONNECTOR_KEYS, B as BATCH_STATUSES, a as PAYMENT_STATUSES, b as PAYMENT_DIRECTIONS, f as accountInsertSchema } from '../shared/bank.BPxg79Tw.mjs';
|
|
7
7
|
import { CURRENCY_CODES } from '@develit-io/general-codes';
|
|
@@ -9,7 +9,7 @@ import 'date-fns';
|
|
|
9
9
|
import { eq, sql, inArray, and, asc, desc, gte, lte } from 'drizzle-orm';
|
|
10
10
|
import 'jose';
|
|
11
11
|
import 'node:crypto';
|
|
12
|
-
import { f as encrypt, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, d as getBatchByIdQuery, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.
|
|
12
|
+
import { f as encrypt, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, u as upsertBatchCommand, d as getBatchByIdQuery, c as createPaymentCommand, g as getAccountByIdQuery } from '../shared/bank.CXcZewU9.mjs';
|
|
13
13
|
import 'drizzle-orm/sqlite-core';
|
|
14
14
|
import 'drizzle-orm/relations';
|
|
15
15
|
import 'drizzle-zod';
|
|
@@ -847,7 +847,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
|
|
|
847
847
|
async authorizeAccount(input) {
|
|
848
848
|
return this.handleAction(
|
|
849
849
|
{ data: input, schema: authorizeAccountInputSchema },
|
|
850
|
-
{ successMessage: "
|
|
850
|
+
{ successMessage: "Account connected" },
|
|
851
851
|
async ({ ott, urlParams, syncIntervalS, startSync, lastSyncAt }) => {
|
|
852
852
|
const ottRow = await getOttQuery(this.db, {
|
|
853
853
|
ott
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
const cloudflare_workers = require('cloudflare:workers');
|
|
4
4
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
5
5
|
const d1 = require('drizzle-orm/d1');
|
|
6
|
-
const drizzle = require('../shared/bank.
|
|
6
|
+
const drizzle = require('../shared/bank.0IwqmnZ7.cjs');
|
|
7
7
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
8
|
-
const encryption = require('../shared/bank.
|
|
8
|
+
const encryption = require('../shared/bank.Cg05BigT.cjs');
|
|
9
9
|
const drizzleOrm = require('drizzle-orm');
|
|
10
10
|
require('date-fns');
|
|
11
11
|
require('../shared/bank.BnDb4liE.cjs');
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
2
2
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
3
3
|
import { drizzle } from 'drizzle-orm/d1';
|
|
4
|
-
import { t as tables } from '../shared/bank.
|
|
4
|
+
import { t as tables } from '../shared/bank.Dh6IUoHL.mjs';
|
|
5
5
|
import { asNonEmpty, first } from '@develit-io/backend-sdk';
|
|
6
|
-
import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand, d as getBatchByIdQuery, e as checksum, u as upsertBatchCommand } from '../shared/bank.
|
|
6
|
+
import { g as getAccountByIdQuery, i as importAesKey, a as getCredentialsByAccountId, b as initiateConnector, c as createPaymentCommand, d as getBatchByIdQuery, e as checksum, u as upsertBatchCommand } from '../shared/bank.CXcZewU9.mjs';
|
|
7
7
|
import { eq } from 'drizzle-orm';
|
|
8
8
|
import 'date-fns';
|
|
9
9
|
import '../shared/bank.BPxg79Tw.mjs';
|
|
@@ -307,7 +307,7 @@ class FinbricksConnector extends IBankConnector {
|
|
|
307
307
|
);
|
|
308
308
|
const credentials = accounts.map((acc) => ({
|
|
309
309
|
connectorKey: this.PROVIDER,
|
|
310
|
-
expiresAt: new Date(Date.now() +
|
|
310
|
+
expiresAt: new Date(Date.now() + 2592e6),
|
|
311
311
|
type: "CLIENT_ID",
|
|
312
312
|
value: clientId,
|
|
313
313
|
accountId: acc.id
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as tables, F as FinbricksConnector, M as MockConnector, a as MockCobsConnector, E as ErsteConnector } from './bank.
|
|
1
|
+
import { t as tables, F as FinbricksConnector, M as MockConnector, a as MockCobsConnector, E as ErsteConnector } from './bank.Dh6IUoHL.mjs';
|
|
2
2
|
import { uuidv4 } from '@develit-io/backend-sdk';
|
|
3
3
|
import { eq } from 'drizzle-orm';
|
|
4
4
|
import 'date-fns';
|
|
@@ -305,7 +305,7 @@ class FinbricksConnector extends IBankConnector {
|
|
|
305
305
|
);
|
|
306
306
|
const credentials = accounts.map((acc) => ({
|
|
307
307
|
connectorKey: this.PROVIDER,
|
|
308
|
-
expiresAt: new Date(Date.now() +
|
|
308
|
+
expiresAt: new Date(Date.now() + 2592e6),
|
|
309
309
|
type: "CLIENT_ID",
|
|
310
310
|
value: clientId,
|
|
311
311
|
accountId: acc.id
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const drizzle = require('./shared/bank.
|
|
3
|
+
const drizzle = require('./shared/bank.0IwqmnZ7.cjs');
|
|
4
4
|
const database_schema = require('./shared/bank.BnDb4liE.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { E as ErsteConnector, c as FINBRICKS_ENDPOINTS, b as FinbricksClient, F as FinbricksConnector, I as IBankConnector, a as MockCobsConnector, M as MockConnector, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.
|
|
1
|
+
export { E as ErsteConnector, c as FINBRICKS_ENDPOINTS, b as FinbricksClient, F as FinbricksConnector, I as IBankConnector, a as MockCobsConnector, M as MockConnector, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.Dh6IUoHL.mjs';
|
|
2
2
|
export { A as ACCOUNT_STATUSES, B as BATCH_STATUES, B as BATCH_STATUSES, C as CHARGE_BEARERS, d as CONNECTOR_KEYS, c as COUNTRY_CODES, e as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, b as PAYMENT_DIRECTIONS, a as PAYMENT_STATUSES, P as PAYMENT_TYPES, T as TOKEN_TYPES, i as accountCredentialsInsertSchema, k as accountCredentialsSelectSchema, j as accountCredentialsUpdateSchema, f as accountInsertSchema, h as accountSelectSchema, g as accountUpdateSchema, o as ottInsertSchema, m as ottSelectSchema, l as ottUpdateSchema } from './shared/bank.BPxg79Tw.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.57",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
],
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "wrangler dev --port 9231 --persist-to ../../.wrangler/state",
|
|
39
|
-
"wrangler:generate": "develit wrangler:generate",
|
|
39
|
+
"wrangler:generate": "bunx develit wrangler:generate --types",
|
|
40
40
|
"db:init": "wrangler d1 execute develit-bank --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
41
41
|
"db:generate": "drizzle-kit generate",
|
|
42
42
|
"db:migrate": "drizzle-kit migrate",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"drizzle-kit": "*",
|
|
61
61
|
"drizzle-orm": "*",
|
|
62
62
|
"drizzle-seed": "*",
|
|
63
|
-
"wrangler": "
|
|
64
|
-
"zod": "
|
|
63
|
+
"wrangler": "4.50.0",
|
|
64
|
+
"zod": "4.1.13"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"date-fns": "^4.1.0",
|