make-mp-data 3.0.3 → 3.0.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.
Files changed (70) hide show
  1. package/README.md +46 -0
  2. package/dungeons/array-of-object-lookup-schema.json +327 -0
  3. package/dungeons/array-of-object-lookup.js +29 -9
  4. package/dungeons/capstone/capstone-ic3.js +291 -0
  5. package/dungeons/capstone/capstone-ic4.js +598 -0
  6. package/dungeons/capstone/capstone-ic5.js +668 -0
  7. package/dungeons/capstone/generate-product-lookup.js +309 -0
  8. package/dungeons/ecommerce-schema.json +462 -0
  9. package/dungeons/{copilot.js → ecommerce.js} +79 -17
  10. package/dungeons/education-schema.json +2409 -0
  11. package/dungeons/education.js +226 -462
  12. package/dungeons/fintech-schema.json +14034 -0
  13. package/dungeons/fintech.js +134 -413
  14. package/dungeons/foobar-schema.json +403 -0
  15. package/dungeons/foobar.js +27 -4
  16. package/dungeons/food-delivery-schema.json +192 -0
  17. package/dungeons/food-delivery.js +602 -0
  18. package/dungeons/food-schema.json +1152 -0
  19. package/dungeons/food.js +173 -406
  20. package/dungeons/gaming-schema.json +1270 -0
  21. package/dungeons/gaming.js +182 -42
  22. package/dungeons/insurance-application-schema.json +204 -0
  23. package/dungeons/insurance-application.js +605 -0
  24. package/dungeons/media-schema.json +906 -0
  25. package/dungeons/media.js +250 -420
  26. package/dungeons/retention-cadence-schema.json +78 -0
  27. package/dungeons/retention-cadence.js +35 -1
  28. package/dungeons/rpg-schema.json +4526 -0
  29. package/dungeons/rpg.js +171 -429
  30. package/dungeons/sanity-schema.json +255 -0
  31. package/dungeons/sanity.js +21 -10
  32. package/dungeons/sass-schema.json +1291 -0
  33. package/dungeons/sass.js +241 -368
  34. package/dungeons/scd-schema.json +919 -0
  35. package/dungeons/scd.js +41 -13
  36. package/dungeons/simple-schema.json +608 -0
  37. package/dungeons/simple.js +52 -15
  38. package/dungeons/simplest-schema.json +1418 -0
  39. package/dungeons/simplest.js +392 -0
  40. package/dungeons/social-schema.json +1118 -0
  41. package/dungeons/social.js +150 -391
  42. package/dungeons/text-generation-schema.json +3096 -0
  43. package/dungeons/text-generation.js +71 -0
  44. package/index.js +8 -6
  45. package/lib/core/config-validator.js +28 -8
  46. package/lib/core/storage.js +5 -5
  47. package/lib/generators/events.js +4 -4
  48. package/lib/orchestrators/mixpanel-sender.js +16 -13
  49. package/lib/orchestrators/user-loop.js +14 -6
  50. package/lib/templates/soup-presets.js +188 -0
  51. package/lib/utils/utils.js +52 -6
  52. package/package.json +1 -1
  53. package/types.d.ts +20 -3
  54. package/dungeons/adspend.js +0 -130
  55. package/dungeons/anon.js +0 -128
  56. package/dungeons/benchmark-heavy.js +0 -240
  57. package/dungeons/benchmark-light.js +0 -140
  58. package/dungeons/big.js +0 -226
  59. package/dungeons/business.js +0 -391
  60. package/dungeons/complex.js +0 -428
  61. package/dungeons/experiments.js +0 -137
  62. package/dungeons/funnels.js +0 -309
  63. package/dungeons/mil.js +0 -323
  64. package/dungeons/mirror.js +0 -161
  65. package/dungeons/soup-test.js +0 -52
  66. package/dungeons/streaming.js +0 -372
  67. package/dungeons/strict-event-test.js +0 -30
  68. package/dungeons/student-teacher.js +0 -438
  69. package/dungeons/too-big-events.js +0 -203
  70. package/dungeons/user-agent.js +0 -209
@@ -1,13 +1,3 @@
1
- /**
2
- * This is the default configuration file for the data generator in SIMPLE mode
3
- * notice how the config object is structured, and see it's type definition in ./types.d.ts
4
- * feel free to modify this file to customize the data you generate
5
- * see helper functions in utils.js for more ways to generate data
6
- */
7
-
8
-
9
-
10
-
11
1
  import Chance from 'chance';
12
2
  let chance = new Chance();
13
3
  import dayjs from "dayjs";
