@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.
- package/README.md +518 -0
- package/dungeons/array-of-object-lookup-schema.json +327 -0
- package/dungeons/array-of-object-lookup.js +220 -0
- package/dungeons/ecommerce-schema.json +462 -0
- package/dungeons/ecommerce.js +447 -0
- package/dungeons/education-schema.json +2409 -0
- package/dungeons/education.js +768 -0
- package/dungeons/fintech-schema.json +14034 -0
- package/dungeons/fintech.js +696 -0
- package/dungeons/foobar-schema.json +403 -0
- package/dungeons/foobar.js +296 -0
- package/dungeons/food-delivery-schema.json +192 -0
- package/dungeons/food-delivery.js +602 -0
- package/dungeons/food-schema.json +1152 -0
- package/dungeons/food.js +754 -0
- package/dungeons/gaming-schema.json +1270 -0
- package/dungeons/gaming.js +508 -0
- package/dungeons/insurance-application-schema.json +204 -0
- package/dungeons/insurance-application.js +605 -0
- package/dungeons/media-schema.json +906 -0
- package/dungeons/media.js +790 -0
- package/dungeons/retention-cadence-schema.json +78 -0
- package/dungeons/retention-cadence.js +244 -0
- package/dungeons/rpg-schema.json +4526 -0
- package/dungeons/rpg.js +919 -0
- package/dungeons/sanity-schema.json +255 -0
- package/dungeons/sanity.js +152 -0
- package/dungeons/sass-schema.json +1291 -0
- package/dungeons/sass.js +795 -0
- package/dungeons/scd-schema.json +919 -0
- package/dungeons/scd.js +277 -0
- package/dungeons/simple-schema.json +608 -0
- package/dungeons/simple.js +285 -0
- package/dungeons/simplest-schema.json +1418 -0
- package/dungeons/simplest.js +392 -0
- package/dungeons/social-schema.json +1118 -0
- package/dungeons/social.js +686 -0
- package/dungeons/text-generation-schema.json +3096 -0
- package/dungeons/text-generation.js +812 -0
- package/index.js +567 -0
- package/lib/core/config-validator.js +395 -0
- package/lib/core/context.js +204 -0
- package/lib/core/dungeon-loader.js +337 -0
- package/lib/core/storage.js +379 -0
- package/lib/generators/adspend.js +132 -0
- package/lib/generators/events.js +271 -0
- package/lib/generators/funnels.js +407 -0
- package/lib/generators/mirror.js +167 -0
- package/lib/generators/product-lookup.js +262 -0
- package/lib/generators/product-names.js +195 -0
- package/lib/generators/profiles.js +93 -0
- package/lib/generators/scd.js +124 -0
- package/lib/generators/text.js +1192 -0
- package/lib/orchestrators/mixpanel-sender.js +266 -0
- package/lib/orchestrators/user-loop.js +335 -0
- package/lib/templates/abbreviated.d.ts +169 -0
- package/lib/templates/defaults.js +1405 -0
- package/lib/templates/phrases.js +2526 -0
- package/lib/templates/schema.d.ts +173 -0
- package/lib/templates/soup-presets.js +188 -0
- package/lib/utils/function-registry.js +302 -0
- package/lib/utils/json-evaluator.js +172 -0
- package/lib/utils/logger.js +34 -0
- package/lib/utils/utils.js +1490 -0
- package/package.json +89 -0
- 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
|
+
}
|