@medusajs/link-modules 0.2.11 → 0.2.12-snapshot-20240502151008

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ProductVariantInventoryItem = void 0;
4
- const utils_1 = require("@medusajs/utils");
5
4
  const modules_sdk_1 = require("@medusajs/modules-sdk");
5
+ const utils_1 = require("@medusajs/utils");
6
6
  exports.ProductVariantInventoryItem = {
7
7
  serviceName: utils_1.LINKS.ProductVariantInventoryItem,
8
8
  isLink: true,
@@ -49,6 +49,9 @@ exports.ProductVariantInventoryItem = {
49
49
  extends: [
50
50
  {
51
51
  serviceName: modules_sdk_1.Modules.PRODUCT,
52
+ fieldAlias: {
53
+ inventory: "inventory_items.inventory",
54
+ },
52
55
  relationship: {
53
56
  serviceName: utils_1.LINKS.ProductVariantInventoryItem,
54
57
  primaryKey: "variant_id",
@@ -44,6 +44,7 @@ exports.ProductVariantPriceSet = {
44
44
  serviceName: modules_sdk_1.Modules.PRODUCT,
45
45
  fieldAlias: {
46
46
  price_set: "price_set_link.price_set",
47
+ prices: "price_set_link.price_set.prices",
47
48
  calculated_price: {
48
49
  path: "price_set_link.price_set.calculated_price",
49
50
  forwardArgumentsOnPath: ["price_set_link.price_set"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/link-modules",
3
- "version": "0.2.11",
3
+ "version": "0.2.12-snapshot-20240502151008",
4
4
  "description": "Medusa Default Link Modules Package and Definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -40,8 +40,8 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@medusajs/modules-sdk": "^1.12.11",
43
- "@medusajs/types": "^1.11.16",
44
- "@medusajs/utils": "^1.11.9",
43
+ "@medusajs/types": "1.11.17-snapshot-20240502151008",
44
+ "@medusajs/utils": "1.11.10-snapshot-20240502151008",
45
45
  "@mikro-orm/core": "5.9.7",
46
46
  "@mikro-orm/postgresql": "5.9.7",
47
47
  "awilix": "^8.0.0"