@poweredbysous/storefront-admin-sdk 4.0.2 → 4.0.3

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
@@ -2150,7 +2150,13 @@ interface paths {
2150
2150
  * @description Return the authenticated merchant's information.
2151
2151
  *
2152
2152
  * Uses the default StoreAuthentication and IsStore permission.
2153
- * Useful for testing merchant authentication.
2153
+ *
2154
+ * With ``?include=location`` the payload also carries the store's pickup
2155
+ * address and position, so the ExploreSOUS directory can pin it. That costs
2156
+ * a (cached) geocode, so it is opt-in: the store and product pages read this
2157
+ * endpoint without it and never pay for one. ``address`` is null without an
2158
+ * active pickup location; the coordinates are null when the address cannot
2159
+ * be placed.
2154
2160
  */
2155
2161
  get: operations["merchant_me_retrieve"];
2156
2162
  put?: never;
@@ -5799,11 +5805,23 @@ interface components {
5799
5805
  store_public_id: string;
5800
5806
  methods: components["schemas"]["DeliveryMethodState"][];
5801
5807
  };
5808
+ StoreMeAddress: {
5809
+ address_1: string;
5810
+ address_2: string;
5811
+ city: string;
5812
+ postal_code: string;
5813
+ country: string;
5814
+ };
5802
5815
  StoreMeResponse: {
5803
5816
  id: number;
5804
5817
  public_id: string;
5805
5818
  name: string;
5806
5819
  currency: string;
5820
+ address?: components["schemas"]["StoreMeAddress"] | null;
5821
+ /** Format: double */
5822
+ latitude?: number | null;
5823
+ /** Format: double */
5824
+ longitude?: number | null;
5807
5825
  };
5808
5826
  /**
5809
5827
  * @description Read/write serializer for the store-onboarding wizard.
@@ -15888,7 +15906,10 @@ interface operations {
15888
15906
  };
15889
15907
  merchant_me_retrieve: {
15890
15908
  parameters: {
15891
- query?: never;
15909
+ query?: {
15910
+ /** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
15911
+ include?: "location";
15912
+ };
15892
15913
  header?: never;
15893
15914
  path?: never;
15894
15915
  cookie?: never;
package/dist/index.d.ts CHANGED
@@ -2150,7 +2150,13 @@ interface paths {
2150
2150
  * @description Return the authenticated merchant's information.
2151
2151
  *
2152
2152
  * Uses the default StoreAuthentication and IsStore permission.
2153
- * Useful for testing merchant authentication.
2153
+ *
2154
+ * With ``?include=location`` the payload also carries the store's pickup
2155
+ * address and position, so the ExploreSOUS directory can pin it. That costs
2156
+ * a (cached) geocode, so it is opt-in: the store and product pages read this
2157
+ * endpoint without it and never pay for one. ``address`` is null without an
2158
+ * active pickup location; the coordinates are null when the address cannot
2159
+ * be placed.
2154
2160
  */
2155
2161
  get: operations["merchant_me_retrieve"];
2156
2162
  put?: never;
@@ -5799,11 +5805,23 @@ interface components {
5799
5805
  store_public_id: string;
5800
5806
  methods: components["schemas"]["DeliveryMethodState"][];
5801
5807
  };
5808
+ StoreMeAddress: {
5809
+ address_1: string;
5810
+ address_2: string;
5811
+ city: string;
5812
+ postal_code: string;
5813
+ country: string;
5814
+ };
5802
5815
  StoreMeResponse: {
5803
5816
  id: number;
5804
5817
  public_id: string;
5805
5818
  name: string;
5806
5819
  currency: string;
5820
+ address?: components["schemas"]["StoreMeAddress"] | null;
5821
+ /** Format: double */
5822
+ latitude?: number | null;
5823
+ /** Format: double */
5824
+ longitude?: number | null;
5807
5825
  };
5808
5826
  /**
5809
5827
  * @description Read/write serializer for the store-onboarding wizard.
@@ -15888,7 +15906,10 @@ interface operations {
15888
15906
  };
15889
15907
  merchant_me_retrieve: {
15890
15908
  parameters: {
15891
- query?: never;
15909
+ query?: {
15910
+ /** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
15911
+ include?: "location";
15912
+ };
15892
15913
  header?: never;
15893
15914
  path?: never;
15894
15915
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-admin-sdk",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend admin endpoints",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,