@medusajs/index 2.22.1 → 2.22.2-preview-20261028132907

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/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { IndexModuleService } from "./services";
1
+ import { IndexModuleService } from "./services/index.js";
2
2
  declare const _default: import("@medusajs/types").ModuleExports<typeof IndexModuleService> & {
3
3
  linkable: Record<string, any>;
4
4
  };
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- const _services_1 = require("./services");
6
+ const _services_1 = require("./services/index.js");
7
7
  const utils_1 = require("@medusajs/framework/utils");
8
8
  const index_1 = __importDefault(require("./loaders/index"));
9
9
  exports.default = (0, utils_1.Module)(utils_1.Modules.INDEX, {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const awilix_1 = require("@medusajs/framework/awilix");
4
4
  const postgres_provider_1 = require("../services/postgres-provider");
5
5
  const utils_1 = require("@medusajs/framework/utils");
6
- const _services_1 = require("../services");
6
+ const _services_1 = require("../services/index.js");
7
7
  exports.default = async ({ container, options }) => {
8
8
  container.register({
9
9
  baseRepository: (0, awilix_1.asClass)(utils_1.MikroOrmBaseRepository).singleton(),
@@ -14,7 +14,7 @@ var _DataSynchronizer_instances, _DataSynchronizer_container, _DataSynchronizer_
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.DataSynchronizer = void 0;
16
16
  const utils_1 = require("@medusajs/framework/utils");
17
- const _utils_1 = require("../utils");
17
+ const _utils_1 = require("../utils/index.js");
18
18
  const promises_1 = require("timers/promises");
19
19
  class DataSynchronizer {
20
20
  constructor(container) {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IndexDataService = 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 IndexDataService extends (0, utils_1.MedusaInternalService)(_models_1.IndexData) {
7
7
  }
8
8
  exports.IndexDataService = IndexDataService;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IndexMetadataService = 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 IndexMetadataService extends (0, utils_1.MedusaInternalService)(_models_1.IndexMetadata) {
7
7
  }
8
8
  exports.IndexMetadataService = IndexMetadataService;
@@ -25,9 +25,9 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
25
25
  var _IndexModuleService_isWorkerMode;
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  const utils_1 = require("@medusajs/framework/utils");
28
- const _models_1 = require("../models");
29
- const _types_1 = require("../types");
30
- const _utils_1 = require("../utils");
28
+ const _models_1 = require("../models/index.js");
29
+ const _types_1 = require("../types/index.js");
30
+ const _utils_1 = require("../utils/index.js");
31
31
  const base_graphql_schema_1 = require("../utils/base-graphql-schema");
32
32
  class IndexModuleService extends utils_1.ModulesSdkUtils.MedusaService({}) {
33
33
  get indexMetadataService_() {
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IndexRelationService = 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 IndexRelationService extends (0, utils_1.MedusaInternalService)(_models_1.IndexRelation) {
7
7
  }
8
8
  exports.IndexRelationService = IndexRelationService;
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IndexSyncService = 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 IndexSyncService extends (0, utils_1.MedusaInternalService)(_models_1.IndexSync) {
7
7
  }
8
8
  exports.IndexSyncService = IndexSyncService;
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.PostgresProvider = void 0;
28
28
  const types_1 = require("@medusajs/framework/types");
29
29
  const utils_1 = require("@medusajs/framework/utils");
30
- const _models_1 = require("../models");
30
+ const _models_1 = require("../models/index.js");
31
31
  const utils_2 = require("../utils");
32
32
  const flatten_object_keys_1 = require("../utils/flatten-object-keys");
33
33
  const normalize_fields_selection_1 = require("../utils/normalize-fields-selection");
@@ -5,7 +5,7 @@ exports.makeSchemaExecutable = makeSchemaExecutable;
5
5
  exports.buildSchemaObjectRepresentation = buildSchemaObjectRepresentation;
6
6
  const modules_sdk_1 = require("@medusajs/framework/modules-sdk");
7
7
  const utils_1 = require("@medusajs/framework/utils");
8
- const _types_1 = require("../types");
8
+ const _types_1 = require("../types/index.js");
9
9
  const base_graphql_schema_1 = require("./base-graphql-schema");
10
10
  exports.CustomDirectives = {
11
11
  Listeners: {
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createPartitions = createPartitions;
4
- const _types_1 = require("../types");
4
+ const _types_1 = require("../types/index.js");
5
5
  const normalze_table_name_1 = require("./normalze-table-name");
6
6
  async function createPartitions(schemaObjectRepresentation, manager) {
7
7
  const activeSchema = manager.config.get("schema")
@@ -1,6 +1,6 @@
1
1
  import { IndexTypes } from "@medusajs/framework/types";
2
2
  import { Knex } from "@medusajs/framework/mikro-orm/knex";
3
- import { QueryFormat, QueryOptions } from "../types";
3
+ import { QueryFormat, QueryOptions } from "../types/index.js";
4
4
  export declare const OPERATOR_MAP: {
5
5
  $eq: string;
6
6
  $lt: string;
@@ -1,5 +1,5 @@
1
1
  import { IndexTypes, InferEntityType, Logger } from "@medusajs/types";
2
- import { IndexMetadata } from "../../models";
2
+ import { IndexMetadata } from "../../models/index.js";
3
3
  import { DataSynchronizer } from "../../services/data-synchronizer";
4
4
  import { IndexMetadataService } from "../../services/index-metadata";
5
5
  import { IndexSyncService } from "../../services/index-sync";
@@ -14,7 +14,7 @@ var _Configuration_schemaObjectRepresentation, _Configuration_indexMetadataServi
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.Configuration = void 0;
16
16
  const utils_1 = require("@medusajs/framework/utils");
17
- const _types_1 = require("../../types");
17
+ const _types_1 = require("../../types/index.js");
18
18
  const index_metadata_status_1 = require("../index-metadata-status");
19
19
  class Configuration {
20
20
  constructor({ schemaObjectRepresentation, indexMetadataService, indexSyncService, dataSynchronizer, logger, }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/index",
3
- "version": "2.22.1",
3
+ "version": "2.22.2-preview-20261028132907",
4
4
  "description": "Medusa Index module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -43,10 +43,10 @@
43
43
  "orm:cache:clear": "MIKRO_ORM_CLI_CONFIG=./mikro-orm.config.dev.ts MIKRO_ORM_ALLOW_GLOBAL_CLI=true medusa-mikro-orm cache:clear"
44
44
  },
45
45
  "devDependencies": {
46
- "@medusajs/framework": "2.22.1",
47
- "@medusajs/test-utils": "2.22.1"
46
+ "@medusajs/framework": "2.22.2-preview-20261028132907",
47
+ "@medusajs/test-utils": "2.22.2-preview-20261028132907"
48
48
  },
49
49
  "peerDependencies": {
50
- "@medusajs/framework": "2.22.1"
50
+ "@medusajs/framework": "2.22.2-preview-20261028132907"
51
51
  }
52
52
  }