@medusajs/types 2.0.0-rc-20241001083650 → 2.0.0-rc-20241003153304

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. package/dist/auth/provider.d.ts +1 -1
  2. package/dist/auth/provider.d.ts.map +1 -1
  3. package/dist/auth/service.d.ts +1 -1
  4. package/dist/auth/service.d.ts.map +1 -1
  5. package/dist/cart/service.d.ts +1 -1
  6. package/dist/cart/service.d.ts.map +1 -1
  7. package/dist/common/common.d.ts +24 -2
  8. package/dist/common/common.d.ts.map +1 -1
  9. package/dist/fulfillment/provider.d.ts +14 -14
  10. package/dist/fulfillment/provider.d.ts.map +1 -1
  11. package/dist/http/cart/store/entities.d.ts +13 -1
  12. package/dist/http/cart/store/entities.d.ts.map +1 -1
  13. package/dist/http/cart/store/payloads.d.ts +51 -6
  14. package/dist/http/cart/store/payloads.d.ts.map +1 -1
  15. package/dist/http/cart/store/responses.d.ts.map +1 -1
  16. package/dist/http/collection/store/entities.d.ts +3 -1
  17. package/dist/http/collection/store/entities.d.ts.map +1 -1
  18. package/dist/http/collection/store/queries.d.ts.map +1 -1
  19. package/dist/http/common/response.d.ts.map +1 -1
  20. package/dist/http/currency/store/entities.d.ts.map +1 -1
  21. package/dist/http/currency/store/queries.d.ts.map +1 -1
  22. package/dist/http/currency/store/responses.d.ts.map +1 -1
  23. package/dist/http/customer/admin/entities.d.ts +1 -0
  24. package/dist/http/customer/admin/entities.d.ts.map +1 -1
  25. package/dist/http/customer/admin/responses.d.ts.map +1 -1
  26. package/dist/http/customer/store/entities.d.ts +2 -1
  27. package/dist/http/customer/store/entities.d.ts.map +1 -1
  28. package/dist/http/customer/store/queries.d.ts.map +1 -1
  29. package/dist/http/customer/store/responses.d.ts.map +1 -1
  30. package/dist/http/customer-group/admin/entities.d.ts +2 -0
  31. package/dist/http/customer-group/admin/entities.d.ts.map +1 -1
  32. package/dist/http/customer-group/index.d.ts.map +1 -1
  33. package/dist/http/customer-group/index.js.map +1 -1
  34. package/dist/http/exchange/admin/entities.d.ts.map +1 -1
  35. package/dist/http/exchange/common.d.ts.map +1 -1
  36. package/dist/http/file/admin/payloads.d.ts.map +1 -1
  37. package/dist/http/file/admin/responses.d.ts.map +1 -1
  38. package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -1
  39. package/dist/http/inventory/admin/queries.d.ts.map +1 -1
  40. package/dist/http/inventory/admin/responses.d.ts.map +1 -1
  41. package/dist/http/invite/admin/queries.d.ts.map +1 -1
  42. package/dist/http/invite/admin/responses.d.ts.map +1 -1
  43. package/dist/http/order/admin/entities.d.ts.map +1 -1
  44. package/dist/http/order/admin/queries.d.ts +1 -2
  45. package/dist/http/order/admin/queries.d.ts.map +1 -1
  46. package/dist/http/order/admin/responses.d.ts +1 -1
  47. package/dist/http/order/admin/responses.d.ts.map +1 -1
  48. package/dist/http/order/store/entities.d.ts +20 -2
  49. package/dist/http/order/store/entities.d.ts.map +1 -1
  50. package/dist/http/order/store/queries.d.ts.map +1 -1
  51. package/dist/http/order/store/responses.d.ts.map +1 -1
  52. package/dist/http/payment/admin/queries.d.ts.map +1 -1
  53. package/dist/http/payment/store/responses.d.ts.map +1 -1
  54. package/dist/http/product/admin/queries.d.ts.map +1 -1
  55. package/dist/http/product/admin/responses.d.ts.map +1 -1
  56. package/dist/http/product/common.d.ts +7 -3
  57. package/dist/http/product/common.d.ts.map +1 -1
  58. package/dist/http/product/store/entitites.d.ts +1 -1
  59. package/dist/http/product/store/entitites.d.ts.map +1 -1
  60. package/dist/http/product/store/queries.d.ts +1 -1
  61. package/dist/http/product/store/queries.d.ts.map +1 -1
  62. package/dist/http/product-category/common.d.ts.map +1 -1
  63. package/dist/http/product-category/store/entities.d.ts.map +1 -1
  64. package/dist/http/promotion/admin/entities.d.ts.map +1 -1
  65. package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
  66. package/dist/http/promotion/admin/responses.d.ts.map +1 -1
  67. package/dist/http/region/admin/entities.d.ts.map +1 -1
  68. package/dist/http/region/admin/responses.d.ts.map +1 -1
  69. package/dist/http/region/store/entities.d.ts.map +1 -1
  70. package/dist/http/region/store/queries.d.ts.map +1 -1
  71. package/dist/http/region/store/responses.d.ts.map +1 -1
  72. package/dist/http/return/admin/entities.d.ts.map +1 -1
  73. package/dist/http/return/store/entities.d.ts +1 -1
  74. package/dist/http/return/store/entities.d.ts.map +1 -1
  75. package/dist/http/return/store/responses.d.ts.map +1 -1
  76. package/dist/http/return-reason/admin/payloads.d.ts.map +1 -1
  77. package/dist/http/return-reason/store/entities.d.ts.map +1 -1
  78. package/dist/http/return-reason/store/responses.d.ts.map +1 -1
  79. package/dist/http/shipping-option/admin/payloads.d.ts +1 -1
  80. package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
  81. package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
  82. package/dist/http/shipping-option/store/queries.d.ts.map +1 -1
  83. package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
  84. package/dist/http/stock-locations/admin/queries.d.ts.map +1 -1
  85. package/dist/http/tax-rate/admin/queries.d.ts.map +1 -1
  86. package/dist/http/tax-rate/admin/responses.d.ts.map +1 -1
  87. package/dist/http/user/index.d.ts.map +1 -1
  88. package/dist/http/user/index.js.map +1 -1
  89. package/dist/order/common.d.ts.map +1 -1
  90. package/dist/search/interface.d.ts.map +1 -1
  91. package/dist/search/settings.d.ts.map +1 -1
  92. package/dist/tax/provider.d.ts +3 -3
  93. package/dist/tax/provider.d.ts.map +1 -1
  94. package/dist/transaction-base/index.d.ts.map +1 -1
  95. package/dist/transaction-base/index.js.map +1 -1
  96. package/dist/workflow/fulfillment/shipping-profiles.d.ts.map +1 -1
  97. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ItemTaxLineDTO, ShippingTaxLineDTO, TaxCalculationContext, TaxRateDTO, TaxableItemDTO, TaxableShippingDTO } from "./common";
