Merge pull request #28363 from Totemika/master

[shopify-buy] Add *vendor* property to Product and Remove duplicated method definition
This commit is contained in:
Daniel Rosenwasser
2018-08-24 14:55:59 -07:00
committed by GitHub
+7 -2
View File
@@ -2,6 +2,7 @@
// Project: http://shopify.github.io/js-buy-sdk/api/
// Definitions by: Martin Köhn <https://github.com/openminder>
// Stephen Traiforos <https://github.com/straiforos>
// Rosana Ruiz <https://github.com/totemika>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
@@ -50,7 +51,6 @@ declare namespace ShopifyBuy {
fetchWithProducts(id: string): Promise<any[]>; // TODO fix to be a type: Docs: Fetches a single collection by ID on the shop, not including products.
fetchAll(pageSizeopt?: number): Promise<any[]>; // TODO fix to be a type: Docs: Fetches all collections on the shop, not including products.
fetchAllWithProducts(): Promise<any[]>; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products.
fetchWithProducts(id: string): Promise<any[]>; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products.
fetchByHandle(handle: string): Promise<any[]>; // TODO fix to be a type: DOC: Fetches a collection by handle on the shop. Assuming it does not give products
fetchQuery(query: Query): Promise<any[]>; // TODO fix to be a type: DOC: Fetches a collection by handle on the shop. Assuming it does not give products
}
@@ -106,7 +106,7 @@ declare namespace ShopifyBuy {
export interface Query {
/**
* query: title, collection_type, updated_at
* TODO probably will remove before Defintely Typed PR,
* TODO probably will remove before Defintely Typed PR,
* as their community guidelines
*/
query: string;
@@ -168,6 +168,11 @@ declare namespace ShopifyBuy {
* The product title
*/
title: string;
/**
* The product’s vendor name
*/
vendor: string;
}
export interface ProductVariant extends GraphModel {