@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.Do1KUeDr.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.Do1KUeDr.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -2144,7 +2144,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2144
2144
|
name: string;
|
|
2145
2145
|
tableName: "batch";
|
|
2146
2146
|
dataType: "string enum";
|
|
2147
|
-
data: "AUTHORIZED" | "
|
|
2147
|
+
data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
|
|
2148
2148
|
driverParam: string;
|
|
2149
2149
|
notNull: false;
|
|
2150
2150
|
hasDefault: false;
|
|
@@ -2415,7 +2415,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2415
2415
|
name: string;
|
|
2416
2416
|
tableName: "payment";
|
|
2417
2417
|
dataType: "string enum";
|
|
2418
|
-
data: "
|
|
2418
|
+
data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
2419
2419
|
driverParam: string;
|
|
2420
2420
|
notNull: true;
|
|
2421
2421
|
hasDefault: false;
|
|
@@ -2814,7 +2814,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2814
2814
|
name: string;
|
|
2815
2815
|
tableName: "payment_request";
|
|
2816
2816
|
dataType: "string enum";
|
|
2817
|
-
data: "AUTHORIZED" | "
|
|
2817
|
+
data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
2818
2818
|
driverParam: string;
|
|
2819
2819
|
notNull: true;
|
|
2820
2820
|
hasDefault: false;
|
|
@@ -3526,4 +3526,4 @@ type ParsedBankPayment = {
|
|
|
3526
3526
|
type BatchPayment = Omit<PaymentInsertType, 'bankRefId'>;
|
|
3527
3527
|
|
|
3528
3528
|
export { IBankConnector as I, BASE_TERMINAL_STATUSES as M, BATCH_MODES as N, BATCH_STATUSES as O, CHARGE_BEARERS as X, CONNECTOR_KEYS as Y, COUNTRY_CODES as Z, CREDENTIALS_TYPES as _, INSTRUCTION_PRIORITIES as a3, PAYMENT_DIRECTIONS as a5, PAYMENT_REQUEST_STATUSES as a6, PAYMENT_STATUSES as a7, PAYMENT_TYPES as a8, isTerminalStatus as aA, account as aB, accountCredentials as aC, batch as aD, ott as aE, payment as aF, paymentRequest as aG, TOKEN_TYPES as ai, accountCredentialsInsertSchema as ak, accountCredentialsSelectSchema as al, accountCredentialsUpdateSchema as am, accountInsertSchema as an, accountSelectSchema as ao, accountUpdateSchema as ap, hasPaymentAccountAssigned as aq, isBatchAuthorized as ar, isBatchCompleted as as, isBatchFailed as at, isBatchInitiated as au, isBatchProcessing as av, isBatchReadyToSign as aw, isPaymentCompleted as ax, isPendingStatus as ay, isProcessedStatus as az, tables as t, ACCOUNT_STATUSES as y };
|
|
3529
|
-
export type { ChargeBearer as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, PaymentRequestSelectType as P, BankAccountWithLastSync as Q, BankCode as R, BatchInsertType as S, BatchLifecycle as T, BatchMode as U, BatchPayment as V, BatchStatus as W, PaymentSelectType as a, CompletedBatch as a0, CountryCode as a1, CredentialsType as a2, InstructionPriority as a4, PaymentDirection as a9, PaymentFailedInsertType as aa, PaymentInsertType as ab, PaymentLifecycle as ac, PaymentPreparedInsertType as ad, PaymentStatus as ae, ProcessingBatch as af, ReadyToSignBatch as ag, ResolvedCredentials as ah, TokenType as aj,
|
|
3529
|
+
export type { ChargeBearer as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, PaymentRequestSelectType as P, BankAccountWithLastSync as Q, BankCode as R, BatchInsertType as S, BatchLifecycle as T, BatchMode as U, BatchPayment as V, BatchStatus as W, PaymentSelectType as a, CompletedBatch as a0, CountryCode as a1, CredentialsType as a2, InstructionPriority as a4, PaymentDirection as a9, PaymentFailedInsertType as aa, PaymentInsertType as ab, PaymentLifecycle as ac, PaymentPreparedInsertType as ad, PaymentStatus as ae, ProcessingBatch as af, ReadyToSignBatch as ag, ResolvedCredentials as ah, TokenType as aj, ConnectorKey as b, ConfigEnvironmentBank as c, PaymentType as d, CurrencyCode as e, HandleAuthorizationCallbackOutput as f, ConnectedAccount as g, CredentialsResolver as h, AccountCredentialsInsertType as i, AccountInsertType as j, BatchedPayment as k, InitiatedBatch as l, IncomingPayment as m, InitiatedPayment as n, ParsedBankPayment as o, PaymentRequestStatus as p, AuthorizationCallbackResult as q, BatchMetadata as r, Currency as s, AccountAssignedPayment as u, PreparedPayment as v, CompletedPayment as w, PaymentRequestInsertType as x, AccountCredentialsPatchType as z };
|
|
@@ -2144,7 +2144,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2144
2144
|
name: string;
|
|
2145
2145
|
tableName: "batch";
|
|
2146
2146
|
dataType: "string enum";
|
|
2147
|
-
data: "AUTHORIZED" | "
|
|
2147
|
+
data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
|
|
2148
2148
|
driverParam: string;
|
|
2149
2149
|
notNull: false;
|
|
2150
2150
|
hasDefault: false;
|
|
@@ -2415,7 +2415,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2415
2415
|
name: string;
|
|
2416
2416
|
tableName: "payment";
|
|
2417
2417
|
dataType: "string enum";
|
|
2418
|
-
data: "
|
|
2418
|
+
data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
2419
2419
|
driverParam: string;
|
|
2420
2420
|
notNull: true;
|
|
2421
2421
|
hasDefault: false;
|
|
@@ -2814,7 +2814,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2814
2814
|
name: string;
|
|
2815
2815
|
tableName: "payment_request";
|
|
2816
2816
|
dataType: "string enum";
|
|
2817
|
-
data: "AUTHORIZED" | "
|
|
2817
|
+
data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
2818
2818
|
driverParam: string;
|
|
2819
2819
|
notNull: true;
|
|
2820
2820
|
hasDefault: false;
|
|
@@ -3526,4 +3526,4 @@ type ParsedBankPayment = {
|
|
|
3526
3526
|
type BatchPayment = Omit<PaymentInsertType, 'bankRefId'>;
|
|
3527
3527
|
|
|
3528
3528
|
export { IBankConnector as I, BASE_TERMINAL_STATUSES as M, BATCH_MODES as N, BATCH_STATUSES as O, CHARGE_BEARERS as X, CONNECTOR_KEYS as Y, COUNTRY_CODES as Z, CREDENTIALS_TYPES as _, INSTRUCTION_PRIORITIES as a3, PAYMENT_DIRECTIONS as a5, PAYMENT_REQUEST_STATUSES as a6, PAYMENT_STATUSES as a7, PAYMENT_TYPES as a8, isTerminalStatus as aA, account as aB, accountCredentials as aC, batch as aD, ott as aE, payment as aF, paymentRequest as aG, TOKEN_TYPES as ai, accountCredentialsInsertSchema as ak, accountCredentialsSelectSchema as al, accountCredentialsUpdateSchema as am, accountInsertSchema as an, accountSelectSchema as ao, accountUpdateSchema as ap, hasPaymentAccountAssigned as aq, isBatchAuthorized as ar, isBatchCompleted as as, isBatchFailed as at, isBatchInitiated as au, isBatchProcessing as av, isBatchReadyToSign as aw, isPaymentCompleted as ax, isPendingStatus as ay, isProcessedStatus as az, tables as t, ACCOUNT_STATUSES as y };
|
|
3529
|
-
export type { ChargeBearer as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, PaymentRequestSelectType as P, BankAccountWithLastSync as Q, BankCode as R, BatchInsertType as S, BatchLifecycle as T, BatchMode as U, BatchPayment as V, BatchStatus as W, PaymentSelectType as a, CompletedBatch as a0, CountryCode as a1, CredentialsType as a2, InstructionPriority as a4, PaymentDirection as a9, PaymentFailedInsertType as aa, PaymentInsertType as ab, PaymentLifecycle as ac, PaymentPreparedInsertType as ad, PaymentStatus as ae, ProcessingBatch as af, ReadyToSignBatch as ag, ResolvedCredentials as ah, TokenType as aj,
|
|
3529
|
+
export type { ChargeBearer as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, PaymentRequestSelectType as P, BankAccountWithLastSync as Q, BankCode as R, BatchInsertType as S, BatchLifecycle as T, BatchMode as U, BatchPayment as V, BatchStatus as W, PaymentSelectType as a, CompletedBatch as a0, CountryCode as a1, CredentialsType as a2, InstructionPriority as a4, PaymentDirection as a9, PaymentFailedInsertType as aa, PaymentInsertType as ab, PaymentLifecycle as ac, PaymentPreparedInsertType as ad, PaymentStatus as ae, ProcessingBatch as af, ReadyToSignBatch as ag, ResolvedCredentials as ah, TokenType as aj, ConnectorKey as b, ConfigEnvironmentBank as c, PaymentType as d, CurrencyCode as e, HandleAuthorizationCallbackOutput as f, ConnectedAccount as g, CredentialsResolver as h, AccountCredentialsInsertType as i, AccountInsertType as j, BatchedPayment as k, InitiatedBatch as l, IncomingPayment as m, InitiatedPayment as n, ParsedBankPayment as o, PaymentRequestStatus as p, AuthorizationCallbackResult as q, BatchMetadata as r, Currency as s, AccountAssignedPayment as u, PreparedPayment as v, CompletedPayment as w, PaymentRequestInsertType as x, AccountCredentialsPatchType as z };
|
|
@@ -2144,7 +2144,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2144
2144
|
name: string;
|
|
2145
2145
|
tableName: "batch";
|
|
2146
2146
|
dataType: "string enum";
|
|
2147
|
-
data: "AUTHORIZED" | "
|
|
2147
|
+
data: "AUTHORIZED" | "PROCESSING" | "READY_TO_SIGN" | "COMPLETED" | "FAILED";
|
|
2148
2148
|
driverParam: string;
|
|
2149
2149
|
notNull: false;
|
|
2150
2150
|
hasDefault: false;
|
|
@@ -2415,7 +2415,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2415
2415
|
name: string;
|
|
2416
2416
|
tableName: "payment";
|
|
2417
2417
|
dataType: "string enum";
|
|
2418
|
-
data: "
|
|
2418
|
+
data: "PROCESSING" | "PENDING" | "BOOKED" | "CANCELLED" | "REJECTED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
2419
2419
|
driverParam: string;
|
|
2420
2420
|
notNull: true;
|
|
2421
2421
|
hasDefault: false;
|
|
@@ -2814,7 +2814,7 @@ declare const paymentRequest: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
2814
2814
|
name: string;
|
|
2815
2815
|
tableName: "payment_request";
|
|
2816
2816
|
dataType: "string enum";
|
|
2817
|
-
data: "AUTHORIZED" | "
|
|
2817
|
+
data: "AUTHORIZED" | "COMPLETED" | "BOOKED" | "REJECTED" | "OPENED" | "SETTLED" | "CLOSED";
|
|
2818
2818
|
driverParam: string;
|
|
2819
2819
|
notNull: true;
|
|
2820
2820
|
hasDefault: false;
|
|
@@ -3526,4 +3526,4 @@ type ParsedBankPayment = {
|
|
|
3526
3526
|
type BatchPayment = Omit<PaymentInsertType, 'bankRefId'>;
|
|
3527
3527
|
|
|
3528
3528
|
export { IBankConnector as I, BASE_TERMINAL_STATUSES as M, BATCH_MODES as N, BATCH_STATUSES as O, CHARGE_BEARERS as X, CONNECTOR_KEYS as Y, COUNTRY_CODES as Z, CREDENTIALS_TYPES as _, INSTRUCTION_PRIORITIES as a3, PAYMENT_DIRECTIONS as a5, PAYMENT_REQUEST_STATUSES as a6, PAYMENT_STATUSES as a7, PAYMENT_TYPES as a8, isTerminalStatus as aA, account as aB, accountCredentials as aC, batch as aD, ott as aE, payment as aF, paymentRequest as aG, TOKEN_TYPES as ai, accountCredentialsInsertSchema as ak, accountCredentialsSelectSchema as al, accountCredentialsUpdateSchema as am, accountInsertSchema as an, accountSelectSchema as ao, accountUpdateSchema as ap, hasPaymentAccountAssigned as aq, isBatchAuthorized as ar, isBatchCompleted as as, isBatchFailed as at, isBatchInitiated as au, isBatchProcessing as av, isBatchReadyToSign as aw, isPaymentCompleted as ax, isPendingStatus as ay, isProcessedStatus as az, tables as t, ACCOUNT_STATUSES as y };
|
|
3529
|
-
export type { ChargeBearer as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, PaymentRequestSelectType as P, BankAccountWithLastSync as Q, BankCode as R, BatchInsertType as S, BatchLifecycle as T, BatchMode as U, BatchPayment as V, BatchStatus as W, PaymentSelectType as a, CompletedBatch as a0, CountryCode as a1, CredentialsType as a2, InstructionPriority as a4, PaymentDirection as a9, PaymentFailedInsertType as aa, PaymentInsertType as ab, PaymentLifecycle as ac, PaymentPreparedInsertType as ad, PaymentStatus as ae, ProcessingBatch as af, ReadyToSignBatch as ag, ResolvedCredentials as ah, TokenType as aj,
|
|
3529
|
+
export type { ChargeBearer as $, AccountSelectType as A, BatchSelectType as B, ConnectorConfig as C, AccountCredentialsSelectType as D, AccountCredentialsUpdateType as E, AccountPatchType as F, AccountStatus as G, HandleAuthorizationCallbackInput as H, AccountUpdateType as J, AuthorizedBatch as K, LastSyncMetadata as L, PaymentRequestSelectType as P, BankAccountWithLastSync as Q, BankCode as R, BatchInsertType as S, BatchLifecycle as T, BatchMode as U, BatchPayment as V, BatchStatus as W, PaymentSelectType as a, CompletedBatch as a0, CountryCode as a1, CredentialsType as a2, InstructionPriority as a4, PaymentDirection as a9, PaymentFailedInsertType as aa, PaymentInsertType as ab, PaymentLifecycle as ac, PaymentPreparedInsertType as ad, PaymentStatus as ae, ProcessingBatch as af, ReadyToSignBatch as ag, ResolvedCredentials as ah, TokenType as aj, ConnectorKey as b, ConfigEnvironmentBank as c, PaymentType as d, CurrencyCode as e, HandleAuthorizationCallbackOutput as f, ConnectedAccount as g, CredentialsResolver as h, AccountCredentialsInsertType as i, AccountInsertType as j, BatchedPayment as k, InitiatedBatch as l, IncomingPayment as m, InitiatedPayment as n, ParsedBankPayment as o, PaymentRequestStatus as p, AuthorizationCallbackResult as q, BatchMetadata as r, Currency as s, AccountAssignedPayment as u, PreparedPayment as v, CompletedPayment as w, PaymentRequestInsertType as x, AccountCredentialsPatchType as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, R as BankCode, a1 as CountryCode, P as PaymentRequestSelectType } from './bank.Do1KUeDr.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
package/dist/types.d.cts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { I as IBankConnector,
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch,
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.Do1KUeDr.cjs';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.Do1KUeDr.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.C-edstpR.cjs';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.C-edstpR.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.cjs';
|
|
7
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
8
|
import * as drizzle_orm from 'drizzle-orm';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { I as IBankConnector,
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch,
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.Do1KUeDr.mjs';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.Do1KUeDr.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.C6BQDtpF.mjs';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.C6BQDtpF.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.mjs';
|
|
7
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
8
|
import * as drizzle_orm from 'drizzle-orm';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { I as IBankConnector,
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch,
|
|
3
|
-
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.
|
|
4
|
-
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.
|
|
1
|
+
import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.Do1KUeDr.js';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, E as AccountCredentialsUpdateType, F as AccountPatchType, G as AccountStatus, J as AccountUpdateType, K as AuthorizedBatch, M as BASE_TERMINAL_STATUSES, N as BATCH_MODES, O as BATCH_STATUES, O as BATCH_STATUSES, Q as BankAccountWithLastSync, R as BankCode, S as BatchInsertType, T as BatchLifecycle, U as BatchMode, V as BatchPayment, B as BatchSelectType, W as BatchStatus, X as CHARGE_BEARERS, Y as CONNECTOR_KEYS, Z as COUNTRY_CODES, _ as CREDENTIALS_TYPES, $ as ChargeBearer, a0 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a1 as CountryCode, a2 as CredentialsType, e as CurrencyCode, a3 as INSTRUCTION_PRIORITIES, a4 as InstructionPriority, L as LastSyncMetadata, a5 as PAYMENT_DIRECTIONS, a6 as PAYMENT_REQUEST_STATUSES, a7 as PAYMENT_STATUSES, a8 as PAYMENT_TYPES, a9 as PaymentDirection, aa as PaymentFailedInsertType, ab as PaymentInsertType, ac as PaymentLifecycle, ad as PaymentPreparedInsertType, ae as PaymentStatus, af as ProcessingBatch, ag as ReadyToSignBatch, ah as ResolvedCredentials, ai as TOKEN_TYPES, aj as TokenType, ak as accountCredentialsInsertSchema, al as accountCredentialsSelectSchema, am as accountCredentialsUpdateSchema, an as accountInsertSchema, ao as accountSelectSchema, ap as accountUpdateSchema, aq as hasPaymentAccountAssigned, ar as isBatchAuthorized, as as isBatchCompleted, at as isBatchFailed, au as isBatchInitiated, av as isBatchProcessing, aw as isBatchReadyToSign, ax as isPaymentCompleted, ay as isPendingStatus, az as isProcessedStatus, aA as isTerminalStatus } from './shared/bank.Do1KUeDr.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.pZQAWlIB.js';
|
|
4
|
+
export { e as FinbricksAccountTransactionsResponse, f as FinbricksAccountsListResponse, g as FinbricksAuthTokenResponse, h as FinbricksBatchResponse, i as FinbricksConnectAccountResponse, j as FinbricksPaymentResponse, k as FinbricksSupportedBank, F as FinbricksSupportedBanksResponse, b as SendPaymentSyncInput } from './shared/bank.pZQAWlIB.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
|
-
export { a as BankServiceEnv, B as BankServiceWranglerConfig } from './shared/bank.DyZBd2qL.js';
|
|
7
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
8
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
|
9
8
|
import * as drizzle_orm from 'drizzle-orm';
|
package/package.json
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
"./
|
|
8
|
-
"types": "./dist/
|
|
9
|
-
"import": "./dist/
|
|
10
|
-
"require": "./dist/
|
|
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.1.1"
|
|
64
65
|
}
|
|
65
66
|
}
|
package/dist/export/wrangler.cjs
DELETED
|
@@ -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 };
|
package/dist/export/wrangler.mjs
DELETED
|
@@ -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 };
|