n8n-nodes-aivencerealtycrm 1.8.0 → 1.8.2

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.
@@ -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',
@@ -1820,7 +1890,30 @@ class AivenceRealty {
1820
1890
  // Baños
1821
1891
  const banos = this.getNodeParameter('searchBanos', i, 0);
1822
1892
  if (banos > 0) {
1823
- qs.banos = banos;
1893
+ qs.banos_minimo = banos;
1894
+ }
1895
+ // Ambientes
1896
+ const ambientesMin = this.getNodeParameter('searchAmbientesMin', i, 0);
1897
+ if (ambientesMin > 0) {
1898
+ qs.ambientes_minimo = ambientesMin;
1899
+ }
1900
+ const ambientesMax = this.getNodeParameter('searchAmbientesMax', i, 0);
1901
+ if (ambientesMax > 0) {
1902
+ qs.ambientes_maximo = ambientesMax;
1903
+ }
1904
+ // Área (Superficie)
1905
+ const areaMin = this.getNodeParameter('searchAreaMin', i, 0);
1906
+ if (areaMin > 0) {
1907
+ qs.area_minima = areaMin;
1908
+ }
1909
+ const areaMax = this.getNodeParameter('searchAreaMax', i, 0);
1910
+ if (areaMax > 0) {
1911
+ qs.area_maxima = areaMax;
1912
+ }
1913
+ // Moneda
1914
+ const moneda = this.getNodeParameter('searchMoneda', i, 'USD');
1915
+ if (moneda && moneda !== '') {
1916
+ qs.moneda = moneda;
1824
1917
  }
1825
1918
  // Precio
1826
1919
  const precioMin = this.getNodeParameter('searchPrecioMin', i, 0);
@@ -1839,7 +1932,8 @@ class AivenceRealty {
1839
1932
  // Amenidades
1840
1933
  const amenidades = this.getNodeParameter('searchAmenidades', i, '');
1841
1934
  if (amenidades && amenidades !== '' && amenidades !== 'NULL') {
1842
- qs.amenidades = amenidades;
1935
+ // Convertir string "pileta,balcon,cochera" a array ["pileta", "balcon", "cochera"]
1936
+ qs.amenities = amenidades.split(',').map(a => a.trim()).filter(a => a);
1843
1937
  }
1844
1938
  responseData = await this.helpers.httpRequest({
1845
1939
  method: 'GET',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-aivencerealtycrm",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Nodo n8n para integrar el CRM inmobiliario AivenceRealty",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",