@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,527 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "account created",
5
- "isFirstEvent": true,
6
- "properties": {
7
- "signup_method": [
8
- "email",
9
- "google",
10
- "apple",
11
- "facebook"
12
- ]
13
- }
14
- },
15
- {
16
- "event": "property search",
17
- "weight": 10,
18
- "properties": {
19
- "location": [
20
- "Manhattan",
21
- "Brooklyn",
22
- "Austin",
23
- "Miami",
24
- "San Francisco",
25
- "Denver",
26
- "Seattle",
27
- "Chicago",
28
- "Nashville",
29
- "Portland"
30
- ],
31
- "price_range_min": {
32
- "$range": [
33
- 172706,
34
- 434774
35
- ]
36
- },
37
- "price_range_max": {
38
- "$range": [
39
- 586384,
40
- 1735904
41
- ]
42
- },
43
- "bedrooms": [
44
- 1,
45
- 2,
46
- 3,
47
- 4,
48
- 5
49
- ],
50
- "property_type": [
51
- "Single Family",
52
- "Condo",
53
- "Townhouse",
54
- "Multi-Family"
55
- ]
56
- }
57
- },
58
- {
59
- "event": "property viewed",
60
- "weight": 12,
61
- "properties": {
62
- "listing_id": {
63
- "$type": "string"
64
- },
65
- "listing_price": {
66
- "$range": [
67
- 384906,
68
- 1263544
69
- ]
70
- },
71
- "property_type": [
72
- "Single Family",
73
- "Condo",
74
- "Townhouse",
75
- "Multi-Family"
76
- ],
77
- "bedrooms": [
78
- 1,
79
- 2,
80
- 3,
81
- 4,
82
- 5
83
- ],
84
- "square_feet": {
85
- "$range": [
86
- 1178,
87
- 4404
88
- ]
89
- },
90
- "spring_season": [
91
- false
92
- ],
93
- "luxury": [
94
- false
95
- ]
96
- }
97
- },
98
- {
99
- "event": "property saved",
100
- "weight": 5,
101
- "properties": {
102
- "listing_id": {
103
- "$type": "string"
104
- },
105
- "listing_price": {
106
- "$range": [
107
- 355946,
108
- 1235410
109
- ]
110
- }
111
- }
112
- },
113
- {
114
- "event": "saved search created",
115
- "weight": 3,
116
- "properties": {
117
- "location": [
118
- "Manhattan",
119
- "Brooklyn",
120
- "Austin",
121
- "Miami",
122
- "San Francisco",
123
- "Denver",
124
- "Seattle",
125
- "Chicago",
126
- "Nashville",
127
- "Portland"
128
- ],
129
- "criteria_count": [
130
- 7,
131
- 3,
132
- 6,
133
- 5,
134
- 4
135
- ]
136
- }
137
- },
138
- {
139
- "event": "virtual tour",
140
- "weight": 4,
141
- "properties": {
142
- "listing_id": {
143
- "$type": "string"
144
- },
145
- "duration_mins": {
146
- "$range": [
147
- 12,
148
- 35
149
- ]
150
- }
151
- }
152
- },
153
- {
154
- "event": "in-person tour",
155
- "weight": 3,
156
- "properties": {
157
- "listing_id": {
158
- "$type": "string"
159
- },
160
- "agent_id": {
161
- "$type": "string"
162
- }
163
- }
164
- },
165
- {
166
- "event": "tour scheduled",
167
- "weight": 4,
168
- "properties": {
169
- "listing_id": {
170
- "$type": "string"
171
- },
172
- "agent_id": {
173
- "$type": "string"
174
- },
175
- "spring_season": [
176
- false
177
- ]
178
- }
179
- },
180
- {
181
- "event": "mortgage pre-approval",
182
- "weight": 2,
183
- "properties": {
184
- "lender": [
185
- "Chase",
186
- "Wells Fargo",
187
- "Bank of America",
188
- "Rocket Mortgage",
189
- "United Wholesale",
190
- "loanDepot"
191
- ],
192
- "approved_amount": {
193
- "$range": [
194
- 457192,
195
- 1233515
196
- ]
197
- },
198
- "mortgage_rate": {
199
- "$range": [
200
- 6,
201
- 7
202
- ]
203
- }
204
- }
205
- },
206
- {
207
- "event": "offer submitted",
208
- "weight": 2,
209
- "properties": {
210
- "listing_id": {
211
- "$type": "string"
212
- },
213
- "offer_price": {
214
- "$range": [
215
- 447569,
216
- 1195058
217
- ]
218
- },
219
- "listing_price": {
220
- "$range": [
221
- 458307,
222
- 1270588
223
- ]
224
- },
225
- "pre_approved": [
226
- false
227
- ],
228
- "spring_season": [
229
- false
230
- ],
231
- "dual_tour": [
232
- false
233
- ]
234
- }
235
- },
236
- {
237
- "event": "offer accepted",
238
- "properties": {
239
- "listing_id": {
240
- "$type": "string"
241
- },
242
- "final_price": {
243
- "$range": [
244
- 377749,
245
- 1260893
246
- ]
247
- }
248
- }
249
- },
250
- {
251
- "event": "offer rejected",
252
- "properties": {
253
- "listing_id": {
254
- "$type": "string"
255
- },
256
- "reason": [
257
- "price too low",
258
- "competing offer",
259
- "seller changed mind",
260
- "inspection issues",
261
- "financing fell through"
262
- ]
263
- }
264
- },
265
- {
266
- "event": "property listed",
267
- "weight": 3,
268
- "properties": {
269
- "listing_price": {
270
- "$range": [
271
- 411345,
272
- 1198589
273
- ]
274
- },
275
- "property_type": [
276
- "Single Family",
277
- "Condo",
278
- "Townhouse",
279
- "Multi-Family"
280
- ],
281
- "bedrooms": [
282
- 1,
283
- 2,
284
- 3,
285
- 4,
286
- 5
287
- ],
288
- "listing_status": [
289
- "active",
290
- "pending",
291
- "coming soon"
292
- ],
293
- "luxury": [
294
- false
295
- ],
296
- "premier_agent": [
297
- false
298
- ]
299
- }
300
- },
301
- {
302
- "event": "property sold",
303
- "properties": {
304
- "sale_price": {
305
- "$range": [
306
- 404205,
307
- 1253417
308
- ]
309
- },
310
- "days_on_market": {
311
- "$range": [
312
- 34,
313
- 145
314
- ]
315
- },
316
- "premier_agent": [
317
- false
318
- ]
319
- }
320
- },
321
- {
322
- "event": "agent contacted",
323
- "weight": 4,
324
- "properties": {
325
- "contact_method": [
326
- "phone",
327
- "email",
328
- "in-app message",
329
- "text"
330
- ]
331
- }
332
- },
333
- {
334
- "event": "open house attended",
335
- "weight": 2,
336
- "properties": {
337
- "listing_id": {
338
- "$type": "string"
339
- },
340
- "attendees": {
341
- "$range": [
342
- 6,
343
- 21
344
- ]
345
- }
346
- }
347
- },
348
- {
349
- "event": "review submitted",
350
- "weight": 2,
351
- "properties": {
352
- "rating": [
353
- 1,
354
- 2,
355
- 3,
356
- 4,
357
- 5
358
- ],
359
- "review_type": [
360
- "agent",
361
- "property",
362
- "platform"
363
- ]
364
- }
365
- }
366
- ],
367
- "funnels": [
368
- {
369
- "sequence": [
370
- "account created",
371
- "property search",
372
- "property viewed"
373
- ],
374
- "name": "Buyer Journey",
375
- "isFirstFunnel": true,
376
- "conversionRate": 80,
377
- "timeToConvert": 0.5
378
- },
379
- {
380
- "sequence": [
381
- "property viewed",
382
- "tour scheduled",
383
- "offer submitted"
384
- ],
385
- "name": "Tour Funnel",
386
- "conversionRate": 40,
387
- "timeToConvert": 24,
388
- "weight": 5
389
- },
390
- {
391
- "sequence": [
392
- "property listed",
393
- "open house attended",
394
- "property sold"
395
- ],
396
- "name": "Seller Funnel",
397
- "conversionRate": 35,
398
- "timeToConvert": 48,
399
- "weight": 3
400
- }
401
- ],
402
- "superProps": {
403
- "user_type": [
404
- "Buyer",
405
- "Agent",
406
- "Both"
407
- ],
408
- "preferred_location": [
409
- "Urban",
410
- "Suburban",
411
- "Rural"
412
- ],
413
- "property_preference": [
414
- "Single Family",
415
- "Condo",
416
- "Townhouse",
417
- "Multi-Family"
418
- ],
419
- "has_saved_search": [
420
- false
421
- ],
422
- "cold_lead": [
423
- false
424
- ]
425
- },
426
- "userProps": {
427
- "user_type": [
428
- "Buyer",
429
- "Agent",
430
- "Both"
431
- ],
432
- "preferred_location": [
433
- "Urban",
434
- "Suburban",
435
- "Rural"
436
- ],
437
- "property_preference": [
438
- "Single Family",
439
- "Condo",
440
- "Townhouse",
441
- "Multi-Family"
442
- ],
443
- "budget_max": {
444
- "$range": [
445
- 535381,
446
- 1709979
447
- ]
448
- },
449
- "agent_tier": [
450
- "Standard",
451
- "Premier"
452
- ],
453
- "total_properties_viewed": {
454
- "$range": [
455
- 18,
456
- 91
457
- ]
458
- },
459
- "pre_approval_status": [
460
- "none"
461
- ],
462
- "has_saved_search": [
463
- false
464
- ],
465
- "cold_lead": [
466
- false
467
- ]
468
- },
469
- "groupKeys": [
470
- {
471
- "key": "brokerage_id",
472
- "count": 200,
473
- "affectsEvents": [
474
- "property listed",
475
- "property sold",
476
- "agent contacted",
477
- "open house attended"
478
- ]
479
- }
480
- ],
481
- "groupProps": {
482
- "brokerage_id": {
483
- "brokerage_name": [
484
- "Compass",
485
- "RE/MAX",
486
- "Keller Williams",
487
- "Coldwell Banker",
488
- "Century 21",
489
- "Sotheby's",
490
- "eXp Realty",
491
- "Redfin"
492
- ],
493
- "agent_count": {
494
- "$range": [
495
- 42,
496
- 153
497
- ]
498
- },
499
- "region": [
500
- "Northeast",
501
- "Southeast",
502
- "Midwest",
503
- "Southwest",
504
- "West Coast",
505
- "Pacific Northwest"
506
- ],
507
- "avg_listing_price": {
508
- "$range": [
509
- 443419,
510
- 1256504
511
- ]
512
- }
513
- }
514
- },
515
- "scdProps": {
516
- "agent_tier": {
517
- "type": "user",
518
- "frequency": "month",
519
- "timing": "fuzzy",
520
- "max": 4,
521
- "values": [
522
- "Standard",
523
- "Premier"
524
- ]
525
- }
526
- }
527
- }