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

@veriterra/report

v1.0.5

Published

VeriTerra Reporting SDK

Readme

VeriTerra Report SDK

This package provides a TypeScript SDK for interacting with the VeriTerra Reporting API.

Installation

npm install @veriterra/report

Usage

Important: ReportService is designed to run only in Node.js environments and will throw an error if instantiated in a browser environment.

import { ReportService } from '@veriterra/report';

// Initialize the service (only in Node.js environment)
const reportService = new ReportService(
  'https://reporter.api.dynamics.co.uk',
  'DOMAIN',
  'GUID'
);

// Login to get a token
const loginResponse = await reportService.loginAsync();

// Insert title map data
const titleMapData = {
  id: 'your-id',
  salesOrderId: 'SO-000121',
  mapUrl: 'https://example.com/map.jpg',
  northing: '348267.3',
  easting: '170231.44',
  scale: '1:800',
  dataCreated: '04/06/2025 01:24:29',
  createdBy: 'Your Name',
  searchAddress: {
    buildingNumber: '',
    buildingName: 'WILLOWBANK',
    roadName: 'WILLOWMEAD DRIVE',
    town: 'MACCLESFIELD',
    postcode: 'SK10 4BU',
    wkt: '',
    polygonRawData: '',
    organisationName: '',
    subBuildingName: '',
    locality: ''
  }
};

const insertResponse = await reportService.insertTitleMapDataAsync(titleMapData);
console.log(insertResponse);

// Generate and upload a report in one step
// This method handles the entire process: inserting data, generating the report, and uploading it
const reportUrl = await reportService.generateAndUploadReportAsync(titleMapData);
console.log(`Report uploaded to: ${reportUrl}`);

Testing

This project includes both mocked tests and real API tests.

Running Tests

To run all tests:

npm test

To run only the mocked tests (faster, no real API calls):

npm run test:mock

To run only the real API tests (requires valid credentials):

npm run test:real

To run a standalone test for the generateAndUploadReportAsync method with real API calls:

npm run test:generate-upload

This standalone test avoids the circular reference issues that can occur when testing stream operations in Jest, and provides detailed logging of the process.

Test Files

  • __tests__/GenerateAndUploadReportAsync.test.ts: Tests specifically for the generateAndUploadReportAsync method

Development

# Install dependencies
npm install

# Build the project
npm run build

# Run tests
npm test

License

Proprietary Software – All Rights Reserved

This software is the intellectual property of Veriland Consulting Ltd. and is protected by copyright laws and international treaties.

By installing, copying, accessing, or otherwise using the VeriTerra Report SDK, you agree to be bound by the following terms:

  • Unauthorised use, copying, modification, or distribution is strictly prohibited.
  • This software is provided exclusively to licensed customers and integration partners of Veriland Consulting Ltd.
  • You may not reverse engineer, decompile, or disassemble any part of this software.
  • You may not sublicence, rent, lease, or otherwise transfer access to this software without explicit, written permission.
  • This SDK is not open source, and no rights are granted beyond what is explicitly authorised in your commercial agreement.

For licencing, support, or commercial enquiries, contact:

📧 [email protected]