Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 7 additions & 3 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
["env", {"modules": false}]
],
"plugins": [
"external-helpers"
"external-helpers",
"transform-class-properties"
]
},
"test": {
"presets": ["env"]
"presets": ["env"],
"plugins": [
"transform-class-properties"
]
}
}
}
}
5 changes: 5 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,9 @@ globals:
rules:
camelcase: off
no-prototype-builtins: 0
no-useless-constructor: off
max-len:
- error
- 200
- ignoreComments: true
parser: babel-eslint
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## To be released
- Regenerate client using version 20.4 of the OCAPI swagger definition. [#37](https://github.com/mobify/commercecloud-ocapi-client/pull/37)

## v0.1.12 (January 15, 2020)
- Fix refine option processing to include refine_1 ... refine_n alternatives

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ _(___ _(___/_/_/__/_/_/__/_(___ _/_____(___ _(___ _(___ _/___(___/_(___(__(___/_

Salesforce Commerce Cloud Open Commerce API (OCAPI) for Node and browsers.

- API version: 17.8
- API version: 20.4

### ⚒ Installation

Expand Down Expand Up @@ -78,7 +78,7 @@ The API client accepts an configuration object, example:
import ShopApi from 'commercecloud-ocapi-client'

const config = {
basePath: 'https://localhost/s/siteId/dw/shop/v17_8',
basePath: 'https://localhost/s/siteId/dw/shop/v20_4',
defaultHeaders: {}, // HTTP header for all requests
timeout: 60000, // Request timeout in milliseconds
cache: true, // If set to false an additional timestamp parameter is added to all API GET calls to prevent browser caching
Expand Down Expand Up @@ -126,7 +126,7 @@ Example:
```json
{
"clientId": "5640cc6b-f5e9-466e-9134-9853e9f9db93",
"baseUrl": "https://localhost/s/siteId/dw/shop/v17_8"
"baseUrl": "https://localhost/s/siteId/dw/shop/v20_4"
}
```
Then run the following command:
Expand Down
12 changes: 6 additions & 6 deletions docs/ApiClient.js.html

Large diffs are not rendered by default.

166 changes: 166 additions & 0 deletions docs/api_AiApi.js.html

Large diffs are not rendered by default.

Loading