@devizovaburza/txs-sdk 2.0.2 → 3.0.0

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/v1/index.mjs CHANGED
@@ -1,15 +1,15 @@
1
1
  import { hc } from 'hono/client';
2
2
  import { sql } from 'drizzle-orm';
3
3
  import { text, integer } from 'drizzle-orm/sqlite-core';
4
- import { z as z$1 } from 'zod/v4';
5
- import { z as z$2 } from 'zod';
4
+ import 'drizzle-orm/zod';
5
+ import { z as z$1 } from 'zod';
6
6
  import * as z from 'zod/v4/core';
7
- import 'node:fs';
8
7
  import 'node:crypto';
8
+ import 'node:fs';
9
9
  import 'node:path';
10
10
  import { EST_TXS_VOLUME_MONTH, EST_TXS_VOLUME_YEAR, CUSTOMER_STATUS, TXS_CLIENT_TYPE, GENDER, KYC_STATUS, PARTY_TYPE } from '@devizovaburza/mdm-sdk/v1';
11
11
  export { TRADER_TYPE } from '@devizovaburza/mdm-sdk/v1';
12
- import { z as z$3 } from '@hono/zod-openapi';
12
+ import { z as z$2 } from '@hono/zod-openapi';
13
13
 
14
14
  const createTxsClient = (...args) => {
15
15
  return hc(...args);
@@ -4094,14 +4094,6 @@ const CRYPTO_CURRENCIES = currencies.filter((c) => c.type === "CRYPTO");
4094
4094
  ...CRYPTO_CURRENCIES.map((currency) => currency.code)
4095
4095
  ];
4096
4096
 
4097
- const literalSchema = z$1.union([z$1.string(), z$1.number(), z$1.boolean(), z$1.null()]);
4098
- z$1.union([
4099
- literalSchema,
4100
- z$1.record(z$1.string(), z$1.any()),
4101
- z$1.array(z$1.any()),
4102
- ]);
4103
- z$1.custom((v) => v instanceof Buffer); // eslint-disable-line no-instanceof/no-instanceof
4104
-
4105
4097
  var esprima$1 = {exports: {}};
4106
4098
 
4107
4099
  var esprima = esprima$1.exports;
@@ -14574,44 +14566,44 @@ SuperJSON.allowErrorProps = SuperJSON.defaultInstance.allowErrorProps.bind(Super
14574
14566
  // Brazil
14575
14567
  });
14576
14568
 
