import type { ActivityTypeId } from "../../types/ActivityTypeId"; import type { URlString } from "../../types/URlString"; export type AddWebhookParams = AddWebhookParamsActivityEvent | AddWebhookParamsAllEvent; export interface AddWebhookParamsActivityEvent { /** Project ID or Project Key プロジェクトのID または プロジェクトキー */ projectIdOrKey: string | number; /** 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 AddWebhookParamsAllEvent = Omit & { /** True to make all events notified 全てのイベントを通知 */ allEvent?: true; /** Event ID to be notified 通知するイベントのID */ activityTypeIds?: Array; };