@medusajs/medusa 1.20.9 → 1.20.11
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/README.md +5 -5
- package/dist/api/routes/admin/batch/create-batch-job.d.ts +1 -1
- package/dist/api/routes/admin/batch/create-batch-job.js +1 -1
- package/dist/api/routes/admin/collections/create-collection.d.ts +1 -1
- package/dist/api/routes/admin/collections/create-collection.js +1 -1
- package/dist/api/routes/admin/collections/update-collection.d.ts +1 -1
- package/dist/api/routes/admin/collections/update-collection.js +1 -1
- package/dist/api/routes/admin/customer-groups/create-customer-group.d.ts +1 -1
- package/dist/api/routes/admin/customer-groups/create-customer-group.js +1 -1
- package/dist/api/routes/admin/customer-groups/update-customer-group.d.ts +1 -1
- package/dist/api/routes/admin/customer-groups/update-customer-group.js +1 -1
- package/dist/api/routes/admin/customers/create-customer.d.ts +1 -1
- package/dist/api/routes/admin/customers/create-customer.js +1 -1
- package/dist/api/routes/admin/customers/update-customer.d.ts +1 -1
- package/dist/api/routes/admin/customers/update-customer.js +1 -1
- package/dist/api/routes/admin/discounts/create-discount.d.ts +1 -1
- package/dist/api/routes/admin/discounts/create-discount.js +1 -1
- package/dist/api/routes/admin/discounts/create-dynamic-code.d.ts +1 -1
- package/dist/api/routes/admin/discounts/create-dynamic-code.js +1 -1
- package/dist/api/routes/admin/discounts/update-discount.d.ts +1 -1
- package/dist/api/routes/admin/discounts/update-discount.js +1 -1
- package/dist/api/routes/admin/draft-orders/create-draft-order.d.ts +2 -2
- package/dist/api/routes/admin/draft-orders/create-draft-order.js +2 -2
- package/dist/api/routes/admin/draft-orders/create-line-item.d.ts +1 -1
- package/dist/api/routes/admin/draft-orders/create-line-item.js +1 -1
- package/dist/api/routes/admin/draft-orders/update-line-item.d.ts +1 -1
- package/dist/api/routes/admin/draft-orders/update-line-item.js +1 -1
- package/dist/api/routes/admin/gift-cards/create-gift-card.d.ts +1 -1
- package/dist/api/routes/admin/gift-cards/create-gift-card.js +1 -1
- package/dist/api/routes/admin/gift-cards/update-gift-card.d.ts +1 -1
- package/dist/api/routes/admin/gift-cards/update-gift-card.js +1 -1
- package/dist/api/routes/admin/inventory-items/create-inventory-item.d.ts +1 -1
- package/dist/api/routes/admin/inventory-items/create-inventory-item.js +1 -1
- package/dist/api/routes/admin/order-edits/add-line-item.d.ts +1 -1
- package/dist/api/routes/admin/order-edits/add-line-item.js +1 -1
- package/dist/api/routes/admin/orders/cancel-claim.d.ts +1 -1
- package/dist/api/routes/admin/orders/cancel-claim.js +1 -1
- package/dist/api/routes/admin/orders/cancel-swap.d.ts +1 -1
- package/dist/api/routes/admin/orders/cancel-swap.js +1 -1
- package/dist/api/routes/admin/orders/create-claim-shipment.d.ts +1 -1
- package/dist/api/routes/admin/orders/create-claim-shipment.js +1 -1
- package/dist/api/routes/admin/orders/create-claim.d.ts +2 -2
- package/dist/api/routes/admin/orders/create-claim.js +2 -2
- package/dist/api/routes/admin/orders/create-fulfillment.d.ts +2 -2
- package/dist/api/routes/admin/orders/create-fulfillment.js +2 -2
- package/dist/api/routes/admin/orders/create-shipment.d.ts +1 -1
- package/dist/api/routes/admin/orders/create-shipment.js +1 -1
- package/dist/api/routes/admin/orders/create-swap-shipment.d.ts +1 -1
- package/dist/api/routes/admin/orders/create-swap-shipment.js +1 -1
- package/dist/api/routes/admin/orders/create-swap.d.ts +1 -1
- package/dist/api/routes/admin/orders/create-swap.js +1 -1
- package/dist/api/routes/admin/orders/fulfill-claim.d.ts +2 -2
- package/dist/api/routes/admin/orders/fulfill-claim.js +2 -2
- package/dist/api/routes/admin/orders/fulfill-swap.d.ts +2 -2
- package/dist/api/routes/admin/orders/fulfill-swap.js +2 -2
- package/dist/api/routes/admin/orders/process-swap-payment.d.ts +1 -1
- package/dist/api/routes/admin/orders/process-swap-payment.js +1 -1
- package/dist/api/routes/admin/orders/request-return.d.ts +1 -1
- package/dist/api/routes/admin/orders/request-return.js +1 -1
- package/dist/api/routes/admin/orders/update-claim.d.ts +2 -2
- package/dist/api/routes/admin/orders/update-claim.js +2 -2
- package/dist/api/routes/admin/payment-collections/update-payment-collection.d.ts +1 -1
- package/dist/api/routes/admin/payment-collections/update-payment-collection.js +1 -1
- package/dist/api/routes/admin/product-categories/create-product-category.d.ts +1 -1
- package/dist/api/routes/admin/product-categories/create-product-category.js +1 -1
- package/dist/api/routes/admin/product-categories/update-product-category.d.ts +1 -1
- package/dist/api/routes/admin/product-categories/update-product-category.js +1 -1
- package/dist/api/routes/admin/products/create-product.d.ts +4 -4
- package/dist/api/routes/admin/products/create-product.js +4 -4
- package/dist/api/routes/admin/products/create-variant.d.ts +2 -2
- package/dist/api/routes/admin/products/create-variant.js +2 -2
- package/dist/api/routes/admin/products/list-products.js +3 -1
- package/dist/api/routes/admin/products/list-products.js.map +1 -1
- package/dist/api/routes/admin/products/set-metadata.d.ts +1 -1
- package/dist/api/routes/admin/products/set-metadata.js +1 -1
- package/dist/api/routes/admin/products/update-product.d.ts +3 -3
- package/dist/api/routes/admin/products/update-product.js +3 -3
- package/dist/api/routes/admin/products/update-variant.d.ts +2 -2
- package/dist/api/routes/admin/products/update-variant.js +2 -2
- package/dist/api/routes/admin/regions/update-region.d.ts +1 -1
- package/dist/api/routes/admin/regions/update-region.js +1 -1
- package/dist/api/routes/admin/reservations/create-reservation.d.ts +1 -1
- package/dist/api/routes/admin/reservations/create-reservation.js +1 -1
- package/dist/api/routes/admin/reservations/update-reservation.d.ts +1 -1
- package/dist/api/routes/admin/reservations/update-reservation.js +1 -1
- package/dist/api/routes/admin/return-reasons/create-reason.d.ts +1 -1
- package/dist/api/routes/admin/return-reasons/create-reason.js +1 -1
- package/dist/api/routes/admin/return-reasons/update-reason.d.ts +1 -1
- package/dist/api/routes/admin/return-reasons/update-reason.js +1 -1
- package/dist/api/routes/admin/shipping-options/create-shipping-option.d.ts +1 -1
- package/dist/api/routes/admin/shipping-options/create-shipping-option.js +1 -1
- package/dist/api/routes/admin/shipping-options/update-shipping-option.d.ts +1 -1
- package/dist/api/routes/admin/shipping-options/update-shipping-option.js +1 -1
- package/dist/api/routes/admin/shipping-profiles/create-shipping-profile.d.ts +1 -1
- package/dist/api/routes/admin/shipping-profiles/create-shipping-profile.js +1 -1
- package/dist/api/routes/admin/shipping-profiles/update-shipping-profile.d.ts +1 -1
- package/dist/api/routes/admin/shipping-profiles/update-shipping-profile.js +1 -1
- package/dist/api/routes/admin/stock-locations/create-stock-location.d.ts +1 -1
- package/dist/api/routes/admin/stock-locations/create-stock-location.js +1 -1
- package/dist/api/routes/admin/stock-locations/update-stock-location.d.ts +1 -1
- package/dist/api/routes/admin/stock-locations/update-stock-location.js +1 -1
- package/dist/api/routes/admin/store/update-store.d.ts +1 -1
- package/dist/api/routes/admin/store/update-store.js +1 -1
- package/dist/api/routes/admin/users/reset-password-token.d.ts +2 -2
- package/dist/api/routes/admin/users/reset-password-token.js +2 -2
- package/dist/api/routes/admin/users/reset-password.d.ts +1 -1
- package/dist/api/routes/admin/users/reset-password.js +1 -1
- package/dist/api/routes/admin/users/update-user.d.ts +1 -1
- package/dist/api/routes/admin/users/update-user.js +1 -1
- package/dist/api/routes/admin/variants/list-variants.d.ts +3 -3
- package/dist/api/routes/admin/variants/list-variants.js +3 -3
- package/dist/api/routes/store/carts/calculate-taxes.d.ts +1 -1
- package/dist/api/routes/store/carts/calculate-taxes.js +1 -1
- package/dist/api/routes/store/carts/complete-cart.d.ts +1 -1
- package/dist/api/routes/store/carts/complete-cart.js +1 -1
- package/dist/api/routes/store/carts/create-line-item/index.d.ts +1 -1
- package/dist/api/routes/store/carts/create-line-item/index.js +1 -1
- package/dist/api/routes/store/carts/update-line-item.d.ts +1 -1
- package/dist/api/routes/store/carts/update-line-item.js +1 -1
- package/dist/api/routes/store/customers/reset-password-token.d.ts +1 -1
- package/dist/api/routes/store/customers/reset-password-token.js +1 -1
- package/dist/api/routes/store/customers/reset-password.d.ts +1 -1
- package/dist/api/routes/store/customers/reset-password.js +1 -1
- package/dist/api/routes/store/customers/update-customer.d.ts +1 -1
- package/dist/api/routes/store/customers/update-customer.js +1 -1
- package/dist/api/routes/store/order-edits/complete-order-edit.d.ts +1 -1
- package/dist/api/routes/store/order-edits/complete-order-edit.js +1 -1
- package/dist/api/routes/store/orders/confirm-order-request.d.ts +1 -1
- package/dist/api/routes/store/orders/confirm-order-request.js +1 -1
- package/dist/api/routes/store/orders/request-order.d.ts +1 -1
- package/dist/api/routes/store/orders/request-order.js +1 -1
- package/dist/api/routes/store/product-categories/list-product-categories.d.ts +1 -1
- package/dist/api/routes/store/product-categories/list-product-categories.js +1 -1
- package/dist/api/routes/store/products/get-product.d.ts +1 -1
- package/dist/api/routes/store/products/get-product.js +1 -1
- package/dist/api/routes/store/products/list-products.d.ts +1 -1
- package/dist/api/routes/store/products/list-products.js +1 -1
- package/dist/api/routes/store/regions/list-regions.d.ts +1 -1
- package/dist/api/routes/store/regions/list-regions.js +1 -1
- package/dist/api/routes/store/returns/create-return.d.ts +1 -1
- package/dist/api/routes/store/returns/create-return.js +1 -1
- package/dist/api/routes/store/shipping-options/list-shipping-options.d.ts +1 -1
- package/dist/api/routes/store/shipping-options/list-shipping-options.js +1 -1
- package/dist/api/routes/store/swaps/create-swap.d.ts +1 -1
- package/dist/api/routes/store/swaps/create-swap.js +1 -1
- package/dist/api/routes/store/variants/get-variant.d.ts +1 -1
- package/dist/api/routes/store/variants/get-variant.js +1 -1
- package/dist/api/routes/store/variants/list-variants.d.ts +1 -1
- package/dist/api/routes/store/variants/list-variants.js +1 -1
- package/dist/commands/develop.js +15 -10
- package/dist/commands/develop.js.map +1 -1
- package/dist/interfaces/fulfillment-service.d.ts +8 -8
- package/dist/interfaces/notification-service.d.ts +9 -9
- package/dist/interfaces/payment-processor.d.ts +14 -14
- package/dist/interfaces/payment-processor.js +2 -2
- package/dist/interfaces/price-selection-strategy.d.ts +4 -4
- package/dist/interfaces/tax-calculation-strategy.d.ts +1 -1
- package/dist/interfaces/tax-service.d.ts +1 -1
- package/dist/models/address.d.ts +1 -1
- package/dist/models/address.js +1 -1
- package/dist/models/cart.d.ts +2 -2
- package/dist/models/cart.js +2 -2
- package/dist/models/claim-image.d.ts +1 -1
- package/dist/models/claim-image.js +1 -1
- package/dist/models/claim-item.d.ts +1 -1
- package/dist/models/claim-item.js +1 -1
- package/dist/models/claim-order.d.ts +2 -2
- package/dist/models/claim-order.js +2 -2
- package/dist/models/claim-tag.d.ts +1 -1
- package/dist/models/claim-tag.js +1 -1
- package/dist/models/custom-shipping-option.d.ts +1 -1
- package/dist/models/custom-shipping-option.js +1 -1
- package/dist/models/customer-group.d.ts +1 -1
- package/dist/models/customer-group.js +1 -1
- package/dist/models/customer.d.ts +1 -1
- package/dist/models/customer.js +1 -1
- package/dist/models/discount-condition-customer-group.d.ts +1 -1
- package/dist/models/discount-condition-customer-group.js +1 -1
- package/dist/models/discount-condition-product-collection.d.ts +1 -1
- package/dist/models/discount-condition-product-collection.js +1 -1
- package/dist/models/discount-condition-product-tag.d.ts +1 -1
- package/dist/models/discount-condition-product-tag.js +1 -1
- package/dist/models/discount-condition-product-type.d.ts +1 -1
- package/dist/models/discount-condition-product-type.js +1 -1
- package/dist/models/discount-condition-product.d.ts +1 -1
- package/dist/models/discount-condition-product.js +1 -1
- package/dist/models/discount-condition.d.ts +1 -1
- package/dist/models/discount-condition.js +1 -1
- package/dist/models/discount-rule.d.ts +1 -1
- package/dist/models/discount-rule.js +1 -1
- package/dist/models/discount.d.ts +1 -1
- package/dist/models/discount.js +1 -1
- package/dist/models/draft-order.d.ts +2 -2
- package/dist/models/draft-order.js +2 -2
- package/dist/models/fulfillment.d.ts +2 -2
- package/dist/models/fulfillment.js +2 -2
- package/dist/models/gift-card.d.ts +1 -1
- package/dist/models/gift-card.js +1 -1
- package/dist/models/idempotency-key.d.ts +1 -1
- package/dist/models/idempotency-key.js +1 -1
- package/dist/models/image.d.ts +1 -1
- package/dist/models/image.js +1 -1
- package/dist/models/invite.d.ts +1 -1
- package/dist/models/invite.js +1 -1
- package/dist/models/line-item-adjustment.d.ts +1 -1
- package/dist/models/line-item-adjustment.js +1 -1
- package/dist/models/line-item-tax-line.d.ts +1 -1
- package/dist/models/line-item-tax-line.js +1 -1
- package/dist/models/line-item.d.ts +1 -1
- package/dist/models/line-item.js +1 -1
- package/dist/models/order.d.ts +2 -2
- package/dist/models/order.js +2 -2
- package/dist/models/payment-collection.d.ts +1 -1
- package/dist/models/payment-collection.js +1 -1
- package/dist/models/payment-session.d.ts +1 -1
- package/dist/models/payment-session.js +1 -1
- package/dist/models/payment.d.ts +2 -2
- package/dist/models/payment.js +2 -2
- package/dist/models/product-category.d.ts +1 -1
- package/dist/models/product-category.js +1 -1
- package/dist/models/product-collection.d.ts +1 -1
- package/dist/models/product-collection.js +1 -1
- package/dist/models/product-option-value.d.ts +1 -1
- package/dist/models/product-option-value.js +1 -1
- package/dist/models/product-option.d.ts +1 -1
- package/dist/models/product-option.js +1 -1
- package/dist/models/product-tag.d.ts +1 -1
- package/dist/models/product-tag.js +1 -1
- package/dist/models/product-tax-rate.d.ts +1 -1
- package/dist/models/product-tax-rate.js +1 -1
- package/dist/models/product-type-tax-rate.d.ts +1 -1
- package/dist/models/product-type-tax-rate.js +1 -1
- package/dist/models/product-type.d.ts +1 -1
- package/dist/models/product-type.js +1 -1
- package/dist/models/product-variant.d.ts +1 -1
- package/dist/models/product-variant.js +1 -1
- package/dist/models/product.d.ts +1 -1
- package/dist/models/product.js +1 -1
- package/dist/models/refund.d.ts +2 -2
- package/dist/models/refund.js +2 -2
- package/dist/models/region.d.ts +1 -1
- package/dist/models/region.js +1 -1
- package/dist/models/return-item.d.ts +1 -1
- package/dist/models/return-item.js +1 -1
- package/dist/models/return-reason.d.ts +1 -1
- package/dist/models/return-reason.js +1 -1
- package/dist/models/return.d.ts +2 -2
- package/dist/models/return.js +2 -2
- package/dist/models/sales-channel.d.ts +1 -1
- package/dist/models/sales-channel.js +1 -1
- package/dist/models/shipping-method-tax-line.d.ts +1 -1
- package/dist/models/shipping-method-tax-line.js +1 -1
- package/dist/models/shipping-option.d.ts +1 -1
- package/dist/models/shipping-option.js +1 -1
- package/dist/models/shipping-profile.d.ts +1 -1
- package/dist/models/shipping-profile.js +1 -1
- package/dist/models/shipping-tax-rate.d.ts +1 -1
- package/dist/models/shipping-tax-rate.js +1 -1
- package/dist/models/store.d.ts +1 -1
- package/dist/models/store.js +1 -1
- package/dist/models/swap.d.ts +2 -2
- package/dist/models/swap.js +2 -2
- package/dist/models/tax-line.d.ts +1 -1
- package/dist/models/tax-line.js +1 -1
- package/dist/models/tax-rate.d.ts +1 -1
- package/dist/models/tax-rate.js +1 -1
- package/dist/models/tracking-link.d.ts +2 -2
- package/dist/models/tracking-link.js +2 -2
- package/dist/models/user.d.ts +1 -1
- package/dist/models/user.js +1 -1
- package/dist/services/job-scheduler.d.ts +2 -1
- package/dist/services/job-scheduler.js +2 -2
- package/dist/services/job-scheduler.js.map +1 -1
- package/dist/services/product-variant.js +1 -4
- package/dist/services/product-variant.js.map +1 -1
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ import { FindParams } from "../../../../types/common";
|
|
|
8
8
|
* x-authenticated: true
|
|
9
9
|
* externalDocs:
|
|
10
10
|
* description: Fulfill a claim
|
|
11
|
-
* url: https://docs.medusajs.com/modules/orders/claims#fulfill-a-claim
|
|
11
|
+
* url: https://docs.medusajs.com/v1/modules/orders/claims#fulfill-a-claim
|
|
12
12
|
* parameters:
|
|
13
13
|
* - (path) id=* {string} The ID of the Order the claim is associated with.
|
|
14
14
|
* - (path) claim_id=* {string} The ID of the Claim.
|
|
@@ -105,7 +105,7 @@ export default _default;
|
|
|
105
105
|
* type: object
|
|
106
106
|
* externalDocs:
|
|
107
107
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
108
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
108
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
109
109
|
* no_notification:
|
|
110
110
|
* description: >-
|
|
111
111
|
* If set to `true`, no notification will be sent to the customer related to this Claim.
|
|
@@ -74,7 +74,7 @@ var create_fulfillment_1 = require("./create-fulfillment");
|
|
|
74
74
|
* x-authenticated: true
|
|
75
75
|
* externalDocs:
|
|
76
76
|
* description: Fulfill a claim
|
|
77
|
-
* url: https://docs.medusajs.com/modules/orders/claims#fulfill-a-claim
|
|
77
|
+
* url: https://docs.medusajs.com/v1/modules/orders/claims#fulfill-a-claim
|
|
78
78
|
* parameters:
|
|
79
79
|
* - (path) id=* {string} The ID of the Order the claim is associated with.
|
|
80
80
|
* - (path) claim_id=* {string} The ID of the Claim.
|
|
@@ -237,7 +237,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
237
237
|
* type: object
|
|
238
238
|
* externalDocs:
|
|
239
239
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
240
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
240
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
241
241
|
* no_notification:
|
|
242
242
|
* description: >-
|
|
243
243
|
* If set to `true`, no notification will be sent to the customer related to this Claim.
|
|
@@ -8,7 +8,7 @@ import { FindParams } from "../../../../types/common";
|
|
|
8
8
|
* x-authenticated: true
|
|
9
9
|
* externalDocs:
|
|
10
10
|
* description: Handling a swap's fulfillment
|
|
11
|
-
* url: https://docs.medusajs.com/modules/orders/swaps#handling-swap-fulfillment
|
|
11
|
+
* url: https://docs.medusajs.com/v1/modules/orders/swaps#handling-swap-fulfillment
|
|
12
12
|
* parameters:
|
|
13
13
|
* - (path) id=* {string} The ID of the Order the swap is associated with.
|
|
14
14
|
* - (path) swap_id=* {string} The ID of the Swap.
|
|
@@ -111,7 +111,7 @@ export default _default;
|
|
|
111
111
|
* type: object
|
|
112
112
|
* externalDocs:
|
|
113
113
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
114
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
114
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
115
115
|
* no_notification:
|
|
116
116
|
* description: If set to `true`, no notification will be sent to the customer related to this swap.
|
|
117
117
|
* type: boolean
|
|
@@ -75,7 +75,7 @@ var create_fulfillment_1 = require("./create-fulfillment");
|
|
|
75
75
|
* x-authenticated: true
|
|
76
76
|
* externalDocs:
|
|
77
77
|
* description: Handling a swap's fulfillment
|
|
78
|
-
* url: https://docs.medusajs.com/modules/orders/swaps#handling-swap-fulfillment
|
|
78
|
+
* url: https://docs.medusajs.com/v1/modules/orders/swaps#handling-swap-fulfillment
|
|
79
79
|
* parameters:
|
|
80
80
|
* - (path) id=* {string} The ID of the Order the swap is associated with.
|
|
81
81
|
* - (path) swap_id=* {string} The ID of the Swap.
|
|
@@ -246,7 +246,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
246
246
|
* type: object
|
|
247
247
|
* externalDocs:
|
|
248
248
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
249
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
249
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
250
250
|
* no_notification:
|
|
251
251
|
* description: If set to `true`, no notification will be sent to the customer related to this swap.
|
|
252
252
|
* type: boolean
|
|
@@ -8,7 +8,7 @@ import { FindParams } from "../../../../types/common";
|
|
|
8
8
|
* x-authenticated: true
|
|
9
9
|
* externalDocs:
|
|
10
10
|
* description: Handling a swap's payment
|
|
11
|
-
* url: https://docs.medusajs.com/modules/orders/swaps#handling-swap-payment
|
|
11
|
+
* url: https://docs.medusajs.com/v1/modules/orders/swaps#handling-swap-payment
|
|
12
12
|
* parameters:
|
|
13
13
|
* - (path) id=* {string} The ID of the order the swap is associated with.
|
|
14
14
|
* - (path) swap_id=* {string} The ID of the swap.
|
|
@@ -63,7 +63,7 @@ var clean_response_data_1 = require("../../../../utils/clean-response-data");
|
|
|
63
63
|
* x-authenticated: true
|
|
64
64
|
* externalDocs:
|
|
65
65
|
* description: Handling a swap's payment
|
|
66
|
-
* url: https://docs.medusajs.com/modules/orders/swaps#handling-swap-payment
|
|
66
|
+
* url: https://docs.medusajs.com/v1/modules/orders/swaps#handling-swap-payment
|
|
67
67
|
* parameters:
|
|
68
68
|
* - (path) id=* {string} The ID of the order the swap is associated with.
|
|
69
69
|
* - (path) swap_id=* {string} The ID of the swap.
|
|
@@ -8,7 +8,7 @@ import { OrdersReturnItem } from "../../../../types/orders";
|
|
|
8
8
|
* x-authenticated: true
|
|
9
9
|
* externalDocs:
|
|
10
10
|
* description: Return creation process
|
|
11
|
-
* url: https://docs.medusajs.com/modules/orders/returns#returns-process
|
|
11
|
+
* url: https://docs.medusajs.com/v1/modules/orders/returns#returns-process
|
|
12
12
|
* parameters:
|
|
13
13
|
* - (path) id=* {string} The ID of the Order.
|
|
14
14
|
* - (query) expand {string} Comma-separated relations that should be expanded in the returned order.
|
|
@@ -76,7 +76,7 @@ var clean_response_data_1 = require("../../../../utils/clean-response-data");
|
|
|
76
76
|
* x-authenticated: true
|
|
77
77
|
* externalDocs:
|
|
78
78
|
* description: Return creation process
|
|
79
|
-
* url: https://docs.medusajs.com/modules/orders/returns#returns-process
|
|
79
|
+
* url: https://docs.medusajs.com/v1/modules/orders/returns#returns-process
|
|
80
80
|
* parameters:
|
|
81
81
|
* - (path) id=* {string} The ID of the Order.
|
|
82
82
|
* - (query) expand {string} Comma-separated relations that should be expanded in the returned order.
|
|
@@ -161,7 +161,7 @@ export default _default;
|
|
|
161
161
|
* type: object
|
|
162
162
|
* externalDocs:
|
|
163
163
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
164
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
164
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
165
165
|
* shipping_methods:
|
|
166
166
|
* description: The Shipping Methods to send the additional Line Items with.
|
|
167
167
|
* type: array
|
|
@@ -188,7 +188,7 @@ export default _default;
|
|
|
188
188
|
* type: object
|
|
189
189
|
* externalDocs:
|
|
190
190
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
191
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
191
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
192
192
|
*/
|
|
193
193
|
export declare class AdminPostOrdersOrderClaimsClaimReq {
|
|
194
194
|
claim_items?: Item[];
|
|
@@ -260,7 +260,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
260
260
|
* type: object
|
|
261
261
|
* externalDocs:
|
|
262
262
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
263
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
263
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
264
264
|
* shipping_methods:
|
|
265
265
|
* description: The Shipping Methods to send the additional Line Items with.
|
|
266
266
|
* type: array
|
|
@@ -287,7 +287,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
287
287
|
* type: object
|
|
288
288
|
* externalDocs:
|
|
289
289
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
290
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
290
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
291
291
|
*/
|
|
292
292
|
var AdminPostOrdersOrderClaimsClaimReq = /** @class */ (function () {
|
|
293
293
|
function AdminPostOrdersOrderClaimsClaimReq() {
|
|
@@ -108,7 +108,7 @@ export default _default;
|
|
|
108
108
|
* type: object
|
|
109
109
|
* externalDocs:
|
|
110
110
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
111
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
111
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
112
112
|
*/
|
|
113
113
|
export declare class AdminUpdatePaymentCollectionsReq {
|
|
114
114
|
description?: string;
|
|
@@ -181,7 +181,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
181
181
|
* type: object
|
|
182
182
|
* externalDocs:
|
|
183
183
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
184
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
184
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
185
185
|
*/
|
|
186
186
|
var AdminUpdatePaymentCollectionsReq = /** @class */ (function () {
|
|
187
187
|
function AdminUpdatePaymentCollectionsReq() {
|
|
@@ -127,7 +127,7 @@ export default _default;
|
|
|
127
127
|
* type: object
|
|
128
128
|
* externalDocs:
|
|
129
129
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
130
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
130
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
131
131
|
*/
|
|
132
132
|
export declare class AdminPostProductCategoriesReq extends AdminProductCategoriesReqBase {
|
|
133
133
|
name: string;
|
|
@@ -216,7 +216,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
216
216
|
* type: object
|
|
217
217
|
* externalDocs:
|
|
218
218
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
219
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
219
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
220
220
|
*/
|
|
221
221
|
// eslint-disable-next-line max-len
|
|
222
222
|
var AdminPostProductCategoriesReq = /** @class */ (function (_super) {
|
|
@@ -135,7 +135,7 @@ export default _default;
|
|
|
135
135
|
* type: object
|
|
136
136
|
* externalDocs:
|
|
137
137
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
138
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
138
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
139
139
|
*/
|
|
140
140
|
export declare class AdminPostProductCategoriesCategoryReq extends AdminProductCategoriesReqBase {
|
|
141
141
|
name?: string;
|
|
@@ -225,7 +225,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
225
225
|
* type: object
|
|
226
226
|
* externalDocs:
|
|
227
227
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
228
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
228
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
229
229
|
*/
|
|
230
230
|
// eslint-disable-next-line max-len
|
|
231
231
|
var AdminPostProductCategoriesCategoryReq = /** @class */ (function (_super) {
|
|
@@ -309,12 +309,12 @@ declare class ProductVariantReq {
|
|
|
309
309
|
* type: object
|
|
310
310
|
* externalDocs:
|
|
311
311
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
312
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
312
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
313
313
|
* prices:
|
|
314
314
|
* type: array
|
|
315
315
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
316
316
|
* externalDocs:
|
|
317
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
317
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
318
318
|
* description: Product variant pricing.
|
|
319
319
|
* items:
|
|
320
320
|
* type: object
|
|
@@ -343,7 +343,7 @@ declare class ProductVariantReq {
|
|
|
343
343
|
* type: array
|
|
344
344
|
* description: An array of Product Option values that the variant corresponds to. The option values should be added into the array in the same index as in the `options` field of the product.
|
|
345
345
|
* externalDocs:
|
|
346
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#create-a-product
|
|
346
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#create-a-product
|
|
347
347
|
* description: Example of how to create a product with options and variants
|
|
348
348
|
* items:
|
|
349
349
|
* type: object
|
|
@@ -382,7 +382,7 @@ declare class ProductVariantReq {
|
|
|
382
382
|
* type: object
|
|
383
383
|
* externalDocs:
|
|
384
384
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
385
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
385
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
386
386
|
*/
|
|
387
387
|
export declare class AdminPostProductsReq {
|
|
388
388
|
title: string;
|
|
@@ -660,12 +660,12 @@ var ProductVariantReq = /** @class */ (function () {
|
|
|
660
660
|
* type: object
|
|
661
661
|
* externalDocs:
|
|
662
662
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
663
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
663
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
664
664
|
* prices:
|
|
665
665
|
* type: array
|
|
666
666
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
667
667
|
* externalDocs:
|
|
668
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
668
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
669
669
|
* description: Product variant pricing.
|
|
670
670
|
* items:
|
|
671
671
|
* type: object
|
|
@@ -694,7 +694,7 @@ var ProductVariantReq = /** @class */ (function () {
|
|
|
694
694
|
* type: array
|
|
695
695
|
* description: An array of Product Option values that the variant corresponds to. The option values should be added into the array in the same index as in the `options` field of the product.
|
|
696
696
|
* externalDocs:
|
|
697
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#create-a-product
|
|
697
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#create-a-product
|
|
698
698
|
* description: Example of how to create a product with options and variants
|
|
699
699
|
* items:
|
|
700
700
|
* type: object
|
|
@@ -733,7 +733,7 @@ var ProductVariantReq = /** @class */ (function () {
|
|
|
733
733
|
* type: object
|
|
734
734
|
* externalDocs:
|
|
735
735
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
736
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
736
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
737
737
|
*/
|
|
738
738
|
var AdminPostProductsReq = /** @class */ (function () {
|
|
739
739
|
function AdminPostProductsReq() {
|
|
@@ -199,12 +199,12 @@ declare class ProductVariantOptionReq {
|
|
|
199
199
|
* type: object
|
|
200
200
|
* externalDocs:
|
|
201
201
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
202
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
202
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
203
203
|
* prices:
|
|
204
204
|
* type: array
|
|
205
205
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
206
206
|
* externalDocs:
|
|
207
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
207
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
208
208
|
* description: Product variant pricing.
|
|
209
209
|
* items:
|
|
210
210
|
* type: object
|
|
@@ -355,12 +355,12 @@ var ProductVariantOptionReq = /** @class */ (function () {
|
|
|
355
355
|
* type: object
|
|
356
356
|
* externalDocs:
|
|
357
357
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
358
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
358
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
359
359
|
* prices:
|
|
360
360
|
* type: array
|
|
361
361
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
362
362
|
* externalDocs:
|
|
363
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
363
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
364
364
|
* description: Product variant pricing.
|
|
365
365
|
* items:
|
|
366
366
|
* type: object
|
|
@@ -359,7 +359,9 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
359
359
|
_e.label = 6;
|
|
360
360
|
case 6:
|
|
361
361
|
shouldSetAvailability = relations === null || relations === void 0 ? void 0 : relations.includes("variants");
|
|
362
|
-
if (!(inventoryService &&
|
|
362
|
+
if (!(inventoryService &&
|
|
363
|
+
shouldSetAvailability &&
|
|
364
|
+
featureFlagRouter.isFeatureEnabled(utils_2.SalesChannelFeatureFlag.key))) return [3 /*break*/, 9];
|
|
363
365
|
return [4 /*yield*/, salesChannelService.listAndCount({}, { select: ["id"] })];
|
|
364
366
|
case 7:
|
|
365
367
|
_d = __read.apply(void 0, [_e.sent(), 1]), salesChannelsIds = _d[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-products.js","sourceRoot":"","sources":["../../../../../src/api/routes/admin/products/list-products.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mDAAgE;AAQhE,2CAAgD;AAGhD,
|
|
1
|
+
{"version":3,"file":"list-products.js","sourceRoot":"","sources":["../../../../../src/api/routes/admin/products/list-products.ts"],"names":[],"mappings":"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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* description: "Set the metadata of a Product. It can be any key-value pair, which allows adding custom data to a product."
|
|
6
6
|
* externalDocs:
|
|
7
7
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
8
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
8
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
9
9
|
* x-authenticated: true
|
|
10
10
|
* parameters:
|
|
11
11
|
* - (path) id=* {string} The ID of the Product.
|
|
@@ -72,7 +72,7 @@ var validator_1 = require("../../../../utils/validator");
|
|
|
72
72
|
* description: "Set the metadata of a Product. It can be any key-value pair, which allows adding custom data to a product."
|
|
73
73
|
* externalDocs:
|
|
74
74
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
75
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
75
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
76
76
|
* x-authenticated: true
|
|
77
77
|
* parameters:
|
|
78
78
|
* - (path) id=* {string} The ID of the Product.
|
|
@@ -269,12 +269,12 @@ declare class ProductVariantReq {
|
|
|
269
269
|
* type: object
|
|
270
270
|
* externalDocs:
|
|
271
271
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
272
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
272
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
273
273
|
* prices:
|
|
274
274
|
* type: array
|
|
275
275
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
276
276
|
* externalDocs:
|
|
277
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
277
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
278
278
|
* description: Product variant pricing.
|
|
279
279
|
* items:
|
|
280
280
|
* type: object
|
|
@@ -346,7 +346,7 @@ declare class ProductVariantReq {
|
|
|
346
346
|
* type: object
|
|
347
347
|
* externalDocs:
|
|
348
348
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
349
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
349
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
350
350
|
*/
|
|
351
351
|
export declare class AdminPostProductsProductReq {
|
|
352
352
|
title?: string;
|
|
@@ -649,12 +649,12 @@ var ProductVariantReq = /** @class */ (function () {
|
|
|
649
649
|
* type: object
|
|
650
650
|
* externalDocs:
|
|
651
651
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
652
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
652
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
653
653
|
* prices:
|
|
654
654
|
* type: array
|
|
655
655
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
656
656
|
* externalDocs:
|
|
657
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
657
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
658
658
|
* description: Product variant pricing.
|
|
659
659
|
* items:
|
|
660
660
|
* type: object
|
|
@@ -726,7 +726,7 @@ var ProductVariantReq = /** @class */ (function () {
|
|
|
726
726
|
* type: object
|
|
727
727
|
* externalDocs:
|
|
728
728
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
729
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
729
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
730
730
|
*/
|
|
731
731
|
var AdminPostProductsProductReq = /** @class */ (function () {
|
|
732
732
|
function AdminPostProductsProductReq() {
|
|
@@ -180,12 +180,12 @@ declare class ProductVariantOptionReq {
|
|
|
180
180
|
* type: object
|
|
181
181
|
* externalDocs:
|
|
182
182
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
183
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
183
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
184
184
|
* prices:
|
|
185
185
|
* type: array
|
|
186
186
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
187
187
|
* externalDocs:
|
|
188
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
188
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
189
189
|
* description: Product variant pricing.
|
|
190
190
|
* items:
|
|
191
191
|
* type: object
|
|
@@ -328,12 +328,12 @@ var ProductVariantOptionReq = /** @class */ (function () {
|
|
|
328
328
|
* type: object
|
|
329
329
|
* externalDocs:
|
|
330
330
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
331
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
331
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
332
332
|
* prices:
|
|
333
333
|
* type: array
|
|
334
334
|
* description: An array of product variant prices. A product variant can have different prices for each region or currency code.
|
|
335
335
|
* externalDocs:
|
|
336
|
-
* url: https://docs.medusajs.com/modules/products/admin/manage-products#product-variant-prices
|
|
336
|
+
* url: https://docs.medusajs.com/v1/modules/products/admin/manage-products#product-variant-prices
|
|
337
337
|
* description: Product variant pricing.
|
|
338
338
|
* items:
|
|
339
339
|
* type: object
|
|
@@ -113,7 +113,7 @@ export default _default;
|
|
|
113
113
|
* description: >-
|
|
114
114
|
* If set to `true`, the Medusa backend will automatically calculate taxes for carts in this region. If set to `false`, the taxes must be calculated manually.
|
|
115
115
|
* externalDocs:
|
|
116
|
-
* url: https://docs.medusajs.com/modules/taxes/storefront/manual-calculation
|
|
116
|
+
* url: https://docs.medusajs.com/v1/modules/taxes/storefront/manual-calculation
|
|
117
117
|
* description: How to calculate taxes in a storefront.
|
|
118
118
|
* type: boolean
|
|
119
119
|
* gift_cards_taxable:
|
|
@@ -201,7 +201,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
201
201
|
* description: >-
|
|
202
202
|
* If set to `true`, the Medusa backend will automatically calculate taxes for carts in this region. If set to `false`, the taxes must be calculated manually.
|
|
203
203
|
* externalDocs:
|
|
204
|
-
* url: https://docs.medusajs.com/modules/taxes/storefront/manual-calculation
|
|
204
|
+
* url: https://docs.medusajs.com/v1/modules/taxes/storefront/manual-calculation
|
|
205
205
|
* description: How to calculate taxes in a storefront.
|
|
206
206
|
* type: boolean
|
|
207
207
|
* gift_cards_taxable:
|
|
@@ -124,7 +124,7 @@ export default _default;
|
|
|
124
124
|
* type: object
|
|
125
125
|
* externalDocs:
|
|
126
126
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
127
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
127
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
128
128
|
*/
|
|
129
129
|
export declare class AdminPostReservationsReq {
|
|
130
130
|
line_item_id?: string;
|
|
@@ -208,7 +208,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
208
208
|
* type: object
|
|
209
209
|
* externalDocs:
|
|
210
210
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
211
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
211
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
212
212
|
*/
|
|
213
213
|
var AdminPostReservationsReq = /** @class */ (function () {
|
|
214
214
|
function AdminPostReservationsReq() {
|
|
@@ -108,7 +108,7 @@ export default _default;
|
|
|
108
108
|
* type: object
|
|
109
109
|
* externalDocs:
|
|
110
110
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
111
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
111
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
112
112
|
*/
|
|
113
113
|
export declare class AdminPostReservationsReservationReq {
|
|
114
114
|
quantity?: number;
|
|
@@ -195,7 +195,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
195
195
|
* type: object
|
|
196
196
|
* externalDocs:
|
|
197
197
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
198
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
198
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
199
199
|
*/
|
|
200
200
|
var AdminPostReservationsReservationReq = /** @class */ (function () {
|
|
201
201
|
function AdminPostReservationsReservationReq() {
|
|
@@ -116,7 +116,7 @@ export default _default;
|
|
|
116
116
|
* type: object
|
|
117
117
|
* externalDocs:
|
|
118
118
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
119
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
119
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
120
120
|
*/
|
|
121
121
|
export declare class AdminPostReturnReasonsReq {
|
|
122
122
|
value: string;
|
|
@@ -197,7 +197,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
197
197
|
* type: object
|
|
198
198
|
* externalDocs:
|
|
199
199
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
200
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
200
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
201
201
|
*/
|
|
202
202
|
var AdminPostReturnReasonsReq = /** @class */ (function () {
|
|
203
203
|
function AdminPostReturnReasonsReq() {
|
|
@@ -114,7 +114,7 @@ export default _default;
|
|
|
114
114
|
* type: object
|
|
115
115
|
* externalDocs:
|
|
116
116
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
117
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
117
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
118
118
|
*/
|
|
119
119
|
export declare class AdminPostReturnReasonsReasonReq {
|
|
120
120
|
label?: string;
|
|
@@ -197,7 +197,7 @@ exports.default = (function (req, res) { return __awaiter(void 0, void 0, void 0
|
|
|
197
197
|
* type: object
|
|
198
198
|
* externalDocs:
|
|
199
199
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
200
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
200
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
201
201
|
*/
|
|
202
202
|
var AdminPostReturnReasonsReasonReq = /** @class */ (function () {
|
|
203
203
|
function AdminPostReturnReasonsReasonReq() {
|
|
@@ -183,7 +183,7 @@ declare class OptionRequirement {
|
|
|
183
183
|
* type: object
|
|
184
184
|
* externalDocs:
|
|
185
185
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
186
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
186
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
187
187
|
* includes_tax:
|
|
188
188
|
* description: "Tax included in prices of shipping option"
|
|
189
189
|
* x-featureFlag: "tax_inclusive_pricing"
|
|
@@ -289,7 +289,7 @@ var OptionRequirement = /** @class */ (function () {
|
|
|
289
289
|
* type: object
|
|
290
290
|
* externalDocs:
|
|
291
291
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
292
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
292
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
293
293
|
* includes_tax:
|
|
294
294
|
* description: "Tax included in prices of shipping option"
|
|
295
295
|
* x-featureFlag: "tax_inclusive_pricing"
|
|
@@ -142,7 +142,7 @@ declare class OptionRequirement {
|
|
|
142
142
|
* type: object
|
|
143
143
|
* externalDocs:
|
|
144
144
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
145
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
145
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
146
146
|
* requirements:
|
|
147
147
|
* description: "The requirements that must be satisfied for the Shipping Option to be available."
|
|
148
148
|
* type: array
|
|
@@ -244,7 +244,7 @@ var OptionRequirement = /** @class */ (function () {
|
|
|
244
244
|
* type: object
|
|
245
245
|
* externalDocs:
|
|
246
246
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
247
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
247
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
248
248
|
* requirements:
|
|
249
249
|
* description: "The requirements that must be satisfied for the Shipping Option to be available."
|
|
250
250
|
* type: array
|
|
@@ -111,7 +111,7 @@ export default _default;
|
|
|
111
111
|
* type: object
|
|
112
112
|
* externalDocs:
|
|
113
113
|
* description: "Learn about the metadata attribute, and how to delete and update it."
|
|
114
|
-
* url: "https://docs.medusajs.com/development/entities/overview#metadata-attribute"
|
|
114
|
+
* url: "https://docs.medusajs.com/v1/development/entities/overview#metadata-attribute"
|
|
115
115
|
*/
|
|
116
116
|
export declare class AdminPostShippingProfilesReq {
|
|
117
117
|
name: string;
|