@riocrypto/common 1.0.740 → 1.0.742

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`);
@@ -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.742",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",