@sonic-commerce/storefront-types 0.28.2 → 0.29.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/build.mjs from app/openapi/public-api.json — do not edit.
2
- // Spec version 0.28.2, 58 named schemas.
2
+ // Spec version 0.29.1, 59 named schemas.
3
3
 
4
4
  export type { paths, components, operations } from "./schema";
5
5
  import type { components } from "./schema";
@@ -23,6 +23,7 @@ export type Currency = components["schemas"]["Currency"];
23
23
  export type Customer = components["schemas"]["Customer"];
24
24
  export type CustomerAddress = components["schemas"]["CustomerAddress"];
25
25
  export type Error = components["schemas"]["Error"];
26
+ export type ImageSizes = components["schemas"]["ImageSizes"];
26
27
  export type LineItem = components["schemas"]["LineItem"];
27
28
  export type LoginBody = components["schemas"]["LoginBody"];
28
29
  export type Order = components["schemas"]["Order"];
package/dist/schema.d.ts CHANGED
@@ -3641,9 +3641,19 @@ export interface components {
3641
3641
  description?: string | null;
3642
3642
  excerpt?: string | null;
3643
3643
  thumbnail?: string | null;
3644
+ /** @description `thumbnail` in every served size. Null until the image has been processed; fall back to `thumbnail`. */
3645
+ thumbnail_sizes?: components["schemas"]["ImageSizes"] | null;
3644
3646
  created_at?: string;
3645
3647
  updated_at?: string;
3646
3648
  };
3649
+ ImageSizes: {
3650
+ /** @description Fits within 640×640 px. Grids and listings. */
3651
+ card: string;
3652
+ /** @description Fits within 960×960 px. Product pages. */
3653
+ gallery: string;
3654
+ /** @description Fits within 1600×1600 px. Zoom or full screen. */
3655
+ zoom: string;
3656
+ };
3647
3657
  Product: {
3648
3658
  id: string;
3649
3659
  title?: string | null;
@@ -3652,6 +3662,8 @@ export interface components {
3652
3662
  description?: string | null;
3653
3663
  excerpt?: string | null;
3654
3664
  thumbnail?: string | null;
3665
+ /** @description `thumbnail` in every served size. Null until the image has been processed; fall back to `thumbnail`. */
3666
+ thumbnail_sizes?: components["schemas"]["ImageSizes"] | null;
3655
3667
  created_at?: string;
3656
3668
  updated_at?: string;
3657
3669
  variants?: components["schemas"]["ProductVariant"][];
@@ -3749,6 +3761,8 @@ export interface components {
3749
3761
  rank?: number;
3750
3762
  parent_id?: string | null;
3751
3763
  thumbnail?: string | null;
3764
+ /** @description `thumbnail` in every served size. Null until the image has been processed; fall back to `thumbnail`. */
3765
+ thumbnail_sizes?: components["schemas"]["ImageSizes"] | null;
3752
3766
  parent?: components["schemas"]["CategorySummary"] | null;
3753
3767
  children?: components["schemas"]["CategorySummary"][];
3754
3768
  seo?: components["schemas"]["Seo"];
@@ -3765,6 +3779,7 @@ export interface components {
3765
3779
  /** @description Merchant-set position among categories with the same parent, starting at 0. Each parent numbers its own children, so compare `rank` only between siblings. */
3766
3780
  rank: number;
3767
3781
  thumbnail: string | null;
3782
+ thumbnail_sizes: components["schemas"]["ImageSizes"] | null;
3768
3783
  children: components["schemas"]["CategoryTreeNode"][];
3769
3784
  };
3770
3785
  Collection: {
@@ -3775,6 +3790,8 @@ export interface components {
3775
3790
  created_at?: string;
3776
3791
  updated_at?: string;
3777
3792
  thumbnail?: string | null;
3793
+ /** @description `thumbnail` in every served size. Null until the image has been processed; fall back to `thumbnail`. */
3794
+ thumbnail_sizes?: components["schemas"]["ImageSizes"] | null;
3778
3795
  products?: components["schemas"]["ProductListItem"][];
3779
3796
  products_has_more?: boolean;
3780
3797
  seo?: components["schemas"]["Seo"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sonic-commerce/storefront-types",
3
- "version": "0.28.2",
3
+ "version": "0.29.1",
4
4
  "description": "TypeScript types for the Sonic Commerce storefront API (/v1).",
5
5
  "keywords": ["sonic-commerce", "openapi", "types", "storefront"],
6
6
  "license": "UNLICENSED",