@ak--47/dungeon-master 1.1.0 → 1.2.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 (67) hide show
  1. package/dungeons/technical/ad-spend-schema.json +2 -2
  2. package/dungeons/technical/ad-spend.js +1 -1
  3. package/dungeons/technical/anonymous-users-schema.json +4 -3
  4. package/dungeons/technical/anonymous-users.js +1 -1
  5. package/dungeons/technical/array-of-object-lookup-schema.json +1 -1
  6. package/dungeons/technical/array-of-object-lookup.js +1 -1
  7. package/dungeons/technical/experiments-schema.json +25 -19
  8. package/dungeons/technical/experiments.js +1 -1
  9. package/dungeons/technical/foobar.js +1 -1
  10. package/dungeons/technical/group-analytics-schema.json +92 -0
  11. package/dungeons/technical/group-analytics.js +1 -1
  12. package/dungeons/technical/mirror-strategies-schema.json +4 -4
  13. package/dungeons/technical/mirror-strategies.js +1 -1
  14. package/dungeons/technical/nested-objects.js +1 -1
  15. package/dungeons/technical/retention-cadence.js +1 -2
  16. package/dungeons/technical/sanity-schema.json +22 -22
  17. package/dungeons/technical/sanity.js +1 -0
  18. package/dungeons/technical/scale-test.js +1 -1
  19. package/dungeons/technical/scd-schema.json +230 -33
  20. package/dungeons/technical/scd.js +1 -0
  21. package/dungeons/technical/simple-schema.json +132 -48
  22. package/dungeons/technical/simple.js +1 -1
  23. package/dungeons/technical/simplest-schema.json +168 -79
  24. package/dungeons/technical/simplest.js +1 -1
  25. package/dungeons/technical/text-generation-schema.json +7 -4
  26. package/dungeons/technical/text-generation.js +1 -2
  27. package/dungeons/vertical/community-schema.json +71 -49
  28. package/dungeons/vertical/community.js +8 -2
  29. package/dungeons/vertical/devtools-schema.json +69 -48
  30. package/dungeons/vertical/devtools.js +8 -2
  31. package/dungeons/vertical/ecommerce-schema.json +126 -108
  32. package/dungeons/vertical/ecommerce.js +9 -2
  33. package/dungeons/vertical/education-schema.json +5261 -272
  34. package/dungeons/vertical/education.js +16 -3
  35. package/dungeons/vertical/fintech-schema.json +165 -98
  36. package/dungeons/vertical/fintech.js +16 -3
  37. package/dungeons/vertical/fitness-schema.json +69 -47
  38. package/dungeons/vertical/fitness.js +8 -2
  39. package/dungeons/vertical/food-delivery-schema.json +36237 -187
  40. package/dungeons/vertical/food-delivery.js +16 -3
  41. package/dungeons/vertical/gaming-schema.json +103 -59
  42. package/dungeons/vertical/gaming.js +20 -9
  43. package/dungeons/vertical/healthcare-schema.json +70 -48
  44. package/dungeons/vertical/healthcare.js +8 -2
  45. package/dungeons/vertical/insurance-application-schema.json +66 -47
  46. package/dungeons/vertical/insurance-application.js +8 -2
  47. package/dungeons/vertical/logistics-schema.json +60 -38
  48. package/dungeons/vertical/logistics.js +8 -2
  49. package/dungeons/vertical/marketplace-schema.json +65 -43
  50. package/dungeons/vertical/marketplace.js +8 -2
  51. package/dungeons/vertical/media-schema.json +4085 -123
  52. package/dungeons/vertical/media.js +9 -3
  53. package/dungeons/vertical/rpg-schema.json +1984 -147
  54. package/dungeons/vertical/rpg.js +9 -3
  55. package/dungeons/vertical/sass-schema.json +2622 -147
  56. package/dungeons/vertical/sass.js +16 -3
  57. package/dungeons/vertical/social-schema.json +146 -78
  58. package/dungeons/vertical/social.js +16 -3
  59. package/dungeons/vertical/travel-schema.json +57 -35
  60. package/dungeons/vertical/travel.js +8 -2
  61. package/index.js +1 -1
  62. package/lib/core/context.js +9 -0
  63. package/lib/core/storage.js +2 -0
  64. package/lib/orchestrators/user-loop.js +4 -1
  65. package/package.json +1 -1
  66. package/scripts/extract-dungeon-schema.mjs +64 -18
  67. package/types.d.ts +3 -0
