@develit-services/bank 0.0.6 → 0.0.8

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 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.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';
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.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';
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.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';
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';
@@ -1,4 +1,4 @@
1
- export { c as batch, d as payment, e as paymentRelations } from '../shared/bank.dxpKOn1t.cjs';
1
+ export { c as batch, d as payment, e as paymentRelations } from '../shared/bank.CBNQZ5Pd.cjs';
2
2
  import 'drizzle-orm/sqlite-core';
3
3
  import 'drizzle-orm';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { c as batch, d as payment, e as paymentRelations } from '../shared/bank.dxpKOn1t.mjs';
1
+ export { c as batch, d as payment, e as paymentRelations } from '../shared/bank.CBNQZ5Pd.mjs';
2
2
  import 'drizzle-orm/sqlite-core';
3
3
  import 'drizzle-orm';
4
4
  import 'zod';
@@ -1,4 +1,4 @@
1
- export { c as batch, d as payment, e as paymentRelations } from '../shared/bank.dxpKOn1t.js';
1
+ export { c as batch, d as payment, e as paymentRelations } from '../shared/bank.CBNQZ5Pd.js';
2
2
  import 'drizzle-orm/sqlite-core';
3
3
  import 'drizzle-orm';
4
4
  import 'zod';
@@ -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.dxpKOn1t.cjs';
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.DmLulSzu.cjs';
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;
@@ -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.dxpKOn1t.mjs';
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.DqT4zUJn.mjs';
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;
@@ -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.dxpKOn1t.js';
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.B72_bFlr.js';
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;
@@ -3,8 +3,7 @@
3
3
  function defineBankServiceWrangler(config) {
4
4
  const { project, name, envs } = config;
5
5
  const base = {
6
- project,
7
- name,
6
+ name: `${project}-${name}`,
8
7
  main: "./src/index.ts",
9
8
  compatibility_date: "2025-06-04",
10
9
  compatibility_flags: ["nodejs_compat"],
@@ -46,7 +45,7 @@ function defineBankServiceWrangler(config) {
46
45
  d1_databases: [
47
46
  {
48
47
  binding: "BANK_D1",
49
- database_name: `${project}-${name}`,
48
+ database_name: `${project}-bank`,
50
49
  database_id: envs.local.d1.id,
51
50
  migrations_dir: "./src/database/migrations"
52
51
  }
@@ -95,7 +94,7 @@ function defineBankServiceWrangler(config) {
95
94
  d1_databases: [
96
95
  {
97
96
  binding: "BANK_D1",
98
- database_name: `${project}-${name}-${envName}`,
97
+ database_name: `${project}-bank-${envName}`,
99
98
  database_id: envCfg.d1.id,
100
99
  migrations_dir: "./src/database/migrations"
101
100
  }
@@ -1,7 +1,6 @@
1
1
  import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.cjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- project: string;
5
4
  name: string;
6
5
  main: string;
7
6
  compatibility_date: string;
@@ -1,7 +1,6 @@
1
1
  import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.mjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- project: string;
5
4
  name: string;
6
5
  main: string;
7
6
  compatibility_date: string;
@@ -1,7 +1,6 @@
1
1
  import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.js';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- project: string;
5
4
  name: string;
6
5
  main: string;
7
6
  compatibility_date: string;
@@ -1,8 +1,7 @@
1
1
  function defineBankServiceWrangler(config) {
2
2
  const { project, name, envs } = config;
3
3
  const base = {
4
- project,
5
- name,
4
+ name: `${project}-${name}`,
6
5
  main: "./src/index.ts",
7
6
  compatibility_date: "2025-06-04",
8
7
  compatibility_flags: ["nodejs_compat"],
@@ -44,7 +43,7 @@ function defineBankServiceWrangler(config) {
44
43
  d1_databases: [
45
44
  {
46
45
  binding: "BANK_D1",
47
- database_name: `${project}-${name}`,
46
+ database_name: `${project}-bank`,
48
47
  database_id: envs.local.d1.id,
49
48
  migrations_dir: "./src/database/migrations"
50
49
  }
@@ -93,7 +92,7 @@ function defineBankServiceWrangler(config) {
93
92
  d1_databases: [
94
93
  {
95
94
  binding: "BANK_D1",
96
- database_name: `${project}-${name}-${envName}`,
95
+ database_name: `${project}-bank-${envName}`,
97
96
  database_id: envCfg.d1.id,
98
97
  migrations_dir: "./src/database/migrations"
99
98
  }
@@ -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.dxpKOn1t.cjs';
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
- INITIALIZED: "INITIALIZED";
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
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
- INITIALIZED: "INITIALIZED";
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
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
- INITIALIZED: "INITIALIZED";
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
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: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN";
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
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" | "INITIALIZED" | "FAILED" | "PENDING" | "COMPLETED" | "CREATED";
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.dxpKOn1t.mjs';
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.dxpKOn1t.js';
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.6",
3
+ "version": "0.0.8",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {