@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/cli.mjs
CHANGED
|
@@ -7040,6 +7040,31 @@ function seedReesa(registry) {
|
|
|
7040
7040
|
|
|
7041
7041
|
// src/mock/seeds/restaurant.ts
|
|
7042
7042
|
var ISO4 = "2026-01-01T00:00:00.000Z";
|
|
7043
|
+
var PHOTO = {
|
|
7044
|
+
"business-hero": "1414235077428-338989a2e8c0",
|
|
7045
|
+
kelewele: "1599487488170-d11ec9c172f0",
|
|
7046
|
+
"spring-rolls": "1559339352-11d035aa65de",
|
|
7047
|
+
"soup-of-the-day": "1547592180-85f173990554",
|
|
7048
|
+
"jollof-rice": "1546069901-d5bfd2cbfb1f",
|
|
7049
|
+
"banku-tilapia": "1485921325833-c519f76c4927",
|
|
7050
|
+
"fufu-light-soup": "1602253057119-44d745d9b860",
|
|
7051
|
+
waakye: "1565299624946-b28f40a0ae38",
|
|
7052
|
+
"grilled-chicken": "1598103442097-8b74394b95c6",
|
|
7053
|
+
burger: "1568901346375-23c9450c58cd",
|
|
7054
|
+
"yam-fries": "1576107232684-1279f390859f",
|
|
7055
|
+
"fried-plantain": "1493770348161-369560ae357d",
|
|
7056
|
+
salad: "1512621776951-a57141f2eefd",
|
|
7057
|
+
"ice-cream": "1488900128323-21503983a07e",
|
|
7058
|
+
"cake-slice": "1565958011703-44f9829ba187",
|
|
7059
|
+
"fruit-bowl": "1490474418585-ba9bad8fd0ea",
|
|
7060
|
+
"soft-drink": "1581636625402-29b2a704ef13",
|
|
7061
|
+
sobolo: "1556679343-c7306c1976bc",
|
|
7062
|
+
"fresh-juice": "1610970881699-44a5587cabec",
|
|
7063
|
+
water: "1564325724739-bae0bd08762c",
|
|
7064
|
+
feast: "1559847844-5315695dadae",
|
|
7065
|
+
byo: "1551782450-a2132b4ba21d"
|
|
7066
|
+
};
|
|
7067
|
+
var photoFor = (slug) => seedImage("restaurant", slug, PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7043
7068
|
function seedRestaurant(registry) {
|
|
7044
7069
|
const businessId = "bus_mamas_kitchen";
|
|
7045
7070
|
const business = {
|
|
@@ -7053,7 +7078,7 @@ function seedRestaurant(registry) {
|
|
|
7053
7078
|
default_address: "8 Ring Road, East Legon, Accra",
|
|
7054
7079
|
default_offers_table_service: true,
|
|
7055
7080
|
default_accepts_online_orders: true,
|
|
7056
|
-
image: "
|
|
7081
|
+
image: photoFor("business-hero"),
|
|
7057
7082
|
status: "active",
|
|
7058
7083
|
created_at: ISO4,
|
|
7059
7084
|
updated_at: ISO4,
|
|
@@ -7124,8 +7149,8 @@ function seedRestaurant(registry) {
|
|
|
7124
7149
|
product_type: "product",
|
|
7125
7150
|
base_price: p.price,
|
|
7126
7151
|
currency: "GHS",
|
|
7127
|
-
image:
|
|
7128
|
-
images: [
|
|
7152
|
+
image: photoFor(p.slug),
|
|
7153
|
+
images: [photoFor(p.slug)],
|
|
7129
7154
|
is_available: true,
|
|
7130
7155
|
category_ids: [catId],
|
|
7131
7156
|
collection_ids: [],
|
|
@@ -7363,8 +7388,8 @@ function seedRestaurant(registry) {
|
|
|
7363
7388
|
product_type: "bundle",
|
|
7364
7389
|
base_price: "180.00",
|
|
7365
7390
|
currency: "GHS",
|
|
7366
|
-
image: "
|
|
7367
|
-
images: ["
|
|
7391
|
+
image: photoFor("feast"),
|
|
7392
|
+
images: [photoFor("feast")],
|
|
7368
7393
|
is_available: true,
|
|
7369
7394
|
category_ids: [catIds.get("mains")],
|
|
7370
7395
|
collection_ids: [],
|
|
@@ -7399,8 +7424,8 @@ function seedRestaurant(registry) {
|
|
|
7399
7424
|
product_type: "composite",
|
|
7400
7425
|
base_price: "0.00",
|
|
7401
7426
|
currency: "GHS",
|
|
7402
|
-
image: "
|
|
7403
|
-
images: ["
|
|
7427
|
+
image: photoFor("byo"),
|
|
7428
|
+
images: [photoFor("byo")],
|
|
7404
7429
|
is_available: true,
|
|
7405
7430
|
category_ids: [catIds.get("mains")],
|
|
7406
7431
|
collection_ids: [],
|
|
@@ -7499,7 +7524,7 @@ function seedRestaurant(registry) {
|
|
|
7499
7524
|
|
|
7500
7525
|
// src/mock/seeds/retail.ts
|
|
7501
7526
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
7502
|
-
var
|
|
7527
|
+
var photoFor2 = (slug) => seedImage("retail", slug);
|
|
7503
7528
|
function seedRetail(registry) {
|
|
7504
7529
|
const businessId = "bus_currents_electronics";
|
|
7505
7530
|
const business = {
|
|
@@ -7583,8 +7608,8 @@ function seedRetail(registry) {
|
|
|
7583
7608
|
product_type: "product",
|
|
7584
7609
|
base_price: p.price,
|
|
7585
7610
|
currency: "GHS",
|
|
7586
|
-
image:
|
|
7587
|
-
images: [
|
|
7611
|
+
image: photoFor2(p.slug),
|
|
7612
|
+
images: [photoFor2(p.slug)],
|
|
7588
7613
|
is_available: true,
|
|
7589
7614
|
category_ids: [catId],
|
|
7590
7615
|
collection_ids: [],
|
|
@@ -7847,8 +7872,8 @@ function seedRetail(registry) {
|
|
|
7847
7872
|
product_type: "bundle",
|
|
7848
7873
|
base_price: "11910.00",
|
|
7849
7874
|
currency: "GHS",
|
|
7850
|
-
image:
|
|
7851
|
-
images: [
|
|
7875
|
+
image: photoFor2("wfh"),
|
|
7876
|
+
images: [photoFor2("wfh")],
|
|
7852
7877
|
is_available: true,
|
|
7853
7878
|
category_ids: [catIds.get("laptops")],
|
|
7854
7879
|
collection_ids: [],
|
|
@@ -7881,8 +7906,8 @@ function seedRetail(registry) {
|
|
|
7881
7906
|
product_type: "bundle",
|
|
7882
7907
|
base_price: "4200.00",
|
|
7883
7908
|
currency: "GHS",
|
|
7884
|
-
image:
|
|
7885
|
-
images: [
|
|
7909
|
+
image: photoFor2("game-pack"),
|
|
7910
|
+
images: [photoFor2("game-pack")],
|
|
7886
7911
|
is_available: true,
|
|
7887
7912
|
category_ids: [catIds.get("gaming")],
|
|
7888
7913
|
collection_ids: [],
|
|
@@ -7972,6 +7997,29 @@ function seedRetail(registry) {
|
|
|
7972
7997
|
|
|
7973
7998
|
// src/mock/seeds/services.ts
|
|
7974
7999
|
var ISO6 = "2026-01-01T00:00:00.000Z";
|
|
8000
|
+
var PHOTO3 = {
|
|
8001
|
+
"business-hero": "1540555700478-4be289fbecef",
|
|
8002
|
+
"swedish-massage-60": "1544161515-4ab6ce6db874",
|
|
8003
|
+
"swedish-massage-90": "1519823551278-64ac92734fb1",
|
|
8004
|
+
"deep-tissue-60": "1571019613454-1cb2f99b2d8b",
|
|
8005
|
+
"couples-massage": "1591343395082-e120087004b4",
|
|
8006
|
+
"hot-stone-90": "1620733723572-11c53f73a416",
|
|
8007
|
+
"facial-classic": "1487412947147-5cebf100ffc2",
|
|
8008
|
+
"facial-anti-aging": "1487412947147-5cebf100ffc2",
|
|
8009
|
+
"facial-acne": "1556228720-195a672e8a03",
|
|
8010
|
+
manicure: "1604654894610-df63bc536371",
|
|
8011
|
+
pedicure: "1519415943484-9fa1873496d4",
|
|
8012
|
+
"gel-manicure": "1607779097040-26e80aa78e66",
|
|
8013
|
+
haircut: "1622286342621-4bd786c2447c",
|
|
8014
|
+
"hair-treatment": "1633681926022-84c23e8cb2d6",
|
|
8015
|
+
color: "1560066984-138dadb4c035",
|
|
8016
|
+
"yoga-session": "1545205597-3d9d02c29597",
|
|
8017
|
+
meditation: "1506126613408-eca07ce68773",
|
|
8018
|
+
"spa-day": "1571019613454-1cb2f99b2d8b",
|
|
8019
|
+
couples: "1591343395082-e120087004b4",
|
|
8020
|
+
custom: "1540555700478-4be289fbecef"
|
|
8021
|
+
};
|
|
8022
|
+
var photoFor3 = (slug) => seedImage("services", slug, PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
7975
8023
|
function seedServices(registry) {
|
|
7976
8024
|
const businessId = "bus_serene_spa";
|
|
7977
8025
|
const business = {
|
|
@@ -7985,7 +8033,7 @@ function seedServices(registry) {
|
|
|
7985
8033
|
default_address: "12 Cantonments Road, Accra",
|
|
7986
8034
|
default_offers_table_service: false,
|
|
7987
8035
|
default_accepts_online_orders: true,
|
|
7988
|
-
image: "
|
|
8036
|
+
image: photoFor3("business-hero"),
|
|
7989
8037
|
status: "active",
|
|
7990
8038
|
created_at: ISO6,
|
|
7991
8039
|
updated_at: ISO6,
|
|
@@ -8053,8 +8101,8 @@ function seedServices(registry) {
|
|
|
8053
8101
|
product_type: "service",
|
|
8054
8102
|
base_price: s.price,
|
|
8055
8103
|
currency: "GHS",
|
|
8056
|
-
image:
|
|
8057
|
-
images: [
|
|
8104
|
+
image: photoFor3(s.slug),
|
|
8105
|
+
images: [photoFor3(s.slug)],
|
|
8058
8106
|
is_available: true,
|
|
8059
8107
|
category_ids: [catId],
|
|
8060
8108
|
collection_ids: [],
|
|
@@ -8190,8 +8238,8 @@ function seedServices(registry) {
|
|
|
8190
8238
|
product_type: "bundle",
|
|
8191
8239
|
base_price: "480.00",
|
|
8192
8240
|
currency: "GHS",
|
|
8193
|
-
image: "
|
|
8194
|
-
images: ["
|
|
8241
|
+
image: photoFor3("spa-day"),
|
|
8242
|
+
images: [photoFor3("spa-day")],
|
|
8195
8243
|
is_available: true,
|
|
8196
8244
|
category_ids: [catIds.get("wellness")],
|
|
8197
8245
|
collection_ids: [],
|
|
@@ -8224,8 +8272,8 @@ function seedServices(registry) {
|
|
|
8224
8272
|
product_type: "bundle",
|
|
8225
8273
|
base_price: "850.50",
|
|
8226
8274
|
currency: "GHS",
|
|
8227
|
-
image: "
|
|
8228
|
-
images: ["
|
|
8275
|
+
image: photoFor3("couples"),
|
|
8276
|
+
images: [photoFor3("couples")],
|
|
8229
8277
|
is_available: true,
|
|
8230
8278
|
category_ids: [catIds.get("wellness")],
|
|
8231
8279
|
collection_ids: [],
|
|
@@ -8260,8 +8308,8 @@ function seedServices(registry) {
|
|
|
8260
8308
|
product_type: "composite",
|
|
8261
8309
|
base_price: "0.00",
|
|
8262
8310
|
currency: "GHS",
|
|
8263
|
-
image: "
|
|
8264
|
-
images: ["
|
|
8311
|
+
image: photoFor3("custom"),
|
|
8312
|
+
images: [photoFor3("custom")],
|
|
8265
8313
|
is_available: true,
|
|
8266
8314
|
category_ids: [catIds.get("wellness")],
|
|
8267
8315
|
collection_ids: [],
|
|
@@ -8351,6 +8399,35 @@ function seedServices(registry) {
|
|
|
8351
8399
|
|
|
8352
8400
|
// src/mock/seeds/grocery.ts
|
|
8353
8401
|
var ISO7 = "2026-01-01T00:00:00.000Z";
|
|
8402
|
+
var PHOTO4 = {
|
|
8403
|
+
"business-hero": "1542838132-92c53300491e",
|
|
8404
|
+
"tomatoes-1kg": "1592924357228-91a4daadcfea",
|
|
8405
|
+
"onions-1kg": "1620574387735-3624d75b2dbc",
|
|
8406
|
+
"ginger-200g": "1594631252845-29fc4cc8cde9",
|
|
8407
|
+
"bananas-bunch": "1571771019784-3ff35f4f4277",
|
|
8408
|
+
pineapple: "1550258987-190a2d41a8ba",
|
|
8409
|
+
"spinach-bunch": "1576045057995-568f588f82fb",
|
|
8410
|
+
"milk-1l": "1563636619-e9143da7973b",
|
|
8411
|
+
"yogurt-500g": "1488477181946-6428a0291777",
|
|
8412
|
+
"eggs-12": "1582722872445-44dc5f7e3c8f",
|
|
8413
|
+
"cheese-200g": "1486297678162-eb2a19b0a32d",
|
|
8414
|
+
"chicken-1kg": "1604503468506-a8da13d82791",
|
|
8415
|
+
"beef-mince-500g": "1607623814075-e51df1bdc82f",
|
|
8416
|
+
"tilapia-each": "1535473895227-bdecb20fb157",
|
|
8417
|
+
"rice-5kg": "1586201375761-83865001e31c",
|
|
8418
|
+
"garri-2kg": "1582284540020-8acbe03f4924",
|
|
8419
|
+
"palm-oil-1l": "1611078489935-0cb964de46d6",
|
|
8420
|
+
"vegetable-oil-1l": "1474979266404-7eaacbcd87c5",
|
|
8421
|
+
"salt-1kg": "1607301406259-dfb186e15de8",
|
|
8422
|
+
"sugar-1kg": "1610725664285-7c57e6eeac3f",
|
|
8423
|
+
"tomato-paste": "1561136594-7f68413baa99",
|
|
8424
|
+
"soap-bar": "1600857062241-98e5dba7f214",
|
|
8425
|
+
"detergent-1kg": "1582735689369-4fe89db7114c",
|
|
8426
|
+
"tissue-pack": "1583947215259-38e31be8751f",
|
|
8427
|
+
"trash-bags": "1605600659908-0ef719419d41",
|
|
8428
|
+
essentials: "1542838132-92c53300491e"
|
|
8429
|
+
};
|
|
8430
|
+
var photoFor4 = (slug) => seedImage("grocery", slug, PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
8354
8431
|
function seedGrocery(registry) {
|
|
8355
8432
|
const businessId = "bus_freshmart";
|
|
8356
8433
|
const business = {
|
|
@@ -8364,7 +8441,7 @@ function seedGrocery(registry) {
|
|
|
8364
8441
|
default_address: "Spintex Road, Accra",
|
|
8365
8442
|
default_offers_table_service: false,
|
|
8366
8443
|
default_accepts_online_orders: true,
|
|
8367
|
-
image: "
|
|
8444
|
+
image: photoFor4("business-hero"),
|
|
8368
8445
|
status: "active",
|
|
8369
8446
|
created_at: ISO7,
|
|
8370
8447
|
updated_at: ISO7,
|
|
@@ -8439,8 +8516,8 @@ function seedGrocery(registry) {
|
|
|
8439
8516
|
product_type: "product",
|
|
8440
8517
|
base_price: p.price,
|
|
8441
8518
|
currency: "GHS",
|
|
8442
|
-
image:
|
|
8443
|
-
images: [
|
|
8519
|
+
image: photoFor4(p.slug),
|
|
8520
|
+
images: [photoFor4(p.slug)],
|
|
8444
8521
|
is_available: true,
|
|
8445
8522
|
category_ids: [catId],
|
|
8446
8523
|
collection_ids: [],
|
|
@@ -8523,8 +8600,8 @@ function seedGrocery(registry) {
|
|
|
8523
8600
|
product_type: "bundle",
|
|
8524
8601
|
base_price: "199.50",
|
|
8525
8602
|
currency: "GHS",
|
|
8526
|
-
image: "
|
|
8527
|
-
images: ["
|
|
8603
|
+
image: photoFor4("essentials"),
|
|
8604
|
+
images: [photoFor4("essentials")],
|
|
8528
8605
|
is_available: true,
|
|
8529
8606
|
category_ids: [catIds.get("pantry")],
|
|
8530
8607
|
collection_ids: [],
|
|
@@ -8613,7 +8690,7 @@ function seedGrocery(registry) {
|
|
|
8613
8690
|
|
|
8614
8691
|
// src/mock/seeds/fashion.ts
|
|
8615
8692
|
var ISO8 = "2026-01-01T00:00:00.000Z";
|
|
8616
|
-
var
|
|
8693
|
+
var PHOTO5 = {
|
|
8617
8694
|
"heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
|
|
8618
8695
|
"heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
|
|
8619
8696
|
"heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
|
|
@@ -8629,7 +8706,7 @@ var PHOTO2 = {
|
|
|
8629
8706
|
"knit-beanie": "1542838132-92c53300491e",
|
|
8630
8707
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8631
8708
|
};
|
|
8632
|
-
var
|
|
8709
|
+
var photoFor5 = (slug) => seedImage("fashion", slug, PHOTO5[slug] ?? "1556905055-8f358a7a47b2", 900);
|
|
8633
8710
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8634
8711
|
function seedFashion(registry) {
|
|
8635
8712
|
const businessId = "bus_studio_frx";
|
|
@@ -8827,8 +8904,8 @@ function seedFashion(registry) {
|
|
|
8827
8904
|
product_type: "product",
|
|
8828
8905
|
base_price: p.price,
|
|
8829
8906
|
currency: "GHS",
|
|
8830
|
-
image:
|
|
8831
|
-
images: [
|
|
8907
|
+
image: photoFor5(p.slug),
|
|
8908
|
+
images: [photoFor5(p.slug)],
|
|
8832
8909
|
is_available: true,
|
|
8833
8910
|
category_ids: [catId],
|
|
8834
8911
|
collection_ids: [],
|
package/dist/mock/library.js
CHANGED
|
@@ -6408,6 +6408,31 @@ function seedReesa(registry) {
|
|
|
6408
6408
|
|
|
6409
6409
|
// src/mock/seeds/restaurant.ts
|
|
6410
6410
|
var ISO4 = "2026-01-01T00:00:00.000Z";
|
|
6411
|
+
var PHOTO = {
|
|
6412
|
+
"business-hero": "1414235077428-338989a2e8c0",
|
|
6413
|
+
kelewele: "1599487488170-d11ec9c172f0",
|
|
6414
|
+
"spring-rolls": "1559339352-11d035aa65de",
|
|
6415
|
+
"soup-of-the-day": "1547592180-85f173990554",
|
|
6416
|
+
"jollof-rice": "1546069901-d5bfd2cbfb1f",
|
|
6417
|
+
"banku-tilapia": "1485921325833-c519f76c4927",
|
|
6418
|
+
"fufu-light-soup": "1602253057119-44d745d9b860",
|
|
6419
|
+
waakye: "1565299624946-b28f40a0ae38",
|
|
6420
|
+
"grilled-chicken": "1598103442097-8b74394b95c6",
|
|
6421
|
+
burger: "1568901346375-23c9450c58cd",
|
|
6422
|
+
"yam-fries": "1576107232684-1279f390859f",
|
|
6423
|
+
"fried-plantain": "1493770348161-369560ae357d",
|
|
6424
|
+
salad: "1512621776951-a57141f2eefd",
|
|
6425
|
+
"ice-cream": "1488900128323-21503983a07e",
|
|
6426
|
+
"cake-slice": "1565958011703-44f9829ba187",
|
|
6427
|
+
"fruit-bowl": "1490474418585-ba9bad8fd0ea",
|
|
6428
|
+
"soft-drink": "1581636625402-29b2a704ef13",
|
|
6429
|
+
sobolo: "1556679343-c7306c1976bc",
|
|
6430
|
+
"fresh-juice": "1610970881699-44a5587cabec",
|
|
6431
|
+
water: "1564325724739-bae0bd08762c",
|
|
6432
|
+
feast: "1559847844-5315695dadae",
|
|
6433
|
+
byo: "1551782450-a2132b4ba21d"
|
|
6434
|
+
};
|
|
6435
|
+
var photoFor = (slug) => seedImage("restaurant", slug, PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
6411
6436
|
function seedRestaurant(registry) {
|
|
6412
6437
|
const businessId = "bus_mamas_kitchen";
|
|
6413
6438
|
const business = {
|
|
@@ -6421,7 +6446,7 @@ function seedRestaurant(registry) {
|
|
|
6421
6446
|
default_address: "8 Ring Road, East Legon, Accra",
|
|
6422
6447
|
default_offers_table_service: true,
|
|
6423
6448
|
default_accepts_online_orders: true,
|
|
6424
|
-
image: "
|
|
6449
|
+
image: photoFor("business-hero"),
|
|
6425
6450
|
status: "active",
|
|
6426
6451
|
created_at: ISO4,
|
|
6427
6452
|
updated_at: ISO4,
|
|
@@ -6492,8 +6517,8 @@ function seedRestaurant(registry) {
|
|
|
6492
6517
|
product_type: "product",
|
|
6493
6518
|
base_price: p.price,
|
|
6494
6519
|
currency: "GHS",
|
|
6495
|
-
image:
|
|
6496
|
-
images: [
|
|
6520
|
+
image: photoFor(p.slug),
|
|
6521
|
+
images: [photoFor(p.slug)],
|
|
6497
6522
|
is_available: true,
|
|
6498
6523
|
category_ids: [catId],
|
|
6499
6524
|
collection_ids: [],
|
|
@@ -6731,8 +6756,8 @@ function seedRestaurant(registry) {
|
|
|
6731
6756
|
product_type: "bundle",
|
|
6732
6757
|
base_price: "180.00",
|
|
6733
6758
|
currency: "GHS",
|
|
6734
|
-
image: "
|
|
6735
|
-
images: ["
|
|
6759
|
+
image: photoFor("feast"),
|
|
6760
|
+
images: [photoFor("feast")],
|
|
6736
6761
|
is_available: true,
|
|
6737
6762
|
category_ids: [catIds.get("mains")],
|
|
6738
6763
|
collection_ids: [],
|
|
@@ -6767,8 +6792,8 @@ function seedRestaurant(registry) {
|
|
|
6767
6792
|
product_type: "composite",
|
|
6768
6793
|
base_price: "0.00",
|
|
6769
6794
|
currency: "GHS",
|
|
6770
|
-
image: "
|
|
6771
|
-
images: ["
|
|
6795
|
+
image: photoFor("byo"),
|
|
6796
|
+
images: [photoFor("byo")],
|
|
6772
6797
|
is_available: true,
|
|
6773
6798
|
category_ids: [catIds.get("mains")],
|
|
6774
6799
|
collection_ids: [],
|
|
@@ -6867,7 +6892,7 @@ function seedRestaurant(registry) {
|
|
|
6867
6892
|
|
|
6868
6893
|
// src/mock/seeds/retail.ts
|
|
6869
6894
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
6870
|
-
var
|
|
6895
|
+
var photoFor2 = (slug) => seedImage("retail", slug);
|
|
6871
6896
|
function seedRetail(registry) {
|
|
6872
6897
|
const businessId = "bus_currents_electronics";
|
|
6873
6898
|
const business = {
|
|
@@ -6951,8 +6976,8 @@ function seedRetail(registry) {
|
|
|
6951
6976
|
product_type: "product",
|
|
6952
6977
|
base_price: p.price,
|
|
6953
6978
|
currency: "GHS",
|
|
6954
|
-
image:
|
|
6955
|
-
images: [
|
|
6979
|
+
image: photoFor2(p.slug),
|
|
6980
|
+
images: [photoFor2(p.slug)],
|
|
6956
6981
|
is_available: true,
|
|
6957
6982
|
category_ids: [catId],
|
|
6958
6983
|
collection_ids: [],
|
|
@@ -7215,8 +7240,8 @@ function seedRetail(registry) {
|
|
|
7215
7240
|
product_type: "bundle",
|
|
7216
7241
|
base_price: "11910.00",
|
|
7217
7242
|
currency: "GHS",
|
|
7218
|
-
image:
|
|
7219
|
-
images: [
|
|
7243
|
+
image: photoFor2("wfh"),
|
|
7244
|
+
images: [photoFor2("wfh")],
|
|
7220
7245
|
is_available: true,
|
|
7221
7246
|
category_ids: [catIds.get("laptops")],
|
|
7222
7247
|
collection_ids: [],
|
|
@@ -7249,8 +7274,8 @@ function seedRetail(registry) {
|
|
|
7249
7274
|
product_type: "bundle",
|
|
7250
7275
|
base_price: "4200.00",
|
|
7251
7276
|
currency: "GHS",
|
|
7252
|
-
image:
|
|
7253
|
-
images: [
|
|
7277
|
+
image: photoFor2("game-pack"),
|
|
7278
|
+
images: [photoFor2("game-pack")],
|
|
7254
7279
|
is_available: true,
|
|
7255
7280
|
category_ids: [catIds.get("gaming")],
|
|
7256
7281
|
collection_ids: [],
|
|
@@ -7340,6 +7365,29 @@ function seedRetail(registry) {
|
|
|
7340
7365
|
|
|
7341
7366
|
// src/mock/seeds/services.ts
|
|
7342
7367
|
var ISO6 = "2026-01-01T00:00:00.000Z";
|
|
7368
|
+
var PHOTO3 = {
|
|
7369
|
+
"business-hero": "1540555700478-4be289fbecef",
|
|
7370
|
+
"swedish-massage-60": "1544161515-4ab6ce6db874",
|
|
7371
|
+
"swedish-massage-90": "1519823551278-64ac92734fb1",
|
|
7372
|
+
"deep-tissue-60": "1571019613454-1cb2f99b2d8b",
|
|
7373
|
+
"couples-massage": "1591343395082-e120087004b4",
|
|
7374
|
+
"hot-stone-90": "1620733723572-11c53f73a416",
|
|
7375
|
+
"facial-classic": "1487412947147-5cebf100ffc2",
|
|
7376
|
+
"facial-anti-aging": "1487412947147-5cebf100ffc2",
|
|
7377
|
+
"facial-acne": "1556228720-195a672e8a03",
|
|
7378
|
+
manicure: "1604654894610-df63bc536371",
|
|
7379
|
+
pedicure: "1519415943484-9fa1873496d4",
|
|
7380
|
+
"gel-manicure": "1607779097040-26e80aa78e66",
|
|
7381
|
+
haircut: "1622286342621-4bd786c2447c",
|
|
7382
|
+
"hair-treatment": "1633681926022-84c23e8cb2d6",
|
|
7383
|
+
color: "1560066984-138dadb4c035",
|
|
7384
|
+
"yoga-session": "1545205597-3d9d02c29597",
|
|
7385
|
+
meditation: "1506126613408-eca07ce68773",
|
|
7386
|
+
"spa-day": "1571019613454-1cb2f99b2d8b",
|
|
7387
|
+
couples: "1591343395082-e120087004b4",
|
|
7388
|
+
custom: "1540555700478-4be289fbecef"
|
|
7389
|
+
};
|
|
7390
|
+
var photoFor3 = (slug) => seedImage("services", slug, PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
7343
7391
|
function seedServices(registry) {
|
|
7344
7392
|
const businessId = "bus_serene_spa";
|
|
7345
7393
|
const business = {
|
|
@@ -7353,7 +7401,7 @@ function seedServices(registry) {
|
|
|
7353
7401
|
default_address: "12 Cantonments Road, Accra",
|
|
7354
7402
|
default_offers_table_service: false,
|
|
7355
7403
|
default_accepts_online_orders: true,
|
|
7356
|
-
image: "
|
|
7404
|
+
image: photoFor3("business-hero"),
|
|
7357
7405
|
status: "active",
|
|
7358
7406
|
created_at: ISO6,
|
|
7359
7407
|
updated_at: ISO6,
|
|
@@ -7421,8 +7469,8 @@ function seedServices(registry) {
|
|
|
7421
7469
|
product_type: "service",
|
|
7422
7470
|
base_price: s.price,
|
|
7423
7471
|
currency: "GHS",
|
|
7424
|
-
image:
|
|
7425
|
-
images: [
|
|
7472
|
+
image: photoFor3(s.slug),
|
|
7473
|
+
images: [photoFor3(s.slug)],
|
|
7426
7474
|
is_available: true,
|
|
7427
7475
|
category_ids: [catId],
|
|
7428
7476
|
collection_ids: [],
|
|
@@ -7558,8 +7606,8 @@ function seedServices(registry) {
|
|
|
7558
7606
|
product_type: "bundle",
|
|
7559
7607
|
base_price: "480.00",
|
|
7560
7608
|
currency: "GHS",
|
|
7561
|
-
image: "
|
|
7562
|
-
images: ["
|
|
7609
|
+
image: photoFor3("spa-day"),
|
|
7610
|
+
images: [photoFor3("spa-day")],
|
|
7563
7611
|
is_available: true,
|
|
7564
7612
|
category_ids: [catIds.get("wellness")],
|
|
7565
7613
|
collection_ids: [],
|
|
@@ -7592,8 +7640,8 @@ function seedServices(registry) {
|
|
|
7592
7640
|
product_type: "bundle",
|
|
7593
7641
|
base_price: "850.50",
|
|
7594
7642
|
currency: "GHS",
|
|
7595
|
-
image: "
|
|
7596
|
-
images: ["
|
|
7643
|
+
image: photoFor3("couples"),
|
|
7644
|
+
images: [photoFor3("couples")],
|
|
7597
7645
|
is_available: true,
|
|
7598
7646
|
category_ids: [catIds.get("wellness")],
|
|
7599
7647
|
collection_ids: [],
|
|
@@ -7628,8 +7676,8 @@ function seedServices(registry) {
|
|
|
7628
7676
|
product_type: "composite",
|
|
7629
7677
|
base_price: "0.00",
|
|
7630
7678
|
currency: "GHS",
|
|
7631
|
-
image: "
|
|
7632
|
-
images: ["
|
|
7679
|
+
image: photoFor3("custom"),
|
|
7680
|
+
images: [photoFor3("custom")],
|
|
7633
7681
|
is_available: true,
|
|
7634
7682
|
category_ids: [catIds.get("wellness")],
|
|
7635
7683
|
collection_ids: [],
|
|
@@ -7719,6 +7767,35 @@ function seedServices(registry) {
|
|
|
7719
7767
|
|
|
7720
7768
|
// src/mock/seeds/grocery.ts
|
|
7721
7769
|
var ISO7 = "2026-01-01T00:00:00.000Z";
|
|
7770
|
+
var PHOTO4 = {
|
|
7771
|
+
"business-hero": "1542838132-92c53300491e",
|
|
7772
|
+
"tomatoes-1kg": "1592924357228-91a4daadcfea",
|
|
7773
|
+
"onions-1kg": "1620574387735-3624d75b2dbc",
|
|
7774
|
+
"ginger-200g": "1594631252845-29fc4cc8cde9",
|
|
7775
|
+
"bananas-bunch": "1571771019784-3ff35f4f4277",
|
|
7776
|
+
pineapple: "1550258987-190a2d41a8ba",
|
|
7777
|
+
"spinach-bunch": "1576045057995-568f588f82fb",
|
|
7778
|
+
"milk-1l": "1563636619-e9143da7973b",
|
|
7779
|
+
"yogurt-500g": "1488477181946-6428a0291777",
|
|
7780
|
+
"eggs-12": "1582722872445-44dc5f7e3c8f",
|
|
7781
|
+
"cheese-200g": "1486297678162-eb2a19b0a32d",
|
|
7782
|
+
"chicken-1kg": "1604503468506-a8da13d82791",
|
|
7783
|
+
"beef-mince-500g": "1607623814075-e51df1bdc82f",
|
|
7784
|
+
"tilapia-each": "1535473895227-bdecb20fb157",
|
|
7785
|
+
"rice-5kg": "1586201375761-83865001e31c",
|
|
7786
|
+
"garri-2kg": "1582284540020-8acbe03f4924",
|
|
7787
|
+
"palm-oil-1l": "1611078489935-0cb964de46d6",
|
|
7788
|
+
"vegetable-oil-1l": "1474979266404-7eaacbcd87c5",
|
|
7789
|
+
"salt-1kg": "1607301406259-dfb186e15de8",
|
|
7790
|
+
"sugar-1kg": "1610725664285-7c57e6eeac3f",
|
|
7791
|
+
"tomato-paste": "1561136594-7f68413baa99",
|
|
7792
|
+
"soap-bar": "1600857062241-98e5dba7f214",
|
|
7793
|
+
"detergent-1kg": "1582735689369-4fe89db7114c",
|
|
7794
|
+
"tissue-pack": "1583947215259-38e31be8751f",
|
|
7795
|
+
"trash-bags": "1605600659908-0ef719419d41",
|
|
7796
|
+
essentials: "1542838132-92c53300491e"
|
|
7797
|
+
};
|
|
7798
|
+
var photoFor4 = (slug) => seedImage("grocery", slug, PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
7722
7799
|
function seedGrocery(registry) {
|
|
7723
7800
|
const businessId = "bus_freshmart";
|
|
7724
7801
|
const business = {
|
|
@@ -7732,7 +7809,7 @@ function seedGrocery(registry) {
|
|
|
7732
7809
|
default_address: "Spintex Road, Accra",
|
|
7733
7810
|
default_offers_table_service: false,
|
|
7734
7811
|
default_accepts_online_orders: true,
|
|
7735
|
-
image: "
|
|
7812
|
+
image: photoFor4("business-hero"),
|
|
7736
7813
|
status: "active",
|
|
7737
7814
|
created_at: ISO7,
|
|
7738
7815
|
updated_at: ISO7,
|
|
@@ -7807,8 +7884,8 @@ function seedGrocery(registry) {
|
|
|
7807
7884
|
product_type: "product",
|
|
7808
7885
|
base_price: p.price,
|
|
7809
7886
|
currency: "GHS",
|
|
7810
|
-
image:
|
|
7811
|
-
images: [
|
|
7887
|
+
image: photoFor4(p.slug),
|
|
7888
|
+
images: [photoFor4(p.slug)],
|
|
7812
7889
|
is_available: true,
|
|
7813
7890
|
category_ids: [catId],
|
|
7814
7891
|
collection_ids: [],
|
|
@@ -7891,8 +7968,8 @@ function seedGrocery(registry) {
|
|
|
7891
7968
|
product_type: "bundle",
|
|
7892
7969
|
base_price: "199.50",
|
|
7893
7970
|
currency: "GHS",
|
|
7894
|
-
image: "
|
|
7895
|
-
images: ["
|
|
7971
|
+
image: photoFor4("essentials"),
|
|
7972
|
+
images: [photoFor4("essentials")],
|
|
7896
7973
|
is_available: true,
|
|
7897
7974
|
category_ids: [catIds.get("pantry")],
|
|
7898
7975
|
collection_ids: [],
|
|
@@ -7981,7 +8058,7 @@ function seedGrocery(registry) {
|
|
|
7981
8058
|
|
|
7982
8059
|
// src/mock/seeds/fashion.ts
|
|
7983
8060
|
var ISO8 = "2026-01-01T00:00:00.000Z";
|
|
7984
|
-
var
|
|
8061
|
+
var PHOTO5 = {
|
|
7985
8062
|
"heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
|
|
7986
8063
|
"heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
|
|
7987
8064
|
"heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
|
|
@@ -7997,7 +8074,7 @@ var PHOTO2 = {
|
|
|
7997
8074
|
"knit-beanie": "1542838132-92c53300491e",
|
|
7998
8075
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
7999
8076
|
};
|
|
8000
|
-
var
|
|
8077
|
+
var photoFor5 = (slug) => seedImage("fashion", slug, PHOTO5[slug] ?? "1556905055-8f358a7a47b2", 900);
|
|
8001
8078
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8002
8079
|
function seedFashion(registry) {
|
|
8003
8080
|
const businessId = "bus_studio_frx";
|
|
@@ -8195,8 +8272,8 @@ function seedFashion(registry) {
|
|
|
8195
8272
|
product_type: "product",
|
|
8196
8273
|
base_price: p.price,
|
|
8197
8274
|
currency: "GHS",
|
|
8198
|
-
image:
|
|
8199
|
-
images: [
|
|
8275
|
+
image: photoFor5(p.slug),
|
|
8276
|
+
images: [photoFor5(p.slug)],
|
|
8200
8277
|
is_available: true,
|
|
8201
8278
|
category_ids: [catId],
|
|
8202
8279
|
collection_ids: [],
|