@ak--47/dungeon-master 1.3.0 → 1.4.0

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 (98) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/dungeons/technical/array-of-object-lookup.js +0 -2
  3. package/dungeons/technical/hook-helpers-verify.js +89 -0
  4. package/dungeons/technical/identity-model-verify.js +47 -0
  5. package/dungeons/technical/pattern-aggregate-by-bin.js +41 -0
  6. package/dungeons/technical/pattern-attributed-by-source.js +42 -0
  7. package/dungeons/technical/pattern-frequency-by-frequency.js +40 -0
  8. package/dungeons/technical/pattern-funnel-frequency.js +54 -0
  9. package/dungeons/technical/pattern-ttc-by-segment.js +45 -0
  10. package/dungeons/technical/simple.js +3 -4
  11. package/dungeons/technical/simplest-schema.json +5 -0
  12. package/dungeons/technical/text-generation.js +1 -1
  13. package/dungeons/vertical/ai-platform.js +216 -164
  14. package/dungeons/vertical/community.js +74 -41
  15. package/dungeons/vertical/crypto.js +343 -233
  16. package/dungeons/vertical/dating.js +246 -292
  17. package/dungeons/vertical/devtools.js +179 -70
  18. package/dungeons/vertical/ecommerce.js +275 -122
  19. package/dungeons/vertical/education.js +345 -312
  20. package/dungeons/vertical/fintech.js +445 -314
  21. package/dungeons/vertical/fitness.js +199 -165
  22. package/dungeons/vertical/food-delivery.js +309 -330
  23. package/dungeons/vertical/gaming.js +387 -241
  24. package/dungeons/vertical/healthcare.js +149 -66
  25. package/dungeons/vertical/insurance-application.js +173 -75
  26. package/dungeons/vertical/logistics.js +107 -12
  27. package/dungeons/vertical/marketplace.js +171 -76
  28. package/dungeons/vertical/media.js +259 -402
  29. package/dungeons/vertical/real-estate.js +336 -318
  30. package/dungeons/vertical/sass.js +294 -288
  31. package/dungeons/vertical/social.js +289 -234
  32. package/dungeons/vertical/travel.js +66 -20
  33. package/index.js +17 -17
  34. package/lib/core/config-validator.js +226 -175
  35. package/lib/core/context.js +10 -24
  36. package/lib/core/storage.js +6 -1
  37. package/lib/generators/events.js +57 -104
  38. package/lib/generators/funnels.js +212 -93
  39. package/lib/generators/mirror.js +3 -2
  40. package/lib/generators/product-names.js +1 -1
  41. package/lib/generators/scd.js +2 -1
  42. package/lib/generators/text.js +1 -1
  43. package/lib/hook-helpers/_internal.js +23 -0
  44. package/lib/hook-helpers/cohort.js +124 -0
  45. package/lib/hook-helpers/identity.js +56 -0
  46. package/lib/hook-helpers/index.js +44 -0
  47. package/lib/hook-helpers/inject.js +99 -0
  48. package/lib/hook-helpers/mutate.js +151 -0
  49. package/lib/hook-helpers/timing.js +99 -0
  50. package/lib/hook-patterns/aggregate-per-user-by-bin.js +38 -0
  51. package/lib/hook-patterns/attributed-by-source.js +72 -0
  52. package/lib/hook-patterns/frequency-by-frequency.js +46 -0
  53. package/lib/hook-patterns/funnel-frequency-breakdown.js +73 -0
  54. package/lib/hook-patterns/index.js +14 -0
  55. package/lib/hook-patterns/time-to-convert-by-segment.js +41 -0
  56. package/lib/orchestrators/user-loop.js +143 -293
  57. package/lib/utils/utils.js +97 -52
  58. package/lib/verify/emulate-breakdown.js +281 -0
  59. package/lib/verify/index.js +12 -0
  60. package/lib/verify/verify-dungeon.js +61 -0
  61. package/package.json +6 -4
  62. package/scripts/smoke-test-all.mjs +162 -0
  63. package/scripts/verify-runner.mjs +72 -24
  64. package/types.d.ts +434 -225
  65. package/dungeons/technical/ad-spend-schema.json +0 -128
  66. package/dungeons/technical/anonymous-users-schema.json +0 -92
  67. package/dungeons/technical/array-of-object-lookup-schema.json +0 -191
  68. package/dungeons/technical/experiments-schema.json +0 -203
  69. package/dungeons/technical/foobar-schema.json +0 -362
  70. package/dungeons/technical/group-analytics-schema.json +0 -241
  71. package/dungeons/technical/mirror-strategies-schema.json +0 -84
  72. package/dungeons/technical/nested-objects-schema.json +0 -145
  73. package/dungeons/technical/retention-cadence-schema.json +0 -37
  74. package/dungeons/technical/sanity-schema.json +0 -185
  75. package/dungeons/technical/scale-test-schema.json +0 -70
  76. package/dungeons/technical/scd-schema.json +0 -467
  77. package/dungeons/technical/simple-schema.json +0 -362
  78. package/dungeons/technical/text-generation-schema.json +0 -1062
  79. package/dungeons/vertical/ai-platform-schema.json +0 -617
  80. package/dungeons/vertical/community-schema.json +0 -579
  81. package/dungeons/vertical/crypto-schema.json +0 -546
  82. package/dungeons/vertical/dating-schema.json +0 -401
  83. package/dungeons/vertical/devtools-schema.json +0 -601
  84. package/dungeons/vertical/ecommerce-schema.json +0 -604
  85. package/dungeons/vertical/education-schema.json +0 -5686
  86. package/dungeons/vertical/fintech-schema.json +0 -630
  87. package/dungeons/vertical/fitness-schema.json +0 -530
  88. package/dungeons/vertical/food-delivery-schema.json +0 -36728
  89. package/dungeons/vertical/gaming-schema.json +0 -2703
  90. package/dungeons/vertical/healthcare-schema.json +0 -549
  91. package/dungeons/vertical/insurance-application-schema.json +0 -485
  92. package/dungeons/vertical/logistics-schema.json +0 -574
  93. package/dungeons/vertical/marketplace-schema.json +0 -533
  94. package/dungeons/vertical/media-schema.json +0 -4749
  95. package/dungeons/vertical/real-estate-schema.json +0 -527
  96. package/dungeons/vertical/sass-schema.json +0 -3128
  97. package/dungeons/vertical/social-schema.json +0 -620
  98. package/dungeons/vertical/travel-schema.json +0 -580
