@azure/eventgrid 4.10.0-alpha.20220414.1 → 4.10.0-beta.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/CHANGELOG.md CHANGED
@@ -1,12 +1,10 @@
1
1
  # Release History
2
2
 
3
- ## 4.10.0 (Unreleased)
3
+ ## 4.10.0-beta.1 (2022-04-14)
4
4
 
5
5
  ### Features Added
6
6
 
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
7
+ - Add support for specifiying a channel to send to in a specific Partner Topic via the `channelName` property of `SendOptions`.
10
8
 
11
9
  ### Other Changes
12
10
 
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreAuth = require('@azure/core-auth');
6
+ var tslib = require('tslib');
6
7
  var coreClient = require('@azure/core-client');
7
8
  var coreTracing = require('@azure/core-tracing');
8
9
  var uuid = require('uuid');
@@ -7734,7 +7735,7 @@ class GeneratedClientContext extends coreClient__namespace.ServiceClient {
7734
7735
  const defaults = {
7735
7736
  requestContentType: "application/json; charset=utf-8"
7736
7737
  };
7737
- const packageDetails = `azsdk-js-eventgrid/4.10.0`;
7738
+ const packageDetails = `azsdk-js-eventgrid/4.10.0-beta.1`;
7738
7739
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7739
7740
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7740
7741
  : `${packageDetails}`;
@@ -7941,7 +7942,14 @@ class EventGridPublisherClient {
7941
7942
  return this.client.publishEvents(this.endpointUrl, events.map(convertEventGridEventToModelType), updatedOptions);
7942
7943
  }
7943
7944
  case "CloudEvent": {
7944
- return this.client.publishCloudEventEvents(this.endpointUrl, events.map(convertCloudEventToModelType), updatedOptions);
7945
+ // The underlying REST API expects a header named `aeg-channel-name`, and so the generated client
7946
+ // expects that options bag has a property called `aegChannelName`, where as we expose it with the
7947
+ // friendlier name "channelName". Fix up the impedence mismatch here
7948
+ const _a = updatedOptions, { channelName } = _a, sendOptions = tslib.__rest(_a, ["channelName"]);
7949
+ if (channelName) {
7950
+ sendOptions.aegChannelName = channelName;
7951
+ }
7952
+ return this.client.publishCloudEventEvents(this.endpointUrl, events.map(convertCloudEventToModelType), sendOptions);
7945
7953
  }
7946
7954
  case "Custom": {
7947
7955
  return this.client.publishCustomEventEvents(this.endpointUrl, events, updatedOptions);