fix(dashboard,types,js-sdk): Locations & Shipping fixes and cleanup (#7715)
This commit is contained in:
committed by
GitHub
parent
bc0c65c6b3
commit
2e8e7b27b6
@@ -24,7 +24,7 @@ export class FulfillmentSet {
|
||||
query?: HttpTypes.SelectParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>(
|
||||
return await this.client.fetch<HttpTypes.AdminFulfillmentSetResponse>(
|
||||
`/admin/fulfillment-sets/${id}/service-zones`,
|
||||
{
|
||||
method: "POST",
|
||||
@@ -35,7 +35,7 @@ export class FulfillmentSet {
|
||||
)
|
||||
}
|
||||
|
||||
async retrieveServiceZones(
|
||||
async retrieveServiceZone(
|
||||
fulfillmentSetId: string,
|
||||
serviceZoneId: string,
|
||||
query?: HttpTypes.SelectParams,
|
||||
@@ -58,7 +58,7 @@ export class FulfillmentSet {
|
||||
query?: HttpTypes.SelectParams,
|
||||
headers?: ClientHeaders
|
||||
) {
|
||||
return await this.client.fetch<HttpTypes.AdminFulfillmentResponse>(
|
||||
return await this.client.fetch<HttpTypes.AdminFulfillmentSetResponse>(
|
||||
`/admin/fulfillment-sets/${fulfillmentSetId}/service-zones/${serviceZoneId}`,
|
||||
{
|
||||
method: "POST",
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { Client } from "../client"
|
||||
import { Customer } from "./customer"
|
||||
import { Fulfillment } from "./fulfillment"
|
||||
import { FulfillmentProvider } from "./fulfillment-provider"
|
||||
import { FulfillmentSet } from "./fulfillment-set"
|
||||
import { InventoryItem } from "./inventory-item"
|
||||
import { Invite } from "./invite"
|
||||
@@ -31,6 +32,7 @@ export class Admin {
|
||||
public salesChannel: SalesChannel
|
||||
public fulfillmentSet: FulfillmentSet
|
||||
public fulfillment: Fulfillment
|
||||
public fulfillmentProvider: FulfillmentProvider
|
||||
public shippingOption: ShippingOption
|
||||
public shippingProfile: ShippingProfile
|
||||
public inventoryItem: InventoryItem
|
||||
@@ -51,6 +53,7 @@ export class Admin {
|
||||
this.salesChannel = new SalesChannel(client)
|
||||
this.fulfillmentSet = new FulfillmentSet(client)
|
||||
this.fulfillment = new Fulfillment(client)
|
||||
this.fulfillmentProvider = new FulfillmentProvider(client)
|
||||
this.shippingOption = new ShippingOption(client)
|
||||
this.shippingProfile = new ShippingProfile(client)
|
||||
this.inventoryItem = new InventoryItem(client)
|
||||
|
||||
Reference in New Issue
Block a user