make-mp-data 3.0.2 → 3.0.4

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 (47) hide show
  1. package/dungeons/adspend.js +13 -26
  2. package/dungeons/anon.js +1 -1
  3. package/dungeons/array-of-object-lookup.js +1 -2
  4. package/dungeons/benchmark-heavy.js +5 -6
  5. package/dungeons/benchmark-light.js +13 -28
  6. package/dungeons/big.js +3 -3
  7. package/dungeons/business.js +11 -12
  8. package/dungeons/complex.js +1 -2
  9. package/dungeons/copilot.js +8 -6
  10. package/dungeons/education.js +21 -22
  11. package/dungeons/experiments.js +4 -5
  12. package/dungeons/fintech.js +25 -26
  13. package/dungeons/foobar.js +1 -1
  14. package/dungeons/food.js +24 -25
  15. package/dungeons/funnels.js +2 -2
  16. package/dungeons/gaming.js +39 -40
  17. package/dungeons/media.js +30 -31
  18. package/dungeons/mil.js +17 -18
  19. package/dungeons/mirror.js +2 -3
  20. package/dungeons/retention-cadence.js +1 -2
  21. package/dungeons/rpg.js +42 -43
  22. package/dungeons/sanity.js +1 -2
  23. package/dungeons/sass.js +32 -33
  24. package/dungeons/scd.js +3 -4
  25. package/dungeons/simple.js +13 -14
  26. package/dungeons/social.js +27 -28
  27. package/dungeons/soup-test.js +52 -0
  28. package/dungeons/streaming.js +17 -18
  29. package/dungeons/student-teacher.js +0 -1
  30. package/dungeons/text-generation.js +0 -1
  31. package/dungeons/user-agent.js +1 -2
  32. package/index.js +18 -6
  33. package/lib/core/config-validator.js +22 -33
  34. package/lib/core/context.js +6 -3
  35. package/lib/generators/events.js +13 -10
  36. package/lib/generators/funnels.js +7 -4
  37. package/lib/generators/scd.js +29 -17
  38. package/lib/generators/text.js +18 -12
  39. package/lib/orchestrators/mixpanel-sender.js +26 -38
  40. package/lib/orchestrators/user-loop.js +68 -15
  41. package/lib/templates/phrases.js +8 -5
  42. package/lib/utils/function-registry.js +17 -0
  43. package/lib/utils/utils.js +15 -84
  44. package/package.json +3 -1
  45. package/types.d.ts +86 -19
  46. package/lib/templates/verbose-schema.js +0 -272
  47. package/lib/utils/chart.js +0 -210
