@develit-services/bank 0.0.5 → 0.0.7
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.d.cts +3 -3
- package/dist/export/worker.d.mts +3 -3
- package/dist/export/worker.d.ts +3 -3
- package/dist/export/wrangler.cjs +5 -5
- package/dist/export/wrangler.mjs +5 -5
- package/dist/shared/{bank.DmLulSzu.d.cts → bank.C28GtA5s.d.cts} +1 -1
- package/dist/shared/{bank.dxpKOn1t.d.mts → bank.CBNQZ5Pd.d.cts} +6 -6
- package/dist/shared/{bank.dxpKOn1t.d.ts → bank.CBNQZ5Pd.d.mts} +6 -6
- package/dist/shared/{bank.dxpKOn1t.d.cts → bank.CBNQZ5Pd.d.ts} +6 -6
- package/dist/shared/{bank.DqT4zUJn.d.mts → bank.LCrZu9Ic.d.mts} +1 -1
- package/dist/shared/{bank.B72_bFlr.d.ts → bank.atHmEWmc.d.ts} +1 -1
- package/package.json +3 -3
package/dist/@types.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.
|
|
2
|
-
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.C28GtA5s.cjs';
|
|
2
|
+
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.C28GtA5s.cjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.CBNQZ5Pd.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.CBNQZ5Pd.cjs';
|
|
5
5
|
import { Environment } 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.DxGqqFhD.cjs';
|
package/dist/@types.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.
|
|
2
|
-
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.LCrZu9Ic.mjs';
|
|
2
|
+
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.LCrZu9Ic.mjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.CBNQZ5Pd.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.CBNQZ5Pd.mjs';
|
|
5
5
|
import { Environment } 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.DxGqqFhD.mjs';
|
package/dist/@types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.
|
|
2
|
-
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.
|
|
3
|
-
import { t as tables, a as PaymentInsertType } from './shared/bank.
|
|
4
|
-
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.
|
|
1
|
+
import { b as CurrencyCode, c as BankCode, d as CountryCode, I as IBankConnector, a as ConnectorKey, A as AuthInput, e as IncomingPaymentMessage, P as PaymentPreparedInsertType, f as InitiatedBatch, g as InitiatedPayment, C as ConfigBankAccount, S as SyncLog, h as BatchMetadata, i as Currency } from './shared/bank.atHmEWmc.js';
|
|
2
|
+
export { k as BATCH_STATUES, k as BATCH_STATUSES, l as BatchStatus, t as COUNTRY_CODES, O as OutgoingPaymentMessage, r as PAYMENT_DIRECTIONS, o as PAYMENT_STATUSES, m as PAYMENT_TYPES, s as PaymentDirection, j as PaymentFailedInsertType, q as PaymentStatus, n as PaymentType, p as paymentInitializedInsertType } from './shared/bank.atHmEWmc.js';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.CBNQZ5Pd.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.CBNQZ5Pd.js';
|
|
5
5
|
import { Environment } 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.DxGqqFhD.js';
|
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.CBNQZ5Pd.cjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { I as IBankConnector, C as ConfigBankAccount, a as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { I as IBankConnector, C as ConfigBankAccount, a as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.C28GtA5s.cjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -209,10 +209,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
209
209
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
210
210
|
paymentsToBatch: SendPaymentInput[];
|
|
211
211
|
}): Promise<IRPCResponse<{
|
|
212
|
-
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
213
212
|
batchPaymentInitiatedAt: Date | null;
|
|
214
213
|
authorizationUrls: string | string[] | null;
|
|
215
214
|
accountId: string | null;
|
|
215
|
+
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
216
216
|
payments: PaymentInsertType[];
|
|
217
217
|
metadata: object | null;
|
|
218
218
|
id: string;
|
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.CBNQZ5Pd.mjs';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { I as IBankConnector, C as ConfigBankAccount, a as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { I as IBankConnector, C as ConfigBankAccount, a as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.LCrZu9Ic.mjs';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -209,10 +209,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
209
209
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
210
210
|
paymentsToBatch: SendPaymentInput[];
|
|
211
211
|
}): Promise<IRPCResponse<{
|
|
212
|
-
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
213
212
|
batchPaymentInitiatedAt: Date | null;
|
|
214
213
|
authorizationUrls: string | string[] | null;
|
|
215
214
|
accountId: string | null;
|
|
215
|
+
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
216
216
|
payments: PaymentInsertType[];
|
|
217
217
|
metadata: object | null;
|
|
218
218
|
id: string;
|
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.CBNQZ5Pd.js';
|
|
4
4
|
import { WorkerEntrypoint } from 'cloudflare:workers';
|
|
5
5
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
6
6
|
import { z } from 'zod';
|
|
7
|
-
import { I as IBankConnector, C as ConfigBankAccount, a as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.
|
|
7
|
+
import { I as IBankConnector, C as ConfigBankAccount, a as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.atHmEWmc.js';
|
|
8
8
|
import 'drizzle-orm/sqlite-core';
|
|
9
9
|
import 'drizzle-orm';
|
|
10
10
|
import '@develit-io/general-codes';
|
|
@@ -209,10 +209,10 @@ declare class BankServiceBase extends BankServiceBase_base {
|
|
|
209
209
|
addPaymentsToBatch({ paymentsToBatch, }: {
|
|
210
210
|
paymentsToBatch: SendPaymentInput[];
|
|
211
211
|
}): Promise<IRPCResponse<{
|
|
212
|
-
status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
|
|
213
212
|
batchPaymentInitiatedAt: Date | null;
|
|
214
213
|
authorizationUrls: string | string[] | null;
|
|
215
214
|
accountId: string | null;
|
|
215
|
+
status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
|
|
216
216
|
payments: PaymentInsertType[];
|
|
217
217
|
metadata: object | null;
|
|
218
218
|
id: string;
|
package/dist/export/wrangler.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
function defineBankServiceWrangler(config) {
|
|
4
4
|
const { project, name, envs } = config;
|
|
5
5
|
const base = {
|
|
6
|
-
name
|
|
6
|
+
name: `${project}-${name}`,
|
|
7
7
|
main: "./src/index.ts",
|
|
8
8
|
compatibility_date: "2025-06-04",
|
|
9
9
|
compatibility_flags: ["nodejs_compat"],
|
|
@@ -45,7 +45,7 @@ function defineBankServiceWrangler(config) {
|
|
|
45
45
|
d1_databases: [
|
|
46
46
|
{
|
|
47
47
|
binding: "BANK_D1",
|
|
48
|
-
database_name: name
|
|
48
|
+
database_name: `${project}-${name}`,
|
|
49
49
|
database_id: envs.local.d1.id,
|
|
50
50
|
migrations_dir: "./src/database/migrations"
|
|
51
51
|
}
|
|
@@ -93,8 +93,8 @@ function defineBankServiceWrangler(config) {
|
|
|
93
93
|
],
|
|
94
94
|
d1_databases: [
|
|
95
95
|
{
|
|
96
|
-
binding: "
|
|
97
|
-
database_name: `${name}-${envName}`,
|
|
96
|
+
binding: "BANK_D1",
|
|
97
|
+
database_name: `${project}-${name}-${envName}`,
|
|
98
98
|
database_id: envCfg.d1.id,
|
|
99
99
|
migrations_dir: "./src/database/migrations"
|
|
100
100
|
}
|
|
@@ -119,7 +119,7 @@ function defineBankServiceWrangler(config) {
|
|
|
119
119
|
queue: `${project}-payments-ready-to-batch-${envName}`,
|
|
120
120
|
max_batch_size: envCfg.queue?.max_batch_size ?? 1,
|
|
121
121
|
max_batch_timeout: envCfg.queue?.max_batch_timeout ?? 5,
|
|
122
|
-
dead_letter_queue: `${project}-payments-ready-to-batch-dlq`
|
|
122
|
+
dead_letter_queue: `${project}-payments-ready-to-batch-dlq-${envName}`
|
|
123
123
|
}
|
|
124
124
|
]
|
|
125
125
|
}
|
package/dist/export/wrangler.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function defineBankServiceWrangler(config) {
|
|
2
2
|
const { project, name, envs } = config;
|
|
3
3
|
const base = {
|
|
4
|
-
name
|
|
4
|
+
name: `${project}-${name}`,
|
|
5
5
|
main: "./src/index.ts",
|
|
6
6
|
compatibility_date: "2025-06-04",
|
|
7
7
|
compatibility_flags: ["nodejs_compat"],
|
|
@@ -43,7 +43,7 @@ function defineBankServiceWrangler(config) {
|
|
|
43
43
|
d1_databases: [
|
|
44
44
|
{
|
|
45
45
|
binding: "BANK_D1",
|
|
46
|
-
database_name: name
|
|
46
|
+
database_name: `${project}-${name}`,
|
|
47
47
|
database_id: envs.local.d1.id,
|
|
48
48
|
migrations_dir: "./src/database/migrations"
|
|
49
49
|
}
|
|
@@ -91,8 +91,8 @@ function defineBankServiceWrangler(config) {
|
|
|
91
91
|
],
|
|
92
92
|
d1_databases: [
|
|
93
93
|
{
|
|
94
|
-
binding: "
|
|
95
|
-
database_name: `${name}-${envName}`,
|
|
94
|
+
binding: "BANK_D1",
|
|
95
|
+
database_name: `${project}-${name}-${envName}`,
|
|
96
96
|
database_id: envCfg.d1.id,
|
|
97
97
|
migrations_dir: "./src/database/migrations"
|
|
98
98
|
}
|
|
@@ -117,7 +117,7 @@ function defineBankServiceWrangler(config) {
|
|
|
117
117
|
queue: `${project}-payments-ready-to-batch-${envName}`,
|
|
118
118
|
max_batch_size: envCfg.queue?.max_batch_size ?? 1,
|
|
119
119
|
max_batch_timeout: envCfg.queue?.max_batch_timeout ?? 5,
|
|
120
|
-
dead_letter_queue: `${project}-payments-ready-to-batch-dlq`
|
|
120
|
+
dead_letter_queue: `${project}-payments-ready-to-batch-dlq-${envName}`
|
|
121
121
|
}
|
|
122
122
|
]
|
|
123
123
|
}
|
|
@@ -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.CBNQZ5Pd.cjs';
|
|
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
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
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: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
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: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
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" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "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" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "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
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
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: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
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: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
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" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "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" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "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
|
-
|
|
85
|
+
COMPLETED: "COMPLETED";
|
|
86
86
|
FAILED: "FAILED";
|
|
87
|
+
INITIALIZED: "INITIALIZED";
|
|
87
88
|
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: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
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: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED";
|
|
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" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "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" | "COMPLETED" | "FAILED" | "INITIALIZED" | "PENDING" | "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.CBNQZ5Pd.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.CBNQZ5Pd.js';
|
|
4
4
|
import { DrizzleD1Database } from 'drizzle-orm/d1';
|
|
5
5
|
|
|
6
6
|
declare const PAYMENT_TYPES: readonly ["SEPA", "SWIFT", "IFSC", "DOMESTIC"];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"./dist"
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
|
-
"dev": "wrangler dev --port
|
|
33
|
+
"dev": "wrangler dev --port 9231 --persist-to ../../.wrangler/state",
|
|
34
34
|
"wrangler:generate": "bunx develit wrangler:generate",
|
|
35
|
-
"db:init": "wrangler d1 execute bank --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
35
|
+
"db:init": "wrangler d1 execute develit-bank --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
36
36
|
"db:generate": "drizzle-kit generate",
|
|
37
37
|
"db:migrate": "drizzle-kit migrate",
|
|
38
38
|
"db:explore": "drizzle-kit studio",
|