/* Options: Date: 2025-01-18 07:39:08 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateWebhookEndpoint.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export interface ICompany { CompanyId?: string; } export class WebhookEndpoint { public Description: string; public Url: string; public Id: string; public Disabled: boolean; public EventTypes: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/webhook/endpoints", "POST") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") export class CreateWebhookEndpoint implements IReturn, ICompany { /** @description The company id, if empty will use the company id for the user you are logged in with. */ // @ApiMember(Description="The company id, if empty will use the company id for the user you are logged in with.", IsRequired=true, ParameterType="query") public CompanyId: string; /** @description The webhook endpoint URL. */ // @ApiMember(Description="The webhook endpoint URL.", IsRequired=true) public Url: string; /** @description List of event types. At least one event type is required. */ // @ApiMember(Description="List of event types. At least one event type is required.", IsRequired=true) // @Validate(Validator="NotEmpty", ErrorCode="At least one event type is required.") public EventTypes: string[]; public Description: string; // @ApiMember() public Disabled: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'CreateWebhookEndpoint'; } public getMethod() { return 'POST'; } public createResponse() { return new WebhookEndpoint(); } }