@develit-services/bank 0.1.6 → 0.1.7

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.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const export_workflows = require('../shared/bank.CrqX5SOO.cjs');
3
+ const export_workflows = require('../shared/bank.B3isylGM.cjs');
4
4
  const backendSdk = require('@develit-io/backend-sdk');
5
5
  const cloudflare_workers = require('cloudflare:workers');
6
6
  const d1 = require('drizzle-orm/d1');
@@ -1,5 +1,5 @@
1
- import { g as getPaymentsByBankRefIdsQuery, u as updatePaymentCommand, c as createPaymentCommand, a as updateAccountLastSyncCommand, b as getCredentialsByAccountId, i as initiateConnector } from '../shared/bank.B7_g0cO5.mjs';
2
- export { w as BankWorkflows } from '../shared/bank.B7_g0cO5.mjs';
1
+ import { g as getPaymentsByBankRefIdsQuery, u as updatePaymentCommand, c as createPaymentCommand, a as updateAccountLastSyncCommand, b as getCredentialsByAccountId, i as initiateConnector } from '../shared/bank.JtGSu6eH.mjs';
2
+ export { w as BankWorkflows } from '../shared/bank.JtGSu6eH.mjs';
3
3
  import { uuidv4, bankAccountMetadataSchema, workflowInstanceStatusSchema, develitWorker, createInternalError, first, action, service } from '@develit-io/backend-sdk';
4
4
  import { WorkerEntrypoint } from 'cloudflare:workers';
5
5
  import { drizzle } from 'drizzle-orm/d1';
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const export_workflows = require('../shared/bank.CrqX5SOO.cjs');
3
+ const export_workflows = require('../shared/bank.B3isylGM.cjs');
4
4
  require('cloudflare:workers');
5
5
  require('cloudflare:workflows');
6
6
  require('drizzle-orm/d1');
@@ -1,4 +1,4 @@
1
- export { S as SyncAccountPaymentsWorkflow } from '../shared/bank.B7_g0cO5.mjs';
1
+ export { S as SyncAccountPaymentsWorkflow } from '../shared/bank.JtGSu6eH.mjs';
2
2
  import 'cloudflare:workers';
3
3
  import 'cloudflare:workflows';
4
4
  import 'drizzle-orm/d1';
@@ -142,9 +142,7 @@ class SyncAccountPaymentsWorkflow extends cloudflare_workers.WorkflowEntrypoint
142
142
  return account2;
143
143
  });
144
144
  if (!account.lastSyncedAt) {
145
- throw new cloudflare_workflows.NonRetryableError(
146
- `lastSyncedAt is not set for account: ${accountId}`
147
- );
145
+ throw new Error(`lastSyncedAt is not set for account: ${accountId}`);
148
146
  }
149
147
  const credentials = await step.do(
150
148
  "load account credentials",
@@ -140,9 +140,7 @@ class SyncAccountPaymentsWorkflow extends WorkflowEntrypoint {
140
140
  return account2;
141
141
  });
142
142
  if (!account.lastSyncedAt) {
143
- throw new NonRetryableError(
144
- `lastSyncedAt is not set for account: ${accountId}`
145
- );
143
+ throw new Error(`lastSyncedAt is not set for account: ${accountId}`);
146
144
  }
147
145
  const credentials = await step.do(
148
146
  "load account credentials",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {