@vario-software/vario-app-framework-backend 2026.16.0 → 2026.17.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/migrator.js +28 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vario-software/vario-app-framework-backend",
3
- "version": "2026.16.0",
3
+ "version": "2026.17.0",
4
4
  "repository": "https://github.com/vario-software/vario-app-framework",
5
5
  "author": "VARIO Software AG",
6
6
  "homepage": "https://www.vario.ag",
package/utils/migrator.js CHANGED
@@ -351,6 +351,34 @@ const Migrator = class
351
351
  return finance;
352
352
  },
353
353
 
354
+ createBankBackend: async (label, backendType = 'APP') =>
355
+ {
356
+ const { data: bankBackend } = await this.ApiAdapter.fetch('/erp/bank/backend', {
357
+ method: 'POST',
358
+ body: JSON.stringify({
359
+ label,
360
+ appId: this.app.client.appIdentifier,
361
+ backendType,
362
+ }),
363
+ });
364
+
365
+ await this.methods.log(`Bank Backend with id "${bankBackend.id}" successfully created\n`);
366
+
367
+ return bankBackend;
368
+ },
369
+
370
+ changeBankBackend: async (id, body) =>
371
+ {
372
+ const { data: bankBackend } = await this.ApiAdapter.fetch(`/erp/bank/backend/${id}`, {
373
+ method: 'PUT',
374
+ body: JSON.stringify(body),
375
+ });
376
+
377
+ await this.methods.log(`Bank Backend with id "${bankBackend.id}" successfully updated\n`);
378
+
379
+ return bankBackend;
380
+ },
381
+
354
382
  getMultipartImportPreset: async id =>
355
383
  {
356
384
  const { data: importMultipartPreset } = await this.ApiAdapter.fetch(