@@ -64,8 +64,8 @@
64
64
  false
65
65
  ],
66
66
  "itemCategory": [
67
- "Art",
68
67
  "Pet",
68
+ "Art",
69
69
  "Handmade",
70
70
  "Garden",
71
71
  "Beauty",
@@ -82,17 +82,21 @@
82
82
  "weight": 10,
83
83
  "properties": {
84
84
  "page": [
85
- "/watch",
86
- "/product",
87
85
  "/",
88
86
  "/help",
89
- "/listen"
87
+ "/account",
88
+ "/watch",
89
+ "/listen",
90
+ "/product",
91
+ "/people",
92
+ "/peace"
90
93
  ],
91
94
  "utm_source": [
92
- "linkedin",
93
95
  "$organic",
96
+ "google",
94
97
  "facebook",
95
- "google"
98
+ "twitter",
99
+ "linkedin"
96
100
  ]
97
101
  }
98
102
  },
@@ -101,12 +105,12 @@
101
105
  "weight": 8,
102
106
  "properties": {
103
107
  "videoCategory": [
104
- "travel",
105
- "DIY",
106
- "gaming",
107
- "funny",
108
- "news",
109
- "educational"
108
+ "cooking",
109
+ "inspirational",
110
+ "music",
111
+ "sports",
112
+ "educational",
113
+ "DIY"
110
114
  ],
111
115
  "isFeaturedItem": [
112
116
  true,
@@ -114,8 +118,8 @@
114
118
  ],
115
119
  "watchTimeSec": {
116
120
  "$range": [
117
- 130,
118
- 469
121
+ 131,
122
+ 467
119
123
  ]
120
124
  },
121
125
  "quality": [
@@ -150,12 +154,12 @@
150
154
  false
151
155
  ],
152
156
  "itemCategory": [
153
- "Games",
154
157
  "Handmade",
158
+ "Baby",
159
+ "Wedding",
155
160
  "Electronics",
156
- "Music",
157
- "Books",
158
- "Movies"
161
+ "Industrial",
162
+ "Pet"
159
163
  ],
160
164
  "dateItemListed": {
161
165
  "$type": "string"
@@ -171,13 +175,13 @@
171
175
  false
172
176
  ],
173
177
  "itemCategory": [
174
- "Food",
175
- "Movies",
176
- "Handmade",
177
- "Art",
178
+ "Games",
178
179
  "Electronics",
179
- "Kids",
180
- "Baby"
180
+ "Books",
181
+ "Entertainment",
182
+ "Outdoors",
183
+ "Pet",
184
+ "Computers"
181
185
  ],
182
186
  "dateItemListed": {
183
187
  "$type": "string"
@@ -219,10 +223,11 @@
219
223
  },
220
224
  {
221
225
  "event": "cart_abandoned",
226
+ "isStrictEvent": true,
222
227
  "properties": {
223
228
  "amount": {
224
229
  "$range": [
225
- 110,
230
+ 114,
226
231
  397
227
232
  ]
228
233
  }
@@ -248,23 +253,215 @@
248
253
  },
249
254
  "luckyNumber": {
250
255
  "$range": [
251
- 117,
252
- 344
256
+ 115,
257
+ 326
253
258
  ]
254
259
  },
255
260
  "spiritAnimal": [
256
- "bee",
261
+ "duck",
262
+ "dog",
263
+ "otter",
264
+ "penguin",
265
+ "cat",
266
+ "elephant",
267
+ "lion",
268
+ "cheetah",
269
+ "giraffe",
270
+ "zebra",
271
+ "rhino",
272
+ "hippo",
273
+ "whale",
274
+ "dolphin",
275
+ "shark",
257
276
  "octopus",
258
- "moth",
277
+ "squid",
278
+ "jellyfish",
279
+ "starfish",
280
+ "seahorse",
281
+ "crab",
282
+ "lobster",
283
+ "shrimp",
284
+ "clam",
285
+ "snail",
286
+ "slug",
259
287
  "butterfly",
260
- "aphid",
261
- "dragonfly",
288
+ "moth",
289
+ "bee",
290
+ "wasp",
262
291
  "ant",
263
- "lobster",
264
- "slug"
292
+ "beetle",
293
+ "ladybug",
294
+ "caterpillar",
295
+ "centipede",
296
+ "millipede",
297
+ "scorpion",
298
+ "spider",
299
+ "tarantula",
300
+ "tick",
301
+ "mite",
302
+ "mosquito",
303
+ "fly",
304
+ "dragonfly",
305
+ "damselfly",
306
+ "grasshopper",
307
+ "cricket",
308
+ "locust",
309
+ "mantis",
310
+ "cockroach",
311
+ "termite",
312
+ "praying mantis",
313
+ "walking stick",
314
+ "stick bug",
315
+ "leaf insect",
316
+ "lacewing",
317
+ "aphid",
318
+ "cicada",
319
+ "thrips",
320
+ "psyllid",
321
+ "scale insect",
322
+ "whitefly",
323
+ "mealybug",
324
+ "planthopper",
325
+ "leafhopper",
326
+ "treehopper",
327
+ "flea",
328
+ "louse",
329
+ "bedbug",
330
+ "flea beetle",
331
+ "weevil",
332
+ "longhorn beetle",
333
+ "leaf beetle",
334
+ "tiger beetle",
335
+ "ground beetle",
336
+ "lady beetle",
337
+ "firefly",
338
+ "click beetle",
339
+ "rove beetle",
340
+ "scarab beetle",
341
+ "dung beetle",
342
+ "stag beetle",
343
+ "rhinoceros beetle",
344
+ "hercules beetle",
345
+ "goliath beetle",
346
+ "jewel beetle",
347
+ "tortoise beetle"
265
348
  ],
266
349
  "spendTier": [
267
350
  "budget"
268
351
  ]
352
+ },
353
+ "groupKeys": [
354
+ {
355
+ "key": "company_id",
356
+ "count": 1000
357
+ }
358
+ ],
359
+ "groupProps": {
360
+ "company_id": {
361
+ "name": {
362
+ "$type": "string"
363
+ },
364
+ "email": [
365
+ "CSM: AK",
366
+ "CSM: Deepak",
367
+ "CSM: Hans",
368
+ "CSM: Justin",
369
+ "CSM: Kaan",
370
+ "CSM: Katie",
371
+ "CSM: Neha",
372
+ "CSM: Rajiv",
373
+ "CSM: Somya",
374
+ "CSM: Tony"
375
+ ],
376
+ "industry": [
377
+ "technology",
378
+ "education",
379
+ "finance",
380
+ "healthcare",
381
+ "retail",
382
+ "manufacturing",
383
+ "transportation",
384
+ "entertainment",
385
+ "media",
386
+ "real estate",
387
+ "construction",
388
+ "hospitality",
389
+ "energy",
390
+ "utilities",
391
+ "agriculture",
392
+ "other"
393
+ ],
394
+ "segment": [
395
+ "SMB",
396
+ "Mid Market",
397
+ "Enterprise"
398
+ ],
399
+ "# active users": [
400
+ 17
401
+ ]
402
+ }
403
+ },
404
+ "scdProps": {
405
+ "role": {
406
+ "type": "user",
407
+ "frequency": "week",
408
+ "timing": "fuzzy",
409
+ "max": 10,
410
+ "values": [
411
+ "admin",
412
+ "collaborator",
413
+ "user",
414
+ "view only",
415
+ "no access"
416
+ ]
417
+ },
418
+ "NPS": {
419
+ "type": "user",
420
+ "frequency": "day",
421
+ "timing": "fuzzy",
422
+ "max": 10,
423
+ "values": {
424
+ "$range": [
425
+ 1,
426
+ 10
427
+ ]
428
+ }
429
+ },
430
+ "MRR": {
431
+ "type": "company_id",
432
+ "frequency": "month",
433
+ "timing": "fixed",
434
+ "max": 10,
435
+ "values": {
436
+ "$range": [
437
+ 2240,
438
+ 7836
439
+ ]
440
+ }
441
+ },
442
+ "AccountHealthScore": {
443
+ "type": "company_id",
444
+ "frequency": "week",
445
+ "timing": "fixed",
446
+ "max": 40,
447
+ "values": {
448
+ "$range": [
449
+ 3,
450
+ 8
451
+ ]
452
+ }
453
+ },
454
+ "plan": {
455
+ "type": "company_id",
456
+ "frequency": "month",
457
+ "timing": "fixed",
458
+ "max": 10,
459
+ "values": [
460
+ "free",
461
+ "basic",
462
+ "premium",
463
+ "enterprise"
464
+ ]
465
+ }
269
466
  }
270
467
  }
