@medusajs/product 0.4.0-snapshot-20240429113131 → 1.0.0-rc-20241001083650

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. package/README.md +2 -4
  2. package/dist/index.d.ts +6 -7
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +6 -24
  5. package/dist/index.js.map +1 -0
  6. package/dist/joiner-config.d.ts +2 -16
  7. package/dist/joiner-config.d.ts.map +1 -0
  8. package/dist/joiner-config.js +23 -77
  9. package/dist/joiner-config.js.map +1 -0
  10. package/dist/migrations/InitialSetup20240401153642.d.ts +2 -1
  11. package/dist/migrations/InitialSetup20240401153642.d.ts.map +1 -0
  12. package/dist/migrations/InitialSetup20240401153642.js +3 -2
  13. package/dist/migrations/InitialSetup20240401153642.js.map +1 -0
  14. package/dist/migrations/Migration20240601111544.d.ts +6 -0
  15. package/dist/migrations/Migration20240601111544.d.ts.map +1 -0
  16. package/dist/migrations/Migration20240601111544.js +16 -0
  17. package/dist/migrations/Migration20240601111544.js.map +1 -0
  18. package/dist/migrations/Migration202408271511.d.ts +6 -0
  19. package/dist/migrations/Migration202408271511.d.ts.map +1 -0
  20. package/dist/migrations/Migration202408271511.js +14 -0
  21. package/dist/migrations/Migration202408271511.js.map +1 -0
  22. package/dist/models/index.d.ts +1 -0
  23. package/dist/models/index.d.ts.map +1 -0
  24. package/dist/models/index.js +1 -0
  25. package/dist/models/index.js.map +1 -0
  26. package/dist/models/product-category.d.ts +3 -1
  27. package/dist/models/product-category.d.ts.map +1 -0
  28. package/dist/models/product-category.js +18 -18
  29. package/dist/models/product-category.js.map +1 -0
  30. package/dist/models/product-collection.d.ts +1 -0
  31. package/dist/models/product-collection.d.ts.map +1 -0
  32. package/dist/models/product-collection.js +2 -1
  33. package/dist/models/product-collection.js.map +1 -0
  34. package/dist/models/product-image.d.ts +1 -0
  35. package/dist/models/product-image.d.ts.map +1 -0
  36. package/dist/models/product-image.js +2 -1
  37. package/dist/models/product-image.js.map +1 -0
  38. package/dist/models/product-option-value.d.ts +1 -0
  39. package/dist/models/product-option-value.d.ts.map +1 -0
  40. package/dist/models/product-option-value.js +3 -2
  41. package/dist/models/product-option-value.js.map +1 -0
  42. package/dist/models/product-option.d.ts +1 -0
  43. package/dist/models/product-option.d.ts.map +1 -0
  44. package/dist/models/product-option.js +3 -2
  45. package/dist/models/product-option.js.map +1 -0
  46. package/dist/models/product-tag.d.ts +1 -0
  47. package/dist/models/product-tag.d.ts.map +1 -0
  48. package/dist/models/product-tag.js +2 -1
  49. package/dist/models/product-tag.js.map +1 -0
  50. package/dist/models/product-type.d.ts +1 -0
  51. package/dist/models/product-type.d.ts.map +1 -0
  52. package/dist/models/product-type.js +2 -1
  53. package/dist/models/product-type.js.map +1 -0
  54. package/dist/models/product-variant.d.ts +1 -1
  55. package/dist/models/product-variant.d.ts.map +1 -0
  56. package/dist/models/product-variant.js +4 -17
  57. package/dist/models/product-variant.js.map +1 -0
  58. package/dist/models/product.d.ts +2 -1
  59. package/dist/models/product.d.ts.map +1 -0
  60. package/dist/models/product.js +5 -4
  61. package/dist/models/product.js.map +1 -0
  62. package/dist/repositories/index.d.ts +1 -1
  63. package/dist/repositories/index.d.ts.map +1 -0
  64. package/dist/repositories/index.js +2 -3
  65. package/dist/repositories/index.js.map +1 -0
  66. package/dist/repositories/product-category.d.ts +602 -20
  67. package/dist/repositories/product-category.d.ts.map +1 -0
  68. package/dist/repositories/product-category.js +273 -210
  69. package/dist/repositories/product-category.js.map +1 -0
  70. package/dist/repositories/product.d.ts +3 -2
  71. package/dist/repositories/product.d.ts.map +1 -0
  72. package/dist/repositories/product.js +2 -1
  73. package/dist/repositories/product.js.map +1 -0
  74. package/dist/schema/index.d.ts +3 -0
  75. package/dist/schema/index.d.ts.map +1 -0
  76. package/dist/schema/index.js +151 -0
  77. package/dist/schema/index.js.map +1 -0
  78. package/dist/services/index.d.ts +1 -1
  79. package/dist/services/index.d.ts.map +1 -0
  80. package/dist/services/index.js +2 -3
  81. package/dist/services/index.js.map +1 -0
  82. package/dist/services/product-category.d.ts +12 -8
  83. package/dist/services/product-category.d.ts.map +1 -0
  84. package/dist/services/product-category.js +38 -14
  85. package/dist/services/product-category.js.map +1 -0
  86. package/dist/services/product-module-service.d.ts +85 -79
  87. package/dist/services/product-module-service.d.ts.map +1 -0
  88. package/dist/services/product-module-service.js +364 -200
  89. package/dist/services/product-module-service.js.map +1 -0
  90. package/dist/tsconfig.tsbuildinfo +1 -0
  91. package/dist/types/index.d.ts +9 -2
  92. package/dist/types/index.d.ts.map +1 -0
  93. package/dist/types/index.js +1 -0
  94. package/dist/types/index.js.map +1 -0
  95. package/dist/utils/events.d.ts +147 -0
  96. package/dist/utils/events.d.ts.map +1 -0
  97. package/dist/utils/events.js +115 -0
  98. package/dist/utils/events.js.map +1 -0
  99. package/dist/utils/index.d.ts +2 -2
  100. package/dist/utils/index.d.ts.map +1 -0
  101. package/dist/utils/index.js +16 -9
  102. package/dist/utils/index.js.map +1 -0
  103. package/package.json +21 -24
  104. package/dist/initialize/index.d.ts +0 -4
  105. package/dist/initialize/index.js +0 -17
  106. package/dist/loaders/connection.d.ts +0 -4
  107. package/dist/loaders/connection.js +0 -40
  108. package/dist/loaders/container.d.ts +0 -2
  109. package/dist/loaders/container.js +0 -34
  110. package/dist/loaders/index.d.ts +0 -2
  111. package/dist/loaders/index.js +0 -18
  112. package/dist/module-definition.d.ts +0 -4
  113. package/dist/module-definition.js +0 -50
  114. package/dist/scripts/bin/run-seed.d.ts +0 -3
  115. package/dist/scripts/bin/run-seed.js +0 -52
  116. package/dist/scripts/seed-utils.d.ts +0 -5
  117. package/dist/scripts/seed-utils.js +0 -40
  118. package/dist/services/product.d.ts +0 -21
  119. package/dist/services/product.js +0 -63
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-module-service.js","sourceRoot":"","sources":["../../src/services/product-module-service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,qDAQkC;AAClC,qCAUgB;AAGhB,qDAiBkC;AAClC,oCAYiB;AACjB,oC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153642.ts","../src/migrations/migration20240601111544.ts","../src/migrations/migration202408271511.ts","../src/models/index.ts","../src/models/product-category.ts","../src/models/product-collection.ts","../src/models/product-image.ts","../src/models/product-option-value.ts","../src/models/product-option.ts","../src/models/product-tag.ts","../src/models/product-type.ts","../src/models/product-variant.ts","../src/models/product.ts","../src/repositories/index.ts","../src/repositories/product-category.ts","../src/repositories/product.ts","../src/schema/index.ts","../src/services/index.ts","../src/services/product-category.ts","../src/services/product-module-service.ts","../src/services/__tests__/index.ts","../src/types/index.ts","../src/utils/events.ts","../src/utils/index.ts"],"version":"5.6.2"}
@@ -1,7 +1,7 @@
1
- import { IEventBusModuleService, Logger, ProductTypes } from "@medusajs/types";
1
+ import { IEventBusModuleService, Logger, ProductTypes } from "@medusajs/framework/types";
2
2
  export type InitializeModuleInjectableDependencies = {
3
3
  logger?: Logger;
4
- eventBusModuleService?: IEventBusModuleService;
4
+ EventBus?: IEventBusModuleService;
5
5
  };
