@riocrypto/common 1.0.740 → 1.0.743

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 @@ export declare class RioAdminClient {
43
43
  password?: string;
44
44
  newPassword?: string;
45
45
  }): Promise<Admin>;
46
+ getBridgeUserAgreement(userId: string): Promise<string>;
47
+ createBridgeCustomer(userId: string, signedAgreementId: string, ssn: string): Promise<void>;
46
48
  getAdminAuth(): Promise<any>;
47
49
  signoutAdmin(): Promise<void>;
48
50
  getRioSettings(): Promise<RioSettings>;
@@ -109,6 +109,20 @@ class RioAdminClient {
109
109
  return data;
110
110
  });
111
111
  }
112
+ getBridgeUserAgreement(userId) {
113
+ return __awaiter(this, void 0, void 0, function* () {
114
+ const { data } = yield this.axios.get(`/api/users/${userId}/us/agreement`);
115
+ return data.url;
116
+ });
117
+ }
118
+ createBridgeCustomer(userId, signedAgreementId, ssn) {
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ yield this.axios.post(`/api/users/${userId}/us/enable`, {
121
+ signedAgreementId,
122
+ ssn,
123
+ });
124
+ });
125
+ }
112
126
  getAdminAuth() {
113
127
  return __awaiter(this, void 0, void 0, function* () {
114
128
  const { data } = yield this.axios.get(`/api/auth/admin`);
package/build/index.d.ts CHANGED
@@ -132,7 +132,6 @@ export * from "./types/user-query";
132
132
  export * from "./types/bank-account-query";
133
133
  export * from "./types/mexico-fiscal-regimen";
134
134
  export * from "./types/bridge-customer";
135
- export * from "./types/bridge-customer-input";
136
135
  export * from "./classes/Asset";
137
136
  export * from "./classes/CountryAsset";
138
137
  export * from "./classes/CryptoAsset";
package/build/index.js CHANGED
@@ -148,7 +148,6 @@ __exportStar(require("./types/user-query"), exports);
148
148
  __exportStar(require("./types/bank-account-query"), exports);
149
149
  __exportStar(require("./types/mexico-fiscal-regimen"), exports);
150
150
  __exportStar(require("./types/bridge-customer"), exports);
151
- __exportStar(require("./types/bridge-customer-input"), exports);
152
151
  __exportStar(require("./classes/Asset"), exports);
153
152
  __exportStar(require("./classes/CountryAsset"), exports);
154
153
  __exportStar(require("./classes/CryptoAsset"), exports);
@@ -1,10 +1,4 @@
1
1
  export interface BridgeCustomer {
2
- id: string;
3
- type: "individual" | "business";
4
- first_name: string;
5
- last_name: string;
6
- email: string;
7
- phone: string;
8
- requirements_due?: string[];
9
- future_requirements_due?: string[];
2
+ userId: string;
3
+ bridgeId: string;
10
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.740",
3
+ "version": "1.0.743",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,18 +0,0 @@
1
- export interface BridgeCustomerInput {
2
- type: "individual" | "business";
3
- first_name: string;
4
- last_name: string;
5
- email: string;
6
- phone: string;
7
- address: {
8
- street_line_1: string;
9
- street_line_2: string;
10
- city: string;
11
- state: string;
12
- postal_code: string;
13
- country: string;
14
- };
15
- signed_agreement_id: string;
16
- dob: string;
17
- ssn: string;
18
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });