UNPKG

@zeplin/sdk

Version:
103 lines (102 loc) 2.48 kB
/** * 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 { User } from './user'; import { UserWebhookEventEnum } from './user-webhook-event-enum'; import { WebhookHealthEnum } from './webhook-health-enum'; import { WebhookStatusEnum } from './webhook-status-enum'; import { ZeplinApplication } from './zeplin-application'; export declare const transformUserWebhookToJSON: (value: UserWebhook) => any; export declare const transformJSONToUserWebhook: (value: any) => UserWebhook; /** * * @export * @interface UserWebhook */ export interface UserWebhook { /** * The unique id of the webhook * @type {string} * @memberof UserWebhook */ id: string; /** * The URL of the webhook * @type {string} * @memberof UserWebhook */ url: string; /** * The name of the webhook * @type {string} * @memberof UserWebhook */ name?: string; /** * * @type {WebhookStatusEnum} * @memberof UserWebhook */ status: WebhookStatusEnum; /** * * @type {WebhookHealthEnum} * @memberof UserWebhook */ urlHealth: WebhookHealthEnum; /** * The unix timestamp when the webhook was created * @type {number} * @memberof UserWebhook */ created: number; /** * The unix timestamp when the webhook was updated * @type {number} * @memberof UserWebhook */ updated: number; /** * * @type {User} * @memberof UserWebhook */ createdBy: User; /** * * @type {User} * @memberof UserWebhook */ updatedBy: User; /** * * @type {ZeplinApplication} * @memberof UserWebhook */ zeplinApp?: ZeplinApplication; /** * The events of the webhook * @type {Set<UserWebhookEventEnum>} * @memberof UserWebhook */ events: Set<UserWebhookEventEnum>; /** * The project ids of the webhooks. Note: `*` wildcard denotes all project_ids * @type {Set<string>} * @memberof UserWebhook */ projectIds: Set<string>; /** * The styleguide ids of the webhooks. Note: `*` wildcard denotes all styleguide_ids * @type {Set<string>} * @memberof UserWebhook */ styleguideIds: Set<string>; }