### Usage Example Source: https://developers.auravant.com/docs/sdk/sdk_modules Example demonstrating how to listen for the `fieldSelected` event and log the selected field ID to the console. ```APIDOC ## Example Usage ### Description This example shows how to add an event listener for the `fieldSelected` event to log the ID of the selected field whenever it changes. ### Method JavaScript Event Listener ### Endpoint N/A ### Parameters None ### Request Example N/A ### Response N/A ### Code Example ```javascript // Logs the ID of the selected field to the console each time the user changes the field. window.addEventListener("fieldSelected", () => { console.log(event.detail.id); }); ``` ``` -------------------------------- ### Create Paddock Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_livestock An example JSON payload for creating a new paddock, including its field ID, shape in WKT format, creation date, and name. ```json { "field_id": 123456, "shape":"POLYGON((-59.69691753387451 -34.19146423344178,-59.695072174072266 -34.19245817272681,-59.69537258148192 -34.19348759749397,-59.69726085662841 -34.19416204138989,-59.69927787780762 -34.19380707159075,-59.698805809020996 -34.19238717745208,-59.69764709472656 -34.19185471098653,-59.69691753387451 -34.19146423344178))", "date": "2023-05-22T15:27:09.147Z", "name":"Parcela 1 test" } ``` -------------------------------- ### Example POST API Response Source: https://developers.auravant.com/docs/apis/reference/api_ref_applications An example JSON response for a successful POST request to create an application record. It includes details about the created campaigns, applications, and associated inputs. ```JSON { "campaigns": [1355, 1356], "applications": [567, 566], "denied_fields": [], "inputs": [1167, 1168, 1165, 1166], "productos": [ { "nombre": null, "id": 1167 }, { "nombre": null, "id": 1168 }, { "nombre": null, "id": 1165 }, { "nombre": null, "id": 1166 } ], "res": "Cosecha creada exitosamente", "id_ciclo": 1355, "id": 567 } ``` -------------------------------- ### Delete Keys Response Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_storage This is an example of the JSON response received after successfully deleting keys using the DELETE operation. It confirms the keys that have been removed from the storage. ```JSON { "data": { "keys": ["key_eliminada_1", "key_eliminada_2"] } } ``` -------------------------------- ### Get All Spots (POST Request Example) Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots Retrieves a list of spots from the API. This endpoint supports various optional query parameters for filtering spots by UUID, group UUID, farm ID, field ID, sample set type, sample set UUID, date range, and tag UUID. Pagination is supported via `page_size` and `page` parameters. If no parameters are provided, all spots are returned. ```http Content-Type: application/json POST /api/spots/getspot { "uuid": ["1234abyz-12az-12az-12az-123456abcxyz"], "group_uuid": "some-group-uuid", "farm_id": 123, "field_id": 456, "sample_set_type": "monitoring", "sample_set_uuid": "some-sample-set-uuid", "date_from": "2023-01-01T00:00:00Z", "date_to": "2023-12-31T23:59:59Z", "tag_uuid": "some-tag-uuid", "page_size": 50, "page": 0 } ``` -------------------------------- ### Example Response for Creating Insumos Source: https://developers.auravant.com/docs/apis/reference/api_ref_inputs An example JSON response confirming the creation of new 'insumos', listing the created items with their assigned IDs and UUIDs, and any denied entries. ```JSON { "status": "successful inputs creation", "res": "OK", "denied": [], "created": [ { "nombre": "input_test_10", "id": 1027, "uuid": "9b6ab856-79da-11ea-bd20-b7046fc84ed8" }, { "nombre": "input_test_11", "id": 1028, "uuid": "9b6ab857-79da-11ea-bd20-03791c820c43" }, { "nombre": "input_test_12", "id": 1029, "uuid": "9b6ab858-79da-11ea-bd20-effc08625f5f" } ] } ``` -------------------------------- ### Example Response for Modifying Insumos Source: https://developers.auravant.com/docs/apis/reference/api_ref_inputs An example JSON response detailing the outcome of an 'insumo' modification request, showing modified and denied items. ```JSON { "status": "successful inputs modification", "res": "OK", "modificated": [ { "id": 1027, "name": "modified_input_test_10", "uuid": "9b6ab856-79da-11ea-bd20-b7046fc84ed8" }, { "id": 1028, "name": "modified_input_test_11", "uuid": "9b6ab857-79da-11ea-bd20-03791c820c43" }, { "id": 1029, "name": "modified_input_test_12", "uuid": "9b6ab858-79da-11ea-bd20-effc08625f5f" } ], "denied": [] } ``` -------------------------------- ### Create Spot API Response Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots This is an example of a successful response when creating a new spot. It returns a code and a unique spot_uuid for the newly created marker. ```json { "code": "12AZ-1AZ-12AZ", "spot_uuid": "1234abyz-12az-12az-12az-123456abcxyz" } ``` -------------------------------- ### Create Spot API Request - JavaScript Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots An example using JavaScript's fetch API to send a POST request to create a new spot. It includes the necessary headers and a JSON body with essential fields like 'field_id' and 'shape'. ```javascript fetch("https://api.auravant.com/api/spots/spot", { method: "POST", headers: { Authorization: "Bearer " + token, "Content-Type": "application/json", }, body: JSON.stringify({ field_id: 123456, shape: "POINT(-66 -33)", }), }) .then((res) => res.json()) .then((res) => console.log(res)); ``` -------------------------------- ### Example Response for Deleting Insumos Source: https://developers.auravant.com/docs/apis/reference/api_ref_inputs An example JSON response indicating the status of an 'insumo' deletion operation, listing successfully deleted and denied items. ```JSON { "status": "successful inputs deletion", "res": "OK", "deleted": [ { "id": 1027, "name": "modified_input_test_10", "uuid": "9b6ab856-79da-11ea-bd20-b7046fc84ed8" }, { "id": 1028, "name": "modified_input_test_11", "uuid": "9b6ab857-79da-11ea-bd20-03791c820c43" }, { "id": 1029, "name": "modified_input_test_12", "uuid": "9b6ab858-79da-11ea-bd20-effc08625f5f" } ], "denied": [] } ``` -------------------------------- ### Fetch User Spots in JavaScript Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots Example of how to fetch all user spots using the JavaScript Fetch API. It includes setting the 'Authorization' header with a bearer token and parsing the JSON response. This example retrieves all spots without specific filters. ```javascript fetch("https://api.auravant.com/api/spots/spot", { method: "GET", headers: { Authorization: "Bearer " + token, }, }) .then((res) => res.json()) .then((res) => console.log(res)); ``` -------------------------------- ### Update User Spots in JavaScript Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots Example of how to update user spots using the JavaScript Fetch API with the PATCH method. It includes setting the 'Authorization' and 'Content-Type' headers, and sending a JSON body with the spot's UUID and updated tags. This example replaces existing tags with new ones. ```javascript fetch("https://api.auravant.com/api/spots/spot", { method: "PATCH", headers: { Authorization: "Bearer " + token, "Content-Type": "application/json", }, body: JSON.stringify({ uuid: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx", tags: [ { tag: "TagExample", }, { tag: "Malezas", uuid: "42848a6b-e19e-11ea-932a-4b6dfef550c7", }, ], }), }) .then((res) => res.json()) .then((res) => console.log(res)); ``` -------------------------------- ### Listar Aplicación Registrada (GET) Source: https://developers.auravant.com/docs/apis/reference/api_ref_applications Permite listar una aplicación registrada por el usuario. Requiere la funcionalidad 'Ver actividad de campaña'. Se puede identificar la aplicación por su UUID o ID. Devuelve un objeto JSON con el estado y detalles de la aplicación. ```http GET /registro_campo/aplicacion ``` -------------------------------- ### Get Messages for a Spot (GET Request Example) Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots Retrieves messages associated with a specific spot, identified by its UUID. The endpoint supports pagination for messages using `page_size` and `page` parameters. Messages are ordered by creation date, with the most recent appearing first. ```http GET /api/spots/msgs?uuid=1234abyz-12az-12az-12az-123456abcxyz&page_size=20&page=0 ``` -------------------------------- ### Successful Response for Get Farm Metadata (JSON) Source: https://developers.auravant.com/docs/apis/reference/api_ref_farms Example of a successful (200 OK) response when retrieving farm metadata. The response is a JSON object containing metadata for each requested farm, keyed by farm ID. ```JSON { "data": { "1": { "metadata": { "info_interna": { "id_interno": "5551234", "contacto": "granja1@ejemplo.com" }, "detalles_campo": { // etc } } }, "2": { "metadata": { // metadatos de campo 2 } } } } ``` -------------------------------- ### Instalar SDK Types como dependencia de desarrollo Source: https://developers.auravant.com/docs/sdk/sdk_intro Instala el paquete `@auravant/sdk-types` como una dependencia de desarrollo usando npm. Esto proporciona tipos para el SDK, facilitando el acceso a módulos y funciones desde tu IDE y ayudando a prevenir errores en TypeScript. ```bash npm install -D @auravant/sdk-types ``` -------------------------------- ### Get All Spots with Messages and Images (POST Request Example) Source: https://developers.auravant.com/docs/apis/reference/api_ref_spots Retrieves a list of spots, including their associated messages and images. This endpoint functions identically to `/api/spots/getspot` but includes additional details in the response for each spot. Pagination applies only to the spots themselves. ```http Content-Type: application/json POST /api/spots/all { "page_size": -1, "page": 0 } ``` -------------------------------- ### Example Response for Public Files Field Endpoint Source: https://developers.auravant.com/docs/apis/reference/api_ref_storage This JSON structure illustrates the response from the 'GET publicfiles/field' endpoint. Similar to the general public files response, it uses field IDs as keys and provides 'storage_key' objects with file metadata. The structure and properties of the 'storage_key' object are consistent across different file-related endpoints. ```json { "6789": { "storage_key": { "file_name": "107565-as39-47074-av2-04780.pdf", "file_size_kb": 1257.012, "created_at": "2025-02-12T13:00:23Z", "url": "https://avt-aurapps-storage....." } } } ``` -------------------------------- ### Incluir el SDK de Javascript en HTML Source: https://developers.auravant.com/docs/sdk/sdk_intro Este snippet muestra cómo agregar el script público del SDK de Auravant a tu archivo HTML para poder utilizar sus funcionalidades en la plataforma web. Asegúrate de usar siempre la última versión disponible. ```html ``` -------------------------------- ### Instalar Dependencias y Compilar Aplicación ReactJs Source: https://developers.auravant.com/docs/intro/react Comandos para instalar las dependencias del proyecto ReactJs y compilar la aplicación utilizando npm. Estos comandos son esenciales para preparar la extensión antes de su empaquetado. ```bash npm install npm run build ``` -------------------------------- ### Create Application Record (POST API) Source: https://developers.auravant.com/docs/apis/reference/api_ref_applications Creates a new crop application record. Requires 'Create activity in campaign' permission. Accepts common labor parameters plus application-specific fields like inputs and category. At least one field or campaign must be specified. ```HTTP Content-Type: application/json POST /registro_campo/aplicacion ``` -------------------------------- ### Modify Paddock Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_livestock An example JSON payload for modifying a paddock, demonstrating updates to both name and shape. The paddock_uuid must be provided in the request path. ```json { "name":"Parcela 1 test (patch 2)", "shape":"POLYGON((-59.69691753387451 -34.19146423344178,-59.695072174072266 -34.19245817272681,-59.69537258148192 -34.19348759749397,-59.69726085662841 -34.19416204138989,-59.69927787780762 -34.19380707159075,-59.698805809020996 -34.19238717745208,-59.69764709472656 -34.19185471098653,-59.69691753387451 -34.19146423344178))" } ``` -------------------------------- ### startCompare - Starting Layer Comparison Source: https://developers.auravant.com/docs/sdk/sdk_modules Enables comparison between two layers of the same batch, selected by the user. ```APIDOC ## POST /interface/startCompare ### Description Enables comparison between two layers of the same batch, selected by the user. ### Method POST ### Endpoint /interface/startCompare ### Parameters (No parameters required) ### Request Example ```json {} ``` ### Response #### Success Response (200) (No specific response body detailed, typically indicates successful execution) #### Response Example (No specific response example provided) ``` -------------------------------- ### Get Other Labor Cost Types (GET) Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour Retrieves a list of available cost types for 'other labors'. This endpoint provides details on different cost categories. ```http GET /registro_campo/tipos_costos_otros_labores ``` -------------------------------- ### Get Tags (GET /api/tags_campos/tag) Source: https://developers.auravant.com/docs/apis/reference/api_ref_tags Retrieves tag information. You can fetch a single tag by its ID, all tags associated with a field, or all tags created by the logged-in user. ```APIDOC ## GET /api/tags_campos/tag ### Description Retrieves tag information. You can fetch a single tag by its ID, all tags associated with a field, or all tags created by the logged-in user. ### Method GET ### Endpoint /api/tags_campos/tag ### Parameters #### Query Parameters - **id_campo** (integer) - Optional - ID of the field for which to retrieve associated tags. - **id_tag** (integer) - Optional - ID of the tag to retrieve information for. **Usage:** - If `id_tag` is provided, information for that specific tag is returned. - If `id_campo` is provided, all tags associated with that field are returned. - If no query parameters are sent, all tags created by the logged-in user are returned. ### Request Example ```javascript fetch("https://api.auravant.com/api/tags_campos/tag?id_tag=1234", { method: "GET", headers: { Authorization: "Bearer "+token } }).then(resp => resp.json()).then(result => console.log(result)) ``` ### Response #### Success Response (200) - **filter** (string) - Indicates the type of data returned (e.g., "tag info", "farm tags", "user tags"). - **result** (object) - An object containing the tag information. The structure varies based on the query parameters. #### Response Example (Single Tag) ```json { "filter": "tag info", "result": { "934": { "color": "aa00aa", "tag": "modificada" } } } ``` #### Response Example (Field Tags) ```json { "filter": "farm tags", "result": { "934": { "color": "987A60", "tag": "tag2" }, "935": { "color": "C51965", "tag": "tags" } } } ``` #### Response Example (User Tags) ```json { "filter": "user tags", "result": { "934": { "color": "987A60", "tag": "tag 2" }, "935": { "color": "C51965", "tag": "tags" }, "936": { "color": "50432B", "tag": "tag4" } } } ``` ``` -------------------------------- ### Start Layer Comparison with avt.interface.startCompare Source: https://developers.auravant.com/docs/sdk/sdk_modules Enables the comparison feature between two layers of the same batch, selected by the user. ```javascript avt.interface.startCompare(); ``` -------------------------------- ### async_startSubprocess - Starting Subprocess Source: https://developers.auravant.com/docs/sdk/sdk_modules Opens an Auravant feature without closing the current extension. Requires a route parameter. ```APIDOC ## POST /interface/async_startSubprocess ### Description Opens an Auravant feature without closing the current extension. Requires a route parameter. ### Method POST ### Endpoint /interface/async_startSubprocess ### Parameters #### Request Body - **route** (string) - Required - The route of the feature to open. ### Request Example ```json { "route": "asd" } ``` ### Response #### Success Response (200) (No specific response body detailed, typically indicates successful execution) #### Response Example (No specific response example provided) ``` -------------------------------- ### Example Harvest Update Response Source: https://developers.auravant.com/docs/apis/reference/api_ref_harvest An example JSON response after successfully updating a harvest activity. It indicates the status of the update and provides the ID of the modified harvest. ```json { "status": "harvest updated successfully", "uuid": null, "result": "OK", "id": 2569 } ``` -------------------------------- ### List Registered Applications Source: https://developers.auravant.com/docs/apis/reference/api_ref_applications Retrieves a list of registered applications for the user. Requires 'View Campaign Activity' permission. ```APIDOC ## GET /registro_campo/aplicacion ### Description Retrieves a list of registered applications for the user. Requires the 'View Campaign Activity' permission. ### Method GET ### Endpoint /registro_campo/aplicacion ### Parameters #### Query Parameters - **uuid** (string) - Optional - UUID of the application - **id** (integer) - Optional - ID of the application *Note: Only one of `uuid` or `id` needs to be specified as both uniquely identify an application.* ### Request Example ``` GET /registro_campo/aplicacion?uuid=5b6a2767-8357-11ea-bd20-dbb8b3e04708 ``` ### Response #### Success Response (200) - **status** (integer) - Indicates the status of the operation. - **inputs** (object) - Contains details of the application inputs. - **campaign** (integer) - The campaign ID associated with the application. - **type_id** (integer) - The type ID of the application. - **labour_uuid** (string) - The UUID of the labour associated with the application. - **type_name** (string) - The name of the application type. - **completion_date** (string) - The completion date of the application. - **observations** (string) - Any observations related to the application. - **labour_id** (integer) - The ID of the labour associated with the application. - **date** (string) - The date of the application. - **category_id** (integer) - The category ID of the application. - **category_name** (string) - The name of the application category. #### Response Example ```json { "status": 1, "inputs": { "1078": { "user_input": true, "name": "input_front_10", "density": null, "company": null, "dose": 1010, "state": null, "observations": null, "components": [], "composition": null, "type": null, "id": 1078, "unit": "lt/ha", "uuid": "5b6a2767-8357-11ea-bd20-dbb8b3e04708" }, "1079": { "user_input": true, "name": "input_front_11", "density": null, "company": null, "dose": 1111, "state": null, "observations": null, "components": [], "composition": null, "type": null, "id": 1079, "unit": "lt/ha", "uuid": "5b6a2768-8357-11ea-bd20-73c5d15c4dca" } }, "campaign": 1317, "type_id": 1, "labour_uuid": "5b6a2762-8357-11ea-bd20-0384d11c975b", "type_name": "aplicacion", "completion_date": null, "observations": "rolo - front web", "labour_id": 516, "date": "2020-04-20T00:00:00Z", "category_id": null, "category_name": null } ``` #### Error Handling - **0**: Unauthorized - **1**: General Error ``` -------------------------------- ### POST /registro_campo/aplicacion Source: https://developers.auravant.com/docs/apis/reference/api_ref_applications Creates a new application labor record. This endpoint requires the 'Crear actividad en campaña' permission. It allows specifying fields or campaigns, along with details about the inputs used. ```APIDOC ## POST /registro_campo/aplicacion ### Description Creates a new application labor record. This endpoint requires the 'Crear actividad en campaña' permission. It allows specifying fields or campaigns, along with details about the inputs used. ### Method POST ### Endpoint /registro_campo/aplicacion ### Parameters #### Query Parameters None #### Request Body - **uuids** (string array) - Optional - Vector with V1 UUIDs (string) to identify the created labor(s). - **fields** (integer array) - Optional - Vector with field IDs where the labor will be registered. - **campaigns** (integer array) - Optional - Vector with campaign IDs (if no fields are specified). - **yeargroup** (integer) - Optional - Campaign year (YYYY). - **biennial** (boolean) - Optional - Allows defining campaign name as Year/Year+1 (e.g., 2019/20) or YYYY (2019). - **status** (integer) - Optional - Labor status (1: planned, 2: executed, 3: canceled). - **date** (string) - Optional - Date in YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ format. - **completion_date** (string) - Optional - Completion date if the labor is already completed (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SSZ). - **observations** (string) - Optional - Free text field for observations. - **inputs** (array with jsons) - Optional - List of inputs used (see details). - **category** (integer) - Optional - ID of the application type (see application types). *Note: It is mandatory to specify at least one field or at least one campaign to assign the application. Other parameters can be omitted and will be automatically defined by the platform (uuids: auto-generated, yeargroup: current year, biennial: True, status: 2, date: current date, others: NULL). ### Request Example ```json { "fields": [1, 2], "yeargroup": 2023, "status": 2, "date": "2023-10-27", "inputs": [ { "input_id": 101, "quantity": 10, "unit": "kg" } ], "category": 1 } ``` ### Response #### Success Response (200) - **campaigns** (integer array) - IDs of the campaigns associated with the application. - **applications** (integer array) - IDs of the created application labors. - **denied_fields** (integer array) - IDs of fields that were denied. - **inputs** (integer array) - IDs of the inputs used. - **productos** (array with objects) - Details of the products used. - **res** (string) - Success message. - **id_ciclo** (integer) - ID of the cycle. - **id** (integer) - ID of the created application. #### Response Example ```json { "campaigns": [1355, 1356], "applications": [567, 566], "denied_fields": [], "inputs": [1167, 1168, 1165, 1166], "productos": [ { "nombre": null, "id": 1167 }, { "nombre": null, "id": 1168 }, { "nombre": null, "id": 1165 }, { "nombre": null, "id": 1166 } ], "res": "Cosecha creada exitosamente", "id_ciclo": 1355, "id": 567 } ``` #### Error Handling - **Code 1**: Unauthorized. - **Codes 93, 94, 95, 96, 97**: Internal errors during input creation. ``` -------------------------------- ### Get Registered Labor Application (GET) Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour Retrieves a list of registered labor applications for the user. Requires the 'Ver Campaña' functionality. Accepts a 'uuid' parameter in the URL. ```http Content-Type: text/plain GET /registro_campo/aplicacion ``` -------------------------------- ### Get Sowing List (GET) Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour Retrieves a list of sowings with their respective information. Supports filtering by lot, field, year, and crop, as well as ordering and limiting results. ```JavaScript fetch("https://api.auravant.com/api/siembras?id_lote=1000&limit=2",{ method: "GET" }) .then(response => response.json()) .then(result => console.log(result)) ``` -------------------------------- ### Start Subprocess with avt.interface.async_startSubprocess Source: https://developers.auravant.com/docs/sdk/sdk_modules Opens an Auravant feature without closing the current extension. Requires a 'route' parameter specifying the feature's path. ```javascript avt.interface.async_startSubprocess({route: "asd"}) ``` -------------------------------- ### Example Response for Deleting Other Labor Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour An example JSON response confirming the successful deletion of an 'other labor' entry. It includes a success message and the ID and UUID of the labor that was removed. ```json { "result": "labour deleted", "id": 951, "uuid": "65be9cc8-e8bd-11ec-835a-1b84e4d36150" } ``` -------------------------------- ### Eliminar Aplicación Registrada (DELETE) Source: https://developers.auravant.com/docs/apis/reference/api_ref_applications Permite eliminar una aplicación registrada. Requiere la funcionalidad 'Eliminar actividad de campaña'. La aplicación se identifica mediante su UUID o ID. La respuesta indica el estado de la eliminación y el ID de la labor eliminada. ```http DELETE /registro_campo/aplicacion ``` -------------------------------- ### CSV File Format Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_layers Example of a CSV file format for uploading data. It includes latitude, longitude, and two variable columns. The delimiter used is a semicolon. ```csv lat;lon;variable_1;var_2 40.35715828;-89.92172667;35010;25 40.35715828;-89.92172375;35010;15 40.35715825;-89.92172082;35005;10 ``` -------------------------------- ### Instalar i18n para ReactJs Source: https://developers.auravant.com/docs/intro/i18n Comando para instalar las bibliotecas i18next y react-i18next, necesarias para la gestión de traducciones en extensiones de ReactJs. ```bash npm install i18next react-i18next ``` -------------------------------- ### Get Other Labor Types (GET) Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour Retrieves a list of supported labor types for managing 'other labors' that are not seeding, harvesting, or application. The response may not be exhaustive and should be fetched from the endpoint. ```http GET /registro_campo/tipos_labores ``` -------------------------------- ### Example Response for Modifying Other Labor Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour An example JSON response indicating the successful update of an 'other labor' entry. It confirms the status of the update and provides details about any changes made to associated inputs. ```json { "status": "labour updated successfully", "inputs": { "deleted": [], "updated": [], "created": [] }, "uuid": "65be9cc8-e8bd-11ec-835a-1b84e4d36150", "res": "updated", "result": "OK", "id": null } ``` -------------------------------- ### SDK Ready Event Source: https://developers.auravant.com/docs/sdk/sdk_modules The `readySDK` event is triggered when the SDK has finished loading. It's recommended to wait for this event before initializing other parts of your application to ensure all SDK functions are available. ```APIDOC ## Event: readySDK ### Description Fires when the SDK finishes loading. Useful for ensuring SDK functions are available before use. ### Method Event Listener ### Endpoint N/A ### Parameters None ### Request Example N/A ### Response #### Success Response N/A #### Response Example N/A ``` -------------------------------- ### XLSX/XLS File Format Example Source: https://developers.auravant.com/docs/apis/reference/api_ref_layers Example of an XLSX or XLS file format for uploading data. It includes latitude, longitude, and two variable columns. The delimiter used is a pipe symbol. ```plaintext lat| lon| variable_1| var_2 40,35715828| -89,92172667| 35010| 25 40,35715828| -89,92172375| 35010| 15 40,35715825| -89,92172082| 35005| 10 ``` -------------------------------- ### Crear Extensión Básica HTML Source: https://developers.auravant.com/docs/intro/getting_started Este snippet muestra el código HTML mínimo necesario para una extensión simple. Se utiliza como punto de partida para la creación de extensiones en la plataforma Auravant. El archivo 'index.html' contiene una estructura básica de HTML con un encabezado. ```html

Hola mundo!

``` -------------------------------- ### Example Response for Retrieving Other Labor Source: https://developers.auravant.com/docs/apis/reference/api_ref_labour An example JSON response containing the details of a retrieved 'other labor' entry. This includes status, campaign information, cost breakdown, dates, and other relevant attributes of the labor. ```json { "status": 1, "inputs": null, "attachments": "{}", "campaign": 65824, "type_id": 4, "superficie_real": 190.0, "labour_uuid": "65be9cc8-e8bd-11ec-835a-1b84e4d36150", "type_name": "otros labores", "ha_reales": 0.0, "completion_date": null, "costs": { "inputs": {}, "materiales": { "value": 0, "unit": "R$/ha" }, "aplicacion": {}, "mano_de_obra": {}, "seed": {}, "labour": { "labour_type": 0, "value": "0.00", "unit": "R$/ha" } }, "observations": "", "labour_id": 967, "date": "2022-06-08T00:00:00Z", "id_tipo_otro_labor": 2, "unit": "ha", "resources": "{}" } ```