Packages › trotsky › StepBuilderList
StepBuilderList class
Abstract class representing a step that processes paginated lists.
Signature:
export declare abstract class StepBuilderList<P = StepBuilder, C = unknown, O extends StepBuilderListOutput = StepBuilderListOutput> extends Step<P, C, O>
Extends: Step<P, C, O>
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
(Optional) Optional tterator function to be executed for each item in the list. | |||
Resolvable<number> | Number of items to skip from the start of the list. Defaults to | ||
StepBuilderListEntry<this>[] | Holds the list of steps to be executed for each entry in the list. | ||
Resolvable<number> | Number of items to take from the list. Defaults to |
Methods
Method | Modifiers | Description |
---|---|---|
Applies the list processing logic, including pagination and execution of child steps for each item in the output. | ||
| Abstract method to handle pagination. Must be implemented by subclasses. | |
Clones the current step and returns a new instance with the same parameters. | ||
Appends a new entry processing step to the list. | ||
Handles pagination logic for retrieving records, fetching items in batches until the desired size is reached. | ||
Sets the number of items to skip from the start of the list. | ||
Sets the number of items to take from the list. | ||
Sets the iterator function to be executed for each item in the list. |