@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,401 +0,0 @@
1
- {
2
- "events": [
3
- {
4
- "event": "profile created",
5
- "isFirstEvent": true,
6
- "properties": {
7
- "age_range": [
8
- "18-24",
9
- "25-29",
10
- "30-34",
11
- "35-39",
12
- "40+"
13
- ],
14
- "gender": [
15
- "Male",
16
- "Female",
17
- "Non-binary"
18
- ],
19
- "looking_for": [
20
- "Men",
21
- "Women",
22
- "Everyone"
23
- ],
24
- "valentines": [
25
- false
26
- ]
27
- }
28
- },
29
- {
30
- "event": "photo uploaded",
31
- "weight": 3,
32
- "properties": {
33
- "photo_number": [
34
- 3,
35
- 4
36
- ],
37
- "has_face": [
38
- true,
39
- false
40
- ]
41
- }
42
- },
43
- {
44
- "event": "bio updated",
45
- "weight": 2,
46
- "properties": {
47
- "bio_length": {
48
- "$range": [
49
- 84,
50
- 398
51
- ]
52
- }
53
- }
54
- },
55
- {
56
- "event": "prompt answered",
57
- "weight": 3,
58
- "properties": {
59
- "prompt_type": [
60
- "icebreaker",
61
- "opinion",
62
- "hypothetical",
63
- "personal",
64
- "creative"
65
- ],
66
- "answer_length": {
67
- "$range": [
68
- 51,
69
- 256
70
- ]
71
- }
72
- }
73
- },
74
- {
75
- "event": "swipe right",
76
- "weight": 10,
77
- "properties": {
78
- "is_super_like": [
79
- false,
80
- true
81
- ],
82
- "weekend_surge": [
83
- false
84
- ],
85
- "swipe_source": [
86
- "feed",
87
- "discover",
88
- "boost",
89
- "nearby"
90
- ]
91
- }
92
- },
93
- {
94
- "event": "swipe left",
95
- "weight": 8,
96
- "properties": {
97
- "swipe_source": [
98
- "feed",
99
- "discover",
100
- "boost",
101
- "nearby"
102
- ]
103
- }
104
- },
105
- {
106
- "event": "match received",
107
- "weight": 4,
108
- "properties": {
109
- "match_score": {
110
- "$range": [
111
- 58,
112
- 93
113
- ]
114
- },
115
- "complete_profile": [
116
- false
117
- ],
118
- "super_like_match": [
119
- false
120
- ],
121
- "premium_boost": [
122
- false
123
- ]
124
- }
125
- },
126
- {
127
- "event": "message sent",
128
- "weight": 6,
129
- "properties": {
130
- "message_length": {
131
- "$range": [
132
- 111,
133
- 402
134
- ]
135
- },
136
- "has_emoji": [
137
- false,
138
- true
139
- ],
140
- "response_time_mins": {
141
- "$range": [
142
- 271,
143
- 1138
144
- ]
145
- }
146
- }
147
- },
148
- {
149
- "event": "message received",
150
- "weight": 5,
151
- "properties": {
152
- "message_length": {
153
- "$range": [
154
- 97,
155
- 402
156
- ]
157
- }
158
- }
159
- },
160
- {
161
- "event": "phone number exchanged",
162
- "properties": {
163
- "exchange_method": [
164
- "in_chat",
165
- "voice_call",
166
- "video_call"
167
- ]
168
- }
169
- },
170
- {
171
- "event": "date scheduled",
172
- "properties": {
173
- "venue_type": [
174
- "coffee",
175
- "dinner",
176
- "drinks",
177
- "activity",
178
- "virtual"
179
- ],
180
- "complete_profile_power": [
181
- false
182
- ]
183
- }
184
- },
185
- {
186
- "event": "profile viewed",
187
- "weight": 5,
188
- "properties": {
189
- "viewer_source": [
190
- "feed",
191
- "discover",
192
- "liked_you",
193
- "nearby"
194
- ],
195
- "premium_boost": [
196
- false
197
- ]
198
- }
199
- },
200
- {
201
- "event": "premium upgrade",
202
- "properties": {
203
- "plan": [
204
- "Premium",
205
- "Elite"
206
- ],
207
- "price_usd": [
208
- 14.99,
209
- 29.99
210
- ],
211
- "valentines": [
212
- false
213
- ]
214
- }
215
- },
216
- {
217
- "event": "premium cancelled",
218
- "isStrictEvent": true,
219
- "properties": {
220
- "cancel_reason": [
221
- "found_someone",
222
- "too_expensive",
223
- "not_enough_matches",
224
- "bad_experience",
225
- "taking_a_break"
226
- ],
227
- "subscription_duration_days": {
228
- "$range": [
229
- 77,
230
- 284
231
- ]
232
- }
233
- }
234
- },
235
- {
236
- "event": "boost activated",
237
- "weight": 2,
238
- "properties": {
239
- "boost_type": [
240
- "standard",
241
- "super"
242
- ],
243
- "boost_duration_mins": [
244
- 15,
245
- 30,
246
- 60
247
- ]
248
- }
249
- },
250
- {
251
- "event": "report user",
252
- "isStrictEvent": true,
253
- "properties": {
254
- "report_reason": [
255
- "fake_profile",
256
- "inappropriate_photos",
257
- "harassment",
258
- "spam",
259
- "underage"
260
- ]
261
- }
262
- },
263
- {
264
- "event": "app opened",
265
- "weight": 8,
266
- "properties": {
267
- "session_duration_mins": [
268
- 38,
269
- 31,
270
- 34,
271
- 94,
272
- 32,
273
- 84,
274
- 36
275
- ],
276
- "ghosted": [
277
- false
278
- ]
279
- }
280
- }
281
- ],
282
- "funnels": [
283
- {
284
- "sequence": [
285
- "profile created",
286
- "photo uploaded",
287
- "swipe right"
288
- ],
289
- "name": "Onboarding",
290
- "isFirstFunnel": true,
291
- "conversionRate": 75,
292
- "timeToConvert": 1,
293
- "weight": 3
294
- },
295
- {
296
- "sequence": [
297
- "swipe right",
298
- "match received",
299
- "message sent"
300
- ],
301
- "name": "Match Flow",
302
- "conversionRate": 50,
303
- "timeToConvert": 24,
304
- "weight": 6
305
- },
306
- {
307
- "sequence": [
308
- "message sent",
309
- "phone number exchanged",
310
- "date scheduled"
311
- ],
312
- "name": "Date Funnel",
313
- "conversionRate": 25,
314
- "timeToConvert": 72,
315
- "weight": 3
316
- },
317
- {
318
- "sequence": [
319
- "app opened",
320
- "boost activated",
321
- "premium upgrade"
322
- ],
323
- "name": "Monetization",
324
- "conversionRate": 20,
325
- "timeToConvert": 48,
326
- "weight": 2
327
- }
328
- ],
329
- "superProps": {
330
- "subscription": [
331
- "Free",
332
- "Premium",
333
- "Elite"
334
- ],
335
- "platform": [
336
- "ios",
337
- "android"
338
- ]
339
- },
340
- "userProps": {
341
- "subscription": [
342
- "Free",
343
- "Premium",
344
- "Elite"
345
- ],
346
- "age_range": [
347
- "18-24",
348
- "25-29",
349
- "30-34",
350
- "35-39",
351
- "40+"
352
- ],
353
- "gender": [
354
- "Male",
355
- "Female",
356
- "Non-binary"
357
- ],
358
- "looking_for": [
359
- "Men",
360
- "Women",
361
- "Everyone"
362
- ],
363
- "photo_count": [
364
- 2
365
- ],
366
- "total_matches": {
367
- "$range": [
368
- 39,
369
- 160
370
- ]
371
- },
372
- "total_messages_sent": {
373
- "$range": [
374
- 111,
375
- 383
376
- ]
377
- },
378
- "profile_completeness": [
379
- "incomplete",
380
- "basic",
381
- "complete"
382
- ],
383
- "platform": [
384
- "ios",
385
- "android"
386
- ]
387
- },
388
- "scdProps": {
389
- "subscription_tier": {
390
- "type": "user",
391
- "frequency": "month",
392
- "timing": "fuzzy",
393
- "max": 6,
394
- "values": [
395
- "Free",
396
- "Premium",
397
- "Elite"
398
- ]
399
- }
400
- }
401
- }