@mohasinac/appkit 4.42.12 → 4.42.13
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/package.json +1 -1
- package/scripts/seed-cli.mjs +39 -0
package/package.json
CHANGED
package/scripts/seed-cli.mjs
CHANGED
|
@@ -179,6 +179,10 @@ const { encryptPiiFields, piiIndicesFor, encryptPayoutDetails, encryptPayoutBank
|
|
|
179
179
|
const {
|
|
180
180
|
// seed data
|
|
181
181
|
usersSeedData, addressesSeedData, storeAddressesSeedData,
|
|
182
|
+
// store-extensions — see the SEED_DATA_MAP note below (Root Cause #90, 7-16).
|
|
183
|
+
payoutMethodsSeedData, shippingConfigsSeedData, analyticsCardsSeedData, analyticsAlertsSeedData,
|
|
184
|
+
storeCategoriesSeedData, listingTemplatesSeedData, moderationQueueSeedData, reportsSeedData,
|
|
185
|
+
itemRequestsSeedData, storeGoogleConfigSeedData,
|
|
182
186
|
categoriesSeedData, storesSeedData, sessionsSeedData,
|
|
183
187
|
productsStandardSeedData, productsAuctionsSeedData, productsPreordersSeedData,
|
|
184
188
|
productsPrizeDrawsSeedData, productsClassifiedsSeedData, productsDigitalCodesSeedData, productsLiveItemsSeedData,
|
|
@@ -253,6 +257,24 @@ const COLLECTION_MAP = {
|
|
|
253
257
|
procurementShipments: "procurementShipments", // features/shipments/schemas/firestore.ts:26
|
|
254
258
|
shipmentLots: "shipmentLots",
|
|
255
259
|
shipmentItems: "shipmentItems",
|
|
260
|
+
/*
|
|
261
|
+
* store-extensions. Ten collections with seed fixtures in manifest.ts that
|
|
262
|
+
* were NEVER in this map, so ALL_COLLECTIONS omitted them and they held ZERO
|
|
263
|
+
* documents in every run ever -- Root Cause #90, instances 7-16. Found via
|
|
264
|
+
* /store/analytics/cards rendering "No cards" under copy promising built-ins.
|
|
265
|
+
* String literals for the same reason as the block above: none of these is
|
|
266
|
+
* re-exported from appkit's barrel.
|
|
267
|
+
*/
|
|
268
|
+
payoutMethods: "payoutMethods", // features/store-extensions/schemas/firestore.ts:46
|
|
269
|
+
shippingConfigs: "shippingConfigs", // :84
|
|
270
|
+
analyticsCards: "analyticsCards", // :120
|
|
271
|
+
analyticsAlerts: "analyticsAlerts", // :152
|
|
272
|
+
storeCategories: "storeCategories", // :179
|
|
273
|
+
listingTemplates: "listingTemplates", // :240
|
|
274
|
+
moderationQueue: "moderationQueue", // :280
|
|
275
|
+
reports: "reports", // :372
|
|
276
|
+
itemRequests: "itemRequests",
|
|
277
|
+
storeGoogleConfig: "storeGoogleConfig",
|
|
256
278
|
blogPosts: BLOG_POSTS_COLLECTION,
|
|
257
279
|
events: EVENTS_COLLECTION,
|
|
258
280
|
eventEntries: EVENT_ENTRIES_COLLECTION,
|
|
@@ -279,6 +301,23 @@ const COLLECTION_MAP = {
|
|
|
279
301
|
|
|
280
302
|
const SEED_DATA_MAP = {
|
|
281
303
|
users: usersSeedData,
|
|
304
|
+
/*
|
|
305
|
+
* store-extensions. COLLECTION_MAP was only HALF the wiring: load() reads
|
|
306
|
+
* SEED_DATA_MAP and short-circuits on an empty array, so adding the ten
|
|
307
|
+
* collection names alone produced "no seed data, skipping" for all ten.
|
|
308
|
+
* Same shape as the art/stickers note further down -- added everywhere
|
|
309
|
+
* except the map that actually runs.
|
|
310
|
+
*/
|
|
311
|
+
payoutMethods: payoutMethodsSeedData,
|
|
312
|
+
shippingConfigs: shippingConfigsSeedData,
|
|
313
|
+
analyticsCards: analyticsCardsSeedData,
|
|
314
|
+
analyticsAlerts: analyticsAlertsSeedData,
|
|
315
|
+
storeCategories: storeCategoriesSeedData,
|
|
316
|
+
listingTemplates: listingTemplatesSeedData,
|
|
317
|
+
moderationQueue: moderationQueueSeedData,
|
|
318
|
+
reports: reportsSeedData,
|
|
319
|
+
itemRequests: itemRequestsSeedData,
|
|
320
|
+
storeGoogleConfig: storeGoogleConfigSeedData,
|
|
282
321
|
addresses: addressesSeedData,
|
|
283
322
|
storeAddresses: storeAddressesSeedData,
|
|
284
323
|
// SB-UNI-C: brands were merged into categories (categoryType:"brand") — no
|