@cimplify/sdk 0.44.3 → 0.44.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/dist/mock/cli.mjs +109 -32
- package/dist/mock/library.js +109 -32
- package/dist/mock/library.mjs +109 -32
- package/dist/mock/msw.js +109 -32
- package/dist/mock/msw.mjs +109 -32
- package/package.json +1 -1
package/dist/mock/library.mjs
CHANGED
|
@@ -6406,6 +6406,31 @@ function seedReesa(registry) {
|
|
|
6406
6406
|
|
|
6407
6407
|
// src/mock/seeds/restaurant.ts
|
|
6408
6408
|
var ISO4 = "2026-01-01T00:00:00.000Z";
|
|
6409
|
+
var PHOTO = {
|
|
6410
|
+
"business-hero": "1414235077428-338989a2e8c0",
|
|
6411
|
+
kelewele: "1599487488170-d11ec9c172f0",
|
|
6412
|
+
"spring-rolls": "1559339352-11d035aa65de",
|
|
6413
|
+
"soup-of-the-day": "1547592180-85f173990554",
|
|
6414
|
+
"jollof-rice": "1546069901-d5bfd2cbfb1f",
|
|
6415
|
+
"banku-tilapia": "1485921325833-c519f76c4927",
|
|
6416
|
+
"fufu-light-soup": "1602253057119-44d745d9b860",
|
|
6417
|
+
waakye: "1565299624946-b28f40a0ae38",
|
|
6418
|
+
"grilled-chicken": "1598103442097-8b74394b95c6",
|
|
6419
|
+
burger: "1568901346375-23c9450c58cd",
|
|
6420
|
+
"yam-fries": "1576107232684-1279f390859f",
|
|
6421
|
+
"fried-plantain": "1493770348161-369560ae357d",
|
|
6422
|
+
salad: "1512621776951-a57141f2eefd",
|
|
6423
|
+
"ice-cream": "1488900128323-21503983a07e",
|
|
6424
|
+
"cake-slice": "1565958011703-44f9829ba187",
|
|
6425
|
+
"fruit-bowl": "1490474418585-ba9bad8fd0ea",
|
|
6426
|
+
"soft-drink": "1581636625402-29b2a704ef13",
|
|
6427
|
+
sobolo: "1556679343-c7306c1976bc",
|
|
6428
|
+
"fresh-juice": "1610970881699-44a5587cabec",
|
|
6429
|
+
water: "1564325724739-bae0bd08762c",
|
|
6430
|
+
feast: "1559847844-5315695dadae",
|
|
6431
|
+
byo: "1551782450-a2132b4ba21d"
|
|
6432
|
+
};
|
|
6433
|
+
var photoFor = (slug) => seedImage("restaurant", slug, PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
6409
6434
|
function seedRestaurant(registry) {
|
|
6410
6435
|
const businessId = "bus_mamas_kitchen";
|
|
6411
6436
|
const business = {
|
|
@@ -6419,7 +6444,7 @@ function seedRestaurant(registry) {
|
|
|
6419
6444
|
default_address: "8 Ring Road, East Legon, Accra",
|
|
6420
6445
|
default_offers_table_service: true,
|
|
6421
6446
|
default_accepts_online_orders: true,
|
|
6422
|
-
image: "
|
|
6447
|
+
image: photoFor("business-hero"),
|
|
6423
6448
|
status: "active",
|
|
6424
6449
|
created_at: ISO4,
|
|
6425
6450
|
updated_at: ISO4,
|
|
@@ -6490,8 +6515,8 @@ function seedRestaurant(registry) {
|
|
|
6490
6515
|
product_type: "product",
|
|
6491
6516
|
base_price: p.price,
|
|
6492
6517
|
currency: "GHS",
|
|
6493
|
-
image:
|
|
6494
|
-
images: [
|
|
6518
|
+
image: photoFor(p.slug),
|
|
6519
|
+
images: [photoFor(p.slug)],
|
|
6495
6520
|
is_available: true,
|
|
6496
6521
|
category_ids: [catId],
|
|
6497
6522
|
collection_ids: [],
|
|
@@ -6729,8 +6754,8 @@ function seedRestaurant(registry) {
|
|
|
6729
6754
|
product_type: "bundle",
|
|
6730
6755
|
base_price: "180.00",
|
|
6731
6756
|
currency: "GHS",
|
|
6732
|
-
image: "
|
|
6733
|
-
images: ["
|
|
6757
|
+
image: photoFor("feast"),
|
|
6758
|
+
images: [photoFor("feast")],
|
|
6734
6759
|
is_available: true,
|
|
6735
6760
|
category_ids: [catIds.get("mains")],
|
|
6736
6761
|
collection_ids: [],
|
|
@@ -6765,8 +6790,8 @@ function seedRestaurant(registry) {
|
|
|
6765
6790
|
product_type: "composite",
|
|
6766
6791
|
base_price: "0.00",
|
|
6767
6792
|
currency: "GHS",
|
|
6768
|
-
image: "
|
|
6769
|
-
images: ["
|
|
6793
|
+
image: photoFor("byo"),
|
|
6794
|
+
images: [photoFor("byo")],
|
|
6770
6795
|
is_available: true,
|
|
6771
6796
|
category_ids: [catIds.get("mains")],
|
|
6772
6797
|
collection_ids: [],
|
|
@@ -6865,7 +6890,7 @@ function seedRestaurant(registry) {
|
|
|
6865
6890
|
|
|
6866
6891
|
// src/mock/seeds/retail.ts
|
|
6867
6892
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
6868
|
-
var
|
|
6893
|
+
var photoFor2 = (slug) => seedImage("retail", slug);
|
|
6869
6894
|
function seedRetail(registry) {
|
|
6870
6895
|
const businessId = "bus_currents_electronics";
|
|
6871
6896
|
const business = {
|
|
@@ -6949,8 +6974,8 @@ function seedRetail(registry) {
|
|
|
6949
6974
|
product_type: "product",
|
|
6950
6975
|
base_price: p.price,
|
|
6951
6976
|
currency: "GHS",
|
|
6952
|
-
image:
|
|
6953
|
-
images: [
|
|
6977
|
+
image: photoFor2(p.slug),
|
|
6978
|
+
images: [photoFor2(p.slug)],
|
|
6954
6979
|
is_available: true,
|
|
6955
6980
|
category_ids: [catId],
|
|
6956
6981
|
collection_ids: [],
|
|
@@ -7213,8 +7238,8 @@ function seedRetail(registry) {
|
|
|
7213
7238
|
product_type: "bundle",
|
|
7214
7239
|
base_price: "11910.00",
|
|
7215
7240
|
currency: "GHS",
|
|
7216
|
-
image:
|
|
7217
|
-
images: [
|
|
7241
|
+
image: photoFor2("wfh"),
|
|
7242
|
+
images: [photoFor2("wfh")],
|
|
7218
7243
|
is_available: true,
|
|
7219
7244
|
category_ids: [catIds.get("laptops")],
|
|
7220
7245
|
collection_ids: [],
|
|
@@ -7247,8 +7272,8 @@ function seedRetail(registry) {
|
|
|
7247
7272
|
product_type: "bundle",
|
|
7248
7273
|
base_price: "4200.00",
|
|
7249
7274
|
currency: "GHS",
|
|
7250
|
-
image:
|
|
7251
|
-
images: [
|
|
7275
|
+
image: photoFor2("game-pack"),
|
|
7276
|
+
images: [photoFor2("game-pack")],
|
|
7252
7277
|
is_available: true,
|
|
7253
7278
|
category_ids: [catIds.get("gaming")],
|
|
7254
7279
|
collection_ids: [],
|
|
@@ -7338,6 +7363,29 @@ function seedRetail(registry) {
|
|
|
7338
7363
|
|
|
7339
7364
|
// src/mock/seeds/services.ts
|
|
7340
7365
|
var ISO6 = "2026-01-01T00:00:00.000Z";
|
|
7366
|
+
var PHOTO3 = {
|
|
7367
|
+
"business-hero": "1540555700478-4be289fbecef",
|
|
7368
|
+
"swedish-massage-60": "1544161515-4ab6ce6db874",
|
|
7369
|
+
"swedish-massage-90": "1519823551278-64ac92734fb1",
|
|
7370
|
+
"deep-tissue-60": "1571019613454-1cb2f99b2d8b",
|
|
7371
|
+
"couples-massage": "1591343395082-e120087004b4",
|
|
7372
|
+
"hot-stone-90": "1620733723572-11c53f73a416",
|
|
7373
|
+
"facial-classic": "1487412947147-5cebf100ffc2",
|
|
7374
|
+
"facial-anti-aging": "1487412947147-5cebf100ffc2",
|
|
7375
|
+
"facial-acne": "1556228720-195a672e8a03",
|
|
7376
|
+
manicure: "1604654894610-df63bc536371",
|
|
7377
|
+
pedicure: "1519415943484-9fa1873496d4",
|
|
7378
|
+
"gel-manicure": "1607779097040-26e80aa78e66",
|
|
7379
|
+
haircut: "1622286342621-4bd786c2447c",
|
|
7380
|
+
"hair-treatment": "1633681926022-84c23e8cb2d6",
|
|
7381
|
+
color: "1560066984-138dadb4c035",
|
|
7382
|
+
"yoga-session": "1545205597-3d9d02c29597",
|
|
7383
|
+
meditation: "1506126613408-eca07ce68773",
|
|
7384
|
+
"spa-day": "1571019613454-1cb2f99b2d8b",
|
|
7385
|
+
couples: "1591343395082-e120087004b4",
|
|
7386
|
+
custom: "1540555700478-4be289fbecef"
|
|
7387
|
+
};
|
|
7388
|
+
var photoFor3 = (slug) => seedImage("services", slug, PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
7341
7389
|
function seedServices(registry) {
|
|
7342
7390
|
const businessId = "bus_serene_spa";
|
|
7343
7391
|
const business = {
|
|
@@ -7351,7 +7399,7 @@ function seedServices(registry) {
|
|
|
7351
7399
|
default_address: "12 Cantonments Road, Accra",
|
|
7352
7400
|
default_offers_table_service: false,
|
|
7353
7401
|
default_accepts_online_orders: true,
|
|
7354
|
-
image: "
|
|
7402
|
+
image: photoFor3("business-hero"),
|
|
7355
7403
|
status: "active",
|
|
7356
7404
|
created_at: ISO6,
|
|
7357
7405
|
updated_at: ISO6,
|
|
@@ -7419,8 +7467,8 @@ function seedServices(registry) {
|
|
|
7419
7467
|
product_type: "service",
|
|
7420
7468
|
base_price: s.price,
|
|
7421
7469
|
currency: "GHS",
|
|
7422
|
-
image:
|
|
7423
|
-
images: [
|
|
7470
|
+
image: photoFor3(s.slug),
|
|
7471
|
+
images: [photoFor3(s.slug)],
|
|
7424
7472
|
is_available: true,
|
|
7425
7473
|
category_ids: [catId],
|
|
7426
7474
|
collection_ids: [],
|
|
@@ -7556,8 +7604,8 @@ function seedServices(registry) {
|
|
|
7556
7604
|
product_type: "bundle",
|
|
7557
7605
|
base_price: "480.00",
|
|
7558
7606
|
currency: "GHS",
|
|
7559
|
-
image: "
|
|
7560
|
-
images: ["
|
|
7607
|
+
image: photoFor3("spa-day"),
|
|
7608
|
+
images: [photoFor3("spa-day")],
|
|
7561
7609
|
is_available: true,
|
|
7562
7610
|
category_ids: [catIds.get("wellness")],
|
|
7563
7611
|
collection_ids: [],
|
|
@@ -7590,8 +7638,8 @@ function seedServices(registry) {
|
|
|
7590
7638
|
product_type: "bundle",
|
|
7591
7639
|
base_price: "850.50",
|
|
7592
7640
|
currency: "GHS",
|
|
7593
|
-
image: "
|
|
7594
|
-
images: ["
|
|
7641
|
+
image: photoFor3("couples"),
|
|
7642
|
+
images: [photoFor3("couples")],
|
|
7595
7643
|
is_available: true,
|
|
7596
7644
|
category_ids: [catIds.get("wellness")],
|
|
7597
7645
|
collection_ids: [],
|
|
@@ -7626,8 +7674,8 @@ function seedServices(registry) {
|
|
|
7626
7674
|
product_type: "composite",
|
|
7627
7675
|
base_price: "0.00",
|
|
7628
7676
|
currency: "GHS",
|
|
7629
|
-
image: "
|
|
7630
|
-
images: ["
|
|
7677
|
+
image: photoFor3("custom"),
|
|
7678
|
+
images: [photoFor3("custom")],
|
|
7631
7679
|
is_available: true,
|
|
7632
7680
|
category_ids: [catIds.get("wellness")],
|
|
7633
7681
|
collection_ids: [],
|
|
@@ -7717,6 +7765,35 @@ function seedServices(registry) {
|
|
|
7717
7765
|
|
|
7718
7766
|
// src/mock/seeds/grocery.ts
|
|
7719
7767
|
var ISO7 = "2026-01-01T00:00:00.000Z";
|
|
7768
|
+
var PHOTO4 = {
|
|
7769
|
+
"business-hero": "1542838132-92c53300491e",
|
|
7770
|
+
"tomatoes-1kg": "1592924357228-91a4daadcfea",
|
|
7771
|
+
"onions-1kg": "1620574387735-3624d75b2dbc",
|
|
7772
|
+
"ginger-200g": "1594631252845-29fc4cc8cde9",
|
|
7773
|
+
"bananas-bunch": "1571771019784-3ff35f4f4277",
|
|
7774
|
+
pineapple: "1550258987-190a2d41a8ba",
|
|
7775
|
+
"spinach-bunch": "1576045057995-568f588f82fb",
|
|
7776
|
+
"milk-1l": "1563636619-e9143da7973b",
|
|
7777
|
+
"yogurt-500g": "1488477181946-6428a0291777",
|
|
7778
|
+
"eggs-12": "1582722872445-44dc5f7e3c8f",
|
|
7779
|
+
"cheese-200g": "1486297678162-eb2a19b0a32d",
|
|
7780
|
+
"chicken-1kg": "1604503468506-a8da13d82791",
|
|
7781
|
+
"beef-mince-500g": "1607623814075-e51df1bdc82f",
|
|
7782
|
+
"tilapia-each": "1535473895227-bdecb20fb157",
|
|
7783
|
+
"rice-5kg": "1586201375761-83865001e31c",
|
|
7784
|
+
"garri-2kg": "1582284540020-8acbe03f4924",
|
|
7785
|
+
"palm-oil-1l": "1611078489935-0cb964de46d6",
|
|
7786
|
+
"vegetable-oil-1l": "1474979266404-7eaacbcd87c5",
|
|
7787
|
+
"salt-1kg": "1607301406259-dfb186e15de8",
|
|
7788
|
+
"sugar-1kg": "1610725664285-7c57e6eeac3f",
|
|
7789
|
+
"tomato-paste": "1561136594-7f68413baa99",
|
|
7790
|
+
"soap-bar": "1600857062241-98e5dba7f214",
|
|
7791
|
+
"detergent-1kg": "1582735689369-4fe89db7114c",
|
|
7792
|
+
"tissue-pack": "1583947215259-38e31be8751f",
|
|
7793
|
+
"trash-bags": "1605600659908-0ef719419d41",
|
|
7794
|
+
essentials: "1542838132-92c53300491e"
|
|
7795
|
+
};
|
|
7796
|
+
var photoFor4 = (slug) => seedImage("grocery", slug, PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
7720
7797
|
function seedGrocery(registry) {
|
|
7721
7798
|
const businessId = "bus_freshmart";
|
|
7722
7799
|
const business = {
|
|
@@ -7730,7 +7807,7 @@ function seedGrocery(registry) {
|
|
|
7730
7807
|
default_address: "Spintex Road, Accra",
|
|
7731
7808
|
default_offers_table_service: false,
|
|
7732
7809
|
default_accepts_online_orders: true,
|
|
7733
|
-
image: "
|
|
7810
|
+
image: photoFor4("business-hero"),
|
|
7734
7811
|
status: "active",
|
|
7735
7812
|
created_at: ISO7,
|
|
7736
7813
|
updated_at: ISO7,
|
|
@@ -7805,8 +7882,8 @@ function seedGrocery(registry) {
|
|
|
7805
7882
|
product_type: "product",
|
|
7806
7883
|
base_price: p.price,
|
|
7807
7884
|
currency: "GHS",
|
|
7808
|
-
image:
|
|
7809
|
-
images: [
|
|
7885
|
+
image: photoFor4(p.slug),
|
|
7886
|
+
images: [photoFor4(p.slug)],
|
|
7810
7887
|
is_available: true,
|
|
7811
7888
|
category_ids: [catId],
|
|
7812
7889
|
collection_ids: [],
|
|
@@ -7889,8 +7966,8 @@ function seedGrocery(registry) {
|
|
|
7889
7966
|
product_type: "bundle",
|
|
7890
7967
|
base_price: "199.50",
|
|
7891
7968
|
currency: "GHS",
|
|
7892
|
-
image: "
|
|
7893
|
-
images: ["
|
|
7969
|
+
image: photoFor4("essentials"),
|
|
7970
|
+
images: [photoFor4("essentials")],
|
|
7894
7971
|
is_available: true,
|
|
7895
7972
|
category_ids: [catIds.get("pantry")],
|
|
7896
7973
|
collection_ids: [],
|
|
@@ -7979,7 +8056,7 @@ function seedGrocery(registry) {
|
|
|
7979
8056
|
|
|
7980
8057
|
// src/mock/seeds/fashion.ts
|
|
7981
8058
|
var ISO8 = "2026-01-01T00:00:00.000Z";
|
|
7982
|
-
var
|
|
8059
|
+
var PHOTO5 = {
|
|
7983
8060
|
"heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
|
|
7984
8061
|
"heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
|
|
7985
8062
|
"heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
|
|
@@ -7995,7 +8072,7 @@ var PHOTO2 = {
|
|
|
7995
8072
|
"knit-beanie": "1542838132-92c53300491e",
|
|
7996
8073
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
7997
8074
|
};
|
|
7998
|
-
var
|
|
8075
|
+
var photoFor5 = (slug) => seedImage("fashion", slug, PHOTO5[slug] ?? "1556905055-8f358a7a47b2", 900);
|
|
7999
8076
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8000
8077
|
function seedFashion(registry) {
|
|
8001
8078
|
const businessId = "bus_studio_frx";
|
|
@@ -8193,8 +8270,8 @@ function seedFashion(registry) {
|
|
|
8193
8270
|
product_type: "product",
|
|
8194
8271
|
base_price: p.price,
|
|
8195
8272
|
currency: "GHS",
|
|
8196
|
-
image:
|
|
8197
|
-
images: [
|
|
8273
|
+
image: photoFor5(p.slug),
|
|
8274
|
+
images: [photoFor5(p.slug)],
|
|
8198
8275
|
is_available: true,
|
|
8199
8276
|
category_ids: [catId],
|
|
8200
8277
|
collection_ids: [],
|
package/dist/mock/msw.js
CHANGED
|
@@ -6406,6 +6406,31 @@ function seedReesa(registry) {
|
|
|
6406
6406
|
|
|
6407
6407
|
// src/mock/seeds/restaurant.ts
|
|
6408
6408
|
var ISO4 = "2026-01-01T00:00:00.000Z";
|
|
6409
|
+
var PHOTO = {
|
|
6410
|
+
"business-hero": "1414235077428-338989a2e8c0",
|
|
6411
|
+
kelewele: "1599487488170-d11ec9c172f0",
|
|
6412
|
+
"spring-rolls": "1559339352-11d035aa65de",
|
|
6413
|
+
"soup-of-the-day": "1547592180-85f173990554",
|
|
6414
|
+
"jollof-rice": "1546069901-d5bfd2cbfb1f",
|
|
6415
|
+
"banku-tilapia": "1485921325833-c519f76c4927",
|
|
6416
|
+
"fufu-light-soup": "1602253057119-44d745d9b860",
|
|
6417
|
+
waakye: "1565299624946-b28f40a0ae38",
|
|
6418
|
+
"grilled-chicken": "1598103442097-8b74394b95c6",
|
|
6419
|
+
burger: "1568901346375-23c9450c58cd",
|
|
6420
|
+
"yam-fries": "1576107232684-1279f390859f",
|
|
6421
|
+
"fried-plantain": "1493770348161-369560ae357d",
|
|
6422
|
+
salad: "1512621776951-a57141f2eefd",
|
|
6423
|
+
"ice-cream": "1488900128323-21503983a07e",
|
|
6424
|
+
"cake-slice": "1565958011703-44f9829ba187",
|
|
6425
|
+
"fruit-bowl": "1490474418585-ba9bad8fd0ea",
|
|
6426
|
+
"soft-drink": "1581636625402-29b2a704ef13",
|
|
6427
|
+
sobolo: "1556679343-c7306c1976bc",
|
|
6428
|
+
"fresh-juice": "1610970881699-44a5587cabec",
|
|
6429
|
+
water: "1564325724739-bae0bd08762c",
|
|
6430
|
+
feast: "1559847844-5315695dadae",
|
|
6431
|
+
byo: "1551782450-a2132b4ba21d"
|
|
6432
|
+
};
|
|
6433
|
+
var photoFor = (slug) => seedImage("restaurant", slug, PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
6409
6434
|
function seedRestaurant(registry) {
|
|
6410
6435
|
const businessId = "bus_mamas_kitchen";
|
|
6411
6436
|
const business = {
|
|
@@ -6419,7 +6444,7 @@ function seedRestaurant(registry) {
|
|
|
6419
6444
|
default_address: "8 Ring Road, East Legon, Accra",
|
|
6420
6445
|
default_offers_table_service: true,
|
|
6421
6446
|
default_accepts_online_orders: true,
|
|
6422
|
-
image: "
|
|
6447
|
+
image: photoFor("business-hero"),
|
|
6423
6448
|
status: "active",
|
|
6424
6449
|
created_at: ISO4,
|
|
6425
6450
|
updated_at: ISO4,
|
|
@@ -6490,8 +6515,8 @@ function seedRestaurant(registry) {
|
|
|
6490
6515
|
product_type: "product",
|
|
6491
6516
|
base_price: p.price,
|
|
6492
6517
|
currency: "GHS",
|
|
6493
|
-
image:
|
|
6494
|
-
images: [
|
|
6518
|
+
image: photoFor(p.slug),
|
|
6519
|
+
images: [photoFor(p.slug)],
|
|
6495
6520
|
is_available: true,
|
|
6496
6521
|
category_ids: [catId],
|
|
6497
6522
|
collection_ids: [],
|
|
@@ -6729,8 +6754,8 @@ function seedRestaurant(registry) {
|
|
|
6729
6754
|
product_type: "bundle",
|
|
6730
6755
|
base_price: "180.00",
|
|
6731
6756
|
currency: "GHS",
|
|
6732
|
-
image: "
|
|
6733
|
-
images: ["
|
|
6757
|
+
image: photoFor("feast"),
|
|
6758
|
+
images: [photoFor("feast")],
|
|
6734
6759
|
is_available: true,
|
|
6735
6760
|
category_ids: [catIds.get("mains")],
|
|
6736
6761
|
collection_ids: [],
|
|
@@ -6765,8 +6790,8 @@ function seedRestaurant(registry) {
|
|
|
6765
6790
|
product_type: "composite",
|
|
6766
6791
|
base_price: "0.00",
|
|
6767
6792
|
currency: "GHS",
|
|
6768
|
-
image: "
|
|
6769
|
-
images: ["
|
|
6793
|
+
image: photoFor("byo"),
|
|
6794
|
+
images: [photoFor("byo")],
|
|
6770
6795
|
is_available: true,
|
|
6771
6796
|
category_ids: [catIds.get("mains")],
|
|
6772
6797
|
collection_ids: [],
|
|
@@ -6865,7 +6890,7 @@ function seedRestaurant(registry) {
|
|
|
6865
6890
|
|
|
6866
6891
|
// src/mock/seeds/retail.ts
|
|
6867
6892
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
6868
|
-
var
|
|
6893
|
+
var photoFor2 = (slug) => seedImage("retail", slug);
|
|
6869
6894
|
function seedRetail(registry) {
|
|
6870
6895
|
const businessId = "bus_currents_electronics";
|
|
6871
6896
|
const business = {
|
|
@@ -6949,8 +6974,8 @@ function seedRetail(registry) {
|
|
|
6949
6974
|
product_type: "product",
|
|
6950
6975
|
base_price: p.price,
|
|
6951
6976
|
currency: "GHS",
|
|
6952
|
-
image:
|
|
6953
|
-
images: [
|
|
6977
|
+
image: photoFor2(p.slug),
|
|
6978
|
+
images: [photoFor2(p.slug)],
|
|
6954
6979
|
is_available: true,
|
|
6955
6980
|
category_ids: [catId],
|
|
6956
6981
|
collection_ids: [],
|
|
@@ -7213,8 +7238,8 @@ function seedRetail(registry) {
|
|
|
7213
7238
|
product_type: "bundle",
|
|
7214
7239
|
base_price: "11910.00",
|
|
7215
7240
|
currency: "GHS",
|
|
7216
|
-
image:
|
|
7217
|
-
images: [
|
|
7241
|
+
image: photoFor2("wfh"),
|
|
7242
|
+
images: [photoFor2("wfh")],
|
|
7218
7243
|
is_available: true,
|
|
7219
7244
|
category_ids: [catIds.get("laptops")],
|
|
7220
7245
|
collection_ids: [],
|
|
@@ -7247,8 +7272,8 @@ function seedRetail(registry) {
|
|
|
7247
7272
|
product_type: "bundle",
|
|
7248
7273
|
base_price: "4200.00",
|
|
7249
7274
|
currency: "GHS",
|
|
7250
|
-
image:
|
|
7251
|
-
images: [
|
|
7275
|
+
image: photoFor2("game-pack"),
|
|
7276
|
+
images: [photoFor2("game-pack")],
|
|
7252
7277
|
is_available: true,
|
|
7253
7278
|
category_ids: [catIds.get("gaming")],
|
|
7254
7279
|
collection_ids: [],
|
|
@@ -7338,6 +7363,29 @@ function seedRetail(registry) {
|
|
|
7338
7363
|
|
|
7339
7364
|
// src/mock/seeds/services.ts
|
|
7340
7365
|
var ISO6 = "2026-01-01T00:00:00.000Z";
|
|
7366
|
+
var PHOTO3 = {
|
|
7367
|
+
"business-hero": "1540555700478-4be289fbecef",
|
|
7368
|
+
"swedish-massage-60": "1544161515-4ab6ce6db874",
|
|
7369
|
+
"swedish-massage-90": "1519823551278-64ac92734fb1",
|
|
7370
|
+
"deep-tissue-60": "1571019613454-1cb2f99b2d8b",
|
|
7371
|
+
"couples-massage": "1591343395082-e120087004b4",
|
|
7372
|
+
"hot-stone-90": "1620733723572-11c53f73a416",
|
|
7373
|
+
"facial-classic": "1487412947147-5cebf100ffc2",
|
|
7374
|
+
"facial-anti-aging": "1487412947147-5cebf100ffc2",
|
|
7375
|
+
"facial-acne": "1556228720-195a672e8a03",
|
|
7376
|
+
manicure: "1604654894610-df63bc536371",
|
|
7377
|
+
pedicure: "1519415943484-9fa1873496d4",
|
|
7378
|
+
"gel-manicure": "1607779097040-26e80aa78e66",
|
|
7379
|
+
haircut: "1622286342621-4bd786c2447c",
|
|
7380
|
+
"hair-treatment": "1633681926022-84c23e8cb2d6",
|
|
7381
|
+
color: "1560066984-138dadb4c035",
|
|
7382
|
+
"yoga-session": "1545205597-3d9d02c29597",
|
|
7383
|
+
meditation: "1506126613408-eca07ce68773",
|
|
7384
|
+
"spa-day": "1571019613454-1cb2f99b2d8b",
|
|
7385
|
+
couples: "1591343395082-e120087004b4",
|
|
7386
|
+
custom: "1540555700478-4be289fbecef"
|
|
7387
|
+
};
|
|
7388
|
+
var photoFor3 = (slug) => seedImage("services", slug, PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
7341
7389
|
function seedServices(registry) {
|
|
7342
7390
|
const businessId = "bus_serene_spa";
|
|
7343
7391
|
const business = {
|
|
@@ -7351,7 +7399,7 @@ function seedServices(registry) {
|
|
|
7351
7399
|
default_address: "12 Cantonments Road, Accra",
|
|
7352
7400
|
default_offers_table_service: false,
|
|
7353
7401
|
default_accepts_online_orders: true,
|
|
7354
|
-
image: "
|
|
7402
|
+
image: photoFor3("business-hero"),
|
|
7355
7403
|
status: "active",
|
|
7356
7404
|
created_at: ISO6,
|
|
7357
7405
|
updated_at: ISO6,
|
|
@@ -7419,8 +7467,8 @@ function seedServices(registry) {
|
|
|
7419
7467
|
product_type: "service",
|
|
7420
7468
|
base_price: s.price,
|
|
7421
7469
|
currency: "GHS",
|
|
7422
|
-
image:
|
|
7423
|
-
images: [
|
|
7470
|
+
image: photoFor3(s.slug),
|
|
7471
|
+
images: [photoFor3(s.slug)],
|
|
7424
7472
|
is_available: true,
|
|
7425
7473
|
category_ids: [catId],
|
|
7426
7474
|
collection_ids: [],
|
|
@@ -7556,8 +7604,8 @@ function seedServices(registry) {
|
|
|
7556
7604
|
product_type: "bundle",
|
|
7557
7605
|
base_price: "480.00",
|
|
7558
7606
|
currency: "GHS",
|
|
7559
|
-
image: "
|
|
7560
|
-
images: ["
|
|
7607
|
+
image: photoFor3("spa-day"),
|
|
7608
|
+
images: [photoFor3("spa-day")],
|
|
7561
7609
|
is_available: true,
|
|
7562
7610
|
category_ids: [catIds.get("wellness")],
|
|
7563
7611
|
collection_ids: [],
|
|
@@ -7590,8 +7638,8 @@ function seedServices(registry) {
|
|
|
7590
7638
|
product_type: "bundle",
|
|
7591
7639
|
base_price: "850.50",
|
|
7592
7640
|
currency: "GHS",
|
|
7593
|
-
image: "
|
|
7594
|
-
images: ["
|
|
7641
|
+
image: photoFor3("couples"),
|
|
7642
|
+
images: [photoFor3("couples")],
|
|
7595
7643
|
is_available: true,
|
|
7596
7644
|
category_ids: [catIds.get("wellness")],
|
|
7597
7645
|
collection_ids: [],
|
|
@@ -7626,8 +7674,8 @@ function seedServices(registry) {
|
|
|
7626
7674
|
product_type: "composite",
|
|
7627
7675
|
base_price: "0.00",
|
|
7628
7676
|
currency: "GHS",
|
|
7629
|
-
image: "
|
|
7630
|
-
images: ["
|
|
7677
|
+
image: photoFor3("custom"),
|
|
7678
|
+
images: [photoFor3("custom")],
|
|
7631
7679
|
is_available: true,
|
|
7632
7680
|
category_ids: [catIds.get("wellness")],
|
|
7633
7681
|
collection_ids: [],
|
|
@@ -7717,6 +7765,35 @@ function seedServices(registry) {
|
|
|
7717
7765
|
|
|
7718
7766
|
// src/mock/seeds/grocery.ts
|
|
7719
7767
|
var ISO7 = "2026-01-01T00:00:00.000Z";
|
|
7768
|
+
var PHOTO4 = {
|
|
7769
|
+
"business-hero": "1542838132-92c53300491e",
|
|
7770
|
+
"tomatoes-1kg": "1592924357228-91a4daadcfea",
|
|
7771
|
+
"onions-1kg": "1620574387735-3624d75b2dbc",
|
|
7772
|
+
"ginger-200g": "1594631252845-29fc4cc8cde9",
|
|
7773
|
+
"bananas-bunch": "1571771019784-3ff35f4f4277",
|
|
7774
|
+
pineapple: "1550258987-190a2d41a8ba",
|
|
7775
|
+
"spinach-bunch": "1576045057995-568f588f82fb",
|
|
7776
|
+
"milk-1l": "1563636619-e9143da7973b",
|
|
7777
|
+
"yogurt-500g": "1488477181946-6428a0291777",
|
|
7778
|
+
"eggs-12": "1582722872445-44dc5f7e3c8f",
|
|
7779
|
+
"cheese-200g": "1486297678162-eb2a19b0a32d",
|
|
7780
|
+
"chicken-1kg": "1604503468506-a8da13d82791",
|
|
7781
|
+
"beef-mince-500g": "1607623814075-e51df1bdc82f",
|
|
7782
|
+
"tilapia-each": "1535473895227-bdecb20fb157",
|
|
7783
|
+
"rice-5kg": "1586201375761-83865001e31c",
|
|
7784
|
+
"garri-2kg": "1582284540020-8acbe03f4924",
|
|
7785
|
+
"palm-oil-1l": "1611078489935-0cb964de46d6",
|
|
7786
|
+
"vegetable-oil-1l": "1474979266404-7eaacbcd87c5",
|
|
7787
|
+
"salt-1kg": "1607301406259-dfb186e15de8",
|
|
7788
|
+
"sugar-1kg": "1610725664285-7c57e6eeac3f",
|
|
7789
|
+
"tomato-paste": "1561136594-7f68413baa99",
|
|
7790
|
+
"soap-bar": "1600857062241-98e5dba7f214",
|
|
7791
|
+
"detergent-1kg": "1582735689369-4fe89db7114c",
|
|
7792
|
+
"tissue-pack": "1583947215259-38e31be8751f",
|
|
7793
|
+
"trash-bags": "1605600659908-0ef719419d41",
|
|
7794
|
+
essentials: "1542838132-92c53300491e"
|
|
7795
|
+
};
|
|
7796
|
+
var photoFor4 = (slug) => seedImage("grocery", slug, PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
7720
7797
|
function seedGrocery(registry) {
|
|
7721
7798
|
const businessId = "bus_freshmart";
|
|
7722
7799
|
const business = {
|
|
@@ -7730,7 +7807,7 @@ function seedGrocery(registry) {
|
|
|
7730
7807
|
default_address: "Spintex Road, Accra",
|
|
7731
7808
|
default_offers_table_service: false,
|
|
7732
7809
|
default_accepts_online_orders: true,
|
|
7733
|
-
image: "
|
|
7810
|
+
image: photoFor4("business-hero"),
|
|
7734
7811
|
status: "active",
|
|
7735
7812
|
created_at: ISO7,
|
|
7736
7813
|
updated_at: ISO7,
|
|
@@ -7805,8 +7882,8 @@ function seedGrocery(registry) {
|
|
|
7805
7882
|
product_type: "product",
|
|
7806
7883
|
base_price: p.price,
|
|
7807
7884
|
currency: "GHS",
|
|
7808
|
-
image:
|
|
7809
|
-
images: [
|
|
7885
|
+
image: photoFor4(p.slug),
|
|
7886
|
+
images: [photoFor4(p.slug)],
|
|
7810
7887
|
is_available: true,
|
|
7811
7888
|
category_ids: [catId],
|
|
7812
7889
|
collection_ids: [],
|
|
@@ -7889,8 +7966,8 @@ function seedGrocery(registry) {
|
|
|
7889
7966
|
product_type: "bundle",
|
|
7890
7967
|
base_price: "199.50",
|
|
7891
7968
|
currency: "GHS",
|
|
7892
|
-
image: "
|
|
7893
|
-
images: ["
|
|
7969
|
+
image: photoFor4("essentials"),
|
|
7970
|
+
images: [photoFor4("essentials")],
|
|
7894
7971
|
is_available: true,
|
|
7895
7972
|
category_ids: [catIds.get("pantry")],
|
|
7896
7973
|
collection_ids: [],
|
|
@@ -7979,7 +8056,7 @@ function seedGrocery(registry) {
|
|
|
7979
8056
|
|
|
7980
8057
|
// src/mock/seeds/fashion.ts
|
|
7981
8058
|
var ISO8 = "2026-01-01T00:00:00.000Z";
|
|
7982
|
-
var
|
|
8059
|
+
var PHOTO5 = {
|
|
7983
8060
|
"heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
|
|
7984
8061
|
"heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
|
|
7985
8062
|
"heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
|
|
@@ -7995,7 +8072,7 @@ var PHOTO2 = {
|
|
|
7995
8072
|
"knit-beanie": "1542838132-92c53300491e",
|
|
7996
8073
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
7997
8074
|
};
|
|
7998
|
-
var
|
|
8075
|
+
var photoFor5 = (slug) => seedImage("fashion", slug, PHOTO5[slug] ?? "1556905055-8f358a7a47b2", 900);
|
|
7999
8076
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8000
8077
|
function seedFashion(registry) {
|
|
8001
8078
|
const businessId = "bus_studio_frx";
|
|
@@ -8193,8 +8270,8 @@ function seedFashion(registry) {
|
|
|
8193
8270
|
product_type: "product",
|
|
8194
8271
|
base_price: p.price,
|
|
8195
8272
|
currency: "GHS",
|
|
8196
|
-
image:
|
|
8197
|
-
images: [
|
|
8273
|
+
image: photoFor5(p.slug),
|
|
8274
|
+
images: [photoFor5(p.slug)],
|
|
8198
8275
|
is_available: true,
|
|
8199
8276
|
category_ids: [catId],
|
|
8200
8277
|
collection_ids: [],
|