@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,485 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "account created",
5
- "isFirstEvent": true,
6
- "properties": {
7
- "signup_source": [
8
- "web",
9
- "mobile",
10
- "agent_referral",
11
- "partner"
12
- ],
13
- "account_type": [
14
- "individual",
15
- "family",
16
- "business"
17
- ]
18
- }
19
- },
20
- {
21
- "event": "page viewed",
22
- "weight": 10,
23
- "properties": {
24
- "page_name": [
25
- "home",
26
- "quotes",
27
- "coverage_options",
28
- "claims",
29
- "faq",
30
- "profile",
31
- "payment",
32
- "documents"
33
- ],
34
- "referrer": [
35
- "direct",
36
- "google",
37
- "email",
38
- "social_media"
39
- ]
40
- }
41
- },
42
- {
43
- "event": "quote requested",
44
- "weight": 5,
45
- "properties": {
46
- "coverage_level": [
47
- "basic",
48
- "standard",
49
- "premium"
50
- ],
51
- "deductible": {
52
- "$range": [
53
- 443,
54
- 4473
55
- ]
56
- }
57
- }
58
- },
59
- {
60
- "event": "quote received",
61
- "weight": 4,
62
- "properties": {
63
- "monthly_premium": {
64
- "$range": [
65
- 164,
66
- 651
67
- ]
68
- },
69
- "coverage_amount": {
70
- "$range": [
71
- 79151,
72
- 430388
73
- ]
74
- },
75
- "quote_comparison_count": [
76
- 2,
77
- 4
78
- ]
79
- }
80
- },
81
- {
82
- "event": "application started",
83
- "weight": 4,
84
- "properties": {
85
- "coverage_level": [
86
- "basic",
87
- "standard",
88
- "premium"
89
- ],
90
- "estimated_premium": {
91
- "$range": [
92
- 175,
93
- 646
94
- ]
95
- }
96
- }
97
- },
98
- {
99
- "event": "application step completed",
100
- "weight": 6,
101
- "properties": {
102
- "step_name": [
103
- "personal_info",
104
- "coverage_selection",
105
- "medical_history",
106
- "vehicle_info",
107
- "beneficiary",
108
- "review"
109
- ],
110
- "step_number": {
111
- "$range": [
112
- 1,
113
- 5
114
- ]
115
- },
116
- "time_on_step_sec": {
117
- "$range": [
118
- 121,
119
- 491
120
- ]
121
- }
122
- }
123
- },
124
- {
125
- "event": "document uploaded",
126
- "weight": 3,
127
- "properties": {
128
- "document_type": [
129
- "drivers_license",
130
- "proof_of_address",
131
- "vehicle_registration",
132
- "medical_records",
133
- "property_photos"
134
- ],
135
- "file_size_kb": {
136
- "$range": [
137
- 552,
138
- 4345
139
- ]
140
- }
141
- }
142
- },
143
- {
144
- "event": "application submitted",
145
- "weight": 3,
146
- "properties": {
147
- "documents_attached": [
148
- 4
149
- ],
150
- "application_time_min": {
151
- "$range": [
152
- 17,
153
- 47
154
- ]
155
- }
156
- }
157
- },
158
- {
159
- "event": "application approved",
160
- "weight": 2,
161
- "properties": {
162
- "approved_premium": {
163
- "$range": [
164
- 130,
165
- 648
166
- ]
167
- },
168
- "approval_time_hours": {
169
- "$range": [
170
- 8,
171
- 61
172
- ]
173
- }
174
- }
175
- },
176
- {
177
- "event": "policy activated",
178
- "weight": 2,
179
- "properties": {
180
- "policy_term_months": [
181
- 6,
182
- 12,
183
- 24
184
- ],
185
- "effective_date_offset_days": [
186
- 10,
187
- 23,
188
- 21,
189
- 22,
190
- 19,
191
- 14,
192
- 18
193
- ]
194
- }
195
- },
196
- {
197
- "event": "claim filed",
198
- "weight": 2,
199
- "properties": {
200
- "claim_type": [
201
- "collision",
202
- "theft",
203
- "water_damage",
204
- "fire",
205
- "medical",
206
- "liability"
207
- ],
208
- "estimated_amount": {
209
- "$range": [
210
- 5885,
211
- 43341
212
- ]
213
- }
214
- }
215
- },
216
- {
217
- "event": "claim status checked",
218
- "weight": 4,
219
- "properties": {
220
- "claim_status": [
221
- "submitted",
222
- "under_review",
223
- "approved",
224
- "denied",
225
- "payment_pending"
226
- ],
227
- "days_since_filed": [
228
- 48,
229
- 20,
230
- 42,
231
- 12,
232
- 35,
233
- 27,
234
- 47,
235
- 21
236
- ]
237
- }
238
- },
239
- {
240
- "event": "payment made",
241
- "weight": 5,
242
- "properties": {
243
- "payment_method": [
244
- "credit_card",
245
- "bank_transfer",
246
- "auto_pay",
247
- "check"
248
- ],
249
- "amount": {
250
- "$range": [
251
- 181,
252
- 677
253
- ]
254
- },
255
- "payment_status": [
256
- "success",
257
- "failed"
258
- ]
259
- }
260
- },
261
- {
262
- "event": "support ticket created",
263
- "weight": 4,
264
- "properties": {
265
- "issue_category": [
266
- "billing",
267
- "claims",
268
- "coverage",
269
- "technical",
270
- "policy_change"
271
- ],
272
- "priority": [
273
- "low",
274
- "medium",
275
- "high"
276
- ],
277
- "channel": [
278
- "chat",
279
- "phone",
280
- "email",
281
- "web_form"
282
- ],
283
- "pre_release_bug": [
284
- false
285
- ]
286
- }
287
- },
288
- {
289
- "event": "support ticket resolved",
290
- "weight": 3,
291
- "properties": {
292
- "resolution_type": [
293
- "self_service",
294
- "agent_assisted",
295
- "escalated",
296
- "auto_resolved"
297
- ],
298
- "satisfaction_score": [
299
- 3,
300
- 2,
301
- 4
302
- ],
303
- "resolution_time_hours": [
304
- 53,
305
- 50,
306
- 57,
307
- 52,
308
- 20,
309
- 54,
310
- 36,
311
- 17
312
- ]
313
- }
314
- },
315
- {
316
- "event": "coverage reviewed",
317
- "weight": 4,
318
- "properties": {
319
- "current_premium": {
320
- "$range": [
321
- 183,
322
- 666
323
- ]
324
- },
325
- "coverage_adequate": [
326
- true,
327
- false
328
- ]
329
- }
330
- },
331
- {
332
- "event": "profile updated",
333
- "weight": 2,
334
- "properties": {
335
- "field_updated": [
336
- "address",
337
- "phone",
338
- "email",
339
- "beneficiary",
340
- "payment_method",
341
- "vehicle_info"
342
- ]
343
- }
344
- },
345
- {
346
- "event": "renewal completed",
347
- "weight": 2,
348
- "properties": {
349
- "renewal_premium": {
350
- "$range": [
351
- 162,
352
- 651
353
- ]
354
- },
355
- "premium_change_pct": [
356
- 14,
357
- -4,
358
- 6
359
- ],
360
- "auto_renewed": [
361
- true,
362
- false
363
- ]
364
- }
365
- }
366
- ],
367
- "funnels": [
368
- {
369
- "sequence": [
370
- "account created",
371
- "page viewed",
372
- "quote requested"
373
- ],
374
- "name": "Onboarding",
375
- "isFirstFunnel": true,
376
- "conversionRate": 85,
377
- "timeToConvert": 0.5
378
- },
379
- {
380
- "sequence": [
381
- "application started",
382
- "application step completed",
383
- "document uploaded",
384
- "application submitted"
385
- ],
386
- "name": "Application Completion",
387
- "conversionRate": 60,
388
- "timeToConvert": 48,
389
- "weight": 4
390
- },
391
- {
392
- "sequence": [
393
- "application submitted",
394
- "application approved",
395
- "policy activated"
396
- ],
397
- "name": "Application Approval",
398
- "conversionRate": 70,
399
- "timeToConvert": 72,
400
- "weight": 3
401
- },
402
- {
403
- "sequence": [
404
- "claim filed",
405
- "claim status checked",
406
- "support ticket created"
407
- ],
408
- "name": "Claims Process",
409
- "conversionRate": 50,
410
- "timeToConvert": 24,
411
- "weight": 2
412
- },
413
- {
414
- "sequence": [
415
- "coverage reviewed",
416
- "payment made",
417
- "renewal completed"
418
- ],
419
- "name": "Policy Renewal",
420
- "conversionRate": 65,
421
- "timeToConvert": 72,
422
- "weight": 3
423
- }
424
- ],
425
- "superProps": {
426
- "Platform": [
427
- "web",
428
- "ios",
429
- "android"
430
- ],
431
- "insurance_type": [
432
- "auto",
433
- "home",
434
- "life",
435
- "health",
436
- "renters"
437
- ],
438
- "app_version": [
439
- "2.10"
440
- ]
441
- },
442
- "userProps": {
443
- "age_range": [
444
- "18-25",
445
- "26-35",
446
- "36-45",
447
- "46-55",
448
- "56-65",
449
- "65+"
450
- ],
451
- "risk_profile": [
452
- "low",
453
- "medium",
454
- "high"
455
- ],
456
- "policy_count": [
457
- 3
458
- ],
459
- "lifetime_premium": {
460
- "$range": [
461
- 8131,
462
- 43291
463
- ]
464
- },
465
- "preferred_contact": [
466
- "email",
467
- "phone",
468
- "app_notification"
469
- ]
470
- },
471
- "scdProps": {
472
- "policy_status": {
473
- "type": "user",
474
- "frequency": "month",
475
- "timing": "fuzzy",
476
- "max": 8,
477
- "values": [
478
- "pending",
479
- "active",
480
- "lapsed",
481
- "renewed"
482
- ]
483
- }
484
- }
485
- }