@develit-services/bank 4.4.0 → 5.0.1

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/package.json CHANGED
@@ -1,18 +1,13 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "4.4.0",
3
+ "version": "5.0.1",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
7
- "./wrangler": {
8
- "types": "./dist/export/wrangler.d.ts",
9
- "import": "./dist/export/wrangler.mjs",
10
- "require": "./dist/export/wrangler.cjs"
11
- },
12
- "./worker": {
13
- "types": "./dist/export/worker.d.ts",
14
- "import": "./dist/export/worker.mjs",
15
- "require": "./dist/export/worker.cjs"
7
+ "./base": {
8
+ "types": "./dist/base.d.ts",
9
+ "import": "./dist/base.mjs",
10
+ "require": "./dist/base.cjs"
16
11
  },
17
12
  "./workflows": {
18
13
  "types": "./dist/export/workflows.d.ts",
@@ -29,7 +24,12 @@
29
24
  "import": "./dist/types.mjs",
30
25
  "require": "./dist/types.cjs"
31
26
  },
32
- "./package.json": "./package.json"
27
+ "./package.json": "./package.json",
28
+ "./service": {
29
+ "types": "./dist/service.d.ts",
30
+ "import": "./dist/service.mjs",
31
+ "require": "./dist/service.cjs"
32
+ }
33
33
  },
34
34
  "files": [
35
35
  "./dist"
@@ -60,6 +60,7 @@
60
60
  "@develit-io/backend-sdk": "^11.0.2",
61
61
  "@develit-io/general-codes": "^1.19.0",
62
62
  "drizzle-orm": "^1.0.0-rc.1",
63
- "zod": "^4.1.13"
63
+ "zod": "^4.1.13",
64
+ "@develit-io/platform-sdk": "^4.7.2"
64
65
  }
65
66
  }
