@acmekit/types 2.13.2 → 2.13.3
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/bundles.d.ts +0 -12
- package/dist/bundles.d.ts.map +1 -1
- package/dist/bundles.js +1 -13
- package/dist/bundles.js.map +1 -1
- package/dist/http/index.d.ts +0 -34
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +0 -34
- package/dist/http/index.js.map +1 -1
- package/dist/http/store/admin/entities.d.ts +0 -5
- package/dist/http/store/admin/entities.d.ts.map +1 -1
- package/dist/index.d.ts +1 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -15
- package/dist/index.js.map +1 -1
- package/dist/totals/big-number.d.ts +19 -12
- package/dist/totals/big-number.d.ts.map +1 -1
- package/dist/totals/index.d.ts +0 -24
- package/dist/totals/index.d.ts.map +1 -1
- package/dist/totals/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/workflow/index.d.ts +0 -10
- package/dist/workflow/index.d.ts.map +1 -1
- package/dist/workflow/index.js +1 -11
- package/dist/workflow/index.js.map +1 -1
- package/dist/workflows/index.d.ts +1 -2
- package/dist/workflows/index.d.ts.map +1 -1
- package/dist/workflows/index.js +0 -16
- package/dist/workflows/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/cart/common.d.ts +0 -1133
- package/dist/cart/common.d.ts.map +0 -1
- package/dist/cart/common.js +0 -3
- package/dist/cart/common.js.map +0 -1
- package/dist/cart/index.d.ts +0 -5
- package/dist/cart/index.d.ts.map +0 -1
- package/dist/cart/index.js +0 -21
- package/dist/cart/index.js.map +0 -1
- package/dist/cart/mutations.d.ts +0 -742
- package/dist/cart/mutations.d.ts.map +0 -1
- package/dist/cart/mutations.js +0 -4
- package/dist/cart/mutations.js.map +0 -1
- package/dist/cart/service.d.ts +0 -1888
- package/dist/cart/service.d.ts.map +0 -1
- package/dist/cart/service.js +0 -3
- package/dist/cart/service.js.map +0 -1
- package/dist/cart/workflows.d.ts +0 -498
- package/dist/cart/workflows.d.ts.map +0 -1
- package/dist/cart/workflows.js +0 -3
- package/dist/cart/workflows.js.map +0 -1
- package/dist/currency/common/currency.d.ts +0 -52
- package/dist/currency/common/currency.d.ts.map +0 -1
- package/dist/currency/common/currency.js +0 -3
- package/dist/currency/common/currency.js.map +0 -1
- package/dist/currency/common/index.d.ts +0 -2
- package/dist/currency/common/index.d.ts.map +0 -1
- package/dist/currency/common/index.js +0 -18
- package/dist/currency/common/index.js.map +0 -1
- package/dist/currency/index.d.ts +0 -3
- package/dist/currency/index.d.ts.map +0 -1
- package/dist/currency/index.js +0 -19
- package/dist/currency/index.js.map +0 -1
- package/dist/currency/service.d.ts +0 -96
- package/dist/currency/service.d.ts.map +0 -1
- package/dist/currency/service.js +0 -3
- package/dist/currency/service.js.map +0 -1
- package/dist/fulfillment/common/address.d.ts +0 -70
- package/dist/fulfillment/common/address.d.ts.map +0 -1
- package/dist/fulfillment/common/address.js +0 -3
- package/dist/fulfillment/common/address.js.map +0 -1
- package/dist/fulfillment/common/cart.d.ts +0 -89
- package/dist/fulfillment/common/cart.d.ts.map +0 -1
- package/dist/fulfillment/common/cart.js +0 -3
- package/dist/fulfillment/common/cart.js.map +0 -1
- package/dist/fulfillment/common/fulfillment-item.d.ts +0 -55
- package/dist/fulfillment/common/fulfillment-item.d.ts.map +0 -1
- package/dist/fulfillment/common/fulfillment-item.js +0 -3
- package/dist/fulfillment/common/fulfillment-item.js.map +0 -1
- package/dist/fulfillment/common/fulfillment-label.d.ts +0 -43
- package/dist/fulfillment/common/fulfillment-label.d.ts.map +0 -1
- package/dist/fulfillment/common/fulfillment-label.js +0 -3
- package/dist/fulfillment/common/fulfillment-label.js.map +0 -1
- package/dist/fulfillment/common/fulfillment-provider.d.ts +0 -45
- package/dist/fulfillment/common/fulfillment-provider.d.ts.map +0 -1
- package/dist/fulfillment/common/fulfillment-provider.js +0 -3
- package/dist/fulfillment/common/fulfillment-provider.js.map +0 -1
- package/dist/fulfillment/common/fulfillment-set.d.ts +0 -61
- package/dist/fulfillment/common/fulfillment-set.d.ts.map +0 -1
- package/dist/fulfillment/common/fulfillment-set.js +0 -3
- package/dist/fulfillment/common/fulfillment-set.js.map +0 -1
- package/dist/fulfillment/common/fulfillment.d.ts +0 -142
- package/dist/fulfillment/common/fulfillment.d.ts.map +0 -1
- package/dist/fulfillment/common/fulfillment.js +0 -3
- package/dist/fulfillment/common/fulfillment.js.map +0 -1
- package/dist/fulfillment/common/geo-zone.d.ts +0 -76
- package/dist/fulfillment/common/geo-zone.d.ts.map +0 -1
- package/dist/fulfillment/common/geo-zone.js +0 -3
- package/dist/fulfillment/common/geo-zone.js.map +0 -1
- package/dist/fulfillment/common/index.d.ts +0 -15
- package/dist/fulfillment/common/index.d.ts.map +0 -1
- package/dist/fulfillment/common/index.js +0 -31
- package/dist/fulfillment/common/index.js.map +0 -1
- package/dist/fulfillment/common/order.d.ts +0 -899
- package/dist/fulfillment/common/order.d.ts.map +0 -1
- package/dist/fulfillment/common/order.js +0 -3
- package/dist/fulfillment/common/order.js.map +0 -1
- package/dist/fulfillment/common/service-zone.d.ts +0 -79
- package/dist/fulfillment/common/service-zone.d.ts.map +0 -1
- package/dist/fulfillment/common/service-zone.js +0 -3
- package/dist/fulfillment/common/service-zone.js.map +0 -1
- package/dist/fulfillment/common/shipping-option-rule.d.ts +0 -73
- package/dist/fulfillment/common/shipping-option-rule.d.ts.map +0 -1
- package/dist/fulfillment/common/shipping-option-rule.js +0 -3
- package/dist/fulfillment/common/shipping-option-rule.js.map +0 -1
- package/dist/fulfillment/common/shipping-option-type.d.ts +0 -65
- package/dist/fulfillment/common/shipping-option-type.d.ts.map +0 -1
- package/dist/fulfillment/common/shipping-option-type.js +0 -3
- package/dist/fulfillment/common/shipping-option-type.js.map +0 -1
- package/dist/fulfillment/common/shipping-option.d.ts +0 -171
- package/dist/fulfillment/common/shipping-option.d.ts.map +0 -1
- package/dist/fulfillment/common/shipping-option.js +0 -3
- package/dist/fulfillment/common/shipping-option.js.map +0 -1
- package/dist/fulfillment/common/shipping-profile.d.ts +0 -61
- package/dist/fulfillment/common/shipping-profile.d.ts.map +0 -1
- package/dist/fulfillment/common/shipping-profile.js +0 -3
- package/dist/fulfillment/common/shipping-profile.js.map +0 -1
- package/dist/fulfillment/index.d.ts +0 -6
- package/dist/fulfillment/index.d.ts.map +0 -1
- package/dist/fulfillment/index.js +0 -22
- package/dist/fulfillment/index.js.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-address.d.ts +0 -54
- package/dist/fulfillment/mutations/fulfillment-address.d.ts.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-address.js +0 -3
- package/dist/fulfillment/mutations/fulfillment-address.js.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-item.d.ts +0 -34
- package/dist/fulfillment/mutations/fulfillment-item.d.ts.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-item.js +0 -3
- package/dist/fulfillment/mutations/fulfillment-item.js.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-label.d.ts +0 -22
- package/dist/fulfillment/mutations/fulfillment-label.d.ts.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-label.js +0 -3
- package/dist/fulfillment/mutations/fulfillment-label.js.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-set.d.ts +0 -45
- package/dist/fulfillment/mutations/fulfillment-set.d.ts.map +0 -1
- package/dist/fulfillment/mutations/fulfillment-set.js +0 -3
- package/dist/fulfillment/mutations/fulfillment-set.js.map +0 -1
- package/dist/fulfillment/mutations/fulfillment.d.ts +0 -110
- package/dist/fulfillment/mutations/fulfillment.d.ts.map +0 -1
- package/dist/fulfillment/mutations/fulfillment.js +0 -3
- package/dist/fulfillment/mutations/fulfillment.js.map +0 -1
- package/dist/fulfillment/mutations/geo-zone.d.ts +0 -169
- package/dist/fulfillment/mutations/geo-zone.d.ts.map +0 -1
- package/dist/fulfillment/mutations/geo-zone.js +0 -3
- package/dist/fulfillment/mutations/geo-zone.js.map +0 -1
- package/dist/fulfillment/mutations/index.d.ts +0 -12
- package/dist/fulfillment/mutations/index.d.ts.map +0 -1
- package/dist/fulfillment/mutations/index.js +0 -28
- package/dist/fulfillment/mutations/index.js.map +0 -1
- package/dist/fulfillment/mutations/service-zone.d.ts +0 -46
- package/dist/fulfillment/mutations/service-zone.d.ts.map +0 -1
- package/dist/fulfillment/mutations/service-zone.js +0 -3
- package/dist/fulfillment/mutations/service-zone.js.map +0 -1
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts +0 -32
- package/dist/fulfillment/mutations/shipping-option-rule.d.ts.map +0 -1
- package/dist/fulfillment/mutations/shipping-option-rule.js +0 -3
- package/dist/fulfillment/mutations/shipping-option-rule.js.map +0 -1
- package/dist/fulfillment/mutations/shipping-option-type.d.ts +0 -32
- package/dist/fulfillment/mutations/shipping-option-type.d.ts.map +0 -1
- package/dist/fulfillment/mutations/shipping-option-type.js +0 -3
- package/dist/fulfillment/mutations/shipping-option-type.js.map +0 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +0 -183
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +0 -1
- package/dist/fulfillment/mutations/shipping-option.js +0 -3
- package/dist/fulfillment/mutations/shipping-option.js.map +0 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts +0 -41
- package/dist/fulfillment/mutations/shipping-profile.d.ts.map +0 -1
- package/dist/fulfillment/mutations/shipping-profile.js +0 -3
- package/dist/fulfillment/mutations/shipping-profile.js.map +0 -1
- package/dist/fulfillment/provider.d.ts +0 -131
- package/dist/fulfillment/provider.d.ts.map +0 -1
- package/dist/fulfillment/provider.js +0 -3
- package/dist/fulfillment/provider.js.map +0 -1
- package/dist/fulfillment/service.d.ts +0 -2632
- package/dist/fulfillment/service.d.ts.map +0 -1
- package/dist/fulfillment/service.js +0 -3
- package/dist/fulfillment/service.js.map +0 -1
- package/dist/fulfillment/workflows.d.ts +0 -243
- package/dist/fulfillment/workflows.d.ts.map +0 -1
- package/dist/fulfillment/workflows.js +0 -3
- package/dist/fulfillment/workflows.js.map +0 -1
- package/dist/http/campaign/admin/index.d.ts +0 -4
- package/dist/http/campaign/admin/index.d.ts.map +0 -1
- package/dist/http/campaign/admin/index.js +0 -20
- package/dist/http/campaign/admin/index.js.map +0 -1
- package/dist/http/campaign/admin/payloads.d.ts +0 -87
- package/dist/http/campaign/admin/payloads.d.ts.map +0 -1
- package/dist/http/campaign/admin/payloads.js +0 -3
- package/dist/http/campaign/admin/payloads.js.map +0 -1
- package/dist/http/campaign/admin/queries.d.ts +0 -14
- package/dist/http/campaign/admin/queries.d.ts.map +0 -1
- package/dist/http/campaign/admin/queries.js +0 -3
- package/dist/http/campaign/admin/queries.js.map +0 -1
- package/dist/http/campaign/admin/responses.d.ts +0 -90
- package/dist/http/campaign/admin/responses.d.ts.map +0 -1
- package/dist/http/campaign/admin/responses.js +0 -3
- package/dist/http/campaign/admin/responses.js.map +0 -1
- package/dist/http/campaign/index.d.ts +0 -2
- package/dist/http/campaign/index.d.ts.map +0 -1
- package/dist/http/campaign/index.js +0 -18
- package/dist/http/campaign/index.js.map +0 -1
- package/dist/http/cart/common.d.ts +0 -704
- package/dist/http/cart/common.d.ts.map +0 -1
- package/dist/http/cart/common.js +0 -3
- package/dist/http/cart/common.js.map +0 -1
- package/dist/http/cart/index.d.ts +0 -2
- package/dist/http/cart/index.d.ts.map +0 -1
- package/dist/http/cart/index.js +0 -18
- package/dist/http/cart/index.js.map +0 -1
- package/dist/http/cart/store/entities.d.ts +0 -112
- package/dist/http/cart/store/entities.d.ts.map +0 -1
- package/dist/http/cart/store/entities.js +0 -3
- package/dist/http/cart/store/entities.js.map +0 -1
- package/dist/http/cart/store/index.d.ts +0 -4
- package/dist/http/cart/store/index.d.ts.map +0 -1
- package/dist/http/cart/store/index.js +0 -20
- package/dist/http/cart/store/index.js.map +0 -1
- package/dist/http/cart/store/payloads.d.ts +0 -191
- package/dist/http/cart/store/payloads.d.ts.map +0 -1
- package/dist/http/cart/store/payloads.js +0 -3
- package/dist/http/cart/store/payloads.js.map +0 -1
- package/dist/http/cart/store/responses.d.ts +0 -48
- package/dist/http/cart/store/responses.d.ts.map +0 -1
- package/dist/http/cart/store/responses.js +0 -3
- package/dist/http/cart/store/responses.js.map +0 -1
- package/dist/http/claim/admin/entities.d.ts +0 -18
- package/dist/http/claim/admin/entities.d.ts.map +0 -1
- package/dist/http/claim/admin/entities.js +0 -3
- package/dist/http/claim/admin/entities.js.map +0 -1
- package/dist/http/claim/admin/index.d.ts +0 -5
- package/dist/http/claim/admin/index.d.ts.map +0 -1
- package/dist/http/claim/admin/index.js +0 -21
- package/dist/http/claim/admin/index.js.map +0 -1
- package/dist/http/claim/admin/payloads.d.ts +0 -142
- package/dist/http/claim/admin/payloads.d.ts.map +0 -1
- package/dist/http/claim/admin/payloads.js +0 -10
- package/dist/http/claim/admin/payloads.js.map +0 -1
- package/dist/http/claim/admin/queries.d.ts +0 -50
- package/dist/http/claim/admin/queries.d.ts.map +0 -1
- package/dist/http/claim/admin/queries.js +0 -3
- package/dist/http/claim/admin/queries.js.map +0 -1
- package/dist/http/claim/admin/responses.d.ts +0 -54
- package/dist/http/claim/admin/responses.d.ts.map +0 -1
- package/dist/http/claim/admin/responses.js +0 -3
- package/dist/http/claim/admin/responses.js.map +0 -1
- package/dist/http/claim/common.d.ts +0 -131
- package/dist/http/claim/common.d.ts.map +0 -1
- package/dist/http/claim/common.js +0 -3
- package/dist/http/claim/common.js.map +0 -1
- package/dist/http/claim/index.d.ts +0 -2
- package/dist/http/claim/index.d.ts.map +0 -1
- package/dist/http/claim/index.js +0 -18
- package/dist/http/claim/index.js.map +0 -1
- package/dist/http/collection/admin/entities.d.ts +0 -9
- package/dist/http/collection/admin/entities.d.ts.map +0 -1
- package/dist/http/collection/admin/entities.js +0 -3
- package/dist/http/collection/admin/entities.js.map +0 -1
- package/dist/http/collection/admin/index.d.ts +0 -5
- package/dist/http/collection/admin/index.d.ts.map +0 -1
- package/dist/http/collection/admin/index.js +0 -21
- package/dist/http/collection/admin/index.js.map +0 -1
- package/dist/http/collection/admin/payloads.d.ts +0 -39
- package/dist/http/collection/admin/payloads.d.ts.map +0 -1
- package/dist/http/collection/admin/payloads.js +0 -3
- package/dist/http/collection/admin/payloads.js.map +0 -1
- package/dist/http/collection/admin/queries.d.ts +0 -11
- package/dist/http/collection/admin/queries.d.ts.map +0 -1
- package/dist/http/collection/admin/queries.js +0 -3
- package/dist/http/collection/admin/queries.js.map +0 -1
- package/dist/http/collection/admin/responses.d.ts +0 -18
- package/dist/http/collection/admin/responses.d.ts.map +0 -1
- package/dist/http/collection/admin/responses.js +0 -3
- package/dist/http/collection/admin/responses.js.map +0 -1
- package/dist/http/collection/common.d.ts +0 -66
- package/dist/http/collection/common.d.ts.map +0 -1
- package/dist/http/collection/common.js +0 -3
- package/dist/http/collection/common.js.map +0 -1
- package/dist/http/collection/index.d.ts +0 -3
- package/dist/http/collection/index.d.ts.map +0 -1
- package/dist/http/collection/index.js +0 -19
- package/dist/http/collection/index.js.map +0 -1
- package/dist/http/collection/store/entities.d.ts +0 -9
- package/dist/http/collection/store/entities.d.ts.map +0 -1
- package/dist/http/collection/store/entities.js +0 -3
- package/dist/http/collection/store/entities.js.map +0 -1
- package/dist/http/collection/store/index.d.ts +0 -4
- package/dist/http/collection/store/index.d.ts.map +0 -1
- package/dist/http/collection/store/index.js +0 -20
- package/dist/http/collection/store/index.js.map +0 -1
- package/dist/http/collection/store/queries.d.ts +0 -6
- package/dist/http/collection/store/queries.d.ts.map +0 -1
- package/dist/http/collection/store/queries.js +0 -3
- package/dist/http/collection/store/queries.js.map +0 -1
- package/dist/http/collection/store/responses.d.ts +0 -15
- package/dist/http/collection/store/responses.d.ts.map +0 -1
- package/dist/http/collection/store/responses.js +0 -3
- package/dist/http/collection/store/responses.js.map +0 -1
- package/dist/http/currency/admin/entities.d.ts +0 -4
- package/dist/http/currency/admin/entities.d.ts.map +0 -1
- package/dist/http/currency/admin/entities.js +0 -3
- package/dist/http/currency/admin/entities.js.map +0 -1
- package/dist/http/currency/admin/index.d.ts +0 -4
- package/dist/http/currency/admin/index.d.ts.map +0 -1
- package/dist/http/currency/admin/index.js +0 -20
- package/dist/http/currency/admin/index.js.map +0 -1
- package/dist/http/currency/admin/queries.d.ts +0 -15
- package/dist/http/currency/admin/queries.d.ts.map +0 -1
- package/dist/http/currency/admin/queries.js +0 -3
- package/dist/http/currency/admin/queries.js.map +0 -1
- package/dist/http/currency/admin/responses.d.ts +0 -16
- package/dist/http/currency/admin/responses.d.ts.map +0 -1
- package/dist/http/currency/admin/responses.js +0 -3
- package/dist/http/currency/admin/responses.js.map +0 -1
- package/dist/http/currency/common.d.ts +0 -48
- package/dist/http/currency/common.d.ts.map +0 -1
- package/dist/http/currency/common.js +0 -3
- package/dist/http/currency/common.js.map +0 -1
- package/dist/http/currency/index.d.ts +0 -4
- package/dist/http/currency/index.d.ts.map +0 -1
- package/dist/http/currency/index.js +0 -20
- package/dist/http/currency/index.js.map +0 -1
- package/dist/http/currency/store/entities.d.ts +0 -4
- package/dist/http/currency/store/entities.d.ts.map +0 -1
- package/dist/http/currency/store/entities.js +0 -3
- package/dist/http/currency/store/entities.js.map +0 -1
- package/dist/http/currency/store/index.d.ts +0 -4
- package/dist/http/currency/store/index.d.ts.map +0 -1
- package/dist/http/currency/store/index.js +0 -20
- package/dist/http/currency/store/index.js.map +0 -1
- package/dist/http/currency/store/queries.d.ts +0 -7
- package/dist/http/currency/store/queries.d.ts.map +0 -1
- package/dist/http/currency/store/queries.js +0 -3
- package/dist/http/currency/store/queries.js.map +0 -1
- package/dist/http/currency/store/responses.d.ts +0 -10
- package/dist/http/currency/store/responses.d.ts.map +0 -1
- package/dist/http/currency/store/responses.js +0 -3
- package/dist/http/currency/store/responses.js.map +0 -1
- package/dist/http/draft-order/admin/entities.d.ts +0 -6
- package/dist/http/draft-order/admin/entities.d.ts.map +0 -1
- package/dist/http/draft-order/admin/entities.js +0 -3
- package/dist/http/draft-order/admin/entities.js.map +0 -1
- package/dist/http/draft-order/admin/index.d.ts +0 -5
- package/dist/http/draft-order/admin/index.d.ts.map +0 -1
- package/dist/http/draft-order/admin/index.js +0 -21
- package/dist/http/draft-order/admin/index.js.map +0 -1
- package/dist/http/draft-order/admin/payloads.d.ts +0 -252
- package/dist/http/draft-order/admin/payloads.d.ts.map +0 -1
- package/dist/http/draft-order/admin/payloads.js +0 -3
- package/dist/http/draft-order/admin/payloads.js.map +0 -1
- package/dist/http/draft-order/admin/queries.d.ts +0 -35
- package/dist/http/draft-order/admin/queries.d.ts.map +0 -1
- package/dist/http/draft-order/admin/queries.js +0 -3
- package/dist/http/draft-order/admin/queries.js.map +0 -1
- package/dist/http/draft-order/admin/responses.d.ts +0 -22
- package/dist/http/draft-order/admin/responses.d.ts.map +0 -1
- package/dist/http/draft-order/admin/responses.js +0 -3
- package/dist/http/draft-order/admin/responses.js.map +0 -1
- package/dist/http/draft-order/index.d.ts +0 -2
- package/dist/http/draft-order/index.d.ts.map +0 -1
- package/dist/http/draft-order/index.js +0 -18
- package/dist/http/draft-order/index.js.map +0 -1
- package/dist/http/exchange/admin/entities.d.ts +0 -4
- package/dist/http/exchange/admin/entities.d.ts.map +0 -1
- package/dist/http/exchange/admin/entities.js +0 -3
- package/dist/http/exchange/admin/entities.js.map +0 -1
- package/dist/http/exchange/admin/index.d.ts +0 -5
- package/dist/http/exchange/admin/index.d.ts.map +0 -1
- package/dist/http/exchange/admin/index.js +0 -21
- package/dist/http/exchange/admin/index.js.map +0 -1
- package/dist/http/exchange/admin/payloads.d.ts +0 -162
- package/dist/http/exchange/admin/payloads.d.ts.map +0 -1
- package/dist/http/exchange/admin/payloads.js +0 -3
- package/dist/http/exchange/admin/payloads.js.map +0 -1
- package/dist/http/exchange/admin/queries.d.ts +0 -51
- package/dist/http/exchange/admin/queries.d.ts.map +0 -1
- package/dist/http/exchange/admin/queries.js +0 -3
- package/dist/http/exchange/admin/queries.js.map +0 -1
- package/dist/http/exchange/admin/responses.d.ts +0 -50
- package/dist/http/exchange/admin/responses.d.ts.map +0 -1
- package/dist/http/exchange/admin/responses.js +0 -3
- package/dist/http/exchange/admin/responses.js.map +0 -1
- package/dist/http/exchange/common.d.ts +0 -155
- package/dist/http/exchange/common.d.ts.map +0 -1
- package/dist/http/exchange/common.js +0 -3
- package/dist/http/exchange/common.js.map +0 -1
- package/dist/http/exchange/index.d.ts +0 -2
- package/dist/http/exchange/index.d.ts.map +0 -1
- package/dist/http/exchange/index.js +0 -18
- package/dist/http/exchange/index.js.map +0 -1
- package/dist/http/fulfillment/admin/entitites.d.ts +0 -201
- package/dist/http/fulfillment/admin/entitites.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/entitites.js +0 -3
- package/dist/http/fulfillment/admin/entitites.js.map +0 -1
- package/dist/http/fulfillment/admin/index.d.ts +0 -4
- package/dist/http/fulfillment/admin/index.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/index.js +0 -20
- package/dist/http/fulfillment/admin/index.js.map +0 -1
- package/dist/http/fulfillment/admin/payloads.d.ts +0 -153
- package/dist/http/fulfillment/admin/payloads.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/payloads.js +0 -3
- package/dist/http/fulfillment/admin/payloads.js.map +0 -1
- package/dist/http/fulfillment/admin/responses.d.ts +0 -8
- package/dist/http/fulfillment/admin/responses.d.ts.map +0 -1
- package/dist/http/fulfillment/admin/responses.js +0 -3
- package/dist/http/fulfillment/admin/responses.js.map +0 -1
- package/dist/http/fulfillment/index.d.ts +0 -3
- package/dist/http/fulfillment/index.d.ts.map +0 -1
- package/dist/http/fulfillment/index.js +0 -19
- package/dist/http/fulfillment/index.js.map +0 -1
- package/dist/http/fulfillment/store/index.d.ts +0 -186
- package/dist/http/fulfillment/store/index.d.ts.map +0 -1
- package/dist/http/fulfillment/store/index.js +0 -3
- package/dist/http/fulfillment/store/index.js.map +0 -1
- package/dist/http/fulfillment-provider/admin/entities.d.ts +0 -6
- package/dist/http/fulfillment-provider/admin/entities.d.ts.map +0 -1
- package/dist/http/fulfillment-provider/admin/entities.js +0 -3
- package/dist/http/fulfillment-provider/admin/entities.js.map +0 -1
- package/dist/http/fulfillment-provider/admin/index.d.ts +0 -4
- package/dist/http/fulfillment-provider/admin/index.d.ts.map +0 -1
- package/dist/http/fulfillment-provider/admin/index.js +0 -20
- package/dist/http/fulfillment-provider/admin/index.js.map +0 -1
- package/dist/http/fulfillment-provider/admin/queries.d.ts +0 -21
- package/dist/http/fulfillment-provider/admin/queries.d.ts.map +0 -1
- package/dist/http/fulfillment-provider/admin/queries.js +0 -3
- package/dist/http/fulfillment-provider/admin/queries.js.map +0 -1
- package/dist/http/fulfillment-provider/admin/responses.d.ts +0 -17
- package/dist/http/fulfillment-provider/admin/responses.d.ts.map +0 -1
- package/dist/http/fulfillment-provider/admin/responses.js +0 -3
- package/dist/http/fulfillment-provider/admin/responses.js.map +0 -1
- package/dist/http/fulfillment-provider/common.d.ts +0 -21
- package/dist/http/fulfillment-provider/common.d.ts.map +0 -1
- package/dist/http/fulfillment-provider/common.js +0 -3
- package/dist/http/fulfillment-provider/common.js.map +0 -1
- package/dist/http/fulfillment-provider/index.d.ts +0 -2
- package/dist/http/fulfillment-provider/index.d.ts.map +0 -1
- package/dist/http/fulfillment-provider/index.js +0 -18
- package/dist/http/fulfillment-provider/index.js.map +0 -1
- package/dist/http/fulfillment-set/admin/entities.d.ts +0 -120
- package/dist/http/fulfillment-set/admin/entities.d.ts.map +0 -1
- package/dist/http/fulfillment-set/admin/entities.js +0 -3
- package/dist/http/fulfillment-set/admin/entities.js.map +0 -1
- package/dist/http/fulfillment-set/admin/index.d.ts +0 -5
- package/dist/http/fulfillment-set/admin/index.d.ts.map +0 -1
- package/dist/http/fulfillment-set/admin/index.js +0 -21
- package/dist/http/fulfillment-set/admin/index.js.map +0 -1
- package/dist/http/fulfillment-set/admin/payloads.d.ts +0 -122
- package/dist/http/fulfillment-set/admin/payloads.d.ts.map +0 -1
- package/dist/http/fulfillment-set/admin/payloads.js +0 -3
- package/dist/http/fulfillment-set/admin/payloads.js.map +0 -1
- package/dist/http/fulfillment-set/admin/queries.d.ts +0 -12
- package/dist/http/fulfillment-set/admin/queries.d.ts.map +0 -1
- package/dist/http/fulfillment-set/admin/queries.js +0 -3
- package/dist/http/fulfillment-set/admin/queries.js.map +0 -1
- package/dist/http/fulfillment-set/admin/responses.d.ts +0 -19
- package/dist/http/fulfillment-set/admin/responses.d.ts.map +0 -1
- package/dist/http/fulfillment-set/admin/responses.js +0 -3
- package/dist/http/fulfillment-set/admin/responses.js.map +0 -1
- package/dist/http/fulfillment-set/index.d.ts +0 -2
- package/dist/http/fulfillment-set/index.d.ts.map +0 -1
- package/dist/http/fulfillment-set/index.js +0 -18
- package/dist/http/fulfillment-set/index.js.map +0 -1
- package/dist/http/inventory/admin/entities.d.ts +0 -117
- package/dist/http/inventory/admin/entities.d.ts.map +0 -1
- package/dist/http/inventory/admin/entities.js +0 -3
- package/dist/http/inventory/admin/entities.js.map +0 -1
- package/dist/http/inventory/admin/index.d.ts +0 -5
- package/dist/http/inventory/admin/index.d.ts.map +0 -1
- package/dist/http/inventory/admin/index.js +0 -21
- package/dist/http/inventory/admin/index.js.map +0 -1
- package/dist/http/inventory/admin/payloads.d.ts +0 -61
- package/dist/http/inventory/admin/payloads.d.ts.map +0 -1
- package/dist/http/inventory/admin/payloads.js +0 -3
- package/dist/http/inventory/admin/payloads.js.map +0 -1
- package/dist/http/inventory/admin/queries.d.ts +0 -58
- package/dist/http/inventory/admin/queries.d.ts.map +0 -1
- package/dist/http/inventory/admin/queries.js +0 -3
- package/dist/http/inventory/admin/queries.js.map +0 -1
- package/dist/http/inventory/admin/responses.d.ts +0 -17
- package/dist/http/inventory/admin/responses.d.ts.map +0 -1
- package/dist/http/inventory/admin/responses.js +0 -3
- package/dist/http/inventory/admin/responses.js.map +0 -1
- package/dist/http/inventory/index.d.ts +0 -2
- package/dist/http/inventory/index.d.ts.map +0 -1
- package/dist/http/inventory/index.js +0 -18
- package/dist/http/inventory/index.js.map +0 -1
- package/dist/http/inventory-level/admin/entities.d.ts +0 -39
- package/dist/http/inventory-level/admin/entities.d.ts.map +0 -1
- package/dist/http/inventory-level/admin/entities.js +0 -3
- package/dist/http/inventory-level/admin/entities.js.map +0 -1
- package/dist/http/inventory-level/admin/index.d.ts +0 -5
- package/dist/http/inventory-level/admin/index.d.ts.map +0 -1
- package/dist/http/inventory-level/admin/index.js +0 -21
- package/dist/http/inventory-level/admin/index.js.map +0 -1
- package/dist/http/inventory-level/admin/payloads.d.ts +0 -104
- package/dist/http/inventory-level/admin/payloads.d.ts.map +0 -1
- package/dist/http/inventory-level/admin/payloads.js +0 -3
- package/dist/http/inventory-level/admin/payloads.js.map +0 -1
- package/dist/http/inventory-level/admin/queries.d.ts +0 -9
- package/dist/http/inventory-level/admin/queries.d.ts.map +0 -1
- package/dist/http/inventory-level/admin/queries.js +0 -3
- package/dist/http/inventory-level/admin/queries.js.map +0 -1
- package/dist/http/inventory-level/admin/responses.d.ts +0 -37
- package/dist/http/inventory-level/admin/responses.d.ts.map +0 -1
- package/dist/http/inventory-level/admin/responses.js +0 -3
- package/dist/http/inventory-level/admin/responses.js.map +0 -1
- package/dist/http/inventory-level/index.d.ts +0 -2
- package/dist/http/inventory-level/index.d.ts.map +0 -1
- package/dist/http/inventory-level/index.js +0 -18
- package/dist/http/inventory-level/index.js.map +0 -1
- package/dist/http/order/admin/entities.d.ts +0 -163
- package/dist/http/order/admin/entities.d.ts.map +0 -1
- package/dist/http/order/admin/entities.js +0 -3
- package/dist/http/order/admin/entities.js.map +0 -1
- package/dist/http/order/admin/index.d.ts +0 -5
- package/dist/http/order/admin/index.d.ts.map +0 -1
- package/dist/http/order/admin/index.js +0 -21
- package/dist/http/order/admin/index.js.map +0 -1
- package/dist/http/order/admin/payload.d.ts +0 -190
- package/dist/http/order/admin/payload.d.ts.map +0 -1
- package/dist/http/order/admin/payload.js +0 -3
- package/dist/http/order/admin/payload.js.map +0 -1
- package/dist/http/order/admin/queries.d.ts +0 -72
- package/dist/http/order/admin/queries.d.ts.map +0 -1
- package/dist/http/order/admin/queries.js +0 -3
- package/dist/http/order/admin/queries.js.map +0 -1
- package/dist/http/order/admin/responses.d.ts +0 -45
- package/dist/http/order/admin/responses.d.ts.map +0 -1
- package/dist/http/order/admin/responses.js +0 -3
- package/dist/http/order/admin/responses.js.map +0 -1
- package/dist/http/order/common.d.ts +0 -1082
- package/dist/http/order/common.d.ts.map +0 -1
- package/dist/http/order/common.js +0 -3
- package/dist/http/order/common.js.map +0 -1
- package/dist/http/order/index.d.ts +0 -3
- package/dist/http/order/index.d.ts.map +0 -1
- package/dist/http/order/index.js +0 -19
- package/dist/http/order/index.js.map +0 -1
- package/dist/http/order/store/entities.d.ts +0 -83
- package/dist/http/order/store/entities.d.ts.map +0 -1
- package/dist/http/order/store/entities.js +0 -3
- package/dist/http/order/store/entities.js.map +0 -1
- package/dist/http/order/store/index.d.ts +0 -5
- package/dist/http/order/store/index.d.ts.map +0 -1
- package/dist/http/order/store/index.js +0 -21
- package/dist/http/order/store/index.js.map +0 -1
- package/dist/http/order/store/payloads.d.ts +0 -13
- package/dist/http/order/store/payloads.d.ts.map +0 -1
- package/dist/http/order/store/payloads.js +0 -3
- package/dist/http/order/store/payloads.js.map +0 -1
- package/dist/http/order/store/queries.d.ts +0 -14
- package/dist/http/order/store/queries.d.ts.map +0 -1
- package/dist/http/order/store/queries.js +0 -3
- package/dist/http/order/store/queries.js.map +0 -1
- package/dist/http/order/store/responses.d.ts +0 -15
- package/dist/http/order/store/responses.d.ts.map +0 -1
- package/dist/http/order/store/responses.js +0 -3
- package/dist/http/order/store/responses.js.map +0 -1
- package/dist/http/order-edit/admin/index.d.ts +0 -3
- package/dist/http/order-edit/admin/index.d.ts.map +0 -1
- package/dist/http/order-edit/admin/index.js +0 -19
- package/dist/http/order-edit/admin/index.js.map +0 -1
- package/dist/http/order-edit/admin/payloads.d.ts +0 -60
- package/dist/http/order-edit/admin/payloads.d.ts.map +0 -1
- package/dist/http/order-edit/admin/payloads.js +0 -3
- package/dist/http/order-edit/admin/payloads.js.map +0 -1
- package/dist/http/order-edit/admin/responses.d.ts +0 -16
- package/dist/http/order-edit/admin/responses.d.ts.map +0 -1
- package/dist/http/order-edit/admin/responses.js +0 -3
- package/dist/http/order-edit/admin/responses.js.map +0 -1
- package/dist/http/order-edit/common.d.ts +0 -10
- package/dist/http/order-edit/common.d.ts.map +0 -1
- package/dist/http/order-edit/common.js +0 -3
- package/dist/http/order-edit/common.js.map +0 -1
- package/dist/http/order-edit/index.d.ts +0 -3
- package/dist/http/order-edit/index.d.ts.map +0 -1
- package/dist/http/order-edit/index.js +0 -19
- package/dist/http/order-edit/index.js.map +0 -1
- package/dist/http/payment/admin/entities.d.ts +0 -44
- package/dist/http/payment/admin/entities.d.ts.map +0 -1
- package/dist/http/payment/admin/entities.js +0 -3
- package/dist/http/payment/admin/entities.js.map +0 -1
- package/dist/http/payment/admin/index.d.ts +0 -5
- package/dist/http/payment/admin/index.d.ts.map +0 -1
- package/dist/http/payment/admin/index.js +0 -21
- package/dist/http/payment/admin/index.js.map +0 -1
- package/dist/http/payment/admin/payloads.d.ts +0 -36
- package/dist/http/payment/admin/payloads.d.ts.map +0 -1
- package/dist/http/payment/admin/payloads.js +0 -3
- package/dist/http/payment/admin/payloads.js.map +0 -1
- package/dist/http/payment/admin/queries.d.ts +0 -55
- package/dist/http/payment/admin/queries.d.ts.map +0 -1
- package/dist/http/payment/admin/queries.js +0 -3
- package/dist/http/payment/admin/queries.js.map +0 -1
- package/dist/http/payment/admin/responses.d.ts +0 -48
- package/dist/http/payment/admin/responses.d.ts.map +0 -1
- package/dist/http/payment/admin/responses.js +0 -3
- package/dist/http/payment/admin/responses.js.map +0 -1
- package/dist/http/payment/common.d.ts +0 -344
- package/dist/http/payment/common.d.ts.map +0 -1
- package/dist/http/payment/common.js +0 -3
- package/dist/http/payment/common.js.map +0 -1
- package/dist/http/payment/index.d.ts +0 -3
- package/dist/http/payment/index.d.ts.map +0 -1
- package/dist/http/payment/index.js +0 -19
- package/dist/http/payment/index.js.map +0 -1
- package/dist/http/payment/store/entities.d.ts +0 -20
- package/dist/http/payment/store/entities.d.ts.map +0 -1
- package/dist/http/payment/store/entities.js +0 -3
- package/dist/http/payment/store/entities.js.map +0 -1
- package/dist/http/payment/store/index.d.ts +0 -5
- package/dist/http/payment/store/index.d.ts.map +0 -1
- package/dist/http/payment/store/index.js +0 -21
- package/dist/http/payment/store/index.js.map +0 -1
- package/dist/http/payment/store/payloads.d.ts +0 -17
- package/dist/http/payment/store/payloads.d.ts.map +0 -1
- package/dist/http/payment/store/payloads.js +0 -3
- package/dist/http/payment/store/payloads.js.map +0 -1
- package/dist/http/payment/store/queries.d.ts +0 -13
- package/dist/http/payment/store/queries.d.ts.map +0 -1
- package/dist/http/payment/store/queries.js +0 -3
- package/dist/http/payment/store/queries.js.map +0 -1
- package/dist/http/payment/store/responses.d.ts +0 -15
- package/dist/http/payment/store/responses.d.ts.map +0 -1
- package/dist/http/payment/store/responses.js +0 -3
- package/dist/http/payment/store/responses.js.map +0 -1
- package/dist/http/price-list/admin/entities.d.ts +0 -63
- package/dist/http/price-list/admin/entities.d.ts.map +0 -1
- package/dist/http/price-list/admin/entities.js +0 -3
- package/dist/http/price-list/admin/entities.js.map +0 -1
- package/dist/http/price-list/admin/index.d.ts +0 -5
- package/dist/http/price-list/admin/index.d.ts.map +0 -1
- package/dist/http/price-list/admin/index.js +0 -21
- package/dist/http/price-list/admin/index.js.map +0 -1
- package/dist/http/price-list/admin/payloads.d.ts +0 -148
- package/dist/http/price-list/admin/payloads.d.ts.map +0 -1
- package/dist/http/price-list/admin/payloads.js +0 -3
- package/dist/http/price-list/admin/payloads.js.map +0 -1
- package/dist/http/price-list/admin/queries.d.ts +0 -34
- package/dist/http/price-list/admin/queries.d.ts.map +0 -1
- package/dist/http/price-list/admin/queries.js +0 -3
- package/dist/http/price-list/admin/queries.js.map +0 -1
- package/dist/http/price-list/admin/responses.d.ts +0 -41
- package/dist/http/price-list/admin/responses.d.ts.map +0 -1
- package/dist/http/price-list/admin/responses.js +0 -3
- package/dist/http/price-list/admin/responses.js.map +0 -1
- package/dist/http/price-list/index.d.ts +0 -2
- package/dist/http/price-list/index.d.ts.map +0 -1
- package/dist/http/price-list/index.js +0 -18
- package/dist/http/price-list/index.js.map +0 -1
- package/dist/http/pricing/admin/entities.d.ts +0 -104
- package/dist/http/pricing/admin/entities.d.ts.map +0 -1
- package/dist/http/pricing/admin/entities.js +0 -3
- package/dist/http/pricing/admin/entities.js.map +0 -1
- package/dist/http/pricing/admin/index.d.ts +0 -5
- package/dist/http/pricing/admin/index.d.ts.map +0 -1
- package/dist/http/pricing/admin/index.js +0 -21
- package/dist/http/pricing/admin/index.js.map +0 -1
- package/dist/http/pricing/admin/payloads.d.ts +0 -39
- package/dist/http/pricing/admin/payloads.d.ts.map +0 -1
- package/dist/http/pricing/admin/payloads.js +0 -3
- package/dist/http/pricing/admin/payloads.js.map +0 -1
- package/dist/http/pricing/admin/queries.d.ts +0 -23
- package/dist/http/pricing/admin/queries.d.ts.map +0 -1
- package/dist/http/pricing/admin/queries.js +0 -3
- package/dist/http/pricing/admin/queries.js.map +0 -1
- package/dist/http/pricing/admin/responses.d.ts +0 -18
- package/dist/http/pricing/admin/responses.d.ts.map +0 -1
- package/dist/http/pricing/admin/responses.js +0 -3
- package/dist/http/pricing/admin/responses.js.map +0 -1
- package/dist/http/pricing/common.d.ts +0 -103
- package/dist/http/pricing/common.d.ts.map +0 -1
- package/dist/http/pricing/common.js +0 -3
- package/dist/http/pricing/common.js.map +0 -1
- package/dist/http/pricing/index.d.ts +0 -3
- package/dist/http/pricing/index.d.ts.map +0 -1
- package/dist/http/pricing/index.js +0 -19
- package/dist/http/pricing/index.js.map +0 -1
- package/dist/http/pricing/store/entities.d.ts +0 -52
- package/dist/http/pricing/store/entities.d.ts.map +0 -1
- package/dist/http/pricing/store/entities.js +0 -3
- package/dist/http/pricing/store/entities.js.map +0 -1
- package/dist/http/pricing/store/index.d.ts +0 -2
- package/dist/http/pricing/store/index.d.ts.map +0 -1
- package/dist/http/pricing/store/index.js +0 -18
- package/dist/http/pricing/store/index.js.map +0 -1
- package/dist/http/product/admin/entitites.d.ts +0 -136
- package/dist/http/product/admin/entitites.d.ts.map +0 -1
- package/dist/http/product/admin/entitites.js +0 -3
- package/dist/http/product/admin/entitites.js.map +0 -1
- package/dist/http/product/admin/index.d.ts +0 -5
- package/dist/http/product/admin/index.d.ts.map +0 -1
- package/dist/http/product/admin/index.js +0 -21
- package/dist/http/product/admin/index.js.map +0 -1
- package/dist/http/product/admin/payloads.d.ts +0 -619
- package/dist/http/product/admin/payloads.d.ts.map +0 -1
- package/dist/http/product/admin/payloads.js +0 -3
- package/dist/http/product/admin/payloads.js.map +0 -1
- package/dist/http/product/admin/queries.d.ts +0 -71
- package/dist/http/product/admin/queries.d.ts.map +0 -1
- package/dist/http/product/admin/queries.js +0 -3
- package/dist/http/product/admin/queries.js.map +0 -1
- package/dist/http/product/admin/responses.d.ts +0 -109
- package/dist/http/product/admin/responses.d.ts.map +0 -1
- package/dist/http/product/admin/responses.js +0 -3
- package/dist/http/product/admin/responses.js.map +0 -1
- package/dist/http/product/common.d.ts +0 -436
- package/dist/http/product/common.d.ts.map +0 -1
- package/dist/http/product/common.js +0 -3
- package/dist/http/product/common.js.map +0 -1
- package/dist/http/product/index.d.ts +0 -3
- package/dist/http/product/index.d.ts.map +0 -1
- package/dist/http/product/index.js +0 -19
- package/dist/http/product/index.js.map +0 -1
- package/dist/http/product/store/entitites.d.ts +0 -65
- package/dist/http/product/store/entitites.d.ts.map +0 -1
- package/dist/http/product/store/entitites.js +0 -3
- package/dist/http/product/store/entitites.js.map +0 -1
- package/dist/http/product/store/index.d.ts +0 -4
- package/dist/http/product/store/index.d.ts.map +0 -1
- package/dist/http/product/store/index.js +0 -20
- package/dist/http/product/store/index.js.map +0 -1
- package/dist/http/product/store/queries.d.ts +0 -57
- package/dist/http/product/store/queries.d.ts.map +0 -1
- package/dist/http/product/store/queries.js +0 -3
- package/dist/http/product/store/queries.js.map +0 -1
- package/dist/http/product/store/responses.d.ts +0 -27
- package/dist/http/product/store/responses.d.ts.map +0 -1
- package/dist/http/product/store/responses.js +0 -3
- package/dist/http/product/store/responses.js.map +0 -1
- package/dist/http/product-category/admin/entities.d.ts +0 -22
- package/dist/http/product-category/admin/entities.d.ts.map +0 -1
- package/dist/http/product-category/admin/entities.js +0 -3
- package/dist/http/product-category/admin/entities.js.map +0 -1
- package/dist/http/product-category/admin/index.d.ts +0 -5
- package/dist/http/product-category/admin/index.d.ts.map +0 -1
- package/dist/http/product-category/admin/index.js +0 -21
- package/dist/http/product-category/admin/index.js.map +0 -1
- package/dist/http/product-category/admin/payloads.d.ts +0 -85
- package/dist/http/product-category/admin/payloads.d.ts.map +0 -1
- package/dist/http/product-category/admin/payloads.js +0 -3
- package/dist/http/product-category/admin/payloads.js.map +0 -1
- package/dist/http/product-category/admin/queries.d.ts +0 -14
- package/dist/http/product-category/admin/queries.d.ts.map +0 -1
- package/dist/http/product-category/admin/queries.js +0 -3
- package/dist/http/product-category/admin/queries.js.map +0 -1
- package/dist/http/product-category/admin/responses.d.ts +0 -18
- package/dist/http/product-category/admin/responses.d.ts.map +0 -1
- package/dist/http/product-category/admin/responses.js +0 -3
- package/dist/http/product-category/admin/responses.js.map +0 -1
- package/dist/http/product-category/common.d.ts +0 -135
- package/dist/http/product-category/common.d.ts.map +0 -1
- package/dist/http/product-category/common.js +0 -3
- package/dist/http/product-category/common.js.map +0 -1
- package/dist/http/product-category/index.d.ts +0 -3
- package/dist/http/product-category/index.d.ts.map +0 -1
- package/dist/http/product-category/index.js +0 -19
- package/dist/http/product-category/index.js.map +0 -1
- package/dist/http/product-category/store/entities.d.ts +0 -17
- package/dist/http/product-category/store/entities.d.ts.map +0 -1
- package/dist/http/product-category/store/entities.js +0 -3
- package/dist/http/product-category/store/entities.js.map +0 -1
- package/dist/http/product-category/store/index.d.ts +0 -4
- package/dist/http/product-category/store/index.d.ts.map +0 -1
- package/dist/http/product-category/store/index.js +0 -20
- package/dist/http/product-category/store/index.js.map +0 -1
- package/dist/http/product-category/store/queries.d.ts +0 -6
- package/dist/http/product-category/store/queries.d.ts.map +0 -1
- package/dist/http/product-category/store/queries.js +0 -3
- package/dist/http/product-category/store/queries.js.map +0 -1
- package/dist/http/product-category/store/responses.d.ts +0 -16
- package/dist/http/product-category/store/responses.d.ts.map +0 -1
- package/dist/http/product-category/store/responses.js +0 -3
- package/dist/http/product-category/store/responses.js.map +0 -1
- package/dist/http/product-tag/admin/entities.d.ts +0 -9
- package/dist/http/product-tag/admin/entities.d.ts.map +0 -1
- package/dist/http/product-tag/admin/entities.js +0 -3
- package/dist/http/product-tag/admin/entities.js.map +0 -1
- package/dist/http/product-tag/admin/index.d.ts +0 -5
- package/dist/http/product-tag/admin/index.d.ts.map +0 -1
- package/dist/http/product-tag/admin/index.js +0 -21
- package/dist/http/product-tag/admin/index.js.map +0 -1
- package/dist/http/product-tag/admin/payloads.d.ts +0 -21
- package/dist/http/product-tag/admin/payloads.d.ts.map +0 -1
- package/dist/http/product-tag/admin/payloads.js +0 -3
- package/dist/http/product-tag/admin/payloads.js.map +0 -1
- package/dist/http/product-tag/admin/queries.d.ts +0 -12
- package/dist/http/product-tag/admin/queries.d.ts.map +0 -1
- package/dist/http/product-tag/admin/queries.js +0 -3
- package/dist/http/product-tag/admin/queries.js.map +0 -1
- package/dist/http/product-tag/admin/responses.d.ts +0 -18
- package/dist/http/product-tag/admin/responses.d.ts.map +0 -1
- package/dist/http/product-tag/admin/responses.js +0 -3
- package/dist/http/product-tag/admin/responses.js.map +0 -1
- package/dist/http/product-tag/common.d.ts +0 -51
- package/dist/http/product-tag/common.d.ts.map +0 -1
- package/dist/http/product-tag/common.js +0 -3
- package/dist/http/product-tag/common.js.map +0 -1
- package/dist/http/product-tag/index.d.ts +0 -3
- package/dist/http/product-tag/index.d.ts.map +0 -1
- package/dist/http/product-tag/index.js +0 -19
- package/dist/http/product-tag/index.js.map +0 -1
- package/dist/http/product-tag/store/entities.d.ts +0 -4
- package/dist/http/product-tag/store/entities.d.ts.map +0 -1
- package/dist/http/product-tag/store/entities.js +0 -3
- package/dist/http/product-tag/store/entities.js.map +0 -1
- package/dist/http/product-tag/store/index.d.ts +0 -4
- package/dist/http/product-tag/store/index.d.ts.map +0 -1
- package/dist/http/product-tag/store/index.js +0 -20
- package/dist/http/product-tag/store/index.js.map +0 -1
- package/dist/http/product-tag/store/queries.d.ts +0 -8
- package/dist/http/product-tag/store/queries.d.ts.map +0 -1
- package/dist/http/product-tag/store/queries.js +0 -3
- package/dist/http/product-tag/store/queries.js.map +0 -1
- package/dist/http/product-tag/store/responses.d.ts +0 -16
- package/dist/http/product-tag/store/responses.d.ts.map +0 -1
- package/dist/http/product-tag/store/responses.js +0 -3
- package/dist/http/product-tag/store/responses.js.map +0 -1
- package/dist/http/product-type/admin/entities.d.ts +0 -9
- package/dist/http/product-type/admin/entities.d.ts.map +0 -1
- package/dist/http/product-type/admin/entities.js +0 -3
- package/dist/http/product-type/admin/entities.js.map +0 -1
- package/dist/http/product-type/admin/index.d.ts +0 -5
- package/dist/http/product-type/admin/index.d.ts.map +0 -1
- package/dist/http/product-type/admin/index.js +0 -21
- package/dist/http/product-type/admin/index.js.map +0 -1
- package/dist/http/product-type/admin/payloads.d.ts +0 -21
- package/dist/http/product-type/admin/payloads.d.ts.map +0 -1
- package/dist/http/product-type/admin/payloads.js +0 -3
- package/dist/http/product-type/admin/payloads.js.map +0 -1
- package/dist/http/product-type/admin/queries.d.ts +0 -31
- package/dist/http/product-type/admin/queries.d.ts.map +0 -1
- package/dist/http/product-type/admin/queries.js +0 -3
- package/dist/http/product-type/admin/queries.js.map +0 -1
- package/dist/http/product-type/admin/responses.d.ts +0 -18
- package/dist/http/product-type/admin/responses.d.ts.map +0 -1
- package/dist/http/product-type/admin/responses.js +0 -3
- package/dist/http/product-type/admin/responses.js.map +0 -1
- package/dist/http/product-type/common.d.ts +0 -51
- package/dist/http/product-type/common.d.ts.map +0 -1
- package/dist/http/product-type/common.js +0 -3
- package/dist/http/product-type/common.js.map +0 -1
- package/dist/http/product-type/index.d.ts +0 -3
- package/dist/http/product-type/index.d.ts.map +0 -1
- package/dist/http/product-type/index.js +0 -19
- package/dist/http/product-type/index.js.map +0 -1
- package/dist/http/product-type/store/entities.d.ts +0 -4
- package/dist/http/product-type/store/entities.d.ts.map +0 -1
- package/dist/http/product-type/store/entities.js +0 -3
- package/dist/http/product-type/store/entities.js.map +0 -1
- package/dist/http/product-type/store/index.d.ts +0 -4
- package/dist/http/product-type/store/index.d.ts.map +0 -1
- package/dist/http/product-type/store/index.js +0 -20
- package/dist/http/product-type/store/index.js.map +0 -1
- package/dist/http/product-type/store/queries.d.ts +0 -8
- package/dist/http/product-type/store/queries.d.ts.map +0 -1
- package/dist/http/product-type/store/queries.js +0 -3
- package/dist/http/product-type/store/queries.js.map +0 -1
- package/dist/http/product-type/store/responses.d.ts +0 -16
- package/dist/http/product-type/store/responses.d.ts.map +0 -1
- package/dist/http/product-type/store/responses.js +0 -3
- package/dist/http/product-type/store/responses.js.map +0 -1
- package/dist/http/promotion/admin/entities.d.ts +0 -39
- package/dist/http/promotion/admin/entities.d.ts.map +0 -1
- package/dist/http/promotion/admin/entities.js +0 -3
- package/dist/http/promotion/admin/entities.js.map +0 -1
- package/dist/http/promotion/admin/index.d.ts +0 -5
- package/dist/http/promotion/admin/index.d.ts.map +0 -1
- package/dist/http/promotion/admin/index.js +0 -21
- package/dist/http/promotion/admin/index.js.map +0 -1
- package/dist/http/promotion/admin/payloads.d.ts +0 -242
- package/dist/http/promotion/admin/payloads.d.ts.map +0 -1
- package/dist/http/promotion/admin/payloads.js +0 -3
- package/dist/http/promotion/admin/payloads.js.map +0 -1
- package/dist/http/promotion/admin/queries.d.ts +0 -103
- package/dist/http/promotion/admin/queries.d.ts.map +0 -1
- package/dist/http/promotion/admin/queries.js +0 -3
- package/dist/http/promotion/admin/queries.js.map +0 -1
- package/dist/http/promotion/admin/responses.d.ts +0 -56
- package/dist/http/promotion/admin/responses.d.ts.map +0 -1
- package/dist/http/promotion/admin/responses.js +0 -3
- package/dist/http/promotion/admin/responses.js.map +0 -1
- package/dist/http/promotion/common.d.ts +0 -129
- package/dist/http/promotion/common.d.ts.map +0 -1
- package/dist/http/promotion/common.js +0 -3
- package/dist/http/promotion/common.js.map +0 -1
- package/dist/http/promotion/index.d.ts +0 -3
- package/dist/http/promotion/index.d.ts.map +0 -1
- package/dist/http/promotion/index.js +0 -19
- package/dist/http/promotion/index.js.map +0 -1
- package/dist/http/promotion/store.d.ts +0 -4
- package/dist/http/promotion/store.d.ts.map +0 -1
- package/dist/http/promotion/store.js +0 -3
- package/dist/http/promotion/store.js.map +0 -1
- package/dist/http/refund-reason/admin/entities.d.ts +0 -4
- package/dist/http/refund-reason/admin/entities.d.ts.map +0 -1
- package/dist/http/refund-reason/admin/entities.js +0 -3
- package/dist/http/refund-reason/admin/entities.js.map +0 -1
- package/dist/http/refund-reason/admin/index.d.ts +0 -5
- package/dist/http/refund-reason/admin/index.d.ts.map +0 -1
- package/dist/http/refund-reason/admin/index.js +0 -21
- package/dist/http/refund-reason/admin/index.js.map +0 -1
- package/dist/http/refund-reason/admin/payloads.d.ts +0 -30
- package/dist/http/refund-reason/admin/payloads.d.ts.map +0 -1
- package/dist/http/refund-reason/admin/payloads.js +0 -3
- package/dist/http/refund-reason/admin/payloads.js.map +0 -1
- package/dist/http/refund-reason/admin/queries.d.ts +0 -8
- package/dist/http/refund-reason/admin/queries.d.ts.map +0 -1
- package/dist/http/refund-reason/admin/queries.js +0 -3
- package/dist/http/refund-reason/admin/queries.js.map +0 -1
- package/dist/http/refund-reason/admin/responses.d.ts +0 -18
- package/dist/http/refund-reason/admin/responses.d.ts.map +0 -1
- package/dist/http/refund-reason/admin/responses.js +0 -3
- package/dist/http/refund-reason/admin/responses.js.map +0 -1
- package/dist/http/refund-reason/common.d.ts +0 -65
- package/dist/http/refund-reason/common.d.ts.map +0 -1
- package/dist/http/refund-reason/common.js +0 -3
- package/dist/http/refund-reason/common.js.map +0 -1
- package/dist/http/refund-reason/index.d.ts +0 -2
- package/dist/http/refund-reason/index.d.ts.map +0 -1
- package/dist/http/refund-reason/index.js +0 -18
- package/dist/http/refund-reason/index.js.map +0 -1
- package/dist/http/region/admin/entities.d.ts +0 -10
- package/dist/http/region/admin/entities.d.ts.map +0 -1
- package/dist/http/region/admin/entities.js +0 -3
- package/dist/http/region/admin/entities.js.map +0 -1
- package/dist/http/region/admin/index.d.ts +0 -5
- package/dist/http/region/admin/index.d.ts.map +0 -1
- package/dist/http/region/admin/index.js +0 -21
- package/dist/http/region/admin/index.js.map +0 -1
- package/dist/http/region/admin/payloads.d.ts +0 -87
- package/dist/http/region/admin/payloads.d.ts.map +0 -1
- package/dist/http/region/admin/payloads.js +0 -3
- package/dist/http/region/admin/payloads.js.map +0 -1
- package/dist/http/region/admin/queries.d.ts +0 -36
- package/dist/http/region/admin/queries.d.ts.map +0 -1
- package/dist/http/region/admin/queries.js +0 -3
- package/dist/http/region/admin/queries.js.map +0 -1
- package/dist/http/region/admin/responses.d.ts +0 -16
- package/dist/http/region/admin/responses.d.ts.map +0 -1
- package/dist/http/region/admin/responses.js +0 -3
- package/dist/http/region/admin/responses.js.map +0 -1
- package/dist/http/region/common.d.ts +0 -107
- package/dist/http/region/common.d.ts.map +0 -1
- package/dist/http/region/common.js +0 -3
- package/dist/http/region/common.js.map +0 -1
- package/dist/http/region/index.d.ts +0 -3
- package/dist/http/region/index.d.ts.map +0 -1
- package/dist/http/region/index.js +0 -19
- package/dist/http/region/index.js.map +0 -1
- package/dist/http/region/store/entities.d.ts +0 -6
- package/dist/http/region/store/entities.d.ts.map +0 -1
- package/dist/http/region/store/entities.js +0 -3
- package/dist/http/region/store/entities.js.map +0 -1
- package/dist/http/region/store/index.d.ts +0 -4
- package/dist/http/region/store/index.d.ts.map +0 -1
- package/dist/http/region/store/index.js +0 -20
- package/dist/http/region/store/index.js.map +0 -1
- package/dist/http/region/store/queries.d.ts +0 -7
- package/dist/http/region/store/queries.d.ts.map +0 -1
- package/dist/http/region/store/queries.js +0 -3
- package/dist/http/region/store/queries.js.map +0 -1
- package/dist/http/region/store/responses.d.ts +0 -15
- package/dist/http/region/store/responses.d.ts.map +0 -1
- package/dist/http/region/store/responses.js +0 -3
- package/dist/http/region/store/responses.js.map +0 -1
- package/dist/http/reservation/admin/entities.d.ts +0 -56
- package/dist/http/reservation/admin/entities.d.ts.map +0 -1
- package/dist/http/reservation/admin/entities.js +0 -3
- package/dist/http/reservation/admin/entities.js.map +0 -1
- package/dist/http/reservation/admin/index.d.ts +0 -5
- package/dist/http/reservation/admin/index.d.ts.map +0 -1
- package/dist/http/reservation/admin/index.js +0 -21
- package/dist/http/reservation/admin/index.js.map +0 -1
- package/dist/http/reservation/admin/payloads.d.ts +0 -47
- package/dist/http/reservation/admin/payloads.d.ts.map +0 -1
- package/dist/http/reservation/admin/payloads.js +0 -3
- package/dist/http/reservation/admin/payloads.js.map +0 -1
- package/dist/http/reservation/admin/queries.d.ts +0 -51
- package/dist/http/reservation/admin/queries.d.ts.map +0 -1
- package/dist/http/reservation/admin/queries.js +0 -3
- package/dist/http/reservation/admin/queries.js.map +0 -1
- package/dist/http/reservation/admin/responses.d.ts +0 -16
- package/dist/http/reservation/admin/responses.d.ts.map +0 -1
- package/dist/http/reservation/admin/responses.js +0 -3
- package/dist/http/reservation/admin/responses.js.map +0 -1
- package/dist/http/reservation/index.d.ts +0 -2
- package/dist/http/reservation/index.d.ts.map +0 -1
- package/dist/http/reservation/index.js +0 -18
- package/dist/http/reservation/index.js.map +0 -1
- package/dist/http/return/admin/entities.d.ts +0 -10
- package/dist/http/return/admin/entities.d.ts.map +0 -1
- package/dist/http/return/admin/entities.js +0 -3
- package/dist/http/return/admin/entities.js.map +0 -1
- package/dist/http/return/admin/index.d.ts +0 -5
- package/dist/http/return/admin/index.d.ts.map +0 -1
- package/dist/http/return/admin/index.js +0 -21
- package/dist/http/return/admin/index.js.map +0 -1
- package/dist/http/return/admin/payloads.d.ts +0 -252
- package/dist/http/return/admin/payloads.d.ts.map +0 -1
- package/dist/http/return/admin/payloads.js +0 -3
- package/dist/http/return/admin/payloads.js.map +0 -1
- package/dist/http/return/admin/queries.d.ts +0 -25
- package/dist/http/return/admin/queries.d.ts.map +0 -1
- package/dist/http/return/admin/queries.js +0 -3
- package/dist/http/return/admin/queries.js.map +0 -1
- package/dist/http/return/admin/responses.d.ts +0 -26
- package/dist/http/return/admin/responses.d.ts.map +0 -1
- package/dist/http/return/admin/responses.js +0 -3
- package/dist/http/return/admin/responses.js.map +0 -1
- package/dist/http/return/common.d.ts +0 -102
- package/dist/http/return/common.d.ts.map +0 -1
- package/dist/http/return/common.js +0 -3
- package/dist/http/return/common.js.map +0 -1
- package/dist/http/return/index.d.ts +0 -3
- package/dist/http/return/index.d.ts.map +0 -1
- package/dist/http/return/index.js +0 -19
- package/dist/http/return/index.js.map +0 -1
- package/dist/http/return/store/entities.d.ts +0 -7
- package/dist/http/return/store/entities.d.ts.map +0 -1
- package/dist/http/return/store/entities.js +0 -3
- package/dist/http/return/store/entities.js.map +0 -1
- package/dist/http/return/store/index.d.ts +0 -4
- package/dist/http/return/store/index.d.ts.map +0 -1
- package/dist/http/return/store/index.js +0 -20
- package/dist/http/return/store/index.js.map +0 -1
- package/dist/http/return/store/payloads.d.ts +0 -20
- package/dist/http/return/store/payloads.d.ts.map +0 -1
- package/dist/http/return/store/payloads.js +0 -3
- package/dist/http/return/store/payloads.js.map +0 -1
- package/dist/http/return/store/responses.d.ts +0 -5
- package/dist/http/return/store/responses.d.ts.map +0 -1
- package/dist/http/return/store/responses.js +0 -3
- package/dist/http/return/store/responses.js.map +0 -1
- package/dist/http/return-reason/admin/entities.d.ts +0 -4
- package/dist/http/return-reason/admin/entities.d.ts.map +0 -1
- package/dist/http/return-reason/admin/entities.js +0 -3
- package/dist/http/return-reason/admin/entities.js.map +0 -1
- package/dist/http/return-reason/admin/index.d.ts +0 -5
- package/dist/http/return-reason/admin/index.d.ts.map +0 -1
- package/dist/http/return-reason/admin/index.js +0 -21
- package/dist/http/return-reason/admin/index.js.map +0 -1
- package/dist/http/return-reason/admin/payloads.d.ts +0 -34
- package/dist/http/return-reason/admin/payloads.d.ts.map +0 -1
- package/dist/http/return-reason/admin/payloads.js +0 -3
- package/dist/http/return-reason/admin/payloads.js.map +0 -1
- package/dist/http/return-reason/admin/queries.d.ts +0 -12
- package/dist/http/return-reason/admin/queries.d.ts.map +0 -1
- package/dist/http/return-reason/admin/queries.js +0 -3
- package/dist/http/return-reason/admin/queries.js.map +0 -1
- package/dist/http/return-reason/admin/responses.d.ts +0 -18
- package/dist/http/return-reason/admin/responses.d.ts.map +0 -1
- package/dist/http/return-reason/admin/responses.js +0 -3
- package/dist/http/return-reason/admin/responses.js.map +0 -1
- package/dist/http/return-reason/common.d.ts +0 -49
- package/dist/http/return-reason/common.d.ts.map +0 -1
- package/dist/http/return-reason/common.js +0 -3
- package/dist/http/return-reason/common.js.map +0 -1
- package/dist/http/return-reason/index.d.ts +0 -3
- package/dist/http/return-reason/index.d.ts.map +0 -1
- package/dist/http/return-reason/index.js +0 -19
- package/dist/http/return-reason/index.js.map +0 -1
- package/dist/http/return-reason/store/entities.d.ts +0 -4
- package/dist/http/return-reason/store/entities.d.ts.map +0 -1
- package/dist/http/return-reason/store/entities.js +0 -3
- package/dist/http/return-reason/store/entities.js.map +0 -1
- package/dist/http/return-reason/store/index.d.ts +0 -3
- package/dist/http/return-reason/store/index.d.ts.map +0 -1
- package/dist/http/return-reason/store/index.js +0 -19
- package/dist/http/return-reason/store/index.js.map +0 -1
- package/dist/http/return-reason/store/responses.d.ts +0 -9
- package/dist/http/return-reason/store/responses.d.ts.map +0 -1
- package/dist/http/return-reason/store/responses.js +0 -3
- package/dist/http/return-reason/store/responses.js.map +0 -1
- package/dist/http/sales-channel/admin/entities.d.ts +0 -35
- package/dist/http/sales-channel/admin/entities.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/entities.js +0 -3
- package/dist/http/sales-channel/admin/entities.js.map +0 -1
- package/dist/http/sales-channel/admin/index.d.ts +0 -5
- package/dist/http/sales-channel/admin/index.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/index.js +0 -21
- package/dist/http/sales-channel/admin/index.js.map +0 -1
- package/dist/http/sales-channel/admin/payloads.d.ts +0 -49
- package/dist/http/sales-channel/admin/payloads.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/payloads.js +0 -3
- package/dist/http/sales-channel/admin/payloads.js.map +0 -1
- package/dist/http/sales-channel/admin/queries.d.ts +0 -47
- package/dist/http/sales-channel/admin/queries.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/queries.js +0 -3
- package/dist/http/sales-channel/admin/queries.js.map +0 -1
- package/dist/http/sales-channel/admin/responses.d.ts +0 -17
- package/dist/http/sales-channel/admin/responses.d.ts.map +0 -1
- package/dist/http/sales-channel/admin/responses.js +0 -3
- package/dist/http/sales-channel/admin/responses.js.map +0 -1
- package/dist/http/sales-channel/index.d.ts +0 -2
- package/dist/http/sales-channel/index.d.ts.map +0 -1
- package/dist/http/sales-channel/index.js +0 -18
- package/dist/http/sales-channel/index.js.map +0 -1
- package/dist/http/shipping-option/admin/entities.d.ts +0 -249
- package/dist/http/shipping-option/admin/entities.d.ts.map +0 -1
- package/dist/http/shipping-option/admin/entities.js +0 -3
- package/dist/http/shipping-option/admin/entities.js.map +0 -1
- package/dist/http/shipping-option/admin/index.d.ts +0 -5
- package/dist/http/shipping-option/admin/index.d.ts.map +0 -1
- package/dist/http/shipping-option/admin/index.js +0 -21
- package/dist/http/shipping-option/admin/index.js.map +0 -1
- package/dist/http/shipping-option/admin/payloads.d.ts +0 -281
- package/dist/http/shipping-option/admin/payloads.d.ts.map +0 -1
- package/dist/http/shipping-option/admin/payloads.js +0 -3
- package/dist/http/shipping-option/admin/payloads.js.map +0 -1
- package/dist/http/shipping-option/admin/queries.d.ts +0 -83
- package/dist/http/shipping-option/admin/queries.d.ts.map +0 -1
- package/dist/http/shipping-option/admin/queries.js +0 -3
- package/dist/http/shipping-option/admin/queries.js.map +0 -1
- package/dist/http/shipping-option/admin/responses.d.ts +0 -33
- package/dist/http/shipping-option/admin/responses.d.ts.map +0 -1
- package/dist/http/shipping-option/admin/responses.js +0 -3
- package/dist/http/shipping-option/admin/responses.js.map +0 -1
- package/dist/http/shipping-option/index.d.ts +0 -3
- package/dist/http/shipping-option/index.d.ts.map +0 -1
- package/dist/http/shipping-option/index.js +0 -19
- package/dist/http/shipping-option/index.js.map +0 -1
- package/dist/http/shipping-option/store/entities.d.ts +0 -28
- package/dist/http/shipping-option/store/entities.d.ts.map +0 -1
- package/dist/http/shipping-option/store/entities.js +0 -3
- package/dist/http/shipping-option/store/entities.js.map +0 -1
- package/dist/http/shipping-option/store/index.d.ts +0 -5
- package/dist/http/shipping-option/store/index.d.ts.map +0 -1
- package/dist/http/shipping-option/store/index.js +0 -21
- package/dist/http/shipping-option/store/index.js.map +0 -1
- package/dist/http/shipping-option/store/payloads.d.ts +0 -17
- package/dist/http/shipping-option/store/payloads.d.ts.map +0 -1
- package/dist/http/shipping-option/store/payloads.js +0 -3
- package/dist/http/shipping-option/store/payloads.js.map +0 -1
- package/dist/http/shipping-option/store/queries.d.ts +0 -14
- package/dist/http/shipping-option/store/queries.d.ts.map +0 -1
- package/dist/http/shipping-option/store/queries.js +0 -3
- package/dist/http/shipping-option/store/queries.js.map +0 -1
- package/dist/http/shipping-option/store/responses.d.ts +0 -20
- package/dist/http/shipping-option/store/responses.d.ts.map +0 -1
- package/dist/http/shipping-option/store/responses.js +0 -3
- package/dist/http/shipping-option/store/responses.js.map +0 -1
- package/dist/http/shipping-profile/admin/entities.d.ts +0 -31
- package/dist/http/shipping-profile/admin/entities.d.ts.map +0 -1
- package/dist/http/shipping-profile/admin/entities.js +0 -3
- package/dist/http/shipping-profile/admin/entities.js.map +0 -1
- package/dist/http/shipping-profile/admin/index.d.ts +0 -5
- package/dist/http/shipping-profile/admin/index.d.ts.map +0 -1
- package/dist/http/shipping-profile/admin/index.js +0 -21
- package/dist/http/shipping-profile/admin/index.js.map +0 -1
- package/dist/http/shipping-profile/admin/payloads.d.ts +0 -29
- package/dist/http/shipping-profile/admin/payloads.d.ts.map +0 -1
- package/dist/http/shipping-profile/admin/payloads.js +0 -3
- package/dist/http/shipping-profile/admin/payloads.js.map +0 -1
- package/dist/http/shipping-profile/admin/queries.d.ts +0 -41
- package/dist/http/shipping-profile/admin/queries.d.ts.map +0 -1
- package/dist/http/shipping-profile/admin/queries.js +0 -3
- package/dist/http/shipping-profile/admin/queries.js.map +0 -1
- package/dist/http/shipping-profile/admin/responses.d.ts +0 -17
- package/dist/http/shipping-profile/admin/responses.d.ts.map +0 -1
- package/dist/http/shipping-profile/admin/responses.js +0 -3
- package/dist/http/shipping-profile/admin/responses.js.map +0 -1
- package/dist/http/shipping-profile/index.d.ts +0 -2
- package/dist/http/shipping-profile/index.d.ts.map +0 -1
- package/dist/http/shipping-profile/index.js +0 -18
- package/dist/http/shipping-profile/index.js.map +0 -1
- package/dist/http/stock-locations/admin/entities.d.ts +0 -45
- package/dist/http/stock-locations/admin/entities.d.ts.map +0 -1
- package/dist/http/stock-locations/admin/entities.js +0 -3
- package/dist/http/stock-locations/admin/entities.js.map +0 -1
- package/dist/http/stock-locations/admin/index.d.ts +0 -5
- package/dist/http/stock-locations/admin/index.d.ts.map +0 -1
- package/dist/http/stock-locations/admin/index.js +0 -21
- package/dist/http/stock-locations/admin/index.js.map +0 -1
- package/dist/http/stock-locations/admin/payloads.d.ts +0 -101
- package/dist/http/stock-locations/admin/payloads.d.ts.map +0 -1
- package/dist/http/stock-locations/admin/payloads.js +0 -3
- package/dist/http/stock-locations/admin/payloads.js.map +0 -1
- package/dist/http/stock-locations/admin/queries.d.ts +0 -37
- package/dist/http/stock-locations/admin/queries.d.ts.map +0 -1
- package/dist/http/stock-locations/admin/queries.js +0 -3
- package/dist/http/stock-locations/admin/queries.js.map +0 -1
- package/dist/http/stock-locations/admin/responses.d.ts +0 -18
- package/dist/http/stock-locations/admin/responses.d.ts.map +0 -1
- package/dist/http/stock-locations/admin/responses.js +0 -3
- package/dist/http/stock-locations/admin/responses.js.map +0 -1
- package/dist/http/stock-locations/index.d.ts +0 -2
- package/dist/http/stock-locations/index.d.ts.map +0 -1
- package/dist/http/stock-locations/index.js +0 -18
- package/dist/http/stock-locations/index.js.map +0 -1
- package/dist/http/tax-provider/admin/entities.d.ts +0 -11
- package/dist/http/tax-provider/admin/entities.d.ts.map +0 -1
- package/dist/http/tax-provider/admin/entities.js +0 -3
- package/dist/http/tax-provider/admin/entities.js.map +0 -1
- package/dist/http/tax-provider/admin/index.d.ts +0 -4
- package/dist/http/tax-provider/admin/index.d.ts.map +0 -1
- package/dist/http/tax-provider/admin/index.js +0 -20
- package/dist/http/tax-provider/admin/index.js.map +0 -1
- package/dist/http/tax-provider/admin/queries.d.ts +0 -13
- package/dist/http/tax-provider/admin/queries.d.ts.map +0 -1
- package/dist/http/tax-provider/admin/queries.js +0 -3
- package/dist/http/tax-provider/admin/queries.js.map +0 -1
- package/dist/http/tax-provider/admin/responses.d.ts +0 -9
- package/dist/http/tax-provider/admin/responses.d.ts.map +0 -1
- package/dist/http/tax-provider/admin/responses.js +0 -3
- package/dist/http/tax-provider/admin/responses.js.map +0 -1
- package/dist/http/tax-provider/index.d.ts +0 -2
- package/dist/http/tax-provider/index.d.ts.map +0 -1
- package/dist/http/tax-provider/index.js +0 -18
- package/dist/http/tax-provider/index.js.map +0 -1
- package/dist/http/tax-rate/admin/entities.d.ts +0 -76
- package/dist/http/tax-rate/admin/entities.d.ts.map +0 -1
- package/dist/http/tax-rate/admin/entities.js +0 -3
- package/dist/http/tax-rate/admin/entities.js.map +0 -1
- package/dist/http/tax-rate/admin/index.d.ts +0 -5
- package/dist/http/tax-rate/admin/index.d.ts.map +0 -1
- package/dist/http/tax-rate/admin/index.js +0 -21
- package/dist/http/tax-rate/admin/index.js.map +0 -1
- package/dist/http/tax-rate/admin/payloads.d.ts +0 -81
- package/dist/http/tax-rate/admin/payloads.d.ts.map +0 -1
- package/dist/http/tax-rate/admin/payloads.js +0 -3
- package/dist/http/tax-rate/admin/payloads.js.map +0 -1
- package/dist/http/tax-rate/admin/queries.d.ts +0 -45
- package/dist/http/tax-rate/admin/queries.d.ts.map +0 -1
- package/dist/http/tax-rate/admin/queries.js +0 -3
- package/dist/http/tax-rate/admin/queries.js.map +0 -1
- package/dist/http/tax-rate/admin/responses.d.ts +0 -18
- package/dist/http/tax-rate/admin/responses.d.ts.map +0 -1
- package/dist/http/tax-rate/admin/responses.js +0 -3
- package/dist/http/tax-rate/admin/responses.js.map +0 -1
- package/dist/http/tax-rate/index.d.ts +0 -2
- package/dist/http/tax-rate/index.d.ts.map +0 -1
- package/dist/http/tax-rate/index.js +0 -18
- package/dist/http/tax-rate/index.js.map +0 -1
- package/dist/http/tax-region/admin/entities.d.ts +0 -62
- package/dist/http/tax-region/admin/entities.d.ts.map +0 -1
- package/dist/http/tax-region/admin/entities.js +0 -3
- package/dist/http/tax-region/admin/entities.js.map +0 -1
- package/dist/http/tax-region/admin/index.d.ts +0 -5
- package/dist/http/tax-region/admin/index.d.ts.map +0 -1
- package/dist/http/tax-region/admin/index.js +0 -21
- package/dist/http/tax-region/admin/index.js.map +0 -1
- package/dist/http/tax-region/admin/payloads.d.ts +0 -65
- package/dist/http/tax-region/admin/payloads.d.ts.map +0 -1
- package/dist/http/tax-region/admin/payloads.js +0 -3
- package/dist/http/tax-region/admin/payloads.js.map +0 -1
- package/dist/http/tax-region/admin/queries.d.ts +0 -44
- package/dist/http/tax-region/admin/queries.d.ts.map +0 -1
- package/dist/http/tax-region/admin/queries.js +0 -3
- package/dist/http/tax-region/admin/queries.js.map +0 -1
- package/dist/http/tax-region/admin/responses.d.ts +0 -17
- package/dist/http/tax-region/admin/responses.d.ts.map +0 -1
- package/dist/http/tax-region/admin/responses.js +0 -3
- package/dist/http/tax-region/admin/responses.js.map +0 -1
- package/dist/http/tax-region/index.d.ts +0 -2
- package/dist/http/tax-region/index.d.ts.map +0 -1
- package/dist/http/tax-region/index.js +0 -18
- package/dist/http/tax-region/index.js.map +0 -1
- package/dist/inventory/common/index.d.ts +0 -4
- package/dist/inventory/common/index.d.ts.map +0 -1
- package/dist/inventory/common/index.js +0 -20
- package/dist/inventory/common/index.js.map +0 -1
- package/dist/inventory/common/inventory-item.d.ts +0 -114
- package/dist/inventory/common/inventory-item.d.ts.map +0 -1
- package/dist/inventory/common/inventory-item.js +0 -3
- package/dist/inventory/common/inventory-item.js.map +0 -1
- package/dist/inventory/common/inventory-level.d.ts +0 -80
- package/dist/inventory/common/inventory-level.d.ts.map +0 -1
- package/dist/inventory/common/inventory-level.js +0 -3
- package/dist/inventory/common/inventory-level.js.map +0 -1
- package/dist/inventory/common/reservation-item.d.ts +0 -98
- package/dist/inventory/common/reservation-item.d.ts.map +0 -1
- package/dist/inventory/common/reservation-item.js +0 -3
- package/dist/inventory/common/reservation-item.js.map +0 -1
- package/dist/inventory/index.d.ts +0 -4
- package/dist/inventory/index.d.ts.map +0 -1
- package/dist/inventory/index.js +0 -20
- package/dist/inventory/index.js.map +0 -1
- package/dist/inventory/mutations/index.d.ts +0 -4
- package/dist/inventory/mutations/index.d.ts.map +0 -1
- package/dist/inventory/mutations/index.js +0 -20
- package/dist/inventory/mutations/index.js.map +0 -1
- package/dist/inventory/mutations/inventory-item.d.ts +0 -73
- package/dist/inventory/mutations/inventory-item.d.ts.map +0 -1
- package/dist/inventory/mutations/inventory-item.js +0 -3
- package/dist/inventory/mutations/inventory-item.js.map +0 -1
- package/dist/inventory/mutations/inventory-level.d.ts +0 -63
- package/dist/inventory/mutations/inventory-level.d.ts.map +0 -1
- package/dist/inventory/mutations/inventory-level.js +0 -3
- package/dist/inventory/mutations/inventory-level.js.map +0 -1
- package/dist/inventory/mutations/reservation-item.d.ts +0 -81
- package/dist/inventory/mutations/reservation-item.d.ts.map +0 -1
- package/dist/inventory/mutations/reservation-item.js +0 -3
- package/dist/inventory/mutations/reservation-item.js.map +0 -1
- package/dist/inventory/service.d.ts +0 -1034
- package/dist/inventory/service.d.ts.map +0 -1
- package/dist/inventory/service.js +0 -3
- package/dist/inventory/service.js.map +0 -1
- package/dist/order/common.d.ts +0 -2515
- package/dist/order/common.d.ts.map +0 -1
- package/dist/order/common.js +0 -3
- package/dist/order/common.js.map +0 -1
- package/dist/order/index.d.ts +0 -5
- package/dist/order/index.d.ts.map +0 -1
- package/dist/order/index.js +0 -21
- package/dist/order/index.js.map +0 -1
- package/dist/order/mutations.d.ts +0 -1933
- package/dist/order/mutations.d.ts.map +0 -1
- package/dist/order/mutations.js +0 -3
- package/dist/order/mutations.js.map +0 -1
- package/dist/order/service.d.ts +0 -4130
- package/dist/order/service.d.ts.map +0 -1
- package/dist/order/service.js +0 -3
- package/dist/order/service.js.map +0 -1
- package/dist/order/workflows.d.ts +0 -8
- package/dist/order/workflows.d.ts.map +0 -1
- package/dist/order/workflows.js +0 -3
- package/dist/order/workflows.js.map +0 -1
- package/dist/payment/common.d.ts +0 -585
- package/dist/payment/common.d.ts.map +0 -1
- package/dist/payment/common.js +0 -3
- package/dist/payment/common.js.map +0 -1
- package/dist/payment/index.d.ts +0 -5
- package/dist/payment/index.d.ts.map +0 -1
- package/dist/payment/index.js +0 -21
- package/dist/payment/index.js.map +0 -1
- package/dist/payment/mutations.d.ts +0 -353
- package/dist/payment/mutations.d.ts.map +0 -1
- package/dist/payment/mutations.js +0 -3
- package/dist/payment/mutations.js.map +0 -1
- package/dist/payment/provider.d.ts +0 -617
- package/dist/payment/provider.d.ts.map +0 -1
- package/dist/payment/provider.js +0 -3
- package/dist/payment/provider.js.map +0 -1
- package/dist/payment/service.d.ts +0 -1234
- package/dist/payment/service.d.ts.map +0 -1
- package/dist/payment/service.js +0 -3
- package/dist/payment/service.js.map +0 -1
- package/dist/pricing/common/index.d.ts +0 -8
- package/dist/pricing/common/index.d.ts.map +0 -1
- package/dist/pricing/common/index.js +0 -24
- package/dist/pricing/common/index.js.map +0 -1
- package/dist/pricing/common/money-amount.d.ts +0 -120
- package/dist/pricing/common/money-amount.d.ts.map +0 -1
- package/dist/pricing/common/money-amount.js +0 -3
- package/dist/pricing/common/money-amount.js.map +0 -1
- package/dist/pricing/common/price-list.d.ts +0 -345
- package/dist/pricing/common/price-list.d.ts.map +0 -1
- package/dist/pricing/common/price-list.js +0 -3
- package/dist/pricing/common/price-list.js.map +0 -1
- package/dist/pricing/common/price-preference.d.ts +0 -90
- package/dist/pricing/common/price-preference.d.ts.map +0 -1
- package/dist/pricing/common/price-preference.js +0 -3
- package/dist/pricing/common/price-preference.js.map +0 -1
- package/dist/pricing/common/price-rule.d.ts +0 -165
- package/dist/pricing/common/price-rule.d.ts.map +0 -1
- package/dist/pricing/common/price-rule.js +0 -3
- package/dist/pricing/common/price-rule.js.map +0 -1
- package/dist/pricing/common/price-set.d.ts +0 -289
- package/dist/pricing/common/price-set.d.ts.map +0 -1
- package/dist/pricing/common/price-set.js +0 -3
- package/dist/pricing/common/price-set.js.map +0 -1
- package/dist/pricing/common/price.d.ts +0 -138
- package/dist/pricing/common/price.d.ts.map +0 -1
- package/dist/pricing/common/price.js +0 -3
- package/dist/pricing/common/price.js.map +0 -1
- package/dist/pricing/common/pricing-context.d.ts +0 -11
- package/dist/pricing/common/pricing-context.d.ts.map +0 -1
- package/dist/pricing/common/pricing-context.js +0 -3
- package/dist/pricing/common/pricing-context.js.map +0 -1
- package/dist/pricing/index.d.ts +0 -4
- package/dist/pricing/index.d.ts.map +0 -1
- package/dist/pricing/index.js +0 -20
- package/dist/pricing/index.js.map +0 -1
- package/dist/pricing/service.d.ts +0 -1601
- package/dist/pricing/service.d.ts.map +0 -1
- package/dist/pricing/service.js +0 -3
- package/dist/pricing/service.js.map +0 -1
- package/dist/pricing/workflows.d.ts +0 -242
- package/dist/pricing/workflows.d.ts.map +0 -1
- package/dist/pricing/workflows.js +0 -3
- package/dist/pricing/workflows.js.map +0 -1
- package/dist/product/common.d.ts +0 -1643
- package/dist/product/common.d.ts.map +0 -1
- package/dist/product/common.js +0 -3
- package/dist/product/common.js.map +0 -1
- package/dist/product/index.d.ts +0 -3
- package/dist/product/index.d.ts.map +0 -1
- package/dist/product/index.js +0 -19
- package/dist/product/index.js.map +0 -1
- package/dist/product/service.d.ts +0 -2429
- package/dist/product/service.d.ts.map +0 -1
- package/dist/product/service.js +0 -3
- package/dist/product/service.js.map +0 -1
- package/dist/product-category/index.d.ts +0 -2
- package/dist/product-category/index.d.ts.map +0 -1
- package/dist/product-category/index.js +0 -18
- package/dist/product-category/index.js.map +0 -1
- package/dist/product-category/repository.d.ts +0 -6
- package/dist/product-category/repository.d.ts.map +0 -1
- package/dist/product-category/repository.js +0 -3
- package/dist/product-category/repository.js.map +0 -1
- package/dist/promotion/common/application-method.d.ts +0 -208
- package/dist/promotion/common/application-method.d.ts.map +0 -1
- package/dist/promotion/common/application-method.js +0 -3
- package/dist/promotion/common/application-method.js.map +0 -1
- package/dist/promotion/common/campaign-budget.d.ts +0 -73
- package/dist/promotion/common/campaign-budget.d.ts.map +0 -1
- package/dist/promotion/common/campaign-budget.js +0 -3
- package/dist/promotion/common/campaign-budget.js.map +0 -1
- package/dist/promotion/common/campaign.d.ts +0 -58
- package/dist/promotion/common/campaign.d.ts.map +0 -1
- package/dist/promotion/common/campaign.js +0 -3
- package/dist/promotion/common/campaign.js.map +0 -1
- package/dist/promotion/common/campaing-budget-usage.d.ts +0 -58
- package/dist/promotion/common/campaing-budget-usage.d.ts.map +0 -1
- package/dist/promotion/common/campaing-budget-usage.js +0 -3
- package/dist/promotion/common/campaing-budget-usage.js.map +0 -1
- package/dist/promotion/common/compute-actions.d.ts +0 -296
- package/dist/promotion/common/compute-actions.d.ts.map +0 -1
- package/dist/promotion/common/compute-actions.js +0 -3
- package/dist/promotion/common/compute-actions.js.map +0 -1
- package/dist/promotion/common/index.d.ts +0 -9
- package/dist/promotion/common/index.d.ts.map +0 -1
- package/dist/promotion/common/index.js +0 -25
- package/dist/promotion/common/index.js.map +0 -1
- package/dist/promotion/common/promotion-rule-value.d.ts +0 -47
- package/dist/promotion/common/promotion-rule-value.d.ts.map +0 -1
- package/dist/promotion/common/promotion-rule-value.js +0 -3
- package/dist/promotion/common/promotion-rule-value.js.map +0 -1
- package/dist/promotion/common/promotion-rule.d.ts +0 -106
- package/dist/promotion/common/promotion-rule.d.ts.map +0 -1
- package/dist/promotion/common/promotion-rule.js +0 -3
- package/dist/promotion/common/promotion-rule.js.map +0 -1
- package/dist/promotion/common/promotion.d.ts +0 -214
- package/dist/promotion/common/promotion.d.ts.map +0 -1
- package/dist/promotion/common/promotion.js +0 -3
- package/dist/promotion/common/promotion.js.map +0 -1
- package/dist/promotion/http.d.ts +0 -16
- package/dist/promotion/http.d.ts.map +0 -1
- package/dist/promotion/http.js +0 -3
- package/dist/promotion/http.js.map +0 -1
- package/dist/promotion/index.d.ts +0 -6
- package/dist/promotion/index.d.ts.map +0 -1
- package/dist/promotion/index.js +0 -22
- package/dist/promotion/index.js.map +0 -1
- package/dist/promotion/mutations.d.ts +0 -140
- package/dist/promotion/mutations.d.ts.map +0 -1
- package/dist/promotion/mutations.js +0 -3
- package/dist/promotion/mutations.js.map +0 -1
- package/dist/promotion/service.d.ts +0 -905
- package/dist/promotion/service.d.ts.map +0 -1
- package/dist/promotion/service.js +0 -3
- package/dist/promotion/service.js.map +0 -1
- package/dist/promotion/workflows.d.ts +0 -55
- package/dist/promotion/workflows.d.ts.map +0 -1
- package/dist/promotion/workflows.js +0 -3
- package/dist/promotion/workflows.js.map +0 -1
- package/dist/region/common.d.ts +0 -135
- package/dist/region/common.d.ts.map +0 -1
- package/dist/region/common.js +0 -3
- package/dist/region/common.js.map +0 -1
- package/dist/region/index.d.ts +0 -4
- package/dist/region/index.d.ts.map +0 -1
- package/dist/region/index.js +0 -20
- package/dist/region/index.js.map +0 -1
- package/dist/region/mutations.d.ts +0 -87
- package/dist/region/mutations.d.ts.map +0 -1
- package/dist/region/mutations.js +0 -3
- package/dist/region/mutations.js.map +0 -1
- package/dist/region/service.d.ts +0 -466
- package/dist/region/service.d.ts.map +0 -1
- package/dist/region/service.js +0 -3
- package/dist/region/service.js.map +0 -1
- package/dist/sales-channel/common.d.ts +0 -69
- package/dist/sales-channel/common.d.ts.map +0 -1
- package/dist/sales-channel/common.js +0 -3
- package/dist/sales-channel/common.js.map +0 -1
- package/dist/sales-channel/index.d.ts +0 -4
- package/dist/sales-channel/index.d.ts.map +0 -1
- package/dist/sales-channel/index.js +0 -20
- package/dist/sales-channel/index.js.map +0 -1
- package/dist/sales-channel/mutations.d.ts +0 -66
- package/dist/sales-channel/mutations.d.ts.map +0 -1
- package/dist/sales-channel/mutations.js +0 -3
- package/dist/sales-channel/mutations.js.map +0 -1
- package/dist/sales-channel/service.d.ts +0 -239
- package/dist/sales-channel/service.d.ts.map +0 -1
- package/dist/sales-channel/service.js +0 -3
- package/dist/sales-channel/service.js.map +0 -1
- package/dist/stock-location/common.d.ts +0 -430
- package/dist/stock-location/common.d.ts.map +0 -1
- package/dist/stock-location/common.js +0 -3
- package/dist/stock-location/common.js.map +0 -1
- package/dist/stock-location/index.d.ts +0 -3
- package/dist/stock-location/index.d.ts.map +0 -1
- package/dist/stock-location/index.js +0 -19
- package/dist/stock-location/index.js.map +0 -1
- package/dist/stock-location/service.d.ts +0 -326
- package/dist/stock-location/service.d.ts.map +0 -1
- package/dist/stock-location/service.js +0 -3
- package/dist/stock-location/service.js.map +0 -1
- package/dist/tax/common.d.ts +0 -475
- package/dist/tax/common.d.ts.map +0 -1
- package/dist/tax/common.js +0 -3
- package/dist/tax/common.js.map +0 -1
- package/dist/tax/index.d.ts +0 -5
- package/dist/tax/index.d.ts.map +0 -1
- package/dist/tax/index.js +0 -21
- package/dist/tax/index.js.map +0 -1
- package/dist/tax/mutations.d.ts +0 -262
- package/dist/tax/mutations.d.ts.map +0 -1
- package/dist/tax/mutations.js +0 -3
- package/dist/tax/mutations.js.map +0 -1
- package/dist/tax/provider.d.ts +0 -168
- package/dist/tax/provider.d.ts.map +0 -1
- package/dist/tax/provider.js +0 -3
- package/dist/tax/provider.js.map +0 -1
- package/dist/tax/service.d.ts +0 -775
- package/dist/tax/service.d.ts.map +0 -1
- package/dist/tax/service.js +0 -3
- package/dist/tax/service.js.map +0 -1
- package/dist/workflow/cart/create-cart.d.ts +0 -19
- package/dist/workflow/cart/create-cart.d.ts.map +0 -1
- package/dist/workflow/cart/create-cart.js +0 -3
- package/dist/workflow/cart/create-cart.js.map +0 -1
- package/dist/workflow/cart/index.d.ts +0 -2
- package/dist/workflow/cart/index.d.ts.map +0 -1
- package/dist/workflow/cart/index.js +0 -18
- package/dist/workflow/cart/index.js.map +0 -1
- package/dist/workflow/fulfillment/calculate-shipping-options-prices.d.ts +0 -31
- package/dist/workflow/fulfillment/calculate-shipping-options-prices.d.ts.map +0 -1
- package/dist/workflow/fulfillment/calculate-shipping-options-prices.js +0 -3
- package/dist/workflow/fulfillment/calculate-shipping-options-prices.js.map +0 -1
- package/dist/workflow/fulfillment/create-fulfillment.d.ts +0 -158
- package/dist/workflow/fulfillment/create-fulfillment.d.ts.map +0 -1
- package/dist/workflow/fulfillment/create-fulfillment.js +0 -3
- package/dist/workflow/fulfillment/create-fulfillment.js.map +0 -1
- package/dist/workflow/fulfillment/create-shipment.d.ts +0 -19
- package/dist/workflow/fulfillment/create-shipment.d.ts.map +0 -1
- package/dist/workflow/fulfillment/create-shipment.js +0 -3
- package/dist/workflow/fulfillment/create-shipment.js.map +0 -1
- package/dist/workflow/fulfillment/create-shipping-options.d.ts +0 -116
- package/dist/workflow/fulfillment/create-shipping-options.d.ts.map +0 -1
- package/dist/workflow/fulfillment/create-shipping-options.js +0 -3
- package/dist/workflow/fulfillment/create-shipping-options.js.map +0 -1
- package/dist/workflow/fulfillment/delete-shipping-options.d.ts +0 -10
- package/dist/workflow/fulfillment/delete-shipping-options.d.ts.map +0 -1
- package/dist/workflow/fulfillment/delete-shipping-options.js +0 -3
- package/dist/workflow/fulfillment/delete-shipping-options.js.map +0 -1
- package/dist/workflow/fulfillment/index.d.ts +0 -10
- package/dist/workflow/fulfillment/index.d.ts.map +0 -1
- package/dist/workflow/fulfillment/index.js +0 -26
- package/dist/workflow/fulfillment/index.js.map +0 -1
- package/dist/workflow/fulfillment/service-zones.d.ts +0 -60
- package/dist/workflow/fulfillment/service-zones.d.ts.map +0 -1
- package/dist/workflow/fulfillment/service-zones.js +0 -3
- package/dist/workflow/fulfillment/service-zones.js.map +0 -1
- package/dist/workflow/fulfillment/shipping-profiles.d.ts +0 -46
- package/dist/workflow/fulfillment/shipping-profiles.d.ts.map +0 -1
- package/dist/workflow/fulfillment/shipping-profiles.js +0 -3
- package/dist/workflow/fulfillment/shipping-profiles.js.map +0 -1
- package/dist/workflow/fulfillment/update-fulfillment.d.ts +0 -42
- package/dist/workflow/fulfillment/update-fulfillment.d.ts.map +0 -1
- package/dist/workflow/fulfillment/update-fulfillment.js +0 -3
- package/dist/workflow/fulfillment/update-fulfillment.js.map +0 -1
- package/dist/workflow/fulfillment/update-shipping-options.d.ts +0 -154
- package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +0 -1
- package/dist/workflow/fulfillment/update-shipping-options.js +0 -3
- package/dist/workflow/fulfillment/update-shipping-options.js.map +0 -1
- package/dist/workflow/inventory/create-inventory-items.d.ts +0 -19
- package/dist/workflow/inventory/create-inventory-items.d.ts.map +0 -1
- package/dist/workflow/inventory/create-inventory-items.js +0 -3
- package/dist/workflow/inventory/create-inventory-items.js.map +0 -1
- package/dist/workflow/inventory/index.d.ts +0 -2
- package/dist/workflow/inventory/index.d.ts.map +0 -1
- package/dist/workflow/inventory/index.js +0 -18
- package/dist/workflow/inventory/index.js.map +0 -1
- package/dist/workflow/order/accept-transfer.d.ts +0 -14
- package/dist/workflow/order/accept-transfer.d.ts.map +0 -1
- package/dist/workflow/order/accept-transfer.js +0 -3
- package/dist/workflow/order/accept-transfer.js.map +0 -1
- package/dist/workflow/order/begin-claim-order.d.ts +0 -31
- package/dist/workflow/order/begin-claim-order.d.ts.map +0 -1
- package/dist/workflow/order/begin-claim-order.js +0 -3
- package/dist/workflow/order/begin-claim-order.js.map +0 -1
- package/dist/workflow/order/begin-exchange-order.d.ts +0 -26
- package/dist/workflow/order/begin-exchange-order.d.ts.map +0 -1
- package/dist/workflow/order/begin-exchange-order.js +0 -3
- package/dist/workflow/order/begin-exchange-order.js.map +0 -1
- package/dist/workflow/order/begin-order-edit.d.ts +0 -29
- package/dist/workflow/order/begin-order-edit.d.ts.map +0 -1
- package/dist/workflow/order/begin-order-edit.js +0 -3
- package/dist/workflow/order/begin-order-edit.js.map +0 -1
- package/dist/workflow/order/begin-return-order.d.ts +0 -30
- package/dist/workflow/order/begin-return-order.d.ts.map +0 -1
- package/dist/workflow/order/begin-return-order.js +0 -3
- package/dist/workflow/order/begin-return-order.js.map +0 -1
- package/dist/workflow/order/cancel-claim.d.ts +0 -18
- package/dist/workflow/order/cancel-claim.d.ts.map +0 -1
- package/dist/workflow/order/cancel-claim.js +0 -3
- package/dist/workflow/order/cancel-claim.js.map +0 -1
- package/dist/workflow/order/cancel-exchange.d.ts +0 -18
- package/dist/workflow/order/cancel-exchange.d.ts.map +0 -1
- package/dist/workflow/order/cancel-exchange.js +0 -3
- package/dist/workflow/order/cancel-exchange.js.map +0 -1
- package/dist/workflow/order/cancel-fulfillment.d.ts +0 -19
- package/dist/workflow/order/cancel-fulfillment.d.ts.map +0 -1
- package/dist/workflow/order/cancel-fulfillment.js +0 -3
- package/dist/workflow/order/cancel-fulfillment.js.map +0 -1
- package/dist/workflow/order/cancel-order.d.ts +0 -18
- package/dist/workflow/order/cancel-order.d.ts.map +0 -1
- package/dist/workflow/order/cancel-order.js +0 -3
- package/dist/workflow/order/cancel-order.js.map +0 -1
- package/dist/workflow/order/cancel-return.d.ts +0 -18
- package/dist/workflow/order/cancel-return.d.ts.map +0 -1
- package/dist/workflow/order/cancel-return.js +0 -3
- package/dist/workflow/order/cancel-return.js.map +0 -1
- package/dist/workflow/order/cancel-transfer.d.ts +0 -18
- package/dist/workflow/order/cancel-transfer.d.ts.map +0 -1
- package/dist/workflow/order/cancel-transfer.js +0 -3
- package/dist/workflow/order/cancel-transfer.js.map +0 -1
- package/dist/workflow/order/create-fulfillment.d.ts +0 -65
- package/dist/workflow/order/create-fulfillment.d.ts.map +0 -1
- package/dist/workflow/order/create-fulfillment.js +0 -3
- package/dist/workflow/order/create-fulfillment.js.map +0 -1
- package/dist/workflow/order/create-return-order.d.ts +0 -85
- package/dist/workflow/order/create-return-order.d.ts.map +0 -1
- package/dist/workflow/order/create-return-order.js +0 -3
- package/dist/workflow/order/create-return-order.js.map +0 -1
- package/dist/workflow/order/create-shipment.d.ts +0 -51
- package/dist/workflow/order/create-shipment.d.ts.map +0 -1
- package/dist/workflow/order/create-shipment.js +0 -3
- package/dist/workflow/order/create-shipment.js.map +0 -1
- package/dist/workflow/order/decline-transfer.d.ts +0 -14
- package/dist/workflow/order/decline-transfer.d.ts.map +0 -1
- package/dist/workflow/order/decline-transfer.js +0 -3
- package/dist/workflow/order/decline-transfer.js.map +0 -1
- package/dist/workflow/order/index.d.ts +0 -23
- package/dist/workflow/order/index.d.ts.map +0 -1
- package/dist/workflow/order/index.js +0 -39
- package/dist/workflow/order/index.js.map +0 -1
- package/dist/workflow/order/items.d.ts +0 -323
- package/dist/workflow/order/items.d.ts.map +0 -1
- package/dist/workflow/order/items.js +0 -3
- package/dist/workflow/order/items.js.map +0 -1
- package/dist/workflow/order/receive-return.d.ts +0 -120
- package/dist/workflow/order/receive-return.d.ts.map +0 -1
- package/dist/workflow/order/receive-return.js +0 -3
- package/dist/workflow/order/receive-return.js.map +0 -1
- package/dist/workflow/order/request-item-return.d.ts +0 -140
- package/dist/workflow/order/request-item-return.d.ts.map +0 -1
- package/dist/workflow/order/request-item-return.js +0 -3
- package/dist/workflow/order/request-item-return.js.map +0 -1
- package/dist/workflow/order/request-transfer.d.ts +0 -24
- package/dist/workflow/order/request-transfer.d.ts.map +0 -1
- package/dist/workflow/order/request-transfer.js +0 -3
- package/dist/workflow/order/request-transfer.js.map +0 -1
- package/dist/workflow/order/shipping-method.d.ts +0 -198
- package/dist/workflow/order/shipping-method.d.ts.map +0 -1
- package/dist/workflow/order/shipping-method.js +0 -3
- package/dist/workflow/order/shipping-method.js.map +0 -1
- package/dist/workflow/order/update-order.d.ts +0 -44
- package/dist/workflow/order/update-order.d.ts.map +0 -1
- package/dist/workflow/order/update-order.js +0 -3
- package/dist/workflow/order/update-order.js.map +0 -1
- package/dist/workflow/order/update-return.d.ts +0 -22
- package/dist/workflow/order/update-return.d.ts.map +0 -1
- package/dist/workflow/order/update-return.js +0 -3
- package/dist/workflow/order/update-return.js.map +0 -1
- package/dist/workflow/price-list/create-price-list.d.ts +0 -66
- package/dist/workflow/price-list/create-price-list.d.ts.map +0 -1
- package/dist/workflow/price-list/create-price-list.js +0 -3
- package/dist/workflow/price-list/create-price-list.js.map +0 -1
- package/dist/workflow/price-list/index.d.ts +0 -3
- package/dist/workflow/price-list/index.d.ts.map +0 -1
- package/dist/workflow/price-list/index.js +0 -19
- package/dist/workflow/price-list/index.js.map +0 -1
- package/dist/workflow/price-list/remove-price-list.d.ts +0 -4
- package/dist/workflow/price-list/remove-price-list.d.ts.map +0 -1
- package/dist/workflow/price-list/remove-price-list.js +0 -3
- package/dist/workflow/price-list/remove-price-list.js.map +0 -1
- package/dist/workflow/pricing/index.d.ts +0 -31
- package/dist/workflow/pricing/index.d.ts.map +0 -1
- package/dist/workflow/pricing/index.js +0 -3
- package/dist/workflow/pricing/index.js.map +0 -1
- package/dist/workflow/product/create-product-variants.d.ts +0 -26
- package/dist/workflow/product/create-product-variants.d.ts.map +0 -1
- package/dist/workflow/product/create-product-variants.js +0 -3
- package/dist/workflow/product/create-product-variants.js.map +0 -1
- package/dist/workflow/product/create-products.d.ts +0 -82
- package/dist/workflow/product/create-products.d.ts.map +0 -1
- package/dist/workflow/product/create-products.js +0 -3
- package/dist/workflow/product/create-products.js.map +0 -1
- package/dist/workflow/product/export-products.d.ts +0 -21
- package/dist/workflow/product/export-products.d.ts.map +0 -1
- package/dist/workflow/product/export-products.js +0 -3
- package/dist/workflow/product/export-products.js.map +0 -1
- package/dist/workflow/product/import-products.d.ts +0 -18
- package/dist/workflow/product/import-products.d.ts.map +0 -1
- package/dist/workflow/product/import-products.js +0 -3
- package/dist/workflow/product/import-products.js.map +0 -1
- package/dist/workflow/product/index.d.ts +0 -7
- package/dist/workflow/product/index.d.ts.map +0 -1
- package/dist/workflow/product/index.js +0 -23
- package/dist/workflow/product/index.js.map +0 -1
- package/dist/workflow/product/update-product-variants.d.ts +0 -37
- package/dist/workflow/product/update-product-variants.d.ts.map +0 -1
- package/dist/workflow/product/update-product-variants.js +0 -3
- package/dist/workflow/product/update-product-variants.js.map +0 -1
- package/dist/workflow/product/update-products.d.ts +0 -78
- package/dist/workflow/product/update-products.d.ts.map +0 -1
- package/dist/workflow/product/update-products.js +0 -3
- package/dist/workflow/product/update-products.js.map +0 -1
- package/dist/workflow/product-category/index.d.ts +0 -31
- package/dist/workflow/product-category/index.d.ts.map +0 -1
- package/dist/workflow/product-category/index.js +0 -3
- package/dist/workflow/product-category/index.js.map +0 -1
- package/dist/workflow/region/create-regions.d.ts +0 -26
- package/dist/workflow/region/create-regions.d.ts.map +0 -1
- package/dist/workflow/region/create-regions.js +0 -3
- package/dist/workflow/region/create-regions.js.map +0 -1
- package/dist/workflow/region/index.d.ts +0 -3
- package/dist/workflow/region/index.d.ts.map +0 -1
- package/dist/workflow/region/index.js +0 -19
- package/dist/workflow/region/index.js.map +0 -1
- package/dist/workflow/region/update-regions.d.ts +0 -10
- package/dist/workflow/region/update-regions.d.ts.map +0 -1
- package/dist/workflow/region/update-regions.js +0 -3
- package/dist/workflow/region/update-regions.js.map +0 -1
- package/dist/workflow/reservation/create-reservations.d.ts +0 -15
- package/dist/workflow/reservation/create-reservations.d.ts.map +0 -1
- package/dist/workflow/reservation/create-reservations.js +0 -3
- package/dist/workflow/reservation/create-reservations.js.map +0 -1
- package/dist/workflow/reservation/index.d.ts +0 -3
- package/dist/workflow/reservation/index.d.ts.map +0 -1
- package/dist/workflow/reservation/index.js +0 -19
- package/dist/workflow/reservation/index.js.map +0 -1
- package/dist/workflow/reservation/update-reservations.d.ts +0 -15
- package/dist/workflow/reservation/update-reservations.d.ts.map +0 -1
- package/dist/workflow/reservation/update-reservations.js +0 -3
- package/dist/workflow/reservation/update-reservations.js.map +0 -1
- package/dist/workflows/products/index.d.ts +0 -2
- package/dist/workflows/products/index.d.ts.map +0 -1
- package/dist/workflows/products/index.js +0 -18
- package/dist/workflows/products/index.js.map +0 -1
- package/dist/workflows/products/mutations.d.ts +0 -45
- package/dist/workflows/products/mutations.d.ts.map +0 -1
- package/dist/workflows/products/mutations.js +0 -3
- package/dist/workflows/products/mutations.js.map +0 -1
- package/dist/workflows/stock-locations/index.d.ts +0 -2
- package/dist/workflows/stock-locations/index.d.ts.map +0 -1
- package/dist/workflows/stock-locations/index.js +0 -18
- package/dist/workflows/stock-locations/index.js.map +0 -1
- package/dist/workflows/stock-locations/mutations.d.ts +0 -23
- package/dist/workflows/stock-locations/mutations.d.ts.map +0 -1
- package/dist/workflows/stock-locations/mutations.js +0 -3
- package/dist/workflows/stock-locations/mutations.js.map +0 -1
|
@@ -1,2632 +0,0 @@
|
|
|
1
|
-
import { FindConfig } from "../common";
|
|
2
|
-
import { RestoreReturn, SoftDeleteReturn } from "../dal";
|
|
3
|
-
import { IModuleService } from "../modules-sdk";
|
|
4
|
-
import { Context } from "../shared-context";
|
|
5
|
-
import { FilterableFulfillmentProps, FilterableFulfillmentProviderProps, FilterableFulfillmentSetProps, FilterableGeoZoneProps, FilterableServiceZoneProps, FilterableShippingOptionForContextProps, FilterableShippingOptionProps, FilterableShippingOptionRuleProps, FilterableShippingOptionTypeProps, FilterableShippingProfileProps, FulfillmentDTO, FulfillmentProviderDTO, FulfillmentSetDTO, GeoZoneDTO, ServiceZoneDTO, ShippingOptionDTO, ShippingOptionRuleDTO, ShippingOptionTypeDTO, ShippingProfileDTO } from "./common";
|
|
6
|
-
import { CalculateShippingOptionPriceDTO, CreateFulfillmentSetDTO, CreateGeoZoneDTO, CreateServiceZoneDTO, CreateShippingOptionDTO, CreateShippingOptionRuleDTO, CreateShippingOptionTypeDTO, UpdateFulfillmentDTO, UpdateFulfillmentSetDTO, UpdateGeoZoneDTO, UpdateServiceZoneDTO, UpdateShippingOptionDTO, UpdateShippingOptionRuleDTO, UpdateShippingOptionTypeDTO, UpdateShippingProfileDTO, UpsertServiceZoneDTO, UpsertShippingOptionDTO, UpsertShippingOptionTypeDTO } from "./mutations";
|
|
7
|
-
import { CreateFulfillmentDTO } from "./mutations/fulfillment";
|
|
8
|
-
import { CreateShippingProfileDTO, UpsertShippingProfileDTO } from "./mutations/shipping-profile";
|
|
9
|
-
import { CalculatedShippingOptionPrice, ValidateFulfillmentDataContext } from "./provider";
|
|
10
|
-
/**
|
|
11
|
-
* The main service interface for the Fulfillment Module.
|
|
12
|
-
*/
|
|
13
|
-
export interface IFulfillmentModuleService extends IModuleService {
|
|
14
|
-
/**
|
|
15
|
-
* This method retrieves a fulfillment set by its ID.
|
|
16
|
-
*
|
|
17
|
-
* @param {string} id - The ID of the fulfillment set.
|
|
18
|
-
* @param {FindConfig<FulfillmentSetDTO>} config - The configurations determining how the fulfillment set is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
19
|
-
* attributes or relations associated with a fulfillment set.
|
|
20
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
21
|
-
* @returns {Promise<FulfillmentSetDTO>} The retrieved fulfillment set.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* A simple example that retrieves a fulfillment set by its ID:
|
|
25
|
-
*
|
|
26
|
-
* ```ts
|
|
27
|
-
* const fulfillmentSet =
|
|
28
|
-
* await fulfillmentModuleService.retrieveFulfillmentSet("fuset_123")
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* To specify relations that should be retrieved:
|
|
32
|
-
*
|
|
33
|
-
* :::note
|
|
34
|
-
*
|
|
35
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
36
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
37
|
-
*
|
|
38
|
-
* :::
|
|
39
|
-
*
|
|
40
|
-
* ```ts
|
|
41
|
-
* const fulfillmentSet = await fulfillmentModuleService.retrieveFulfillmentSet(
|
|
42
|
-
* "fuset_123",
|
|
43
|
-
* {
|
|
44
|
-
* relations: ["service_zones"],
|
|
45
|
-
* }
|
|
46
|
-
* )
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
retrieveFulfillmentSet(id: string, config?: FindConfig<FulfillmentSetDTO>, sharedContext?: Context): Promise<FulfillmentSetDTO>;
|
|
50
|
-
/**
|
|
51
|
-
* This method retrieves a paginated list of fulfillment sets based on optional filters and configuration.
|
|
52
|
-
*
|
|
53
|
-
* @param {FilterableFulfillmentSetProps} filters - The filters to apply on the retrieved fulfillment sets.
|
|
54
|
-
* @param {FindConfig<FulfillmentSetDTO>} config - The configurations determining how the fulfillment set is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
55
|
-
* attributes or relations associated with a fulfillment set.
|
|
56
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
57
|
-
* @returns {Promise<FulfillmentSetDTO[]>} The list of fulfillment sets.
|
|
58
|
-
*
|
|
59
|
-
* @example
|
|
60
|
-
* To retrieve a list of fulfillment sets using their IDs:
|
|
61
|
-
*
|
|
62
|
-
* ```ts
|
|
63
|
-
* const fulfillmentSets = await fulfillmentModuleService.listFulfillmentSets({
|
|
64
|
-
* id: ["fuset_123", "fuset_321"],
|
|
65
|
-
* })
|
|
66
|
-
* ```
|
|
67
|
-
*
|
|
68
|
-
* To specify relations that should be retrieved within the fulfillment set:
|
|
69
|
-
*
|
|
70
|
-
* :::note
|
|
71
|
-
*
|
|
72
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
73
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
74
|
-
*
|
|
75
|
-
* :::
|
|
76
|
-
*
|
|
77
|
-
* ```ts
|
|
78
|
-
* const fulfillmentSets = await fulfillmentModuleService.listFulfillmentSets(
|
|
79
|
-
* {
|
|
80
|
-
* id: ["fuset_123", "fuset_321"],
|
|
81
|
-
* },
|
|
82
|
-
* {
|
|
83
|
-
* relations: ["search_zones"],
|
|
84
|
-
* }
|
|
85
|
-
* )
|
|
86
|
-
* ```
|
|
87
|
-
*
|
|
88
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
89
|
-
*
|
|
90
|
-
* ```ts
|
|
91
|
-
* const fulfillmentSets = await fulfillmentModuleService.listFulfillmentSets(
|
|
92
|
-
* {
|
|
93
|
-
* id: ["fuset_123", "fuset_321"],
|
|
94
|
-
* },
|
|
95
|
-
* {
|
|
96
|
-
* relations: ["search_zones"],
|
|
97
|
-
* take: 20,
|
|
98
|
-
* skip: 2,
|
|
99
|
-
* }
|
|
100
|
-
* )
|
|
101
|
-
* ```
|
|
102
|
-
*/
|
|
103
|
-
listFulfillmentSets(filters?: FilterableFulfillmentSetProps, config?: FindConfig<FulfillmentSetDTO>, sharedContext?: Context): Promise<FulfillmentSetDTO[]>;
|
|
104
|
-
/**
|
|
105
|
-
* This method retrieves a paginated list of fulfillment sets along with the total count of available fulfillment sets satisfying the provided filters.
|
|
106
|
-
*
|
|
107
|
-
* @param {FilterableFulfillmentSetProps} filters - The filters to apply on the retrieved fulfillment sets.
|
|
108
|
-
* @param {FindConfig<FulfillmentSetDTO>} config - The configurations determining how the fulfillment set is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
109
|
-
* attributes or relations associated with a fulfillment set.
|
|
110
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
111
|
-
* @returns {Promise<[FulfillmentSetDTO[], number]>} The list of fulfillment sets along with their total count.
|
|
112
|
-
*
|
|
113
|
-
* @example
|
|
114
|
-
* To retrieve a list of fulfillment sets using their IDs:
|
|
115
|
-
*
|
|
116
|
-
* ```ts
|
|
117
|
-
* const [fulfillmentSets, count] =
|
|
118
|
-
* await fulfillmentModuleService.listAndCountFulfillmentSets({
|
|
119
|
-
* id: ["fuset_123", "fuset_321"],
|
|
120
|
-
* })
|
|
121
|
-
* ```
|
|
122
|
-
*
|
|
123
|
-
* To specify relations that should be retrieved within the fulfillment set:
|
|
124
|
-
*
|
|
125
|
-
* :::note
|
|
126
|
-
*
|
|
127
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
128
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
129
|
-
*
|
|
130
|
-
* :::
|
|
131
|
-
*
|
|
132
|
-
* ```ts
|
|
133
|
-
* const [fulfillmentSets, count] =
|
|
134
|
-
* await fulfillmentModuleService.listAndCountFulfillmentSets(
|
|
135
|
-
* {
|
|
136
|
-
* id: ["fuset_123", "fuset_321"],
|
|
137
|
-
* },
|
|
138
|
-
* {
|
|
139
|
-
* relations: ["search_zones"],
|
|
140
|
-
* }
|
|
141
|
-
* )
|
|
142
|
-
* ```
|
|
143
|
-
*
|
|
144
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
145
|
-
*
|
|
146
|
-
* ```ts
|
|
147
|
-
* const [fulfillmentSets, count] =
|
|
148
|
-
* await fulfillmentModuleService.listAndCountFulfillmentSets(
|
|
149
|
-
* {
|
|
150
|
-
* id: ["fuset_123", "fuset_321"],
|
|
151
|
-
* },
|
|
152
|
-
* {
|
|
153
|
-
* relations: ["search_zones"],
|
|
154
|
-
* take: 20,
|
|
155
|
-
* skip: 2,
|
|
156
|
-
* }
|
|
157
|
-
* )
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
listAndCountFulfillmentSets(filters?: FilterableFulfillmentSetProps, config?: FindConfig<FulfillmentSetDTO>, sharedContext?: Context): Promise<[FulfillmentSetDTO[], number]>;
|
|
161
|
-
/**
|
|
162
|
-
* This method creates fulfillment sets.
|
|
163
|
-
*
|
|
164
|
-
* @param {CreateFulfillmentSetDTO[]} data - The fulfillment sets to be created.
|
|
165
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
166
|
-
* @returns {Promise<FulfillmentSetDTO[]>} The created fulfillment sets.
|
|
167
|
-
*
|
|
168
|
-
* @example
|
|
169
|
-
* const fulfillmentSets = await fulfillmentModuleService.createFulfillmentSets(
|
|
170
|
-
* [
|
|
171
|
-
* {
|
|
172
|
-
* name: "Shipping",
|
|
173
|
-
* type: "default",
|
|
174
|
-
* },
|
|
175
|
-
* {
|
|
176
|
-
* name: "Pickup",
|
|
177
|
-
* type: "provider-controlled",
|
|
178
|
-
* },
|
|
179
|
-
* ]
|
|
180
|
-
* )
|
|
181
|
-
*/
|
|
182
|
-
createFulfillmentSets(data: CreateFulfillmentSetDTO[], sharedContext?: Context): Promise<FulfillmentSetDTO[]>;
|
|
183
|
-
/**
|
|
184
|
-
* This method creates a fulfillment set.
|
|
185
|
-
*
|
|
186
|
-
* @param {CreateFulfillmentSetDTO} data - The fulfillment set to be created.
|
|
187
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
188
|
-
* @returns {Promise<FulfillmentSetDTO>} The created fulfillment set.
|
|
189
|
-
*
|
|
190
|
-
* @example
|
|
191
|
-
* const fulfillmentSet = await fulfillmentModuleService.createFulfillmentSets({
|
|
192
|
-
* name: "Shipping",
|
|
193
|
-
* type: "default",
|
|
194
|
-
* })
|
|
195
|
-
*/
|
|
196
|
-
createFulfillmentSets(data: CreateFulfillmentSetDTO, sharedContext?: Context): Promise<FulfillmentSetDTO>;
|
|
197
|
-
/**
|
|
198
|
-
* This method updates existing fulfillment sets.
|
|
199
|
-
*
|
|
200
|
-
* @param {UpdateFulfillmentSetDTO[]} data - The attributes to update in the fulfillment sets.
|
|
201
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
202
|
-
* @returns {Promise<FulfillmentSetDTO[]>} The updated fulfillment sets.
|
|
203
|
-
*
|
|
204
|
-
* @example
|
|
205
|
-
* const fulfillmentSets = await fulfillmentModuleService.updateFulfillmentSets(
|
|
206
|
-
* [
|
|
207
|
-
* {
|
|
208
|
-
* id: "fuset_123",
|
|
209
|
-
* name: "Shipping",
|
|
210
|
-
* },
|
|
211
|
-
* {
|
|
212
|
-
* id: "fuset_321",
|
|
213
|
-
* name: "Pickup",
|
|
214
|
-
* },
|
|
215
|
-
* ]
|
|
216
|
-
* )
|
|
217
|
-
*/
|
|
218
|
-
updateFulfillmentSets(data: UpdateFulfillmentSetDTO[], sharedContext?: Context): Promise<FulfillmentSetDTO[]>;
|
|
219
|
-
/**
|
|
220
|
-
* This method updates an existing fulfillment set.
|
|
221
|
-
*
|
|
222
|
-
* @param {UpdateFulfillmentSetDTO} data - The attributes to update in the fulfillment set.
|
|
223
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
224
|
-
* @returns {Promise<FulfillmentSetDTO>} The updated fulfillment set.
|
|
225
|
-
*
|
|
226
|
-
* @example
|
|
227
|
-
* const fulfillmentSet = await fulfillmentModuleService.updateFulfillmentSets({
|
|
228
|
-
* id: "fuset_123",
|
|
229
|
-
* name: "Shipping",
|
|
230
|
-
* })
|
|
231
|
-
*/
|
|
232
|
-
updateFulfillmentSets(data: UpdateFulfillmentSetDTO, sharedContext?: Context): Promise<FulfillmentSetDTO>;
|
|
233
|
-
/**
|
|
234
|
-
* This method deletes fulfillment sets by their IDs.
|
|
235
|
-
*
|
|
236
|
-
* @param {string[]} ids - The IDs of the fulfillment sets.
|
|
237
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
238
|
-
* @returns {Promise<void>} Resolves when the fulfillment sets are deleted successfully.
|
|
239
|
-
*
|
|
240
|
-
* @example
|
|
241
|
-
* await fulfillmentModuleService.deleteFulfillmentSets([
|
|
242
|
-
* "fuset_123",
|
|
243
|
-
* "fuset_321",
|
|
244
|
-
* ])
|
|
245
|
-
*/
|
|
246
|
-
deleteFulfillmentSets(ids: string[], sharedContext?: Context): Promise<void>;
|
|
247
|
-
/**
|
|
248
|
-
* This method deletes a fulfillment set by its ID.
|
|
249
|
-
*
|
|
250
|
-
* @param {string} id - The ID of the fulfillment set.
|
|
251
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
252
|
-
* @returns {Promise<void>} Resolves when the fulfillment set is deleted successfully.
|
|
253
|
-
*
|
|
254
|
-
* @example
|
|
255
|
-
* await fulfillmentModuleService.deleteFulfillmentSets("fuset_123")
|
|
256
|
-
*/
|
|
257
|
-
deleteFulfillmentSets(id: string, sharedContext?: Context): Promise<void>;
|
|
258
|
-
/**
|
|
259
|
-
* This method soft deletes fulfillment sets by their IDs.
|
|
260
|
-
*
|
|
261
|
-
* @param {string[]} fulfillmentIds - The IDs of the fulfillment sets.
|
|
262
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
|
263
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
264
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
|
265
|
-
* If there are no related records, the promise resolves to `void`.
|
|
266
|
-
*
|
|
267
|
-
* @example
|
|
268
|
-
* await fulfillmentModuleService.softDeleteFulfillmentSets([
|
|
269
|
-
* "fuset_123",
|
|
270
|
-
* "fuset_321",
|
|
271
|
-
* ])
|
|
272
|
-
*/
|
|
273
|
-
softDeleteFulfillmentSets<TReturnableLinkableKeys extends string = string>(fulfillmentIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
274
|
-
/**
|
|
275
|
-
* This method restores a soft deleted fulfillment by its IDs.
|
|
276
|
-
*
|
|
277
|
-
* @param {string[]} fulfillmentIds - The IDs of the fulfillment sets.
|
|
278
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the fulfillment sets. You can pass to its `returnLinkableKeys`
|
|
279
|
-
* property any of the fulfillment set's relation attribute names.
|
|
280
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
281
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
|
282
|
-
* If there are no related records restored, the promise resolves to `void`.
|
|
283
|
-
*
|
|
284
|
-
* @example
|
|
285
|
-
* await fulfillmentModuleService.restoreFulfillmentSets([
|
|
286
|
-
* "fuset_123",
|
|
287
|
-
* "fuset_321",
|
|
288
|
-
* ])
|
|
289
|
-
*/
|
|
290
|
-
restoreFulfillmentSets<TReturnableLinkableKeys extends string = string>(fulfillmentIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
291
|
-
/**
|
|
292
|
-
* This method retrieves a service zone by its ID.
|
|
293
|
-
*
|
|
294
|
-
* @param {string} id - The ID of the service zone.
|
|
295
|
-
* @param {FindConfig<ServiceZoneDTO>} config - The configurations determining how the service zone is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
296
|
-
* attributes or relations associated with a service zone.
|
|
297
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
298
|
-
* @returns {Promise<ServiceZoneDTO>} The retrieved service zone.
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* A simple example that retrieves a service zone by its ID:
|
|
302
|
-
*
|
|
303
|
-
* ```ts
|
|
304
|
-
* const serviceZone =
|
|
305
|
-
* await fulfillmentModuleService.retrieveServiceZone(
|
|
306
|
-
* "serzo_123"
|
|
307
|
-
* )
|
|
308
|
-
* ```
|
|
309
|
-
*
|
|
310
|
-
* To specify relations that should be retrieved:
|
|
311
|
-
*
|
|
312
|
-
* :::note
|
|
313
|
-
*
|
|
314
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
315
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
316
|
-
*
|
|
317
|
-
* :::
|
|
318
|
-
*
|
|
319
|
-
* ```ts
|
|
320
|
-
* const serviceZone =
|
|
321
|
-
* await fulfillmentModuleService.retrieveServiceZone(
|
|
322
|
-
* "serzo_123",
|
|
323
|
-
* {
|
|
324
|
-
* relations: ["shipping_options"],
|
|
325
|
-
* }
|
|
326
|
-
* )
|
|
327
|
-
* ```
|
|
328
|
-
*/
|
|
329
|
-
retrieveServiceZone(id: string, config?: FindConfig<ServiceZoneDTO>, sharedContext?: Context): Promise<ServiceZoneDTO>;
|
|
330
|
-
/**
|
|
331
|
-
* This method retrieves a paginated list of service zones based on optional filters and configuration.
|
|
332
|
-
*
|
|
333
|
-
* @param {FilterableServiceZoneProps} filters - The filters to apply on the retrieved service zones.
|
|
334
|
-
* @param {FindConfig<ServiceZoneDTO>} config - The configurations determining how the service zone is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
335
|
-
* attributes or relations associated with a service zone.
|
|
336
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
337
|
-
* @returns {Promise<ServiceZoneDTO[]>} The list of service zones.
|
|
338
|
-
*
|
|
339
|
-
* @example
|
|
340
|
-
* To retrieve a list of service zones using their IDs:
|
|
341
|
-
*
|
|
342
|
-
* ```ts
|
|
343
|
-
* const serviceZones =
|
|
344
|
-
* await fulfillmentModuleService.listServiceZones({
|
|
345
|
-
* id: ["serzo_123", "serzo_321"],
|
|
346
|
-
* })
|
|
347
|
-
* ```
|
|
348
|
-
*
|
|
349
|
-
* To specify relations that should be retrieved within the service zone:
|
|
350
|
-
*
|
|
351
|
-
* :::note
|
|
352
|
-
*
|
|
353
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
354
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
355
|
-
*
|
|
356
|
-
* :::
|
|
357
|
-
*
|
|
358
|
-
* ```ts
|
|
359
|
-
* const serviceZones =
|
|
360
|
-
* await fulfillmentModuleService.listServiceZones(
|
|
361
|
-
* {
|
|
362
|
-
* id: ["serzo_123", "serzo_321"],
|
|
363
|
-
* },
|
|
364
|
-
* {
|
|
365
|
-
* relations: ["shipping_options"],
|
|
366
|
-
* }
|
|
367
|
-
* )
|
|
368
|
-
* ```
|
|
369
|
-
*
|
|
370
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
371
|
-
*
|
|
372
|
-
* ```ts
|
|
373
|
-
* const serviceZones =
|
|
374
|
-
* await fulfillmentModuleService.listServiceZones(
|
|
375
|
-
* {
|
|
376
|
-
* id: ["serzo_123", "serzo_321"],
|
|
377
|
-
* },
|
|
378
|
-
* {
|
|
379
|
-
* relations: ["shipping_options"],
|
|
380
|
-
* take: 20,
|
|
381
|
-
* skip: 2,
|
|
382
|
-
* }
|
|
383
|
-
* )
|
|
384
|
-
* ```
|
|
385
|
-
*/
|
|
386
|
-
listServiceZones(filters?: FilterableServiceZoneProps, config?: FindConfig<ServiceZoneDTO>, sharedContext?: Context): Promise<ServiceZoneDTO[]>;
|
|
387
|
-
/**
|
|
388
|
-
* This method retrieves a paginated list of service zones along with the total count of available service zones satisfying the provided filters.
|
|
389
|
-
*
|
|
390
|
-
* @param {FilterableServiceZoneProps} filters - The filters to apply on the retrieved service zones.
|
|
391
|
-
* @param {FindConfig<ServiceZoneDTO>} config - The configurations determining how the service zone is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
392
|
-
* attributes or relations associated with a service zone.
|
|
393
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
394
|
-
* @returns {Promise<[ServiceZoneDTO[], number]>} The list of service zones along with their total count.
|
|
395
|
-
*
|
|
396
|
-
* @example
|
|
397
|
-
* To retrieve a list of service zones using their IDs:
|
|
398
|
-
*
|
|
399
|
-
* ```ts
|
|
400
|
-
* const [serviceZones, count] =
|
|
401
|
-
* await fulfillmentModuleService.listAndCountServiceZones({
|
|
402
|
-
* id: ["serzo_123", "serzo_321"],
|
|
403
|
-
* })
|
|
404
|
-
* ```
|
|
405
|
-
*
|
|
406
|
-
* To specify relations that should be retrieved within the service zone:
|
|
407
|
-
*
|
|
408
|
-
* :::note
|
|
409
|
-
*
|
|
410
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
411
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
412
|
-
*
|
|
413
|
-
* :::
|
|
414
|
-
*
|
|
415
|
-
* ```ts
|
|
416
|
-
* const [serviceZones, count] =
|
|
417
|
-
* await fulfillmentModuleService.listAndCountServiceZones(
|
|
418
|
-
* {
|
|
419
|
-
* id: ["serzo_123", "serzo_321"],
|
|
420
|
-
* },
|
|
421
|
-
* {
|
|
422
|
-
* relations: ["shipping_options"],
|
|
423
|
-
* }
|
|
424
|
-
* )
|
|
425
|
-
* ```
|
|
426
|
-
*
|
|
427
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
428
|
-
*
|
|
429
|
-
* ```ts
|
|
430
|
-
* const [serviceZones, count] =
|
|
431
|
-
* await fulfillmentModuleService.listAndCountServiceZones(
|
|
432
|
-
* {
|
|
433
|
-
* id: ["serzo_123", "serzo_321"],
|
|
434
|
-
* },
|
|
435
|
-
* {
|
|
436
|
-
* relations: ["shipping_options"],
|
|
437
|
-
* take: 20,
|
|
438
|
-
* skip: 2,
|
|
439
|
-
* }
|
|
440
|
-
* )
|
|
441
|
-
* ```
|
|
442
|
-
*/
|
|
443
|
-
listAndCountServiceZones(filters?: FilterableServiceZoneProps, config?: FindConfig<ServiceZoneDTO>, sharedContext?: Context): Promise<[ServiceZoneDTO[], number]>;
|
|
444
|
-
/**
|
|
445
|
-
* This method creates service zones.
|
|
446
|
-
*
|
|
447
|
-
* @param {CreateServiceZoneDTO[]} data - The service zones to be created.
|
|
448
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
449
|
-
* @returns {Promise<ServiceZoneDTO[]>} The created service zones.
|
|
450
|
-
*
|
|
451
|
-
* @example
|
|
452
|
-
* const serviceZones =
|
|
453
|
-
* await fulfillmentModuleService.createServiceZones([
|
|
454
|
-
* {
|
|
455
|
-
* name: "Nordic Shipping Methods",
|
|
456
|
-
* fulfillment_set_id: "fuset_123",
|
|
457
|
-
* },
|
|
458
|
-
* {
|
|
459
|
-
* name: "Pickup Service Area",
|
|
460
|
-
* fulfillment_set_id: "fuset_321",
|
|
461
|
-
* },
|
|
462
|
-
* ])
|
|
463
|
-
*/
|
|
464
|
-
createServiceZones(data: CreateServiceZoneDTO[], sharedContext?: Context): Promise<ServiceZoneDTO[]>;
|
|
465
|
-
/**
|
|
466
|
-
* This method creates a service zone.
|
|
467
|
-
*
|
|
468
|
-
* @param {CreateServiceZoneDTO} data - The service zone to be created.
|
|
469
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
470
|
-
* @returns {Promise<ServiceZoneDTO>} The created service zone.
|
|
471
|
-
*
|
|
472
|
-
* @example
|
|
473
|
-
* const serviceZone =
|
|
474
|
-
* await fulfillmentModuleService.createServiceZones({
|
|
475
|
-
* name: "Nordic Shipping Methods",
|
|
476
|
-
* fulfillment_set_id: "fuset_123",
|
|
477
|
-
* })
|
|
478
|
-
*/
|
|
479
|
-
createServiceZones(data: CreateServiceZoneDTO, sharedContext?: Context): Promise<ServiceZoneDTO>;
|
|
480
|
-
/**
|
|
481
|
-
* This method updates an existing service zone.
|
|
482
|
-
*
|
|
483
|
-
* @param {string} id - The ID of the service zone.
|
|
484
|
-
* @param {UpdateServiceZoneDTO} data - The attributes to update in the service zone.
|
|
485
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
486
|
-
* @returns {Promise<ServiceZoneDTO>} The updated service zone.
|
|
487
|
-
*
|
|
488
|
-
* @example
|
|
489
|
-
* const serviceZone =
|
|
490
|
-
* await fulfillmentModuleService.updateServiceZones(
|
|
491
|
-
* "serzo_123",
|
|
492
|
-
* {
|
|
493
|
-
* name: "US",
|
|
494
|
-
* }
|
|
495
|
-
* )
|
|
496
|
-
*/
|
|
497
|
-
updateServiceZones(id: string, data: UpdateServiceZoneDTO, sharedContext?: Context): Promise<ServiceZoneDTO>;
|
|
498
|
-
/**
|
|
499
|
-
* This method updates existing service zones matching the specified filters.
|
|
500
|
-
*
|
|
501
|
-
* @param {FilterableServiceZoneProps} selector - The filters specifying which service zones to update.
|
|
502
|
-
* @param {UpdateServiceZoneDTO} data - The attributes to update in the service zone.
|
|
503
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
504
|
-
* @returns {Promise<ServiceZoneDTO[]>} The updated service zones.
|
|
505
|
-
*
|
|
506
|
-
* @example
|
|
507
|
-
* const serviceZones =
|
|
508
|
-
* await fulfillmentModuleService.updateServiceZones(
|
|
509
|
-
* {
|
|
510
|
-
* id: ["serzo_123", "serzo_321"],
|
|
511
|
-
* },
|
|
512
|
-
* {
|
|
513
|
-
* name: "US",
|
|
514
|
-
* }
|
|
515
|
-
* )
|
|
516
|
-
*/
|
|
517
|
-
updateServiceZones(selector: FilterableServiceZoneProps, data: UpdateServiceZoneDTO, sharedContext?: Context): Promise<ServiceZoneDTO[]>;
|
|
518
|
-
/**
|
|
519
|
-
* This method updates or creates a service zone if it doesn't exist.
|
|
520
|
-
*
|
|
521
|
-
* @param {UpsertServiceZoneDTO} data - The attributes in the service zone to be created or updated.
|
|
522
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
523
|
-
* @returns {Promise<ServiceZoneDTO>} The created or updated service zone.
|
|
524
|
-
*
|
|
525
|
-
* @example
|
|
526
|
-
* const serviceZone =
|
|
527
|
-
* await fulfillmentModuleService.upsertServiceZones({
|
|
528
|
-
* id: "serzo_123",
|
|
529
|
-
* name: "US",
|
|
530
|
-
* })
|
|
531
|
-
*/
|
|
532
|
-
upsertServiceZones(data: UpsertServiceZoneDTO, sharedContext?: Context): Promise<ServiceZoneDTO>;
|
|
533
|
-
/**
|
|
534
|
-
* This method updates or creates service zones if they don't exist.
|
|
535
|
-
*
|
|
536
|
-
* @param {UpsertServiceZoneDTO[]} data - The attributes in the service zones to be created or updated.
|
|
537
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
538
|
-
* @returns {Promise<ServiceZoneDTO[]>} The created or updated service zones.
|
|
539
|
-
*
|
|
540
|
-
* @example
|
|
541
|
-
* const serviceZones =
|
|
542
|
-
* await fulfillmentModuleService.upsertServiceZones([
|
|
543
|
-
* {
|
|
544
|
-
* id: "serzo_123",
|
|
545
|
-
* name: "US",
|
|
546
|
-
* },
|
|
547
|
-
* {
|
|
548
|
-
* name: "US",
|
|
549
|
-
* fulfillment_set_id: "fuset_123",
|
|
550
|
-
* },
|
|
551
|
-
* ])
|
|
552
|
-
*/
|
|
553
|
-
upsertServiceZones(data: UpsertServiceZoneDTO[], sharedContext?: Context): Promise<ServiceZoneDTO[]>;
|
|
554
|
-
/**
|
|
555
|
-
* This method deletes service zones by their IDs.
|
|
556
|
-
*
|
|
557
|
-
* @param {string[]} ids - The IDs of the service zone.
|
|
558
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
559
|
-
* @returns {Promise<void>} Resolves when the service zones are deleted.
|
|
560
|
-
*
|
|
561
|
-
* @example
|
|
562
|
-
* await fulfillmentModuleService.deleteServiceZones([
|
|
563
|
-
* "serzo_123",
|
|
564
|
-
* "serzo_321",
|
|
565
|
-
* ])
|
|
566
|
-
*/
|
|
567
|
-
deleteServiceZones(ids: string[], sharedContext?: Context): Promise<void>;
|
|
568
|
-
/**
|
|
569
|
-
* This method deletes a service zone by its ID.
|
|
570
|
-
*
|
|
571
|
-
* @param {string} id - The ID of the service zone.
|
|
572
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
573
|
-
* @returns {Promise<void>} Resolves when the service zone is deleted.
|
|
574
|
-
*
|
|
575
|
-
* @example
|
|
576
|
-
* await fulfillmentModuleService.deleteServiceZones("serzo_123")
|
|
577
|
-
*/
|
|
578
|
-
deleteServiceZones(id: string, sharedContext?: Context): Promise<void>;
|
|
579
|
-
/**
|
|
580
|
-
* This method soft deletes service zones by their IDs.
|
|
581
|
-
*
|
|
582
|
-
* @param {string[]} serviceZoneIds - The IDs of the service zones.
|
|
583
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
|
584
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
585
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
|
586
|
-
* If there are no related records, the promise resolves to `void`.
|
|
587
|
-
*
|
|
588
|
-
* @example
|
|
589
|
-
* await fulfillmentModuleService.softDeleteServiceZones([
|
|
590
|
-
* "serzo_123",
|
|
591
|
-
* "serzo_321",
|
|
592
|
-
* ])
|
|
593
|
-
*/
|
|
594
|
-
softDeleteServiceZones<TReturnableLinkableKeys extends string = string>(serviceZoneIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
595
|
-
/**
|
|
596
|
-
* This method restores a soft deleted service zones by their IDs.
|
|
597
|
-
*
|
|
598
|
-
* @param {string[]} serviceZoneIds - The IDs of the service zones.
|
|
599
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the service zones. You can pass to its `returnLinkableKeys`
|
|
600
|
-
* property any of the service zone's relation attribute names, such as `{type relation name}`.
|
|
601
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
602
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
|
603
|
-
* If there are no related records restored, the promise resolves to `void`.
|
|
604
|
-
*
|
|
605
|
-
* @example
|
|
606
|
-
* await fulfillmentModuleService.restoreServiceZones([
|
|
607
|
-
* "serzo_123",
|
|
608
|
-
* "serzo_321",
|
|
609
|
-
* ])
|
|
610
|
-
*/
|
|
611
|
-
restoreServiceZones<TReturnableLinkableKeys extends string = string>(serviceZoneIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
612
|
-
/**
|
|
613
|
-
* This method retrieves a geo zone by its ID.
|
|
614
|
-
*
|
|
615
|
-
* @param {string} id - The ID of the geo zone.
|
|
616
|
-
* @param {FindConfig<GeoZoneDTO>} config - The configurations determining how the geo zone is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
617
|
-
* attributes or relations associated with a geo zone.
|
|
618
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
619
|
-
* @returns {Promise<GeoZoneDTO>} The retrieved geo zone.
|
|
620
|
-
*
|
|
621
|
-
* @example
|
|
622
|
-
* A simple example that retrieves a geo zone by its ID:
|
|
623
|
-
*
|
|
624
|
-
* ```ts
|
|
625
|
-
* const geoZone =
|
|
626
|
-
* await fulfillmentModuleService.retrieveGeoZone("fgz_123")
|
|
627
|
-
* ```
|
|
628
|
-
*
|
|
629
|
-
* To specify relations that should be retrieved:
|
|
630
|
-
*
|
|
631
|
-
* :::note
|
|
632
|
-
*
|
|
633
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
634
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
635
|
-
*
|
|
636
|
-
* :::
|
|
637
|
-
*
|
|
638
|
-
* ```ts
|
|
639
|
-
* const geoZone =
|
|
640
|
-
* await fulfillmentModuleService.retrieveGeoZone("fgz_123", {
|
|
641
|
-
* relations: ["service_zone"],
|
|
642
|
-
* })
|
|
643
|
-
* ```
|
|
644
|
-
*/
|
|
645
|
-
retrieveGeoZone(id: string, config?: FindConfig<GeoZoneDTO>, sharedContext?: Context): Promise<GeoZoneDTO>;
|
|
646
|
-
/**
|
|
647
|
-
* This method retrieves a paginated list of geo zones based on optional filters and configuration.
|
|
648
|
-
*
|
|
649
|
-
* @param {FilterableGeoZoneProps} filters - The filters to apply on the retrieved geo zones.
|
|
650
|
-
* @param {FindConfig<GeoZoneDTO>} config - The configurations determining how the geo zone is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
651
|
-
* attributes or relations associated with a geo zone.
|
|
652
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
653
|
-
* @returns {Promise<GeoZoneDTO[]>} The list of geo zones.
|
|
654
|
-
*
|
|
655
|
-
* @example
|
|
656
|
-
* To retrieve a list of geo zones using their IDs:
|
|
657
|
-
*
|
|
658
|
-
* ```ts
|
|
659
|
-
* const geoZones = await fulfillmentModuleService.listGeoZones({
|
|
660
|
-
* id: ["fgz_123", "fgz_321"],
|
|
661
|
-
* })
|
|
662
|
-
* ```
|
|
663
|
-
*
|
|
664
|
-
* To specify relations that should be retrieved within the geo zone:
|
|
665
|
-
*
|
|
666
|
-
* :::note
|
|
667
|
-
*
|
|
668
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
669
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
670
|
-
*
|
|
671
|
-
* :::
|
|
672
|
-
*
|
|
673
|
-
* ```ts
|
|
674
|
-
* const geoZones = await fulfillmentModuleService.listGeoZones(
|
|
675
|
-
* {
|
|
676
|
-
* id: ["fgz_123", "fgz_321"],
|
|
677
|
-
* },
|
|
678
|
-
* {
|
|
679
|
-
* relations: ["service_zone"],
|
|
680
|
-
* }
|
|
681
|
-
* )
|
|
682
|
-
* ```
|
|
683
|
-
*
|
|
684
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
685
|
-
*
|
|
686
|
-
* ```ts
|
|
687
|
-
* const geoZones = await fulfillmentModuleService.listGeoZones(
|
|
688
|
-
* {
|
|
689
|
-
* id: ["fgz_123", "fgz_321"],
|
|
690
|
-
* },
|
|
691
|
-
* {
|
|
692
|
-
* relations: ["service_zone"],
|
|
693
|
-
* take: 20,
|
|
694
|
-
* skip: 2,
|
|
695
|
-
* }
|
|
696
|
-
* )
|
|
697
|
-
* ```
|
|
698
|
-
*/
|
|
699
|
-
listGeoZones(filters?: FilterableGeoZoneProps, config?: FindConfig<GeoZoneDTO>, sharedContext?: Context): Promise<GeoZoneDTO[]>;
|
|
700
|
-
/**
|
|
701
|
-
* This method retrieves a paginated list of geo zones along with the total count of available geo zones satisfying the provided filters.
|
|
702
|
-
*
|
|
703
|
-
* @param {FilterableGeoZoneProps} filters - The filters to apply on the retrieved geo zones.
|
|
704
|
-
* @param {FindConfig<GeoZoneDTO>} config - The configurations determining how the geo zone is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
705
|
-
* attributes or relations associated with a geo zone.
|
|
706
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
707
|
-
* @returns {Promise<[GeoZoneDTO[], number]>} The list of geo zones along with their total count.
|
|
708
|
-
*
|
|
709
|
-
* @example
|
|
710
|
-
* To retrieve a list of geo zones using their IDs:
|
|
711
|
-
*
|
|
712
|
-
* ```ts
|
|
713
|
-
* const [geoZones, count] =
|
|
714
|
-
* await fulfillmentModuleService.listAndCountGeoZones({
|
|
715
|
-
* id: ["fgz_123", "fgz_321"],
|
|
716
|
-
* })
|
|
717
|
-
* ```
|
|
718
|
-
*
|
|
719
|
-
* To specify relations that should be retrieved within the geo zone:
|
|
720
|
-
*
|
|
721
|
-
* :::note
|
|
722
|
-
*
|
|
723
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
724
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
725
|
-
*
|
|
726
|
-
* :::
|
|
727
|
-
*
|
|
728
|
-
* ```ts
|
|
729
|
-
* const [geoZones, count] =
|
|
730
|
-
* await fulfillmentModuleService.listAndCountGeoZones(
|
|
731
|
-
* {
|
|
732
|
-
* id: ["fgz_123", "fgz_321"],
|
|
733
|
-
* },
|
|
734
|
-
* {
|
|
735
|
-
* relations: ["service_zone"],
|
|
736
|
-
* }
|
|
737
|
-
* )
|
|
738
|
-
* ```
|
|
739
|
-
*
|
|
740
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
741
|
-
*
|
|
742
|
-
* ```ts
|
|
743
|
-
* const [geoZones, count] =
|
|
744
|
-
* await fulfillmentModuleService.listAndCountGeoZones(
|
|
745
|
-
* {
|
|
746
|
-
* id: ["fgz_123", "fgz_321"],
|
|
747
|
-
* },
|
|
748
|
-
* {
|
|
749
|
-
* relations: ["service_zone"],
|
|
750
|
-
* take: 20,
|
|
751
|
-
* skip: 2,
|
|
752
|
-
* }
|
|
753
|
-
* )
|
|
754
|
-
* ```
|
|
755
|
-
*/
|
|
756
|
-
listAndCountGeoZones(filters?: FilterableGeoZoneProps, config?: FindConfig<GeoZoneDTO>, sharedContext?: Context): Promise<[GeoZoneDTO[], number]>;
|
|
757
|
-
/**
|
|
758
|
-
* This method creates geo zones.
|
|
759
|
-
*
|
|
760
|
-
* @param {CreateGeoZoneDTO[]} data - The geo zones to be created.
|
|
761
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
762
|
-
* @returns {Promise<GeoZoneDTO[]>} The created geo zones.
|
|
763
|
-
*
|
|
764
|
-
* @example
|
|
765
|
-
* const geoZones =
|
|
766
|
-
* await fulfillmentModuleService.createGeoZones([
|
|
767
|
-
* {
|
|
768
|
-
* type: "country",
|
|
769
|
-
* service_zone_id: "serzo_123",
|
|
770
|
-
* country_code: "us",
|
|
771
|
-
* },
|
|
772
|
-
* {
|
|
773
|
-
* type: "city",
|
|
774
|
-
* service_zone_id: "serzo_321",
|
|
775
|
-
* province_code: "us-vt",
|
|
776
|
-
* city: "Vermont",
|
|
777
|
-
* country_code: "us",
|
|
778
|
-
* },
|
|
779
|
-
* ])
|
|
780
|
-
*/
|
|
781
|
-
createGeoZones(data: CreateGeoZoneDTO[], sharedContext?: Context): Promise<GeoZoneDTO[]>;
|
|
782
|
-
/**
|
|
783
|
-
* This method creates a geo zones.
|
|
784
|
-
*
|
|
785
|
-
* @param {CreateGeoZoneDTO} data - The geo zone to be created.
|
|
786
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
787
|
-
* @returns {Promise<GeoZoneDTO>} The created geo zones.
|
|
788
|
-
*
|
|
789
|
-
* @example
|
|
790
|
-
* const geoZones =
|
|
791
|
-
* await fulfillmentModuleService.createGeoZones({
|
|
792
|
-
* type: "country",
|
|
793
|
-
* service_zone_id: "serzo_123",
|
|
794
|
-
* country_code: "us",
|
|
795
|
-
* })
|
|
796
|
-
*/
|
|
797
|
-
createGeoZones(data: CreateGeoZoneDTO, sharedContext?: Context): Promise<GeoZoneDTO>;
|
|
798
|
-
/**
|
|
799
|
-
* This method updates existing geo zones.
|
|
800
|
-
*
|
|
801
|
-
* @param {UpdateGeoZoneDTO[]} data - The attributes to update in the geo zones.
|
|
802
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
803
|
-
* @returns {Promise<GeoZoneDTO[]>} The updated geo zones.
|
|
804
|
-
*
|
|
805
|
-
* @example
|
|
806
|
-
* const geoZones =
|
|
807
|
-
* await fulfillmentModuleService.updateGeoZones([
|
|
808
|
-
* {
|
|
809
|
-
* id: "fgz_123",
|
|
810
|
-
* type: "country",
|
|
811
|
-
* country_code: "us",
|
|
812
|
-
* },
|
|
813
|
-
* {
|
|
814
|
-
* id: "fgz_321",
|
|
815
|
-
* type: "city",
|
|
816
|
-
* province_code: "us-vt",
|
|
817
|
-
* },
|
|
818
|
-
* ])
|
|
819
|
-
*/
|
|
820
|
-
updateGeoZones(data: UpdateGeoZoneDTO[], sharedContext?: Context): Promise<GeoZoneDTO[]>;
|
|
821
|
-
/**
|
|
822
|
-
* This method updates an existing fulfillment.
|
|
823
|
-
*
|
|
824
|
-
* @param {UpdateGeoZoneDTO} data - The attributes to update in the geo zone.
|
|
825
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
826
|
-
* @returns {Promise<GeoZoneDTO>} The updated fulfillment.
|
|
827
|
-
*
|
|
828
|
-
* @example
|
|
829
|
-
* const geoZones =
|
|
830
|
-
* await fulfillmentModuleService.updateGeoZones({
|
|
831
|
-
* id: "fgz_123",
|
|
832
|
-
* type: "country",
|
|
833
|
-
* country_code: "us",
|
|
834
|
-
* })
|
|
835
|
-
*/
|
|
836
|
-
updateGeoZones(data: UpdateGeoZoneDTO, sharedContext?: Context): Promise<GeoZoneDTO>;
|
|
837
|
-
/**
|
|
838
|
-
* This method deletes geo zones by their IDs.
|
|
839
|
-
*
|
|
840
|
-
* @param {string[]} ids - The IDs of the geo zones.
|
|
841
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
842
|
-
* @returns {Promise<void>} Resolves when the geo zones are deleted.
|
|
843
|
-
*
|
|
844
|
-
* @example
|
|
845
|
-
* await fulfillmentModuleService.deleteGeoZones([
|
|
846
|
-
* "fgz_123",
|
|
847
|
-
* "fgz_321",
|
|
848
|
-
* ])
|
|
849
|
-
*/
|
|
850
|
-
deleteGeoZones(ids: string[], sharedContext?: Context): Promise<void>;
|
|
851
|
-
/**
|
|
852
|
-
* This method deletes a geo zone by its ID.
|
|
853
|
-
*
|
|
854
|
-
* @param {string} id - The ID of the geo zone.
|
|
855
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
856
|
-
* @returns {Promise<void>} Resolves when the geo zone is deleted.
|
|
857
|
-
*
|
|
858
|
-
* @example
|
|
859
|
-
* await fulfillmentModuleService.deleteGeoZones("fgz_123")
|
|
860
|
-
*/
|
|
861
|
-
deleteGeoZones(id: string, sharedContext?: Context): Promise<void>;
|
|
862
|
-
/**
|
|
863
|
-
* This method soft deletes geo zones by their IDs.
|
|
864
|
-
*
|
|
865
|
-
* @param {string[]} geoZoneIds - The IDs of the geo zones.
|
|
866
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
|
867
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
868
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
|
869
|
-
* If there are no related records, the promise resolves to `void`.
|
|
870
|
-
*
|
|
871
|
-
* @example
|
|
872
|
-
* await fulfillmentModuleService.softDeleteGeoZones([
|
|
873
|
-
* "fgz_123",
|
|
874
|
-
* "fgz_321",
|
|
875
|
-
* ])
|
|
876
|
-
*/
|
|
877
|
-
softDeleteGeoZones<TReturnableLinkableKeys extends string = string>(geoZoneIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
878
|
-
/**
|
|
879
|
-
* This method restores soft deleted geo zones by their IDs.
|
|
880
|
-
*
|
|
881
|
-
* @param {string[]} geoZoneIds - The IDs of the geo zones.
|
|
882
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the geo zones. You can pass to its `returnLinkableKeys`
|
|
883
|
-
* property any of the geo zone's relation attribute names, such as `{type relation name}`.
|
|
884
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
885
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
|
886
|
-
* If there are no related records restored, the promise resolves to `void`.
|
|
887
|
-
*
|
|
888
|
-
* @example
|
|
889
|
-
* await fulfillmentModuleService.restoreGeoZones([
|
|
890
|
-
* "fgz_123",
|
|
891
|
-
* "fgz_321",
|
|
892
|
-
* ])
|
|
893
|
-
*/
|
|
894
|
-
restoreGeoZones<TReturnableLinkableKeys extends string = string>(geoZoneIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
895
|
-
/**
|
|
896
|
-
* This method retrieves a shipping option by its ID.
|
|
897
|
-
*
|
|
898
|
-
* @param {string} id - The ID of the shipping option.
|
|
899
|
-
* @param {FindConfig<ShippingOptionDTO>} config - The configurations determining how the shipping option is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
900
|
-
* attributes or relations associated with a shipping option.
|
|
901
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
902
|
-
* @returns {Promise<ShippingOptionDTO>} The retrieved shipping option.
|
|
903
|
-
*
|
|
904
|
-
* @example
|
|
905
|
-
* A simple example that retrieves a shipping option by its ID:
|
|
906
|
-
*
|
|
907
|
-
* ```ts
|
|
908
|
-
* const shippingOption =
|
|
909
|
-
* await fulfillmentModuleService.retrieveShippingOption(
|
|
910
|
-
* "so_123"
|
|
911
|
-
* )
|
|
912
|
-
* ```
|
|
913
|
-
*
|
|
914
|
-
* To specify relations that should be retrieved:
|
|
915
|
-
*
|
|
916
|
-
* :::note
|
|
917
|
-
*
|
|
918
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
919
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
920
|
-
*
|
|
921
|
-
* :::
|
|
922
|
-
*
|
|
923
|
-
* ```ts
|
|
924
|
-
* const shippingOption =
|
|
925
|
-
* await fulfillmentModuleService.retrieveShippingOption(
|
|
926
|
-
* "so_123",
|
|
927
|
-
* {
|
|
928
|
-
* relations: ["fulfillments"],
|
|
929
|
-
* }
|
|
930
|
-
* )
|
|
931
|
-
* ```
|
|
932
|
-
*/
|
|
933
|
-
retrieveShippingOption(id: string, config?: FindConfig<ShippingOptionDTO>, sharedContext?: Context): Promise<ShippingOptionDTO>;
|
|
934
|
-
/**
|
|
935
|
-
* This method retrieves a paginated list of shipping options based on optional filters and configuration.
|
|
936
|
-
*
|
|
937
|
-
* @param {FilterableShippingOptionProps} filters - The filters to apply on the retrieved shipping options.
|
|
938
|
-
* @param {FindConfig<ShippingOptionDTO>} config - The configurations determining how the shipping option is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
939
|
-
* attributes or relations associated with a shipping option.
|
|
940
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
941
|
-
* @returns {Promise<ShippingOptionDTO[]>} The list of shipping options.
|
|
942
|
-
*
|
|
943
|
-
* @example
|
|
944
|
-
* To retrieve a list of shipping options using their IDs:
|
|
945
|
-
*
|
|
946
|
-
* ```ts
|
|
947
|
-
* const shippingOptions =
|
|
948
|
-
* await fulfillmentModuleService.listShippingOptions({
|
|
949
|
-
* id: ["so_123", "so_321"],
|
|
950
|
-
* })
|
|
951
|
-
* ```
|
|
952
|
-
*
|
|
953
|
-
* To specify relations that should be retrieved within the shipping option:
|
|
954
|
-
*
|
|
955
|
-
* :::note
|
|
956
|
-
*
|
|
957
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
958
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
959
|
-
*
|
|
960
|
-
* :::
|
|
961
|
-
*
|
|
962
|
-
* ```ts
|
|
963
|
-
* const shippingOptions =
|
|
964
|
-
* await fulfillmentModuleService.listShippingOptions(
|
|
965
|
-
* {
|
|
966
|
-
* id: ["so_123", "so_321"],
|
|
967
|
-
* },
|
|
968
|
-
* {
|
|
969
|
-
* relations: ["fulfillments"],
|
|
970
|
-
* }
|
|
971
|
-
* )
|
|
972
|
-
* ```
|
|
973
|
-
*
|
|
974
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
975
|
-
*
|
|
976
|
-
* ```ts
|
|
977
|
-
* const shippingOptions =
|
|
978
|
-
* await fulfillmentModuleService.listShippingOptions(
|
|
979
|
-
* {
|
|
980
|
-
* id: ["so_123", "so_321"],
|
|
981
|
-
* },
|
|
982
|
-
* {
|
|
983
|
-
* relations: ["fulfillments"],
|
|
984
|
-
* take: 20,
|
|
985
|
-
* skip: 2,
|
|
986
|
-
* }
|
|
987
|
-
* )
|
|
988
|
-
* ```
|
|
989
|
-
*/
|
|
990
|
-
listShippingOptions(filters?: FilterableShippingOptionForContextProps, config?: FindConfig<ShippingOptionDTO>, sharedContext?: Context): Promise<ShippingOptionDTO[]>;
|
|
991
|
-
/**
|
|
992
|
-
* This method retrieves a paginated list of shipping options based on the provided context.
|
|
993
|
-
*
|
|
994
|
-
* @param {FilterableShippingOptionForContextProps} filters - The context of the how the shipping option is being used. It
|
|
995
|
-
* acts as a filter for the retrieved shipping options.
|
|
996
|
-
* @param {FindConfig<ShippingOptionDTO>} config - The configurations determining how the shipping option is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
997
|
-
* attributes or relations associated with a shipping option.
|
|
998
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
999
|
-
* @returns {Promise<ShippingOptionDTO[]>} The list of shipping options.
|
|
1000
|
-
*
|
|
1001
|
-
* @example
|
|
1002
|
-
* To retrieve a list of shipping options matching a context:
|
|
1003
|
-
*
|
|
1004
|
-
* ```ts
|
|
1005
|
-
* const shippingOptions =
|
|
1006
|
-
* await fulfillmentModuleService.listShippingOptionsForContext(
|
|
1007
|
-
* {
|
|
1008
|
-
* fulfillment_set_id: ["fuset_123"],
|
|
1009
|
-
* address: {
|
|
1010
|
-
* country_code: "us",
|
|
1011
|
-
* },
|
|
1012
|
-
* }
|
|
1013
|
-
* )
|
|
1014
|
-
* ```
|
|
1015
|
-
*
|
|
1016
|
-
* To specify relations that should be retrieved within the shipping option:
|
|
1017
|
-
*
|
|
1018
|
-
* :::note
|
|
1019
|
-
*
|
|
1020
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1021
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1022
|
-
*
|
|
1023
|
-
* :::
|
|
1024
|
-
*
|
|
1025
|
-
* ```ts
|
|
1026
|
-
* const shippingOptions =
|
|
1027
|
-
* await fulfillmentModuleService.listShippingOptionsForContext(
|
|
1028
|
-
* {
|
|
1029
|
-
* fulfillment_set_id: ["fuset_123"],
|
|
1030
|
-
* address: {
|
|
1031
|
-
* country_code: "us",
|
|
1032
|
-
* },
|
|
1033
|
-
* },
|
|
1034
|
-
* {
|
|
1035
|
-
* relations: ["fulfillments"],
|
|
1036
|
-
* }
|
|
1037
|
-
* )
|
|
1038
|
-
* ```
|
|
1039
|
-
*
|
|
1040
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
1041
|
-
*
|
|
1042
|
-
* ```ts
|
|
1043
|
-
* const shippingOptions =
|
|
1044
|
-
* await fulfillmentModuleService.listShippingOptionsForContext(
|
|
1045
|
-
* {
|
|
1046
|
-
* fulfillment_set_id: ["fuset_123"],
|
|
1047
|
-
* address: {
|
|
1048
|
-
* country_code: "us",
|
|
1049
|
-
* },
|
|
1050
|
-
* },
|
|
1051
|
-
* {
|
|
1052
|
-
* relations: ["fulfillments"],
|
|
1053
|
-
* take: 20,
|
|
1054
|
-
* skip: 2,
|
|
1055
|
-
* }
|
|
1056
|
-
* )
|
|
1057
|
-
* ```
|
|
1058
|
-
*/
|
|
1059
|
-
listShippingOptionsForContext(filters: FilterableShippingOptionForContextProps, config?: FindConfig<ShippingOptionDTO>, sharedContext?: Context): Promise<ShippingOptionDTO[]>;
|
|
1060
|
-
/**
|
|
1061
|
-
* This method retrieves a paginated list of shipping options along with the total count of available shipping options satisfying the provided filters.
|
|
1062
|
-
*
|
|
1063
|
-
* @param {Omit<FilterableShippingOptionProps, "context">} filters - Construct a type with the properties of T except for those in type K.
|
|
1064
|
-
* @param {FindConfig<ShippingOptionDTO>} config - The configurations determining how the shipping option is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1065
|
-
* attributes or relations associated with a shipping option.
|
|
1066
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1067
|
-
* @returns {Promise<[ShippingOptionDTO[], number]>} The list of shipping options along with their total count.
|
|
1068
|
-
*
|
|
1069
|
-
* @example
|
|
1070
|
-
* To retrieve a list of shipping options using their IDs:
|
|
1071
|
-
*
|
|
1072
|
-
* ```ts
|
|
1073
|
-
* const [shippingOptions, count] =
|
|
1074
|
-
* await fulfillmentModuleService.listAndCountShippingOptions({
|
|
1075
|
-
* id: ["so_123", "so_321"],
|
|
1076
|
-
* })
|
|
1077
|
-
* ```
|
|
1078
|
-
*
|
|
1079
|
-
* To specify relations that should be retrieved within the shipping option:
|
|
1080
|
-
*
|
|
1081
|
-
* :::note
|
|
1082
|
-
*
|
|
1083
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1084
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1085
|
-
*
|
|
1086
|
-
* :::
|
|
1087
|
-
*
|
|
1088
|
-
* ```ts
|
|
1089
|
-
* const [shippingOptions, count] =
|
|
1090
|
-
* await fulfillmentModuleService.listAndCountShippingOptions(
|
|
1091
|
-
* {
|
|
1092
|
-
* id: ["so_123", "so_321"],
|
|
1093
|
-
* },
|
|
1094
|
-
* {
|
|
1095
|
-
* relations: ["fulfillments"],
|
|
1096
|
-
* }
|
|
1097
|
-
* )
|
|
1098
|
-
* ```
|
|
1099
|
-
*
|
|
1100
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
1101
|
-
*
|
|
1102
|
-
* ```ts
|
|
1103
|
-
* const [shippingOptions, count] =
|
|
1104
|
-
* await fulfillmentModuleService.listAndCountShippingOptions(
|
|
1105
|
-
* {
|
|
1106
|
-
* id: ["so_123", "so_321"],
|
|
1107
|
-
* },
|
|
1108
|
-
* {
|
|
1109
|
-
* relations: ["fulfillments"],
|
|
1110
|
-
* take: 20,
|
|
1111
|
-
* skip: 2,
|
|
1112
|
-
* }
|
|
1113
|
-
* )
|
|
1114
|
-
* ```
|
|
1115
|
-
*/
|
|
1116
|
-
listAndCountShippingOptions(filters?: Omit<FilterableShippingOptionProps, "context">, config?: FindConfig<ShippingOptionDTO>, sharedContext?: Context): Promise<[ShippingOptionDTO[], number]>;
|
|
1117
|
-
/**
|
|
1118
|
-
* This method creates shipping options.
|
|
1119
|
-
*
|
|
1120
|
-
* @param {CreateShippingOptionDTO[]} data - The shipping options to be created.
|
|
1121
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1122
|
-
* @returns {Promise<ShippingOptionDTO[]>} The created shipping options.
|
|
1123
|
-
*
|
|
1124
|
-
* @example
|
|
1125
|
-
* const shippingOptions =
|
|
1126
|
-
* await fulfillmentModuleService.createShippingOptions([
|
|
1127
|
-
* {
|
|
1128
|
-
* name: "DHL Express Shipping",
|
|
1129
|
-
* price_type: "flat",
|
|
1130
|
-
* service_zone_id: "serzo_123",
|
|
1131
|
-
* shipping_profile_id: "sp_123",
|
|
1132
|
-
* provider_id: "dhl",
|
|
1133
|
-
* type: {
|
|
1134
|
-
* label: "Express",
|
|
1135
|
-
* description: "Ship in 24 hours",
|
|
1136
|
-
* code: "express",
|
|
1137
|
-
* },
|
|
1138
|
-
* },
|
|
1139
|
-
* {
|
|
1140
|
-
* name: "Webshipper Shipping",
|
|
1141
|
-
* price_type: "flat",
|
|
1142
|
-
* service_zone_id: "serzo_321",
|
|
1143
|
-
* shipping_profile_id: "sp_321",
|
|
1144
|
-
* provider_id: "webshipper",
|
|
1145
|
-
* type: {
|
|
1146
|
-
* label: "Express",
|
|
1147
|
-
* description: "Ship in 24 hours",
|
|
1148
|
-
* code: "express",
|
|
1149
|
-
* },
|
|
1150
|
-
* },
|
|
1151
|
-
* ])
|
|
1152
|
-
*/
|
|
1153
|
-
createShippingOptions(data: CreateShippingOptionDTO[], sharedContext?: Context): Promise<ShippingOptionDTO[]>;
|
|
1154
|
-
/**
|
|
1155
|
-
* This method creates a shipping option.
|
|
1156
|
-
*
|
|
1157
|
-
* @param {CreateShippingOptionDTO} data - The shipping option to be created.
|
|
1158
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1159
|
-
* @returns {Promise<ShippingOptionDTO>} The created shipping option.
|
|
1160
|
-
*
|
|
1161
|
-
* @example
|
|
1162
|
-
* const shippingOption =
|
|
1163
|
-
* await fulfillmentModuleService.createShippingOptions({
|
|
1164
|
-
* name: "DHL Express Shipping",
|
|
1165
|
-
* price_type: "flat",
|
|
1166
|
-
* service_zone_id: "serzo_123",
|
|
1167
|
-
* shipping_profile_id: "sp_123",
|
|
1168
|
-
* provider_id: "dhl",
|
|
1169
|
-
* type: {
|
|
1170
|
-
* label: "Express",
|
|
1171
|
-
* description: "Ship in 24 hours",
|
|
1172
|
-
* code: "express",
|
|
1173
|
-
* },
|
|
1174
|
-
* })
|
|
1175
|
-
*/
|
|
1176
|
-
createShippingOptions(data: CreateShippingOptionDTO, sharedContext?: Context): Promise<ShippingOptionDTO>;
|
|
1177
|
-
/**
|
|
1178
|
-
* This method updates an existing shipping option.
|
|
1179
|
-
*
|
|
1180
|
-
* @param {string} id - The ID of the shipping option.
|
|
1181
|
-
* @param {UpdateShippingOptionDTO} data - The attributes to update in the shipping option.
|
|
1182
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1183
|
-
* @returns {Promise<ShippingOptionDTO>} The updated shipping option.
|
|
1184
|
-
*
|
|
1185
|
-
* @example
|
|
1186
|
-
* const shippingOption =
|
|
1187
|
-
* await fulfillmentModuleService.updateShippingOptions(
|
|
1188
|
-
* "so_123",
|
|
1189
|
-
* {
|
|
1190
|
-
* name: "Express shipping",
|
|
1191
|
-
* }
|
|
1192
|
-
* )
|
|
1193
|
-
*/
|
|
1194
|
-
updateShippingOptions(id: string, data: UpdateShippingOptionDTO, sharedContext?: Context): Promise<ShippingOptionDTO>;
|
|
1195
|
-
/**
|
|
1196
|
-
* This method updates existing shipping options matching the specified filters.
|
|
1197
|
-
*
|
|
1198
|
-
* @param {FilterableShippingOptionProps} selector - The filters specifying which shipping options to update.
|
|
1199
|
-
* @param {UpdateShippingOptionDTO} data - The attributes to update in the shipping option.
|
|
1200
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1201
|
-
* @returns {Promise<ShippingOptionDTO[]>} The updated shipping options.
|
|
1202
|
-
*
|
|
1203
|
-
* @example
|
|
1204
|
-
* const shippingOptions =
|
|
1205
|
-
* await fulfillmentModuleService.updateShippingOptions(
|
|
1206
|
-
* {
|
|
1207
|
-
* id: ["so_123", "so_321"],
|
|
1208
|
-
* },
|
|
1209
|
-
* {
|
|
1210
|
-
* name: "Express Shipping",
|
|
1211
|
-
* }
|
|
1212
|
-
* )
|
|
1213
|
-
*/
|
|
1214
|
-
updateShippingOptions(selector: FilterableShippingOptionProps, data: UpdateShippingOptionDTO, sharedContext?: Context): Promise<ShippingOptionDTO[]>;
|
|
1215
|
-
/**
|
|
1216
|
-
* This method updates or creates a shipping option if it doesn't exist.
|
|
1217
|
-
*
|
|
1218
|
-
* @param {UpsertShippingOptionDTO} data - The attributes in the shipping option to be created or updated.
|
|
1219
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1220
|
-
* @returns {Promise<ShippingOptionDTO>} The created or updated shipping option.
|
|
1221
|
-
*
|
|
1222
|
-
* @example
|
|
1223
|
-
* const shippingOptions =
|
|
1224
|
-
* await fulfillmentModuleService.upsertShippingOptions({
|
|
1225
|
-
* id: "so_123",
|
|
1226
|
-
* name: "Express Shipping",
|
|
1227
|
-
* })
|
|
1228
|
-
*/
|
|
1229
|
-
upsertShippingOptions(data: UpsertShippingOptionDTO, sharedContext?: Context): Promise<ShippingOptionDTO>;
|
|
1230
|
-
/**
|
|
1231
|
-
* This method updates or creates shipping options if they don't exist.
|
|
1232
|
-
*
|
|
1233
|
-
* @param {UpsertShippingOptionDTO[]} data - The attributes in the shipping options to be created or updated.
|
|
1234
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1235
|
-
* @returns {Promise<ShippingOptionDTO[]>} The created or updated shipping options.
|
|
1236
|
-
*
|
|
1237
|
-
* @example
|
|
1238
|
-
* const shippingOptions =
|
|
1239
|
-
* await fulfillmentModuleService.upsertShippingOptions([
|
|
1240
|
-
* {
|
|
1241
|
-
* id: "so_123",
|
|
1242
|
-
* name: "Express Shipping",
|
|
1243
|
-
* },
|
|
1244
|
-
* {
|
|
1245
|
-
* name: "Express Shipping",
|
|
1246
|
-
* price_type: "flat",
|
|
1247
|
-
* service_zone_id: "serzo_123",
|
|
1248
|
-
* shipping_profile_id: "sp_123",
|
|
1249
|
-
* provider_id: "webshipper",
|
|
1250
|
-
* type: {
|
|
1251
|
-
* label: "Express",
|
|
1252
|
-
* description: "express shipping",
|
|
1253
|
-
* code: "express",
|
|
1254
|
-
* },
|
|
1255
|
-
* },
|
|
1256
|
-
* ])
|
|
1257
|
-
*/
|
|
1258
|
-
upsertShippingOptions(data: UpsertShippingOptionDTO[], sharedContext?: Context): Promise<ShippingOptionDTO[]>;
|
|
1259
|
-
/**
|
|
1260
|
-
* This method deletes shipping options by their IDs.
|
|
1261
|
-
*
|
|
1262
|
-
* @param {string[]} ids - The IDs of the shipping options.
|
|
1263
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1264
|
-
* @returns {Promise<void>} Resolves when the shipping options are deleted successfully.
|
|
1265
|
-
*
|
|
1266
|
-
* @example
|
|
1267
|
-
* await fulfillmentModuleService.deleteShippingOptions([
|
|
1268
|
-
* "so_123",
|
|
1269
|
-
* "so_321",
|
|
1270
|
-
* ])
|
|
1271
|
-
*/
|
|
1272
|
-
deleteShippingOptions(ids: string[], sharedContext?: Context): Promise<void>;
|
|
1273
|
-
/**
|
|
1274
|
-
* This method deletes a shipping option by its ID.
|
|
1275
|
-
*
|
|
1276
|
-
* @param {string} id - The ID of the shipping option.
|
|
1277
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1278
|
-
* @returns {Promise<void>} Resolves when the shipping option is deleted successfully.
|
|
1279
|
-
*
|
|
1280
|
-
* @example
|
|
1281
|
-
* await fulfillmentModuleService.deleteShippingOptions("so_123")
|
|
1282
|
-
*/
|
|
1283
|
-
deleteShippingOptions(id: string, sharedContext?: Context): Promise<void>;
|
|
1284
|
-
/**
|
|
1285
|
-
* This method soft deletes shipping option by their IDs.
|
|
1286
|
-
*
|
|
1287
|
-
* @param {string[]} shippingOptionIds - The IDs of the shipping options.
|
|
1288
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
|
1289
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1290
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
|
1291
|
-
* If there are no related records, the promise resolves to `void`.
|
|
1292
|
-
*
|
|
1293
|
-
* @example
|
|
1294
|
-
* await fulfillmentModuleService.softDeleteShippingOptions([
|
|
1295
|
-
* "so_123",
|
|
1296
|
-
* "so_321",
|
|
1297
|
-
* ])
|
|
1298
|
-
*/
|
|
1299
|
-
softDeleteShippingOptions<TReturnableLinkableKeys extends string = string>(shippingOptionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
1300
|
-
/**
|
|
1301
|
-
* This method restores soft deleted shipping options by their IDs.
|
|
1302
|
-
*
|
|
1303
|
-
* @param {string[]} shippingOptionIds - The list of {summary}
|
|
1304
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the shipping options. You can pass to its `returnLinkableKeys`
|
|
1305
|
-
* property any of the shipping option's relation attribute names.
|
|
1306
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1307
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
|
1308
|
-
* If there are no related records restored, the promise resolves to `void`.
|
|
1309
|
-
*
|
|
1310
|
-
* @example
|
|
1311
|
-
* await fulfillmentModuleService.restoreShippingOptions([
|
|
1312
|
-
* "so_123",
|
|
1313
|
-
* "so_321",
|
|
1314
|
-
* ])
|
|
1315
|
-
*/
|
|
1316
|
-
restoreShippingOptions<TReturnableLinkableKeys extends string = string>(shippingOptionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
1317
|
-
/**
|
|
1318
|
-
* This method retrieves a shipping profile by its ID.
|
|
1319
|
-
*
|
|
1320
|
-
* @param {string} id - The ID of the shipping profile.
|
|
1321
|
-
* @param {FindConfig<ShippingProfileDTO>} config - The configurations determining how the shipping profile is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1322
|
-
* attributes or relations associated with a shipping profile.
|
|
1323
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1324
|
-
* @returns {Promise<ShippingProfileDTO>} The retrieved shipping profile.
|
|
1325
|
-
*
|
|
1326
|
-
* @example
|
|
1327
|
-
* A simple example that retrieves a shipping profile by its ID:
|
|
1328
|
-
*
|
|
1329
|
-
* ```ts
|
|
1330
|
-
* const shippingProfile =
|
|
1331
|
-
* await fulfillmentModuleService.retrieveShippingProfile(
|
|
1332
|
-
* "sp_123"
|
|
1333
|
-
* )
|
|
1334
|
-
* ```
|
|
1335
|
-
*
|
|
1336
|
-
* To specify relations that should be retrieved:
|
|
1337
|
-
*
|
|
1338
|
-
* :::note
|
|
1339
|
-
*
|
|
1340
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1341
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1342
|
-
*
|
|
1343
|
-
* :::
|
|
1344
|
-
*
|
|
1345
|
-
* ```ts
|
|
1346
|
-
* const shippingProfile =
|
|
1347
|
-
* await fulfillmentModuleService.retrieveShippingProfile(
|
|
1348
|
-
* "sp_123",
|
|
1349
|
-
* {
|
|
1350
|
-
* relations: ["options"],
|
|
1351
|
-
* }
|
|
1352
|
-
* )
|
|
1353
|
-
* ```
|
|
1354
|
-
*/
|
|
1355
|
-
retrieveShippingProfile(id: string, config?: FindConfig<ShippingProfileDTO>, sharedContext?: Context): Promise<ShippingProfileDTO>;
|
|
1356
|
-
/**
|
|
1357
|
-
* This method retrieves a paginated list of shipping profiles based on optional filters and configuration.
|
|
1358
|
-
*
|
|
1359
|
-
* @param {FilterableShippingProfileProps} filters - The filters to apply on the retrieved shipping profiles.
|
|
1360
|
-
* @param {FindConfig<ShippingProfileDTO>} config - The configurations determining how the shipping profile is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1361
|
-
* attributes or relations associated with a shipping profile.
|
|
1362
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1363
|
-
* @returns {Promise<ShippingProfileDTO[]>} The list of shipping profiles.
|
|
1364
|
-
*
|
|
1365
|
-
* @example
|
|
1366
|
-
* To retrieve a list of shipping profiles using their IDs:
|
|
1367
|
-
*
|
|
1368
|
-
* ```ts
|
|
1369
|
-
* const shippingProfiles =
|
|
1370
|
-
* await fulfillmentModuleService.listShippingProfiles({
|
|
1371
|
-
* id: ["sp_123", "sp_321"],
|
|
1372
|
-
* })
|
|
1373
|
-
* ```
|
|
1374
|
-
*
|
|
1375
|
-
* To specify relations that should be retrieved within the shipping profile:
|
|
1376
|
-
*
|
|
1377
|
-
* :::note
|
|
1378
|
-
*
|
|
1379
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1380
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1381
|
-
*
|
|
1382
|
-
* :::
|
|
1383
|
-
*
|
|
1384
|
-
* ```ts
|
|
1385
|
-
* const shippingProfiles =
|
|
1386
|
-
* await fulfillmentModuleService.listShippingProfiles(
|
|
1387
|
-
* {
|
|
1388
|
-
* id: ["sp_123", "sp_321"],
|
|
1389
|
-
* },
|
|
1390
|
-
* {
|
|
1391
|
-
* relations: ["shipping_options"],
|
|
1392
|
-
* }
|
|
1393
|
-
* )
|
|
1394
|
-
* ```
|
|
1395
|
-
*
|
|
1396
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
1397
|
-
*
|
|
1398
|
-
* ```ts
|
|
1399
|
-
* const shippingProfiles =
|
|
1400
|
-
* await fulfillmentModuleService.listShippingProfiles(
|
|
1401
|
-
* {
|
|
1402
|
-
* id: ["sp_123", "sp_321"],
|
|
1403
|
-
* },
|
|
1404
|
-
* {
|
|
1405
|
-
* relations: ["shipping_options"],
|
|
1406
|
-
* take: 20,
|
|
1407
|
-
* skip: 2,
|
|
1408
|
-
* }
|
|
1409
|
-
* )
|
|
1410
|
-
* ```
|
|
1411
|
-
*/
|
|
1412
|
-
listShippingProfiles(filters?: FilterableShippingProfileProps, config?: FindConfig<ShippingProfileDTO>, sharedContext?: Context): Promise<ShippingProfileDTO[]>;
|
|
1413
|
-
/**
|
|
1414
|
-
* This method retrieves a paginated list of shipping profiles along with the total count of available shipping profiles satisfying the provided filters.
|
|
1415
|
-
*
|
|
1416
|
-
* @param {FilterableShippingProfileProps} filters - The filters to apply on the retrieved shipping profiles.
|
|
1417
|
-
* @param {FindConfig<ShippingProfileDTO>} config - The configurations determining how the shipping profile is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1418
|
-
* attributes or relations associated with a shipping profile.
|
|
1419
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1420
|
-
* @returns {Promise<[ShippingProfileDTO[], number]>} The list of shipping profiles along with their total count.
|
|
1421
|
-
*
|
|
1422
|
-
* @example
|
|
1423
|
-
* To retrieve a list of shipping profiles using their IDs:
|
|
1424
|
-
*
|
|
1425
|
-
* ```ts
|
|
1426
|
-
* const [shippingProfiles, count] =
|
|
1427
|
-
* await fulfillmentModuleService.listAndCountShippingProfiles(
|
|
1428
|
-
* {
|
|
1429
|
-
* id: ["sp_123", "sp_321"],
|
|
1430
|
-
* }
|
|
1431
|
-
* )
|
|
1432
|
-
* ```
|
|
1433
|
-
*
|
|
1434
|
-
* To specify relations that should be retrieved within the shipping profile:
|
|
1435
|
-
*
|
|
1436
|
-
* :::note
|
|
1437
|
-
*
|
|
1438
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1439
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1440
|
-
*
|
|
1441
|
-
* :::
|
|
1442
|
-
*
|
|
1443
|
-
* ```ts
|
|
1444
|
-
* const [shippingProfiles, count] =
|
|
1445
|
-
* await fulfillmentModuleService.listAndCountShippingProfiles(
|
|
1446
|
-
* {
|
|
1447
|
-
* id: ["sp_123", "sp_321"],
|
|
1448
|
-
* },
|
|
1449
|
-
* {
|
|
1450
|
-
* relations: ["shipping_options"],
|
|
1451
|
-
* }
|
|
1452
|
-
* )
|
|
1453
|
-
* ```
|
|
1454
|
-
*
|
|
1455
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
1456
|
-
*
|
|
1457
|
-
* ```ts
|
|
1458
|
-
* const [shippingProfiles, count] =
|
|
1459
|
-
* await fulfillmentModuleService.listAndCountShippingProfiles(
|
|
1460
|
-
* {
|
|
1461
|
-
* id: ["sp_123", "sp_321"],
|
|
1462
|
-
* },
|
|
1463
|
-
* {
|
|
1464
|
-
* relations: ["shipping_options"],
|
|
1465
|
-
* take: 20,
|
|
1466
|
-
* skip: 2,
|
|
1467
|
-
* }
|
|
1468
|
-
* )
|
|
1469
|
-
* ```
|
|
1470
|
-
*/
|
|
1471
|
-
listAndCountShippingProfiles(filters?: FilterableShippingProfileProps, config?: FindConfig<ShippingProfileDTO>, sharedContext?: Context): Promise<[ShippingProfileDTO[], number]>;
|
|
1472
|
-
/**
|
|
1473
|
-
* This method creates shipping profiles.
|
|
1474
|
-
*
|
|
1475
|
-
* @param {CreateShippingProfileDTO[]} data - The shipping profiles to be created.
|
|
1476
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1477
|
-
* @returns {Promise<ShippingProfileDTO[]>} The created shipping profiles.
|
|
1478
|
-
*
|
|
1479
|
-
* @example
|
|
1480
|
-
* const shippingProfiles =
|
|
1481
|
-
* await fulfillmentModuleService.createShippingProfiles([
|
|
1482
|
-
* {
|
|
1483
|
-
* name: "Default",
|
|
1484
|
-
* type: "default"
|
|
1485
|
-
* },
|
|
1486
|
-
* {
|
|
1487
|
-
* name: "Digital",
|
|
1488
|
-
* type: "digital"
|
|
1489
|
-
* },
|
|
1490
|
-
* ])
|
|
1491
|
-
*/
|
|
1492
|
-
createShippingProfiles(data: CreateShippingProfileDTO[], sharedContext?: Context): Promise<ShippingProfileDTO[]>;
|
|
1493
|
-
/**
|
|
1494
|
-
* This method creates a shipping profile.
|
|
1495
|
-
*
|
|
1496
|
-
* @param {CreateShippingProfileDTO} data - The shipping profile to be created.
|
|
1497
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1498
|
-
* @returns {Promise<ShippingProfileDTO>} The created shipping profile.
|
|
1499
|
-
*
|
|
1500
|
-
* @example
|
|
1501
|
-
* const shippingProfile =
|
|
1502
|
-
* await fulfillmentModuleService.createShippingProfiles({
|
|
1503
|
-
* name: "Default",
|
|
1504
|
-
* type: "default"
|
|
1505
|
-
* })
|
|
1506
|
-
*/
|
|
1507
|
-
createShippingProfiles(data: CreateShippingProfileDTO, sharedContext?: Context): Promise<ShippingProfileDTO>;
|
|
1508
|
-
/**
|
|
1509
|
-
* This method updates existing shipping profiles.
|
|
1510
|
-
*
|
|
1511
|
-
* @param {UpdateShippingProfileDTO} data - The shipping profiles update data.
|
|
1512
|
-
* @param {FilterableShippingProfileProps} selector - The selector of shipping profiles to update
|
|
1513
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1514
|
-
* @returns {Promise<ShippingProfileDTO[]>} The updated shipping profiles.
|
|
1515
|
-
*
|
|
1516
|
-
* @example
|
|
1517
|
-
* const shippingProfiles =
|
|
1518
|
-
* await fulfillmentModuleService.updateShippingProfiles([
|
|
1519
|
-
* {
|
|
1520
|
-
* id: "sp_123",
|
|
1521
|
-
* name: "Default",
|
|
1522
|
-
* },
|
|
1523
|
-
* {
|
|
1524
|
-
* id: "sp_321",
|
|
1525
|
-
* name: "Digital",
|
|
1526
|
-
* },
|
|
1527
|
-
* ])
|
|
1528
|
-
*/
|
|
1529
|
-
updateShippingProfiles(selector: FilterableShippingProfileProps, data: UpdateShippingProfileDTO, sharedContext?: Context): Promise<ShippingProfileDTO[]>;
|
|
1530
|
-
/**
|
|
1531
|
-
* This method updates an existing shipping profiles.
|
|
1532
|
-
*
|
|
1533
|
-
* @param {string} id - The shipping profile to be updated.
|
|
1534
|
-
* @param {UpdateShippingProfileDTO} data - The shipping profile to be created.
|
|
1535
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1536
|
-
* @returns {Promise<ShippingProfileDTO>} The updated shipping profiles.
|
|
1537
|
-
*
|
|
1538
|
-
* @example
|
|
1539
|
-
* const shippingProfiles =
|
|
1540
|
-
* await fulfillmentModuleService.updateShippingProfiles({
|
|
1541
|
-
* id: "sp_123",
|
|
1542
|
-
* name: "Default",
|
|
1543
|
-
* })
|
|
1544
|
-
*/
|
|
1545
|
-
updateShippingProfiles(id: string, data: UpdateShippingProfileDTO, sharedContext?: Context): Promise<ShippingProfileDTO>;
|
|
1546
|
-
/**
|
|
1547
|
-
* This method deletes shipping profiles by their IDs.
|
|
1548
|
-
*
|
|
1549
|
-
* @param {string[]} ids - The IDs of the shipping profiles.
|
|
1550
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1551
|
-
* @returns {Promise<void>} Resolves when the shipping profiles are deleted.
|
|
1552
|
-
*
|
|
1553
|
-
* @example
|
|
1554
|
-
* await fulfillmentModuleService.deleteShippingProfiles([
|
|
1555
|
-
* "sp_123",
|
|
1556
|
-
* "sp_321",
|
|
1557
|
-
* ])
|
|
1558
|
-
*/
|
|
1559
|
-
deleteShippingProfiles(ids: string[], sharedContext?: Context): Promise<void>;
|
|
1560
|
-
/**
|
|
1561
|
-
* This method deletes a shipping profile by its ID.
|
|
1562
|
-
*
|
|
1563
|
-
* @param {string} id - The ID of the shipping profile.
|
|
1564
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1565
|
-
* @returns {Promise<void>} Resolves when the shipping profile is deleted.
|
|
1566
|
-
*
|
|
1567
|
-
* @example
|
|
1568
|
-
* await fulfillmentModuleService.deleteShippingProfiles(
|
|
1569
|
-
* "sp_123"
|
|
1570
|
-
* )
|
|
1571
|
-
*/
|
|
1572
|
-
deleteShippingProfiles(id: string, sharedContext?: Context): Promise<void>;
|
|
1573
|
-
/**
|
|
1574
|
-
* This method updates existing shipping profiles, or creates new ones if they don't exist.
|
|
1575
|
-
*
|
|
1576
|
-
* @param {UpdateShippingProfileDTO[]} data - The attributes to update or create for each profile.
|
|
1577
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1578
|
-
* @returns {Promise<ProductTagDTO[]>} The updated and created profiles.
|
|
1579
|
-
*
|
|
1580
|
-
* @example
|
|
1581
|
-
* const productTags = await productModuleService.upsertShippingProfiles([
|
|
1582
|
-
* {
|
|
1583
|
-
* id: "id_1234",
|
|
1584
|
-
* metadata: {
|
|
1585
|
-
* test: true,
|
|
1586
|
-
* },
|
|
1587
|
-
* },
|
|
1588
|
-
* {
|
|
1589
|
-
* name: "Digital",
|
|
1590
|
-
* },
|
|
1591
|
-
* ])
|
|
1592
|
-
*/
|
|
1593
|
-
upsertShippingProfiles(data: UpsertShippingProfileDTO[], sharedContext?: Context): Promise<ShippingProfileDTO[]>;
|
|
1594
|
-
/**
|
|
1595
|
-
* This method updates an existing shipping profile, or creates a new one if it doesn't exist.
|
|
1596
|
-
*
|
|
1597
|
-
* @param {UpdateShippingProfileDTO} data - The attributes to update or create for the profile.
|
|
1598
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1599
|
-
* @returns {Promise<ProductTagDTO>} The updated or created profile.
|
|
1600
|
-
*
|
|
1601
|
-
* @example
|
|
1602
|
-
* const productTag = await productModuleService.upsertShippingProfiles({
|
|
1603
|
-
* id: "id_1234",
|
|
1604
|
-
* metadata: {
|
|
1605
|
-
* test: true,
|
|
1606
|
-
* },
|
|
1607
|
-
* })
|
|
1608
|
-
*/
|
|
1609
|
-
upsertShippingProfiles(data: UpsertShippingProfileDTO, sharedContext?: Context): Promise<ShippingProfileDTO>;
|
|
1610
|
-
/**
|
|
1611
|
-
* This method soft deletes shipping profiles by their IDs.
|
|
1612
|
-
*
|
|
1613
|
-
* @param {string[]} shippingProfileIds - The IDs of the shipping profiles.
|
|
1614
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
|
1615
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1616
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
|
1617
|
-
* If there are no related records, the promise resolves to `void`.
|
|
1618
|
-
*
|
|
1619
|
-
* @example
|
|
1620
|
-
* await fulfillmentModuleService.softDeleteShippingProfiles([
|
|
1621
|
-
* "sp_123",
|
|
1622
|
-
* "sp_321",
|
|
1623
|
-
* ])
|
|
1624
|
-
*/
|
|
1625
|
-
softDeleteShippingProfiles<TReturnableLinkableKeys extends string = string>(shippingProfileIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
1626
|
-
/**
|
|
1627
|
-
* This method restores soft deleted shipping profiles by their IDs.
|
|
1628
|
-
*
|
|
1629
|
-
* @param {string[]} shippingProfileIds - The IDs of the shipping profiles.
|
|
1630
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the shipping profiles. You can pass to its `returnLinkableKeys`
|
|
1631
|
-
* property any of the shipping profile's relation attribute names, such as `{type relation name}`.
|
|
1632
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1633
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
|
1634
|
-
* If there are no related records restored, the promise resolves to `void`.
|
|
1635
|
-
*
|
|
1636
|
-
* @example
|
|
1637
|
-
* await fulfillmentModuleService.restoreShippingProfiles([
|
|
1638
|
-
* "sp_123",
|
|
1639
|
-
* "sp_321",
|
|
1640
|
-
* ])
|
|
1641
|
-
*/
|
|
1642
|
-
restoreShippingProfiles<TReturnableLinkableKeys extends string = string>(shippingProfileIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
1643
|
-
/**
|
|
1644
|
-
* This method retrieves a shipping option rule by its ID.
|
|
1645
|
-
*
|
|
1646
|
-
* @param {string} id - The ID of the shipping option rule.
|
|
1647
|
-
* @param {FindConfig<ShippingOptionRuleDTO>} config - The configurations determining how the shipping option rule is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1648
|
-
* attributes or relations associated with a shipping option rule.
|
|
1649
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1650
|
-
* @returns {Promise<ShippingOptionRuleDTO>} The retrieved shipping option rule.
|
|
1651
|
-
*
|
|
1652
|
-
* @example
|
|
1653
|
-
* A simple example that retrieves a shipping option rule by its ID:
|
|
1654
|
-
*
|
|
1655
|
-
* ```ts
|
|
1656
|
-
* const shippingOptionRule =
|
|
1657
|
-
* await fulfillmentModuleService.retrieveShippingOptionRule(
|
|
1658
|
-
* "sorul_123"
|
|
1659
|
-
* )
|
|
1660
|
-
* ```
|
|
1661
|
-
*
|
|
1662
|
-
* To specify relations that should be retrieved:
|
|
1663
|
-
*
|
|
1664
|
-
* :::note
|
|
1665
|
-
*
|
|
1666
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1667
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1668
|
-
*
|
|
1669
|
-
* :::
|
|
1670
|
-
*
|
|
1671
|
-
* ```ts
|
|
1672
|
-
* const shippingOptionRule =
|
|
1673
|
-
* await fulfillmentModuleService.retrieveShippingOptionRule(
|
|
1674
|
-
* "sorul_123",
|
|
1675
|
-
* {
|
|
1676
|
-
* relations: ["shipping_option"],
|
|
1677
|
-
* }
|
|
1678
|
-
* )
|
|
1679
|
-
* ```
|
|
1680
|
-
*/
|
|
1681
|
-
retrieveShippingOptionRule(id: string, config?: FindConfig<ShippingOptionRuleDTO>, sharedContext?: Context): Promise<ShippingOptionRuleDTO>;
|
|
1682
|
-
/**
|
|
1683
|
-
* This method retrieves a paginated list of shipping option rules based on optional filters and configuration.
|
|
1684
|
-
*
|
|
1685
|
-
* @param {FilterableShippingOptionRuleProps} filters - The filters to apply on the retrieved shipping option rules.
|
|
1686
|
-
* @param {FindConfig<ShippingOptionRuleDTO>} config - The configurations determining how the shipping option rule is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1687
|
-
* attributes or relations associated with a shipping option rule.
|
|
1688
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1689
|
-
* @returns {Promise<ShippingOptionRuleDTO[]>} The list of shipping option rules.
|
|
1690
|
-
*
|
|
1691
|
-
* @example
|
|
1692
|
-
* To retrieve a list of shipping option rules using their IDs:
|
|
1693
|
-
*
|
|
1694
|
-
* ```ts
|
|
1695
|
-
* const shippingOptionRules =
|
|
1696
|
-
* await fulfillmentModuleService.listShippingOptionRules({
|
|
1697
|
-
* id: ["sorul_123", "sorul_321"],
|
|
1698
|
-
* })
|
|
1699
|
-
* ```
|
|
1700
|
-
*
|
|
1701
|
-
* To specify relations that should be retrieved within the shipping option rule:
|
|
1702
|
-
*
|
|
1703
|
-
* :::note
|
|
1704
|
-
*
|
|
1705
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1706
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1707
|
-
*
|
|
1708
|
-
* :::
|
|
1709
|
-
*
|
|
1710
|
-
* ```ts
|
|
1711
|
-
* const shippingOptionRules =
|
|
1712
|
-
* await fulfillmentModuleService.listShippingOptionRules(
|
|
1713
|
-
* {
|
|
1714
|
-
* id: ["sorul_123", "sorul_321"],
|
|
1715
|
-
* },
|
|
1716
|
-
* {
|
|
1717
|
-
* relations: ["shipping_option"],
|
|
1718
|
-
* }
|
|
1719
|
-
* )
|
|
1720
|
-
* ```
|
|
1721
|
-
*
|
|
1722
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
1723
|
-
*
|
|
1724
|
-
* ```ts
|
|
1725
|
-
* const shippingOptionRules =
|
|
1726
|
-
* await fulfillmentModuleService.listShippingOptionRules(
|
|
1727
|
-
* {
|
|
1728
|
-
* id: ["sorul_123", "sorul_321"],
|
|
1729
|
-
* },
|
|
1730
|
-
* {
|
|
1731
|
-
* relations: ["shipping_option"],
|
|
1732
|
-
* take: 20,
|
|
1733
|
-
* skip: 2,
|
|
1734
|
-
* }
|
|
1735
|
-
* )
|
|
1736
|
-
* ```
|
|
1737
|
-
*/
|
|
1738
|
-
listShippingOptionRules(filters?: FilterableShippingOptionRuleProps, config?: FindConfig<ShippingOptionRuleDTO>, sharedContext?: Context): Promise<ShippingOptionRuleDTO[]>;
|
|
1739
|
-
/**
|
|
1740
|
-
* This method retrieves a paginated list of shipping option rules along with the total count of available shipping option rules satisfying the provided filters.
|
|
1741
|
-
*
|
|
1742
|
-
* @param {FilterableShippingOptionRuleProps} filters - The filters to apply on the retrieved shipping option rules.
|
|
1743
|
-
* @param {FindConfig<ShippingOptionRuleDTO>} config - The configurations determining how the shipping option rule is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1744
|
-
* attributes or relations associated with a shipping option rule.
|
|
1745
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1746
|
-
* @returns {Promise<[ShippingOptionRuleDTO[], number]>} The list of shipping option rules along with their total count.
|
|
1747
|
-
*
|
|
1748
|
-
* @example
|
|
1749
|
-
* To retrieve a list of shipping option rules using their IDs:
|
|
1750
|
-
*
|
|
1751
|
-
* ```ts
|
|
1752
|
-
* const [shippingOptionRules, count] =
|
|
1753
|
-
* await fulfillmentModuleService.listAndCountShippingOptionRules(
|
|
1754
|
-
* {
|
|
1755
|
-
* id: ["sorul_123", "sorul_321"],
|
|
1756
|
-
* }
|
|
1757
|
-
* )
|
|
1758
|
-
* ```
|
|
1759
|
-
*
|
|
1760
|
-
* To specify relations that should be retrieved within the shipping option rule:
|
|
1761
|
-
*
|
|
1762
|
-
* :::note
|
|
1763
|
-
*
|
|
1764
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1765
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1766
|
-
*
|
|
1767
|
-
* :::
|
|
1768
|
-
*
|
|
1769
|
-
* ```ts
|
|
1770
|
-
* const [shippingOptionRules, count] =
|
|
1771
|
-
* await fulfillmentModuleService.listAndCountShippingOptionRules(
|
|
1772
|
-
* {
|
|
1773
|
-
* id: ["sorul_123", "sorul_321"],
|
|
1774
|
-
* },
|
|
1775
|
-
* {
|
|
1776
|
-
* relations: ["shipping_option"],
|
|
1777
|
-
* }
|
|
1778
|
-
* )
|
|
1779
|
-
* ```
|
|
1780
|
-
*
|
|
1781
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
1782
|
-
*
|
|
1783
|
-
* ```ts
|
|
1784
|
-
* const [shippingOptionRules, count] =
|
|
1785
|
-
* await fulfillmentModuleService.listAndCountShippingOptionRules(
|
|
1786
|
-
* {
|
|
1787
|
-
* id: ["sorul_123", "sorul_321"],
|
|
1788
|
-
* },
|
|
1789
|
-
* {
|
|
1790
|
-
* relations: ["shipping_option"],
|
|
1791
|
-
* take: 20,
|
|
1792
|
-
* skip: 2,
|
|
1793
|
-
* }
|
|
1794
|
-
* )
|
|
1795
|
-
* ```
|
|
1796
|
-
*/
|
|
1797
|
-
listAndCountShippingOptionRules(filters?: FilterableShippingOptionRuleProps, config?: FindConfig<ShippingOptionRuleDTO>, sharedContext?: Context): Promise<[ShippingOptionRuleDTO[], number]>;
|
|
1798
|
-
/**
|
|
1799
|
-
* This method creates shipping option rules.
|
|
1800
|
-
*
|
|
1801
|
-
* @param {CreateShippingOptionRuleDTO[]} data - The shipping option rules to be created.
|
|
1802
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1803
|
-
* @returns {Promise<ShippingOptionRuleDTO[]>} The created shipping option rules.
|
|
1804
|
-
*
|
|
1805
|
-
* @example
|
|
1806
|
-
* const shippingOptionRules =
|
|
1807
|
-
* await fulfillmentModuleService.createShippingOptionRules([
|
|
1808
|
-
* {
|
|
1809
|
-
* attribute: "customer_group",
|
|
1810
|
-
* operator: "in",
|
|
1811
|
-
* value: "cg_vipgroup",
|
|
1812
|
-
* shipping_option_id: "so_123",
|
|
1813
|
-
* },
|
|
1814
|
-
* {
|
|
1815
|
-
* attribute: "total_weight",
|
|
1816
|
-
* operator: "lt",
|
|
1817
|
-
* value: "2000",
|
|
1818
|
-
* shipping_option_id: "so_321",
|
|
1819
|
-
* },
|
|
1820
|
-
* ])
|
|
1821
|
-
*/
|
|
1822
|
-
createShippingOptionRules(data: CreateShippingOptionRuleDTO[], sharedContext?: Context): Promise<ShippingOptionRuleDTO[]>;
|
|
1823
|
-
/**
|
|
1824
|
-
* This method creates a shipping option rule.
|
|
1825
|
-
*
|
|
1826
|
-
* @param {CreateShippingOptionRuleDTO} data - The shipping option rule to be created.
|
|
1827
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1828
|
-
* @returns {Promise<ShippingOptionRuleDTO>} The created shipping option rule.
|
|
1829
|
-
*
|
|
1830
|
-
* @example
|
|
1831
|
-
* const shippingOptionRule =
|
|
1832
|
-
* await fulfillmentModuleService.createShippingOptionRules({
|
|
1833
|
-
* attribute: "customer_group",
|
|
1834
|
-
* operator: "in",
|
|
1835
|
-
* value: "cg_vipgroup",
|
|
1836
|
-
* shipping_option_id: "so_123",
|
|
1837
|
-
* })
|
|
1838
|
-
*/
|
|
1839
|
-
createShippingOptionRules(data: CreateShippingOptionRuleDTO, sharedContext?: Context): Promise<ShippingOptionRuleDTO>;
|
|
1840
|
-
/**
|
|
1841
|
-
* This method updates existing shipping option rules.
|
|
1842
|
-
*
|
|
1843
|
-
* @param {UpdateShippingOptionRuleDTO[]} data - The attributes to update in the shipping option rules.
|
|
1844
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1845
|
-
* @returns {Promise<ShippingOptionRuleDTO[]>} The updated shipping option rules.
|
|
1846
|
-
*
|
|
1847
|
-
* @example
|
|
1848
|
-
* const shippingOptionRules =
|
|
1849
|
-
* await fulfillmentModuleService.updateShippingOptionRules([
|
|
1850
|
-
* {
|
|
1851
|
-
* id: "sorul_123",
|
|
1852
|
-
* operator: "in",
|
|
1853
|
-
* },
|
|
1854
|
-
* {
|
|
1855
|
-
* id: "sorul_321",
|
|
1856
|
-
* attribute: "customer_group",
|
|
1857
|
-
* value: "cp_vipgroup",
|
|
1858
|
-
* },
|
|
1859
|
-
* ])
|
|
1860
|
-
*/
|
|
1861
|
-
updateShippingOptionRules(data: UpdateShippingOptionRuleDTO[], sharedContext?: Context): Promise<ShippingOptionRuleDTO[]>;
|
|
1862
|
-
/**
|
|
1863
|
-
* This method updates an existing shipping option rule.
|
|
1864
|
-
*
|
|
1865
|
-
* @param {UpdateShippingOptionRuleDTO} data - The attributes to update in the shipping option rule.
|
|
1866
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1867
|
-
* @returns {Promise<ShippingOptionRuleDTO>} The updated shipping option rule.
|
|
1868
|
-
*
|
|
1869
|
-
* @example
|
|
1870
|
-
* const shippingOptionRule =
|
|
1871
|
-
* await fulfillmentModuleService.updateShippingOptionRules({
|
|
1872
|
-
* id: "sorul_123",
|
|
1873
|
-
* operator: "in",
|
|
1874
|
-
* })
|
|
1875
|
-
*/
|
|
1876
|
-
updateShippingOptionRules(data: UpdateShippingOptionRuleDTO, sharedContext?: Context): Promise<ShippingOptionRuleDTO>;
|
|
1877
|
-
/**
|
|
1878
|
-
* This method deletes shipping option rules by their IDs.
|
|
1879
|
-
*
|
|
1880
|
-
* @param {string[]} ids - The IDs of the shipping option rules.
|
|
1881
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1882
|
-
* @returns {Promise<void>} Resolves when the shipping option rules are deleted successfully.
|
|
1883
|
-
*
|
|
1884
|
-
* @example
|
|
1885
|
-
* await fulfillmentModuleService.deleteShippingOptionRules([
|
|
1886
|
-
* "sorul_123",
|
|
1887
|
-
* "sorul_321",
|
|
1888
|
-
* ])
|
|
1889
|
-
*/
|
|
1890
|
-
deleteShippingOptionRules(ids: string[], sharedContext?: Context): Promise<void>;
|
|
1891
|
-
/**
|
|
1892
|
-
* This method deletes a shipping option by its ID.
|
|
1893
|
-
*
|
|
1894
|
-
* @param {string} id - The ID of the shipping option.
|
|
1895
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1896
|
-
* @returns {Promise<void>} Resolves when the shipping option is deleted successfully.
|
|
1897
|
-
*
|
|
1898
|
-
* @example
|
|
1899
|
-
* await fulfillmentModuleService.deleteShippingOptionRules(
|
|
1900
|
-
* "sorul_123"
|
|
1901
|
-
* )
|
|
1902
|
-
*/
|
|
1903
|
-
deleteShippingOptionRules(id: string, sharedContext?: Context): Promise<void>;
|
|
1904
|
-
/**
|
|
1905
|
-
* This method retrieves a shipping option type by its ID.
|
|
1906
|
-
*
|
|
1907
|
-
* @param {string} id - The ID of the shipping option type.
|
|
1908
|
-
* @param {FindConfig<ShippingOptionTypeDTO>} config - The configurations determining how the shipping option type is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
1909
|
-
* attributes or relations associated with a shipping option type.
|
|
1910
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1911
|
-
* @returns {Promise<ShippingOptionTypeDTO>} The retrieved shipping option type.
|
|
1912
|
-
*
|
|
1913
|
-
* @example
|
|
1914
|
-
* A simple example that retrieves a shipping option type by its ID:
|
|
1915
|
-
*
|
|
1916
|
-
* ```ts
|
|
1917
|
-
* const shippingOptionType =
|
|
1918
|
-
* await fulfillmentModuleService.retrieveShippingOptionType(
|
|
1919
|
-
* "sotype_123"
|
|
1920
|
-
* )
|
|
1921
|
-
* ```
|
|
1922
|
-
*
|
|
1923
|
-
* To specify relations that should be retrieved:
|
|
1924
|
-
*
|
|
1925
|
-
* :::note
|
|
1926
|
-
*
|
|
1927
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
1928
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
1929
|
-
*
|
|
1930
|
-
* :::
|
|
1931
|
-
*
|
|
1932
|
-
* ```ts
|
|
1933
|
-
* const shippingOptionType =
|
|
1934
|
-
* await fulfillmentModuleService.retrieveShippingOptionType(
|
|
1935
|
-
* "sotype_123",
|
|
1936
|
-
* {
|
|
1937
|
-
* relations: ["shipping_option"],
|
|
1938
|
-
* }
|
|
1939
|
-
* )
|
|
1940
|
-
* ```
|
|
1941
|
-
*/
|
|
1942
|
-
retrieveShippingOptionType(id: string, config?: FindConfig<ShippingOptionTypeDTO>, sharedContext?: Context): Promise<ShippingOptionTypeDTO>;
|
|
1943
|
-
/**
|
|
1944
|
-
* This method creates shipping option types.
|
|
1945
|
-
*
|
|
1946
|
-
* @param {CreateShippingOptionTypeDTO[]} data - The shipping option types to be created.
|
|
1947
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1948
|
-
* @returns {Promise<ShippingOptionTypeDTO[]>} The created shipping option type.
|
|
1949
|
-
*
|
|
1950
|
-
* @example
|
|
1951
|
-
* const shippingOptionTypes =
|
|
1952
|
-
* await fulfillmentModuleService.createShippingOptionTypes([
|
|
1953
|
-
* {
|
|
1954
|
-
* label: "Standard",
|
|
1955
|
-
* code: "standard",
|
|
1956
|
-
* description: "Ship in 2-3 days."
|
|
1957
|
-
* },
|
|
1958
|
-
* {
|
|
1959
|
-
* label: "Express",
|
|
1960
|
-
* code: "express",
|
|
1961
|
-
* description: "Ship in 24 hours."
|
|
1962
|
-
* }
|
|
1963
|
-
* ])
|
|
1964
|
-
*/
|
|
1965
|
-
createShippingOptionTypes(data: CreateShippingOptionTypeDTO[], sharedContext?: Context): Promise<ShippingOptionTypeDTO[]>;
|
|
1966
|
-
/**
|
|
1967
|
-
* This method creates a shipping option type.
|
|
1968
|
-
*
|
|
1969
|
-
* @param {CreateShippingOptionTypeDTO} data - The shipping option type to be created.
|
|
1970
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1971
|
-
* @returns {Promise<ShippingOptionTypeDTO>} The created shipping option type.
|
|
1972
|
-
*
|
|
1973
|
-
* @example
|
|
1974
|
-
* const shippingOption =
|
|
1975
|
-
* await fulfillmentModuleService.createShippingOptionTypes({
|
|
1976
|
-
* label: "Standard",
|
|
1977
|
-
* code: "standard",
|
|
1978
|
-
* description: "Ship in 2-3 days."
|
|
1979
|
-
* })
|
|
1980
|
-
*/
|
|
1981
|
-
createShippingOptionTypes(data: CreateShippingOptionTypeDTO, sharedContext?: Context): Promise<ShippingOptionTypeDTO>;
|
|
1982
|
-
/**
|
|
1983
|
-
* This method updates an existing shipping option type.
|
|
1984
|
-
*
|
|
1985
|
-
* @param {string} id - The ID of the shipping option type.
|
|
1986
|
-
* @param {UpdateShippingOptionTypeDTO} data - The attributes to update in the shipping option type.
|
|
1987
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
1988
|
-
* @returns {Promise<ShippingOptionDTO>} The updated shipping option type.
|
|
1989
|
-
*
|
|
1990
|
-
* @example
|
|
1991
|
-
* const shippingOptionType =
|
|
1992
|
-
* await fulfillmentModuleService.updateShippingOptionTypes(
|
|
1993
|
-
* "sotype_123",
|
|
1994
|
-
* {
|
|
1995
|
-
* label: "Express",
|
|
1996
|
-
* }
|
|
1997
|
-
* )
|
|
1998
|
-
*/
|
|
1999
|
-
updateShippingOptionTypes(id: string, data: UpdateShippingOptionTypeDTO, sharedContext?: Context): Promise<ShippingOptionTypeDTO>;
|
|
2000
|
-
/**
|
|
2001
|
-
* This method updates existing shipping option types matching the specified filters.
|
|
2002
|
-
*
|
|
2003
|
-
* @param {FilterableShippingOptionProps} selector - The filters specifying which shipping option types to update.
|
|
2004
|
-
* @param {FilterableShippingOptionTypeProps} data - The attributes to update in the shipping option type.
|
|
2005
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2006
|
-
* @returns {Promise<ShippingOptionDTO[]>} The updated shipping option types.
|
|
2007
|
-
*
|
|
2008
|
-
* @example
|
|
2009
|
-
* const shippingOptions =
|
|
2010
|
-
* await fulfillmentModuleService.updateShippingOptionTypes(
|
|
2011
|
-
* {
|
|
2012
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2013
|
-
* },
|
|
2014
|
-
* {
|
|
2015
|
-
* label: "Express",
|
|
2016
|
-
* }
|
|
2017
|
-
* )
|
|
2018
|
-
*/
|
|
2019
|
-
updateShippingOptionTypes(selector: FilterableShippingOptionTypeProps, data: UpdateShippingOptionTypeDTO, sharedContext?: Context): Promise<ShippingOptionTypeDTO[]>;
|
|
2020
|
-
/**
|
|
2021
|
-
* This method updates or creates a shipping option type if it doesn't exist.
|
|
2022
|
-
*
|
|
2023
|
-
* @param {UpsertShippingOptionTypeDTO} data - The attributes in the shipping option type to be created or updated.
|
|
2024
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2025
|
-
* @returns {Promise<ShippingOptionTypeDTO>} The created or updated shipping option type.
|
|
2026
|
-
*
|
|
2027
|
-
* @example
|
|
2028
|
-
* const shippingOptions =
|
|
2029
|
-
* await fulfillmentModuleService.upsertShippingOptionTypes({
|
|
2030
|
-
* id: "sotype_123",
|
|
2031
|
-
* label: "Express",
|
|
2032
|
-
* })
|
|
2033
|
-
*/
|
|
2034
|
-
upsertShippingOptionTypes(data: UpsertShippingOptionTypeDTO, sharedContext?: Context): Promise<ShippingOptionTypeDTO>;
|
|
2035
|
-
/**
|
|
2036
|
-
* This method updates or creates shipping option types if they don't exist.
|
|
2037
|
-
*
|
|
2038
|
-
* @param {UpsertShippingOptionTypeDTO[]} data - The attributes in the shipping option types to be created or updated.
|
|
2039
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2040
|
-
* @returns {Promise<ShippingOptionTypeDTO[]>} The created or updated shipping option types.
|
|
2041
|
-
*
|
|
2042
|
-
* @example
|
|
2043
|
-
* const shippingOptions =
|
|
2044
|
-
* await fulfillmentModuleService.upsertShippingOptionTypes([
|
|
2045
|
-
* {
|
|
2046
|
-
* id: "sotype_123",
|
|
2047
|
-
* label: "Express",
|
|
2048
|
-
* },
|
|
2049
|
-
* {
|
|
2050
|
-
* label: "Express",
|
|
2051
|
-
* code: "express",
|
|
2052
|
-
* description: "Ship in 24 hours."
|
|
2053
|
-
* }
|
|
2054
|
-
* ])
|
|
2055
|
-
*/
|
|
2056
|
-
upsertShippingOptionTypes(data: UpsertShippingOptionTypeDTO[], sharedContext?: Context): Promise<ShippingOptionTypeDTO[]>;
|
|
2057
|
-
/**
|
|
2058
|
-
* This method retrieves a paginated list of shipping option types based on optional filters and configuration.
|
|
2059
|
-
*
|
|
2060
|
-
* @param {FilterableShippingOptionTypeProps} filters - The filters to apply on the retrieved shipping option types.
|
|
2061
|
-
* @param {FindConfig<ShippingOptionTypeDTO>} config - The configurations determining how the shipping option type is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
2062
|
-
* attributes or relations associated with a shipping option type.
|
|
2063
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2064
|
-
* @returns {Promise<ShippingOptionTypeDTO[]>} The list of shipping option types.
|
|
2065
|
-
*
|
|
2066
|
-
* @example
|
|
2067
|
-
* To retrieve a list of shipping option types using their IDs:
|
|
2068
|
-
*
|
|
2069
|
-
* ```ts
|
|
2070
|
-
* const shippingOptionTypes =
|
|
2071
|
-
* await fulfillmentModuleService.listShippingOptionTypes({
|
|
2072
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2073
|
-
* })
|
|
2074
|
-
* ```
|
|
2075
|
-
*
|
|
2076
|
-
* To specify relations that should be retrieved within the shipping option type:
|
|
2077
|
-
*
|
|
2078
|
-
* :::note
|
|
2079
|
-
*
|
|
2080
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
2081
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
2082
|
-
*
|
|
2083
|
-
* :::
|
|
2084
|
-
*
|
|
2085
|
-
* ```ts
|
|
2086
|
-
* const shippingOptionTypes =
|
|
2087
|
-
* await fulfillmentModuleService.listShippingOptionTypes(
|
|
2088
|
-
* {
|
|
2089
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2090
|
-
* },
|
|
2091
|
-
* {
|
|
2092
|
-
* relations: ["shipping_option"],
|
|
2093
|
-
* }
|
|
2094
|
-
* )
|
|
2095
|
-
* ```
|
|
2096
|
-
*
|
|
2097
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
2098
|
-
*
|
|
2099
|
-
* ```ts
|
|
2100
|
-
* const shippingOptionTypes =
|
|
2101
|
-
* await fulfillmentModuleService.listShippingOptionTypes(
|
|
2102
|
-
* {
|
|
2103
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2104
|
-
* },
|
|
2105
|
-
* {
|
|
2106
|
-
* relations: ["shipping_option"],
|
|
2107
|
-
* take: 20,
|
|
2108
|
-
* skip: 2,
|
|
2109
|
-
* }
|
|
2110
|
-
* )
|
|
2111
|
-
* ```
|
|
2112
|
-
*/
|
|
2113
|
-
listShippingOptionTypes(filters?: FilterableShippingOptionTypeProps, config?: FindConfig<ShippingOptionTypeDTO>, sharedContext?: Context): Promise<ShippingOptionTypeDTO[]>;
|
|
2114
|
-
/**
|
|
2115
|
-
* This method retrieves a paginated list of shipping option types along with the total count of available shipping option types satisfying the provided filters.
|
|
2116
|
-
*
|
|
2117
|
-
* @param {FilterableShippingOptionTypeProps} filters - The filters to apply on the retrieved shipping option types.
|
|
2118
|
-
* @param {FindConfig<ShippingOptionTypeDTO>} config - The configurations determining how the shipping option type is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
2119
|
-
* attributes or relations associated with a shipping option type.
|
|
2120
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2121
|
-
* @returns {Promise<[ShippingOptionTypeDTO[], number]>} The list of shipping option types along with their total count.
|
|
2122
|
-
*
|
|
2123
|
-
* @example
|
|
2124
|
-
* To retrieve a list of shipping option types using their IDs:
|
|
2125
|
-
*
|
|
2126
|
-
* ```ts
|
|
2127
|
-
* const [shippingOptionTypes, count] =
|
|
2128
|
-
* await fulfillmentModuleService.listAndCountShippingOptionTypes(
|
|
2129
|
-
* {
|
|
2130
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2131
|
-
* }
|
|
2132
|
-
* )
|
|
2133
|
-
* ```
|
|
2134
|
-
*
|
|
2135
|
-
* To specify relations that should be retrieved within the shipping option type:
|
|
2136
|
-
*
|
|
2137
|
-
* :::note
|
|
2138
|
-
*
|
|
2139
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
2140
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
2141
|
-
*
|
|
2142
|
-
* :::
|
|
2143
|
-
*
|
|
2144
|
-
* ```ts
|
|
2145
|
-
* const [shippingOptionTypes, count] =
|
|
2146
|
-
* await fulfillmentModuleService.listAndCountShippingOptionTypes(
|
|
2147
|
-
* {
|
|
2148
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2149
|
-
* },
|
|
2150
|
-
* {
|
|
2151
|
-
* relations: ["shipping_option"],
|
|
2152
|
-
* }
|
|
2153
|
-
* )
|
|
2154
|
-
* ```
|
|
2155
|
-
*
|
|
2156
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
2157
|
-
*
|
|
2158
|
-
* ```ts
|
|
2159
|
-
* const [shippingOptionTypes, count] =
|
|
2160
|
-
* await fulfillmentModuleService.listAndCountShippingOptionTypes(
|
|
2161
|
-
* {
|
|
2162
|
-
* id: ["sotype_123", "sotype_321"],
|
|
2163
|
-
* },
|
|
2164
|
-
* {
|
|
2165
|
-
* relations: ["shipping_option"],
|
|
2166
|
-
* take: 20,
|
|
2167
|
-
* skip: 2,
|
|
2168
|
-
* }
|
|
2169
|
-
* )
|
|
2170
|
-
* ```
|
|
2171
|
-
*/
|
|
2172
|
-
listAndCountShippingOptionTypes(filters?: FilterableShippingOptionTypeProps, config?: FindConfig<ShippingOptionTypeDTO>, sharedContext?: Context): Promise<[ShippingOptionTypeDTO[], number]>;
|
|
2173
|
-
/**
|
|
2174
|
-
* This method deletes shipping option types by their IDs.
|
|
2175
|
-
*
|
|
2176
|
-
* @param {string[]} ids - The IDs of the shipping option types.
|
|
2177
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2178
|
-
* @returns {Promise<void>} Resolves when the shipping option types are deleted successfully.
|
|
2179
|
-
*
|
|
2180
|
-
* @example
|
|
2181
|
-
* await fulfillmentModuleService.deleteShippingOptionTypes([
|
|
2182
|
-
* "sotype_123",
|
|
2183
|
-
* "sotype_321",
|
|
2184
|
-
* ])
|
|
2185
|
-
*/
|
|
2186
|
-
deleteShippingOptionTypes(ids: string[], sharedContext?: Context): Promise<void>;
|
|
2187
|
-
/**
|
|
2188
|
-
* This method deletes a shipping option type by its ID.
|
|
2189
|
-
*
|
|
2190
|
-
* @param {string} id - The ID of the shipping option type.
|
|
2191
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2192
|
-
* @returns {Promise<void>} Resolves when the shipping option type is deleted.
|
|
2193
|
-
*
|
|
2194
|
-
* @example
|
|
2195
|
-
* await fulfillmentModuleService.deleteShippingOptionTypes(
|
|
2196
|
-
* "sotype_123"
|
|
2197
|
-
* )
|
|
2198
|
-
*/
|
|
2199
|
-
deleteShippingOptionTypes(id: string, sharedContext?: Context): Promise<void>;
|
|
2200
|
-
/**
|
|
2201
|
-
* This method soft deletes shipping option types by their IDs.
|
|
2202
|
-
*
|
|
2203
|
-
* @param {string[]} ids - The IDs of the shipping option types.
|
|
2204
|
-
* @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
|
|
2205
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2206
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted.
|
|
2207
|
-
* If there are no related records, the promise resolves to `void`.
|
|
2208
|
-
*
|
|
2209
|
-
* @example
|
|
2210
|
-
* await fulfillmentModuleService.softDeleteShippingOptionTypes([
|
|
2211
|
-
* "sotype_123",
|
|
2212
|
-
* "sotype_321",
|
|
2213
|
-
* ])
|
|
2214
|
-
*/
|
|
2215
|
-
softDeleteShippingOptionTypes<TReturnableLinkableKeys extends string = string>(ids: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
2216
|
-
/**
|
|
2217
|
-
* This method restores soft deleted shipping option types by their IDs.
|
|
2218
|
-
*
|
|
2219
|
-
* @param {string[]} ids - The IDs of the shipping option types.
|
|
2220
|
-
* @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the shipping option types. You can pass to its `returnLinkableKeys`
|
|
2221
|
-
* property any of the shipping option type's relation attribute names.
|
|
2222
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2223
|
-
* @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored.
|
|
2224
|
-
* If there are no related records restored, the promise resolves to `void`.
|
|
2225
|
-
*
|
|
2226
|
-
* @example
|
|
2227
|
-
* await fulfillmentModuleService.restoreShippingOptions([
|
|
2228
|
-
* "sotype_123",
|
|
2229
|
-
* "sotype_321",
|
|
2230
|
-
* ])
|
|
2231
|
-
*/
|
|
2232
|
-
restoreShippingOptionTypes<TReturnableLinkableKeys extends string = string>(ids: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
|
|
2233
|
-
/**
|
|
2234
|
-
* This method retrieves a fulfillment by its ID.
|
|
2235
|
-
*
|
|
2236
|
-
* @param {string} id - The ID of the fulfillment.
|
|
2237
|
-
* @param {FindConfig<FulfillmentDTO>} config - The configurations determining how the fulfillment is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
2238
|
-
* attributes or relations associated with a fulfillment.
|
|
2239
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2240
|
-
* @returns {Promise<FulfillmentDTO>} The retrieved fulfillment.
|
|
2241
|
-
*
|
|
2242
|
-
* @example
|
|
2243
|
-
* A simple example that retrieves a fulfillment by its ID:
|
|
2244
|
-
*
|
|
2245
|
-
* ```ts
|
|
2246
|
-
* const fulfillment =
|
|
2247
|
-
* await fulfillmentModuleService.retrieveFulfillment(
|
|
2248
|
-
* "ful_123"
|
|
2249
|
-
* )
|
|
2250
|
-
* ```
|
|
2251
|
-
*
|
|
2252
|
-
* To specify relations that should be retrieved:
|
|
2253
|
-
*
|
|
2254
|
-
* :::note
|
|
2255
|
-
*
|
|
2256
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
2257
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
2258
|
-
*
|
|
2259
|
-
* :::
|
|
2260
|
-
*
|
|
2261
|
-
* ```ts
|
|
2262
|
-
* const fulfillment =
|
|
2263
|
-
* await fulfillmentModuleService.retrieveFulfillment(
|
|
2264
|
-
* "ful_123",
|
|
2265
|
-
* {
|
|
2266
|
-
* relations: ["shipping_option"],
|
|
2267
|
-
* }
|
|
2268
|
-
* )
|
|
2269
|
-
* ```
|
|
2270
|
-
*/
|
|
2271
|
-
retrieveFulfillment(id: string, config?: FindConfig<FulfillmentDTO>, sharedContext?: Context): Promise<FulfillmentDTO>;
|
|
2272
|
-
/**
|
|
2273
|
-
* This method retrieves a paginated list of fulfillments based on optional filters and configuration.
|
|
2274
|
-
*
|
|
2275
|
-
* @param {FilterableFulfillmentSetProps} filters - The filters to apply on the retrieved fulfillments.
|
|
2276
|
-
* @param {FindConfig<FulfillmentDTO>} config - The configurations determining how the fulfillment is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
2277
|
-
* attributes or relations associated with a fulfillment.
|
|
2278
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2279
|
-
* @returns {Promise<FulfillmentDTO[]>} The list of fulfillments.
|
|
2280
|
-
*
|
|
2281
|
-
* @example
|
|
2282
|
-
* To retrieve a list of fulfillments using their IDs:
|
|
2283
|
-
*
|
|
2284
|
-
* ```ts
|
|
2285
|
-
* const fulfillments =
|
|
2286
|
-
* await fulfillmentModuleService.listFulfillments({
|
|
2287
|
-
* id: ["ful_123", "ful_321"],
|
|
2288
|
-
* })
|
|
2289
|
-
* ```
|
|
2290
|
-
*
|
|
2291
|
-
* To specify relations that should be retrieved within the fulfillment:
|
|
2292
|
-
*
|
|
2293
|
-
* :::note
|
|
2294
|
-
*
|
|
2295
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
2296
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
2297
|
-
*
|
|
2298
|
-
* :::
|
|
2299
|
-
*
|
|
2300
|
-
* ```ts
|
|
2301
|
-
* const fulfillments =
|
|
2302
|
-
* await fulfillmentModuleService.listFulfillments(
|
|
2303
|
-
* {
|
|
2304
|
-
* id: ["ful_123", "ful_321"],
|
|
2305
|
-
* },
|
|
2306
|
-
* {
|
|
2307
|
-
* relations: ["shipping_option"],
|
|
2308
|
-
* }
|
|
2309
|
-
* )
|
|
2310
|
-
* ```
|
|
2311
|
-
*
|
|
2312
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
2313
|
-
*
|
|
2314
|
-
* ```ts
|
|
2315
|
-
* const fulfillments =
|
|
2316
|
-
* await fulfillmentModuleService.listFulfillments(
|
|
2317
|
-
* {
|
|
2318
|
-
* id: ["ful_123", "ful_321"],
|
|
2319
|
-
* },
|
|
2320
|
-
* {
|
|
2321
|
-
* relations: ["shipping_option"],
|
|
2322
|
-
* take: 20,
|
|
2323
|
-
* skip: 2,
|
|
2324
|
-
* }
|
|
2325
|
-
* )
|
|
2326
|
-
* ```
|
|
2327
|
-
*/
|
|
2328
|
-
listFulfillments(filters?: FilterableFulfillmentProps, config?: FindConfig<FulfillmentDTO>, sharedContext?: Context): Promise<FulfillmentDTO[]>;
|
|
2329
|
-
/**
|
|
2330
|
-
* This method retrieves a paginated list of fulfillments along with the total count of available fulfillments satisfying the provided filters.
|
|
2331
|
-
*
|
|
2332
|
-
* @param {FilterableFulfillmentSetProps} filters - The filters to apply on the retrieved fulfillment sets.
|
|
2333
|
-
* @param {FindConfig<FulfillmentDTO>} config - The configurations determining how the fulfillment is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
2334
|
-
* attributes or relations associated with a fulfillment.
|
|
2335
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2336
|
-
* @returns {Promise<[FulfillmentDTO[], number]>} The list of fulfillments along with their total count.
|
|
2337
|
-
*
|
|
2338
|
-
* @example
|
|
2339
|
-
* To retrieve a list of fulfillments using their IDs:
|
|
2340
|
-
*
|
|
2341
|
-
* ```ts
|
|
2342
|
-
* const [fulfillments, count] =
|
|
2343
|
-
* await fulfillmentModuleService.listAndCountFulfillments(
|
|
2344
|
-
* {
|
|
2345
|
-
* id: ["ful_123", "ful_321"],
|
|
2346
|
-
* },
|
|
2347
|
-
* {
|
|
2348
|
-
* relations: ["shipping_option"],
|
|
2349
|
-
* take: 20,
|
|
2350
|
-
* skip: 2,
|
|
2351
|
-
* }
|
|
2352
|
-
* )
|
|
2353
|
-
* ```
|
|
2354
|
-
*
|
|
2355
|
-
* To specify relations that should be retrieved within the fulfillment:
|
|
2356
|
-
*
|
|
2357
|
-
* :::note
|
|
2358
|
-
*
|
|
2359
|
-
* You can only retrieve data models defined in the same module. To retrieve linked data models
|
|
2360
|
-
* from other modules, use [Query](https://docs.acmekit.com/learn/fundamentals/module-links/query) instead.
|
|
2361
|
-
*
|
|
2362
|
-
* :::
|
|
2363
|
-
*
|
|
2364
|
-
* ```ts
|
|
2365
|
-
* const [fulfillments, count] =
|
|
2366
|
-
* await fulfillmentModuleService.listAndCountFulfillments(
|
|
2367
|
-
* {
|
|
2368
|
-
* id: ["ful_123", "ful_321"],
|
|
2369
|
-
* },
|
|
2370
|
-
* {
|
|
2371
|
-
* relations: ["shipping_option"],
|
|
2372
|
-
* }
|
|
2373
|
-
* )
|
|
2374
|
-
* ```
|
|
2375
|
-
*
|
|
2376
|
-
* By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
|
|
2377
|
-
*
|
|
2378
|
-
* ```ts
|
|
2379
|
-
* const [fulfillments, count] =
|
|
2380
|
-
* await fulfillmentModuleService.listAndCountFulfillments({
|
|
2381
|
-
* id: ["ful_123", "ful_321"],
|
|
2382
|
-
* })
|
|
2383
|
-
* ```
|
|
2384
|
-
*/
|
|
2385
|
-
listAndCountFulfillments(filters?: FilterableFulfillmentProps, config?: FindConfig<FulfillmentDTO>, sharedContext?: Context): Promise<[FulfillmentDTO[], number]>;
|
|
2386
|
-
/**
|
|
2387
|
-
* This method creates a fulfillment and call the provider to create a fulfillment.
|
|
2388
|
-
*
|
|
2389
|
-
* @param {CreateFulfillmentDTO} data - The fulfillment to be created.
|
|
2390
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2391
|
-
* @returns {Promise<FulfillmentDTO>} The created fulfillment.
|
|
2392
|
-
*
|
|
2393
|
-
* @example
|
|
2394
|
-
* const fulfillment =
|
|
2395
|
-
* await fulfillmentModuleService.createFulfillment({
|
|
2396
|
-
* location_id: "loc_123",
|
|
2397
|
-
* provider_id: "webshipper",
|
|
2398
|
-
* delivery_address: {
|
|
2399
|
-
* address_1: "4120 Auto Park Cir",
|
|
2400
|
-
* country_code: "us",
|
|
2401
|
-
* },
|
|
2402
|
-
* items: [
|
|
2403
|
-
* {
|
|
2404
|
-
* title: "Shirt",
|
|
2405
|
-
* sku: "SHIRT",
|
|
2406
|
-
* quantity: 1,
|
|
2407
|
-
* barcode: "ABCED",
|
|
2408
|
-
* },
|
|
2409
|
-
* ],
|
|
2410
|
-
* labels: [
|
|
2411
|
-
* {
|
|
2412
|
-
* tracking_number: "1234567",
|
|
2413
|
-
* tracking_url: "https://example.com/tracking",
|
|
2414
|
-
* label_url: "https://example.com/label",
|
|
2415
|
-
* },
|
|
2416
|
-
* ],
|
|
2417
|
-
* order: {},
|
|
2418
|
-
* })
|
|
2419
|
-
*/
|
|
2420
|
-
createFulfillment(data: CreateFulfillmentDTO, sharedContext?: Context): Promise<FulfillmentDTO>;
|
|
2421
|
-
/**
|
|
2422
|
-
* This method deletes fulfillment by IDs after cancelation.
|
|
2423
|
-
*
|
|
2424
|
-
* @param {string} id - The ID of the fulfillment.
|
|
2425
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2426
|
-
* @returns {Promise<void>} Resolves when the fulfillment set is deleted successfully.
|
|
2427
|
-
*
|
|
2428
|
-
* @example
|
|
2429
|
-
* await fulfillmentModuleService.deleteFulfillment("ful_123")
|
|
2430
|
-
*/
|
|
2431
|
-
deleteFulfillment(id: string, sharedContext?: Context): Promise<void>;
|
|
2432
|
-
/**
|
|
2433
|
-
* This method creates a fulfillment and call the provider to create a return.
|
|
2434
|
-
*
|
|
2435
|
-
* @param {CreateFulfillmentDTO} data - The fulfillment to be created.
|
|
2436
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2437
|
-
* @returns {Promise<FulfillmentDTO>} The created fulfillment.
|
|
2438
|
-
*
|
|
2439
|
-
* @example
|
|
2440
|
-
* const fulfillment =
|
|
2441
|
-
* await fulfillmentModuleService.createReturnFulfillment({
|
|
2442
|
-
* location_id: "loc_123",
|
|
2443
|
-
* provider_id: "webshipper",
|
|
2444
|
-
* delivery_address: {
|
|
2445
|
-
* address_1: "4120 Auto Park Cir",
|
|
2446
|
-
* country_code: "us",
|
|
2447
|
-
* },
|
|
2448
|
-
* items: [
|
|
2449
|
-
* {
|
|
2450
|
-
* title: "Shirt",
|
|
2451
|
-
* sku: "SHIRT",
|
|
2452
|
-
* quantity: 1,
|
|
2453
|
-
* barcode: "ABCED",
|
|
2454
|
-
* },
|
|
2455
|
-
* ],
|
|
2456
|
-
* labels: [
|
|
2457
|
-
* {
|
|
2458
|
-
* tracking_number: "1234567",
|
|
2459
|
-
* tracking_url: "https://example.com/tracking",
|
|
2460
|
-
* label_url: "https://example.com/label",
|
|
2461
|
-
* },
|
|
2462
|
-
* ],
|
|
2463
|
-
* order: {},
|
|
2464
|
-
* })
|
|
2465
|
-
*/
|
|
2466
|
-
createReturnFulfillment(data: CreateFulfillmentDTO, sharedContext?: Context): Promise<FulfillmentDTO>;
|
|
2467
|
-
/**
|
|
2468
|
-
* This method updates an existing fulfillment.
|
|
2469
|
-
*
|
|
2470
|
-
* @param {string} id - The ID of the fulfillment.
|
|
2471
|
-
* @param {UpdateFulfillmentDTO} data - The attributes to update in the fulfillment.
|
|
2472
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2473
|
-
* @returns {Promise<FulfillmentDTO>} The updated fulfillment.
|
|
2474
|
-
*
|
|
2475
|
-
* @example
|
|
2476
|
-
* const fulfillment =
|
|
2477
|
-
* await fulfillmentModuleService.updateFulfillment(
|
|
2478
|
-
* "ful_123",
|
|
2479
|
-
* {
|
|
2480
|
-
* location_id: "loc_123",
|
|
2481
|
-
* }
|
|
2482
|
-
* )
|
|
2483
|
-
*/
|
|
2484
|
-
updateFulfillment(id: string, data: UpdateFulfillmentDTO, sharedContext?: Context): Promise<FulfillmentDTO>;
|
|
2485
|
-
/**
|
|
2486
|
-
* This method cancels a fulfillment.
|
|
2487
|
-
*
|
|
2488
|
-
* @param {string} id - The ID of the fulfillment.
|
|
2489
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2490
|
-
* @returns {Promise<FulfillmentDTO>} cancels a fulfillment.
|
|
2491
|
-
*
|
|
2492
|
-
* @example
|
|
2493
|
-
* const fulfillment =
|
|
2494
|
-
* await fulfillmentModuleService.cancelFulfillment("ful_123")
|
|
2495
|
-
*/
|
|
2496
|
-
cancelFulfillment(id: string, sharedContext?: Context): Promise<FulfillmentDTO>;
|
|
2497
|
-
/**
|
|
2498
|
-
* This method retrieves the fulfillment options of a fulfillment provider.
|
|
2499
|
-
*
|
|
2500
|
-
* @param {string} providerId - The fulfillment provider's ID.
|
|
2501
|
-
* @returns {Promise<Record<string, unknown>[]>} The fulfillment provider's options.
|
|
2502
|
-
*
|
|
2503
|
-
* @example
|
|
2504
|
-
* const fulfillment =
|
|
2505
|
-
* await fulfillmentModuleService.retrieveFulfillmentOptions(
|
|
2506
|
-
* "ful_123"
|
|
2507
|
-
* )
|
|
2508
|
-
*/
|
|
2509
|
-
retrieveFulfillmentOptions(providerId: string): Promise<Record<string, unknown>[]>;
|
|
2510
|
-
/**
|
|
2511
|
-
* This method validates a fulfillment option with the provider it belongs to.
|
|
2512
|
-
*
|
|
2513
|
-
* @param {string} providerId - The fulfillment provider's ID.
|
|
2514
|
-
* @param {Record<string, unknown>} data - The fulfillment option to validate.
|
|
2515
|
-
* @returns {Promise<boolean>} Whether the fulfillment option is valid with the specified provider.
|
|
2516
|
-
*
|
|
2517
|
-
* @example
|
|
2518
|
-
* const isValid =
|
|
2519
|
-
* await fulfillmentModuleService.validateFulfillmentOption(
|
|
2520
|
-
* "webshipper",
|
|
2521
|
-
* {
|
|
2522
|
-
* code: "express",
|
|
2523
|
-
* }
|
|
2524
|
-
* )
|
|
2525
|
-
*/
|
|
2526
|
-
validateFulfillmentOption(providerId: string, data: Record<string, unknown>): Promise<boolean>;
|
|
2527
|
-
/**
|
|
2528
|
-
* This method validates fulfillment data with the provider it belongs to.
|
|
2529
|
-
* e.g. if the shipping option requires a drop point, the data you pass to create the
|
|
2530
|
-
* shipping method must contain a drop point ID. This method can be used to
|
|
2531
|
-
* validate that.
|
|
2532
|
-
*
|
|
2533
|
-
* @param {string} providerId - The fulfillment provider's ID.
|
|
2534
|
-
* @param {Record<string, unknown>} optionData - The fulfillment option data to validate.
|
|
2535
|
-
* @param {Record<string, unknown>} data - The fulfillment data to validate.
|
|
2536
|
-
* @param {ValidateFulfillmentDataContext} context - The context to validate the fulfillment option data in.
|
|
2537
|
-
* @returns {Promise<boolean>} Whether the fulfillment option data is valid with the specified provider.
|
|
2538
|
-
*
|
|
2539
|
-
* @example
|
|
2540
|
-
* const isValid =
|
|
2541
|
-
* await fulfillmentModuleService.validateFulfillmentData(
|
|
2542
|
-
* "webshipper",
|
|
2543
|
-
* {
|
|
2544
|
-
* requires_drop_point: true,
|
|
2545
|
-
* },
|
|
2546
|
-
* {
|
|
2547
|
-
* drop_point_id: "dp_123",
|
|
2548
|
-
* },
|
|
2549
|
-
* {}
|
|
2550
|
-
* )
|
|
2551
|
-
*/
|
|
2552
|
-
validateFulfillmentData(providerId: string, optionData: Record<string, unknown>, data: Record<string, unknown>, context: ValidateFulfillmentDataContext): Promise<Record<string, unknown>>;
|
|
2553
|
-
/**
|
|
2554
|
-
* This method checks whether a shipping option can be used for a specified context.
|
|
2555
|
-
*
|
|
2556
|
-
* @param {string} shippingOptionId - The shipping option's ID.
|
|
2557
|
-
* @param {Record<string, unknown>} context - The context to check.
|
|
2558
|
-
* @returns {Promise<boolean>} Whether the shipping option is valid for the specified context.
|
|
2559
|
-
*
|
|
2560
|
-
* @example
|
|
2561
|
-
* const isValid =
|
|
2562
|
-
* await fulfillmentModuleService.validateShippingOption(
|
|
2563
|
-
* "so_123",
|
|
2564
|
-
* {
|
|
2565
|
-
* customer_group: "cg_vipgroup",
|
|
2566
|
-
* }
|
|
2567
|
-
* )
|
|
2568
|
-
*/
|
|
2569
|
-
validateShippingOption(shippingOptionId: string, context: Record<string, unknown>): Promise<boolean>;
|
|
2570
|
-
/**
|
|
2571
|
-
* This method checks whether a shipping option can have calculated price.
|
|
2572
|
-
*
|
|
2573
|
-
* @param {FulfillmentTypes.CreateShippingOptionDTO[]} shippingOptionsData - The shipping options data to check.
|
|
2574
|
-
* @returns {Promise<boolean[]>} Whether the shipping options can have calculated price.
|
|
2575
|
-
*
|
|
2576
|
-
* @example
|
|
2577
|
-
* const isValid =
|
|
2578
|
-
* await fulfillmentModuleService.validateShippingOptionsForPriceCalculation(
|
|
2579
|
-
* [
|
|
2580
|
-
* {
|
|
2581
|
-
* provider_id: "webshipper",
|
|
2582
|
-
* price_type: "calculated",
|
|
2583
|
-
* },
|
|
2584
|
-
* ]
|
|
2585
|
-
* )
|
|
2586
|
-
*/
|
|
2587
|
-
validateShippingOptionsForPriceCalculation(shippingOptionsData: CreateShippingOptionDTO[], sharedContext?: Context): Promise<boolean[]>;
|
|
2588
|
-
/**
|
|
2589
|
-
* This method calculates the prices for one or more shipping options.
|
|
2590
|
-
*
|
|
2591
|
-
* @param {CalculateShippingOptionPriceDTO[]} shippingOptionsData - The shipping options data to calculate the prices for.
|
|
2592
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2593
|
-
* @returns {Promise<CalculatedShippingOptionPrice[]>} The calculated shipping option prices.
|
|
2594
|
-
*
|
|
2595
|
-
* @example
|
|
2596
|
-
* const prices =
|
|
2597
|
-
* await fulfillmentModuleService.calculateShippingOptionsPrices(
|
|
2598
|
-
* [
|
|
2599
|
-
* {
|
|
2600
|
-
* provider_id: "webshipper",
|
|
2601
|
-
* data: {
|
|
2602
|
-
* cart: {
|
|
2603
|
-
* id: "cart_123",
|
|
2604
|
-
* },
|
|
2605
|
-
* },
|
|
2606
|
-
* },
|
|
2607
|
-
* ]
|
|
2608
|
-
* )
|
|
2609
|
-
*/
|
|
2610
|
-
calculateShippingOptionsPrices(shippingOptionsData: CalculateShippingOptionPriceDTO[], sharedContext?: Context): Promise<CalculatedShippingOptionPrice[]>;
|
|
2611
|
-
/**
|
|
2612
|
-
* This method retrieves a paginated list of fulfillment providers based on optional filters and configuration.
|
|
2613
|
-
*
|
|
2614
|
-
* @param {FilterableFulfillmentProviderProps} filters - The filters to apply on the retrieved fulfillment providers.
|
|
2615
|
-
* @param {FindConfig<FulfillmentProviderDTO>} config - The configurations determining how the fulfillment provider is retrieved. Its properties, such as `select` or `relations`, accept the
|
|
2616
|
-
* attributes or relations associated with a fulfillment provider.
|
|
2617
|
-
* @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
|
|
2618
|
-
* @returns {Promise<FulfillmentProviderDTO[]>} The list of fulfillment providers.
|
|
2619
|
-
*
|
|
2620
|
-
* @example
|
|
2621
|
-
* To retrieve a list of fulfillment providers using their IDs:
|
|
2622
|
-
*
|
|
2623
|
-
* ```ts
|
|
2624
|
-
* const providers = await fulfillmentModuleService.listFulfillmentProviders({
|
|
2625
|
-
* id: ["sepro_123", "sepro_321"],
|
|
2626
|
-
* })
|
|
2627
|
-
* ```
|
|
2628
|
-
*
|
|
2629
|
-
*/
|
|
2630
|
-
listFulfillmentProviders(filters?: FilterableFulfillmentProviderProps, config?: FindConfig<FulfillmentProviderDTO>, sharedContext?: Context): Promise<FulfillmentProviderDTO[]>;
|
|
2631
|
-
}
|
|
2632
|
-
//# sourceMappingURL=service.d.ts.map
|