codebase-models 2.1.7 → 2.1.8
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.
|
@@ -79,6 +79,7 @@ export interface ITest extends Document {
|
|
|
79
79
|
testtool: string;
|
|
80
80
|
personalization: boolean;
|
|
81
81
|
qaMode: boolean;
|
|
82
|
+
dnt: boolean;
|
|
82
83
|
kameleoontestdetails: mongoose.Schema.Types.Mixed;
|
|
83
84
|
vwotestdetails: mongoose.Schema.Types.Mixed;
|
|
84
85
|
triggerevents: any[];
|
|
@@ -87,10 +88,10 @@ export interface ITest extends Document {
|
|
|
87
88
|
significance: string;
|
|
88
89
|
recommendedsamplesize: number;
|
|
89
90
|
weeks: number;
|
|
90
|
-
dnt: boolean;
|
|
91
91
|
livedate: Date;
|
|
92
92
|
defaultControl: string;
|
|
93
93
|
enddate: Date;
|
|
94
|
+
createdBy: mongoose.Schema.Types.ObjectId;
|
|
94
95
|
}
|
|
95
96
|
declare const Test: mongoose.Model<any, {}, {}, {}, any, any>;
|
|
96
97
|
export default Test;
|
package/dist/src/models/Test.js
CHANGED
|
@@ -144,6 +144,7 @@ const TestSchema = new mongoose_1.Schema({
|
|
|
144
144
|
testtool: { type: String, default: "" },
|
|
145
145
|
personalization: { type: Boolean, default: false },
|
|
146
146
|
qaMode: { type: Boolean, default: false },
|
|
147
|
+
dnt: { type: Boolean, default: false },
|
|
147
148
|
kameleoontestdetails: { type: mongoose_1.default.Schema.Types.Mixed, default: null },
|
|
148
149
|
vwotestdetails: { type: mongoose_1.default.Schema.Types.Mixed, default: null },
|
|
149
150
|
triggerevents: { type: [], default: [] },
|
|
@@ -152,10 +153,10 @@ const TestSchema = new mongoose_1.Schema({
|
|
|
152
153
|
significance: { type: String, default: "" },
|
|
153
154
|
recommendedsamplesize: { type: Number, default: null },
|
|
154
155
|
weeks: { type: Number, default: null },
|
|
155
|
-
dnt: { type: Boolean, default: false },
|
|
156
156
|
livedate: { type: Date, default: null },
|
|
157
157
|
defaultControl: { type: String, default: null },
|
|
158
|
-
enddate: { type: Date, default: null }
|
|
158
|
+
enddate: { type: Date, default: null },
|
|
159
|
+
createdBy: { type: mongoose_1.default.Schema.Types.ObjectId, ref: "user", default: null }
|
|
159
160
|
}, {
|
|
160
161
|
timestamps: true
|
|
161
162
|
});
|
package/dist/src/models/User.js
CHANGED
package/package.json
CHANGED
package/src/models/Test.ts
CHANGED
|
@@ -24,7 +24,6 @@ export interface ITest extends Document {
|
|
|
24
24
|
name: string;
|
|
25
25
|
traffic_allocation: number;
|
|
26
26
|
audiences_match_type: string;
|
|
27
|
-
|
|
28
27
|
// Metadata fields
|
|
29
28
|
metadata_1: mongoose.Schema.Types.Mixed;
|
|
30
29
|
metadata_2: mongoose.Schema.Types.Mixed;
|
|
@@ -64,6 +63,7 @@ export interface ITest extends Document {
|
|
|
64
63
|
testtool: string;
|
|
65
64
|
personalization: boolean;
|
|
66
65
|
qaMode: boolean;
|
|
66
|
+
dnt: boolean;
|
|
67
67
|
kameleoontestdetails: mongoose.Schema.Types.Mixed;
|
|
68
68
|
vwotestdetails: mongoose.Schema.Types.Mixed;
|
|
69
69
|
triggerevents: any[];
|
|
@@ -72,10 +72,10 @@ export interface ITest extends Document {
|
|
|
72
72
|
significance: string;
|
|
73
73
|
recommendedsamplesize: number;
|
|
74
74
|
weeks: number;
|
|
75
|
-
dnt: boolean;
|
|
76
75
|
livedate: Date;
|
|
77
76
|
defaultControl: string;
|
|
78
77
|
enddate: Date;
|
|
78
|
+
createdBy: mongoose.Schema.Types.ObjectId;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
const VariationsSchema = new Schema<IVariations>({
|
|
@@ -194,6 +194,7 @@ const TestSchema = new Schema<ITest>(
|
|
|
194
194
|
testtool: { type: String, default: "" },
|
|
195
195
|
personalization: { type: Boolean, default: false },
|
|
196
196
|
qaMode: { type: Boolean, default: false },
|
|
197
|
+
dnt: { type: Boolean, default: false },
|
|
197
198
|
kameleoontestdetails: { type: mongoose.Schema.Types.Mixed, default: null },
|
|
198
199
|
vwotestdetails: { type: mongoose.Schema.Types.Mixed, default: null },
|
|
199
200
|
triggerevents: { type: [], default: [] },
|
|
@@ -202,10 +203,10 @@ const TestSchema = new Schema<ITest>(
|
|
|
202
203
|
significance: { type: String, default: "" },
|
|
203
204
|
recommendedsamplesize: { type: Number, default: null },
|
|
204
205
|
weeks: { type: Number, default: null },
|
|
205
|
-
dnt: { type: Boolean, default: false },
|
|
206
206
|
livedate: { type: Date, default: null },
|
|
207
207
|
defaultControl: { type: String, default: null },
|
|
208
|
-
enddate: { type: Date, default: null }
|
|
208
|
+
enddate: { type: Date, default: null },
|
|
209
|
+
createdBy: { type: mongoose.Schema.Types.ObjectId, ref: "user", default: null }
|
|
209
210
|
},
|
|
210
211
|
{
|
|
211
212
|
timestamps: true
|
package/src/models/User.ts
CHANGED
|
@@ -13,6 +13,7 @@ export interface IUser extends Document {
|
|
|
13
13
|
updatedAt: Date;
|
|
14
14
|
resetLink: string;
|
|
15
15
|
organizationId?: mongoose.Schema.Types.ObjectId;
|
|
16
|
+
external: boolean;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
const UserSchema = new Schema<IUser>({
|
|
@@ -52,7 +53,11 @@ const UserSchema = new Schema<IUser>({
|
|
|
52
53
|
ref: "organization",
|
|
53
54
|
default: null,
|
|
54
55
|
},
|
|
56
|
+
external: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: false,
|
|
55
59
|
},
|
|
60
|
+
},
|
|
56
61
|
{
|
|
57
62
|
timestamps: true,
|
|
58
63
|
}
|