1.1.2 • Published 4 years ago

evaluation-product-common-functions v1.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

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)
1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago