@develit-services/bank 0.0.4 → 0.0.5
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 +3 -3
- 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/worker.mjs +3 -3
- package/dist/shared/{bank.atHmEWmc.d.ts → bank.B72_bFlr.d.ts} +1 -1
- package/dist/shared/{bank.C28GtA5s.d.cts → bank.DmLulSzu.d.cts} +1 -1
- package/dist/shared/{bank.LCrZu9Ic.d.mts → bank.DqT4zUJn.d.mts} +1 -1
- 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/package.json +2 -2
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.DmLulSzu.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.DmLulSzu.cjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.dxpKOn1t.cjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.dxpKOn1t.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.DqT4zUJn.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.DqT4zUJn.mjs';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.dxpKOn1t.mjs';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.dxpKOn1t.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.B72_bFlr.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.B72_bFlr.js';
|
|
3
|
+
import { t as tables, a as PaymentInsertType } from './shared/bank.dxpKOn1t.js';
|
|
4
|
+
export { b as BatchInsertType, B as BatchSelectType, P as PaymentSelectType, p as paymentInsertTypeZod } from './shared/bank.dxpKOn1t.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.cjs
CHANGED
|
@@ -612,11 +612,11 @@ const useSync = (kv) => {
|
|
|
612
612
|
};
|
|
613
613
|
|
|
614
614
|
const seperateSupportedPayments = (mappedPayments, accounts) => {
|
|
615
|
-
const ibans = new Set(accounts.map((acc) => acc.identification.iban));
|
|
616
|
-
const currencies = new Set(accounts.map((acc) => acc.currency));
|
|
617
615
|
const [supportedPayments, unsupportedPayments] = mappedPayments.reduce(
|
|
618
616
|
([valid, invalid], payment) => {
|
|
619
|
-
const isValid =
|
|
617
|
+
const isValid = accounts.some(
|
|
618
|
+
(acc) => acc.identification.iban === payment.debtorIban && acc.currency === payment.currency
|
|
619
|
+
);
|
|
620
620
|
if (isValid) {
|
|
621
621
|
valid.push(payment);
|
|
622
622
|
} else {
|
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.dxpKOn1t.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.DmLulSzu.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;
|
|
212
213
|
batchPaymentInitiatedAt: Date | null;
|
|
213
214
|
authorizationUrls: string | string[] | null;
|
|
214
215
|
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.dxpKOn1t.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.DqT4zUJn.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;
|
|
212
213
|
batchPaymentInitiatedAt: Date | null;
|
|
213
214
|
authorizationUrls: string | string[] | null;
|
|
214
215
|
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.dxpKOn1t.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.B72_bFlr.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;
|
|
212
213
|
batchPaymentInitiatedAt: Date | null;
|
|
213
214
|
authorizationUrls: string | string[] | null;
|
|
214
215
|
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.mjs
CHANGED
|
@@ -604,11 +604,11 @@ const useSync = (kv) => {
|
|
|
604
604
|
};
|
|
605
605
|
|
|
606
606
|
const seperateSupportedPayments = (mappedPayments, accounts) => {
|
|
607
|
-
const ibans = new Set(accounts.map((acc) => acc.identification.iban));
|
|
608
|
-
const currencies = new Set(accounts.map((acc) => acc.currency));
|
|
609
607
|
const [supportedPayments, unsupportedPayments] = mappedPayments.reduce(
|
|
610
608
|
([valid, invalid], payment) => {
|
|
611
|
-
const isValid =
|
|
609
|
+
const isValid = accounts.some(
|
|
610
|
+
(acc) => acc.identification.iban === payment.debtorIban && acc.currency === payment.currency
|
|
611
|
+
);
|
|
612
612
|
if (isValid) {
|
|
613
613
|
valid.push(payment);
|
|
614
614
|
} else {
|
|
@@ -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"];
|
|
@@ -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"];
|
|
@@ -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"];
|
|
@@ -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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@develit-services/bank",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"author": "Develit.io s.r.o.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"dev": "wrangler dev --port 9230",
|
|
34
|
+
"wrangler:generate": "bunx develit wrangler:generate",
|
|
34
35
|
"db:init": "wrangler d1 execute bank --local --persist-to ../../.wrangler/state --command=\"SELECT 'Creating database...' AS status;\"",
|
|
35
36
|
"db:generate": "drizzle-kit generate",
|
|
36
37
|
"db:migrate": "drizzle-kit migrate",
|
|
37
38
|
"db:explore": "drizzle-kit studio",
|
|
38
|
-
"wrangler:generate": "bunx develit wrangler:generate",
|
|
39
39
|
"types": "wrangler types --env-interface BankEnv --include-runtime false",
|
|
40
40
|
"typecheck": "tsc",
|
|
41
41
|
"lint": "biome check",
|