@unchainedshop/core-products 4.5.0 → 4.6.0

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.
@@ -43,6 +43,7 @@ export const ProductsCollection = async (db) => {
43
43
  ]);
44
44
  }
45
45
  await buildDbIndexes(Products, [
46
+ { index: { deleted: 1 } },
46
47
  { index: { sequence: 1 } },
47
48
  { index: { slugs: 1 } },
48
49
  { index: { status: 1 } },
@@ -40,3 +40,4 @@ export declare const configureProductMediaModule: ({ db }: ModuleInput<Record<st
40
40
  } & Omit<Partial<ProductMediaText>, "productMediaId" | "locale">)[]) => Promise<ProductMediaText[]>;
41
41
  };
42
42
  }>;
43
+ export type ProductMediaModule = Awaited<ReturnType<typeof configureProductMediaModule>>;
@@ -63,3 +63,4 @@ export declare const configureProductPricesModule: ({ proxyProducts, db, }: {
63
63
  updateRates: (rates: ProductPriceRate[]) => Promise<boolean>;
64
64
  };
65
65
  };
66
+ export type ProductPricesModule = ReturnType<typeof configureProductPricesModule>;
@@ -48,3 +48,4 @@ export declare const configureProductReviewsModule: ({ db }: ModuleInput<Record<
48
48
  removeVote: (productReviewId: string, { userId, type }: ProductVote) => Promise<mongodb.WithId<ProductReview> | null>;
49
49
  };
50
50
  }>;
51
+ export type ProductReviewsModule = Awaited<ReturnType<typeof configureProductReviewsModule>>;
@@ -26,3 +26,4 @@ export declare const configureProductTextsModule: ({ Products, ProductTexts, }:
26
26
  excludedProductIds?: string[];
27
27
  }) => Promise<number>;
28
28
  };
29
+ export type ProductTextsModule = ReturnType<typeof configureProductTextsModule>;
@@ -47,3 +47,4 @@ export declare const configureProductVariationsModule: ({ db }: ModuleInput<Reco
47
47
  } & Omit<Partial<ProductVariationText>, "locale" | "productVariationId" | "productVariationOptionValue">)[], productVariationOptionValue?: string) => Promise<ProductVariationText[]>;
48
48
  };
49
49
  }>;
50
+ export type ProductVariationsModule = Awaited<ReturnType<typeof configureProductVariationsModule>>;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-products",
3
- "version": "4.5.0",
3
+ "description": "Product catalog management module for the Unchained Engine",
4
+ "version": "4.6.0",
4
5
  "main": "lib/products-index.js",
5
6
  "types": "lib/products-index.d.ts",
6
7
  "type": "module",
@@ -34,9 +35,9 @@
34
35
  },
35
36
  "homepage": "https://github.com/unchainedshop/unchained#readme",
36
37
  "dependencies": {
37
- "@unchainedshop/events": "^4.5.0",
38
- "@unchainedshop/file-upload": "^4.5.0",
39
- "@unchainedshop/utils": "^4.5.0"
38
+ "@unchainedshop/events": "^4.6.0",
39
+ "@unchainedshop/file-upload": "^4.6.0",
40
+ "@unchainedshop/utils": "^4.6.0"
40
41
  },
41
42
  "devDependencies": {
42
43
  "@types/node": "^25.0.0",