Bulk Builder
This class provides the bulk create, update, patch, and delete operations shared by the CSV and JSON bulk builders.
constructor
Constructor
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| ogapi | InternalOpenGateAPI |
❌ | required field. This is ogapi instance |
| resource | resource |
❌ | required field. This is the resource used for the bulk provision |
| extension | extension |
❌ | required field. Type of file to send |
| timeout | number |
✅ | timeout in millisecons. The request will have a specific time out if it will be exceeded then the promise throw an exception |
create(rawFile, csv_response)
Execute the bulk creation operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | Blob` | ❌ |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Ejemplos
delete(rawFile, csv_response)
Execute the bulk delete operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | Blob` | ❌ |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Ejemplos
deleteAll(rawFile, csv_response)
Execute the bulk delete-all operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | Blob` | ❌ |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Ejemplos
patch(rawFile, csv_response)
Execute the bulk patch operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | Blob` | ❌ |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Ejemplos
update(rawFile, csv_response)
Execute the bulk update operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | `string | Blob` | ❌ |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |