@medusajs/types 1.12.0-snapshot-20240516152256 → 1.12.0-snapshot-20240520151134

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. package/dist/cart/common.d.ts +0 -107
  2. package/dist/cart/common.d.ts.map +1 -1
  3. package/dist/common/common.d.ts +0 -160
  4. package/dist/common/common.d.ts.map +1 -1
  5. package/dist/common/config-module.d.ts +267 -186
  6. package/dist/common/config-module.d.ts.map +1 -1
  7. package/dist/fulfillment/mutations/shipping-option.d.ts +12 -0
  8. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  9. package/dist/http/api-key/admin/api-key.d.ts +3 -12
  10. package/dist/http/api-key/admin/api-key.d.ts.map +1 -1
  11. package/dist/http/campaign/admin/campaign.d.ts +2 -11
  12. package/dist/http/campaign/admin/campaign.d.ts.map +1 -1
  13. package/dist/http/cart/common.d.ts +636 -0
  14. package/dist/http/cart/common.d.ts.map +1 -0
  15. package/dist/http/{common/deleted-response.js → cart/common.js} +1 -1
  16. package/dist/http/cart/common.js.map +1 -0
  17. package/dist/http/cart/index.d.ts +2 -0
  18. package/dist/http/cart/index.d.ts.map +1 -0
  19. package/dist/http/cart/index.js +18 -0
  20. package/dist/http/cart/index.js.map +1 -0
  21. package/dist/http/cart/store.d.ts +45 -0
  22. package/dist/http/cart/store.d.ts.map +1 -0
  23. package/dist/http/{order/admin/index.js → cart/store.js} +1 -1
  24. package/dist/http/cart/store.js.map +1 -0
  25. package/dist/http/collection/admin.d.ts +6 -0
  26. package/dist/http/collection/admin.d.ts.map +1 -0
  27. package/dist/http/{common/paginated-response.js → collection/admin.js} +1 -1
  28. package/dist/http/collection/admin.js.map +1 -0
  29. package/dist/http/collection/common.d.ts +19 -0
  30. package/dist/http/collection/common.d.ts.map +1 -0
  31. package/dist/http/collection/common.js +3 -0
  32. package/dist/http/collection/common.js.map +1 -0
  33. package/dist/http/collection/index.d.ts +3 -0
  34. package/dist/http/collection/index.d.ts.map +1 -0
  35. package/dist/http/collection/index.js +19 -0
  36. package/dist/http/collection/index.js.map +1 -0
  37. package/dist/http/collection/store.d.ts +6 -0
  38. package/dist/http/collection/store.d.ts.map +1 -0
  39. package/dist/http/collection/store.js +3 -0
  40. package/dist/http/collection/store.js.map +1 -0
  41. package/dist/http/common/index.d.ts +2 -2
  42. package/dist/http/common/index.d.ts.map +1 -1
  43. package/dist/http/common/index.js +2 -2
  44. package/dist/http/common/index.js.map +1 -1
  45. package/dist/http/common/request.d.ts +9 -0
  46. package/dist/http/common/request.d.ts.map +1 -0
  47. package/dist/http/common/request.js +3 -0
  48. package/dist/http/common/request.js.map +1 -0
  49. package/dist/http/common/response.d.ts +24 -0
  50. package/dist/http/common/response.d.ts.map +1 -0
  51. package/dist/http/common/response.js +3 -0
  52. package/dist/http/common/response.js.map +1 -0
  53. package/dist/http/customer/admin/customer.d.ts +5 -26
  54. package/dist/http/customer/admin/customer.d.ts.map +1 -1
  55. package/dist/http/fulfillment/admin/fulfillment-address.d.ts +0 -3
  56. package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +1 -1
  57. package/dist/http/fulfillment/admin/fulfillment-item.d.ts +0 -3
  58. package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +1 -1
  59. package/dist/http/fulfillment/admin/fulfillment-label.d.ts +0 -3
  60. package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +1 -1
  61. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +0 -3
  62. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +1 -1
  63. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +0 -6
  64. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +1 -1
  65. package/dist/http/fulfillment/admin/fulfillment.d.ts +1 -7
  66. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +1 -1
  67. package/dist/http/fulfillment/admin/geo-zone.d.ts +0 -3
  68. package/dist/http/fulfillment/admin/geo-zone.d.ts.map +1 -1
  69. package/dist/http/fulfillment/admin/service-zone.d.ts +0 -9
  70. package/dist/http/fulfillment/admin/service-zone.d.ts.map +1 -1
  71. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +0 -3
  72. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +1 -1
  73. package/dist/http/fulfillment/admin/shipping-option-type.d.ts +0 -3
  74. package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +1 -1
  75. package/dist/http/fulfillment/admin/shipping-option.d.ts +2 -14
  76. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +1 -1
  77. package/dist/http/fulfillment/admin/shipping-profile.d.ts +3 -9
  78. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +1 -1
  79. package/dist/http/index.d.ts +6 -0
  80. package/dist/http/index.d.ts.map +1 -1
  81. package/dist/http/index.js +6 -0
  82. package/dist/http/index.js.map +1 -1
  83. package/dist/http/inventory/inventory-level.d.ts +2 -8
  84. package/dist/http/inventory/inventory-level.d.ts.map +1 -1
  85. package/dist/http/inventory/inventory.d.ts +2 -8
  86. package/dist/http/inventory/inventory.d.ts.map +1 -1
  87. package/dist/http/order/admin.d.ts +4 -0
  88. package/dist/http/order/admin.d.ts.map +1 -0
  89. package/dist/http/order/admin.js +3 -0
  90. package/dist/http/order/admin.js.map +1 -0
  91. package/dist/http/order/{admin/index.d.ts → common.d.ts} +30 -96
  92. package/dist/http/order/common.d.ts.map +1 -0
  93. package/dist/http/order/common.js +3 -0
  94. package/dist/http/order/common.js.map +1 -0
  95. package/dist/http/order/index.d.ts +1 -0
  96. package/dist/http/order/index.d.ts.map +1 -1
  97. package/dist/http/order/index.js +1 -0
  98. package/dist/http/order/index.js.map +1 -1
  99. package/dist/http/order/store.d.ts +4 -0
  100. package/dist/http/order/store.d.ts.map +1 -0
  101. package/dist/http/order/store.js +3 -0
  102. package/dist/http/order/store.js.map +1 -0
  103. package/dist/http/payment/admin.d.ts +16 -0
  104. package/dist/http/payment/admin.d.ts.map +1 -0
  105. package/dist/http/payment/admin.js +3 -0
  106. package/dist/http/payment/admin.js.map +1 -0
  107. package/dist/http/payment/common.d.ts +339 -0
  108. package/dist/http/payment/common.d.ts.map +1 -0
  109. package/dist/http/payment/common.js +3 -0
  110. package/dist/http/payment/common.js.map +1 -0
  111. package/dist/http/payment/index.d.ts +3 -0
  112. package/dist/http/payment/index.d.ts.map +1 -0
  113. package/dist/http/payment/index.js +19 -0
  114. package/dist/http/payment/index.js.map +1 -0
  115. package/dist/http/payment/store.d.ts +14 -0
  116. package/dist/http/payment/store.d.ts.map +1 -0
  117. package/dist/http/payment/store.js +3 -0
  118. package/dist/http/payment/store.js.map +1 -0
  119. package/dist/http/product/admin.d.ts +33 -0
  120. package/dist/http/product/admin.d.ts.map +1 -0
  121. package/dist/http/product/admin.js +3 -0
  122. package/dist/http/product/admin.js.map +1 -0
  123. package/dist/http/product/common.d.ts +176 -0
  124. package/dist/http/product/common.d.ts.map +1 -0
  125. package/dist/http/product/common.js +3 -0
  126. package/dist/http/product/common.js.map +1 -0
  127. package/dist/http/product/index.d.ts +3 -0
  128. package/dist/http/product/index.d.ts.map +1 -0
  129. package/dist/http/product/index.js +19 -0
  130. package/dist/http/product/index.js.map +1 -0
  131. package/dist/http/product/store.d.ts +30 -0
  132. package/dist/http/product/store.d.ts.map +1 -0
  133. package/dist/http/product/store.js +3 -0
  134. package/dist/http/product/store.js.map +1 -0
  135. package/dist/http/product-category/admin.d.ts +3 -9
  136. package/dist/http/product-category/admin.d.ts.map +1 -1
  137. package/dist/http/product-category/common.d.ts +0 -3
  138. package/dist/http/product-category/common.d.ts.map +1 -1
  139. package/dist/http/product-category/store.d.ts +3 -9
  140. package/dist/http/product-category/store.d.ts.map +1 -1
  141. package/dist/http/promotion/admin/promotion-rule.d.ts +0 -6
  142. package/dist/http/promotion/admin/promotion-rule.d.ts.map +1 -1
  143. package/dist/http/promotion/admin/rule-attribute-options.d.ts +0 -6
  144. package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
  145. package/dist/http/promotion/admin/rule-operator-options.d.ts +0 -6
  146. package/dist/http/promotion/admin/rule-operator-options.d.ts.map +1 -1
  147. package/dist/http/region/admin.d.ts +26 -0
  148. package/dist/http/region/admin.d.ts.map +1 -0
  149. package/dist/http/region/admin.js +3 -0
  150. package/dist/http/region/admin.js.map +1 -0
  151. package/dist/http/region/common.d.ts +39 -0
  152. package/dist/http/region/common.d.ts.map +1 -0
  153. package/dist/http/region/common.js +3 -0
  154. package/dist/http/region/common.js.map +1 -0
  155. package/dist/http/region/index.d.ts +3 -0
  156. package/dist/http/region/index.d.ts.map +1 -0
  157. package/dist/http/region/index.js +19 -0
  158. package/dist/http/region/index.js.map +1 -0
  159. package/dist/http/region/store.d.ts +10 -0
  160. package/dist/http/region/store.d.ts.map +1 -0
  161. package/dist/http/region/store.js +3 -0
  162. package/dist/http/region/store.js.map +1 -0
  163. package/dist/http/reservation/admin/reservation.d.ts +3 -12
  164. package/dist/http/reservation/admin/reservation.d.ts.map +1 -1
  165. package/dist/http/sales-channel/admin/sales-channel.d.ts +2 -11
  166. package/dist/http/sales-channel/admin/sales-channel.d.ts.map +1 -1
  167. package/dist/http/tax/admin/tax-rates.d.ts +3 -12
  168. package/dist/http/tax/admin/tax-rates.d.ts.map +1 -1
  169. package/dist/http/tax/admin/tax-regions.d.ts +3 -12
  170. package/dist/http/tax/admin/tax-regions.d.ts.map +1 -1
  171. package/dist/order/common.d.ts +6 -0
  172. package/dist/order/common.d.ts.map +1 -1
  173. package/dist/order/service.d.ts +4 -0
  174. package/dist/order/service.d.ts.map +1 -1
  175. package/dist/workflow/fulfillment/create-fulfillment.d.ts +1 -0
  176. package/dist/workflow/fulfillment/create-fulfillment.d.ts.map +1 -1
  177. package/package.json +1 -1
  178. package/dist/http/common/deleted-response.d.ts +0 -18
  179. package/dist/http/common/deleted-response.d.ts.map +0 -1
  180. package/dist/http/common/deleted-response.js.map +0 -1
  181. package/dist/http/common/paginated-response.d.ts +0 -6
  182. package/dist/http/common/paginated-response.d.ts.map +0 -1
  183. package/dist/http/common/paginated-response.js.map +0 -1
  184. package/dist/http/order/admin/index.d.ts.map +0 -1
  185. package/dist/http/order/admin/index.js.map +0 -1
