@azure/eventgrid 5.6.0 → 5.7.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.
Files changed (37) hide show
  1. package/dist/index.js +20 -13
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/src/cloudEventDistrubtedTracingEnricherPolicy.js +1 -1
  4. package/dist-esm/src/cloudEventDistrubtedTracingEnricherPolicy.js.map +1 -1
  5. package/dist-esm/src/constants.js +1 -1
  6. package/dist-esm/src/constants.js.map +1 -1
  7. package/dist-esm/src/consumer.js +1 -1
  8. package/dist-esm/src/consumer.js.map +1 -1
  9. package/dist-esm/src/cryptoHelpers.browser.js +1 -1
  10. package/dist-esm/src/cryptoHelpers.browser.js.map +1 -1
  11. package/dist-esm/src/cryptoHelpers.js +1 -1
  12. package/dist-esm/src/cryptoHelpers.js.map +1 -1
  13. package/dist-esm/src/eventGridAuthenticationPolicy.js +1 -1
  14. package/dist-esm/src/eventGridAuthenticationPolicy.js.map +1 -1
  15. package/dist-esm/src/eventGridClient.js +1 -1
  16. package/dist-esm/src/eventGridClient.js.map +1 -1
  17. package/dist-esm/src/generateSharedAccessSignature.js +1 -1
  18. package/dist-esm/src/generateSharedAccessSignature.js.map +1 -1
  19. package/dist-esm/src/generated/generatedClientContext.js +1 -1
  20. package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
  21. package/dist-esm/src/generated/models/index.js.map +1 -1
  22. package/dist-esm/src/generated/models/mappers.js +7 -0
  23. package/dist-esm/src/generated/models/mappers.js.map +1 -1
  24. package/dist-esm/src/index.js +1 -1
  25. package/dist-esm/src/index.js.map +1 -1
  26. package/dist-esm/src/logger.js +1 -1
  27. package/dist-esm/src/logger.js.map +1 -1
  28. package/dist-esm/src/models.js +1 -1
  29. package/dist-esm/src/models.js.map +1 -1
  30. package/dist-esm/src/predicates.js +1 -1
  31. package/dist-esm/src/predicates.js.map +1 -1
  32. package/dist-esm/src/tracing.js +2 -2
  33. package/dist-esm/src/tracing.js.map +1 -1
  34. package/dist-esm/src/util.js +1 -1
  35. package/dist-esm/src/util.js.map +1 -1
  36. package/package.json +5 -5
  37. package/types/eventgrid.d.ts +2 -0
package/dist/index.js CHANGED
@@ -30,7 +30,7 @@ function _interopNamespaceDefault(e) {
30
30
  var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
31
31
 
32
32
  // Copyright (c) Microsoft Corporation.
33
- // Licensed under the MIT license.
33
+ // Licensed under the MIT License.
34
34
  /**
35
35
  * Stringifies a Date object in the format expected by the Event Grid service, for use in a Shared Access Signiture.
36
36
  *
@@ -139,7 +139,7 @@ function validateOptionalStringProperties(o, propertyNames) {
139
139
  }
140
140
 
141
141
  // Copyright (c) Microsoft Corporation.
142
- // Licensed under the MIT license.
142
+ // Licensed under the MIT License.
143
143
  /**
144
144
  * The name of the header to include when a Shared Key is used for authentication.
145
145
  */
@@ -172,12 +172,12 @@ function eventGridCredentialPolicy(credential) {
172
172
  }
173
173
 
174
174
  // Copyright (c) Microsoft Corporation.
175
- // Licensed under the MIT license.
175
+ // Licensed under the MIT License.
176
176
  const DEFAULT_API_VERSION = "2018-01-01";
177
177
  const DEFAULT_EVENTGRID_SCOPE = "https://eventgrid.azure.net/.default";
178
178
 
179
179
  // Copyright (c) Microsoft Corporation.
180
- // Licensed under the MIT license.
180
+ // Licensed under the MIT License.
181
181
  /**
182
182
  * Property names defined by the CloudEvents 1.0 specification, these may not be reused as the names of extension properties.
183
183
  */
@@ -884,6 +884,13 @@ const StorageLifecyclePolicyCompletedEventData = {
884
884
  className: "StorageLifecyclePolicyActionSummaryDetail"
885
885
  }
886
886
  },
887
+ tierToColdSummary: {
888
+ serializedName: "tierToColdSummary",
889
+ type: {
890
+ name: "Composite",
891
+ className: "StorageLifecyclePolicyActionSummaryDetail"
892
+ }
893
+ },
887
894
  tierToArchiveSummary: {
888
895
  serializedName: "tierToArchiveSummary",
889
896
  type: {
@@ -10563,7 +10570,7 @@ class GeneratedClientContext extends coreClient__namespace.ServiceClient {
10563
10570
  const defaults = {
10564
10571
  requestContentType: "application/json; charset=utf-8"
10565
10572
  };
10566
- const packageDetails = `azsdk-js-eventgrid/5.6.0`;
10573
+ const packageDetails = `azsdk-js-eventgrid/5.7.0`;
10567
10574
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10568
10575
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10569
10576
  : `${packageDetails}`;
@@ -10657,7 +10664,7 @@ const publishCustomEventEventsOperationSpec = {
10657
10664
  };
10658
10665
 
10659
10666
  // Copyright (c) Microsoft Corporation.
10660
- // Licensed under the MIT license.
10667
+ // Licensed under the MIT License.
10661
10668
  const CloudEventBatchContentType = "application/cloudevents-batch+json; charset=utf-8";
10662
10669
  const TraceParentHeaderName = "traceparent";
10663
10670
  const TraceStateHeaderName = "tracestate";
@@ -10710,7 +10717,7 @@ function cloudEventDistributedTracingEnricherPolicy() {
10710
10717
  }
10711
10718
 
10712
10719
  // Copyright (c) Microsoft Corporation.
10713
- // Licensed under the MIT license.
10720
+ // Licensed under the MIT License.
10714
10721
  /**
10715
10722
  * A tracing client to handle spans.
10716
10723
  * @internal
@@ -10718,11 +10725,11 @@ function cloudEventDistributedTracingEnricherPolicy() {
10718
10725
  const tracingClient = coreTracing.createTracingClient({
10719
10726
  namespace: "Microsoft.Messaging.EventGrid",
10720
10727
  packageName: "@azure/event-grid",
10721
- packageVersion: "5.6.0",
10728
+ packageVersion: "5.7.0",
10722
10729
  });
10723
10730
 
10724
10731
  // Copyright (c) Microsoft Corporation.
10725
- // Licensed under the MIT license.
10732
+ // Licensed under the MIT License.
10726
10733
  /**
10727
10734
  * Client class for publishing events to the Event Grid Service.
10728
10735
  */
@@ -10837,7 +10844,7 @@ function convertCloudEventToModelType(event) {
10837
10844
  }
10838
10845
 
10839
10846
  // Copyright (c) Microsoft Corporation.
10840
- // Licensed under the MIT license.
10847
+ // Licensed under the MIT License.
10841
10848
  /**
10842
10849
  * @internal
10843
10850
  */
@@ -10847,7 +10854,7 @@ async function sha256Hmac(secret, stringToSign) {
10847
10854
  }
10848
10855
 
10849
10856
  // Copyright (c) Microsoft Corporation.
10850
- // Licensed under the MIT license.
10857
+ // Licensed under the MIT License.
10851
10858
  /**
10852
10859
  * Generate a shared access signature, which allows a client to send events to an Event Grid Topic or Domain for a limited period of time. This
10853
10860
  * function may only be called when the EventGridPublisherClient was constructed with a KeyCredential instance.
@@ -10864,7 +10871,7 @@ async function generateSharedAccessSignature(endpointUrl, credential, expiresOnU
10864
10871
  }
10865
10872
 
10866
10873
  // Copyright (c) Microsoft Corporation.
10867
- // Licensed under the MIT license.
10874
+ // Licensed under the MIT License.
10868
10875
  const serializer = coreClient.createSerializer();
10869
10876
  /**
10870
10877
  * EventGridDeserializer is used to aid in processing events delivered by EventGrid. It can deserialize a JSON encoded payload
@@ -10944,7 +10951,7 @@ class EventGridDeserializer {
10944
10951
  }
10945
10952
 
10946
10953
  // Copyright (c) Microsoft Corporation.
10947
- // Licensed under the MIT license.
10954
+ // Licensed under the MIT License.
10948
10955
  /**
10949
10956
  * isCloudEventLike returns "true" when the event is a CloudEvent
10950
10957
  *