@develit-services/bank 0.8.3 → 0.8.5
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/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/worker.cjs +11 -1
- package/dist/export/worker.d.cts +3 -2
- package/dist/export/worker.d.mts +3 -2
- package/dist/export/worker.d.ts +3 -2
- package/dist/export/worker.mjs +11 -1
- package/dist/shared/{bank.pngKIcOl.d.ts → bank.6faPHUEY.d.ts} +1 -1
- package/dist/shared/{bank.DDveEfub.d.cts → bank.BaMRCHk-.d.cts} +1 -1
- package/dist/shared/{bank.DDveEfub.d.mts → bank.BaMRCHk-.d.mts} +1 -1
- package/dist/shared/{bank.DDveEfub.d.ts → bank.BaMRCHk-.d.ts} +1 -1
- package/dist/shared/{bank.BE9bK1n7.d.mts → bank.BoWCMu5n.d.cts} +1 -1
- package/dist/shared/{bank.gl4dlxWy.d.cts → bank.DOL1uM4n.d.mts} +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as account, at as accountCredentials, au as batch, av as ott, aw as payment, ax as paymentRelations, ay as paymentRequest, az as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { as as account, at as accountCredentials, au as batch, av as ott, aw as payment, ax as paymentRelations, ay as paymentRequest, az as paymentRequestRelations } from '../shared/bank.BaMRCHk-.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as account, at as accountCredentials, au as batch, av as ott, aw as payment, ax as paymentRelations, ay as paymentRequest, az as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { as as account, at as accountCredentials, au as batch, av as ott, aw as payment, ax as paymentRelations, ay as paymentRequest, az as paymentRequestRelations } from '../shared/bank.BaMRCHk-.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { as as account, at as accountCredentials, au as batch, av as ott, aw as payment, ax as paymentRelations, ay as paymentRequest, az as paymentRequestRelations } from '../shared/bank.
|
|
1
|
+
export { as as account, at as accountCredentials, au as batch, av as ott, aw as payment, ax as paymentRelations, ay as paymentRequest, az as paymentRequestRelations } from '../shared/bank.BaMRCHk-.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/backend-sdk';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -239,8 +239,18 @@ const getBatchesQuery = async (db, {
|
|
|
239
239
|
totalCount: drizzleOrm.sql`count(*)`
|
|
240
240
|
}).from(drizzle.tables.batch).where(whereConditions);
|
|
241
241
|
const batches = await db.select().from(drizzle.tables.batch).where(whereConditions).limit(limit).offset((page - 1) * limit).orderBy(sort.direction === "asc" ? drizzleOrm.asc(sortColumn) : drizzleOrm.desc(sortColumn));
|
|
242
|
+
const batchIds = batches.map((b) => b.id);
|
|
243
|
+
const paymentRequests = batchIds.length > 0 ? await db.select().from(drizzle.tables.paymentRequest).where(drizzleOrm.inArray(drizzle.tables.paymentRequest.batchId, batchIds)) : [];
|
|
244
|
+
const paymentRequestsByBatchId = Map.groupBy(
|
|
245
|
+
paymentRequests,
|
|
246
|
+
(pr) => pr.batchId
|
|
247
|
+
);
|
|
248
|
+
const batchesWithPaymentRequests = batches.map((batch) => ({
|
|
249
|
+
...batch,
|
|
250
|
+
paymentRequests: paymentRequestsByBatchId.get(batch.id) ?? []
|
|
251
|
+
}));
|
|
242
252
|
return {
|
|
243
|
-
batches,
|
|
253
|
+
batches: batchesWithPaymentRequests,
|
|
244
254
|
totalCount
|
|
245
255
|
};
|
|
246
256
|
};
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables,
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector } from '../shared/bank.BaMRCHk-.cjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.BoWCMu5n.cjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -819,6 +819,7 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
819
819
|
}, z.core.$strip>;
|
|
820
820
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
821
821
|
type BatchWithWorkflow = BatchSelectType & {
|
|
822
|
+
paymentRequests: PaymentRequestSelectType[];
|
|
822
823
|
workflow: {
|
|
823
824
|
instanceId: string;
|
|
824
825
|
details: WorkflowInstanceStatus;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables,
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector } from '../shared/bank.BaMRCHk-.mjs';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.DOL1uM4n.mjs';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -819,6 +819,7 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
819
819
|
}, z.core.$strip>;
|
|
820
820
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
821
821
|
type BatchWithWorkflow = BatchSelectType & {
|
|
822
|
+
paymentRequests: PaymentRequestSelectType[];
|
|
822
823
|
workflow: {
|
|
823
824
|
instanceId: string;
|
|
824
825
|
details: WorkflowInstanceStatus;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables,
|
|
2
|
-
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.
|
|
1
|
+
import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, a as PaymentRequestSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, b as ConnectorKey, I as IBankConnector } from '../shared/bank.BaMRCHk-.js';
|
|
2
|
+
import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput, F as FinbricksSupportedBanksResponse } from '../shared/bank.6faPHUEY.js';
|
|
3
3
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
4
4
|
import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
|
|
5
5
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
@@ -819,6 +819,7 @@ declare const getBatchesInputSchema: z.ZodObject<{
|
|
|
819
819
|
}, z.core.$strip>;
|
|
820
820
|
type GetBatchesInput = z.input<typeof getBatchesInputSchema>;
|
|
821
821
|
type BatchWithWorkflow = BatchSelectType & {
|
|
822
|
+
paymentRequests: PaymentRequestSelectType[];
|
|
822
823
|
workflow: {
|
|
823
824
|
instanceId: string;
|
|
824
825
|
details: WorkflowInstanceStatus;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -237,8 +237,18 @@ const getBatchesQuery = async (db, {
|
|
|
237
237
|
totalCount: sql`count(*)`
|
|
238
238
|
}).from(tables.batch).where(whereConditions);
|
|
239
239
|
const batches = await db.select().from(tables.batch).where(whereConditions).limit(limit).offset((page - 1) * limit).orderBy(sort.direction === "asc" ? asc(sortColumn) : desc(sortColumn));
|
|
240
|
+
const batchIds = batches.map((b) => b.id);
|
|
241
|
+
const paymentRequests = batchIds.length > 0 ? await db.select().from(tables.paymentRequest).where(inArray(tables.paymentRequest.batchId, batchIds)) : [];
|
|
242
|
+
const paymentRequestsByBatchId = Map.groupBy(
|
|
243
|
+
paymentRequests,
|
|
244
|
+
(pr) => pr.batchId
|
|
245
|
+
);
|
|
246
|
+
const batchesWithPaymentRequests = batches.map((batch) => ({
|
|
247
|
+
...batch,
|
|
248
|
+
paymentRequests: paymentRequestsByBatchId.get(batch.id) ?? []
|
|
249
|
+
}));
|
|
240
250
|
return {
|
|
241
|
-
batches,
|
|
251
|
+
batches: batchesWithPaymentRequests,
|
|
242
252
|
totalCount
|
|
243
253
|
};
|
|
244
254
|
};
|
|
@@ -5343,4 +5343,4 @@ declare function isBatchFailed(batch: {
|
|
|
5343
5343
|
}): batch is CompletedBatch;
|
|
5344
5344
|
|
|
5345
5345
|
export { PAYMENT_STATUSES as $, BATCH_STATUSES as F, IBankConnector as I, CHARGE_BEARERS as N, CONNECTOR_KEYS as O, COUNTRY_CODES as Q, CREDENTIALS_TYPES as R, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as v };
|
|
5346
|
-
export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z,
|
|
5346
|
+
export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, ConnectedAccount as c, CredentialsResolver as d, AccountCredentialsInsertType as e, AccountInsertType as f, BatchedPayment as g, InitiatedBatch as h, IncomingPayment as i, InitiatedPayment as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, PaymentType as n, BatchMetadata as o, Currency as p, AccountAssignedPayment as q, PreparedPayment as r, CompletedPayment as s, PaymentRequestInsertType as u, AccountCredentialsPatchType as w, AccountCredentialsSelectType as x, AccountCredentialsUpdateType as y, AccountPatchType as z };
|
|
@@ -5343,4 +5343,4 @@ declare function isBatchFailed(batch: {
|
|
|
5343
5343
|
}): batch is CompletedBatch;
|
|
5344
5344
|
|
|
5345
5345
|
export { PAYMENT_STATUSES as $, BATCH_STATUSES as F, IBankConnector as I, CHARGE_BEARERS as N, CONNECTOR_KEYS as O, COUNTRY_CODES as Q, CREDENTIALS_TYPES as R, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as v };
|
|
5346
|
-
export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z,
|
|
5346
|
+
export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, ConnectedAccount as c, CredentialsResolver as d, AccountCredentialsInsertType as e, AccountInsertType as f, BatchedPayment as g, InitiatedBatch as h, IncomingPayment as i, InitiatedPayment as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, PaymentType as n, BatchMetadata as o, Currency as p, AccountAssignedPayment as q, PreparedPayment as r, CompletedPayment as s, PaymentRequestInsertType as u, AccountCredentialsPatchType as w, AccountCredentialsSelectType as x, AccountCredentialsUpdateType as y, AccountPatchType as z };
|
|
@@ -5343,4 +5343,4 @@ declare function isBatchFailed(batch: {
|
|
|
5343
5343
|
}): batch is CompletedBatch;
|
|
5344
5344
|
|
|
5345
5345
|
export { PAYMENT_STATUSES as $, BATCH_STATUSES as F, IBankConnector as I, CHARGE_BEARERS as N, CONNECTOR_KEYS as O, COUNTRY_CODES as Q, CREDENTIALS_TYPES as R, INSTRUCTION_PRIORITIES as Y, PAYMENT_DIRECTIONS as _, PAYMENT_TYPES as a0, TOKEN_TYPES as aa, accountCredentialsInsertSchema as ac, accountCredentialsSelectSchema as ad, accountCredentialsUpdateSchema as ae, accountInsertSchema as af, accountSelectSchema as ag, accountUpdateSchema as ah, hasPaymentAccountAssigned as ai, isBatchCompleted as aj, isBatchFailed as ak, isBatchInitiated as al, isBatchOpen as am, isBatchProcessing as an, isBatchReadyToSign as ao, isBatchSigned as ap, isPaymentCompleted as aq, isPaymentPrepared as ar, account as as, accountCredentials as at, batch as au, ott as av, payment as aw, paymentRelations as ax, paymentRequest as ay, paymentRequestRelations as az, tables as t, ACCOUNT_STATUSES as v };
|
|
5346
|
-
export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z,
|
|
5346
|
+
export type { AccountSelectType as A, BatchSelectType as B, ConfigEnvironmentBank as C, AccountStatus as D, AccountUpdateType as E, BankAccountWithLastSync as G, BankCode as H, BatchInsertType as J, BatchLifecycle as K, LastSyncMetadata as L, BatchPayment as M, PaymentSelectType as P, ChargeBearer as S, CompletedBatch as T, CountryCode as U, CreatedBatch as V, CredentialsType as W, CurrencyCode as X, InstructionPriority as Z, PaymentRequestSelectType as a, PaymentDirection as a1, PaymentFailedInsertType as a2, PaymentInsertType as a3, PaymentLifecycle as a4, PaymentPreparedInsertType as a5, ProcessingBatch as a6, ReadyToSignBatch as a7, ResolvedCredentials as a8, SignedBatch as a9, TokenType as ab, ConnectorKey as b, ConnectedAccount as c, CredentialsResolver as d, AccountCredentialsInsertType as e, AccountInsertType as f, BatchedPayment as g, InitiatedBatch as h, IncomingPayment as i, InitiatedPayment as j, ParsedBankPayment as k, PaymentStatus as l, BatchStatus as m, PaymentType as n, BatchMetadata as o, Currency as p, AccountAssignedPayment as q, PreparedPayment as r, CompletedPayment as s, PaymentRequestInsertType as u, AccountCredentialsPatchType as w, AccountCredentialsSelectType as x, AccountCredentialsUpdateType as y, AccountPatchType as z };
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector,
|
|
2
|
-
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BankCode, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CountryCode, V as CreatedBatch, W as CredentialsType, X as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.
|
|
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, c as ConnectedAccount, d as CredentialsResolver, e as AccountCredentialsInsertType, f as AccountInsertType, g as BatchedPayment, h as InitiatedBatch, i as IncomingPayment, j as InitiatedPayment, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as PaymentType, o as BatchMetadata, p as Currency, P as PaymentSelectType, q as AccountAssignedPayment, a as PaymentRequestSelectType, r as PreparedPayment, s as CompletedPayment, u as PaymentRequestInsertType } from './shared/bank.BaMRCHk-.cjs';
|
|
2
|
+
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BankCode, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CountryCode, V as CreatedBatch, W as CredentialsType, X as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.BaMRCHk-.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.BoWCMu5n.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.BoWCMu5n.cjs';
|
|
5
5
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CQBfbG8u.cjs';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector,
|
|
2
|
-
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BankCode, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CountryCode, V as CreatedBatch, W as CredentialsType, X as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.
|
|
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, c as ConnectedAccount, d as CredentialsResolver, e as AccountCredentialsInsertType, f as AccountInsertType, g as BatchedPayment, h as InitiatedBatch, i as IncomingPayment, j as InitiatedPayment, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as PaymentType, o as BatchMetadata, p as Currency, P as PaymentSelectType, q as AccountAssignedPayment, a as PaymentRequestSelectType, r as PreparedPayment, s as CompletedPayment, u as PaymentRequestInsertType } from './shared/bank.BaMRCHk-.mjs';
|
|
2
|
+
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BankCode, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CountryCode, V as CreatedBatch, W as CredentialsType, X as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.BaMRCHk-.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DOL1uM4n.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.DOL1uM4n.mjs';
|
|
5
5
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CQBfbG8u.mjs';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector,
|
|
2
|
-
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BankCode, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CountryCode, V as CreatedBatch, W as CredentialsType, X as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.
|
|
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, c as ConnectedAccount, d as CredentialsResolver, e as AccountCredentialsInsertType, f as AccountInsertType, g as BatchedPayment, h as InitiatedBatch, i as IncomingPayment, j as InitiatedPayment, A as AccountSelectType, k as ParsedBankPayment, l as PaymentStatus, m as BatchStatus, n as PaymentType, o as BatchMetadata, p as Currency, P as PaymentSelectType, q as AccountAssignedPayment, a as PaymentRequestSelectType, r as PreparedPayment, s as CompletedPayment, u as PaymentRequestInsertType } from './shared/bank.BaMRCHk-.js';
|
|
2
|
+
export { v as ACCOUNT_STATUSES, w as AccountCredentialsPatchType, x as AccountCredentialsSelectType, y as AccountCredentialsUpdateType, z as AccountPatchType, D as AccountStatus, E as AccountUpdateType, F as BATCH_STATUES, F as BATCH_STATUSES, G as BankAccountWithLastSync, H as BankCode, J as BatchInsertType, K as BatchLifecycle, M as BatchPayment, B as BatchSelectType, N as CHARGE_BEARERS, O as CONNECTOR_KEYS, Q as COUNTRY_CODES, R as CREDENTIALS_TYPES, S as ChargeBearer, T as CompletedBatch, C as ConfigEnvironmentBank, U as CountryCode, V as CreatedBatch, W as CredentialsType, X as CurrencyCode, Y as INSTRUCTION_PRIORITIES, Z as InstructionPriority, L as LastSyncMetadata, _ as PAYMENT_DIRECTIONS, $ as PAYMENT_STATUSES, a0 as PAYMENT_TYPES, a1 as PaymentDirection, a2 as PaymentFailedInsertType, a3 as PaymentInsertType, a4 as PaymentLifecycle, a5 as PaymentPreparedInsertType, a6 as ProcessingBatch, a7 as ReadyToSignBatch, a8 as ResolvedCredentials, a9 as SignedBatch, aa as TOKEN_TYPES, ab as TokenType, ac as accountCredentialsInsertSchema, ad as accountCredentialsSelectSchema, ae as accountCredentialsUpdateSchema, af as accountInsertSchema, ag as accountSelectSchema, ah as accountUpdateSchema, ai as hasPaymentAccountAssigned, aj as isBatchCompleted, ak as isBatchFailed, al as isBatchInitiated, am as isBatchOpen, an as isBatchProcessing, ao as isBatchReadyToSign, ap as isBatchSigned, aq as isPaymentCompleted, ar as isPaymentPrepared } from './shared/bank.BaMRCHk-.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.6faPHUEY.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.6faPHUEY.js';
|
|
5
5
|
export { a as BankServiceEnv, b as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CQBfbG8u.js';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_zod from 'drizzle-zod';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
59
|
"@develit-io/backend-sdk": "^9.10.3",
|
|
60
|
-
"@develit-io/general-codes": "^1.
|
|
60
|
+
"@develit-io/general-codes": "^1.19.0",
|
|
61
61
|
"drizzle-orm": "^0.45.0",
|
|
62
62
|
"drizzle-zod": "^0.8.3",
|
|
63
63
|
"zod": "^4.1.13"
|