@@ -104,10 +104,9 @@ const config = {
104
104
  percentUsersBornInDataset: 50,
105
105
 
106
106
  hasAvatar: true,
107
- makeChart: false,
108
107
 
109
108
  batchSize: 2_500_000,
110
- concurrency: 10,
109
+ concurrency: 1,
111
110
  writeToDisk: false,
112
111
 
113
112
  scdProps: {},
@@ -177,7 +176,7 @@ const config = {
177
176
  isFirstEvent: true,
178
177
  properties: {
179
178
  "account_type": u.pickAWinner(["personal", "business", "personal"]),
180
- "signup_channel": u.pickAWinner(["app", "web", "referral", "branch"]),
179
+ "signup_channel": ["app", "web", "referral", "branch"],
181
180
  }
182
181
  },
183
182
  {
@@ -193,33 +192,33 @@ const config = {
193
192
  weight: 15,
194
193
  properties: {
195
194
  "account_balance": u.weighNumRange(0, 50000, 0.8, 2500),
196
- "account_type": u.pickAWinner(["checking", "savings", "investment"]),
195
+ "account_type": ["checking", "savings", "investment"],
197
196
  }
198
197
  },
199
198
  {
200
199
  event: "transaction completed",
201
200
  weight: 18,
202
201
  properties: {
203
- "transaction_type": u.pickAWinner(["purchase", "atm", "direct_deposit", "refund"]),
202
+ "transaction_type": ["purchase", "atm", "direct_deposit", "refund"],
204
203
  "amount": u.weighNumRange(1, 5000, 0.3, 50),
205
- "merchant_category": u.pickAWinner(["grocery", "restaurant", "gas", "retail", "online", "subscription", "utilities"]),
206
- "payment_method": u.pickAWinner(["debit", "credit", "contactless", "online"]),
204
+ "merchant_category": ["grocery", "restaurant", "gas", "retail", "online", "subscription", "utilities"],
205
+ "payment_method": ["debit", "credit", "contactless", "online"],
207
206
  }
208
207
  },
209
208
  {
210
209
  event: "transfer sent",
211
210
  weight: 8,
212
211
  properties: {
213
- "transfer_type": u.pickAWinner(["internal", "external", "p2p", "wire"]),
212
+ "transfer_type": ["internal", "external", "p2p", "wire"],
214
213
  "amount": u.weighNumRange(10, 10000, 0.3, 200),
215
- "recipient_type": u.pickAWinner(["friend", "family", "business", "self"]),
214
+ "recipient_type": ["friend", "family", "business", "self"],
216
215
  }
217
216
  },
218
217
  {
219
218
  event: "bill paid",
220
219
  weight: 6,
221
220
  properties: {
222
- "bill_type": u.pickAWinner(["rent", "utilities", "phone", "insurance", "subscription", "loan_payment"]),
221
+ "bill_type": ["rent", "utilities", "phone", "insurance", "subscription", "loan_payment"],
223
222
  "amount": u.weighNumRange(20, 3000, 0.5, 150),
224
223
  "auto_pay": u.pickAWinner([true, false], 0.4),
225
224
  }
@@ -228,7 +227,7 @@ const config = {
228
227
  event: "budget created",
229
228
  weight: 3,
230
229
  properties: {
231
- "category": u.pickAWinner(["food", "transport", "entertainment", "shopping", "bills", "savings"]),
230
+ "category": ["food", "transport", "entertainment", "shopping", "bills", "savings"],
232
231
  "monthly_limit": u.weighNumRange(50, 2000, 0.5, 300),
233
232
  }
234
233
  },
@@ -236,7 +235,7 @@ const config = {
236
235
  event: "budget alert",
237
236
  weight: 4,
238
237
  properties: {
239
- "alert_type": u.pickAWinner(["approaching_limit", "exceeded", "on_track"]),
238
+ "alert_type": ["approaching_limit", "exceeded", "on_track"],
240
239
  "percent_used": u.weighNumRange(50, 150, 1, 90),
241
240
  }
242
241
  },
@@ -244,7 +243,7 @@ const config = {
244
243
  event: "savings goal set",
245
244
  weight: 3,
246
245
  properties: {
247
- "goal_type": u.pickAWinner(["emergency", "vacation", "car", "home", "education", "retirement"]),
246
+ "goal_type": ["emergency", "vacation", "car", "home", "education", "retirement"],
248
247
  "target_amount": u.weighNumRange(500, 50000, 0.3, 5000),
249
248
  "monthly_contribution": u.weighNumRange(25, 2000, 0.5, 200),
250
249
  }
@@ -253,7 +252,7 @@ const config = {
253
252
  event: "investment made",
254
253
  weight: 4,
255
254
  properties: {
256
- "investment_type": u.pickAWinner(["stocks", "etf", "crypto", "bonds", "mutual_fund"]),
255
+ "investment_type": ["stocks", "etf", "crypto", "bonds", "mutual_fund"],
257
256
  "amount": u.weighNumRange(10, 10000, 0.3, 250),
258
257
  "action": u.pickAWinner(["buy", "sell", "buy"]),
259
258
  }
@@ -262,7 +261,7 @@ const config = {
262
261
  event: "card locked",
263
262
  weight: 1,
264
263
  properties: {
265
- "reason": u.pickAWinner(["lost", "stolen", "suspicious_activity", "travel"]),
264
+ "reason": ["lost", "stolen", "suspicious_activity", "travel"],
266
265
  }
267
266
  },
268
267
  {
@@ -270,14 +269,14 @@ const config = {
270
269
  weight: 1,
271
270
  properties: {
272
271
  "dispute_amount": u.weighNumRange(10, 2000, 0.5, 100),
273
- "reason": u.pickAWinner(["unauthorized", "duplicate", "not_received", "damaged", "wrong_amount"]),
272
+ "reason": ["unauthorized", "duplicate", "not_received", "damaged", "wrong_amount"],
274
273
  }
275
274
  },
276
275
  {
277
276
  event: "loan applied",
278
277
  weight: 2,
279
278
  properties: {
280
- "loan_type": u.pickAWinner(["personal", "auto", "home", "student", "business"]),
279
+ "loan_type": ["personal", "auto", "home", "student", "business"],
281
280
  "requested_amount": u.weighNumRange(1000, 100000, 0.3, 10000),
282
281
  }
283
282
  },
@@ -285,7 +284,7 @@ const config = {
285
284
  event: "loan approved",
286
285
  weight: 1,
287
286
  properties: {
288
- "loan_type": u.pickAWinner(["personal", "auto", "home", "student", "business"]),
287
+ "loan_type": ["personal", "auto", "home", "student", "business"],
289
288
  "approved_amount": u.weighNumRange(1000, 100000, 0.3, 10000),
290
289
  "interest_rate": u.weighNumRange(3, 25, 1, 8),
291
290
  }
@@ -294,7 +293,7 @@ const config = {
294
293
  event: "premium upgraded",
295
294
  weight: 2,
296
295
  properties: {
297
- "old_tier": u.pickAWinner(["basic", "plus", "premium"]),
296
+ "old_tier": ["basic", "plus", "premium"],
298
297
  "new_tier": u.pickAWinner(["plus", "premium", "premium"]),
299
298
  "monthly_fee": u.pickAWinner([4.99, 9.99, 14.99]),
300
299
  }
@@ -303,8 +302,8 @@ const config = {
303
302
  event: "support contacted",
304
303
  weight: 3,
305
304
  properties: {
306
- "channel": u.pickAWinner(["chat", "phone", "email", "in_app"]),
307
- "issue_type": u.pickAWinner(["transaction", "account", "card", "transfer", "technical"]),
305
+ "channel": ["chat", "phone", "email", "in_app"],
306
+ "issue_type": ["transaction", "account", "card", "transfer", "technical"],
308
307
  "resolved": u.pickAWinner([true, false], 0.8),
309
308
  }
310
309
  },
@@ -312,7 +311,7 @@ const config = {
312
311
  event: "notification opened",
313
312
  weight: 10,
314
313
  properties: {
315
- "notification_type": u.pickAWinner(["transaction", "low_balance", "bill_due", "reward", "security", "promo"]),
314
+ "notification_type": ["transaction", "low_balance", "bill_due", "reward", "security", "promo"],
316
315
  "action_taken": u.pickAWinner([true, false], 0.6),
317
316
  }
318
317
  },
@@ -320,7 +319,7 @@ const config = {
320
319
  event: "reward redeemed",
321
320
  weight: 4,
322
321
  properties: {
323
- "reward_type": u.pickAWinner(["cashback", "points", "discount", "partner_offer"]),
322
+ "reward_type": ["cashback", "points", "discount", "partner_offer"],
324
323
  "value": u.weighNumRange(1, 100, 0.5, 10),
325
324
  }
326
325
  }
@@ -328,12 +327,12 @@ const config = {
328
327
 
329
328
  superProps: {
330
329
  account_tier: u.pickAWinner(["basic", "basic", "basic", "plus", "plus", "premium"]),
331
- platform: u.pickAWinner(["ios", "android", "web"]),
330
+ platform: ["ios", "android", "web"],
332
331
  },
333
332
 
334
333
  userProps: {
335
- "credit_score_range": u.pickAWinner(["300-579", "580-669", "670-739", "740-799", "800-850"]),
336
- "income_bracket": u.pickAWinner(["under_30k", "30k_50k", "50k_75k", "75k_100k", "100k_150k", "over_150k"]),
334
+ "credit_score_range": ["300-579", "580-669", "670-739", "740-799", "800-850"],
335
+ "income_bracket": ["under_30k", "30k_50k", "50k_75k", "75k_100k", "100k_150k", "over_150k"],
337
336
  "account_age_months": u.weighNumRange(1, 60, 0.5, 12),
338
337
  "total_balance": u.weighNumRange(0, 100000, 0.3, 5000),
339
338
  "has_direct_deposit": u.pickAWinner([true, false], 0.6),
@@ -156,7 +156,7 @@ const config = {
156
156
  hasAndroidDevices: false,
157
157
  hasDesktopDevices: false,
158
158
  writeToDisk: false,
159
- concurrency: 500,
159
+ concurrency: 1,
160
160
 
161
161
  events: [
162
162
  {
package/dungeons/food.js CHANGED
@@ -97,9 +97,8 @@ const config = {
97
97
  hasAdSpend: false,
98
98
  percentUsersBornInDataset: 50,
99
99
  hasAvatar: true,
100
- makeChart: false,
101
100
  batchSize: 2_500_000,
102
- concurrency: 10,
101
+ concurrency: 1,
103
102
  writeToDisk: false,
104
103
  scdProps: {},
105
104
 
@@ -169,7 +168,7 @@ const config = {
169
168
  weight: 1,
170
169
  isFirstEvent: true,
171
170
  properties: {
172
- "signup_method": u.pickAWinner(["email", "google", "apple", "facebook"]),
171
+ "signup_method": ["email", "google", "apple", "facebook"],
173
172
  "referral_code": u.pickAWinner([true, false], 0.3),
174
173
  }
175
174
  },
@@ -177,7 +176,7 @@ const config = {
177
176
  event: "restaurant browsed",
178
177
  weight: 18,
179
178
  properties: {
180
- "cuisine_type": u.pickAWinner([
179
+ "cuisine_type": [
181
180
  "American",
182
181
  "Italian",
183
182
  "Chinese",
@@ -186,8 +185,8 @@ const config = {
186
185
  "Indian",
187
186
  "Thai",
188
187
  "Mediterranean"
189
- ]),
190
- "sort_by": u.pickAWinner(["recommended", "distance", "rating", "price"]),
188
+ ],
189
+ "sort_by": ["recommended", "distance", "rating", "price"],
191
190
  "filter_applied": u.pickAWinner([true, false], 0.4),
192
191
  }
193
192
  },
@@ -196,7 +195,7 @@ const config = {
196
195
  weight: 15,
197
196
  properties: {
198
197
  "restaurant_id": u.pickAWinner(restaurantIds),
199
- "cuisine_type": u.pickAWinner([
198
+ "cuisine_type": [
200
199
  "American",
201
200
  "Italian",
202
201
  "Chinese",
@@ -205,10 +204,10 @@ const config = {
205
204
  "Indian",
206
205
  "Thai",
207
206
  "Mediterranean"
208
- ]),
207
+ ],
209
208
  "avg_rating": u.weighNumRange(1, 5, 0.8, 30),
210
209
  "delivery_time_est_mins": u.weighNumRange(15, 90, 1.2, 40),
211
- "price_tier": u.pickAWinner(["$", "$$", "$$$", "$$$$"]),
210
+ "price_tier": ["$", "$$", "$$$", "$$$$"],
212
211
  }
213
212
  },
214
213
  {
@@ -216,7 +215,7 @@ const config = {
216
215
  weight: 14,
217
216
  properties: {
218
217
  "item_id": u.pickAWinner(itemIds),
219
- "item_category": u.pickAWinner(["entree", "appetizer", "drink", "dessert", "side"]),
218
+ "item_category": ["entree", "appetizer", "drink", "dessert", "side"],
220
219
  "item_price": u.weighNumRange(3, 65, 1.0, 40),
221
220
  "customization_count": u.weighNumRange(0, 5, 1.5, 20),
222
221
  }
@@ -226,7 +225,7 @@ const config = {
226
225
  weight: 5,
227
226
  properties: {
228
227
  "item_id": u.pickAWinner(itemIds),
229
- "removal_reason": u.pickAWinner(["changed_mind", "too_expensive", "substitution"]),
228
+ "removal_reason": ["changed_mind", "too_expensive", "substitution"],
230
229
  }
231
230
  },
232
231
  {
@@ -234,7 +233,7 @@ const config = {
234
233
  weight: 4,
235
234
  properties: {
236
235
  "coupon_code": u.pickAWinner(couponCodes),
237
- "discount_type": u.pickAWinner(["percent", "flat", "free_delivery"]),
236
+ "discount_type": ["percent", "flat", "free_delivery"],
238
237
  "discount_value": u.weighNumRange(5, 50, 1.2, 20),
239
238
  }
240
239
  },
@@ -252,7 +251,7 @@ const config = {
252
251
  weight: 10,
253
252
  properties: {
254
253
  "order_id": u.pickAWinner(orderIds),
255
- "payment_method": u.pickAWinner(["credit_card", "apple_pay", "google_pay", "paypal", "cash"]),
254
+ "payment_method": ["credit_card", "apple_pay", "google_pay", "paypal", "cash"],
256
255
  "order_total": u.weighNumRange(10, 200, 0.8, 40),
257
256
  "tip_amount": u.weighNumRange(0, 30, 1.5, 20),
258
257
  "delivery_fee": u.weighNumRange(0, 12, 1.0, 20),
@@ -263,7 +262,7 @@ const config = {
263
262
  weight: 13,
264
263
  properties: {
265
264
  "order_id": u.pickAWinner(orderIds),
266
- "order_status": u.pickAWinner(["confirmed", "preparing", "picked_up", "en_route", "delivered"]),
265
+ "order_status": ["confirmed", "preparing", "picked_up", "en_route", "delivered"],
267
266
  "eta_mins": u.weighNumRange(5, 60, 1.0, 30),
268
267
  }
269
268
  },
@@ -296,7 +295,7 @@ const config = {
296
295
  "wings", "curry", "pho", "burritos", "steak"
297
296
  ]),
298
297
  "results_count": u.weighNumRange(0, 50, 0.8, 30),
299
- "search_type": u.pickAWinner(["restaurant", "cuisine", "dish"]),
298
+ "search_type": ["restaurant", "cuisine", "dish"],
300
299
  }
301
300
  },
302
301
  {
@@ -304,8 +303,8 @@ const config = {
304
303
  weight: 8,
305
304
  properties: {
306
305
  "promo_id": () => `promo_${v.uid(5)}`,
307
- "promo_type": u.pickAWinner(["banner", "push", "in_feed"]),
308
- "promo_value": u.pickAWinner(["10%", "15%", "20%", "25%", "30%", "40%", "50%"]),
306
+ "promo_type": ["banner", "push", "in_feed"],
307
+ "promo_value": ["10%", "15%", "20%", "25%", "30%", "40%", "50%"],
309
308
  }
310
309
  },
311
310
  {
@@ -321,7 +320,7 @@ const config = {
321
320
  event: "subscription cancelled",
322
321
  weight: 1,
323
322
  properties: {
324
- "reason": u.pickAWinner(["too_expensive", "not_ordering_enough", "found_alternative", "bad_experience"]),
323
+ "reason": ["too_expensive", "not_ordering_enough", "found_alternative", "bad_experience"],
325
324
  "months_subscribed": u.weighNumRange(1, 24, 1.5, 15),
326
325
  }
327
326
  },
@@ -329,7 +328,7 @@ const config = {
329
328
  event: "support ticket",
330
329
  weight: 3,
331
330
  properties: {
332
- "issue_type": u.pickAWinner(["missing_item", "wrong_order", "late_delivery", "quality_issue", "refund_request"]),
331
+ "issue_type": ["missing_item", "wrong_order", "late_delivery", "quality_issue", "refund_request"],
333
332
  "order_id": u.pickAWinner(orderIds),
334
333
  }
335
334
  },
@@ -344,13 +343,13 @@ const config = {
344
343
  ],
345
344
 
346
345
  superProps: {
347
- platform: u.pickAWinner(["iOS", "Android", "Web"]),
346
+ platform: ["iOS", "Android", "Web"],
348
347
  subscription_tier: u.pickAWinner(["Free", "Free", "Free", "Free", "QuickBite+"]),
349
- city: u.pickAWinner(["New York", "Los Angeles", "Chicago", "Houston", "Phoenix", "San Francisco"]),
348
+ city: ["New York", "Los Angeles", "Chicago", "Houston", "Phoenix", "San Francisco"],
350
349
  },
351
350
 
352
351
  userProps: {
353
- "preferred_cuisine": u.pickAWinner([
352
+ "preferred_cuisine": [
354
353
  "American",
355
354
  "Italian",
356
355
  "Chinese",
@@ -359,7 +358,7 @@ const config = {
359
358
  "Indian",
360
359
  "Thai",
361
360
  "Mediterranean"
362
- ]),
361
+ ],
363
362
  "avg_order_value": u.weighNumRange(15, 80, 0.8, 40),
364
363
  "orders_per_month": u.weighNumRange(1, 20, 1.5, 10),
365
364
  "favorite_restaurant_count": u.weighNumRange(1, 10),
@@ -372,7 +371,7 @@ const config = {
372
371
  groupProps: {
373
372
  restaurant_id: {
374
373
  "name": () => `${chance.pickone(["The", "Big", "Lucky", "Golden", "Fresh", "Urban"])} ${chance.pickone(["Kitchen", "Grill", "Bowl", "Wok", "Bistro", "Plate", "Table", "Fork"])}`,
375
- "cuisine": u.pickAWinner([
374
+ "cuisine": [
376
375
  "American",
377
376
  "Italian",
378
377
  "Chinese",
@@ -381,7 +380,7 @@ const config = {
381
380
  "Indian",
382
381
  "Thai",
383
382
  "Mediterranean"
384
- ]),
383
+ ],
385
384
  "avg_rating": u.weighNumRange(1, 5, 0.8, 30),
386
385
  "delivery_radius_mi": u.weighNumRange(1, 15, 1.0, 10),
387
386
  }
@@ -246,13 +246,13 @@ const config = {
246
246
  company_id: {
247
247
  name: () => { return chance.company(); },
248
248
  email: () => { return `CSM: ${chance.pickone(["AK", "Jessica", "Michelle", "Dana", "Brian", "Dave"])}`; },
249
- industry: pickAWinner(["tech", "finance", "healthcare", "education", "government", "non-profit"]),
249
+ industry: ["tech", "finance", "healthcare", "education", "government", "non-profit"],
250
250
  segment: ["enterprise", "SMB", "mid-market"],
251
251
  "# active users": chance.integer({ min: 2, max: 20 })
252
252
  },
253
253
  team_id: {
254
254
  name: () => { return `Team ${chance.word({ capitalize: true })}`; },
255
- department: pickAWinner(["Engineering", "Sales", "Marketing", "Support", "HR"]),
255
+ department: ["Engineering", "Sales", "Marketing", "Support", "HR"],
256
256
  size: integer(3, 50)
257
257
  },
258
258
  department_id: {
@@ -35,7 +35,6 @@ const config = {
35
35
  percentUsersBornInDataset: 25,
36
36
 
37
37
  hasAvatar: true,
38
- makeChart: false,
39
38
 
40
39
  batchSize: 2_500_000,
41
40
  concurrency: 1,
@@ -52,26 +51,26 @@ const config = {
52
51
  conversionRate: 0.99,
53
52
  timeToConvert: 1,
54
53
  props: {
55
- "quest type": u.pickAWinner([
54
+ "quest type": [
56
55
  "Rescue",
57
56
  "Retrieve",
58
57
  "Explore",
59
58
  "Destroy",
60
59
  "Investigate",
61
- ]),
62
- "quest difficulty": u.pickAWinner([
60
+ ],
61
+ "quest difficulty": [
63
62
  "Easy",
64
63
  "Medium",
65
64
  "Hard",
66
65
  "Legendary",
67
- ]),
68
- "quest location": u.pickAWinner([
66
+ ],
67
+ "quest location": [
69
68
  "Forest",
70
69
  "Dungeon",
71
70
  "Mountain",
72
71
  "City",
73
72
  "Desert",
74
- ])
73
+ ]
75
74
  }
76
75
  },
77
76
  ],
@@ -81,7 +80,7 @@ const config = {
81
80
  event: "character creation",
82
81
  weight: 2,
83
82
  properties: {
84
- mode: u.pickAWinner(["fast", "slow", "template"]),
83
+ mode: ["fast", "slow", "template"],
85
84
  },
86
85
  },
87
86
  {
@@ -89,7 +88,7 @@ const config = {
89
88
  weight: 8,
90
89
  properties: {
91
90
  "party size": u.weighNumRange(1, 6),
92
- "party leader": u.pickAWinner([
91
+ "party leader": [
93
92
  "Bard",
94
93
  "Cleric",
95
94
  "Fighter",
@@ -99,33 +98,33 @@ const config = {
99
98
  "Ranger",
100
99
  "Sorcerer",
101
100
  "Warlock",
102
- ]),
101
+ ],
103
102
  },
104
103
  },
105
104
  {
106
105
  event: "start quest",
107
106
  weight: 12,
108
107
  properties: {
109
- "quest type": u.pickAWinner([
108
+ "quest type": [
110
109
  "Rescue",
111
110
  "Retrieve",
112
111
  "Explore",
113
112
  "Destroy",
114
113
  "Investigate",
115
- ]),
116
- "quest difficulty": u.pickAWinner([
114
+ ],
115
+ "quest difficulty": [
117
116
  "Easy",
118
117
  "Medium",
119
118
  "Hard",
120
119
  "Legendary",
121
- ]),
122
- "quest location": u.pickAWinner([
120
+ ],
121
+ "quest location": [
123
122
  "Forest",
124
123
  "Dungeon",
125
124
  "Mountain",
126
125
  "City",
127
126
  "Desert",
128
- ]),
127
+ ],
129
128
  "party size": u.weighNumRange(1, 6),
130
129
  "used hint": u.pickAWinner(["yes", "no"], 0.3),
131
130
  "used boost": u.pickAWinner(["yes", "no"], 0.2),
@@ -160,7 +159,7 @@ const config = {
160
159
  "event": "in-game purchase",
161
160
  "weight": 2,
162
161
  "properties": {
163
- "purchase type": u.pickAWinner([
162
+ "purchase type": [
164
163
  "Gold",
165
164
  "Gems",
166
165
  "Items: Weapons",
@@ -169,7 +168,7 @@ const config = {
169
168
  "Items: Scrolls",
170
169
  "Boosts",
171
170
  "Currency",
172
- ]),
171
+ ],
173
172
  "purchase amount": u.weighNumRange(1, 50, 1, 20),
174
173
  }
175
174
  },
@@ -177,19 +176,19 @@ const config = {
177
176
  event: "fight boss",
178
177
  weight: 3,
179
178
  properties: {
180
- "boss type": u.pickAWinner([
179
+ "boss type": [
181
180
  "Dragon",
182
181
  "Demon",
183
182
  "Lich",
184
183
  "Vampire",
185
184
  "Beholder",
186
- ]),
185
+ ],
187
186
  "boss level": u.weighNumRange(10, 20),
188
- "boss difficulty": u.pickAWinner([
187
+ "boss difficulty": [
189
188
  "Hard",
190
189
  "Legendary",
191
190
  "Impossible",
192
- ]),
191
+ ],
193
192
  "fight duration (mins)": u.weighNumRange(1, 60),
194
193
 
195
194
  },
@@ -198,42 +197,42 @@ const config = {
198
197
  event: "level up",
199
198
  weight: 1,
200
199
  properties: {
201
- "new abilities": u.pickAWinner([
200
+ "new abilities": [
202
201
  "Attack",
203
202
  "Spell",
204
203
  "Feat",
205
204
  "Skill",
206
- ]),
205
+ ],
207
206
  },
208
207
  },
209
208
  {
210
209
  event: "attack",
211
210
  weight: 5,
212
211
  properties: {
213
- generic_prop: u.pickAWinner(["foo", "bar", "baz", "qux"]),
212
+ generic_prop: ["foo", "bar", "baz", "qux"],
214
213
  }
215
214
  },
216
215
  {
217
216
  event: "defend",
218
217
  weight: 3,
219
218
  properties: {
220
- generic_prop: u.pickAWinner(["foo", "bar", "baz", "qux"]),
219
+ generic_prop: ["foo", "bar", "baz", "qux"],
221
220
  }
222
221
  },
223
222
  ],
224
223
  superProps: {
225
- platform: u.pickAWinner([
224
+ platform: [
226
225
  "Mobile",
227
226
  "Xbox",
228
227
  "Playstation",
229
228
  "Switch",
230
229
  "Web"
231
- ]),
230
+ ],
232
231
  "game mode": u.pickAWinner([
233
232
  "Single Player",
234
233
  "Multiplayer",
235
234
  ], 1),
236
- language: u.pickAWinner([
235
+ language: [
237
236
  "English",
238
237
  "Spanish",
239
238
  "French",
@@ -241,7 +240,7 @@ const config = {
241
240
  "Japanese",
242
241
  "Korean",
243
242
  "Chinese",
244
- ], 0),
243
+ ],
245
244
 
246
245
  },
247
246
  scdProps: {
@@ -254,14 +253,14 @@ const config = {
254
253
  // }
255
254
  },
256
255
  userProps: {
257
- experiment: u.pickAWinner([
256
+ experiment: [
258
257
  "fast leveling",
259
258
  "tension economy",
260
259
  "free trial",
261
- ]),
260
+ ],
262
261
  variant: ["A", "B", "C", "Control"],
263
262
 
264
- race: u.pickAWinner([
263
+ race: [
265
264
  "Human",
266
265
  "Elf",
267
266
  "Dwarf",
@@ -271,8 +270,8 @@ const config = {
271
270
  "Half-Elf",
272
271
  "Half-Orc",
273
272
  "Tiefling",
274
- ]),
275
- class: u.pickAWinner([
273
+ ],
274
+ class: [
276
275
  "Barbarian",
277
276
  "Bard",
278
277
  "Cleric",
@@ -285,8 +284,8 @@ const config = {
285
284
  "Sorcerer",
286
285
  "Warlock",
287
286
  "Wizard",
288
- ]),
289
- alignment: u.pickAWinner([
287
+ ],
288
+ alignment: [
290
289
  "Lawful Good",
291
290
  "Neutral Good",
292
291
  "Chaotic Good",
@@ -296,9 +295,9 @@ const config = {
296
295
  "Lawful Evil",
297
296
  "Neutral Evil",
298
297
  "Chaotic Evil",
299
- ]),
298
+ ],
300
299
  level: u.weighNumRange(1, 20),
301
- background: u.pickAWinner([
300
+ background: [
302
301
  "Acolyte",
303
302
  "Charlatan",
304
303
  "Criminal",
@@ -312,7 +311,7 @@ const config = {
312
311
  "Sailor",
313
312
  "Soldier",
314
313
  "Urchin",
315
- ]),
314
+ ],
316
315
  "subscription MRR": u.weighNumRange(0, 250, 1, 200)
317
316
  },
318
317
  hook: function (record, type, meta) {