@medusajs/inventory 2.22.2-snapshot-20261026132527 → 2.22.2

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.
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InventoryLevelRepository = void 0;
4
4
  const utils_1 = require("@medusajs/framework/utils");
5
- const _models_1 = require("../models");
5
+ const _models_1 = require("../models/index.js");
6
6
  class InventoryLevelRepository extends (0, utils_1.mikroOrmBaseRepositoryFactory)(_models_1.InventoryLevel) {
7
7
  async getReservedQuantity(inventoryItemId, locationIds, context = {}) {
8
8
  const manager = super.getActiveManager(context);
@@ -1,6 +1,6 @@
1
1
  import { Context } from "@medusajs/framework/types";
2
2
  import { BigNumber, ModulesSdkUtils } from "@medusajs/framework/utils";
3
- import { InventoryLevelRepository } from "../repositories";
3
+ import { InventoryLevelRepository } from "../repositories/index.js";
4
4
  type InjectedDependencies = {
5
5
  inventoryLevelRepository: InventoryLevelRepository;
6
6
  };
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const utils_1 = require("@medusajs/framework/utils");
4
4
  const apply_decorators_1 = require("../utils/apply-decorators");
5
- const _models_1 = require("../models");
5
+ const _models_1 = require("../models/index.js");
6
6
  class InventoryLevelService extends utils_1.ModulesSdkUtils.MedusaInternalService(_models_1.InventoryLevel) {
7
7
  constructor(container) {
8
8
  super(container);
@@ -1,6 +1,6 @@
1
1
  import { BigNumberInput, Context, DAL, IInventoryService, InferEntityType, InternalModuleDeclaration, InventoryTypes, ModuleJoinerConfig, ModulesSdkTypes, RestoreReturn, SoftDeleteReturn } from "@medusajs/framework/types";
2
2
  import { BigNumber } from "@medusajs/framework/utils";
3
- import { InventoryItem, InventoryLevel, ReservationItem } from "../models";
3
+ import { InventoryItem, InventoryLevel, ReservationItem } from "../models/index.js";
4
4
  import InventoryLevelService from "./inventory-level";
5
5
  type InjectedDependencies = {
6
6
  baseRepository: DAL.RepositoryService;
@@ -13,7 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const utils_1 = require("@medusajs/framework/utils");
16
- const _models_1 = require("../models");
16
+ const _models_1 = require("../models/index.js");
17
17
  const joiner_config_1 = require("../joiner-config");
18
18
  const apply_decorators_1 = require("../utils/apply-decorators");
19
19
  (0, apply_decorators_1.applyEntityHooks)();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/inventory",
3
- "version": "2.22.2-snapshot-20261026132527",
3
+ "version": "2.22.2",
4
4
  "description": "Inventory Module for Medusa",
5
5
  "main": "dist/index.js",
6
6
  "repository": {
@@ -30,11 +30,11 @@
30
30
  "author": "Medusa",
31
31
  "license": "MIT",
32
32
  "devDependencies": {
33
- "@medusajs/framework": "2.22.2-snapshot-20261026132527",
34
- "@medusajs/test-utils": "2.22.2-snapshot-20261026132527"
33
+ "@medusajs/framework": "2.22.2",
34
+ "@medusajs/test-utils": "2.22.2"
35
35
  },
36
36
  "peerDependencies": {
37
- "@medusajs/framework": "2.22.2-snapshot-20261026132527"
37
+ "@medusajs/framework": "2.22.2"
38
38
  },
39
39
  "scripts": {
40
40
  "watch": "yarn run -T tsc --build --watch",