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

    Type Alias FunctionEventTopic

    FunctionEventTopic: `${FunctionTypeEnum}`

    Every event topic a Contentful Function can accept, as a union of string literals.

    Expanded from FunctionTypeEnum with a template literal type, so it stays in step with the enum while remaining structurally assignable: a plain 'appaction.call' satisfies this type, where it would not satisfy the enum itself. Use this to type data read from a manifest or a database, and the enum where a topic is named in code.

    Distinct from FunctionEventType in ./requests, which is keyof FunctionEventHandlers. Because that map is keyed by computed enum members, keyof yields the nominal enum type and rejects plain strings — it types a handler's generic parameter, not data read from a manifest.