@ak--47/dungeon-master 1.0.0 → 1.1.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 +7 -7
- package/dungeons/technical/ad-spend-schema.json +128 -0
- package/dungeons/technical/ad-spend.js +116 -0
- package/dungeons/technical/anonymous-users-schema.json +91 -0
- package/dungeons/technical/anonymous-users.js +102 -0
- package/dungeons/technical/array-of-object-lookup-schema.json +191 -0
- package/dungeons/{array-of-object-lookup.js → technical/array-of-object-lookup.js} +11 -4
- package/dungeons/technical/experiments-schema.json +197 -0
- package/dungeons/technical/experiments.js +168 -0
- package/dungeons/technical/foobar-schema.json +362 -0
- package/dungeons/{foobar.js → technical/foobar.js} +2 -2
- package/dungeons/technical/group-analytics-schema.json +149 -0
- package/dungeons/technical/group-analytics.js +151 -0
- package/dungeons/technical/mirror-strategies-schema.json +84 -0
- package/dungeons/technical/mirror-strategies.js +126 -0
- package/dungeons/technical/nested-objects-schema.json +145 -0
- package/dungeons/technical/nested-objects.js +207 -0
- package/dungeons/technical/retention-cadence-schema.json +37 -0
- package/dungeons/{retention-cadence.js → technical/retention-cadence.js} +1 -1
- package/dungeons/technical/sanity-schema.json +185 -0
- package/dungeons/{sanity.js → technical/sanity.js} +3 -2
- package/dungeons/technical/scale-test-schema.json +70 -0
- package/dungeons/technical/scale-test.js +90 -0
- package/dungeons/technical/scd-schema.json +270 -0
- package/dungeons/{scd.js → technical/scd.js} +19 -10
- package/dungeons/technical/simple-schema.json +278 -0
- package/dungeons/{simple.js → technical/simple.js} +6 -6
- package/dungeons/technical/simplest-schema.json +635 -0
- package/dungeons/{simplest.js → technical/simplest.js} +6 -6
- package/dungeons/technical/text-generation-schema.json +1059 -0
- package/dungeons/{text-generation.js → technical/text-generation.js} +23 -9
- package/dungeons/vertical/community-schema.json +557 -0
- package/dungeons/vertical/community.js +788 -0
- package/dungeons/vertical/devtools-schema.json +580 -0
- package/dungeons/vertical/devtools.js +837 -0
- package/dungeons/vertical/ecommerce-schema.json +586 -0
- package/dungeons/{ecommerce.js → vertical/ecommerce.js} +34 -3
- package/dungeons/vertical/education-schema.json +697 -0
- package/dungeons/{education.js → vertical/education.js} +54 -36
- package/dungeons/vertical/fintech-schema.json +563 -0
- package/dungeons/{fintech.js → vertical/fintech.js} +91 -53
- package/dungeons/vertical/fitness-schema.json +508 -0
- package/dungeons/vertical/fitness.js +802 -0
- package/dungeons/vertical/food-delivery-schema.json +678 -0
- package/dungeons/{food.js → vertical/food-delivery.js} +51 -23
- package/dungeons/vertical/gaming-schema.json +394 -0
- package/dungeons/{gaming.js → vertical/gaming.js} +9 -7
- package/dungeons/vertical/healthcare-schema.json +527 -0
- package/dungeons/vertical/healthcare.js +769 -0
- package/dungeons/vertical/insurance-application-schema.json +466 -0
- package/dungeons/{insurance-application.js → vertical/insurance-application.js} +33 -29
- package/dungeons/vertical/logistics-schema.json +552 -0
- package/dungeons/vertical/logistics.js +793 -0
- package/dungeons/vertical/marketplace-schema.json +511 -0
- package/dungeons/vertical/marketplace.js +844 -0
- package/dungeons/vertical/media-schema.json +787 -0
- package/dungeons/{media.js → vertical/media.js} +94 -16
- package/dungeons/vertical/rpg-schema.json +654 -0
- package/dungeons/{rpg.js → vertical/rpg.js} +78 -57
- package/dungeons/vertical/sass-schema.json +653 -0
- package/dungeons/{sass.js → vertical/sass.js} +49 -23
- package/dungeons/vertical/social-schema.json +552 -0
- package/dungeons/{social.js → vertical/social.js} +60 -14
- package/dungeons/vertical/travel-schema.json +558 -0
- package/dungeons/vertical/travel.js +736 -0
- package/index.js +19 -15
- package/lib/core/config-validator.js +286 -1
- package/lib/core/context.js +7 -5
- package/lib/generators/adspend.js +3 -3
- package/lib/generators/events.js +141 -14
- package/lib/generators/funnels.js +67 -7
- package/lib/generators/text.js +2 -2
- package/lib/orchestrators/user-loop.js +441 -22
- package/lib/templates/soup-presets.js +2 -2
- package/lib/utils/utils.js +4 -5
- package/package.json +4 -3
- package/scripts/dungeon-to-json.mjs +163 -0
- package/scripts/extract-dungeon-schema.mjs +297 -0
- package/scripts/json-to-dungeon.mjs +200 -0
- package/scripts/run-dungeon.mjs +76 -0
- package/scripts/run-many.mjs +118 -0
- package/scripts/verify-runner.mjs +42 -0
- package/types.d.ts +313 -1
- package/dungeons/array-of-object-lookup-schema.json +0 -327
- package/dungeons/ecommerce-schema.json +0 -462
- package/dungeons/education-schema.json +0 -2409
- package/dungeons/fintech-schema.json +0 -14034
- package/dungeons/foobar-schema.json +0 -403
- package/dungeons/food-delivery-schema.json +0 -192
- package/dungeons/food-delivery.js +0 -602
- package/dungeons/food-schema.json +0 -1152
- package/dungeons/gaming-schema.json +0 -1270
- package/dungeons/insurance-application-schema.json +0 -204
- package/dungeons/media-schema.json +0 -906
- package/dungeons/retention-cadence-schema.json +0 -78
- package/dungeons/rpg-schema.json +0 -4526
- package/dungeons/sanity-schema.json +0 -255
- package/dungeons/sass-schema.json +0 -1291
- package/dungeons/scd-schema.json +0 -919
- package/dungeons/simple-schema.json +0 -608
- package/dungeons/simplest-schema.json +0 -1418
- package/dungeons/social-schema.json +0 -1118
- package/dungeons/text-generation-schema.json +0 -3096
|
@@ -0,0 +1,586 @@
|
|
|
1
|
+
{
|
|
2
|
+
"events": [
|
|
3
|
+
{
|
|
4
|
+
"event": "checkout",
|
|
5
|
+
"weight": 2,
|
|
6
|
+
"properties": {
|
|
7
|
+
"currency": [
|
|
8
|
+
"USD",
|
|
9
|
+
"CAD",
|
|
10
|
+
"EUR",
|
|
11
|
+
"BTC",
|
|
12
|
+
"ETH",
|
|
13
|
+
"JPY"
|
|
14
|
+
],
|
|
15
|
+
"coupon": [
|
|
16
|
+
"none",
|
|
17
|
+
"10%OFF",
|
|
18
|
+
"20%OFF",
|
|
19
|
+
"30%OFF",
|
|
20
|
+
"40%OFF",
|
|
21
|
+
"50%OFF"
|
|
22
|
+
],
|
|
23
|
+
"cart": {
|
|
24
|
+
"$type": "object[]",
|
|
25
|
+
"$keys": [
|
|
26
|
+
"amount",
|
|
27
|
+
"quantity",
|
|
28
|
+
"total_value",
|
|
29
|
+
"featured",
|
|
30
|
+
"category",
|
|
31
|
+
"descriptor",
|
|
32
|
+
"slug",
|
|
33
|
+
"assetPreview",
|
|
34
|
+
"assetType"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"event": "add to cart",
|
|
41
|
+
"weight": 4,
|
|
42
|
+
"properties": {
|
|
43
|
+
"item": {
|
|
44
|
+
"$type": "object[]",
|
|
45
|
+
"$keys": [
|
|
46
|
+
"amount",
|
|
47
|
+
"quantity",
|
|
48
|
+
"total_value",
|
|
49
|
+
"featured",
|
|
50
|
+
"category",
|
|
51
|
+
"descriptor",
|
|
52
|
+
"slug",
|
|
53
|
+
"assetPreview",
|
|
54
|
+
"assetType"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"amount": {
|
|
58
|
+
"$range": [
|
|
59
|
+
21,
|
|
60
|
+
80
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"quantity": {
|
|
64
|
+
"$range": [
|
|
65
|
+
2,
|
|
66
|
+
4
|
|
67
|
+
]
|
|
68
|
+
},
|
|
69
|
+
"total_value": {
|
|
70
|
+
"$range": [
|
|
71
|
+
102,
|
|
72
|
+
399
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
"featured": [
|
|
76
|
+
true,
|
|
77
|
+
false
|
|
78
|
+
],
|
|
79
|
+
"category": [
|
|
80
|
+
"electronics",
|
|
81
|
+
"books",
|
|
82
|
+
"clothing",
|
|
83
|
+
"home",
|
|
84
|
+
"garden",
|
|
85
|
+
"toys",
|
|
86
|
+
"sports",
|
|
87
|
+
"automotive",
|
|
88
|
+
"beauty",
|
|
89
|
+
"health",
|
|
90
|
+
"grocery",
|
|
91
|
+
"jewelry",
|
|
92
|
+
"shoes",
|
|
93
|
+
"tools",
|
|
94
|
+
"office supplies"
|
|
95
|
+
],
|
|
96
|
+
"descriptor": [
|
|
97
|
+
"brand new",
|
|
98
|
+
"open box",
|
|
99
|
+
"refurbished",
|
|
100
|
+
"used",
|
|
101
|
+
"like new",
|
|
102
|
+
"vintage",
|
|
103
|
+
"antique",
|
|
104
|
+
"collectible"
|
|
105
|
+
],
|
|
106
|
+
"slug": [
|
|
107
|
+
"item"
|
|
108
|
+
],
|
|
109
|
+
"assetPreview": [
|
|
110
|
+
"https://example.com/assets/item.png"
|
|
111
|
+
],
|
|
112
|
+
"assetType": [
|
|
113
|
+
".png",
|
|
114
|
+
".jpg",
|
|
115
|
+
".jpeg",
|
|
116
|
+
".heic",
|
|
117
|
+
".mp4",
|
|
118
|
+
".mov",
|
|
119
|
+
".avi"
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"event": "view item",
|
|
125
|
+
"weight": 8,
|
|
126
|
+
"properties": {
|
|
127
|
+
"item": {
|
|
128
|
+
"$type": "object[]",
|
|
129
|
+
"$keys": [
|
|
130
|
+
"amount",
|
|
131
|
+
"quantity",
|
|
132
|
+
"total_value",
|
|
133
|
+
"featured",
|
|
134
|
+
"category",
|
|
135
|
+
"descriptor",
|
|
136
|
+
"slug",
|
|
137
|
+
"assetPreview",
|
|
138
|
+
"assetType"
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
"amount": {
|
|
142
|
+
"$range": [
|
|
143
|
+
21,
|
|
144
|
+
80
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"quantity": {
|
|
148
|
+
"$range": [
|
|
149
|
+
2,
|
|
150
|
+
4
|
|
151
|
+
]
|
|
152
|
+
},
|
|
153
|
+
"total_value": {
|
|
154
|
+
"$range": [
|
|
155
|
+
99,
|
|
156
|
+
390
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
"featured": [
|
|
160
|
+
true,
|
|
161
|
+
false
|
|
162
|
+
],
|
|
163
|
+
"category": [
|
|
164
|
+
"electronics",
|
|
165
|
+
"books",
|
|
166
|
+
"clothing",
|
|
167
|
+
"home",
|
|
168
|
+
"garden",
|
|
169
|
+
"toys",
|
|
170
|
+
"sports",
|
|
171
|
+
"automotive",
|
|
172
|
+
"beauty",
|
|
173
|
+
"health",
|
|
174
|
+
"grocery",
|
|
175
|
+
"jewelry",
|
|
176
|
+
"shoes",
|
|
177
|
+
"tools",
|
|
178
|
+
"office supplies"
|
|
179
|
+
],
|
|
180
|
+
"descriptor": [
|
|
181
|
+
"brand new",
|
|
182
|
+
"open box",
|
|
183
|
+
"refurbished",
|
|
184
|
+
"used",
|
|
185
|
+
"like new",
|
|
186
|
+
"vintage",
|
|
187
|
+
"antique",
|
|
188
|
+
"collectible"
|
|
189
|
+
],
|
|
190
|
+
"slug": [
|
|
191
|
+
"item"
|
|
192
|
+
],
|
|
193
|
+
"assetPreview": [
|
|
194
|
+
"https://example.com/assets/item.png"
|
|
195
|
+
],
|
|
196
|
+
"assetType": [
|
|
197
|
+
".png",
|
|
198
|
+
".jpg",
|
|
199
|
+
".jpeg",
|
|
200
|
+
".heic",
|
|
201
|
+
".mp4",
|
|
202
|
+
".mov",
|
|
203
|
+
".avi"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"event": "save item",
|
|
209
|
+
"weight": 5,
|
|
210
|
+
"properties": {
|
|
211
|
+
"item": {
|
|
212
|
+
"$type": "object[]",
|
|
213
|
+
"$keys": [
|
|
214
|
+
"amount",
|
|
215
|
+
"quantity",
|
|
216
|
+
"total_value",
|
|
217
|
+
"featured",
|
|
218
|
+
"category",
|
|
219
|
+
"descriptor",
|
|
220
|
+
"slug",
|
|
221
|
+
"assetPreview",
|
|
222
|
+
"assetType"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
225
|
+
"amount": {
|
|
226
|
+
"$range": [
|
|
227
|
+
20,
|
|
228
|
+
77
|
|
229
|
+
]
|
|
230
|
+
},
|
|
231
|
+
"quantity": {
|
|
232
|
+
"$range": [
|
|
233
|
+
2,
|
|
234
|
+
4
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
"total_value": {
|
|
238
|
+
"$range": [
|
|
239
|
+
93,
|
|
240
|
+
413
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"featured": [
|
|
244
|
+
true,
|
|
245
|
+
false
|
|
246
|
+
],
|
|
247
|
+
"category": [
|
|
248
|
+
"electronics",
|
|
249
|
+
"books",
|
|
250
|
+
"clothing",
|
|
251
|
+
"home",
|
|
252
|
+
"garden",
|
|
253
|
+
"toys",
|
|
254
|
+
"sports",
|
|
255
|
+
"automotive",
|
|
256
|
+
"beauty",
|
|
257
|
+
"health",
|
|
258
|
+
"grocery",
|
|
259
|
+
"jewelry",
|
|
260
|
+
"shoes",
|
|
261
|
+
"tools",
|
|
262
|
+
"office supplies"
|
|
263
|
+
],
|
|
264
|
+
"descriptor": [
|
|
265
|
+
"brand new",
|
|
266
|
+
"open box",
|
|
267
|
+
"refurbished",
|
|
268
|
+
"used",
|
|
269
|
+
"like new",
|
|
270
|
+
"vintage",
|
|
271
|
+
"antique",
|
|
272
|
+
"collectible"
|
|
273
|
+
],
|
|
274
|
+
"slug": [
|
|
275
|
+
"item"
|
|
276
|
+
],
|
|
277
|
+
"assetPreview": [
|
|
278
|
+
"https://example.com/assets/item.png"
|
|
279
|
+
],
|
|
280
|
+
"assetType": [
|
|
281
|
+
".png",
|
|
282
|
+
".jpg",
|
|
283
|
+
".jpeg",
|
|
284
|
+
".heic",
|
|
285
|
+
".mp4",
|
|
286
|
+
".mov",
|
|
287
|
+
".avi"
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
"event": "page view",
|
|
293
|
+
"weight": 10,
|
|
294
|
+
"properties": {
|
|
295
|
+
"page": [
|
|
296
|
+
"/",
|
|
297
|
+
"/help",
|
|
298
|
+
"/account",
|
|
299
|
+
"/watch",
|
|
300
|
+
"/listen",
|
|
301
|
+
"/product",
|
|
302
|
+
"/people",
|
|
303
|
+
"/peace"
|
|
304
|
+
]
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"event": "watch video",
|
|
309
|
+
"weight": 8,
|
|
310
|
+
"properties": {
|
|
311
|
+
"watchTimeSec": {
|
|
312
|
+
"$range": [
|
|
313
|
+
128,
|
|
314
|
+
485
|
|
315
|
+
]
|
|
316
|
+
},
|
|
317
|
+
"quality": [
|
|
318
|
+
"2160p",
|
|
319
|
+
"1440p",
|
|
320
|
+
"1080p",
|
|
321
|
+
"720p",
|
|
322
|
+
"480p",
|
|
323
|
+
"360p",
|
|
324
|
+
"240p"
|
|
325
|
+
],
|
|
326
|
+
"format": [
|
|
327
|
+
"mp4",
|
|
328
|
+
"avi",
|
|
329
|
+
"mov",
|
|
330
|
+
"mpg"
|
|
331
|
+
],
|
|
332
|
+
"uploader_id": {
|
|
333
|
+
"$type": "string"
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"event": "like video",
|
|
339
|
+
"weight": 6
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"event": "dislike video",
|
|
343
|
+
"weight": 4
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"event": "sign up",
|
|
347
|
+
"isFirstEvent": true,
|
|
348
|
+
"properties": {
|
|
349
|
+
"signupMethod": [
|
|
350
|
+
"email",
|
|
351
|
+
"google",
|
|
352
|
+
"facebook",
|
|
353
|
+
"twitter",
|
|
354
|
+
"linkedin",
|
|
355
|
+
"github"
|
|
356
|
+
],
|
|
357
|
+
"referral": [
|
|
358
|
+
"none",
|
|
359
|
+
"friend",
|
|
360
|
+
"ad"
|
|
361
|
+
],
|
|
362
|
+
"signup_flow": [
|
|
363
|
+
"v1"
|
|
364
|
+
]
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
],
|
|
368
|
+
"superProps": {
|
|
369
|
+
"theme": [
|
|
370
|
+
"light",
|
|
371
|
+
"dark",
|
|
372
|
+
"custom"
|
|
373
|
+
]
|
|
374
|
+
},
|
|
375
|
+
"userProps": {
|
|
376
|
+
"title": {
|
|
377
|
+
"$type": "string"
|
|
378
|
+
},
|
|
379
|
+
"luckyNumber": {
|
|
380
|
+
"$range": [
|
|
381
|
+
102,
|
|
382
|
+
338
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
"spiritAnimal": [
|
|
386
|
+
"duck",
|
|
387
|
+
"dog",
|
|
388
|
+
"otter",
|
|
389
|
+
"penguin",
|
|
390
|
+
"cat",
|
|
391
|
+
"elephant",
|
|
392
|
+
"lion",
|
|
393
|
+
"cheetah",
|
|
394
|
+
"giraffe",
|
|
395
|
+
"zebra",
|
|
396
|
+
"rhino",
|
|
397
|
+
"hippo",
|
|
398
|
+
"whale",
|
|
399
|
+
"dolphin",
|
|
400
|
+
"shark",
|
|
401
|
+
"octopus",
|
|
402
|
+
"squid",
|
|
403
|
+
"jellyfish",
|
|
404
|
+
"starfish",
|
|
405
|
+
"seahorse",
|
|
406
|
+
"crab",
|
|
407
|
+
"lobster",
|
|
408
|
+
"shrimp",
|
|
409
|
+
"clam",
|
|
410
|
+
"snail",
|
|
411
|
+
"slug",
|
|
412
|
+
"butterfly",
|
|
413
|
+
"moth",
|
|
414
|
+
"bee",
|
|
415
|
+
"wasp",
|
|
416
|
+
"ant",
|
|
417
|
+
"beetle",
|
|
418
|
+
"ladybug",
|
|
419
|
+
"caterpillar",
|
|
420
|
+
"centipede",
|
|
421
|
+
"millipede",
|
|
422
|
+
"scorpion",
|
|
423
|
+
"spider",
|
|
424
|
+
"tarantula",
|
|
425
|
+
"tick",
|
|
426
|
+
"mite",
|
|
427
|
+
"mosquito",
|
|
428
|
+
"fly",
|
|
429
|
+
"dragonfly",
|
|
430
|
+
"damselfly",
|
|
431
|
+
"grasshopper",
|
|
432
|
+
"cricket",
|
|
433
|
+
"locust",
|
|
434
|
+
"mantis",
|
|
435
|
+
"cockroach",
|
|
436
|
+
"termite",
|
|
437
|
+
"praying mantis",
|
|
438
|
+
"walking stick",
|
|
439
|
+
"stick bug",
|
|
440
|
+
"leaf insect",
|
|
441
|
+
"lacewing",
|
|
442
|
+
"aphid",
|
|
443
|
+
"cicada",
|
|
444
|
+
"thrips",
|
|
445
|
+
"psyllid",
|
|
446
|
+
"scale insect",
|
|
447
|
+
"whitefly",
|
|
448
|
+
"mealybug",
|
|
449
|
+
"planthopper",
|
|
450
|
+
"leafhopper",
|
|
451
|
+
"treehopper",
|
|
452
|
+
"flea",
|
|
453
|
+
"louse",
|
|
454
|
+
"bedbug",
|
|
455
|
+
"flea beetle",
|
|
456
|
+
"weevil",
|
|
457
|
+
"longhorn beetle",
|
|
458
|
+
"leaf beetle",
|
|
459
|
+
"tiger beetle",
|
|
460
|
+
"ground beetle",
|
|
461
|
+
"lady beetle",
|
|
462
|
+
"firefly",
|
|
463
|
+
"click beetle",
|
|
464
|
+
"rove beetle",
|
|
465
|
+
"scarab beetle",
|
|
466
|
+
"dung beetle",
|
|
467
|
+
"stag beetle",
|
|
468
|
+
"rhinoceros beetle",
|
|
469
|
+
"hercules beetle",
|
|
470
|
+
"goliath beetle",
|
|
471
|
+
"jewel beetle",
|
|
472
|
+
"tortoise beetle"
|
|
473
|
+
]
|
|
474
|
+
},
|
|
475
|
+
"funnels": [
|
|
476
|
+
{
|
|
477
|
+
"sequence": [
|
|
478
|
+
"page view",
|
|
479
|
+
"view item",
|
|
480
|
+
"save item",
|
|
481
|
+
"page view",
|
|
482
|
+
"sign up"
|
|
483
|
+
],
|
|
484
|
+
"isFirstFunnel": true,
|
|
485
|
+
"conversionRate": 50,
|
|
486
|
+
"timeToConvert": 2,
|
|
487
|
+
"order": "first-and-last-fixed"
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"sequence": [
|
|
491
|
+
"watch video",
|
|
492
|
+
"like video",
|
|
493
|
+
"watch video",
|
|
494
|
+
"like video"
|
|
495
|
+
],
|
|
496
|
+
"conversionRate": 60,
|
|
497
|
+
"props": {
|
|
498
|
+
"videoCategory": [
|
|
499
|
+
"funny",
|
|
500
|
+
"educational",
|
|
501
|
+
"inspirational",
|
|
502
|
+
"music",
|
|
503
|
+
"news",
|
|
504
|
+
"sports",
|
|
505
|
+
"cooking",
|
|
506
|
+
"DIY",
|
|
507
|
+
"travel",
|
|
508
|
+
"gaming"
|
|
509
|
+
],
|
|
510
|
+
"quality": [
|
|
511
|
+
"2160p",
|
|
512
|
+
"1440p",
|
|
513
|
+
"1080p",
|
|
514
|
+
"720p",
|
|
515
|
+
"480p",
|
|
516
|
+
"360p",
|
|
517
|
+
"240p"
|
|
518
|
+
],
|
|
519
|
+
"format": [
|
|
520
|
+
"mp4",
|
|
521
|
+
"avi",
|
|
522
|
+
"mov",
|
|
523
|
+
"mpg"
|
|
524
|
+
],
|
|
525
|
+
"uploader_id": {
|
|
526
|
+
"$type": "string"
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"sequence": [
|
|
532
|
+
"watch video",
|
|
533
|
+
"dislike video",
|
|
534
|
+
"watch video",
|
|
535
|
+
"dislike video"
|
|
536
|
+
],
|
|
537
|
+
"conversionRate": 20,
|
|
538
|
+
"props": {
|
|
539
|
+
"videoCategory": [
|
|
540
|
+
"funny",
|
|
541
|
+
"educational",
|
|
542
|
+
"inspirational",
|
|
543
|
+
"music",
|
|
544
|
+
"news",
|
|
545
|
+
"sports",
|
|
546
|
+
"cooking",
|
|
547
|
+
"DIY",
|
|
548
|
+
"travel",
|
|
549
|
+
"gaming"
|
|
550
|
+
],
|
|
551
|
+
"quality": [
|
|
552
|
+
"2160p",
|
|
553
|
+
"1440p",
|
|
554
|
+
"1080p",
|
|
555
|
+
"720p",
|
|
556
|
+
"480p",
|
|
557
|
+
"360p",
|
|
558
|
+
"240p"
|
|
559
|
+
],
|
|
560
|
+
"format": [
|
|
561
|
+
"mp4",
|
|
562
|
+
"avi",
|
|
563
|
+
"mov",
|
|
564
|
+
"mpg"
|
|
565
|
+
],
|
|
566
|
+
"uploader_id": {
|
|
567
|
+
"$type": "string"
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"sequence": [
|
|
573
|
+
"view item",
|
|
574
|
+
"view item",
|
|
575
|
+
"add to cart",
|
|
576
|
+
"view item",
|
|
577
|
+
"add to cart",
|
|
578
|
+
"checkout"
|
|
579
|
+
],
|
|
580
|
+
"conversionRate": 15,
|
|
581
|
+
"order": "last-fixed",
|
|
582
|
+
"weight": 10,
|
|
583
|
+
"requireRepeats": true
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
}
|
|
@@ -4,7 +4,7 @@ import dayjs from "dayjs";
|
|
|
4
4
|
import utc from "dayjs/plugin/utc.js";
|
|
5
5
|
dayjs.extend(utc);
|
|
6
6
|
import { uid, comma } from 'ak-tools';
|
|
7
|
-
import {
|
|
7
|
+
import { weighNumRange, date, integer, weighChoices, decimal } from "../../lib/utils/utils.js";
|
|
8
8
|
|
|
9
9
|
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
10
|
const videoCategories = ["funny", "educational", "inspirational", "music", "news", "sports", "cooking", "DIY", "travel", "gaming"];
|
|
@@ -165,13 +165,31 @@ const config = {
|
|
|
165
165
|
weight: 4,
|
|
166
166
|
properties: {
|
|
167
167
|
item: makeProducts(1),
|
|
168
|
+
amount: weighNumRange(1, 100, 0.3),
|
|
169
|
+
quantity: weighNumRange(1, 5, 0.3),
|
|
170
|
+
total_value: weighNumRange(1, 500, 0.3),
|
|
171
|
+
featured: [true, false, false],
|
|
172
|
+
category: ["electronics", "books", "clothing", "home", "garden", "toys", "sports", "automotive", "beauty", "health", "grocery", "jewelry", "shoes", "tools", "office supplies"],
|
|
173
|
+
descriptor: ["brand new", "open box", "refurbished", "used", "like new", "vintage", "antique", "collectible"],
|
|
174
|
+
slug: ["item"],
|
|
175
|
+
assetPreview: ["https://example.com/assets/item.png"],
|
|
176
|
+
assetType: [".png", ".jpg", ".jpeg", ".heic", ".mp4", ".mov", ".avi"],
|
|
168
177
|
}
|
|
169
178
|
},
|
|
170
179
|
{
|
|
171
180
|
event: "view item",
|
|
172
181
|
weight: 8,
|
|
173
182
|
properties: {
|
|
174
|
-
item: makeProducts(1)
|
|
183
|
+
item: makeProducts(1),
|
|
184
|
+
amount: weighNumRange(1, 100, 0.3),
|
|
185
|
+
quantity: weighNumRange(1, 5, 0.3),
|
|
186
|
+
total_value: weighNumRange(1, 500, 0.3),
|
|
187
|
+
featured: [true, false, false],
|
|
188
|
+
category: ["electronics", "books", "clothing", "home", "garden", "toys", "sports", "automotive", "beauty", "health", "grocery", "jewelry", "shoes", "tools", "office supplies"],
|
|
189
|
+
descriptor: ["brand new", "open box", "refurbished", "used", "like new", "vintage", "antique", "collectible"],
|
|
190
|
+
slug: ["item"],
|
|
191
|
+
assetPreview: ["https://example.com/assets/item.png"],
|
|
192
|
+
assetType: [".png", ".jpg", ".jpeg", ".heic", ".mp4", ".mov", ".avi"],
|
|
175
193
|
}
|
|
176
194
|
},
|
|
177
195
|
{
|
|
@@ -179,6 +197,15 @@ const config = {
|
|
|
179
197
|
weight: 5,
|
|
180
198
|
properties: {
|
|
181
199
|
item: makeProducts(1),
|
|
200
|
+
amount: weighNumRange(1, 100, 0.3),
|
|
201
|
+
quantity: weighNumRange(1, 5, 0.3),
|
|
202
|
+
total_value: weighNumRange(1, 500, 0.3),
|
|
203
|
+
featured: [true, false, false],
|
|
204
|
+
category: ["electronics", "books", "clothing", "home", "garden", "toys", "sports", "automotive", "beauty", "health", "grocery", "jewelry", "shoes", "tools", "office supplies"],
|
|
205
|
+
descriptor: ["brand new", "open box", "refurbished", "used", "like new", "vintage", "antique", "collectible"],
|
|
206
|
+
slug: ["item"],
|
|
207
|
+
assetPreview: ["https://example.com/assets/item.png"],
|
|
208
|
+
assetType: [".png", ".jpg", ".jpeg", ".heic", ".mp4", ".mov", ".avi"],
|
|
182
209
|
}
|
|
183
210
|
},
|
|
184
211
|
{
|
|
@@ -193,6 +220,9 @@ const config = {
|
|
|
193
220
|
weight: 8,
|
|
194
221
|
properties: {
|
|
195
222
|
watchTimeSec: weighNumRange(10, 600, .25),
|
|
223
|
+
quality: ["2160p", "1440p", "1080p", "720p", "480p", "360p", "240p"],
|
|
224
|
+
format: ["mp4", "avi", "mov", "mpg"],
|
|
225
|
+
uploader_id: chance.guid.bind(chance),
|
|
196
226
|
}
|
|
197
227
|
},
|
|
198
228
|
{
|
|
@@ -216,6 +246,7 @@ const config = {
|
|
|
216
246
|
properties: {
|
|
217
247
|
signupMethod: ["email", "google", "facebook", "twitter", "linkedin", "github"],
|
|
218
248
|
referral: weighChoices(["none", "none", "none", "friend", "ad", "ad", "ad", "friend", "friend", "friend", "friend"]),
|
|
249
|
+
signup_flow: ["v1"],
|
|
219
250
|
}
|
|
220
251
|
},
|
|
221
252
|
|
|
@@ -265,7 +296,7 @@ const config = {
|
|
|
265
296
|
|
|
266
297
|
],
|
|
267
298
|
superProps: {
|
|
268
|
-
theme:
|
|
299
|
+
theme: ["light", "dark", "custom", "light", "dark"],
|
|
269
300
|
},
|
|
270
301
|
/*
|
|
271
302
|
user properties work the same as event properties
|