Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@types/yelp-fusion-plus
Advanced tools
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 0 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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
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.