@cimplify/sdk 0.45.1 → 0.45.2
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/{chunk-W72W6M6M.mjs → chunk-EMEUSFSR.mjs} +32 -12
- package/dist/{chunk-GCSZYC5C.js → chunk-F4CGIOIJ.js} +32 -12
- package/dist/{chunk-T4E4R4YG.js → chunk-JNXCY43J.js} +2 -2
- package/dist/{chunk-D3TVW7JP.mjs → chunk-YVIIBCJR.mjs} +1 -1
- package/dist/mock/cli.mjs +32 -12
- package/dist/mock/library.js +32 -12
- package/dist/mock/library.mjs +32 -12
- package/dist/mock/msw.js +32 -12
- package/dist/mock/msw.mjs +32 -12
- package/dist/styles.css +1 -1
- package/dist/testing/msw.js +2 -2
- package/dist/testing/msw.mjs +1 -1
- package/dist/testing/suite.js +21 -21
- package/dist/testing/suite.mjs +2 -2
- package/dist/testing.js +77 -77
- package/dist/testing.mjs +3 -3
- package/package.json +1 -1
|
@@ -5674,17 +5674,15 @@ function createLinkService({ clock, ids }) {
|
|
|
5674
5674
|
}
|
|
5675
5675
|
|
|
5676
5676
|
// src/mock/seeds/image.ts
|
|
5677
|
-
var
|
|
5678
|
-
function seedImage(industry,
|
|
5679
|
-
{
|
|
5680
|
-
return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
|
|
5681
|
-
}
|
|
5677
|
+
var CDN_BASE_URL = "https://static-tmp.cimplify.io";
|
|
5678
|
+
function seedImage(industry, photoId) {
|
|
5679
|
+
return `${CDN_BASE_URL}/seed/${industry}/${photoId}.jpg`;
|
|
5682
5680
|
}
|
|
5683
5681
|
|
|
5684
5682
|
// src/mock/seeds/default.ts
|
|
5685
5683
|
var ISO = "2026-01-01T00:00:00.000Z";
|
|
5686
5684
|
var BUSINESS_ID = "bus_default_akua_bakery";
|
|
5687
|
-
var img = (
|
|
5685
|
+
var img = (photoId) => seedImage("bakery", photoId);
|
|
5688
5686
|
function makeProduct(input, categoryIds) {
|
|
5689
5687
|
const catId = categoryIds.get(input.category);
|
|
5690
5688
|
return {
|
|
@@ -7062,7 +7060,7 @@ var PHOTO = {
|
|
|
7062
7060
|
feast: "1559847844-5315695dadae",
|
|
7063
7061
|
byo: "1551782450-a2132b4ba21d"
|
|
7064
7062
|
};
|
|
7065
|
-
var photoFor = (slug) => seedImage("restaurant",
|
|
7063
|
+
var photoFor = (slug) => seedImage("restaurant", PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7066
7064
|
function seedRestaurant(registry) {
|
|
7067
7065
|
const businessId = "bus_mamas_kitchen";
|
|
7068
7066
|
const business = {
|
|
@@ -7522,7 +7520,29 @@ function seedRestaurant(registry) {
|
|
|
7522
7520
|
|
|
7523
7521
|
// src/mock/seeds/retail.ts
|
|
7524
7522
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
7525
|
-
var
|
|
7523
|
+
var PHOTO2 = {
|
|
7524
|
+
"android-flagship": "1592750475338-74b7b21085ab",
|
|
7525
|
+
"android-mid": "1511707171634-5f897ff02aa9",
|
|
7526
|
+
"phone-budget": "1574944985070-8f3ebc6b79d2",
|
|
7527
|
+
"laptop-pro": "1517336714731-489689fd1ca8",
|
|
7528
|
+
"laptop-air": "1496181133206-80ce9b88a853",
|
|
7529
|
+
"laptop-budget": "1601784551446-20c9e07cdbdb",
|
|
7530
|
+
"headphones-anc": "1505740420928-5e560c06d30e",
|
|
7531
|
+
"earbuds-pro": "1572569511254-d8f925fe2cbb",
|
|
7532
|
+
"speaker-bt": "1612287230202-1ff1d85d1bdf",
|
|
7533
|
+
"phone-case": "1611532736597-de2d4265fba3",
|
|
7534
|
+
"screen-protector": "1568952433726-3896e3881c65",
|
|
7535
|
+
"fast-charger": "1620794108219-aedbaded4eea",
|
|
7536
|
+
"laptop-sleeve": "1604671801908-6f0c6a092c05",
|
|
7537
|
+
"wireless-mouse": "1594732832278-abd644401426",
|
|
7538
|
+
"mech-keyboard": "1583394838336-acd977736f90",
|
|
7539
|
+
"gaming-controller": "1542751371-adc38448a05e",
|
|
7540
|
+
"gaming-headset": "1606220945770-b5b6c2c55bf1",
|
|
7541
|
+
"console-handheld": "1593642634524-b40b5baae6bb",
|
|
7542
|
+
wfh: "1605236453806-6ff36851218e",
|
|
7543
|
+
"game-pack": "1606144042614-b2417e99c4e3"
|
|
7544
|
+
};
|
|
7545
|
+
var photoFor2 = (slug) => seedImage("retail", PHOTO2[slug] ?? "1517336714731-489689fd1ca8");
|
|
7526
7546
|
function seedRetail(registry) {
|
|
7527
7547
|
const businessId = "bus_currents_electronics";
|
|
7528
7548
|
const business = {
|
|
@@ -8017,7 +8037,7 @@ var PHOTO3 = {
|
|
|
8017
8037
|
couples: "1591343395082-e120087004b4",
|
|
8018
8038
|
custom: "1540555700478-4be289fbecef"
|
|
8019
8039
|
};
|
|
8020
|
-
var photoFor3 = (slug) => seedImage("services",
|
|
8040
|
+
var photoFor3 = (slug) => seedImage("services", PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
8021
8041
|
function seedServices(registry) {
|
|
8022
8042
|
const businessId = "bus_serene_spa";
|
|
8023
8043
|
const business = {
|
|
@@ -8425,7 +8445,7 @@ var PHOTO4 = {
|
|
|
8425
8445
|
"trash-bags": "1605600659908-0ef719419d41",
|
|
8426
8446
|
essentials: "1542838132-92c53300491e"
|
|
8427
8447
|
};
|
|
8428
|
-
var photoFor4 = (slug) => seedImage("grocery",
|
|
8448
|
+
var photoFor4 = (slug) => seedImage("grocery", PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
8429
8449
|
function seedGrocery(registry) {
|
|
8430
8450
|
const businessId = "bus_freshmart";
|
|
8431
8451
|
const business = {
|
|
@@ -8704,7 +8724,7 @@ var PHOTO5 = {
|
|
|
8704
8724
|
"knit-beanie": "1542838132-92c53300491e",
|
|
8705
8725
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8706
8726
|
};
|
|
8707
|
-
var photoFor5 = (slug) => seedImage("fashion",
|
|
8727
|
+
var photoFor5 = (slug) => seedImage("fashion", PHOTO5[slug] ?? "1556905055-8f358a7a47b2");
|
|
8708
8728
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8709
8729
|
function seedFashion(registry) {
|
|
8710
8730
|
const businessId = "bus_studio_frx";
|
|
@@ -8719,7 +8739,7 @@ function seedFashion(registry) {
|
|
|
8719
8739
|
default_address: "Osu Oxford Street, Accra",
|
|
8720
8740
|
default_offers_table_service: false,
|
|
8721
8741
|
default_accepts_online_orders: true,
|
|
8722
|
-
image: seedImage("fashion", "
|
|
8742
|
+
image: seedImage("fashion", "1490481651871-ab68de25d43d"),
|
|
8723
8743
|
status: "active",
|
|
8724
8744
|
created_at: ISO8,
|
|
8725
8745
|
updated_at: ISO8,
|
|
@@ -5676,17 +5676,15 @@ function createLinkService({ clock, ids }) {
|
|
|
5676
5676
|
}
|
|
5677
5677
|
|
|
5678
5678
|
// src/mock/seeds/image.ts
|
|
5679
|
-
var
|
|
5680
|
-
function seedImage(industry,
|
|
5681
|
-
{
|
|
5682
|
-
return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
|
|
5683
|
-
}
|
|
5679
|
+
var CDN_BASE_URL = "https://static-tmp.cimplify.io";
|
|
5680
|
+
function seedImage(industry, photoId) {
|
|
5681
|
+
return `${CDN_BASE_URL}/seed/${industry}/${photoId}.jpg`;
|
|
5684
5682
|
}
|
|
5685
5683
|
|
|
5686
5684
|
// src/mock/seeds/default.ts
|
|
5687
5685
|
var ISO = "2026-01-01T00:00:00.000Z";
|
|
5688
5686
|
var BUSINESS_ID = "bus_default_akua_bakery";
|
|
5689
|
-
var img = (
|
|
5687
|
+
var img = (photoId) => seedImage("bakery", photoId);
|
|
5690
5688
|
function makeProduct(input, categoryIds) {
|
|
5691
5689
|
const catId = categoryIds.get(input.category);
|
|
5692
5690
|
return {
|
|
@@ -7064,7 +7062,7 @@ var PHOTO = {
|
|
|
7064
7062
|
feast: "1559847844-5315695dadae",
|
|
7065
7063
|
byo: "1551782450-a2132b4ba21d"
|
|
7066
7064
|
};
|
|
7067
|
-
var photoFor = (slug) => seedImage("restaurant",
|
|
7065
|
+
var photoFor = (slug) => seedImage("restaurant", PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7068
7066
|
function seedRestaurant(registry) {
|
|
7069
7067
|
const businessId = "bus_mamas_kitchen";
|
|
7070
7068
|
const business = {
|
|
@@ -7524,7 +7522,29 @@ function seedRestaurant(registry) {
|
|
|
7524
7522
|
|
|
7525
7523
|
// src/mock/seeds/retail.ts
|
|
7526
7524
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
7527
|
-
var
|
|
7525
|
+
var PHOTO2 = {
|
|
7526
|
+
"android-flagship": "1592750475338-74b7b21085ab",
|
|
7527
|
+
"android-mid": "1511707171634-5f897ff02aa9",
|
|
7528
|
+
"phone-budget": "1574944985070-8f3ebc6b79d2",
|
|
7529
|
+
"laptop-pro": "1517336714731-489689fd1ca8",
|
|
7530
|
+
"laptop-air": "1496181133206-80ce9b88a853",
|
|
7531
|
+
"laptop-budget": "1601784551446-20c9e07cdbdb",
|
|
7532
|
+
"headphones-anc": "1505740420928-5e560c06d30e",
|
|
7533
|
+
"earbuds-pro": "1572569511254-d8f925fe2cbb",
|
|
7534
|
+
"speaker-bt": "1612287230202-1ff1d85d1bdf",
|
|
7535
|
+
"phone-case": "1611532736597-de2d4265fba3",
|
|
7536
|
+
"screen-protector": "1568952433726-3896e3881c65",
|
|
7537
|
+
"fast-charger": "1620794108219-aedbaded4eea",
|
|
7538
|
+
"laptop-sleeve": "1604671801908-6f0c6a092c05",
|
|
7539
|
+
"wireless-mouse": "1594732832278-abd644401426",
|
|
7540
|
+
"mech-keyboard": "1583394838336-acd977736f90",
|
|
7541
|
+
"gaming-controller": "1542751371-adc38448a05e",
|
|
7542
|
+
"gaming-headset": "1606220945770-b5b6c2c55bf1",
|
|
7543
|
+
"console-handheld": "1593642634524-b40b5baae6bb",
|
|
7544
|
+
wfh: "1605236453806-6ff36851218e",
|
|
7545
|
+
"game-pack": "1606144042614-b2417e99c4e3"
|
|
7546
|
+
};
|
|
7547
|
+
var photoFor2 = (slug) => seedImage("retail", PHOTO2[slug] ?? "1517336714731-489689fd1ca8");
|
|
7528
7548
|
function seedRetail(registry) {
|
|
7529
7549
|
const businessId = "bus_currents_electronics";
|
|
7530
7550
|
const business = {
|
|
@@ -8019,7 +8039,7 @@ var PHOTO3 = {
|
|
|
8019
8039
|
couples: "1591343395082-e120087004b4",
|
|
8020
8040
|
custom: "1540555700478-4be289fbecef"
|
|
8021
8041
|
};
|
|
8022
|
-
var photoFor3 = (slug) => seedImage("services",
|
|
8042
|
+
var photoFor3 = (slug) => seedImage("services", PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
8023
8043
|
function seedServices(registry) {
|
|
8024
8044
|
const businessId = "bus_serene_spa";
|
|
8025
8045
|
const business = {
|
|
@@ -8427,7 +8447,7 @@ var PHOTO4 = {
|
|
|
8427
8447
|
"trash-bags": "1605600659908-0ef719419d41",
|
|
8428
8448
|
essentials: "1542838132-92c53300491e"
|
|
8429
8449
|
};
|
|
8430
|
-
var photoFor4 = (slug) => seedImage("grocery",
|
|
8450
|
+
var photoFor4 = (slug) => seedImage("grocery", PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
8431
8451
|
function seedGrocery(registry) {
|
|
8432
8452
|
const businessId = "bus_freshmart";
|
|
8433
8453
|
const business = {
|
|
@@ -8706,7 +8726,7 @@ var PHOTO5 = {
|
|
|
8706
8726
|
"knit-beanie": "1542838132-92c53300491e",
|
|
8707
8727
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8708
8728
|
};
|
|
8709
|
-
var photoFor5 = (slug) => seedImage("fashion",
|
|
8729
|
+
var photoFor5 = (slug) => seedImage("fashion", PHOTO5[slug] ?? "1556905055-8f358a7a47b2");
|
|
8710
8730
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8711
8731
|
function seedFashion(registry) {
|
|
8712
8732
|
const businessId = "bus_studio_frx";
|
|
@@ -8721,7 +8741,7 @@ function seedFashion(registry) {
|
|
|
8721
8741
|
default_address: "Osu Oxford Street, Accra",
|
|
8722
8742
|
default_offers_table_service: false,
|
|
8723
8743
|
default_accepts_online_orders: true,
|
|
8724
|
-
image: seedImage("fashion", "
|
|
8744
|
+
image: seedImage("fashion", "1490481651871-ab68de25d43d"),
|
|
8725
8745
|
status: "active",
|
|
8726
8746
|
created_at: ISO8,
|
|
8727
8747
|
updated_at: ISO8,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkLLZZMHSU_js = require('./chunk-LLZZMHSU.js');
|
|
4
|
-
var
|
|
4
|
+
var chunkF4CGIOIJ_js = require('./chunk-F4CGIOIJ.js');
|
|
5
5
|
var zod = require('zod');
|
|
6
6
|
|
|
7
7
|
var cimplifyRegistry = zod.z.registry();
|
|
@@ -595,7 +595,7 @@ async function toForwardedRequest(input, init) {
|
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
597
|
function createTestClient(options = {}) {
|
|
598
|
-
const mock =
|
|
598
|
+
const mock = chunkF4CGIOIJ_js.createMockApp(options);
|
|
599
599
|
let sessionToken;
|
|
600
600
|
const fetchImpl = async (input, init) => {
|
|
601
601
|
const url = typeof input === "string" ? input : input instanceof URL ? input.toString() : input.url;
|
package/dist/mock/cli.mjs
CHANGED
|
@@ -6378,17 +6378,15 @@ function createLinkService({ clock, ids }) {
|
|
|
6378
6378
|
}
|
|
6379
6379
|
|
|
6380
6380
|
// src/mock/seeds/image.ts
|
|
6381
|
-
var
|
|
6382
|
-
function seedImage(industry,
|
|
6383
|
-
{
|
|
6384
|
-
return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
|
|
6385
|
-
}
|
|
6381
|
+
var CDN_BASE_URL = "https://static-tmp.cimplify.io";
|
|
6382
|
+
function seedImage(industry, photoId) {
|
|
6383
|
+
return `${CDN_BASE_URL}/seed/${industry}/${photoId}.jpg`;
|
|
6386
6384
|
}
|
|
6387
6385
|
|
|
6388
6386
|
// src/mock/seeds/default.ts
|
|
6389
6387
|
var ISO = "2026-01-01T00:00:00.000Z";
|
|
6390
6388
|
var BUSINESS_ID = "bus_default_akua_bakery";
|
|
6391
|
-
var img = (
|
|
6389
|
+
var img = (photoId) => seedImage("bakery", photoId);
|
|
6392
6390
|
function makeProduct(input, categoryIds) {
|
|
6393
6391
|
const catId = categoryIds.get(input.category);
|
|
6394
6392
|
return {
|
|
@@ -7766,7 +7764,7 @@ var PHOTO = {
|
|
|
7766
7764
|
feast: "1559847844-5315695dadae",
|
|
7767
7765
|
byo: "1551782450-a2132b4ba21d"
|
|
7768
7766
|
};
|
|
7769
|
-
var photoFor = (slug) => seedImage("restaurant",
|
|
7767
|
+
var photoFor = (slug) => seedImage("restaurant", PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7770
7768
|
function seedRestaurant(registry) {
|
|
7771
7769
|
const businessId = "bus_mamas_kitchen";
|
|
7772
7770
|
const business = {
|
|
@@ -8226,7 +8224,29 @@ function seedRestaurant(registry) {
|
|
|
8226
8224
|
|
|
8227
8225
|
// src/mock/seeds/retail.ts
|
|
8228
8226
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
8229
|
-
var
|
|
8227
|
+
var PHOTO2 = {
|
|
8228
|
+
"android-flagship": "1592750475338-74b7b21085ab",
|
|
8229
|
+
"android-mid": "1511707171634-5f897ff02aa9",
|
|
8230
|
+
"phone-budget": "1574944985070-8f3ebc6b79d2",
|
|
8231
|
+
"laptop-pro": "1517336714731-489689fd1ca8",
|
|
8232
|
+
"laptop-air": "1496181133206-80ce9b88a853",
|
|
8233
|
+
"laptop-budget": "1601784551446-20c9e07cdbdb",
|
|
8234
|
+
"headphones-anc": "1505740420928-5e560c06d30e",
|
|
8235
|
+
"earbuds-pro": "1572569511254-d8f925fe2cbb",
|
|
8236
|
+
"speaker-bt": "1612287230202-1ff1d85d1bdf",
|
|
8237
|
+
"phone-case": "1611532736597-de2d4265fba3",
|
|
8238
|
+
"screen-protector": "1568952433726-3896e3881c65",
|
|
8239
|
+
"fast-charger": "1620794108219-aedbaded4eea",
|
|
8240
|
+
"laptop-sleeve": "1604671801908-6f0c6a092c05",
|
|
8241
|
+
"wireless-mouse": "1594732832278-abd644401426",
|
|
8242
|
+
"mech-keyboard": "1583394838336-acd977736f90",
|
|
8243
|
+
"gaming-controller": "1542751371-adc38448a05e",
|
|
8244
|
+
"gaming-headset": "1606220945770-b5b6c2c55bf1",
|
|
8245
|
+
"console-handheld": "1593642634524-b40b5baae6bb",
|
|
8246
|
+
wfh: "1605236453806-6ff36851218e",
|
|
8247
|
+
"game-pack": "1606144042614-b2417e99c4e3"
|
|
8248
|
+
};
|
|
8249
|
+
var photoFor2 = (slug) => seedImage("retail", PHOTO2[slug] ?? "1517336714731-489689fd1ca8");
|
|
8230
8250
|
function seedRetail(registry) {
|
|
8231
8251
|
const businessId = "bus_currents_electronics";
|
|
8232
8252
|
const business = {
|
|
@@ -8721,7 +8741,7 @@ var PHOTO3 = {
|
|
|
8721
8741
|
couples: "1591343395082-e120087004b4",
|
|
8722
8742
|
custom: "1540555700478-4be289fbecef"
|
|
8723
8743
|
};
|
|
8724
|
-
var photoFor3 = (slug) => seedImage("services",
|
|
8744
|
+
var photoFor3 = (slug) => seedImage("services", PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
8725
8745
|
function seedServices(registry) {
|
|
8726
8746
|
const businessId = "bus_serene_spa";
|
|
8727
8747
|
const business = {
|
|
@@ -9129,7 +9149,7 @@ var PHOTO4 = {
|
|
|
9129
9149
|
"trash-bags": "1605600659908-0ef719419d41",
|
|
9130
9150
|
essentials: "1542838132-92c53300491e"
|
|
9131
9151
|
};
|
|
9132
|
-
var photoFor4 = (slug) => seedImage("grocery",
|
|
9152
|
+
var photoFor4 = (slug) => seedImage("grocery", PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
9133
9153
|
function seedGrocery(registry) {
|
|
9134
9154
|
const businessId = "bus_freshmart";
|
|
9135
9155
|
const business = {
|
|
@@ -9408,7 +9428,7 @@ var PHOTO5 = {
|
|
|
9408
9428
|
"knit-beanie": "1542838132-92c53300491e",
|
|
9409
9429
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
9410
9430
|
};
|
|
9411
|
-
var photoFor5 = (slug) => seedImage("fashion",
|
|
9431
|
+
var photoFor5 = (slug) => seedImage("fashion", PHOTO5[slug] ?? "1556905055-8f358a7a47b2");
|
|
9412
9432
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
9413
9433
|
function seedFashion(registry) {
|
|
9414
9434
|
const businessId = "bus_studio_frx";
|
|
@@ -9423,7 +9443,7 @@ function seedFashion(registry) {
|
|
|
9423
9443
|
default_address: "Osu Oxford Street, Accra",
|
|
9424
9444
|
default_offers_table_service: false,
|
|
9425
9445
|
default_accepts_online_orders: true,
|
|
9426
|
-
image: seedImage("fashion", "
|
|
9446
|
+
image: seedImage("fashion", "1490481651871-ab68de25d43d"),
|
|
9427
9447
|
status: "active",
|
|
9428
9448
|
created_at: ISO8,
|
|
9429
9449
|
updated_at: ISO8,
|
package/dist/mock/library.js
CHANGED
|
@@ -5746,17 +5746,15 @@ function createLinkService({ clock, ids }) {
|
|
|
5746
5746
|
}
|
|
5747
5747
|
|
|
5748
5748
|
// src/mock/seeds/image.ts
|
|
5749
|
-
var
|
|
5750
|
-
function seedImage(industry,
|
|
5751
|
-
{
|
|
5752
|
-
return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
|
|
5753
|
-
}
|
|
5749
|
+
var CDN_BASE_URL = "https://static-tmp.cimplify.io";
|
|
5750
|
+
function seedImage(industry, photoId) {
|
|
5751
|
+
return `${CDN_BASE_URL}/seed/${industry}/${photoId}.jpg`;
|
|
5754
5752
|
}
|
|
5755
5753
|
|
|
5756
5754
|
// src/mock/seeds/default.ts
|
|
5757
5755
|
var ISO = "2026-01-01T00:00:00.000Z";
|
|
5758
5756
|
var BUSINESS_ID = "bus_default_akua_bakery";
|
|
5759
|
-
var img = (
|
|
5757
|
+
var img = (photoId) => seedImage("bakery", photoId);
|
|
5760
5758
|
function makeProduct(input, categoryIds) {
|
|
5761
5759
|
const catId = categoryIds.get(input.category);
|
|
5762
5760
|
return {
|
|
@@ -7134,7 +7132,7 @@ var PHOTO = {
|
|
|
7134
7132
|
feast: "1559847844-5315695dadae",
|
|
7135
7133
|
byo: "1551782450-a2132b4ba21d"
|
|
7136
7134
|
};
|
|
7137
|
-
var photoFor = (slug) => seedImage("restaurant",
|
|
7135
|
+
var photoFor = (slug) => seedImage("restaurant", PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7138
7136
|
function seedRestaurant(registry) {
|
|
7139
7137
|
const businessId = "bus_mamas_kitchen";
|
|
7140
7138
|
const business = {
|
|
@@ -7594,7 +7592,29 @@ function seedRestaurant(registry) {
|
|
|
7594
7592
|
|
|
7595
7593
|
// src/mock/seeds/retail.ts
|
|
7596
7594
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
7597
|
-
var
|
|
7595
|
+
var PHOTO2 = {
|
|
7596
|
+
"android-flagship": "1592750475338-74b7b21085ab",
|
|
7597
|
+
"android-mid": "1511707171634-5f897ff02aa9",
|
|
7598
|
+
"phone-budget": "1574944985070-8f3ebc6b79d2",
|
|
7599
|
+
"laptop-pro": "1517336714731-489689fd1ca8",
|
|
7600
|
+
"laptop-air": "1496181133206-80ce9b88a853",
|
|
7601
|
+
"laptop-budget": "1601784551446-20c9e07cdbdb",
|
|
7602
|
+
"headphones-anc": "1505740420928-5e560c06d30e",
|
|
7603
|
+
"earbuds-pro": "1572569511254-d8f925fe2cbb",
|
|
7604
|
+
"speaker-bt": "1612287230202-1ff1d85d1bdf",
|
|
7605
|
+
"phone-case": "1611532736597-de2d4265fba3",
|
|
7606
|
+
"screen-protector": "1568952433726-3896e3881c65",
|
|
7607
|
+
"fast-charger": "1620794108219-aedbaded4eea",
|
|
7608
|
+
"laptop-sleeve": "1604671801908-6f0c6a092c05",
|
|
7609
|
+
"wireless-mouse": "1594732832278-abd644401426",
|
|
7610
|
+
"mech-keyboard": "1583394838336-acd977736f90",
|
|
7611
|
+
"gaming-controller": "1542751371-adc38448a05e",
|
|
7612
|
+
"gaming-headset": "1606220945770-b5b6c2c55bf1",
|
|
7613
|
+
"console-handheld": "1593642634524-b40b5baae6bb",
|
|
7614
|
+
wfh: "1605236453806-6ff36851218e",
|
|
7615
|
+
"game-pack": "1606144042614-b2417e99c4e3"
|
|
7616
|
+
};
|
|
7617
|
+
var photoFor2 = (slug) => seedImage("retail", PHOTO2[slug] ?? "1517336714731-489689fd1ca8");
|
|
7598
7618
|
function seedRetail(registry) {
|
|
7599
7619
|
const businessId = "bus_currents_electronics";
|
|
7600
7620
|
const business = {
|
|
@@ -8089,7 +8109,7 @@ var PHOTO3 = {
|
|
|
8089
8109
|
couples: "1591343395082-e120087004b4",
|
|
8090
8110
|
custom: "1540555700478-4be289fbecef"
|
|
8091
8111
|
};
|
|
8092
|
-
var photoFor3 = (slug) => seedImage("services",
|
|
8112
|
+
var photoFor3 = (slug) => seedImage("services", PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
8093
8113
|
function seedServices(registry) {
|
|
8094
8114
|
const businessId = "bus_serene_spa";
|
|
8095
8115
|
const business = {
|
|
@@ -8497,7 +8517,7 @@ var PHOTO4 = {
|
|
|
8497
8517
|
"trash-bags": "1605600659908-0ef719419d41",
|
|
8498
8518
|
essentials: "1542838132-92c53300491e"
|
|
8499
8519
|
};
|
|
8500
|
-
var photoFor4 = (slug) => seedImage("grocery",
|
|
8520
|
+
var photoFor4 = (slug) => seedImage("grocery", PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
8501
8521
|
function seedGrocery(registry) {
|
|
8502
8522
|
const businessId = "bus_freshmart";
|
|
8503
8523
|
const business = {
|
|
@@ -8776,7 +8796,7 @@ var PHOTO5 = {
|
|
|
8776
8796
|
"knit-beanie": "1542838132-92c53300491e",
|
|
8777
8797
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8778
8798
|
};
|
|
8779
|
-
var photoFor5 = (slug) => seedImage("fashion",
|
|
8799
|
+
var photoFor5 = (slug) => seedImage("fashion", PHOTO5[slug] ?? "1556905055-8f358a7a47b2");
|
|
8780
8800
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8781
8801
|
function seedFashion(registry) {
|
|
8782
8802
|
const businessId = "bus_studio_frx";
|
|
@@ -8791,7 +8811,7 @@ function seedFashion(registry) {
|
|
|
8791
8811
|
default_address: "Osu Oxford Street, Accra",
|
|
8792
8812
|
default_offers_table_service: false,
|
|
8793
8813
|
default_accepts_online_orders: true,
|
|
8794
|
-
image: seedImage("fashion", "
|
|
8814
|
+
image: seedImage("fashion", "1490481651871-ab68de25d43d"),
|
|
8795
8815
|
status: "active",
|
|
8796
8816
|
created_at: ISO8,
|
|
8797
8817
|
updated_at: ISO8,
|
package/dist/mock/library.mjs
CHANGED
|
@@ -5744,17 +5744,15 @@ function createLinkService({ clock, ids }) {
|
|
|
5744
5744
|
}
|
|
5745
5745
|
|
|
5746
5746
|
// src/mock/seeds/image.ts
|
|
5747
|
-
var
|
|
5748
|
-
function seedImage(industry,
|
|
5749
|
-
{
|
|
5750
|
-
return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
|
|
5751
|
-
}
|
|
5747
|
+
var CDN_BASE_URL = "https://static-tmp.cimplify.io";
|
|
5748
|
+
function seedImage(industry, photoId) {
|
|
5749
|
+
return `${CDN_BASE_URL}/seed/${industry}/${photoId}.jpg`;
|
|
5752
5750
|
}
|
|
5753
5751
|
|
|
5754
5752
|
// src/mock/seeds/default.ts
|
|
5755
5753
|
var ISO = "2026-01-01T00:00:00.000Z";
|
|
5756
5754
|
var BUSINESS_ID = "bus_default_akua_bakery";
|
|
5757
|
-
var img = (
|
|
5755
|
+
var img = (photoId) => seedImage("bakery", photoId);
|
|
5758
5756
|
function makeProduct(input, categoryIds) {
|
|
5759
5757
|
const catId = categoryIds.get(input.category);
|
|
5760
5758
|
return {
|
|
@@ -7132,7 +7130,7 @@ var PHOTO = {
|
|
|
7132
7130
|
feast: "1559847844-5315695dadae",
|
|
7133
7131
|
byo: "1551782450-a2132b4ba21d"
|
|
7134
7132
|
};
|
|
7135
|
-
var photoFor = (slug) => seedImage("restaurant",
|
|
7133
|
+
var photoFor = (slug) => seedImage("restaurant", PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7136
7134
|
function seedRestaurant(registry) {
|
|
7137
7135
|
const businessId = "bus_mamas_kitchen";
|
|
7138
7136
|
const business = {
|
|
@@ -7592,7 +7590,29 @@ function seedRestaurant(registry) {
|
|
|
7592
7590
|
|
|
7593
7591
|
// src/mock/seeds/retail.ts
|
|
7594
7592
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
7595
|
-
var
|
|
7593
|
+
var PHOTO2 = {
|
|
7594
|
+
"android-flagship": "1592750475338-74b7b21085ab",
|
|
7595
|
+
"android-mid": "1511707171634-5f897ff02aa9",
|
|
7596
|
+
"phone-budget": "1574944985070-8f3ebc6b79d2",
|
|
7597
|
+
"laptop-pro": "1517336714731-489689fd1ca8",
|
|
7598
|
+
"laptop-air": "1496181133206-80ce9b88a853",
|
|
7599
|
+
"laptop-budget": "1601784551446-20c9e07cdbdb",
|
|
7600
|
+
"headphones-anc": "1505740420928-5e560c06d30e",
|
|
7601
|
+
"earbuds-pro": "1572569511254-d8f925fe2cbb",
|
|
7602
|
+
"speaker-bt": "1612287230202-1ff1d85d1bdf",
|
|
7603
|
+
"phone-case": "1611532736597-de2d4265fba3",
|
|
7604
|
+
"screen-protector": "1568952433726-3896e3881c65",
|
|
7605
|
+
"fast-charger": "1620794108219-aedbaded4eea",
|
|
7606
|
+
"laptop-sleeve": "1604671801908-6f0c6a092c05",
|
|
7607
|
+
"wireless-mouse": "1594732832278-abd644401426",
|
|
7608
|
+
"mech-keyboard": "1583394838336-acd977736f90",
|
|
7609
|
+
"gaming-controller": "1542751371-adc38448a05e",
|
|
7610
|
+
"gaming-headset": "1606220945770-b5b6c2c55bf1",
|
|
7611
|
+
"console-handheld": "1593642634524-b40b5baae6bb",
|
|
7612
|
+
wfh: "1605236453806-6ff36851218e",
|
|
7613
|
+
"game-pack": "1606144042614-b2417e99c4e3"
|
|
7614
|
+
};
|
|
7615
|
+
var photoFor2 = (slug) => seedImage("retail", PHOTO2[slug] ?? "1517336714731-489689fd1ca8");
|
|
7596
7616
|
function seedRetail(registry) {
|
|
7597
7617
|
const businessId = "bus_currents_electronics";
|
|
7598
7618
|
const business = {
|
|
@@ -8087,7 +8107,7 @@ var PHOTO3 = {
|
|
|
8087
8107
|
couples: "1591343395082-e120087004b4",
|
|
8088
8108
|
custom: "1540555700478-4be289fbecef"
|
|
8089
8109
|
};
|
|
8090
|
-
var photoFor3 = (slug) => seedImage("services",
|
|
8110
|
+
var photoFor3 = (slug) => seedImage("services", PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
8091
8111
|
function seedServices(registry) {
|
|
8092
8112
|
const businessId = "bus_serene_spa";
|
|
8093
8113
|
const business = {
|
|
@@ -8495,7 +8515,7 @@ var PHOTO4 = {
|
|
|
8495
8515
|
"trash-bags": "1605600659908-0ef719419d41",
|
|
8496
8516
|
essentials: "1542838132-92c53300491e"
|
|
8497
8517
|
};
|
|
8498
|
-
var photoFor4 = (slug) => seedImage("grocery",
|
|
8518
|
+
var photoFor4 = (slug) => seedImage("grocery", PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
8499
8519
|
function seedGrocery(registry) {
|
|
8500
8520
|
const businessId = "bus_freshmart";
|
|
8501
8521
|
const business = {
|
|
@@ -8774,7 +8794,7 @@ var PHOTO5 = {
|
|
|
8774
8794
|
"knit-beanie": "1542838132-92c53300491e",
|
|
8775
8795
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8776
8796
|
};
|
|
8777
|
-
var photoFor5 = (slug) => seedImage("fashion",
|
|
8797
|
+
var photoFor5 = (slug) => seedImage("fashion", PHOTO5[slug] ?? "1556905055-8f358a7a47b2");
|
|
8778
8798
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8779
8799
|
function seedFashion(registry) {
|
|
8780
8800
|
const businessId = "bus_studio_frx";
|
|
@@ -8789,7 +8809,7 @@ function seedFashion(registry) {
|
|
|
8789
8809
|
default_address: "Osu Oxford Street, Accra",
|
|
8790
8810
|
default_offers_table_service: false,
|
|
8791
8811
|
default_accepts_online_orders: true,
|
|
8792
|
-
image: seedImage("fashion", "
|
|
8812
|
+
image: seedImage("fashion", "1490481651871-ab68de25d43d"),
|
|
8793
8813
|
status: "active",
|
|
8794
8814
|
created_at: ISO8,
|
|
8795
8815
|
updated_at: ISO8,
|
package/dist/mock/msw.js
CHANGED
|
@@ -5744,17 +5744,15 @@ function createLinkService({ clock, ids }) {
|
|
|
5744
5744
|
}
|
|
5745
5745
|
|
|
5746
5746
|
// src/mock/seeds/image.ts
|
|
5747
|
-
var
|
|
5748
|
-
function seedImage(industry,
|
|
5749
|
-
{
|
|
5750
|
-
return `${CIMPLIFY_CDN_BASE_URL}/seed/${industry}/${slug}.jpg`;
|
|
5751
|
-
}
|
|
5747
|
+
var CDN_BASE_URL = "https://static-tmp.cimplify.io";
|
|
5748
|
+
function seedImage(industry, photoId) {
|
|
5749
|
+
return `${CDN_BASE_URL}/seed/${industry}/${photoId}.jpg`;
|
|
5752
5750
|
}
|
|
5753
5751
|
|
|
5754
5752
|
// src/mock/seeds/default.ts
|
|
5755
5753
|
var ISO = "2026-01-01T00:00:00.000Z";
|
|
5756
5754
|
var BUSINESS_ID = "bus_default_akua_bakery";
|
|
5757
|
-
var img = (
|
|
5755
|
+
var img = (photoId) => seedImage("bakery", photoId);
|
|
5758
5756
|
function makeProduct(input, categoryIds) {
|
|
5759
5757
|
const catId = categoryIds.get(input.category);
|
|
5760
5758
|
return {
|
|
@@ -7132,7 +7130,7 @@ var PHOTO = {
|
|
|
7132
7130
|
feast: "1559847844-5315695dadae",
|
|
7133
7131
|
byo: "1551782450-a2132b4ba21d"
|
|
7134
7132
|
};
|
|
7135
|
-
var photoFor = (slug) => seedImage("restaurant",
|
|
7133
|
+
var photoFor = (slug) => seedImage("restaurant", PHOTO[slug] ?? "1414235077428-338989a2e8c0");
|
|
7136
7134
|
function seedRestaurant(registry) {
|
|
7137
7135
|
const businessId = "bus_mamas_kitchen";
|
|
7138
7136
|
const business = {
|
|
@@ -7592,7 +7590,29 @@ function seedRestaurant(registry) {
|
|
|
7592
7590
|
|
|
7593
7591
|
// src/mock/seeds/retail.ts
|
|
7594
7592
|
var ISO5 = "2026-01-01T00:00:00.000Z";
|
|
7595
|
-
var
|
|
7593
|
+
var PHOTO2 = {
|
|
7594
|
+
"android-flagship": "1592750475338-74b7b21085ab",
|
|
7595
|
+
"android-mid": "1511707171634-5f897ff02aa9",
|
|
7596
|
+
"phone-budget": "1574944985070-8f3ebc6b79d2",
|
|
7597
|
+
"laptop-pro": "1517336714731-489689fd1ca8",
|
|
7598
|
+
"laptop-air": "1496181133206-80ce9b88a853",
|
|
7599
|
+
"laptop-budget": "1601784551446-20c9e07cdbdb",
|
|
7600
|
+
"headphones-anc": "1505740420928-5e560c06d30e",
|
|
7601
|
+
"earbuds-pro": "1572569511254-d8f925fe2cbb",
|
|
7602
|
+
"speaker-bt": "1612287230202-1ff1d85d1bdf",
|
|
7603
|
+
"phone-case": "1611532736597-de2d4265fba3",
|
|
7604
|
+
"screen-protector": "1568952433726-3896e3881c65",
|
|
7605
|
+
"fast-charger": "1620794108219-aedbaded4eea",
|
|
7606
|
+
"laptop-sleeve": "1604671801908-6f0c6a092c05",
|
|
7607
|
+
"wireless-mouse": "1594732832278-abd644401426",
|
|
7608
|
+
"mech-keyboard": "1583394838336-acd977736f90",
|
|
7609
|
+
"gaming-controller": "1542751371-adc38448a05e",
|
|
7610
|
+
"gaming-headset": "1606220945770-b5b6c2c55bf1",
|
|
7611
|
+
"console-handheld": "1593642634524-b40b5baae6bb",
|
|
7612
|
+
wfh: "1605236453806-6ff36851218e",
|
|
7613
|
+
"game-pack": "1606144042614-b2417e99c4e3"
|
|
7614
|
+
};
|
|
7615
|
+
var photoFor2 = (slug) => seedImage("retail", PHOTO2[slug] ?? "1517336714731-489689fd1ca8");
|
|
7596
7616
|
function seedRetail(registry) {
|
|
7597
7617
|
const businessId = "bus_currents_electronics";
|
|
7598
7618
|
const business = {
|
|
@@ -8087,7 +8107,7 @@ var PHOTO3 = {
|
|
|
8087
8107
|
couples: "1591343395082-e120087004b4",
|
|
8088
8108
|
custom: "1540555700478-4be289fbecef"
|
|
8089
8109
|
};
|
|
8090
|
-
var photoFor3 = (slug) => seedImage("services",
|
|
8110
|
+
var photoFor3 = (slug) => seedImage("services", PHOTO3[slug] ?? "1540555700478-4be289fbecef");
|
|
8091
8111
|
function seedServices(registry) {
|
|
8092
8112
|
const businessId = "bus_serene_spa";
|
|
8093
8113
|
const business = {
|
|
@@ -8495,7 +8515,7 @@ var PHOTO4 = {
|
|
|
8495
8515
|
"trash-bags": "1605600659908-0ef719419d41",
|
|
8496
8516
|
essentials: "1542838132-92c53300491e"
|
|
8497
8517
|
};
|
|
8498
|
-
var photoFor4 = (slug) => seedImage("grocery",
|
|
8518
|
+
var photoFor4 = (slug) => seedImage("grocery", PHOTO4[slug] ?? "1542838132-92c53300491e");
|
|
8499
8519
|
function seedGrocery(registry) {
|
|
8500
8520
|
const businessId = "bus_freshmart";
|
|
8501
8521
|
const business = {
|
|
@@ -8774,7 +8794,7 @@ var PHOTO5 = {
|
|
|
8774
8794
|
"knit-beanie": "1542838132-92c53300491e",
|
|
8775
8795
|
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8776
8796
|
};
|
|
8777
|
-
var photoFor5 = (slug) => seedImage("fashion",
|
|
8797
|
+
var photoFor5 = (slug) => seedImage("fashion", PHOTO5[slug] ?? "1556905055-8f358a7a47b2");
|
|
8778
8798
|
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8779
8799
|
function seedFashion(registry) {
|
|
8780
8800
|
const businessId = "bus_studio_frx";
|
|
@@ -8789,7 +8809,7 @@ function seedFashion(registry) {
|
|
|
8789
8809
|
default_address: "Osu Oxford Street, Accra",
|
|
8790
8810
|
default_offers_table_service: false,
|
|
8791
8811
|
default_accepts_online_orders: true,
|
|
8792
|
-
image: seedImage("fashion", "
|
|
8812
|
+
image: seedImage("fashion", "1490481651871-ab68de25d43d"),
|
|
8793
8813
|
status: "active",
|
|
8794
8814
|
created_at: ISO8,
|
|
8795
8815
|
updated_at: ISO8,
|