@develit-services/bank 4.2.1 → 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.
@@ -15,7 +15,6 @@ 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",
@@ -1038,7 +1037,7 @@ let BankServiceBase = class extends backendSdk.develitWorker(cloudflare_workers.
1038
1037
  await this.updatePaymentRequestStatuses();
1039
1038
  return;
1040
1039
  }
1041
- if (controller.cron === SYNC_WORKFLOW_HEARTBEAT_CRON) {
1040
+ if (controller.cron === this.env.CRON_SYNC_WORKFLOW_HEARTBEAT) {
1042
1041
  console.log("Scheduled CRON sync workflow heartbeat");
1043
1042
  await this.heartbeatSyncWorkflows();
1044
1043
  }
@@ -13,7 +13,6 @@ import { h as encrypt, d as createCredentialsResolver, e as updatePaymentRequest
13
13
  import 'drizzle-orm/zod';
14
14
  import 'drizzle-orm/sqlite-core';
15
15
 
16
- const SYNC_WORKFLOW_HEARTBEAT_CRON = "0 */8 * * *";
17
16
  const DEAD_STATUSES = /* @__PURE__ */ new Set([
18
17
  "complete",
19
18
  "terminated",
@@ -1036,7 +1035,7 @@ let BankServiceBase = class extends develitWorker(WorkerEntrypoint) {
1036
1035
  await this.updatePaymentRequestStatuses();
1037
1036
  return;
1038
1037
  }
1039
- if (controller.cron === SYNC_WORKFLOW_HEARTBEAT_CRON) {
1038
+ if (controller.cron === this.env.CRON_SYNC_WORKFLOW_HEARTBEAT) {
1040
1039
  console.log("Scheduled CRON sync workflow heartbeat");
1041
1040
  await this.heartbeatSyncWorkflows();
1042
1041
  }
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.Dq24vYU7.cjs';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.cjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -9,6 +9,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
9
9
  FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.Dq24vYU7.mjs';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.mjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -9,6 +9,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
9
9
  FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.Dq24vYU7.js';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.js';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -9,6 +9,7 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
9
9
  FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -9,6 +9,7 @@ interface BankServiceWranglerConfig {
9
9
  FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -9,6 +9,7 @@ interface BankServiceWranglerConfig {
9
9
  FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
@@ -9,6 +9,7 @@ interface BankServiceWranglerConfig {
9
9
  FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
10
  FINBRICKS_MERCHANT_ID: string;
11
11
  CRON_PAYMENT_STATUSES: string;
12
+ CRON_SYNC_WORKFLOW_HEARTBEAT: string;
12
13
  BANK_AUTH_RECIPIENT: string;
13
14
  DBUCS_BASE_URI: string;
14
15
  DBUCS_USERNAME: string;
package/dist/types.d.cts CHANGED
@@ -3,7 +3,7 @@ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCr
3
3
  import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.mHFTrKBv.cjs';
4
4
  export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.mHFTrKBv.cjs';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.cjs';
6
+ export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.cjs';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
9
9
  import * as drizzle_orm from 'drizzle-orm';
package/dist/types.d.mts CHANGED
@@ -3,7 +3,7 @@ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCr
3
3
  import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BnCJmT6k.mjs';
4
4
  export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.BnCJmT6k.mjs';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.mjs';
6
+ export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.mjs';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
9
9
  import * as drizzle_orm from 'drizzle-orm';
package/dist/types.d.ts CHANGED
@@ -3,7 +3,7 @@ export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCr
3
3
  import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BmX_IG66.js';
4
4
  export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.BmX_IG66.js';
5
5
  import { z } from 'zod';
6
- export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.Dq24vYU7.js';
6
+ export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.js';
7
7
  import { BaseEvent } from '@develit-io/backend-sdk';
8
8
  import * as drizzle_orm_zod from 'drizzle-orm/zod';
9
9
  import * as drizzle_orm from 'drizzle-orm';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {