@azure/eventgrid 4.10.1-alpha.20221107.1 → 4.11.0

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/dist/index.js CHANGED
@@ -6714,6 +6714,92 @@ const HealthcareFhirResourceDeletedEventData = {
6714
6714
  }
6715
6715
  }
6716
6716
  };
6717
+ const HealthcareDicomImageCreatedEventData = {
6718
+ type: {
6719
+ name: "Composite",
6720
+ className: "HealthcareDicomImageCreatedEventData",
6721
+ modelProperties: {
6722
+ imageStudyInstanceUid: {
6723
+ serializedName: "imageStudyInstanceUid",
6724
+ required: true,
6725
+ type: {
6726
+ name: "String"
6727
+ }
6728
+ },
6729
+ imageSeriesInstanceUid: {
6730
+ serializedName: "imageSeriesInstanceUid",
6731
+ required: true,
6732
+ type: {
6733
+ name: "String"
6734
+ }
6735
+ },
6736
+ imageSopInstanceUid: {
6737
+ serializedName: "imageSopInstanceUid",
6738
+ required: true,
6739
+ type: {
6740
+ name: "String"
6741
+ }
6742
+ },
6743
+ serviceHostName: {
6744
+ serializedName: "serviceHostName",
6745
+ required: true,
6746
+ type: {
6747
+ name: "String"
6748
+ }
6749
+ },
6750
+ sequenceNumber: {
6751
+ serializedName: "sequenceNumber",
6752
+ required: true,
6753
+ type: {
6754
+ name: "Number"
6755
+ }
6756
+ }
6757
+ }
6758
+ }
6759
+ };
6760
+ const HealthcareDicomImageDeletedEventData = {
6761
+ type: {
6762
+ name: "Composite",
6763
+ className: "HealthcareDicomImageDeletedEventData",
6764
+ modelProperties: {
6765
+ imageStudyInstanceUid: {
6766
+ serializedName: "imageStudyInstanceUid",
6767
+ required: true,
6768
+ type: {
6769
+ name: "String"
6770
+ }
6771
+ },
6772
+ imageSeriesInstanceUid: {
6773
+ serializedName: "imageSeriesInstanceUid",
6774
+ required: true,
6775
+ type: {
6776
+ name: "String"
6777
+ }
6778
+ },
6779
+ imageSopInstanceUid: {
6780
+ serializedName: "imageSopInstanceUid",
6781
+ required: true,
6782
+ type: {
6783
+ name: "String"
6784
+ }
6785
+ },
6786
+ serviceHostName: {
6787
+ serializedName: "serviceHostName",
6788
+ required: true,
6789
+ type: {
6790
+ name: "String"
6791
+ }
6792
+ },
6793
+ sequenceNumber: {
6794
+ serializedName: "sequenceNumber",
6795
+ required: true,
6796
+ type: {
6797
+ name: "Number"
6798
+ }
6799
+ }
6800
+ }
6801
+ }
6802
+ };
6717
6803
  const IotHubDeviceCreatedEventData = {
6718
6804
  type: {
6719
6805
  name: "Composite",
@@ -7664,6 +7750,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
7664
7750
  HealthcareFhirResourceCreatedEventData: HealthcareFhirResourceCreatedEventData,
7665
7751
  HealthcareFhirResourceUpdatedEventData: HealthcareFhirResourceUpdatedEventData,
7666
7752
  HealthcareFhirResourceDeletedEventData: HealthcareFhirResourceDeletedEventData,
7753
+ HealthcareDicomImageCreatedEventData: HealthcareDicomImageCreatedEventData,
7754
+ HealthcareDicomImageDeletedEventData: HealthcareDicomImageDeletedEventData,
7667
7755
  IotHubDeviceCreatedEventData: IotHubDeviceCreatedEventData,
7668
7756
  IotHubDeviceDeletedEventData: IotHubDeviceDeletedEventData,
7669
7757
  IotHubDeviceConnectedEventData: IotHubDeviceConnectedEventData,
@@ -7735,7 +7823,7 @@ class GeneratedClientContext extends coreClient__namespace.ServiceClient {
7735
7823
  const defaults = {
7736
7824
  requestContentType: "application/json; charset=utf-8"
7737
7825
  };
7738
- const packageDetails = `azsdk-js-eventgrid/4.10.1`;
7826
+ const packageDetails = `azsdk-js-eventgrid/4.11.0`;
7739
7827
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7740
7828
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7741
7829
  : `${packageDetails}`;
@@ -7770,8 +7858,8 @@ class GeneratedClient extends GeneratedClientContext {
7770
7858
  * @param events An array of events to be published to Event Grid.
7771
7859
  * @param options The options parameters.
7772
7860
  */
7773
- publishEvents(topicHostname, events, options) {
7774
- return this.sendOperationRequest({ topicHostname, events, options }, publishEventsOperationSpec);
7861
+ publishEventGridEvents(topicHostname, events, options) {
7862
+ return this.sendOperationRequest({ topicHostname, events, options }, publishEventGridEventsOperationSpec);
7775
7863
  }
7776
7864
  /**
7777
7865
  * Publishes a batch of events to an Azure Event Grid topic.
@@ -7794,7 +7882,7 @@ class GeneratedClient extends GeneratedClientContext {
7794
7882
  }
7795
7883
  // Operation Specifications
7796
7884
  const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
7797
- const publishEventsOperationSpec = {
7885
+ const publishEventGridEventsOperationSpec = {
7798
7886
  path: "",
7799
7887
  httpMethod: "POST",
7800
7888
  responses: { 200: {}, default: {} },
@@ -7889,7 +7977,7 @@ function cloudEventDistributedTracingEnricherPolicy() {
7889
7977
  const tracingClient = coreTracing.createTracingClient({
7890
7978
  namespace: "Microsoft.Messaging.EventGrid",
7891
7979
  packageName: "@azure/event-grid",
7892
- packageVersion: "4.10.1",
7980
+ packageVersion: "4.11.0",
7893
7981
  });
7894
7982
 
7895
7983
  // Copyright (c) Microsoft Corporation.
@@ -7939,7 +8027,7 @@ class EventGridPublisherClient {
7939
8027
  return tracingClient.withSpan("EventGridPublisherClient.send", options, (updatedOptions) => {
7940
8028
  switch (this.inputSchema) {
7941
8029
  case "EventGrid": {
7942
- return this.client.publishEvents(this.endpointUrl, events.map(convertEventGridEventToModelType), updatedOptions);
8030
+ return this.client.publishEventGridEvents(this.endpointUrl, events.map(convertEventGridEventToModelType), updatedOptions);
7943
8031
  }
7944
8032
  case "CloudEvent": {
7945
8033
  // The underlying REST API expects a header named `aeg-channel-name`, and so the generated client