Hierarchy

  • ItemScriptCall

Constructors

Properties

data: any
parent: any
AsyncFunction: any = ...

Accessors

  • get defaultData(): {
        _id: string;
        category: string;
        hidden: boolean;
        img: string;
        name: string;
        type: string;
        value: string;
    }
  • Returns {
        _id: string;
        category: string;
        hidden: boolean;
        img: string;
        name: string;
        type: string;
        value: string;
    }

    • _id: string
    • category: string
    • hidden: boolean
    • img: string
    • name: string
    • type: string
    • value: string

Methods

  • Executes the script.

    Parameters

    • shared: object

      An object passed between script calls, and which is passed back as a result of ItemPF.executeScriptCalls.

    • extraParams: Object = {}

      A dictionary containing extra parameters to pass on to the call.

    Returns Promise<any>

  • Creates a script call.

    Parameters

    • data: object[]

      Data to initialize the script call(s) with.

    • context: {
          parent: undefined | ItemPF;
      }

      An object containing context information.

      • parent: undefined | ItemPF

        The parent entity to create the script call within.

    Returns Promise<any[]>

    The resulting script calls, or an empty array if nothing was created.

Generated using TypeDoc