@cimplify/sdk 0.43.0 → 0.44.1
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/dispatcher.mjs +11 -14
- package/dist/mock/cli.mjs +439 -2
- package/dist/mock/library.d.mts +2 -2
- package/dist/mock/library.d.ts +2 -2
- package/dist/mock/library.js +438 -1
- package/dist/mock/library.mjs +438 -1
- package/dist/mock/msw.d.mts +1 -1
- package/dist/mock/msw.d.ts +1 -1
- package/dist/mock/msw.js +438 -1
- package/dist/mock/msw.mjs +438 -1
- package/dist/{server-CVEsjECc.d.mts → server-DD-Cd1Ob.d.mts} +1 -1
- package/dist/{server-CVEsjECc.d.ts → server-DD-Cd1Ob.d.ts} +1 -1
- package/package.json +1 -1
- package/templates/storefront-bakery/package.json +2 -2
- package/templates/storefront-fashion/.env.example +2 -2
- package/templates/storefront-fashion/lib/brand.ts +2 -2
- package/templates/storefront-fashion/package.json +3 -3
package/dist/mock/library.mjs
CHANGED
|
@@ -7992,6 +7992,442 @@ function seedGrocery(registry) {
|
|
|
7992
7992
|
return { businessId };
|
|
7993
7993
|
}
|
|
7994
7994
|
|
|
7995
|
+
// src/mock/seeds/fashion.ts
|
|
7996
|
+
var ISO8 = "2026-01-01T00:00:00.000Z";
|
|
7997
|
+
var img3 = (id) => `https://images.unsplash.com/photo-${id}?w=900&h=1200&fit=crop&auto=format&q=80`;
|
|
7998
|
+
var PHOTO2 = {
|
|
7999
|
+
"heavyweight-hoodie-charcoal": "1556905055-8f358a7a47b2",
|
|
8000
|
+
"heavyweight-hoodie-cream": "1576566588028-4147f3842f27",
|
|
8001
|
+
"heavyweight-hoodie-cobalt": "1542838686-37da4a9fd1b3",
|
|
8002
|
+
"studio-tee-black": "1521572163474-6864f9cf17ab",
|
|
8003
|
+
"studio-tee-natural": "1485518882345-15568b007407",
|
|
8004
|
+
"graphic-tee-frx-mark": "1521223890158-f9f7c3d5d504",
|
|
8005
|
+
"carbon-bomber": "1591047139829-d91aecb6caea",
|
|
8006
|
+
"field-jacket-olive": "1564859228273-274232fdb516",
|
|
8007
|
+
"wide-leg-trouser": "1542272604-787c3835535d",
|
|
8008
|
+
"track-pant-charcoal": "1604176354204-9268737828e4",
|
|
8009
|
+
"studio-cap": "1620799140408-edc6dcb6d633",
|
|
8010
|
+
"tote-natural": "1591195853828-11db59a44f6b",
|
|
8011
|
+
"knit-beanie": "1542838132-92c53300491e",
|
|
8012
|
+
"studio-sock-3pack": "1602810318383-e386cc2a3ccf"
|
|
8013
|
+
};
|
|
8014
|
+
var photoFor2 = (slug) => img3(PHOTO2[slug] ?? "1556905055-8f358a7a47b2");
|
|
8015
|
+
var SIZES = ["XS", "S", "M", "L", "XL", "2XL"];
|
|
8016
|
+
function seedFashion(registry) {
|
|
8017
|
+
const businessId = "bus_studio_frx";
|
|
8018
|
+
const business = {
|
|
8019
|
+
id: businessId,
|
|
8020
|
+
name: "Studio FRX",
|
|
8021
|
+
handle: "studiofrx",
|
|
8022
|
+
business_type: "retail",
|
|
8023
|
+
email: "hello@studiofrx.test",
|
|
8024
|
+
default_currency: "GHS",
|
|
8025
|
+
default_phone: "+233244000000",
|
|
8026
|
+
default_address: "Osu Oxford Street, Accra",
|
|
8027
|
+
default_offers_table_service: false,
|
|
8028
|
+
default_accepts_online_orders: true,
|
|
8029
|
+
image: img3("1490481651871-ab68de25d43d"),
|
|
8030
|
+
status: "active",
|
|
8031
|
+
created_at: ISO8,
|
|
8032
|
+
updated_at: ISO8,
|
|
8033
|
+
created_by: "seed",
|
|
8034
|
+
preferences: {
|
|
8035
|
+
tagline: "Limited-run streetwear from Accra",
|
|
8036
|
+
description: "Heavyweight cotton, garment-dyed in Tema, hand-screened. Each drop is a closed run \u2014 when it's gone, it's gone.",
|
|
8037
|
+
instagram: "https://instagram.com/studiofrx",
|
|
8038
|
+
theme: "monochrome",
|
|
8039
|
+
checkout: { allow_guest: true }
|
|
8040
|
+
},
|
|
8041
|
+
is_online_only: false,
|
|
8042
|
+
enabled_payment_types: ["card", "mobile_money"],
|
|
8043
|
+
default_location_settings: {},
|
|
8044
|
+
country_code: "GH",
|
|
8045
|
+
timezone: "Africa/Accra"
|
|
8046
|
+
};
|
|
8047
|
+
registry.businesses.put(businessId, business);
|
|
8048
|
+
const categories = [
|
|
8049
|
+
{ slug: "new-arrivals", name: "New Arrivals", description: "Just dropped \u2014 the latest from the studio." },
|
|
8050
|
+
{ slug: "hoodies", name: "Hoodies", description: "Heavyweight 500gsm, garment-dyed in Tema." },
|
|
8051
|
+
{ slug: "tees", name: "Tees", description: "14oz cotton, oversized cut, hand-screened." },
|
|
8052
|
+
{ slug: "outerwear", name: "Outerwear", description: "Bombers, field jackets, made for layering." },
|
|
8053
|
+
{ slug: "bottoms", name: "Bottoms", description: "Wide-leg trousers and track pants." },
|
|
8054
|
+
{ slug: "accessories", name: "Accessories", description: "Caps, totes, beanies, socks." }
|
|
8055
|
+
];
|
|
8056
|
+
const catIds = /* @__PURE__ */ new Map();
|
|
8057
|
+
for (const c of categories) {
|
|
8058
|
+
const id = `cat_${c.slug}`;
|
|
8059
|
+
catIds.set(c.slug, id);
|
|
8060
|
+
const cat = {
|
|
8061
|
+
id,
|
|
8062
|
+
business_id: businessId,
|
|
8063
|
+
name: c.name,
|
|
8064
|
+
slug: c.slug,
|
|
8065
|
+
description: c.description,
|
|
8066
|
+
product_ids: [],
|
|
8067
|
+
display_order: 0,
|
|
8068
|
+
is_active: true,
|
|
8069
|
+
created_at: ISO8,
|
|
8070
|
+
updated_at: ISO8
|
|
8071
|
+
};
|
|
8072
|
+
registry.categories.put(id, cat);
|
|
8073
|
+
}
|
|
8074
|
+
const products = [
|
|
8075
|
+
// Hoodies
|
|
8076
|
+
{
|
|
8077
|
+
slug: "heavyweight-hoodie-charcoal",
|
|
8078
|
+
name: "Heavyweight Hoodie \xB7 Charcoal",
|
|
8079
|
+
price: "650.00",
|
|
8080
|
+
category: "hoodies",
|
|
8081
|
+
description: "500gsm garment-dyed cotton, hand-screened FRX seal at chest. Numbered run of 600. Oversized fit; size down for regular cut.",
|
|
8082
|
+
tags: ["hoodie", "signature", "drop-04"],
|
|
8083
|
+
isSignature: true
|
|
8084
|
+
},
|
|
8085
|
+
{
|
|
8086
|
+
slug: "heavyweight-hoodie-cream",
|
|
8087
|
+
name: "Heavyweight Hoodie \xB7 Cream",
|
|
8088
|
+
price: "650.00",
|
|
8089
|
+
category: "hoodies",
|
|
8090
|
+
description: "500gsm garment-dyed cotton in natural cream. Numbered run of 600.",
|
|
8091
|
+
tags: ["hoodie", "drop-04"],
|
|
8092
|
+
isNew: true
|
|
8093
|
+
},
|
|
8094
|
+
{
|
|
8095
|
+
slug: "heavyweight-hoodie-cobalt",
|
|
8096
|
+
name: "Heavyweight Hoodie \xB7 Cobalt",
|
|
8097
|
+
price: "650.00",
|
|
8098
|
+
category: "hoodies",
|
|
8099
|
+
description: "Limited cobalt-blue colourway. 500gsm garment-dyed cotton. Numbered run of 200.",
|
|
8100
|
+
tags: ["hoodie", "limited", "drop-04"],
|
|
8101
|
+
isNew: true
|
|
8102
|
+
},
|
|
8103
|
+
// Tees
|
|
8104
|
+
{
|
|
8105
|
+
slug: "studio-tee-black",
|
|
8106
|
+
name: "Studio Tee \xB7 Black",
|
|
8107
|
+
price: "220.00",
|
|
8108
|
+
category: "tees",
|
|
8109
|
+
description: "14oz heavyweight cotton, garment-dyed. Dropped shoulder, oversized fit. The everyday FRX.",
|
|
8110
|
+
tags: ["tee", "signature"],
|
|
8111
|
+
isSignature: true
|
|
8112
|
+
},
|
|
8113
|
+
{
|
|
8114
|
+
slug: "studio-tee-natural",
|
|
8115
|
+
name: "Studio Tee \xB7 Natural",
|
|
8116
|
+
price: "220.00",
|
|
8117
|
+
category: "tees",
|
|
8118
|
+
description: "14oz heavyweight cotton in undyed natural. Softens beautifully with wear.",
|
|
8119
|
+
tags: ["tee"]
|
|
8120
|
+
},
|
|
8121
|
+
{
|
|
8122
|
+
slug: "graphic-tee-frx-mark",
|
|
8123
|
+
name: "Graphic Tee \xB7 FRX Mark",
|
|
8124
|
+
price: "260.00",
|
|
8125
|
+
category: "tees",
|
|
8126
|
+
description: "Hand-screened FRX seal, oversized fit. 14oz cotton. Numbered run of 400.",
|
|
8127
|
+
tags: ["tee", "graphic", "drop-04"],
|
|
8128
|
+
isNew: true
|
|
8129
|
+
},
|
|
8130
|
+
// Outerwear
|
|
8131
|
+
{
|
|
8132
|
+
slug: "carbon-bomber",
|
|
8133
|
+
name: "Carbon Bomber",
|
|
8134
|
+
price: "1200.00",
|
|
8135
|
+
category: "outerwear",
|
|
8136
|
+
description: "Waxed cotton outer, ribbed cuffs, two-way zip. Cut for layering over a hoodie.",
|
|
8137
|
+
tags: ["outerwear", "premium"],
|
|
8138
|
+
isSignature: true
|
|
8139
|
+
},
|
|
8140
|
+
{
|
|
8141
|
+
slug: "field-jacket-olive",
|
|
8142
|
+
name: "Field Jacket \xB7 Olive",
|
|
8143
|
+
price: "1450.00",
|
|
8144
|
+
category: "outerwear",
|
|
8145
|
+
description: "Garment-dyed military canvas, four utility pockets, drawcord hem. A workhorse.",
|
|
8146
|
+
tags: ["outerwear", "premium", "drop-04"],
|
|
8147
|
+
isNew: true
|
|
8148
|
+
},
|
|
8149
|
+
// Bottoms
|
|
8150
|
+
{
|
|
8151
|
+
slug: "wide-leg-trouser",
|
|
8152
|
+
name: "Wide-Leg Trouser",
|
|
8153
|
+
price: "480.00",
|
|
8154
|
+
category: "bottoms",
|
|
8155
|
+
description: "Heavy twill cotton, pleated front, side pockets. Cut for an oversized silhouette.",
|
|
8156
|
+
tags: ["bottom"]
|
|
8157
|
+
},
|
|
8158
|
+
{
|
|
8159
|
+
slug: "track-pant-charcoal",
|
|
8160
|
+
name: "Track Pant \xB7 Charcoal",
|
|
8161
|
+
price: "380.00",
|
|
8162
|
+
category: "bottoms",
|
|
8163
|
+
description: "Heavyweight loopback fleece, tapered leg, elasticated cuffs. The bottom half of the hoodie set.",
|
|
8164
|
+
tags: ["bottom"]
|
|
8165
|
+
},
|
|
8166
|
+
// Accessories
|
|
8167
|
+
{
|
|
8168
|
+
slug: "studio-cap",
|
|
8169
|
+
name: "Studio Cap",
|
|
8170
|
+
price: "120.00",
|
|
8171
|
+
category: "accessories",
|
|
8172
|
+
description: "Brushed cotton 6-panel, embroidered FRX. Adjustable strap.",
|
|
8173
|
+
tags: ["accessory"]
|
|
8174
|
+
},
|
|
8175
|
+
{
|
|
8176
|
+
slug: "tote-natural",
|
|
8177
|
+
name: "Studio Tote \xB7 Natural",
|
|
8178
|
+
price: "150.00",
|
|
8179
|
+
category: "accessories",
|
|
8180
|
+
description: "12oz natural canvas, screen-printed FRX seal. Roomy.",
|
|
8181
|
+
tags: ["accessory"]
|
|
8182
|
+
},
|
|
8183
|
+
{
|
|
8184
|
+
slug: "knit-beanie",
|
|
8185
|
+
name: "Knit Beanie",
|
|
8186
|
+
price: "140.00",
|
|
8187
|
+
category: "accessories",
|
|
8188
|
+
description: "Merino wool blend, woven label. Two colourways.",
|
|
8189
|
+
tags: ["accessory"]
|
|
8190
|
+
},
|
|
8191
|
+
{
|
|
8192
|
+
slug: "studio-sock-3pack",
|
|
8193
|
+
name: "Studio Sock \xB7 3-pack",
|
|
8194
|
+
price: "180.00",
|
|
8195
|
+
category: "accessories",
|
|
8196
|
+
description: "Heavy-cuff crew socks, 3-pack. Cotton-rich blend.",
|
|
8197
|
+
tags: ["accessory"]
|
|
8198
|
+
}
|
|
8199
|
+
];
|
|
8200
|
+
for (const p of products) {
|
|
8201
|
+
const id = `prod_${p.slug}`;
|
|
8202
|
+
const catId = catIds.get(p.category);
|
|
8203
|
+
const product = {
|
|
8204
|
+
id,
|
|
8205
|
+
business_id: businessId,
|
|
8206
|
+
name: p.name,
|
|
8207
|
+
slug: p.slug,
|
|
8208
|
+
description: p.description,
|
|
8209
|
+
product_type: "product",
|
|
8210
|
+
base_price: p.price,
|
|
8211
|
+
currency: "GHS",
|
|
8212
|
+
image: photoFor2(p.slug),
|
|
8213
|
+
images: [photoFor2(p.slug)],
|
|
8214
|
+
is_available: true,
|
|
8215
|
+
category_ids: [catId],
|
|
8216
|
+
collection_ids: [],
|
|
8217
|
+
add_on_ids: [],
|
|
8218
|
+
variant_ids: [],
|
|
8219
|
+
tags: p.tags ?? [],
|
|
8220
|
+
is_signature: p.isSignature ?? false,
|
|
8221
|
+
is_new: p.isNew ?? false,
|
|
8222
|
+
render_hint: "physical",
|
|
8223
|
+
created_at: ISO8,
|
|
8224
|
+
updated_at: ISO8
|
|
8225
|
+
};
|
|
8226
|
+
registry.products.put(id, product);
|
|
8227
|
+
const cat = registry.categories.get(catId);
|
|
8228
|
+
cat.product_ids.push(id);
|
|
8229
|
+
registry.categories.put(catId, cat);
|
|
8230
|
+
}
|
|
8231
|
+
for (const p of products) {
|
|
8232
|
+
const productId = `prod_${p.slug}`;
|
|
8233
|
+
const axis = {
|
|
8234
|
+
id: `axis_${p.slug}_size`,
|
|
8235
|
+
business_id: businessId,
|
|
8236
|
+
product_id: productId,
|
|
8237
|
+
name: "Size",
|
|
8238
|
+
display_order: 0,
|
|
8239
|
+
affects_recipe: false,
|
|
8240
|
+
values: SIZES.map((s, i) => ({
|
|
8241
|
+
id: `axv_${p.slug}_size_${s.toLowerCase()}`,
|
|
8242
|
+
business_id: businessId,
|
|
8243
|
+
axis_id: `axis_${p.slug}_size`,
|
|
8244
|
+
name: s,
|
|
8245
|
+
display_order: i,
|
|
8246
|
+
created_at: ISO8,
|
|
8247
|
+
updated_at: ISO8
|
|
8248
|
+
})),
|
|
8249
|
+
created_at: ISO8,
|
|
8250
|
+
updated_at: ISO8
|
|
8251
|
+
};
|
|
8252
|
+
registry.variantAxes.put(axis.id, axis);
|
|
8253
|
+
const variantIds = [];
|
|
8254
|
+
let firstVariant = true;
|
|
8255
|
+
for (const sz of axis.values) {
|
|
8256
|
+
const variantId = `var_${p.slug}_size_${sz.name.toLowerCase()}`;
|
|
8257
|
+
const variant = {
|
|
8258
|
+
id: variantId,
|
|
8259
|
+
product_id: productId,
|
|
8260
|
+
business_id: businessId,
|
|
8261
|
+
name: sz.name,
|
|
8262
|
+
sku: `${p.slug.toUpperCase()}-${sz.name}`,
|
|
8263
|
+
price_adjustment: "0.00",
|
|
8264
|
+
component_multiplier: "1.00",
|
|
8265
|
+
is_default: firstVariant,
|
|
8266
|
+
is_active: true,
|
|
8267
|
+
axis_value_ids: [sz.id],
|
|
8268
|
+
created_at: ISO8,
|
|
8269
|
+
updated_at: ISO8
|
|
8270
|
+
};
|
|
8271
|
+
registry.variants.put(variantId, variant);
|
|
8272
|
+
variantIds.push(variantId);
|
|
8273
|
+
firstVariant = false;
|
|
8274
|
+
}
|
|
8275
|
+
const product = registry.products.get(productId);
|
|
8276
|
+
product.variant_ids = variantIds;
|
|
8277
|
+
registry.products.put(productId, product);
|
|
8278
|
+
}
|
|
8279
|
+
const drop04 = {
|
|
8280
|
+
id: "col_drop_04",
|
|
8281
|
+
business_id: businessId,
|
|
8282
|
+
name: "Drop 04",
|
|
8283
|
+
slug: "drop-04",
|
|
8284
|
+
description: "Spring 2026 capsule. 412 pieces left.",
|
|
8285
|
+
product_ids: [
|
|
8286
|
+
"prod_heavyweight-hoodie-charcoal",
|
|
8287
|
+
"prod_heavyweight-hoodie-cream",
|
|
8288
|
+
"prod_heavyweight-hoodie-cobalt",
|
|
8289
|
+
"prod_graphic-tee-frx-mark",
|
|
8290
|
+
"prod_field-jacket-olive"
|
|
8291
|
+
],
|
|
8292
|
+
is_active: true,
|
|
8293
|
+
created_at: ISO8,
|
|
8294
|
+
updated_at: ISO8
|
|
8295
|
+
};
|
|
8296
|
+
const bestSellers = {
|
|
8297
|
+
id: "col_best_sellers",
|
|
8298
|
+
business_id: businessId,
|
|
8299
|
+
name: "Best Sellers",
|
|
8300
|
+
slug: "best-sellers",
|
|
8301
|
+
description: "What everyone's buying.",
|
|
8302
|
+
product_ids: [
|
|
8303
|
+
"prod_studio-tee-black",
|
|
8304
|
+
"prod_heavyweight-hoodie-charcoal",
|
|
8305
|
+
"prod_carbon-bomber",
|
|
8306
|
+
"prod_studio-cap",
|
|
8307
|
+
"prod_track-pant-charcoal"
|
|
8308
|
+
],
|
|
8309
|
+
is_active: true,
|
|
8310
|
+
created_at: ISO8,
|
|
8311
|
+
updated_at: ISO8
|
|
8312
|
+
};
|
|
8313
|
+
registry.collections.put(drop04.id, drop04);
|
|
8314
|
+
registry.collections.put(bestSellers.id, bestSellers);
|
|
8315
|
+
for (const col of [drop04, bestSellers]) {
|
|
8316
|
+
for (const pid of col.product_ids) {
|
|
8317
|
+
const p = registry.products.get(pid);
|
|
8318
|
+
if (p) {
|
|
8319
|
+
p.collection_ids.push(col.id);
|
|
8320
|
+
registry.products.put(pid, p);
|
|
8321
|
+
}
|
|
8322
|
+
}
|
|
8323
|
+
}
|
|
8324
|
+
const tags = [
|
|
8325
|
+
{ id: "tag_signature", business_id: businessId, name: "Signature", slug: "signature", color: "#0a0a0a", sort_order: 0, usage_count: 3, created_at: ISO8, updated_at: ISO8 },
|
|
8326
|
+
{ id: "tag_drop_04", business_id: businessId, name: "Drop 04", slug: "drop-04", color: "#dc2626", sort_order: 1, usage_count: 5, created_at: ISO8, updated_at: ISO8 },
|
|
8327
|
+
{ id: "tag_limited", business_id: businessId, name: "Limited", slug: "limited", color: "#dc2626", sort_order: 2, usage_count: 1, created_at: ISO8, updated_at: ISO8 },
|
|
8328
|
+
{ id: "tag_premium", business_id: businessId, name: "Premium", slug: "premium", color: "#7c3aed", sort_order: 3, usage_count: 2, created_at: ISO8, updated_at: ISO8 }
|
|
8329
|
+
];
|
|
8330
|
+
for (const t of tags) registry.tags.put(t.id, t);
|
|
8331
|
+
const apparel = {
|
|
8332
|
+
id: "tax_apparel",
|
|
8333
|
+
business_id: businessId,
|
|
8334
|
+
name: "Apparel",
|
|
8335
|
+
slug: "apparel",
|
|
8336
|
+
path: ["Apparel"],
|
|
8337
|
+
attribute_template_ids: ["attr_fabric", "attr_country_of_origin"],
|
|
8338
|
+
created_at: ISO8,
|
|
8339
|
+
updated_at: ISO8
|
|
8340
|
+
};
|
|
8341
|
+
registry.taxonomies.put(apparel.id, apparel);
|
|
8342
|
+
const attrs = [
|
|
8343
|
+
{
|
|
8344
|
+
id: "attr_fabric",
|
|
8345
|
+
business_id: businessId,
|
|
8346
|
+
namespace: "core",
|
|
8347
|
+
name: "Fabric",
|
|
8348
|
+
slug: "fabric",
|
|
8349
|
+
description: 'Material composition (e.g. "100% cotton, 500gsm").',
|
|
8350
|
+
attribute_type: "text",
|
|
8351
|
+
is_required: false,
|
|
8352
|
+
is_filterable: true,
|
|
8353
|
+
visibility: "public",
|
|
8354
|
+
display_order: 0,
|
|
8355
|
+
applies_to: "product",
|
|
8356
|
+
created_at: ISO8,
|
|
8357
|
+
updated_at: ISO8
|
|
8358
|
+
},
|
|
8359
|
+
{
|
|
8360
|
+
id: "attr_country_of_origin",
|
|
8361
|
+
business_id: businessId,
|
|
8362
|
+
namespace: "core",
|
|
8363
|
+
name: "Country of origin",
|
|
8364
|
+
slug: "country-of-origin",
|
|
8365
|
+
attribute_type: "text",
|
|
8366
|
+
is_required: false,
|
|
8367
|
+
is_filterable: true,
|
|
8368
|
+
visibility: "public",
|
|
8369
|
+
display_order: 1,
|
|
8370
|
+
applies_to: "product",
|
|
8371
|
+
created_at: ISO8,
|
|
8372
|
+
updated_at: ISO8
|
|
8373
|
+
},
|
|
8374
|
+
{
|
|
8375
|
+
id: "attr_fit",
|
|
8376
|
+
business_id: businessId,
|
|
8377
|
+
namespace: "core",
|
|
8378
|
+
name: "Fit",
|
|
8379
|
+
slug: "fit",
|
|
8380
|
+
attribute_type: "single_select",
|
|
8381
|
+
options: ["regular", "oversized", "relaxed", "slim"],
|
|
8382
|
+
is_required: false,
|
|
8383
|
+
is_filterable: true,
|
|
8384
|
+
visibility: "public",
|
|
8385
|
+
display_order: 2,
|
|
8386
|
+
applies_to: "product",
|
|
8387
|
+
created_at: ISO8,
|
|
8388
|
+
updated_at: ISO8
|
|
8389
|
+
}
|
|
8390
|
+
];
|
|
8391
|
+
for (const a of attrs) registry.attributeDefs.put(a.id, a);
|
|
8392
|
+
const articles = [
|
|
8393
|
+
{
|
|
8394
|
+
id: "kb_sizing",
|
|
8395
|
+
business_id: businessId,
|
|
8396
|
+
title: "Sizing & fit",
|
|
8397
|
+
slug: "sizing",
|
|
8398
|
+
content: "Our pieces are cut for an oversized, dropped-shoulder fit. Order true to size for the intended fit; size down for a regular cut. Charts on every product page.",
|
|
8399
|
+
category: "products",
|
|
8400
|
+
tags: ["sizing", "fit"],
|
|
8401
|
+
created_at: ISO8,
|
|
8402
|
+
updated_at: ISO8
|
|
8403
|
+
},
|
|
8404
|
+
{
|
|
8405
|
+
id: "kb_drops",
|
|
8406
|
+
business_id: businessId,
|
|
8407
|
+
title: "Drops & restocks",
|
|
8408
|
+
slug: "drops",
|
|
8409
|
+
content: "Each drop is a closed, numbered run. We don't restock. The FRX list gets a 24-hour head start before each drop opens to the public.",
|
|
8410
|
+
category: "general",
|
|
8411
|
+
tags: ["drops", "restocks"],
|
|
8412
|
+
created_at: ISO8,
|
|
8413
|
+
updated_at: ISO8
|
|
8414
|
+
},
|
|
8415
|
+
{
|
|
8416
|
+
id: "kb_returns",
|
|
8417
|
+
business_id: businessId,
|
|
8418
|
+
title: "Returns",
|
|
8419
|
+
slug: "returns",
|
|
8420
|
+
content: "Free returns within 30 days from the US, UK, and EU. Item must be unworn with original tags. Underwear and final-sale items aren't returnable.",
|
|
8421
|
+
category: "logistics",
|
|
8422
|
+
tags: ["returns"],
|
|
8423
|
+
created_at: ISO8,
|
|
8424
|
+
updated_at: ISO8
|
|
8425
|
+
}
|
|
8426
|
+
];
|
|
8427
|
+
for (const a of articles) registry.knowledgeArticles.put(a.id, a);
|
|
8428
|
+
return { businessId };
|
|
8429
|
+
}
|
|
8430
|
+
|
|
7995
8431
|
// src/mock/seeds/registry.ts
|
|
7996
8432
|
var SEEDS = {
|
|
7997
8433
|
default: seedDefault,
|
|
@@ -8000,7 +8436,8 @@ var SEEDS = {
|
|
|
8000
8436
|
restaurant: seedRestaurant,
|
|
8001
8437
|
retail: seedRetail,
|
|
8002
8438
|
services: seedServices,
|
|
8003
|
-
grocery: seedGrocery
|
|
8439
|
+
grocery: seedGrocery,
|
|
8440
|
+
fashion: seedFashion
|
|
8004
8441
|
};
|
|
8005
8442
|
function applySeed(registry, name) {
|
|
8006
8443
|
const fn = SEEDS[name];
|
package/dist/mock/msw.d.mts
CHANGED
package/dist/mock/msw.d.ts
CHANGED