@develit-services/bank 0.0.10 → 0.0.12
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/wrangler.cjs
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
function defineBankServiceWrangler(config) {
|
|
4
4
|
const { project, name, envs } = config;
|
|
5
5
|
const base = {
|
|
6
|
+
$schema: "../../node_modules/wrangler/config-schema.json",
|
|
6
7
|
name: `${project}-${name}`,
|
|
7
8
|
main: "./src/index.ts",
|
|
8
9
|
compatibility_date: "2025-06-04",
|
|
@@ -11,11 +12,13 @@ function defineBankServiceWrangler(config) {
|
|
|
11
12
|
enabled: true,
|
|
12
13
|
head_sampling_rate: 1,
|
|
13
14
|
logs: {
|
|
15
|
+
enabled: true,
|
|
14
16
|
invocation_logs: false
|
|
15
17
|
}
|
|
16
18
|
},
|
|
17
19
|
preview_urls: false,
|
|
18
20
|
workers_dev: false,
|
|
21
|
+
keep_vars: true,
|
|
19
22
|
vars: {
|
|
20
23
|
// Secrets
|
|
21
24
|
FINBRICKS_PRIVATE_KEY_PEM: "[SECRET]",
|
|
@@ -85,12 +88,6 @@ function defineBankServiceWrangler(config) {
|
|
|
85
88
|
ENVIRONMENT: envName
|
|
86
89
|
},
|
|
87
90
|
triggers: envs.local.triggers,
|
|
88
|
-
kv_namespaces: [
|
|
89
|
-
{
|
|
90
|
-
binding: "BANK_KV",
|
|
91
|
-
id: envCfg.kv.id
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
91
|
d1_databases: [
|
|
95
92
|
{
|
|
96
93
|
binding: "BANK_D1",
|
|
@@ -98,31 +95,7 @@ function defineBankServiceWrangler(config) {
|
|
|
98
95
|
database_id: envCfg.d1.id,
|
|
99
96
|
migrations_dir: "./src/database/migrations"
|
|
100
97
|
}
|
|
101
|
-
]
|
|
102
|
-
queues: {
|
|
103
|
-
producers: [
|
|
104
|
-
{
|
|
105
|
-
binding: "PAYMENTS_READY_TO_BATCH_QUEUE",
|
|
106
|
-
queue: `${project}-payments-ready-to-batch-${envName}`
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
binding: "QUEUE_BUS_QUEUE",
|
|
110
|
-
queue: `${project}-queue-bus-${envName}`
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
binding: "NOTIFICATIONS_QUEUE",
|
|
114
|
-
queue: `${project}-notifications-${envName}`
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
consumers: [
|
|
118
|
-
{
|
|
119
|
-
queue: `${project}-payments-ready-to-batch-${envName}`,
|
|
120
|
-
max_batch_size: envCfg.queue?.max_batch_size ?? 1,
|
|
121
|
-
max_batch_timeout: envCfg.queue?.max_batch_timeout ?? 5,
|
|
122
|
-
dead_letter_queue: `${project}-payments-ready-to-batch-dlq-${envName}`
|
|
123
|
-
}
|
|
124
|
-
]
|
|
125
|
-
}
|
|
98
|
+
]
|
|
126
99
|
};
|
|
127
100
|
}
|
|
128
101
|
return base;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.cjs';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
|
+
$schema: string;
|
|
4
5
|
name: string;
|
|
5
6
|
main: string;
|
|
6
7
|
compatibility_date: string;
|
|
@@ -9,11 +10,13 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
9
10
|
enabled: boolean;
|
|
10
11
|
head_sampling_rate: number;
|
|
11
12
|
logs: {
|
|
13
|
+
enabled: boolean;
|
|
12
14
|
invocation_logs: boolean;
|
|
13
15
|
};
|
|
14
16
|
};
|
|
15
17
|
preview_urls: boolean;
|
|
16
18
|
workers_dev: boolean;
|
|
19
|
+
keep_vars: boolean;
|
|
17
20
|
vars: {
|
|
18
21
|
ENVIRONMENT: string;
|
|
19
22
|
ERSTE_REDIRECT_URI: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.mjs';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
|
+
$schema: string;
|
|
4
5
|
name: string;
|
|
5
6
|
main: string;
|
|
6
7
|
compatibility_date: string;
|
|
@@ -9,11 +10,13 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
9
10
|
enabled: boolean;
|
|
10
11
|
head_sampling_rate: number;
|
|
11
12
|
logs: {
|
|
13
|
+
enabled: boolean;
|
|
12
14
|
invocation_logs: boolean;
|
|
13
15
|
};
|
|
14
16
|
};
|
|
15
17
|
preview_urls: boolean;
|
|
16
18
|
workers_dev: boolean;
|
|
19
|
+
keep_vars: boolean;
|
|
17
20
|
vars: {
|
|
18
21
|
ENVIRONMENT: string;
|
|
19
22
|
ERSTE_REDIRECT_URI: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.js';
|
|
2
2
|
|
|
3
3
|
declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
4
|
+
$schema: string;
|
|
4
5
|
name: string;
|
|
5
6
|
main: string;
|
|
6
7
|
compatibility_date: string;
|
|
@@ -9,11 +10,13 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
|
|
|
9
10
|
enabled: boolean;
|
|
10
11
|
head_sampling_rate: number;
|
|
11
12
|
logs: {
|
|
13
|
+
enabled: boolean;
|
|
12
14
|
invocation_logs: boolean;
|
|
13
15
|
};
|
|
14
16
|
};
|
|
15
17
|
preview_urls: boolean;
|
|
16
18
|
workers_dev: boolean;
|
|
19
|
+
keep_vars: boolean;
|
|
17
20
|
vars: {
|
|
18
21
|
ENVIRONMENT: string;
|
|
19
22
|
ERSTE_REDIRECT_URI: string;
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
function defineBankServiceWrangler(config) {
|
|
2
2
|
const { project, name, envs } = config;
|
|
3
3
|
const base = {
|
|
4
|
+
$schema: "../../node_modules/wrangler/config-schema.json",
|
|
4
5
|
name: `${project}-${name}`,
|
|
5
6
|
main: "./src/index.ts",
|
|
6
7
|
compatibility_date: "2025-06-04",
|
|
@@ -9,11 +10,13 @@ function defineBankServiceWrangler(config) {
|
|
|
9
10
|
enabled: true,
|
|
10
11
|
head_sampling_rate: 1,
|
|
11
12
|
logs: {
|
|
13
|
+
enabled: true,
|
|
12
14
|
invocation_logs: false
|
|
13
15
|
}
|
|
14
16
|
},
|
|
15
17
|
preview_urls: false,
|
|
16
18
|
workers_dev: false,
|
|
19
|
+
keep_vars: true,
|
|
17
20
|
vars: {
|
|
18
21
|
// Secrets
|
|
19
22
|
FINBRICKS_PRIVATE_KEY_PEM: "[SECRET]",
|
|
@@ -83,12 +86,6 @@ function defineBankServiceWrangler(config) {
|
|
|
83
86
|
ENVIRONMENT: envName
|
|
84
87
|
},
|
|
85
88
|
triggers: envs.local.triggers,
|
|
86
|
-
kv_namespaces: [
|
|
87
|
-
{
|
|
88
|
-
binding: "BANK_KV",
|
|
89
|
-
id: envCfg.kv.id
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
89
|
d1_databases: [
|
|
93
90
|
{
|
|
94
91
|
binding: "BANK_D1",
|
|
@@ -96,31 +93,7 @@ function defineBankServiceWrangler(config) {
|
|
|
96
93
|
database_id: envCfg.d1.id,
|
|
97
94
|
migrations_dir: "./src/database/migrations"
|
|
98
95
|
}
|
|
99
|
-
]
|
|
100
|
-
queues: {
|
|
101
|
-
producers: [
|
|
102
|
-
{
|
|
103
|
-
binding: "PAYMENTS_READY_TO_BATCH_QUEUE",
|
|
104
|
-
queue: `${project}-payments-ready-to-batch-${envName}`
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
binding: "QUEUE_BUS_QUEUE",
|
|
108
|
-
queue: `${project}-queue-bus-${envName}`
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
binding: "NOTIFICATIONS_QUEUE",
|
|
112
|
-
queue: `${project}-notifications-${envName}`
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
consumers: [
|
|
116
|
-
{
|
|
117
|
-
queue: `${project}-payments-ready-to-batch-${envName}`,
|
|
118
|
-
max_batch_size: envCfg.queue?.max_batch_size ?? 1,
|
|
119
|
-
max_batch_timeout: envCfg.queue?.max_batch_timeout ?? 5,
|
|
120
|
-
dead_letter_queue: `${project}-payments-ready-to-batch-dlq-${envName}`
|
|
121
|
-
}
|
|
122
|
-
]
|
|
123
|
-
}
|
|
96
|
+
]
|
|
124
97
|
};
|
|
125
98
|
}
|
|
126
99
|
return base;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"drizzle-kit": "^0.31.5",
|
|
55
55
|
"drizzle-orm": "^0.44.6",
|
|
56
56
|
"drizzle-seed": "^0.3.1",
|
|
57
|
-
"wrangler": "^4.
|
|
57
|
+
"wrangler": "^4.43.0",
|
|
58
58
|
"zod": "^4.1.12"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|