Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@elevated-libs/cuss2
Advanced tools
Readme
Interact with a CUSS 2.0 Restful API using a simple interface leveraging the asyncronicity of event driven architectures. By using the Elevated CUSS library you will get:
CUSS (Common Use Self-Service) is a modern Typescript library facilitating application development of Self-Service check-in apps, self-tagging apps and self bag-drop apps.
You can have CUSS 2.0 NOW and run a modern browser entirely without plugins or Java. Finally, your Information Security department will be able to sign off on your CUSS applications.
We have also created typescript angular and react libs facilitating rapid development of CUSS applications.
The library and corresponding app platform also ensure backwards compatibility to legacy 1.X versions of CUSS.
While you are developing your application, you can use the Elevated CUSS Sandbox to test against real platform responses. Watch your application respond correctly to CUSS Events like a paper jam or a required device unavailable.
Request an access token from the Elevation Software Team.
Generate an .npmrc
file and add the token to this file.
To install the lib run:
npm install @elevated-libs/cuss2
To begin using the library, you will need to import the library into your project and set up a connection.
import { Cuss2 } from "@elevated-libs/cuss2";
const serviceState: { ref: Cuss2 | any} = { ref: null };
const connect = async (cuss2URL: string, clientId: string, clientSecret: string): Promise<Cuss2 | null> => {
// Avoid multiple subscriptions
if (serviceState.ref) {
return serviceState.ref;
}
const ref = await Cuss2.connect(cuss2URL, clientId, clientSecret);
serviceState.ref = ref;
return ref;
};
// Connect to cuss2 Platform
const { clientId, clientSecret, platformURL } = platformConfig;
connect(platformURL, clientId, clientSecret)
.then(checkDevices)
.catch(connectionFailure);
Below are the methods you can use to interact with the CUSS 2.0 API and a list of components.
Method | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
announcement(componentID, rawData) |
| ||||||||||
cancel(componentID) | Sends a cancel command to a given component (device). | ||||||||||
checkRequiredComponentsAndSyncState() | Check if all required components are available and move application to the appropriate state based on status. | ||||||||||
connect(url, client_id, client_secret, options opt) | Connect to the cuss platform. | ||||||||||
disable(componentID) | Sends disable command to a given component (device). | ||||||||||
enable(componentID) | Sends enable command to a given component (device). | ||||||||||
getComponents() | Get a list of components. | ||||||||||
getEnvironment() | Get the current environment level. | ||||||||||
getStatus(componentID) | Get the status of a given component (device). | ||||||||||
queryComponents() | Query each component for its current state. | ||||||||||
requestActiveState() | Request the platform to change the application state to Active state. | ||||||||||
requestReload() | Request the platform to reload the application. | ||||||||||
setup(componentID, dataExchange) | Send setup instructions to a given component (device). | ||||||||||
staterequest(state, reasonCode, reason) | Sends request to the platform for the application to change states. | ||||||||||
authorize(url, client_id, client_secret, timeout) | Retrieve a token from the CUSS Oauth Server using a client id and client secret. | ||||||||||
connect(baseURL, client_id, client_secret, tokenURL) | Connects to a CUSS Platform at the provided URL. |
Components | Description |
---|---|
Announcement | A component that announces messages. |
BagTagPrinter | A component that prints bag tags. |
BarcodeReader | A component that reads barcodes. |
BoardingPassPrinter | A component that prints boarding passes. |
CardReader | A component that reads cards. |
Dispenser | A part of a printer that dispenses printed media. |
DocumentReader | A component that reads documents. |
Feeder | A part of a printer that feeds paper. |
Headset | A component that provides audio feedback. |
Illumination | A component that controls illumination. |
Keypad | A component that provides keypad input. |
FAQs
## About Elevated CUSS Library
The npm package @elevated-libs/cuss2 receives a total of 23 weekly downloads. As such, @elevated-libs/cuss2 popularity was classified as not popular.
We found that @elevated-libs/cuss2 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.