@poweredbysous/storefront-all-sdk 4.3.0 → 4.4.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 +55 -9
- package/dist/index.d.ts +55 -9
- package/package.json +1 -1
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
|
-
*
|
|
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;
|
|
@@ -7880,18 +7886,26 @@ interface components {
|
|
|
7880
7886
|
partial: boolean;
|
|
7881
7887
|
};
|
|
7882
7888
|
/**
|
|
7883
|
-
* @description The address to answer for.
|
|
7889
|
+
* @description The address, or the position, to answer for.
|
|
7890
|
+
*
|
|
7891
|
+
* An address is ``postal_code`` and ``country``, with street and city
|
|
7892
|
+
* optional: most Dutch delivery areas resolve on postcode alone, and
|
|
7893
|
+
* demanding a house number to filter a listing page would ask for more
|
|
7894
|
+
* personal data than the answer needs.
|
|
7884
7895
|
*
|
|
7885
|
-
* ``
|
|
7886
|
-
*
|
|
7887
|
-
*
|
|
7888
|
-
* than the answer needs.
|
|
7896
|
+
* A position (``latitude`` and ``longitude``, together) stands in for the
|
|
7897
|
+
* postcode when there is none. It is reverse-geocoded to a postcode and
|
|
7898
|
+
* country, which replace any ``country`` sent. A postcode, when sent, wins.
|
|
7889
7899
|
*/
|
|
7890
7900
|
DeliverabilityRequest: {
|
|
7891
|
-
postal_code
|
|
7892
|
-
country
|
|
7901
|
+
postal_code?: string;
|
|
7902
|
+
country?: string;
|
|
7893
7903
|
address_line_1?: string;
|
|
7894
7904
|
city?: string;
|
|
7905
|
+
/** Format: double */
|
|
7906
|
+
latitude?: number;
|
|
7907
|
+
/** Format: double */
|
|
7908
|
+
longitude?: number;
|
|
7895
7909
|
};
|
|
7896
7910
|
/**
|
|
7897
7911
|
* @description One area a merchant drew on a map.
|
|
@@ -8086,6 +8100,7 @@ interface components {
|
|
|
8086
8100
|
michelin_stars: number | null;
|
|
8087
8101
|
tags: string[];
|
|
8088
8102
|
book_url: string;
|
|
8103
|
+
locations: components["schemas"]["DiscoveryPartnerLocation"][];
|
|
8089
8104
|
};
|
|
8090
8105
|
/**
|
|
8091
8106
|
* @description The whole directory plus its filter vocabulary, in one read.
|
|
@@ -8097,6 +8112,14 @@ interface components {
|
|
|
8097
8112
|
tags: components["schemas"]["DiscoveryTag"][];
|
|
8098
8113
|
partners: components["schemas"]["DiscoveryPartner"][];
|
|
8099
8114
|
};
|
|
8115
|
+
/** @description One of a partner's stores, placed for a map pin. */
|
|
8116
|
+
DiscoveryPartnerLocation: {
|
|
8117
|
+
public_id: string;
|
|
8118
|
+
/** Format: double */
|
|
8119
|
+
latitude: number | null;
|
|
8120
|
+
/** Format: double */
|
|
8121
|
+
longitude: number | null;
|
|
8122
|
+
};
|
|
8100
8123
|
/** @description The stores ExploreSOUS serves, as ``X-Vendor-ID`` values. */
|
|
8101
8124
|
DiscoveryStoreMembership: {
|
|
8102
8125
|
store_ids: string[];
|
|
@@ -8621,6 +8644,14 @@ interface components {
|
|
|
8621
8644
|
store_public_id: string;
|
|
8622
8645
|
brand_slug: string;
|
|
8623
8646
|
brand_name: string;
|
|
8647
|
+
store_name: string;
|
|
8648
|
+
/**
|
|
8649
|
+
* Format: double
|
|
8650
|
+
* @description The store's pickup location, for a map pin; null when it cannot be placed.
|
|
8651
|
+
*/
|
|
8652
|
+
store_latitude: number | null;
|
|
8653
|
+
/** Format: double */
|
|
8654
|
+
store_longitude: number | null;
|
|
8624
8655
|
name: string;
|
|
8625
8656
|
description: string;
|
|
8626
8657
|
price_cents: number;
|
|
@@ -11081,11 +11112,23 @@ interface components {
|
|
|
11081
11112
|
store_public_id: string;
|
|
11082
11113
|
methods: components["schemas"]["DeliveryMethodState"][];
|
|
11083
11114
|
};
|
|
11115
|
+
StoreMeAddress: {
|
|
11116
|
+
address_1: string;
|
|
11117
|
+
address_2: string;
|
|
11118
|
+
city: string;
|
|
11119
|
+
postal_code: string;
|
|
11120
|
+
country: string;
|
|
11121
|
+
};
|
|
11084
11122
|
StoreMeResponse: {
|
|
11085
11123
|
id: number;
|
|
11086
11124
|
public_id: string;
|
|
11087
11125
|
name: string;
|
|
11088
11126
|
currency: string;
|
|
11127
|
+
address?: components["schemas"]["StoreMeAddress"] | null;
|
|
11128
|
+
/** Format: double */
|
|
11129
|
+
latitude?: number | null;
|
|
11130
|
+
/** Format: double */
|
|
11131
|
+
longitude?: number | null;
|
|
11089
11132
|
};
|
|
11090
11133
|
/**
|
|
11091
11134
|
* @description Read/write serializer for the store-onboarding wizard.
|
|
@@ -29019,7 +29062,10 @@ interface operations {
|
|
|
29019
29062
|
};
|
|
29020
29063
|
merchant_me_retrieve: {
|
|
29021
29064
|
parameters: {
|
|
29022
|
-
query?:
|
|
29065
|
+
query?: {
|
|
29066
|
+
/** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
|
|
29067
|
+
include?: "location";
|
|
29068
|
+
};
|
|
29023
29069
|
header?: never;
|
|
29024
29070
|
path?: never;
|
|
29025
29071
|
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
|
-
*
|
|
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;
|
|
@@ -7880,18 +7886,26 @@ interface components {
|
|
|
7880
7886
|
partial: boolean;
|
|
7881
7887
|
};
|
|
7882
7888
|
/**
|
|
7883
|
-
* @description The address to answer for.
|
|
7889
|
+
* @description The address, or the position, to answer for.
|
|
7890
|
+
*
|
|
7891
|
+
* An address is ``postal_code`` and ``country``, with street and city
|
|
7892
|
+
* optional: most Dutch delivery areas resolve on postcode alone, and
|
|
7893
|
+
* demanding a house number to filter a listing page would ask for more
|
|
7894
|
+
* personal data than the answer needs.
|
|
7884
7895
|
*
|
|
7885
|
-
* ``
|
|
7886
|
-
*
|
|
7887
|
-
*
|
|
7888
|
-
* than the answer needs.
|
|
7896
|
+
* A position (``latitude`` and ``longitude``, together) stands in for the
|
|
7897
|
+
* postcode when there is none. It is reverse-geocoded to a postcode and
|
|
7898
|
+
* country, which replace any ``country`` sent. A postcode, when sent, wins.
|
|
7889
7899
|
*/
|
|
7890
7900
|
DeliverabilityRequest: {
|
|
7891
|
-
postal_code
|
|
7892
|
-
country
|
|
7901
|
+
postal_code?: string;
|
|
7902
|
+
country?: string;
|
|
7893
7903
|
address_line_1?: string;
|
|
7894
7904
|
city?: string;
|
|
7905
|
+
/** Format: double */
|
|
7906
|
+
latitude?: number;
|
|
7907
|
+
/** Format: double */
|
|
7908
|
+
longitude?: number;
|
|
7895
7909
|
};
|
|
7896
7910
|
/**
|
|
7897
7911
|
* @description One area a merchant drew on a map.
|
|
@@ -8086,6 +8100,7 @@ interface components {
|
|
|
8086
8100
|
michelin_stars: number | null;
|
|
8087
8101
|
tags: string[];
|
|
8088
8102
|
book_url: string;
|
|
8103
|
+
locations: components["schemas"]["DiscoveryPartnerLocation"][];
|
|
8089
8104
|
};
|
|
8090
8105
|
/**
|
|
8091
8106
|
* @description The whole directory plus its filter vocabulary, in one read.
|
|
@@ -8097,6 +8112,14 @@ interface components {
|
|
|
8097
8112
|
tags: components["schemas"]["DiscoveryTag"][];
|
|
8098
8113
|
partners: components["schemas"]["DiscoveryPartner"][];
|
|
8099
8114
|
};
|
|
8115
|
+
/** @description One of a partner's stores, placed for a map pin. */
|
|
8116
|
+
DiscoveryPartnerLocation: {
|
|
8117
|
+
public_id: string;
|
|
8118
|
+
/** Format: double */
|
|
8119
|
+
latitude: number | null;
|
|
8120
|
+
/** Format: double */
|
|
8121
|
+
longitude: number | null;
|
|
8122
|
+
};
|
|
8100
8123
|
/** @description The stores ExploreSOUS serves, as ``X-Vendor-ID`` values. */
|
|
8101
8124
|
DiscoveryStoreMembership: {
|
|
8102
8125
|
store_ids: string[];
|
|
@@ -8621,6 +8644,14 @@ interface components {
|
|
|
8621
8644
|
store_public_id: string;
|
|
8622
8645
|
brand_slug: string;
|
|
8623
8646
|
brand_name: string;
|
|
8647
|
+
store_name: string;
|
|
8648
|
+
/**
|
|
8649
|
+
* Format: double
|
|
8650
|
+
* @description The store's pickup location, for a map pin; null when it cannot be placed.
|
|
8651
|
+
*/
|
|
8652
|
+
store_latitude: number | null;
|
|
8653
|
+
/** Format: double */
|
|
8654
|
+
store_longitude: number | null;
|
|
8624
8655
|
name: string;
|
|
8625
8656
|
description: string;
|
|
8626
8657
|
price_cents: number;
|
|
@@ -11081,11 +11112,23 @@ interface components {
|
|
|
11081
11112
|
store_public_id: string;
|
|
11082
11113
|
methods: components["schemas"]["DeliveryMethodState"][];
|
|
11083
11114
|
};
|
|
11115
|
+
StoreMeAddress: {
|
|
11116
|
+
address_1: string;
|
|
11117
|
+
address_2: string;
|
|
11118
|
+
city: string;
|
|
11119
|
+
postal_code: string;
|
|
11120
|
+
country: string;
|
|
11121
|
+
};
|
|
11084
11122
|
StoreMeResponse: {
|
|
11085
11123
|
id: number;
|
|
11086
11124
|
public_id: string;
|
|
11087
11125
|
name: string;
|
|
11088
11126
|
currency: string;
|
|
11127
|
+
address?: components["schemas"]["StoreMeAddress"] | null;
|
|
11128
|
+
/** Format: double */
|
|
11129
|
+
latitude?: number | null;
|
|
11130
|
+
/** Format: double */
|
|
11131
|
+
longitude?: number | null;
|
|
11089
11132
|
};
|
|
11090
11133
|
/**
|
|
11091
11134
|
* @description Read/write serializer for the store-onboarding wizard.
|
|
@@ -29019,7 +29062,10 @@ interface operations {
|
|
|
29019
29062
|
};
|
|
29020
29063
|
merchant_me_retrieve: {
|
|
29021
29064
|
parameters: {
|
|
29022
|
-
query?:
|
|
29065
|
+
query?: {
|
|
29066
|
+
/** @description `location` adds `address`, `latitude` and `longitude`. Omit it and those keys are absent and nothing is geocoded. */
|
|
29067
|
+
include?: "location";
|
|
29068
|
+
};
|
|
29023
29069
|
header?: never;
|
|
29024
29070
|
path?: never;
|
|
29025
29071
|
cookie?: never;
|