codebase-models 3.1.4 → 3.1.5

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.
@@ -33,7 +33,6 @@ export interface IClient extends Document {
33
33
  organization: mongoose.Schema.Types.ObjectId;
34
34
  name: string;
35
35
  url: string;
36
- slug?: string;
37
36
  viewId?: string;
38
37
  portfolioClient?: boolean;
39
38
  gaproperties?: IProperty[];
@@ -48,6 +47,8 @@ export interface IClient extends Document {
48
47
  NDAStatus?: boolean;
49
48
  retainerValue: number;
50
49
  useIntraDayTable: boolean;
50
+ slug?: string;
51
+ onboardingCompleted: boolean;
51
52
  }
52
53
  declare const Client: mongoose.Model<any, {}, {}, {}, any, any>;
53
54
  export default Client;
@@ -87,6 +87,7 @@ const ClientSchema = new mongoose_1.Schema({
87
87
  NDAStatus: { type: Boolean, default: false },
88
88
  retainerValue: { type: Number },
89
89
  useIntraDayTable: { type: Boolean },
90
+ onboardingCompleted: { type: Boolean, default: false },
90
91
  }, {
91
92
  timestamps: true,
92
93
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-models",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Common models for codebase",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -9,7 +9,6 @@ export interface IProperty extends Document {
9
9
  viewId: string;
10
10
  platform?: string;
11
11
  }
12
-
13
12
  const PropertySchema: Schema = new Schema<IProperty>({
14
13
  propertyname: { type: String, required: true },
15
14
  viewId: { type: String, required: true },
@@ -20,7 +19,6 @@ export interface IClient extends Document {
20
19
  organization: mongoose.Schema.Types.ObjectId;
21
20
  name: string;
22
21
  url: string;
23
- slug?: string;
24
22
  viewId?: string;
25
23
  portfolioClient?: boolean;
26
24
  gaproperties?: IProperty[];
@@ -35,6 +33,8 @@ export interface IClient extends Document {
35
33
  NDAStatus?: boolean;
36
34
  retainerValue: number;
37
35
  useIntraDayTable: boolean;
36
+ slug?: string;
37
+ onboardingCompleted: boolean;
38
38
  }
39
39
 
40
40
  const ClientSchema: Schema = new Schema<IClient>(
@@ -81,6 +81,7 @@ const ClientSchema: Schema = new Schema<IClient>(
81
81
  NDAStatus: { type: Boolean, default: false },
82
82
  retainerValue: { type: Number },
83
83
  useIntraDayTable: { type: Boolean },
84
+ onboardingCompleted: { type: Boolean, default: false },
84
85
  },
85
86
  {
86
87
  timestamps: true,