@develit-services/bank 0.0.8 → 0.0.10
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/@types.d.cts +4 -4
- package/dist/@types.d.mts +4 -4
- package/dist/@types.d.ts +4 -4
- package/dist/database/schema.d.cts +1 -1
- package/dist/database/schema.d.mts +1 -1
- package/dist/database/schema.d.ts +1 -1
- package/dist/export/worker.cjs +427 -422
- package/dist/export/worker.d.cts +8 -5
- package/dist/export/worker.d.mts +8 -5
- package/dist/export/worker.d.ts +8 -5
- package/dist/export/worker.mjs +427 -422
- package/dist/shared/{bank.C28GtA5s.d.cts → bank.D1VhQbrS.d.ts} +9 -5
- package/dist/shared/{bank.LCrZu9Ic.d.mts → bank.DrgcXMkG.d.cts} +9 -5
- package/dist/shared/{bank.CBNQZ5Pd.d.cts → bank.dxpKOn1t.d.cts} +6 -6
- package/dist/shared/{bank.CBNQZ5Pd.d.mts → bank.dxpKOn1t.d.mts} +6 -6
- package/dist/shared/{bank.CBNQZ5Pd.d.ts → bank.dxpKOn1t.d.ts} +6 -6
- package/dist/shared/{bank.atHmEWmc.d.ts → bank.yLyF54-_.d.mts} +9 -5
- package/package.json +1 -1
|
@@ -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.dxpKOn1t.js';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -29,6 +29,9 @@ interface SyncLog {
|
|
|
29
29
|
lastSyncedAt: Date;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
interface BankAccountWithLastSync extends ConfigBankAccount {
|
|
33
|
+
lastSyncAt: SyncLog;
|
|
34
|
+
}
|
|
32
35
|
type ConnectorKey = 'ERSTE' | 'FINBRICKS' | 'MOCK' | 'CREDITAS' | 'MOCK_COBS' | 'FIO';
|
|
33
36
|
interface ConfigBankAccount {
|
|
34
37
|
connectorKey: ConnectorKey;
|
|
@@ -43,8 +46,9 @@ interface ConfigBankAccount {
|
|
|
43
46
|
currency: CurrencyCode;
|
|
44
47
|
production: boolean;
|
|
45
48
|
}
|
|
46
|
-
interface
|
|
47
|
-
|
|
49
|
+
interface ConfigEnvironmentBankAccount {
|
|
50
|
+
stagingAccounts: ConfigBankAccount[];
|
|
51
|
+
productionAccounts: ConfigBankAccount[];
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
type WithStatus<T extends {
|
|
@@ -94,5 +98,5 @@ interface IncomingPaymentMessage extends PaymentInsertType {
|
|
|
94
98
|
interface OutgoingPaymentMessage extends PaymentInsertType {
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
export { IBankConnector as I, BATCH_STATUSES as
|
|
98
|
-
export type { AuthInput as A, BankAccountWithLastSync as B,
|
|
101
|
+
export { IBankConnector as I, BATCH_STATUSES as l, PAYMENT_TYPES as n, PAYMENT_STATUSES as q, PAYMENT_DIRECTIONS as s, COUNTRY_CODES as u };
|
|
102
|
+
export type { AuthInput as A, BankAccountWithLastSync as B, ConfigEnvironmentBankAccount as C, OutgoingPaymentMessage as O, PaymentPreparedInsertType as P, SyncLog as S, ConfigBankAccount as a, ConnectorKey as b, CurrencyCode as c, BankCode as d, CountryCode as e, IncomingPaymentMessage as f, InitiatedBatch as g, InitiatedPayment as h, BatchMetadata as i, Currency as j, PaymentFailedInsertType as k, BatchStatus as m, PaymentType as o, paymentInitializedInsertType as p, PaymentStatus as r, PaymentDirection as t };
|
|
@@ -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.dxpKOn1t.cjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -29,6 +29,9 @@ interface SyncLog {
|
|
|
29
29
|
lastSyncedAt: Date;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
interface BankAccountWithLastSync extends ConfigBankAccount {
|
|
33
|
+
lastSyncAt: SyncLog;
|
|
34
|
+
}
|
|
32
35
|
type ConnectorKey = 'ERSTE' | 'FINBRICKS' | 'MOCK' | 'CREDITAS' | 'MOCK_COBS' | 'FIO';
|
|
33
36
|
interface ConfigBankAccount {
|
|
34
37
|
connectorKey: ConnectorKey;
|
|
@@ -43,8 +46,9 @@ interface ConfigBankAccount {
|
|
|
43
46
|
currency: CurrencyCode;
|
|
44
47
|
production: boolean;
|
|
45
48
|
}
|
|
46
|
-
interface
|
|
47
|
-
|
|
49
|
+
interface ConfigEnvironmentBankAccount {
|
|
50
|
+
stagingAccounts: ConfigBankAccount[];
|
|
51
|
+
productionAccounts: ConfigBankAccount[];
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
type WithStatus<T extends {
|
|
@@ -94,5 +98,5 @@ interface IncomingPaymentMessage extends PaymentInsertType {
|
|
|
94
98
|
interface OutgoingPaymentMessage extends PaymentInsertType {
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
export { IBankConnector as I, BATCH_STATUSES as
|
|
98
|
-
export type { AuthInput as A, BankAccountWithLastSync as B,
|
|
101
|
+
export { IBankConnector as I, BATCH_STATUSES as l, PAYMENT_TYPES as n, PAYMENT_STATUSES as q, PAYMENT_DIRECTIONS as s, COUNTRY_CODES as u };
|
|
102
|
+
export type { AuthInput as A, BankAccountWithLastSync as B, ConfigEnvironmentBankAccount as C, OutgoingPaymentMessage as O, PaymentPreparedInsertType as P, SyncLog as S, ConfigBankAccount as a, ConnectorKey as b, CurrencyCode as c, BankCode as d, CountryCode as e, IncomingPaymentMessage as f, InitiatedBatch as g, InitiatedPayment as h, BatchMetadata as i, Currency as j, PaymentFailedInsertType as k, BatchStatus as m, PaymentType as o, paymentInitializedInsertType as p, PaymentStatus as r, PaymentDirection as t };
|
|
@@ -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;
|
|
@@ -163,7 +163,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
163
163
|
tableName: "batch";
|
|
164
164
|
dataType: "string";
|
|
165
165
|
columnType: "SQLiteText";
|
|
166
|
-
data: "
|
|
166
|
+
data: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
167
167
|
driverParam: string;
|
|
168
168
|
notNull: false;
|
|
169
169
|
hasDefault: false;
|
|
@@ -176,7 +176,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {
|
|
178
178
|
length: number | undefined;
|
|
179
|
-
$type: "
|
|
179
|
+
$type: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
180
180
|
}>;
|
|
181
181
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
182
|
name: "payments";
|
|
@@ -414,7 +414,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
414
414
|
tableName: "payment";
|
|
415
415
|
dataType: "string";
|
|
416
416
|
columnType: "SQLiteText";
|
|
417
|
-
data: "PREPARED" | "
|
|
417
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
418
418
|
driverParam: string;
|
|
419
419
|
notNull: true;
|
|
420
420
|
hasDefault: false;
|
|
@@ -427,7 +427,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
427
427
|
generated: undefined;
|
|
428
428
|
}, {}, {
|
|
429
429
|
length: number | undefined;
|
|
430
|
-
$type: "PREPARED" | "
|
|
430
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
431
431
|
}>;
|
|
432
432
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
433
433
|
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;
|
|
@@ -163,7 +163,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
163
163
|
tableName: "batch";
|
|
164
164
|
dataType: "string";
|
|
165
165
|
columnType: "SQLiteText";
|
|
166
|
-
data: "
|
|
166
|
+
data: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
167
167
|
driverParam: string;
|
|
168
168
|
notNull: false;
|
|
169
169
|
hasDefault: false;
|
|
@@ -176,7 +176,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {
|
|
178
178
|
length: number | undefined;
|
|
179
|
-
$type: "
|
|
179
|
+
$type: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
180
180
|
}>;
|
|
181
181
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
182
|
name: "payments";
|
|
@@ -414,7 +414,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
414
414
|
tableName: "payment";
|
|
415
415
|
dataType: "string";
|
|
416
416
|
columnType: "SQLiteText";
|
|
417
|
-
data: "PREPARED" | "
|
|
417
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
418
418
|
driverParam: string;
|
|
419
419
|
notNull: true;
|
|
420
420
|
hasDefault: false;
|
|
@@ -427,7 +427,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
427
427
|
generated: undefined;
|
|
428
428
|
}, {}, {
|
|
429
429
|
length: number | undefined;
|
|
430
|
-
$type: "PREPARED" | "
|
|
430
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
431
431
|
}>;
|
|
432
432
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
433
433
|
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;
|
|
@@ -163,7 +163,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
163
163
|
tableName: "batch";
|
|
164
164
|
dataType: "string";
|
|
165
165
|
columnType: "SQLiteText";
|
|
166
|
-
data: "
|
|
166
|
+
data: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
167
167
|
driverParam: string;
|
|
168
168
|
notNull: false;
|
|
169
169
|
hasDefault: false;
|
|
@@ -176,7 +176,7 @@ declare const batch: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
176
176
|
generated: undefined;
|
|
177
177
|
}, {}, {
|
|
178
178
|
length: number | undefined;
|
|
179
|
-
$type: "
|
|
179
|
+
$type: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
|
|
180
180
|
}>;
|
|
181
181
|
payments: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
182
182
|
name: "payments";
|
|
@@ -414,7 +414,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
414
414
|
tableName: "payment";
|
|
415
415
|
dataType: "string";
|
|
416
416
|
columnType: "SQLiteText";
|
|
417
|
-
data: "PREPARED" | "
|
|
417
|
+
data: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
418
418
|
driverParam: string;
|
|
419
419
|
notNull: true;
|
|
420
420
|
hasDefault: false;
|
|
@@ -427,7 +427,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
427
427
|
generated: undefined;
|
|
428
428
|
}, {}, {
|
|
429
429
|
length: number | undefined;
|
|
430
|
-
$type: "PREPARED" | "
|
|
430
|
+
$type: "PREPARED" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
|
|
431
431
|
}>;
|
|
432
432
|
statusReason: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
433
433
|
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.dxpKOn1t.mjs';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
|
@@ -29,6 +29,9 @@ interface SyncLog {
|
|
|
29
29
|
lastSyncedAt: Date;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
interface BankAccountWithLastSync extends ConfigBankAccount {
|
|
33
|
+
lastSyncAt: SyncLog;
|
|
34
|
+
}
|
|
32
35
|
type ConnectorKey = 'ERSTE' | 'FINBRICKS' | 'MOCK' | 'CREDITAS' | 'MOCK_COBS' | 'FIO';
|
|
33
36
|
interface ConfigBankAccount {
|
|
34
37
|
connectorKey: ConnectorKey;
|
|
@@ -43,8 +46,9 @@ interface ConfigBankAccount {
|
|
|
43
46
|
currency: CurrencyCode;
|
|
44
47
|
production: boolean;
|
|
45
48
|
}
|
|
46
|
-
interface
|
|
47
|
-
|
|
49
|
+
interface ConfigEnvironmentBankAccount {
|
|
50
|
+
stagingAccounts: ConfigBankAccount[];
|
|
51
|
+
productionAccounts: ConfigBankAccount[];
|
|
48
52
|
}
|
|
49
53
|
|
|
50
54
|
type WithStatus<T extends {
|
|
@@ -94,5 +98,5 @@ interface IncomingPaymentMessage extends PaymentInsertType {
|
|
|
94
98
|
interface OutgoingPaymentMessage extends PaymentInsertType {
|
|
95
99
|
}
|
|
96
100
|
|
|
97
|
-
export { IBankConnector as I, BATCH_STATUSES as
|
|
98
|
-
export type { AuthInput as A, BankAccountWithLastSync as B,
|
|
101
|
+
export { IBankConnector as I, BATCH_STATUSES as l, PAYMENT_TYPES as n, PAYMENT_STATUSES as q, PAYMENT_DIRECTIONS as s, COUNTRY_CODES as u };
|
|
102
|
+
export type { AuthInput as A, BankAccountWithLastSync as B, ConfigEnvironmentBankAccount as C, OutgoingPaymentMessage as O, PaymentPreparedInsertType as P, SyncLog as S, ConfigBankAccount as a, ConnectorKey as b, CurrencyCode as c, BankCode as d, CountryCode as e, IncomingPaymentMessage as f, InitiatedBatch as g, InitiatedPayment as h, BatchMetadata as i, Currency as j, PaymentFailedInsertType as k, BatchStatus as m, PaymentType as o, paymentInitializedInsertType as p, PaymentStatus as r, PaymentDirection as t };
|