@zeplin/sdk
Version:
Zeplin API client for JavaScript
103 lines (102 loc) • 2.66 kB
TypeScript
/**
* Zeplin API
* Access your resources in Zeplin
*
* Contact: support@zeplin.io
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { OrganizationWebhookEventEnum } from './organization-webhook-event-enum';
import { User } from './user';
import { WebhookHealthEnum } from './webhook-health-enum';
import { WebhookStatusEnum } from './webhook-status-enum';
import { ZeplinApplication } from './zeplin-application';
export declare const transformOrganizationWebhookToJSON: (value: OrganizationWebhook) => any;
export declare const transformJSONToOrganizationWebhook: (value: any) => OrganizationWebhook;
/**
*
* @export
* @interface OrganizationWebhook
*/
export interface OrganizationWebhook {
/**
* The unique id of the webhook
* @type {string}
* @memberof OrganizationWebhook
*/
id: string;
/**
* The URL of the webhook
* @type {string}
* @memberof OrganizationWebhook
*/
url: string;
/**
* The name of the webhook
* @type {string}
* @memberof OrganizationWebhook
*/
name?: string;
/**
*
* @type {WebhookStatusEnum}
* @memberof OrganizationWebhook
*/
status: WebhookStatusEnum;
/**
*
* @type {WebhookHealthEnum}
* @memberof OrganizationWebhook
*/
urlHealth: WebhookHealthEnum;
/**
* The unix timestamp when the webhook was created
* @type {number}
* @memberof OrganizationWebhook
*/
created: number;
/**
* The unix timestamp when the webhook was updated
* @type {number}
* @memberof OrganizationWebhook
*/
updated: number;
/**
*
* @type {User}
* @memberof OrganizationWebhook
*/
createdBy: User;
/**
*
* @type {User}
* @memberof OrganizationWebhook
*/
updatedBy: User;
/**
*
* @type {ZeplinApplication}
* @memberof OrganizationWebhook
*/
zeplinApp?: ZeplinApplication;
/**
* The events of the webhook
* @type {Set<OrganizationWebhookEventEnum>}
* @memberof OrganizationWebhook
*/
events: Set<OrganizationWebhookEventEnum>;
/**
* The project ids of the webhooks. Note: `*` wildcard denotes all project_ids
* @type {Set<string>}
* @memberof OrganizationWebhook
*/
projectIds: Set<string>;
/**
* The styleguide ids of the webhooks. Note: `*` wildcard denotes all styleguide_ids
* @type {Set<string>}
* @memberof OrganizationWebhook
*/
styleguideIds: Set<string>;
}