UNPKG

svix

Version:

Svix webhooks API client and webhook verification library

35 lines (31 loc) 937 B
// this file is @generated import { type BackgroundTaskStatus, BackgroundTaskStatusSerializer, } from "./backgroundTaskStatus"; import { type BackgroundTaskType, BackgroundTaskTypeSerializer, } from "./backgroundTaskType"; export interface ExpungeAllContentsOut { /** The QueueBackgroundTask's ID. */ id: string; status: BackgroundTaskStatus; task: BackgroundTaskType; } export const ExpungeAllContentsOutSerializer = { _fromJsonObject(object: any): ExpungeAllContentsOut { return { id: object["id"], status: BackgroundTaskStatusSerializer._fromJsonObject(object["status"]), task: BackgroundTaskTypeSerializer._fromJsonObject(object["task"]), }; }, _toJsonObject(self: ExpungeAllContentsOut): any { return { id: self.id, status: BackgroundTaskStatusSerializer._toJsonObject(self.status), task: BackgroundTaskTypeSerializer._toJsonObject(self.task), }; }, };