Security News
OpenJS: “XZ Utils Cyberattack Likely Not an Isolated Incident”
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
@types/yelp-fusion-plus
Advanced tools
Weekly downloads
Readme
npm install --save @types/yelp-fusion-plus
This package contains type definitions for yelp-fusion-plus (https://www.npmjs.com/package/@kob490/yelp-fusion-plus).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/yelp-fusion-plus.
export {};
// base interfaces\
interface _BusinessesSearchRequest {
term?: string;
radius?: number;
categories?: string;
locale?: string;
limit?: number;
offset?: number;
sort_by?: string;
price?: string;
open_now?: boolean;
open_at?: number;
attributes?: string;
}
interface _BusinessesSearchResponse {
total: number;
region: Region;
}
export interface Business {
id: string;
alias: string;
name: string;
image_url: string;
is_closed: boolean;
url: string;
review_count: number;
categories?: Category[] | null;
rating: number;
coordinates: Coordinates;
transactions?: Array<string | null> | null;
price?: string | null;
location: Location;
phone: string;
display_phone: string;
distance: number;
}
export interface BusinessDetails extends Business {
is_claimed: boolean;
photos: string[];
hours: Hour[];
}
interface Category {
alias: string;
title: string;
}
interface Coordinates {
readonly latitude: number;
readonly longitude: number;
}
interface Location {
address1: string;
address2: string;
address3: string;
city: string;
zip_code: string;
country: string;
state: string;
display_address: string[];
cross_streets: string;
}
interface Hour {
open: Open[];
hours_type: string;
is_open_now: boolean;
}
interface Open {
is_overnight: boolean;
start: string;
end: string;
day: number;
}
interface Region {
center: Coordinates;
}
// exportables
export interface LatLngBusinessesSearchRequest extends _BusinessesSearchRequest {
latitude: number;
longitude: number;
}
export interface LocationBusinessesSearchRequest extends _BusinessesSearchRequest {
location: string;
}
export interface BusinessesSearchResponse extends _BusinessesSearchResponse {
businesses?: Business[];
}
export interface BusinessesDetailsSearchResponse extends _BusinessesSearchResponse {
businesses?: BusinessDetails[];
}
export namespace YelpFusionPlus {
function CreateBusiness(business: Business): Business;
function CreateLocationBusinessesSearchRequest(
locationBusinessesSearchRequest: LocationBusinessesSearchRequest,
): LocationBusinessesSearchRequest;
}
These definitions were written by Kob490.
FAQs
TypeScript definitions for yelp-fusion-plus
The npm package @types/yelp-fusion-plus receives a total of 1 weekly downloads. As such, @types/yelp-fusion-plus popularity was classified as not popular.
We found that @types/yelp-fusion-plus demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.
Company News
Come meet the Socket team at BSidesSF and RSA! We're sponsoring several fun networking events and we would love to see you there.
Security News
OSI is starting a conversation aimed at removing the excuse of the SaaS loophole for companies navigating licensing and the complexities of doing business with open source.