HookApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        hookControllerCreate(hookCreateDTO?: HookCreateDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>)>;
        hookControllerGetExecutions(id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventOutputArrayDTOAPI>)>;
        hookControllerGetOne(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>)>;
        hookControllerRemove(id: string, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>;
        hookControllerSearch(hookSearchInputDTO?: HookSearchInputDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputArrayDTOAPI>)>;
        hookControllerTrigger(hookTriggerDTO?: HookTriggerDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>;
        hookControllerUpdate(id: string, hookUpdateDTO?: HookUpdateDTO, options?: RawAxiosRequestConfig): Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>)>;
    }

    • hookControllerCreate:function
      • Required permissions: MANAGE_MODULES

        Parameters

        • OptionalhookCreateDTO: HookCreateDTO

          HookCreateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>)>

        Create

    • hookControllerGetExecutions:function
      • Required permissions: READ_MODULES

        Parameters

        • id: string
        • Optionalsuccess: any
        • OptionaleventSearchInputDTO: EventSearchInputDTO

          EventSearchInputDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<EventOutputArrayDTOAPI>)>

        Get executions

    • hookControllerGetOne:function
      • Required permissions: READ_MODULES

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>)>

        Get one

    • hookControllerRemove:function
      • Required permissions: MANAGE_MODULES

        Parameters

        • id: string
        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<APIOutput>)>

        Remove

    • hookControllerSearch:function
    • hookControllerTrigger:function
      • Trigger a hook. This is used for testing purposes, the event will not actually be created but the hook-logic will be executed. You can pass any data you want, but it must validate against the corresponding event metadata. Eg to trigger the chat-message event, you must pass an object with a message property Required permissions: MANAGE_MODULES

        Parameters

        • OptionalhookTriggerDTO: HookTriggerDTO

          HookTriggerDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>)>

        Trigger

    • hookControllerUpdate:function
      • Required permissions: MANAGE_MODULES

        Parameters

        • id: string
        • OptionalhookUpdateDTO: HookUpdateDTO

          HookUpdateDTO

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<((axios?: AxiosInstance, basePath?: string) => AxiosPromise<HookOutputDTOAPI>)>

        Update