UNPKG

@bitblit/ratchet-misc

Version:

Ratchet miscellaneous tooling that requires smallish dependant libraries

50 lines 1.92 kB
import { exists } from '../runtime.js'; export var UpdateWebhookEventsEnum; (function (UpdateWebhookEventsEnum) { UpdateWebhookEventsEnum["HardBounce"] = "hardBounce"; UpdateWebhookEventsEnum["SoftBounce"] = "softBounce"; UpdateWebhookEventsEnum["Blocked"] = "blocked"; UpdateWebhookEventsEnum["Spam"] = "spam"; UpdateWebhookEventsEnum["Delivered"] = "delivered"; UpdateWebhookEventsEnum["Request"] = "request"; UpdateWebhookEventsEnum["Click"] = "click"; UpdateWebhookEventsEnum["Invalid"] = "invalid"; UpdateWebhookEventsEnum["Deferred"] = "deferred"; UpdateWebhookEventsEnum["Opened"] = "opened"; UpdateWebhookEventsEnum["UniqueOpened"] = "uniqueOpened"; UpdateWebhookEventsEnum["Unsubscribed"] = "unsubscribed"; UpdateWebhookEventsEnum["ListAddition"] = "listAddition"; UpdateWebhookEventsEnum["ContactUpdated"] = "contactUpdated"; UpdateWebhookEventsEnum["ContactDeleted"] = "contactDeleted"; })(UpdateWebhookEventsEnum || (UpdateWebhookEventsEnum = {})); export function instanceOfUpdateWebhook(value) { let isInstance = true; return isInstance; } export function UpdateWebhookFromJSON(json) { return UpdateWebhookFromJSONTyped(json, false); } export function UpdateWebhookFromJSONTyped(json, ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { url: !exists(json, 'url') ? undefined : json['url'], description: !exists(json, 'description') ? undefined : json['description'], events: !exists(json, 'events') ? undefined : json['events'], }; } export function UpdateWebhookToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { url: value.url, description: value.description, events: value.events, }; } //# sourceMappingURL=UpdateWebhook.js.map