@medusajs/promotion 0.0.5-preview-20240703060642 → 0.0.5-preview-20240703120635

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,2 @@
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;
4
2
  //# sourceMappingURL=joiner-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EAEZ,MAAM,iBAAiB,CAAA;AAGxB,eAAO,MAAM,YAAY,uOAOvB,CAAA;AAEF,eAAO,MAAM,2BAA2B,EAAE,WACqB,CAAA"}
1
+ {"version":3,"file":"joiner-config.d.ts","sourceRoot":"","sources":["../src/joiner-config.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,uOAOvB,CAAA"}
@@ -1,14 +1,13 @@
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
  const _models_1 = require("./models");
6
6
  exports.joinerConfig = (0, utils_1.defineJoinerConfig)(utils_1.Modules.PROMOTION, {
7
- entityQueryingConfig: [_models_1.Promotion, _models_1.Campaign, _models_1.PromotionRule],
7
+ models: [_models_1.Promotion, _models_1.Campaign, _models_1.PromotionRule],
8
8
  linkableKeys: {
9
9
  promotion_id: _models_1.Promotion.name,
10
10
  campaign_id: _models_1.Campaign.name,
11
11
  promotion_rule_id: _models_1.PromotionRule.name,
12
12
  },
13
13
  });
14
- exports.entityNameToLinkableKeysMap = (0, utils_1.buildEntitiesNameToLinkableKeysMap)(exports.joinerConfig.linkableKeys);
@@ -1,5 +1,4 @@
1
1
  import { CampaignBudgetTypeValues, Context, DAL, InternalModuleDeclaration, ModuleJoinerConfig, ModulesSdkTypes, PromotionTypes } from "@medusajs/types";
2
- import { ModulesSdkUtils } from "@medusajs/utils";
3
2
  import { ApplicationMethod, Campaign, CampaignBudget, Promotion, PromotionRule, PromotionRuleValue } from "../models";
4
3
  import { ApplicationMethodRuleTypes } from "../types";
5
4
  type InjectedDependencies = {
@@ -11,7 +10,7 @@ type InjectedDependencies = {
11
10
  campaignService: ModulesSdkTypes.IMedusaInternalService<any>;
12
11
  campaignBudgetService: ModulesSdkTypes.IMedusaInternalService<any>;
13
12
  };
14
- declare const PromotionModuleService_base: new (...args: any[]) => ModulesSdkUtils.AbstractModuleService<{
13
+ declare const PromotionModuleService_base: import("@medusajs/utils/dist/modules-sdk/types/medusa-service").MedusaServiceReturnType<{
15
14
  Promotion: {
16
15
  dto: PromotionTypes.PromotionDTO;
17
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"promotion-module.d.ts","sourceRoot":"","sources":["../../src/services/promotion-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,OAAO,EACP,GAAG,EACH,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACf,MAAM,iBAAiB,CAAA;AACxB,OAAO,EAgBL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AACxB,OAAO,EACL,iBAAiB,EACjB,QAAQ,EACR,cAAc,EACd,SAAS,EACT,aAAa,EACb,kBAAkB,EACnB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,0BAA0B,EAU3B,MAAM,QAAQ,CAAA;AAWf,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,gBAAgB,EAAE,eAAe,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAA;IAC7D,wBAAwB,EAAE,eAAe,CAAC,sBAAsB,CAAC,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AAI,EAAE,cAAc,CAAC,0BAA0B,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;cAOb,6BAA6B,CAC3C,IAAI,EAAE,cAAc,CAAC,0BAA0B,EAC9B,aAAa,GAAE,OAAY;CAiC/C"}
@@ -25,7 +25,7 @@ class PromotionModuleService extends (0, utils_1.MedusaService)({
25
25
  CampaignBudget: _models_1.CampaignBudget,
26
26
  PromotionRule: _models_1.PromotionRule,
27
27
  PromotionRuleValue: _models_1.PromotionRuleValue,
28
- }, joiner_config_1.entityNameToLinkableKeysMap) {
28
+ }) {
29
29
  constructor({ baseRepository, promotionService, applicationMethodService, promotionRuleService, promotionRuleValueService, campaignService, campaignBudgetService, }, moduleDeclaration) {
30
30
  // @ts-ignore
31
31
  super(...arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/promotion",
3
- "version": "0.0.5-preview-20240703060642",
3
+ "version": "0.0.5-preview-20240703120635",
4
4
  "description": "Medusa Promotion module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -34,11 +34,11 @@
34
34
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
35
35
  },
36
36
  "devDependencies": {
37
- "@medusajs/types": "1.12.0-preview-20240703060642",
37
+ "@medusajs/types": "1.12.0-preview-20240703120635",
38
38
  "@mikro-orm/cli": "5.9.7",
39
39
  "cross-env": "^5.2.1",
40
40
  "jest": "^29.7.0",
41
- "medusa-test-utils": "1.1.45-preview-20240703060642",
41
+ "medusa-test-utils": "1.1.45-preview-20240703120635",
42
42
  "rimraf": "^3.0.2",
43
43
  "ts-jest": "^29.1.1",
44
44
  "ts-node": "^10.9.1",
@@ -46,8 +46,8 @@
46
46
  "typescript": "^5.1.6"
47
47
  },
48
48
  "dependencies": {
49
- "@medusajs/modules-sdk": "1.13.0-preview-20240703060642",
50
- "@medusajs/utils": "1.12.0-preview-20240703060642",
49
+ "@medusajs/modules-sdk": "1.13.0-preview-20240703120635",
50
+ "@medusajs/utils": "1.12.0-preview-20240703120635",
51
51
  "@mikro-orm/core": "5.9.7",
52
52
  "@mikro-orm/migrations": "5.9.7",
53
53
  "@mikro-orm/postgresql": "5.9.7",