chore: Remove unused clients in admin + clean up js-sdk (#8839)
* feat(js-sdk): Add API key * chore: Remove unused clients in admin + clean up js-sdk * fix sales channel hooks
This commit is contained in:
@@ -18,6 +18,19 @@ export class Payment {
|
||||
)
|
||||
}
|
||||
|
||||
async listPaymentProviders(
|
||||
query?: HttpTypes.AdminGetPaymentProvidersParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminPaymentProviderListResponse>(
|
||||
`/admin/payments/payment-providers`,
|
||||
{
|
||||
query,
|
||||
headers,
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
async retrieve(
|
||||
id: string,
|
||||
query?: HttpTypes.AdminPaymentFilters,
|
||||
|
||||
@@ -94,4 +94,19 @@ export class SalesChannel {
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
async batchProducts(
|
||||
id: string,
|
||||
body: HttpTypes.AdminBatchLink,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminSalesChannelResponse>(
|
||||
`/admin/sales-channels/${id}/products`,
|
||||
{
|
||||
method: "POST",
|
||||
headers,
|
||||
body,
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user