@@ -1,75 +0,0 @@
1
- 'use strict';
2
-
3
- const backendSdk = require('@develit-io/backend-sdk');
4
-
5
- function defineBankServiceWrangler(config) {
6
- const { project, name, vars, d1, triggers, kv, queues } = config;
7
- const base = {
8
- ...backendSdk.composeWranglerBase({
9
- project,
10
- name
11
- }),
12
- vars: {
13
- ENVIRONMENT: "localhost",
14
- ...vars
15
- },
16
- services: [
17
- {
18
- binding: "SECRETS_STORE",
19
- service: `${project}-secrets-store`
20
- }
21
- ],
22
- triggers,
23
- kv_namespaces: [
24
- {
25
- binding: "BANK_KV",
26
- id: kv.id
27
- }
28
- ],
29
- d1_databases: [
30
- {
31
- binding: "BANK_D1",
32
- database_name: `${project}-bank`,
33
- database_id: d1.id,
34
- migrations_dir: "./src/database/migrations"
35
- }
36
- ],
37
- workflows: [
38
- {
39
- name: `${project}-bank-sync-account-payments`,
40
- binding: "SYNC_ACCOUNT_PAYMENTS_WORKFLOW",
41
- class_name: "BankSyncAccountPayments",
42
- limits: {
43
- steps: 25e3
44
- }
45
- },
46
- {
47
- name: `${project}-bank-process-batch`,
48
- binding: "PROCESS_BATCH_WORKFLOW",
49
- class_name: "BankProcessBatch"
50
- }
51
- ],
52
- vpc_services: [
53
- {
54
- binding: "DBU_CBS_BACKOFFICE_DEV",
55
- service_id: "019c2962-172c-75a2-a000-b76e246d25d7",
56
- remote: true
57
- }
58
- ],
59
- queues: {
60
- producers: [
61
- {
62
- binding: queues.producers.bus.binding,
63
- queue: `${project}-${queues.producers.bus.queue}`
64
- },
65
- {
66
- binding: "NOTIFICATIONS_QUEUE",
67
- queue: `${project}-notifications`
68
- }
69
- ]
70
- }
71
- };
72
- return base;
73
- }
74
-
75
- exports.defineBankServiceWrangler = defineBankServiceWrangler;
@@ -1,80 +0,0 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.cjs';
2
-
3
- declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- vars: {
5
- VERSION: string;
6
- ERSTE_AUTH_URI: "https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp";
7
- ERSTE_PAYMENTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments";
8
- ERSTE_ACCOUNTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts";
9
- FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
- FINBRICKS_MERCHANT_ID: string;
11
- CRON_PAYMENT_STATUSES: string;
12
- CRON_SYNC_WORKFLOW_HEARTBEAT: string;
13
- BANK_AUTH_RECIPIENT: string;
14
- DBUCS_BASE_URI: string;
15
- DBUCS_USERNAME: string;
16
- DBUCS_APPLICATION_CODE: string;
17
- DBUCS_TX_AUTH_URI: string;
18
- REDIRECT_URI: string;
19
- SYNC_WORKFLOW_RESET_AFTER_ITERATIONS: string;
20
- ENVIRONMENT: string;
21
- };
22
- services: {
23
- binding: string;
24
- service: string;
25
- }[];
26
- triggers: {
27
- crons: string[];
28
- };
29
- kv_namespaces: {
30
- binding: string;
31
- id: string;
32
- }[];
33
- d1_databases: {
34
- binding: string;
35
- database_name: string;
36
- database_id: string;
37
- migrations_dir: string;
38
- }[];
39
- workflows: ({
40
- name: string;
41
- binding: string;
42
- class_name: string;
43
- limits: {
44
- steps: number;
45
- };
46
- } | {
47
- name: string;
48
- binding: string;
49
- class_name: string;
50
- limits?: undefined;
51
- })[];
52
- vpc_services: {
53
- binding: string;
54
- service_id: string;
55
- remote: boolean;
56
- }[];
57
- queues: {
58
- producers: {
59
- binding: string;
60
- queue: string;
61
- }[];
62
- };
63
- $schema: string;
64
- name: string;
65
- main: string;
66
- compatibility_date: string;
67
- compatibility_flags: string[];
68
- observability: {
69
- enabled: boolean;
70
- head_sampling_rate: number;
71
- logs: {
72
- enabled: boolean;
73
- invocation_logs: boolean;
74
- };
75
- };
76
- workers_dev: boolean;
77
- keep_vars: boolean;
78
- };
79
-
80
- export { defineBankServiceWrangler };
@@ -1,80 +0,0 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.mjs';
2
-
3
- declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- vars: {
5
- VERSION: string;
6
- ERSTE_AUTH_URI: "https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp";
7
- ERSTE_PAYMENTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments";
8
- ERSTE_ACCOUNTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts";
9
- FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
- FINBRICKS_MERCHANT_ID: string;
11
- CRON_PAYMENT_STATUSES: string;
12
- CRON_SYNC_WORKFLOW_HEARTBEAT: string;
13
- BANK_AUTH_RECIPIENT: string;
14
- DBUCS_BASE_URI: string;
15
- DBUCS_USERNAME: string;
16
- DBUCS_APPLICATION_CODE: string;
17
- DBUCS_TX_AUTH_URI: string;
18
- REDIRECT_URI: string;
19
- SYNC_WORKFLOW_RESET_AFTER_ITERATIONS: string;
20
- ENVIRONMENT: string;
21
- };
22
- services: {
23
- binding: string;
24
- service: string;
25
- }[];
26
- triggers: {
27
- crons: string[];
28
- };
29
- kv_namespaces: {
30
- binding: string;
31
- id: string;
32
- }[];
33
- d1_databases: {
34
- binding: string;
35
- database_name: string;
36
- database_id: string;
37
- migrations_dir: string;
38
- }[];
39
- workflows: ({
40
- name: string;
41
- binding: string;
42
- class_name: string;
43
- limits: {
44
- steps: number;
45
- };
46
- } | {
47
- name: string;
48
- binding: string;
49
- class_name: string;
50
- limits?: undefined;
51
- })[];
52
- vpc_services: {
53
- binding: string;
54
- service_id: string;
55
- remote: boolean;
56
- }[];
57
- queues: {
58
- producers: {
59
- binding: string;
60
- queue: string;
61
- }[];
62
- };
63
- $schema: string;
64
- name: string;
65
- main: string;
66
- compatibility_date: string;
67
- compatibility_flags: string[];
68
- observability: {
69
- enabled: boolean;
70
- head_sampling_rate: number;
71
- logs: {
72
- enabled: boolean;
73
- invocation_logs: boolean;
74
- };
75
- };
76
- workers_dev: boolean;
77
- keep_vars: boolean;
78
- };
79
-
80
- export { defineBankServiceWrangler };
@@ -1,80 +0,0 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.DyZBd2qL.js';
2
-
3
- declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- vars: {
5
- VERSION: string;
6
- ERSTE_AUTH_URI: "https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp";
7
- ERSTE_PAYMENTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments";
8
- ERSTE_ACCOUNTS_URI: "https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts";
9
- FINBRICKS_BASE_URI: "https://api.sandbox.finbricks.com";
10
- FINBRICKS_MERCHANT_ID: string;
11
- CRON_PAYMENT_STATUSES: string;
12
- CRON_SYNC_WORKFLOW_HEARTBEAT: string;
13
- BANK_AUTH_RECIPIENT: string;
14
- DBUCS_BASE_URI: string;
15
- DBUCS_USERNAME: string;
16
- DBUCS_APPLICATION_CODE: string;
17
- DBUCS_TX_AUTH_URI: string;
18
- REDIRECT_URI: string;
19
- SYNC_WORKFLOW_RESET_AFTER_ITERATIONS: string;
20
- ENVIRONMENT: string;
21
- };
22
- services: {
23
- binding: string;
24
- service: string;
25
- }[];
26
- triggers: {
27
- crons: string[];
28
- };
29
- kv_namespaces: {
30
- binding: string;
31
- id: string;
32
- }[];
33
- d1_databases: {
34
- binding: string;
35
- database_name: string;
36
- database_id: string;
37
- migrations_dir: string;
38
- }[];
39
- workflows: ({
40
- name: string;
41
- binding: string;
42
- class_name: string;
43
- limits: {
44
- steps: number;
45
- };
46
- } | {
47
- name: string;
48
- binding: string;
49
- class_name: string;
50
- limits?: undefined;
51
- })[];
52
- vpc_services: {
53
- binding: string;
54
- service_id: string;
55
- remote: boolean;
56
- }[];
57
- queues: {
58
- producers: {
59
- binding: string;
60
- queue: string;
61
- }[];
62
- };
63
- $schema: string;
64
- name: string;
65
- main: string;
66
- compatibility_date: string;
67
- compatibility_flags: string[];
68
- observability: {
69
- enabled: boolean;
70
- head_sampling_rate: number;
71
- logs: {
72
- enabled: boolean;
73
- invocation_logs: boolean;
74
- };
75
- };
76
- workers_dev: boolean;
77
- keep_vars: boolean;
78
- };
79
-
80
- export { defineBankServiceWrangler };
@@ -1,73 +0,0 @@
1
- import { composeWranglerBase } from '@develit-io/backend-sdk';
2
-
3
- function defineBankServiceWrangler(config) {
4
- const { project, name, vars, d1, triggers, kv, queues } = config;
5
- const base = {
6
- ...composeWranglerBase({
7
- project,
8
- name
9
- }),
10
- vars: {
11
- ENVIRONMENT: "localhost",
12
- ...vars
13
- },
14
- services: [
15
- {
16
- binding: "SECRETS_STORE",
17
- service: `${project}-secrets-store`
18
- }
19
- ],
20
- triggers,
21
- kv_namespaces: [
22
- {
23
- binding: "BANK_KV",
24
- id: kv.id
25
- }
26
- ],
27
- d1_databases: [
28
- {
29
- binding: "BANK_D1",
30
- database_name: `${project}-bank`,
31
- database_id: d1.id,
32
- migrations_dir: "./src/database/migrations"
33
- }
34
- ],
35
- workflows: [
36
- {
37
- name: `${project}-bank-sync-account-payments`,
38
- binding: "SYNC_ACCOUNT_PAYMENTS_WORKFLOW",
39
- class_name: "BankSyncAccountPayments",
40
- limits: {
41
- steps: 25e3
42
- }
43
- },
44
- {
45
- name: `${project}-bank-process-batch`,
46
- binding: "PROCESS_BATCH_WORKFLOW",
47
- class_name: "BankProcessBatch"
48
- }
49
- ],
50
- vpc_services: [
51
- {
52
- binding: "DBU_CBS_BACKOFFICE_DEV",
53
- service_id: "019c2962-172c-75a2-a000-b76e246d25d7",
54
- remote: true
55
- }
56
- ],
57
- queues: {
58
- producers: [
59
- {
60
- binding: queues.producers.bus.binding,
61
- queue: `${project}-${queues.producers.bus.queue}`
62
- },
63
- {
64
- binding: "NOTIFICATIONS_QUEUE",
65
- queue: `${project}-notifications`
66
- }
67
- ]
68
- }
69
- };
70
- return base;
71
- }
72
-
73
- export { defineBankServiceWrangler };
@@ -1,43 +0,0 @@
1
- interface BankServiceWranglerConfig {
2
- project: string;
3
- name: string;
4
- vars: {
5
- VERSION: string;
6
- ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
7
- ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
8
- ERSTE_ACCOUNTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts';
9
- FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
- FINBRICKS_MERCHANT_ID: string;
11
- CRON_PAYMENT_STATUSES: string;
12
- CRON_SYNC_WORKFLOW_HEARTBEAT: string;
13
- BANK_AUTH_RECIPIENT: string;
14
- DBUCS_BASE_URI: string;
15
- DBUCS_USERNAME: string;
16
- DBUCS_APPLICATION_CODE: string;
17
- DBUCS_TX_AUTH_URI: string;
18
- REDIRECT_URI: string;
19
- SYNC_WORKFLOW_RESET_AFTER_ITERATIONS: string;
20
- [key: string]: string | boolean;
21
- };
22
- triggers: {
23
- crons: string[];
24
- };
25
- d1: {
26
- id: string;
27
- };
28
- kv: {
29
- id: string;
30
- };
31
- queues: {
32
- producers: {
33
- bus: {
34
- binding: string;
35
- queue: string;
36
- };
37
- };
38
- };
39
- }
40
- interface BankServiceEnv extends BankEnv {
41
- }
42
-
43
- export type { BankServiceWranglerConfig as B, BankServiceEnv as a };
@@ -1,43 +0,0 @@
1
- interface BankServiceWranglerConfig {
2
- project: string;
3
- name: string;
4
- vars: {
5
- VERSION: string;
6
- ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
7
- ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
8
- ERSTE_ACCOUNTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts';
9
- FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
- FINBRICKS_MERCHANT_ID: string;
11
- CRON_PAYMENT_STATUSES: string;
12
- CRON_SYNC_WORKFLOW_HEARTBEAT: string;
13
- BANK_AUTH_RECIPIENT: string;
14
- DBUCS_BASE_URI: string;
15
- DBUCS_USERNAME: string;
16
- DBUCS_APPLICATION_CODE: string;
17
- DBUCS_TX_AUTH_URI: string;
18
- REDIRECT_URI: string;
19
- SYNC_WORKFLOW_RESET_AFTER_ITERATIONS: string;
20
- [key: string]: string | boolean;
21
- };
22
- triggers: {
23
- crons: string[];
24
- };
25
- d1: {
26
- id: string;
27
- };
28
- kv: {
29
- id: string;
30
- };
31
- queues: {
32
- producers: {
33
- bus: {
34
- binding: string;
35
- queue: string;
36
- };
37
- };
38
- };
39
- }
40
- interface BankServiceEnv extends BankEnv {
41
- }
42
-
43
- export type { BankServiceWranglerConfig as B, BankServiceEnv as a };
@@ -1,43 +0,0 @@
1
- interface BankServiceWranglerConfig {
2
- project: string;
3
- name: string;
4
- vars: {
5
- VERSION: string;
6
- ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
7
- ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
8
- ERSTE_ACCOUNTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v3/accounts';
9
- FINBRICKS_BASE_URI: 'https://api.sandbox.finbricks.com';
10
- FINBRICKS_MERCHANT_ID: string;
11
- CRON_PAYMENT_STATUSES: string;
12
- CRON_SYNC_WORKFLOW_HEARTBEAT: string;
13
- BANK_AUTH_RECIPIENT: string;
14
- DBUCS_BASE_URI: string;
15
- DBUCS_USERNAME: string;
16
- DBUCS_APPLICATION_CODE: string;
17
- DBUCS_TX_AUTH_URI: string;
18
- REDIRECT_URI: string;
19
- SYNC_WORKFLOW_RESET_AFTER_ITERATIONS: string;
20
- [key: string]: string | boolean;
21
- };
22
- triggers: {
23
- crons: string[];
24
- };
25
- d1: {
26
- id: string;
27
- };
28
- kv: {
29
- id: string;
30
- };
31
- queues: {
32
- producers: {
33
- bus: {
34
- binding: string;
35
- queue: string;
36
- };
37
- };
38
- };
39
- }
40
- interface BankServiceEnv extends BankEnv {
41
- }
42
-
43
- export type { BankServiceWranglerConfig as B, BankServiceEnv as a };