@azure/eventgrid 4.13.1-alpha.20230727.2 → 4.14.0-alpha.20230914.4

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/README.md CHANGED
@@ -218,9 +218,9 @@ await client.send([
218
218
  subject: "Event Subject",
219
219
  dataVersion: "1.0",
220
220
  data: {
221
- hello: "world"
222
- }
223
- }
221
+ hello: "world",
222
+ },
223
+ },
224
224
  ]);
225
225
  ```
226
226
 
@@ -244,9 +244,9 @@ await client.send([
244
244
  subject: "Event Subject",
245
245
  dataVersion: "1.0",
246
246
  data: {
247
- hello: "world"
248
- }
249
- }
247
+ hello: "world",
248
+ },
249
+ },
250
250
  ]);
251
251
  ```
252
252
 
@@ -289,7 +289,7 @@ receiver.subscribe({
289
289
  processError: async (err) => {
290
290
  console.error(err);
291
291
  },
292
- processMessage
292
+ processMessage,
293
293
  });
294
294
  ```
295
295
 
@@ -305,7 +305,7 @@ const { setLogLevel } = require("@azure/logger");
305
305
  setLogLevel("info");
306
306
  ```
307
307
 
308
- For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
308
+ For more detailed instructions on how to enable the logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
309
309
 
310
310
  ## Next steps
311
311
 
package/dist/index.js CHANGED
@@ -2172,6 +2172,35 @@ const SubscriptionDeletedEventData = {
2172
2172
  }
2173
2173
  }
2174
2174
  };
2175
+ const EventGridMqttClientEventData = {
2176
+ type: {
2177
+ name: "Composite",
2178
+ className: "EventGridMqttClientEventData",
2179
+ modelProperties: {
2180
+ clientAuthenticationName: {
2181
+ serializedName: "clientAuthenticationName",
2182
+ required: true,
2183
+ type: {
2184
+ name: "String"
2185
+ }
2186
+ },
2187
+ clientName: {
2188
+ serializedName: "clientName",
2189
+ required: true,
2190
+ type: {
2191
+ name: "String"
2192
+ }
2193
+ },
2194
+ namespaceName: {
2195
+ serializedName: "namespaceName",
2196
+ required: true,
2197
+ type: {
2198
+ name: "String"
2199
+ }
2200
+ }
2201
+ }
2202
+ }
2203
+ };
2175
2204
  const DataBoxCopyStartedEventData = {
2176
2205
  type: {
2177
2206
  name: "Composite",
@@ -4114,6 +4143,35 @@ const AppConfigurationKeyValueDeletedEventData = {
4114
4143
  }
4115
4144
  }
4116
4145
  };
4146
+ const AppConfigurationSnapshotEventData = {
4147
+ type: {
4148
+ name: "Composite",
4149
+ className: "AppConfigurationSnapshotEventData",
4150
+ modelProperties: {
4151
+ name: {
4152
+ serializedName: "name",
4153
+ required: true,
4154
+ type: {
4155
+ name: "String"
4156
+ }
4157
+ },
4158
+ etag: {
4159
+ serializedName: "etag",
4160
+ required: true,
4161
+ type: {
4162
+ name: "String"
4163
+ }
4164
+ },
4165
+ syncToken: {
4166
+ serializedName: "syncToken",
4167
+ required: true,
4168
+ type: {
4169
+ name: "String"
4170
+ }
4171
+ }
4172
+ }
4173
+ }
4174
+ };
4117
4175
  const SignalRServiceClientConnectionConnectedEventData = {
4118
4176
  type: {
4119
4177
  name: "Composite",
@@ -6484,6 +6542,13 @@ const AcsEmailEngagementTrackingReportReceivedEventData = {
6484
6542
  name: "String"
6485
6543
  }
6486
6544
  },
6545
+ recipient: {
6546
+ serializedName: "recipient",
6547
+ required: true,
6548
+ type: {
6549
+ name: "String"
6550
+ }
6551
+ },
6487
6552
  messageId: {
6488
6553
  serializedName: "messageId",
6489
6554
  required: true,
@@ -7407,6 +7472,89 @@ const HealthcareDicomImageDeletedEventData = {
7407
7472
  }
7408
7473
  }
7409
7474
  };