@@ -28,6 +28,10 @@ export type AdminOptions = {
28
28
  * The default value is `./build`.
29
29
  */
30
30
  outDir?: string;
31
+ /**
32
+ * The URL of your Medusa server. Defaults to an empty string, which means requests will hit the same server that serves the dashboard.
33
+ */
34
+ backendUrl?: string;
31
35
  /**
32
36
  * Configure the Vite configuration for the admin dashboard. This function receives the default Vite configuration
33
37
  * and returns the modified configuration. The default value is `undefined`.
@@ -61,7 +65,7 @@ type SessionOptions = {
61
65
  */
62
66
  saveUninitialized?: boolean;
63
67
  /**
64
- * The secret to sign the session ID cookie. By default, the value of `cookie_secret` is used.
68
+ * The secret to sign the session ID cookie. By default, the value of `http.cookieSecret` is used.
65
69
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#secret) for details.
66
70
  */
67
71
  secret?: string;
@@ -103,191 +107,6 @@ export type HttpCompressionOptions = {
103
107
  * Essential configurations related to the Medusa backend, such as database and CORS configurations.
104
108
  */
105
109
  export type ProjectConfigOptions = {
106
- /**
107
- * The Medusa backend’s API Routes are protected by Cross-Origin Resource Sharing (CORS). So, only allowed URLs or URLs matching a specified pattern can send requests to the backend’s API Routes.
108
- *
109
- * `store_cors` is a string used to specify the accepted URLs or patterns for store API Routes. It can either be one accepted origin, or a comma-separated list of accepted origins.
110
- *
111
- * Every origin in that list must either be:
112
- *
113
- * 1. A URL. For example, `http://localhost:8000`. The URL must not end with a backslash;
114
- * 2. Or a regular expression pattern that can match more than one origin. For example, `.example.com`. The regex pattern that the backend tests for is `^([\/~@;%#'])(.*?)\1([gimsuy]*)$`.
115
- *
116
- * @example
117
- * Some example values of common use cases:
118
- *
119
- * ```bash
120
- * # Allow different ports locally starting with 800
121
- * STORE_CORS=/http:\/\/localhost:800\d+$/
122
- *
123
- * # Allow any origin ending with vercel.app. For example, storefront.vercel.app
124
- * STORE_CORS=/vercel\.app$/
125
- *
126
- * # Allow all HTTP requests
127
- * STORE_CORS=/http:\/\/.+/
128
- * ```
129
- *
130
- * Then, set the configuration in `medusa-config.js`:
131
- *
132
- * ```js title="medusa-config.js"
133
- * module.exports = {
134
- * projectConfig: {
135
- * store_cors: process.env.STORE_CORS,
136
- * // ...
137
- * },
138
- * // ...
139
- * }
140
- * ```
141
- *
142
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
143
- *
144
- * ```js title="medusa-config.js"
145
- * module.exports = {
146
- * projectConfig: {
147
- * store_cors: "/vercel\\.app$/",
148
- * // ...
149
- * },
150
- * // ...
151
- * }
152
- * ```
153
- */
154
- store_cors?: string;
155
- /**
156
- * The Medusa backend’s API Routes are protected by Cross-Origin Resource Sharing (CORS). So, only allowed URLs or URLs matching a specified pattern can send requests to the backend’s API Routes.
157
- *
158
- * `admin_cors` is a string used to specify the accepted URLs or patterns for admin API Routes. It can either be one accepted origin, or a comma-separated list of accepted origins.
159
- *
160
- * Every origin in that list must either be:
161
- *
162
- * 1. A URL. For example, `http://localhost:7001`. The URL must not end with a backslash;
163
- * 2. Or a regular expression pattern that can match more than one origin. For example, `.example.com`. The regex pattern that the backend tests for is `^([\/~@;%#'])(.*?)\1([gimsuy]*)$`.
164
- *
165
- * @example
166
- * Some example values of common use cases:
167
- *
168
- * ```bash
169
- * # Allow different ports locally starting with 700
170
- * ADMIN_CORS=/http:\/\/localhost:700\d+$/
171
- *
172
- * # Allow any origin ending with vercel.app. For example, admin.vercel.app
173
- * ADMIN_CORS=/vercel\.app$/
174
- *
175
- * # Allow all HTTP requests
176
- * ADMIN_CORS=/http:\/\/.+/
177
- * ```
178
- *
179
- * Then, set the configuration in `medusa-config.js`:
180
- *
181
- * ```js title="medusa-config.js"
182
- * module.exports = {
183
- * projectConfig: {
184
- * admin_cors: process.env.ADMIN_CORS,
185
- * // ...
186
- * },
187
- * // ...
188
- * }
189
- * ```
190
- *
191
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
192
- *
193
- * ```js title="medusa-config.js"
194
- * module.exports = {
195
- * projectConfig: {
196
- * admin_cors: "/http:\\/\\/localhost:700\\d+$/",
197
- * // ...
198
- * },
199
- * // ...
200
- * }
201
- * ```
202
- */
203
- admin_cors?: string;
204
- /**
205
- * The Medusa backend’s API Routes are protected by Cross-Origin Resource Sharing (CORS). So, only allowed URLs or URLs matching a specified pattern can send requests to the backend’s API Routes.
206
- *
207
- * `auth_cors` is a string used to specify the accepted URLs or patterns for API Routes starting with `/auth`. It can either be one accepted origin, or a comma-separated list of accepted origins.
208
- *
209
- * Every origin in that list must either be:
210
- *
211
- * 1. A URL. For example, `http://localhost:7001`. The URL must not end with a backslash;
212
- * 2. Or a regular expression pattern that can match more than one origin. For example, `.example.com`. The regex pattern that the backend tests for is `^([\/~@;%#'])(.*?)\1([gimsuy]*)$`.
213
- *
214
- * @example
215
- * Some example values of common use cases:
216
- *
217
- * ```bash
218
- * # Allow different ports locally starting with 700
219
- * AUTH_CORS=/http:\/\/localhost:700\d+$/
220
- *
221
- * # Allow any origin ending with vercel.app. For example, admin.vercel.app
222
- * AUTH_CORS=/vercel\.app$/
223
- *
224
- * # Allow all HTTP requests
225
- * AUTH_CORS=/http:\/\/.+/
226
- * ```
227
- *
228
- * Then, set the configuration in `medusa-config.js`:
229
- *
230
- * ```js title="medusa-config.js"
231
- * module.exports = {
232
- * projectConfig: {
233
- * auth_cors: process.env.AUTH_CORS,
234
- * // ...
235
- * },
236
- * // ...
237
- * }
238
- * ```
239
- *
240
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
241
- *
242
- * ```js title="medusa-config.js"
243
- * module.exports = {
244
- * projectConfig: {
245
- * auth_cors: "/http:\\/\\/localhost:700\\d+$/",
246
- * // ...
247
- * },
248
- * // ...
249
- * }
250
- * ```
251
- */
252
- auth_cors?: string;
253
- /**
254
- * A random string used to create cookie tokens. Although this configuration option is not required, it’s highly recommended to set it for better security.
255
- *
256
- * In a development environment, if this option is not set, the default secret is `supersecret` However, in production, if this configuration is not set, an error is thrown and
257
- * the backend crashes.
258
- *
259
- * @example
260
- * ```js title="medusa-config.js"
261
- * module.exports = {
262
- * projectConfig: {
263
- * cookie_secret: process.env.COOKIE_SECRET ||
264
- * "supersecret",
265
- * // ...
266
- * },
267
- * // ...
268
- * }
269
- * ```
270
- */
271
- cookie_secret?: string;
272
- /**
273
- * A random string used to create authentication tokens. Although this configuration option is not required, it’s highly recommended to set it for better security.
274
- *
275
- * In a development environment, if this option is not set the default secret is `supersecret` However, in production, if this configuration is not set an error, an
276
- * error is thrown and the backend crashes.
277
- *
278
- * @example
279
- * ```js title="medusa-config.js"
280
- * module.exports = {
281
- * projectConfig: {
282
- * jwt_secret: process.env.JWT_SECRET ||
283
- * "supersecret",
284
- * // ...
285
- * },
286
- * // ...
287
- * }
288
- * ```
289
- */
290
- jwt_secret?: string;
291
110
  /**
292
111
  * The name of the database to connect to. If specified in `database_url`, then it’s not required to include it.
293
112
  *
@@ -542,6 +361,7 @@ export type ProjectConfigOptions = {
542
361
  */
543
362
  session_options?: SessionOptions;
544
363
  /**
364
+ * @deprecated - use `http.compression` instead
545
365
  * Configure HTTP compression from the application layer. If you have access to the HTTP server, the recommended approach would be to enable it there.
546
366
  * However, some platforms don't offer access to the HTTP layer and in those cases, this is a good alternative.
547
367
  *
@@ -602,6 +422,267 @@ export type ProjectConfigOptions = {
602
422
  * ```
603
423
  */
604
424
  worker_mode?: "shared" | "worker" | "server";
425
+ /**
426
+ * Configure the application's http-specific settings
427
+ *
428
+ * @example
429
+ * ```js title="medusa-config.js"
430
+ * module.exports = {
431
+ * projectConfig: {
432
+ * http: {
433
+ * cookieSecret: "some-super-secret",
434
+ * compression: { ... },
435
+ * }
436
+ * // ...
437
+ * },
438
+ * // ...
439
+ * }
440
+ * ```
441
+ */
442
+ http: {
443
+ /**
444
+ * A random string used to create authentication tokens in the http layer. Although this configuration option is not required, it’s highly recommended to set it for better security.
445
+ *
446
+ * In a development environment, if this option is not set the default secret is `supersecret` However, in production, if this configuration is not set an error, an
447
+ * error is thrown and the backend crashes.
448
+ *
449
+ * @example
450
+ * ```js title="medusa-config.js"
451
+ * module.exports = {
452
+ * projectConfig: {
453
+ * http: {
454
+ * cookieSecret: "supersecret"
455
+ * }
456
+ * },
457
+ * // ...
458
+ * }
459
+ * ```
460
+ */
461
+ jwtSecret?: string;
462
+ /**
463
+ * The expiration time for the JWT token. If not provided, the default value is `24h`.
464
+ *
465
+ * @example
466
+ * ```js title="medusa-config.js"
467
+ * module.exports = {
468
+ * projectConfig: {
469
+ * http: {
470
+ * jwtExpiresIn: "2d"
471
+ * }
472
+ * },
473
+ * // ...
474
+ * }
475
+ * ```
476
+ */
477
+ jwtExpiresIn?: string;
478
+ /**
479
+ * A random string used to create cookie tokens in the http layer. Although this configuration option is not required, it’s highly recommended to set it for better security.
480
+ *
481
+ * In a development environment, if this option is not set, the default secret is `supersecret` However, in production, if this configuration is not set, an error is thrown and
482
+ * the backend crashes.
483
+ *
484
+ * @example
485
+ * ```js title="medusa-config.js"
486
+ * module.exports = {
487
+ * projectConfig: {
488
+ * http: {
489
+ * cookieSecret: "supersecret"
490
+ * }
491
+ * // ...
492
+ * },
493
+ * // ...
494
+ * }
495
+ * ```
496
+ */
497
+ cookieSecret?: string;
498
+ /**
499
+ * The Medusa backend’s API Routes are protected by Cross-Origin Resource Sharing (CORS). So, only allowed URLs or URLs matching a specified pattern can send requests to the backend’s API Routes.
500
+ *
501
+ * `cors` is a string used to specify the accepted URLs or patterns for API Routes starting with `/auth`. It can either be one accepted origin, or a comma-separated list of accepted origins.
502
+ *
503
+ * Every origin in that list must either be:
504
+ *
505
+ * 1. A URL. For example, `http://localhost:7001`. The URL must not end with a backslash;
506
+ * 2. Or a regular expression pattern that can match more than one origin. For example, `.example.com`. The regex pattern that the backend tests for is `^([\/~@;%#'])(.*?)\1([gimsuy]*)$`.
507
+ *
508
+ * @example
509
+ * Some example values of common use cases:
510
+ *
511
+ * ```bash
512
+ * # Allow different ports locally starting with 700
513
+ * AUTH_CORS=/http:\/\/localhost:700\d+$/
514
+ *
515
+ * # Allow any origin ending with vercel.app. For example, admin.vercel.app
516
+ * AUTH_CORS=/vercel\.app$/
517
+ *
518
+ * # Allow all HTTP requests
519
+ * AUTH_CORS=/http:\/\/.+/
520
+ * ```
521
+ *
522
+ * Then, set the configuration in `medusa-config.js`:
523
+ *
524
+ * ```js title="medusa-config.js"
525
+ * module.exports = {
526
+ * projectConfig: {
527
+ * http: {
528
+ * authCors: process.env.AUTH_CORS
529
+ * }
530
+ * // ...
531
+ * },
532
+ * // ...
533
+ * }
534
+ * ```
535
+ *
536
+ * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
537
+ *
538
+ * ```js title="medusa-config.js"
539
+ * module.exports = {
540
+ * projectConfig: {
541
+ * http: {
542
+ * authCors: "/http:\\/\\/localhost:700\\d+$/",
543
+ * }
544
+ * // ...
545
+ * },
546
+ * // ...
547
+ * }
548
+ * ```
549
+ */
550
+ authCors: string;
551
+ /**
552
+ *
553
+ * Configure HTTP compression from the application layer. If you have access to the HTTP server, the recommended approach would be to enable it there.
554
+ * However, some platforms don't offer access to the HTTP layer and in those cases, this is a good alternative.
555
+ *
556
+ * Its value is an object that has the following properties:
557
+ *
558
+ * If you enable HTTP compression and you want to disable it for specific API Routes, you can pass in the request header `"x-no-compression": true`.
559
+ *
560
+ * @example
561
+ * ```js title="medusa-config.js"
562
+ * module.exports = {
563
+ * projectConfig: {
564
+ * http: {
565
+ * compression: {
566
+ * enabled: true,
567
+ * level: 6,
568
+ * memLevel: 8,
569
+ * threshold: 1024,
570
+ * }
571
+ * },
572
+ * // ...
573
+ * },
574
+ * // ...
575
+ * }
576
+ * ```
577
+ */
578
+ compression?: HttpCompressionOptions;
579
+ /**
580
+ * The Medusa backend’s API Routes are protected by Cross-Origin Resource Sharing (CORS). So, only allowed URLs or URLs matching a specified pattern can send requests to the backend’s API Routes.
581
+ *
582
+ * `store_cors` is a string used to specify the accepted URLs or patterns for store API Routes. It can either be one accepted origin, or a comma-separated list of accepted origins.
583
+ *
584
+ * Every origin in that list must either be:
585
+ *
586
+ * 1. A URL. For example, `http://localhost:8000`. The URL must not end with a backslash;
587
+ * 2. Or a regular expression pattern that can match more than one origin. For example, `.example.com`. The regex pattern that the backend tests for is `^([\/~@;%#'])(.*?)\1([gimsuy]*)$`.
588
+ *
589
+ * @example
590
+ * Some example values of common use cases:
591
+ *
592
+ * ```bash
593
+ * # Allow different ports locally starting with 800
594
+ * STORE_CORS=/http:\/\/localhost:800\d+$/
595
+ *
596
+ * # Allow any origin ending with vercel.app. For example, storefront.vercel.app
597
+ * STORE_CORS=/vercel\.app$/
598
+ *
599
+ * # Allow all HTTP requests
600
+ * STORE_CORS=/http:\/\/.+/
601
+ * ```
602
+ *
603
+ * Then, set the configuration in `medusa-config.js`:
604
+ *
605
+ * ```js title="medusa-config.js"
606
+ * module.exports = {
607
+ * projectConfig: {
608
+ * http: {
609
+ * storeCors: process.env.STORE_CORS,
610
+ * }
611
+ * // ...
612
+ * },
613
+ * // ...
614
+ * }
615
+ * ```
616
+ *
617
+ * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
618
+ *
619
+ * ```js title="medusa-config.js"
620
+ * module.exports = {
621
+ * projectConfig: {
622
+ * http: {
623
+ * storeCors: "/vercel\\.app$/",
624
+ * }
625
+ * // ...
626
+ * },
627
+ * // ...
628
+ * }
629
+ * ```
630
+ */
631
+ storeCors: string;
632
+ /**
633
+ * The Medusa backend’s API Routes are protected by Cross-Origin Resource Sharing (CORS). So, only allowed URLs or URLs matching a specified pattern can send requests to the backend’s API Routes.
634
+ *
635
+ * `admin_cors` is a string used to specify the accepted URLs or patterns for admin API Routes. It can either be one accepted origin, or a comma-separated list of accepted origins.
636
+ *
637
+ * Every origin in that list must either be:
638
+ *
639
+ * 1. A URL. For example, `http://localhost:7001`. The URL must not end with a backslash;
640
+ * 2. Or a regular expression pattern that can match more than one origin. For example, `.example.com`. The regex pattern that the backend tests for is `^([\/~@;%#'])(.*?)\1([gimsuy]*)$`.
641
+ *
642
+ * @example
643
+ * Some example values of common use cases:
644
+ *
645
+ * ```bash
646
+ * # Allow different ports locally starting with 700
647
+ * ADMIN_CORS=/http:\/\/localhost:700\d+$/
648
+ *
649
+ * # Allow any origin ending with vercel.app. For example, admin.vercel.app
650
+ * ADMIN_CORS=/vercel\.app$/
651
+ *
652
+ * # Allow all HTTP requests
653
+ * ADMIN_CORS=/http:\/\/.+/
654
+ * ```
655
+ *
656
+ * Then, set the configuration in `medusa-config.js`:
657
+ *
658
+ * ```js title="medusa-config.js"
659
+ * module.exports = {
660
+ * projectConfig: {
661
+ * http: {
662
+ * adminCors: process.env.ADMIN_CORS,
663
+ * }
664
+ * // ...
665
+ * },
666
+ * // ...
667
+ * }
668
+ * ```
669
+ *
670
+ * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
671
+ *
672
+ * ```js title="medusa-config.js"
673
+ * module.exports = {
674
+ * projectConfig: {
675
+ * http: {
676
+ * adminCors: process.env.ADMIN_CORS,
677
+ * }
678
+ * // ...
679
+ * },
680
+ * // ...
681
+ * }
682
+ * ```
683
+ */
684
+ adminCors: string;
685
+ };
605
686
  };
606
687
  /**
607
688
  * @interface
@@ -1 +1 @@
1
- {"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MA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AAyB,CAAC,CACzE,CAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAAC,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAA;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAChC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA"}
@@ -100,6 +100,18 @@ export interface UpdateShippingOptionDTO {
100
100
  */
101
101
  id: string;
102
102
  })[];