@@ -1,467 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "checkout",
5
- "weight": 2,
6
- "properties": {
7
- "amount": {
8
- "$range": [
9
- 104,
10
- 391
11
- ]
12
- },
13
- "currency": [
14
- "USD",
15
- "CAD",
16
- "EUR",
17
- "BTC",
18
- "ETH",
19
- "JPY"
20
- ],
21
- "coupon": [
22
- "none",
23
- "10%OFF",
24
- "20%OFF",
25
- "30%OFF",
26
- "40%OFF",
27
- "50%OFF"
28
- ],
29
- "numItems": {
30
- "$range": [
31
- 2,
32
- 9
33
- ]
34
- },
35
- "discount_applied": [
36
- false
37
- ]
38
- }
39
- },
40
- {
41
- "event": "add to cart",
42
- "weight": 4,
43
- "properties": {
44
- "amount": {
45
- "$range": [
46
- 110,
47
- 395
48
- ]
49
- },
50
- "rating": {
51
- "$range": [
52
- 1,
53
- 5
54
- ]
55
- },
56
- "reviews": {
57
- "$range": [
58
- 1,
59
- 35
60
- ]
61
- },
62
- "isFeaturedItem": [
63
- true,
64
- false
65
- ],
66
- "itemCategory": [
67
- "Pet",
68
- "Art",
69
- "Handmade",
70
- "Garden",
71
- "Beauty",
72
- "Baby",
73
- "Movies"
74
- ],
75
- "dateItemListed": {
76
- "$type": "string"
77
- }
78
- }
79
- },
80
- {
81
- "event": "page view",
82
- "weight": 10,
83
- "properties": {
84
- "page": [
85
- "/",
86
- "/help",
87
- "/account",
88
- "/watch",
89
- "/listen",
90
- "/product",
91
- "/people",
92
- "/peace"
93
- ],
94
- "utm_source": [
95
- "$organic",
96
- "google",
97
- "facebook",
98
- "twitter",
99
- "linkedin"
100
- ]
101
- }
102
- },
103
- {
104
- "event": "watch video",
105
- "weight": 8,
106
- "properties": {
107
- "videoCategory": [
108
- "cooking",
109
- "inspirational",
110
- "music",
111
- "sports",
112
- "educational",
113
- "DIY"
114
- ],
115
- "isFeaturedItem": [
116
- true,
117
- false
118
- ],
119
- "watchTimeSec": {
120
- "$range": [
121
- 131,
122
- 467
123
- ]
124
- },
125
- "quality": [
126
- "2160p",
127
- "1440p",
128
- "1080p",
129
- "720p",
130
- "480p",
131
- "360p",
132
- "240p"
133
- ],
134
- "format": [
135
- "mp4",
136
- "avi",
137
- "mov",
138
- "mpg"
139
- ],
140
- "uploader_id": {
141
- "$type": "string"
142
- },
143
- "is_weekend": [
144
- false
145
- ]
146
- }
147
- },
148
- {
149
- "event": "view item",
150
- "weight": 8,
151
- "properties": {
152
- "isFeaturedItem": [
153
- true,
154
- false
155
- ],
156
- "itemCategory": [
157
- "Handmade",
158
- "Baby",
159
- "Wedding",
160
- "Electronics",
161
- "Industrial",
162
- "Pet"
163
- ],
164
- "dateItemListed": {
165
- "$type": "string"
166
- }
167
- }
168
- },
169
- {
170
- "event": "save item",
171
- "weight": 5,
172
- "properties": {
173
- "isFeaturedItem": [
174
- true,
175
- false
176
- ],
177
- "itemCategory": [
178
- "Games",
179
- "Electronics",
180
- "Books",
181
- "Entertainment",
182
- "Outdoors",
183
- "Pet",
184
- "Computers"
185
- ],
186
- "dateItemListed": {
187
- "$type": "string"
188
- }
189
- }
190
- },
191
- {
192
- "event": "sign up",
193
- "isFirstEvent": true,
194
- "properties": {
195
- "variants": [
196
- "A",
197
- "B",
198
- "C",
199
- "Control"
200
- ],
201
- "flows": [
202
- "new",
203
- "existing",
204
- "loyal",
205
- "churned"
206
- ],
207
- "flags": [
208
- "on",
209
- "off"
210
- ],
211
- "experiment_ids": [
212
- "1234",
213
- "5678",
214
- "9012",
215
- "3456",
216
- "7890"
217
- ],
218
- "multiVariate": [
219
- true,
220
- false
221
- ]
222
- }
223
- },
224
- {
225
- "event": "cart_abandoned",
226
- "isStrictEvent": true,
227
- "properties": {
228
- "amount": {
229
- "$range": [
230
- 114,
231
- 397
232
- ]
233
- }
234
- }
235
- }
236
- ],
237
- "superProps": {
238
- "platform": [
239
- "web",
240
- "mobile",
241
- "kiosk",
242
- "smartTV"
243
- ],
244
- "currentTheme": [
245
- "light",
246
- "dark",
247
- "custom"
248
- ]
249
- },
250
- "userProps": {
251
- "title": {
252
- "$type": "string"
253
- },
254
- "luckyNumber": {
255
- "$range": [
256
- 115,
257
- 326
258
- ]
259
- },
260
- "spiritAnimal": [
261
- "duck",
262
- "dog",
263
- "otter",
264
- "penguin",
265
- "cat",
266
- "elephant",
267
- "lion",
268
- "cheetah",
269
- "giraffe",
270
- "zebra",
271
- "rhino",
272
- "hippo",
273
- "whale",
274
- "dolphin",
275
- "shark",
276
- "octopus",
277
- "squid",
278
- "jellyfish",
279
- "starfish",
280
- "seahorse",
281
- "crab",
282
- "lobster",
283
- "shrimp",
284
- "clam",
285
- "snail",
286
- "slug",
287
- "butterfly",
288
- "moth",
289
- "bee",
290
- "wasp",
291
- "ant",
292
- "beetle",
293
- "ladybug",
294
- "caterpillar",
295
- "centipede",
296
- "millipede",
297
- "scorpion",
298
- "spider",
299
- "tarantula",
300
- "tick",
301
- "mite",
302
- "mosquito",
303
- "fly",
304
- "dragonfly",
305
- "damselfly",
306
- "grasshopper",
307
- "cricket",
308
- "locust",
309
- "mantis",
310
- "cockroach",
311
- "termite",
312
- "praying mantis",
313
- "walking stick",
314
- "stick bug",
315
- "leaf insect",
316
- "lacewing",
317
- "aphid",
318
- "cicada",
319
- "thrips",
320
- "psyllid",
321
- "scale insect",
322
- "whitefly",
323
- "mealybug",
324
- "planthopper",
325
- "leafhopper",
326
- "treehopper",
327
- "flea",
328
- "louse",
329
- "bedbug",
330
- "flea beetle",
331
- "weevil",
332
- "longhorn beetle",
333
- "leaf beetle",
334
- "tiger beetle",
335
- "ground beetle",
336
- "lady beetle",
337
- "firefly",
338
- "click beetle",
339
- "rove beetle",
340
- "scarab beetle",
341
- "dung beetle",
342
- "stag beetle",
343
- "rhinoceros beetle",
344
- "hercules beetle",
345
- "goliath beetle",
346
- "jewel beetle",
347
- "tortoise beetle"
348
- ],
349
- "spendTier": [
350
- "budget"
351
- ]
352
- },
353
- "groupKeys": [
354
- {
355
- "key": "company_id",
356
- "count": 1000
357
- }
358
- ],
359
- "groupProps": {
360
- "company_id": {
361
- "name": {
362
- "$type": "string"
363
- },
364
- "email": [
365
- "CSM: AK",
366
- "CSM: Deepak",
367
- "CSM: Hans",
368
- "CSM: Justin",
369
- "CSM: Kaan",
370
- "CSM: Katie",
371
- "CSM: Neha",
372
- "CSM: Rajiv",
373
- "CSM: Somya",
374
- "CSM: Tony"
375
- ],
376
- "industry": [
377
- "technology",
378
- "education",
379
- "finance",
380
- "healthcare",
381
- "retail",
382
- "manufacturing",
383
- "transportation",
384
- "entertainment",
385
- "media",
386
- "real estate",
387
- "construction",
388
- "hospitality",
389
- "energy",
390
- "utilities",
391
- "agriculture",
392
- "other"
393
- ],
394
- "segment": [
395
- "SMB",
396
- "Mid Market",
397
- "Enterprise"
398
- ],
399
- "# active users": [
400
- 17
401
- ]
402
- }
403
- },
404
- "scdProps": {
405
- "role": {
406
- "type": "user",
407
- "frequency": "week",
408
- "timing": "fuzzy",
409
- "max": 10,
410
- "values": [
411
- "admin",
412
- "collaborator",
413
- "user",
414
- "view only",
415
- "no access"
416
- ]
417
- },
418
- "NPS": {
419
- "type": "user",
420
- "frequency": "day",
421
- "timing": "fuzzy",
422
- "max": 10,
423
- "values": {
424
- "$range": [
425
- 1,
426
- 10
427
- ]
428
- }
429
- },
430
- "MRR": {
431
- "type": "company_id",
432
- "frequency": "month",
433
- "timing": "fixed",
434
- "max": 10,
435
- "values": {
436
- "$range": [
437
- 2240,
438
- 7836
439
- ]
440
- }
441
- },
442
- "AccountHealthScore": {
443
- "type": "company_id",
444
- "frequency": "week",
445
- "timing": "fixed",
446
- "max": 40,
447
- "values": {
448
- "$range": [
449
- 3,
450
- 8
451
- ]
452
- }
453
- },
454
- "plan": {
455
- "type": "company_id",
456
- "frequency": "month",
457
- "timing": "fixed",
458
- "max": 10,
459
- "values": [
460
- "free",
461
- "basic",
462
- "premium",
463
- "enterprise"
464
- ]
465
- }
466
- }
467
- }