
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
warehouse.ai-status-models
Advanced tools
Datastar models for the Warehouse.ai-status-api.
npm install warehouse.ai-status-models --save
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 => { ... });
All schemas for the API documentation are written using Joi notation.
Status
)Generic status information
Column | Type | Summary |
---|---|---|
pkg (pk) | string | Name of a package |
env (pk) | string | What environment is this build made for (dev, test, etc.) |
version (pk) | string | What version of a package does this status represent |
previousVersion | string | The previous version number |
total | number | Total progress as percentage |
error | boolean | Did the build error |
createdAt | timestamp | Time of creation |
updatedAt | timestamp | Time of last update |
complete | boolean | Did the build complete |
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
)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.
Column | Type | Summary |
---|---|---|
pkg (pk) | string | Name of a package |
env (pk) | string | What environment is this build made for (dev, test, etc.) |
version (pk) | string | What version of a package does this status represent |
locale | string | Build locale |
error | boolean | Is the status event an error |
message | string | Status message |
details | string | Message details |
createdAt | timestamp | Time of creation |
eventId | string (timeUUID) | Unique id sortable by time |
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
.
Column | Type | Summary |
---|---|---|
pkg (pk) | string | Name of a package |
env (pk) | string | What environment is this build made for (dev, test, etc.) |
version (pk) | string | What version of a package does this status represent |
count | counter | Incrementable counter |
Before running tests, spin up an instance of localstack by running
npm run localstack
Then run:
npm test
2.0.3
^1.2.0
FAQs
models for warehouse.ai-status-api
We found that warehouse.ai-status-models demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.