@ak--47/dungeon-master 1.0.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 (66) hide show
  1. package/README.md +518 -0
  2. package/dungeons/array-of-object-lookup-schema.json +327 -0
  3. package/dungeons/array-of-object-lookup.js +220 -0
  4. package/dungeons/ecommerce-schema.json +462 -0
  5. package/dungeons/ecommerce.js +447 -0
  6. package/dungeons/education-schema.json +2409 -0
  7. package/dungeons/education.js +768 -0
  8. package/dungeons/fintech-schema.json +14034 -0
  9. package/dungeons/fintech.js +696 -0
  10. package/dungeons/foobar-schema.json +403 -0
  11. package/dungeons/foobar.js +296 -0
  12. package/dungeons/food-delivery-schema.json +192 -0
  13. package/dungeons/food-delivery.js +602 -0
  14. package/dungeons/food-schema.json +1152 -0
  15. package/dungeons/food.js +754 -0
  16. package/dungeons/gaming-schema.json +1270 -0
  17. package/dungeons/gaming.js +508 -0
  18. package/dungeons/insurance-application-schema.json +204 -0
  19. package/dungeons/insurance-application.js +605 -0
  20. package/dungeons/media-schema.json +906 -0
  21. package/dungeons/media.js +790 -0
  22. package/dungeons/retention-cadence-schema.json +78 -0
  23. package/dungeons/retention-cadence.js +244 -0
  24. package/dungeons/rpg-schema.json +4526 -0
  25. package/dungeons/rpg.js +919 -0
  26. package/dungeons/sanity-schema.json +255 -0
  27. package/dungeons/sanity.js +152 -0
  28. package/dungeons/sass-schema.json +1291 -0
  29. package/dungeons/sass.js +795 -0
  30. package/dungeons/scd-schema.json +919 -0
  31. package/dungeons/scd.js +277 -0
  32. package/dungeons/simple-schema.json +608 -0
  33. package/dungeons/simple.js +285 -0
  34. package/dungeons/simplest-schema.json +1418 -0
  35. package/dungeons/simplest.js +392 -0
  36. package/dungeons/social-schema.json +1118 -0
  37. package/dungeons/social.js +686 -0
  38. package/dungeons/text-generation-schema.json +3096 -0
  39. package/dungeons/text-generation.js +812 -0
  40. package/index.js +567 -0
  41. package/lib/core/config-validator.js +395 -0
  42. package/lib/core/context.js +204 -0
  43. package/lib/core/dungeon-loader.js +337 -0
  44. package/lib/core/storage.js +379 -0
  45. package/lib/generators/adspend.js +132 -0
  46. package/lib/generators/events.js +271 -0
  47. package/lib/generators/funnels.js +407 -0
  48. package/lib/generators/mirror.js +167 -0
  49. package/lib/generators/product-lookup.js +262 -0
  50. package/lib/generators/product-names.js +195 -0
  51. package/lib/generators/profiles.js +93 -0
  52. package/lib/generators/scd.js +124 -0
  53. package/lib/generators/text.js +1192 -0
  54. package/lib/orchestrators/mixpanel-sender.js +266 -0
  55. package/lib/orchestrators/user-loop.js +335 -0
  56. package/lib/templates/abbreviated.d.ts +169 -0
  57. package/lib/templates/defaults.js +1405 -0
  58. package/lib/templates/phrases.js +2526 -0
  59. package/lib/templates/schema.d.ts +173 -0
  60. package/lib/templates/soup-presets.js +188 -0
  61. package/lib/utils/function-registry.js +302 -0
  62. package/lib/utils/json-evaluator.js +172 -0
  63. package/lib/utils/logger.js +34 -0
  64. package/lib/utils/utils.js +1490 -0
  65. package/package.json +89 -0
  66. package/types.d.ts +865 -0
