n8n-nodes-aivencerealtycrm 1.8.2 → 1.8.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -627,8 +627,8 @@ class AivenceRealty {
627
627
  },
628
628
  },
629
629
  options: [
630
- { name: 'Alquiler', value: 'Alquiler' },
631
- { name: 'Compra', value: 'Compra' },
630
+ { name: 'Alquiler', value: 'for_rent' },
631
+ { name: 'Compra', value: 'for_sale' },
632
632
  ],
633
633
  default: '',
634
634
  description: 'Tipo de operación inmobiliaria',
@@ -808,25 +808,6 @@ class AivenceRealty {
808
808
  default: 0,
809
809
  description: 'Precio máximo en USD',
810
810
  },
811
- {
812
- displayName: 'Estado',
813
- name: 'searchEstado',
814
- type: 'options',
815
- displayOptions: {
816
- show: {
817
- resource: ['property'],
818
- operation: ['search'],
819
- },
820
- },
821
- options: [
822
- { name: 'Activo', value: 'activo' },
823
- { name: 'Inactivo', value: 'inactivo' },
824
- { name: 'Vendido', value: 'vendido' },
825
- { name: 'Alquilado', value: 'alquilado' },
826
- ],
827
- default: 'activo',
828
- description: 'Estado de la propiedad',
829
- },
830
811
  {
831
812
  displayName: 'Amenidades',
832
813
  name: 'searchAmenidades',
@@ -1863,10 +1844,10 @@ class AivenceRealty {
1863
1844
  if (propertyId > 0) {
1864
1845
  qs.id = propertyId;
1865
1846
  }
1866
- // Operación (Alquiler/Compra)
1847
+ // Operación -> Estado (Laravel espera "estado": "for_rent" o "for_sale")
1867
1848
  const operacion = this.getNodeParameter('searchOperacion', i, '');
1868
1849
  if (operacion && operacion !== 'NULL' && operacion !== '') {
1869
- qs.operacion = operacion;
1850
+ qs.estado = operacion;
1870
1851
  }
1871
1852
  // Tipo de Propiedad
1872
1853
  const tipoPropiedad = this.getNodeParameter('searchTipoPropiedad', i, '');
@@ -1924,11 +1905,7 @@ class AivenceRealty {
1924
1905
  if (precioMax > 0) {
1925
1906
  qs.precio_maximo = precioMax;
1926
1907
  }
1927
- // Estado
1928
- const estado = this.getNodeParameter('searchEstado', i, 'activo');
1929
- if (estado && estado !== '') {
1930
- qs.estado = estado;
1931
- }
1908
+ // Estado (se ignora - ya enviado desde searchOperacion)
1932
1909
  // Amenidades
1933
1910
  const amenidades = this.getNodeParameter('searchAmenidades', i, '');
1934
1911
  if (amenidades && amenidades !== '' && amenidades !== 'NULL') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-aivencerealtycrm",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "description": "Nodo n8n para integrar el CRM inmobiliario AivenceRealty",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",