make-mp-data 1.5.3 → 1.5.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.
- package/dungeons/complex.js +35 -5
- package/dungeons/simple.js +1 -1
- package/index.js +5 -3
- 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
|
@@ -1131,6 +1131,8 @@ async function sendToMixpanel(config, storage) {
|
|
|
1131
1131
|
streamFormat: mpImportFormat
|
|
1132
1132
|
};
|
|
1133
1133
|
|
|
1134
|
+
if (isCLI) commonOpts.showProgress = true;
|
|
1135
|
+
|
|
1134
1136
|
|
|
1135
1137
|
|
|
1136
1138
|
if (eventData || isBATCH_MODE) {
|
|
@@ -1646,7 +1648,7 @@ if (NODE_ENV !== "prod") {
|
|
|
1646
1648
|
const darr = [d];
|
|
1647
1649
|
const { events = d, groups = darr, users = d } = data?.importResults || {};
|
|
1648
1650
|
const files = data.files;
|
|
1649
|
-
const folder = files?.[0]?.split(path.basename(files?.[0]))?.shift() || "./
|
|
1651
|
+
const folder = files?.[0]?.split(path.basename(files?.[0]))?.shift() || "./";
|
|
1650
1652
|
const groupBytes = groups.reduce((acc, group) => {
|
|
1651
1653
|
return acc + group.bytes;
|
|
1652
1654
|
}, 0);
|
|
@@ -1661,8 +1663,8 @@ if (NODE_ENV !== "prod") {
|
|
|
1661
1663
|
bytes: bytesHuman(bytes || 0),
|
|
1662
1664
|
};
|
|
1663
1665
|
if (bytes > 0) console.table(stats);
|
|
1664
|
-
log(`\nlog written to
|
|
1665
|
-
writeFileSync(path.
|
|
1666
|
+
log(`\nlog written to log.json\n`);
|
|
1667
|
+
writeFileSync(path.resolve(folder, "log.json"), JSON.stringify(data?.importResults, null, 2));
|
|
1666
1668
|
// log(" " + files?.flat().join("\n "));
|
|
1667
1669
|
log(`\n----------------SUMMARY-----------------\n\n\n`);
|
|
1668
1670
|
})
|