@medusajs/pricing 1.0.0-rc-20241014083213 → 1.0.0-rc-20241014155714

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,61 +7,61 @@ exports.eventBuilders = {
7
7
  source: utils_1.Modules.PRICING,
8
8
  action: utils_1.CommonEvents.CREATED,
9
9
  object: "price_set",
10
- eventsEnum: utils_1.PricingEvents,
10
+ eventName: utils_1.PricingEvents.PRICE_SET_CREATED,
11
11
  }),
12
12
  createdPrice: (0, utils_1.moduleEventBuilderFactory)({
13
13
  source: utils_1.Modules.PRICING,
14
14
  action: utils_1.CommonEvents.CREATED,
15
15
  object: "price",
16
- eventsEnum: utils_1.PricingEvents,
16
+ eventName: utils_1.PricingEvents.PRICE_CREATED,
17
17
  }),
18
18
  createdPriceRule: (0, utils_1.moduleEventBuilderFactory)({
19
19
  source: utils_1.Modules.PRICING,
20
20
  action: utils_1.CommonEvents.CREATED,
21
21
  object: "price_rule",
22
- eventsEnum: utils_1.PricingEvents,
22
+ eventName: utils_1.PricingEvents.PRICE_RULE_CREATED,
23
23
  }),
24
24
  createdPriceList: (0, utils_1.moduleEventBuilderFactory)({
25
25
  source: utils_1.Modules.PRICING,
26
26
  action: utils_1.CommonEvents.CREATED,
27
27
  object: "price_list",
28
- eventsEnum: utils_1.PricingEvents,
28
+ eventName: utils_1.PricingEvents.PRICE_LIST_CREATED,
29
29
  }),
30
30
  createdPriceListRule: (0, utils_1.moduleEventBuilderFactory)({
31
31
  source: utils_1.Modules.PRICING,
32
32
  action: utils_1.CommonEvents.CREATED,
33
33
  object: "price_list_rule",
34
- eventsEnum: utils_1.PricingEvents,
34
+ eventName: utils_1.PricingEvents.PRICE_LIST_RULE_CREATED,
35
35
  }),
36
36
  attachedPriceListRule: (0, utils_1.moduleEventBuilderFactory)({
37
37
  source: utils_1.Modules.PRICING,
38
38
  action: utils_1.CommonEvents.ATTACHED,
39
39
  object: "price_list_rule",
40
- eventsEnum: utils_1.PricingEvents,
40
+ eventName: utils_1.PricingEvents.PRICE_LIST_RULE_ATTACHED,
41
41
  }),
42
42
  updatedPrice: (0, utils_1.moduleEventBuilderFactory)({
43
43
  source: utils_1.Modules.PRICING,
44
44
  action: utils_1.CommonEvents.UPDATED,
45
45
  object: "price",
46
- eventsEnum: utils_1.PricingEvents,
46
+ eventName: utils_1.PricingEvents.PRICE_UPDATED,
47
47
  }),
48
48
  updatedPriceRule: (0, utils_1.moduleEventBuilderFactory)({
49
49
  source: utils_1.Modules.PRICING,
50
50
  action: utils_1.CommonEvents.UPDATED,
51
51
  object: "price_rule",
52
- eventsEnum: utils_1.PricingEvents,
52
+ eventName: utils_1.PricingEvents.PRICE_RULE_UPDATED,
53
53
  }),
54
54
  deletedPrice: (0, utils_1.moduleEventBuilderFactory)({
55
55
  source: utils_1.Modules.PRICING,
56
56
  action: utils_1.CommonEvents.DELETED,
57
57
  object: "price",
58
- eventsEnum: utils_1.PricingEvents,
58
+ eventName: utils_1.PricingEvents.PRICE_DELETED,
59
59
  }),
60
60
  deletedPriceRule: (0, utils_1.moduleEventBuilderFactory)({
61
61
  source: utils_1.Modules.PRICING,
62
62
  action: utils_1.CommonEvents.DELETED,
63
63
  object: "price_rule",
64
- eventsEnum: utils_1.PricingEvents,
64
+ eventName: utils_1.PricingEvents.PRICE_RULE_DELETED,
65
65
  }),
66
66
  };
67
67
  //# sourceMappingURL=events.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/utils/events.ts"],"names":[],"mappings":";;;AAAA,qDAKkC;AAErB,QAAA,aAAa,GAAG;IAC3B,eAAe,EAAE,IAAA,iCAAyB,EAAC;QACzC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,qBAAa;KAC1B,CAAC;IACF,YAAY,EAAE,IAAA,iCAAyB,EAAC;QACtC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OA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BAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,qBAAa,CAAC,uBAAuB;KACjD,CAAC;IACF,qBAAqB,EAAE,IAAA,iCAAyB,EAAC;QAC/C,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,QAAQ;QAC7B,MAAM,EAAE,iBAAiB;QACzB,SAAS,EAAE,qBAAa,CAAC,wBAAwB;KAClD,CAAC;IACF,YAAY,EAAE,IAAA,iCAAyB,EAAC;QACtC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,OAAO;QACf,SAAS,EAAE,qBAAa,CAAC,aAAa;KACvC,CAAC;IACF,gBAAgB,EAAE,IAAA,iCAAyB,EAAC;QAC1C,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,qBAAa,CAAC,kBAAkB;KAC5C,CAAC;IACF,YAAY,EAAE,IAAA,iCAAyB,EAAC;QACtC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,OAAO;QACf,SAAS,EAAE,qBAAa,CAAC,aAAa;KACvC,CAAC;IACF,gBAAgB,EAAE,IAAA,iCAAyB,EAAC;QAC1C,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,qBAAa,CAAC,kBAAkB;KAC5C,CAAC;CACH,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/pricing",
3
- "version": "1.0.0-rc-20241014083213",
3
+ "version": "1.0.0-rc-20241014155714",
4
4
  "description": "Medusa Pricing module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -37,7 +37,7 @@
37
37
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts medusa-mikro-orm cache:clear"
38
38
  },
39
39
  "devDependencies": {
40
- "@medusajs/framework": "1.0.0-rc-20241014083213",
40
+ "@medusajs/framework": "1.0.0-rc-20241014155714",
41
41
  "@mikro-orm/cli": "5.9.7",
42
42
  "@mikro-orm/core": "5.9.7",
43
43
  "@mikro-orm/migrations": "5.9.7",
@@ -45,13 +45,13 @@
45
45
  "@swc/core": "^1.7.28",
46
46
  "@swc/jest": "^0.2.36",
47
47
  "jest": "^29.7.0",
48
- "medusa-test-utils": "2.0.0-rc-20241014083213",
48
+ "medusa-test-utils": "2.0.0-rc-20241014155714",
49
49
  "rimraf": "^3.0.2",
50
50
  "tsc-alias": "^1.8.6",
51
51
  "typescript": "^5.6.2"
52
52
  },
53
53
  "peerDependencies": {
54
- "@medusajs/framework": "1.0.0-rc-20241014083213",
54
+ "@medusajs/framework": "1.0.0-rc-20241014155714",
55
55
  "@mikro-orm/core": "5.9.7",
56
56
  "@mikro-orm/migrations": "5.9.7",
57
57
  "@mikro-orm/postgresql": "5.9.7",