@medusajs/sales-channel 0.1.2-snapshot-20240703074611 → 0.1.2-snapshot-20240704061641

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1 @@
1
- import { MapToConfig } from "@medusajs/utils";
2
1
  export declare const joinerConfig: Omit<import("@medusajs/types").ModuleJoinerConfig, "serviceName" | "primaryKeys" | "alias" | "linkableKeys"> & Required<Pick<import("@medusajs/types").ModuleJoinerConfig, "serviceName" | "primaryKeys" | "alias" | "linkableKeys">>;
3
- export declare const entityNameToLinkableKeysMap: MapToConfig;
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.entityNameToLinkableKeysMap = exports.joinerConfig = void 0;
3
+ exports.joinerConfig = void 0;
4
4
  const utils_1 = require("@medusajs/utils");
5
5
  exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.SALES_CHANNEL);
6
- exports.entityNameToLinkableKeysMap = (0, utils_1.buildEntitiesNameToLinkableKeysMap)(exports.joinerConfig.linkableKeys);
@@ -1,11 +1,10 @@
1
- import { Context, CreateSalesChannelDTO, DAL, FilterableSalesChannelProps, InternalModuleDeclaration, ISalesChannelModuleService, ModuleJoinerConfig, ModulesSdkTypes, SalesChannelDTO, UpdateSalesChannelDTO } from "@medusajs/types";
1
+ import { Context, CreateSalesChannelDTO, DAL, FilterableSalesChannelProps, InternalModuleDeclaration, ISalesChannelModuleService, ModuleJoinerConfig, ModulesSdkTypes, SalesChannelDTO, UpdateSalesChannelDTO, UpsertSalesChannelDTO } from "@medusajs/types";
2
2
  import { SalesChannel } from "../models";
3
- import { UpsertSalesChannelDTO } from "@medusajs/types";
4
3
  type InjectedDependencies = {
5
4
  baseRepository: DAL.RepositoryService;
6
5
  salesChannelService: ModulesSdkTypes.IMedusaInternalService<any>;
7
6
  };
8
- declare const SalesChannelModuleService_base: new (...args: any[]) => import("@medusajs/utils").AbstractModuleService<{
7
+ declare const SalesChannelModuleService_base: import("@medusajs/utils/dist/modules-sdk/types/medusa-service").MedusaServiceReturnType<{
9
8
  SalesChannel: {
10
9
  dto: SalesChannelDTO;
11
10
  };
@@ -15,7 +15,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  const utils_1 = require("@medusajs/utils");
16
16
  const _models_1 = require("../models");
17
17
  const joiner_config_1 = require("../joiner-config");
18
- class SalesChannelModuleService extends (0, utils_1.MedusaService)({ SalesChannel: _models_1.SalesChannel }, joiner_config_1.entityNameToLinkableKeysMap) {
18
+ class SalesChannelModuleService extends (0, utils_1.MedusaService)({
19
+ SalesChannel: _models_1.SalesChannel,
20
+ }) {
19
21
  constructor({ baseRepository, salesChannelService }, moduleDeclaration) {
20
22
  // @ts-ignore
21
23
  super(...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/sales-channel",
3
- "version": "0.1.2-snapshot-20240703074611",
3
+ "version": "0.1.2-snapshot-20240704061641",
4
4
  "description": "Medusa Sales Channel module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,16 +37,16 @@
37
37
  "@mikro-orm/cli": "5.9.7",
38
38
  "cross-env": "^5.2.1",
39
39
  "jest": "^29.7.0",
40
- "medusa-test-utils": "1.1.45-snapshot-20240703074611",
40
+ "medusa-test-utils": "1.1.45-snapshot-20240704061641",
41
41
  "rimraf": "^3.0.2",
42
42
  "ts-node": "^10.9.1",
43
43
  "tsc-alias": "^1.8.6",
44
44
  "typescript": "^5.1.6"
45
45
  },
46
46
  "dependencies": {
47
- "@medusajs/modules-sdk": "1.13.0-snapshot-20240703074611",
48
- "@medusajs/types": "1.12.0-snapshot-20240703074611",
49
- "@medusajs/utils": "1.12.0-snapshot-20240703074611",
47
+ "@medusajs/modules-sdk": "1.13.0-snapshot-20240704061641",
48
+ "@medusajs/types": "1.12.0-snapshot-20240704061641",
49
+ "@medusajs/utils": "1.12.0-snapshot-20240704061641",
50
50
  "@mikro-orm/core": "5.9.7",
51
51
  "@mikro-orm/migrations": "5.9.7",
52
52
  "@mikro-orm/postgresql": "5.9.7",