@@ -0,0 +1,192 @@
1
+ {
2
+ "events": [
3
+ {
4
+ "event": "account created",
5
+ "weight": 1,
6
+ "isFirstEvent": true,
7
+ "properties": {
8
+ "signup_method": ["email", "google", "apple", "facebook"],
9
+ "referral_source": ["organic", "referral", "paid_ad", "social_media"]
10
+ }
11
+ },
12
+ {
13
+ "event": "app opened",
14
+ "weight": 2,
15
+ "isSessionStartEvent": true,
16
+ "properties": {
17
+ "open_source": ["direct", "push_notification", "deeplink", "widget"]
18
+ }
19
+ },
20
+ {
21
+ "event": "browse restaurants",
22
+ "weight": 15,
23
+ "properties": {
24
+ "cuisine_filter": ["American", "Italian", "Chinese", "Japanese", "Mexican", "Indian", "Thai", "Mediterranean"],
25
+ "sort_by": ["recommended", "distance", "rating", "price", "delivery_time"],
26
+ "price_filter": ["any", "$", "$$", "$$$", "$$$$"]
27
+ }
28
+ },
29
+ {
30
+ "event": "search",
31
+ "weight": 10,
32
+ "properties": {
33
+ "results_count": { "$range": [0, 50] },
34
+ "search_type": ["dish", "restaurant", "cuisine"]
35
+ }
36
+ },
37
+ {
38
+ "event": "restaurant viewed",
39
+ "weight": 14,
40
+ "properties": {
41
+ "cuisine_type": ["American", "Italian", "Chinese", "Japanese", "Mexican", "Indian", "Thai", "Mediterranean"],
42
+ "avg_rating": { "$range": [1, 5] },
43
+ "delivery_time_est": { "$range": [15, 75] },
44
+ "price_tier": ["$", "$$", "$$$", "$$$$"]
45
+ }
46
+ },
47
+ {
48
+ "event": "view menu item",
49
+ "weight": 16,
50
+ "properties": {
51
+ "item_category": ["entree", "appetizer", "drink", "dessert", "side"],
52
+ "item_price": { "$range": [3, 55] },
53
+ "has_photo": [true, false]
54
+ }
55
+ },
56
+ {
57
+ "event": "favorite item",
58
+ "weight": 5,
59
+ "properties": {
60
+ "item_category": ["entree", "appetizer", "drink", "dessert", "side"],
61
+ "item_price": { "$range": [3, 55] }
62
+ }
63
+ },
64
+ {
65
+ "event": "add to cart",
66
+ "weight": 12,
67
+ "properties": {
68
+ "item_price": { "$range": [3, 55] },
69
+ "quantity": { "$range": [1, 5] },
70
+ "customization_count": { "$range": [0, 4] }
71
+ }
72
+ },
73
+ {
74
+ "event": "remove from cart",
75
+ "weight": 3,
76
+ "properties": {
77
+ "removal_reason": ["changed_mind", "too_expensive", "substitution"]
78
+ }
79
+ },
80
+ {
81
+ "event": "checkout started",
82
+ "weight": 8,
83
+ "properties": {
84
+ "cart_total": { "$range": [10, 120] },
85
+ "items_count": { "$range": [1, 8] },
86
+ "delivery_address_saved": [true, false]
87
+ }
88
+ },
89
+ {
90
+ "event": "order placed",
91
+ "weight": 7,
92
+ "properties": {
93
+ "payment_method": ["credit_card", "apple_pay", "google_pay", "debit_card", "paypal"],
94
+ "order_total": { "$range": [12, 150] },
95
+ "tip_amount": { "$range": [0, 25] },
96
+ "delivery_fee": { "$range": [0, 10] }
97
+ }
98
+ },
99
+ {
100
+ "event": "order tracked",
101
+ "weight": 9,
102
+ "properties": {
103
+ "tracking_status": ["confirmed", "preparing", "picked_up", "en_route", "delivered"],
104
+ "eta_mins": { "$range": [5, 60] }
105
+ }
106
+ },
107
+ {
108
+ "event": "order delivered",
109
+ "weight": 6,
110
+ "properties": {
111
+ "delivery_time_mins": { "$range": [15, 80] },
112
+ "on_time": [true, false]
113
+ }
114
+ },
115
+ {
116
+ "event": "order rated",
117
+ "weight": 5,
118
+ "properties": {
119
+ "food_rating": { "$range": [1, 5] },
120
+ "delivery_rating": { "$range": [1, 5] },
121
+ "would_reorder": [true, false]
122
+ }
123
+ },
124
+ {
125
+ "event": "promotion viewed",
126
+ "weight": 6,
127
+ "properties": {
128
+ "promo_type": ["banner", "push_notification", "in_feed", "email"],
129
+ "promo_value": ["10%", "15%", "20%", "25%", "$5 off", "$10 off", "free delivery"]
130
+ }
131
+ },
132
+ {
133
+ "event": "coupon applied",
134
+ "weight": 3,
135
+ "properties": {
136
+ "discount_type": ["percent", "flat", "free_delivery"],
137
+ "discount_value": { "$range": [5, 40] }
138
+ }
139
+ },
140
+ {
141
+ "event": "reorder initiated",
142
+ "weight": 4,
143
+ "properties": {
144
+ "days_since_original": { "$range": [1, 45] }
145
+ }
146
+ },
147
+ {
148
+ "event": "support contacted",
149
+ "weight": 2,
150
+ "properties": {
151
+ "issue_type": ["missing_item", "wrong_order", "late_delivery", "quality_issue", "refund_request", "app_bug"]
152
+ }
153
+ }
154
+ ],
155
+ "superProps": {
156
+ "platform": ["iOS", "Android", "Web"],
157
+ "subscription_tier": ["Free", "QuickBite+"],
158
+ "city": ["New York", "Los Angeles", "Chicago", "Houston", "Phoenix", "San Francisco", "Seattle", "Miami"]
159
+ },
160
+ "userProps": {
161
+ "preferred_cuisine": ["American", "Italian", "Chinese", "Japanese", "Mexican", "Indian", "Thai", "Mediterranean"],
162
+ "avg_order_value": { "$range": [15, 80] },
163
+ "orders_per_month": { "$range": [1, 15] },
164
+ "account_age_days": { "$range": [1, 365] }
165
+ },
166
+ "funnels": [
167
+ {
168
+ "sequence": ["account created", "browse restaurants", "restaurant viewed"],
169
+ "isFirstFunnel": true,
170
+ "conversionRate": 75,
171
+ "timeToConvert": 0.5
172
+ },
173
+ {
174
+ "sequence": ["view menu item", "add to cart", "checkout started", "order placed"],
175
+ "conversionRate": 50,
176
+ "timeToConvert": 1,
177
+ "weight": 5
178
+ },
179
+ {
180
+ "sequence": ["browse restaurants", "restaurant viewed", "view menu item", "favorite item"],
181
+ "conversionRate": 35,
182
+ "timeToConvert": 2,
183
+ "weight": 3
184
+ },
185
+ {
186
+ "sequence": ["order delivered", "order rated", "reorder initiated"],
187
+ "conversionRate": 40,
188
+ "timeToConvert": 24,
189
+ "weight": 2
190
+ }
191
+ ]
192
+ }