@riocrypto/common 1.0.521 → 1.0.522

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.
@@ -54,6 +54,7 @@ export declare class RioClient {
54
54
  }>;
55
55
  signout(): Promise<void>;
56
56
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
57
+ signin(password: string): Promise<void>;
57
58
  createOrder(order: OrderInput): Promise<Order>;
58
59
  getOrder(id: string): Promise<Order>;
59
60
  createBankPayout(oid: string, accountNumber: string): Promise<BankPayout>;
@@ -156,6 +156,13 @@ class RioClient {
156
156
  });
157
157
  });
158
158
  }
159
+ signin(password) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ yield this.axios.post("/api/auth", {
162
+ password,
163
+ });
164
+ });
165
+ }
159
166
  createOrder(order) {
160
167
  return __awaiter(this, void 0, void 0, function* () {
161
168
  const response = yield this.axios.post("/api/orders", order);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.521",
3
+ "version": "1.0.522",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",