
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@foyer-inc/api-sdk
Advanced tools
Additional documentation at Docs
Additional details on filter structure available at Sequelize
import { OpenAPI, PropertyService } from '@foyer-inc/api-sdk';
//usually will not need to change this but it is available for redirecting requests away from the main production api
OpenAPI.BASE = 'remote api endpoint';
//use auth token from Okta or from UserService.login
//needed to access protected endpoints
//set statically and globally
OpenAPI.TOKEN = 'token';
//use await/async or Promise callback
const properties = await PropertyService.getProperties();
PropertyService.getProperties().then((value) => console.log(value));
//Typically used with a filter to specify which Properties to return
//The filter is also used to indicate which related models should also be returned
const filter = {
// For more granularity, all fields on Property are able to be included as search criteria.
where: {
BedroomsTotal: 2
BathroomsTotalInteger: {
gt: 2
}
},
//an array of column names to return. helpful to limit returning unnecessary information
attributes: ["ListingKey", "StreetNumber"],
//an array of associated models to return,
//elements in this array can also be narrowed by including a similarly structured filter
include: [
{ association: "Media" }
],
// an integer for how many entries to return
limit: 10,
// an integer for how many entries to skip, useful for pagination
offset: 10,
};
const properties = await PropertyService.getProperties(JSON.stringify(filter));
//example usage with verbosity param instead of filter object
PropertyService.getProperties(undefined, 'card').then((value) =>
console.log(value)
);
RESO Available Foyer models comply with RESO Spec
See RESO Data Dictionary for a comprehensive look at RESO
See Reference Worksheet for Standard Relationships
FAQs
TypeScript SDK for interacting with Foyer API services.
We found that @foyer-inc/api-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.