@develit-services/bank 0.0.12 → 0.0.13

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 { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.DrgcXMkG.cjs';
2
- export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.DrgcXMkG.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 { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.BULPVep1.cjs';
2
+ export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.BULPVep1.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 { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.yLyF54-_.mjs';
2
- export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.yLyF54-_.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 { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.Dxfp5h5B.mjs';
2
+ export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.Dxfp5h5B.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 { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.D1VhQbrS.js';
2
- export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.D1VhQbrS.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 { c as CurrencyCode, d as BankCode, e as CountryCode, I as IBankConnector, b as ConnectorKey, A as AuthInput, f as IncomingPaymentMessage, P as PaymentPreparedInsertType, g as InitiatedBatch, h as InitiatedPayment, a as ConfigBankAccount, S as SyncLog, i as BatchMetadata, j as Currency } from './shared/bank.BYxCT5rk.js';
2
+ export { l as BATCH_STATUES, l as BATCH_STATUSES, m as BatchStatus, u as COUNTRY_CODES, O as OutgoingPaymentMessage, s as PAYMENT_DIRECTIONS, q as PAYMENT_STATUSES, n as PAYMENT_TYPES, t as PaymentDirection, k as PaymentFailedInsertType, r as PaymentStatus, o as PaymentType, p as paymentInitializedInsertType } from './shared/bank.BYxCT5rk.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 { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.DrgcXMkG.cjs';
7
+ import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.BULPVep1.cjs';
8
8
  import 'drizzle-orm/sqlite-core';
9
9
  import 'drizzle-orm';
10
10
  import '@develit-io/general-codes';
@@ -210,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
210
210
  addPaymentsToBatch({ paymentsToBatch, }: {
211
211
  paymentsToBatch: SendPaymentInput[];
212
212
  }): Promise<IRPCResponse<{
213
- status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
214
213
  batchPaymentInitiatedAt: Date | null;
215
214
  authorizationUrls: string | string[] | null;
216
215
  accountId: string | null;
216
+ status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
217
217
  payments: PaymentInsertType[];
218
218
  metadata: object | null;
219
219
  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 { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.yLyF54-_.mjs';
7
+ import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.Dxfp5h5B.mjs';
8
8
  import 'drizzle-orm/sqlite-core';
9
9
  import 'drizzle-orm';
10
10
  import '@develit-io/general-codes';
@@ -210,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
210
210
  addPaymentsToBatch({ paymentsToBatch, }: {
211
211
  paymentsToBatch: SendPaymentInput[];
212
212
  }): Promise<IRPCResponse<{
213
- status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
214
213
  batchPaymentInitiatedAt: Date | null;
215
214
  authorizationUrls: string | string[] | null;
216
215
  accountId: string | null;
216
+ status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
217
217
  payments: PaymentInsertType[];
218
218
  metadata: object | null;
219
219
  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 { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.D1VhQbrS.js';
7
+ import { C as ConfigEnvironmentBankAccount, I as IBankConnector, a as ConfigBankAccount, b as ConnectorKey, B as BankAccountWithLastSync } from '../shared/bank.BYxCT5rk.js';
8
8
  import 'drizzle-orm/sqlite-core';
9
9
  import 'drizzle-orm';
10
10
  import '@develit-io/general-codes';
@@ -210,10 +210,10 @@ declare class BankServiceBase extends BankServiceBase_base {
210
210
  addPaymentsToBatch({ paymentsToBatch, }: {
211
211
  paymentsToBatch: SendPaymentInput[];
212
212
  }): Promise<IRPCResponse<{
213
- status: "PREPARED" | "FAILED" | "COMPLETED" | "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | null;
214
213
  batchPaymentInitiatedAt: Date | null;
215
214
  authorizationUrls: string | string[] | null;
216
215
  accountId: string | null;
216
+ status: "OPEN" | "WAITING_FOR_PROCESSING" | "PROCESSING" | "READY_TO_SIGN" | "PREPARED" | "COMPLETED" | "FAILED" | null;
217
217
  payments: PaymentInsertType[];
218
218
  metadata: object | null;
219
219
  id: string;
@@ -1,24 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ const backendSdk = require('@develit-io/backend-sdk');
4
+
3
5
  function defineBankServiceWrangler(config) {
4
6
  const { project, name, envs } = config;
5
7
  const base = {
6
- $schema: "../../node_modules/wrangler/config-schema.json",
7
- name: `${project}-${name}`,
8
- main: "./src/index.ts",
9
- compatibility_date: "2025-06-04",
10
- compatibility_flags: ["nodejs_compat"],
11
- observability: {
12
- enabled: true,
13
- head_sampling_rate: 1,
14
- logs: {
15
- enabled: true,
16
- invocation_logs: false
17
- }
18
- },
19
- preview_urls: false,
20
- workers_dev: false,
21
- keep_vars: true,
8
+ ...backendSdk.composeWranglerBase({
9
+ project,
10
+ name
11
+ }),
22
12
  vars: {
23
13
  // Secrets
24
14
  FINBRICKS_PRIVATE_KEY_PEM: "[SECRET]",
@@ -1,22 +1,6 @@
1
1
  import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.cjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- $schema: string;
5
- name: string;
6
- main: string;
7
- compatibility_date: string;
8
- compatibility_flags: string[];
9
- observability: {
10
- enabled: boolean;
11
- head_sampling_rate: number;
12
- logs: {
13
- enabled: boolean;
14
- invocation_logs: boolean;
15
- };
16
- };
17
- preview_urls: boolean;
18
- workers_dev: boolean;
19
- keep_vars: boolean;
20
4
  vars: {
21
5
  ENVIRONMENT: string;
22
6
  ERSTE_REDIRECT_URI: string;
@@ -57,6 +41,22 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
57
41
  }[];
58
42
  };
59
43
  env: Record<string, unknown>;
44
+ $schema: string;
45
+ name: string;
46
+ main: string;
47
+ compatibility_date: string;
48
+ compatibility_flags: string[];
49
+ observability: {
50
+ enabled: boolean;
51
+ head_sampling_rate: number;
52
+ logs: {
53
+ enabled: boolean;
54
+ invocation_logs: boolean;
55
+ };
56
+ };
57
+ preview_urls: boolean;
58
+ workers_dev: boolean;
59
+ keep_vars: boolean;
60
60
  };
61
61
 
62
62
  export { defineBankServiceWrangler };
@@ -1,22 +1,6 @@
1
1
  import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.mjs';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- $schema: string;
5
- name: string;
6
- main: string;
7
- compatibility_date: string;
8
- compatibility_flags: string[];
9
- observability: {
10
- enabled: boolean;
11
- head_sampling_rate: number;
12
- logs: {
13
- enabled: boolean;
14
- invocation_logs: boolean;
15
- };
16
- };
17
- preview_urls: boolean;
18
- workers_dev: boolean;
19
- keep_vars: boolean;
20
4
  vars: {
21
5
  ENVIRONMENT: string;
22
6
  ERSTE_REDIRECT_URI: string;
@@ -57,6 +41,22 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
57
41
  }[];
58
42
  };
59
43
  env: Record<string, unknown>;
44
+ $schema: string;
45
+ name: string;
46
+ main: string;
47
+ compatibility_date: string;
48
+ compatibility_flags: string[];
49
+ observability: {
50
+ enabled: boolean;
51
+ head_sampling_rate: number;
52
+ logs: {
53
+ enabled: boolean;
54
+ invocation_logs: boolean;
55
+ };
56
+ };
57
+ preview_urls: boolean;
58
+ workers_dev: boolean;
59
+ keep_vars: boolean;
60
60
  };
61
61
 
62
62
  export { defineBankServiceWrangler };
@@ -1,22 +1,6 @@
1
1
  import { B as BankServiceWranglerConfig } from '../shared/bank.DxGqqFhD.js';
2
2
 
3
3
  declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
4
- $schema: string;
5
- name: string;
6
- main: string;
7
- compatibility_date: string;
8
- compatibility_flags: string[];
9
- observability: {
10
- enabled: boolean;
11
- head_sampling_rate: number;
12
- logs: {
13
- enabled: boolean;
14
- invocation_logs: boolean;
15
- };
16
- };
17
- preview_urls: boolean;
18
- workers_dev: boolean;
19
- keep_vars: boolean;
20
4
  vars: {
21
5
  ENVIRONMENT: string;
22
6
  ERSTE_REDIRECT_URI: string;
@@ -57,6 +41,22 @@ declare function defineBankServiceWrangler(config: BankServiceWranglerConfig): {
57
41
  }[];
58
42
  };
59
43
  env: Record<string, unknown>;
44
+ $schema: string;
45
+ name: string;
46
+ main: string;
47
+ compatibility_date: string;
48
+ compatibility_flags: string[];
49
+ observability: {
50
+ enabled: boolean;
51
+ head_sampling_rate: number;
52
+ logs: {
53
+ enabled: boolean;
54
+ invocation_logs: boolean;
55
+ };
56
+ };
57
+ preview_urls: boolean;
58
+ workers_dev: boolean;
59
+ keep_vars: boolean;
60
60
  };
61
61
 
62
62
  export { defineBankServiceWrangler };
@@ -1,22 +1,12 @@
1
+ import { composeWranglerBase } from '@develit-io/backend-sdk';
2
+
1
3
  function defineBankServiceWrangler(config) {
2
4
  const { project, name, envs } = config;
3
5
  const base = {
4
- $schema: "../../node_modules/wrangler/config-schema.json",
5
- name: `${project}-${name}`,
6
- main: "./src/index.ts",
7
- compatibility_date: "2025-06-04",
8
- compatibility_flags: ["nodejs_compat"],
9
- observability: {
10
- enabled: true,
11
- head_sampling_rate: 1,
12
- logs: {
13
- enabled: true,
14
- invocation_logs: false
15
- }
16
- },
17
- preview_urls: false,
18
- workers_dev: false,
19
- keep_vars: true,
6
+ ...composeWranglerBase({
7
+ project,
8
+ name
9
+ }),
20
10
  vars: {
21
11
  // Secrets
22
12
  FINBRICKS_PRIVATE_KEY_PEM: "[SECRET]",
@@ -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"];
@@ -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"];
@@ -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"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -31,7 +31,7 @@
31
31
  ],
32
32
  "scripts": {
33
33
  "dev": "wrangler dev --port 9231 --persist-to ../../.wrangler/state",
34
- "wrangler:generate": "bunx develit wrangler:generate",
34
+ "wrangler:generate": "develit wrangler:generate",
35
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",
@@ -49,13 +49,13 @@
49
49
  "release": "bun run build && bunx changelogen@latest --release --push && npm publish --access public"
50
50
  },
51
51
  "peerDependencies": {
52
- "@develit-io/backend-sdk": "5.14.1",
53
- "@develit-io/general-codes": "^1.14.0",
54
- "drizzle-kit": "^0.31.5",
55
- "drizzle-orm": "^0.44.6",
56
- "drizzle-seed": "^0.3.1",
57
- "wrangler": "^4.43.0",
58
- "zod": "^4.1.12"
52
+ "@develit-io/backend-sdk": "*",
53
+ "@develit-io/general-codes": "*",
54
+ "drizzle-kit": "*",
55
+ "drizzle-orm": "*",
56
+ "drizzle-seed": "*",
57
+ "wrangler": "*",
58
+ "zod": "*"
59
59
  },
60
60
  "devDependencies": {
61
61
  "date-fns": "^4.1.0",