@haus-tech/product-import-export-plugin 3.0.18 → 3.0.19

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.
@@ -54,7 +54,6 @@ export interface ParsedProductVariant {
54
54
  assetPaths: string[];
55
55
  assetsJson?: ParsedAsset[];
56
56
  facets: ParsedFacet[];
57
- enabled: boolean;
58
57
  translations: Array<{
59
58
  languageCode: LanguageCode;
60
59
  optionValues: string[];
@@ -377,7 +377,6 @@ let ImportParser = class ImportParser {
377
377
  price: r.price ? parseNumber(r.price) : undefined,
378
378
  taxCategory: parseString(r.taxCategory),
379
379
  stockOnHand: parseNumber(r.stockOnHand),
380
- enabled: parseBoolean(r.enabled),
381
380
  trackInventory: r.trackInventory == null || r.trackInventory === ''
382
381
  ? generated_types_1.GlobalFlag.INHERIT
383
382
  : parseBoolean(r.trackInventory)
@@ -469,7 +469,6 @@ let ProductImporter = class ProductImporter {
469
469
  taxCategoryId: this.getMatchingTaxCategoryId(variant.taxCategory, taxCategories.items),
470
470
  stockOnHand: variant.stockOnHand,
471
471
  trackInventory: variant.trackInventory,
472
- enabled: variant.enabled,
473
472
  optionIds,
474
473
  translations: await Promise.all(variant.translations.map(async (translation) => {
475
474
  const productTranslation = product.translations.find((t) => t.languageCode === translation.languageCode);
@@ -86,7 +86,7 @@ let ProductExportService = class ProductExportService {
86
86
  headers.push({ id: 'assets', title: 'assets' }, ...languages.map((lang) => ({ id: `facets:${lang}`, title: `facets:${lang}` })), ...languages.map((lang) => ({ id: `optionGroups:${lang}`, title: `optionGroups:${lang}` })), ...languages.map((lang) => ({ id: `optionValues:${lang}`, title: `optionValues:${lang}` })), { id: 'sku', title: 'sku' }, { id: 'price', title: 'price' }, { id: 'taxCategory', title: 'taxCategory' }, { id: 'stockOnHand', title: 'stockOnHand' }, { id: 'trackInventory', title: 'trackInventory' }, { id: 'variantAssets', title: 'variantAssets' }, ...languages.map((lang) => ({ id: `variantFacets:${lang}`, title: `variantFacets:${lang}` })), ...filteredCustomFieldNames.map((field) => ({
87
87
  id: field,
88
88
  title: field,
89
- })), { id: 'enabled', title: 'enabled' });
89
+ })));
90
90
  const selectedExportFieldsArray = selectedExportFields.split(',');
91
91
  const selectedExportFieldsSet = new Set(selectedExportFieldsArray);
92
92
  const filteredHeaders = headers.filter((header) => {
@@ -212,7 +212,6 @@ let ProductExportService = class ProductExportService {
212
212
  record.stockOnHand = stockOnHand;
213
213
  record.trackInventory = variant.trackInventory.toLowerCase();
214
214
  record.variantAssets = variantAssets;
215
- record.enabled = variant.enabled.toString();
216
215
  for (const field of filteredCustomFieldNames) {
217
216
  const [entity, fieldName, type] = field.split(':');
218
217
  if (entity === 'product') {
@@ -1,7 +1,7 @@
1
1
  import { ElementRef, AfterViewInit, OnInit } from '@angular/core';
2
2
  import { Dialog } from '@vendure/admin-ui/core';
3
3
  type ProductFields = 'productId' | 'name' | 'slug' | 'description' | 'assets' | 'facets' | 'optionGroups';
4
- type VariantFields = 'sku' | 'optionValues' | 'price' | 'taxCategory' | 'stockOnHand' | 'trackInventory' | 'variantAssets' | 'variantFacets' | 'enabled';
4
+ type VariantFields = 'sku' | 'optionValues' | 'price' | 'taxCategory' | 'stockOnHand' | 'trackInventory' | 'variantAssets' | 'variantFacets';
5
5
  type ExportFields = Array<ProductFields | VariantFields>;
6
6
  interface PluginInitOptions {
7
7
  defaultFileName?: string;
@@ -39,7 +39,6 @@ let ExportDialogComponent = class ExportDialogComponent {
39
39
  'trackInventory',
40
40
  'variantAssets',
41
41
  'variantFacets',
42
- 'enabled',
43
42
  ];
44
43
  config;
45
44
  ngOnInit() {
@@ -22,7 +22,6 @@ type VariantFields =
22
22
  | 'trackInventory'
23
23
  | 'variantAssets'
24
24
  | 'variantFacets'
25
- | 'enabled'
26
25
 
27
26
  type ExportFields = Array<ProductFields | VariantFields>
28
27
  interface PluginInitOptions {
@@ -82,7 +81,6 @@ export class ExportDialogComponent
82
81
  'trackInventory',
83
82
  'variantAssets',
84
83
  'variantFacets',
85
- 'enabled',
86
84
  ]
87
85
 
88
86
  config: PluginInitOptions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haus-tech/product-import-export-plugin",
3
- "version": "3.0.18",
3
+ "version": "3.0.19",
4
4
  "description": "A Vendure plugin for importing and exporting products using a CSV file",
5
5
  "author": "Haus Tech",
6
6
  "repository": {