Skip to content

Commit 9e88052

Browse files
authored
Merge pull request #147 from erincdustin/12.0.0
12.0.0
2 parents 2186e20 + 7b4ae68 commit 9e88052

116 files changed

Lines changed: 181 additions & 158 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: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ 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+
# [12.0.0] - 2026-03-10
9+
- Bring SDK up to date with API v1.0.437. Includes a breaking change to Message Senders - see migration guide for more details.
10+
811
# [11.1.5] - 2026-03-02
912
- Bring SDK up to date with API v1.0.436
1013

MIGRATION_GUIDE.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,42 @@
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 11.x.x to version 12.x.x
6+
* The `URL` and `SharedKey` properties have been removed from the `MessageSender` model, and `DeliveryConfigID` is now required. Configuration must be provided via a `DeliveryConfig` (managed through the new `DeliveryConfigurations` service) using either a `MailchimpConfig` or `MessageSenderConfig` delivery target. See the [updated Message Senders KB article](https://ordercloud.io/knowledge-base/message-senders#configuration-options) for more details.
7+
8+
> Note: All existing Message Senders were migrated automatically
9+
10+
Before:
11+
```typescript
12+
const messageSender: MessageSender = {
13+
Name: 'My Sender',
14+
MessageTypes: ['OrderSubmitted'],
15+
URL: 'https://my-endpoint.com',
16+
SharedKey: 'my-secret-key',
17+
}
18+
```
19+
20+
After:
21+
```typescript
22+
// First, create a DeliveryConfig with the equivalent configuration
23+
const deliveryConfig = await DeliveryConfigurations.Create({
24+
Name: 'My Delivery Config',
25+
DeliveryTargets: {
26+
MessageSender: {
27+
Endpoint: 'https://my-endpoint.com',
28+
Secret: 'my-secret-key',
29+
}
30+
}
31+
})
32+
33+
// Then reference it on the MessageSender
34+
const messageSender: MessageSender = {
35+
Name: 'My Sender',
36+
MessageTypes: ['OrderSubmitted'],
37+
DeliveryConfigID: deliveryConfig.ID,
38+
}
39+
```
40+
541
## version 10.x.x to version 11.x.x
642
* The return type for the `Cart.ListEligiblePromotions` and `Orders.ListEligiblePromotions` methods have been updated from `OrderPromotion` to `EligiblePromotion`
743

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.MessageSenders.html

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

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h3 class="tsd-index-heading">Interfaces</h3>
9595
<a href="interfaces/ListPageWithFacets.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>List<wbr/>Page<wbr/>With<wbr/>Facets</span></a>
9696
<a href="interfaces/Locale.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>Locale</span></a>
9797
<a href="interfaces/LocaleAssignment.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>Locale<wbr/>Assignment</span></a>
98-
<a href="interfaces/MandrillConfig.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>Mandrill<wbr/>Config</span></a>
98+
<a href="interfaces/MailchimpConfig.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>Mailchimp<wbr/>Config</span></a>
9999
<a href="interfaces/MeBuyer.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>Me<wbr/>Buyer</span></a>
100100
<a href="interfaces/MeSeller.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>Me<wbr/>Seller</span></a>
101101
<a href="interfaces/MeSupplier.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>Me<wbr/>Supplier</span></a>

docs/interfaces/DeliveryTargets.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h3 class="tsd-index-heading">Properties</h3>
3636
<a href="DeliveryTargets.html#EventHub" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Event<wbr/>Hub?</span></a>
3737
<a href="DeliveryTargets.html#Http" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Http?</span></a>
3838
<a href="DeliveryTargets.html#Kafka" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Kafka?</span></a>
39-
<a href="DeliveryTargets.html#Mandrill" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Mandrill?</span></a>
39+
<a href="DeliveryTargets.html#Mailchimp" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Mailchimp?</span></a>
4040
<a href="DeliveryTargets.html#MessageSender" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Message<wbr/>Sender?</span></a>
4141
<a href="DeliveryTargets.html#SearchIngestion" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Search<wbr/>Ingestion?</span></a>
4242
<a href="DeliveryTargets.html#SendEvent" class="tsd-index-link tsd-kind-property tsd-parent-kind-interface"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg><span>Send<wbr/>Event?</span></a>
@@ -83,9 +83,9 @@ <h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code
8383
<div class="tsd-signature">Kafka<span class="tsd-signature-symbol">?:</span> <a href="KafkaConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">KafkaConfig</a></div><aside class="tsd-sources">
8484
<ul>
8585
<li>Defined in <a href="https://github.com/ordercloud-api/ordercloud-javascript-sdk/blob/master/src/models/DeliveryTargets.ts#L15">models/DeliveryTargets.ts:15</a></li></ul></aside></section>
86-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="Mandrill" class="tsd-anchor"></a>
87-
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>Mandrill</span><a href="#Mandrill" 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>
88-
<div class="tsd-signature">Mandrill<span class="tsd-signature-symbol">?:</span> <a href="MandrillConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">MandrillConfig</a></div><aside class="tsd-sources">
86+
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="Mailchimp" class="tsd-anchor"></a>
87+
<h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagOptional">Optional</code> <span>Mailchimp</span><a href="#Mailchimp" 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>
88+
<div class="tsd-signature">Mailchimp<span class="tsd-signature-symbol">?:</span> <a href="MailchimpConfig.html" class="tsd-signature-type" data-tsd-kind="Interface">MailchimpConfig</a></div><aside class="tsd-sources">
8989
<ul>
9090
<li>Defined in <a href="https://github.com/ordercloud-api/ordercloud-javascript-sdk/blob/master/src/models/DeliveryTargets.ts#L24">models/DeliveryTargets.ts:24</a></li></ul></aside></section>
9191
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="MessageSender" class="tsd-anchor"></a>
@@ -136,7 +136,7 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
136136
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#EventHub" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Event<wbr/>Hub?</a></li>
137137
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#Http" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Http?</a></li>
138138
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#Kafka" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Kafka?</a></li>
139-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#Mandrill" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Mandrill?</a></li>
139+
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#Mailchimp" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Mailchimp?</a></li>
140140
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#MessageSender" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Message<wbr/>Sender?</a></li>
141141
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#SearchIngestion" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Search<wbr/>Ingestion?</a></li>
142142
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="DeliveryTargets.html#SendEvent" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-1024-path"></use><use href="#icon-1024-text"></use></svg>Send<wbr/>Event?</a></li></ul></li></ul></nav></div></div>

0 commit comments

Comments
 (0)