import type { ActivityTypeId } from "../../types/ActivityTypeId"; import type { URlString } from "../../types/URlString"; export type UpdateWebhookParams = UpdateWebhookParamsActivityEvent | UpdateWebhookParamsAllEvent; export interface UpdateWebhookParamsActivityEvent { /** Project ID or Project Key プロジェクトのID または プロジェクトキー */ projectIdOrKey: string | number; /** Webhook ID WebhookのID */ webhookId: string; /** Name 名前 */ name?: string; /** Description 詳細 */ description?: string; /** hook URL */ hookUrl?: URlString; /** True to make all events notified 全てのイベントを通知 */ allEvent?: false; /** Event ID to be notified 通知するイベントのID */ activityTypeIds?: ActivityTypeId[]; } export type UpdateWebhookParamsAllEvent = Omit & { /** True to make all events notified 全てのイベントを通知 */ allEvent?: true; /** Event ID to be notified 通知するイベントのID */ activityTypeIds?: Array; };