@poweredbysous/storefront-sdk 3.0.2 → 3.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
@@ -1459,7 +1459,13 @@ interface paths {
1459
1459
  * @description Return the authenticated merchant's information.
1460
1460
  *
1461
1461
  * Uses the default StoreAuthentication and IsStore permission.
1462
- * Useful for testing merchant authentication.
1462
+ *
1463
+ * With ``?include=location`` the payload also carries the store's pickup
1464
+ * address and position, so the ExploreSOUS directory can pin it. That costs
1465
+ * a (cached) geocode, so it is opt-in: the store and product pages read this
1466
+ * endpoint without it and never pay for one. ``address`` is null without an
1467
+ * active pickup location; the coordinates are null when the address cannot
1468
+ * be placed.
1463
1469
  */
1464
1470
  get: operations["merchant_me_retrieve"];
1465
1471
  put?: never;
@@ -4601,11 +4607,23 @@ interface components {
4601
4607
  readonly offers_reusable_packaging: boolean;
4602
4608
  readonly reusable_deposit_amount?: string | null;
4603
4609
  };
4610
+ StoreMeAddress: {
4611
+ address_1: string;
4612
+ address_2: string;
4613
+ city: string;
4614
+ postal_code: string;
4615
+ country: string;
4616
+ };
4604
4617
  StoreMeResponse: {
4605
4618
  id: number;
4606
4619
  public_id: string;
4607
4620
  name: string;
4608
4621
  currency: string;
4622
+ address?: components["schemas"]["StoreMeAddress"] | null;
4623
+ /** Format: double */
4624
+ latitude?: number | null;
4625
+ /** Format: double */
4626
+ longitude?: number | null;
4609
4627
  };
4610
4628
  /**
4611
4629
  * @description Read/write serializer for the store-onboarding wizard.
@@ -12191,7 +12209,10 @@ interface operations {
12191
12209
  };
12192
12210
  merchant_me_retrieve: {
12193
12211
  parameters: {
12194
- query?: never;
12212
+ query?: {
12213
+ /** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
12214
+ include?: "location";
12215
+ };
12195
12216
  header?: never;
12196
12217
  path?: never;
12197
12218
  cookie?: never;
package/dist/index.d.ts CHANGED
@@ -1459,7 +1459,13 @@ interface paths {
1459
1459
  * @description Return the authenticated merchant's information.
1460
1460
  *
1461
1461
  * Uses the default StoreAuthentication and IsStore permission.
1462
- * Useful for testing merchant authentication.
1462
+ *
1463
+ * With ``?include=location`` the payload also carries the store's pickup
1464
+ * address and position, so the ExploreSOUS directory can pin it. That costs
1465
+ * a (cached) geocode, so it is opt-in: the store and product pages read this
1466
+ * endpoint without it and never pay for one. ``address`` is null without an
1467
+ * active pickup location; the coordinates are null when the address cannot
1468
+ * be placed.
1463
1469
  */
1464
1470
  get: operations["merchant_me_retrieve"];
1465
1471
  put?: never;
@@ -4601,11 +4607,23 @@ interface components {
4601
4607
  readonly offers_reusable_packaging: boolean;
4602
4608
  readonly reusable_deposit_amount?: string | null;
4603
4609
  };
4610
+ StoreMeAddress: {
4611
+ address_1: string;
4612
+ address_2: string;
4613
+ city: string;
4614
+ postal_code: string;
4615
+ country: string;
4616
+ };
4604
4617
  StoreMeResponse: {
4605
4618
  id: number;
4606
4619
  public_id: string;
4607
4620
  name: string;
4608
4621
  currency: string;
4622
+ address?: components["schemas"]["StoreMeAddress"] | null;
4623
+ /** Format: double */
4624
+ latitude?: number | null;
4625
+ /** Format: double */
4626
+ longitude?: number | null;
4609
4627
  };
4610
4628
  /**
4611
4629
  * @description Read/write serializer for the store-onboarding wizard.
@@ -12191,7 +12209,10 @@ interface operations {
12191
12209
  };
12192
12210
  merchant_me_retrieve: {
12193
12211
  parameters: {
12194
- query?: never;
12212
+ query?: {
12213
+ /** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
12214
+ include?: "location";
12215
+ };
12195
12216
  header?: never;
12196
12217
  path?: never;
12197
12218
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poweredbysous/storefront-sdk",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Type-safe TypeScript SDK for SOUS Storefront Backend",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,