commerce-sdk-isomorphic 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.
Files changed (86) hide show
  1. package/README.md +1 -114
  2. package/lib/index.cjs.d.ts +1320 -169
  3. package/lib/index.cjs.js +1 -1
  4. package/lib/index.esm.d.ts +1320 -169
  5. package/lib/index.esm.js +1 -1
  6. package/package.json +24 -91
  7. package/lib/clientConfig.cjs.d.ts +0 -54
  8. package/lib/clientConfig.cjs.js +0 -1
  9. package/lib/clientConfig.d.ts +0 -54
  10. package/lib/clientConfig.js +0 -1
  11. package/lib/config.cjs.d.ts +0 -2
  12. package/lib/config.cjs.js +0 -1
  13. package/lib/config.d.ts +0 -2
  14. package/lib/config.js +0 -1
  15. package/lib/helpers.cjs.d.ts +0 -2225
  16. package/lib/helpers.cjs.js +0 -1
  17. package/lib/helpers.d.ts +0 -2225
  18. package/lib/helpers.js +0 -1
  19. package/lib/responseError.cjs.d.ts +0 -12
  20. package/lib/responseError.cjs.js +0 -1
  21. package/lib/responseError.d.ts +0 -12
  22. package/lib/responseError.js +0 -1
  23. package/lib/shopperBaskets.cjs.d.ts +0 -10264
  24. package/lib/shopperBaskets.cjs.js +0 -1
  25. package/lib/shopperBaskets.d.ts +0 -10264
  26. package/lib/shopperBaskets.js +0 -1
  27. package/lib/shopperBasketsv2.cjs.d.ts +0 -10458
  28. package/lib/shopperBasketsv2.cjs.js +0 -1
  29. package/lib/shopperBasketsv2.d.ts +0 -10458
  30. package/lib/shopperBasketsv2.js +0 -1
  31. package/lib/shopperConsents.cjs.d.ts +0 -1147
  32. package/lib/shopperConsents.cjs.js +0 -1
  33. package/lib/shopperConsents.d.ts +0 -1147
  34. package/lib/shopperConsents.js +0 -1
  35. package/lib/shopperContext.cjs.d.ts +0 -1406
  36. package/lib/shopperContext.cjs.js +0 -1
  37. package/lib/shopperContext.d.ts +0 -1406
  38. package/lib/shopperContext.js +0 -1
  39. package/lib/shopperCustomers.cjs.d.ts +0 -12190
  40. package/lib/shopperCustomers.cjs.js +0 -1
  41. package/lib/shopperCustomers.d.ts +0 -12190
  42. package/lib/shopperCustomers.js +0 -1
  43. package/lib/shopperExperience.cjs.d.ts +0 -1174
  44. package/lib/shopperExperience.cjs.js +0 -1
  45. package/lib/shopperExperience.d.ts +0 -1174
  46. package/lib/shopperExperience.js +0 -1
  47. package/lib/shopperGiftCertificates.cjs.d.ts +0 -734
  48. package/lib/shopperGiftCertificates.cjs.js +0 -1
  49. package/lib/shopperGiftCertificates.d.ts +0 -734
  50. package/lib/shopperGiftCertificates.js +0 -1
  51. package/lib/shopperLogin.cjs.d.ts +0 -3847
  52. package/lib/shopperLogin.cjs.js +0 -1
  53. package/lib/shopperLogin.d.ts +0 -3847
  54. package/lib/shopperLogin.js +0 -1
  55. package/lib/shopperOrders.cjs.d.ts +0 -5398
  56. package/lib/shopperOrders.cjs.js +0 -1
  57. package/lib/shopperOrders.d.ts +0 -5398
  58. package/lib/shopperOrders.js +0 -1
  59. package/lib/shopperProducts.cjs.d.ts +0 -3484
  60. package/lib/shopperProducts.cjs.js +0 -1
  61. package/lib/shopperProducts.d.ts +0 -3484
  62. package/lib/shopperProducts.js +0 -1
  63. package/lib/shopperPromotions.cjs.d.ts +0 -1006
  64. package/lib/shopperPromotions.cjs.js +0 -1
  65. package/lib/shopperPromotions.d.ts +0 -1006
  66. package/lib/shopperPromotions.js +0 -1
  67. package/lib/shopperSearch.cjs.d.ts +0 -3357
  68. package/lib/shopperSearch.cjs.js +0 -1
  69. package/lib/shopperSearch.d.ts +0 -3357
  70. package/lib/shopperSearch.js +0 -1
  71. package/lib/shopperSeo.cjs.d.ts +0 -774
  72. package/lib/shopperSeo.cjs.js +0 -1
  73. package/lib/shopperSeo.d.ts +0 -774
  74. package/lib/shopperSeo.js +0 -1
  75. package/lib/shopperStores.cjs.d.ts +0 -1294
  76. package/lib/shopperStores.cjs.js +0 -1
  77. package/lib/shopperStores.d.ts +0 -1294
  78. package/lib/shopperStores.js +0 -1
  79. package/lib/templateUrl.cjs.d.ts +0 -76
  80. package/lib/templateUrl.cjs.js +0 -1
  81. package/lib/templateUrl.d.ts +0 -76
  82. package/lib/templateUrl.js +0 -1
  83. package/lib/version.cjs.d.ts +0 -3
  84. package/lib/version.cjs.js +0 -1
  85. package/lib/version.d.ts +0 -3
  86. package/lib/version.js +0 -1
