make-mp-data 1.5.3 → 1.5.4
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.
- package/dungeons/complex.js +35 -5
- package/dungeons/simple.js +1 -1
- package/index.js +2 -2
- package/package.json +1 -1
package/dungeons/complex.js
CHANGED
|
@@ -159,11 +159,41 @@ const config = {
|
|
|
159
159
|
|
|
160
160
|
/** each generates it's own table */
|
|
161
161
|
scdProps: {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
role: {
|
|
163
|
+
type: "user",
|
|
164
|
+
frequency: "week",
|
|
165
|
+
values: ["admin", "collaborator", "user", "view only", "no access"],
|
|
166
|
+
timing: 'fuzzy',
|
|
167
|
+
max: 10
|
|
168
|
+
},
|
|
169
|
+
NPS: {
|
|
170
|
+
type: "user",
|
|
171
|
+
frequency: "day",
|
|
172
|
+
values: u.weighNumRange(1, 10, 2, 150),
|
|
173
|
+
timing: 'fuzzy',
|
|
174
|
+
max: 10
|
|
175
|
+
},
|
|
176
|
+
MRR: {
|
|
177
|
+
type: "company_id",
|
|
178
|
+
frequency: "month",
|
|
179
|
+
values: u.weighNumRange(0, 10000, .15),
|
|
180
|
+
timing: 'fixed',
|
|
181
|
+
max: 10
|
|
182
|
+
},
|
|
183
|
+
AccountHealthScore: {
|
|
184
|
+
type: "company_id",
|
|
185
|
+
frequency: "week",
|
|
186
|
+
values: u.weighNumRange(1, 10, .15),
|
|
187
|
+
timing: 'fixed',
|
|
188
|
+
max: 40
|
|
189
|
+
},
|
|
190
|
+
plan: {
|
|
191
|
+
type: "company_id",
|
|
192
|
+
frequency: "month",
|
|
193
|
+
values: ["free", "basic", "premium", "enterprise"],
|
|
194
|
+
timing: 'fixed',
|
|
195
|
+
max: 10
|
|
196
|
+
}
|
|
167
197
|
},
|
|
168
198
|
|
|
169
199
|
mirrorProps: {
|
package/dungeons/simple.js
CHANGED
|
@@ -32,7 +32,7 @@ const config = {
|
|
|
32
32
|
hasAnonIds: false, //if true, anonymousIds are created for each user
|
|
33
33
|
hasSessionIds: false, //if true, hasSessionIds are created for each user
|
|
34
34
|
hasAdSpend: false,
|
|
35
|
-
makeChart:
|
|
35
|
+
makeChart: false,
|
|
36
36
|
hasLocation: true,
|
|
37
37
|
hasAndroidDevices: true,
|
|
38
38
|
hasIOSDevices: true,
|
package/index.js
CHANGED
|
@@ -1646,7 +1646,7 @@ if (NODE_ENV !== "prod") {
|
|
|
1646
1646
|
const darr = [d];
|
|
1647
1647
|
const { events = d, groups = darr, users = d } = data?.importResults || {};
|
|
1648
1648
|
const files = data.files;
|
|
1649
|
-
const folder = files?.[0]?.split(path.basename(files?.[0]))?.shift() || "./
|
|
1649
|
+
const folder = files?.[0]?.split(path.basename(files?.[0]))?.shift() || "./";
|
|
1650
1650
|
const groupBytes = groups.reduce((acc, group) => {
|
|
1651
1651
|
return acc + group.bytes;
|
|
1652
1652
|
}, 0);
|
|
@@ -1662,7 +1662,7 @@ if (NODE_ENV !== "prod") {
|
|
|
1662
1662
|
};
|
|
1663
1663
|
if (bytes > 0) console.table(stats);
|
|
1664
1664
|
log(`\nlog written to ${folder} ...`);
|
|
1665
|
-
writeFileSync(path.
|
|
1665
|
+
writeFileSync(path.resolve(folder, "log.json"), JSON.stringify(data?.importResults, null, 2));
|
|
1666
1666
|
// log(" " + files?.flat().join("\n "));
|
|
1667
1667
|
log(`\n----------------SUMMARY-----------------\n\n\n`);
|
|
1668
1668
|
})
|