1.2.0 • Published 2 years ago

bafa-fetch v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

bafa-fetch

npm npm License

Node.js library to fetch requests of BAFA Portal.

Installing

Using npm:

$ npm install bafa-fetch

Once the package is installed, you can import the function:

import { getRequests } from './bafa-fetch.mjs';

Usage

const { data, status, error } = await getRequests({
    email: 'someone@example.com',
    password: '****'
}, {
    lang: 'de'
});

See example.mjs to get an insight.

Result

{
    "count": 1,
    "data": [
        {
            "vorgangsnummer": "...",
            "kennzeichen": "...",
            "status": { "key": "5", "description": "Proof of use in progress" },
            "antragsteller": "Surname, First name",
            "viewLink": "...",
            "editLink": null,
            "uploadLink": "https://fms.bafa.de/BafaFrame/upload?themenbereich=...&vorgangsnummer=...",
            "submitVnLink": null,
            "viewVnLink": "...",
            "standort": "Postal code City, Adress line 1",
            "antragsdatum": "YYYY-MM-DD",
            "vnSubmitted": true,
            "zwbDatum": "YYYY-MM-DD",
            "isBevollmaechtigter": 0,
            "bevollmaechtigter": 0
        }
    ]
}

License

This project is licensed under MIT.

1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago