ebay-api 8.5.0 → 8.5.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/README.md CHANGED
@@ -21,7 +21,7 @@ It supports `client credentials grant` and `authorization code grant` \(Auth'N'A
21
21
 
22
22
  ## Changelog
23
23
 
24
- * `v8.5.0` is the latest release.
24
+ * `v8.5.1` is the latest release.
25
25
  * See [here](https://github.com/hendt/ebay-api/blob/master/CHANGELOG.md) for the full changelog.
26
26
 
27
27
  ## Implementation status
@@ -90,7 +90,7 @@ const eBay = new eBayApi({
90
90
 
91
91
  marketplaceId: eBayApi.MarketplaceId.EBAY_US, // default. required for RESTful APIs
92
92
  acceptLanguage: eBayApi.Locale.en_US, // default
93
- contentLanguage: eBayApi.ContentLanguage.en_US, // default.
93
+ contentLanguage: eBayApi.Locale.en_US, // default.
94
94
 
95
95
  // optional parameters, should be omitted if not used
96
96
  devId: '-- devId --', // required for traditional Trading API
@@ -166,7 +166,7 @@ The first (required) parameter in eBayApi instance takes an object with followin
166
166
  | marketplaceId<br><i>RESTful</i> | Required<br><pre>Default: `MarketplaceId.EBAY_US`</pre> | [Docs](https://developer.ebay.com/api-docs/static/rest-request-components.html#marketpl) REST HTTP Header. X-EBAY-C-MARKETPLACE-ID identifies the user's business context and is specified using a marketplace ID value. Note that this header does not indicate a language preference or consumer location. |
167
167
  | scope<br><i>RESTful</i> | Conditionally<bre><pre>Default:<br>`['https://api.ebay.com/oauth/api_scope']` </pre> | The scopes assigned to your application allow access to different API resources and functionality. |
168
168
  | endUserCtx<br><i>RESTful</i> | Conditionally recommended<br><i>RESTful</i> | [Docs](https://developer.ebay.com/api-docs/static/rest-request-components.html#headers) X-EBAY\_C\_ENDUSERCTX provides various types of information associated with the request. |
169
- | contentLanguage<br><i>RESTful</i> | Conditionally required<br><pre>Default: `ContentLanguage.en_US`</pre> | [Docs](https://developer.ebay.com/api-docs/static/rest-request-components.html#headers)Content-Language indicates the locale preferred by the client for the response. |
169
+ | contentLanguage<br><i>RESTful</i> | Conditionally required<br><pre>Default: `Locale.en_US`</pre> | [Docs](https://developer.ebay.com/api-docs/static/rest-request-components.html#headers)Content-Language indicates the locale preferred by the client for the response. |
170
170
  | acceptLanguage<br><i>RESTful</i> | Optional<pre>Default: `Locale.en_US`</pre> | [Docs](https://developer.ebay.com/api-docs/static/rest-request-components.html#headers) Accept-Language indicates the natural language the client prefers for the response. This specifies the language the client wants to use when the field values provided in the request body are displayed to consumers. |
171
171
 
172
172
  ## Load config from environment
package/dist/eBayApi.d.ts CHANGED
@@ -15,7 +15,7 @@ import { AppConfig, ClientAlerts, Finding, Merchandising, Shopping, Signature, T
15
15
  export default class eBayApi extends Api {
16
16
  static readonly SiteId: typeof enums.SiteId;
17
17
  static readonly MarketplaceId: typeof enums.MarketplaceId;
18
- static readonly ContentLanguage: typeof enums.ContentLanguage;
18
+ static readonly ContentLanguage: typeof enums.Locale;
19
19
  static readonly Locale: typeof enums.Locale;
20
20
  /**
21
21
  * Loads config from `process.env`