@develit-services/bank 5.8.0 → 5.9.1
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/base.cjs +77 -27
- package/dist/base.d.cts +26 -6
- package/dist/base.d.mts +26 -6
- package/dist/base.d.ts +26 -6
- package/dist/base.mjs +77 -27
- package/dist/database/schema.cjs +1 -1
- 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/database/schema.mjs +1 -1
- package/dist/export/workflows.cjs +11 -3
- package/dist/export/workflows.mjs +11 -3
- package/dist/shared/{bank.BOeuHdjy.d.ts → bank.-8YAJoxw.d.ts} +1 -1
- package/dist/shared/{bank.BzDNLxB_.mjs → bank.BT7HayCV.mjs} +4 -0
- package/dist/shared/{bank.CQjuudum.cjs → bank.BsWBG0gb.cjs} +1 -1
- package/dist/shared/{bank.9Yw4KHyl.cjs → bank.Ca3jzmIb.cjs} +4 -0
- package/dist/shared/{bank.CefGTNH1.d.cts → bank.CgiEbvJu.d.cts} +65 -1
- package/dist/shared/{bank.CefGTNH1.d.mts → bank.CgiEbvJu.d.mts} +65 -1
- package/dist/shared/{bank.CefGTNH1.d.ts → bank.CgiEbvJu.d.ts} +65 -1
- package/dist/shared/{bank.oNDZ44du.d.mts → bank.D19D3a9C.d.mts} +1 -1
- package/dist/shared/{bank.D6gBgL07.mjs → bank.DAjqsBQN.mjs} +2 -2
- package/dist/shared/{bank.Cy7xa566.cjs → bank.DBTtRCcf.cjs} +2 -2
- package/dist/shared/{bank.CtIkqQG9.d.cts → bank.DZyrkXc_.d.cts} +1 -1
- package/dist/shared/{bank.BVXtqHnq.mjs → bank.kz-PKVi5.mjs} +1 -1
- package/dist/types.cjs +2 -2
- 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 +2 -2
- package/package.json +1 -1
package/dist/database/schema.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aC as account, aD as accountCredentials, aE as batch, aF as ott, aG as payment, aH as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { aC as account, aD as accountCredentials, aE as batch, aF as ott, aG as payment, aH as paymentRequest } from '../shared/bank.CgiEbvJu.cjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aC as account, aD as accountCredentials, aE as batch, aF as ott, aG as payment, aH as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { aC as account, aD as accountCredentials, aE as batch, aF as ott, aG as payment, aH as paymentRequest } from '../shared/bank.CgiEbvJu.mjs';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { aC as account, aD as accountCredentials, aE as batch, aF as ott, aG as payment, aH as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { aC as account, aD as accountCredentials, aE as batch, aF as ott, aG as payment, aH as paymentRequest } from '../shared/bank.CgiEbvJu.js';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
3
|
import 'drizzle-orm';
|
|
4
4
|
import '@develit-io/general-codes';
|
package/dist/database/schema.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { h as account, i as accountCredentials, j as batch, o as ott, p as payment, k as paymentRequest } from '../shared/bank.
|
|
1
|
+
export { h as account, i as accountCredentials, j as batch, o as ott, p as payment, k as paymentRequest } from '../shared/bank.BT7HayCV.mjs';
|
|
2
2
|
import '@develit-io/backend-sdk';
|
|
3
3
|
import 'drizzle-orm/sqlite-core';
|
|
4
4
|
import '@develit-io/general-codes';
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
|
-
const paymentDirection = require('../shared/bank.
|
|
4
|
+
const paymentDirection = require('../shared/bank.BsWBG0gb.cjs');
|
|
5
5
|
const batchLifecycle = require('../shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const drizzleOrm = require('drizzle-orm');
|
|
7
|
-
const bank = require('../shared/bank.
|
|
7
|
+
const bank = require('../shared/bank.DBTtRCcf.cjs');
|
|
8
8
|
const cloudflare_workers = require('cloudflare:workers');
|
|
9
9
|
const cloudflare_workflows = require('cloudflare:workflows');
|
|
10
10
|
const d1 = require('drizzle-orm/d1');
|
|
11
11
|
require('node:crypto');
|
|
12
12
|
require('date-fns');
|
|
13
|
-
require('../shared/bank.
|
|
13
|
+
require('../shared/bank.Ca3jzmIb.cjs');
|
|
14
14
|
require('drizzle-orm/sqlite-core');
|
|
15
15
|
require('@develit-io/general-codes');
|
|
16
16
|
require('jose');
|
|
@@ -444,6 +444,14 @@ class BankSyncAccountPayments extends cloudflare_workers.WorkflowEntrypoint {
|
|
|
444
444
|
}
|
|
445
445
|
return account2;
|
|
446
446
|
});
|
|
447
|
+
if (!account.syncEnabled) {
|
|
448
|
+
logger.info("sync.disabled", {
|
|
449
|
+
accountId,
|
|
450
|
+
instanceId: event.instanceId,
|
|
451
|
+
iteration
|
|
452
|
+
});
|
|
453
|
+
return;
|
|
454
|
+
}
|
|
447
455
|
if (!account.lastSyncAt) {
|
|
448
456
|
throw new Error(`lastSyncedAt is not set for account: ${accountId}`);
|
|
449
457
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { first, uuidv4, asNonEmpty } from '@develit-io/backend-sdk';
|
|
2
|
-
import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, m as isPaymentCompleted } from '../shared/bank.
|
|
2
|
+
import { G as tables, H as relations, v as toBatchedPaymentFromPaymentRequest, z as toPreparedPayment, m as isPaymentCompleted } from '../shared/bank.kz-PKVi5.mjs';
|
|
3
3
|
import { i as isBatchAuthorized, b as isBatchFailed, d as isBatchProcessing } from '../shared/bank.XqSw509X.mjs';
|
|
4
4
|
import { sql, and, eq, inArray } from 'drizzle-orm';
|
|
5
|
-
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, f as isSupersededBy, h as createPaymentCommand, r as resolveIterationBudget } from '../shared/bank.
|
|
5
|
+
import { g as getBatchByIdQuery, a as getPaymentRequestsByBatchIdQuery, c as checksum, u as upsertBatchCommand, b as getAccountByIdQuery, d as createCredentialsResolver, i as initiateConnector, e as updatePaymentRequestStatusCommand, f as isSupersededBy, h as createPaymentCommand, r as resolveIterationBudget } from '../shared/bank.DAjqsBQN.mjs';
|
|
6
6
|
import { WorkflowEntrypoint } from 'cloudflare:workers';
|
|
7
7
|
import { NonRetryableError } from 'cloudflare:workflows';
|
|
8
8
|
import { drizzle } from 'drizzle-orm/d1';
|
|
9
9
|
import 'node:crypto';
|
|
10
10
|
import 'date-fns';
|
|
11
|
-
import '../shared/bank.
|
|
11
|
+
import '../shared/bank.BT7HayCV.mjs';
|
|
12
12
|
import 'drizzle-orm/sqlite-core';
|
|
13
13
|
import '@develit-io/general-codes';
|
|
14
14
|
import 'jose';
|
|
@@ -442,6 +442,14 @@ class BankSyncAccountPayments extends WorkflowEntrypoint {
|
|
|
442
442
|
}
|
|
443
443
|
return account2;
|
|
444
444
|
});
|
|
445
|
+
if (!account.syncEnabled) {
|
|
446
|
+
logger.info("sync.disabled", {
|
|
447
|
+
accountId,
|
|
448
|
+
instanceId: event.instanceId,
|
|
449
|
+
iteration
|
|
450
|
+
});
|
|
451
|
+
return;
|
|
452
|
+
}
|
|
445
453
|
if (!account.lastSyncAt) {
|
|
446
454
|
throw new Error(`lastSyncedAt is not set for account: ${accountId}`);
|
|
447
455
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, S as BankCode, a2 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, S as BankCode, a2 as CountryCode, P as PaymentRequestSelectType } from './bank.CgiEbvJu.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -75,6 +75,10 @@ const account = sqliteTable(
|
|
|
75
75
|
status: text("status", { enum: ACCOUNT_STATUSES }).$type().notNull(),
|
|
76
76
|
bankRefId: text("bank_ref_id").notNull(),
|
|
77
77
|
batchSizeLimit: integer("batch_size_limit").notNull().default(50),
|
|
78
|
+
// Ops toggle ("should this account sync?"), separate from `status`:
|
|
79
|
+
// DISABLED is owned by disconnect (deletes credentials) and status also
|
|
80
|
+
// gates payments, so neither can express "stop syncing only".
|
|
81
|
+
syncEnabled: integer("sync_enabled", { mode: "boolean" }).notNull().default(true),
|
|
78
82
|
syncIntervalS: integer("sync_interval_s").notNull().default(600),
|
|
79
83
|
lastSyncAt: integer("last_sync_at", { mode: "timestamp_ms" }),
|
|
80
84
|
lastSyncMetadata: text("last_sync_metadata", {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
4
4
|
const dateFns = require('date-fns');
|
|
5
|
-
const database_schema = require('./bank.
|
|
5
|
+
const database_schema = require('./bank.Ca3jzmIb.cjs');
|
|
6
6
|
const drizzleOrm = require('drizzle-orm');
|
|
7
7
|
const jose = require('jose');
|
|
8
8
|
const zod = require('zod');
|
|
@@ -77,6 +77,10 @@ const account = sqliteCore.sqliteTable(
|
|
|
77
77
|
status: sqliteCore.text("status", { enum: ACCOUNT_STATUSES }).$type().notNull(),
|
|
78
78
|
bankRefId: sqliteCore.text("bank_ref_id").notNull(),
|
|
79
79
|
batchSizeLimit: sqliteCore.integer("batch_size_limit").notNull().default(50),
|
|
80
|
+
// Ops toggle ("should this account sync?"), separate from `status`:
|
|
81
|
+
// DISABLED is owned by disconnect (deletes credentials) and status also
|
|
82
|
+
// gates payments, so neither can express "stop syncing only".
|
|
83
|
+
syncEnabled: sqliteCore.integer("sync_enabled", { mode: "boolean" }).notNull().default(true),
|
|
80
84
|
syncIntervalS: sqliteCore.integer("sync_interval_s").notNull().default(600),
|
|
81
85
|
lastSyncAt: sqliteCore.integer("last_sync_at", { mode: "timestamp_ms" }),
|
|
82
86
|
lastSyncMetadata: sqliteCore.text("last_sync_metadata", {
|
|
@@ -1042,6 +1042,22 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
|
1042
1042
|
identity: undefined;
|
|
1043
1043
|
generated: undefined;
|
|
1044
1044
|
}, {}>;
|
|
1045
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1046
|
+
name: string;
|
|
1047
|
+
tableName: "account";
|
|
1048
|
+
dataType: "boolean";
|
|
1049
|
+
data: boolean;
|
|
1050
|
+
driverParam: number;
|
|
1051
|
+
notNull: true;
|
|
1052
|
+
hasDefault: true;
|
|
1053
|
+
isPrimaryKey: false;
|
|
1054
|
+
isAutoincrement: false;
|
|
1055
|
+
hasRuntimeDefault: false;
|
|
1056
|
+
enumValues: undefined;
|
|
1057
|
+
baseColumn: never;
|
|
1058
|
+
identity: undefined;
|
|
1059
|
+
generated: undefined;
|
|
1060
|
+
}, {}>;
|
|
1045
1061
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1046
1062
|
name: string;
|
|
1047
1063
|
tableName: "account";
|
|
@@ -1747,6 +1763,22 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
|
1747
1763
|
identity: undefined;
|
|
1748
1764
|
generated: undefined;
|
|
1749
1765
|
}, {}>;
|
|
1766
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1767
|
+
name: string;
|
|
1768
|
+
tableName: "account";
|
|
1769
|
+
dataType: "boolean";
|
|
1770
|
+
data: boolean;
|
|
1771
|
+
driverParam: number;
|
|
1772
|
+
notNull: true;
|
|
1773
|
+
hasDefault: true;
|
|
1774
|
+
isPrimaryKey: false;
|
|
1775
|
+
isAutoincrement: false;
|
|
1776
|
+
hasRuntimeDefault: false;
|
|
1777
|
+
enumValues: undefined;
|
|
1778
|
+
baseColumn: never;
|
|
1779
|
+
identity: undefined;
|
|
1780
|
+
generated: undefined;
|
|
1781
|
+
}, {}>;
|
|
1750
1782
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1751
1783
|
name: string;
|
|
1752
1784
|
tableName: "account";
|
|
@@ -2452,6 +2484,22 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
|
2452
2484
|
identity: undefined;
|
|
2453
2485
|
generated: undefined;
|
|
2454
2486
|
}, {}>;
|
|
2487
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2488
|
+
name: string;
|
|
2489
|
+
tableName: "account";
|
|
2490
|
+
dataType: "boolean";
|
|
2491
|
+
data: boolean;
|
|
2492
|
+
driverParam: number;
|
|
2493
|
+
notNull: true;
|
|
2494
|
+
hasDefault: true;
|
|
2495
|
+
isPrimaryKey: false;
|
|
2496
|
+
isAutoincrement: false;
|
|
2497
|
+
hasRuntimeDefault: false;
|
|
2498
|
+
enumValues: undefined;
|
|
2499
|
+
baseColumn: never;
|
|
2500
|
+
identity: undefined;
|
|
2501
|
+
generated: undefined;
|
|
2502
|
+
}, {}>;
|
|
2455
2503
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2456
2504
|
name: string;
|
|
2457
2505
|
tableName: "account";
|
|
@@ -3608,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3608
3656
|
name: string;
|
|
3609
3657
|
tableName: "payment";
|
|
3610
3658
|
dataType: "string enum";
|
|
3611
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3659
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3612
3660
|
driverParam: string;
|
|
3613
3661
|
notNull: true;
|
|
3614
3662
|
hasDefault: false;
|
|
@@ -4812,6 +4860,22 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
4812
4860
|
identity: undefined;
|
|
4813
4861
|
generated: undefined;
|
|
4814
4862
|
}, {}>;
|
|
4863
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4864
|
+
name: string;
|
|
4865
|
+
tableName: "account";
|
|
4866
|
+
dataType: "boolean";
|
|
4867
|
+
data: boolean;
|
|
4868
|
+
driverParam: number;
|
|
4869
|
+
notNull: true;
|
|
4870
|
+
hasDefault: true;
|
|
4871
|
+
isPrimaryKey: false;
|
|
4872
|
+
isAutoincrement: false;
|
|
4873
|
+
hasRuntimeDefault: false;
|
|
4874
|
+
enumValues: undefined;
|
|
4875
|
+
baseColumn: never;
|
|
4876
|
+
identity: undefined;
|
|
4877
|
+
generated: undefined;
|
|
4878
|
+
}, {}>;
|
|
4815
4879
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4816
4880
|
name: string;
|
|
4817
4881
|
tableName: "account";
|
|
@@ -1042,6 +1042,22 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
|
1042
1042
|
identity: undefined;
|
|
1043
1043
|
generated: undefined;
|
|
1044
1044
|
}, {}>;
|
|
1045
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1046
|
+
name: string;
|
|
1047
|
+
tableName: "account";
|
|
1048
|
+
dataType: "boolean";
|
|
1049
|
+
data: boolean;
|
|
1050
|
+
driverParam: number;
|
|
1051
|
+
notNull: true;
|
|
1052
|
+
hasDefault: true;
|
|
1053
|
+
isPrimaryKey: false;
|
|
1054
|
+
isAutoincrement: false;
|
|
1055
|
+
hasRuntimeDefault: false;
|
|
1056
|
+
enumValues: undefined;
|
|
1057
|
+
baseColumn: never;
|
|
1058
|
+
identity: undefined;
|
|
1059
|
+
generated: undefined;
|
|
1060
|
+
}, {}>;
|
|
1045
1061
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1046
1062
|
name: string;
|
|
1047
1063
|
tableName: "account";
|
|
@@ -1747,6 +1763,22 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
|
1747
1763
|
identity: undefined;
|
|
1748
1764
|
generated: undefined;
|
|
1749
1765
|
}, {}>;
|
|
1766
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1767
|
+
name: string;
|
|
1768
|
+
tableName: "account";
|
|
1769
|
+
dataType: "boolean";
|
|
1770
|
+
data: boolean;
|
|
1771
|
+
driverParam: number;
|
|
1772
|
+
notNull: true;
|
|
1773
|
+
hasDefault: true;
|
|
1774
|
+
isPrimaryKey: false;
|
|
1775
|
+
isAutoincrement: false;
|
|
1776
|
+
hasRuntimeDefault: false;
|
|
1777
|
+
enumValues: undefined;
|
|
1778
|
+
baseColumn: never;
|
|
1779
|
+
identity: undefined;
|
|
1780
|
+
generated: undefined;
|
|
1781
|
+
}, {}>;
|
|
1750
1782
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1751
1783
|
name: string;
|
|
1752
1784
|
tableName: "account";
|
|
@@ -2452,6 +2484,22 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
|
2452
2484
|
identity: undefined;
|
|
2453
2485
|
generated: undefined;
|
|
2454
2486
|
}, {}>;
|
|
2487
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2488
|
+
name: string;
|
|
2489
|
+
tableName: "account";
|
|
2490
|
+
dataType: "boolean";
|
|
2491
|
+
data: boolean;
|
|
2492
|
+
driverParam: number;
|
|
2493
|
+
notNull: true;
|
|
2494
|
+
hasDefault: true;
|
|
2495
|
+
isPrimaryKey: false;
|
|
2496
|
+
isAutoincrement: false;
|
|
2497
|
+
hasRuntimeDefault: false;
|
|
2498
|
+
enumValues: undefined;
|
|
2499
|
+
baseColumn: never;
|
|
2500
|
+
identity: undefined;
|
|
2501
|
+
generated: undefined;
|
|
2502
|
+
}, {}>;
|
|
2455
2503
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2456
2504
|
name: string;
|
|
2457
2505
|
tableName: "account";
|
|
@@ -3608,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3608
3656
|
name: string;
|
|
3609
3657
|
tableName: "payment";
|
|
3610
3658
|
dataType: "string enum";
|
|
3611
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3659
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3612
3660
|
driverParam: string;
|
|
3613
3661
|
notNull: true;
|
|
3614
3662
|
hasDefault: false;
|
|
@@ -4812,6 +4860,22 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
4812
4860
|
identity: undefined;
|
|
4813
4861
|
generated: undefined;
|
|
4814
4862
|
}, {}>;
|
|
4863
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4864
|
+
name: string;
|
|
4865
|
+
tableName: "account";
|
|
4866
|
+
dataType: "boolean";
|
|
4867
|
+
data: boolean;
|
|
4868
|
+
driverParam: number;
|
|
4869
|
+
notNull: true;
|
|
4870
|
+
hasDefault: true;
|
|
4871
|
+
isPrimaryKey: false;
|
|
4872
|
+
isAutoincrement: false;
|
|
4873
|
+
hasRuntimeDefault: false;
|
|
4874
|
+
enumValues: undefined;
|
|
4875
|
+
baseColumn: never;
|
|
4876
|
+
identity: undefined;
|
|
4877
|
+
generated: undefined;
|
|
4878
|
+
}, {}>;
|
|
4815
4879
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4816
4880
|
name: string;
|
|
4817
4881
|
tableName: "account";
|
|
@@ -1042,6 +1042,22 @@ declare const accountInsertSchema: drizzle_orm_zod.BuildSchema<"insert", {
|
|
|
1042
1042
|
identity: undefined;
|
|
1043
1043
|
generated: undefined;
|
|
1044
1044
|
}, {}>;
|
|
1045
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1046
|
+
name: string;
|
|
1047
|
+
tableName: "account";
|
|
1048
|
+
dataType: "boolean";
|
|
1049
|
+
data: boolean;
|
|
1050
|
+
driverParam: number;
|
|
1051
|
+
notNull: true;
|
|
1052
|
+
hasDefault: true;
|
|
1053
|
+
isPrimaryKey: false;
|
|
1054
|
+
isAutoincrement: false;
|
|
1055
|
+
hasRuntimeDefault: false;
|
|
1056
|
+
enumValues: undefined;
|
|
1057
|
+
baseColumn: never;
|
|
1058
|
+
identity: undefined;
|
|
1059
|
+
generated: undefined;
|
|
1060
|
+
}, {}>;
|
|
1045
1061
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1046
1062
|
name: string;
|
|
1047
1063
|
tableName: "account";
|
|
@@ -1747,6 +1763,22 @@ declare const accountUpdateSchema: drizzle_orm_zod.BuildSchema<"update", {
|
|
|
1747
1763
|
identity: undefined;
|
|
1748
1764
|
generated: undefined;
|
|
1749
1765
|
}, {}>;
|
|
1766
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1767
|
+
name: string;
|
|
1768
|
+
tableName: "account";
|
|
1769
|
+
dataType: "boolean";
|
|
1770
|
+
data: boolean;
|
|
1771
|
+
driverParam: number;
|
|
1772
|
+
notNull: true;
|
|
1773
|
+
hasDefault: true;
|
|
1774
|
+
isPrimaryKey: false;
|
|
1775
|
+
isAutoincrement: false;
|
|
1776
|
+
hasRuntimeDefault: false;
|
|
1777
|
+
enumValues: undefined;
|
|
1778
|
+
baseColumn: never;
|
|
1779
|
+
identity: undefined;
|
|
1780
|
+
generated: undefined;
|
|
1781
|
+
}, {}>;
|
|
1750
1782
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
1751
1783
|
name: string;
|
|
1752
1784
|
tableName: "account";
|
|
@@ -2452,6 +2484,22 @@ declare const accountSelectSchema: drizzle_orm_zod.BuildSchema<"select", {
|
|
|
2452
2484
|
identity: undefined;
|
|
2453
2485
|
generated: undefined;
|
|
2454
2486
|
}, {}>;
|
|
2487
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2488
|
+
name: string;
|
|
2489
|
+
tableName: "account";
|
|
2490
|
+
dataType: "boolean";
|
|
2491
|
+
data: boolean;
|
|
2492
|
+
driverParam: number;
|
|
2493
|
+
notNull: true;
|
|
2494
|
+
hasDefault: true;
|
|
2495
|
+
isPrimaryKey: false;
|
|
2496
|
+
isAutoincrement: false;
|
|
2497
|
+
hasRuntimeDefault: false;
|
|
2498
|
+
enumValues: undefined;
|
|
2499
|
+
baseColumn: never;
|
|
2500
|
+
identity: undefined;
|
|
2501
|
+
generated: undefined;
|
|
2502
|
+
}, {}>;
|
|
2455
2503
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
2456
2504
|
name: string;
|
|
2457
2505
|
tableName: "account";
|
|
@@ -3608,7 +3656,7 @@ declare const payment: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
3608
3656
|
name: string;
|
|
3609
3657
|
tableName: "payment";
|
|
3610
3658
|
dataType: "string enum";
|
|
3611
|
-
data: "BOOKED" | "REJECTED" | "
|
|
3659
|
+
data: "BOOKED" | "REJECTED" | "PENDING" | "PROCESSING" | "CANCELLED" | "SCHEDULED" | "HOLD" | "INFO";
|
|
3612
3660
|
driverParam: string;
|
|
3613
3661
|
notNull: true;
|
|
3614
3662
|
hasDefault: false;
|
|
@@ -4812,6 +4860,22 @@ declare const account: drizzle_orm_sqlite_core.SQLiteTableWithColumns<{
|
|
|
4812
4860
|
identity: undefined;
|
|
4813
4861
|
generated: undefined;
|
|
4814
4862
|
}, {}>;
|
|
4863
|
+
syncEnabled: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4864
|
+
name: string;
|
|
4865
|
+
tableName: "account";
|
|
4866
|
+
dataType: "boolean";
|
|
4867
|
+
data: boolean;
|
|
4868
|
+
driverParam: number;
|
|
4869
|
+
notNull: true;
|
|
4870
|
+
hasDefault: true;
|
|
4871
|
+
isPrimaryKey: false;
|
|
4872
|
+
isAutoincrement: false;
|
|
4873
|
+
hasRuntimeDefault: false;
|
|
4874
|
+
enumValues: undefined;
|
|
4875
|
+
baseColumn: never;
|
|
4876
|
+
identity: undefined;
|
|
4877
|
+
generated: undefined;
|
|
4878
|
+
}, {}>;
|
|
4815
4879
|
syncIntervalS: drizzle_orm_sqlite_core.SQLiteColumn<{
|
|
4816
4880
|
name: string;
|
|
4817
4881
|
tableName: "account";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, S as BankCode, a2 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, S as BankCode, a2 as CountryCode, P as PaymentRequestSelectType } from './bank.CgiEbvJu.mjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sql, and, eq, isNull } from 'drizzle-orm';
|
|
2
|
-
import { G as tables, b as FinbricksConnector, J as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.
|
|
2
|
+
import { G as tables, b as FinbricksConnector, J as buildEndToEndId, c as MockConnector, D as DbuConnector, C as CsobConnector, K as KBConnector, M as MockCobsConnector, E as ErsteConnector } from './bank.kz-PKVi5.mjs';
|
|
3
3
|
import { uuidv4 } from '@develit-io/backend-sdk';
|
|
4
|
-
import './bank.
|
|
4
|
+
import './bank.BT7HayCV.mjs';
|
|
5
5
|
import 'date-fns';
|
|
6
6
|
import 'jose';
|
|
7
7
|
import '@develit-io/general-codes';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const drizzleOrm = require('drizzle-orm');
|
|
4
|
-
const paymentDirection = require('./bank.
|
|
4
|
+
const paymentDirection = require('./bank.BsWBG0gb.cjs');
|
|
5
5
|
const backendSdk = require('@develit-io/backend-sdk');
|
|
6
|
-
require('./bank.
|
|
6
|
+
require('./bank.Ca3jzmIb.cjs');
|
|
7
7
|
require('date-fns');
|
|
8
8
|
require('jose');
|
|
9
9
|
require('@develit-io/general-codes');
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as CurrencyCode, S as BankCode, a2 as CountryCode, P as PaymentRequestSelectType } from './bank.
|
|
1
|
+
import { e as CurrencyCode, S as BankCode, a2 as CountryCode, P as PaymentRequestSelectType } from './bank.CgiEbvJu.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
type ReferenceType = `${'VS' | 'SS' | 'KS'}:${number}`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { uuidv4, createInternalError, bicSchema, useResult, structuredAddressSchema } from '@develit-io/backend-sdk';
|
|
2
2
|
import { format, parseISO } from 'date-fns';
|
|
3
|
-
import { s as schema, h as account, i as accountCredentials, o as ott } from './bank.
|
|
3
|
+
import { s as schema, h as account, i as accountCredentials, o as ott } from './bank.BT7HayCV.mjs';
|
|
4
4
|
import { defineRelations, and, not, inArray, isNull } from 'drizzle-orm';
|
|
5
5
|
import { importPKCS8, SignJWT } from 'jose';
|
|
6
6
|
import { z } from 'zod';
|
package/dist/types.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const paymentDirection = require('./shared/bank.
|
|
4
|
-
const database_schema = require('./shared/bank.
|
|
3
|
+
const paymentDirection = require('./shared/bank.BsWBG0gb.cjs');
|
|
4
|
+
const database_schema = require('./shared/bank.Ca3jzmIb.cjs');
|
|
5
5
|
const batchLifecycle = require('./shared/bank.NF8bZBy0.cjs');
|
|
6
6
|
const generalCodes = require('@develit-io/general-codes');
|
|
7
7
|
require('@develit-io/backend-sdk');
|
package/dist/types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, E as EndToEndIdPayment, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, F as AccountCredentialsUpdateType, G as AccountPatchType, J as AccountStatus, K as AccountUpdateType, M as AuthorizedBatch, N as BASE_TERMINAL_STATUSES, O as BATCH_MODES, Q as BATCH_STATUES, Q as BATCH_STATUSES, R as BankAccountWithLastSync, S as BankCode, T as BatchInsertType, U as BatchLifecycle, V as BatchMode, W as BatchPayment, B as BatchSelectType, X as BatchStatus, Y as CHARGE_BEARERS, Z as CONNECTOR_KEYS, _ as COUNTRY_CODES, $ as CREDENTIALS_TYPES, a0 as ChargeBearer, a1 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a2 as CountryCode, a3 as CredentialsType, e as CurrencyCode, a4 as INSTRUCTION_PRIORITIES, a5 as InstructionPriority, L as LastSyncMetadata, a6 as PAYMENT_DIRECTIONS, a7 as PAYMENT_REQUEST_STATUSES, a8 as PAYMENT_STATUSES, a9 as PAYMENT_TYPES, aa as PaymentDirection, ab as PaymentFailedInsertType, ac as PaymentInsertType, ad as PaymentLifecycle, ae as PaymentPreparedInsertType, af as PaymentStatus, ag as ProcessingBatch, ah as ReadyToSignBatch, ai as ResolvedCredentials, aj as TOKEN_TYPES, ak as TokenType, al as accountCredentialsInsertSchema, am as accountCredentialsSelectSchema, an as accountCredentialsUpdateSchema, ao as accountInsertSchema, ap as accountSelectSchema, aq as accountUpdateSchema, ar as hasPaymentAccountAssigned, as as isBatchAuthorized, at as isBatchCompleted, au as isBatchFailed, av as isBatchInitiated, aw as isBatchProcessing, ax as isBatchReadyToSign, ay as isPaymentCompleted, az as isPendingStatus, aA as isProcessedStatus, aB as isTerminalStatus } 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, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, E as EndToEndIdPayment, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.CgiEbvJu.cjs';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, F as AccountCredentialsUpdateType, G as AccountPatchType, J as AccountStatus, K as AccountUpdateType, M as AuthorizedBatch, N as BASE_TERMINAL_STATUSES, O as BATCH_MODES, Q as BATCH_STATUES, Q as BATCH_STATUSES, R as BankAccountWithLastSync, S as BankCode, T as BatchInsertType, U as BatchLifecycle, V as BatchMode, W as BatchPayment, B as BatchSelectType, X as BatchStatus, Y as CHARGE_BEARERS, Z as CONNECTOR_KEYS, _ as COUNTRY_CODES, $ as CREDENTIALS_TYPES, a0 as ChargeBearer, a1 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a2 as CountryCode, a3 as CredentialsType, e as CurrencyCode, a4 as INSTRUCTION_PRIORITIES, a5 as InstructionPriority, L as LastSyncMetadata, a6 as PAYMENT_DIRECTIONS, a7 as PAYMENT_REQUEST_STATUSES, a8 as PAYMENT_STATUSES, a9 as PAYMENT_TYPES, aa as PaymentDirection, ab as PaymentFailedInsertType, ac as PaymentInsertType, ad as PaymentLifecycle, ae as PaymentPreparedInsertType, af as PaymentStatus, ag as ProcessingBatch, ah as ReadyToSignBatch, ai as ResolvedCredentials, aj as TOKEN_TYPES, ak as TokenType, al as accountCredentialsInsertSchema, am as accountCredentialsSelectSchema, an as accountCredentialsUpdateSchema, ao as accountInsertSchema, ap as accountSelectSchema, aq as accountUpdateSchema, ar as hasPaymentAccountAssigned, as as isBatchAuthorized, at as isBatchCompleted, au as isBatchFailed, av as isBatchInitiated, aw as isBatchProcessing, ax as isBatchReadyToSign, ay as isPaymentCompleted, az as isPendingStatus, aA as isProcessedStatus, aB as isTerminalStatus } from './shared/bank.CgiEbvJu.cjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.DZyrkXc_.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.DZyrkXc_.cjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
package/dist/types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, E as EndToEndIdPayment, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, F as AccountCredentialsUpdateType, G as AccountPatchType, J as AccountStatus, K as AccountUpdateType, M as AuthorizedBatch, N as BASE_TERMINAL_STATUSES, O as BATCH_MODES, Q as BATCH_STATUES, Q as BATCH_STATUSES, R as BankAccountWithLastSync, S as BankCode, T as BatchInsertType, U as BatchLifecycle, V as BatchMode, W as BatchPayment, B as BatchSelectType, X as BatchStatus, Y as CHARGE_BEARERS, Z as CONNECTOR_KEYS, _ as COUNTRY_CODES, $ as CREDENTIALS_TYPES, a0 as ChargeBearer, a1 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a2 as CountryCode, a3 as CredentialsType, e as CurrencyCode, a4 as INSTRUCTION_PRIORITIES, a5 as InstructionPriority, L as LastSyncMetadata, a6 as PAYMENT_DIRECTIONS, a7 as PAYMENT_REQUEST_STATUSES, a8 as PAYMENT_STATUSES, a9 as PAYMENT_TYPES, aa as PaymentDirection, ab as PaymentFailedInsertType, ac as PaymentInsertType, ad as PaymentLifecycle, ae as PaymentPreparedInsertType, af as PaymentStatus, ag as ProcessingBatch, ah as ReadyToSignBatch, ai as ResolvedCredentials, aj as TOKEN_TYPES, ak as TokenType, al as accountCredentialsInsertSchema, am as accountCredentialsSelectSchema, an as accountCredentialsUpdateSchema, ao as accountInsertSchema, ap as accountSelectSchema, aq as accountUpdateSchema, ar as hasPaymentAccountAssigned, as as isBatchAuthorized, at as isBatchCompleted, au as isBatchFailed, av as isBatchInitiated, aw as isBatchProcessing, ax as isBatchReadyToSign, ay as isPaymentCompleted, az as isPendingStatus, aA as isProcessedStatus, aB as isTerminalStatus } 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, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, E as EndToEndIdPayment, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.CgiEbvJu.mjs';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, F as AccountCredentialsUpdateType, G as AccountPatchType, J as AccountStatus, K as AccountUpdateType, M as AuthorizedBatch, N as BASE_TERMINAL_STATUSES, O as BATCH_MODES, Q as BATCH_STATUES, Q as BATCH_STATUSES, R as BankAccountWithLastSync, S as BankCode, T as BatchInsertType, U as BatchLifecycle, V as BatchMode, W as BatchPayment, B as BatchSelectType, X as BatchStatus, Y as CHARGE_BEARERS, Z as CONNECTOR_KEYS, _ as COUNTRY_CODES, $ as CREDENTIALS_TYPES, a0 as ChargeBearer, a1 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a2 as CountryCode, a3 as CredentialsType, e as CurrencyCode, a4 as INSTRUCTION_PRIORITIES, a5 as InstructionPriority, L as LastSyncMetadata, a6 as PAYMENT_DIRECTIONS, a7 as PAYMENT_REQUEST_STATUSES, a8 as PAYMENT_STATUSES, a9 as PAYMENT_TYPES, aa as PaymentDirection, ab as PaymentFailedInsertType, ac as PaymentInsertType, ad as PaymentLifecycle, ae as PaymentPreparedInsertType, af as PaymentStatus, ag as ProcessingBatch, ah as ReadyToSignBatch, ai as ResolvedCredentials, aj as TOKEN_TYPES, ak as TokenType, al as accountCredentialsInsertSchema, am as accountCredentialsSelectSchema, an as accountCredentialsUpdateSchema, ao as accountInsertSchema, ap as accountSelectSchema, aq as accountUpdateSchema, ar as hasPaymentAccountAssigned, as as isBatchAuthorized, at as isBatchCompleted, au as isBatchFailed, av as isBatchInitiated, aw as isBatchProcessing, ax as isBatchReadyToSign, ay as isPaymentCompleted, az as isPendingStatus, aA as isProcessedStatus, aB as isTerminalStatus } from './shared/bank.CgiEbvJu.mjs';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.D19D3a9C.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.D19D3a9C.mjs';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { I as IBankConnector, b as ConnectorKey, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, E as EndToEndIdPayment, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.
|
|
2
|
-
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, F as AccountCredentialsUpdateType, G as AccountPatchType, J as AccountStatus, K as AccountUpdateType, M as AuthorizedBatch, N as BASE_TERMINAL_STATUSES, O as BATCH_MODES, Q as BATCH_STATUES, Q as BATCH_STATUSES, R as BankAccountWithLastSync, S as BankCode, T as BatchInsertType, U as BatchLifecycle, V as BatchMode, W as BatchPayment, B as BatchSelectType, X as BatchStatus, Y as CHARGE_BEARERS, Z as CONNECTOR_KEYS, _ as COUNTRY_CODES, $ as CREDENTIALS_TYPES, a0 as ChargeBearer, a1 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a2 as CountryCode, a3 as CredentialsType, e as CurrencyCode, a4 as INSTRUCTION_PRIORITIES, a5 as InstructionPriority, L as LastSyncMetadata, a6 as PAYMENT_DIRECTIONS, a7 as PAYMENT_REQUEST_STATUSES, a8 as PAYMENT_STATUSES, a9 as PAYMENT_TYPES, aa as PaymentDirection, ab as PaymentFailedInsertType, ac as PaymentInsertType, ad as PaymentLifecycle, ae as PaymentPreparedInsertType, af as PaymentStatus, ag as ProcessingBatch, ah as ReadyToSignBatch, ai as ResolvedCredentials, aj as TOKEN_TYPES, ak as TokenType, al as accountCredentialsInsertSchema, am as accountCredentialsSelectSchema, an as accountCredentialsUpdateSchema, ao as accountInsertSchema, ap as accountSelectSchema, aq as accountUpdateSchema, ar as hasPaymentAccountAssigned, as as isBatchAuthorized, at as isBatchCompleted, au as isBatchFailed, av as isBatchInitiated, aw as isBatchProcessing, ax as isBatchReadyToSign, ay as isPaymentCompleted, az as isPendingStatus, aA as isProcessedStatus, aB as isTerminalStatus } 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, g as ConnectedAccount, d as PaymentType, h as CredentialsResolver, i as AccountCredentialsInsertType, j as AccountInsertType, k as BatchedPayment, l as InitiatedBatch, E as EndToEndIdPayment, m as IncomingPayment, n as InitiatedPayment, A as AccountSelectType, o as ParsedBankPayment, p as PaymentRequestStatus, q as AuthorizationCallbackResult, r as BatchMetadata, s as Currency, a as PaymentSelectType, P as PaymentRequestSelectType, u as AccountAssignedPayment, v as PreparedPayment, w as CompletedPayment, x as PaymentRequestInsertType } from './shared/bank.CgiEbvJu.js';
|
|
2
|
+
export { y as ACCOUNT_STATUSES, z as AccountCredentialsPatchType, D as AccountCredentialsSelectType, F as AccountCredentialsUpdateType, G as AccountPatchType, J as AccountStatus, K as AccountUpdateType, M as AuthorizedBatch, N as BASE_TERMINAL_STATUSES, O as BATCH_MODES, Q as BATCH_STATUES, Q as BATCH_STATUSES, R as BankAccountWithLastSync, S as BankCode, T as BatchInsertType, U as BatchLifecycle, V as BatchMode, W as BatchPayment, B as BatchSelectType, X as BatchStatus, Y as CHARGE_BEARERS, Z as CONNECTOR_KEYS, _ as COUNTRY_CODES, $ as CREDENTIALS_TYPES, a0 as ChargeBearer, a1 as CompletedBatch, c as ConfigEnvironmentBank, C as ConnectorConfig, a2 as CountryCode, a3 as CredentialsType, e as CurrencyCode, a4 as INSTRUCTION_PRIORITIES, a5 as InstructionPriority, L as LastSyncMetadata, a6 as PAYMENT_DIRECTIONS, a7 as PAYMENT_REQUEST_STATUSES, a8 as PAYMENT_STATUSES, a9 as PAYMENT_TYPES, aa as PaymentDirection, ab as PaymentFailedInsertType, ac as PaymentInsertType, ad as PaymentLifecycle, ae as PaymentPreparedInsertType, af as PaymentStatus, ag as ProcessingBatch, ah as ReadyToSignBatch, ai as ResolvedCredentials, aj as TOKEN_TYPES, ak as TokenType, al as accountCredentialsInsertSchema, am as accountCredentialsSelectSchema, an as accountCredentialsUpdateSchema, ao as accountInsertSchema, ap as accountSelectSchema, aq as accountUpdateSchema, ar as hasPaymentAccountAssigned, as as isBatchAuthorized, at as isBatchCompleted, au as isBatchFailed, av as isBatchInitiated, aw as isBatchProcessing, ax as isBatchReadyToSign, ay as isPaymentCompleted, az as isPendingStatus, aA as isProcessedStatus, aB as isTerminalStatus } from './shared/bank.CgiEbvJu.js';
|
|
3
|
+
import { d as FinbricksAccount, R as ReferenceType, S as SendPaymentInput } from './shared/bank.-8YAJoxw.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.-8YAJoxw.js';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { BaseEvent } from '@develit-io/backend-sdk';
|
|
7
7
|
import * as drizzle_orm_zod from 'drizzle-orm/zod';
|
package/dist/types.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { B as BASE_TERMINAL_STATUSES, C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.
|
|
2
|
-
export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES } from './shared/bank.
|
|
1
|
+
export { B as BASE_TERMINAL_STATUSES, C as CsobConnector, D as DbuConnector, E as ErsteConnector, F as FINBRICKS_ENDPOINTS, a as FinbricksClient, b as FinbricksConnector, I as IBankConnector, K as KBConnector, M as MockCobsConnector, c as MockConnector, d as accountCredentialsInsertSchema, e as accountCredentialsSelectSchema, f as accountCredentialsUpdateSchema, g as accountInsertSchema, h as accountSelectSchema, i as accountUpdateSchema, j as assignAccount, k as dbuAccountConfigSchema, l as hasPaymentAccountAssigned, m as isPaymentCompleted, n as isPendingStatus, o as isProcessedStatus, p as isTerminalStatus, q as ottInsertSchema, r as ottSelectSchema, s as ottUpdateSchema, t as signFinbricksJws, u as toBatchedPayment, v as toBatchedPaymentFromPaymentRequest, w as toCompletedPayment, x as toIncomingPayment, y as toPaymentRequestInsert, z as toPreparedPayment, A as useFinbricksFetch } from './shared/bank.kz-PKVi5.mjs';
|
|
2
|
+
export { A as ACCOUNT_STATUSES, B as BATCH_MODES, a as BATCH_STATUES, a as BATCH_STATUSES, C as CHARGE_BEARERS, b as CONNECTOR_KEYS, c as COUNTRY_CODES, d as CREDENTIALS_TYPES, I as INSTRUCTION_PRIORITIES, P as PAYMENT_DIRECTIONS, e as PAYMENT_REQUEST_STATUSES, f as PAYMENT_STATUSES, g as PAYMENT_TYPES, T as TOKEN_TYPES } from './shared/bank.BT7HayCV.mjs';
|
|
3
3
|
export { i as isBatchAuthorized, a as isBatchCompleted, b as isBatchFailed, c as isBatchInitiated, d as isBatchProcessing, e as isBatchReadyToSign } from './shared/bank.XqSw509X.mjs';
|
|
4
4
|
export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
|
|
5
5
|
import '@develit-io/backend-sdk';
|