Skip to main content
Version: 1.0.1

IProcessInBatch

@spartanfx/react v1.0.1


@spartanfx/react / IProcessInBatch

Interface: IProcessInBatch

Payload for processing items in bulk operations such as create, update, or delete.

Extends IProcessInBatchCore but omits the action property, since that is provided internally by the bulk functions.

Remarks

This type is intended for consumer-facing APIs. The action function is abstracted so that consumers only need to provide the list name, items, and optional callbacks.

Examples

Minimal usage to create items in bulk:

await createBulkItems({
listName: "MyList",
items: [{ Title: "Item 1" }, { Title: "Item 2" }]
});

Usage with progress tracking:

await updateBulkItems({
listName: "MyList",
items: [{ ID: 1, Title: "Updated Item" }],
onProgressChange: (msg) => console.log(msg),
chunkSize: 50
});

Extends

  • Omit<IProcessInBatchCore, "action">