1.8.1 • Published 1 month ago

@digiserve/ab-utils v1.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 month ago

CodeQL Unit npm (scoped)

ab-utils

a set of common utilities shared by each of our microsservices

ab-utils.service ⇐ EventEmitter

Our ABService class

Kind: static class of ab-utils
Extends: EventEmitter
See: ABService

new service(options)

ParamTypeDefault
optionsobj
options.namestring"ABService"

Example

const AB = require("ab.utils");
const options = { name: "myService"};
const service = new AB.service(options);

ab-utils.uuid() ⇒ string

This is an alias for uuid.v4()

Kind: static method of ab-utils
Returns: string - uuid
See: uuid - npm

ab-utils.config(key) ⇒ object

Kind: static method of ab-utils
Returns: object - baseConfig

ParamTypeDescription
keystringoptional a subportion of the configs specified

ab-utils.controller(key) ⇒ ABServiceController

Get an AppBuilder Controller for use in our micro services

Kind: static method of ab-utils

ParamTypeDefault
keystring"ABServiceController"

ab-utils.telemetry() ⇒ Telemetry

Get the telemetry interface

Kind: static method of ab-utils

ab-utils.reqApi(req, res, config) ⇒ ABRequestAPI

prepare a default set of data/utilities for our api request. This request is established in the Sails api_sails service and is used to verify and send jobs to various micro services.

Kind: static method of ab-utils

ParamTypeDefault
reqobj
resobj
configobj{}

ab-utils.reqService(req, controller) ⇒ ABRequestService

return a modified req object that supports our typical AB functions.

Kind: static method of ab-utils

ParamTypeDescription
reqobjthe standard request object received from the Cote service.
controllerABServiceController

ab-utils.resApi(req, res) ⇒ ABResponseAPI

prepare a default set of data/utilities for our api response.

Kind: static method of ab-utils

ParamType
reqobject
resobject

Classes

1.8.1

1 month ago

1.8.0

2 months ago

1.7.7

2 months ago

1.7.6

5 months ago

1.7.3

6 months ago

1.7.2

6 months ago

1.7.1

6 months ago

1.5.3

10 months ago

1.7.0

6 months ago

1.6.1

7 months ago

1.6.0

10 months ago

1.7.5

6 months ago

1.7.4

6 months ago

1.5.2

11 months ago

1.4.3

12 months ago

1.5.1

11 months ago

1.4.2

12 months ago

1.5.0

11 months ago

1.4.1

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.0

1 year ago

0.0.0

1 year ago