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

warehouse.ai-status-models

Package Overview
Dependencies
Maintainers
6
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

warehouse.ai-status-models

models for warehouse.ai-status-api

  • 2.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

warehouse.ai-status-models

Version npm License npm Downloads Build Status Dependencies

Datastar models for the Warehouse.ai-status-api.

Install

npm install warehouse.ai-status-models --save

Usage

const dynamoClient = new AWS.DynamoDB({ /* connection config */ });
const dynamodb = require('dynamodb');
dynamodb.dynamoDriver(dynamoClient);
const models = require('warehouse.ai-status-models')(dynamodb);

// from dynastar.define we get...
const Status = models.Status;

Status.findOne({ ... }).then(res => { ... }).catch(err => { ... });

API

All schemas for the API documentation are written using Joi notation.

Schemas

Status (Status)

Generic status information

ColumnTypeSummary
pkg (pk)stringName of a package
env (pk)stringWhat environment is this build made for (dev, test, etc.)
version (pk)stringWhat version of a package does this status represent
previousVersionstringThe previous version number
totalnumberTotal progress as percentage
errorbooleanDid the build error
createdAttimestampTime of creation
updatedAttimestampTime of last update
completebooleanDid the build complete

StatusHead (StatusHead)

Generic status information but just for he latest version for a given pkg and env. Refer to the table above for details. The properties error and complete do not exist on this table.

StatusEvent (StatusEvent)

A detailed event for the various stages of a build process containing message and optional details properties as well as locale and whether it is and error or not.

ColumnTypeSummary
pkg (pk)stringName of a package
env (pk)stringWhat environment is this build made for (dev, test, etc.)
version (pk)stringWhat version of a package does this status represent
localestringBuild locale
errorbooleanIs the status event an error
messagestringStatus message
detailsstringMessage details
createdAttimestampTime of creation
eventIdstring (timeUUID)Unique id sortable by time

StatusCounter (StatusCounter)

A simple distributed counter model that is incremented when a locale build has completed in order to compute progress based on total amount of locales.

ColumnTypeSummary
pkg (pk)stringName of a package
env (pk)stringWhat environment is this build made for (dev, test, etc.)
version (pk)stringWhat version of a package does this status represent
countcounterIncrementable counter

Test

Before running tests, spin up an instance of localstack by running

npm run localstack

Then run:

npm test

Keywords

FAQs

Package last updated on 12 Nov 2019

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