Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

es-dsn-proxy

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-dsn-proxy

Similar to: http://github.com/payfit/dsn-proxy

  • 1.7.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

[ES] DSN proxy

Similar to: http://github.com/payfit/dsn-proxy

Description

This service listen messages from a channel NSQ: declaration-generated These messages (containing declaration ids) are processed following these steps:

  • A call is made to app.payfit.com to get the declaration from its id
  • This declaration's json field is transformed into XML
  • This XML is ran by IRPF's java module (provided by Spain government)
  • This module outputs a new XML that is read/transformed into JSON
  • This JSON is used to update corresponding Jetlang's variables, by calling app.payfit.com
  • In case of error: the declaration's json field is updated

Installation

You have two choices to run this project:

  • Use docker
  • Install dependencies locally

Docker (easy)

Run docker-compose up --build

The app will be available on port 3220

Locally

Install the JDK: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html

Install dependencies: npm i

Run the app: npm run dev

Routes

POST /getRawDocument
[{
  "identifier": "parent",
  "values": [
    {
      "identifier": "children1",
      "value": "..."
    },
    {
      "identifier": "children2",
      "values": [
        ...
      ]
    }
  ]
}]
POST /validate
{
  "declarationId": "a declaration id in string format" // Example: "5a68a92dbb29d4022433e4db"
}

/getRawDocument

The submitted JSON must respect the following structure:

[{
  "identifier": "parent",
  "values": [
    {
      "identifier": "children1",
      "value": "..."
    },
    {
      "identifier": "children2",
      "values": [
        ...
      ]
    }
  ]
}]

It must have a parent, and can have an inifinite number of children / nesting levels.

FAQs

Package last updated on 11 Mar 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc