@medusajs/types 3.0.0-snapshot-20250410112222 → 3.0.0-snapshot-20251104011621
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/dist/analytics/index.d.ts +5 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +21 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/mutations.d.ts +71 -0
- package/dist/analytics/mutations.d.ts.map +1 -0
- package/dist/{index-data/sotrage-provider.js → analytics/mutations.js} +1 -1
- package/dist/analytics/mutations.js.map +1 -0
- package/dist/analytics/provider.d.ts +41 -0
- package/dist/analytics/provider.d.ts.map +1 -0
- package/dist/analytics/provider.js +3 -0
- package/dist/analytics/provider.js.map +1 -0
- package/dist/analytics/providers/index.d.ts +3 -0
- package/dist/analytics/providers/index.d.ts.map +1 -0
- package/dist/analytics/providers/index.js +19 -0
- package/dist/analytics/providers/index.js.map +1 -0
- package/dist/analytics/providers/local.d.ts +3 -0
- package/dist/analytics/providers/local.d.ts.map +1 -0
- package/dist/analytics/providers/local.js +3 -0
- package/dist/analytics/providers/local.js.map +1 -0
- package/dist/analytics/providers/posthog.d.ts +11 -0
- package/dist/analytics/providers/posthog.d.ts.map +1 -0
- package/dist/analytics/providers/posthog.js +3 -0
- package/dist/analytics/providers/posthog.js.map +1 -0
- package/dist/analytics/service.d.ts +51 -0
- package/dist/analytics/service.d.ts.map +1 -0
- package/dist/analytics/service.js +3 -0
- package/dist/analytics/service.js.map +1 -0
- package/dist/auth/provider.d.ts +1 -7
- package/dist/auth/provider.d.ts.map +1 -1
- package/dist/auth/service.d.ts +50 -0
- package/dist/auth/service.d.ts.map +1 -1
- package/dist/bundles.d.ts +3 -0
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +21 -8
- package/dist/bundles.js.map +1 -1
- package/dist/caching/index.d.ts +532 -0
- package/dist/caching/index.d.ts.map +1 -0
- package/dist/caching/index.js +3 -0
- package/dist/caching/index.js.map +1 -0
- package/dist/cart/common.d.ts +5 -1
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +5 -1
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +70 -0
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/cart/workflows.d.ts +25 -1
- package/dist/cart/workflows.d.ts.map +1 -1
- package/dist/common/common.d.ts +10 -0
- package/dist/common/common.d.ts.map +1 -1
- package/dist/common/config-file.d.ts +8 -0
- package/dist/common/config-file.d.ts.map +1 -0
- package/dist/common/config-file.js +3 -0
- package/dist/common/config-file.js.map +1 -0
- package/dist/common/config-module.d.ts +230 -70
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -0
- package/dist/common/index.js.map +1 -1
- package/dist/common/medusa-container.d.ts +1 -1
- package/dist/common/medusa-container.d.ts.map +1 -1
- package/dist/customer/common.d.ts +2 -2
- package/dist/customer/mutations.d.ts +2 -2
- package/dist/customer/service.d.ts +56 -0
- package/dist/customer/service.d.ts.map +1 -1
- package/dist/dal/index.d.ts +1 -1
- package/dist/dal/index.d.ts.map +1 -1
- package/dist/dal/repository-service.d.ts +1 -1
- package/dist/dal/repository-service.d.ts.map +1 -1
- package/dist/event-bus/common.d.ts +4 -0
- package/dist/event-bus/common.d.ts.map +1 -1
- package/dist/event-bus/event-bus-module.d.ts +32 -2
- package/dist/event-bus/event-bus-module.d.ts.map +1 -1
- package/dist/file/common.d.ts +19 -0
- package/dist/file/common.d.ts.map +1 -1
- package/dist/file/mutations.d.ts +17 -2
- package/dist/file/mutations.d.ts.map +1 -1
- package/dist/file/provider.d.ts +67 -5
- package/dist/file/provider.d.ts.map +1 -1
- package/dist/file/service.d.ts +80 -9
- package/dist/file/service.d.ts.map +1 -1
- package/dist/fulfillment/common/address.d.ts +1 -1
- package/dist/fulfillment/common/geo-zone.d.ts +2 -2
- package/dist/fulfillment/common/order.d.ts +1 -1
- package/dist/fulfillment/common/shipping-option.d.ts +1 -1
- package/dist/fulfillment/mutations/fulfillment-address.d.ts +1 -1
- package/dist/fulfillment/mutations/geo-zone.d.ts +6 -6
- package/dist/fulfillment/mutations/shipping-option-type.d.ts +7 -6
- package/dist/fulfillment/mutations/shipping-option-type.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +2 -2
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/provider.d.ts +1 -0
- package/dist/fulfillment/provider.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +325 -3
- package/dist/fulfillment/service.d.ts.map +1 -1
- package/dist/fulfillment/workflows.d.ts +26 -0
- package/dist/fulfillment/workflows.d.ts.map +1 -1
- package/dist/http/api-key/admin/payloads.d.ts +3 -0
- package/dist/http/api-key/admin/payloads.d.ts.map +1 -1
- package/dist/http/campaign/admin/payloads.d.ts +16 -31
- package/dist/http/campaign/admin/payloads.d.ts.map +1 -1
- package/dist/http/campaign/admin/responses.d.ts +10 -0
- package/dist/http/campaign/admin/responses.d.ts.map +1 -1
- package/dist/http/cart/common.d.ts +58 -20
- package/dist/http/cart/common.d.ts.map +1 -1
- package/dist/http/cart/store/payloads.d.ts +3 -1
- package/dist/http/cart/store/payloads.d.ts.map +1 -1
- package/dist/http/claim/admin/payloads.d.ts +6 -2
- package/dist/http/claim/admin/payloads.d.ts.map +1 -1
- package/dist/http/claim/admin/queries.d.ts +37 -0
- package/dist/http/claim/admin/queries.d.ts.map +1 -1
- package/dist/http/collection/store/queries.d.ts +4 -2
- package/dist/http/collection/store/queries.d.ts.map +1 -1
- package/dist/http/common/request.d.ts +4 -0
- package/dist/http/common/request.d.ts.map +1 -1
- package/dist/http/common/response.d.ts +7 -0
- package/dist/http/common/response.d.ts.map +1 -1
- package/dist/http/customer/admin/queries.d.ts +2 -1
- package/dist/http/customer/admin/queries.d.ts.map +1 -1
- package/dist/http/customer/common.d.ts +4 -4
- package/dist/http/exchange/admin/payloads.d.ts +48 -20
- package/dist/http/exchange/admin/payloads.d.ts.map +1 -1
- package/dist/http/exchange/admin/payloads.js +0 -7
- package/dist/http/exchange/admin/payloads.js.map +1 -1
- package/dist/http/exchange/admin/queries.d.ts +42 -2
- package/dist/http/exchange/admin/queries.d.ts.map +1 -1
- package/dist/http/file/admin/payloads.d.ts +18 -0
- package/dist/http/file/admin/payloads.d.ts.map +1 -1
- package/dist/http/file/admin/responses.d.ts +27 -0
- package/dist/http/file/admin/responses.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/entitites.d.ts +1 -1
- package/dist/http/fulfillment/admin/index.d.ts +0 -1
- package/dist/http/fulfillment/admin/index.d.ts.map +1 -1
- package/dist/http/fulfillment/admin/index.js +0 -1
- package/dist/http/fulfillment/admin/index.js.map +1 -1
- package/dist/http/fulfillment/admin/payloads.d.ts +1 -1
- package/dist/http/fulfillment/store/index.d.ts +99 -0
- package/dist/http/fulfillment/store/index.d.ts.map +1 -1
- package/dist/http/fulfillment-provider/admin/queries.d.ts +1 -1
- package/dist/http/fulfillment-set/admin/entities.d.ts +1 -1
- package/dist/http/fulfillment-set/admin/index.d.ts +1 -0
- package/dist/http/fulfillment-set/admin/index.d.ts.map +1 -1
- package/dist/http/fulfillment-set/admin/index.js +1 -0
- package/dist/http/fulfillment-set/admin/index.js.map +1 -1
- package/dist/http/fulfillment-set/admin/payloads.d.ts +6 -6
- package/dist/http/index/admin/payload.d.ts +4 -0
- package/dist/http/index/admin/payload.d.ts.map +1 -0
- package/dist/http/index/admin/payload.js +3 -0
- package/dist/http/index/admin/payload.js.map +1 -0
- package/dist/http/index/admin/responses.d.ts +5 -0
- package/dist/http/index/admin/responses.d.ts.map +1 -0
- package/dist/http/index/admin/responses.js +3 -0
- package/dist/http/index/admin/responses.js.map +1 -0
- package/dist/http/index/index.d.ts +3 -0
- package/dist/http/index/index.d.ts.map +1 -0
- package/dist/http/index/index.js +19 -0
- package/dist/http/index/index.js.map +1 -0
- package/dist/http/index.d.ts +4 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +4 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/inventory/admin/queries.d.ts +1 -1
- package/dist/http/inventory/admin/queries.d.ts.map +1 -1
- package/dist/http/order/admin/payload.d.ts +28 -1
- package/dist/http/order/admin/payload.d.ts.map +1 -1
- package/dist/http/order/admin/queries.d.ts +24 -8
- package/dist/http/order/admin/queries.d.ts.map +1 -1
- package/dist/http/order/common.d.ts +18 -2
- package/dist/http/order/common.d.ts.map +1 -1
- package/dist/http/payment/admin/entities.d.ts +1 -3
- package/dist/http/payment/admin/entities.d.ts.map +1 -1
- package/dist/http/payment/admin/payloads.d.ts +4 -9
- package/dist/http/payment/admin/payloads.d.ts.map +1 -1
- package/dist/http/payment/admin/queries.d.ts +1 -1
- package/dist/http/payment/admin/queries.d.ts.map +1 -1
- package/dist/http/payment/admin/responses.d.ts +2 -2
- package/dist/http/payment/admin/responses.d.ts.map +1 -1
- package/dist/http/payment/common.d.ts +2 -27
- package/dist/http/payment/common.d.ts.map +1 -1
- package/dist/http/payment/store/queries.d.ts +2 -1
- package/dist/http/payment/store/queries.d.ts.map +1 -1
- package/dist/http/price-list/admin/payloads.d.ts +3 -3
- package/dist/http/price-list/admin/payloads.d.ts.map +1 -1
- package/dist/http/product/admin/entitites.d.ts +16 -0
- package/dist/http/product/admin/entitites.d.ts.map +1 -1
- package/dist/http/product/admin/payloads.d.ts +67 -0
- package/dist/http/product/admin/payloads.d.ts.map +1 -1
- package/dist/http/product/admin/queries.d.ts +25 -1
- package/dist/http/product/admin/queries.d.ts.map +1 -1
- package/dist/http/product/admin/responses.d.ts +22 -0
- package/dist/http/product/admin/responses.d.ts.map +1 -1
- package/dist/http/product/common.d.ts +5 -1
- package/dist/http/product/common.d.ts.map +1 -1
- package/dist/http/product/store/queries.d.ts +3 -3
- package/dist/http/product/store/queries.d.ts.map +1 -1
- package/dist/http/product/store/responses.d.ts +13 -1
- package/dist/http/product/store/responses.d.ts.map +1 -1
- package/dist/http/promotion/admin/payloads.d.ts +8 -0
- package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
- package/dist/http/promotion/admin/queries.d.ts +34 -5
- package/dist/http/promotion/admin/queries.d.ts.map +1 -1
- package/dist/http/promotion/common.d.ts +1 -0
- package/dist/http/promotion/common.d.ts.map +1 -1
- package/dist/http/refund-reason/admin/entities.d.ts +4 -0
- package/dist/http/refund-reason/admin/entities.d.ts.map +1 -0
- package/dist/http/refund-reason/admin/entities.js +3 -0
- package/dist/http/refund-reason/admin/entities.js.map +1 -0
- package/dist/http/refund-reason/admin/index.d.ts +5 -0
- package/dist/http/refund-reason/admin/index.d.ts.map +1 -0
- package/dist/http/refund-reason/admin/index.js +21 -0
- package/dist/http/refund-reason/admin/index.js.map +1 -0
- package/dist/http/refund-reason/admin/payloads.d.ts +30 -0
- package/dist/http/refund-reason/admin/payloads.d.ts.map +1 -0
- package/dist/http/refund-reason/admin/payloads.js +3 -0
- package/dist/http/refund-reason/admin/payloads.js.map +1 -0
- package/dist/http/refund-reason/admin/queries.d.ts +8 -0
- package/dist/http/refund-reason/admin/queries.d.ts.map +1 -0
- package/dist/http/refund-reason/admin/queries.js.map +1 -0
- package/dist/http/refund-reason/admin/responses.d.ts +18 -0
- package/dist/http/refund-reason/admin/responses.d.ts.map +1 -0
- package/dist/http/refund-reason/admin/responses.js +3 -0
- package/dist/http/refund-reason/admin/responses.js.map +1 -0
- package/dist/http/refund-reason/common.d.ts +65 -0
- package/dist/http/refund-reason/common.d.ts.map +1 -0
- package/dist/http/refund-reason/common.js +3 -0
- package/dist/http/refund-reason/common.js.map +1 -0
- package/dist/http/refund-reason/index.d.ts +2 -0
- package/dist/http/refund-reason/index.d.ts.map +1 -0
- package/dist/http/refund-reason/index.js +18 -0
- package/dist/http/refund-reason/index.js.map +1 -0
- package/dist/http/region/store/queries.d.ts +2 -1
- package/dist/http/region/store/queries.d.ts.map +1 -1
- package/dist/http/reservation/admin/queries.d.ts +8 -8
- package/dist/http/reservation/admin/queries.d.ts.map +1 -1
- package/dist/http/return/admin/payloads.d.ts +20 -0
- package/dist/http/return/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/payloads.d.ts +53 -22
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/queries.d.ts +31 -1
- package/dist/http/shipping-option/admin/queries.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/responses.d.ts +16 -1
- package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/store/responses.d.ts +2 -2
- package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/payloads.d.ts +1 -1
- package/dist/http/tax-provider/admin/entities.d.ts +11 -0
- package/dist/http/tax-provider/admin/entities.d.ts.map +1 -0
- package/dist/http/tax-provider/admin/entities.js +3 -0
- package/dist/http/tax-provider/admin/entities.js.map +1 -0
- package/dist/http/tax-provider/admin/index.d.ts +4 -0
- package/dist/http/tax-provider/admin/index.d.ts.map +1 -0
- package/dist/http/tax-provider/admin/index.js +20 -0
- package/dist/http/tax-provider/admin/index.js.map +1 -0
- package/dist/http/tax-provider/admin/queries.d.ts +13 -0
- package/dist/http/tax-provider/admin/queries.d.ts.map +1 -0
- package/dist/http/tax-provider/admin/queries.js +3 -0
- package/dist/http/tax-provider/admin/queries.js.map +1 -0
- package/dist/http/tax-provider/admin/responses.d.ts +9 -0
- package/dist/http/tax-provider/admin/responses.d.ts.map +1 -0
- package/dist/http/tax-provider/admin/responses.js +3 -0
- package/dist/http/tax-provider/admin/responses.js.map +1 -0
- package/dist/http/tax-provider/index.d.ts +2 -0
- package/dist/http/tax-provider/index.d.ts.map +1 -0
- package/dist/http/tax-provider/index.js +18 -0
- package/dist/http/tax-provider/index.js.map +1 -0
- package/dist/http/tax-rate/admin/payloads.d.ts +1 -2
- package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -1
- package/dist/http/tax-region/admin/entities.d.ts +6 -2
- package/dist/http/tax-region/admin/entities.d.ts.map +1 -1
- package/dist/http/tax-region/admin/payloads.d.ts +22 -1
- package/dist/http/tax-region/admin/payloads.d.ts.map +1 -1
- package/dist/http/tax-region/admin/queries.d.ts +1 -1
- package/dist/http/view-configuration/admin/columns.d.ts +72 -0
- package/dist/http/view-configuration/admin/columns.d.ts.map +1 -0
- package/dist/http/view-configuration/admin/columns.js +3 -0
- package/dist/http/view-configuration/admin/columns.js.map +1 -0
- package/dist/http/view-configuration/admin/index.d.ts +5 -0
- package/dist/http/view-configuration/admin/index.d.ts.map +1 -0
- package/dist/http/view-configuration/admin/index.js +21 -0
- package/dist/http/view-configuration/admin/index.js.map +1 -0
- package/dist/http/view-configuration/admin/payloads.d.ts +103 -0
- package/dist/http/view-configuration/admin/payloads.d.ts.map +1 -0
- package/dist/http/view-configuration/admin/payloads.js +3 -0
- package/dist/http/view-configuration/admin/payloads.js.map +1 -0
- package/dist/http/view-configuration/admin/queries.d.ts +35 -0
- package/dist/http/view-configuration/admin/queries.d.ts.map +1 -0
- package/dist/http/view-configuration/admin/queries.js +3 -0
- package/dist/http/view-configuration/admin/queries.js.map +1 -0
- package/dist/http/view-configuration/admin/responses.d.ts +78 -0
- package/dist/http/view-configuration/admin/responses.d.ts.map +1 -0
- package/dist/http/view-configuration/admin/responses.js +3 -0
- package/dist/http/view-configuration/admin/responses.js.map +1 -0
- package/dist/http/view-configuration/index.d.ts +2 -0
- package/dist/http/view-configuration/index.d.ts.map +1 -0
- package/dist/http/view-configuration/index.js +18 -0
- package/dist/http/view-configuration/index.js.map +1 -0
- package/dist/http/workflow-execution/admin/entities.d.ts +16 -1
- package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/queries.d.ts +4 -0
- package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
- package/dist/index-data/common.d.ts +11 -0
- package/dist/index-data/common.d.ts.map +1 -1
- package/dist/index-data/index-operator-map.d.ts +14 -10
- package/dist/index-data/index-operator-map.d.ts.map +1 -1
- package/dist/index-data/index.d.ts +1 -1
- package/dist/index-data/index.js +1 -1
- package/dist/index-data/query-config/query-input-config-fields.d.ts +3 -1
- package/dist/index-data/query-config/query-input-config-fields.d.ts.map +1 -1
- package/dist/index-data/query-config/query-input-config-filters.d.ts +1 -1
- package/dist/index-data/query-config/query-input-config-filters.d.ts.map +1 -1
- package/dist/index-data/query-config/query-input-config.d.ts +50 -6
- package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
- package/dist/index-data/service.d.ts +24 -0
- package/dist/index-data/service.d.ts.map +1 -1
- package/dist/index-data/{sotrage-provider.d.ts → storage-provider.d.ts} +1 -1
- package/dist/index-data/{sotrage-provider.d.ts.map → storage-provider.d.ts.map} +1 -1
- package/dist/index-data/storage-provider.js +3 -0
- package/dist/index-data/storage-provider.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/inventory/service.d.ts +63 -0
- package/dist/inventory/service.d.ts.map +1 -1
- package/dist/joiner/index.d.ts +43 -0
- package/dist/joiner/index.d.ts.map +1 -1
- package/dist/link-modules/service.d.ts +1 -1
- package/dist/link-modules/service.d.ts.map +1 -1
- package/dist/logger/index.d.ts +16 -13
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +5 -0
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query-object-from-string.d.ts +50 -3
- package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query.d.ts +3 -5
- package/dist/modules-sdk/remote-query.d.ts.map +1 -1
- package/dist/modules-sdk/to-remote-query.d.ts +13 -3
- package/dist/modules-sdk/to-remote-query.d.ts.map +1 -1
- package/dist/notification/common.d.ts +1 -1
- package/dist/notification/mutations.d.ts +6 -2
- package/dist/notification/mutations.d.ts.map +1 -1
- package/dist/notification/service.d.ts +21 -0
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/order/common.d.ts +23 -30
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +18 -14
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +186 -4
- package/dist/order/service.d.ts.map +1 -1
- package/dist/payment/common.d.ts +4 -0
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/mutations.d.ts +17 -1
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +67 -10
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/service.d.ts +69 -3
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/pricing/common/price-preference.d.ts +4 -4
- package/dist/pricing/common/price-preference.d.ts.map +1 -1
- package/dist/pricing/common/price-rule.d.ts +8 -4
- package/dist/pricing/common/price-rule.d.ts.map +1 -1
- package/dist/pricing/service.d.ts +98 -2
- package/dist/pricing/service.d.ts.map +1 -1
- package/dist/product/common.d.ts +30 -14
- package/dist/product/common.d.ts.map +1 -1
- package/dist/product/service.d.ts +214 -5
- package/dist/product/service.d.ts.map +1 -1
- package/dist/promotion/common/campaign-budget.d.ts +22 -1
- package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
- package/dist/promotion/common/campaing-budget-usage.d.ts +58 -0
- package/dist/promotion/common/campaing-budget-usage.d.ts.map +1 -0
- package/dist/promotion/common/campaing-budget-usage.js +3 -0
- package/dist/promotion/common/campaing-budget-usage.js.map +1 -0
- package/dist/promotion/common/compute-actions.d.ts +29 -1
- package/dist/promotion/common/compute-actions.d.ts.map +1 -1
- package/dist/promotion/common/index.d.ts +1 -0
- package/dist/promotion/common/index.d.ts.map +1 -1
- package/dist/promotion/common/index.js +1 -0
- package/dist/promotion/common/index.js.map +1 -1
- package/dist/promotion/common/promotion.d.ts +12 -0
- package/dist/promotion/common/promotion.d.ts.map +1 -1
- package/dist/promotion/mutations.d.ts +10 -0
- package/dist/promotion/mutations.d.ts.map +1 -1
- package/dist/promotion/service.d.ts +61 -4
- package/dist/promotion/service.d.ts.map +1 -1
- package/dist/region/service.d.ts +42 -0
- package/dist/region/service.d.ts.map +1 -1
- package/dist/settings/common.d.ts +151 -0
- package/dist/settings/common.d.ts.map +1 -0
- package/dist/settings/common.js +3 -0
- package/dist/settings/common.js.map +1 -0
- package/dist/settings/index.d.ts +4 -0
- package/dist/settings/index.d.ts.map +1 -0
- package/dist/settings/index.js +20 -0
- package/dist/settings/index.js.map +1 -0
- package/dist/settings/mutations.d.ts +121 -0
- package/dist/settings/mutations.d.ts.map +1 -0
- package/dist/settings/mutations.js +3 -0
- package/dist/settings/mutations.js.map +1 -0
- package/dist/settings/service.d.ts +25 -0
- package/dist/settings/service.d.ts.map +1 -0
- package/dist/settings/service.js +3 -0
- package/dist/settings/service.js.map +1 -0
- package/dist/shared-context.d.ts +13 -0
- package/dist/shared-context.d.ts.map +1 -1
- package/dist/stock-location/common.d.ts +4 -4
- package/dist/stock-location/service.d.ts +14 -0
- package/dist/stock-location/service.d.ts.map +1 -1
- package/dist/tax/common.d.ts +31 -3
- package/dist/tax/common.d.ts.map +1 -1
- package/dist/tax/mutations.d.ts +39 -2
- package/dist/tax/mutations.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +46 -12
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tax/service.d.ts +109 -5
- package/dist/tax/service.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/workflow/fulfillment/create-fulfillment.d.ts +1 -1
- package/dist/workflow/fulfillment/create-shipping-options.d.ts +9 -2
- package/dist/workflow/fulfillment/create-shipping-options.d.ts.map +1 -1
- package/dist/workflow/fulfillment/update-shipping-options.d.ts +5 -1
- package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +1 -1
- package/dist/workflow/index.js +17 -7
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflow/order/begin-order-edit.d.ts +3 -0
- package/dist/workflow/order/begin-order-edit.d.ts.map +1 -1
- package/dist/workflow/order/request-item-return.d.ts +8 -0
- package/dist/workflow/order/request-item-return.d.ts.map +1 -1
- package/dist/workflow/order/request-transfer.d.ts +16 -0
- package/dist/workflow/order/request-transfer.d.ts.map +1 -1
- package/dist/workflows-sdk/common.d.ts +8 -4
- package/dist/workflows-sdk/common.d.ts.map +1 -1
- package/dist/workflows-sdk/service.d.ts +4 -0
- package/dist/workflows-sdk/service.d.ts.map +1 -1
- package/package.json +5 -11
- package/dist/http/fulfillment/admin/queries.d.ts +0 -7
- package/dist/http/fulfillment/admin/queries.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/queries.js.map +0 -1
- package/dist/index-data/sotrage-provider.js.map +0 -1
- /package/dist/http/{fulfillment → refund-reason}/admin/queries.js +0 -0
package/dist/file/service.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
|
+
import { Readable } from "stream";
|
|
1
2
|
import { IModuleService } from "../modules-sdk";
|
|
2
|
-
import { FileDTO, FilterableFileProps } from "./common";
|
|
3
|
+
import { FileDTO, FilterableFileProps, UploadFileUrlDTO } from "./common";
|
|
3
4
|
import { FindConfig } from "../common";
|
|
4
5
|
import { Context } from "../shared-context";
|
|
5
|
-
import {
|
|
6
|
+
import { IFileProvider } from "./provider";
|
|
7
|
+
import { CreateFileDTO, GetUploadFileUrlDTO } from "./mutations";
|
|
6
8
|
export interface IFileModuleService extends IModuleService {
|
|
9
|
+
/**
|
|
10
|
+
* This method returns the service of the configured File Module Provider in `medusa-config.ts`. This is useful
|
|
11
|
+
* if you want to execute custom methods defined in the provider's service or you need direct access to it.
|
|
12
|
+
*
|
|
13
|
+
* @returns {IFileProvider} An instance of the File Module Provider's service.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* const s3ProviderService = fileModuleService.getProvider()
|
|
17
|
+
* // TODO: perform custom actions with the provider
|
|
18
|
+
*/
|
|
19
|
+
getProvider(): IFileProvider;
|
|
7
20
|
/**
|
|
8
21
|
* This method uploads files to the designated file storage system.
|
|
9
22
|
*
|
|
@@ -15,7 +28,7 @@ export interface IFileModuleService extends IModuleService {
|
|
|
15
28
|
* const [file] = await fileModuleService.createFiles([{
|
|
16
29
|
* filename: "product.png",
|
|
17
30
|
* mimeType: "image/png",
|
|
18
|
-
* content: "somecontent" //
|
|
31
|
+
* content: "somecontent" // binary string
|
|
19
32
|
* }])
|
|
20
33
|
*/
|
|
21
34
|
createFiles(data: CreateFileDTO[], sharedContext?: Context): Promise<FileDTO[]>;
|
|
@@ -30,10 +43,38 @@ export interface IFileModuleService extends IModuleService {
|
|
|
30
43
|
* const file = await fileModuleService.createFiles({
|
|
31
44
|
* filename: "product.png",
|
|
32
45
|
* mimeType: "image/png",
|
|
33
|
-
* content: "somecontent" //
|
|
46
|
+
* content: "somecontent" // binary string
|
|
34
47
|
* })
|
|
35
48
|
*/
|
|
36
49
|
createFiles(data: CreateFileDTO, sharedContext?: Context): Promise<FileDTO>;
|
|
50
|
+
/**
|
|
51
|
+
* This method gets the upload URL for a file.
|
|
52
|
+
*
|
|
53
|
+
* @param {GetUploadFileUrlDTO} data - The file information to get the upload URL for.
|
|
54
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
55
|
+
* @returns {Promise<UploadFileUrlDTO>} The upload URL for the file.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* const uploadInfo = await fileModuleService.getUploadFileUrls({
|
|
59
|
+
* filename: "product.png",
|
|
60
|
+
* mimeType: "image/png",
|
|
61
|
+
* })
|
|
62
|
+
*/
|
|
63
|
+
getUploadFileUrls(data: GetUploadFileUrlDTO, sharedContext?: Context): Promise<UploadFileUrlDTO>;
|
|
64
|
+
/**
|
|
65
|
+
* This method uploads files to the designated file storage system.
|
|
66
|
+
*
|
|
67
|
+
* @param {GetUploadFileUrlDTO[]} data - The file information to get the upload URL for.
|
|
68
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
69
|
+
* @returns {Promise<UploadFileUrlDTO[]>} The upload URLs for the files.
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* const [uploadInfo] = await fileModuleService.getUploadFileUrls([{
|
|
73
|
+
* filename: "product.png",
|
|
74
|
+
* mimeType: "image/png",
|
|
75
|
+
* }])
|
|
76
|
+
*/
|
|
77
|
+
getUploadFileUrls(data: GetUploadFileUrlDTO[], sharedContext?: Context): Promise<UploadFileUrlDTO[]>;
|
|
37
78
|
/**
|
|
38
79
|
* This method deletes files by their IDs.
|
|
39
80
|
*
|
|
@@ -70,32 +111,62 @@ export interface IFileModuleService extends IModuleService {
|
|
|
70
111
|
*/
|
|
71
112
|
retrieveFile(id: string, config?: FindConfig<FileDTO>, sharedContext?: Context): Promise<FileDTO>;
|
|
72
113
|
/**
|
|
73
|
-
* This method is used to
|
|
114
|
+
* This method is used to list files. It only supports filtering by ID.
|
|
74
115
|
*
|
|
75
116
|
* @param {FilterableFileProps} filters - The filters to apply on the retrieved files.
|
|
76
117
|
* @param {FindConfig<FileDTO>} config -
|
|
77
118
|
* The configurations determining how the files are retrieved. Its properties, such as `select` or `relations`, accept the
|
|
78
119
|
* attributes or relations associated with a file.
|
|
79
120
|
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
80
|
-
* @returns {Promise<FileDTO[]>} The list of files.
|
|
121
|
+
* @returns {Promise<FileDTO[]>} The list of files.
|
|
81
122
|
*
|
|
82
123
|
* @example
|
|
83
|
-
* const files = await fileModuleService.listFiles({ id: "file_123" })
|
|
124
|
+
* const files = await fileModuleService.listFiles({ id: ["file_123", "file_456"] })
|
|
84
125
|
*/
|
|
85
126
|
listFiles(filters?: FilterableFileProps, config?: FindConfig<FileDTO>, sharedContext?: Context): Promise<FileDTO[]>;
|
|
86
127
|
/**
|
|
87
|
-
* This method is used to
|
|
128
|
+
* This method is used to list files and their count. It only supports filtering by ID.
|
|
88
129
|
*
|
|
89
130
|
* @param {FilterableFileProps} filters - The filters to apply on the retrieved files.
|
|
90
131
|
* @param {FindConfig<FileDTO>} config -
|
|
91
132
|
* The configurations determining how the files are retrieved. Its properties, such as `select` or `relations`, accept the
|
|
92
133
|
* attributes or relations associated with a file.
|
|
93
134
|
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
94
|
-
* @returns {Promise<[FileDTO[], number]>} The list of files and their count.
|
|
135
|
+
* @returns {Promise<[FileDTO[], number]>} The list of files and their count.
|
|
95
136
|
*
|
|
96
137
|
* @example
|
|
97
138
|
* const [files] = await fileModuleService.listAndCountFiles({ id: "file_123" })
|
|
98
139
|
*/
|
|
99
140
|
listAndCountFiles(filters?: FilterableFileProps, config?: FindConfig<FileDTO>, sharedContext?: Context): Promise<[FileDTO[], number]>;
|
|
141
|
+
/**
|
|
142
|
+
* This method retrieves a file by its ID and returns a stream to download the file. Under the hood, it will use the
|
|
143
|
+
* file provider that was used to upload the file to retrievethe stream.
|
|
144
|
+
*
|
|
145
|
+
* @since 2.8.0
|
|
146
|
+
*
|
|
147
|
+
* @param {string} id - The ID of the file.
|
|
148
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
149
|
+
* @returns {Promise<Readable>} A readable stream of the file contents.
|
|
150
|
+
*
|
|
151
|
+
* @example
|
|
152
|
+
* const stream = await fileModuleService.getDownloadStream("file_123")
|
|
153
|
+
* writeable.pipe(stream)
|
|
154
|
+
*/
|
|
155
|
+
getDownloadStream(id: string, sharedContext?: Context): Promise<Readable>;
|
|
156
|
+
/**
|
|
157
|
+
* This method retrieves a file by its ID and returns the file contents as a buffer. Under the hood, it will use the
|
|
158
|
+
* file provider that was used to upload the file to retrieve the buffer.
|
|
159
|
+
*
|
|
160
|
+
* @since 2.8.0
|
|
161
|
+
*
|
|
162
|
+
* @param {string} id - The ID of the file.
|
|
163
|
+
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
164
|
+
* @returns {Promise<Buffer>} A buffer of the file contents.
|
|
165
|
+
*
|
|
166
|
+
* @example
|
|
167
|
+
* const contents = await fileModuleService.getAsBuffer("file_123")
|
|
168
|
+
* contents.toString('utf-8')
|
|
169
|
+
*/
|
|
170
|
+
getAsBuffer(id: string, sharedContext?: Context): Promise<Buffer>;
|
|
100
171
|
}
|
|
101
172
|
//# sourceMappingURL=service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/file/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/file/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAC1C,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEhE,MAAM,WAAW,kBAAmB,SAAQ,cAAc;IACxD;;;;;;;;;OASG;IACH,WAAW,IAAI,aAAa,CAAA;IAE5B;;;;;;;;;;;;;OAaG;IACH,WAAW,CACT,IAAI,EAAE,aAAa,EAAE,EACrB,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,OAAO,EAAE,CAAC,CAAA;IAErB;;;;;;;;;;;;;OAaG;IAEH,WAAW,CAAC,IAAI,EAAE,aAAa,EAA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E,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAEzE;;;;;;;;;;;;;OAaG;IACH,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAAA;CAClE"}
|
|
@@ -39,7 +39,7 @@ export interface FulfillmentAddressDTO {
|
|
|
39
39
|
*/
|
|
40
40
|
country_code: string | null;
|
|
41
41
|
/**
|
|
42
|
-
* The province of the address.
|
|
42
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province of the address.
|
|
43
43
|
*/
|
|
44
44
|
province: string | null;
|
|
45
45
|
/**
|
|
@@ -20,7 +20,7 @@ export interface GeoZoneDTO {
|
|
|
20
20
|
*/
|
|
21
21
|
country_code: string;
|
|
22
22
|
/**
|
|
23
|
-
* The province code of the geo zone.
|
|
23
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
24
24
|
*/
|
|
25
25
|
province_code: string | null;
|
|
26
26
|
/**
|
|
@@ -65,7 +65,7 @@ export interface FilterableGeoZoneProps extends BaseFilterable<FilterableGeoZone
|
|
|
65
65
|
*/
|
|
66
66
|
country_code?: string | string[];
|
|
67
67
|
/**
|
|
68
|
-
* Filter the geo zones by their province code.
|
|
68
|
+
* Filter the geo zones by their lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code.
|
|
69
69
|
*/
|
|
70
70
|
province_code?: string | string[];
|
|
71
71
|
/**
|
|
@@ -357,7 +357,7 @@ interface FulfillmentOrderAddressDTO {
|
|
|
357
357
|
*/
|
|
358
358
|
country_code?: string;
|
|
359
359
|
/**
|
|
360
|
-
* The province/state of the address.
|
|
360
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province/state of the address.
|
|
361
361
|
*/
|
|
362
362
|
province?: string;
|
|
363
363
|
/**
|
|
@@ -151,7 +151,7 @@ export interface FilterableShippingOptionForContextProps extends FilterableShipp
|
|
|
151
151
|
*/
|
|
152
152
|
country_code?: string;
|
|
153
153
|
/**
|
|
154
|
-
* The province code.
|
|
154
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code.
|
|
155
155
|
*/
|
|
156
156
|
province_code?: string;
|
|
157
157
|
/**
|
|
@@ -35,7 +35,7 @@ export interface CreateFulfillmentAddressDTO {
|
|
|
35
35
|
*/
|
|
36
36
|
country_code?: string | null;
|
|
37
37
|
/**
|
|
38
|
-
* The province of the fulfillment address.
|
|
38
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province of the fulfillment address.
|
|
39
39
|
*/
|
|
40
40
|
province?: string | null;
|
|
41
41
|
/**
|
|
@@ -40,7 +40,7 @@ export interface CreateProvinceGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
|
|
40
40
|
*/
|
|
41
41
|
type: "province";
|
|
42
42
|
/**
|
|
43
|
-
* The province code of the geo zone.
|
|
43
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
44
44
|
*/
|
|
45
45
|
province_code: string;
|
|
46
46
|
}
|
|
@@ -54,7 +54,7 @@ export interface CreateCityGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
|
|
54
54
|
*/
|
|
55
55
|
type: "city";
|
|
56
56
|
/**
|
|
57
|
-
* The province code of the geo zone.
|
|
57
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
58
58
|
*/
|
|
59
59
|
province_code: string;
|
|
60
60
|
/**
|
|
@@ -72,7 +72,7 @@ export interface CreateZipGeoZoneDTO extends CreateGeoZoneBaseDTO {
|
|
|
72
72
|
*/
|
|
73
73
|
type: "zip";
|
|
74
74
|
/**
|
|
75
|
-
* The province code of the geo zone.
|
|
75
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
76
76
|
*/
|
|
77
77
|
province_code: string;
|
|
78
78
|
/**
|
|
@@ -117,7 +117,7 @@ export interface UpdateProvinceGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
|
|
117
117
|
*/
|
|
118
118
|
type: "province";
|
|
119
119
|
/**
|
|
120
|
-
* The province code of the geo zone.
|
|
120
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
121
121
|
*/
|
|
122
122
|
province_code: string;
|
|
123
123
|
}
|
|
@@ -131,7 +131,7 @@ export interface UpdateCityGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
|
|
131
131
|
*/
|
|
132
132
|
type: "city";
|
|
133
133
|
/**
|
|
134
|
-
* The province code of the geo zone.
|
|
134
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
135
135
|
*/
|
|
136
136
|
province_code?: string;
|
|
137
137
|
/**
|
|
@@ -149,7 +149,7 @@ export interface UpdateZipGeoZoneDTO extends UpdateGeoZoneBaseDTO {
|
|
|
149
149
|
*/
|
|
150
150
|
type: "zip";
|
|
151
151
|
/**
|
|
152
|
-
* The province code of the geo zone.
|
|
152
|
+
* The lower-case [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2) province code of the geo zone.
|
|
153
153
|
*/
|
|
154
154
|
province_code?: string;
|
|
155
155
|
/**
|
|
@@ -9,15 +9,11 @@ export interface CreateShippingOptionTypeDTO {
|
|
|
9
9
|
/**
|
|
10
10
|
* The description of the shipping option type.
|
|
11
11
|
*/
|
|
12
|
-
description
|
|
12
|
+
description?: string;
|
|
13
13
|
/**
|
|
14
14
|
* The code of the shipping option type.
|
|
15
15
|
*/
|
|
16
16
|
code: string;
|
|
17
|
-
/**
|
|
18
|
-
* The associated shipping option's ID.
|
|
19
|
-
*/
|
|
20
|
-
shipping_option_id: string;
|
|
21
17
|
}
|
|
22
18
|
/**
|
|
23
19
|
* The attributes to update in the shipping option type.
|
|
@@ -26,6 +22,11 @@ export interface UpdateShippingOptionTypeDTO extends Partial<CreateShippingOptio
|
|
|
26
22
|
/**
|
|
27
23
|
* The ID of the shipping option type.
|
|
28
24
|
*/
|
|
29
|
-
id
|
|
25
|
+
id?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* A shipping option type to be created or updated.
|
|
29
|
+
*/
|
|
30
|
+
export interface UpsertShippingOptionTypeDTO extends UpdateShippingOptionTypeDTO {
|
|
30
31
|
}
|
|
31
32
|
//# sourceMappingURL=shipping-option-type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shipping-option-type.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"shipping-option-type.d.ts","sourceRoot":"","sources":["../../../src/fulfillment/mutations/shipping-option-type.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;CACb;AAED;;GAEG;AACH,MAAM,WAAW,2BACf,SAAQ,OAAO,CAAC,2BAA2B,CAAC;IAC5C;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,2BAA2B;CAAG"}
|
|
@@ -29,7 +29,7 @@ export interface CreateShippingOptionDTO {
|
|
|
29
29
|
/**
|
|
30
30
|
* The shipping option type associated with the shipping option.
|
|
31
31
|
*/
|
|
32
|
-
type:
|
|
32
|
+
type: CreateShippingOptionTypeDTO | string;
|
|
33
33
|
/**
|
|
34
34
|
* The data necessary for the associated fulfillment provider to process the shipping option
|
|
35
35
|
* and its associated fulfillments.
|
|
@@ -71,7 +71,7 @@ export interface UpdateShippingOptionDTO {
|
|
|
71
71
|
/**
|
|
72
72
|
* The shipping option type associated with the shipping option.
|
|
73
73
|
*/
|
|
74
|
-
type?:
|
|
74
|
+
type?: CreateShippingOptionTypeDTO | string | {
|
|
75
75
|
/**
|
|
76
76
|
* The ID of the shipping option type.
|
|
77
77
|
*/
|
|
@@ -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,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAC5E,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAEvD;;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,
|
|
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,uBAAuB,EAAE,MAAM,WAAW,CAAA;AAC5E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AA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,mCAAmC,EACnC,+BAA+B,EAC/B,uBAAuB,EACxB,MAAM,aAAa,CAAA;AAEpB,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;;;;OAKG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAA;IACzB;;;;OAIG;IACH,iCAAiC,EAAE,OAAO,CAAA;CAC3C,CAAA;AAED;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACrE;;OAEG;IACH,aAAa,EAAE,gBAAgB,CAAA;IAC/B,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAC7B,MAAM,EAAE;QACN;;WAEG;QACH,eAAe,EAAE,MAAM,CAAA;QAEvB;;WAEG;QACH,YAAY,EAAE,MAAM,CAAA;QAEpB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAA;KAClB,EAAE,CAAA;CACJ,CAAA;AAED,MAAM,WAAW,oBAAoB;IACnC
|
|
1
|
+
{"version":3,"file":"provider.d.ts","sourceRoot":"","sources":["../../src/fulfillment/provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,EACL,uBAAuB,EACvB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,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