@riocrypto/common 1.0.1349 → 1.0.1351

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.
@@ -43,6 +43,8 @@ import { UBOUpdate } from "../types/UBO-update";
43
43
  import { IdentityVerificationType } from "../types/IdentityVerificationType";
44
44
  import { AdminAuth } from "../types/admin-auth";
45
45
  import { AdminAuthInput } from "../types/admin-auth-input";
46
+ import { BidInput } from "../types/bid-input";
47
+ import { Bid } from "../types/bid";
46
48
  export declare class RioAdminClient {
47
49
  private axios;
48
50
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -55,6 +57,7 @@ export declare class RioAdminClient {
55
57
  }>;
56
58
  updateQuote(id: string, update: any): Promise<Quote>;
57
59
  getQuote(id: string): Promise<Quote>;
60
+ createBid(input: BidInput): Promise<Bid>;
58
61
  getUsers(page: number, limit?: number, query?: UserQuery): Promise<User[]>;
59
62
  signinAdmin(email: string, password: string, authenticatorCode: string): Promise<any>;
60
63
  updateUser(update: UserUpdate, userId?: string): Promise<User>;
@@ -65,6 +65,12 @@ class RioAdminClient {
65
65
  return data;
66
66
  });
67
67
  }
68
+ createBid(input) {
69
+ return __awaiter(this, void 0, void 0, function* () {
70
+ const { data } = yield this.axios.post(`/api/bids`, input);
71
+ return data;
72
+ });
73
+ }
68
74
  getUsers(page, limit, query) {
69
75
  return __awaiter(this, void 0, void 0, function* () {
70
76
  const { data } = yield this.axios.get(`/api/users?`, {
@@ -38,6 +38,8 @@ import { UBOInput } from "../types/UBO-input";
38
38
  import { UBO } from "../types/UBO";
39
39
  import { UBOUpdate } from "../types/UBO-update";
40
40
  import { IdentityVerificationType } from "../types/IdentityVerificationType";
41
+ import { BidInput } from "../types/bid-input";
42
+ import { Bid } from "../types/bid";
41
43
  export declare class RioClient {
42
44
  private axios;
43
45
  constructor(axios: AxiosStatic | AxiosInstance);
@@ -53,7 +55,7 @@ export declare class RioClient {
53
55
  uploadCOI(id: string, formData: FormData): Promise<User>;
54
56
  uploadFile(id: string, country: CountryOfOrigin, fileType: KYCFileType, formData: FormData): Promise<User>;
55
57
  uploadKYCReport(id: string, formData: FormData): Promise<User>;
56
- createBid(id: string, formData: FormData): Promise<User>;
58
+ createBid(input: BidInput): Promise<Bid>;
57
59
  uploadCSF(id: string, formData: FormData): Promise<User>;
58
60
  getRioSettings(): Promise<RioSettings>;
59
61
  sendVerificationEmail(type: IdentityVerificationType, id: string, country: Country): Promise<void>;
@@ -116,9 +116,9 @@ class RioClient {
116
116
  return data;
117
117
  });
118
118
  }
119
- createBid(id, formData) {
119
+ createBid(input) {
120
120
  return __awaiter(this, void 0, void 0, function* () {
121
- const { data } = yield this.axios.post(`/api/users/${id}/kyc-report`, formData);
121
+ const { data } = yield this.axios.post(`/api/bids`, input);
122
122
  return data;
123
123
  });
124
124
  }
@@ -11,7 +11,6 @@ export interface BidInput {
11
11
  amountFiat?: number;
12
12
  amountCrypto?: number;
13
13
  brokerFeeRate?: number;
14
- netPrice?: number;
15
- orderId?: string;
14
+ netPrice: number;
16
15
  USBankTransferMethod?: "wire" | "ach_push";
17
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.1349",
3
+ "version": "1.0.1351",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",