@develit-services/bank 0.0.22 → 0.0.24
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 +1 -1
- package/dist/export/worker.d.cts +7 -7
- package/dist/export/worker.d.mts +7 -7
- package/dist/export/worker.d.ts +7 -7
- package/dist/export/worker.mjs +1 -1
- package/dist/shared/{bank.DmwWNL_H.cjs → bank.2vXXoFi2.cjs} +4 -28
- package/dist/shared/{bank.DGHQNxSO.mjs → bank.B5x2DseV.mjs} +4 -28
- package/dist/shared/{bank.zK_DX1oe.d.ts → bank.BkLncGmL.d.ts} +1 -1
- package/dist/shared/{bank.mGCkS7Y9.d.cts → bank.BuNG2S8h.d.cts} +6 -6
- package/dist/shared/{bank.mGCkS7Y9.d.ts → bank.BuNG2S8h.d.mts} +6 -6
- package/dist/shared/{bank.mGCkS7Y9.d.mts → bank.BuNG2S8h.d.ts} +6 -6
- package/dist/shared/{bank.C8aShbaN.d.mts → bank.DWVLVMDa.d.mts} +1 -1
- package/dist/shared/{bank.TyzHNrzR.d.cts → bank.DmypH3Au.d.cts} +1 -1
- package/dist/types.cjs +1 -1
- package/dist/types.d.cts +4 -4
- package/dist/types.d.mts +4 -4
- package/dist/types.d.ts +4 -4
- package/dist/types.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.BuNG2S8h.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.BuNG2S8h.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.
|
|
1
|
+
export { c as batch, o as ott, d as payment, e as paymentRelations } from '../shared/bank.BuNG2S8h.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import 'zod';
|
package/dist/export/worker.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
|
-
const db = require('../shared/bank.
|
|
6
|
+
const db = require('../shared/bank.2vXXoFi2.cjs');
|
|
7
7
|
const cloudflare_workers = require('cloudflare:workers');
|
|
8
8
|
const d1 = require('drizzle-orm/d1');
|
|
9
9
|
const zod = require('zod');
|
package/dist/export/worker.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.BuNG2S8h.cjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.DmypH3Au.cjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -241,16 +241,16 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
241
241
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
242
242
|
paymentsToBatch: SendPaymentInput[];
|
|
243
243
|
}): Promise<IRPCResponse<{
|
|
244
|
-
|
|
245
|
-
authorizationUrls: string | string[] | null;
|
|
244
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
246
245
|
accountId: string | null;
|
|
247
|
-
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
248
|
-
payments: PaymentInsertType[];
|
|
249
|
-
metadata: object | null;
|
|
250
246
|
id: string;
|
|
251
247
|
createdAt: Date | null;
|
|
252
248
|
updatedAt: Date | null;
|
|
253
249
|
deletedAt: Date | null;
|
|
250
|
+
batchPaymentInitiatedAt: Date | null;
|
|
251
|
+
authorizationUrls: string | string[] | null;
|
|
252
|
+
payments: PaymentInsertType[];
|
|
253
|
+
metadata: object | null;
|
|
254
254
|
}[] | undefined>>;
|
|
255
255
|
processBatch(input: ProcessBatchInput): Promise<IRPCResponse<void>>;
|
|
256
256
|
queue(b: MessageBatch<SendPaymentInput>): Promise<void>;
|
package/dist/export/worker.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.BuNG2S8h.mjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.DWVLVMDa.mjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -241,16 +241,16 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
241
241
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
242
242
|
paymentsToBatch: SendPaymentInput[];
|
|
243
243
|
}): Promise<IRPCResponse<{
|
|
244
|
-
|
|
245
|
-
authorizationUrls: string | string[] | null;
|
|
244
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
246
245
|
accountId: string | null;
|
|
247
|
-
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
248
|
-
payments: PaymentInsertType[];
|
|
249
|
-
metadata: object | null;
|
|
250
246
|
id: string;
|
|
251
247
|
createdAt: Date | null;
|
|
252
248
|
updatedAt: Date | null;
|
|
253
249
|
deletedAt: Date | null;
|
|
250
|
+
batchPaymentInitiatedAt: Date | null;
|
|
251
|
+
authorizationUrls: string | string[] | null;
|
|
252
|
+
payments: PaymentInsertType[];
|
|
253
|
+
metadata: object | null;
|
|
254
254
|
}[] | undefined>>;
|
|
255
255
|
processBatch(input: ProcessBatchInput): Promise<IRPCResponse<void>>;
|
|
256
256
|
queue(b: MessageBatch<SendPaymentInput>): Promise<void>;
|
package/dist/export/worker.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
|
|
2
2
|
import { IRPCResponse } from '@develit-io/backend-sdk';
|
|
3
|
-
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.
|
|
3
|
+
import { P as PaymentSelectType, B as BatchSelectType, t as tables, a as PaymentInsertType } from '../shared/bank.BuNG2S8h.js';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.BkLncGmL.js';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -241,16 +241,16 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
241
241
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
242
242
|
paymentsToBatch: SendPaymentInput[];
|
|
243
243
|
}): Promise<IRPCResponse<{
|
|
244
|
-
|
|
245
|
-
authorizationUrls: string | string[] | null;
|
|
244
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
246
245
|
accountId: string | null;
|
|
247
|
-
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
248
|
-
payments: PaymentInsertType[];
|
|
249
|
-
metadata: object | null;
|
|
250
246
|
id: string;
|
|
251
247
|
createdAt: Date | null;
|
|
252
248
|
updatedAt: Date | null;
|
|
253
249
|
deletedAt: Date | null;
|
|
250
|
+
batchPaymentInitiatedAt: Date | null;
|
|
251
|
+
authorizationUrls: string | string[] | null;
|
|
252
|
+
payments: PaymentInsertType[];
|
|
253
|
+
metadata: object | null;
|
|
254
254
|
}[] | undefined>>;
|
|
255
255
|
processBatch(input: ProcessBatchInput): Promise<IRPCResponse<void>>;
|
|
256
256
|
queue(b: MessageBatch<SendPaymentInput>): Promise<void>;
|
package/dist/export/worker.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { uuidv4, useResult, createInternalError, develitWorker, first, RPCResponse, action, service } from '@develit-io/backend-sdk';
|
|
2
|
-
import { P as PAYMENT_TYPES, t as tables, F as FinbricksConnector, M as MockConnector, a as MockCobsConnector, E as ErsteConnector, g as getPaymentDirection } from '../shared/bank.
|
|
2
|
+
import { P as PAYMENT_TYPES, t as tables, F as FinbricksConnector, M as MockConnector, a as MockCobsConnector, E as ErsteConnector, g as getPaymentDirection } from '../shared/bank.B5x2DseV.mjs';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { drizzle } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -200,7 +200,7 @@ const mapFinbricksBatchStatus = (status) => {
|
|
|
200
200
|
};
|
|
201
201
|
const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
202
202
|
const isIncoming = tx.creditDebitIndicator === "CRDT";
|
|
203
|
-
const related = tx.entryDetails.transactionDetails.relatedParties;
|
|
203
|
+
const related = tx.entryDetails.transactionDetails.relatedParties || null;
|
|
204
204
|
const base = {
|
|
205
205
|
id: backendSdk.uuidv4(),
|
|
206
206
|
bankRefId: tx.entryReference || tx.fbxReference,
|
|
@@ -278,19 +278,13 @@ class FinbricksConnector extends IBankConnector {
|
|
|
278
278
|
}
|
|
279
279
|
async getClientIds() {
|
|
280
280
|
let saved = await this.kv.get(this.storageKey);
|
|
281
|
-
console.log("storage key", this.storageKey);
|
|
282
|
-
console.log("saved ids", saved);
|
|
283
281
|
if (!saved) {
|
|
284
|
-
console.log("not saved", true);
|
|
285
282
|
const empty = Object.fromEntries(database_schema.CONNECTOR_KEYS.map((v) => [v, ""]));
|
|
286
283
|
empty["FIO"] = "d32a83cf-d352-41f3-96d7-4d2961336ddc";
|
|
287
|
-
console.log("empty", empty);
|
|
288
284
|
await this.kv.put(this.storageKey, JSON.stringify(empty));
|
|
289
285
|
saved = JSON.stringify(empty);
|
|
290
286
|
}
|
|
291
|
-
console.log("saved ids after", saved);
|
|
292
287
|
this._clientIds = JSON.parse(saved);
|
|
293
|
-
console.log("client ids", this._clientIds);
|
|
294
288
|
return this._clientIds;
|
|
295
289
|
}
|
|
296
290
|
async setClientIds(value) {
|
|
@@ -475,31 +469,15 @@ class FinbricksConnector extends IBankConnector {
|
|
|
475
469
|
let cursor = null;
|
|
476
470
|
const allPayments = [];
|
|
477
471
|
const fetchTransactions = async (cursor2) => {
|
|
478
|
-
console.log("provider", this.PROVIDER);
|
|
479
|
-
console.log("clientids", this._clientIds);
|
|
480
|
-
console.log("clientid", this._clientIds[this.PROVIDER]);
|
|
481
|
-
console.log({
|
|
482
|
-
method: "GET",
|
|
483
|
-
endpoint: FINBRICKS_ENDPOINTS.ACCOUNT_TRANSACTIONS,
|
|
484
|
-
query: {
|
|
485
|
-
merchantId: this.finbricks.MERCHANT_ID,
|
|
486
|
-
clientId: this._clientIds[this.PROVIDER],
|
|
487
|
-
paymentProvider: this.PROVIDER,
|
|
488
|
-
bankAccountId: account.identification.number,
|
|
489
|
-
dateFrom,
|
|
490
|
-
dateTo,
|
|
491
|
-
currency: account.currency,
|
|
492
|
-
size: "20",
|
|
493
|
-
cursor: cursor2 ?? void 0
|
|
494
|
-
}
|
|
495
|
-
});
|
|
496
472
|
return backendSdk.useResult(
|
|
497
473
|
this.finbricks.request({
|
|
498
474
|
method: "GET",
|
|
499
475
|
endpoint: FINBRICKS_ENDPOINTS.ACCOUNT_TRANSACTIONS,
|
|
500
476
|
query: {
|
|
501
477
|
merchantId: this.finbricks.MERCHANT_ID,
|
|
502
|
-
|
|
478
|
+
// TODO: Desperate times require desperate solution. Don't forget to remove this.
|
|
479
|
+
clientId: "d32a83cf-d352-41f3-96d7-4d2961336ddc",
|
|
480
|
+
// clientId: this._clientIds[this.PROVIDER],
|
|
503
481
|
paymentProvider: this.PROVIDER,
|
|
504
482
|
bankAccountId: account.identification.number,
|
|
505
483
|
dateFrom,
|
|
@@ -514,8 +492,6 @@ class FinbricksConnector extends IBankConnector {
|
|
|
514
492
|
do {
|
|
515
493
|
const [response, error] = await fetchTransactions(cursor);
|
|
516
494
|
if (error || !response) {
|
|
517
|
-
console.log("error", error);
|
|
518
|
-
console.log("reponse", response);
|
|
519
495
|
throw backendSdk.createInternalError(error, {
|
|
520
496
|
message: "Finbricks: failed to fetch account transactions"
|
|
521
497
|
});
|
|
@@ -198,7 +198,7 @@ const mapFinbricksBatchStatus = (status) => {
|
|
|
198
198
|
};
|
|
199
199
|
const mapFinbricksTransactionToPayment = (tx, account) => {
|
|
200
200
|
const isIncoming = tx.creditDebitIndicator === "CRDT";
|
|
201
|
-
const related = tx.entryDetails.transactionDetails.relatedParties;
|
|
201
|
+
const related = tx.entryDetails.transactionDetails.relatedParties || null;
|
|
202
202
|
const base = {
|
|
203
203
|
id: uuidv4(),
|
|
204
204
|
bankRefId: tx.entryReference || tx.fbxReference,
|
|
@@ -276,19 +276,13 @@ class FinbricksConnector extends IBankConnector {
|
|
|
276
276
|
}
|
|
277
277
|
async getClientIds() {
|
|
278
278
|
let saved = await this.kv.get(this.storageKey);
|
|
279
|
-
console.log("storage key", this.storageKey);
|
|
280
|
-
console.log("saved ids", saved);
|
|
281
279
|
if (!saved) {
|
|
282
|
-
console.log("not saved", true);
|
|
283
280
|
const empty = Object.fromEntries(CONNECTOR_KEYS.map((v) => [v, ""]));
|
|
284
281
|
empty["FIO"] = "d32a83cf-d352-41f3-96d7-4d2961336ddc";
|
|
285
|
-
console.log("empty", empty);
|
|
286
282
|
await this.kv.put(this.storageKey, JSON.stringify(empty));
|
|
287
283
|
saved = JSON.stringify(empty);
|
|
288
284
|
}
|
|
289
|
-
console.log("saved ids after", saved);
|
|
290
285
|
this._clientIds = JSON.parse(saved);
|
|
291
|
-
console.log("client ids", this._clientIds);
|
|
292
286
|
return this._clientIds;
|
|
293
287
|
}
|
|
294
288
|
async setClientIds(value) {
|
|
@@ -473,31 +467,15 @@ class FinbricksConnector extends IBankConnector {
|
|
|
473
467
|
let cursor = null;
|
|
474
468
|
const allPayments = [];
|
|
475
469
|
const fetchTransactions = async (cursor2) => {
|
|
476
|
-
console.log("provider", this.PROVIDER);
|
|
477
|
-
console.log("clientids", this._clientIds);
|
|
478
|
-
console.log("clientid", this._clientIds[this.PROVIDER]);
|
|
479
|
-
console.log({
|
|
480
|
-
method: "GET",
|
|
481
|
-
endpoint: FINBRICKS_ENDPOINTS.ACCOUNT_TRANSACTIONS,
|
|
482
|
-
query: {
|
|
483
|
-
merchantId: this.finbricks.MERCHANT_ID,
|
|
484
|
-
clientId: this._clientIds[this.PROVIDER],
|
|
485
|
-
paymentProvider: this.PROVIDER,
|
|
486
|
-
bankAccountId: account.identification.number,
|
|
487
|
-
dateFrom,
|
|
488
|
-
dateTo,
|
|
489
|
-
currency: account.currency,
|
|
490
|
-
size: "20",
|
|
491
|
-
cursor: cursor2 ?? void 0
|
|
492
|
-
}
|
|
493
|
-
});
|
|
494
470
|
return useResult(
|
|
495
471
|
this.finbricks.request({
|
|
496
472
|
method: "GET",
|
|
497
473
|
endpoint: FINBRICKS_ENDPOINTS.ACCOUNT_TRANSACTIONS,
|
|
498
474
|
query: {
|
|
499
475
|
merchantId: this.finbricks.MERCHANT_ID,
|
|
500
|
-
|
|
476
|
+
// TODO: Desperate times require desperate solution. Don't forget to remove this.
|
|
477
|
+
clientId: "d32a83cf-d352-41f3-96d7-4d2961336ddc",
|
|
478
|
+
// clientId: this._clientIds[this.PROVIDER],
|
|
501
479
|
paymentProvider: this.PROVIDER,
|
|
502
480
|
bankAccountId: account.identification.number,
|
|
503
481
|
dateFrom,
|
|
@@ -512,8 +490,6 @@ class FinbricksConnector extends IBankConnector {
|
|
|
512
490
|
do {
|
|
513
491
|
const [response, error] = await fetchTransactions(cursor);
|
|
514
492
|
if (error || !response) {
|
|
515
|
-
console.log("error", error);
|
|
516
|
-
console.log("reponse", response);
|
|
517
493
|
throw createInternalError(error, {
|
|
518
494
|
message: "Finbricks: failed to fetch account transactions"
|
|
519
495
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { BANK_CODES, CURRENCY_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.BuNG2S8h.js';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
COMPLETED: "COMPLETED";
|
|
86
|
-
FAILED: "FAILED";
|
|
87
85
|
INITIALIZED: "INITIALIZED";
|
|
86
|
+
FAILED: "FAILED";
|
|
88
87
|
PENDING: "PENDING";
|
|
88
|
+
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -165,7 +165,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
165
165
|
tableName: "batch";
|
|
166
166
|
dataType: "string";
|
|
167
167
|
columnType: "SQLiteText";
|
|
168
|
-
data: "
|
|
168
|
+
data: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
169
169
|
driverParam: string;
|
|
170
170
|
notNull: false;
|
|
171
171
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
178
178
|
generated: undefined;
|
|
179
179
|
}, {}, {
|
|
180
180
|
length: number | undefined;
|
|
181
|
-
$type: "
|
|
181
|
+
$type: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
182
182
|
}>;
|
|
183
183
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
184
|
name: "payments";
|
|
@@ -416,7 +416,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
416
416
|
tableName: "payment";
|
|
417
417
|
dataType: "string";
|
|
418
418
|
columnType: "SQLiteText";
|
|
419
|
-
data: "PREPARED" | "
|
|
419
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
420
420
|
driverParam: string;
|
|
421
421
|
notNull: true;
|
|
422
422
|
hasDefault: false;
|
|
@@ -429,7 +429,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
429
429
|
generated: undefined;
|
|
430
430
|
}, {}, {
|
|
431
431
|
length: number | undefined;
|
|
432
|
-
$type: "PREPARED" | "
|
|
432
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
433
433
|
}>;
|
|
434
434
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
435
435
|
name: "status_reason";
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
COMPLETED: "COMPLETED";
|
|
86
|
-
FAILED: "FAILED";
|
|
87
85
|
INITIALIZED: "INITIALIZED";
|
|
86
|
+
FAILED: "FAILED";
|
|
88
87
|
PENDING: "PENDING";
|
|
88
|
+
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -165,7 +165,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
165
165
|
tableName: "batch";
|
|
166
166
|
dataType: "string";
|
|
167
167
|
columnType: "SQLiteText";
|
|
168
|
-
data: "
|
|
168
|
+
data: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
169
169
|
driverParam: string;
|
|
170
170
|
notNull: false;
|
|
171
171
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
178
178
|
generated: undefined;
|
|
179
179
|
}, {}, {
|
|
180
180
|
length: number | undefined;
|
|
181
|
-
$type: "
|
|
181
|
+
$type: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
182
182
|
}>;
|
|
183
183
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
184
|
name: "payments";
|
|
@@ -416,7 +416,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
416
416
|
tableName: "payment";
|
|
417
417
|
dataType: "string";
|
|
418
418
|
columnType: "SQLiteText";
|
|
419
|
-
data: "PREPARED" | "
|
|
419
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
420
420
|
driverParam: string;
|
|
421
421
|
notNull: true;
|
|
422
422
|
hasDefault: false;
|
|
@@ -429,7 +429,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
429
429
|
generated: undefined;
|
|
430
430
|
}, {}, {
|
|
431
431
|
length: number | undefined;
|
|
432
|
-
$type: "PREPARED" | "
|
|
432
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
433
433
|
}>;
|
|
434
434
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
435
435
|
name: "status_reason";
|
|
@@ -82,10 +82,10 @@ declare const paymentInsertTypeZod: z.ZodObject<{
|
|
|
82
82
|
}>;
|
|
83
83
|
status: z.ZodEnum<{
|
|
84
84
|
PREPARED: "PREPARED";
|
|
85
|
-
COMPLETED: "COMPLETED";
|
|
86
|
-
FAILED: "FAILED";
|
|
87
85
|
INITIALIZED: "INITIALIZED";
|
|
86
|
+
FAILED: "FAILED";
|
|
88
87
|
PENDING: "PENDING";
|
|
88
|
+
COMPLETED: "COMPLETED";
|
|
89
89
|
CREATED: "CREATED";
|
|
90
90
|
}>;
|
|
91
91
|
batchId: z.ZodString;
|
|
@@ -165,7 +165,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
165
165
|
tableName: "batch";
|
|
166
166
|
dataType: "string";
|
|
167
167
|
columnType: "SQLiteText";
|
|
168
|
-
data: "
|
|
168
|
+
data: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
169
169
|
driverParam: string;
|
|
170
170
|
notNull: false;
|
|
171
171
|
hasDefault: false;
|
|
@@ -178,7 +178,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
178
178
|
generated: undefined;
|
|
179
179
|
}, {}, {
|
|
180
180
|
length: number | undefined;
|
|
181
|
-
$type: "
|
|
181
|
+
$type: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
182
182
|
}>;
|
|
183
183
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
184
184
|
name: "payments";
|
|
@@ -416,7 +416,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
416
416
|
tableName: "payment";
|
|
417
417
|
dataType: "string";
|
|
418
418
|
columnType: "SQLiteText";
|
|
419
|
-
data: "PREPARED" | "
|
|
419
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
420
420
|
driverParam: string;
|
|
421
421
|
notNull: true;
|
|
422
422
|
hasDefault: false;
|
|
@@ -429,7 +429,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
429
429
|
generated: undefined;
|
|
430
430
|
}, {}, {
|
|
431
431
|
length: number | undefined;
|
|
432
|
-
$type: "PREPARED" | "
|
|
432
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
433
433
|
}>;
|
|
434
434
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
435
435
|
name: "status_reason";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { BANK_CODES, CURRENCY_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.BuNG2S8h.mjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Environment } from '@develit-io/backend-sdk';
|
|
2
2
|
import { BANK_CODES, CURRENCY_CODES, CODES } from '@develit-io/general-codes';
|
|
3
|
-
import { a as PaymentInsertType, t as tables } from './bank.
|
|
3
|
+
import { a as PaymentInsertType, t as tables } from './bank.BuNG2S8h.cjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
package/dist/types.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const db = require('./shared/bank.
|
|
3
|
+
const db = require('./shared/bank.2vXXoFi2.cjs');
|
|
4
4
|
const database_schema = require('./shared/bank.P9gDUycr.cjs');
|
|
5
5
|
const generalCodes = require('@develit-io/general-codes');
|
|
6
6
|
require('@develit-io/backend-sdk');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as PaymentStatus, j as BatchStatus, k as BatchMetadata, l as Currency } from './shared/bank.
|
|
2
|
-
export { n as BATCH_STATUES, n as BATCH_STATUSES, B as BankAccountWithLastSync, v as CONNECTOR_KEYS, u as COUNTRY_CODES, C as ConfigEnvironmentBankAccount, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, r as PAYMENT_STATUSES, o as PAYMENT_TYPES, t as PaymentDirection, m as PaymentFailedInsertType, q as PaymentType, T as TOKEN_TYPES, w as TokenType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as PaymentStatus, j as BatchStatus, k as BatchMetadata, l as Currency } from './shared/bank.DmypH3Au.cjs';
|
|
2
|
+
export { n as BATCH_STATUES, n as BATCH_STATUSES, B as BankAccountWithLastSync, v as CONNECTOR_KEYS, u as COUNTRY_CODES, C as ConfigEnvironmentBankAccount, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, r as PAYMENT_STATUSES, o as PAYMENT_TYPES, t as PaymentDirection, m as PaymentFailedInsertType, q as PaymentType, T as TOKEN_TYPES, w as TokenType, p as paymentInitializedInsertType } from './shared/bank.DmypH3Au.cjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType, P as PaymentSelectType } from './shared/bank.BuNG2S8h.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.BuNG2S8h.cjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CEZKAEiY.cjs';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as PaymentStatus, j as BatchStatus, k as BatchMetadata, l as Currency } from './shared/bank.
|
|
2
|
-
export { n as BATCH_STATUES, n as BATCH_STATUSES, B as BankAccountWithLastSync, v as CONNECTOR_KEYS, u as COUNTRY_CODES, C as ConfigEnvironmentBankAccount, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, r as PAYMENT_STATUSES, o as PAYMENT_TYPES, t as PaymentDirection, m as PaymentFailedInsertType, q as PaymentType, T as TOKEN_TYPES, w as TokenType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as PaymentStatus, j as BatchStatus, k as BatchMetadata, l as Currency } from './shared/bank.DWVLVMDa.mjs';
|
|
2
|
+
export { n as BATCH_STATUES, n as BATCH_STATUSES, B as BankAccountWithLastSync, v as CONNECTOR_KEYS, u as COUNTRY_CODES, C as ConfigEnvironmentBankAccount, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, r as PAYMENT_STATUSES, o as PAYMENT_TYPES, t as PaymentDirection, m as PaymentFailedInsertType, q as PaymentType, T as TOKEN_TYPES, w as TokenType, p as paymentInitializedInsertType } from './shared/bank.DWVLVMDa.mjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType, P as PaymentSelectType } from './shared/bank.BuNG2S8h.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.BuNG2S8h.mjs';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CEZKAEiY.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as PaymentStatus, j as BatchStatus, k as BatchMetadata, l as Currency } from './shared/bank.
|
|
2
|
-
export { n as BATCH_STATUES, n as BATCH_STATUSES, B as BankAccountWithLastSync, v as CONNECTOR_KEYS, u as COUNTRY_CODES, C as ConfigEnvironmentBankAccount, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, r as PAYMENT_STATUSES, o as PAYMENT_TYPES, t as PaymentDirection, m as PaymentFailedInsertType, q as PaymentType, T as TOKEN_TYPES, w as TokenType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType, P as PaymentSelectType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as PaymentStatus, j as BatchStatus, k as BatchMetadata, l as Currency } from './shared/bank.BkLncGmL.js';
|
|
2
|
+
export { n as BATCH_STATUES, n as BATCH_STATUSES, B as BankAccountWithLastSync, v as CONNECTOR_KEYS, u as COUNTRY_CODES, C as ConfigEnvironmentBankAccount, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, r as PAYMENT_STATUSES, o as PAYMENT_TYPES, t as PaymentDirection, m as PaymentFailedInsertType, q as PaymentType, T as TOKEN_TYPES, w as TokenType, p as paymentInitializedInsertType } from './shared/bank.BkLncGmL.js';
|
|
3
|
+
import { t as tables, a as PaymentInsertType, P as PaymentSelectType } from './shared/bank.BuNG2S8h.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, p as paymentInsertTypeZod } from './shared/bank.BuNG2S8h.js';
|
|
5
5
|
import { Environment, BaseEvent } from '@develit-io/backend-sdk';
|
|
6
6
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
7
7
|
export { b as BankServiceEnv, a as BankServiceEnvironmentConfig, B as BankServiceWranglerConfig } from './shared/bank.CEZKAEiY.js';
|
package/dist/types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BATCH_STATUES, B as BATCH_STATUSES, C as COUNTRY_CODES, E as ErsteConnector, c as FINBRICKS_ENDPOINTS, b as FinbricksClient, F as FinbricksConnector, I as IBankConnector, a as MockCobsConnector, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.
|
|
1
|
+
export { B as BATCH_STATUES, B as BATCH_STATUSES, C as COUNTRY_CODES, E as ErsteConnector, c as FINBRICKS_ENDPOINTS, b as FinbricksClient, F as FinbricksConnector, I as IBankConnector, a as MockCobsConnector, M as MockConnector, e as PAYMENT_DIRECTIONS, d as PAYMENT_STATUSES, P as PAYMENT_TYPES, p as paymentInsertTypeZod, s as signFinbricksJws, u as useFinbricksFetch } from './shared/bank.B5x2DseV.mjs';
|
|
2
2
|
export { C as CONNECTOR_KEYS, T as TOKEN_TYPES } from './shared/bank.C9jAvwna.mjs';
|
|
3
3
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
4
4
|
import '@develit-io/backend-sdk';
|