@cimplify/sdk 0.44.3 → 0.44.5

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/msw.mjs CHANGED
@@ -6404,6 +6404,31 @@ function seedReesa(registry) {
6404
6404
 
6405
6405
  // src/mock/seeds/restaurant.ts
6406
6406
  var ISO4 = "2026-01-01T00:00:00.000Z";
6407
+ var PHOTO = {
6408
+ "business-hero": "1414235077428-338989a2e8c0",
6409
+ kelewele: "1599487488170-d11ec9c172f0",
6410
+ "spring-rolls": "1559339352-11d035aa65de",
6411
+ "soup-of-the-day": "1547592180-85f173990554",
6412
+ "jollof-rice": "1546069901-d5bfd2cbfb1f",
6413
+ "banku-tilapia": "1485921325833-c519f76c4927",
6414
+ "fufu-light-soup": "1602253057119-44d745d9b860",
6415
+ waakye: "1565299624946-b28f40a0ae38",
6416
+ "grilled-chicken": "1598103442097-8b74394b95c6",
6417
+ burger: "1568901346375-23c9450c58cd",
6418
+ "yam-fries": "1576107232684-1279f390859f",
6419
+ "fried-plantain": "1493770348161-369560ae357d",
6420
+ salad: "1512621776951-a57141f2eefd",
6421
+ "ice-cream": "1488900128323-21503983a07e",
6422
+ "cake-slice": "1565958011703-44f9829ba187",
6423
+ "fruit-bowl": "1490474418585-ba9bad8fd0ea",
6424
+ "soft-drink": "1581636625402-29b2a704ef13",
6425
+ sobolo: "1556679343-c7306c1976bc",
6426
+ "fresh-juice": "1610970881699-44a5587cabec",
6427
+ water: "1564325724739-bae0bd08762c",
6428
+ feast: "1559847844-5315695dadae",
6429
+ byo: "1551782450-a2132b4ba21d"
6430
+ };
6431
+ var photoFor = (slug) => seedImage("restaurant", slug, PHOTO[slug] ?? "1414235077428-338989a2e8c0");
6407
6432
  function seedRestaurant(registry) {
6408
6433
  const businessId = "bus_mamas_kitchen";
6409
6434
  const business = {
@@ -6417,7 +6442,7 @@ function seedRestaurant(registry) {
6417
6442
  default_address: "8 Ring Road, East Legon, Accra",
6418
6443
  default_offers_table_service: true,
6419
6444
  default_accepts_online_orders: true,
6420
- image: "/img/mamas-logo.png",
6445
+ image: photoFor("business-hero"),
6421
6446
  status: "active",
6422
6447
  created_at: ISO4,
6423
6448
  updated_at: ISO4,
@@ -6488,8 +6513,8 @@ function seedRestaurant(registry) {
6488
6513
  product_type: "product",
6489
6514
  base_price: p.price,
6490
6515
  currency: "GHS",
6491
- image: `/img/mamas/${p.slug}.jpg`,
6492
- images: [`/img/mamas/${p.slug}.jpg`],
6516
+ image: photoFor(p.slug),
6517
+ images: [photoFor(p.slug)],
6493
6518
  is_available: true,
6494
6519
  category_ids: [catId],
6495
6520
  collection_ids: [],
@@ -6727,8 +6752,8 @@ function seedRestaurant(registry) {
6727
6752
  product_type: "bundle",
6728
6753
  base_price: "180.00",
6729
6754
  currency: "GHS",
6730
- image: "/img/mamas/feast.jpg",
6731
- images: ["/img/mamas/feast.jpg"],
6755
+ image: photoFor("feast"),
6756
+ images: [photoFor("feast")],
6732
6757
  is_available: true,
6733
6758
  category_ids: [catIds.get("mains")],
6734
6759
  collection_ids: [],
@@ -6763,8 +6788,8 @@ function seedRestaurant(registry) {
6763
6788
  product_type: "composite",
6764
6789
  base_price: "0.00",
6765
6790
  currency: "GHS",
6766
- image: "/img/mamas/byo.jpg",
6767
- images: ["/img/mamas/byo.jpg"],
6791
+ image: photoFor("byo"),
6792
+ images: [photoFor("byo")],
6768
6793
  is_available: true,
6769
6794
  category_ids: [catIds.get("mains")],
6770
6795
  collection_ids: [],
@@ -6863,7 +6888,7 @@ function seedRestaurant(registry) {
6863
6888
 
6864
6889
  // src/mock/seeds/retail.ts
6865
6890
  var ISO5 = "2026-01-01T00:00:00.000Z";
6866
- var photoFor = (slug) => seedImage("retail", slug);
6891
+ var photoFor2 = (slug) => seedImage("retail", slug);
6867
6892
  function seedRetail(registry) {
6868
6893
  const businessId = "bus_currents_electronics";
6869
6894
  const business = {
@@ -6947,8 +6972,8 @@ function seedRetail(registry) {
6947
6972
  product_type: "product",
6948
6973
  base_price: p.price,
6949
6974
  currency: "GHS",
6950
- image: photoFor(p.slug),
6951
- images: [photoFor(p.slug)],
6975
+ image: photoFor2(p.slug),
6976
+ images: [photoFor2(p.slug)],
6952
6977
  is_available: true,
6953
6978
  category_ids: [catId],
6954
6979
  collection_ids: [],
@@ -7211,8 +7236,8 @@ function seedRetail(registry) {
7211
7236
  product_type: "bundle",
7212
7237
  base_price: "11910.00",
7213
7238
  currency: "GHS",
7214
- image: photoFor("wfh"),
7215
- images: [photoFor("wfh")],
7239
+ image: photoFor2("wfh"),
7240
+ images: [photoFor2("wfh")],
7216
7241
  is_available: true,
7217
7242
  category_ids: [catIds.get("laptops")],
7218
7243
  collection_ids: [],
@@ -7245,8 +7270,8 @@ function seedRetail(registry) {
7245
7270
  product_type: "bundle",
7246
7271
  base_price: "4200.00",
7247
7272
  currency: "GHS",
7248
- image: photoFor("game-pack"),
7249
- images: [photoFor("game-pack")],
7273
+ image: photoFor2("game-pack"),
7274
+ images: [photoFor2("game-pack")],
7250
7275
  is_available: true,
7251
7276
  category_ids: [catIds.get("gaming")],
7252
7277
  collection_ids: [],
@@ -7336,6 +7361,29 @@ function seedRetail(registry) {
7336
7361
 
7337
7362
  // src/mock/seeds/services.ts
7338
7363
  var ISO6 = "2026-01-01T00:00:00.000Z";
7364
+ var PHOTO3 = {
7365
+ "business-hero": "1540555700478-4be289fbecef",
7366
+ "swedish-massage-60": "1544161515-4ab6ce6db874",
7367
+ "swedish-massage-90": "1519823551278-64ac92734fb1",
7368
+ "deep-tissue-60": "1571019613454-1cb2f99b2d8b",
7369
+ "couples-massage": "1591343395082-e120087004b4",
7370
+ "hot-stone-90": "1620733723572-11c53f73a416",
7371
+ "facial-classic": "1487412947147-5cebf100ffc2",
7372
+ "facial-anti-aging": "1487412947147-5cebf100ffc2",
7373
+ "facial-acne": "1556228720-195a672e8a03",
7374
+ manicure: "1604654894610-df63bc536371",
7375
+ pedicure: "1519415943484-9fa1873496d4",
7376
+ "gel-manicure": "1607779097040-26e80aa78e66",
7377
+ haircut: "1622286342621-4bd786c2447c",
7378
+ "hair-treatment": "1633681926022-84c23e8cb2d6",
7379
+ color: "1560066984-138dadb4c035",
7380
+ "yoga-session": "1545205597-3d9d02c29597",
7381
+ meditation: "1506126613408-eca07ce68773",
7382
+ "spa-day": "1571019613454-1cb2f99b2d8b",
7383
+ couples: "1591343395082-e120087004b4",
7384
+ custom: "1540555700478-4be289fbecef"
7385
+ };
7386
+ var photoFor3 = (slug) => seedImage("services", slug, PHOTO3[slug] ?? "1540555700478-4be289fbecef");
7339
7387
  function seedServices(registry) {
7340
7388
  const businessId = "bus_serene_spa";
7341
7389
  const business = {
@@ -7349,7 +7397,7 @@ function seedServices(registry) {
7349
7397
  default_address: "12 Cantonments Road, Accra",
7350
7398
  default_offers_table_service: false,
7351
7399
  default_accepts_online_orders: true,
7352
- image: "/img/serene-logo.png",
7400
+ image: photoFor3("business-hero"),
7353
7401
  status: "active",
7354
7402
  created_at: ISO6,
7355
7403
  updated_at: ISO6,
@@ -7417,8 +7465,8 @@ function seedServices(registry) {
7417
7465
  product_type: "service",
7418
7466
  base_price: s.price,
7419
7467
  currency: "GHS",
7420
- image: `/img/serene/${s.slug}.jpg`,
7421
- images: [`/img/serene/${s.slug}.jpg`],
7468
+ image: photoFor3(s.slug),
7469
+ images: [photoFor3(s.slug)],
7422
7470
  is_available: true,
7423
7471
  category_ids: [catId],
7424
7472
  collection_ids: [],
@@ -7554,8 +7602,8 @@ function seedServices(registry) {
7554
7602
  product_type: "bundle",
7555
7603
  base_price: "480.00",
7556
7604
  currency: "GHS",
7557
- image: "/img/serene/spa-day.jpg",
7558
- images: ["/img/serene/spa-day.jpg"],
7605
+ image: photoFor3("spa-day"),
7606
+ images: [photoFor3("spa-day")],
7559
7607
  is_available: true,
7560
7608
  category_ids: [catIds.get("wellness")],
7561
7609
  collection_ids: [],
@@ -7588,8 +7636,8 @@ function seedServices(registry) {
7588
7636
  product_type: "bundle",
7589
7637
  base_price: "850.50",
7590
7638
  currency: "GHS",
7591
- image: "/img/serene/couples.jpg",
7592
- images: ["/img/serene/couples.jpg"],
7639
+ image: photoFor3("couples"),
7640
+ images: [photoFor3("couples")],
7593
7641
  is_available: true,
7594
7642
  category_ids: [catIds.get("wellness")],
7595
7643
  collection_ids: [],
@@ -7624,8 +7672,8 @@ function seedServices(registry) {
7624
7672
  product_type: "composite",
7625
7673
  base_price: "0.00",
7626
7674
  currency: "GHS",
7627
- image: "/img/serene/custom.jpg",
7628
- images: ["/img/serene/custom.jpg"],
7675
+ image: photoFor3("custom"),
7676
+ images: [photoFor3("custom")],
7629
7677
  is_available: true,
7630
7678
  category_ids: [catIds.get("wellness")],
7631
7679
  collection_ids: [],
@@ -7715,6 +7763,35 @@ function seedServices(registry) {
7715
7763
 
7716
7764
  // src/mock/seeds/grocery.ts
7717
7765
  var ISO7 = "2026-01-01T00:00:00.000Z";
7766
+ var PHOTO4 = {
7767
+ "business-hero": "1542838132-92c53300491e",
7768
+ "tomatoes-1kg": "1592924357228-91a4daadcfea",
7769
+ "onions-1kg": "1620574387735-3624d75b2dbc",
7770
+ "ginger-200g": "1594631252845-29fc4cc8cde9",
7771
+ "bananas-bunch": "1571771019784-3ff35f4f4277",
7772
+ pineapple: "1550258987-190a2d41a8ba",
7773
+ "spinach-bunch": "1576045057995-568f588f82fb",
7774
+ "milk-1l": "1563636619-e9143da7973b",
7775
+ "yogurt-500g": "1488477181946-6428a0291777",
7776
+ "eggs-12": "1582722872445-44dc5f7e3c8f",
7777
+ "cheese-200g": "1486297678162-eb2a19b0a32d",
7778
+ "chicken-1kg": "1604503468506-a8da13d82791",
7779
+ "beef-mince-500g": "1607623814075-e51df1bdc82f",
7780
+ "tilapia-each": "1535473895227-bdecb20fb157",
7781
+ "rice-5kg": "1586201375761-83865001e31c",
7782
+ "garri-2kg": "1582284540020-8acbe03f4924",
7783
+ "palm-oil-1l": "1611078489935-0cb964de46d6",
7784
+ "vegetable-oil-1l": "1474979266404-7eaacbcd87c5",
7785
+ "salt-1kg": "1607301406259-dfb186e15de8",
7786
+ "sugar-1kg": "1610725664285-7c57e6eeac3f",
7787
+ "tomato-paste": "1561136594-7f68413baa99",
7788
+ "soap-bar": "1600857062241-98e5dba7f214",
7789
+ "detergent-1kg": "1582735689369-4fe89db7114c",
7790
+ "tissue-pack": "1583947215259-38e31be8751f",
7791
+ "trash-bags": "1605600659908-0ef719419d41",
7792
+ essentials: "1542838132-92c53300491e"
7793
+ };
7794
+ var photoFor4 = (slug) => seedImage("grocery", slug, PHOTO4[slug] ?? "1542838132-92c53300491e");
7718
7795
  function seedGrocery(registry) {
7719
7796
  const businessId = "bus_freshmart";
7720
7797
  const business = {
@@ -7728,7 +7805,7 @@ function seedGrocery(registry) {
7728
7805
  default_address: "Spintex Road, Accra",
7729
7806
  default_offers_table_service: false,
7730
7807
  default_accepts_online_orders: true,
7731
- image: "/img/freshmart-logo.png",
7808
+ image: photoFor4("business-hero"),
7732
7809
  status: "active",
7733
7810
  created_at: ISO7,
7734
7811
  updated_at: ISO7,
@@ -7803,8 +7880,8 @@ function seedGrocery(registry) {
7803
7880
  product_type: "product",
7804
7881
  base_price: p.price,
7805
7882
  currency: "GHS",
7806
- image: `/img/freshmart/${p.slug}.jpg`,
7807
- images: [`/img/freshmart/${p.slug}.jpg`],
7883
+ image: photoFor4(p.slug),
7884
+ images: [photoFor4(p.slug)],
7808
7885
  is_available: true,
7809
7886
  category_ids: [catId],
7810
7887
  collection_ids: [],
@@ -7887,8 +7964,8 @@ function seedGrocery(registry) {
7887
7964
  product_type: "bundle",
7888
7965
  base_price: "199.50",
7889
7966
  currency: "GHS",
7890
- image: "/img/freshmart/essentials.jpg",
7891
- images: ["/img/freshmart/essentials.jpg"],
7967
+ image: photoFor4("essentials"),
7968
+ images: [photoFor4("essentials")],
7892
7969
  is_available: true,
7893
7970
  category_ids: [catIds.get("pantry")],
7894
7971
  collection_ids: [],
@@ -7977,7 +8054,7 @@ function seedGrocery(registry) {
7977
8054
 
7978
8055
  // src/mock/seeds/fashion.ts
7979
8056
  var ISO8 = "2026-01-01T00:00:00.000Z";
7980
- var PHOTO2 = {
8057
+ var PHOTO5 = {
7981
8058
  "heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
7982
8059
  "heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
7983
8060
  "heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
@@ -7993,7 +8070,7 @@ var PHOTO2 = {
7993
8070
  "knit-beanie": "1542838132-92c53300491e",
7994
8071
  "studio-sock-3pack": "1602810318383-e386cc2a3ccf"
7995
8072
  };
7996
- var photoFor2 = (slug) => seedImage("fashion", slug, PHOTO2[slug] ?? "1556905055-8f358a7a47b2", 900);
8073
+ var photoFor5 = (slug) => seedImage("fashion", slug, PHOTO5[slug] ?? "1556905055-8f358a7a47b2", 900);
7997
8074
  var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
7998
8075
  function seedFashion(registry) {
7999
8076
  const businessId = "bus_studio_frx";
@@ -8191,8 +8268,8 @@ function seedFashion(registry) {
8191
8268
  product_type: "product",
8192
8269
  base_price: p.price,
8193
8270
  currency: "GHS",
8194
- image: photoFor2(p.slug),
8195
- images: [photoFor2(p.slug)],
8271
+ image: photoFor5(p.slug),
8272
+ images: [photoFor5(p.slug)],
8196
8273
  is_available: true,
8197
8274
  category_ids: [catId],
8198
8275
  collection_ids: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cimplify/sdk",
3
- "version": "0.44.3",
3
+ "version": "0.44.5",
4
4
  "description": "Cimplify Commerce SDK for storefronts",
5
5
  "keywords": [
6
6
  "cimplify",
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@cimplify/sdk": "^0.39.1",
14
+ "@cimplify/sdk": "^0.44.4",
15
15
  "next": "^16.2.4",
16
16
  "react": "^19.0.0",
17
17
  "react-dom": "^19.0.0"
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@cimplify/sdk": "^0.43.0",
14
+ "@cimplify/sdk": "^0.44.4",
15
15
  "next": "^16.2.4",
16
16
  "react": "^19.0.0",
17
17
  "react-dom": "^19.0.0"
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@cimplify/sdk": "^0.40.1",
14
+ "@cimplify/sdk": "^0.44.4",
15
15
  "next": "^16.2.4",
16
16
  "react": "^19.0.0",
17
17
  "react-dom": "^19.0.0"
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@cimplify/sdk": "^0.40.1",
14
+ "@cimplify/sdk": "^0.44.4",
15
15
  "next": "^16.2.4",
16
16
  "react": "^19.0.0",
17
17
  "react-dom": "^19.0.0"
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@cimplify/sdk": "^0.39.1",
14
+ "@cimplify/sdk": "^0.44.4",
15
15
  "next": "^16.2.4",
16
16
  "react": "^19.0.0",
17
17
  "react-dom": "^19.0.0"
@@ -11,7 +11,7 @@
11
11
  "lint": "next lint"
12
12
  },
13
13
  "dependencies": {
14
- "@cimplify/sdk": "^0.40.1",
14
+ "@cimplify/sdk": "^0.44.4",
15
15
  "next": "^16.2.4",
16
16
  "react": "^19.0.0",
17
17
  "react-dom": "^19.0.0"