🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@pimex/gateway

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pimex/gateway

Pimex gateway moleculer service

Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
7
Maintainers
2
Weekly downloads
 
Created
Source

Pimex data exporter

Microservice for export data from Pimex in different formarts

Export leads

Export leads from accounts and boards

Formarts

FromXLSXJSONCSV
AccountsXX
BoardsXXX

Installation

  npm install

Config files

All configuration files must be inside the config folder. It is important that this directory is never uploaded to the repository with changes.

config.json

The projec need an config.json file for work.

{
 "paths": {
   "firebase-key": "config/firebase-key.json"
  }
}

.env

Set env variables, the fields with * are required

FieldDescription
ENVProject environment, (production, dev)
PORTPort where the server will start, (3000)
*MONGO_URIMongo DB url, (mongodb://localhost:27017/exports)

API Reference

Export leads from account

  POST /accounts/${accountId}/leads/
ParameterTypeDescription
accountIdstring* Enterprice account ID

Get all exports

  GET /

Get export by Id

  POST /accounts/${exportId}
ParameterTypeDescription
exportIdstring* Export id

Get all exports from account

  GET /accounts/${accountId}
ParameterTypeDescription
accountIdstring* Enterprice account ID

Get all exports from accounts

  GET /accounts

Authors

  • @jquiceno

Keywords

pimex

FAQs

Package last updated on 16 Jul 2021

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