103
+ /**
104
+ * The shipping option pricing
105
+ */
106
+ prices: ({
107
+ currency_code: string;
108
+ amount: number;
109
+ id?: string;
110
+ } | {
111
+ region_id: string;
112
+ amount: number;
113
+ id?: string;
114
+ })[];
103
115
  }
104
116
  /**
105
117
  * A shipping option to be created or updated.
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,UAAU,EAAE,uBAAuB,CAAA;IAEnC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IAEvB;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAA;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IAEnB;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,CAAA;IAE7D;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAErC;;OAEG;IACH,KAAK,CAAC,EAAE,IAAI,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,EAAE,CAAA;IAEjE;;OAEG;IACH,MAAM,EAAE,CACJ;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,GACzC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CACxC,EAAE,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,UAAU,CAAC,EAAE,uBAAuB,CAAA;IAEpC;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,IAAI,EACA,IAAI,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,GACvD;QACE;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;IAEL;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAErC;;OAEG;IACH,KAAK,CAAC,EAAE,CACJ,IAAI,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,GACvD;QACE;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;KACX,CACJ,EAAE,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;CAAG"}
1
+ {"version":3,"file":"shipping-option.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option.ts"],"names":[],"m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,IAAI,EACA,IAAI,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,GACvD;QACE;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;KACX,CAAA;IAEL;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IAErC;;OAEG;IACH,KAAK,CAAC,EAAE,CACJ,IAAI,CAAC,2BAA2B,EAAE,oBAAoB,CAAC,GACvD;QACE;;WAEG;QACH,EAAE,EAAE,MAAM,CAAA;KACX,CACJ,EAAE,CAAA;IAEH;;OAEG;IACH,MAAM,EAAE,CACJ;QAAE,aAAa,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,GACtD;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CACrD,EAAE,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;CAAG"}
@@ -1,8 +1,5 @@
1
1
  import { ApiKeyType } from "../../../api-key";
2
- import { PaginatedResponse } from "../../../common";
3
- /**
4
- * @experimental
5
- */
2
+ import { PaginatedResponse } from "../../common";
6
3
  interface ApiKeyResponse {
7
4
  id: string;
8
5
  token: string;
@@ -15,17 +12,11 @@ interface ApiKeyResponse {
15
12
  revoked_by: string | null;
16
13
  revoked_at: Date | null;
17
14
  }
18
- /**
19
- * @experimental
20
- */
21
15
  export interface AdminApiKeyResponse {
22
16
  api_key: ApiKeyResponse;
23
17
  }
24
- /**
25
- * @experimental
26
- */
27
- export interface AdminApiKeyListResponse extends PaginatedResponse {
18
+ export type AdminApiKeyListResponse = PaginatedResponse<{
28
19
  api_keys: ApiKeyResponse[];
29
- }
20
+ }>;
30
21
  export {};
31
22
  //# sourceMappingURL=api-key.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../../src/http/api-key/admin/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAEnD;;GAEG;AACH,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC3B"}
1
+ {"version":3,"file":"api-key.d.ts","sourceRoot":"","sources":["../../../../src/http/api-key/admin/api-key.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD,UAAU,cAAc;IACtB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,UAAU,CAAA;IAChB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,IAAI,CAAA;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,EAAE,IAAI,GAAG,IAAI,CAAA;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,cAAc,CAAA;CACxB;AAED,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,CAAC;IACtD,QAAQ,EAAE,cAAc,EAAE,CAAA;CAC3B,CAAC,CAAA"}
@@ -1,8 +1,5 @@
1
1
  import { CampaignBudgetTypeValues } from "../../../promotion";
2
2
  import { PaginatedResponse } from "../../common";
3
- /**
4
- * @experimental
5
- */
6
3
  export interface CampaignResponse {
7
4
  id: string;
8
5
  name: string;
@@ -18,15 +15,9 @@ export interface CampaignResponse {
18
15
  used: number;
19
16
  };
20
17
  }
21
- /**
22
- * @experimental
23
- */
24
- export interface AdminCampaignListResponse extends PaginatedResponse {
18
+ export type AdminCampaignListResponse = PaginatedResponse<{
25
19
  campaigns: CampaignResponse[];
26
- }
27
- /**
28
- * @experimental
29
- */
20
+ }>;
30
21
  export interface AdminCampaignResponse {
31
22
  campaign: CampaignResponse;
32
23
  }
@@ -1 +1 @@
1
- {"version":3,"file":"campaign.d.ts","sourceRoot":"","sources":["../../../../src/http/campaign/admin/campaign.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,oBAAoB,CAAA;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAEhD;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE;QACN,EAAE,EAAE,MAAM,CAAA;QACV,IAAI,EAAE,wBAAwB,CAAA;QAC9B,KAAK,EAAE,MAAM,CAAA;QACb,IAAI,EAAE,MAAM,CAAA;KACb,CAAA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