make-mp-data 3.0.3 → 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.
package/dungeons/mil.js CHANGED
@@ -65,7 +65,7 @@ const config = {
65
65
  ]),
66
66
  "watch time": u.weighNumRange(1, 65, .89, 100),
67
67
 
68
- "category": u.pickAWinner([
68
+ "category": [
69
69
  "comedy",
70
70
  "educational",
71
71
  "music",
@@ -73,15 +73,15 @@ const config = {
73
73
  "news",
74
74
  "gaming",
75
75
  "travel",
76
- ]),
77
- quality: u.pickAWinner([
76
+ ],
77
+ quality: [
78
78
  "240p",
79
79
  "360p",
80
80
  "480p",
81
81
  "720p",
82
82
  "1080p",
83
83
  "4k",
84
- ], 4),
84
+ ],
85
85
  autoplay: [
86
86
  true,
87
87
  false,
@@ -120,13 +120,13 @@ const config = {
120
120
  weight: 3,
121
121
  properties: {
122
122
  video_id: u.pickAWinner(videoIds),
123
- "share network": u.pickAWinner([
123
+ "share network": [
124
124
  "facebook",
125
125
  "twitter",
126
126
  "reddit",
127
127
  "email",
128
128
  "whatsapp",
129
- ]),
129
+ ],
130
130
  },
131
131
  },
132
132
  {
@@ -174,18 +174,18 @@ const config = {
174
174
  event: "create playlist",
175
175
  weight: 4,
176
176
  properties: {
177
- "play list name": u.pickAWinner([
177
+ "play list name": [
178
178
  "favorites",
179
179
  "watch later",
180
180
  "my music",
181
181
  "funny videos",
182
182
  "educational",
183
- ]),
184
- privacy: u.pickAWinner([
183
+ ],
184
+ privacy: [
185
185
  "public",
186
186
  "private",
187
187
  "unlisted",
188
- ]),
188
+ ],
189
189
  },
190
190
  },
191
191
  {
@@ -204,11 +204,11 @@ const config = {
204
204
  event: "account login",
205
205
  weight: 9,
206
206
  properties: {
207
- "log in method": u.pickAWinner([
207
+ "log in method": [
208
208
  "email",
209
209
  "google",
210
210
  "facebook",
211
- ]),
211
+ ],
212
212
  success: [
213
213
  true,
214
214
  false,
@@ -232,11 +232,11 @@ const config = {
232
232
  }
233
233
  ],
234
234
  superProps: {
235
- platform: u.pickAWinner([
235
+ platform: [
236
236
  "web",
237
237
  "ios",
238
238
  "android",
239
- ]),
239
+ ],
240
240
  network_type: [
241
241
  "wifi",
242
242
  "cellular",
@@ -256,13 +256,13 @@ const config = {
256
256
  "45-54",
257
257
  "55+",
258
258
  ],
259
- preferred_genre: u.pickAWinner([
259
+ preferred_genre: [
260
260
  "comedy",
261
261
  "action",
262
262
  "drama",
263
263
  "sci-fi",
264
264
  "horror",
265
- ]),
265
+ ],
266
266
  upload_count: [
267
267
  0,
268
268
  1,
@@ -14,7 +14,7 @@ import dayjs from "dayjs";
14
14
  import utc from "dayjs/plugin/utc.js";
15
15
  dayjs.extend(utc);
16
16
  import { uid, comma } from 'ak-tools';
17
- import { pickAWinner, weighNumRange, date, integer } from "../lib/utils/utils.js";
17
+ import { weighNumRange, date, integer } from "../lib/utils/utils.js";
18
18
 
19
19
 
20
20
  /** @type {import('../types').Dungeon} */
@@ -114,8 +114,7 @@ const config = {
114
114
  events: "*",
115
115
  strategy: "update",
116
116
  values: weighNumRange(11, 20)
117
- },
118
- },
117
+ } },
119
118
  groupKeys: [],
120
119
  groupProps: {},
121
120
  lookupTables: [],
package/dungeons/rpg.js CHANGED
@@ -158,7 +158,7 @@ const config = {
158
158
  weight: 4,
159
159
  props: {
160
160
  "dungeon_id": u.pickAWinner(dungeonIds),
161
- "difficulty": u.pickAWinner(["Easy", "Medium", "Hard", "Deadly"]),
161
+ "difficulty": ["Easy", "Medium", "Hard", "Deadly"],
162
162
  }
163
163
  },
164
164
  {
@@ -198,21 +198,21 @@ const config = {
198
198
  weight: 1,
199
199
  isFirstEvent: true,
200
200
  properties: {
201
- "character_class": u.pickAWinner([
201
+ "character_class": [
202
202
  "Warrior",
203
203
  "Mage",
204
204
  "Rogue",
205
205
  "Cleric",
206
206
  "Ranger",
207
207
  "Paladin"
208
- ]),
209
- "starting_race": u.pickAWinner([
208
+ ],
209
+ "starting_race": [
210
210
  "Human",
211
211
  "Elf",
212
212
  "Dwarf",
213
213
  "Halfling",
214
214
  "Orc"
215
- ]),
215
+ ],
216
216
  }
217
217
  },
218
218
  {
@@ -228,13 +228,13 @@ const config = {
228
228
  weight: 15,
229
229
  properties: {
230
230
  "quest_id": u.pickAWinner(questIds),
231
- "quest_type": u.pickAWinner([
231
+ "quest_type": [
232
232
  "Main Story",
233
233
  "Side Quest",
234
234
  "Bounty",
235
235
  "Exploration",
236
236
  "Escort"
237
- ]),
237
+ ],
238
238
  "recommended_level": u.weighNumRange(1, 50),
239
239
  }
240
240
  },
@@ -260,7 +260,7 @@ const config = {
260
260
  weight: 18,
261
261
  properties: {
262
262
  "dungeon_id": u.pickAWinner(dungeonIds),
263
- "difficulty": u.pickAWinner(["Easy", "Medium", "Hard", "Deadly"]),
263
+ "difficulty": ["Easy", "Medium", "Hard", "Deadly"],
264
264
  "party_size": u.weighNumRange(1, 5),
265
265
  }
266
266
  },
@@ -270,21 +270,21 @@ const config = {
270
270
  properties: {
271
271
  "dungeon_id": u.pickAWinner(dungeonIds),
272
272
  "time_spent_mins": u.weighNumRange(5, 120, 0.6, 30),
273
- "completion_status": u.pickAWinner(["completed", "abandoned", "died"]),
273
+ "completion_status": ["completed", "abandoned", "died"],
274
274
  }
275
275
  },
276
276
  {
277
277
  event: "find treasure",
278
278
  weight: 16,
279
279
  properties: {
280
- "treasure_type": u.pickAWinner([
280
+ "treasure_type": [
281
281
  "Gold",
282
282
  "Weapon",
283
283
  "Armor",
284
284
  "Potion",
285
285
  "Scroll",
286
286
  "Rare Artifact"
287
- ]),
287
+ ],
288
288
  "treasure_value": u.weighNumRange(5, 1000, 1.2, 50),
289
289
  }
290
290
  },
@@ -292,13 +292,13 @@ const config = {
292
292
  event: "player death",
293
293
  weight: 8,
294
294
  properties: {
295
- "cause_of_death": u.pickAWinner([
295
+ "cause_of_death": [
296
296
  "Monster",
297
297
  "Trap",
298
298
  "Fall Damage",
299
299
  "Poison",
300
300
  "Friendly Fire"
301
- ]),
301
+ ],
302
302
  "player_level": u.weighNumRange(1, 50),
303
303
  "resurrection_used": u.pickAWinner([true, false], 0.25),
304
304
  }
@@ -316,16 +316,16 @@ const config = {
316
316
  weight: 11,
317
317
  properties: {
318
318
  "item_id": u.pickAWinner(itemIds),
319
- "item_type": u.pickAWinner([
319
+ "item_type": [
320
320
  "Weapon",
321
321
  "Armor",
322
322
  "Potion",
323
323
  "Scroll",
324
324
  "Mount",
325
325
  "Cosmetic"
326
- ]),
326
+ ],
327
327
  "price_gold": u.weighNumRange(10, 500, 0.8, 100),
328
- "vendor_type": u.pickAWinner(["Town", "Dungeon", "Special Event"]),
328
+ "vendor_type": ["Town", "Dungeon", "Special Event"],
329
329
  }
330
330
  },
331
331
  {
@@ -333,13 +333,13 @@ const config = {
333
333
  weight: 7,
334
334
  properties: {
335
335
  "item_id": u.pickAWinner(itemIds),
336
- "item_type": u.pickAWinner([
336
+ "item_type": [
337
337
  "Weapon",
338
338
  "Armor",
339
339
  "Potion",
340
340
  "Scroll",
341
341
  "Junk"
342
- ]),
342
+ ],
343
343
  "sell_price": u.weighNumRange(5, 250, 0.5, 50),
344
344
  }
345
345
  },
@@ -347,16 +347,16 @@ const config = {
347
347
  event: "real money purchase",
348
348
  weight: 3,
349
349
  properties: {
350
- "product": u.pickAWinner([
350
+ "product": [
351
351
  "Premium Currency (1000)",
352
352
  "Premium Currency (5000)",
353
353
  "Lucky Charm Pack",
354
354
  "Legendary Weapon Chest",
355
355
  "Cosmetic Bundle",
356
356
  "Season Pass"
357
- ]),
357
+ ],
358
358
  "price_usd": u.pickAWinner([4.99, 9.99, 19.99, 49.99, 99.99]),
359
- "payment_method": u.pickAWinner(["Credit Card", "PayPal", "Apple Pay", "Google Pay"]),
359
+ "payment_method": ["Credit Card", "PayPal", "Apple Pay", "Google Pay"],
360
360
  }
361
361
  },
362
362
  {
@@ -371,38 +371,38 @@ const config = {
371
371
  event: "guild left",
372
372
  weight: 1,
373
373
  properties: {
374
- "reason": u.pickAWinner([
374
+ "reason": [
375
375
  "Inactive",
376
376
  "Found Better Guild",
377
377
  "Conflict",
378
378
  "Disbanded"
379
- ]),
379
+ ],
380
380
  }
381
381
  },
382
382
  {
383
383
  event: "inspect",
384
384
  weight: 9,
385
385
  properties: {
386
- "inspect_target": u.pickAWinner([
386
+ "inspect_target": [
387
387
  "NPC",
388
388
  "Monster",
389
389
  "Treasure Chest",
390
390
  "Door",
391
391
  "Statue",
392
392
  "Bookshelf"
393
- ]),
393
+ ],
394
394
  }
395
395
  },
396
396
  {
397
397
  event: "search for clues",
398
398
  weight: 8,
399
399
  properties: {
400
- "location_type": u.pickAWinner([
400
+ "location_type": [
401
401
  "Dungeon Entrance",
402
402
  "Hidden Room",
403
403
  "Quest Location",
404
404
  "Town Square"
405
- ]),
405
+ ],
406
406
  "clue_found": u.pickAWinner([true, false], 0.6),
407
407
  }
408
408
  },
@@ -411,29 +411,29 @@ const config = {
411
411
  weight: 14,
412
412
  properties: {
413
413
  "item_id": u.pickAWinner(itemIds),
414
- "item_type": u.pickAWinner([
414
+ "item_type": [
415
415
  "Health Potion",
416
416
  "Mana Potion",
417
417
  "Buff Scroll",
418
418
  "Ancient Compass",
419
419
  "Lucky Charm",
420
420
  "Resurrection Stone"
421
- ]),
422
- "context": u.pickAWinner(["Combat", "Exploration", "Boss Fight", "Casual"]),
421
+ ],
422
+ "context": ["Combat", "Exploration", "Boss Fight", "Casual"],
423
423
  }
424
424
  },
425
425
  {
426
426
  event: "combat initiated",
427
427
  weight: 20,
428
428
  properties: {
429
- "enemy_type": u.pickAWinner([
429
+ "enemy_type": [
430
430
  "Goblin",
431
431
  "Skeleton",
432
432
  "Dragon",
433
433
  "Demon",
434
434
  "Undead",
435
435
  "Beast"
436
- ]),
436
+ ],
437
437
  "enemy_level": u.weighNumRange(1, 50),
438
438
  "combat_duration_sec": u.weighNumRange(10, 300, 0.7, 60),
439
439
  }
@@ -442,49 +442,49 @@ const config = {
442
442
  event: "combat completed",
443
443
  weight: 18,
444
444
  properties: {
445
- "outcome": u.pickAWinner(["Victory", "Defeat", "Fled"]),
445
+ "outcome": ["Victory", "Defeat", "Fled"],
446
446
  "loot_gained": u.pickAWinner([true, false], 0.7),
447
447
  }
448
448
  }
449
449
  ],
450
450
 
451
451
  superProps: {
452
- platform: u.pickAWinner([
452
+ platform: [
453
453
  "PC",
454
454
  "Mac",
455
455
  "PlayStation",
456
456
  "Xbox",
457
457
  "Switch"
458
- ]),
459
- graphics_quality: u.pickAWinner([
458
+ ],
459
+ graphics_quality: [
460
460
  "Low",
461
461
  "Medium",
462
462
  "High",
463
463
  "Ultra"
464
- ]),
464
+ ],
465
465
  subscription_tier: u.pickAWinner(["Free", "Free", "Free", "Premium", "Elite"]),
466
466
  },
467
467
 
468
468
  scdProps: {},
469
469
 
470
470
  userProps: {
471
- "preferred_playstyle": u.pickAWinner([
471
+ "preferred_playstyle": [
472
472
  "Solo Explorer",
473
473
  "Group Raider",
474
474
  "PvP Fighter",
475
475
  "Quest Completionist",
476
476
  "Treasure Hunter"
477
- ]),
477
+ ],
478
478
  "total_playtime_hours": u.weighNumRange(1, 500, 1.5, 50),
479
479
  "achievement_points": u.weighNumRange(0, 5000, 0.8, 500),
480
- "favorite_class": u.pickAWinner([
480
+ "favorite_class": [
481
481
  "Warrior",
482
482
  "Mage",
483
483
  "Rogue",
484
484
  "Cleric",
485
485
  "Ranger",
486
486
  "Paladin"
487
- ]),
487
+ ],
488
488
  },
489
489
 
490
490
  groupKeys: [
package/dungeons/sass.js CHANGED
@@ -167,8 +167,8 @@ const config = {
167
167
  weight: 1,
168
168
  isFirstEvent: true,
169
169
  properties: {
170
- company_size: u.pickAWinner(["startup", "smb", "mid_market", "enterprise"]),
171
- industry: u.pickAWinner(["tech", "finance", "healthcare", "retail", "media"]),
170
+ company_size: ["startup", "smb", "mid_market", "enterprise"],
171
+ industry: ["tech", "finance", "healthcare", "retail", "media"],
172
172
  }
173
173
  },
174
174
  {
@@ -176,17 +176,17 @@ const config = {
176
176
  weight: 10,
177
177
  properties: {
178
178
  service_id: u.pickAWinner(serviceIds),
179
- service_type: u.pickAWinner(["web_app", "api", "database", "cache", "queue", "ml_model"]),
180
- environment: u.pickAWinner(["production", "staging", "dev"]),
181
- cloud_provider: u.pickAWinner(["aws", "gcp", "azure"]),
179
+ service_type: ["web_app", "api", "database", "cache", "queue", "ml_model"],
180
+ environment: ["production", "staging", "dev"],
181
+ cloud_provider: ["aws", "gcp", "azure"],
182
182
  }
183
183
  },
184
184
  {
185
185
  event: "dashboard viewed",
186
186
  weight: 20,
187
187
  properties: {
188
- dashboard_type: u.pickAWinner(["overview", "cost", "performance", "security", "custom"]),
189
- time_range: u.pickAWinner(["1h", "6h", "24h", "7d", "30d"]),
188
+ dashboard_type: ["overview", "cost", "performance", "security", "custom"],
189
+ time_range: ["1h", "6h", "24h", "7d", "30d"],
190
190
  }
191
191
  },
192
192
  {
@@ -194,8 +194,8 @@ const config = {
194
194
  weight: 12,
195
195
  properties: {
196
196
  alert_id: u.pickAWinner(alertIds),
197
- severity: u.pickAWinner(["info", "warning", "critical", "emergency"]),
198
- alert_type: u.pickAWinner(["cpu", "memory", "latency", "error_rate", "disk", "network"]),
197
+ severity: ["info", "warning", "critical", "emergency"],
198
+ alert_type: ["cpu", "memory", "latency", "error_rate", "disk", "network"],
199
199
  service_id: u.pickAWinner(serviceIds),
200
200
  }
201
201
  },
@@ -205,7 +205,7 @@ const config = {
205
205
  properties: {
206
206
  alert_id: u.pickAWinner(alertIds),
207
207
  response_time_mins: u.weighNumRange(1, 120),
208
- acknowledged_by_role: u.pickAWinner(["engineer", "sre", "manager", "oncall"]),
208
+ acknowledged_by_role: ["engineer", "sre", "manager", "oncall"],
209
209
  }
210
210
  },
211
211
  {
@@ -214,7 +214,7 @@ const config = {
214
214
  properties: {
215
215
  alert_id: u.pickAWinner(alertIds),
216
216
  resolution_time_mins: u.weighNumRange(5, 1440),
217
- root_cause: u.pickAWinner(["config_change", "capacity", "bug", "dependency", "network"]),
217
+ root_cause: ["config_change", "capacity", "bug", "dependency", "network"],
218
218
  }
219
219
  },
220
220
  {
@@ -222,7 +222,7 @@ const config = {
222
222
  weight: 9,
223
223
  properties: {
224
224
  pipeline_id: u.pickAWinner(pipelineIds),
225
- status: u.pickAWinner(["success", "failed", "cancelled"]),
225
+ status: ["success", "failed", "cancelled"],
226
226
  duration_sec: u.weighNumRange(30, 1800),
227
227
  commit_count: u.weighNumRange(1, 20),
228
228
  }
@@ -242,7 +242,7 @@ const config = {
242
242
  event: "cost report generated",
243
243
  weight: 4,
244
244
  properties: {
245
- report_period: u.pickAWinner(["daily", "weekly", "monthly"]),
245
+ report_period: ["daily", "weekly", "monthly"],
246
246
  total_cost: u.weighNumRange(100, 50000),
247
247
  cost_change_percent: u.weighNumRange(-30, 50),
248
248
  }
@@ -251,23 +251,23 @@ const config = {
251
251
  event: "team member invited",
252
252
  weight: 3,
253
253
  properties: {
254
- role: u.pickAWinner(["admin", "editor", "viewer", "billing"]),
255
- invitation_method: u.pickAWinner(["email", "sso", "slack"]),
254
+ role: ["admin", "editor", "viewer", "billing"],
255
+ invitation_method: ["email", "sso", "slack"],
256
256
  }
257
257
  },
258
258
  {
259
259
  event: "integration configured",
260
260
  weight: 4,
261
261
  properties: {
262
- integration_type: u.pickAWinner(["slack", "pagerduty", "jira", "github", "datadog", "terraform"]),
263
- status: u.pickAWinner(["active", "paused", "error"]),
262
+ integration_type: ["slack", "pagerduty", "jira", "github", "datadog", "terraform"],
263
+ status: ["active", "paused", "error"],
264
264
  }
265
265
  },
266
266
  {
267
267
  event: "query executed",
268
268
  weight: 15,
269
269
  properties: {
270
- query_type: u.pickAWinner(["metrics", "logs", "traces"]),
270
+ query_type: ["metrics", "logs", "traces"],
271
271
  time_range_hours: u.weighNumRange(1, 720),
272
272
  result_count: u.weighNumRange(0, 10000),
273
273
  }
@@ -277,7 +277,7 @@ const config = {
277
277
  weight: 3,
278
278
  properties: {
279
279
  runbook_id: u.pickAWinner(runbookIds),
280
- trigger: u.pickAWinner(["manual", "automated", "alert_triggered"]),
280
+ trigger: ["manual", "automated", "alert_triggered"],
281
281
  success: u.pickAWinner([true, false], 0.15),
282
282
  }
283
283
  },
@@ -285,7 +285,7 @@ const config = {
285
285
  event: "billing event",
286
286
  weight: 3,
287
287
  properties: {
288
- event_type: u.pickAWinner(["invoice_generated", "payment_received", "payment_failed", "plan_upgraded", "plan_downgraded"]),
288
+ event_type: ["invoice_generated", "payment_received", "payment_failed", "plan_upgraded", "plan_downgraded"],
289
289
  amount: u.weighNumRange(99, 25000),
290
290
  }
291
291
  },
@@ -293,7 +293,7 @@ const config = {
293
293
  event: "security scan",
294
294
  weight: 6,
295
295
  properties: {
296
- scan_type: u.pickAWinner(["vulnerability", "compliance", "access_audit"]),
296
+ scan_type: ["vulnerability", "compliance", "access_audit"],
297
297
  findings_count: u.weighNumRange(0, 50),
298
298
  critical_findings: u.weighNumRange(0, 10),
299
299
  }
@@ -302,8 +302,8 @@ const config = {
302
302
  event: "api call",
303
303
  weight: 16,
304
304
  properties: {
305
- endpoint: u.pickAWinner(["/deploy", "/status", "/metrics", "/alerts", "/config", "/billing"]),
306
- method: u.pickAWinner(["GET", "POST", "PUT", "DELETE"]),
305
+ endpoint: ["/deploy", "/status", "/metrics", "/alerts", "/config", "/billing"],
306
+ method: ["GET", "POST", "PUT", "DELETE"],
307
307
  response_time_ms: u.weighNumRange(10, 5000),
308
308
  status_code: u.pickAWinner([200, 201, 400, 401, 403, 500, 503]),
309
309
  }
@@ -312,7 +312,7 @@ const config = {
312
312
  event: "documentation viewed",
313
313
  weight: 7,
314
314
  properties: {
315
- doc_section: u.pickAWinner(["getting_started", "api_reference", "best_practices", "troubleshooting", "changelog"]),
315
+ doc_section: ["getting_started", "api_reference", "best_practices", "troubleshooting", "changelog"],
316
316
  time_on_page_sec: u.weighNumRange(5, 600),
317
317
  }
318
318
  },
@@ -322,20 +322,20 @@ const config = {
322
322
  properties: {
323
323
  flag_name: () => `flag_${chance.word()}`,
324
324
  new_state: u.pickAWinner(["enabled", "disabled"], 0.15),
325
- environment: u.pickAWinner(["production", "staging", "dev"]),
325
+ environment: ["production", "staging", "dev"],
326
326
  }
327
327
  },
328
328
  ],
329
329
 
330
330
  superProps: {
331
331
  plan_tier: u.pickAWinner(["free", "free", "team", "team", "business", "enterprise"]),
332
- cloud_provider: u.pickAWinner(["aws", "gcp", "azure", "multi_cloud"]),
332
+ cloud_provider: ["aws", "gcp", "azure", "multi_cloud"],
333
333
  },
334
334
 
335
335
  userProps: {
336
336
  company_size: u.pickAWinner(["startup", "startup", "smb", "mid_market", "enterprise"]),
337
- primary_role: u.pickAWinner(["engineer", "sre", "devops", "manager", "executive"]),
338
- team_name: u.pickAWinner(["Platform", "Backend", "Frontend", "Data", "Security", "Infrastructure"]),
337
+ primary_role: ["engineer", "sre", "devops", "manager", "executive"],
338
+ team_name: ["Platform", "Backend", "Frontend", "Data", "Security", "Infrastructure"],
339
339
  },
340
340
 
341
341
  groupKeys: [
@@ -345,9 +345,9 @@ const config = {
345
345
  groupProps: {
346
346
  company_id: {
347
347
  name: () => `${chance.word({ capitalize: true })} ${chance.pickone(["Systems", "Technologies", "Labs", "Cloud", "Digital", "Networks", "Solutions"])}`,
348
- industry: u.pickAWinner(["tech", "finance", "healthcare", "retail", "media", "manufacturing", "logistics"]),
349
- employee_count: u.pickAWinner(["1-10", "11-50", "51-200", "201-1000", "1001-5000", "5000+"]),
350
- arr_bucket: u.pickAWinner(["<10k", "10k-50k", "50k-200k", "200k-1M", "1M+"]),
348
+ industry: ["tech", "finance", "healthcare", "retail", "media", "manufacturing", "logistics"],
349
+ employee_count: ["1-10", "11-50", "51-200", "201-1000", "1001-5000", "5000+"],
350
+ arr_bucket: ["<10k", "10k-50k", "50k-200k", "200k-1M", "1M+"],
351
351
  }
352
352
  },
353
353
 
package/dungeons/scd.js CHANGED
@@ -47,7 +47,7 @@ const config = {
47
47
  weight: 2,
48
48
  properties: {
49
49
  amount: weighNumRange(5, 500, .25),
50
- currency: pickAWinner(["USD", "CAD", "EUR", "BTC", "ETH", "JPY"], 0),
50
+ currency: ["USD", "CAD", "EUR", "BTC", "ETH", "JPY"],
51
51
  coupon: weighChoices(["none", "none", "none", "none", "10%OFF", "20%OFF", "10%OFF", "20%OFF", "30%OFF", "40%OFF", "50%OFF"]),
52
52
  numItems: weighNumRange(1, 10),
53
53
 
@@ -172,7 +172,7 @@ const config = {
172
172
  company_id: {
173
173
  name: () => { return chance.name(); },
174
174
  email: () => { return `CSM: ${chance.pickone(["AK", "Neha", "Rajiv", "Deepak", "Justin", "Hans", "Katie", "Somya", "Tony", "Kaan"])}`; },
175
- industry: pickAWinner([
175
+ industry: [
176
176
  "technology",
177
177
  "education",
178
178
  "finance",
@@ -189,7 +189,7 @@ const config = {
189
189
  "utilities",
190
190
  "agriculture",
191
191
  "other",
192
- ]),
192
+ ],
193
193
  segment: ["SMB", "SMB", "SMB", "Mid Market", "Mid Market", "Enterprise"],
194
194
  "# active users": chance.integer({ min: 2, max: 20 })
195
195
  }
@@ -49,14 +49,14 @@ const config = {
49
49
  event: "ad impression",
50
50
  weight: 15,
51
51
  properties: {
52
- partner: pickAWinner(["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"]),
52
+ partner: ["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"],
53
53
  }
54
54
  },
55
55
  {
56
56
  event: "ad click",
57
57
  weight: 10,
58
58
  properties: {
59
- partner: pickAWinner(["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"]),
59
+ partner: ["google", "facebook", "twitter", "linkedin", "bing", "taboola", "outbrain", "quora", "pinterest"],
60
60
  }
61
61
  },
62
62
  {
@@ -64,7 +64,7 @@ const config = {
64
64
  weight: 2,
65
65
  properties: {
66
66
  amount: weighNumRange(5, 500, .25),
67
- currency: pickAWinner(["USD", "CAD", "EUR", "BTC", "ETH", "JPY"], 0),
67
+ currency: ["USD", "CAD", "EUR", "BTC", "ETH", "JPY"],
68
68
  coupon: weighChoices(["none", "none", "none", "none", "10%OFF", "20%OFF", "10%OFF", "20%OFF", "30%OFF", "40%OFF", "50%OFF"]),
69
69
  numItems: weighNumRange(1, 10),
70
70
 
@@ -126,7 +126,7 @@ const config = {
126
126
  weight: 1,
127
127
  isFirstEvent: true,
128
128
  properties: {
129
- signupMethod: pickAWinner(["email", "google", "facebook", "twitter", "linkedin", "github"]),
129
+ signupMethod: ["email", "google", "facebook", "twitter", "linkedin", "github"],
130
130
  referral: weighChoices(["none", "none", "none", "friend", "ad", "ad", "ad", "friend", "friend", "friend", "friend"]),
131
131
  }
132
132
  },