@medusajs/types 3.0.0-preview-20250211091350 → 3.0.0-preview-20250406164537
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/cache/service.d.ts +27 -0
- package/dist/cache/service.d.ts.map +1 -1
- package/dist/cart/common.d.ts +81 -0
- package/dist/cart/common.d.ts.map +1 -1
- package/dist/cart/mutations.d.ts +17 -2
- package/dist/cart/mutations.d.ts.map +1 -1
- package/dist/cart/mutations.js.map +1 -1
- package/dist/cart/service.d.ts +114 -1
- package/dist/cart/service.d.ts.map +1 -1
- package/dist/cart/workflows.d.ts +9 -0
- package/dist/cart/workflows.d.ts.map +1 -1
- package/dist/common/config-module.d.ts +5 -1
- package/dist/common/config-module.d.ts.map +1 -1
- package/dist/dal/repository-service.d.ts +2 -2
- package/dist/dal/repository-service.d.ts.map +1 -1
- package/dist/dml/index.d.ts +8 -0
- package/dist/dml/index.d.ts.map +1 -1
- package/dist/event-bus/common.d.ts +24 -0
- package/dist/event-bus/common.d.ts.map +1 -1
- package/dist/event-bus/event-bus-module.d.ts +58 -0
- package/dist/event-bus/event-bus-module.d.ts.map +1 -1
- package/dist/file/common.d.ts +3 -2
- package/dist/file/common.d.ts.map +1 -1
- package/dist/file/mutations.d.ts +5 -2
- package/dist/file/mutations.d.ts.map +1 -1
- package/dist/file/provider.d.ts +9 -3
- package/dist/file/provider.d.ts.map +1 -1
- package/dist/file/service.d.ts +10 -9
- package/dist/file/service.d.ts.map +1 -1
- package/dist/fulfillment/common/order.d.ts +2 -72
- package/dist/fulfillment/common/order.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-option.d.ts +23 -2
- package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts +1 -1
- package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
- package/dist/fulfillment/service.d.ts +3 -0
- package/dist/fulfillment/service.d.ts.map +1 -1
- package/dist/http/auth/payloads.d.ts +3 -0
- package/dist/http/auth/payloads.d.ts.map +1 -1
- package/dist/http/common/request.d.ts +2 -2
- package/dist/http/common/response.d.ts +21 -0
- package/dist/http/common/response.d.ts.map +1 -1
- package/dist/http/draft-order/admin/entities.d.ts +6 -0
- package/dist/http/draft-order/admin/entities.d.ts.map +1 -0
- package/dist/http/draft-order/admin/entities.js +3 -0
- package/dist/http/draft-order/admin/entities.js.map +1 -0
- package/dist/http/draft-order/admin/index.d.ts +5 -0
- package/dist/http/draft-order/admin/index.d.ts.map +1 -0
- package/dist/http/draft-order/admin/index.js +21 -0
- package/dist/http/draft-order/admin/index.js.map +1 -0
- package/dist/http/draft-order/admin/payloads.d.ts +243 -0
- package/dist/http/draft-order/admin/payloads.d.ts.map +1 -0
- package/dist/http/draft-order/admin/payloads.js +3 -0
- package/dist/http/draft-order/admin/payloads.js.map +1 -0
- package/dist/http/draft-order/admin/queries.d.ts +35 -0
- package/dist/http/draft-order/admin/queries.d.ts.map +1 -0
- package/dist/http/draft-order/admin/queries.js +3 -0
- package/dist/http/draft-order/admin/queries.js.map +1 -0
- package/dist/http/draft-order/admin/responses.d.ts +13 -0
- package/dist/http/draft-order/admin/responses.d.ts.map +1 -0
- package/dist/http/draft-order/admin/responses.js +3 -0
- package/dist/http/draft-order/admin/responses.js.map +1 -0
- package/dist/http/draft-order/index.d.ts +2 -0
- package/dist/http/draft-order/index.d.ts.map +1 -0
- package/dist/http/draft-order/index.js +18 -0
- package/dist/http/draft-order/index.js.map +1 -0
- package/dist/http/file/admin/responses.d.ts +6 -0
- package/dist/http/file/admin/responses.d.ts.map +1 -1
- package/dist/http/file/common.d.ts +17 -0
- package/dist/http/file/common.d.ts.map +1 -1
- package/dist/http/fulfillment/store/index.d.ts +4 -0
- package/dist/http/fulfillment/store/index.d.ts.map +1 -1
- package/dist/http/fulfillment-provider/admin/responses.d.ts +3 -0
- package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -1
- package/dist/http/index.d.ts +2 -0
- package/dist/http/index.d.ts.map +1 -1
- package/dist/http/index.js +2 -0
- package/dist/http/index.js.map +1 -1
- package/dist/http/inventory-level/admin/payloads.d.ts +0 -16
- package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -1
- package/dist/http/order/admin/entities.d.ts +10 -1
- package/dist/http/order/admin/entities.d.ts.map +1 -1
- package/dist/http/order/admin/queries.d.ts +0 -9
- package/dist/http/order/admin/queries.d.ts.map +1 -1
- package/dist/http/order/admin/responses.d.ts +0 -6
- package/dist/http/order/admin/responses.d.ts.map +1 -1
- package/dist/http/order/common.d.ts +6 -39
- package/dist/http/order/common.d.ts.map +1 -1
- package/dist/http/payment/admin/queries.d.ts +6 -0
- package/dist/http/payment/admin/queries.d.ts.map +1 -1
- package/dist/http/payment/admin/responses.d.ts +3 -0
- package/dist/http/payment/admin/responses.d.ts.map +1 -1
- package/dist/http/plugins/admin/responses.d.ts +10 -0
- package/dist/http/plugins/admin/responses.d.ts.map +1 -0
- package/dist/http/plugins/admin/responses.js +3 -0
- package/dist/http/plugins/admin/responses.js.map +1 -0
- package/dist/http/plugins/index.d.ts +2 -0
- package/dist/http/plugins/index.d.ts.map +1 -0
- package/dist/http/plugins/index.js +18 -0
- package/dist/http/plugins/index.js.map +1 -0
- package/dist/http/pricing/common.d.ts +8 -0
- package/dist/http/pricing/common.d.ts.map +1 -1
- package/dist/http/product/admin/payloads.d.ts +2 -2
- package/dist/http/product/admin/payloads.d.ts.map +1 -1
- package/dist/http/promotion/admin/entities.d.ts +20 -0
- package/dist/http/promotion/admin/entities.d.ts.map +1 -1
- package/dist/http/promotion/admin/payloads.d.ts +156 -0
- package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
- package/dist/http/promotion/admin/queries.d.ts +45 -1
- package/dist/http/promotion/admin/queries.d.ts.map +1 -1
- package/dist/http/promotion/admin/responses.d.ts +17 -2
- package/dist/http/promotion/admin/responses.d.ts.map +1 -1
- package/dist/http/promotion/common.d.ts +53 -0
- package/dist/http/promotion/common.d.ts.map +1 -1
- package/dist/http/region/admin/entities.d.ts +3 -0
- package/dist/http/region/admin/entities.d.ts.map +1 -1
- package/dist/http/region/admin/payloads.d.ts +68 -0
- package/dist/http/region/admin/payloads.d.ts.map +1 -1
- package/dist/http/region/admin/queries.d.ts +21 -0
- package/dist/http/region/admin/queries.d.ts.map +1 -1
- package/dist/http/region/admin/responses.d.ts +6 -0
- package/dist/http/region/admin/responses.d.ts.map +1 -1
- package/dist/http/reservation/admin/entities.d.ts +39 -0
- package/dist/http/reservation/admin/entities.d.ts.map +1 -1
- package/dist/http/reservation/admin/payloads.d.ts +32 -0
- package/dist/http/reservation/admin/payloads.d.ts.map +1 -1
- package/dist/http/reservation/admin/queries.d.ts +34 -0
- package/dist/http/reservation/admin/queries.d.ts.map +1 -1
- package/dist/http/reservation/admin/responses.d.ts +6 -0
- package/dist/http/reservation/admin/responses.d.ts.map +1 -1
- package/dist/http/return/admin/entities.d.ts +3 -0
- package/dist/http/return/admin/entities.d.ts.map +1 -1
- package/dist/http/return/admin/payloads.d.ts +154 -0
- package/dist/http/return/admin/payloads.d.ts.map +1 -1
- package/dist/http/return/admin/queries.d.ts +15 -0
- package/dist/http/return/admin/queries.d.ts.map +1 -1
- package/dist/http/return/admin/responses.d.ts +6 -0
- package/dist/http/return/admin/responses.d.ts.map +1 -1
- package/dist/http/return/common.d.ts +73 -0
- package/dist/http/return/common.d.ts.map +1 -1
- package/dist/http/return-reason/admin/payloads.d.ts +21 -0
- package/dist/http/return-reason/admin/payloads.d.ts.map +1 -1
- package/dist/http/return-reason/admin/queries.d.ts +3 -0
- package/dist/http/return-reason/admin/queries.d.ts.map +1 -1
- package/dist/http/return-reason/admin/responses.d.ts +6 -0
- package/dist/http/return-reason/admin/responses.d.ts.map +1 -1
- package/dist/http/return-reason/common.d.ts +27 -0
- package/dist/http/return-reason/common.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/entities.d.ts +24 -0
- package/dist/http/sales-channel/admin/entities.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/payloads.d.ts +32 -0
- package/dist/http/sales-channel/admin/payloads.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/queries.d.ts +32 -0
- package/dist/http/sales-channel/admin/queries.d.ts.map +1 -1
- package/dist/http/sales-channel/admin/responses.d.ts +6 -0
- package/dist/http/sales-channel/admin/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/entities.d.ts +187 -0
- package/dist/http/shipping-option/admin/entities.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/payloads.d.ts +181 -0
- package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/queries.d.ts +36 -0
- package/dist/http/shipping-option/admin/queries.d.ts.map +1 -1
- package/dist/http/shipping-option/admin/responses.d.ts +6 -0
- package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
- package/dist/http/shipping-option/store/payloads.d.ts +12 -0
- package/dist/http/shipping-option/store/payloads.d.ts.map +1 -1
- package/dist/http/shipping-option/store/responses.d.ts +12 -0
- package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/entities.d.ts +21 -0
- package/dist/http/shipping-profile/admin/entities.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/payloads.d.ts +18 -0
- package/dist/http/shipping-profile/admin/payloads.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/queries.d.ts +27 -0
- package/dist/http/shipping-profile/admin/queries.d.ts.map +1 -1
- package/dist/http/shipping-profile/admin/responses.d.ts +6 -0
- package/dist/http/shipping-profile/admin/responses.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/entities.d.ts +21 -0
- package/dist/http/stock-locations/admin/entities.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/payloads.d.ts +69 -0
- package/dist/http/stock-locations/admin/payloads.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/queries.d.ts +24 -2
- package/dist/http/stock-locations/admin/queries.d.ts.map +1 -1
- package/dist/http/stock-locations/admin/responses.d.ts +6 -0
- package/dist/http/stock-locations/admin/responses.d.ts.map +1 -1
- package/dist/http/store/admin/entities.d.ts +54 -0
- package/dist/http/store/admin/entities.d.ts.map +1 -1
- package/dist/http/store/admin/queries.d.ts +9 -0
- package/dist/http/store/admin/queries.d.ts.map +1 -1
- package/dist/http/store/admin/responses.d.ts +6 -0
- package/dist/http/store/admin/responses.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/entities.d.ts +54 -0
- package/dist/http/tax-rate/admin/entities.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/payloads.d.ts +57 -0
- package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/queries.d.ts +30 -0
- package/dist/http/tax-rate/admin/queries.d.ts.map +1 -1
- package/dist/http/tax-rate/admin/responses.d.ts +6 -0
- package/dist/http/tax-rate/admin/responses.d.ts.map +1 -1
- package/dist/http/tax-region/admin/entities.d.ts +42 -0
- package/dist/http/tax-region/admin/entities.d.ts.map +1 -1
- package/dist/http/tax-region/admin/payloads.d.ts +30 -0
- package/dist/http/tax-region/admin/payloads.d.ts.map +1 -1
- package/dist/http/tax-region/admin/queries.d.ts +28 -0
- package/dist/http/tax-region/admin/queries.d.ts.map +1 -1
- package/dist/http/tax-region/admin/responses.d.ts +6 -0
- package/dist/http/tax-region/admin/responses.d.ts.map +1 -1
- package/dist/http/user/admin/entities.d.ts +27 -0
- package/dist/http/user/admin/entities.d.ts.map +1 -1
- package/dist/http/user/admin/payloads.d.ts +12 -0
- package/dist/http/user/admin/payloads.d.ts.map +1 -1
- package/dist/http/user/admin/queries.d.ts +24 -0
- package/dist/http/user/admin/queries.d.ts.map +1 -1
- package/dist/http/user/admin/responses.d.ts +6 -0
- package/dist/http/user/admin/responses.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/entities.d.ts +136 -2
- package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/queries.d.ts +6 -0
- package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
- package/dist/http/workflow-execution/admin/responses.d.ts +6 -0
- package/dist/http/workflow-execution/admin/responses.d.ts.map +1 -1
- package/dist/index-data/query-config/query-input-config.d.ts +1 -1
- package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
- package/dist/locking/index.d.ts +466 -0
- package/dist/locking/index.d.ts.map +1 -1
- package/dist/modules-sdk/index.d.ts +6 -1
- package/dist/modules-sdk/index.d.ts.map +1 -1
- package/dist/modules-sdk/medusa-internal-service.d.ts +5 -5
- package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query-object-from-string.d.ts +4 -0
- package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
- package/dist/modules-sdk/remote-query.d.ts +16 -0
- package/dist/modules-sdk/remote-query.d.ts.map +1 -1
- package/dist/notification/mutations.d.ts +5 -4
- package/dist/notification/mutations.d.ts.map +1 -1
- package/dist/notification/service.d.ts +2 -5
- package/dist/notification/service.d.ts.map +1 -1
- package/dist/order/common.d.ts +45 -79
- package/dist/order/common.d.ts.map +1 -1
- package/dist/order/mutations.d.ts +38 -1
- package/dist/order/mutations.d.ts.map +1 -1
- package/dist/order/service.d.ts +101 -3
- package/dist/order/service.d.ts.map +1 -1
- package/dist/payment/common.d.ts +9 -1
- package/dist/payment/common.d.ts.map +1 -1
- package/dist/payment/mutations.d.ts +24 -1
- package/dist/payment/mutations.d.ts.map +1 -1
- package/dist/payment/provider.d.ts +121 -85
- package/dist/payment/provider.d.ts.map +1 -1
- package/dist/payment/service.d.ts +89 -10
- package/dist/payment/service.d.ts.map +1 -1
- package/dist/product/common.d.ts +11 -6
- package/dist/product/common.d.ts.map +1 -1
- package/dist/tax/provider.d.ts +9 -37
- package/dist/tax/provider.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/workflow/order/items.d.ts +5 -1
- package/dist/workflow/order/items.d.ts.map +1 -1
- package/dist/workflow/product-category/index.d.ts +5 -4
- package/dist/workflow/product-category/index.d.ts.map +1 -1
- package/dist/workflows/products/mutations.d.ts +2 -2
- package/dist/workflows/products/mutations.d.ts.map +1 -1
- package/dist/workflows-sdk/service.d.ts +12 -8
- package/dist/workflows-sdk/service.d.ts.map +1 -1
- package/package.json +3 -3
@@ -2,6 +2,9 @@ import { BaseFilterable, OperatorMap } from "../../../dal";
|
|
2
2
|
import { SelectParams } from "../../common";
|
3
3
|
import { BaseReturnReasonListParams } from "../common";
|
4
4
|
export interface AdminReturnReasonListParams extends BaseReturnReasonListParams, BaseFilterable<AdminReturnReasonListParams> {
|
5
|
+
/**
|
6
|
+
* Apply filters on the return reason's deletion date.
|
7
|
+
*/
|
5
8
|
deleted_at?: OperatorMap<string>;
|
6
9
|
}
|
7
10
|
export interface AdminReturnReasonParams extends SelectParams {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AAEtD,MAAM,WAAW,2BACf,SAAQ,0BAA0B,EAChC,cAAc,CAAC,2BAA2B,CAAC;IAC7C,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,uBAAwB,SAAQ,YAAY;CAAG"}
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAA;AAEtD,MAAM,WAAW,2BACf,SAAQ,0BAA0B,EAChC,cAAc,CAAC,2BAA2B,CAAC;IAC7C;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC;AAED,MAAM,WAAW,uBAAwB,SAAQ,YAAY;CAAG"}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { DeleteResponse, PaginatedResponse } from "../../common";
|
2
2
|
import { AdminReturnReason } from "../admin";
|
3
3
|
export interface AdminReturnReasonResponse {
|
4
|
+
/**
|
5
|
+
* The return reason's details.
|
6
|
+
*/
|
4
7
|
return_reason: AdminReturnReason;
|
5
8
|
}
|
6
9
|
export interface AdminReturnReasonListResponse extends PaginatedResponse<{
|
10
|
+
/**
|
11
|
+
* The list of return reasons.
|
12
|
+
*/
|
7
13
|
return_reasons: AdminReturnReason[];
|
8
14
|
}> {
|
9
15
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,WAAW,6BACf,SAAQ,iBAAiB,CAAC;IACxB,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC;CAAG;AAEP,MAAM,WAAW,+BACf,SAAQ,cAAc,CAAC,eAAe,CAAC;CAAG"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/return-reason/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,WAAW,6BACf,SAAQ,iBAAiB,CAAC;IACxB;;OAEG;IACH,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC;CAAG;AAEP,MAAM,WAAW,+BACf,SAAQ,cAAc,CAAC,eAAe,CAAC;CAAG"}
|
@@ -1,12 +1,39 @@
|
|
1
1
|
import { OperatorMap } from "../../dal";
|
2
2
|
import { FindParams } from "../common";
|
3
3
|
export interface BaseReturnReason {
|
4
|
+
/**
|
5
|
+
* The return reason's ID.
|
6
|
+
*/
|
4
7
|
id: string;
|
8
|
+
/**
|
9
|
+
* The return reason's value.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* "refund"
|
13
|
+
*/
|
5
14
|
value: string;
|
15
|
+
/**
|
16
|
+
* The return reason's label.
|
17
|
+
*
|
18
|
+
* @example
|
19
|
+
* "Refund"
|
20
|
+
*/
|
6
21
|
label: string;
|
22
|
+
/**
|
23
|
+
* The return reason's description.
|
24
|
+
*/
|
7
25
|
description?: string | null;
|
26
|
+
/**
|
27
|
+
* Custom key-value pairs that can be added to the return reason.
|
28
|
+
*/
|
8
29
|
metadata?: Record<string, any> | null;
|
30
|
+
/**
|
31
|
+
* The date that the return reason was created.
|
32
|
+
*/
|
9
33
|
created_at: string;
|
34
|
+
/**
|
35
|
+
* The date that the return reason was updated.
|
36
|
+
*/
|
10
37
|
updated_at: string;
|
11
38
|
}
|
12
39
|
export interface BaseReturnReasonListParams extends FindParams {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/http/return-reason/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KA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AA;IACrC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,MAAM,WAAW,0BAA2B,SAAQ,UAAU;IAC5D,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC1C,uBAAuB,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;IACjE,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;IAChC,UAAU,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA;CACjC"}
|
@@ -1,11 +1,35 @@
|
|
1
1
|
export interface AdminSalesChannel {
|
2
|
+
/**
|
3
|
+
* The sales channel's ID.
|
4
|
+
*/
|
2
5
|
id: string;
|
6
|
+
/**
|
7
|
+
* The sales channel's name.
|
8
|
+
*/
|
3
9
|
name: string;
|
10
|
+
/**
|
11
|
+
* The sales channel's description.
|
12
|
+
*/
|
4
13
|
description: string | null;
|
14
|
+
/**
|
15
|
+
* Whether the sales channel is disabled.
|
16
|
+
*/
|
5
17
|
is_disabled: boolean;
|
18
|
+
/**
|
19
|
+
* Custom key-value pairs that can be added to the sales channel.
|
20
|
+
*/
|
6
21
|
metadata: Record<string, unknown> | null;
|
22
|
+
/**
|
23
|
+
* The sales channel's creation date.
|
24
|
+
*/
|
7
25
|
created_at: string;
|
26
|
+
/**
|
27
|
+
* The sales channel's last updated date.
|
28
|
+
*/
|
8
29
|
updated_at: string;
|
30
|
+
/**
|
31
|
+
* The sales channel's deletion date.
|
32
|
+
*/
|
9
33
|
deleted_at: string | null;
|
10
34
|
}
|
11
35
|
//# sourceMappingURL=entities.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,WAAW,EAAE,OAAO,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/entities.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B;;OAEG;IACH,WAAW,EAAE,OAAO,CAAA;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;IACxC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
|
@@ -1,17 +1,49 @@
|
|
1
1
|
export interface AdminCreateSalesChannel {
|
2
|
+
/**
|
3
|
+
* The sales channel's name.
|
4
|
+
*/
|
2
5
|
name: string;
|
6
|
+
/**
|
7
|
+
* The sales channel's description.
|
8
|
+
*/
|
3
9
|
description?: string;
|
10
|
+
/**
|
11
|
+
* Whether the sales channel is disabled.
|
12
|
+
*
|
13
|
+
* @defaultValue `false`
|
14
|
+
*/
|
4
15
|
is_disabled?: boolean;
|
16
|
+
/**
|
17
|
+
* Custom key-value pairs that can be added to the sales channel.
|
18
|
+
*/
|
5
19
|
metadata?: Record<string, unknown>;
|
6
20
|
}
|
7
21
|
export interface AdminUpdateSalesChannel {
|
22
|
+
/**
|
23
|
+
* The sales channel's name.
|
24
|
+
*/
|
8
25
|
name?: string;
|
26
|
+
/**
|
27
|
+
* The sales channel's description.
|
28
|
+
*/
|
9
29
|
description?: string | null;
|
30
|
+
/**
|
31
|
+
* Whether the sales channel is disabled.
|
32
|
+
*/
|
10
33
|
is_disabled?: boolean;
|
34
|
+
/**
|
35
|
+
* Custom key-value pairs that can be added to the sales channel.
|
36
|
+
*/
|
11
37
|
metadata?: Record<string, unknown>;
|
12
38
|
}
|
13
39
|
export interface AdminUpdateSalesChannelProducts {
|
40
|
+
/**
|
41
|
+
* The IDs of the products to add to the sales channel.
|
42
|
+
*/
|
14
43
|
add?: string[];
|
44
|
+
/**
|
45
|
+
* The IDs of the products to remove from the sales channel.
|
46
|
+
*/
|
15
47
|
remove?: string[];
|
16
48
|
}
|
17
49
|
//# sourceMappingURL=payloads.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,+BAA+B;IAC9C,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
1
|
+
{"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/payloads.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC;AAED,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;IACd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB"}
|
@@ -1,15 +1,47 @@
|
|
1
1
|
import { BaseFilterable, OperatorMap } from "../../../dal";
|
2
2
|
import { FindParams } from "../../common";
|
3
3
|
export interface AdminSalesChannelListParams extends FindParams, BaseFilterable<AdminSalesChannelListParams> {
|
4
|
+
/**
|
5
|
+
* Filter by sales channel ID(s).
|
6
|
+
*/
|
4
7
|
id?: string | string[];
|
8
|
+
/**
|
9
|
+
* Query or keywords to search the sales channel's searchable fields.
|
10
|
+
*/
|
5
11
|
q?: string;
|
12
|
+
/**
|
13
|
+
* Filter by sales channel name.
|
14
|
+
*/
|
6
15
|
name?: string | string[];
|
16
|
+
/**
|
17
|
+
* Filter by sales channel description.
|
18
|
+
*/
|
7
19
|
description?: string;
|
20
|
+
/**
|
21
|
+
* Filter by whether the sales channel is disabled.
|
22
|
+
*/
|
8
23
|
is_disabled?: boolean;
|
24
|
+
/**
|
25
|
+
* Filter by the ID(s) of the location(s) to retrieve the
|
26
|
+
* sales channels for.
|
27
|
+
*/
|
9
28
|
location_id?: string | string[];
|
29
|
+
/**
|
30
|
+
* Filter by the ID(s) of the publishable key(s) to retrieve the
|
31
|
+
* sales channels for.
|
32
|
+
*/
|
10
33
|
publishable_key_id?: string | string[];
|
34
|
+
/**
|
35
|
+
* Filter by the date when the sales channel was created.
|
36
|
+
*/
|
11
37
|
created_at?: OperatorMap<string>;
|
38
|
+
/**
|
39
|
+
* Filter by the date when the sales channel was updated.
|
40
|
+
*/
|
12
41
|
updated_at?: OperatorMap<string>;
|
42
|
+
/**
|
43
|
+
* Filter by the date when the sales channel was deleted.
|
44
|
+
*/
|
13
45
|
deleted_at?: OperatorMap<string>;
|
14
46
|
}
|
15
47
|
//# sourceMappingURL=queries.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,MAAM,WAAW,2BACf,SAAQ,UAAU,EAChB,cAAc,CAAC,2BAA2B,CAAC;IAC7C,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACtB,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CA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AC,CAAA;CACjC"}
|
@@ -1,9 +1,15 @@
|
|
1
1
|
import { DeleteResponse, PaginatedResponse } from "../../common";
|
2
2
|
import { AdminSalesChannel } from "./entities";
|
3
3
|
export interface AdminSalesChannelResponse {
|
4
|
+
/**
|
5
|
+
* The sales channel's details.
|
6
|
+
*/
|
4
7
|
sales_channel: AdminSalesChannel;
|
5
8
|
}
|
6
9
|
export type AdminSalesChannelListResponse = PaginatedResponse<{
|
10
|
+
/**
|
11
|
+
* The list of sales channels.
|
12
|
+
*/
|
7
13
|
sales_channels: AdminSalesChannel[];
|
8
14
|
}>;
|
9
15
|
export interface AdminSalesChannelDeleteResponse extends DeleteResponse<"sales-channel"> {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,WAAW,yBAAyB;IACxC,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;IAC5D,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC,CAAA;AAEF,MAAM,WAAW,+BACf,SAAQ,cAAc,CAAC,eAAe,CAAC;CAAG"}
|
1
|
+
{"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/sales-channel/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAE9C,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAA;CACjC;AAED,MAAM,MAAM,6BAA6B,GAAG,iBAAiB,CAAC;IAC5D;;OAEG;IACH,cAAc,EAAE,iBAAiB,EAAE,CAAA;CACpC,CAAC,CAAA;AAEF,MAAM,WAAW,+BACf,SAAQ,cAAc,CAAC,eAAe,CAAC;CAAG"}
|
@@ -5,58 +5,245 @@ import { AdminServiceZone } from "../../fulfillment-set";
|
|
5
5
|
import { AdminPrice } from "../../pricing";
|
6
6
|
import { AdminShippingProfile } from "../../shipping-profile";
|
7
7
|
export interface AdminShippingOptionType {
|
8
|
+
/**
|
9
|
+
* The ID of the shipping option type.
|
10
|
+
*/
|
8
11
|
id: string;
|
12
|
+
/**
|
13
|
+
* The label of the shipping option type.
|
14
|
+
*/
|
9
15
|
label: string;
|
16
|
+
/**
|
17
|
+
* The description of the shipping option type.
|
18
|
+
*/
|
10
19
|
description: string;
|
20
|
+
/**
|
21
|
+
* The code of the shipping option type.
|
22
|
+
*/
|
11
23
|
code: string;
|
24
|
+
/**
|
25
|
+
* The ID of the shipping option that this type is created for.
|
26
|
+
*/
|
12
27
|
shipping_option_id: string;
|
28
|
+
/**
|
29
|
+
* The date when the shipping option type was created.
|
30
|
+
*/
|
13
31
|
created_at: string;
|
32
|
+
/**
|
33
|
+
* The date when the shipping option type was updated.
|
34
|
+
*/
|
14
35
|
updated_at: string;
|
36
|
+
/**
|
37
|
+
* The date when the shipping option type was deleted.
|
38
|
+
*/
|
15
39
|
deleted_at: string | null;
|
16
40
|
}
|
17
41
|
export interface AdminShippingOptionRule {
|
42
|
+
/**
|
43
|
+
* The ID of the shipping option rule.
|
44
|
+
*/
|
18
45
|
id: string;
|
46
|
+
/**
|
47
|
+
* The attribute of the shipping option rule.
|
48
|
+
*
|
49
|
+
* @example
|
50
|
+
* "enabled_in_store"
|
51
|
+
*/
|
19
52
|
attribute: string;
|
53
|
+
/**
|
54
|
+
* The operator of the shipping option rule.
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* "eq"
|
58
|
+
*/
|
20
59
|
operator: RuleOperatorType;
|
60
|
+
/**
|
61
|
+
* The value of the shipping option rule.
|
62
|
+
*
|
63
|
+
* @example
|
64
|
+
* "true"
|
65
|
+
*/
|
21
66
|
value: string | string[] | null;
|
67
|
+
/**
|
68
|
+
* The ID of the shipping option that this rule is created for.
|
69
|
+
*/
|
22
70
|
shipping_option_id: string;
|
71
|
+
/**
|
72
|
+
* The date when the shipping option rule was created.
|
73
|
+
*/
|
23
74
|
created_at: string;
|
75
|
+
/**
|
76
|
+
* The date when the shipping option rule was updated.
|
77
|
+
*/
|
24
78
|
updated_at: string;
|
79
|
+
/**
|
80
|
+
* The date when the shipping option rule was deleted.
|
81
|
+
*/
|
25
82
|
deleted_at: string | null;
|
26
83
|
}
|
84
|
+
/**
|
85
|
+
* @privateRemarks
|
86
|
+
*
|
87
|
+
* TODO: This type is complete, but it's not clear what the `rules` field is supposed to return in all cases.
|
88
|
+
*/
|
27
89
|
export interface AdminShippingOptionPriceRule {
|
90
|
+
/**
|
91
|
+
* The ID of the shipping option price rule.
|
92
|
+
*/
|
28
93
|
id: string;
|
94
|
+
/**
|
95
|
+
* The value of the shipping option price rule.
|
96
|
+
*
|
97
|
+
* @example
|
98
|
+
* "region_123"
|
99
|
+
*/
|
29
100
|
value: string | number;
|
101
|
+
/**
|
102
|
+
* The operator of the shipping option price rule.
|
103
|
+
*
|
104
|
+
* @example
|
105
|
+
* "eq"
|
106
|
+
*/
|
30
107
|
operator: RuleOperatorType;
|
108
|
+
/**
|
109
|
+
* The attribute of the shipping option price rule.
|
110
|
+
*
|
111
|
+
* @example
|
112
|
+
* "region_id"
|
113
|
+
*/
|
31
114
|
attribute: string;
|
115
|
+
/**
|
116
|
+
* The ID of the shipping option price that this rule is created for.
|
117
|
+
*/
|
32
118
|
price_id: string;
|
119
|
+
/**
|
120
|
+
* The priority of the shipping option price rule.
|
121
|
+
*/
|
33
122
|
priority: number;
|
123
|
+
/**
|
124
|
+
* The date when the shipping option price rule was created.
|
125
|
+
*/
|
34
126
|
created_at: string;
|
127
|
+
/**
|
128
|
+
* The date when the shipping option price rule was updated.
|
129
|
+
*/
|
35
130
|
updated_at: string;
|
131
|
+
/**
|
132
|
+
* The date when the shipping option price rule was deleted.
|
133
|
+
*/
|
36
134
|
deleted_at: string | null;
|
37
135
|
}
|
38
136
|
export interface AdminShippingOptionPrice extends AdminPrice {
|
137
|
+
/**
|
138
|
+
* The rules of the shipping option price.
|
139
|
+
*/
|
39
140
|
price_rules: AdminShippingOptionPriceRule[];
|
141
|
+
/**
|
142
|
+
* The number of rules of the shipping option price.
|
143
|
+
*/
|
40
144
|
rules_count: number;
|
41
145
|
}
|
42
146
|
export interface AdminShippingOption {
|
147
|
+
/**
|
148
|
+
* The shipping option's ID.
|
149
|
+
*/
|
43
150
|
id: string;
|
151
|
+
/**
|
152
|
+
* The shipping option's name. Customers can
|
153
|
+
* see this name during checkout.
|
154
|
+
*
|
155
|
+
* @example
|
156
|
+
* "Standard Shipping"
|
157
|
+
*/
|
44
158
|
name: string;
|
159
|
+
/**
|
160
|
+
* The type of shipping option's price.
|
161
|
+
*/
|
45
162
|
price_type: ShippingOptionPriceType;
|
163
|
+
/**
|
164
|
+
* The ID of the service zone that the shipping option belongs to.
|
165
|
+
*
|
166
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#service-zone-restrictions)
|
167
|
+
* documentation.
|
168
|
+
*/
|
46
169
|
service_zone_id: string;
|
170
|
+
/**
|
171
|
+
* The service zone that the shipping option belongs to.
|
172
|
+
*
|
173
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#service-zone-restrictions)
|
174
|
+
* documentation.
|
175
|
+
*/
|
47
176
|
service_zone: AdminServiceZone;
|
177
|
+
/**
|
178
|
+
* The ID of the fulfillment provider that the shipping option belongs to.
|
179
|
+
*/
|
48
180
|
provider_id: string;
|
181
|
+
/**
|
182
|
+
* The fulfillment provider that the shipping option belongs to.
|
183
|
+
*/
|
49
184
|
provider: AdminFulfillmentProvider;
|
185
|
+
/**
|
186
|
+
* The ID of the shipping option's type.
|
187
|
+
*
|
188
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
189
|
+
* documentation.
|
190
|
+
*/
|
50
191
|
shipping_option_type_id: string | null;
|
192
|
+
/**
|
193
|
+
* The shipping option's type.
|
194
|
+
*
|
195
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
196
|
+
* documentation.
|
197
|
+
*/
|
51
198
|
type: AdminShippingOptionType;
|
199
|
+
/**
|
200
|
+
* The ID of the shipping profile that the shipping option belongs to.
|
201
|
+
*
|
202
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
203
|
+
* documentation.
|
204
|
+
*/
|
52
205
|
shipping_profile_id: string;
|
206
|
+
/**
|
207
|
+
* The shipping profile that the shipping option belongs to.
|
208
|
+
*
|
209
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-profile-and-types)
|
210
|
+
* documentation.
|
211
|
+
*/
|
53
212
|
shipping_profile: AdminShippingProfile;
|
213
|
+
/**
|
214
|
+
* The rules of the shipping option.
|
215
|
+
*
|
216
|
+
* Learn more in the [Shipping Option Rules](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#shipping-option-rules)
|
217
|
+
* documentation.
|
218
|
+
*/
|
54
219
|
rules: AdminShippingOptionRule[];
|
220
|
+
/**
|
221
|
+
* The prices of the shipping option.
|
222
|
+
*/
|
55
223
|
prices: AdminShippingOptionPrice[];
|
224
|
+
/**
|
225
|
+
* Additional data that is useful for third-party fulfillment providers
|
226
|
+
* that process fulfillments for the shipping option.
|
227
|
+
*
|
228
|
+
* Learn more in the [Shipping Options](https://docs.medusajs.com/resources/commerce-modules/fulfillment/shipping-option#data-property)
|
229
|
+
* documentation.
|
230
|
+
*/
|
56
231
|
data: Record<string, unknown> | null;
|
232
|
+
/**
|
233
|
+
* Custom key-value pairs that can be added to the shipping option.
|
234
|
+
*/
|
57
235
|
metadata: Record<string, unknown> | null;
|
236
|
+
/**
|
237
|
+
* The date when the shipping option was created.
|
238
|
+
*/
|
58
239
|
created_at: Date;
|
240
|
+
/**
|
241
|
+
* The date when the shipping option was updated.
|
242
|
+
*/
|
59
243
|
updated_at: Date;
|
244
|
+
/**
|
245
|
+
* The date when the shipping option was deleted.
|
246
|
+
*/
|
60
247
|
deleted_at: Date | null;
|
61
248
|
}
|
62
249
|
//# sourceMappingURL=entities.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,gBAAgB,CAAA;IAC1B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B,kBAAkB,EAAE,MAAM,CAAA;IAC1B,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;
|
1
|
+
{"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/shipping-option/admin/entities.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAA;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAE7D,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAA;IAC1B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IACV;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;OAKG;IACH,QAAQ,EAAE,gBAAgB,CAAA;IAC1B;;;;;OAKG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,IAAI,CAAA;IAC/B;;OAEG;IACH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