From 3e5e49b624a4ec41b5bdbb6a6875414f5758f83a Mon Sep 17 00:00:00 2001 From: Rosana Ruiz Date: Fri, 24 Aug 2018 17:55:23 +0100 Subject: [PATCH 1/3] Add *vendor* property to Product --- types/shopify-buy/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 413b9614f8..55226691c0 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -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 { From 77e8d4e125af28ad5939b5f0743ba10b2fa4cbef Mon Sep 17 00:00:00 2001 From: Rosana Ruiz Date: Fri, 24 Aug 2018 18:20:19 +0100 Subject: [PATCH 2/3] Remove duplicated method definition --- types/shopify-buy/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 55226691c0..28d9dbe5f0 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -50,7 +50,6 @@ declare namespace ShopifyBuy { fetchWithProducts(id: string): Promise; // TODO fix to be a type: Docs: Fetches a single collection by ID on the shop, not including products. fetchAll(pageSizeopt?: number): Promise; // TODO fix to be a type: Docs: Fetches all collections on the shop, not including products. fetchAllWithProducts(): Promise; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products. - fetchWithProducts(id: string): Promise; // TODO fix to be a type: DOC: Fetches all collections on the shop, including products. fetchByHandle(handle: string): Promise; // 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; // TODO fix to be a type: DOC: Fetches a collection by handle on the shop. Assuming it does not give products } @@ -106,7 +105,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; From 4f6fc41279b4a21d25f2290236d3b67912a6bad8 Mon Sep 17 00:00:00 2001 From: Rosana Ruiz Date: Fri, 24 Aug 2018 18:48:50 +0100 Subject: [PATCH 3/3] Add myself to "Definitions by" section --- types/shopify-buy/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/shopify-buy/index.d.ts b/types/shopify-buy/index.d.ts index 28d9dbe5f0..7140f85515 100644 --- a/types/shopify-buy/index.d.ts +++ b/types/shopify-buy/index.d.ts @@ -2,6 +2,7 @@ // Project: http://shopify.github.io/js-buy-sdk/api/ // Definitions by: Martin Köhn // Stephen Traiforos +// Rosana Ruiz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 @@ -105,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;