codebase-models 2.1.4 → 2.1.6

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.
@@ -145,7 +145,7 @@ const ClientScriptSchema = new mongoose_1.Schema({
145
145
  js: {
146
146
  type: String,
147
147
  trim: true,
148
- default: "window.__xlr8d_debug=window.__xlr8d_debug || [];window.__xlr8d_debug.push(Date.now());if (window.acceleratedData?.version>2024041200) return !1;window.__xlr8d_debug.push('trying to inject framework');(src => document.head.appendChild(Object.assign(document.createElement('script'), {type:'text/javascript',async:!0,src})))(`https://media.accdn.dev/globalScript/_xlr8d_boilerplate/setup.js`);window.__xlr8d_debug.push('added');",
148
+ default: "window.__xlr8d_debug = window.__xlr8d_debug || [];window.__xlr8d_debug.push(Date.now());if (window.acceleratedData?.version > 2024041200) {window.__xlr8d_debug.push('version check passed, not injecting');} else {window.__xlr8d_debug.push('trying to inject framework');((src) => {const script = document.createElement('script');script.type = 'text/javascript';script.async = true;script.src = src;document.head.appendChild(script);window.__xlr8d_debug.push('added');})(`https://media.accdn.dev/globalScript/_xlr8d_boilerplate/setup.js`);}",
149
149
  },
150
150
  css: {
151
151
  type: String,
@@ -86,6 +86,7 @@ export interface ITest extends Document {
86
86
  revenue: any[];
87
87
  significance: string;
88
88
  recommendedsamplesize: number;
89
+ weeks: number;
89
90
  livedate: Date;
90
91
  defaultControl: string;
91
92
  enddate: Date;
@@ -151,6 +151,7 @@ const TestSchema = new mongoose_1.Schema({
151
151
  revenue: { type: [], default: [] },
152
152
  significance: { type: String, default: "" },
153
153
  recommendedsamplesize: { type: Number, default: null },
154
+ weeks: { type: Number, default: null },
154
155
  livedate: { type: Date, default: null },
155
156
  defaultControl: { type: String, default: null },
156
157
  enddate: { type: Date, default: null }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codebase-models",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "Common models for codebase",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -152,7 +152,7 @@ const ClientScriptSchema = new Schema<IClientScript>(
152
152
  js: {
153
153
  type: String,
154
154
  trim: true,
155
- default: "window.__xlr8d_debug=window.__xlr8d_debug || [];window.__xlr8d_debug.push(Date.now());if (window.acceleratedData?.version>2024041200) return !1;window.__xlr8d_debug.push('trying to inject framework');(src => document.head.appendChild(Object.assign(document.createElement('script'), {type:'text/javascript',async:!0,src})))(`https://media.accdn.dev/globalScript/_xlr8d_boilerplate/setup.js`);window.__xlr8d_debug.push('added');",
155
+ default: "window.__xlr8d_debug = window.__xlr8d_debug || [];window.__xlr8d_debug.push(Date.now());if (window.acceleratedData?.version > 2024041200) {window.__xlr8d_debug.push('version check passed, not injecting');} else {window.__xlr8d_debug.push('trying to inject framework');((src) => {const script = document.createElement('script');script.type = 'text/javascript';script.async = true;script.src = src;document.head.appendChild(script);window.__xlr8d_debug.push('added');})(`https://media.accdn.dev/globalScript/_xlr8d_boilerplate/setup.js`);}",
156
156
  },
157
157
  css: {
158
158
  type: String,
@@ -73,6 +73,7 @@ export interface ITest extends Document {
73
73
  revenue: any[];
74
74
  significance: string;
75
75
  recommendedsamplesize: number;
76
+ weeks: number;
76
77
  livedate: Date;
77
78
  defaultControl: string;
78
79
  enddate: Date;
@@ -201,6 +202,7 @@ const TestSchema = new Schema<ITest>(
201
202
  revenue: { type: [], default: [] },
202
203
  significance: { type: String, default: "" },
203
204
  recommendedsamplesize: { type: Number, default: null },
205
+ weeks: { type: Number, default: null },
204
206
  livedate: { type: Date, default: null },
205
207
  defaultControl: { type: String, default: null },
206
208
  enddate: { type: Date, default: null }