Skip to content

Commit 550ca1b

Browse files
authored
[EventGrid] Updates to System Event Mappings (Azure#15527)
This change updates to the latest version of the EventGrid data plane specification, and brings in some new event types (one for Storage and a handful for FarmBeats). In addition there is a small bugfix to one of the event names (discovered as we move towards tooling the process that generates these mappings) to use the correct name.
1 parent da1d503 commit 550ca1b

File tree

10 files changed

+2261
-56
lines changed

10 files changed

+2261
-56
lines changed

sdk/eventgrid/eventgrid/CHANGELOG.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,32 @@
11
# Release History
22

3-
## 4.2.1 (Unreleased)
3+
## 4.3.0 (Unreleased)
4+
5+
### New Features
6+
7+
- Added new System Events:
8+
- `Microsoft.AgFoodPlatform.ApplicationDataChanged`
9+
- `Microsoft.AgFoodPlatform.BoundaryChanged`
10+
- `Microsoft.AgFoodPlatform.CropChanged`
11+
- `Microsoft.AgFoodPlatform.CropVarietyChanged`
12+
- `Microsoft.AgFoodPlatform.FarmChanged`
13+
- `Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged`
14+
- `Microsoft.AgFoodPlatform.FarmerChanged`
15+
- `Microsoft.AgFoodPlatform.FieldChanged`
16+
- `Microsoft.AgFoodPlatform.HarvestDataChanged`
17+
- `Microsoft.AgFoodPlatform.PlantingDataChanged`
18+
- `Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged`
19+
- `Microsoft.AgFoodPlatform.SeasonChanged`
20+
- `Microsoft.AgFoodPlatform.SeasonalFieldChanged`
21+
- `Microsoft.AgFoodPlatform.TillageDataChanged`
22+
- `Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged`
23+
- `Microsoft.Storage.BlobInventoryPolicyCompleted`
24+
25+
### Key Bug Fixes
26+
27+
- The `Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners` event was incorrectly listed with the name of `Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener`.
28+
This has been corrected. When using TypeScript, you will need to replace any calls to `isSystemEvent("Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener")` with
29+
`isSystemEvent("Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners")`.
430

531
## 4.2.0 (2021-05-11)
632

sdk/eventgrid/eventgrid/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,10 @@ When creating an instance of `EventGridDeserializer` you may supply custom deser
174174

175175
This library supports distributed tracing using [`@azure/core-tracing`][azure-core-tracing-github]. When using distributed tracing, this library will create a span during a `send` operation. In addition, when sending events using the Cloud Events 1.0 schema, the SDK will add distributed tracing metadata to the events using the [Distributed Tracing extension][cloud-events-distributed-tracing-spec]. The values for the `traceparent` and `tracestate` extension properties correspond to the `traceparent` and `tracestate` headers from the HTTP request which sends the events. If an event already has a `traceparent` extension property it is not updated.
176176

177+
### Event Grid on Kubernetes
178+
179+
This library has been tested and validated on [Kubernetes using Azure Arc][eventgrid-on-kubernetes-using-azure-arc].
180+
177181
## Examples
178182

179183
### Publish a Custom Event to an Event Grid Topic using the Event Grid Schema
@@ -304,3 +308,4 @@ If you'd like to contribute to this library, please read the [contributing guide
304308
[azure_portal]: https://portal.azure.com
305309
[azure-core-tracing-github]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/core/core-tracing
306310
[cloud-events-distributed-tracing-spec]: https://github.com/cloudevents/spec/blob/master/extensions/distributed-tracing.md
311+
[eventgrid-on-kubernetes-using-azure-arc]: https://docs.microsoft.com/azure/event-grid/kubernetes/

sdk/eventgrid/eventgrid/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "client",
44
"author": "Microsoft Corporation",
55
"description": "An isomorphic client library for the Azure Event Grid service.",
6-
"version": "4.2.1",
6+
"version": "4.3.0",
77
"keywords": [
88
"node",
99
"azure",

sdk/eventgrid/eventgrid/review/eventgrid.api.md

Lines changed: 284 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,11 @@ export type AcsChatThreadWithUserDeletedEventData = AcsChatThreadEventBase & {
118118

119119
// @public
120120
export interface AcsRecordingChunkInfo {
121+
contentLocation: string;
121122
documentId: string;
122123
endReason: string;
123124
index: number;
125+
metadataLocation: string;
124126
}
125127

126128
// @public
@@ -165,6 +167,260 @@ export type AcsSmsReceivedEventData = AcsSmsEventBase & {
165167
receivedTimestamp: string;
166168
};
167169

170+
// @public
171+
export interface AgriFoodFarmingApplicationDataChangedEventData {
172+
actionType: AgriFoodFarmingResourceActionType;
173+
createdDateTime: string;
174+
description: string;
175+
eTag: string;
176+
farmerId: string;
177+
id: string;
178+
modifiedDateTime: string;
179+
name: string;
180+
properties: {
181+
[propertyName: string]: any;
182+
};
183+
source: string;
184+
status: string;
185+
}
186+
187+
// @public
188+
export interface AgriFoodFarmingBoundaryChangedEventData {
189+
actionType: AgriFoodFarmingResourceActionType;
190+
createdDateTime: string;
191+
description: string;
192+
eTag: string;
193+
farmerId: string;
194+
id: string;
195+
isPrimary: boolean;
196+
modifiedDateTime: string;
197+
name: string;
198+
parentId: string;
199+
parentType: string;
200+
properties: {
201+
[propertyName: string]: any;
202+
};
203+
status: string;
204+
}
205+
206+
// @public
207+
export interface AgriFoodFarmingCropChangedEventData {
208+
actionType: AgriFoodFarmingResourceActionType;
209+
createdDateTime: string;
210+
description: string;
211+
eTag: string;
212+
id: string;
213+
modifiedDateTime: string;
214+
name: string;
215+
properties: {
216+
[propertyName: string]: any;
217+
};
218+
status: string;
219+
}
220+
221+
// @public
222+
export interface AgriFoodFarmingCropVarietyChangedEventData {
223+
actionType: AgriFoodFarmingResourceActionType;
224+
createdDateTime: string;
225+
cropId: string;
226+
description: string;
227+
eTag: string;
228+
id: string;
229+
modifiedDateTime: string;
230+
name: string;
231+
properties: {
232+
[propertyName: string]: any;
233+
};
234+
status: string;
235+
}
236+
237+
// @public
238+
export interface AgriFoodFarmingFarmChangedEventData {
239+
actionType: AgriFoodFarmingResourceActionType;
240+
createdDateTime: string;
241+
description: string;
242+
eTag: string;
243+
farmerId: string;
244+
id: string;
245+
modifiedDateTime: string;
246+
name: string;
247+
properties: {
248+
[propertyName: string]: any;
249+
};
250+
status: string;
251+
}
252+
253+
// @public
254+
export interface AgriFoodFarmingFarmerChangedEventData {
255+
actionType: AgriFoodFarmingResourceActionType;
256+
createdDateTime: string;
257+
description: string;
258+
eTag: string;
259+
id: string;
260+
modifiedDateTime: string;
261+
name: string;
262+
properties: {
263+
[propertyName: string]: any;
264+
};
265+
status: string;
266+
}
267+
268+
// @public
269+
export interface AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData {
270+
createdDateTime: string;
271+
description: string;
272+
farmerId: string;
273+
id: string;
274+
isCancellationRequested: boolean;
275+
lastActionDateTime: string;
276+
message: string;
277+
name: string;
278+
properties: {
279+
[propertyName: string]: any;
280+
};
281+
status: AgriFoodFarmingJobStatus;
282+
}
283+
284+
// @public
285+
export interface AgriFoodFarmingFieldChangedEventData {
286+
actionType: AgriFoodFarmingResourceActionType;
287+
createdDateTime: string;
288+
description: string;
289+
eTag: string;
290+
farmerId: string;
291+
farmId: string;
292+
id: string;
293+
modifiedDateTime: string;
294+
name: string;
295+
properties: {
296+
[propertyName: string]: any;
297+
};
298+
status: string;
299+
}
300+
301+
// @public
302+
export interface AgriFoodFarmingHarvestDataChangedEventData {
303+
actionType: AgriFoodFarmingResourceActionType;
304+
createdDateTime: string;
305+
description: string;
306+
eTag: string;
307+
farmerId: string;
308+
id: string;
309+
modifiedDateTime: string;
310+
name: string;
311+
properties: {
312+
[propertyName: string]: any;
313+
};
314+
source: string;
315+
status: string;
316+
}
317+
318+
// @public
319+
export type AgriFoodFarmingJobStatus = string;
320+
321+
// @public
322+
export interface AgriFoodFarmingPlantingDataChangedEventData {
323+
actionType: AgriFoodFarmingResourceActionType;
324+
createdDateTime: string;
325+
description: string;
326+
eTag: string;
327+
farmerId: string;
328+
id: string;
329+
modifiedDateTime: string;
330+
name: string;
331+
properties: {
332+
[propertyName: string]: any;
333+
};
334+
source: string;
335+
status: string;
336+
}
337+
338+
// @public
339+
export type AgriFoodFarmingResourceActionType = string;
340+
341+
// @public
342+
export interface AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData {
343+
createdDateTime: string;
344+
description: string;
345+
farmerId: string;
346+
id: string;
347+
isCancellationRequested: boolean;
348+
lastActionDateTime: string;
349+
message: string;
350+
name: string;
351+
properties: {
352+
[propertyName: string]: any;
353+
};
354+
status: AgriFoodFarmingJobStatus;
355+
}
356+
357+
// @public
358+
export interface AgriFoodFarmingSeasonalFieldChangedEventData {
359+
actionType: AgriFoodFarmingResourceActionType;
360+
createdDateTime: string;
361+
description: string;
362+
eTag: string;
363+
farmerId: string;
364+
farmId: string;
365+
fieldId: string;
366+
id: string;
367+
modifiedDateTime: string;
368+
name: string;
369+
properties: {
370+
[propertyName: string]: any;
371+
};
372+
seasonId: string;
373+
status: string;
374+
}
375+
376+
// @public
377+
export interface AgriFoodFarmingSeasonChangedEventData {
378+
actionType: AgriFoodFarmingResourceActionType;
379+
createdDateTime: string;
380+
description: string;
381+
eTag: string;
382+
id: string;
383+
modifiedDateTime: string;
384+
name: string;
385+
properties: {
386+
[propertyName: string]: any;
387+
};
388+
status: string;
389+
}
390+
391+
// @public
392+
export interface AgriFoodFarmingTillageDataChangedEventData {
393+
actionType: AgriFoodFarmingResourceActionType;
394+
createdDateTime: string;
395+
description: string;
396+
eTag: string;
397+
farmerId: string;
398+
id: string;
399+
modifiedDateTime: string;
400+
name: string;
401+
properties: {
402+
[propertyName: string]: any;
403+
};
404+
source: string;
405+
status: string;
406+
}
407+
408+
// @public
409+
export interface AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData {
410+
createdDateTime: string;
411+
description: string;
412+
farmerId: string;
413+
id: string;
414+
isCancellationRequested: boolean;
415+
lastActionDateTime: string;
416+
message: string;
417+
name: string;
418+
properties: {
419+
[propertyName: string]: any;
420+
};
421+
status: AgriFoodFarmingJobStatus;
422+
}
423+
168424
// @public
169425
export type AppAction = string;
170426

@@ -1160,6 +1416,17 @@ export interface StorageBlobDeletedEventData {
11601416
url: string;
11611417
}
11621418

1419+
// @public
1420+
export interface StorageBlobInventoryPolicyCompletedEventData {
1421+
accountName: string;
1422+
manifestBlobUrl: string;
1423+
policyRunId: string;
1424+
policyRunStatus: string;
1425+
policyRunStatusMessage: string;
1426+
ruleName: string;
1427+
scheduleDateTime: string;
1428+
}
1429+
11631430
// @public
11641431
export interface StorageBlobRenamedEventData {
11651432
api: string;
@@ -1250,6 +1517,21 @@ export interface SubscriptionValidationEventData {
12501517

12511518
// @public
12521519
export interface SystemEventNameToEventData {
1520+
"Microsoft.AgFoodPlatform.ApplicationDataChanged": AgriFoodFarmingApplicationDataChangedEventData;
1521+
"Microsoft.AgFoodPlatform.BoundaryChanged": AgriFoodFarmingBoundaryChangedEventData;
1522+
"Microsoft.AgFoodPlatform.CropChanged": AgriFoodFarmingCropChangedEventData;
1523+
"Microsoft.AgFoodPlatform.CropVarietyChanged": AgriFoodFarmingCropVarietyChangedEventData;
1524+
"Microsoft.AgFoodPlatform.FarmChanged": AgriFoodFarmingFarmChangedEventData;
1525+
"Microsoft.AgFoodPlatform.FarmerChanged": AgriFoodFarmingFarmerChangedEventData;
1526+
"Microsoft.AgFoodPlatform.FarmOperationDataIngestionJobStatusChanged": AgriFoodFarmingFarmOperationDataIngestionJobStatusChangedEventData;
1527+
"Microsoft.AgFoodPlatform.FieldChanged": AgriFoodFarmingFieldChangedEventData;
1528+
"Microsoft.AgFoodPlatform.HarvestDataChanged": AgriFoodFarmingHarvestDataChangedEventData;
1529+
"Microsoft.AgFoodPlatform.PlantingDataChanged": AgriFoodFarmingPlantingDataChangedEventData;
1530+
"Microsoft.AgFoodPlatform.SatelliteDataIngestionJobStatusChanged": AgriFoodFarmingSatelliteDataIngestionJobStatusChangedEventData;
1531+
"Microsoft.AgFoodPlatform.SeasonalFieldChanged": AgriFoodFarmingSeasonalFieldChangedEventData;
1532+
"Microsoft.AgFoodPlatform.SeasonChanged": AgriFoodFarmingSeasonChangedEventData;
1533+
"Microsoft.AgFoodPlatform.TillageDataChanged": AgriFoodFarmingTillageDataChangedEventData;
1534+
"Microsoft.AgFoodPlatform.WeatherDataIngestionJobStatusChanged": AgriFoodFarmingWeatherDataIngestionJobStatusChangedEventData;
12531535
"Microsoft.AppConfiguration.KeyValueDeleted": AppConfigurationKeyValueDeletedEventData;
12541536
"Microsoft.AppConfiguration.KeyValueModified": AppConfigurationKeyValueModifiedEventData;
12551537
"Microsoft.Communication.ChatMessageDeleted": AcsChatMessageDeletedEventData;
@@ -1332,10 +1614,11 @@ export interface SystemEventNameToEventData {
13321614
"Microsoft.Resources.ResourceWriteFailure": ResourceWriteFailureEventData;
13331615
"Microsoft.Resources.ResourceWriteSuccess": ResourceWriteSuccessEventData;
13341616
"Microsoft.ServiceBus.ActiveMessagesAvailableWithNoListeners": ServiceBusActiveMessagesAvailableWithNoListenersEventData;
1335-
"Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListener": ServiceBusDeadletterMessagesAvailableWithNoListenersEventData;
1617+
"Microsoft.ServiceBus.DeadletterMessagesAvailableWithNoListeners": ServiceBusDeadletterMessagesAvailableWithNoListenersEventData;
13361618
"Microsoft.Storage.AsyncOperationInitiated": StorageAsyncOperationInitiatedEventData;
13371619
"Microsoft.Storage.BlobCreated": StorageBlobCreatedEventData;
13381620
"Microsoft.Storage.BlobDeleted": StorageBlobDeletedEventData;
1621+
"Microsoft.Storage.BlobInventoryPolicyCompleted": StorageBlobInventoryPolicyCompletedEventData;
13391622
"Microsoft.Storage.BlobRenamed": StorageBlobRenamedEventData;
13401623
"Microsoft.Storage.BlobTierChanged": StorageBlobTierChangedEventData;
13411624
"Microsoft.Storage.DirectoryCreated": StorageDirectoryCreatedEventData;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Copyright (c) Microsoft Corporation.
22
// Licensed under the MIT license.
33

4-
export const SDK_VERSION: string = "4.2.1";
4+
export const SDK_VERSION: string = "4.3.0";
55
export const DEFAULT_API_VERSION = "2018-01-01";

0 commit comments

Comments
 (0)