1
+ import { ItemTaxLineDTO, ShippingTaxLineDTO, TaxableItemDTO, TaxableShippingDTO, TaxCalculationContext, TaxRateDTO } from "./common";
2
2
  /**
3
3
  * A shipping method and the tax rates configured to apply to the
4
4
  * shipping method.
@@ -38,7 +38,7 @@ export type ItemTaxCalculationLine = {
38
38
  * ## How to Create a Tax Provider
39
39
  *
40
40
  * A tax provider class is defined in a TypeScript or JavaScript file. The class must implement the
41
- * `ITaxProvider` interface imported from `@medusajs/types`.
41
+ * `ITaxProvider` interface imported from `@medusajs/framework/types`.
42
42
  *
43
43
  * The file can be defined in a plugin, a provider module, or under the `src/services` directory of your Medusa application. You can later pass the package's name or the
44
44
  * path to the file in the `providers` option of the Tax Module.
@@ -46,7 +46,7 @@ export type ItemTaxCalculationLine = {
46
46
  * For example:
47
47
  *
48
48
  * ```ts title="src/services/my-tax.ts"
49
- * import { ITaxProvider } from "@medusajs/types"
49
+ * import { ITaxProvider } from "@medusajs/framework/types"
50
50
  *
51
51
  * export default class MyTaxProvider implements ITaxProvider {
52
52
  * // ...
@@ -1 +1 @@
1
- {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/tax/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACV,cAAc,EACd,kBAAkB,EACnB,MAAM,UAAU,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAA;IACjC;;OAEG;IACH,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,SAAS,EAAE,cAAc,CAAA;IACzB;;OAEG;IACH,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,aAAa,IAAI,MAAM,CAAA;IAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,WAAW,CACT,SAAS,EAAE,sBAAsB,EAAE,EACnC,aAAa,EAAE,0BAA0B,EAAE,EAC3C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,CAAC,cAAc,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAA;CACpD"}
1
+ {"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/tax/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,qBAAqB,EACrB,UAAU,EACX,MAAM,UAAU,CAAA;AAEjB;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,aAAa,EAAE,kBAAkB,CAAA;IACjC;;OAEG;IACH,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,SAAS,EAAE,cAAc,CAAA;IACzB;;OAEG;IACH,KAAK,EAAE,UAAU,EAAE,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,aAAa,IAAI,MAAM,CAAA;IAEvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwDG;IACH,WAAW,CACT,SAAS,EAAE,sBAAsB,EAAE,EACnC,aAAa,EAAE,0BAA0B,EAAE,EAC3C,OAAO,EAAE,qBAAqB,GAC7B,OAAO,CAAC,CAAC,cAAc,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAA;CACpD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transaction-base/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transaction-base/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transaction-base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transaction-base/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAkC"}
@@ -1 +1 @@
1
- {"version":3,"file":"shipping-profiles.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/shipping-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,8BAA8B,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAA;AAEtF,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,mCAAmC;IAClD,IAAI,EAAE,qBAAqB,EAAE,CAAA;CAC9B;AAED,MAAM,MAAM,oCAAoC,GAAG,kBAAkB,EAAE,CAAA;AAEvE,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,8BAA8B,CAAA;IACxC,MAAM,EAAE,qBAAqB,CAAA;CAC9B"}
1
+ {"version":3,"file":"shipping-profiles.d.ts","sourceRoot":"","sources":["../../../src/workflow/fulfillment/shipping-profiles.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,8BAA8B,EAC9B,kBAAkB,EACnB,MAAM,mBAAmB,CAAA;AAE1B,UAAU,qBAAqB;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,mCAAmC;IAClD,IAAI,EAAE,qBAAqB,EAAE,CAAA;CAC9B;AAED,MAAM,MAAM,oCAAoC,GAAG,kBAAkB,EAAE,CAAA;AAEvE,UAAU,qBAAqB;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,mCAAmC;IAClD,QAAQ,EAAE,8BAA8B,CAAA;IACxC,MAAM,EAAE,qBAAqB,CAAA;CAC9B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medusajs/types",
3
- "version": "2.0.0-rc-20241001083650",
3
+ "version": "2.0.0-rc-20241003153304",
4
4
  "description": "Medusa Types definition",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",