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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@datafire/digitallinguistics

v4.0.0

Published

DataFire integration for DLx

Downloads

1

Readme

@datafire/digitallinguistics

Client library for DLx

Installation and Usage

npm install --save @datafire/digitallinguistics
let digitallinguistics = require('@datafire/digitallinguistics').create({
  Authorization: ""
});

.then(data => {
  console.log(data);
});

Description

The Digital Linguistics (DLx) REST API

Actions

getLanguages

Retrieves all the Languages that the authenticated user or client has permission to access.

digitallinguistics.getLanguages({}, context)

Input

  • input object
    • continuation string: The dlx-continuation header is used to send a continuation token with the request, when retrieving the next page of results.
    • deleted boolean: Setting the deleted option to true will return results that have been marked for deletion, but not yet deleted from the database. Otherwise requests for a resource marked for deletion will return a 410 error.
    • ifModifiedSince string: The If-Modified-Since header is used to retrieve only results modified since a given time. The value of this header must be a valid date string.
    • maxItemCount string: The dlx-max-item-count header is used to limit the number of results to a certain amount at a time (by default all results will be returned). If there are more results to be returned, a continuation token will also be sent in the dlx-continuation header.
    • public string: Set this parameter to true to include all publicly-accessible resources, not just those that the user is listed as an Owner, Contributor, or Viewer for.

Output

Output schema unknown

addLanguage

Add a new Language

digitallinguistics.addLanguage({
  "body": {}
}, context)

Input

  • input object
    • body required object

Output

Output schema unknown

upsertLanguage

Creates a Language if it does not yet exist (i.e. if the resource does not have an id property yet), or replaces the existing Language resource if it does. Note that this replaces the entire Language. It is not a partial update.

digitallinguistics.upsertLanguage({
  "body": {}
}, context)

Input

  • input object
    • body required object
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

deleteLanguage

Delete a Language by ID