@@ -20,9 +10,56 @@ const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Com
20
10
 
21
11
  const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
22
12
 
13
+ /**
14
+ * ═══════════════════════════════════════════════════════════════
15
+ * DATASET OVERVIEW
16
+ * ═══════════════════════════════════════════════════════════════
17
+ *
18
+ * Simple E-Commerce + Media App
19
+ * - 5,000 users over 100 days, ~500K events
20
+ * - Events: ad impressions/clicks, page views, video watching,
21
+ * item browsing/saving, cart, checkout, signup
22
+ * - Signup funnel with A/B experiment
23
+ * - Campaigns, location, browser, and device data enabled
24
+ *
25
+ * ═══════════════════════════════════════════════════════════════
26
+ * ANALYTICS HOOKS (3 patterns)
27
+ * ═══════════════════════════════════════════════════════════════
28
+ *
29
+ * 1. TEMPORAL IMPROVEMENT (event hook)
30
+ * After 15 days ago: checkout amounts 1.5x, watch times 1.5x.
31
+ * Before that: 33% of events are dropped (tagged _drop, filtered in everything).
32
+ *
33
+ * Mixpanel Report:
34
+ * - Insights > Line Chart: "checkout", AVG(amount) by Day
35
+ * Expected: visible 1.5x uplift in the last 15 days
36
+ * - Insights > Line Chart: Total event count by Day
37
+ * Expected: ~33% lower volume before 15 days ago, then step-up
38
+ *
39
+ * 2. CUSTOM THEME POWER BUYERS (everything hook)
40
+ * Users whose custom-theme events outnumber light or dark get
41
+ * all checkout events tripled with 2x amount and "50%OFF" coupon.
42
+ *
43
+ * Mixpanel Report:
44
+ * - Funnels: any multi-step funnel, breakdown by theme
45
+ * Expected: "custom" theme users show much higher checkout counts
46
+ * - Insights: "checkout", AVG(amount), breakdown by coupon
47
+ * Expected: "50%OFF" spike from power buyers
48
+ *
49
+ * 3. LOW-QUALITY VIDEO CHURN (everything hook)
50
+ * Users who watch more low-quality (480p/360p/240p) than high-quality
51
+ * video have a 50% chance of losing all events after their midpoint.
52
+ *
53
+ * Mixpanel Report:
54
+ * - Retention: breakdown by video quality
55
+ * Expected: low-quality watchers show ~50% drop-off from midpoint
56
+ * - Insights > Stacked Line: event count by quality
57
+ * Expected: low-quality cohort volume thins out after midpoint
58
+ */
59
+
23
60
  /** @type {import('../types').Dungeon} */
24
61
  const config = {
25
- token: "c63e5bca7d459fad276354ea9ddbaaeb",
62
+ token: "",
26
63
  seed: "simple is best",
27
64
  numDays: 100, //how many days worth1 of data
28
65
  numEvents: 500_000, //how many events
@@ -49,14 +86,14 @@ const config = {
49
86
  event: "ad impression",
50
87
  weight: 15,
51
88
  properties: {
52
- partner: pickAWinner(["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"]),
89
+ partner: ["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"],
53
90
  }
54
91
  },
55
92
  {
56
93
  event: "ad click",
57
94
  weight: 10,
58
95
  properties: {
59
- partner: pickAWinner(["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"]),
96
+ partner: ["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"],
60
97
  }
61
98
  },
62
99
  {
@@ -64,7 +101,7 @@ const config = {
64
101
  weight: 2,
65
102
  properties: {
66
103
  amount: weighNumRange(5, 500, .25),
67
- currency: pickAWinner(["USD", "CAD", "EUR", "BTC", "ETH", "JPY"], 0),
104
+ currency: ["USD", "CAD", "EUR", "BTC", "ETH", "JPY"],
68
105
  coupon: weighChoices(["none", "none", "none", "none", "10%OFF", "20%OFF", "10%OFF", "20%OFF", "30%OFF", "40%OFF", "50%OFF"]),
69
106
  numItems: weighNumRange(1, 10),
70
107
 
@@ -126,7 +163,7 @@ const config = {
126
163
  weight: 1,
127
164
  isFirstEvent: true,
128
165
  properties: {
129
- signupMethod: pickAWinner(["email", "google", "facebook", "twitter", "linkedin", "github"]),
166
+ signupMethod: ["email", "google", "facebook", "twitter", "linkedin", "github"],
130
167
  referral: weighChoices(["none", "none", "none", "friend", "ad", "ad", "ad", "friend", "friend", "friend", "friend"]),
131
168
  }
132
169
  },