@poweredbysous/storefront-all-sdk 4.1.0 → 4.2.0

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.cts CHANGED
@@ -3001,7 +3001,7 @@ interface paths {
3001
3001
  path?: never;
3002
3002
  cookie?: never;
3003
3003
  };
3004
- /** @description Operation `discovery_collections_retrieve`. */
3004
+ /** @description Return active collection cards with reader-language copy. */
3005
3005
  get: operations["discovery_collections_retrieve"];
3006
3006
  put?: never;
3007
3007
  post?: never;
@@ -3086,6 +3086,28 @@ interface paths {
3086
3086
  patch?: never;
3087
3087
  trace?: never;
3088
3088
  };
3089
+ "/api/v1/discovery/product-collections/{slug}/": {
3090
+ parameters: {
3091
+ query?: never;
3092
+ header?: never;
3093
+ path?: never;
3094
+ cookie?: never;
3095
+ };
3096
+ /**
3097
+ * @description Return a collection page in the reader's language.
3098
+ *
3099
+ * Marketplace query parameters narrow the saved collection and never
3100
+ * widen it.
3101
+ */
3102
+ get: operations["discovery_product_collections_retrieve"];
3103
+ put?: never;
3104
+ post?: never;
3105
+ delete?: never;
3106
+ options?: never;
3107
+ head?: never;
3108
+ patch?: never;
3109
+ trace?: never;
3110
+ };
3089
3111
  "/api/v1/discovery/stores/": {
3090
3112
  parameters: {
3091
3113
  query?: never;
@@ -7641,6 +7663,7 @@ interface components {
7641
7663
  product_type_classified: boolean;
7642
7664
  requires_attestation: boolean;
7643
7665
  deposit_config_enabled: boolean;
7666
+ legacy_product_info_enabled: boolean;
7644
7667
  fields: components["schemas"]["ComplianceSchemaField"][];
7645
7668
  };
7646
7669
  ConfirmEdit: {
@@ -8564,6 +8587,15 @@ interface components {
8564
8587
  fulfillment_types: {
8565
8588
  [key: string]: number;
8566
8589
  };
8590
+ offering: {
8591
+ [key: string]: number;
8592
+ };
8593
+ menu_types: {
8594
+ [key: string]: number;
8595
+ };
8596
+ party_sizes: {
8597
+ [key: string]: number;
8598
+ };
8567
8599
  };
8568
8600
  /** @description One product, with its name and description in the reader's language. */
8569
8601
  MarketplaceProduct: {
@@ -8580,6 +8612,11 @@ interface components {
8580
8612
  product_url_path: string;
8581
8613
  fulfillment_types: string[];
8582
8614
  cuisine_tags: string[];
8615
+ offering: string | null;
8616
+ menu_types: string[];
8617
+ party_sizes: number[];
8618
+ /** @description Price divided by party size, in cents; null without a party size. */
8619
+ price_per_person_cents: number | null;
8583
8620
  };
8584
8621
  /** @description One page of marketplace products, shaped like the catalogue pagination. */
8585
8622
  MarketplaceSearch: {
@@ -10094,6 +10131,24 @@ interface components {
10094
10131
  pre_order_lead_time?: number | null;
10095
10132
  readonly variant_overrides: components["schemas"]["VariantPriceOverride"][];
10096
10133
  };
10134
+ /**
10135
+ * @description A product collection: its copy, then one page of its products.
10136
+ *
10137
+ * Pinned products come first in staff's order; the saved filter's matches
10138
+ * follow in the reader's sort. ``count`` covers both.
10139
+ */
10140
+ ProductCollection: {
10141
+ count: number;
10142
+ total_pages: number;
10143
+ page: number;
10144
+ next: string | null;
10145
+ previous: string | null;
10146
+ results: components["schemas"]["MarketplaceProduct"][];
10147
+ facets: components["schemas"]["MarketplaceFacets"];
10148
+ slug: string;
10149
+ name: string;
10150
+ description: string;
10151
+ };
10097
10152
  /** @description Resolve tags from ProductTranslation, falling back to Product.tags. */
10098
10153
  ProductDetail: {
10099
10154
  readonly id: number;
@@ -18539,7 +18594,7 @@ interface operations {
18539
18594
  query?: {
18540
18595
  /** @description Delivery destination city. */
18541
18596
  address_city?: string;
18542
- /** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE). Case-insensitive. */
18597
+ /** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE). Case-insensitive; any other value is ignored. Unlike a live quote it needs no street or city: a nationwide carrier prices by country, so latitude, longitude, postal_code and this can return cost_known=true. Omit postal_code and a carrier whose service area lists postcodes is left out of the estimate. */
18543
18598
  address_country?: string;
18544
18599
  /** @description Delivery destination street line. Required together with address_city and address_country to trigger a live shipping quote (e.g. from Uber Direct); without all three the shipping_estimate group will report cost_known=false. */
18545
18600
  address_street?: string;
@@ -25629,11 +25684,22 @@ interface operations {
25629
25684
  query?: {
25630
25685
  brand_slug?: string;
25631
25686
  cuisine_tags?: string[];
25687
+ /** @description Only products servable on this store-local date (YYYY-MM-DD), within the next 60 days. Advisory: add-to-cart is the authority. */
25688
+ date?: string;
25632
25689
  fulfillment_types?: ("delivery" | "pickup" | "dinein")[];
25690
+ /** @description Menu type slugs, for example `vegan` or `meat-fish`. */
25691
+ menu_types?: string[];
25692
+ /** @description Offering slugs, for example `menubox` or `shop`. */
25693
+ offering?: string[];
25633
25694
  page?: number;
25634
25695
  page_size?: number;
25696
+ party_sizes?: number[];
25635
25697
  price_max?: number;
25636
25698
  price_min?: number;
25699
+ /** @description Cents, inclusive. Excludes products with no party size. */
25700
+ price_per_person_max?: number;
25701
+ /** @description Cents, inclusive. Excludes products with no party size. */
25702
+ price_per_person_min?: number;
25637
25703
  q?: string;
25638
25704
  /**
25639
25705
  * @description * `relevance` - relevance
@@ -25760,6 +25826,100 @@ interface operations {
25760
25826
  };
25761
25827
  };
25762
25828
  };
25829
+ discovery_product_collections_retrieve: {
25830
+ parameters: {
25831
+ query?: {
25832
+ brand_slug?: string;
25833
+ cuisine_tags?: string[];
25834
+ /** @description Only products servable on this store-local date (YYYY-MM-DD), within the next 60 days. Advisory: add-to-cart is the authority. */
25835
+ date?: string;
25836
+ fulfillment_types?: ("delivery" | "pickup" | "dinein")[];
25837
+ /** @description Menu type slugs, for example `vegan` or `meat-fish`. */
25838
+ menu_types?: string[];
25839
+ /** @description Offering slugs, for example `menubox` or `shop`. */
25840
+ offering?: string[];
25841
+ page?: number;
25842
+ page_size?: number;
25843
+ party_sizes?: number[];
25844
+ price_max?: number;
25845
+ price_min?: number;
25846
+ /** @description Cents, inclusive. Excludes products with no party size. */
25847
+ price_per_person_max?: number;
25848
+ /** @description Cents, inclusive. Excludes products with no party size. */
25849
+ price_per_person_min?: number;
25850
+ q?: string;
25851
+ /**
25852
+ * @description * `relevance` - relevance
25853
+ * * `price_asc` - price_asc
25854
+ * * `price_desc` - price_desc
25855
+ */
25856
+ sort?: "relevance" | "price_asc" | "price_desc";
25857
+ /** @description Narrow to these stores, typically the `store_public_ids` the deliverability read returned. */
25858
+ store_public_ids?: string[];
25859
+ };
25860
+ header?: never;
25861
+ path: {
25862
+ slug: string;
25863
+ };
25864
+ cookie?: never;
25865
+ };
25866
+ requestBody?: never;
25867
+ responses: {
25868
+ 200: {
25869
+ headers: {
25870
+ [name: string]: unknown;
25871
+ };
25872
+ content: {
25873
+ "application/json": components["schemas"]["ProductCollection"];
25874
+ };
25875
+ };
25876
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
25877
+ 400: {
25878
+ headers: {
25879
+ [name: string]: unknown;
25880
+ };
25881
+ content: {
25882
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25883
+ };
25884
+ };
25885
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
25886
+ 404: {
25887
+ headers: {
25888
+ [name: string]: unknown;
25889
+ };
25890
+ content: {
25891
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25892
+ };
25893
+ };
25894
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
25895
+ 429: {
25896
+ headers: {
25897
+ [name: string]: unknown;
25898
+ };
25899
+ content: {
25900
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25901
+ };
25902
+ };
25903
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
25904
+ 500: {
25905
+ headers: {
25906
+ [name: string]: unknown;
25907
+ };
25908
+ content: {
25909
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25910
+ };
25911
+ };
25912
+ /** @description Possible error codes: `MARKETPLACE_SEARCH_UNAVAILABLE`. Retryable: yes. */
25913
+ 502: {
25914
+ headers: {
25915
+ [name: string]: unknown;
25916
+ };
25917
+ content: {
25918
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25919
+ };
25920
+ };
25921
+ };
25922
+ };
25763
25923
  discovery_stores_retrieve: {
25764
25924
  parameters: {
25765
25925
  query?: never;
@@ -36686,6 +36846,8 @@ interface operations {
36686
36846
  products_list: {
36687
36847
  parameters: {
36688
36848
  query?: {
36849
+ /** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE), used with latitude and longitude. A nationwide carrier that declares per-country service areas only offers its products once the country is known. Case-insensitive; any other value is treated as no country. */
36850
+ country?: string;
36689
36851
  /** @description Sort order for products. Use '-popularity' for most popular first. */
36690
36852
  ordering?: "-popularity" | "-position" | "position";
36691
36853
  /** @description A page number within the paginated result set. */
package/dist/index.d.ts CHANGED
@@ -3001,7 +3001,7 @@ interface paths {
3001
3001
  path?: never;
3002
3002
  cookie?: never;
3003
3003
  };
3004
- /** @description Operation `discovery_collections_retrieve`. */
3004
+ /** @description Return active collection cards with reader-language copy. */
3005
3005
  get: operations["discovery_collections_retrieve"];
3006
3006
  put?: never;
3007
3007
  post?: never;
@@ -3086,6 +3086,28 @@ interface paths {
3086
3086
  patch?: never;
3087
3087
  trace?: never;
3088
3088
  };
3089
+ "/api/v1/discovery/product-collections/{slug}/": {
3090
+ parameters: {
3091
+ query?: never;
3092
+ header?: never;
3093
+ path?: never;
3094
+ cookie?: never;
3095
+ };
3096
+ /**
3097
+ * @description Return a collection page in the reader's language.
3098
+ *
3099
+ * Marketplace query parameters narrow the saved collection and never
3100
+ * widen it.
3101
+ */
3102
+ get: operations["discovery_product_collections_retrieve"];
3103
+ put?: never;
3104
+ post?: never;
3105
+ delete?: never;
3106
+ options?: never;
3107
+ head?: never;
3108
+ patch?: never;
3109
+ trace?: never;
3110
+ };
3089
3111
  "/api/v1/discovery/stores/": {
3090
3112
  parameters: {
3091
3113
  query?: never;
@@ -7641,6 +7663,7 @@ interface components {
7641
7663
  product_type_classified: boolean;
7642
7664
  requires_attestation: boolean;
7643
7665
  deposit_config_enabled: boolean;
7666
+ legacy_product_info_enabled: boolean;
7644
7667
  fields: components["schemas"]["ComplianceSchemaField"][];
7645
7668
  };
7646
7669
  ConfirmEdit: {
@@ -8564,6 +8587,15 @@ interface components {
8564
8587
  fulfillment_types: {
8565
8588
  [key: string]: number;
8566
8589
  };
8590
+ offering: {
8591
+ [key: string]: number;
8592
+ };
8593
+ menu_types: {
8594
+ [key: string]: number;
8595
+ };
8596
+ party_sizes: {
8597
+ [key: string]: number;
8598
+ };
8567
8599
  };
8568
8600
  /** @description One product, with its name and description in the reader's language. */
8569
8601
  MarketplaceProduct: {
@@ -8580,6 +8612,11 @@ interface components {
8580
8612
  product_url_path: string;
8581
8613
  fulfillment_types: string[];
8582
8614
  cuisine_tags: string[];
8615
+ offering: string | null;
8616
+ menu_types: string[];
8617
+ party_sizes: number[];
8618
+ /** @description Price divided by party size, in cents; null without a party size. */
8619
+ price_per_person_cents: number | null;
8583
8620
  };
8584
8621
  /** @description One page of marketplace products, shaped like the catalogue pagination. */
8585
8622
  MarketplaceSearch: {
@@ -10094,6 +10131,24 @@ interface components {
10094
10131
  pre_order_lead_time?: number | null;
10095
10132
  readonly variant_overrides: components["schemas"]["VariantPriceOverride"][];
10096
10133
  };
10134
+ /**
10135
+ * @description A product collection: its copy, then one page of its products.
10136
+ *
10137
+ * Pinned products come first in staff's order; the saved filter's matches
10138
+ * follow in the reader's sort. ``count`` covers both.
10139
+ */
10140
+ ProductCollection: {
10141
+ count: number;
10142
+ total_pages: number;
10143
+ page: number;
10144
+ next: string | null;
10145
+ previous: string | null;
10146
+ results: components["schemas"]["MarketplaceProduct"][];
10147
+ facets: components["schemas"]["MarketplaceFacets"];
10148
+ slug: string;
10149
+ name: string;
10150
+ description: string;
10151
+ };
10097
10152
  /** @description Resolve tags from ProductTranslation, falling back to Product.tags. */
10098
10153
  ProductDetail: {
10099
10154
  readonly id: number;
@@ -18539,7 +18594,7 @@ interface operations {
18539
18594
  query?: {
18540
18595
  /** @description Delivery destination city. */
18541
18596
  address_city?: string;
18542
- /** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE). Case-insensitive. */
18597
+ /** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE). Case-insensitive; any other value is ignored. Unlike a live quote it needs no street or city: a nationwide carrier prices by country, so latitude, longitude, postal_code and this can return cost_known=true. Omit postal_code and a carrier whose service area lists postcodes is left out of the estimate. */
18543
18598
  address_country?: string;
18544
18599
  /** @description Delivery destination street line. Required together with address_city and address_country to trigger a live shipping quote (e.g. from Uber Direct); without all three the shipping_estimate group will report cost_known=false. */
18545
18600
  address_street?: string;
@@ -25629,11 +25684,22 @@ interface operations {
25629
25684
  query?: {
25630
25685
  brand_slug?: string;
25631
25686
  cuisine_tags?: string[];
25687
+ /** @description Only products servable on this store-local date (YYYY-MM-DD), within the next 60 days. Advisory: add-to-cart is the authority. */
25688
+ date?: string;
25632
25689
  fulfillment_types?: ("delivery" | "pickup" | "dinein")[];
25690
+ /** @description Menu type slugs, for example `vegan` or `meat-fish`. */
25691
+ menu_types?: string[];
25692
+ /** @description Offering slugs, for example `menubox` or `shop`. */
25693
+ offering?: string[];
25633
25694
  page?: number;
25634
25695
  page_size?: number;
25696
+ party_sizes?: number[];
25635
25697
  price_max?: number;
25636
25698
  price_min?: number;
25699
+ /** @description Cents, inclusive. Excludes products with no party size. */
25700
+ price_per_person_max?: number;
25701
+ /** @description Cents, inclusive. Excludes products with no party size. */
25702
+ price_per_person_min?: number;
25637
25703
  q?: string;
25638
25704
  /**
25639
25705
  * @description * `relevance` - relevance
@@ -25760,6 +25826,100 @@ interface operations {
25760
25826
  };
25761
25827
  };
25762
25828
  };
25829
+ discovery_product_collections_retrieve: {
25830
+ parameters: {
25831
+ query?: {
25832
+ brand_slug?: string;
25833
+ cuisine_tags?: string[];
25834
+ /** @description Only products servable on this store-local date (YYYY-MM-DD), within the next 60 days. Advisory: add-to-cart is the authority. */
25835
+ date?: string;
25836
+ fulfillment_types?: ("delivery" | "pickup" | "dinein")[];
25837
+ /** @description Menu type slugs, for example `vegan` or `meat-fish`. */
25838
+ menu_types?: string[];
25839
+ /** @description Offering slugs, for example `menubox` or `shop`. */
25840
+ offering?: string[];
25841
+ page?: number;
25842
+ page_size?: number;
25843
+ party_sizes?: number[];
25844
+ price_max?: number;
25845
+ price_min?: number;
25846
+ /** @description Cents, inclusive. Excludes products with no party size. */
25847
+ price_per_person_max?: number;
25848
+ /** @description Cents, inclusive. Excludes products with no party size. */
25849
+ price_per_person_min?: number;
25850
+ q?: string;
25851
+ /**
25852
+ * @description * `relevance` - relevance
25853
+ * * `price_asc` - price_asc
25854
+ * * `price_desc` - price_desc
25855
+ */
25856
+ sort?: "relevance" | "price_asc" | "price_desc";
25857
+ /** @description Narrow to these stores, typically the `store_public_ids` the deliverability read returned. */
25858
+ store_public_ids?: string[];
25859
+ };
25860
+ header?: never;
25861
+ path: {
25862
+ slug: string;
25863
+ };
25864
+ cookie?: never;
25865
+ };
25866
+ requestBody?: never;
25867
+ responses: {
25868
+ 200: {
25869
+ headers: {
25870
+ [name: string]: unknown;
25871
+ };
25872
+ content: {
25873
+ "application/json": components["schemas"]["ProductCollection"];
25874
+ };
25875
+ };
25876
+ /** @description Possible error codes include `VALIDATION_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
25877
+ 400: {
25878
+ headers: {
25879
+ [name: string]: unknown;
25880
+ };
25881
+ content: {
25882
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25883
+ };
25884
+ };
25885
+ /** @description Possible error codes include `NOT_FOUND`. Use `x-error-codes` for machine-readable retryability metadata. */
25886
+ 404: {
25887
+ headers: {
25888
+ [name: string]: unknown;
25889
+ };
25890
+ content: {
25891
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25892
+ };
25893
+ };
25894
+ /** @description Possible error codes include `RATE_LIMITED`. Use `x-error-codes` for machine-readable retryability metadata. */
25895
+ 429: {
25896
+ headers: {
25897
+ [name: string]: unknown;
25898
+ };
25899
+ content: {
25900
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25901
+ };
25902
+ };
25903
+ /** @description Possible error codes include `INTERNAL_ERROR`. Use `x-error-codes` for machine-readable retryability metadata. */
25904
+ 500: {
25905
+ headers: {
25906
+ [name: string]: unknown;
25907
+ };
25908
+ content: {
25909
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25910
+ };
25911
+ };
25912
+ /** @description Possible error codes: `MARKETPLACE_SEARCH_UNAVAILABLE`. Retryable: yes. */
25913
+ 502: {
25914
+ headers: {
25915
+ [name: string]: unknown;
25916
+ };
25917
+ content: {
25918
+ "application/json": components["schemas"]["APIErrorEnvelope"];
25919
+ };
25920
+ };
25921
+ };
25922
+ };
25763
25923
  discovery_stores_retrieve: {
25764
25924
  parameters: {
25765
25925
  query?: never;
@@ -36686,6 +36846,8 @@ interface operations {
36686
36846
  products_list: {
36687
36847
  parameters: {
36688
36848
  query?: {
36849
+ /** @description Delivery destination country as ISO 3166-1 alpha-2 (e.g. NL, BE), used with latitude and longitude. A nationwide carrier that declares per-country service areas only offers its products once the country is known. Case-insensitive; any other value is treated as no country. */
36850
+ country?: string;
36689
36851
  /** @description Sort order for products. Use '-popularity' for most popular first. */
36690
36852
  ordering?: "-popularity" | "-position" | "position";
36691
36853
  /** @description A page number within the paginated result set. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-all-sdk",
3
- "version": "4.1.0",
3
+ "version": "4.2.0",
4
4
  "description": "Type-safe TypeScript SDK for all SOUS Storefront Backend endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -41,6 +41,6 @@
41
41
  "openapi-typescript": "^7.6.1",
42
42
  "tsup": "^8.3.5",
43
43
  "typescript": "^5.8.2",
44
- "vitest": "^3.2.4"
44
+ "vitest": "^5.0.3"
45
45
  }
46
46
  }