@riocrypto/common 1.0.428 → 1.0.429

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.
@@ -7,6 +7,7 @@ import { UserAttribute } from "../types/user-attribute";
7
7
  import { UserType } from "../types/user-type";
8
8
  import { Mongoose, Model, Document } from "mongoose";
9
9
  interface BusinessUserAttrs {
10
+ authId?: string;
10
11
  type: UserType;
11
12
  companyName: string;
12
13
  legalRepresentative: string;
@@ -31,6 +32,7 @@ interface BusinessUserModel extends Model<BusinessUserDoc> {
31
32
  build(attrs: BusinessUserAttrs): BusinessUserDoc;
32
33
  }
33
34
  interface BusinessUserDoc extends Document {
35
+ authId?: string;
34
36
  type: UserType;
35
37
  companyName: string;
36
38
  legalRepresentative: string;
@@ -7,6 +7,9 @@ const buildBusinessUser = (mongoose) => {
7
7
  return mongoose.model("BusinessUser");
8
8
  }
9
9
  const BusinessUserSchema = new mongoose.Schema({
10
+ authId: {
11
+ type: String,
12
+ },
10
13
  type: {
11
14
  type: String,
12
15
  required: true,
@@ -1,6 +1,7 @@
1
1
  export declare enum AuthorizationType {
2
2
  UserNoKYC = "newUserNoKYC",
3
3
  User = "user",
4
+ Broker = "broker",
4
5
  Admin = "admin",
5
6
  Partner = "partner",
6
7
  Auth = "auth"
@@ -5,6 +5,7 @@ var AuthorizationType;
5
5
  (function (AuthorizationType) {
6
6
  AuthorizationType["UserNoKYC"] = "newUserNoKYC";
7
7
  AuthorizationType["User"] = "user";
8
+ AuthorizationType["Broker"] = "broker";
8
9
  AuthorizationType["Admin"] = "admin";
9
10
  AuthorizationType["Partner"] = "partner";
10
11
  AuthorizationType["Auth"] = "auth";
@@ -5,6 +5,7 @@ import { PlatformFeeRange } from "./platform-fee-range";
5
5
  import { USState } from "./us-state";
6
6
  import { UserAttribute } from "./user-attribute";
7
7
  export interface BusinessUserInput {
8
+ authId?: string;
8
9
  companyName: string;
9
10
  legalRepresentative: string;
10
11
  phoneNumber?: string;
@@ -4,6 +4,7 @@ import { Language } from "./language";
4
4
  import { PlatformFeeRange } from "./platform-fee-range";
5
5
  import { UserAttribute } from "./user-attribute";
6
6
  export interface BusinessUserUpdate {
7
+ authId?: string;
7
8
  companyName?: string;
8
9
  legalRepresentative?: string;
9
10
  phoneNumber?: string;
@@ -7,6 +7,7 @@ import { UserAttribute } from "./user-attribute";
7
7
  import { UserType } from "./user-type";
8
8
  export interface BusinessUser {
9
9
  id: string;
10
+ authId?: string;
10
11
  type: UserType;
11
12
  companyName: string;
12
13
  legalRepresentative: string;
@@ -6,6 +6,7 @@ import { USState } from "./us-state";
6
6
  import { UserAttribute } from "./user-attribute";
7
7
  import { UserType } from "./user-type";
8
8
  export interface User {
9
+ authId: string;
9
10
  id: string;
10
11
  type: UserType;
11
12
  firstName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.428",
3
+ "version": "1.0.429",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",