Node SDK

Module index

Legend

  • Namespace
  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Enumeration
  • Class

Index

References

Re-exports BaseEvent
Re-exports BatchOptions
Re-exports BotInvocationEvent
Re-exports BotInvocationEventTyped
Re-exports Checkpoint
Re-exports Checkpoints
Re-exports CommandWrapFunction
Re-exports CommandWrapOptions
Re-exports CorrelationId
Re-exports Cron
Re-exports DataCallback
Re-exports DuplexStream
Re-exports ErrorCallback
Re-exports Event
Re-exports FlushCallback
Re-exports FromCsvOptions
Re-exports JoinExternalFetcher
Re-exports ProcessCallback
Re-exports ProcessCallbackOptions
Re-exports ProcessFunction
Re-exports ProcessFunctionAsync
Re-exports ProcessFunctionAsyncReturn
Re-exports ProcessFunctionAsyncReturnOptions
Re-exports ProcessFunctionContext
Re-exports ProcessFunctionOptions
Re-exports RSFBotInvocationEvent
Re-exports RSFCronBotInvocationEvent
Re-exports RSFQueueBotInvocationEvent
Re-exports RStreamsContext
Re-exports RStreamsTransformFunction
Re-exports ReadEvent
Re-exports ReadableQueueStream
Re-exports ReadableStream
Re-exports ToCsvOptions
Re-exports TransformFunction
Re-exports TransformStream
Re-exports WritableStream
Re-exports WriteEvent
Re-exports batch
Re-exports buffer
Re-exports bufferBackoff
Re-exports commandWrap
Re-exports counter
Re-exports devnull
Re-exports eventIdFromTimestamp
Re-exports eventIdToTimestamp
Re-exports eventstream
Re-exports fromCSV
Re-exports fromS3
Re-exports joinExternal
Re-exports log
Re-exports parse
Re-exports passthrough
Re-exports pipe
Re-exports pipeAsync
Re-exports pipeline
Re-exports process
Re-exports stringify
Re-exports through
Re-exports toCSV
Re-exports toS3
Re-exports writeWrapped

Type aliases

Callback: (err?: any, data?: any) => void

Type declaration

    • (err?: any, data?: any): void
    • A standard callback function. If the operation failed, return the first argument only, often a string or an Error object. If the operation succeeded and nothing needs to be returned from the callback, pass no arguments. If the operation succeeded and something needs to be returned through the callback, pass null as the first argument and the return object as the second argument.

      Parameters

      • Optional err: any

        If present, indicates the operation failed.

      • Optional data: any

        If present and err is not present, the return value from the operation.

      Returns void

CreateSourceFunction<T, R>: (state: R) => Promise<T[] | undefined>

Type parameters

  • T

  • R

Type declaration

    • (state: R): Promise<T[] | undefined>
    • Async function that you write that takes the current state R and returns an array of data tpye T

      Parameters

      • state: R

      Returns Promise<T[] | undefined>

ThroughEvent<T>: Event<T> | any

Defines an event used in through operations.

see

StreamUtil.through

Type parameters

  • T

    The payload of the event.

Functions

  • This creates an async/await-friendly pipeline step that will take data in, possibly transform the data or do computation, and then sends the result on to the next step in the pipeline.

    see

    through

    Type parameters

    • T

      The type of the data sent in to be passed through this step.

    • U

      The type of data to be sent on to the next step in the pipeline.

    Parameters

    • Optional transform: (this: TransformStream<T, U>, obj: T) => U | Promise<U>

      A function that does the work of taking the data in, doing something with it and then rejecting or resolving the promise with the result object type U. If you resolve with no result data, the event is skipped and not sent to the next pipeline step. The first arg is stripped off by Javascript since it recognizes that the this arg is just to set the this context so that the this keyword will work inside the function and itself be the instance of the transform stream which can be useful. For example, say you want to push to an event in here to a queue. You could do that by calling this.push to push the event to a queue while still sending the queue on the next step in the pipeline afterwards.

      So, the first real argument your function will receive is obj which is the data event being sent in to be processed/transformed and sent on to the next pipeline step.

    • Optional flush: (this: TransformStream<T, U>) => U | Promise<U>

      A function to be called when the entire pipeline has been flushed to allow for cleanup, perhaps closing a DB connection.

    Returns TransformStream<T, U>

    The pipeline step that is ready to be used in a pipeline

Generated using TypeDoc