@@ -1,774 +0,0 @@
1
- /*
2
- * Copyright (c) 2021, salesforce.com, inc.
3
- * All rights reserved.
4
- * SPDX-License-Identifier: BSD-3-Clause
5
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
6
- */
7
- import { RequestInit as NodeRequestInit } from "node-fetch";
8
- /*
9
- * Copyright (c) 2025, Salesforce, Inc.
10
- * All rights reserved.
11
- * SPDX-License-Identifier: BSD-3-Clause
12
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
13
- */
14
- declare const defaultBaseUri = "https://{shortCode}.api.commercecloud.salesforce.com/site/shopper-seo/v1";
15
- /**
16
- * Makes a type easier to read.
17
- */
18
- type Prettify<T> = NonNullable<{
19
- [K in keyof T]: T[K];
20
- }>;
21
- /**
22
- * Generates the types required on a method, based on those provided in the config.
23
- */
24
- type CompositeParameters<MethodParameters extends Record<string, unknown>, ConfigParameters extends Record<string, unknown>> = Prettify<Omit<MethodParameters, keyof ConfigParameters> & Partial<MethodParameters>>;
25
- /**
26
- * If an object has a `parameters` property, and the `parameters` object has required properties,
27
- * then the `parameters` property on the root object is marked as required.
28
- */
29
- type RequireParametersUnlessAllAreOptional<T extends {
30
- parameters?: Record<string, unknown>;
31
- }> = Record<string, never> extends NonNullable<T["parameters"]> ? T : Prettify<T & Required<Pick<T, "parameters">>>;
32
- /**
33
- * Template parameters used in the base URI of all API endpoints. `version` will default to `"v1"`
34
- * if not specified.
35
- */
36
- interface BaseUriParameters {
37
- shortCode: string;
38
- }
39
- type LocaleCode = {
40
- [key: string]: any;
41
- };
42
- /**
43
- * Generic interface for path parameters.
44
- */
45
- interface PathParameters {
46
- [key: string]: string | number | boolean;
47
- }
48
- /**
49
- * Generic interface for query parameters.
50
- */
51
- interface QueryParameters {
52
- [key: string]: string | number | boolean | string[] | number[] | LocaleCode;
53
- }
54
- /**
55
- * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
56
- * it from the `RequestInit` provided by node-fetch.
57
- */
58
- type BrowserRequestInit = RequestInit;
59
- /**
60
- * Any properties supported in either the browser or node are accepted.
61
- * Using the right properties in the right context is left to the user.
62
- */
63
- type FetchOptions = NodeRequestInit & BrowserRequestInit;
64
- type FetchFunction = (input: RequestInfo, init?: FetchOptions | undefined) => Promise<Response>;
65
- /**
66
- * Base options that can be passed to the `ClientConfig` class.
67
- */
68
- interface ClientConfigInit<Params extends BaseUriParameters> {
69
- baseUri?: string;
70
- proxy?: string;
71
- headers?: {
72
- [key: string]: string;
73
- };
74
- parameters: Params;
75
- fetchOptions?: FetchOptions;
76
- fetch?: FetchFunction;
77
- transformRequest?: (data: unknown, headers: {
78
- [key: string]: string;
79
- }) => Required<FetchOptions>["body"];
80
- throwOnBadResponse?: boolean;
81
- }
82
- /**
83
- * Configuration parameters common to Commerce SDK clients
84
- */
85
- declare class ClientConfig<Params extends BaseUriParameters> implements ClientConfigInit<Params> {
86
- baseUri?: string;
87
- proxy?: string;
88
- headers: {
89
- [key: string]: string;
90
- };
91
- parameters: Params;
92
- fetchOptions: FetchOptions;
93
- fetch?: FetchFunction;
94
- transformRequest: NonNullable<ClientConfigInit<Params>["transformRequest"]>;
95
- throwOnBadResponse: boolean;
96
- constructor(config: ClientConfigInit<Params>);
97
- static readonly defaults: Pick<Required<ClientConfigInit<never>>, "transformRequest">;
98
- }
99
- /**
100
- * A specialized value indicating the system default values for locales.
101
- */
102
- type DefaultFallback = "default";
103
- /**
104
- * @type ErrorResponse:
105
- *
106
- * @property title: A short, human-readable summary of the problem type. It will not change from occurrence to occurrence of the problem, except for purposes of localization
107
- * - **Max Length:** 256
108
- *
109
- * @property type: A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be \"about:blank\". It accepts relative URIs; this means that they must be resolved relative to the document\'s base URI, as per [RFC3986], Section 5.
110
- * - **Max Length:** 2048
111
- *
112
- * @property detail: A human-readable explanation specific to this occurrence of the problem.
113
- *
114
- * @property instance: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. It accepts relative URIs; this means that they must be resolved relative to the document\'s base URI, as per [RFC3986], Section 5.
115
- * - **Max Length:** 2048
116
- *
117
- */
118
- type ErrorResponse = {
119
- title: string;
120
- type: string;
121
- detail: string;
122
- instance?: string;
123
- } & {
124
- [key: string]: any;
125
- };
126
- /**
127
- * @type LocaleCode
128
- * A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
129
- */
130
- type LocaleCode$0 = DefaultFallback | string;
131
- /**
132
- * @type UrlMapping: The URL mapping information for a URL that a shopper clicked or typed in.
133
- *
134
- * @property resourceType: The type of resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceType returns the corresponding destination type value from the redirect. If there\'s a URI redirect, resourceType isn\'t returned. The URL redirect feature is available from B2C Commerce version 24.3.
135
- * - **Min Length:** 1
136
- * - **Max Length:** 256
137
- *
138
- * @property resourceSubType: If the resourceType is CONTENT_ASSET, this field tells you whether the resource is a standard content asset or a Page Designer content asset. This output is available from B2C Commerce version 24.2.
139
- * - **Min Length:** 1
140
- * - **Max Length:** 256
141
- *
142
- * @property resourceId: The identifier for the resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceId returns the corresponding destination ID value from the redirect. If there\'s a URI redirect, resourceId isn\'t returned. The URL redirect feature is available from B2C Commerce version 24.3.
143
- * - **Min Length:** 1
144
- * - **Max Length:** 256
145
- *
146
- * @property refinements: The refinement filters that correspond to the URL and resourceType. Refinements are returned only if all of these conditions are met - a) the resourceType is CATEGORY, b) refinements are included in the urlSegment, and c) the refinements are configured in Business Manager. This field returns a key-value pair of refinement name and refinement value. If there’s a matching URL redirect for the requested URL. the refinements output isn’t returned. The URL redirect feature is available from B2C Commerce version 24.3.
147
- *
148
- * @property statusCode: This field is populated only if you set up a URL redirect in Business Manager. It specifies whether the redirect is temporary (302 or 307) or permanent (301). See [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5) This parameter is available from B2C Commerce version 24.3.
149
- *
150
- * @property destinationUrl: This field is populated if the urlSegment resolves to a redirect. Specifies the URL you want to redirect to as an absolute or relative URL. The destinationUrl is based on your configuration in Business Manager. It\'s either a calculated value indicating the Commerce Cloud object (product, category, or content asset) URL or your specified URL. Note that an object\'s path may not necessarily match your headless storefront URLs but can be used as a reference for calculating the destinationUrl. See [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5). Available from B2C Commerce 24.3.
151
- * - **Min Length:** 1
152
- * - **Max Length:** 2048
153
- *
154
- * @property copySourceParams: This field is populated only if you set up a URL redirect in Business Manager. It’s a flag that shows whether the parameters of the source URL have been copied to the destination URL. This parameter is available from B2C Commerce version 24.3.
155
- *
156
- * @property additionalUrlParams: This field is populated only if you set up a URL redirect in Business Manager. It returns the parameters you want to add to the end of the URL. This parameter is available from B2C Commerce version 24.3.
157
- * - **Min Length:** 1
158
- * - **Max Length:** 2048
159
- *
160
- * @property productCategoryId: This field is populated only if you set up a URL redirect in Business Manager. It identifies the destination product\'s category ID. This field is returned only when the destination type is product. This parameter is available from B2C Commerce version 24.3.
161
- * - **Min Length:** 1
162
- * - **Max Length:** 256
163
- *
164
- */
165
- type UrlMapping = {
166
- resourceType?: string;
167
- resourceSubType?: string;
168
- resourceId?: string;
169
- refinements?: {
170
- [key: string]: any;
171
- };
172
- statusCode?: number;
173
- destinationUrl?: string;
174
- copySourceParams?: boolean;
175
- additionalUrlParams?: string;
176
- productCategoryId?: string;
177
- } & {
178
- [key: string]: any;
179
- };
180
- type getUrlMappingQueryParameters = {
181
- urlSegment: string;
182
- siteId: string;
183
- locale?: LocaleCode$0;
184
- };
185
- type getUrlMappingPathParameters = {
186
- organizationId: string;
187
- };
188
- /**
189
- * All path parameters that are used by at least one ShopperSEO method.
190
- */
191
- type ShopperSEOPathParameters = Partial<getUrlMappingPathParameters & {}>;
192
- /**
193
- * All query parameters that are used by at least one ShopperSEO method.
194
- */
195
- type ShopperSEOQueryParameters = Partial<getUrlMappingQueryParameters & {}>;
196
- /**
197
- * All parameters that are used by ShopperSEO.
198
- */
199
- type ShopperSEOParameters = ShopperSEOPathParameters & BaseUriParameters & ShopperSEOQueryParameters;
200
- /**
201
- * [Shopper SEO](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-seo:Summary)
202
- * ==================================
203
- *
204
- * *# API Overview
205
-
206
- The Shopper SEO API Provides access to SEO-related information, such as URL mapping information.
207
-
208
- ## Authentication & Authorization
209
-
210
- The Shopper SEO API requires a shopper access token from the [Shopper Login and API Access Service (SLAS).](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-shopper-apis.html)
211
-
212
- You must include the relevant scope(s) in the client ID used to generate the SLAS token. For details, see [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)
213
-
214
- ## Use Cases
215
-
216
- ### URL Resolution
217
-
218
- For information on setting up URL rules and URL redirects in Business Manager, see [URL Resolution.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/url-resolution.html)
219
-
220
- ### Caching
221
-
222
- Caching capabilities are available for the Shopper SEO API. For details, see [Server-Side Web-Tier Caching.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html)
223
-
224
- ### Using Hooks
225
-
226
- For details working with hooks, see [Extensibility with Hooks.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/extensibility_via_hooks.html)*<br />
227
- *
228
- * Simple example:
229
- *
230
- * ```typescript
231
- * import { ShopperSEO } from "commerce-sdk-isomorphic";
232
- *
233
- * const clientConfig = {
234
- * parameters: {
235
- * clientId: "XXXXXX",
236
- * organizationId: "XXXX",
237
- * shortCode: "XXX",
238
- * siteId: "XX"
239
- * }
240
- * };
241
- * const shopperSEOClient = new ShopperSEO(clientConfig);
242
- * ```
243
- *
244
- * <span style="font-size:.7em; display:block; text-align: right">
245
- * API Version: 0.0.33<br />
246
- * Last Updated: <br />
247
- * </span>
248
- *
249
- *
250
- */
251
- declare class ShopperSEO<ConfigParameters extends ShopperSEOParameters & Record<string, unknown>> {
252
- // baseUri is not required on ClientConfig, but we know that we provide one in the class constructor
253
- clientConfig: ClientConfig<ConfigParameters> & {
254
- baseUri: string;
255
- };
256
- static readonly defaultBaseUri = "https://{shortCode}.api.commercecloud.salesforce.com/site/shopper-seo/v1";
257
- static readonly apiPaths: {
258
- getUrlMapping: string;
259
- };
260
- constructor(config: ClientConfigInit<ConfigParameters>);
261
- static readonly paramKeys: {
262
- readonly getUrlMapping: readonly [
263
- "organizationId",
264
- "urlSegment",
265
- "siteId",
266
- "locale"
267
- ];
268
- readonly getUrlMappingRequired: readonly [
269
- "organizationId",
270
- "urlSegment",
271
- "siteId"
272
- ];
273
- };
274
- /**
275
- * The mapping information is based on URL rules and redirects that are set up in Business Manager.
276
- For more information about prerequisites and sample usage, see [URL Resolution](/docs/commerce/commerce-api/guide/url-resolution.html).
277
- You can customize the behavior of this endpoint by using hooks. For details, refer to the [Hook List](https://developer.salesforce.com/docs/commerce/commerce-api/guide/hook_list.html).
278
- *
279
- * If you would like to get a raw Response object use the other getUrlMapping function.
280
- *
281
- * @param options - An object containing the options for this method.
282
- * @param options.parameters - An object containing the parameters for this method.
283
- * @param options.parameters.organizationId - An identifier for the organization the request is being made by
284
- * @param options.parameters.urlSegment - The part of the requested URL that comes after the domain name. For example, the urlSegment for \"www.abc.com/blue/new-arrivals/tops\" is \"blue/new-arrivals/tops\".
285
- There's no limit on the length of the urlSegment. However, for this endpoint, the maximum allowed length of the URL (after URL encoding) is 2047 characters.
286
- Make this field URL-encoded so that it properly handles special values such as whitespace. If a urlSegment includes a query string, a 404 error code is returned.
287
- * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
288
- * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
289
- * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
290
- *
291
- * @returns A promise of type UrlMapping.
292
- */
293
- getUrlMapping(options?: RequireParametersUnlessAllAreOptional<{
294
- parameters?: CompositeParameters<{
295
- organizationId: string;
296
- urlSegment: string;
297
- siteId: string;
298
- locale?: LocaleCode$0;
299
- } & QueryParameters, ConfigParameters>;
300
- headers?: {
301
- [key: string]: string;
302
- };
303
- }>): Promise<UrlMapping>;
304
- /**
305
- * The mapping information is based on URL rules and redirects that are set up in Business Manager.
306
- For more information about prerequisites and sample usage, see [URL Resolution](/docs/commerce/commerce-api/guide/url-resolution.html).
307
- You can customize the behavior of this endpoint by using hooks. For details, refer to the [Hook List](https://developer.salesforce.com/docs/commerce/commerce-api/guide/hook_list.html).
308
- *
309
- * @param options - An object containing the options for this method.
310
- * @param options.parameters - An object containing the parameters for this method.
311
- * @param options.parameters.organizationId - An identifier for the organization the request is being made by
312
- * @param options.parameters.urlSegment - The part of the requested URL that comes after the domain name. For example, the urlSegment for \"www.abc.com/blue/new-arrivals/tops\" is \"blue/new-arrivals/tops\".
313
- There's no limit on the length of the urlSegment. However, for this endpoint, the maximum allowed length of the URL (after URL encoding) is 2047 characters.
314
- Make this field URL-encoded so that it properly handles special values such as whitespace. If a urlSegment includes a query string, a 404 error code is returned.
315
- * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
316
- * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
317
- * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
318
- * @param rawResponse - Set to true to return entire Response object instead of DTO.
319
- *
320
- * @returns A promise of type Response if rawResponse is true, a promise of type UrlMapping otherwise.
321
- */
322
- getUrlMapping<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
323
- parameters?: CompositeParameters<{
324
- organizationId: string;
325
- urlSegment: string;
326
- siteId: string;
327
- locale?: LocaleCode$0;
328
- } & QueryParameters, ConfigParameters>;
329
- headers?: {
330
- [key: string]: string;
331
- };
332
- }>, rawResponse?: T): Promise<T extends true ? Response : UrlMapping>;
333
- }
334
- declare namespace ShopperSEOApiTypes {
335
- /*
336
- * Copyright (c) 2023, Salesforce, Inc.
337
- * All rights reserved.
338
- * SPDX-License-Identifier: BSD-3-Clause
339
- * For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause
340
- */
341
- /**
342
- * Makes a type easier to read.
343
- */
344
- type Prettify<T> = NonNullable<{
345
- [K in keyof T]: T[K];
346
- }>;
347
- /**
348
- * Generates the types required on a method, based on those provided in the config.
349
- */
350
- type CompositeParameters<MethodParameters extends Record<string, unknown>, ConfigParameters extends Record<string, unknown>> = Prettify<Omit<MethodParameters, keyof ConfigParameters> & Partial<MethodParameters>>;
351
- /**
352
- * If an object has a `parameters` property, and the `parameters` object has required properties,
353
- * then the `parameters` property on the root object is marked as required.
354
- */
355
- type RequireParametersUnlessAllAreOptional<T extends {
356
- parameters?: Record<string, unknown>;
357
- }> = Record<string, never> extends NonNullable<T["parameters"]> ? T : Prettify<T & Required<Pick<T, "parameters">>>;
358
- /**
359
- * Template parameters used in the base URI of all API endpoints. `version` will default to `"v1"`
360
- * if not specified.
361
- */
362
- interface BaseUriParameters {
363
- shortCode: string;
364
- }
365
- type LocaleCode = {
366
- [key: string]: any;
367
- };
368
- /**
369
- * Generic interface for path parameters.
370
- */
371
- interface PathParameters {
372
- [key: string]: string | number | boolean;
373
- }
374
- /**
375
- * Generic interface for query parameters.
376
- */
377
- interface QueryParameters {
378
- [key: string]: string | number | boolean | string[] | number[] | LocaleCode;
379
- }
380
- /**
381
- * Generic interface for all parameter types.
382
- */
383
- type UrlParameters = PathParameters | QueryParameters;
384
- /**
385
- * Custom query parameter type with any string prefixed with `c_` as the key and the allowed
386
- * types for query parameters for the value.
387
- */
388
- type CustomQueryParameters = {
389
- [key in `c_${string}`]: string | number | boolean | string[] | number[];
390
- };
391
- /**
392
- * Custom body request type with any string prefixed with `c_` as the key and the allowed
393
- * types for the value.
394
- */
395
- type CustomRequestBody = {
396
- [key in `c_${string}`]: string | number | boolean | string[] | number[] | {
397
- [key: string]: unknown;
398
- };
399
- };
400
- /**
401
- * Alias for `RequestInit` from TypeScript's DOM lib, to more clearly differentiate
402
- * it from the `RequestInit` provided by node-fetch.
403
- */
404
- type BrowserRequestInit = RequestInit;
405
- /**
406
- * Any properties supported in either the browser or node are accepted.
407
- * Using the right properties in the right context is left to the user.
408
- */
409
- type FetchOptions = NodeRequestInit & BrowserRequestInit;
410
- type FetchFunction = (input: RequestInfo, init?: FetchOptions | undefined) => Promise<Response>;
411
- /**
412
- * Base options that can be passed to the `ClientConfig` class.
413
- */
414
- interface ClientConfigInit<Params extends BaseUriParameters> {
415
- baseUri?: string;
416
- proxy?: string;
417
- headers?: {
418
- [key: string]: string;
419
- };
420
- parameters: Params;
421
- fetchOptions?: FetchOptions;
422
- fetch?: FetchFunction;
423
- transformRequest?: (data: unknown, headers: {
424
- [key: string]: string;
425
- }) => Required<FetchOptions>["body"];
426
- throwOnBadResponse?: boolean;
427
- }
428
- /**
429
- * Configuration parameters common to Commerce SDK clients
430
- */
431
- class ClientConfig<Params extends BaseUriParameters> implements ClientConfigInit<Params> {
432
- baseUri?: string;
433
- proxy?: string;
434
- headers: {
435
- [key: string]: string;
436
- };
437
- parameters: Params;
438
- fetchOptions: FetchOptions;
439
- fetch?: FetchFunction;
440
- transformRequest: NonNullable<ClientConfigInit<Params>["transformRequest"]>;
441
- throwOnBadResponse: boolean;
442
- constructor(config: ClientConfigInit<Params>);
443
- static readonly defaults: Pick<Required<ClientConfigInit<never>>, "transformRequest">;
444
- }
445
- /**
446
- * A specialized value indicating the system default values for locales.
447
- */
448
- type DefaultFallback = "default";
449
- /**
450
- * @type ErrorResponse:
451
- *
452
- * @property title: A short, human-readable summary of the problem type. It will not change from occurrence to occurrence of the problem, except for purposes of localization
453
- * - **Max Length:** 256
454
- *
455
- * @property type: A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be \"about:blank\". It accepts relative URIs; this means that they must be resolved relative to the document\'s base URI, as per [RFC3986], Section 5.
456
- * - **Max Length:** 2048
457
- *
458
- * @property detail: A human-readable explanation specific to this occurrence of the problem.
459
- *
460
- * @property instance: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. It accepts relative URIs; this means that they must be resolved relative to the document\'s base URI, as per [RFC3986], Section 5.
461
- * - **Max Length:** 2048
462
- *
463
- */
464
- type ErrorResponse = {
465
- title: string;
466
- type: string;
467
- detail: string;
468
- instance?: string;
469
- } & {
470
- [key: string]: any;
471
- };
472
- /**
473
- * @type LocaleCode
474
- * A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
475
- */
476
- type LocaleCode$0 = DefaultFallback | string;
477
- /**
478
- * @type UrlMapping: The URL mapping information for a URL that a shopper clicked or typed in.
479
- *
480
- * @property resourceType: The type of resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceType returns the corresponding destination type value from the redirect. If there\'s a URI redirect, resourceType isn\'t returned. The URL redirect feature is available from B2C Commerce version 24.3.
481
- * - **Min Length:** 1
482
- * - **Max Length:** 256
483
- *
484
- * @property resourceSubType: If the resourceType is CONTENT_ASSET, this field tells you whether the resource is a standard content asset or a Page Designer content asset. This output is available from B2C Commerce version 24.2.
485
- * - **Min Length:** 1
486
- * - **Max Length:** 256
487
- *
488
- * @property resourceId: The identifier for the resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceId returns the corresponding destination ID value from the redirect. If there\'s a URI redirect, resourceId isn\'t returned. The URL redirect feature is available from B2C Commerce version 24.3.
489
- * - **Min Length:** 1
490
- * - **Max Length:** 256
491
- *
492
- * @property refinements: The refinement filters that correspond to the URL and resourceType. Refinements are returned only if all of these conditions are met - a) the resourceType is CATEGORY, b) refinements are included in the urlSegment, and c) the refinements are configured in Business Manager. This field returns a key-value pair of refinement name and refinement value. If there’s a matching URL redirect for the requested URL. the refinements output isn’t returned. The URL redirect feature is available from B2C Commerce version 24.3.
493
- *
494
- * @property statusCode: This field is populated only if you set up a URL redirect in Business Manager. It specifies whether the redirect is temporary (302 or 307) or permanent (301). See [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5) This parameter is available from B2C Commerce version 24.3.
495
- *
496
- * @property destinationUrl: This field is populated if the urlSegment resolves to a redirect. Specifies the URL you want to redirect to as an absolute or relative URL. The destinationUrl is based on your configuration in Business Manager. It\'s either a calculated value indicating the Commerce Cloud object (product, category, or content asset) URL or your specified URL. Note that an object\'s path may not necessarily match your headless storefront URLs but can be used as a reference for calculating the destinationUrl. See [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5). Available from B2C Commerce 24.3.
497
- * - **Min Length:** 1
498
- * - **Max Length:** 2048
499
- *
500
- * @property copySourceParams: This field is populated only if you set up a URL redirect in Business Manager. It’s a flag that shows whether the parameters of the source URL have been copied to the destination URL. This parameter is available from B2C Commerce version 24.3.
501
- *
502
- * @property additionalUrlParams: This field is populated only if you set up a URL redirect in Business Manager. It returns the parameters you want to add to the end of the URL. This parameter is available from B2C Commerce version 24.3.
503
- * - **Min Length:** 1
504
- * - **Max Length:** 2048
505
- *
506
- * @property productCategoryId: This field is populated only if you set up a URL redirect in Business Manager. It identifies the destination product\'s category ID. This field is returned only when the destination type is product. This parameter is available from B2C Commerce version 24.3.
507
- * - **Min Length:** 1
508
- * - **Max Length:** 256
509
- *
510
- */
511
- type UrlMapping = {
512
- resourceType?: string;
513
- resourceSubType?: string;
514
- resourceId?: string;
515
- refinements?: {
516
- [key: string]: any;
517
- };
518
- statusCode?: number;
519
- destinationUrl?: string;
520
- copySourceParams?: boolean;
521
- additionalUrlParams?: string;
522
- productCategoryId?: string;
523
- } & {
524
- [key: string]: any;
525
- };
526
- type getUrlMappingQueryParameters = {
527
- urlSegment: string;
528
- siteId: string;
529
- locale?: LocaleCode$0;
530
- };
531
- type getUrlMappingPathParameters = {
532
- organizationId: string;
533
- };
534
- /**
535
- * All path parameters that are used by at least one ShopperSEO method.
536
- */
537
- type ShopperSEOPathParameters = Partial<getUrlMappingPathParameters & {}>;
538
- /**
539
- * All query parameters that are used by at least one ShopperSEO method.
540
- */
541
- type ShopperSEOQueryParameters = Partial<getUrlMappingQueryParameters & {}>;
542
- /**
543
- * All parameters that are used by ShopperSEO.
544
- */
545
- type ShopperSEOParameters = ShopperSEOPathParameters & BaseUriParameters & ShopperSEOQueryParameters;
546
- /**
547
- * [Shopper SEO](https://developer.salesforce.com/docs/commerce/commerce-api/references?meta=shopper-seo:Summary)
548
- * ==================================
549
- *
550
- * *# API Overview
551
-
552
- The Shopper SEO API Provides access to SEO-related information, such as URL mapping information.
553
-
554
- ## Authentication & Authorization
555
-
556
- The Shopper SEO API requires a shopper access token from the [Shopper Login and API Access Service (SLAS).](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-shopper-apis.html)
557
-
558
- You must include the relevant scope(s) in the client ID used to generate the SLAS token. For details, see [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)
559
-
560
- ## Use Cases
561
-
562
- ### URL Resolution
563
-
564
- For information on setting up URL rules and URL redirects in Business Manager, see [URL Resolution.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/url-resolution.html)
565
-
566
- ### Caching
567
-
568
- Caching capabilities are available for the Shopper SEO API. For details, see [Server-Side Web-Tier Caching.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/server-side-web-tier-caching.html)
569
-
570
- ### Using Hooks
571
-
572
- For details working with hooks, see [Extensibility with Hooks.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/extensibility_via_hooks.html)*<br />
573
- *
574
- * Simple example:
575
- *
576
- * ```typescript
577
- * import { ShopperSEO } from "commerce-sdk-isomorphic";
578
- *
579
- * const clientConfig = {
580
- * parameters: {
581
- * clientId: "XXXXXX",
582
- * organizationId: "XXXX",
583
- * shortCode: "XXX",
584
- * siteId: "XX"
585
- * }
586
- * };
587
- * const shopperSEOClient = new ShopperSEO(clientConfig);
588
- * ```
589
- *
590
- * <span style="font-size:.7em; display:block; text-align: right">
591
- * API Version: 0.0.33<br />
592
- * Last Updated: <br />
593
- * </span>
594
- *
595
- *
596
- */
597
- class ShopperSEO<ConfigParameters extends ShopperSEOParameters & Record<string, unknown>> {
598
- // baseUri is not required on ClientConfig, but we know that we provide one in the class constructor
599
- clientConfig: ClientConfig<ConfigParameters> & {
600
- baseUri: string;
601
- };
602
- static readonly defaultBaseUri = "https://{shortCode}.api.commercecloud.salesforce.com/site/shopper-seo/v1";
603
- static readonly apiPaths: {
604
- getUrlMapping: string;
605
- };
606
- constructor(config: ClientConfigInit<ConfigParameters>);
607
- static readonly paramKeys: {
608
- readonly getUrlMapping: readonly [
609
- "organizationId",
610
- "urlSegment",
611
- "siteId",
612
- "locale"
613
- ];
614
- readonly getUrlMappingRequired: readonly [
615
- "organizationId",
616
- "urlSegment",
617
- "siteId"
618
- ];
619
- };
620
- /**
621
- * The mapping information is based on URL rules and redirects that are set up in Business Manager.
622
- For more information about prerequisites and sample usage, see [URL Resolution](/docs/commerce/commerce-api/guide/url-resolution.html).
623
- You can customize the behavior of this endpoint by using hooks. For details, refer to the [Hook List](https://developer.salesforce.com/docs/commerce/commerce-api/guide/hook_list.html).
624
- *
625
- * If you would like to get a raw Response object use the other getUrlMapping function.
626
- *
627
- * @param options - An object containing the options for this method.
628
- * @param options.parameters - An object containing the parameters for this method.
629
- * @param options.parameters.organizationId - An identifier for the organization the request is being made by
630
- * @param options.parameters.urlSegment - The part of the requested URL that comes after the domain name. For example, the urlSegment for \"www.abc.com/blue/new-arrivals/tops\" is \"blue/new-arrivals/tops\".
631
- There's no limit on the length of the urlSegment. However, for this endpoint, the maximum allowed length of the URL (after URL encoding) is 2047 characters.
632
- Make this field URL-encoded so that it properly handles special values such as whitespace. If a urlSegment includes a query string, a 404 error code is returned.
633
- * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
634
- * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
635
- * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
636
- *
637
- * @returns A promise of type UrlMapping.
638
- */
639
- getUrlMapping(options?: RequireParametersUnlessAllAreOptional<{
640
- parameters?: CompositeParameters<{
641
- organizationId: string;
642
- urlSegment: string;
643
- siteId: string;
644
- locale?: LocaleCode$0;
645
- } & QueryParameters, ConfigParameters>;
646
- headers?: {
647
- [key: string]: string;
648
- };
649
- }>): Promise<UrlMapping>;
650
- /**
651
- * The mapping information is based on URL rules and redirects that are set up in Business Manager.
652
- For more information about prerequisites and sample usage, see [URL Resolution](/docs/commerce/commerce-api/guide/url-resolution.html).
653
- You can customize the behavior of this endpoint by using hooks. For details, refer to the [Hook List](https://developer.salesforce.com/docs/commerce/commerce-api/guide/hook_list.html).
654
- *
655
- * @param options - An object containing the options for this method.
656
- * @param options.parameters - An object containing the parameters for this method.
657
- * @param options.parameters.organizationId - An identifier for the organization the request is being made by
658
- * @param options.parameters.urlSegment - The part of the requested URL that comes after the domain name. For example, the urlSegment for \"www.abc.com/blue/new-arrivals/tops\" is \"blue/new-arrivals/tops\".
659
- There's no limit on the length of the urlSegment. However, for this endpoint, the maximum allowed length of the URL (after URL encoding) is 2047 characters.
660
- Make this field URL-encoded so that it properly handles special values such as whitespace. If a urlSegment includes a query string, a 404 error code is returned.
661
- * @param options.parameters.siteId - The identifier of the site that a request is being made in the context of. Attributes might have site specific values, and some objects may only be assigned to specific sites.
662
- * @param options.parameters.locale - A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
663
- * @param options.headers - An object literal of key value pairs of the headers to be sent with this request.
664
- * @param rawResponse - Set to true to return entire Response object instead of DTO.
665
- *
666
- * @returns A promise of type Response if rawResponse is true, a promise of type UrlMapping otherwise.
667
- */
668
- getUrlMapping<T extends boolean>(options?: RequireParametersUnlessAllAreOptional<{
669
- parameters?: CompositeParameters<{
670
- organizationId: string;
671
- urlSegment: string;
672
- siteId: string;
673
- locale?: LocaleCode$0;
674
- } & QueryParameters, ConfigParameters>;
675
- headers?: {
676
- [key: string]: string;
677
- };
678
- }>, rawResponse?: T): Promise<T extends true ? Response : UrlMapping>;
679
- }
680
- }
681
- declare namespace ShopperSEOModelTypes {
682
- /**
683
- * A specialized value indicating the system default values for locales.
684
- */
685
- type DefaultFallback = "default";
686
- /**
687
- * @type ErrorResponse:
688
- *
689
- * @property title: A short, human-readable summary of the problem type. It will not change from occurrence to occurrence of the problem, except for purposes of localization
690
- * - **Max Length:** 256
691
- *
692
- * @property type: A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be \"about:blank\". It accepts relative URIs; this means that they must be resolved relative to the document\'s base URI, as per [RFC3986], Section 5.
693
- * - **Max Length:** 2048
694
- *
695
- * @property detail: A human-readable explanation specific to this occurrence of the problem.
696
- *
697
- * @property instance: A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced. It accepts relative URIs; this means that they must be resolved relative to the document\'s base URI, as per [RFC3986], Section 5.
698
- * - **Max Length:** 2048
699
- *
700
- */
701
- type ErrorResponse = {
702
- title: string;
703
- type: string;
704
- detail: string;
705
- instance?: string;
706
- } & {
707
- [key: string]: any;
708
- };
709
- /**
710
- * @type LocaleCode
711
- * A descriptor for a geographical region by both a language and country code. By combining these two, regional differences in a language can be addressed, such as with the request header parameter `Accept-Language` following [RFC 2616](https://tools.ietf.org/html/rfc2616) & [RFC 1766](https://tools.ietf.org/html/rfc1766). This can also just refer to a language code, also RFC 2616/1766 compliant, as a default if there is no specific match for a country. Finally, can also be used to define default behavior if there is no locale specified.
712
- */
713
- type LocaleCode = DefaultFallback | string;
714
- /**
715
- * @type UrlMapping: The URL mapping information for a URL that a shopper clicked or typed in.
716
- *
717
- * @property resourceType: The type of resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceType returns the corresponding destination type value from the redirect. If there\'s a URI redirect, resourceType isn\'t returned. The URL redirect feature is available from B2C Commerce version 24.3.
718
- * - **Min Length:** 1
719
- * - **Max Length:** 256
720
- *
721
- * @property resourceSubType: If the resourceType is CONTENT_ASSET, this field tells you whether the resource is a standard content asset or a Page Designer content asset. This output is available from B2C Commerce version 24.2.
722
- * - **Min Length:** 1
723
- * - **Max Length:** 256
724
- *
725
- * @property resourceId: The identifier for the resource that corresponds to the requested URL. If you set up a URL redirect in Business Manager, resourceId returns the corresponding destination ID value from the redirect. If there\'s a URI redirect, resourceId isn\'t returned. The URL redirect feature is available from B2C Commerce version 24.3.
726
- * - **Min Length:** 1
727
- * - **Max Length:** 256
728
- *
729
- * @property refinements: The refinement filters that correspond to the URL and resourceType. Refinements are returned only if all of these conditions are met - a) the resourceType is CATEGORY, b) refinements are included in the urlSegment, and c) the refinements are configured in Business Manager. This field returns a key-value pair of refinement name and refinement value. If there’s a matching URL redirect for the requested URL. the refinements output isn’t returned. The URL redirect feature is available from B2C Commerce version 24.3.
730
- *
731
- * @property statusCode: This field is populated only if you set up a URL redirect in Business Manager. It specifies whether the redirect is temporary (302 or 307) or permanent (301). See [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5) This parameter is available from B2C Commerce version 24.3.
732
- *
733
- * @property destinationUrl: This field is populated if the urlSegment resolves to a redirect. Specifies the URL you want to redirect to as an absolute or relative URL. The destinationUrl is based on your configuration in Business Manager. It\'s either a calculated value indicating the Commerce Cloud object (product, category, or content asset) URL or your specified URL. Note that an object\'s path may not necessarily match your headless storefront URLs but can be used as a reference for calculating the destinationUrl. See [Create a Redirect from a B2C Commerce URL.](https://help.salesforce.com/s/articleView?id=cc.b2c_creating_a_redirect_from_a_digital_url.htm&type=5). Available from B2C Commerce 24.3.
734
- * - **Min Length:** 1
735
- * - **Max Length:** 2048
736
- *
737
- * @property copySourceParams: This field is populated only if you set up a URL redirect in Business Manager. It’s a flag that shows whether the parameters of the source URL have been copied to the destination URL. This parameter is available from B2C Commerce version 24.3.
738
- *
739
- * @property additionalUrlParams: This field is populated only if you set up a URL redirect in Business Manager. It returns the parameters you want to add to the end of the URL. This parameter is available from B2C Commerce version 24.3.
740
- * - **Min Length:** 1
741
- * - **Max Length:** 2048
742
- *
743
- * @property productCategoryId: This field is populated only if you set up a URL redirect in Business Manager. It identifies the destination product\'s category ID. This field is returned only when the destination type is product. This parameter is available from B2C Commerce version 24.3.
744
- * - **Min Length:** 1
745
- * - **Max Length:** 256
746
- *
747
- */
748
- type UrlMapping = {
749
- resourceType?: string;
750
- resourceSubType?: string;
751
- resourceId?: string;
752
- refinements?: {
753
- [key: string]: any;
754
- };
755
- statusCode?: number;
756
- destinationUrl?: string;
757
- copySourceParams?: boolean;
758
- additionalUrlParams?: string;
759
- productCategoryId?: string;
760
- } & {
761
- [key: string]: any;
762
- };
763
- }
764
- declare namespace ShopperSEOTypes {
765
- type ShopperSEOPathParameters = ShopperSEOApiTypes.ShopperSEOPathParameters;
766
- type ShopperSEOQueryParameters = ShopperSEOApiTypes.ShopperSEOQueryParameters;
767
- type getUrlMappingQueryParameters = ShopperSEOApiTypes.getUrlMappingQueryParameters;
768
- type getUrlMappingPathParameters = ShopperSEOApiTypes.getUrlMappingPathParameters;
769
- type DefaultFallback = ShopperSEOModelTypes.DefaultFallback;
770
- type ErrorResponse = ShopperSEOModelTypes.ErrorResponse;
771
- type LocaleCode = ShopperSEOModelTypes.LocaleCode;
772
- type UrlMapping = ShopperSEOModelTypes.UrlMapping;
773
- }
774
- export { defaultBaseUri, getUrlMappingQueryParameters, getUrlMappingPathParameters, ShopperSEOPathParameters, ShopperSEOQueryParameters, ShopperSEOParameters, ShopperSEO, DefaultFallback, ErrorResponse, LocaleCode$0 as LocaleCode, UrlMapping, ShopperSEOTypes };