@develit-services/bank 0.8.1 → 0.8.2

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.
@@ -272,7 +272,7 @@ const seperateSupportedPayments = (incomingPayments, accounts) => {
272
272
 
273
273
  const sendPaymentInputSchema = zod.z.object({
274
274
  correlationId: zod.z.string().min(1),
275
- refId: zod.z.string(),
275
+ refId: zod.z.string().optional(),
276
276
  amount: zod.z.number().positive(),
277
277
  paymentType: zod.z.enum(payment_schema.PAYMENT_TYPES),
278
278
  chargeBearer: zod.z.enum(payment_schema.CHARGE_BEARERS).optional(),
@@ -1,7 +1,7 @@
1
1
  import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.BJ7LqYtJ.cjs';
2
2
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
3
3
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
4
- import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput } from '../shared/bank.C0p-hLzn.cjs';
4
+ import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput } from '../shared/bank.Du70-Kk_.cjs';
5
5
  import { WorkerEntrypoint } from 'cloudflare:workers';
6
6
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
7
  import { z } from 'zod';
@@ -1,7 +1,7 @@
1
1
  import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.BJ7LqYtJ.mjs';
2
2
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
3
3
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
4
- import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput } from '../shared/bank.C0p-hLzn.mjs';
4
+ import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput } from '../shared/bank.Du70-Kk_.mjs';
5
5
  import { WorkerEntrypoint } from 'cloudflare:workers';
6
6
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
7
  import { z } from 'zod';
@@ -1,7 +1,7 @@
1
1
  import { A as AccountSelectType, P as PaymentSelectType, B as BatchSelectType, L as LastSyncMetadata, C as ConfigEnvironmentBank, t as tables, a as ConnectorKey, I as IBankConnector } from '../shared/bank.BJ7LqYtJ.js';
2
2
  import * as _develit_io_backend_sdk from '@develit-io/backend-sdk';
3
3
  import { WorkflowInstanceStatus, IRPCResponse } from '@develit-io/backend-sdk';
4
- import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput } from '../shared/bank.C0p-hLzn.js';
4
+ import { S as SendPaymentInput, a as SendPaymentOutput, b as SendPaymentSyncInput, c as SendPaymentSyncOutput } from '../shared/bank.Du70-Kk_.js';
5
5
  import { WorkerEntrypoint } from 'cloudflare:workers';
6
6
  import { DrizzleD1Database } from 'drizzle-orm/d1';
7
7
  import { z } from 'zod';
