
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
FreshKDS implementation in Node.JS.
This plugin was built on the documentaton from FreshKDS Developer Documentation
The author of this software is not affiliated with FreshKDS or its associates in any way.
https://www.npmjs.com/package/freshkds
npm install freshkds
var freshKDS = require("freshkds");
Before running any functions you need to create a new token to pass later. freshKDS.token requires three parameters,
var freshKDS = require("freshkds");
var token;
freshKDS.token("demo",APIKEY,(returns) => {
token = returns;
});
This method will return any valid KDS devices and associated ID's You will need to pass your token as previously mentioned
freshKDS.token(token,(returns) => {});
This method will return a list of all locations. Same situation! Pass your token like before
freshKDS.getKDSLocations(token,(response) => {});
Returns all devices at a location. Along with your token, you also need to pass a location ID to this method.
freshKDS.getKDSLocationDevices(token,location,response){});
Returns all active orders by location and (optionally) device If you would like to get all devices at a location, pass "all" in your device parameter instead of a device ID.
freshKDS.getKDSActiveOrders(token,location,device,(response)=>{});
This (WIP) order managment will help you establish order objects instead of manually coding for them. If you would like to manually code these, please follow the documentation at Send-KDS-Order
All order management functions are provided under a subpackage freshKDS.orderManager.*
The bare minimum for an order to be processed through FreshKDS is in the "Start Order Function"
freshKDS.orderManager.startNewOrder(id,orderName,time,mode,name,qty,mods,terminal,(returns) => {
console.log(returns);
});
The parameters are as follows
This will transmit your order to KDS and respond with a status.
function sendKDSOrder(token,order,location,device,response => {
console.log(response);
});
The following additional and optional functions are avaible for order managmenet All of the following can be reviewed here
freshKDS.orderManager.startNewItem(name,qty,mods,returns){}; // creates a new item object
freshKDS.orderManager.addItemsToOrder(order,items,returns){}; // adds item object to order
freshKDS.orderManager.addPickupTime(order,pickupTime,returns){}; // adds phone number to order
freshKDS.orderManager.optInForSMS(order,optIn,returns){}; // adds SMS messaging provided by freshKDS
freshKDS.orderManager.addDeliveryAddress(order,address,returns){}; // adds a delivery address
freshKDS.orderManager.addServer(order,server,returns){}; // adds a server name to an order
freshKDS.orderManager.addSource(order,source,returns){}; // adds a source to an order
freshKDS.orderManager.addSpecialInstructions(order,specialInstructions,returns){}; // adds special instructions to an order
freshKDS.orderManager.addCustomerArrivedUrl(order,customerArrivedUrl,returns){}; // adds customer arrived url instructions to an order
freshKDS.orderManager.freshKDS.orderManager.addVehicleModel(order,vehicleModel,returns){}; // adds vehicle info to order
freshKDS.orderManager.addVehicleColor(order,vehicleColor,returns){}; // adds vehicle color to an order
freshKDS.orderManager.addCosts(order,costs,returns){}; // adds unit costs to an order
freshKDS.orderManager.addDeliveryService(order,deliveryService,returns){}; // adds delivery service information to an order
FAQs
FreshKDS implementation for Node
We found that freshkds demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.