@makehq/sdk
    Preparing search index...

    Class Functions

    Class providing methods for working with Make custom functions. Custom functions are user-created JavaScript functions that you can use in scenarios to perform custom data transformations and calculations.

    Index

    Constructors

    Methods

    • Check if a function's code is valid. Validates the syntax and execution of the function.

      Parameters

      • teamId: number

        The team ID context for checking the function

      • code: string

        The function code to validate

      Returns Promise<CheckFunctionResponse>

      Promise with the validation result and any error messages

    • Delete a custom function.

      Parameters

      • functionId: number

        The function ID to delete

      Returns Promise<void>

    • Get details of a specific function.

      Parameters

      • functionId: number

        The function ID to get details for

      Returns Promise<Function>

      Promise with the function details

    • Get the version history of a function.

      Parameters

      • teamId: number

        The team ID the function belongs to

      • functionId: number

        The function ID to get history for

      Returns Promise<FunctionHistory[]>

      Promise with the list of historical versions