@develit-services/bank 4.4.0 → 5.0.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.
- package/dist/{export/worker.cjs → base.cjs} +27 -27
- package/dist/{export/worker.d.ts → base.d.cts} +16 -16
- package/dist/{export/worker.d.mts → base.d.mts} +16 -16
- package/dist/{export/worker.d.cts → base.d.ts} +16 -16
- package/dist/{export/worker.mjs → base.mjs} +4 -4
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/service.cjs +40 -0
- package/dist/service.d.cts +222 -0
- package/dist/service.d.mts +222 -0
- package/dist/service.d.ts +222 -0
- package/dist/service.mjs +37 -0
- package/dist/shared/{bank.BnCJmT6k.d.mts → bank.C-edstpR.d.cts} +1 -1
- package/dist/shared/{bank.mHFTrKBv.d.cts → bank.C6BQDtpF.d.mts} +1 -1
- package/dist/shared/{bank.BCqBwSKC.d.cts → bank.Do1KUeDr.d.cts} +4 -4
- package/dist/shared/{bank.BCqBwSKC.d.mts → bank.Do1KUeDr.d.mts} +4 -4
- package/dist/shared/{bank.BCqBwSKC.d.ts → bank.Do1KUeDr.d.ts} +4 -4
- package/dist/shared/{bank.BmX_IG66.d.ts → bank.pZQAWlIB.d.ts} +1 -1
- package/dist/types.d.cts +4 -5
- package/dist/types.d.mts +4 -5
- package/dist/types.d.ts +4 -5
- package/package.json +13 -12
- package/dist/export/wrangler.cjs +0 -75
- package/dist/export/wrangler.d.cts +0 -80
- package/dist/export/wrangler.d.mts +0 -80
- package/dist/export/wrangler.d.ts +0 -80
- package/dist/export/wrangler.mjs +0 -73
- package/dist/shared/bank.DyZBd2qL.d.cts +0 -43
- package/dist/shared/bank.DyZBd2qL.d.mts +0 -43
- package/dist/shared/bank.DyZBd2qL.d.ts +0 -43
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as _develit_io_platform_sdk from '@develit-io/platform-sdk';
|
|
2
|
+
import { Deployment } from '@develit-io/platform-sdk';
|
|
3
|
+
import { BindingsFromDescriptor } from '@develit-io/platform-sdk/service-config';
|
|
4
|
+
|
|
5
|
+
interface BankServiceVariables {
|
|
6
|
+
ERSTE_AUTH_URI: string;
|
|
7
|
+
ERSTE_PAYMENTS_URI: string;
|
|
8
|
+
ERSTE_ACCOUNTS_URI: string;
|
|
9
|
+
FINBRICKS_BASE_URI: string;
|
|
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 | number | boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const BANK_SERVICE_BINDINGS: {
|
|
23
|
+
readonly SECRETS_STORE: {
|
|
24
|
+
readonly kind: "service";
|
|
25
|
+
readonly target: "secrets-store";
|
|
26
|
+
};
|
|
27
|
+
readonly BANK_KV: {
|
|
28
|
+
readonly kind: "kv";
|
|
29
|
+
readonly suffix: "bank";
|
|
30
|
+
};
|
|
31
|
+
readonly BANK_D1: {
|
|
32
|
+
readonly kind: "d1";
|
|
33
|
+
readonly suffix: "bank";
|
|
34
|
+
};
|
|
35
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
36
|
+
readonly kind: "queueProducer";
|
|
37
|
+
readonly suffix: "queue-bus";
|
|
38
|
+
};
|
|
39
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
40
|
+
readonly kind: "queueProducer";
|
|
41
|
+
readonly suffix: "notifications";
|
|
42
|
+
};
|
|
43
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
44
|
+
readonly kind: "workflow";
|
|
45
|
+
readonly class: "BankSyncAccountPayments";
|
|
46
|
+
readonly suffix: "bank-sync-account-payments";
|
|
47
|
+
readonly limits: {
|
|
48
|
+
readonly steps: 25000;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
52
|
+
readonly kind: "workflow";
|
|
53
|
+
readonly class: "BankProcessBatch";
|
|
54
|
+
readonly suffix: "bank-process-batch";
|
|
55
|
+
};
|
|
56
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
57
|
+
readonly kind: "vpc";
|
|
58
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare const baseBankServiceConfig: (project: string, version: string, options?: _develit_io_platform_sdk.ServiceConfigOptions<BankServiceVariables, _develit_io_platform_sdk.MiniflareIds<{
|
|
62
|
+
readonly SECRETS_STORE: {
|
|
63
|
+
readonly kind: "service";
|
|
64
|
+
readonly target: "secrets-store";
|
|
65
|
+
};
|
|
66
|
+
readonly BANK_KV: {
|
|
67
|
+
readonly kind: "kv";
|
|
68
|
+
readonly suffix: "bank";
|
|
69
|
+
};
|
|
70
|
+
readonly BANK_D1: {
|
|
71
|
+
readonly kind: "d1";
|
|
72
|
+
readonly suffix: "bank";
|
|
73
|
+
};
|
|
74
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
75
|
+
readonly kind: "queueProducer";
|
|
76
|
+
readonly suffix: "queue-bus";
|
|
77
|
+
};
|
|
78
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
79
|
+
readonly kind: "queueProducer";
|
|
80
|
+
readonly suffix: "notifications";
|
|
81
|
+
};
|
|
82
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
83
|
+
readonly kind: "workflow";
|
|
84
|
+
readonly class: "BankSyncAccountPayments";
|
|
85
|
+
readonly suffix: "bank-sync-account-payments";
|
|
86
|
+
readonly limits: {
|
|
87
|
+
readonly steps: 25000;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
91
|
+
readonly kind: "workflow";
|
|
92
|
+
readonly class: "BankProcessBatch";
|
|
93
|
+
readonly suffix: "bank-process-batch";
|
|
94
|
+
};
|
|
95
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
96
|
+
readonly kind: "vpc";
|
|
97
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
98
|
+
};
|
|
99
|
+
}>> | undefined) => _develit_io_platform_sdk.ServiceConfigWithBindings<BankServiceVariables, {
|
|
100
|
+
readonly SECRETS_STORE: {
|
|
101
|
+
readonly kind: "service";
|
|
102
|
+
readonly target: "secrets-store";
|
|
103
|
+
};
|
|
104
|
+
readonly BANK_KV: {
|
|
105
|
+
readonly kind: "kv";
|
|
106
|
+
readonly suffix: "bank";
|
|
107
|
+
};
|
|
108
|
+
readonly BANK_D1: {
|
|
109
|
+
readonly kind: "d1";
|
|
110
|
+
readonly suffix: "bank";
|
|
111
|
+
};
|
|
112
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
113
|
+
readonly kind: "queueProducer";
|
|
114
|
+
readonly suffix: "queue-bus";
|
|
115
|
+
};
|
|
116
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
117
|
+
readonly kind: "queueProducer";
|
|
118
|
+
readonly suffix: "notifications";
|
|
119
|
+
};
|
|
120
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
121
|
+
readonly kind: "workflow";
|
|
122
|
+
readonly class: "BankSyncAccountPayments";
|
|
123
|
+
readonly suffix: "bank-sync-account-payments";
|
|
124
|
+
readonly limits: {
|
|
125
|
+
readonly steps: 25000;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
129
|
+
readonly kind: "workflow";
|
|
130
|
+
readonly class: "BankProcessBatch";
|
|
131
|
+
readonly suffix: "bank-process-batch";
|
|
132
|
+
};
|
|
133
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
134
|
+
readonly kind: "vpc";
|
|
135
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
136
|
+
};
|
|
137
|
+
}, readonly []>;
|
|
138
|
+
declare function bankServiceConfig(project: string, version: string, options?: Parameters<typeof baseBankServiceConfig>[2]): ((deployment: Deployment, bindings: BindingsFromDescriptor<typeof BANK_SERVICE_BINDINGS>) => {
|
|
139
|
+
resourceName: "bank";
|
|
140
|
+
variables: BankServiceVariables;
|
|
141
|
+
bindings: BindingsFromDescriptor<{
|
|
142
|
+
readonly SECRETS_STORE: {
|
|
143
|
+
readonly kind: "service";
|
|
144
|
+
readonly target: "secrets-store";
|
|
145
|
+
};
|
|
146
|
+
readonly BANK_KV: {
|
|
147
|
+
readonly kind: "kv";
|
|
148
|
+
readonly suffix: "bank";
|
|
149
|
+
};
|
|
150
|
+
readonly BANK_D1: {
|
|
151
|
+
readonly kind: "d1";
|
|
152
|
+
readonly suffix: "bank";
|
|
153
|
+
};
|
|
154
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
155
|
+
readonly kind: "queueProducer";
|
|
156
|
+
readonly suffix: "queue-bus";
|
|
157
|
+
};
|
|
158
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
159
|
+
readonly kind: "queueProducer";
|
|
160
|
+
readonly suffix: "notifications";
|
|
161
|
+
};
|
|
162
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
163
|
+
readonly kind: "workflow";
|
|
164
|
+
readonly class: "BankSyncAccountPayments";
|
|
165
|
+
readonly suffix: "bank-sync-account-payments";
|
|
166
|
+
readonly limits: {
|
|
167
|
+
readonly steps: 25000;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
171
|
+
readonly kind: "workflow";
|
|
172
|
+
readonly class: "BankProcessBatch";
|
|
173
|
+
readonly suffix: "bank-process-batch";
|
|
174
|
+
};
|
|
175
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
176
|
+
readonly kind: "vpc";
|
|
177
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
180
|
+
crons: string[];
|
|
181
|
+
}) & _develit_io_platform_sdk.ServiceConfigWithBindings<BankServiceVariables, {
|
|
182
|
+
readonly SECRETS_STORE: {
|
|
183
|
+
readonly kind: "service";
|
|
184
|
+
readonly target: "secrets-store";
|
|
185
|
+
};
|
|
186
|
+
readonly BANK_KV: {
|
|
187
|
+
readonly kind: "kv";
|
|
188
|
+
readonly suffix: "bank";
|
|
189
|
+
};
|
|
190
|
+
readonly BANK_D1: {
|
|
191
|
+
readonly kind: "d1";
|
|
192
|
+
readonly suffix: "bank";
|
|
193
|
+
};
|
|
194
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
195
|
+
readonly kind: "queueProducer";
|
|
196
|
+
readonly suffix: "queue-bus";
|
|
197
|
+
};
|
|
198
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
199
|
+
readonly kind: "queueProducer";
|
|
200
|
+
readonly suffix: "notifications";
|
|
201
|
+
};
|
|
202
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
203
|
+
readonly kind: "workflow";
|
|
204
|
+
readonly class: "BankSyncAccountPayments";
|
|
205
|
+
readonly suffix: "bank-sync-account-payments";
|
|
206
|
+
readonly limits: {
|
|
207
|
+
readonly steps: 25000;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
211
|
+
readonly kind: "workflow";
|
|
212
|
+
readonly class: "BankProcessBatch";
|
|
213
|
+
readonly suffix: "bank-process-batch";
|
|
214
|
+
};
|
|
215
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
216
|
+
readonly kind: "vpc";
|
|
217
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
218
|
+
};
|
|
219
|
+
}, readonly []>;
|
|
220
|
+
|
|
221
|
+
export { BANK_SERVICE_BINDINGS, bankServiceConfig };
|
|
222
|
+
export type { BankServiceVariables };
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as _develit_io_platform_sdk from '@develit-io/platform-sdk';
|
|
2
|
+
import { Deployment } from '@develit-io/platform-sdk';
|
|
3
|
+
import { BindingsFromDescriptor } from '@develit-io/platform-sdk/service-config';
|
|
4
|
+
|
|
5
|
+
interface BankServiceVariables {
|
|
6
|
+
ERSTE_AUTH_URI: string;
|
|
7
|
+
ERSTE_PAYMENTS_URI: string;
|
|
8
|
+
ERSTE_ACCOUNTS_URI: string;
|
|
9
|
+
FINBRICKS_BASE_URI: string;
|
|
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 | number | boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const BANK_SERVICE_BINDINGS: {
|
|
23
|
+
readonly SECRETS_STORE: {
|
|
24
|
+
readonly kind: "service";
|
|
25
|
+
readonly target: "secrets-store";
|
|
26
|
+
};
|
|
27
|
+
readonly BANK_KV: {
|
|
28
|
+
readonly kind: "kv";
|
|
29
|
+
readonly suffix: "bank";
|
|
30
|
+
};
|
|
31
|
+
readonly BANK_D1: {
|
|
32
|
+
readonly kind: "d1";
|
|
33
|
+
readonly suffix: "bank";
|
|
34
|
+
};
|
|
35
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
36
|
+
readonly kind: "queueProducer";
|
|
37
|
+
readonly suffix: "queue-bus";
|
|
38
|
+
};
|
|
39
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
40
|
+
readonly kind: "queueProducer";
|
|
41
|
+
readonly suffix: "notifications";
|
|
42
|
+
};
|
|
43
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
44
|
+
readonly kind: "workflow";
|
|
45
|
+
readonly class: "BankSyncAccountPayments";
|
|
46
|
+
readonly suffix: "bank-sync-account-payments";
|
|
47
|
+
readonly limits: {
|
|
48
|
+
readonly steps: 25000;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
52
|
+
readonly kind: "workflow";
|
|
53
|
+
readonly class: "BankProcessBatch";
|
|
54
|
+
readonly suffix: "bank-process-batch";
|
|
55
|
+
};
|
|
56
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
57
|
+
readonly kind: "vpc";
|
|
58
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare const baseBankServiceConfig: (project: string, version: string, options?: _develit_io_platform_sdk.ServiceConfigOptions<BankServiceVariables, _develit_io_platform_sdk.MiniflareIds<{
|
|
62
|
+
readonly SECRETS_STORE: {
|
|
63
|
+
readonly kind: "service";
|
|
64
|
+
readonly target: "secrets-store";
|
|
65
|
+
};
|
|
66
|
+
readonly BANK_KV: {
|
|
67
|
+
readonly kind: "kv";
|
|
68
|
+
readonly suffix: "bank";
|
|
69
|
+
};
|
|
70
|
+
readonly BANK_D1: {
|
|
71
|
+
readonly kind: "d1";
|
|
72
|
+
readonly suffix: "bank";
|
|
73
|
+
};
|
|
74
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
75
|
+
readonly kind: "queueProducer";
|
|
76
|
+
readonly suffix: "queue-bus";
|
|
77
|
+
};
|
|
78
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
79
|
+
readonly kind: "queueProducer";
|
|
80
|
+
readonly suffix: "notifications";
|
|
81
|
+
};
|
|
82
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
83
|
+
readonly kind: "workflow";
|
|
84
|
+
readonly class: "BankSyncAccountPayments";
|
|
85
|
+
readonly suffix: "bank-sync-account-payments";
|
|
86
|
+
readonly limits: {
|
|
87
|
+
readonly steps: 25000;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
91
|
+
readonly kind: "workflow";
|
|
92
|
+
readonly class: "BankProcessBatch";
|
|
93
|
+
readonly suffix: "bank-process-batch";
|
|
94
|
+
};
|
|
95
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
96
|
+
readonly kind: "vpc";
|
|
97
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
98
|
+
};
|
|
99
|
+
}>> | undefined) => _develit_io_platform_sdk.ServiceConfigWithBindings<BankServiceVariables, {
|
|
100
|
+
readonly SECRETS_STORE: {
|
|
101
|
+
readonly kind: "service";
|
|
102
|
+
readonly target: "secrets-store";
|
|
103
|
+
};
|
|
104
|
+
readonly BANK_KV: {
|
|
105
|
+
readonly kind: "kv";
|
|
106
|
+
readonly suffix: "bank";
|
|
107
|
+
};
|
|
108
|
+
readonly BANK_D1: {
|
|
109
|
+
readonly kind: "d1";
|
|
110
|
+
readonly suffix: "bank";
|
|
111
|
+
};
|
|
112
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
113
|
+
readonly kind: "queueProducer";
|
|
114
|
+
readonly suffix: "queue-bus";
|
|
115
|
+
};
|
|
116
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
117
|
+
readonly kind: "queueProducer";
|
|
118
|
+
readonly suffix: "notifications";
|
|
119
|
+
};
|
|
120
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
121
|
+
readonly kind: "workflow";
|
|
122
|
+
readonly class: "BankSyncAccountPayments";
|
|
123
|
+
readonly suffix: "bank-sync-account-payments";
|
|
124
|
+
readonly limits: {
|
|
125
|
+
readonly steps: 25000;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
129
|
+
readonly kind: "workflow";
|
|
130
|
+
readonly class: "BankProcessBatch";
|
|
131
|
+
readonly suffix: "bank-process-batch";
|
|
132
|
+
};
|
|
133
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
134
|
+
readonly kind: "vpc";
|
|
135
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
136
|
+
};
|
|
137
|
+
}, readonly []>;
|
|
138
|
+
declare function bankServiceConfig(project: string, version: string, options?: Parameters<typeof baseBankServiceConfig>[2]): ((deployment: Deployment, bindings: BindingsFromDescriptor<typeof BANK_SERVICE_BINDINGS>) => {
|
|
139
|
+
resourceName: "bank";
|
|
140
|
+
variables: BankServiceVariables;
|
|
141
|
+
bindings: BindingsFromDescriptor<{
|
|
142
|
+
readonly SECRETS_STORE: {
|
|
143
|
+
readonly kind: "service";
|
|
144
|
+
readonly target: "secrets-store";
|
|
145
|
+
};
|
|
146
|
+
readonly BANK_KV: {
|
|
147
|
+
readonly kind: "kv";
|
|
148
|
+
readonly suffix: "bank";
|
|
149
|
+
};
|
|
150
|
+
readonly BANK_D1: {
|
|
151
|
+
readonly kind: "d1";
|
|
152
|
+
readonly suffix: "bank";
|
|
153
|
+
};
|
|
154
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
155
|
+
readonly kind: "queueProducer";
|
|
156
|
+
readonly suffix: "queue-bus";
|
|
157
|
+
};
|
|
158
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
159
|
+
readonly kind: "queueProducer";
|
|
160
|
+
readonly suffix: "notifications";
|
|
161
|
+
};
|
|
162
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
163
|
+
readonly kind: "workflow";
|
|
164
|
+
readonly class: "BankSyncAccountPayments";
|
|
165
|
+
readonly suffix: "bank-sync-account-payments";
|
|
166
|
+
readonly limits: {
|
|
167
|
+
readonly steps: 25000;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
171
|
+
readonly kind: "workflow";
|
|
172
|
+
readonly class: "BankProcessBatch";
|
|
173
|
+
readonly suffix: "bank-process-batch";
|
|
174
|
+
};
|
|
175
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
176
|
+
readonly kind: "vpc";
|
|
177
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
180
|
+
crons: string[];
|
|
181
|
+
}) & _develit_io_platform_sdk.ServiceConfigWithBindings<BankServiceVariables, {
|
|
182
|
+
readonly SECRETS_STORE: {
|
|
183
|
+
readonly kind: "service";
|
|
184
|
+
readonly target: "secrets-store";
|
|
185
|
+
};
|
|
186
|
+
readonly BANK_KV: {
|
|
187
|
+
readonly kind: "kv";
|
|
188
|
+
readonly suffix: "bank";
|
|
189
|
+
};
|
|
190
|
+
readonly BANK_D1: {
|
|
191
|
+
readonly kind: "d1";
|
|
192
|
+
readonly suffix: "bank";
|
|
193
|
+
};
|
|
194
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
195
|
+
readonly kind: "queueProducer";
|
|
196
|
+
readonly suffix: "queue-bus";
|
|
197
|
+
};
|
|
198
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
199
|
+
readonly kind: "queueProducer";
|
|
200
|
+
readonly suffix: "notifications";
|
|
201
|
+
};
|
|
202
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
203
|
+
readonly kind: "workflow";
|
|
204
|
+
readonly class: "BankSyncAccountPayments";
|
|
205
|
+
readonly suffix: "bank-sync-account-payments";
|
|
206
|
+
readonly limits: {
|
|
207
|
+
readonly steps: 25000;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
211
|
+
readonly kind: "workflow";
|
|
212
|
+
readonly class: "BankProcessBatch";
|
|
213
|
+
readonly suffix: "bank-process-batch";
|
|
214
|
+
};
|
|
215
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
216
|
+
readonly kind: "vpc";
|
|
217
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
218
|
+
};
|
|
219
|
+
}, readonly []>;
|
|
220
|
+
|
|
221
|
+
export { BANK_SERVICE_BINDINGS, bankServiceConfig };
|
|
222
|
+
export type { BankServiceVariables };
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
import * as _develit_io_platform_sdk from '@develit-io/platform-sdk';
|
|
2
|
+
import { Deployment } from '@develit-io/platform-sdk';
|
|
3
|
+
import { BindingsFromDescriptor } from '@develit-io/platform-sdk/service-config';
|
|
4
|
+
|
|
5
|
+
interface BankServiceVariables {
|
|
6
|
+
ERSTE_AUTH_URI: string;
|
|
7
|
+
ERSTE_PAYMENTS_URI: string;
|
|
8
|
+
ERSTE_ACCOUNTS_URI: string;
|
|
9
|
+
FINBRICKS_BASE_URI: string;
|
|
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 | number | boolean;
|
|
21
|
+
}
|
|
22
|
+
declare const BANK_SERVICE_BINDINGS: {
|
|
23
|
+
readonly SECRETS_STORE: {
|
|
24
|
+
readonly kind: "service";
|
|
25
|
+
readonly target: "secrets-store";
|
|
26
|
+
};
|
|
27
|
+
readonly BANK_KV: {
|
|
28
|
+
readonly kind: "kv";
|
|
29
|
+
readonly suffix: "bank";
|
|
30
|
+
};
|
|
31
|
+
readonly BANK_D1: {
|
|
32
|
+
readonly kind: "d1";
|
|
33
|
+
readonly suffix: "bank";
|
|
34
|
+
};
|
|
35
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
36
|
+
readonly kind: "queueProducer";
|
|
37
|
+
readonly suffix: "queue-bus";
|
|
38
|
+
};
|
|
39
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
40
|
+
readonly kind: "queueProducer";
|
|
41
|
+
readonly suffix: "notifications";
|
|
42
|
+
};
|
|
43
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
44
|
+
readonly kind: "workflow";
|
|
45
|
+
readonly class: "BankSyncAccountPayments";
|
|
46
|
+
readonly suffix: "bank-sync-account-payments";
|
|
47
|
+
readonly limits: {
|
|
48
|
+
readonly steps: 25000;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
52
|
+
readonly kind: "workflow";
|
|
53
|
+
readonly class: "BankProcessBatch";
|
|
54
|
+
readonly suffix: "bank-process-batch";
|
|
55
|
+
};
|
|
56
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
57
|
+
readonly kind: "vpc";
|
|
58
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
declare const baseBankServiceConfig: (project: string, version: string, options?: _develit_io_platform_sdk.ServiceConfigOptions<BankServiceVariables, _develit_io_platform_sdk.MiniflareIds<{
|
|
62
|
+
readonly SECRETS_STORE: {
|
|
63
|
+
readonly kind: "service";
|
|
64
|
+
readonly target: "secrets-store";
|
|
65
|
+
};
|
|
66
|
+
readonly BANK_KV: {
|
|
67
|
+
readonly kind: "kv";
|
|
68
|
+
readonly suffix: "bank";
|
|
69
|
+
};
|
|
70
|
+
readonly BANK_D1: {
|
|
71
|
+
readonly kind: "d1";
|
|
72
|
+
readonly suffix: "bank";
|
|
73
|
+
};
|
|
74
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
75
|
+
readonly kind: "queueProducer";
|
|
76
|
+
readonly suffix: "queue-bus";
|
|
77
|
+
};
|
|
78
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
79
|
+
readonly kind: "queueProducer";
|
|
80
|
+
readonly suffix: "notifications";
|
|
81
|
+
};
|
|
82
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
83
|
+
readonly kind: "workflow";
|
|
84
|
+
readonly class: "BankSyncAccountPayments";
|
|
85
|
+
readonly suffix: "bank-sync-account-payments";
|
|
86
|
+
readonly limits: {
|
|
87
|
+
readonly steps: 25000;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
91
|
+
readonly kind: "workflow";
|
|
92
|
+
readonly class: "BankProcessBatch";
|
|
93
|
+
readonly suffix: "bank-process-batch";
|
|
94
|
+
};
|
|
95
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
96
|
+
readonly kind: "vpc";
|
|
97
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
98
|
+
};
|
|
99
|
+
}>> | undefined) => _develit_io_platform_sdk.ServiceConfigWithBindings<BankServiceVariables, {
|
|
100
|
+
readonly SECRETS_STORE: {
|
|
101
|
+
readonly kind: "service";
|
|
102
|
+
readonly target: "secrets-store";
|
|
103
|
+
};
|
|
104
|
+
readonly BANK_KV: {
|
|
105
|
+
readonly kind: "kv";
|
|
106
|
+
readonly suffix: "bank";
|
|
107
|
+
};
|
|
108
|
+
readonly BANK_D1: {
|
|
109
|
+
readonly kind: "d1";
|
|
110
|
+
readonly suffix: "bank";
|
|
111
|
+
};
|
|
112
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
113
|
+
readonly kind: "queueProducer";
|
|
114
|
+
readonly suffix: "queue-bus";
|
|
115
|
+
};
|
|
116
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
117
|
+
readonly kind: "queueProducer";
|
|
118
|
+
readonly suffix: "notifications";
|
|
119
|
+
};
|
|
120
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
121
|
+
readonly kind: "workflow";
|
|
122
|
+
readonly class: "BankSyncAccountPayments";
|
|
123
|
+
readonly suffix: "bank-sync-account-payments";
|
|
124
|
+
readonly limits: {
|
|
125
|
+
readonly steps: 25000;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
129
|
+
readonly kind: "workflow";
|
|
130
|
+
readonly class: "BankProcessBatch";
|
|
131
|
+
readonly suffix: "bank-process-batch";
|
|
132
|
+
};
|
|
133
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
134
|
+
readonly kind: "vpc";
|
|
135
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
136
|
+
};
|
|
137
|
+
}, readonly []>;
|
|
138
|
+
declare function bankServiceConfig(project: string, version: string, options?: Parameters<typeof baseBankServiceConfig>[2]): ((deployment: Deployment, bindings: BindingsFromDescriptor<typeof BANK_SERVICE_BINDINGS>) => {
|
|
139
|
+
resourceName: "bank";
|
|
140
|
+
variables: BankServiceVariables;
|
|
141
|
+
bindings: BindingsFromDescriptor<{
|
|
142
|
+
readonly SECRETS_STORE: {
|
|
143
|
+
readonly kind: "service";
|
|
144
|
+
readonly target: "secrets-store";
|
|
145
|
+
};
|
|
146
|
+
readonly BANK_KV: {
|
|
147
|
+
readonly kind: "kv";
|
|
148
|
+
readonly suffix: "bank";
|
|
149
|
+
};
|
|
150
|
+
readonly BANK_D1: {
|
|
151
|
+
readonly kind: "d1";
|
|
152
|
+
readonly suffix: "bank";
|
|
153
|
+
};
|
|
154
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
155
|
+
readonly kind: "queueProducer";
|
|
156
|
+
readonly suffix: "queue-bus";
|
|
157
|
+
};
|
|
158
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
159
|
+
readonly kind: "queueProducer";
|
|
160
|
+
readonly suffix: "notifications";
|
|
161
|
+
};
|
|
162
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
163
|
+
readonly kind: "workflow";
|
|
164
|
+
readonly class: "BankSyncAccountPayments";
|
|
165
|
+
readonly suffix: "bank-sync-account-payments";
|
|
166
|
+
readonly limits: {
|
|
167
|
+
readonly steps: 25000;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
171
|
+
readonly kind: "workflow";
|
|
172
|
+
readonly class: "BankProcessBatch";
|
|
173
|
+
readonly suffix: "bank-process-batch";
|
|
174
|
+
};
|
|
175
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
176
|
+
readonly kind: "vpc";
|
|
177
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
180
|
+
crons: string[];
|
|
181
|
+
}) & _develit_io_platform_sdk.ServiceConfigWithBindings<BankServiceVariables, {
|
|
182
|
+
readonly SECRETS_STORE: {
|
|
183
|
+
readonly kind: "service";
|
|
184
|
+
readonly target: "secrets-store";
|
|
185
|
+
};
|
|
186
|
+
readonly BANK_KV: {
|
|
187
|
+
readonly kind: "kv";
|
|
188
|
+
readonly suffix: "bank";
|
|
189
|
+
};
|
|
190
|
+
readonly BANK_D1: {
|
|
191
|
+
readonly kind: "d1";
|
|
192
|
+
readonly suffix: "bank";
|
|
193
|
+
};
|
|
194
|
+
readonly QUEUE_BUS_QUEUE: {
|
|
195
|
+
readonly kind: "queueProducer";
|
|
196
|
+
readonly suffix: "queue-bus";
|
|
197
|
+
};
|
|
198
|
+
readonly NOTIFICATIONS_QUEUE: {
|
|
199
|
+
readonly kind: "queueProducer";
|
|
200
|
+
readonly suffix: "notifications";
|
|
201
|
+
};
|
|
202
|
+
readonly SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
203
|
+
readonly kind: "workflow";
|
|
204
|
+
readonly class: "BankSyncAccountPayments";
|
|
205
|
+
readonly suffix: "bank-sync-account-payments";
|
|
206
|
+
readonly limits: {
|
|
207
|
+
readonly steps: 25000;
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
readonly PROCESS_BATCH_WORKFLOW: {
|
|
211
|
+
readonly kind: "workflow";
|
|
212
|
+
readonly class: "BankProcessBatch";
|
|
213
|
+
readonly suffix: "bank-process-batch";
|
|
214
|
+
};
|
|
215
|
+
readonly DBU_CBS_BACKOFFICE_DEV: {
|
|
216
|
+
readonly kind: "vpc";
|
|
217
|
+
readonly serviceId: "019c2962-172c-75a2-a000-b76e246d25d7";
|
|
218
|
+
};
|
|
219
|
+
}, readonly []>;
|
|
220
|
+
|
|
221
|
+
export { BANK_SERVICE_BINDINGS, bankServiceConfig };
|
|
222
|
+
export type { BankServiceVariables };
|
package/dist/service.mjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { createTypedServiceConfigFactory, configKeyFor } from '@develit-io/platform-sdk/service-config';
|
|
2
|
+
|
|
3
|
+
const BANK_SERVICE_BINDINGS = {
|
|
4
|
+
SECRETS_STORE: { kind: "service", target: "secrets-store" },
|
|
5
|
+
BANK_KV: { kind: "kv", suffix: "bank" },
|
|
6
|
+
BANK_D1: { kind: "d1", suffix: "bank" },
|
|
7
|
+
QUEUE_BUS_QUEUE: { kind: "queueProducer", suffix: "queue-bus" },
|
|
8
|
+
NOTIFICATIONS_QUEUE: { kind: "queueProducer", suffix: "notifications" },
|
|
9
|
+
SYNC_ACCOUNT_PAYMENTS_WORKFLOW: {
|
|
10
|
+
kind: "workflow",
|
|
11
|
+
class: "BankSyncAccountPayments",
|
|
12
|
+
suffix: "bank-sync-account-payments",
|
|
13
|
+
limits: { steps: 25e3 }
|
|
14
|
+
},
|
|
15
|
+
PROCESS_BATCH_WORKFLOW: {
|
|
16
|
+
kind: "workflow",
|
|
17
|
+
class: "BankProcessBatch",
|
|
18
|
+
suffix: "bank-process-batch"
|
|
19
|
+
},
|
|
20
|
+
DBU_CBS_BACKOFFICE_DEV: {
|
|
21
|
+
kind: "vpc",
|
|
22
|
+
serviceId: "019c2962-172c-75a2-a000-b76e246d25d7"
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
const baseBankServiceConfig = createTypedServiceConfigFactory()(BANK_SERVICE_BINDINGS);
|
|
26
|
+
function bankServiceConfig(project, version, options) {
|
|
27
|
+
const config = baseBankServiceConfig(project, version, options);
|
|
28
|
+
const callable = (deployment, bindings) => ({
|
|
29
|
+
resourceName: "bank",
|
|
30
|
+
variables: config.vars[configKeyFor(deployment.environment)],
|
|
31
|
+
bindings,
|
|
32
|
+
crons: config.triggers.crons[configKeyFor(deployment.environment)]
|
|
33
|
+
});
|
|
34
|
+
return Object.assign(callable, config);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { BANK_SERVICE_BINDINGS, bankServiceConfig };
|