7475
+ const EventGridMqttClientCreatedOrUpdatedEventData = {
7476
+ type: {
7477
+ name: "Composite",
7478
+ className: "EventGridMqttClientCreatedOrUpdatedEventData",
7479
+ modelProperties: Object.assign(Object.assign({}, EventGridMqttClientEventData.type.modelProperties), { state: {
7480
+ serializedName: "state",
7481
+ required: true,
7482
+ type: {
7483
+ name: "String"
7484
+ }
7485
+ }, createdOn: {
7486
+ serializedName: "createdOn",
7487
+ required: true,
7488
+ type: {
7489
+ name: "String"
7490
+ }
7491
+ }, updatedOn: {
7492
+ serializedName: "updatedOn",
7493
+ required: true,
7494
+ type: {
7495
+ name: "String"
7496
+ }
7497
+ }, attributes: {
7498
+ serializedName: "attributes",
7499
+ required: true,
7500
+ type: {
7501
+ name: "Dictionary",
7502
+ value: { type: { name: "String" } }
7503
+ }
7504
+ } })
7505
+ }
7506
+ };
7507
+ const EventGridMqttClientDeletedEventData = {
7508
+ type: {
7509
+ name: "Composite",
7510
+ className: "EventGridMqttClientDeletedEventData",
7511
+ modelProperties: Object.assign({}, EventGridMqttClientEventData.type.modelProperties)
7512
+ }
7513
+ };
7514
+ const EventGridMqttClientSessionConnectedEventData = {
7515
+ type: {
7516
+ name: "Composite",
7517
+ className: "EventGridMqttClientSessionConnectedEventData",
7518
+ modelProperties: Object.assign(Object.assign({}, EventGridMqttClientEventData.type.modelProperties), { clientSessionName: {
7519
+ serializedName: "clientSessionName",
7520
+ required: true,
7521
+ type: {
7522
+ name: "String"
7523
+ }
7524
+ }, sequenceNumber: {
7525
+ serializedName: "sequenceNumber",
7526
+ required: true,
7527
+ type: {
7528
+ name: "Number"
7529
+ }
7530
+ } })
7531
+ }
7532
+ };
7533
+ const EventGridMqttClientSessionDisconnectedEventData = {
7534
+ type: {
7535
+ name: "Composite",
7536
+ className: "EventGridMqttClientSessionDisconnectedEventData",
7537
+ modelProperties: Object.assign(Object.assign({}, EventGridMqttClientEventData.type.modelProperties), { clientSessionName: {
7538
+ serializedName: "clientSessionName",
7539
+ required: true,
7540
+ type: {
7541
+ name: "String"
7542
+ }
7543
+ }, sequenceNumber: {
7544
+ serializedName: "sequenceNumber",
7545
+ required: true,
7546
+ type: {
7547
+ name: "Number"
7548
+ }
7549
+ }, disconnectionReason: {
7550
+ serializedName: "disconnectionReason",
7551
+ required: true,
7552
+ type: {
7553
+ name: "String"
7554
+ }
7555
+ } })
7556
+ }
7557
+ };
7410
7558
  const IotHubDeviceCreatedEventData = {
7411
7559
  type: {
7412
7560
  name: "Composite",
@@ -7639,6 +7787,20 @@ const MapsGeofenceResultEventData = {
7639
7787
  modelProperties: Object.assign({}, MapsGeofenceEvent.type.modelProperties)
7640
7788
  }
7641
7789
  };
7790
+ const AppConfigurationSnapshotCreatedEventData = {
7791
+ type: {
7792
+ name: "Composite",
7793
+ className: "AppConfigurationSnapshotCreatedEventData",
7794
+ modelProperties: Object.assign({}, AppConfigurationSnapshotEventData.type.modelProperties)
7795
+ }
7796
+ };
7797
+ const AppConfigurationSnapshotModifiedEventData = {
7798
+ type: {
7799
+ name: "Composite",
7800
+ className: "AppConfigurationSnapshotModifiedEventData",
7801
+ modelProperties: Object.assign({}, AppConfigurationSnapshotEventData.type.modelProperties)
7802
+ }
7803
+ };
7642
7804
  const AcsChatMessageEventBase = {
7643
7805
  type: {
7644
7806
  name: "Composite",
@@ -8281,6 +8443,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
8281
8443
  SubscriptionValidationEventData: SubscriptionValidationEventData,
8282
8444
  SubscriptionValidationResponse: SubscriptionValidationResponse,
8283
8445
  SubscriptionDeletedEventData: SubscriptionDeletedEventData,
8446
+ EventGridMqttClientEventData: EventGridMqttClientEventData,
8284
8447
  DataBoxCopyStartedEventData: DataBoxCopyStartedEventData,
8285
8448
  DataBoxCopyCompletedEventData: DataBoxCopyCompletedEventData,
8286
8449
  DataBoxOrderCompletedEventData: DataBoxOrderCompletedEventData,
@@ -8325,6 +8488,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
8325
8488
  MapsGeofenceGeometry: MapsGeofenceGeometry,
8326
8489
  AppConfigurationKeyValueModifiedEventData: AppConfigurationKeyValueModifiedEventData,
8327
8490
  AppConfigurationKeyValueDeletedEventData: AppConfigurationKeyValueDeletedEventData,
8491
+ AppConfigurationSnapshotEventData: AppConfigurationSnapshotEventData,
8328
8492
  SignalRServiceClientConnectionConnectedEventData: SignalRServiceClientConnectionConnectedEventData,
8329
8493
  SignalRServiceClientConnectionDisconnectedEventData: SignalRServiceClientConnectionDisconnectedEventData,
8330
8494
  KeyVaultCertificateNewVersionCreatedEventData: KeyVaultCertificateNewVersionCreatedEventData,
@@ -8418,6 +8582,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
8418
8582
  HealthcareDicomImageCreatedEventData: HealthcareDicomImageCreatedEventData,
8419
8583
  HealthcareDicomImageUpdatedEventData: HealthcareDicomImageUpdatedEventData,
8420
8584
  HealthcareDicomImageDeletedEventData: HealthcareDicomImageDeletedEventData,
8585
+ EventGridMqttClientCreatedOrUpdatedEventData: EventGridMqttClientCreatedOrUpdatedEventData,
8586
+ EventGridMqttClientDeletedEventData: EventGridMqttClientDeletedEventData,
8587
+ EventGridMqttClientSessionConnectedEventData: EventGridMqttClientSessionConnectedEventData,
8588
+ EventGridMqttClientSessionDisconnectedEventData: EventGridMqttClientSessionDisconnectedEventData,
8421
8589
  IotHubDeviceCreatedEventData: IotHubDeviceCreatedEventData,
8422
8590
  IotHubDeviceDeletedEventData: IotHubDeviceDeletedEventData,
8423
8591
  IotHubDeviceConnectedEventData: IotHubDeviceConnectedEventData,
@@ -8443,6 +8611,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
8443
8611
  MapsGeofenceEnteredEventData: MapsGeofenceEnteredEventData,
8444
8612
  MapsGeofenceExitedEventData: MapsGeofenceExitedEventData,
8445
8613
  MapsGeofenceResultEventData: MapsGeofenceResultEventData,
8614
+ AppConfigurationSnapshotCreatedEventData: AppConfigurationSnapshotCreatedEventData,
8615
+ AppConfigurationSnapshotModifiedEventData: AppConfigurationSnapshotModifiedEventData,
8446
8616
  AcsChatMessageEventBase: AcsChatMessageEventBase,
8447
8617
  AcsChatThreadEventBase: AcsChatThreadEventBase,
8448
8618
  AcsChatMessageEventInThreadBase: AcsChatMessageEventInThreadBase,
@@ -8494,7 +8664,7 @@ class GeneratedClientContext extends coreClient__namespace.ServiceClient {
8494
8664
  const defaults = {
8495
8665
  requestContentType: "application/json; charset=utf-8"
8496
8666
  };
8497
- const packageDetails = `azsdk-js-eventgrid/4.13.1`;
8667
+ const packageDetails = `azsdk-js-eventgrid/4.14.0`;
8498
8668
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
8499
8669
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
8500
8670
  : `${packageDetails}`;
@@ -8648,7 +8818,7 @@ function cloudEventDistributedTracingEnricherPolicy() {
8648
8818
  const tracingClient = coreTracing.createTracingClient({
8649
8819
  namespace: "Microsoft.Messaging.EventGrid",
8650
8820
  packageName: "@azure/event-grid",
8651
- packageVersion: "4.13.1",
8821
+ packageVersion: "4.14.0",
8652
8822
  });
8653
8823
 
8654
8824
  // Copyright (c) Microsoft Corporation.