Skip to content

Commit dabf54a

Browse files
authored
Merge pull request #122 from erincdustin/9.0.0
9.0.0
2 parents 3c58de9 + 56731e7 commit dabf54a

135 files changed

Lines changed: 1984 additions & 99 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to the ordercloud-javascript-sdk will be documented in this
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
# [9.0.0] - 2024-12-05
9+
- This version includes a breaking change that updates the following return types:
10+
- `ProductCollectionBuyerProduct` (updated from `BuyerProduct`) is the new type returned from `Me.ListProductCollectionEntries`
11+
- `ProductCollectionProduct` (updated from `Product`) is the new type returned from `ProductCollections.ListEntries`
12+
813
# [8.0.2] - 2024-12-03
914
- Bug fix for "process is undefined" accessor error when not using NextJS
1015

MIGRATION_GUIDE.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,31 @@
22

33
The objective of this guide is to document the breaking changes and updates required to migrate from one major version to the next.
44

5+
## version 8.x.x to version 9.x.x
6+
* The return type for the `Me.ListProductCollectionEntries` method has been updated from `BuyerProduct` to `ProductCollectionBuyerProduct`
7+
8+
Before:
9+
```typescript
10+
ListProductCollectionEntries<TBuyerProduct>(...) : Promise<RequiredDeep<ListPageWithFacets<TBuyerProduct>>>
11+
```
12+
13+
After:
14+
```typescript
15+
ListProductCollectionEntries<TProductCollectionBuyerProduct>(...) : Promise<RequiredDeep<ListPageWithFacets<TProductCollectionBuyerProduct>>>
16+
```
17+
18+
* The return type for the `ProductCollections.ListEntries` method has been updated from `Product` to `ProductCollectionProduct`
19+
20+
Before:
21+
```typescript
22+
ListEntries<TProduct>(...) : Promise<RequiredDeep<ListPageWithFacets<TProduct>>>
23+
```
24+
25+
After:
26+
```typescript
27+
ListEntries<TProductCollectionBuyerProduct>(...) : Promise<RequiredDeep<ListPageWithFacets<TProductCollectionBuyerProduct>>>
28+
```
29+
530
## version 7.x.x to version 8.x.x
631
* The return type for the `ListEligiblePromotions` method has been updated from `Promotion` to `OrderPromotion`
732

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/classes/Resources.InventoryIntegrations.html

Lines changed: 183 additions & 0 deletions
Large diffs are not rendered by default.

docs/classes/Resources.Me.html

Lines changed: 106 additions & 80 deletions
Large diffs are not rendered by default.

docs/classes/Resources.ProductCollections.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</
145145
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class"><a id="ListEntries" class="tsd-anchor"></a>
146146
<h3 class="tsd-anchor-link"><span>List<wbr/>Entries</span><a href="#ListEntries" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></h3>
147147
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
148-
<li class="tsd-signature tsd-anchor-link" id="ListEntries.ListEntries-1">List<wbr/>Entries<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProduct</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>buyerID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, productCollectionID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listOptions<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span>filters<span class="tsd-signature-symbol">?: </span><a href="../types/Filters.html" class="tsd-signature-type" data-tsd-kind="Type alias">Filters</a><span class="tsd-signature-symbol">; </span><br/><span>    </span>page<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>pageSize<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>search<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>searchOn<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>searchType<span class="tsd-signature-symbol">?: </span><a href="../types/SearchType.html" class="tsd-signature-type" data-tsd-kind="Type alias">SearchType</a><span class="tsd-signature-symbol">; </span><br/><span>    </span>sortBy<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span>, requestOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/RequestOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">RequestOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Resources.RequiredObjectDeep.html" class="tsd-signature-type" data-tsd-kind="Type alias">RequiredObjectDeep</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ListPageWithFacets.html" class="tsd-signature-type" data-tsd-kind="Interface">ListPageWithFacets</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProduct</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#ListEntries.ListEntries-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
148+
<li class="tsd-signature tsd-anchor-link" id="ListEntries.ListEntries-1">List<wbr/>Entries<span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProductCollectionProduct</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">(</span>buyerID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, productCollectionID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, listOptions<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-symbol">{ </span><br/><span>    </span>filters<span class="tsd-signature-symbol">?: </span><a href="../types/Filters.html" class="tsd-signature-type" data-tsd-kind="Type alias">Filters</a><span class="tsd-signature-symbol">; </span><br/><span>    </span>page<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>pageSize<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>search<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>searchOn<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span>    </span>searchType<span class="tsd-signature-symbol">?: </span><a href="../types/SearchType.html" class="tsd-signature-type" data-tsd-kind="Type alias">SearchType</a><span class="tsd-signature-symbol">; </span><br/><span>    </span>sortBy<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">; </span><br/><span class="tsd-signature-symbol">}</span>, requestOptions<span class="tsd-signature-symbol">?: </span><a href="../interfaces/RequestOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">RequestOptions</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Resources.RequiredObjectDeep.html" class="tsd-signature-type" data-tsd-kind="Type alias">RequiredObjectDeep</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ListPageWithFacets.html" class="tsd-signature-type" data-tsd-kind="Interface">ListPageWithFacets</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProductCollectionProduct</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#ListEntries.ListEntries-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
149149
<li class="tsd-description">
150150
<div class="tsd-comment tsd-typography"><p>Get a list of product collection entries.
151151
Check out the <a href="https://ordercloud.io/api-reference/buyers/product-collections/list-entries%7Capi">docs</a> for more info</p>
@@ -154,7 +154,7 @@ <h3 class="tsd-anchor-link"><span>List<wbr/>Entries</span><a href="#ListEntries"
154154
<h4>Type Parameters</h4>
155155
<ul class="tsd-type-parameters">
156156
<li>
157-
<h4>TProduct<span class="tsd-signature-symbol"> extends </span><a href="../interfaces/Product.html" class="tsd-signature-type" data-tsd-kind="Interface">Product</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProduct</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section>
157+
<h4>TProductCollectionProduct<span class="tsd-signature-symbol"> extends </span><a href="../interfaces/ProductCollectionProduct.html" class="tsd-signature-type" data-tsd-kind="Interface">ProductCollectionProduct</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProductCollectionProduct</span><span class="tsd-signature-symbol">&gt;</span></h4></li></ul></section>
158158
<div class="tsd-parameters">
159159
<h4 class="tsd-parameters-title">Parameters</h4>
160160
<ul class="tsd-parameter-list">
@@ -199,7 +199,7 @@ <h5><code class="tsd-tag ts-flagOptional">Optional</code> sort<wbr/>By<span clas
199199
</div></li></ul></li>
200200
<li>
201201
<h5>requestOptions: <a href="../interfaces/RequestOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">RequestOptions</a><span class="tsd-signature-symbol"> = {}</span></h5></li></ul></div>
202-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Resources.RequiredObjectDeep.html" class="tsd-signature-type" data-tsd-kind="Type alias">RequiredObjectDeep</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ListPageWithFacets.html" class="tsd-signature-type" data-tsd-kind="Interface">ListPageWithFacets</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProduct</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
202+
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/Resources.RequiredObjectDeep.html" class="tsd-signature-type" data-tsd-kind="Type alias">RequiredObjectDeep</a><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ListPageWithFacets.html" class="tsd-signature-type" data-tsd-kind="Interface">ListPageWithFacets</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">TProductCollectionProduct</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><aside class="tsd-sources">
203203
<ul>
204204
<li>Defined in <a href="https://github.com/ordercloud-api/ordercloud-javascript-sdk/blob/master/src/api/ProductCollections.ts#L94">api/ProductCollections.ts:94</a></li></ul></aside></li></ul></section></section></div>
205205
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">

docs/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ <h3 class="tsd-index-heading">Interfaces</h3>
7878
<a href="interfaces/Incrementor.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Incrementor</span></a>
7979
<a href="interfaces/IntegrationEvent.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Integration<wbr/>Event</span></a>
8080
<a href="interfaces/Inventory.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Inventory</span></a>
81+
<a href="interfaces/InventoryIntegration.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Inventory<wbr/>Integration</span></a>
8182
<a href="interfaces/InventoryRecord.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Inventory<wbr/>Record</span></a>
8283
<a href="interfaces/InventoryRecordAssignment.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Inventory<wbr/>Record<wbr/>Assignment</span></a>
8384
<a href="interfaces/KafkaConfig.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Kafka<wbr/>Config</span></a>
@@ -150,7 +151,10 @@ <h3 class="tsd-index-heading">Interfaces</h3>
150151
<a href="interfaces/ProductAssignment.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Assignment</span></a>
151152
<a href="interfaces/ProductCatalogAssignment.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Catalog<wbr/>Assignment</span></a>
152153
<a href="interfaces/ProductCollection.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Collection</span></a>
154+
<a href="interfaces/ProductCollectionBuyerProduct.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Collection<wbr/>Buyer<wbr/>Product</span></a>
155+
<a href="interfaces/ProductCollectionEntry.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Collection<wbr/>Entry</span></a>
153156
<a href="interfaces/ProductCollectionInvitation.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Collection<wbr/>Invitation</span></a>
157+
<a href="interfaces/ProductCollectionProduct.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Collection<wbr/>Product</span></a>
154158
<a href="interfaces/ProductFacet.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Facet</span></a>
155159
<a href="interfaces/ProductSeller.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Seller</span></a>
156160
<a href="interfaces/ProductSupplier.html" class="tsd-index-link tsd-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg><span>Product<wbr/>Supplier</span></a>
@@ -261,6 +265,7 @@ <h3 class="tsd-index-heading">Variables</h3>
261265
<a href="variables/ImpersonationConfigs.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Impersonation<wbr/>Configs</span></a>
262266
<a href="variables/Incrementors.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Incrementors</span></a>
263267
<a href="variables/IntegrationEvents.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Integration<wbr/>Events</span></a>
268+
<a href="variables/InventoryIntegrations.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Inventory<wbr/>Integrations</span></a>
264269
<a href="variables/InventoryRecords.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Inventory<wbr/>Records</span></a>
265270
<a href="variables/LineItems.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Line<wbr/>Items</span></a>
266271
<a href="variables/Locales.html" class="tsd-index-link tsd-kind-variable"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg><span>Locales</span></a>

0 commit comments

Comments
 (0)