fix: Delete service zone (#7017)

This commit is contained in:
Oli Juhl
2024-04-08 20:24:59 +02:00
committed by GitHub
parent 0f05790ae4
commit c03216efbf
8 changed files with 89 additions and 14 deletions
@@ -1,4 +1,4 @@
import { AdminServiceZoneResponse } from "./service-zone"
import { ServiceZoneResponse } from "./service-zone"
/**
* @experimental
@@ -8,7 +8,7 @@ export interface FulfillmentSetResponse {
name: string
type: string
metadata: Record<string, unknown> | null
service_zones: AdminServiceZoneResponse[]
service_zones: ServiceZoneResponse[]
created_at: Date
updated_at: Date
deleted_at: Date | null
@@ -5,13 +5,7 @@ import { AdminGeoZoneResponse } from "./geo-zone"
* @experimental
*/
export interface AdminServiceZoneResponse {
id: string
name: string
metadata: Record<string, unknown> | null
geo_zones: AdminGeoZoneResponse[]
created_at: Date
updated_at: Date
deleted_at: Date | null
service_zone: ServiceZoneResponse
}
/**
@@ -23,3 +17,16 @@ export interface AdminServiceZoneDeleteResponse {
deleted: boolean
parent: FulfillmentSetResponse
}
/**
* @experimental
*/
export interface ServiceZoneResponse {
id: string
name: string
metadata: Record<string, unknown> | null
geo_zones: AdminGeoZoneResponse[]
created_at: Date
updated_at: Date
deleted_at: Date | null
}