@medusajs/medusa 2.8.3-preview-20250520090150 → 2.8.3-preview-20250520150150
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/api/admin/products/imports/[transaction_id]/confirm/route.js +1 -1
- package/dist/api/admin/products/imports/[transaction_id]/confirm/route.js.map +1 -1
- package/dist/api/admin/products/imports/route.d.ts.map +1 -1
- package/dist/api/admin/products/imports/route.js +2 -5
- package/dist/api/admin/products/imports/route.js.map +1 -1
- package/package.json +53 -49
@@ -15,7 +15,7 @@ const POST = async (req, res) => {
|
|
15
15
|
action: utils_1.TransactionHandlerType.INVOKE,
|
16
16
|
transactionId,
|
17
17
|
stepId: core_flows_1.waitConfirmationProductImportStepId,
|
18
|
-
workflowId: core_flows_1.
|
18
|
+
workflowId: core_flows_1.importProductsAsChunksWorkflowId,
|
19
19
|
},
|
20
20
|
stepResponse: new workflows_sdk_1.StepResponse(true),
|
21
21
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../src/api/admin/products/imports/[transaction_id]/confirm/route.ts"],"names":[],"mappings":";;;AAKA,qDAG6B;AAE7B,qDAA2E;AAC3E,qEAAgE;AAEhE;;GAEG;AACI,MAAM,IAAI,GAAG,KAAK,EACvB,GAA+B,EAC/B,GAAmB,EACnB,EAAE;IACF,MAAM,qBAAqB,GAA2B,GAAG,CAAC,KAAK,CAAC,OAAO,CACrE,eAAO,CAAC,eAAe,CACxB,CAAA;IACD,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,cAAc,CAAA;IAE/C,MAAM,qBAAqB,CAAC,cAAc,CAAC;QACzC,cAAc,EAAE;YACd,MAAM,EAAE,8BAAsB,CAAC,MAAM;YACrC,aAAa;YACb,MAAM,EAAE,gDAAmC;YAC3C,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../../../src/api/admin/products/imports/[transaction_id]/confirm/route.ts"],"names":[],"mappings":";;;AAKA,qDAG6B;AAE7B,qDAA2E;AAC3E,qEAAgE;AAEhE;;GAEG;AACI,MAAM,IAAI,GAAG,KAAK,EACvB,GAA+B,EAC/B,GAAmB,EACnB,EAAE;IACF,MAAM,qBAAqB,GAA2B,GAAG,CAAC,KAAK,CAAC,OAAO,CACrE,eAAO,CAAC,eAAe,CACxB,CAAA;IACD,MAAM,aAAa,GAAG,GAAG,CAAC,MAAM,CAAC,cAAc,CAAA;IAE/C,MAAM,qBAAqB,CAAC,cAAc,CAAC;QACzC,cAAc,EAAE;YACd,MAAM,EAAE,8BAAsB,CAAC,MAAM;YACrC,aAAa;YACb,MAAM,EAAE,gDAAmC;YAC3C,UAAU,EAAE,6CAAgC;SAC7C;QACD,YAAY,EAAE,IAAI,4BAAY,CAAC,IAAI,CAAC;KACrC,CAAC,CAAA;IAEF,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC1B,CAAC,CAAA;AApBY,QAAA,IAAI,QAoBhB"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/admin/products/imports/route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,0BAA0B,EAC3B,MAAM,0BAA0B,CAAA;
|
1
|
+
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../../../src/api/admin/products/imports/route.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,0BAA0B,EAC3B,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,eAAe,CAAA;AAG5D;;GAEG;AACH,eAAO,MAAM,IAAI,QACV,0BAA0B,CAAC,uBAAuB,CAAC,OACnD,cAAc,CAAC,SAAS,CAAC,0BAA0B,CAAC,kBAc1D,CAAA"}
|
@@ -1,18 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.POST = void 0;
|
4
|
-
const utils_1 = require("@medusajs/framework/utils");
|
5
4
|
const core_flows_1 = require("@medusajs/core-flows");
|
6
5
|
/**
|
7
6
|
* @version 2.8.0
|
8
7
|
*/
|
9
8
|
const POST = async (req, res) => {
|
10
|
-
const
|
11
|
-
const file = await fileProvider.getAsBuffer(req.validatedBody.file_key);
|
12
|
-
const { result, transaction } = await (0, core_flows_1.importProductsWorkflow)(req.scope).run({
|
9
|
+
const { result, transaction } = await (0, core_flows_1.importProductsAsChunksWorkflow)(req.scope).run({
|
13
10
|
input: {
|
14
11
|
filename: req.validatedBody.originalname,
|
15
|
-
|
12
|
+
fileKey: req.validatedBody.file_key,
|
16
13
|
},
|
17
14
|
});
|
18
15
|
res
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/admin/products/imports/route.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../../src/api/admin/products/imports/route.ts"],"names":[],"mappings":";;;AAMA,qDAAqE;AAErE;;GAEG;AACI,MAAM,IAAI,GAAG,KAAK,EACvB,GAAwD,EACxD,GAAyD,EACzD,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,IAAA,2CAA8B,EAClE,GAAG,CAAC,KAAK,CACV,CAAC,GAAG,CAAC;QACJ,KAAK,EAAE;YACL,QAAQ,EAAE,GAAG,CAAC,aAAa,CAAC,YAAY;YACxC,OAAO,EAAE,GAAG,CAAC,aAAa,CAAC,QAAQ;SACpC;KACF,CAAC,CAAA;IAEF,GAAG;SACA,MAAM,CAAC,GAAG,CAAC;SACX,IAAI,CAAC,EAAE,cAAc,EAAE,WAAW,CAAC,aAAa,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAA;AACzE,CAAC,CAAA;AAhBY,QAAA,IAAI,QAgBhB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/medusa",
|
3
|
-
"version": "2.8.3-preview-
|
3
|
+
"version": "2.8.3-preview-20250520150150",
|
4
4
|
"description": "Building blocks for digital commerce",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"exports": {
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"test:integration": "jest --forceExit -- src/**/integration-tests/**/__tests__/**/*.ts"
|
45
45
|
},
|
46
46
|
"devDependencies": {
|
47
|
-
"@medusajs/framework": "2.8.3-preview-
|
47
|
+
"@medusajs/framework": "2.8.3-preview-20250520150150",
|
48
48
|
"@opentelemetry/instrumentation-pg": "^0.52.0",
|
49
49
|
"@opentelemetry/resources": "^2.0.0",
|
50
50
|
"@opentelemetry/sdk-node": "^0.200.0",
|
@@ -65,52 +65,52 @@
|
|
65
65
|
"dependencies": {
|
66
66
|
"@inquirer/checkbox": "^2.3.11",
|
67
67
|
"@inquirer/input": "^2.2.9",
|
68
|
-
"@medusajs/admin-bundler": "2.8.3-preview-
|
69
|
-
"@medusajs/analytics": "2.8.3-preview-
|
70
|
-
"@medusajs/analytics-local": "2.8.3-preview-
|
71
|
-
"@medusajs/analytics-posthog": "2.8.3-preview-
|
72
|
-
"@medusajs/api-key": "2.8.3-preview-
|
73
|
-
"@medusajs/auth": "2.8.3-preview-
|
74
|
-
"@medusajs/auth-emailpass": "2.8.3-preview-
|
75
|
-
"@medusajs/auth-github": "2.8.3-preview-
|
76
|
-
"@medusajs/auth-google": "2.8.3-preview-
|
77
|
-
"@medusajs/cache-inmemory": "2.8.3-preview-
|
78
|
-
"@medusajs/cache-redis": "2.8.3-preview-
|
79
|
-
"@medusajs/cart": "2.8.3-preview-
|
80
|
-
"@medusajs/core-flows": "2.8.3-preview-
|
81
|
-
"@medusajs/currency": "2.8.3-preview-
|
82
|
-
"@medusajs/customer": "2.8.3-preview-
|
83
|
-
"@medusajs/event-bus-local": "2.8.3-preview-
|
84
|
-
"@medusajs/event-bus-redis": "2.8.3-preview-
|
85
|
-
"@medusajs/file": "2.8.3-preview-
|
86
|
-
"@medusajs/file-local": "2.8.3-preview-
|
87
|
-
"@medusajs/file-s3": "2.8.3-preview-
|
88
|
-
"@medusajs/fulfillment": "2.8.3-preview-
|
89
|
-
"@medusajs/fulfillment-manual": "2.8.3-preview-
|
90
|
-
"@medusajs/index": "2.8.3-preview-
|
91
|
-
"@medusajs/inventory": "2.8.3-preview-
|
92
|
-
"@medusajs/link-modules": "2.8.3-preview-
|
93
|
-
"@medusajs/locking": "2.8.3-preview-
|
94
|
-
"@medusajs/locking-postgres": "2.8.3-preview-
|
95
|
-
"@medusajs/locking-redis": "2.8.3-preview-
|
96
|
-
"@medusajs/notification": "2.8.3-preview-
|
97
|
-
"@medusajs/notification-local": "2.8.3-preview-
|
98
|
-
"@medusajs/notification-sendgrid": "2.8.3-preview-
|
99
|
-
"@medusajs/order": "2.8.3-preview-
|
100
|
-
"@medusajs/payment": "2.8.3-preview-
|
101
|
-
"@medusajs/payment-stripe": "2.8.3-preview-
|
102
|
-
"@medusajs/pricing": "2.8.3-preview-
|
103
|
-
"@medusajs/product": "2.8.3-preview-
|
104
|
-
"@medusajs/promotion": "2.8.3-preview-
|
105
|
-
"@medusajs/region": "2.8.3-preview-
|
106
|
-
"@medusajs/sales-channel": "2.8.3-preview-
|
107
|
-
"@medusajs/stock-location": "2.8.3-preview-
|
108
|
-
"@medusajs/store": "2.8.3-preview-
|
109
|
-
"@medusajs/tax": "2.8.3-preview-
|
110
|
-
"@medusajs/telemetry": "2.8.3-preview-
|
111
|
-
"@medusajs/user": "2.8.3-preview-
|
112
|
-
"@medusajs/workflow-engine-inmemory": "2.8.3-preview-
|
113
|
-
"@medusajs/workflow-engine-redis": "2.8.3-preview-
|
68
|
+
"@medusajs/admin-bundler": "2.8.3-preview-20250520150150",
|
69
|
+
"@medusajs/analytics": "2.8.3-preview-20250520150150",
|
70
|
+
"@medusajs/analytics-local": "2.8.3-preview-20250520150150",
|
71
|
+
"@medusajs/analytics-posthog": "2.8.3-preview-20250520150150",
|
72
|
+
"@medusajs/api-key": "2.8.3-preview-20250520150150",
|
73
|
+
"@medusajs/auth": "2.8.3-preview-20250520150150",
|
74
|
+
"@medusajs/auth-emailpass": "2.8.3-preview-20250520150150",
|
75
|
+
"@medusajs/auth-github": "2.8.3-preview-20250520150150",
|
76
|
+
"@medusajs/auth-google": "2.8.3-preview-20250520150150",
|
77
|
+
"@medusajs/cache-inmemory": "2.8.3-preview-20250520150150",
|
78
|
+
"@medusajs/cache-redis": "2.8.3-preview-20250520150150",
|
79
|
+
"@medusajs/cart": "2.8.3-preview-20250520150150",
|
80
|
+
"@medusajs/core-flows": "2.8.3-preview-20250520150150",
|
81
|
+
"@medusajs/currency": "2.8.3-preview-20250520150150",
|
82
|
+
"@medusajs/customer": "2.8.3-preview-20250520150150",
|
83
|
+
"@medusajs/event-bus-local": "2.8.3-preview-20250520150150",
|
84
|
+
"@medusajs/event-bus-redis": "2.8.3-preview-20250520150150",
|
85
|
+
"@medusajs/file": "2.8.3-preview-20250520150150",
|
86
|
+
"@medusajs/file-local": "2.8.3-preview-20250520150150",
|
87
|
+
"@medusajs/file-s3": "2.8.3-preview-20250520150150",
|
88
|
+
"@medusajs/fulfillment": "2.8.3-preview-20250520150150",
|
89
|
+
"@medusajs/fulfillment-manual": "2.8.3-preview-20250520150150",
|
90
|
+
"@medusajs/index": "2.8.3-preview-20250520150150",
|
91
|
+
"@medusajs/inventory": "2.8.3-preview-20250520150150",
|
92
|
+
"@medusajs/link-modules": "2.8.3-preview-20250520150150",
|
93
|
+
"@medusajs/locking": "2.8.3-preview-20250520150150",
|
94
|
+
"@medusajs/locking-postgres": "2.8.3-preview-20250520150150",
|
95
|
+
"@medusajs/locking-redis": "2.8.3-preview-20250520150150",
|
96
|
+
"@medusajs/notification": "2.8.3-preview-20250520150150",
|
97
|
+
"@medusajs/notification-local": "2.8.3-preview-20250520150150",
|
98
|
+
"@medusajs/notification-sendgrid": "2.8.3-preview-20250520150150",
|
99
|
+
"@medusajs/order": "2.8.3-preview-20250520150150",
|
100
|
+
"@medusajs/payment": "2.8.3-preview-20250520150150",
|
101
|
+
"@medusajs/payment-stripe": "2.8.3-preview-20250520150150",
|
102
|
+
"@medusajs/pricing": "2.8.3-preview-20250520150150",
|
103
|
+
"@medusajs/product": "2.8.3-preview-20250520150150",
|
104
|
+
"@medusajs/promotion": "2.8.3-preview-20250520150150",
|
105
|
+
"@medusajs/region": "2.8.3-preview-20250520150150",
|
106
|
+
"@medusajs/sales-channel": "2.8.3-preview-20250520150150",
|
107
|
+
"@medusajs/stock-location": "2.8.3-preview-20250520150150",
|
108
|
+
"@medusajs/store": "2.8.3-preview-20250520150150",
|
109
|
+
"@medusajs/tax": "2.8.3-preview-20250520150150",
|
110
|
+
"@medusajs/telemetry": "2.8.3-preview-20250520150150",
|
111
|
+
"@medusajs/user": "2.8.3-preview-20250520150150",
|
112
|
+
"@medusajs/workflow-engine-inmemory": "2.8.3-preview-20250520150150",
|
113
|
+
"@medusajs/workflow-engine-redis": "2.8.3-preview-20250520150150",
|
114
114
|
"@opentelemetry/api": "^1.9.0",
|
115
115
|
"boxen": "^5.0.1",
|
116
116
|
"chalk": "^4.0.0",
|
@@ -129,7 +129,7 @@
|
|
129
129
|
"zod": "3.22.4"
|
130
130
|
},
|
131
131
|
"peerDependencies": {
|
132
|
-
"@medusajs/framework": "2.8.3-preview-
|
132
|
+
"@medusajs/framework": "2.8.3-preview-20250520150150",
|
133
133
|
"@mikro-orm/core": "6.4.3",
|
134
134
|
"@mikro-orm/knex": "6.4.3",
|
135
135
|
"@mikro-orm/migrations": "6.4.3",
|
@@ -140,6 +140,7 @@
|
|
140
140
|
"@opentelemetry/sdk-trace-node": "^2.0.0",
|
141
141
|
"@swc/core": "1.5.7",
|
142
142
|
"awilix": "^8.0.1",
|
143
|
+
"posthog-node": "^4.17.1",
|
143
144
|
"react-dom": "^18.0.0",
|
144
145
|
"yalc": "1.0.0-pre.53"
|
145
146
|
},
|
@@ -159,6 +160,9 @@
|
|
159
160
|
"@swc/core": {
|
160
161
|
"optional": true
|
161
162
|
},
|
163
|
+
"posthog-node": {
|
164
|
+
"optional": true
|
165
|
+
},
|
162
166
|
"react-dom": {
|
163
167
|
"optional": true
|
164
168
|
},
|