@nkhang1902/strapi-plugin-export-import-clsx 1.1.13 → 1.1.14

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nkhang1902/strapi-plugin-export-import-clsx",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "A powerful Strapi plugin for exporting and importing data with Excel support and advanced filtering",
5
5
  "main": "./strapi-server.js",
6
6
  "scripts": {
@@ -287,7 +287,10 @@ module.exports = ({ strapi }) => ({
287
287
  for (const key in obj) {
288
288
  const value = obj[key];
289
289
 
290
- // Skip system keys
290
+ if (key === "documentId" && ["corporate", "investor", "vip-guest"].includes(contentType.split(".")[1])) {
291
+ result["liveLink"] = `${process.env.PREVIEW_URL}/download/live-link?participantId=${value}`;
292
+ continue
293
+ }
291
294
  if (SYSTEM_KEYS.includes(key)) continue;
292
295
  if (customFields.includes(key)) continue;
293
296
  if ([...skipFields, "wishlist", "availableSlot"].includes(key))
@@ -295,7 +298,7 @@ module.exports = ({ strapi }) => ({
295
298
 
296
299
  if (componentFields.includes(key)) {
297
300
  for (const subKey in value) {
298
- if (subKey === "id") continue;
301
+ if (["id", "createdAt", "updatedAt", "lastUpdate", "passcode"]) continue;
299
302
  result[`${key}_${subKey}`] = value[subKey];
300
303
  }
301
304
  continue;