@riocrypto/common 1.0.1027 → 1.0.1031

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.
@@ -2,12 +2,14 @@ import { CustomError } from "./custom-error";
2
2
  export declare class MissingUserDataError extends CustomError {
3
3
  private customMessage;
4
4
  private missingFields;
5
+ private userName;
5
6
  statusCode: number;
6
7
  internalCode: number;
7
- constructor(customMessage: string, missingFields: string[]);
8
+ constructor(customMessage: string, missingFields: string[], userName: string);
8
9
  serializeErrors(): {
9
10
  code: number;
10
11
  fields: string[];
12
+ userName: string;
11
13
  message: string;
12
14
  }[];
13
15
  }
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.MissingUserDataError = void 0;
4
4
  const custom_error_1 = require("./custom-error");
5
5
  class MissingUserDataError extends custom_error_1.CustomError {
6
- constructor(customMessage, missingFields) {
6
+ constructor(customMessage, missingFields, userName) {
7
7
  super(customMessage);
8
8
  this.customMessage = customMessage;
9
9
  this.missingFields = missingFields;
10
+ this.userName = userName;
10
11
  this.statusCode = 400;
11
12
  this.internalCode = 88;
12
13
  Object.setPrototypeOf(this, MissingUserDataError.prototype);
@@ -16,6 +17,7 @@ class MissingUserDataError extends custom_error_1.CustomError {
16
17
  {
17
18
  code: this.internalCode,
18
19
  fields: this.missingFields,
20
+ userName: this.userName,
19
21
  message: this.customMessage,
20
22
  },
21
23
  ];
@@ -3,6 +3,7 @@ export declare enum OrderStatus {
3
3
  Cancelled = "cancelled",
4
4
  Processing = "processing",
5
5
  SourcingLiquidity = "sourcingLiquidity",
6
+ CryptoAddressAdded = "cryptoAddressAdded",
6
7
  LiquiditySourced = "liquiditySourced",
7
8
  AwaitingBankPayoutDetails = "awaitingBankPayoutDetails",
8
9
  DepositRegistered = "depositRegistered",
@@ -12,6 +12,7 @@ var OrderStatus;
12
12
  // processor
13
13
  OrderStatus["Processing"] = "processing";
14
14
  OrderStatus["SourcingLiquidity"] = "sourcingLiquidity";
15
+ OrderStatus["CryptoAddressAdded"] = "cryptoAddressAdded";
15
16
  OrderStatus["LiquiditySourced"] = "liquiditySourced";
16
17
  OrderStatus["AwaitingBankPayoutDetails"] = "awaitingBankPayoutDetails";
17
18
  // When the crypto deposit from a sell order is registereed by the block explorer
@@ -9,5 +9,6 @@ export declare enum UserAttribute {
9
9
  brokerCustomer = "brokerCustomer",
10
10
  summedVolumeFees = "summedVolumeFees",
11
11
  noReissueQuoteAfterExpiration = "noReissueQuoteAfterExpiration",
12
- prepaidOrders = "prepaidOrders"
12
+ prepaidOrders = "prepaidOrders",
13
+ hasTransfersEnabled = "hasTransfersEnabled"
13
14
  }
@@ -14,4 +14,5 @@ var UserAttribute;
14
14
  UserAttribute["summedVolumeFees"] = "summedVolumeFees";
15
15
  UserAttribute["noReissueQuoteAfterExpiration"] = "noReissueQuoteAfterExpiration";
16
16
  UserAttribute["prepaidOrders"] = "prepaidOrders";
17
+ UserAttribute["hasTransfersEnabled"] = "hasTransfersEnabled";
17
18
  })(UserAttribute = exports.UserAttribute || (exports.UserAttribute = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1027",
3
+ "version": "1.0.1031",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",