@riocrypto/common 1.0.344 → 1.0.346

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.
@@ -0,0 +1,8 @@
1
+ import { CustomError } from "./custom-error";
2
+ export declare class AdminExistsError extends CustomError {
3
+ statusCode: number;
4
+ constructor();
5
+ serializeErrors(): {
6
+ message: string;
7
+ }[];
8
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminExistsError = void 0;
4
+ const custom_error_1 = require("./custom-error");
5
+ class AdminExistsError extends custom_error_1.CustomError {
6
+ constructor() {
7
+ super("Wyre authorization codes failed validation");
8
+ this.statusCode = 409;
9
+ Object.setPrototypeOf(this, AdminExistsError.prototype);
10
+ }
11
+ serializeErrors() {
12
+ return [{ message: "Admin already exists" }];
13
+ }
14
+ }
15
+ exports.AdminExistsError = AdminExistsError;
package/build/index.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from "./errors/user-already-exists-error";
8
8
  export * from "./errors/not-authorized-error";
9
9
  export * from "./errors/wrong-processor-error";
10
10
  export * from "./errors/authorization-failed-error";
11
+ export * from "./errors/admin-exists-error";
11
12
  export * from "./middlewares/error-handler";
12
13
  export * from "./middlewares/validate-request";
13
14
  export * from "./middlewares/current-auth";
package/build/index.js CHANGED
@@ -24,6 +24,7 @@ __exportStar(require("./errors/user-already-exists-error"), exports);
24
24
  __exportStar(require("./errors/not-authorized-error"), exports);
25
25
  __exportStar(require("./errors/wrong-processor-error"), exports);
26
26
  __exportStar(require("./errors/authorization-failed-error"), exports);
27
+ __exportStar(require("./errors/admin-exists-error"), exports);
27
28
  __exportStar(require("./middlewares/error-handler"), exports);
28
29
  __exportStar(require("./middlewares/validate-request"), exports);
29
30
  __exportStar(require("./middlewares/current-auth"), exports);
@@ -1,6 +1,7 @@
1
1
  import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
+ import { PlatformFeeRange } from "./platform-fee-range";
4
5
  import { USState } from "./us-state";
5
6
  import { UserAttribute } from "./user-attribute";
6
7
  export interface BusinessUserInput {
@@ -21,4 +22,5 @@ export interface BusinessUserInput {
21
22
  KYCReportFile?: string;
22
23
  attributes?: UserAttribute[];
23
24
  brokerId?: string;
25
+ platformFeeRanges?: PlatformFeeRange[];
24
26
  }
@@ -1,6 +1,7 @@
1
1
  import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
+ import { PlatformFeeRange } from "./platform-fee-range";
4
5
  import { UserAttribute } from "./user-attribute";
5
6
  export interface BusinessUserUpdate {
6
7
  companyName?: string;
@@ -21,4 +22,5 @@ export interface BusinessUserUpdate {
21
22
  KYCReportFile?: string;
22
23
  attributes?: UserAttribute[];
23
24
  brokerId?: string;
25
+ platformFeeRanges?: PlatformFeeRange[];
24
26
  }
@@ -1,6 +1,7 @@
1
1
  import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
+ import { PlatformFeeRange } from "./platform-fee-range";
4
5
  import { USState } from "./us-state";
5
6
  import { UserAttribute } from "./user-attribute";
6
7
  export interface UserInput {
@@ -21,4 +22,5 @@ export interface UserInput {
21
22
  partnerId?: string;
22
23
  attributes?: UserAttribute[];
23
24
  brokerId?: string;
25
+ platformFeeRanges?: PlatformFeeRange[];
24
26
  }
@@ -1,6 +1,7 @@
1
1
  import { Country } from "./country";
2
2
  import { KYCStatus } from "./kyc-status";
3
3
  import { Language } from "./language";
4
+ import { PlatformFeeRange } from "./platform-fee-range";
4
5
  import { UserAttribute } from "./user-attribute";
5
6
  export interface UserUpdate {
6
7
  firstName?: string;
@@ -20,4 +21,5 @@ export interface UserUpdate {
20
21
  partnerId?: string;
21
22
  attributes?: UserAttribute[];
22
23
  brokerId?: string;
24
+ platformFeeRanges?: PlatformFeeRange[];
23
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.344",
3
+ "version": "1.0.346",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",