@@ -6,6 +6,7 @@ dayjs.extend(utc);
6
6
  import { uid, comma } from 'ak-tools';
7
7
  import { pickAWinner, weighNumRange, date, integer, weighChoices } from "../../lib/utils/utils.js";
8
8
 
9
+ /** @typedef {import("../../types").Dungeon} Config */
9
10
  const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Computers", "Smart Home", "Home", "Garden", "Pet", "Beauty", "Health", "Toys", "Kids", "Baby", "Handmade", "Sports", "Outdoors", "Automotive", "Industrial", "Entertainment", "Art", "Food", "Appliances", "Office", "Wedding", "Software"];
10
11
 
11
12
  const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
@@ -95,15 +95,12 @@
95
95
  false
96
96
  ],
97
97
  "itemCategory": [
98
- "Health",
99
- "Wedding",
100
- "Handmade",
98
+ "Beauty",
101
99
  "Outdoors",
102
- "Computers",
103
- "Software",
100
+ "Toys",
101
+ "Pet",
104
102
  "Books",
105
- "Home",
106
- "Appliances"
103
+ "Health"
107
104
  ],
108
105
  "dateItemListed": {
109
106
  "$type": "string"
@@ -115,16 +112,19 @@
115
112
  "weight": 10,
116
113
  "properties": {
117
114
  "page": [
118
- "/peace",
119
- "/product",
115
+ "/",
120
116
  "/help",
117
+ "/account",
121
118
  "/watch",
119
+ "/listen",
120
+ "/product",
122
121
  "/people",
123
- "/listen"
122
+ "/peace"
124
123
  ],
125
124
  "utm_source": [
126
125
  "$organic",
127
126
  "google",
127
+ "facebook",
128
128
  "twitter",
129
129
  "linkedin"
130
130
  ]
@@ -135,12 +135,11 @@
135
135
  "weight": 8,
136
136
  "properties": {
137
137
  "videoCategory": [
138
- "cooking",
138
+ "news",
139
139
  "gaming",
140
- "educational",
141
- "travel",
142
- "funny",
143
- "inspirational"
140
+ "inspirational",
141
+ "DIY",
142
+ "sports"
144
143
  ],
145
144
  "isFeaturedItem": [
146
145
  true,
@@ -148,8 +147,8 @@
148
147
  ],
149
148
  "watchTimeSec": {
150
149
  "$range": [
151
- 130,
152
- 469
150
+ 131,
151
+ 467
153
152
  ]
154
153
  },
155
154
  "quality": [
@@ -181,10 +180,13 @@
181
180
  false
182
181
  ],
183
182
  "itemCategory": [
184
- "Games",
185
- "Music",
186
- "Books",
187
- "Garden"
183
+ "Automotive",
184
+ "Appliances",
185
+ "Baby",
186
+ "Kids",
187
+ "Sports",
188
+ "Beauty",
189
+ "Music"
188
190
  ],
189
191
  "dateItemListed": {
190
192
  "$type": "string"
@@ -200,11 +202,13 @@
200
202
  false
201
203
  ],
202
204
  "itemCategory": [
203
- "Food",
204
- "Art",
205
- "Wedding",
206
- "Toys",
207
- "Office"
205
+ "Computers",
206
+ "Books",
207
+ "Electronics",
208
+ "Sports",
209
+ "Beauty",
210
+ "Games",
211
+ "Food"
208
212
  ],
209
213
  "dateItemListed": {
210
214
  "$type": "string"
@@ -231,11 +235,28 @@
231
235
  }
232
236
  }
233
237
  ],
238
+ "funnels": [
239
+ {
240
+ "sequence": [
241
+ "page view",
242
+ "view item",
243
+ "save item",
244
+ "page view",
245
+ "sign up"
246
+ ],
247
+ "name": "Signup Flow",
248
+ "isFirstFunnel": true,
249
+ "conversionRate": 50,
250
+ "timeToConvert": 2,
251
+ "order": "first-and-last-fixed",
252
+ "experiment": true
253
+ }
254
+ ],
234
255
  "superProps": {
235
256
  "theme": [
236
- "custom",
257
+ "light",
237
258
  "dark",
238
- "light"
259
+ "custom"
239
260
  ]
240
261
  },
241
262
  "userProps": {
@@ -249,30 +270,93 @@
249
270
  ]
250
271
  },
