/*! * Copyright Adaptavist 2022 (c) All rights reserved */ import { TrelloID } from "../definitions/TrelloID"; import { WebhookAsResponse } from "../definitions/WebhookAsResponse"; import { ErrorStrategyOption } from "../errorStrategy"; import { HeadersOption } from "@managed-api/commons-core"; export interface CreateWebhookRequest extends HeadersOption, ErrorStrategyOption { /** * A string with a length from `0` to `16384`. */ description?: string; /** * A valid URL that is reachable with a `HEAD` and `POST` request. */ callbackURL: string; /** * ID of the model to be monitored */ idModel: TrelloID; /** * Determines whether the webhook is active and sending `POST` requests. */ active?: boolean; } declare type CreateWebhookResponseOKType = WebhookAsResponse; export interface CreateWebhookResponseOK extends CreateWebhookResponseOKType { } export declare type CreateWebhookResponseError = undefined; export interface GetWebhookRequest extends HeadersOption, ErrorStrategyOption { /** * ID of the webhook to retrieve. */ id: TrelloID; } declare type GetWebhookResponseOKType = WebhookAsResponse; export interface GetWebhookResponseOK extends GetWebhookResponseOKType { } export declare type GetWebhookResponseError = undefined; export interface UpdateWebhookRequest extends HeadersOption, ErrorStrategyOption { /** * ID of the webhook to retrieve. */ id: TrelloID; /** * A string with a length from `0` to `16384`. */ description?: string; /** * A valid URL that is reachable with a `HEAD` and `POST` request. */ callbackURL?: string; /** * ID of the model to be monitored */ idModel?: TrelloID; /** * Determines whether the webhook is active and sending `POST` requests. */ active?: boolean; } declare type UpdateWebhookResponseOKType = WebhookAsResponse; export interface UpdateWebhookResponseOK extends UpdateWebhookResponseOKType { } export declare type UpdateWebhookResponseError = undefined; export interface DeleteWebhookRequest extends HeadersOption, ErrorStrategyOption { /** * ID of the webhook to retrieve. */ id: TrelloID; } declare type DeleteWebhookResponseOKType = { _value?: any; }; export interface DeleteWebhookResponseOK extends DeleteWebhookResponseOKType { } export declare type DeleteWebhookResponseError = undefined; export interface GetWebhookFieldRequest extends HeadersOption, ErrorStrategyOption { /** * ID of the webhook. */ id: TrelloID; /** * Field to retrieve. One of: `active`, `callbackURL`, `description`, `idModel`, `consecutiveFailures`, `firstConsecutiveFailDate` */ field: "active" | "callbackURL" | "description" | "idModel" | "consecutiveFailures" | "firstConsecutiveFailDate"; } declare type GetWebhookFieldResponseOKType = { _value?: any; }; export interface GetWebhookFieldResponseOK extends GetWebhookFieldResponseOKType { } export declare type GetWebhookFieldResponseError = undefined; export {}; //# sourceMappingURL=webhook.d.ts.map