@riocrypto/common 1.0.521 → 1.0.523

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,10 @@ 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<{
58
+ auth: Auth;
59
+ missing: string[];
60
+ }>;
57
61
  createOrder(order: OrderInput): Promise<Order>;
58
62
  getOrder(id: string): Promise<Order>;
59
63
  createBankPayout(oid: string, accountNumber: string): Promise<BankPayout>;
@@ -156,6 +156,14 @@ class RioClient {
156
156
  });
157
157
  });
158
158
  }
159
+ signin(password) {
160
+ return __awaiter(this, void 0, void 0, function* () {
161
+ const response = yield this.axios.post("/api/auth", {
162
+ password,
163
+ });
164
+ return response.data;
165
+ });
166
+ }
159
167
  createOrder(order) {
160
168
  return __awaiter(this, void 0, void 0, function* () {
161
169
  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.523",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",