wapi-client 0.9.4 → 0.9.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.
@@ -61,7 +61,7 @@ var import_base_client = require('./base-client.cjs');
61
61
  var import_connection = require('./connection/connection.enums.cjs');
62
62
  var import__ = require('../index.cjs');
63
63
  var _a;
64
- var CLIENT_VERSION = (_a = '0.9.4') != null ? _a : "";
64
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
65
65
  function createWsClient(opts) {
66
66
  const initialConnection = createConnection(opts);
67
67
  return new WsClient(initialConnection, opts);
@@ -31,7 +31,7 @@ import {
31
31
  } from "./connection/connection.enums";
32
32
  import { WapiClientType } from "../index";
33
33
  var _a;
34
- var CLIENT_VERSION = (_a = '0.9.4') != null ? _a : "";
34
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
35
35
  function createWsClient(opts) {
36
36
  const initialConnection = createConnection(opts);
37
37
  return new WsClient(initialConnection, opts);
package/dist/client.cjs CHANGED
@@ -66,7 +66,7 @@ var import_errors = require('./lib/errors.cjs');
66
66
  var import_fns = require('./fns/index.cjs');
67
67
  var import_import_data = require('./fns/import-data/import-data.guards.cjs');
68
68
  var _a;
69
- var CLIENT_VERSION = (_a = '0.9.4') != null ? _a : "";
69
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
70
70
  var Client = class {
71
71
  /**
72
72
  * @internal
package/dist/client.js CHANGED
@@ -50,7 +50,7 @@ import {
50
50
  isImportDataFnInput
51
51
  } from "./fns/import-data/import-data.guards";
52
52
  var _a;
53
- var CLIENT_VERSION = (_a = '0.9.4') != null ? _a : "";
53
+ var CLIENT_VERSION = (_a = '0.9.5') != null ? _a : "";
54
54
  var Client = class {
55
55
  /**
56
56
  * @internal
@@ -420,6 +420,11 @@ var ERROR_GROUPS = {
420
420
  message: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
421
421
  description: `Withdrawals are expected connection points with outside systems, thus extra validation is required. Reversing a Transfer.type = 'withdrawal' requires reverse_withdrawal option to be true.`
422
422
  },
423
+ TR_UNIQUE_IDENTIFIER: {
424
+ code: -19115,
425
+ message: "TR_UNIQUE_IDENTIFIER",
426
+ description: `The identifier for Transfer object must be unique`
427
+ },
423
428
  TRG_SINGLE_PENDING_TR_CANT_RV: {
424
429
  code: -19200,
425
430
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -439,6 +444,26 @@ var ERROR_GROUPS = {
439
444
  code: -19203,
440
445
  message: "TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
441
446
  description: `TransferGroup includes Transfer.type = 'withdrawal', thus for extra validation the reverse_withdrawal option must be set true`
447
+ },
448
+ TRG_UNIQUE_IDENTIFIER: {
449
+ code: -19204,
450
+ message: "TRG_UNIQUE_IDENTIFIER",
451
+ description: `The identifier for TransferGroup object must be unique`
452
+ },
453
+ TOKEN_UNIQUE_FOREIGN: {
454
+ code: -19300,
455
+ message: "TOKEN_UNIQUE_FOREIGN",
456
+ description: `The foreign for Token object must be unique`
457
+ },
458
+ WALLET_UNIQUE_FOREIGN: {
459
+ code: -19400,
460
+ message: "WALLET_UNIQUE_FOREIGN",
461
+ description: `The foreign for Wallet object must be unique`
462
+ },
463
+ UNIQUE_CONSTRAINT: {
464
+ code: -19500,
465
+ message: "UNIQUE_CONSTRAINT",
466
+ description: `Insert violates unique constraint`
442
467
  }
443
468
  }
444
469
  },
@@ -382,6 +382,11 @@ var ERROR_GROUPS = {
382
382
  message: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
383
383
  description: `Withdrawals are expected connection points with outside systems, thus extra validation is required. Reversing a Transfer.type = 'withdrawal' requires reverse_withdrawal option to be true.`
384
384
  },
385
+ TR_UNIQUE_IDENTIFIER: {
386
+ code: -19115,
387
+ message: "TR_UNIQUE_IDENTIFIER",
388
+ description: `The identifier for Transfer object must be unique`
389
+ },
385
390
  TRG_SINGLE_PENDING_TR_CANT_RV: {
386
391
  code: -19200,
387
392
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -401,6 +406,26 @@ var ERROR_GROUPS = {
401
406
  code: -19203,
402
407
  message: "TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
403
408
  description: `TransferGroup includes Transfer.type = 'withdrawal', thus for extra validation the reverse_withdrawal option must be set true`
409
+ },
410
+ TRG_UNIQUE_IDENTIFIER: {
411
+ code: -19204,
412
+ message: "TRG_UNIQUE_IDENTIFIER",
413
+ description: `The identifier for TransferGroup object must be unique`
414
+ },
415
+ TOKEN_UNIQUE_FOREIGN: {
416
+ code: -19300,
417
+ message: "TOKEN_UNIQUE_FOREIGN",
418
+ description: `The foreign for Token object must be unique`
419
+ },
420
+ WALLET_UNIQUE_FOREIGN: {
421
+ code: -19400,
422
+ message: "WALLET_UNIQUE_FOREIGN",
423
+ description: `The foreign for Wallet object must be unique`
424
+ },
425
+ UNIQUE_CONSTRAINT: {
426
+ code: -19500,
427
+ message: "UNIQUE_CONSTRAINT",
428
+ description: `Insert violates unique constraint`
404
429
  }
405
430
  }
406
431
  },
@@ -420,6 +420,11 @@ var ERROR_GROUPS = {
420
420
  message: "TR_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
421
421
  description: `Withdrawals are expected connection points with outside systems, thus extra validation is required. Reversing a Transfer.type = 'withdrawal' requires reverse_withdrawal option to be true.`
422
422
  },
423
+ TR_UNIQUE_IDENTIFIER: {
424
+ code: -19115,
425
+ message: "TR_UNIQUE_IDENTIFIER",
426
+ description: `The identifier for Transfer object must be unique`
427
+ },
423
428
  TRG_SINGLE_PENDING_TR_CANT_RV: {
424
429
  code: -19200,
425
430
  message: "TRG_SINGLE_PENDING_TR_CANT_RV",
@@ -439,6 +444,26 @@ var ERROR_GROUPS = {
439
444
  code: -19203,
440
445
  message: "TRG_WITHDRAWAL_CANT_RV_WITHOUT_FLAG",
441
446
  description: `TransferGroup includes Transfer.type = 'withdrawal', thus for extra validation the reverse_withdrawal option must be set true`
447
+ },
448
+ TRG_UNIQUE_IDENTIFIER: {
449
+ code: -19204,
450
+ message: "TRG_UNIQUE_IDENTIFIER",
451
+ description: `The identifier for TransferGroup object must be unique`
452
+ },
453
+ TOKEN_UNIQUE_FOREIGN: {
454
+ code: -19300,
455
+ message: "TOKEN_UNIQUE_FOREIGN",
456
+ description: `The foreign for Token object must be unique`
457
+ },
458
+ WALLET_UNIQUE_FOREIGN: {
459
+ code: -19400,
460
+ message: "WALLET_UNIQUE_FOREIGN",
461
+ description: `The foreign for Wallet object must be unique`
462
+ },
463
+ UNIQUE_CONSTRAINT: {
464
+ code: -19500,
465
+ message: "UNIQUE_CONSTRAINT",
466
+ description: `Insert violates unique constraint`
442
467
  }
443
468
  }
444
469
  },