@riocrypto/common 1.0.1347 → 1.0.1349

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.
@@ -131,6 +131,9 @@ export declare class RioAdminClient {
131
131
  sendPhoneAuthCode(phoneNumber: string): Promise<{
132
132
  hasAuthenticatorEnabled: boolean;
133
133
  }>;
134
+ createAdminAuthenticatorSecret(id: string): Promise<{
135
+ secret: string;
136
+ }>;
134
137
  getAuth(id: string): Promise<Auth>;
135
138
  getAuths(): Promise<Auth[]>;
136
139
  authHasSecurityQuestion(): Promise<Boolean>;
@@ -405,6 +405,12 @@ class RioAdminClient {
405
405
  return response.data;
406
406
  });
407
407
  }
408
+ createAdminAuthenticatorSecret(id) {
409
+ return __awaiter(this, void 0, void 0, function* () {
410
+ const response = yield this.axios.post(`/api/auth/admin/${id}/authenticator`);
411
+ return response.data;
412
+ });
413
+ }
408
414
  getAuth(id) {
409
415
  return __awaiter(this, void 0, void 0, function* () {
410
416
  const response = yield this.axios.get(`/api/auth/${id}`);
@@ -53,6 +53,7 @@ export declare class RioClient {
53
53
  uploadCOI(id: string, formData: FormData): Promise<User>;
54
54
  uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
55
55
  uploadKYCReport(id: string, formData: FormData): Promise<User>;
56
+ createBid(id: string, formData: FormData): Promise<User>;
56
57
  uploadCSF(id: string, formData: FormData): Promise<User>;
57
58
  getRioSettings(): Promise<RioSettings>;
58
59
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
@@ -116,6 +116,12 @@ class RioClient {
116
116
  return data;
117
117
  });
118
118
  }
119
+ createBid(id, formData) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
122
+ return data;
123
+ });
124
+ }
119
125
  uploadCSF(id, formData) {
120
126
  return __awaiter(this, void 0, void 0, function* () {
121
127
  const { data } = yield this.axios.post(`/api/users/${id}/csf`, formData);
package/build/index.d.ts CHANGED
@@ -145,6 +145,7 @@ export * from "./types/side";
145
145
  export * from "./types/auth";
146
146
  export * from "./types/auth-update";
147
147
  export * from "./types/user";
148
+ export * from "./types/bid-input";
148
149
  export * from "./types/user-input";
149
150
  export * from "./types/order";
150
151
  export * from "./types/order-input";
package/build/index.js CHANGED
@@ -161,6 +161,7 @@ __exportStar(require("./types/side"), exports);
161
161
  __exportStar(require("./types/auth"), exports);
162
162
  __exportStar(require("./types/auth-update"), exports);
163
163
  __exportStar(require("./types/user"), exports);
164
+ __exportStar(require("./types/bid-input"), exports);
164
165
  __exportStar(require("./types/user-input"), exports);
165
166
  __exportStar(require("./types/order"), exports);
166
167
  __exportStar(require("./types/order-input"), exports);
@@ -0,0 +1,17 @@
1
+ import { Side } from "./side";
2
+ import { Crypto } from "./crypto";
3
+ import { Fiat } from "./fiat";
4
+ import { Country } from "./country";
5
+ export interface BidInput {
6
+ userId?: string;
7
+ side: Side;
8
+ crypto: Crypto;
9
+ fiat: Fiat;
10
+ country: Country;
11
+ amountFiat?: number;
12
+ amountCrypto?: number;
13
+ brokerFeeRate?: number;
14
+ netPrice?: number;
15
+ orderId?: string;
16
+ USBankTransferMethod?: "wire" | "ach_push";
17
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1347",
3
+ "version": "1.0.1349",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",