mercur-cli 0.1.5 → 0.1.7

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 (42) hide show
  1. package/cli/backend-setup.js +2 -2
  2. package/cli/data.js +3 -0
  3. package/cli/frontend-setup.js +17 -0
  4. package/cli/full-install.js +7 -1
  5. package/cli/pull-and-install.js +13 -1
  6. package/cli/start.js +14 -1
  7. package/index.js +5 -0
  8. package/package.json +1 -1
  9. package/mercur/backend/.env.template +0 -8
  10. package/mercur/backend/.env.test +0 -0
  11. package/mercur/backend/.github/dependabot.yml +0 -21
  12. package/mercur/backend/.github/scripts/wait-for-server-live.sh +0 -29
  13. package/mercur/backend/.github/workflows/test-cli.yml +0 -222
  14. package/mercur/backend/.github/workflows/update-preview-deps-ci.yml +0 -69
  15. package/mercur/backend/.github/workflows/update-preview-deps.yml +0 -67
  16. package/mercur/backend/.vscode/settings.json +0 -2
  17. package/mercur/backend/.yarnrc.yml +0 -1
  18. package/mercur/backend/README.md +0 -62
  19. package/mercur/backend/instrumentation.ts +0 -24
  20. package/mercur/backend/integration-tests/http/README.md +0 -29
  21. package/mercur/backend/integration-tests/http/health.spec.ts +0 -15
  22. package/mercur/backend/integration-tests/setup.js +0 -3
  23. package/mercur/backend/jest.config.js +0 -27
  24. package/mercur/backend/medusa-config.ts +0 -88
  25. package/mercur/backend/package.json +0 -65
  26. package/mercur/backend/src/admin/README.md +0 -33
  27. package/mercur/backend/src/admin/tsconfig.json +0 -24
  28. package/mercur/backend/src/admin/vite-env.d.ts +0 -1
  29. package/mercur/backend/src/api/README.md +0 -135
  30. package/mercur/backend/src/api/admin/custom/route.ts +0 -8
  31. package/mercur/backend/src/api/store/custom/route.ts +0 -8
  32. package/mercur/backend/src/jobs/README.md +0 -38
  33. package/mercur/backend/src/links/README.md +0 -26
  34. package/mercur/backend/src/modules/README.md +0 -117
  35. package/mercur/backend/src/scripts/README.md +0 -63
  36. package/mercur/backend/src/scripts/seed/seed-functions.ts +0 -519
  37. package/mercur/backend/src/scripts/seed/seed-products.ts +0 -601
  38. package/mercur/backend/src/scripts/seed.ts +0 -75
  39. package/mercur/backend/src/subscribers/README.md +0 -61
  40. package/mercur/backend/src/workflows/README.md +0 -81
  41. package/mercur/backend/tsconfig.json +0 -35
  42. package/mercur/backend/yarn.lock +0 -11469