251
272
  "spiritAnimal": [
252
- "millipede",
273
+ "duck",
274
+ "dog",
275
+ "otter",
276
+ "penguin",
277
+ "cat",
278
+ "elephant",
279
+ "lion",
280
+ "cheetah",
253
281
  "giraffe",
282
+ "zebra",
283
+ "rhino",
284
+ "hippo",
285
+ "whale",
286
+ "dolphin",
287
+ "shark",
288
+ "octopus",
289
+ "squid",
290
+ "jellyfish",
291
+ "starfish",
292
+ "seahorse",
293
+ "crab",
294
+ "lobster",
295
+ "shrimp",
296
+ "clam",
297
+ "snail",
298
+ "slug",
299
+ "butterfly",
300
+ "moth",
301
+ "bee",
302
+ "wasp",
303
+ "ant",
304
+ "beetle",
305
+ "ladybug",
306
+ "caterpillar",
307
+ "centipede",
308
+ "millipede",
309
+ "scorpion",
310
+ "spider",
254
311
  "tarantula",
255
- "bedbug",
312
+ "tick",
313
+ "mite",
314
+ "mosquito",
315
+ "fly",
316
+ "dragonfly",
317
+ "damselfly",
318
+ "grasshopper",
319
+ "cricket",
320
+ "locust",
321
+ "mantis",
322
+ "cockroach",
323
+ "termite",
324
+ "praying mantis",
325
+ "walking stick",
326
+ "stick bug",
327
+ "leaf insect",
328
+ "lacewing",
329
+ "aphid",
330
+ "cicada",
331
+ "thrips",
332
+ "psyllid",
333
+ "scale insect",
334
+ "whitefly",
335
+ "mealybug",
336
+ "planthopper",
337
+ "leafhopper",
338
+ "treehopper",
339
+ "flea",
256
340
  "louse",
341
+ "bedbug",
257
342
  "flea beetle",
343
+ "weevil",
344
+ "longhorn beetle",
258
345
  "leaf beetle",
259
- "cricket"
346
+ "tiger beetle",
347
+ "ground beetle",
348
+ "lady beetle",
349
+ "firefly",
350
+ "click beetle",
351
+ "rove beetle",
352
+ "scarab beetle",
353
+ "dung beetle",
354
+ "stag beetle",
355
+ "rhinoceros beetle",
356
+ "hercules beetle",
357
+ "goliath beetle",
358
+ "jewel beetle",
359
+ "tortoise beetle"
260
360
  ]