6
6
  export type ProductCategoryEventData = {
7
7
  id: string;
@@ -42,6 +42,12 @@ export type UpdateCollectionInput = ProductTypes.UpdateProductCollectionDTO & {
42
42
  export type UpdateTypeInput = ProductTypes.UpdateProductTypeDTO & {
43
43
  id: string;
44
44
  };
45
+ export type UpdateCategoryInput = ProductTypes.UpdateProductCategoryDTO & {
46
+ id: string;
47
+ };
48
+ export type UpdateTagInput = ProductTypes.UpdateProductTagDTO & {
49
+ id: string;
50
+ };
45
51
  export type UpdateProductVariantInput = ProductTypes.UpdateProductVariantDTO & {
46
52
  id: string;
47
53
  product_id?: string | null;
@@ -49,3 +55,4 @@ export type UpdateProductVariantInput = ProductTypes.UpdateProductVariantDTO & {
49
55
  export type UpdateProductOptionInput = ProductTypes.UpdateProductOptionDTO & {
50
56
  id: string;
51
57
  };
58
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBA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CAAC,wBAAwB,GAAG;IACxE,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,YAAY,CAAC,mBAAmB,GAAG;IAC9D,EAAE,EAAE,MAAM,CAAA;CACX,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG,YAAY,CAAC,uBAAuB,GAAG;IAC7E,EAAE,EAAE,MAAM,CAAA;IACV,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,YAAY,CAAC,sBAAsB,GAAG;IAC3E,EAAE,EAAE,MAAM,CAAA;CACX,CAAA"}
@@ -19,3 +19,4 @@ var ProductCollectionEvents;
19
19
  ProductCollectionEvents["COLLECTION_CREATED"] = "product-collection.created";
20
20
  ProductCollectionEvents["COLLECTION_DELETED"] = "product-collection.deleted";
21
21
  })(ProductCollectionEvents || (exports.ProductCollectionEvents = ProductCollectionEvents = {}));
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAiBA,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;IAC7C,sEAA6C,CAAA;AAC/C,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC;AAMD,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;IACnC,oDAAmC,CAAA;AACrC,CAAC,EAJW,aAAa,6BAAb,aAAa,QAIxB;AAMD,IAAY,uBAIX;AAJD,WAAY,uBAAuB;IACjC,4EAAiD,CAAA;IACjD,4EAAiD,CAAA;IACjD,4EAAiD,CAAA;AACnD,CAAC,EAJW,uBAAuB,uCAAvB,uBAAuB,QAIlC"}
@@ -0,0 +1,147 @@
1
+ export declare const eventBuilders: {
2
+ createdProduct: ({ data, sharedContext, }: {
3
+ data: {
4
+ id: string;
5
+ } | {
6
+ id: string;
7
+ }[];
8
+ sharedContext: import("@medusajs/types").Context;
9
+ }) => void;
10
+ updatedProduct: ({ data, sharedContext, }: {
11
+ data: {
12
+ id: string;
13
+ } | {
14
+ id: string;
15
+ }[];
16
+ sharedContext: import("@medusajs/types").Context;
17
+ }) => void;
18
+ deletedProduct: ({ data, sharedContext, }: {
19
+ data: {
20
+ id: string;
21
+ } | {
22
+ id: string;
23
+ }[];
24
+ sharedContext: import("@medusajs/types").Context;
25
+ }) => void;
26
+ createdProductVariant: ({ data, sharedContext, }: {
27
+ data: {
28
+ id: string;
29
+ } | {
30
+ id: string;
31
+ }[];
32
+ sharedContext: import("@medusajs/types").Context;
33
+ }) => void;
34
+ updatedProductVariant: ({ data, sharedContext, }: {
35
+ data: {
36
+ id: string;
37
+ } | {
38
+ id: string;
39
+ }[];
40
+ sharedContext: import("@medusajs/types").Context;
41
+ }) => void;
42
+ deletedProductVariant: ({ data, sharedContext, }: {
43
+ data: {
44
+ id: string;
45
+ } | {
46
+ id: string;
47
+ }[];
48
+ sharedContext: import("@medusajs/types").Context;
49
+ }) => void;
50
+ createdProductOption: ({ data, sharedContext, }: {
51
+ data: {
52
+ id: string;
53
+ } | {
54
+ id: string;
55
+ }[];
56
+ sharedContext: import("@medusajs/types").Context;
57
+ }) => void;
58
+ updatedProductOption: ({ data, sharedContext, }: {
59
+ data: {
60
+ id: string;
61
+ } | {
62
+ id: string;
63
+ }[];
64
+ sharedContext: import("@medusajs/types").Context;
65
+ }) => void;
66
+ deletedProductOption: ({ data, sharedContext, }: {
67
+ data: {
68
+ id: string;
69
+ } | {
70
+ id: string;
71
+ }[];
72
+ sharedContext: import("@medusajs/types").Context;
73
+ }) => void;
74
+ createdProductType: ({ data, sharedContext, }: {
75
+ data: {
76
+ id: string;
77
+ } | {
78
+ id: string;
79
+ }[];
80
+ sharedContext: import("@medusajs/types").Context;
81
+ }) => void;
82
+ updatedProductType: ({ data, sharedContext, }: {
83
+ data: {
84
+ id: string;
85
+ } | {
86
+ id: string;
87
+ }[];
88
+ sharedContext: import("@medusajs/types").Context;
89
+ }) => void;
90
+ deletedProductType: ({ data, sharedContext, }: {
91
+ data: {
92
+ id: string;
93
+ } | {
94
+ id: string;
95
+ }[];
96
+ sharedContext: import("@medusajs/types").Context;
97
+ }) => void;
98
+ createdProductTag: ({ data, sharedContext, }: {
99
+ data: {
100
+ id: string;
101
+ } | {
102
+ id: string;
103
+ }[];
104
+ sharedContext: import("@medusajs/types").Context;
105
+ }) => void;
106
+ updatedProductTag: ({ data, sharedContext, }: {
107
+ data: {
108
+ id: string;
109
+ } | {
110
+ id: string;
111
+ }[];
112
+ sharedContext: import("@medusajs/types").Context;
113
+ }) => void;
114
+ deletedProductTag: ({ data, sharedContext, }: {
115
+ data: {
116
+ id: string;
117
+ } | {
118
+ id: string;
119
+ }[];
120
+ sharedContext: import("@medusajs/types").Context;
121
+ }) => void;
122
+ createdProductCategory: ({ data, sharedContext, }: {
123
+ data: {
124
+ id: string;
125
+ } | {
126
+ id: string;
127
+ }[];
128
+ sharedContext: import("@medusajs/types").Context;
129
+ }) => void;
130
+ updatedProductCategory: ({ data, sharedContext, }: {
131
+ data: {
132
+ id: string;
133
+ } | {
134
+ id: string;
135
+ }[];
136
+ sharedContext: import("@medusajs/types").Context;
137
+ }) => void;
138
+ deletedProductCategory: ({ data, sharedContext, }: {
139
+ data: {
140
+ id: string;
141
+ } | {
142
+ id: string;
143
+ }[];
144
+ sharedContext: import("@medusajs/types").Context;
145
+ }) => void;
146
+ };
147
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/utils/events.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GzB,CAAA"}
@@ -0,0 +1,115 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.eventBuilders = void 0;
4
+ const utils_1 = require("@medusajs/framework/utils");
5
+ exports.eventBuilders = {
6
+ createdProduct: (0, utils_1.moduleEventBuilderFactory)({
7
+ source: utils_1.Modules.PRODUCT,
8
+ action: utils_1.CommonEvents.CREATED,
9
+ object: "product",
10
+ eventsEnum: utils_1.ProductEvents,
11
+ }),
12
+ updatedProduct: (0, utils_1.moduleEventBuilderFactory)({
13
+ source: utils_1.Modules.PRODUCT,
14
+ action: utils_1.CommonEvents.UPDATED,
15
+ object: "product",
16
+ eventsEnum: utils_1.ProductEvents,
17
+ }),
18
+ deletedProduct: (0, utils_1.moduleEventBuilderFactory)({
19
+ source: utils_1.Modules.PRODUCT,
20
+ action: utils_1.CommonEvents.DELETED,
21
+ object: "product",
22
+ eventsEnum: utils_1.ProductEvents,
23
+ }),
24
+ createdProductVariant: (0, utils_1.moduleEventBuilderFactory)({
25
+ source: utils_1.Modules.PRODUCT,
26
+ action: utils_1.CommonEvents.CREATED,
27
+ object: "product_variant",
28
+ eventsEnum: utils_1.ProductEvents,
29
+ }),
30
+ updatedProductVariant: (0, utils_1.moduleEventBuilderFactory)({
31
+ source: utils_1.Modules.PRODUCT,
32
+ action: utils_1.CommonEvents.UPDATED,
33
+ object: "product_variant",
34
+ eventsEnum: utils_1.ProductEvents,
35
+ }),
36
+ deletedProductVariant: (0, utils_1.moduleEventBuilderFactory)({
37
+ source: utils_1.Modules.PRODUCT,
38
+ action: utils_1.CommonEvents.DELETED,
39
+ object: "product_variant",
40
+ eventsEnum: utils_1.ProductEvents,
41
+ }),
42
+ createdProductOption: (0, utils_1.moduleEventBuilderFactory)({
43
+ source: utils_1.Modules.PRODUCT,
44
+ action: utils_1.CommonEvents.CREATED,
45
+ object: "product_option",
46
+ eventsEnum: utils_1.ProductEvents,
47
+ }),
48
+ updatedProductOption: (0, utils_1.moduleEventBuilderFactory)({
49
+ source: utils_1.Modules.PRODUCT,
50
+ action: utils_1.CommonEvents.UPDATED,
51
+ object: "product_option",
52
+ eventsEnum: utils_1.ProductEvents,
53
+ }),
54
+ deletedProductOption: (0, utils_1.moduleEventBuilderFactory)({
55
+ source: utils_1.Modules.PRODUCT,
56
+ action: utils_1.CommonEvents.DELETED,
57
+ object: "product_option",
58
+ eventsEnum: utils_1.ProductEvents,
59
+ }),
60
+ createdProductType: (0, utils_1.moduleEventBuilderFactory)({
61
+ source: utils_1.Modules.PRODUCT,
62
+ action: utils_1.CommonEvents.CREATED,
63
+ object: "product_type",
64
+ eventsEnum: utils_1.ProductEvents,
65
+ }),
66
+ updatedProductType: (0, utils_1.moduleEventBuilderFactory)({
67
+ source: utils_1.Modules.PRODUCT,
68
+ action: utils_1.CommonEvents.UPDATED,
69
+ object: "product_type",
70
+ eventsEnum: utils_1.ProductEvents,
71
+ }),
72
+ deletedProductType: (0, utils_1.moduleEventBuilderFactory)({
73
+ source: utils_1.Modules.PRODUCT,
74
+ action: utils_1.CommonEvents.DELETED,
75
+ object: "product_type",
76
+ eventsEnum: utils_1.ProductEvents,
77
+ }),
78
+ createdProductTag: (0, utils_1.moduleEventBuilderFactory)({
79
+ source: utils_1.Modules.PRODUCT,
80
+ action: utils_1.CommonEvents.CREATED,
81
+ object: "product_tag",
82
+ eventsEnum: utils_1.ProductEvents,
83
+ }),
84
+ updatedProductTag: (0, utils_1.moduleEventBuilderFactory)({
85
+ source: utils_1.Modules.PRODUCT,
86
+ action: utils_1.CommonEvents.UPDATED,
87
+ object: "product_tag",
88
+ eventsEnum: utils_1.ProductEvents,
89
+ }),
90
+ deletedProductTag: (0, utils_1.moduleEventBuilderFactory)({
91
+ source: utils_1.Modules.PRODUCT,
92
+ action: utils_1.CommonEvents.DELETED,
93
+ object: "product_tag",
94
+ eventsEnum: utils_1.ProductEvents,
95
+ }),
96
+ createdProductCategory: (0, utils_1.moduleEventBuilderFactory)({
97
+ source: utils_1.Modules.PRODUCT,
98
+ action: utils_1.CommonEvents.CREATED,
99
+ object: "product_category",
100
+ eventsEnum: utils_1.ProductEvents,
101
+ }),
102
+ updatedProductCategory: (0, utils_1.moduleEventBuilderFactory)({
103
+ source: utils_1.Modules.PRODUCT,
104
+ action: utils_1.CommonEvents.UPDATED,
105
+ object: "product_category",
106
+ eventsEnum: utils_1.ProductEvents,
107
+ }),
108
+ deletedProductCategory: (0, utils_1.moduleEventBuilderFactory)({
109
+ source: utils_1.Modules.PRODUCT,
110
+ action: utils_1.CommonEvents.DELETED,
111
+ object: "product_category",
112
+ eventsEnum: utils_1.ProductEvents,
113
+ }),
114
+ };
115
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","sourceRoot":"","sources":["../../src/utils/events.ts"],"names":[],"mappings":";;;AAAA,qDAKkC;AAErB,QAAA,aAAa,GAAG;IAC3B,cAAc,EAAE,IAAA,iCAAyB,EAAC;QACxC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,qBAAa;KAC1B,CAAC;IACF,cAAc,EAAE,IAAA,iCAAyB,EAAC;QACxC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,qBAAa;KAC1B,CAAC;IACF,cAAc,EAAE,IAAA,iCAAyB,EAAC;QACxC,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,qBAAa;KAC1B,CAAC;IACF,qBAAqB,EAAE,IAAA,iCAAyB,EAAC;QAC/C,MAAM,EAAE,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,C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E,eAAO,CAAC,OAAO;QACvB,MAAM,EAAE,oBAAY,CAAC,OAAO;QAC5B,MAAM,EAAE,kBAAkB;QAC1B,UAAU,EAAE,qBAAa;KAC1B,CAAC;CACH,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare function shouldForceTransaction(): boolean;
2
- export declare function doNotForceTransaction(): boolean;
1
+ export * from "./events";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA"}
@@ -1,11 +1,18 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
2
16
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.doNotForceTransaction = exports.shouldForceTransaction = void 0;
4
- function shouldForceTransaction() {
5
- return true;
6
- }
7
- exports.shouldForceTransaction = shouldForceTransaction;
8
- function doNotForceTransaction() {
9
- return false;
10
- }
11
- exports.doNotForceTransaction = doNotForceTransaction;
17
+ __exportStar(require("./events"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@medusajs/product",
3
- "version": "0.4.0-snapshot-20240429113131",
3
+ "version": "1.0.0-rc-20241001083650",
4
4
  "description": "Medusa Product module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
- "dist"
8
+ "dist",
9
+ "!dist/**/__tests__",
10
+ "!dist/**/__mocks__",
11
+ "!dist/**/__fixtures__"
9
12
  ],
10
- "bin": {
11
- "medusa-product-seed": "dist/scripts/bin/run-seed.js"
12
- },
13
13
  "engines": {
14
- "node": ">=16"
14
+ "node": ">=20"
15
15
  },
16
16
  "repository": {
17
17
  "type": "git",
@@ -26,8 +26,8 @@
26
26
  "scripts": {
27
27
  "watch": "tsc --build --watch",
28
28
  "watch:test": "tsc --build tsconfig.spec.json --watch",
29
- "prepublishOnly": "cross-env NODE_ENV=production tsc --build && tsc-alias -p tsconfig.json",
30
- "build": "rimraf dist && tsc --build && tsc-alias -p tsconfig.json",
29
+ "resolve:aliases": "tsc --showConfig -p tsconfig.json > tsconfig.resolved.json && tsc-alias -p tsconfig.resolved.json && rimraf tsconfig.resolved.json",
30
+ "build": "rimraf dist && tsc --build && npm run resolve:aliases",
31
31
  "test": "jest --runInBand --bail --forceExit -- src/**/__tests__/**/*.ts",
32
32
  "test:integration": "jest --forceExit -- integration-tests/**/__tests__/**/*.ts",
33
33
  "migration:generate": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm migration:generate",
@@ -37,28 +37,25 @@
37
37
  "orm:cache:clear": " MIKRO_ORM_CLI=./mikro-orm.config.dev.ts mikro-orm cache:clear"
38
38
  },
39
39
  "devDependencies": {
40
+ "@medusajs/framework": "1.0.0-rc-20241001083650",
40
41
  "@mikro-orm/cli": "5.9.7",
41
- "cross-env": "^5.2.1",
42
- "faker": "^6.6.6",
43
- "jest": "^29.6.3",
44
- "medusa-test-utils": "1.1.44-snapshot-20240429113131",
45
- "pg-god": "^1.0.12",
42
+ "@mikro-orm/core": "5.9.7",
43
+ "@mikro-orm/migrations": "5.9.7",
44
+ "@mikro-orm/postgresql": "5.9.7",
45
+ "@swc/core": "^1.7.28",
46
+ "@swc/jest": "^0.2.36",
47
+ "faker": "^5.5.3",
48
+ "jest": "^29.7.0",
49
+ "medusa-test-utils": "2.0.0-rc-20241001083650",
46
50
  "rimraf": "^3.0.2",
47
- "ts-jest": "^29.1.1",
48
- "ts-node": "^10.9.1",
49
51
  "tsc-alias": "^1.8.6",
50
- "typescript": "^5.1.6"
52
+ "typescript": "^5.6.2"
51
53
  },
52
- "dependencies": {
53
- "@medusajs/modules-sdk": "1.12.11-snapshot-20240429113131",
54
- "@medusajs/types": "1.12.0-snapshot-20240429113131",
55
- "@medusajs/utils": "1.12.0-snapshot-20240429113131",
54
+ "peerDependencies": {
55
+ "@medusajs/framework": "1.0.0-rc-20241001083650",
56
56
  "@mikro-orm/core": "5.9.7",
57
57
  "@mikro-orm/migrations": "5.9.7",
58
58
  "@mikro-orm/postgresql": "5.9.7",
59
- "awilix": "^8.0.0",
60
- "dotenv": "^16.4.5",
61
- "knex": "2.4.2",
62
- "lodash": "^4.17.21"
59
+ "awilix": "^8.0.1"
63
60
  }
64
61
  }
@@ -1,4 +0,0 @@
1
- import { ExternalModuleDeclaration, InternalModuleDeclaration } from "@medusajs/modules-sdk";
2
- import { IProductModuleService, ModulesSdkTypes } from "@medusajs/types";
3
- import { InitializeModuleInjectableDependencies } from "../types";
4
- export declare const initialize: (options?: ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions | ExternalModuleDeclaration | InternalModuleDeclaration, injectedDependencies?: InitializeModuleInjectableDependencies) => Promise<IProductModuleService>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.initialize = void 0;
4
- const modules_sdk_1 = require("@medusajs/modules-sdk");
5
- const module_definition_1 = require("../module-definition");
6
- const initialize = async (options, injectedDependencies) => {
7
- const serviceKey = modules_sdk_1.Modules.PRODUCT;
8
- const loaded = await modules_sdk_1.MedusaModule.bootstrap({
9
- moduleKey: serviceKey,
10
- defaultPath: modules_sdk_1.MODULE_PACKAGE_NAMES[modules_sdk_1.Modules.PRODUCT],
11
- declaration: options,
12
- injectedDependencies,
13
- moduleExports: module_definition_1.moduleDefinition,
14
- });
15
- return loaded[serviceKey];
16
- };
17
- exports.initialize = initialize;
@@ -1,4 +0,0 @@
1
- import { InternalModuleDeclaration, LoaderOptions } from "@medusajs/modules-sdk";
2
- import { ModulesSdkTypes } from "@medusajs/types";
3
- declare const _default: ({ options, container, logger, }: LoaderOptions<ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions>, moduleDeclaration?: InternalModuleDeclaration) => Promise<void>;
4
- export default _default;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const utils_1 = require("@medusajs/utils");
27
- const ProductModels = __importStar(require("../models"));
28
- exports.default = async ({ options, container, logger, }, moduleDeclaration) => {
29
- const entities = Object.values(ProductModels);
30
- const pathToMigrations = __dirname + "/../migrations";
31
- await utils_1.ModulesSdkUtils.mikroOrmConnectionLoader({
32
- moduleName: "product",
33
- entities,
34
- container,
35
- options,
36
- moduleDeclaration,
37
- logger,
38
- pathToMigrations,
39
- });
40
- };
@@ -1,2 +0,0 @@
1
- declare const _default: ({ container, options }: import("@medusajs/types").LoaderOptions) => Promise<void>;
2
- export default _default;
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- const utils_1 = require("@medusajs/utils");
27
- const ModuleModels = __importStar(require("../models"));
28
- const ModuleRepositories = __importStar(require("../repositories"));
29
- const ModuleServices = __importStar(require("../services"));
30
- exports.default = utils_1.ModulesSdkUtils.moduleContainerLoaderFactory({
31
- moduleModels: ModuleModels,
32
- moduleRepositories: ModuleRepositories,
33
- moduleServices: ModuleServices,
34
- });
@@ -1,2 +0,0 @@
1
- export * from "./connection";
2
- export * from "./container";