@develit-services/bank 0.4.2 → 0.5.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.
@@ -54,8 +54,8 @@ function defineBankServiceWrangler(config) {
54
54
  queue: `${project}-payments-ready-to-batch`
55
55
  },
56
56
  {
57
- binding: "QUEUE_BUS_QUEUE",
58
- queue: `${project}-queue-bus`
57
+ binding: envs.local.queues.producers.bus.binding,
58
+ queue: `${project}-${envs.local.queues.producers.bus.queue}`
59
59
  },
60
60
  {
61
61
  binding: "NOTIFICATIONS_QUEUE",
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.BJvgLwyZ.cjs';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.BHU46soy.cjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.BJvgLwyZ.mjs';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.BHU46soy.mjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -1,4 +1,4 @@
1
- import { B as BankServiceWranglerConfig } from '../shared/bank.BJvgLwyZ.js';
1
+ import { B as BankServiceWranglerConfig } from '../shared/bank.BHU46soy.js';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
4
  vars: {
@@ -52,8 +52,8 @@ function defineBankServiceWrangler(config) {
52
52
  queue: `${project}-payments-ready-to-batch`
53
53
  },
54
54
  {
55
- binding: "QUEUE_BUS_QUEUE",
56
- queue: `${project}-queue-bus`
55
+ binding: envs.local.queues.producers.bus.binding,
56
+ queue: `${project}-${envs.local.queues.producers.bus.queue}`
57
57
  },
58
58
  {
59
59
  binding: "NOTIFICATIONS_QUEUE",
@@ -12,6 +12,14 @@ interface BankServiceEnvironmentConfig {
12
12
  d1: {
13
13
  id: string;
14
14
  };
15
+ queues: {
16
+ producers: {
17
+ bus: {
18
+ binding: string;
19
+ queue: string;
20
+ };
21
+ };
22
+ };
15
23
  vars: {
16
24
  ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
17
25
  ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
@@ -12,6 +12,14 @@ interface BankServiceEnvironmentConfig {
12
12
  d1: {
13
13
  id: string;
14
14
  };
15
+ queues: {
16
+ producers: {
17
+ bus: {
18
+ binding: string;
19
+ queue: string;
20
+ };
21
+ };
22
+ };
15
23
  vars: {
16
24
  ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
17
25
  ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
@@ -12,6 +12,14 @@ interface BankServiceEnvironmentConfig {
12
12
  d1: {
13
13
  id: string;
14
14
  };
15
+ queues: {
16
+ producers: {
17
+ bus: {
18
+ binding: string;
19
+ queue: string;
20
+ };
21
+ };
22
+ };
15
23
  vars: {
16
24
  ERSTE_AUTH_URI: 'https://webapi.developers.erstegroup.com/api/csas/sandbox/v1/sandbox-idp';
17
25
  ERSTE_PAYMENTS_URI: 'https://webapi.developers.erstegroup.com/api/csas/public/sandbox/v1/payments';
package/dist/types.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { I as IBankConnector, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, b as BatchedPayment, g as InitiatedBatch, h as IncomingPayment, i as InitiatedPayment, A as AccountSelectType, j as ParsedBankPayment, k as PaymentStatus, l as BatchStatus, c as BatchMetadata, m as CurrencyCode, n as BankCode, o as CountryCode, p as Currency, P as PaymentSelectType, q as AccountAssignedPayment, r as PreparedPayment, s as CompletedPayment } from './shared/bank.CsJuzqZH.cjs';
2
2
  export { O as ACCOUNT_STATUSES, a5 as AccountCredentialsPatchType, a6 as AccountCredentialsSelectType, a4 as AccountCredentialsUpdateType, a0 as AccountPatchType, Q as AccountStatus, $ as AccountUpdateType, z as BATCH_STATUES, z as BATCH_STATUSES, S as BankAccountWithLastSync, x as BatchInsertType, ag as BatchLifecycle, y as BatchPayment, B as BatchSelectType, F as CHARGE_BEARERS, T as CONNECTOR_KEYS, R as COUNTRY_CODES, U as CREDENTIALS_TYPES, G as ChargeBearer, af as CompletedBatch, C as ConfigEnvironmentBank, ab as CreatedBatch, V as CredentialsType, H as INSTRUCTION_PRIORITIES, J as InstructionPriority, L as LastSyncMetadata, M as PAYMENT_DIRECTIONS, K as PAYMENT_STATUSES, D as PAYMENT_TYPES, N as PaymentDirection, u as PaymentFailedInsertType, w as PaymentInsertType, a7 as PaymentLifecycle, v as PaymentPreparedInsertType, E as PaymentType, ae as ProcessingBatch, ac as ReadyToSignBatch, ad as SignedBatch, W as TOKEN_TYPES, X as TokenType, a1 as accountCredentialsInsertSchema, a3 as accountCredentialsSelectSchema, a2 as accountCredentialsUpdateSchema, Y as accountInsertSchema, _ as accountSelectSchema, Z as accountUpdateSchema, a8 as hasPaymentAccountAssigned, al as isBatchCompleted, an as isBatchFailed, ah as isBatchInitiated, am as isBatchOpen, ak as isBatchProcessing, ai as isBatchReadyToSign, aj as isBatchSigned, aa as isPaymentCompleted, a9 as isPaymentPrepared } from './shared/bank.CsJuzqZH.cjs';
3
- export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BJvgLwyZ.cjs';
3
+ export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BHU46soy.cjs';
4
4
  import { BaseEvent } from '@develit-io/backend-sdk';
5
5
  import * as drizzle_zod from 'drizzle-zod';
6
6
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
package/dist/types.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { I as IBankConnector, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, b as BatchedPayment, g as InitiatedBatch, h as IncomingPayment, i as InitiatedPayment, A as AccountSelectType, j as ParsedBankPayment, k as PaymentStatus, l as BatchStatus, c as BatchMetadata, m as CurrencyCode, n as BankCode, o as CountryCode, p as Currency, P as PaymentSelectType, q as AccountAssignedPayment, r as PreparedPayment, s as CompletedPayment } from './shared/bank.CsJuzqZH.mjs';
2
2
  export { O as ACCOUNT_STATUSES, a5 as AccountCredentialsPatchType, a6 as AccountCredentialsSelectType, a4 as AccountCredentialsUpdateType, a0 as AccountPatchType, Q as AccountStatus, $ as AccountUpdateType, z as BATCH_STATUES, z as BATCH_STATUSES, S as BankAccountWithLastSync, x as BatchInsertType, ag as BatchLifecycle, y as BatchPayment, B as BatchSelectType, F as CHARGE_BEARERS, T as CONNECTOR_KEYS, R as COUNTRY_CODES, U as CREDENTIALS_TYPES, G as ChargeBearer, af as CompletedBatch, C as ConfigEnvironmentBank, ab as CreatedBatch, V as CredentialsType, H as INSTRUCTION_PRIORITIES, J as InstructionPriority, L as LastSyncMetadata, M as PAYMENT_DIRECTIONS, K as PAYMENT_STATUSES, D as PAYMENT_TYPES, N as PaymentDirection, u as PaymentFailedInsertType, w as PaymentInsertType, a7 as PaymentLifecycle, v as PaymentPreparedInsertType, E as PaymentType, ae as ProcessingBatch, ac as ReadyToSignBatch, ad as SignedBatch, W as TOKEN_TYPES, X as TokenType, a1 as accountCredentialsInsertSchema, a3 as accountCredentialsSelectSchema, a2 as accountCredentialsUpdateSchema, Y as accountInsertSchema, _ as accountSelectSchema, Z as accountUpdateSchema, a8 as hasPaymentAccountAssigned, al as isBatchCompleted, an as isBatchFailed, ah as isBatchInitiated, am as isBatchOpen, ak as isBatchProcessing, ai as isBatchReadyToSign, aj as isBatchSigned, aa as isPaymentCompleted, a9 as isPaymentPrepared } from './shared/bank.CsJuzqZH.mjs';
3
- export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BJvgLwyZ.mjs';
3
+ export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BHU46soy.mjs';
4
4
  import { BaseEvent } from '@develit-io/backend-sdk';
5
5
  import * as drizzle_zod from 'drizzle-zod';
6
6
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { I as IBankConnector, a as ConnectorKey, d as ConnectedAccount, e as AccountCredentialsInsertType, f as AccountInsertType, b as BatchedPayment, g as InitiatedBatch, h as IncomingPayment, i as InitiatedPayment, A as AccountSelectType, j as ParsedBankPayment, k as PaymentStatus, l as BatchStatus, c as BatchMetadata, m as CurrencyCode, n as BankCode, o as CountryCode, p as Currency, P as PaymentSelectType, q as AccountAssignedPayment, r as PreparedPayment, s as CompletedPayment } from './shared/bank.CsJuzqZH.js';
2
2
  export { O as ACCOUNT_STATUSES, a5 as AccountCredentialsPatchType, a6 as AccountCredentialsSelectType, a4 as AccountCredentialsUpdateType, a0 as AccountPatchType, Q as AccountStatus, $ as AccountUpdateType, z as BATCH_STATUES, z as BATCH_STATUSES, S as BankAccountWithLastSync, x as BatchInsertType, ag as BatchLifecycle, y as BatchPayment, B as BatchSelectType, F as CHARGE_BEARERS, T as CONNECTOR_KEYS, R as COUNTRY_CODES, U as CREDENTIALS_TYPES, G as ChargeBearer, af as CompletedBatch, C as ConfigEnvironmentBank, ab as CreatedBatch, V as CredentialsType, H as INSTRUCTION_PRIORITIES, J as InstructionPriority, L as LastSyncMetadata, M as PAYMENT_DIRECTIONS, K as PAYMENT_STATUSES, D as PAYMENT_TYPES, N as PaymentDirection, u as PaymentFailedInsertType, w as PaymentInsertType, a7 as PaymentLifecycle, v as PaymentPreparedInsertType, E as PaymentType, ae as ProcessingBatch, ac as ReadyToSignBatch, ad as SignedBatch, W as TOKEN_TYPES, X as TokenType, a1 as accountCredentialsInsertSchema, a3 as accountCredentialsSelectSchema, a2 as accountCredentialsUpdateSchema, Y as accountInsertSchema, _ as accountSelectSchema, Z as accountUpdateSchema, a8 as hasPaymentAccountAssigned, al as isBatchCompleted, an as isBatchFailed, ah as isBatchInitiated, am as isBatchOpen, ak as isBatchProcessing, ai as isBatchReadyToSign, aj as isBatchSigned, aa as isPaymentCompleted, a9 as isPaymentPrepared } from './shared/bank.CsJuzqZH.js';
3
- export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BJvgLwyZ.js';
3
+ export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.BHU46soy.js';
4
4
  import { BaseEvent } from '@develit-io/backend-sdk';
5
5
  import * as drizzle_zod from 'drizzle-zod';
6
6
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.4.2",
3
+ "version": "0.5.0",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {