Files
medusa-store/docs/content/references/js-client/classes/AdminSalesChannelsResource.md
Shahed Nasser 02d5c1da88 docs: update Typedoc and regenerate references (#1994)
* generated new services reference

* changed from automatic push to automated pull request

* updated typedoc, regenerated JS Client reference

* regenerated the reference after updating typedoc

* added action for js client
2022-08-04 17:29:52 +03:00

6.8 KiB

Class: AdminSalesChannelsResource

Hierarchy

  • default

    AdminSalesChannelsResource

Methods

addProducts

addProducts(salesChannelId, payload, customHeaders?): ResponsePromise<AdminSalesChannelsRes>

Add products to a sales channel This feature is under development and may change in the future. To use this feature please enable featureflag sales_channels in your medusa backend project.

Description

Add products to a sales channel

Parameters

Name Type
salesChannelId string
payload AdminPostSalesChannelsChannelProductsBatchReq
customHeaders Record<string, any>

Returns

ResponsePromise<AdminSalesChannelsRes>

a medusa sales channel

Defined in

medusa-js/src/resources/admin/sales-channels.ts:116


create

create(payload, customHeaders?): ResponsePromise<AdminSalesChannelsRes>

Parameters

Name Type
payload AdminPostSalesChannelsReq
customHeaders Record<string, any>

Returns

ResponsePromise<AdminSalesChannelsRes>

Defined in

medusa-js/src/resources/admin/sales-channels.ts:34


delete

delete(salesChannelId, customHeaders?): ResponsePromise<DeleteResponse>

Delete a sales channel This feature is under development and may change in the future. To use this feature please enable featureflag sales_channels in your medusa backend project.

Description

gets a sales channel

Parameters

Name Type
salesChannelId string
customHeaders Record<string, any>

Returns

ResponsePromise<DeleteResponse>

an deletion result

Defined in

medusa-js/src/resources/admin/sales-channels.ts:85


list

list(query?, customHeaders?): ResponsePromise<AdminSalesChannelsListRes>

Retrieve a list of sales channels This feature is under development and may change in the future. To use this feature please enable featureflag sales_channels in your medusa backend project.

Description

Retrieve a list of sales channels

Parameters

Name Type
query? AdminGetSalesChannelsParams
customHeaders Record<string, any>

Returns

ResponsePromise<AdminSalesChannelsListRes>

the list of sales channel as well as the pagination properties

Defined in

medusa-js/src/resources/admin/sales-channels.ts:64


removeProducts

removeProducts(salesChannelId, payload, customHeaders?): ResponsePromise<AdminSalesChannelsRes>

Remove products from a sales channel This feature is under development and may change in the future. To use this feature please enable featureflag sales_channels in your medusa backend project.

Description

Remove products from a sales channel

Parameters

Name Type
salesChannelId string
payload AdminDeleteSalesChannelsChannelProductsBatchReq
customHeaders Record<string, any>

Returns

ResponsePromise<AdminSalesChannelsRes>

a medusa sales channel

Defined in

medusa-js/src/resources/admin/sales-channels.ts:100


retrieve

retrieve(salesChannelId, customHeaders?): ResponsePromise<AdminSalesChannelsRes>

retrieve a sales channel This feature is under development and may change in the future. To use this feature please enable featureflag sales_channels in your medusa backend project.

Description

gets a sales channel

Parameters

Name Type
salesChannelId string
customHeaders Record<string, any>

Returns

ResponsePromise<AdminSalesChannelsRes>

a medusa sales channel

Defined in

medusa-js/src/resources/admin/sales-channels.ts:22


update

update(salesChannelId, payload, customHeaders?): ResponsePromise<AdminSalesChannelsRes>

update a sales channel This feature is under development and may change in the future. To use this feature please enable featureflag sales_channels in your medusa backend project.

Description

updates a sales channel

Parameters

Name Type
salesChannelId string
payload AdminPostSalesChannelsSalesChannelReq
customHeaders Record<string, any>

Returns

ResponsePromise<AdminSalesChannelsRes>

the updated medusa sales channel

Defined in

medusa-js/src/resources/admin/sales-channels.ts:48