@@ -270,7 +270,7 @@ const seperateSupportedPayments = (incomingPayments, accounts) => {
270
270
 
271
271
  const sendPaymentInputSchema = z.object({
272
272
  correlationId: z.string().min(1),
273
- refId: z.string(),
273
+ refId: z.string().optional(),
274
274
  amount: z.number().positive(),
275
275
  paymentType: z.enum(PAYMENT_TYPES),
276
276
  chargeBearer: z.enum(CHARGE_BEARERS).optional(),
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
 
3
3
  declare const sendPaymentInputSchema: z.ZodObject<{
4
4
  correlationId: z.ZodString;
5
- refId: z.ZodString;
5
+ refId: z.ZodOptional<z.ZodString>;
6
6
  amount: z.ZodNumber;
7
7
  paymentType: z.ZodEnum<{
8
8
  SEPA: "SEPA";
@@ -749,7 +749,7 @@ type SendPaymentOutput = void;
749
749
 
750
750
  declare const sendPaymentSyncInputSchema: z.ZodObject<{
751
751
  correlationId: z.ZodString;
752
- refId: z.ZodString;
752
+ refId: z.ZodOptional<z.ZodString>;
753
753
  amount: z.ZodNumber;
754
754
  paymentType: z.ZodEnum<{
755
755
  SEPA: "SEPA";
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
 
3
3
  declare const sendPaymentInputSchema: z.ZodObject<{
4
4
  correlationId: z.ZodString;
5
- refId: z.ZodString;
5
+ refId: z.ZodOptional<z.ZodString>;
6
6
  amount: z.ZodNumber;
7
7
  paymentType: z.ZodEnum<{
8
8
  SEPA: "SEPA";
@@ -749,7 +749,7 @@ type SendPaymentOutput = void;
749
749
 
750
750
  declare const sendPaymentSyncInputSchema: z.ZodObject<{
751
751
  correlationId: z.ZodString;
752
- refId: z.ZodString;
752
+ refId: z.ZodOptional<z.ZodString>;
753
753
  amount: z.ZodNumber;
754
754
  paymentType: z.ZodEnum<{
755
755
  SEPA: "SEPA";
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
 
3
3
  declare const sendPaymentInputSchema: z.ZodObject<{
4
4
  correlationId: z.ZodString;
5
- refId: z.ZodString;
5
+ refId: z.ZodOptional<z.ZodString>;
6
6
  amount: z.ZodNumber;
7
7
  paymentType: z.ZodEnum<{
8
8
  SEPA: "SEPA";
@@ -749,7 +749,7 @@ type SendPaymentOutput = void;
749
749
 
750
750
  declare const sendPaymentSyncInputSchema: z.ZodObject<{
751
751
  correlationId: z.ZodString;
752
- refId: z.ZodString;
752
+ refId: z.ZodOptional<z.ZodString>;
753
753
  amount: z.ZodNumber;
754
754
  paymentType: z.ZodEnum<{
755
755
  SEPA: "SEPA";
package/dist/types.d.cts CHANGED
@@ -5,8 +5,8 @@ import { BaseEvent } from '@develit-io/backend-sdk';
5
5
  import * as drizzle_zod from 'drizzle-zod';
6
6
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
7
7
  import { z } from 'zod';
8
- import { S as SendPaymentInput } from './shared/bank.C0p-hLzn.cjs';
9
- export { b as SendPaymentSyncInput } from './shared/bank.C0p-hLzn.cjs';
8
+ import { S as SendPaymentInput } from './shared/bank.Du70-Kk_.cjs';
9
+ export { b as SendPaymentSyncInput } from './shared/bank.Du70-Kk_.cjs';
10
10
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
11
11
  import 'drizzle-orm';
12
12
 
package/dist/types.d.mts CHANGED
@@ -5,8 +5,8 @@ import { BaseEvent } from '@develit-io/backend-sdk';
5
5
  import * as drizzle_zod from 'drizzle-zod';
6
6
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
7
7
  import { z } from 'zod';
8
- import { S as SendPaymentInput } from './shared/bank.C0p-hLzn.mjs';
9
- export { b as SendPaymentSyncInput } from './shared/bank.C0p-hLzn.mjs';
8
+ import { S as SendPaymentInput } from './shared/bank.Du70-Kk_.mjs';
9
+ export { b as SendPaymentSyncInput } from './shared/bank.Du70-Kk_.mjs';
10
10
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
11
11
  import 'drizzle-orm';
12
12
 
package/dist/types.d.ts CHANGED
@@ -5,8 +5,8 @@ import { BaseEvent } from '@develit-io/backend-sdk';
5
5
  import * as drizzle_zod from 'drizzle-zod';
6
6
  import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
7
7
  import { z } from 'zod';
8
- import { S as SendPaymentInput } from './shared/bank.C0p-hLzn.js';
9
- export { b as SendPaymentSyncInput } from './shared/bank.C0p-hLzn.js';
8
+ import { S as SendPaymentInput } from './shared/bank.Du70-Kk_.js';
9
+ export { b as SendPaymentSyncInput } from './shared/bank.Du70-Kk_.js';
10
10
  export { BANK_CODES, CURRENCY_CODES } from '@develit-io/general-codes';
11
11
  import 'drizzle-orm';
12
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-services/bank",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "author": "Develit.io s.r.o.",
5
5
  "type": "module",
6
6
  "exports": {