wapi-client 0.15.3 → 0.15.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.
@@ -34,7 +34,8 @@ function updateTransferGroup(options, input, fnOptions) {
34
34
  update: {
35
35
  transfer_status: inputCopy.transfer_status,
36
36
  status: inputCopy.status,
37
- metadata: inputCopy.metadata
37
+ metadata: inputCopy.metadata,
38
+ transfer_metadata: inputCopy.transfer_metadata
38
39
  },
39
40
  options: inputCopy.options
40
41
  });
@@ -10,7 +10,8 @@ function updateTransferGroup(options, input, fnOptions) {
10
10
  update: {
11
11
  transfer_status: inputCopy.transfer_status,
12
12
  status: inputCopy.status,
13
- metadata: inputCopy.metadata
13
+ metadata: inputCopy.metadata,
14
+ transfer_metadata: inputCopy.transfer_metadata
14
15
  },
15
16
  options: inputCopy.options
16
17
  });
@@ -34,7 +34,8 @@ function updateTransferGroup(options, input, fnOptions) {
34
34
  update: {
35
35
  transfer_status: inputCopy.transfer_status,
36
36
  status: inputCopy.status,
37
- metadata: inputCopy.metadata
37
+ metadata: inputCopy.metadata,
38
+ transfer_metadata: inputCopy.transfer_metadata
38
39
  },
39
40
  options: inputCopy.options
40
41
  });
@@ -10,7 +10,8 @@ function updateTransferGroup(options, input, fnOptions) {
10
10
  update: {
11
11
  transfer_status: inputCopy.transfer_status,
12
12
  status: inputCopy.status,
13
- metadata: inputCopy.metadata
13
+ metadata: inputCopy.metadata,
14
+ transfer_metadata: inputCopy.transfer_metadata
14
15
  },
15
16
  options: inputCopy.options
16
17
  });
