n8n-nodes-aivencerealtycrm 1.8.2 → 1.8.3

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',
@@ -819,12 +819,14 @@ class AivenceRealty {
819
819
  },
820
820
  },
821
821
  options: [
822
- { name: 'Activo', value: 'activo' },
823
- { name: 'Inactivo', value: 'inactivo' },
824
- { name: 'Vendido', value: 'vendido' },
825
- { name: 'Alquilado', value: 'alquilado' },
822
+ { name: 'En Venta', value: 'for_sale' },
823
+ { name: 'En Alquiler', value: 'for_rent' },
824
+ { name: 'Vendido', value: 'sold' },
825
+ { name: 'Alquilado', value: 'rented' },
826
+ { name: 'Pendiente', value: 'pending' },
827
+ { name: 'Reservado', value: 'reserved' },
826
828
  ],
827
- default: 'activo',
829
+ default: 'for_sale',
828
830
  description: 'Estado de la propiedad',
829
831
  },
830
832
  {
@@ -1863,10 +1865,10 @@ class AivenceRealty {
1863
1865
  if (propertyId > 0) {
1864
1866
  qs.id = propertyId;
1865
1867
  }
1866
- // Operación (Alquiler/Compra)
1868
+ // Operación -> Estado (Laravel espera "estado": "for_rent" o "for_sale")
1867
1869
  const operacion = this.getNodeParameter('searchOperacion', i, '');
1868
1870
  if (operacion && operacion !== 'NULL' && operacion !== '') {
1869
- qs.operacion = operacion;
1871
+ qs.estado = operacion;
1870
1872
  }
1871
1873
  // Tipo de Propiedad
1872
1874
  const tipoPropiedad = this.getNodeParameter('searchTipoPropiedad', i, '');
@@ -1924,11 +1926,7 @@ class AivenceRealty {
1924
1926
  if (precioMax > 0) {
1925
1927
  qs.precio_maximo = precioMax;
1926
1928
  }
1927
- // Estado
1928
- const estado = this.getNodeParameter('searchEstado', i, 'activo');
1929
- if (estado && estado !== '') {
1930
- qs.estado = estado;
1931
- }
1929
+ // Estado (se ignora - ya enviado desde searchOperacion)
1932
1930
  // Amenidades
1933
1931
  const amenidades = this.getNodeParameter('searchAmenidades', i, '');
1934
1932
  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.3",
4
4
  "description": "Nodo n8n para integrar el CRM inmobiliario AivenceRealty",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",