@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.
- package/dist/auth/provider.d.ts +1 -1
- package/dist/auth/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +1 -1
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/cart/service.d.ts +1 -1
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/common/common.d.ts +24 -2
- package/dist/common/common.d.ts.map +1 -1
- package/dist/fulfillment/provider.d.ts +14 -14
- package/dist/fulfillment/provider.d.ts.map +1 -1
- package/dist/http/cart/store/entities.d.ts +13 -1
- package/dist/http/cart/store/entities.d.ts.map +1 -1
- package/dist/http/cart/store/payloads.d.ts +51 -6
- package/dist/http/cart/store/payloads.d.ts.map +1 -1
- package/dist/http/cart/store/responses.d.ts.map +1 -1
- package/dist/http/collection/store/entities.d.ts +3 -1
- package/dist/http/collection/store/entities.d.ts.map +1 -1
- package/dist/http/collection/store/queries.d.ts.map +1 -1
- package/dist/http/common/response.d.ts.map +1 -1
- package/dist/http/currency/store/entities.d.ts.map +1 -1
- package/dist/http/currency/store/queries.d.ts.map +1 -1
- package/dist/http/currency/store/responses.d.ts.map +1 -1
- package/dist/http/customer/admin/entities.d.ts +1 -0
- package/dist/http/customer/admin/entities.d.ts.map +1 -1
- package/dist/http/customer/admin/responses.d.ts.map +1 -1
- package/dist/http/customer/store/entities.d.ts +2 -1
- package/dist/http/customer/store/entities.d.ts.map +1 -1
- package/dist/http/customer/store/queries.d.ts.map +1 -1
- package/dist/http/customer/store/responses.d.ts.map +1 -1
- package/dist/http/customer-group/admin/entities.d.ts +2 -0
- package/dist/http/customer-group/admin/entities.d.ts.map +1 -1
- package/dist/http/customer-group/index.d.ts.map +1 -1
- package/dist/http/customer-group/index.js.map +1 -1
- package/dist/http/exchange/admin/entities.d.ts.map +1 -1
- package/dist/http/exchange/common.d.ts.map +1 -1
- package/dist/http/file/admin/payloads.d.ts.map +1 -1
- package/dist/http/file/admin/responses.d.ts.map +1 -1
- package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -1
- package/dist/http/inventory/admin/queries.d.ts.map +1 -1
- package/dist/http/inventory/admin/responses.d.ts.map +1 -1
- package/dist/http/invite/admin/queries.d.ts.map +1 -1
- package/dist/http/invite/admin/responses.d.ts.map +1 -1
- package/dist/http/order/admin/entities.d.ts.map +1 -1
- package/dist/http/order/admin/queries.d.ts +1 -2
- package/dist/http/order/admin/queries.d.ts.map +1 -1
- package/dist/http/order/admin/responses.d.ts +1 -1
- package/dist/http/order/admin/responses.d.ts.map +1 -1
- package/dist/http/order/store/entities.d.ts +20 -2
- package/dist/http/order/store/entities.d.ts.map +1 -1
- package/dist/http/order/store/queries.d.ts.map +1 -1
- package/dist/http/order/store/responses.d.ts.map +1 -1
- package/dist/http/payment/admin/queries.d.ts.map +1 -1
- package/dist/http/payment/store/responses.d.ts.map +1 -1
- package/dist/http/product/admin/queries.d.ts.map +1 -1
- package/dist/http/product/admin/responses.d.ts.map +1 -1
- package/dist/http/product/common.d.ts +7 -3
- package/dist/http/product/common.d.ts.map +1 -1
- package/dist/http/product/store/entitites.d.ts +1 -1
- package/dist/http/product/store/entitites.d.ts.map +1 -1
- package/dist/http/product/store/queries.d.ts +1 -1
- package/dist/http/product/store/queries.d.ts.map +1 -1
- package/dist/http/product-category/common.d.ts.map +1 -1
- package/dist/http/product-category/store/entities.d.ts.map +1 -1
- package/dist/http/promotion/admin/entities.d.ts.map +1 -1
- package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
- package/dist/http/promotion/admin/responses.d.ts.map +1 -1
- package/dist/http/region/admin/entities.d.ts.map +1 -1
- package/dist/http/region/admin/responses.d.ts.map +1 -1
- package/dist/http/region/store/entities.d.ts.map +1 -1
- package/dist/http/region/store/queries.d.ts.map +1 -1
- package/dist/http/region/store/responses.d.ts.map +1 -1
- package/dist/http/return/admin/entities.d.ts.map +1 -1
- package/dist/http/return/store/entities.d.ts +1 -1
- package/dist/http/return/store/entities.d.ts.map +1 -1
- package/dist/http/return/store/responses.d.ts.map +1 -1
- package/dist/http/return-reason/admin/payloads.d.ts.map +1 -1
- package/dist/http/return-reason/store/entities.d.ts.map +1 -1
- package/dist/http/return-reason/store/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/payloads.d.ts +1 -1
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/store/queries.d.ts.map +1 -1
- package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/queries.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/queries.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/responses.d.ts.map +1 -1
- package/dist/http/user/index.d.ts.map +1 -1
- package/dist/http/user/index.js.map +1 -1
- package/dist/order/common.d.ts.map +1 -1
- package/dist/search/interface.d.ts.map +1 -1
- package/dist/search/settings.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +3 -3
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/transaction-base/index.d.ts.map +1 -1
- package/dist/transaction-base/index.js.map +1 -1
- package/dist/workflow/fulfillment/shipping-profiles.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/tax/provider.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ItemTaxLineDTO, ShippingTaxLineDTO,
|
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,
|
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,
|
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,
|
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,
|
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"}
|