Skip to content

Commit

Permalink
Updated generated docs (#2618)
Browse files Browse the repository at this point in the history
Co-authored-by: Helen Lin <[email protected]>
  • Loading branch information
rbshop and wizardlyhel authored Oct 25, 2024
1 parent 29876f1 commit efab107
Show file tree
Hide file tree
Showing 59 changed files with 1,170 additions and 313 deletions.
34 changes: 34 additions & 0 deletions examples/b2b/storefrontapi.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,36 @@ export type StoreRobotsQueryVariables = StorefrontAPI.Exact<{

export type StoreRobotsQuery = {shop: Pick<StorefrontAPI.Shop, 'id'>};

export type SitemapQueryVariables = StorefrontAPI.Exact<{
urlLimits?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']['input']>;
language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
}>;

export type SitemapQuery = {
products: {
nodes: Array<
Pick<
StorefrontAPI.Product,
'updatedAt' | 'handle' | 'onlineStoreUrl' | 'title'
> & {
featuredImage?: StorefrontAPI.Maybe<
Pick<StorefrontAPI.Image, 'url' | 'altText'>
>;
}
>;
};
collections: {
nodes: Array<
Pick<StorefrontAPI.Collection, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
>;
};
pages: {
nodes: Array<
Pick<StorefrontAPI.Page, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
>;
};
};

export type FeaturedCollectionFragment = Pick<
StorefrontAPI.Collection,
'id' | 'title' | 'handle'
Expand Down Expand Up @@ -1226,6 +1256,10 @@ interface GeneratedQueryTypes {
return: StoreRobotsQuery;
variables: StoreRobotsQueryVariables;
};
'#graphql\n query Sitemap($urlLimits: Int, $language: LanguageCode)\n @inContext(language: $language) {\n products(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n title\n featuredImage {\n url\n altText\n }\n }\n }\n collections(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n pages(first: $urlLimits, query: "published_status:\'published\'") {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n }\n': {
return: SitemapQuery;
variables: SitemapQueryVariables;
};
'#graphql\n fragment FeaturedCollection on Collection {\n id\n title\n image {\n id\n url\n altText\n width\n height\n }\n handle\n }\n query FeaturedCollection($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n collections(first: 1, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...FeaturedCollection\n }\n }\n }\n': {
return: FeaturedCollectionQuery;
variables: FeaturedCollectionQueryVariables;
Expand Down
48 changes: 37 additions & 11 deletions examples/custom-cart-method/storefrontapi.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,36 @@ export type StoreRobotsQueryVariables = StorefrontAPI.Exact<{

export type StoreRobotsQuery = {shop: Pick<StorefrontAPI.Shop, 'id'>};

export type SitemapQueryVariables = StorefrontAPI.Exact<{
urlLimits?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']['input']>;
language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
}>;

export type SitemapQuery = {
products: {
nodes: Array<
Pick<
StorefrontAPI.Product,
'updatedAt' | 'handle' | 'onlineStoreUrl' | 'title'
> & {
featuredImage?: StorefrontAPI.Maybe<
Pick<StorefrontAPI.Image, 'url' | 'altText'>
>;
}
>;
};
collections: {
nodes: Array<
Pick<StorefrontAPI.Collection, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
>;
};
pages: {
nodes: Array<
Pick<StorefrontAPI.Page, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
>;
};
};

export type FeaturedCollectionFragment = Pick<
StorefrontAPI.Collection,
'id' | 'title' | 'handle'
Expand Down Expand Up @@ -711,11 +741,7 @@ export type ProductFragment = Pick<
StorefrontAPI.Product,
'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description'
> & {
options: Array<
Pick<StorefrontAPI.ProductOption, 'name'> & {
optionValues: Array<Pick<StorefrontAPI.ProductOptionValue, 'name'>>;
}
>;
options: Array<Pick<StorefrontAPI.ProductOption, 'name' | 'values'>>;
selectedVariant?: StorefrontAPI.Maybe<
Pick<
StorefrontAPI.ProductVariant,
Expand Down Expand Up @@ -784,11 +810,7 @@ export type ProductQuery = {
StorefrontAPI.Product,
'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description'
> & {
options: Array<
Pick<StorefrontAPI.ProductOption, 'name'> & {
optionValues: Array<Pick<StorefrontAPI.ProductOptionValue, 'name'>>;
}
>;
options: Array<Pick<StorefrontAPI.ProductOption, 'name' | 'values'>>;
selectedVariant?: StorefrontAPI.Maybe<
Pick<
StorefrontAPI.ProductVariant,
Expand Down Expand Up @@ -1153,6 +1175,10 @@ interface GeneratedQueryTypes {
return: StoreRobotsQuery;
variables: StoreRobotsQueryVariables;
};
'#graphql\n query Sitemap($urlLimits: Int, $language: LanguageCode)\n @inContext(language: $language) {\n products(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n title\n featuredImage {\n url\n altText\n }\n }\n }\n collections(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n pages(first: $urlLimits, query: "published_status:\'published\'") {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n }\n': {
return: SitemapQuery;
variables: SitemapQueryVariables;
};
'#graphql\n fragment FeaturedCollection on Collection {\n id\n title\n image {\n id\n url\n altText\n width\n height\n }\n handle\n }\n query FeaturedCollection($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n collections(first: 1, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...FeaturedCollection\n }\n }\n }\n': {
return: FeaturedCollectionQuery;
variables: FeaturedCollectionQueryVariables;
Expand Down Expand Up @@ -1197,7 +1223,7 @@ interface GeneratedQueryTypes {
return: PoliciesQuery;
variables: PoliciesQueryVariables;
};
'#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n optionValues {\n name\n }\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
'#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n values\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
return: ProductQuery;
variables: ProductQueryVariables;
};
Expand Down
48 changes: 37 additions & 11 deletions examples/legacy-customer-account-flow/storefrontapi.generated.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,36 @@ export type StoreRobotsQueryVariables = StorefrontAPI.Exact<{

export type StoreRobotsQuery = {shop: Pick<StorefrontAPI.Shop, 'id'>};

export type SitemapQueryVariables = StorefrontAPI.Exact<{
urlLimits?: StorefrontAPI.InputMaybe<StorefrontAPI.Scalars['Int']['input']>;
language?: StorefrontAPI.InputMaybe<StorefrontAPI.LanguageCode>;
}>;

export type SitemapQuery = {
products: {
nodes: Array<
Pick<
StorefrontAPI.Product,
'updatedAt' | 'handle' | 'onlineStoreUrl' | 'title'
> & {
featuredImage?: StorefrontAPI.Maybe<
Pick<StorefrontAPI.Image, 'url' | 'altText'>
>;
}
>;
};
collections: {
nodes: Array<
Pick<StorefrontAPI.Collection, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
>;
};
pages: {
nodes: Array<
Pick<StorefrontAPI.Page, 'updatedAt' | 'handle' | 'onlineStoreUrl'>
>;
};
};

export type FeaturedCollectionFragment = Pick<
StorefrontAPI.Collection,
'id' | 'title' | 'handle'
Expand Down Expand Up @@ -1472,11 +1502,7 @@ export type ProductFragment = Pick<
StorefrontAPI.Product,
'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description'
> & {
options: Array<
Pick<StorefrontAPI.ProductOption, 'name'> & {
optionValues: Array<Pick<StorefrontAPI.ProductOptionValue, 'name'>>;
}
>;
options: Array<Pick<StorefrontAPI.ProductOption, 'name' | 'values'>>;
selectedVariant?: StorefrontAPI.Maybe<
Pick<
StorefrontAPI.ProductVariant,
Expand Down Expand Up @@ -1545,11 +1571,7 @@ export type ProductQuery = {
StorefrontAPI.Product,
'id' | 'title' | 'vendor' | 'handle' | 'descriptionHtml' | 'description'
> & {
options: Array<
Pick<StorefrontAPI.ProductOption, 'name'> & {
optionValues: Array<Pick<StorefrontAPI.ProductOptionValue, 'name'>>;
}
>;
options: Array<Pick<StorefrontAPI.ProductOption, 'name' | 'values'>>;
selectedVariant?: StorefrontAPI.Maybe<
Pick<
StorefrontAPI.ProductVariant,
Expand Down Expand Up @@ -1910,6 +1932,10 @@ interface GeneratedQueryTypes {
return: StoreRobotsQuery;
variables: StoreRobotsQueryVariables;
};
'#graphql\n query Sitemap($urlLimits: Int, $language: LanguageCode)\n @inContext(language: $language) {\n products(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n title\n featuredImage {\n url\n altText\n }\n }\n }\n collections(\n first: $urlLimits\n query: "published_status:\'online_store:visible\'"\n ) {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n pages(first: $urlLimits, query: "published_status:\'published\'") {\n nodes {\n updatedAt\n handle\n onlineStoreUrl\n }\n }\n }\n': {
return: SitemapQuery;
variables: SitemapQueryVariables;
};
'#graphql\n fragment FeaturedCollection on Collection {\n id\n title\n image {\n id\n url\n altText\n width\n height\n }\n handle\n }\n query FeaturedCollection($country: CountryCode, $language: LanguageCode)\n @inContext(country: $country, language: $language) {\n collections(first: 1, sortKey: UPDATED_AT, reverse: true) {\n nodes {\n ...FeaturedCollection\n }\n }\n }\n': {
return: FeaturedCollectionQuery;
variables: FeaturedCollectionQueryVariables;
Expand Down Expand Up @@ -1966,7 +1992,7 @@ interface GeneratedQueryTypes {
return: PoliciesQuery;
variables: PoliciesQueryVariables;
};
'#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n optionValues {\n name\n }\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
'#graphql\n query Product(\n $country: CountryCode\n $handle: String!\n $language: LanguageCode\n $selectedOptions: [SelectedOptionInput!]!\n ) @inContext(country: $country, language: $language) {\n product(handle: $handle) {\n ...Product\n }\n }\n #graphql\n fragment Product on Product {\n id\n title\n vendor\n handle\n descriptionHtml\n description\n options {\n name\n values\n }\n selectedVariant: variantBySelectedOptions(selectedOptions: $selectedOptions, ignoreUnknownOptions: true, caseInsensitiveMatch: true) {\n ...ProductVariant\n }\n variants(first: 1) {\n nodes {\n ...ProductVariant\n }\n }\n seo {\n description\n title\n }\n }\n #graphql\n fragment ProductVariant on ProductVariant {\n availableForSale\n compareAtPrice {\n amount\n currencyCode\n }\n id\n image {\n __typename\n id\n url\n altText\n width\n height\n }\n price {\n amount\n currencyCode\n }\n product {\n title\n handle\n }\n selectedOptions {\n name\n value\n }\n sku\n title\n unitPrice {\n amount\n currencyCode\n }\n }\n\n\n': {
return: ProductQuery;
variables: ProductQueryVariables;
};
Expand Down
Loading

0 comments on commit efab107

Please sign in to comment.