Bulk Builder
This class allow set simple values.
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 |
❌ | File with format string or Blob |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Retorna
Tip
Tipo: *
Ejemplos
delete(rawFile, csv_response)
Execute the bulk delete operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | string,Blob |
❌ | File with format string or Blob |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Retorna
Tip
Tipo: *
Ejemplos
deleteAll(rawFile, csv_response)
Execute the bulk delete full operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | string,Blob |
❌ | File with format string or Blob |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Retorna
Tip
Tipo: *
Ejemplos
patch(rawFile, csv_response)
Execute the bulk patch operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | string,Blob |
❌ | File with format string or Blob |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Retorna
Tip
Tipo: *
Ejemplos
update(rawFile, csv_response)
Execute the bulk update operation
Parámetros
| Nombre | Tipo | Opcional | Descripción |
|---|---|---|---|
| rawFile | string,Blob |
❌ | File with format string or Blob |
| csv_response | boolean |
✅ | true if you want a response on format csv. False or null if you want a response on format json |
Retorna
Tip
Tipo: *