14577
- const ibanSchema = z$2.string().min(1).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$/, {
14569
+ const ibanSchema = z$1.string().min(1).regex(/^[A-Z]{2}[0-9]{2}[A-Z0-9]{11,30}$/, {
14578
14570
  message: "Invalid IBAN format"
14579
14571
  });
14580
- const bicSchema = z$2.string().min(1).regex(/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/, {
14572
+ const bicSchema = z$1.string().min(1).regex(/^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$/, {
14581
14573
  message: "Invalid SWIFT/BIC format"
14582
14574
  });
14583
- const structuredAddressSchema = z$2.object({
14584
- streetName: z$2.string().max(70).optional(),
14585
- buildingNumber: z$2.string().max(16).optional(),
14586
- city: z$2.string().max(35).optional(),
14587
- postalCode: z$2.string().max(16).optional(),
14588
- countryCode: z$2.enum(COUNTRY_CODES_2).optional()
14575
+ const structuredAddressSchema = z$1.object({
14576
+ streetName: z$1.string().max(70).optional(),
14577
+ buildingNumber: z$1.string().max(16).optional(),
14578
+ city: z$1.string().max(35).optional(),
14579
+ postalCode: z$1.string().max(16).optional(),
14580
+ countryCode: z$1.enum(COUNTRY_CODES_2).optional()
14589
14581
  });
14590
- z$2.object({
14591
- id: z$2.string().optional(),
14592
- number: z$2.string().optional(),
14593
- bankCode: z$2.enum(BANK_CODES).optional(),
14594
- holderName: z$2.string().optional(),
14582
+ z$1.object({
14583
+ id: z$1.string().optional(),
14584
+ number: z$1.string().optional(),
14585
+ bankCode: z$1.enum(BANK_CODES).optional(),
14586
+ holderName: z$1.string().optional(),
14595
14587
  iban: ibanSchema.optional(),
14596
14588
  address: structuredAddressSchema.optional(),
14597
14589
  swiftBic: bicSchema.optional(),
14598
14590
  bicCor: bicSchema.optional(),
14599
- currency: z$2.enum(CURRENCY_CODES).optional(),
14600
- countryCode: z$2.enum(COUNTRY_CODES_2).optional(),
14601
- routingNumber: z$2.string().optional(),
14591
+ currency: z$1.enum(CURRENCY_CODES).optional(),
14592
+ countryCode: z$1.enum(COUNTRY_CODES_2).optional(),
14593
+ routingNumber: z$1.string().optional(),
14602
14594
  // US
14603
- sortCode: z$2.string().optional(),
14595
+ sortCode: z$1.string().optional(),
14604
14596
  // UK
14605
- clabe: z$2.string().optional(),
14597
+ clabe: z$1.string().optional(),
14606
14598
  // Mexico
14607
- bsb: z$2.string().optional(),
14599
+ bsb: z$1.string().optional(),
14608
14600
  // Australia
14609
- brBankNumber: z$2.string().optional()
14601
+ brBankNumber: z$1.string().optional()
14610
14602
  // Brazil
14611
14603
  });
14612
14604
 
14613
- z$2.object({
14614
- status: z$2.enum([
14605
+ z$1.object({
14606
+ status: z$1.enum([
14615
14607
  "queued",
14616
14608
  // means that instance is waiting to be started (see concurrency limits)
14617
14609
  "running",
@@ -14626,11 +14618,11 @@ z$2.object({
14626
14618
  // instance is finishing the current work to pause
14627
14619
  "unknown"
14628
14620
  ]),
14629
- error: z$2.object({
14630
- message: z$2.string(),
14631
- name: z$2.string().optional()
14621
+ error: z$1.object({
14622
+ message: z$1.string(),
14623
+ name: z$1.string().optional()
14632
14624
  }).optional(),
14633
- output: z$2.unknown().optional()
14625
+ output: z$1.unknown().optional()
14634
14626
  });
14635
14627
 
14636
14628
  new z.$ZodObject({
@@ -14976,25 +14968,25 @@ const NON_EU_COUNTRY_OPTIONS = COUNTRY_OPTIONS.filter(
14976
14968
  (c) => !EU_COUNTRY_CODES_SET.has(c.value)
14977
14969
  );
14978
14970
  const GENDER_OPTIONS = GENDER;
14979
- const XIdempotencyKeyHeaderSchema = z$3.string().openapi({
14971
+ const XIdempotencyKeyHeaderSchema = z$2.string().openapi({
14980
14972
  description: "Unique identifier header to ensure the request is processed only once.",
14981
14973
  example: "4ac15c22-2bd3-426f-b915-bfd5febdb7df"
14982
14974
  });
14983
- const XSignatureHeaderSchema = z$3.string().openapi({
14975
+ const XSignatureHeaderSchema = z$2.string().openapi({
14984
14976
  description: "Payload signature header to verify request body integrity.",
14985
14977
  example: "FIXAxHO6QqH3M7t4MatM8U6l/nIqWj7jIEW2U6/771MGUorSywy+GmKIG3B1mxT1jR7qPtBHQ5YSO8O53iCvOh6kIhbGXtVe/3C61dsEykLbmntV3nF4DY8/HyfF8a6c2Asc5bvgHrhosGi3s/ouoNowMpsckyq66We8H5gRbXlqJm4Bl1zWWQah4aQLX548L8DLx5+EIgArNMVVG8ryCES99aovJBKrQQMpQLwss1sSFuUZ1kdBCodtvxgTOXOugnZ1UNCmUNFXryQ6bn7wY7Punml/rwR/zTQ9j4SX07iFeQC5rgm9/zi29DBluegu+b8/G8oXrf6L4hugbMEKJfLRfKjNHCrjCooKtInoYxwNEfJyJ9mhqdBoeIBca9zgPpewdbwFLXVV82TYR+xZiywDcHKQ62IzQp07NOMCl4xArSJ3vIWUftSYpLIwomyjQEbY27oGiubUF4krEKgHnMYalCn0ruYOwFik2Pa6FEfIZo0TSXDC24UHQb5mJNPYpv2hny7U5CZPmBvjaRGMVnE+WgRUT19cwqlSL3pWAfeSn1Wro7lYBp/PmlRPgYIxl9GJwNlQ0G+NzP9cMSJbmI5fwErDNgJAaPaMwZbJ3y8ikmbBkkXNPKvQrWVGCJ4nP+/f8yYzMZq272EFx984pSoo2yAeBJnrxbW+AlZxyIo="
14986
14978
  });
14987
- const XSignatureKeyHeaderSchema = z$3.string().openapi({
14979
+ const XSignatureKeyHeaderSchema = z$2.string().openapi({
14988
14980
  description: "Signature key identifier header to specify which key was used for payload signing.",
14989
14981
  example: "ixtal"
14990
14982
  });
14991
- const marketRateMetadataSchema = z$3.object({
14992
- bid: z$3.number().min(0),
14993
- ask: z$3.number().min(0),
14994
- cnb: z$3.number().min(0).optional(),
14995
- usedSide: z$3.enum(["BID", "ASK"]),
14996
- ratePreference: z$3.enum(["STRONGER", "WEAKER"]),
14997
- selectedPair: z$3.string().optional()
14983
+ const marketRateMetadataSchema = z$2.object({
14984
+ bid: z$2.number().min(0),
14985
+ ask: z$2.number().min(0),
14986
+ cnb: z$2.number().min(0).optional(),
14987
+ usedSide: z$2.enum(["BID", "ASK"]),
14988
+ ratePreference: z$2.enum(["STRONGER", "WEAKER"]),
14989
+ selectedPair: z$2.string().optional()
14998
14990
  });
14999
14991
  const ALLOWED_ORDER_FILTERS = {
15000
14992
  CURRENCY: "filterOrderCurrency",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devizovaburza/txs-sdk",
3
- "version": "2.0.2",
3
+ "version": "3.0.0",
4
4
  "author": "Devizová Burza a.s.",
5
5
  "license": "ISC",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "peerDependencies": {
26
26
  "@hono/zod-openapi": "^1.2.0",
27
- "drizzle-orm": "^0.44.7",
27
+ "drizzle-orm": "^1.0.0-rc.1",
28
28
  "zod": "^4.3.6"
29
29
  }
30
30
  }