@medusajs/medusa 2.0.5-preview-20241118031330 → 2.0.5-preview-20241118120159

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,7 +57,7 @@ const POST = async (req, res) => {
57
57
  const [customer] = await remoteQuery(queryObject);
58
58
  input.email = customer?.email;
59
59
  }
60
- const { result } = await (0, core_flows_1.createOrdersWorkflow)(req.scope).run({
60
+ const { result } = await (0, core_flows_1.createOrderWorkflow)(req.scope).run({
61
61
  input: workflowInput,
62
62
  });
63
63
  const draftOrder = await (0, helpers_1.refetchOrder)(result.id, req.scope, req.remoteQueryConfig.fields);
@@ -1 +1 @@
1
- {"version":3,"file":"route.js","sourceRoot":"","sources":["../../../../src/api/admin/draft-orders/route.ts"],"names":[],"mappings":";;;AAAA,qDAA2D;AAC3D,qDAIkC;AAOlC,uCAAwC;AAOjC,MAAM,GAAG,GAAG,KAAK,EACtB,GAA+C,EAC/C,GAA0D,EAC1D,EAAE;IACF,MAAM,WAAW,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,iCAAyB,CAAC,YAAY,CAAC,CAAA;IAE7E,MAAM,WAAW,GAAG,IAAA,mCAA2B,EAAC;QAC9C,UAAU,EAAE,OAAO;QACnB,SAAS,EAAE;YACT,OAAO,EAAE;gBACP,GAAG,GAAG,CAAC,gBAAgB;gBACvB,cAAc,EAAE,IAAI;aACrB;YACD,GAAG,GAAG,CAAC,iBAAiB,CAAC,UAAU;SACpC;QACD,MAAM,EAAE,GAAG,CAAC,iBAAiB,CAAC,MAAM;KACrC,CAAC,CAAA;IAEF,MAAM,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,MAAM,WAAW,CAAC,WAAW,CAAC,CAAA;IAEvE,GAAG,CAAC,IAAI,CAAC;QACP,YAAY;QACZ,KAAK,EAAE,QAAQ,CAAC,KAAK;QACrB,MAAM,EAAE,QAAQ,CAAC,IAAI;QACrB,KAAK,EAAE,QAAQ,CAAC,IAAI;KACrB,CAAC,CAAA;AACJ,CAAC,CAAA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IAED,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,IAAA,gCAAmB,EAAC,GAAG,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;QAC1D,KAAK,EAAE,aAAa;KACrB,CAAC,CAAA;IAEF,MAAM,UAAU,GAAG,MAAM,IAAA,sBAAY,EACnC,MAAM,CAAC,EAAE,EACT,GAAG,CAAC,KAAK,EACT,GAAG,CAAC,iBAAiB,CAAC,MAAM,CAC7B,CAAA;IAED,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAA;AACnD,CAAC,CAAA;AAjDY,QAAA,IAAI,QAiDhB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/medusa",
3
- "version": "2.0.5-preview-20241118031330",
3
+ "version": "2.0.5-preview-20241118120159",
4
4
  "description": "Building blocks for digital commerce",
5
5
  "main": "dist/index.js",
6
6
  "exports": {
@@ -43,7 +43,7 @@
43
43
  "test": "jest --silent --bail --maxWorkers=50% --forceExit"
44
44
  },
45
45
  "devDependencies": {
46
- "@medusajs/framework": "2.0.5-preview-20241118031330",
46
+ "@medusajs/framework": "2.0.5-preview-20241118120159",
47
47
  "@opentelemetry/api": "^1.9.0",
48
48
  "@opentelemetry/instrumentation": "^0.53.0",
49
49
  "@opentelemetry/instrumentation-pg": "^0.44.0",
@@ -62,49 +62,49 @@
62
62
  "dependencies": {
63
63
  "@inquirer/checkbox": "^2.3.11",
64
64
  "@inquirer/input": "^2.2.9",
65
- "@medusajs/admin-bundler": "2.0.5-preview-20241118031330",
66
- "@medusajs/api-key": "2.0.5-preview-20241118031330",
67
- "@medusajs/auth": "2.0.5-preview-20241118031330",
68
- "@medusajs/auth-emailpass": "2.0.5-preview-20241118031330",
69
- "@medusajs/auth-github": "2.0.5-preview-20241118031330",
70
- "@medusajs/auth-google": "2.0.5-preview-20241118031330",
71
- "@medusajs/cache-inmemory": "2.0.5-preview-20241118031330",
72
- "@medusajs/cache-redis": "2.0.5-preview-20241118031330",
73
- "@medusajs/cart": "2.0.5-preview-20241118031330",
74
- "@medusajs/core-flows": "2.0.5-preview-20241118031330",
75
- "@medusajs/currency": "2.0.5-preview-20241118031330",
76
- "@medusajs/customer": "2.0.5-preview-20241118031330",
77
- "@medusajs/event-bus-local": "2.0.5-preview-20241118031330",
78
- "@medusajs/event-bus-redis": "2.0.5-preview-20241118031330",
79
- "@medusajs/file": "2.0.5-preview-20241118031330",
80
- "@medusajs/file-local": "2.0.5-preview-20241118031330",
81
- "@medusajs/file-s3": "2.0.5-preview-20241118031330",
82
- "@medusajs/fulfillment": "2.0.5-preview-20241118031330",
83
- "@medusajs/fulfillment-manual": "2.0.5-preview-20241118031330",
84
- "@medusajs/index": "2.0.5-preview-20241118031330",
85
- "@medusajs/inventory": "2.0.5-preview-20241118031330",
86
- "@medusajs/link-modules": "2.0.5-preview-20241118031330",
87
- "@medusajs/locking": "2.0.5-preview-20241118031330",
88
- "@medusajs/locking-postgres": "2.0.5-preview-20241118031330",
89
- "@medusajs/locking-redis": "2.0.5-preview-20241118031330",
90
- "@medusajs/notification": "2.0.5-preview-20241118031330",
91
- "@medusajs/notification-local": "2.0.5-preview-20241118031330",
92
- "@medusajs/notification-sendgrid": "2.0.5-preview-20241118031330",
93
- "@medusajs/order": "2.0.5-preview-20241118031330",
94
- "@medusajs/payment": "2.0.5-preview-20241118031330",
95
- "@medusajs/payment-stripe": "2.0.5-preview-20241118031330",
96
- "@medusajs/pricing": "2.0.5-preview-20241118031330",
97
- "@medusajs/product": "2.0.5-preview-20241118031330",
98
- "@medusajs/promotion": "2.0.5-preview-20241118031330",
99
- "@medusajs/region": "2.0.5-preview-20241118031330",
100
- "@medusajs/sales-channel": "2.0.5-preview-20241118031330",
101
- "@medusajs/stock-location": "2.0.5-preview-20241118031330",
102
- "@medusajs/store": "2.0.5-preview-20241118031330",
103
- "@medusajs/tax": "2.0.5-preview-20241118031330",
104
- "@medusajs/telemetry": "2.0.5-preview-20241118031330",
105
- "@medusajs/user": "2.0.5-preview-20241118031330",
106
- "@medusajs/workflow-engine-inmemory": "2.0.5-preview-20241118031330",
107
- "@medusajs/workflow-engine-redis": "2.0.5-preview-20241118031330",
65
+ "@medusajs/admin-bundler": "2.0.5-preview-20241118120159",
66
+ "@medusajs/api-key": "2.0.5-preview-20241118120159",
67
+ "@medusajs/auth": "2.0.5-preview-20241118120159",
68
+ "@medusajs/auth-emailpass": "2.0.5-preview-20241118120159",
69
+ "@medusajs/auth-github": "2.0.5-preview-20241118120159",
70
+ "@medusajs/auth-google": "2.0.5-preview-20241118120159",
71
+ "@medusajs/cache-inmemory": "2.0.5-preview-20241118120159",
72
+ "@medusajs/cache-redis": "2.0.5-preview-20241118120159",
73
+ "@medusajs/cart": "2.0.5-preview-20241118120159",
74
+ "@medusajs/core-flows": "2.0.5-preview-20241118120159",
75
+ "@medusajs/currency": "2.0.5-preview-20241118120159",
76
+ "@medusajs/customer": "2.0.5-preview-20241118120159",
77
+ "@medusajs/event-bus-local": "2.0.5-preview-20241118120159",
78
+ "@medusajs/event-bus-redis": "2.0.5-preview-20241118120159",
79
+ "@medusajs/file": "2.0.5-preview-20241118120159",
80
+ "@medusajs/file-local": "2.0.5-preview-20241118120159",
81
+ "@medusajs/file-s3": "2.0.5-preview-20241118120159",
82
+ "@medusajs/fulfillment": "2.0.5-preview-20241118120159",
83
+ "@medusajs/fulfillment-manual": "2.0.5-preview-20241118120159",
84
+ "@medusajs/index": "2.0.5-preview-20241118120159",
85
+ "@medusajs/inventory": "2.0.5-preview-20241118120159",
86
+ "@medusajs/link-modules": "2.0.5-preview-20241118120159",
87
+ "@medusajs/locking": "2.0.5-preview-20241118120159",
88
+ "@medusajs/locking-postgres": "2.0.5-preview-20241118120159",
89
+ "@medusajs/locking-redis": "2.0.5-preview-20241118120159",
90
+ "@medusajs/notification": "2.0.5-preview-20241118120159",
91
+ "@medusajs/notification-local": "2.0.5-preview-20241118120159",
92
+ "@medusajs/notification-sendgrid": "2.0.5-preview-20241118120159",
93
+ "@medusajs/order": "2.0.5-preview-20241118120159",
94
+ "@medusajs/payment": "2.0.5-preview-20241118120159",
95
+ "@medusajs/payment-stripe": "2.0.5-preview-20241118120159",
96
+ "@medusajs/pricing": "2.0.5-preview-20241118120159",
97
+ "@medusajs/product": "2.0.5-preview-20241118120159",
98
+ "@medusajs/promotion": "2.0.5-preview-20241118120159",
99
+ "@medusajs/region": "2.0.5-preview-20241118120159",
100
+ "@medusajs/sales-channel": "2.0.5-preview-20241118120159",
101
+ "@medusajs/stock-location": "2.0.5-preview-20241118120159",
102
+ "@medusajs/store": "2.0.5-preview-20241118120159",
103
+ "@medusajs/tax": "2.0.5-preview-20241118120159",
104
+ "@medusajs/telemetry": "2.0.5-preview-20241118120159",
105
+ "@medusajs/user": "2.0.5-preview-20241118120159",
106
+ "@medusajs/workflow-engine-inmemory": "2.0.5-preview-20241118120159",
107
+ "@medusajs/workflow-engine-redis": "2.0.5-preview-20241118120159",
108
108
  "@swc/core": "1.5.7",
109
109
  "@swc/helpers": "^0.5.11",
110
110
  "@types/express": "^4.17.17",
@@ -125,7 +125,7 @@
125
125
  "zod": "3.22.4"
126
126
  },
127
127
  "peerDependencies": {
128
- "@medusajs/framework": "2.0.5-preview-20241118031330",
128
+ "@medusajs/framework": "2.0.5-preview-20241118120159",
129
129
  "@mikro-orm/core": "5.9.7",
130
130
  "@mikro-orm/knex": "5.9.7",
131
131
  "@mikro-orm/migrations": "5.9.7",