digitallinguistics.deleteLanguage({
  "languageID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

getLanguage

Retrieve a Language by ID

digitallinguistics.getLanguage({
  "languageID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • deleted boolean: Setting the deleted option to true will return results that have been marked for deletion, but not yet deleted from the database. Otherwise requests for a resource marked for deletion will return a 410 error.
    • ifNoneMatch string: If If-None-Match header is used with GET requests to check whether you already have the most up-to-date version of the resource, and therefore do not need the resource sent again. The value of the If-None-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to reduce bandwidth.

Output

Output schema unknown

updateLanguage

Performs a partial update the Language whose ID is specified in the URL. If the Language object has an id property, is ignored in favor of the ID in the URL.

digitallinguistics.updateLanguage({
  "languageID": "",
  "body": {}
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • body required object
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

getLexemesByLanguage

Get all Lexemes for a Language

digitallinguistics.getLexemesByLanguage({
  "languageID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • continuation string: The dlx-continuation header is used to send a continuation token with the request, when retrieving the next page of results.
    • deleted boolean: Setting the deleted option to true will return results that have been marked for deletion, but not yet deleted from the database. Otherwise requests for a resource marked for deletion will return a 410 error.
    • ifModifiedSince string: The If-Modified-Since header is used to retrieve only results modified since a given time. The value of this header must be a valid date string.
    • maxItemCount string: The dlx-max-item-count header is used to limit the number of results to a certain amount at a time (by default all results will be returned). If there are more results to be returned, a continuation token will also be sent in the dlx-continuation header.
    • public string: Set this parameter to true to include all publicly-accessible resources, not just those that the user is listed as an Owner, Contributor, or Viewer for.

Output

Output schema unknown

addLexemeByLanguage

Add a new Lexeme to a Language

digitallinguistics.addLexemeByLanguage({
  "languageID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on

Output

Output schema unknown

upsertLexemeByLanguage

Upsert (add or replace) a Lexeme

digitallinguistics.upsertLexemeByLanguage({
  "languageID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

deleteLexemeByLanguage

Delete a Lexeme by ID

digitallinguistics.deleteLexemeByLanguage({
  "languageID": "",
  "lexemeID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • lexemeID required string: The ID of the Lexeme to perform the operation on
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

getLexemeByLanguage

Get a Lexeme by ID

digitallinguistics.getLexemeByLanguage({
  "languageID": "",
  "lexemeID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • lexemeID required string: The ID of the Lexeme to perform the operation on
    • deleted boolean: Setting the deleted option to true will return results that have been marked for deletion, but not yet deleted from the database. Otherwise requests for a resource marked for deletion will return a 410 error.
    • ifNoneMatch string: If If-None-Match header is used with GET requests to check whether you already have the most up-to-date version of the resource, and therefore do not need the resource sent again. The value of the If-None-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to reduce bandwidth.

Output

Output schema unknown

updateLexemeByLanguage

Perform a partial update on a Lexeme

digitallinguistics.updateLexemeByLanguage({
  "languageID": "",
  "lexemeID": ""
}, context)

Input

  • input object
    • languageID required string: The ID of the Language to perform the operation on
    • lexemeID required string: The ID of the Lexeme to perform the operation on
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

getLexemes

Retrieve all Lexemes that the authenticated user has permission to access. Include a languageID query parameter to limit results to Lexemes from a particular Language.

digitallinguistics.getLexemes({}, context)

Input

  • input object
    • continuation string: The dlx-continuation header is used to send a continuation token with the request, when retrieving the next page of results.
    • deleted boolean: Setting the deleted option to true will return results that have been marked for deletion, but not yet deleted from the database. Otherwise requests for a resource marked for deletion will return a 410 error.
    • ifModifiedSince string: The If-Modified-Since header is used to retrieve only results modified since a given time. The value of this header must be a valid date string.
    • languageID string: The ID of the Language to perform the operation on
    • maxItemCount string: The dlx-max-item-count header is used to limit the number of results to a certain amount at a time (by default all results will be returned). If there are more results to be returned, a continuation token will also be sent in the dlx-continuation header.
    • public string: Set this parameter to true to include all publicly-accessible resources, not just those that the user is listed as an Owner, Contributor, or Viewer for.

Output

Output schema unknown

addLexeme

Add a new Lexeme. A languageID must be provided either as a query parameter, or as an attribute on the Lexeme body.

digitallinguistics.addLexeme({}, context)

Input

  • input object
    • languageID string: The ID of the Language to perform the operation on

Output

Output schema unknown

upsertLexeme

Upsert (add or replace) a Lexeme. A languageID must be provided either as a query parameter, or as an attribute on the Lexeme body.

digitallinguistics.upsertLexeme({}, context)

Input

  • input object
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.
    • languageID string: The ID of the Language to perform the operation on

Output

Output schema unknown

deleteLexeme

Delete a Lexeme by ID

digitallinguistics.deleteLexeme({
  "lexemeID": ""
}, context)

Input

  • input object
    • lexemeID required string: The ID of the Lexeme to perform the operation on
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

getLexeme

Get a Lexeme by ID

digitallinguistics.getLexeme({
  "lexemeID": ""
}, context)

Input

  • input object
    • lexemeID required string: The ID of the Lexeme to perform the operation on
    • deleted boolean: Setting the deleted option to true will return results that have been marked for deletion, but not yet deleted from the database. Otherwise requests for a resource marked for deletion will return a 410 error.
    • ifNoneMatch string: If If-None-Match header is used with GET requests to check whether you already have the most up-to-date version of the resource, and therefore do not need the resource sent again. The value of the If-None-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to reduce bandwidth.

Output

Output schema unknown

updateLexeme

Perform a partial update on a Lexeme.

digitallinguistics.updateLexeme({
  "lexemeID": ""
}, context)

Input

  • input object
    • lexemeID required string: The ID of the Lexeme to perform the operation on
    • ifMatch string: The If-Match header is used with PUT and DELETE requests to check whether you have the most up-to-date version of the resource before updating or deleting it. The value of the If-Match header is the ETag (_etag) property of the resource. It is recommended that your application use this header whenever possible to avoid data conflicts.

Output

Output schema unknown

Definitions

This integration has no definitions