This builder gives you the tools necessary to create bulk executions using the OpenGate REST API.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | required field. This is ogapi instance |
| organization | string |
❌ | required field. This is the organization name |
| processorId | string |
❌ | required field. This is the provision processor use for bulk provision |
| timeout | number |
✅ | timeout in millisecons. The request will have a specific time out if it will be exceeded then the promise throw an exception |
bulk(rawFile, extension)
Do a bulk using specific Provision Processor.
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | File` | ❌ |
| extension | string |
✅ | File format |
Ejemplos
plan(rawFile, extension, numberOfEntriesToProcess)
Instead of creating a bulk process, returns the provision process planning for the specified entries. This is a synchronous process that does not cause changes in the database.
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | File` | ❌ |
| extension | string |
✅ | File format |
| numberOfEntriesToProcess | number |
✅ | Number of entries to be processed. |