Function HookApiAxiosParamCreator

HookApi - axios parameter creator

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        hookControllerCreate: ((hookCreateDTO?: HookCreateDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
        hookControllerGetExecutions: ((id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
        hookControllerGetOne: ((id: string, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
        hookControllerRemove: ((id: string, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
        hookControllerSearch: ((hookSearchInputDTO?: HookSearchInputDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
        hookControllerTrigger: ((hookTriggerDTO?: HookTriggerDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
        hookControllerUpdate: ((id: string, hookUpdateDTO?: HookUpdateDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>);
    }

    • hookControllerCreate: ((hookCreateDTO?: HookCreateDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      Required permissions: MANAGE_MODULES

      Create

        • (hookCreateDTO?, options?): Promise<RequestArgs>
        • Parameters

          • OptionalhookCreateDTO: HookCreateDTO

            HookCreateDTO

          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • hookControllerGetExecutions: ((id: string, success?: any, eventSearchInputDTO?: EventSearchInputDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      Required permissions: READ_MODULES

      Get executions

        • (id, success?, eventSearchInputDTO?, options?): Promise<RequestArgs>
        • Parameters

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

            EventSearchInputDTO

          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • hookControllerGetOne: ((id: string, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      Required permissions: READ_MODULES

      Get one

        • (id, options?): Promise<RequestArgs>
        • Parameters

          • id: string
          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • hookControllerRemove: ((id: string, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      Required permissions: MANAGE_MODULES

      Remove

        • (id, options?): Promise<RequestArgs>
        • Parameters

          • id: string
          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • hookControllerSearch: ((hookSearchInputDTO?: HookSearchInputDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      Required permissions: READ_MODULES

      Search

        • (hookSearchInputDTO?, options?): Promise<RequestArgs>
        • Parameters

          • OptionalhookSearchInputDTO: HookSearchInputDTO

            HookSearchInputDTO

          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • hookControllerTrigger: ((hookTriggerDTO?: HookTriggerDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      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

      Trigger

        • (hookTriggerDTO?, options?): Promise<RequestArgs>
        • Parameters

          • OptionalhookTriggerDTO: HookTriggerDTO

            HookTriggerDTO

          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>

    • hookControllerUpdate: ((id: string, hookUpdateDTO?: HookUpdateDTO, options??: RawAxiosRequestConfig) => Promise<RequestArgs>)

      Required permissions: MANAGE_MODULES

      Update

        • (id, hookUpdateDTO?, options?): Promise<RequestArgs>
        • Parameters

          • id: string
          • OptionalhookUpdateDTO: HookUpdateDTO

            HookUpdateDTO

          • Optionaloptions: RawAxiosRequestConfig = {}

            Override http request option.

          Returns Promise<RequestArgs>