n8n-nodes-aivencerealtycrm 1.8.1 → 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',
@@ -712,6 +712,76 @@ class AivenceRealty {
712
712
  default: 0,
713
713
  description: 'Cantidad de baños',
714
714
  },
715
+ {
716
+ displayName: 'Ambientes Mínimo',
717
+ name: 'searchAmbientesMin',
718
+ type: 'number',
719
+ displayOptions: {
720
+ show: {
721
+ resource: ['property'],
722
+ operation: ['search'],
723
+ },
724
+ },
725
+ default: 0,
726
+ description: 'Cantidad mínima de ambientes',
727
+ },
728
+ {
729
+ displayName: 'Ambientes Máximo',
730
+ name: 'searchAmbientesMax',
731
+ type: 'number',
732
+ displayOptions: {
733
+ show: {
734
+ resource: ['property'],
735
+ operation: ['search'],
736
+ },
737
+ },
738
+ default: 0,
739
+ description: 'Cantidad máxima de ambientes',
740
+ },
741
+ {
742
+ displayName: 'Área Mínima (m²)',
743
+ name: 'searchAreaMin',
744
+ type: 'number',
745
+ displayOptions: {
746
+ show: {
747
+ resource: ['property'],
748
+ operation: ['search'],
749
+ },
750
+ },
751
+ default: 0,
752
+ description: 'Superficie mínima en metros cuadrados',
753
+ },
754
+ {
755
+ displayName: 'Área Máxima (m²)',
756
+ name: 'searchAreaMax',
757
+ type: 'number',
758
+ displayOptions: {
759
+ show: {
760
+ resource: ['property'],
761
+ operation: ['search'],
762
+ },
763
+ },
764
+ default: 0,
765
+ description: 'Superficie máxima en metros cuadrados',
766
+ },
767
+ {
768
+ displayName: 'Moneda',
769
+ name: 'searchMoneda',
770
+ type: 'options',
771
+ displayOptions: {
772
+ show: {
773
+ resource: ['property'],
774
+ operation: ['search'],
775
+ },
776
+ },
777
+ options: [
778
+ { name: 'USD', value: 'USD' },
779
+ { name: 'ARS', value: 'ARS' },
780
+ { name: 'EUR', value: 'EUR' },
781
+ ],
782
+ default: 'USD',
783
+ description: 'Moneda para los precios',
784
+ },
715
785
  {
716
786
  displayName: 'Precio Mínimo',
717
787
  name: 'searchPrecioMin',
@@ -749,12 +819,14 @@ class AivenceRealty {
749
819
  },
750
820
  },
751
821
  options: [
752
- { name: 'Activo', value: 'activo' },
753
- { name: 'Inactivo', value: 'inactivo' },
754
- { name: 'Vendido', value: 'vendido' },
755
- { 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' },
756
828
  ],
757
- default: 'activo',
829
+ default: 'for_sale',
758
830
  description: 'Estado de la propiedad',
759
831
  },
760
832
  {
@@ -1793,10 +1865,10 @@ class AivenceRealty {
1793
1865
  if (propertyId > 0) {
1794
1866
  qs.id = propertyId;
1795
1867
  }
1796
- // Operación (Alquiler/Compra)
1868
+ // Operación -> Estado (Laravel espera "estado": "for_rent" o "for_sale")
1797
1869
  const operacion = this.getNodeParameter('searchOperacion', i, '');
1798
1870
  if (operacion && operacion !== 'NULL' && operacion !== '') {
1799
- qs.operacion = operacion;
1871
+ qs.estado = operacion;
1800
1872
  }
1801
1873
  // Tipo de Propiedad
1802
1874
  const tipoPropiedad = this.getNodeParameter('searchTipoPropiedad', i, '');
@@ -1820,7 +1892,30 @@ class AivenceRealty {
1820
1892
  // Baños
1821
1893
  const banos = this.getNodeParameter('searchBanos', i, 0);
1822
1894
  if (banos > 0) {
1823
- qs.banos = banos;
1895
+ qs.banos_minimo = banos;
1896
+ }
1897
+ // Ambientes
1898
+ const ambientesMin = this.getNodeParameter('searchAmbientesMin', i, 0);
1899
+ if (ambientesMin > 0) {
1900
+ qs.ambientes_minimo = ambientesMin;
1901
+ }
1902
+ const ambientesMax = this.getNodeParameter('searchAmbientesMax', i, 0);
1903
+ if (ambientesMax > 0) {
1904
+ qs.ambientes_maximo = ambientesMax;
1905
+ }
1906
+ // Área (Superficie)
1907
+ const areaMin = this.getNodeParameter('searchAreaMin', i, 0);
1908
+ if (areaMin > 0) {
1909
+ qs.area_minima = areaMin;
1910
+ }
1911
+ const areaMax = this.getNodeParameter('searchAreaMax', i, 0);
1912
+ if (areaMax > 0) {
1913
+ qs.area_maxima = areaMax;
1914
+ }
1915
+ // Moneda
1916
+ const moneda = this.getNodeParameter('searchMoneda', i, 'USD');
1917
+ if (moneda && moneda !== '') {
1918
+ qs.moneda = moneda;
1824
1919
  }
1825
1920
  // Precio
1826
1921
  const precioMin = this.getNodeParameter('searchPrecioMin', i, 0);
@@ -1831,11 +1926,7 @@ class AivenceRealty {
1831
1926
  if (precioMax > 0) {
1832
1927
  qs.precio_maximo = precioMax;
1833
1928
  }
1834
- // Estado
1835
- const estado = this.getNodeParameter('searchEstado', i, 'activo');
1836
- if (estado && estado !== '') {
1837
- qs.estado = estado;
1838
- }
1929
+ // Estado (se ignora - ya enviado desde searchOperacion)
1839
1930
  // Amenidades
1840
1931
  const amenidades = this.getNodeParameter('searchAmenidades', i, '');
1841
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.1",
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",