@shopify/cli-kit
    Preparing search index...

    Function publishMonorailEvent

    • Publishes an event to Monorail.

      Type Parameters

      • TSchemaId extends keyof Schemas
      • TPayload extends { public: JsonMap; sensitive: JsonMap }

      Parameters

      • schemaId: TSchemaId

        The schema ID of the event to publish.

      • publicData: TPayload["public"]

        The public data to publish.

      • sensitiveData: TPayload["sensitive"]

        The sensitive data to publish.

      Returns Promise<MonorailResult>

      A result indicating whether the event was successfully published.