@poweredbysous/storefront-all-sdk 4.3.0 → 4.4.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.cts CHANGED
@@ -3760,7 +3760,13 @@ interface paths {
3760
3760
  * @description Return the authenticated merchant's information.
3761
3761
  *
3762
3762
  * Uses the default StoreAuthentication and IsStore permission.
3763
- * Useful for testing merchant authentication.
3763
+ *
3764
+ * With ``?include=location`` the payload also carries the store's pickup
3765
+ * address and position, so the ExploreSOUS directory can pin it. That costs
3766
+ * a (cached) geocode, so it is opt-in: the store and product pages read this
3767
+ * endpoint without it and never pay for one. ``address`` is null without an
3768
+ * active pickup location; the coordinates are null when the address cannot
3769
+ * be placed.
3764
3770
  */
3765
3771
  get: operations["merchant_me_retrieve"];
3766
3772
  put?: never;
@@ -6707,14 +6713,14 @@ interface components {
6707
6713
  unit_price_override?: string;
6708
6714
  };
6709
6715
  AddressCheckInput: {
6710
- /** @default */
6711
- address_line_1: string;
6712
- /** @default */
6713
- city: string;
6714
- /** @default */
6715
- postal_code: string;
6716
- /** @default NL */
6717
- country: string;
6716
+ address_line_1?: string;
6717
+ city?: string;
6718
+ postal_code?: string;
6719
+ country?: string;
6720
+ /** Format: double */
6721
+ latitude?: number;
6722
+ /** Format: double */
6723
+ longitude?: number;
6718
6724
  };
6719
6725
  AddressCheckPickupLocation: {
6720
6726
  id: number;
@@ -6726,6 +6732,8 @@ interface components {
6726
6732
  AddressCheckResponse: {
6727
6733
  latitude: string;
6728
6734
  longitude: string;
6735
+ postal_code: string;
6736
+ country: string;
6729
6737
  available_fulfillment_types: string[];
6730
6738
  available_shipping_providers: components["schemas"]["ShippingProviderOption"][];
6731
6739
  pickup_locations: components["schemas"]["AddressCheckPickupLocation"][];
@@ -7880,18 +7888,26 @@ interface components {
7880
7888
  partial: boolean;
7881
7889
  };
7882
7890
  /**
7883
- * @description The address to answer for.
7891
+ * @description The address, or the position, to answer for.
7884
7892
  *
7885
- * ``postal_code`` and ``country`` are required and the rest is optional:
7886
- * most Dutch delivery areas resolve on postcode alone, and demanding a
7887
- * house number to filter a listing page would ask for more personal data
7888
- * than the answer needs.
7893
+ * An address is ``postal_code`` and ``country``, with street and city
7894
+ * optional: most Dutch delivery areas resolve on postcode alone, and
7895
+ * demanding a house number to filter a listing page would ask for more
7896
+ * personal data than the answer needs.
7897
+ *
7898
+ * A position (``latitude`` and ``longitude``, together) stands in for the
7899
+ * postcode when there is none. It is reverse-geocoded to a postcode and
7900
+ * country, which replace any ``country`` sent. A postcode, when sent, wins.
7889
7901
  */
7890
7902
  DeliverabilityRequest: {
7891
- postal_code: string;
7892
- country: string;
7903
+ postal_code?: string;
7904
+ country?: string;
7893
7905
  address_line_1?: string;
7894
7906
  city?: string;
7907
+ /** Format: double */
7908
+ latitude?: number;
7909
+ /** Format: double */
7910
+ longitude?: number;
7895
7911
  };
7896
7912
  /**
7897
7913
  * @description One area a merchant drew on a map.
@@ -8086,6 +8102,7 @@ interface components {
8086
8102
  michelin_stars: number | null;
8087
8103
  tags: string[];
8088
8104
  book_url: string;
8105
+ locations: components["schemas"]["DiscoveryPartnerLocation"][];
8089
8106
  };
8090
8107
  /**
8091
8108
  * @description The whole directory plus its filter vocabulary, in one read.
@@ -8097,6 +8114,14 @@ interface components {
8097
8114
  tags: components["schemas"]["DiscoveryTag"][];
8098
8115
  partners: components["schemas"]["DiscoveryPartner"][];
8099
8116
  };
8117
+ /** @description One of a partner's stores, placed for a map pin. */
8118
+ DiscoveryPartnerLocation: {
8119
+ public_id: string;
8120
+ /** Format: double */
8121
+ latitude: number | null;
8122
+ /** Format: double */
8123
+ longitude: number | null;
8124
+ };
8100
8125
  /** @description The stores ExploreSOUS serves, as ``X-Vendor-ID`` values. */
8101
8126
  DiscoveryStoreMembership: {
8102
8127
  store_ids: string[];
@@ -8621,6 +8646,14 @@ interface components {
8621
8646
  store_public_id: string;
8622
8647
  brand_slug: string;
8623
8648
  brand_name: string;
8649
+ store_name: string;
8650
+ /**
8651
+ * Format: double
8652
+ * @description The store's pickup location, for a map pin; null when it cannot be placed.
8653
+ */
8654
+ store_latitude: number | null;
8655
+ /** Format: double */
8656
+ store_longitude: number | null;
8624
8657
  name: string;
8625
8658
  description: string;
8626
8659
  price_cents: number;
@@ -10965,6 +10998,8 @@ interface components {
10965
10998
  /** @description Cart-level free-delivery threshold, or null when the basket spans carriers that do not agree on one. */
10966
10999
  free_shipping_threshold: string | null;
10967
11000
  remaining_for_free_shipping: string | null;
11001
+ /** @description Products no carrier delivers to this address. The total does not cover them and checkout cannot route them, so the customer must remove them or change the address. Empty when every item ships. */
11002
+ unshippable_product_ids: number[];
10968
11003
  };
10969
11004
  /**
10970
11005
  * @description One carrier's share of the basket. Documentation only — never used to
@@ -11081,11 +11116,23 @@ interface components {
11081
11116
  store_public_id: string;
11082
11117
  methods: components["schemas"]["DeliveryMethodState"][];
11083
11118
  };
11119
+ StoreMeAddress: {
11120
+ address_1: string;
11121
+ address_2: string;
11122
+ city: string;
11123
+ postal_code: string;
11124
+ country: string;
11125
+ };
11084
11126
  StoreMeResponse: {
11085
11127
  id: number;
11086
11128
  public_id: string;
11087
11129
  name: string;
11088
11130
  currency: string;
11131
+ address?: components["schemas"]["StoreMeAddress"] | null;
11132
+ /** Format: double */
11133
+ latitude?: number | null;
11134
+ /** Format: double */
11135
+ longitude?: number | null;
11089
11136
  };
11090
11137
  /**
11091
11138
  * @description Read/write serializer for the store-onboarding wizard.
@@ -29019,7 +29066,10 @@ interface operations {
29019
29066
  };
29020
29067
  merchant_me_retrieve: {
29021
29068
  parameters: {
29022
- query?: never;
29069
+ query?: {
29070
+ /** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
29071
+ include?: "location";
29072
+ };
29023
29073
  header?: never;
29024
29074
  path?: never;
29025
29075
  cookie?: never;
package/dist/index.d.ts CHANGED
@@ -3760,7 +3760,13 @@ interface paths {
3760
3760
  * @description Return the authenticated merchant's information.
3761
3761
  *
3762
3762
  * Uses the default StoreAuthentication and IsStore permission.
3763
- * Useful for testing merchant authentication.
3763
+ *
3764
+ * With ``?include=location`` the payload also carries the store's pickup
3765
+ * address and position, so the ExploreSOUS directory can pin it. That costs
3766
+ * a (cached) geocode, so it is opt-in: the store and product pages read this
3767
+ * endpoint without it and never pay for one. ``address`` is null without an
3768
+ * active pickup location; the coordinates are null when the address cannot
3769
+ * be placed.
3764
3770
  */
3765
3771
  get: operations["merchant_me_retrieve"];
3766
3772
  put?: never;
@@ -6707,14 +6713,14 @@ interface components {
6707
6713
  unit_price_override?: string;
6708
6714
  };
6709
6715
  AddressCheckInput: {
6710
- /** @default */
6711
- address_line_1: string;
6712
- /** @default */
6713
- city: string;
6714
- /** @default */
6715
- postal_code: string;
6716
- /** @default NL */
6717
- country: string;
6716
+ address_line_1?: string;
6717
+ city?: string;
6718
+ postal_code?: string;
6719
+ country?: string;
6720
+ /** Format: double */
6721
+ latitude?: number;
6722
+ /** Format: double */
6723
+ longitude?: number;
6718
6724
  };
6719
6725
  AddressCheckPickupLocation: {
6720
6726
  id: number;
@@ -6726,6 +6732,8 @@ interface components {
6726
6732
  AddressCheckResponse: {
6727
6733
  latitude: string;
6728
6734
  longitude: string;
6735
+ postal_code: string;
6736
+ country: string;
6729
6737
  available_fulfillment_types: string[];
6730
6738
  available_shipping_providers: components["schemas"]["ShippingProviderOption"][];
6731
6739
  pickup_locations: components["schemas"]["AddressCheckPickupLocation"][];
@@ -7880,18 +7888,26 @@ interface components {
7880
7888
  partial: boolean;
7881
7889
  };
7882
7890
  /**
7883
- * @description The address to answer for.
7891
+ * @description The address, or the position, to answer for.
7884
7892
  *
7885
- * ``postal_code`` and ``country`` are required and the rest is optional:
7886
- * most Dutch delivery areas resolve on postcode alone, and demanding a
7887
- * house number to filter a listing page would ask for more personal data
7888
- * than the answer needs.
7893
+ * An address is ``postal_code`` and ``country``, with street and city
7894
+ * optional: most Dutch delivery areas resolve on postcode alone, and
7895
+ * demanding a house number to filter a listing page would ask for more
7896
+ * personal data than the answer needs.
7897
+ *
7898
+ * A position (``latitude`` and ``longitude``, together) stands in for the
7899
+ * postcode when there is none. It is reverse-geocoded to a postcode and
7900
+ * country, which replace any ``country`` sent. A postcode, when sent, wins.
7889
7901
  */
7890
7902
  DeliverabilityRequest: {
7891
- postal_code: string;
7892
- country: string;
7903
+ postal_code?: string;
7904
+ country?: string;
7893
7905
  address_line_1?: string;
7894
7906
  city?: string;
7907
+ /** Format: double */
7908
+ latitude?: number;
7909
+ /** Format: double */
7910
+ longitude?: number;
7895
7911
  };
7896
7912
  /**
7897
7913
  * @description One area a merchant drew on a map.
@@ -8086,6 +8102,7 @@ interface components {
8086
8102
  michelin_stars: number | null;
8087
8103
  tags: string[];
8088
8104
  book_url: string;
8105
+ locations: components["schemas"]["DiscoveryPartnerLocation"][];
8089
8106
  };
8090
8107
  /**
8091
8108
  * @description The whole directory plus its filter vocabulary, in one read.
@@ -8097,6 +8114,14 @@ interface components {
8097
8114
  tags: components["schemas"]["DiscoveryTag"][];
8098
8115
  partners: components["schemas"]["DiscoveryPartner"][];
8099
8116
  };
8117
+ /** @description One of a partner's stores, placed for a map pin. */
8118
+ DiscoveryPartnerLocation: {
8119
+ public_id: string;
8120
+ /** Format: double */
8121
+ latitude: number | null;
8122
+ /** Format: double */
8123
+ longitude: number | null;
8124
+ };
8100
8125
  /** @description The stores ExploreSOUS serves, as ``X-Vendor-ID`` values. */
8101
8126
  DiscoveryStoreMembership: {
8102
8127
  store_ids: string[];
@@ -8621,6 +8646,14 @@ interface components {
8621
8646
  store_public_id: string;
8622
8647
  brand_slug: string;
8623
8648
  brand_name: string;
8649
+ store_name: string;
8650
+ /**
8651
+ * Format: double
8652
+ * @description The store's pickup location, for a map pin; null when it cannot be placed.
8653
+ */
8654
+ store_latitude: number | null;
8655
+ /** Format: double */
8656
+ store_longitude: number | null;
8624
8657
  name: string;
8625
8658
  description: string;
8626
8659
  price_cents: number;
@@ -10965,6 +10998,8 @@ interface components {
10965
10998
  /** @description Cart-level free-delivery threshold, or null when the basket spans carriers that do not agree on one. */
10966
10999
  free_shipping_threshold: string | null;
10967
11000
  remaining_for_free_shipping: string | null;
11001
+ /** @description Products no carrier delivers to this address. The total does not cover them and checkout cannot route them, so the customer must remove them or change the address. Empty when every item ships. */
11002
+ unshippable_product_ids: number[];
10968
11003
  };
10969
11004
  /**
10970
11005
  * @description One carrier's share of the basket. Documentation only — never used to
@@ -11081,11 +11116,23 @@ interface components {
11081
11116
  store_public_id: string;
11082
11117
  methods: components["schemas"]["DeliveryMethodState"][];
11083
11118
  };
11119
+ StoreMeAddress: {
11120
+ address_1: string;
11121
+ address_2: string;
11122
+ city: string;
11123
+ postal_code: string;
11124
+ country: string;
11125
+ };
11084
11126
  StoreMeResponse: {
11085
11127
  id: number;
11086
11128
  public_id: string;
11087
11129
  name: string;
11088
11130
  currency: string;
11131
+ address?: components["schemas"]["StoreMeAddress"] | null;
11132
+ /** Format: double */
11133
+ latitude?: number | null;
11134
+ /** Format: double */
11135
+ longitude?: number | null;
11089
11136
  };
11090
11137
  /**
11091
11138
  * @description Read/write serializer for the store-onboarding wizard.
@@ -29019,7 +29066,10 @@ interface operations {
29019
29066
  };
29020
29067
  merchant_me_retrieve: {
29021
29068
  parameters: {
29022
- query?: never;
29069
+ query?: {
29070
+ /** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
29071
+ include?: "location";
29072
+ };
29023
29073
  header?: never;
29024
29074
  path?: never;
29025
29075
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-all-sdk",
3
- "version": "4.3.0",
3
+ "version": "4.4.1",
4
4
  "description": "Type-safe TypeScript SDK for all SOUS Storefront Backend endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,