@riocrypto/common 1.0.948 → 1.0.950

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.
@@ -80,7 +80,7 @@ export declare class RioAdminClient {
80
80
  createUser(user: UserInput): Promise<User>;
81
81
  getBankPayment(orderId: string): Promise<BankPayment>;
82
82
  verifyBankPayment(orderId: string): Promise<any>;
83
- sendPhoneAuthCode(phoneNumber: string): Promise<void>;
83
+ sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
84
84
  getAuth(phoneNumber?: string): Promise<{
85
85
  auth: Auth;
86
86
  missing: string[];
@@ -238,10 +238,11 @@ class RioAdminClient {
238
238
  });
239
239
  });
240
240
  }
241
- sendPhoneAuthCode(phoneNumber) {
241
+ sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
242
242
  return __awaiter(this, void 0, void 0, function* () {
243
243
  yield this.axios.post("/api/auth/phone/send", {
244
244
  phoneNumber,
245
+ isNewPhoneNumber,
245
246
  });
246
247
  });
247
248
  }
@@ -46,7 +46,7 @@ export declare class RioClient {
46
46
  uploadProofOfAddress(id: string, formData: FormData): Promise<User>;
47
47
  getBankPayment(orderId: string): Promise<BankPayment>;
48
48
  verifyBankPayment(orderId: string): Promise<any>;
49
- sendPhoneAuthCode(phoneNumber: string): Promise<void>;
49
+ sendPhoneAuthCode(phoneNumber: string, isNewPhoneNumber: boolean): Promise<void>;
50
50
  getAuth(phoneNumber?: string): Promise<{
51
51
  auth: Auth;
52
52
  missing: string[];
@@ -134,10 +134,11 @@ class RioClient {
134
134
  });
135
135
  });
136
136
  }
137
- sendPhoneAuthCode(phoneNumber) {
137
+ sendPhoneAuthCode(phoneNumber, isNewPhoneNumber) {
138
138
  return __awaiter(this, void 0, void 0, function* () {
139
139
  yield this.axios.post("/api/auth/phone/send", {
140
140
  phoneNumber,
141
+ isNewPhoneNumber,
141
142
  });
142
143
  });
143
144
  }
@@ -7,6 +7,8 @@ export declare enum OrderStatus {
7
7
  DepositConfirmed = "depositConfirmed",
8
8
  Paid = "paid",
9
9
  Filled = "filled",
10
+ AddressCheckPassed = "addressCheckPassed",
11
+ DepositAddressCreated = "depositAddressCreated",
10
12
  Complete = "complete",
11
13
  PaymentFailed = "failedPayment",
12
14
  AwaitingPayment = "awaitingPayment",
@@ -24,6 +24,8 @@ var OrderStatus;
24
24
  // provider but not yet transferred to the
25
25
  // user
26
26
  OrderStatus["Filled"] = "filled";
27
+ OrderStatus["AddressCheckPassed"] = "addressCheckPassed";
28
+ OrderStatus["DepositAddressCreated"] = "depositAddressCreated";
27
29
  // When order has been processed by the payment
28
30
  // processor and filled by the liquidity provider
29
31
  OrderStatus["Complete"] = "complete";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.948",
3
+ "version": "1.0.950",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",