chrome-webstore
Advanced tools
Comparing version 1.4.7 to 1.4.8
@@ -1,2 +0,1 @@ | ||
import { | ||
@@ -19,11 +18,5 @@ RequestOptions as RequestComposeOptions, | ||
name: string | ||
domain: string | ||
url: string | ||
domain: string | null | ||
url: string | null | ||
} | ||
description: string | ||
website: string | ||
support: string | ||
version: string | ||
size: string | ||
published: string | ||
users: string | ||
@@ -34,4 +27,3 @@ rating: { | ||
} | ||
price: string | ||
purchases: null | ||
price: string | null | ||
category: { | ||
@@ -49,2 +41,16 @@ name: string | ||
} | ||
status: string | null | ||
} | ||
/** | ||
* Chrome Web Store Detail | ||
*/ | ||
export interface Detail extends Item { | ||
description: string | ||
website: string | ||
support: string | ||
version: string | ||
size: string | ||
published: string | ||
purchases: null | ||
languages: string[] | ||
@@ -57,4 +63,5 @@ developer: { | ||
type: string | ||
status: string | ||
manifest: string | ||
related: Item[] | undefined | ||
more: Item[] | undefined | ||
} | ||
@@ -81,3 +88,3 @@ | ||
export interface Issue { | ||
type: 'problem' | 'question' | 'suggestion' | ||
type: string | ||
status: string | ||
@@ -126,2 +133,7 @@ title: string | ||
/** | ||
* Item feature set | ||
*/ | ||
export type Features = 'offline' | 'google' | 'free' | 'android' | 'gdrive' | ||
/** | ||
* Items options | ||
@@ -145,3 +157,3 @@ */ | ||
*/ | ||
features?: ('offline' | 'google' | 'free' | 'android' | 'gdrive')[] | ||
features?: Features[] | ||
/** | ||
@@ -228,7 +240,2 @@ * Number of items to return | ||
/** | ||
* Version options | ||
*/ | ||
export interface VersionOptions extends RequestComposeOptions {} | ||
// ---------------------------------------------------------------------------- | ||
@@ -244,3 +251,3 @@ | ||
*/ | ||
export function detail(options: DetailOptions): Promise<Item> | ||
function detail(options: DetailOptions): Promise<Detail> | ||
/** | ||
@@ -250,3 +257,3 @@ * List Web Store items (subset of the detail data) | ||
*/ | ||
export function items(options: ItemsOptions): Promise<Item[]> | ||
function items(options: ItemsOptions): Promise<Item[]> | ||
/** | ||
@@ -256,3 +263,3 @@ * List reviews for an item | ||
*/ | ||
export function reviews(options: ReviewsOptions): Promise<Review[]> | ||
function reviews(options: ReviewsOptions): Promise<Review[]> | ||
/** | ||
@@ -262,7 +269,7 @@ * List issues for an item | ||
*/ | ||
export function issues(options: IssuesOptions): Promise<Issue[]> | ||
function issues(options: IssuesOptions): Promise<Issue[]> | ||
/** | ||
* Get Chrome Web Store API version | ||
*/ | ||
export function version(options?: VersionOptions): Promise<string> | ||
function version(options?: RequestComposeOptions): Promise<string> | ||
} |
{ | ||
"name": "chrome-webstore", | ||
"version": "1.4.7", | ||
"version": "1.4.8", | ||
"description": "Google Chrome Web Store HTTP Client", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
29333
451