@@ -1,601 +0,0 @@
1
- import { ProductStatus } from '@medusajs/framework/utils'
2
-
3
- export const productsToInsert = [
4
- {
5
- title: 'AIR FORCE 1 LUXE UNISEX Sneakers',
6
- handle: 'air-force-1-luxe-unisex-sneakers',
7
- subtitle: ' foam midsole with Air-Sole unit',
8
- description:
9
- 'The iconic Air Force 1 with premium materials and enhanced comfort. Features a full-grain leather upper',
10
- is_giftcard: false,
11
- status: ProductStatus.PUBLISHED,
12
- thumbnail:
13
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/AIR-FORCE-1-LUXE-UNISEX-1 -01JRYW1QY88H8T98HNPZF7NJTF.png',
14
- options: [
15
- {
16
- title: 'Color',
17
- values: ['White']
18
- }
19
- ],
20
- variants: [
21
- {
22
- title: 'White',
23
- allow_backorder: false,
24
- manage_inventory: true,
25
- prices: [
26
- {
27
- amount: 99,
28
- currency_code: 'eur'
29
- }
30
- ],
31
- options: {
32
- Color: 'White'
33
- }
34
- }
35
- ],
36
- discountable: true,
37
- images: [
38
- {
39
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/AIR-FORCE-1-LUXE-UNISEX-1 -01JRYW1QY88H8T98HNPZF7NJTF.png'
40
- },
41
- {
42
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/AIR-FORCE-1-LUXE-UNISEX-2 -01JRYW1QY96TV72HCK602R8ASK.png'
43
- }
44
- ]
45
- },
46
- {
47
- title: 'New Runner Flag Sneakers',
48
- handle: 'new-runner-flag',
49
- subtitle: '',
50
- description:
51
- 'Heritage-inspired running silhouette featuring distinctive flag details and national color accents. Combines lightweight cushioning, breathable materials, and nostalgic design elements for a unique statement piece with exceptional comfort.',
52
- is_giftcard: false,
53
- status: ProductStatus.PUBLISHED,
54
- thumbnail:
55
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/New-Runner-Flag-1-01JRYW0TG1KQ5T688H810M9BE3.png',
56
- discountable: true,
57
- variants: [
58
- {
59
- title: 'Brown / 41 / New',
60
- allow_backorder: false,
61
- manage_inventory: true,
62
- options: { Color: 'Brown', Size: '41', Condition: 'New' },
63
- variant_rank: 0,
64
- prices: [
65
- {
66
- currency_code: 'eur',
67
- amount: 59
68
- }
69
- ]
70
- },
71
- {
72
- title: 'Brown / 40 / New',
73
- allow_backorder: false,
74
- manage_inventory: true,
75
- options: { Color: 'Brown', Size: '40', Condition: 'New' },
76
- variant_rank: 1,
77
- prices: [
78
- {
79
- currency_code: 'eur',
80
- amount: 59
81
- }
82
- ]
83
- },
84
- {
85
- title: 'Brown / 39 / New',
86
- allow_backorder: false,
87
- manage_inventory: true,
88
- variant_rank: 2,
89
- options: { Color: 'Brown', Size: '39', Condition: 'New' },
90
- prices: [
91
- {
92
- currency_code: 'eur',
93
- amount: 59
94
- }
95
- ]
96
- },
97
- {
98
- title: 'Brown / 38 / New',
99
- allow_backorder: false,
100
- manage_inventory: true,
101
- variant_rank: 3,
102
- options: { Color: 'Brown', Size: '38', Condition: 'New' },
103
- prices: [
104
- {
105
- currency_code: 'eur',
106
- amount: 59
107
- }
108
- ]
109
- },
110
- {
111
- title: 'Brown / 41 / Used',
112
- allow_backorder: false,
113
- manage_inventory: true,
114
- variant_rank: 4,
115
- options: { Color: 'Brown', Size: '41', Condition: 'Used' },
116
- prices: [
117
- {
118
- currency_code: 'eur',
119
- amount: 39
120
- }
121
- ]
122
- },
123
- {
124
- title: 'Brown / 40 / Used',
125
- allow_backorder: false,
126
- manage_inventory: true,
127
- variant_rank: 5,
128
- options: { Color: 'Brown', Size: '40', Condition: 'Used' },
129
- prices: [
130
- {
131
- currency_code: 'eur',
132
- amount: 39
133
- }
134
- ]
135
- },
136
- {
137
- title: 'Brown / 39 / Used',
138
- allow_backorder: false,
139
- manage_inventory: true,
140
- variant_rank: 5,
141
- options: { Color: 'Brown', Size: '39', Condition: 'Used' },
142
- prices: [
143
- {
144
- currency_code: 'eur',
145
- amount: 39
146
- }
147
- ]
148
- },
149
- {
150
- title: 'Brown / 38 / Used',
151
- allow_backorder: false,
152
- manage_inventory: true,
153
- variant_rank: 5,
154
- options: { Color: 'Brown', Size: '38', Condition: 'Used' },
155
- prices: [
156
- {
157
- currency_code: 'eur',
158
- amount: 39
159
- }
160
- ]
161
- }
162
- ],
163
- options: [
164
- {
165
- title: 'Size',
166
- values: ['38', '39', '40', '41']
167
- },
168
- {
169
- title: 'Color',
170
- values: ['Brown']
171
- },
172
- {
173
- title: 'Condition',
174
- values: ['New', 'Used']
175
- }
176
- ],
177
- images: [
178
- {
179
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/New-Runner-Flag-1-01JRYW0TG1KQ5T688H810M9BE3.png'
180
- }
181
- ]
182
- },
183
- {
184
- title: 'CLASSIC CUPSOLE Sneakers',
185
- handle: 'classic-cupsole-sneakers',
186
- subtitle: '',
187
- description: 'Retro court style reimagined for today',
188
- is_giftcard: false,
189
- status: ProductStatus.PUBLISHED,
190
- thumbnail:
191
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/CLASSIC-CUPSOLE-1 -01JRYVZQBJ85B2MPZ3Q0KTBYGA.png',
192
- discountable: true,
193
- variants: [
194
- {
195
- title: 'White / Used / 41',
196
- allow_backorder: false,
197
- manage_inventory: true,
198
- variant_rank: 0,
199
- options: {
200
- Color: 'White',
201
- Size: '41',
202
- Condition: 'Used'
203
- },
204
- prices: [
205
- {
206
- currency_code: 'eur',
207
- amount: 59
208
- }
209
- ]
210
- },
211
- {
212
- title: 'Black / Used / 41',
213
- allow_backorder: false,
214
- manage_inventory: true,
215
- variant_rank: 1,
216
- options: {
217
- Color: 'Black',
218
- Size: '41',
219
- Condition: 'Used'
220
- },
221
- prices: [
222
- {
223
- currency_code: 'eur',
224
- amount: 69
225
- }
226
- ]
227
- }
228
- ],
229
- options: [
230
- {
231
- title: 'Size',
232
- values: ['40', '41']
233
- },
234
- {
235
- title: 'Color',
236
- values: ['White', 'Black']
237
- },
238
- {
239
- title: 'Condition',
240
- values: ['New', 'Used']
241
- }
242
- ],
243
- images: [
244
- {
245
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/CLASSIC-CUPSOLE-1 -01JRYVZQBJ85B2MPZ3Q0KTBYGA.png'
246
- }
247
- ]
248
- },
249
- {
250
- title: 'STORM 96 2K LITE Sneakers',
251
- handle: 'storm-96-2k-lite',
252
- subtitle: '',
253
- description:
254
- "Retro-futuristic design combining '90s athletic aesthetics with contemporary technology. Features sculpted, lightweight midsole, mixed material upper, and unique lacing system for stand-out street style with all-day wearability.",
255
- is_giftcard: false,
256
- status: ProductStatus.PUBLISHED,
257
- thumbnail:
258
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/STORM-96-2K-LITE-1-01JRYVZ58MYDM626NAX1E9ZDDQ.png',
259
- discountable: true,
260
- variants: [
261
- {
262
- title: 'Black / 42',
263
- allow_backorder: false,
264
- manage_inventory: true,
265
- variant_rank: 0,
266
- options: {
267
- Color: 'Black',
268
- Size: '42'
269
- },
270
- prices: [
271
- {
272
- currency_code: 'eur',
273
- amount: 79
274
- }
275
- ]
276
- },
277
- {
278
- title: 'Black / 41',
279
- allow_backorder: false,
280
- manage_inventory: true,
281
- variant_rank: 1,
282
- options: {
283
- Color: 'Black',
284
- Size: '41'
285
- },
286
- prices: [
287
- {
288
- currency_code: 'eur',
289
- amount: 79
290
- }
291
- ]
292
- }
293
- ],
294
- options: [
295
- { title: 'Size', values: ['41', '42'] },
296
- { title: 'Color', values: ['Black'] }
297
- ],
298
- images: [
299
- {
300
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/STORM-96-2K-LITE-1-01JRYVZ58MYDM626NAX1E9ZDDQ.png'
301
- }
302
- ]
303
- },
304
- {
305
- title: 'U574 UNISEX Sneakers',
306
- handle: 'u574-unisex-sneakers',
307
- subtitle: '',
308
- description:
309
- 'Featuring the classic 574 silhouette with updated materials and cushioning. Includes ENCAP midsole technology for support and maximum durability, plus a suede/mesh upper for breathability and style.',
310
- is_giftcard: false,
311
- status: ProductStatus.PUBLISHED,
312
- thumbnail:
313
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/U574-UNISEX-1-01JRYVYJVR8ZWQF87V8NS2HHX9.png',
314
- discountable: true,
315
- variants: [
316
- {
317
- title: '37 / Orange / New',
318
- allow_backorder: false,
319
- manage_inventory: true,
320
- variant_rank: 0,
321
- options: {
322
- Color: 'Orange',
323
- Size: '37',
324
- Condition: 'New'
325
- },
326
- prices: [
327
- {
328
- currency_code: 'eur',
329
- amount: 87
330
- }
331
- ]
332
- }
333
- ],
334
- options: [
335
- { title: 'Color', values: ['Orange'] },
336
- { title: 'Size', values: ['37'] },
337
- { title: 'Condition', values: ['Used', 'New'] }
338
- ],
339
- images: [
340
- {
341
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/U574-UNISEX-1-01JRYVYJVR8ZWQF87V8NS2HHX9.png'
342
- },
343
- {
344
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/U574-UNISEX-2-01JRYVYJVTX6NRM2CCEPR6T994.png'
345
- }
346
- ]
347
- },
348
- {
349
- title: 'Air VaporMax 2023 Flyknit Triple Black Sneakers',
350
- handle: 'air-vapormax-2023-flyknit-triple-black-sneakers',
351
- subtitle: '',
352
- description:
353
- 'Revolutionary cushioning with VaporMax Air technology and lightweight Flyknit construction. The unique sole eliminates excess weight, while the sleek triple black colorway offers versatile styling options.',
354
- is_giftcard: false,
355
- status: ProductStatus.PUBLISHED,
356
- thumbnail:
357
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/Air-VaporMax-2023-Flyknit-Triple-Black-1 -01JRYVXVMV7D60YFGHGCY7FD1K.png',
358
- discountable: true,
359
- variants: [
360
- {
361
- title: 'Black / 41 / New',
362
- allow_backorder: false,
363
- manage_inventory: true,
364
- variant_rank: 0,
365
- options: { Color: 'Black', Size: '41', Condition: 'New' },
366
- prices: [
367
- {
368
- currency_code: 'eur',
369
- amount: 99
370
- }
371
- ]
372
- }
373
- ],
374
- options: [
375
- { title: 'Color', values: ['Black'] },
376
- { title: 'Size', values: ['41'] },
377
- { title: 'Condition', values: ['Used', 'New'] }
378
- ],
379
- images: [
380
- {
381
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/Air-VaporMax-2023-Flyknit-Triple-Black-1 -01JRYVXVMV7D60YFGHGCY7FD1K.png'
382
- },
383
- {
384
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/Air-VaporMax-2023-Flyknit-Triple-Black-2 -01JRYVXVMZS1REFQNM6WKJWDPG.png'
385
- }
386
- ]
387
- },
388
- {
389
- title: 'Reelwind Sneakers',
390
- handle: 'reelwind-sneakers',
391
- subtitle: '',
392
- description:
393
- 'Performance-meets-lifestyle design with responsive cushioning and flexible support. Made with recycled materials, featuring a breathable upper and durable rubber outsole for all-day comfort.',
394
- is_giftcard: false,
395
- status: ProductStatus.PUBLISHED,
396
- thumbnail:
397
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/Reelwind-1-01JRYVWVF8XVHG23RXMNAY2EFJ.png',
398
- discountable: true,
399
- variants: [
400
- {
401
- title: 'Red / 38',
402
- allow_backorder: false,
403
- manage_inventory: true,
404
- variant_rank: 0,
405
- options: { Color: 'Red', Size: '38' },
406
- prices: [
407
- {
408
- currency_code: 'eur',
409
- amount: 59
410
- }
411
- ]
412
- }
413
- ],
414
- options: [
415
- {
416
- title: 'Size',
417
- values: ['38']
418
- },
419
- {
420
- title: 'Color',
421
- values: ['Red']
422
- }
423
- ],
424
- images: [
425
- {
426
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/Reelwind-1-01JRYVWVF8XVHG23RXMNAY2EFJ.png'
427
- }
428
- ]
429
- },
430
- {
431
- title: 'Cool Balance U9060EEE Sneakers',
432
- handle: 'u9060eee',
433
- subtitle: '',
434
- description:
435
- 'Modern interpretation of the classic running silhouette with exaggerated proportions and enhanced cushioning. Features a combination of premium suede and mesh with an angular, sculptural midsole design for contemporary street style.',
436
- is_giftcard: false,
437
- status: ProductStatus.PUBLISHED,
438
- thumbnail:
439
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/U9060EEE-1-01JRYVW83SET4B4ZYZVSK39FDF.png',
440
- discountable: true,
441
- variants: [
442
- {
443
- title: 'Gray / Used',
444
- allow_backorder: false,
445
- manage_inventory: true,
446
- variant_rank: 1,
447
- options: {
448
- Color: 'Gray',
449
- Condition: 'Used'
450
- },
451
- prices: [
452
- {
453
- currency_code: 'eur',
454
- amount: 39
455
- }
456
- ]
457
- },
458
- {
459
- title: 'Gray / New',
460
- allow_backorder: false,
461
- manage_inventory: true,
462
- variant_rank: 0,
463
- options: { Color: 'Gray', Condition: 'New' },
464
- prices: [
465
- {
466
- currency_code: 'eur',
467
- amount: 79
468
- }
469
- ]
470
- }
471
- ],
472
- options: [
473
- {
474
- title: 'Condition',
475
- values: ['New', 'Used']
476
- },
477
- {
478
- title: 'Color',
479
- values: ['Gray']
480
- }
481
- ],
482
- images: [
483
- {
484
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/U9060EEE-1-01JRYVW83SET4B4ZYZVSK39FDF.png'
485
- }
486
- ]
487
- },
488
- {
489
- title: 'Brown Sneakers',
490
- handle: 'brown-sneakers',
491
- subtitle: 'Cosy',
492
- description:
493
- 'Classic brown sneakers with leather and suede upper, and a durable rubber sole. Timeless and versatile.',
494
- is_giftcard: false,
495
- status: ProductStatus.PUBLISHED,
496
- thumbnail:
497
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/u2735941527_Product_photography_of_brown_Adidas_samba_Sneaker_80c8f007-dcfa-4e5b-b8ac-bf88851a7376_0-01JRWZZ5V9M2ZC0K0WSC96E4AZ.png',
498
- discountable: true,
499
- variants: [
500
- {
501
- title: 'Brown / New',
502
- allow_backorder: false,
503
- manage_inventory: true,
504
- variant_rank: 0,
505
- options: {
506
- Color: 'Brown',
507
- Condition: 'New'
508
- },
509
- prices: [
510
- {
511
- currency_code: 'eur',
512
- amount: 89
513
- }
514
- ]
515
- }
516
- ],
517
- options: [
518
- { title: 'Color', values: ['Brown'] },
519
- { title: 'Condition', values: ['New'] }
520
- ],
521
- images: [
522
- {
523
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/u2735941527_Product_photography_of_brown_Adidas_samba_Sneaker_80c8f007-dcfa-4e5b-b8ac-bf88851a7376_0-01JRWZZ5V9M2ZC0K0WSC96E4AZ.png'
524
- }
525
- ]
526
- },
527
- {
528
- title: 'Green high-tops',
529
- handle: 'green-high-tops',
530
- subtitle: '',
531
- description:
532
- 'Bold green high-tops with classic canvas upper and rubber sole. A timeless streetwear staple.',
533
- is_giftcard: false,
534
- status: ProductStatus.PUBLISHED,
535
- thumbnail:
536
- 'https://mercur-connect.s3.eu-central-1.amazonaws.com/u2735941527_Product_photography_of_green_converse_Sneakers_no_1ef027ea-f31f-4996-b419-63f85716a277_1-01JRWZYCWYAD4QVMRRTFVWHHDK.png',
537
- discountable: true,
538
- variants: [
539
- {
540
- title: 'Green / 40 / New',
541
- allow_backorder: false,
542
- manage_inventory: true,
543
- variant_rank: 0,
544
- options: { Color: 'Green', Size: '40', Condition: 'New' },
545
- prices: [
546
- {
547
- currency_code: 'eur',
548
- amount: 99
549
- }
550
- ]
551
- }
552
- ],
553
- options: [
554
- { title: 'Color', values: ['Green'] },
555
- { title: 'Size', values: ['40'] },
556
- { title: 'Condition', values: ['Used', 'New'] }
557
- ],
558
- images: [
559
- {
560
- url: 'https://mercur-connect.s3.eu-central-1.amazonaws.com/u2735941527_Product_photography_of_green_converse_Sneakers_no_1ef027ea-f31f-4996-b419-63f85716a277_1-01JRWZYCWYAD4QVMRRTFVWHHDK.png'
561
- }
562
- ]
563
- },
564
- {
565
- title: 'High Sneakers',
566
- handle: 'high-sneakers',
567
- subtitle: 'Purple, beige, and orange',
568
- description:
569
- 'High Sneakers in a bold mix of purple, beige, and orange. Premium materials, iconic silhouette, and standout color blocking.',
570
- is_giftcard: false,
571
- status: ProductStatus.PUBLISHED,
572
- thumbnail: 'https://i.imgur.com/zIcEOTS.png',
573
- discountable: true,
574
- variants: [
575
- {
576
- title: 'High Sneakers',
577
- allow_backorder: false,
578
- manage_inventory: true,
579
- variant_rank: 0,
580
- options: { Color: 'Purple' },
581
- prices: [
582
- {
583
- currency_code: 'eur',
584
- amount: 119
585
- }
586
- ]
587
- }
588
- ],
589
- options: [
590
- {
591
- title: 'Color',
592
- values: ['Purple']
593
- }
594
- ],
595
- images: [
596
- {
597
- url: 'https://i.imgur.com/zIcEOTS.png'
598
- }
599
- ]
600
- }
601
- ]
@@ -1,75 +0,0 @@
1
- import { ExecArgs } from '@medusajs/framework/types'
2
- import { ContainerRegistrationKeys } from '@medusajs/framework/utils'
3
-
4
- import {
5
- createConfigurationRules,
6
- createDefaultCommissionLevel,
7
- createInventoryItemStockLevels,
8
- createProductCategories,
9
- createProductCollections,
10
- createPublishableKey,
11
- createRegions,
12
- createSalesChannel,
13
- createSeller,
14
- createSellerProducts,
15
- createSellerShippingOption,
16
- createSellerStockLocation,
17
- createServiceZoneForFulfillmentSet,
18
- createStore
19
- } from './seed/seed-functions'
20
-
21
- export default async function seedMarketplaceData({ container }: ExecArgs) {
22
- const logger = container.resolve(ContainerRegistrationKeys.LOGGER)
23
-
24
- logger.info('=== Configurations ===')
25
- logger.info('Creating default sales channel...')
26
- const salesChannel = await createSalesChannel(container)
27
- logger.info('Creating default regions...')
28
- const region = await createRegions(container)
29
- logger.info('Creating publishable api key...')
30
- const apiKey = await createPublishableKey(container, salesChannel.id)
31
- logger.info('Creating store data...')
32
- await createStore(container, salesChannel.id, region.id)
33
- logger.info('Creating configuration rules...')
34
- await createConfigurationRules(container)
35
-
36
- logger.info('=== Example data ===')
37
- logger.info('Creating product categories...')
38
- await createProductCategories(container)
39
- logger.info('Creating product collections...')
40
- await createProductCollections(container)
41
- logger.info('Creating seller...')
42
- const seller = await createSeller(container)
43
- logger.info('Creating seller stock location...')
44
- const stockLocation = await createSellerStockLocation(
45
- container,
46
- seller.id,
47
- salesChannel.id
48
- )
49
- logger.info('Creating service zone...')
50
- const serviceZone = await createServiceZoneForFulfillmentSet(
51
- container,
52
- seller.id,
53
- stockLocation.fulfillment_sets[0].id
54
- )
55
- logger.info('Creating seller shipping option...')
56
- await createSellerShippingOption(
57
- container,
58
- seller.id,
59
- seller.name,
60
- region.id,
61
- serviceZone.id
62
- )
63
- logger.info('Creating seller products...')
64
- await createSellerProducts(container, seller.id, salesChannel.id)
65
- logger.info('Creating inventory levels...')
66
- await createInventoryItemStockLevels(container, stockLocation.id)
67
- logger.info('Creating default commission...')
68
- await createDefaultCommissionLevel(container)
69
-
70
- logger.info('=== Finished ===')
71
- logger.info(`Publishable api key: ${apiKey.token}`)
72
- logger.info(`Vendor panel access:`)
73
- logger.info(`email: seller@mercurjs.com`)
74
- logger.info(`pass: secret`)
75
- }