@cimplify/sdk 0.44.2 → 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 CHANGED
@@ -5675,10 +5675,18 @@ function createLiteService(opts) {
5675
5675
  };
5676
5676
  }
5677
5677
 
5678
+ // src/mock/seeds/image.ts
5679
+ var CIMPLIFY_CDN_BASE_URL = "https://static-tmp.cimplify.io";
5680
+ function seedImage(industry, slug, unsplashId, size = 800) {
5681
+ {
5682
+ return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
5683
+ }
5684
+ }
5685
+
5678
5686
  // src/mock/seeds/default.ts
5679
5687
  var ISO = "2026-01-01T00:00:00.000Z";
5680
5688
  var BUSINESS_ID = "bus_default_akua_bakery";
5681
- var img = (id) => `https://images.unsplash.com/photo-${id}?w=800&h=800&fit=crop&auto=format&q=80`;
5689
+ var img = (id) => seedImage("bakery", id);
5682
5690
  function makeProduct(input, categoryIds) {
5683
5691
  const catId = categoryIds.get(input.category);
5684
5692
  return {
@@ -6152,7 +6160,7 @@ function seedDefault(registry) {
6152
6160
  price: "320.00",
6153
6161
  description: "Two-hour hands-on class: shape your own boule, score it, and take home a baked loaf and a starter jar. Held Saturdays, 10am\u201312pm.",
6154
6162
  category: "classes",
6155
- imageUrl: img("1556909114-44e3e9399a2e"),
6163
+ imageUrl: img("1517686469429-8bdb88b9f907"),
6156
6164
  tags: ["class", "service", "hands-on"],
6157
6165
  productType: "service",
6158
6166
  durationMinutes: 120
@@ -6178,7 +6186,7 @@ function seedDefault(registry) {
6178
6186
  price: "180.00",
6179
6187
  description: "Rent our commercial bakery after hours. Deck oven, retarder-proofer, mixers, scales \u2014 bring your team or shoot your content. Hourly.",
6180
6188
  category: "classes",
6181
- imageUrl: img("1556909114-44e3e9399a2e"),
6189
+ imageUrl: img("1606755962773-d324e0a13086"),
6182
6190
  tags: ["rental", "service", "commercial"],
6183
6191
  productType: "service",
6184
6192
  durationUnit: "hours"
@@ -7032,6 +7040,31 @@ function seedReesa(registry) {
7032
7040
 
7033
7041
  // src/mock/seeds/restaurant.ts
7034
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");
7035
7068
  function seedRestaurant(registry) {
7036
7069
  const businessId = "bus_mamas_kitchen";
7037
7070
  const business = {
@@ -7045,7 +7078,7 @@ function seedRestaurant(registry) {
7045
7078
  default_address: "8 Ring Road, East Legon, Accra",
7046
7079
  default_offers_table_service: true,
7047
7080
  default_accepts_online_orders: true,
7048
- image: "/img/mamas-logo.png",
7081
+ image: photoFor("business-hero"),
7049
7082
  status: "active",
7050
7083
  created_at: ISO4,
7051
7084
  updated_at: ISO4,
@@ -7116,8 +7149,8 @@ function seedRestaurant(registry) {
7116
7149
  product_type: "product",
7117
7150
  base_price: p.price,
7118
7151
  currency: "GHS",
7119
- image: `/img/mamas/${p.slug}.jpg`,
7120
- images: [`/img/mamas/${p.slug}.jpg`],
7152
+ image: photoFor(p.slug),
7153
+ images: [photoFor(p.slug)],
7121
7154
  is_available: true,
7122
7155
  category_ids: [catId],
7123
7156
  collection_ids: [],
@@ -7355,8 +7388,8 @@ function seedRestaurant(registry) {
7355
7388
  product_type: "bundle",
7356
7389
  base_price: "180.00",
7357
7390
  currency: "GHS",
7358
- image: "/img/mamas/feast.jpg",
7359
- images: ["/img/mamas/feast.jpg"],
7391
+ image: photoFor("feast"),
7392
+ images: [photoFor("feast")],
7360
7393
  is_available: true,
7361
7394
  category_ids: [catIds.get("mains")],
7362
7395
  collection_ids: [],
@@ -7391,8 +7424,8 @@ function seedRestaurant(registry) {
7391
7424
  product_type: "composite",
7392
7425
  base_price: "0.00",
7393
7426
  currency: "GHS",
7394
- image: "/img/mamas/byo.jpg",
7395
- images: ["/img/mamas/byo.jpg"],
7427
+ image: photoFor("byo"),
7428
+ images: [photoFor("byo")],
7396
7429
  is_available: true,
7397
7430
  category_ids: [catIds.get("mains")],
7398
7431
  collection_ids: [],
@@ -7491,30 +7524,7 @@ function seedRestaurant(registry) {
7491
7524
 
7492
7525
  // src/mock/seeds/retail.ts
7493
7526
  var ISO5 = "2026-01-01T00:00:00.000Z";
7494
- var img2 = (id) => `https://images.unsplash.com/photo-${id}?w=800&h=800&fit=crop&auto=format&q=80`;
7495
- var PHOTO = {
7496
- "android-flagship": "1592750475338-74b7b21085ab",
7497
- "android-mid": "1511707171634-5f897ff02aa9",
7498
- "phone-budget": "1574944985070-8f3ebc6b79d2",
7499
- "laptop-pro": "1517336714731-489689fd1ca8",
7500
- "laptop-air": "1496181133206-80ce9b88a853",
7501
- "laptop-budget": "1601784551446-20c9e07cdbdb",
7502
- "headphones-anc": "1505740420928-5e560c06d30e",
7503
- "earbuds-pro": "1572569511254-d8f925fe2cbb",
7504
- "speaker-bt": "1612287230202-1ff1d85d1bdf",
7505
- "phone-case": "1611532736597-de2d4265fba3",
7506
- "screen-protector": "1568952433726-3896e3881c65",
7507
- "fast-charger": "1620794108219-aedbaded4eea",
7508
- "laptop-sleeve": "1604671801908-6f0c6a092c05",
7509
- "wireless-mouse": "1594732832278-abd644401426",
7510
- "mech-keyboard": "1583394838336-acd977736f90",
7511
- "gaming-controller": "1542751371-adc38448a05e",
7512
- "gaming-headset": "1606220945770-b5b6c2c55bf1",
7513
- "console-handheld": "1593642634524-b40b5baae6bb",
7514
- wfh: "1605236453806-6ff36851218e",
7515
- "game-pack": "1606144042614-b2417e99c4e3"
7516
- };
7517
- var photoFor = (slug) => img2(PHOTO[slug] ?? "1517336714731-489689fd1ca8");
7527
+ var photoFor2 = (slug) => seedImage("retail", slug);
7518
7528
  function seedRetail(registry) {
7519
7529
  const businessId = "bus_currents_electronics";
7520
7530
  const business = {
@@ -7598,8 +7608,8 @@ function seedRetail(registry) {
7598
7608
  product_type: "product",
7599
7609
  base_price: p.price,
7600
7610
  currency: "GHS",
7601
- image: photoFor(p.slug),
7602
- images: [photoFor(p.slug)],
7611
+ image: photoFor2(p.slug),
7612
+ images: [photoFor2(p.slug)],
7603
7613
  is_available: true,
7604
7614
  category_ids: [catId],
7605
7615
  collection_ids: [],
@@ -7862,8 +7872,8 @@ function seedRetail(registry) {
7862
7872
  product_type: "bundle",
7863
7873
  base_price: "11910.00",
7864
7874
  currency: "GHS",
7865
- image: photoFor("wfh"),
7866
- images: [photoFor("wfh")],
7875
+ image: photoFor2("wfh"),
7876
+ images: [photoFor2("wfh")],
7867
7877
  is_available: true,
7868
7878
  category_ids: [catIds.get("laptops")],
7869
7879
  collection_ids: [],
@@ -7896,8 +7906,8 @@ function seedRetail(registry) {
7896
7906
  product_type: "bundle",
7897
7907
  base_price: "4200.00",
7898
7908
  currency: "GHS",
7899
- image: photoFor("game-pack"),
7900
- images: [photoFor("game-pack")],
7909
+ image: photoFor2("game-pack"),
7910
+ images: [photoFor2("game-pack")],
7901
7911
  is_available: true,
7902
7912
  category_ids: [catIds.get("gaming")],
7903
7913
  collection_ids: [],
@@ -7987,6 +7997,29 @@ function seedRetail(registry) {
7987
7997
 
7988
7998
  // src/mock/seeds/services.ts
7989
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");
7990
8023
  function seedServices(registry) {
7991
8024
  const businessId = "bus_serene_spa";
7992
8025
  const business = {
@@ -8000,7 +8033,7 @@ function seedServices(registry) {
8000
8033
  default_address: "12 Cantonments Road, Accra",
8001
8034
  default_offers_table_service: false,
8002
8035
  default_accepts_online_orders: true,
8003
- image: "/img/serene-logo.png",
8036
+ image: photoFor3("business-hero"),
8004
8037
  status: "active",
8005
8038
  created_at: ISO6,
8006
8039
  updated_at: ISO6,
@@ -8068,8 +8101,8 @@ function seedServices(registry) {
8068
8101
  product_type: "service",
8069
8102
  base_price: s.price,
8070
8103
  currency: "GHS",
8071
- image: `/img/serene/${s.slug}.jpg`,
8072
- images: [`/img/serene/${s.slug}.jpg`],
8104
+ image: photoFor3(s.slug),
8105
+ images: [photoFor3(s.slug)],
8073
8106
  is_available: true,
8074
8107
  category_ids: [catId],
8075
8108
  collection_ids: [],
@@ -8205,8 +8238,8 @@ function seedServices(registry) {
8205
8238
  product_type: "bundle",
8206
8239
  base_price: "480.00",
8207
8240
  currency: "GHS",
8208
- image: "/img/serene/spa-day.jpg",
8209
- images: ["/img/serene/spa-day.jpg"],
8241
+ image: photoFor3("spa-day"),
8242
+ images: [photoFor3("spa-day")],
8210
8243
  is_available: true,
8211
8244
  category_ids: [catIds.get("wellness")],
8212
8245
  collection_ids: [],
@@ -8239,8 +8272,8 @@ function seedServices(registry) {
8239
8272
  product_type: "bundle",
8240
8273
  base_price: "850.50",
8241
8274
  currency: "GHS",
8242
- image: "/img/serene/couples.jpg",
8243
- images: ["/img/serene/couples.jpg"],
8275
+ image: photoFor3("couples"),
8276
+ images: [photoFor3("couples")],
8244
8277
  is_available: true,
8245
8278
  category_ids: [catIds.get("wellness")],
8246
8279
  collection_ids: [],
@@ -8275,8 +8308,8 @@ function seedServices(registry) {
8275
8308
  product_type: "composite",
8276
8309
  base_price: "0.00",
8277
8310
  currency: "GHS",
8278
- image: "/img/serene/custom.jpg",
8279
- images: ["/img/serene/custom.jpg"],
8311
+ image: photoFor3("custom"),
8312
+ images: [photoFor3("custom")],
8280
8313
  is_available: true,
8281
8314
  category_ids: [catIds.get("wellness")],
8282
8315
  collection_ids: [],
@@ -8366,6 +8399,35 @@ function seedServices(registry) {
8366
8399
 
8367
8400
  // src/mock/seeds/grocery.ts
8368
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");
8369
8431
  function seedGrocery(registry) {
8370
8432
  const businessId = "bus_freshmart";
8371
8433
  const business = {
@@ -8379,7 +8441,7 @@ function seedGrocery(registry) {
8379
8441
  default_address: "Spintex Road, Accra",
8380
8442
  default_offers_table_service: false,
8381
8443
  default_accepts_online_orders: true,
8382
- image: "/img/freshmart-logo.png",
8444
+ image: photoFor4("business-hero"),
8383
8445
  status: "active",
8384
8446
  created_at: ISO7,
8385
8447
  updated_at: ISO7,
@@ -8454,8 +8516,8 @@ function seedGrocery(registry) {
8454
8516
  product_type: "product",
8455
8517
  base_price: p.price,
8456
8518
  currency: "GHS",
8457
- image: `/img/freshmart/${p.slug}.jpg`,
8458
- images: [`/img/freshmart/${p.slug}.jpg`],
8519
+ image: photoFor4(p.slug),
8520
+ images: [photoFor4(p.slug)],
8459
8521
  is_available: true,
8460
8522
  category_ids: [catId],
8461
8523
  collection_ids: [],
@@ -8538,8 +8600,8 @@ function seedGrocery(registry) {
8538
8600
  product_type: "bundle",
8539
8601
  base_price: "199.50",
8540
8602
  currency: "GHS",
8541
- image: "/img/freshmart/essentials.jpg",
8542
- images: ["/img/freshmart/essentials.jpg"],
8603
+ image: photoFor4("essentials"),
8604
+ images: [photoFor4("essentials")],
8543
8605
  is_available: true,
8544
8606
  category_ids: [catIds.get("pantry")],
8545
8607
  collection_ids: [],
@@ -8628,8 +8690,7 @@ function seedGrocery(registry) {
8628
8690
 
8629
8691
  // src/mock/seeds/fashion.ts
8630
8692
  var ISO8 = "2026-01-01T00:00:00.000Z";
8631
- var img3 = (id) => `https://images.unsplash.com/photo-${id}?w=900&h=1200&fit=crop&auto=format&q=80`;
8632
- var PHOTO2 = {
8693
+ var PHOTO5 = {
8633
8694
  "heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
8634
8695
  "heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
8635
8696
  "heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
@@ -8645,7 +8706,7 @@ var PHOTO2 = {
8645
8706
  "knit-beanie": "1542838132-92c53300491e",
8646
8707
  "studio-sock-3pack": "1602810318383-e386cc2a3ccf"
8647
8708
  };
8648
- var photoFor2 = (slug) => img3(PHOTO2[slug] ?? "1556905055-8f358a7a47b2");
8709
+ var photoFor5 = (slug) => seedImage("fashion", slug, PHOTO5[slug] ?? "1556905055-8f358a7a47b2", 900);
8649
8710
  var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
8650
8711
  function seedFashion(registry) {
8651
8712
  const businessId = "bus_studio_frx";
@@ -8660,7 +8721,7 @@ function seedFashion(registry) {
8660
8721
  default_address: "Osu Oxford Street, Accra",
8661
8722
  default_offers_table_service: false,
8662
8723
  default_accepts_online_orders: true,
8663
- image: img3("1490481651871-ab68de25d43d"),
8724
+ image: seedImage("fashion", "business-hero"),
8664
8725
  status: "active",
8665
8726
  created_at: ISO8,
8666
8727
  updated_at: ISO8,
@@ -8843,8 +8904,8 @@ function seedFashion(registry) {
8843
8904
  product_type: "product",
8844
8905
  base_price: p.price,
8845
8906
  currency: "GHS",
8846
- image: photoFor2(p.slug),
8847
- images: [photoFor2(p.slug)],
8907
+ image: photoFor5(p.slug),
8908
+ images: [photoFor5(p.slug)],
8848
8909
  is_available: true,
8849
8910
  category_ids: [catId],
8850
8911
  collection_ids: [],