@riocrypto/common-server 1.0.857 → 1.0.858

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.
@@ -1,10 +1,12 @@
1
- import { BridgeCustomer, BridgeCustomerInput } from "@riocrypto/common";
1
+ import { BridgeCustomerInput } from "@riocrypto/common";
2
2
  declare class BridgeClient {
3
3
  private apiKey;
4
4
  private baseUrl;
5
5
  constructor(apiKey: string);
6
6
  getTermsOfServiceUrl(): Promise<string>;
7
- createCustomer(userInput: BridgeCustomerInput): Promise<BridgeCustomer>;
7
+ createCustomer(userInput: BridgeCustomerInput): Promise<{
8
+ id: string;
9
+ }>;
8
10
  }
9
11
  export declare const buildBridgeClient: () => Promise<BridgeClient>;
10
12
  export {};
@@ -1,13 +1,7 @@
1
1
  import { Mongoose, Model, Document } from "mongoose";
2
2
  interface BridgeCustomerAttrs {
3
+ userId: string;
3
4
  bridgeId: string;
4
- type: "individual" | "business";
5
- first_name: string;
6
- last_name: string;
7
- email: string;
8
- phone: string;
9
- requirements_due?: string[];
10
- future_requirements_due?: string[];
11
5
  }
12
6
  interface BridgeCustomerModel extends Model<BridgeCustomerDoc> {
13
7
  build(attrs: BridgeCustomerAttrs): BridgeCustomerDoc;
@@ -15,13 +9,7 @@ interface BridgeCustomerModel extends Model<BridgeCustomerDoc> {
15
9
  interface BridgeCustomerDoc extends Document {
16
10
  _id: string;
17
11
  bridgeId: string;
18
- type: "individual" | "business";
19
- first_name: string;
20
- last_name: string;
21
- email: string;
22
- phone: string;
23
- requirements_due?: string[];
24
- future_requirements_due?: string[];
12
+ userId: string;
25
13
  }
26
14
  declare const buildBridgeCustomer: (mongoose: Mongoose) => BridgeCustomerModel;
27
15
  export { buildBridgeCustomer, BridgeCustomerDoc };
@@ -11,19 +11,7 @@ const buildBridgeCustomer = (mongoose) => {
11
11
  type: String,
12
12
  required: true,
13
13
  },
14
- type: {
15
- type: String,
16
- required: true,
17
- },
18
- first_name: {
19
- type: String,
20
- required: true,
21
- },
22
- last_name: {
23
- type: String,
24
- required: true,
25
- },
26
- phone: {
14
+ userId: {
27
15
  type: String,
28
16
  required: true,
29
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common-server",
3
- "version": "1.0.857",
3
+ "version": "1.0.858",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",