evaluation-product-common-functions
evaluation-product-common-functions is a JavaScript library for internal uses. You're probably by mistake here. Have a nice day and good bye!
Installation
Use the package manager npm to install this library.
npm install evaluation-product-common-functions -s
Usage
const { SDK } = require('evaluation-product-common-functions');
SDK.updateConfig({
applicationKey: "your-application-key",
clientId: "your-client-id"
});
Functions tree
- SDK
|-- applications
|-- get(params?)
|-- getById(id)
|-- update(id, data)
|-- delete(id)
|-- submit(data)
- Response Factory
|-- ok(data, isArray, message)
|-- obj(data, message)
|-- array(data, message)
|-- msg(message)
|-- error(err)
- DB
|-- getItems(model, query)
|-- deleteItem(item)
- RequestUtils
|-- isProduction(request)
|-- checkAccess(request, dynamoose)
|-- getApplicationKeyFromRequest(request)
|-- getClientIdFromRequest(request)
|-- getPrefix(request)
|-- serialize(object)
|-- getQueryParams(request, schema)