261
- },
262
- "funnels": [
263
- {
264
- "sequence": [
265
- "page view",
266
- "view item",
267
- "save item",
268
- "page view",
269
- "sign up"
270
- ],
271
- "isFirstFunnel": true,
272
- "conversionRate": 50,
273
- "timeToConvert": 2,
274
- "order": "first-and-last-fixed",
275
- "experiment": true
276
- }
277
- ]
361
+ }
278
362
  }
@@ -6,6 +6,7 @@ dayjs.extend(utc);
6
6
  import { uid, comma } from 'ak-tools';
7
7
  import { pickAWinner, weighNumRange, date, integer, weighChoices } from "../../lib/utils/utils.js";
8
8
 
9
+ /** @typedef {import("../../types").Dungeon} Config */
9
10
  const itemCategories = ["Books", "Movies", "Music", "Games", "Electronics", "Computers", "Smart Home", "Home", "Garden", "Pet", "Beauty", "Health", "Toys", "Kids", "Baby", "Handmade", "Sports", "Outdoors", "Automotive", "Industrial", "Entertainment", "Art", "Food", "Appliances", "Office", "Wedding", "Software"];
10
11
 
11
12
  const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
@@ -78,7 +79,6 @@ const config = {
78
79
  isAnonymous: false,
79
80
  alsoInferFunnels: true,
80
81
  concurrency: 1,
81
- batchSize: 2_500_000,
82
82
 
83
83
 
84
84
  events: [