contentful-node-apps-toolkit
    Preparing search index...

    Function isValidFunctionEventType

    • Returns whether a string is an event topic a Contentful Function can accept.

      Narrows to FunctionEventTopic rather than the enum, so a validated string stays assignable without a cast.

      Parameters

      • value: string

      Returns value is
          | "graphql.field.mapping"
          | "graphql.resourcetype.mapping"
          | "graphql.query"
          | "appevent.filter"
          | "appevent.handler"
          | "appevent.transformation"
          | "appaction.call"
          | "resources.search"
          | "resources.lookup"