npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pronesoft-rd/ecf-sdk

v0.0.7

Published

OpenAPI client for @pronesoft-rd/ecf-sdk

Readme

@pronesoft-rd/[email protected]

A TypeScript SDK client for the api.ecf.sandbox.pronesoft.com API.

Installation

npm install @pronesoft-rd/ecf-sdk

Recommended usage

This SDK includes an IntegrationClient that manages:

  • OAuth token acquisition
  • token cache
  • automatic refresh on 401

The recommended pattern is:

  1. Create one IntegrationClient for the app or integration.
  2. When the ERP user logs in, resolve the active tenant.
  3. Create a tenant session with startSession(tenantId).
  4. Reuse session.getClient() while that tenant stays active.
import { Environment, IntegrationClient } from "@pronesoft-rd/ecf-sdk";

const integrationClient = new IntegrationClient({
  baseUrl: "https://ecf.sandbox.pronesoft.com",
  clientId: process.env.PRONESOFT_CLIENT_ID!,
  clientSecret: process.env.PRONESOFT_CLIENT_SECRET!,
});

const session = integrationClient.startSession("130862346");
const client = session.getClient();

const response = await client.ecfSubmission.submitEcf({
  environment: Environment.TesteCF,
  electronicDocument: payload,
});

If the user changes company during the ERP session:

session.setCurrentTenant("101234567");
const client = session.getClient();

If you want to work without a session wrapper, you can also create a tenant-scoped client directly:

const client = integrationClient.forTenant("130862346");

Documentation

API Endpoints

All URIs are relative to https://api.ecf.sandbox.pronesoft.com/api/v1

| Class | Method | HTTP request | Description | | --------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------- | ------------------------------------------ | | AssociatedCompaniesApi | createAssociatedCompany | POST /associated-companies | Create associated company / branch | | AssociatedCompaniesApi | deleteAssociatedCompany | DELETE /associated-companies/{companyId} | Delete associated company | | AssociatedCompaniesApi | getCompanyDocumentMetrics | GET /associated-companies/{companyId}/documents-metrics | Get company document metrics | | AssociatedCompaniesApi | getCompanyMetrics | GET /associated-companies/{companyId}/metrics | Get company metrics | | AssociatedCompaniesApi | listAssociatedCompanies | GET /associated-companies | List associated companies / branches | | AssociatedCompaniesApi | updateAssociatedCompany | PUT /associated-companies/{companyId} | Update associated company | | AuthenticationApi | getAccessToken | POST /oauth/token | Get access token (OAuth 2.0) | | AutomatedCertificationApi | downloadCertification | GET /dgii-ecf/automated-certification/{id}/download | Download certification ZIP | | AutomatedCertificationApi | getCertificationStatus | GET /dgii-ecf/automated-certification/{id}/status | Get certification process status | | AutomatedCertificationApi | listCertificationNiches | GET /dgii-ecf/automated-certification/niches | List certification niches | | AutomatedCertificationApi | startCertification | POST /dgii-ecf/automated-certification/start | Start certification process | | CommercialApprovalsApi | listApprovals | GET /documents/approvals/all | List commercial approvals | | DigitalCertificatesApi | uploadCertificate | POST /{rnc}/certificates | Upload digital certificate (P12/PFX) | | DocumentsReceivedApi | getReceivedDocumentStats | GET /documents/received/stats/summary | Get received documents statistics | | DocumentsReceivedApi | listReceivedDocuments | GET /documents/received/all | List received documents | | DocumentsSentApi | downloadDocument | GET /documents/download | Download document XML | | DocumentsSentApi | getDocument | GET /documents/{id} | Get document details | | DocumentsSentApi | getDocumentStats | GET /documents/stats/summary | Get document statistics | | DocumentsSentApi | listSentDocuments | GET /documents/sent | List sent documents | | ECFSubmissionApi | getEcfHistory | GET /{environment}/ecf/responses/history | Get submission history (last 50 documents) | | ECFSubmissionApi | getEcfStats | GET /{environment}/ecf/responses/stats | Get submission statistics (last 30 days) | | ECFSubmissionApi | getEcfStatus | GET /{environment}/ecf/status/{trackId} | Get document status by trackId | | ECFSubmissionApi | submitEcf | POST /{environment}/ecf/submit | Submit e-CF document to DGII | | ReportsApi | export606 | GET /dgii/606/export | Export Format 606 (Purchases) | | ReportsApi | exportSentDocuments | GET /dgii/sent/export | Export sent documents report | | TaxSequencesApi | createTaxSequence | POST /tax-sequences/create | Create new tax sequence | | TaxSequencesApi | getNextNumber | GET /tax-sequences/next | Get next available fiscal number | | TaxSequencesApi | listTaxSequences | GET /tax-sequences | List tax sequences | | TaxSequencesApi | updateTaxSequence | PATCH /tax-sequences/update | Update tax sequence | | TaxSequencesApi | voidTaxSequence | POST /tax-sequences/void | Void a range of fiscal numbers | | WebhookConfigurationApi | getWebhook | GET /{rnc}/webhooks/{webhookId} | Get webhook details | | WebhookConfigurationApi | getWebhookStats | GET /{rnc}/webhooks/{webhookId}/stats | Get webhook delivery statistics | | WebhookConfigurationApi | listWebhooks | GET /{rnc}/webhooks | List webhook configurations |

Models

Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: HTTP Bearer Token authentication (JWT)

oauth2 application

  • Type: OAuth
  • Flow: application
  • Authorization URL:
  • Scopes:
    • business:read: Read company data.
    • business:create: Create a new company.
    • business:update: Update company data.
    • members:read: View team members.
    • members:invite: Invite new members.
    • members:revoke: Revoke member access.
    • certificates:read: View digital certificates.
    • certificates:upload: Upload new certificates.
    • certificates:update: Update existing certificates.
    • documents:read: List and view document details.
    • documents:create: Create drafts or internal documents.
    • documents:send: Submit e-CF to the DGII.
    • documents:receive: Receive e-CF from third parties.
    • documents:update: Modify document metadata.
    • approvals:read: View approval statuses.
    • approvals:commercial: Perform commercial approvals or rejections.
    • sequences:read: View NCF/e-NCF ranges.
    • sequences:create: Request or add new sequences.
    • sequences:update: Modify sequence configurations.
    • sequences:cancel: Cancel unused sequences.
    • business_info:read: Access dashboard statistics and metrics.
    • certification:read: View DGII certification progress.
    • certification:write: Execute automated DGII certification tests.
    • reports:read: Generate and export reports (e.g. format 606).

About

This TypeScript SDK client supports the Fetch API and is automatically generated by the OpenAPI Generator project:

  • API version: 1.2.0
  • Package version: 0.0.6
  • Generator version: 7.21.0
  • Build package: org.openapitools.codegen.languages.TypeScriptFetchClientCodegen

The generated npm module supports the following:

  • Environments
    • Node.js
    • Webpack
    • Browserify
  • Language levels
    • ES5 - you must have a Promises/A+ library installed
    • ES6
  • Module systems
    • CommonJS
    • ES6 module system

For more information, please visit https://pronesoft.com

Development

Building

To build the TypeScript source code, you need to have Node.js and npm installed. After cloning the repository, navigate to the project directory and run:

npm install
npm run build

Publishing

Once you've built the package, you can publish it to npm:

npm publish

License

Proprietary