@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,533 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "account created",
5
- "isFirstEvent": true,
6
- "properties": {
7
- "signup_source": [
8
- "organic",
9
- "google_shopping",
10
- "tiktok",
11
- "seller_referral",
12
- "email_campaign",
13
- "word_of_mouth"
14
- ]
15
- }
16
- },
17
- {
18
- "event": "item searched",
19
- "weight": 8,
20
- "properties": {
21
- "search_query": [
22
- "laptop",
23
- "vintage jacket",
24
- "sneakers",
25
- "headphones",
26
- "phone case",
27
- "gaming console",
28
- "watch",
29
- "sunglasses",
30
- "backpack",
31
- "camera"
32
- ],
33
- "results_count": {
34
- "$range": [
35
- 7,
36
- 41
37
- ]
38
- },
39
- "sort_by": [
40
- "relevance",
41
- "price_low",
42
- "price_high",
43
- "newest",
44
- "best_selling"
45
- ]
46
- }
47
- },
48
- {
49
- "event": "item viewed",
50
- "weight": 7,
51
- "properties": {
52
- "listing_id": {
53
- "$type": "string"
54
- },
55
- "item_price": {
56
- "$range": [
57
- 98,
58
- 393
59
- ]
60
- },
61
- "condition": [
62
- "new",
63
- "like_new",
64
- "good",
65
- "fair"
66
- ],
67
- "seller_rating": [
68
- 2
69
- ],
70
- "photos_count": [
71
- 7,
72
- 6,
73
- 3
74
- ]
75
- }
76
- },
77
- {
78
- "event": "add to cart",
79
- "weight": 5,
80
- "properties": {
81
- "listing_id": {
82
- "$type": "string"
83
- },
84
- "item_price": {
85
- "$range": [
86
- 102,
87
- 399
88
- ]
89
- },
90
- "quantity": {
91
- "$range": [
92
- 2,
93
- 4
94
- ]
95
- }
96
- }
97
- },
98
- {
99
- "event": "purchase completed",
100
- "weight": 3,
101
- "properties": {
102
- "listing_id": {
103
- "$type": "string"
104
- },
105
- "total_amount": {
106
- "$range": [
107
- 102,
108
- 406
109
- ]
110
- },
111
- "item_count": {
112
- "$range": [
113
- 2,
114
- 4
115
- ]
116
- },
117
- "payment_method": [
118
- "credit_card",
119
- "paypal",
120
- "apple_pay",
121
- "debit"
122
- ],
123
- "shipping_method": [
124
- "standard",
125
- "express",
126
- "pickup"
127
- ],
128
- "is_whale_purchase": [
129
- false
130
- ]
131
- }
132
- },
133
- {
134
- "event": "listing created",
135
- "weight": 4,
136
- "properties": {
137
- "listing_id": {
138
- "$type": "string"
139
- },
140
- "store_id": {
141
- "$type": "string"
142
- },
143
- "asking_price": {
144
- "$range": [
145
- 104,
146
- 394
147
- ]
148
- },
149
- "condition": [
150
- "new",
151
- "like_new",
152
- "good",
153
- "fair"
154
- ],
155
- "listing_fee": {
156
- "$range": [
157
- 10,
158
- 23
159
- ]
160
- },
161
- "fee_change": [
162
- "none"
163
- ]
164
- }
165
- },
166
- {
167
- "event": "listing updated",
168
- "weight": 3,
169
- "properties": {
170
- "listing_id": {
171
- "$type": "string"
172
- },
173
- "field_updated": [
174
- "price",
175
- "description",
176
- "photos",
177
- "condition",
178
- "shipping"
179
- ],
180
- "price_change_pct": {
181
- "$range": [
182
- -20,
183
- 24
184
- ]
185
- }
186
- }
187
- },
188
- {
189
- "event": "offer received",
190
- "weight": 3,
191
- "properties": {
192
- "listing_id": {
193
- "$type": "string"
194
- },
195
- "offer_amount": {
196
- "$range": [
197
- 81,
198
- 325
199
- ]
200
- },
201
- "offer_pct_of_asking": {
202
- "$range": [
203
- 59,
204
- 92
205
- ]
206
- }
207
- }
208
- },
209
- {
210
- "event": "offer accepted",
211
- "weight": 2,
212
- "properties": {
213
- "listing_id": {
214
- "$type": "string"
215
- },
216
- "final_price": {
217
- "$range": [
218
- 100,
219
- 395
220
- ]
221
- },
222
- "negotiation_rounds": {
223
- "$range": [
224
- 2,
225
- 4
226
- ]
227
- },
228
- "response_time_hours": [
229
- 35,
230
- 13,
231
- 10,
232
- 36
233
- ]
234
- }
235
- },
236
- {
237
- "event": "review submitted",
238
- "weight": 2,
239
- "properties": {
240
- "listing_id": {
241
- "$type": "string"
242
- },
243
- "rating": [
244
- 4,
245
- 3,
246
- 2
247
- ],
248
- "review_length": {
249
- "$range": [
250
- 55,
251
- 246
252
- ]
253
- },
254
- "is_verified_purchase": [
255
- true,
256
- false
257
- ]
258
- }
259
- },
260
- {
261
- "event": "seller rated",
262
- "weight": 2,
263
- "properties": {
264
- "store_id": {
265
- "$type": "string"
266
- },
267
- "seller_rating": [
268
- 2,
269
- 4
270
- ],
271
- "would_buy_again": [
272
- true,
273
- false
274
- ]
275
- }
276
- },
277
- {
278
- "event": "message sent",
279
- "weight": 5,
280
- "properties": {
281
- "message_type": [
282
- "inquiry",
283
- "negotiation",
284
- "shipping_question",
285
- "complaint",
286
- "thank_you"
287
- ],
288
- "recipient_type": [
289
- "seller",
290
- "buyer",
291
- "support"
292
- ],
293
- "response_time_hours": [
294
- 12,
295
- 11,
296
- 10,
297
- 34,
298
- 35
299
- ]
300
- }
301
- },
302
- {
303
- "event": "shipping updated",
304
- "weight": 3,
305
- "properties": {
306
- "status": [
307
- "label_created",
308
- "in_transit",
309
- "out_for_delivery",
310
- "delivered"
311
- ],
312
- "carrier": [
313
- "usps",
314
- "ups",
315
- "fedex",
316
- "dhl"
317
- ],
318
- "tracking_viewed": [
319
- true,
320
- false
321
- ]
322
- }
323
- },
324
- {
325
- "event": "refund requested",
326
- "properties": {
327
- "reason": [
328
- "not_as_described",
329
- "damaged",
330
- "wrong_item",
331
- "changed_mind",
332
- "late_delivery"
333
- ],
334
- "refund_amount": {
335
- "$range": [
336
- 61,
337
- 242
338
- ]
339
- },
340
- "resolution_status": [
341
- "pending",
342
- "approved",
343
- "denied"
344
- ]
345
- }
346
- },
347
- {
348
- "event": "notification received",
349
- "weight": 6,
350
- "properties": {
351
- "notification_type": [
352
- "price_drop",
353
- "new_offer",
354
- "shipping_update",
355
- "message_received",
356
- "sale_reminder"
357
- ],
358
- "channel": [
359
- "push",
360
- "email",
361
- "sms"
362
- ],
363
- "opened": [
364
- true,
365
- false
366
- ]
367
- }
368
- },
369
- {
370
- "event": "profile updated",
371
- "weight": 2,
372
- "properties": {
373
- "field_updated": [
374
- "address",
375
- "payment_method",
376
- "profile_photo",
377
- "bio",
378
- "phone",
379
- "store_description"
380
- ]
381
- }
382
- },
383
- {
384
- "event": "app session",
385
- "weight": 8,
386
- "properties": {
387
- "session_duration_sec": {
388
- "$range": [
389
- 310,
390
- 1498
391
- ]
392
- },
393
- "pages_viewed": [
394
- 4,
395
- 13,
396
- 5
397
- ]
398
- }
399
- },
400
- {
401
- "event": "account deactivated",
402
- "isChurnEvent": true,
403
- "returnLikelihood": 0.15,
404
- "isStrictEvent": true,
405
- "properties": {
406
- "reason": [
407
- "low_sales",
408
- "high_fees",
409
- "found_alternative",
410
- "bad_experience",
411
- "no_longer_needed"
412
- ]
413
- }
414
- }
415
- ],
416
- "funnels": [
417
- {
418
- "sequence": [
419
- "account created",
420
- "item searched",
421
- "item viewed",
422
- "add to cart"
423
- ],
424
- "name": "Buyer Onboarding",
425
- "isFirstFunnel": true,
426
- "conversionRate": 40,
427
- "timeToConvert": 72,
428
- "weight": 3
429
- },
430
- {
431
- "sequence": [
432
- "item searched",
433
- "item viewed",
434
- "add to cart",
435
- "purchase completed"
436
- ],
437
- "name": "Browse to Purchase",
438
- "conversionRate": 30,
439
- "timeToConvert": 48,
440
- "weight": 5
441
- },
442
- {
443
- "sequence": [
444
- "listing created",
445
- "listing updated",
446
- "offer received",
447
- "offer accepted"
448
- ],
449
- "name": "Seller Listing Flow",
450
- "conversionRate": 25,
451
- "timeToConvert": 168,
452
- "weight": 3
453
- },
454
- {
455
- "sequence": [
456
- "offer received",
457
- "message sent",
458
- "offer accepted"
459
- ],
460
- "name": "Offer Negotiation",
461
- "conversionRate": 35,
462
- "timeToConvert": 72,
463
- "weight": 2
464
- },
465
- {
466
- "sequence": [
467
- "purchase completed",
468
- "shipping updated",
469
- "review submitted"
470
- ],
471
- "name": "Review After Purchase",
472
- "conversionRate": 20,
473
- "timeToConvert": 336,
474
- "weight": 2
475
- }
476
- ],
477
- "superProps": {
478
- "Platform": [
479
- "ios",
480
- "android",
481
- "web"
482
- ],
483
- "category": [
484
- "electronics",
485
- "clothing",
486
- "home_garden",
487
- "collectibles",
488
- "sports",
489
- "toys",
490
- "automotive"
491
- ]
492
- },
493
- "userProps": {
494
- "user_type": [
495
- "buyer"
496
- ],
497
- "segment": [
498
- "window_shopper"
499
- ],
500
- "seller_rating": {
501
- "$range": [
502
- 1,
503
- 4
504
- ]
505
- },
506
- "total_transactions": [
507
- 0
508
- ],
509
- "response_time_hours": {
510
- "$range": [
511
- 7,
512
- 38
513
- ]
514
- },
515
- "store_name": [
516
- "none"
517
- ]
518
- },
519
- "scdProps": {
520
- "seller_tier": {
521
- "type": "user",
522
- "frequency": "month",
523
- "timing": "fuzzy",
524
- "max": 8,
525
- "values": [
526
- "new",
527
- "verified",
528
- "power",
529
- "featured"
530
- ]
531
- }
532
- }
533
- }