@@ -32,6 +32,7 @@ var import_update_transfer_group_schema_zod = require("../../txs/update-transfer
32
32
  var import_consts = require("../consts.browser.cjs");
33
33
  var import_transfer_group_schema_zod = require("../../db/transfer-group/transfer-group.schema.zod.browser.cjs");
34
34
  var import_update_transfer_schema_zod = require("../update-transfer/update-transfer.schema.zod.browser.cjs");
35
+ var import_transfer_schema_zod = require("../../db/transfer/transfer.schema.zod.browser.cjs");
35
36
  var updateTransferGroupFnOptionsSchema = import_update_transfer_group_schema_zod.updateTransferGroupTxInputOptionsSchema.describe("Optional flags for input");
36
37
  var updateTransferGroupInputSchema = import_zod.z.object({
37
38
  transfer_group: import_consts.allowedStringIntSchema.describe("TransferGroup identifier"),
@@ -40,7 +41,10 @@ var updateTransferGroupInputSchema = import_zod.z.object({
40
41
  "Status all the transfers should be set at."
41
42
  ),
42
43
  metadata: import_transfer_group_schema_zod.transferGroupTableSchema.shape.metadata.describe(
43
- "Key value object to be replaced or extended with existing TransferGroup metadata"
44
+ "Key value object to replace or extend with existing TransferGroup metadata"
45
+ ),
46
+ transfer_metadata: import_transfer_schema_zod.transferTableSchema.shape.metadata.describe(
47
+ "Key value object to be replace or extend existing Transfers metadata"
44
48
  )
45
49
  }).partial().required({
46
50
  transfer_group: true
@@ -7,6 +7,7 @@ import {
7
7
  import { allowedStringIntSchema } from "../consts.browser.js";
8
8
  import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.browser.js";
9
9
  import { updateTransferStatusSchema } from "../update-transfer/update-transfer.schema.zod.browser.js";
10
+ import { transferTableSchema } from "../../db/transfer/transfer.schema.zod.browser.js";
10
11
  var updateTransferGroupFnOptionsSchema = updateTransferGroupTxInputOptionsSchema.describe("Optional flags for input");
11
12
  var updateTransferGroupInputSchema = z.object({
12
13
  transfer_group: allowedStringIntSchema.describe("TransferGroup identifier"),
@@ -15,7 +16,10 @@ var updateTransferGroupInputSchema = z.object({
15
16
  "Status all the transfers should be set at."
16
17
  ),
17
18
  metadata: transferGroupTableSchema.shape.metadata.describe(
18
- "Key value object to be replaced or extended with existing TransferGroup metadata"
19
+ "Key value object to replace or extend with existing TransferGroup metadata"
20
+ ),
21
+ transfer_metadata: transferTableSchema.shape.metadata.describe(
22
+ "Key value object to be replace or extend existing Transfers metadata"
19
23
  )
20
24
  }).partial().required({
21
25
  transfer_group: true
@@ -32,6 +32,7 @@ var import_update_transfer_group_schema_zod = require("../../txs/update-transfe
32
32
  var import_consts = require("../consts.cjs");
33
33
  var import_transfer_group_schema_zod = require("../../db/transfer-group/transfer-group.schema.zod.cjs");
34
34
  var import_update_transfer_schema_zod = require("../update-transfer/update-transfer.schema.zod.cjs");
35
+ var import_transfer_schema_zod = require("../../db/transfer/transfer.schema.zod.cjs");
35
36
  var updateTransferGroupFnOptionsSchema = import_update_transfer_group_schema_zod.updateTransferGroupTxInputOptionsSchema.describe("Optional flags for input");
36
37
  var updateTransferGroupInputSchema = import_zod.z.object({
37
38
  transfer_group: import_consts.allowedStringIntSchema.describe("TransferGroup identifier"),
@@ -40,7 +41,10 @@ var updateTransferGroupInputSchema = import_zod.z.object({
40
41
  "Status all the transfers should be set at."
41
42
  ),
42
43
  metadata: import_transfer_group_schema_zod.transferGroupTableSchema.shape.metadata.describe(
43
- "Key value object to be replaced or extended with existing TransferGroup metadata"
44
+ "Key value object to replace or extend with existing TransferGroup metadata"
45
+ ),
46
+ transfer_metadata: import_transfer_schema_zod.transferTableSchema.shape.metadata.describe(
47
+ "Key value object to be replace or extend existing Transfers metadata"
44
48
  )
45
49
  }).partial().required({
46
50
  transfer_group: true
@@ -7,6 +7,7 @@ import {
7
7
  import { allowedStringIntSchema } from "../consts.js";
8
8
  import { transferGroupTableSchema } from "../../db/transfer-group/transfer-group.schema.zod.js";
9
9
  import { updateTransferStatusSchema } from "../update-transfer/update-transfer.schema.zod.js";
10
+ import { transferTableSchema } from "../../db/transfer/transfer.schema.zod.js";
10
11
  var updateTransferGroupFnOptionsSchema = updateTransferGroupTxInputOptionsSchema.describe("Optional flags for input");
11
12
  var updateTransferGroupInputSchema = z.object({
12
13
  transfer_group: allowedStringIntSchema.describe("TransferGroup identifier"),
@@ -15,7 +16,10 @@ var updateTransferGroupInputSchema = z.object({
15
16
  "Status all the transfers should be set at."
16
17
  ),
17
18
  metadata: transferGroupTableSchema.shape.metadata.describe(
18
- "Key value object to be replaced or extended with existing TransferGroup metadata"
19
+ "Key value object to replace or extend with existing TransferGroup metadata"
20
+ ),
21
+ transfer_metadata: transferTableSchema.shape.metadata.describe(
22
+ "Key value object to be replace or extend existing Transfers metadata"
19
23
  )
20
24
  }).partial().required({
21
25
  transfer_group: true
@@ -24,7 +24,7 @@ __export(env_exports, {
24
24
  getEnvConfig: () => getEnvConfig
25
25
  });
26
26
  module.exports = __toCommonJS(env_exports);
27
- var CLIENT_VERSION = "0.15.3";
27
+ var CLIENT_VERSION = "0.15.5";
28
28
  function getEnvConfig(key, defaultValue) {
29
29
  const val = getVariable(key);
30
30
  if (val === void 0) {
@@ -1,5 +1,5 @@
1
1
  // src/lib/env.ts
2
- var CLIENT_VERSION = "0.15.3";
2
+ var CLIENT_VERSION = "0.15.5";
3
3
  function getEnvConfig(key, defaultValue) {
4
4
  const val = getVariable(key);
5
5
  if (val === void 0) {
package/dist/lib/env.cjs CHANGED
@@ -24,7 +24,7 @@ __export(env_exports, {
24
24
  getEnvConfig: () => getEnvConfig
25
25
  });
26
26
  module.exports = __toCommonJS(env_exports);
27
- var CLIENT_VERSION = "0.15.3";
27
+ var CLIENT_VERSION = "0.15.5";
28
28
  function getEnvConfig(key, defaultValue) {
29
29
  const val = getVariable(key);
30
30
  if (val === void 0) {
package/dist/lib/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/lib/env.ts
2
- var CLIENT_VERSION = "0.15.3";
2
+ var CLIENT_VERSION = "0.15.5";
3
3
  function getEnvConfig(key, defaultValue) {
4
4
  const val = getVariable(key);
5
5
  if (val === void 0) {
@@ -457,6 +457,11 @@ var ERROR_GROUPS = {
457
457
  message: "TR_DIFFERENT_WALLETS",
458
458
  description: `To and from wallets have to be different`
459
459
  },
460
+ TR_AMOUNT_CONSTRAINT: {
461
+ code: -19117,
462
+ message: "TR_AMOUNT_CONSTRAINT",
463
+ description: `The transfer amount is outside of allowed bounds`
464
+ },
460
465
  TRG_SINGLE_PENDING_TR_CANT_RV: {
461
466
  code: -19200,
462
467
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -419,6 +419,11 @@ var ERROR_GROUPS = {
419
419
  message: "TR_DIFFERENT_WALLETS",
420
420
  description: `To and from wallets have to be different`
421
421
  },
422
+ TR_AMOUNT_CONSTRAINT: {
423
+ code: -19117,
424
+ message: "TR_AMOUNT_CONSTRAINT",
425
+ description: `The transfer amount is outside of allowed bounds`
426
+ },
422
427
  TRG_SINGLE_PENDING_TR_CANT_RV: {
423
428
  code: -19200,
424
429
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -457,6 +457,11 @@ var ERROR_GROUPS = {
457
457
  message: "TR_DIFFERENT_WALLETS",
458
458
  description: `To and from wallets have to be different`
459
459
  },
460
+ TR_AMOUNT_CONSTRAINT: {
461
+ code: -19117,
462
+ message: "TR_AMOUNT_CONSTRAINT",
463
+ description: `The transfer amount is outside of allowed bounds`
464
+ },
460
465
  TRG_SINGLE_PENDING_TR_CANT_RV: {
461
466
  code: -19200,
462
467
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -419,6 +419,11 @@ var ERROR_GROUPS = {
419
419
  message: "TR_DIFFERENT_WALLETS",
420
420
  description: `To and from wallets have to be different`
421
421
  },
422
+ TR_AMOUNT_CONSTRAINT: {
423
+ code: -19117,
424
+ message: "TR_AMOUNT_CONSTRAINT",
425
+ description: `The transfer amount is outside of allowed bounds`
426
+ },
422
427
  TRG_SINGLE_PENDING_TR_CANT_RV: {
423
428
  code: -19200,
424
429
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -192,6 +192,7 @@ declare module "wapi-client/lib/errors" {
192
192
  TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG: ErrorSpec;
193
193
  TR_UNIQUE_IDENTIFIER: ErrorSpec;
194
194
  TR_DIFFERENT_WALLETS: ErrorSpec;
195
+ TR_AMOUNT_CONSTRAINT: ErrorSpec;
195
196
  TRG_SINGLE_PENDING_TR_CANT_RV: ErrorSpec;
196
197
  TRG_CANCELLED_CANT_RV: ErrorSpec;
197
198
  TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG: ErrorSpec;
@@ -246,6 +247,7 @@ declare module "wapi-client/lib/errors" {
246
247
  TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG: ErrorSpec;
247
248
  TR_UNIQUE_IDENTIFIER: ErrorSpec;
248
249
  TR_DIFFERENT_WALLETS: ErrorSpec;
250
+ TR_AMOUNT_CONSTRAINT: ErrorSpec;
249
251
  TRG_SINGLE_PENDING_TR_CANT_RV: ErrorSpec;
250
252
  TRG_CANCELLED_CANT_RV: ErrorSpec;
251
253
  TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG: ErrorSpec;
@@ -349,6 +351,7 @@ declare module "wapi-client/lib/errors" {
349
351
  TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG";
350
352
  TR_UNIQUE_IDENTIFIER: "TR_UNIQUE_IDENTIFIER";
351
353
  TR_DIFFERENT_WALLETS: "TR_DIFFERENT_WALLETS";
354
+ TR_AMOUNT_CONSTRAINT: "TR_AMOUNT_CONSTRAINT";
352
355
  TRG_SINGLE_PENDING_TR_CANT_RV: "TRG_SINGLE_PENDING_TR_CANT_RV";
353
356
  TRG_CANCELLED_CANT_RV: "TRG_CANCELLED_CANT_RV";
354
357
  TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG: "TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG";
@@ -21631,6 +21634,7 @@ declare module "wapi-client/fns/update-transfer-group/update-transfer-group.sche
21631
21634
  cancelled: "cancelled";
21632
21635
  }>>;
21633
21636
  metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>>;
21637
+ transfer_metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>>;
21634
21638
  }, z.core.$strip>;
21635
21639
  export const updateTransferGroupFnInputSchema: z.ZodObject<{
21636
21640
  transfer_group: z.ZodNonOptional<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>>;
@@ -21642,6 +21646,7 @@ declare module "wapi-client/fns/update-transfer-group/update-transfer-group.sche
21642
21646
  cancelled: "cancelled";
21643
21647
  }>>;
21644
21648
  metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>>;
21649
+ transfer_metadata: z.ZodOptional<z.ZodOptional<z.ZodType<import("wapi-client/db/consts").Metadata, unknown, z.core.$ZodTypeInternals<import("wapi-client/db/consts").Metadata, unknown>>>>;
21645
21650
  options: z.ZodOptional<z.ZodObject<{
21646
21651
  tracking_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
21647
21652
  transaction_id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -36417,6 +36422,7 @@ declare module "wapi-client" {
36417
36422
  TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG";
36418
36423
  TR_UNIQUE_IDENTIFIER: "TR_UNIQUE_IDENTIFIER";
36419
36424
  TR_DIFFERENT_WALLETS: "TR_DIFFERENT_WALLETS";
36425
+ TR_AMOUNT_CONSTRAINT: "TR_AMOUNT_CONSTRAINT";
36420
36426
  TRG_SINGLE_PENDING_TR_CANT_RV: "TRG_SINGLE_PENDING_TR_CANT_RV";
36421
36427
  TRG_CANCELLED_CANT_RV: "TRG_CANCELLED_CANT_RV";
36422
36428
  TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG: "TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG";
@@ -36511,6 +36517,7 @@ declare module "wapi-client" {
36511
36517
  TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG: import("wapi-client/lib/errors").ErrorSpec;
36512
36518
  TR_UNIQUE_IDENTIFIER: import("wapi-client/lib/errors").ErrorSpec;
36513
36519
  TR_DIFFERENT_WALLETS: import("wapi-client/lib/errors").ErrorSpec;
36520
+ TR_AMOUNT_CONSTRAINT: import("wapi-client/lib/errors").ErrorSpec;
36514
36521
  TRG_SINGLE_PENDING_TR_CANT_RV: import("wapi-client/lib/errors").ErrorSpec;
36515
36522
  TRG_CANCELLED_CANT_RV: import("wapi-client/lib/errors").ErrorSpec;
36516
36523
  TRG_DEPOSIT_CANT_RV_WITHOUT_FLAG: import("wapi-client/lib/errors").ErrorSpec;