@develit-services/bank 0.0.27 → 0.0.28
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.zK_DX1oe.d.ts → bank.BkLncGmL.d.ts} +1 -1
- package/dist/shared/{bank.mGCkS7Y9.d.ts → bank.BuNG2S8h.d.cts} +6 -6
- package/dist/shared/{bank.mGCkS7Y9.d.cts → bank.BuNG2S8h.d.mts} +6 -6
- package/dist/shared/{bank.mGCkS7Y9.d.mts → bank.BuNG2S8h.d.ts} +6 -6
- package/dist/shared/{bank.B01FFn4I.cjs → bank.Cy_TcyKb.cjs} +4 -2
- 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/shared/{bank.C8bSFJVt.mjs → bank.DnDcNEvX.mjs} +4 -2
- 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.Cy_TcyKb.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
|
-
batchPaymentInitiatedAt: Date | null;
|
|
245
|
-
authorizationUrls: string | string[] | null;
|
|
246
244
|
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
245
|
id: string;
|
|
251
246
|
createdAt: Date | null;
|
|
252
247
|
updatedAt: Date | null;
|
|
253
248
|
deletedAt: Date | null;
|
|
249
|
+
batchPaymentInitiatedAt: Date | null;
|
|
250
|
+
authorizationUrls: string | string[] | null;
|
|
251
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | 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
|
-
batchPaymentInitiatedAt: Date | null;
|
|
245
|
-
authorizationUrls: string | string[] | null;
|
|
246
244
|
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
245
|
id: string;
|
|
251
246
|
createdAt: Date | null;
|
|
252
247
|
updatedAt: Date | null;
|
|
253
248
|
deletedAt: Date | null;
|
|
249
|
+
batchPaymentInitiatedAt: Date | null;
|
|
250
|
+
authorizationUrls: string | string[] | null;
|
|
251
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | 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
|
-
batchPaymentInitiatedAt: Date | null;
|
|
245
|
-
authorizationUrls: string | string[] | null;
|
|
246
244
|
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
245
|
id: string;
|
|
251
246
|
createdAt: Date | null;
|
|
252
247
|
updatedAt: Date | null;
|
|
253
248
|
deletedAt: Date | null;
|
|
249
|
+
batchPaymentInitiatedAt: Date | null;
|
|
250
|
+
authorizationUrls: string | string[] | null;
|
|
251
|
+
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | 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.DnDcNEvX.mjs';
|
|
3
3
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
4
4
|
import { drizzle } from 'drizzle-orm/d1';
|
|
5
5
|
import { z } from 'zod';
|
|
@@ -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";
|
|
@@ -498,8 +498,10 @@ class FinbricksConnector extends IBankConnector {
|
|
|
498
498
|
}
|
|
499
499
|
const { transactions, links } = response;
|
|
500
500
|
cursor = links?.[0]?.value || null;
|
|
501
|
-
|
|
502
|
-
|
|
501
|
+
if (transactions) {
|
|
502
|
+
for (const tx of transactions) {
|
|
503
|
+
allPayments.push(mapFinbricksTransactionToPayment(tx, account));
|
|
504
|
+
}
|
|
503
505
|
}
|
|
504
506
|
} while (cursor != null);
|
|
505
507
|
return allPayments;
|
|
@@ -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"];
|
|
@@ -496,8 +496,10 @@ class FinbricksConnector extends IBankConnector {
|
|
|
496
496
|
}
|
|
497
497
|
const { transactions, links } = response;
|
|
498
498
|
cursor = links?.[0]?.value || null;
|
|
499
|
-
|
|
500
|
-
|
|
499
|
+
if (transactions) {
|
|
500
|
+
for (const tx of transactions) {
|
|
501
|
+
allPayments.push(mapFinbricksTransactionToPayment(tx, account));
|
|
502
|
+
}
|
|
501
503
|
}
|
|
502
504
|
} while (cursor != null);
|
|
503
505
|
return allPayments;
|
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.Cy_TcyKb.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.DnDcNEvX.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';
|