Socket
Book a DemoInstallSign in
Socket

@rededor/search-api-sdk

Package Overview
Dependencies
Maintainers
13
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rededor/search-api-sdk

SDK para api de proxy para dados do Algolia

latest
npmnpm
Version
1.0.2
Version published
Maintainers
13
Created
Source

Search API Javascript SDK

Biblioteca para consumo da Search API para consultas cacheadas ao Algolia.

O construtor recebe 3 parâmetros:

  • environment: development (default) | staging | production.
  • application: identificação da aplicação. Ex: portal-rdsl, agendamento-consultas-frontend, etc.
  • clientId: Sensedia client ID.

Utilização:

Instale o pacote npm i @rededor/search-api-sdk.

  import { SearchAPISDK } from "./index.js";

  const searchAPI = new SearchAPISDK('development', 'testing-application', '100f5ff2-f31f-4606-86cc-23323323');
  const test = async() => {
    const result = await searchAPI.search([{
      "indexName": "prd_medicos_site",
      "query": "Latif",
      "params": { 
          "page": 0,
          "hitsPerPage": 100,
          "filters": "UNIDADES.FLAG_UNIDADE_ATIVA_AGENDAMENTO:S AND (UNIDADES.ID_DQ_FRENTE_NEGOCIOS:1 OR UNIDADES.ID_DQ_FRENTE_NEGOCIOS:8)"
    
      }
    }])
    return result;
  }

FAQs

Package last updated on 06 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts