@azure/eventgrid 4.5.1-alpha.20220105.3 → 4.6.0-alpha.20220110.2
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 +23 -4
- package/dist/index.js +193 -44
- package/dist/index.js.map +1 -1
- package/dist-esm/src/generated/generatedClientContext.js +1 -1
- package/dist-esm/src/generated/generatedClientContext.js.map +1 -1
- package/dist-esm/src/generated/models/index.js.map +1 -1
- package/dist-esm/src/generated/models/mappers.js +189 -43
- package/dist-esm/src/generated/models/mappers.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/package.json +1 -1
- package/types/eventgrid.d.ts +123 -28
package/CHANGELOG.md
CHANGED
@@ -1,14 +1,33 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 4.
|
3
|
+
## 4.6.0 (2022-01-11)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
7
|
-
|
7
|
+
- Added a new property to `AcsRecordingChunkInfo` (for the `Microsoft.Communication.RecordingFileStatusUpdated` system event):
|
8
|
+
- `deleteLocation`
|
9
|
+
|
10
|
+
- Added new properties to `ContainerRegistryArtifactEventData` and `ContainerRegistryEventData` (for the `Microsoft.ContainerRegistry.{ChartDeleted|ChartPushed|ImagePushed|ImageDeleted}` system events):
|
11
|
+
|
12
|
+
- `connectedRegistry`
|
13
|
+
- `location`
|
14
|
+
|
15
|
+
- Added new properties to `AcsRecordingFileStatusUpdatedEventData` (for the `Microsoft.Communication.RecordingFileStatusUpdated` system event):
|
16
|
+
|
17
|
+
- `recordingChannelType`
|
18
|
+
- `recordingContentType`
|
19
|
+
- `recordingFormatType`
|
20
|
+
|
21
|
+
### Key Bug Fixes
|
22
|
+
|
23
|
+
- The TypeScript typings for events from Azure Resource Manager were incorrect. The following properties had their types changed:
|
8
24
|
|
9
|
-
|
25
|
+
- `authorization`
|
26
|
+
- `claims`
|
27
|
+
- `httpRequest`
|
10
28
|
|
11
|
-
|
29
|
+
Previously, these properties were typed as `string` but the underlying events from the service actually contained objects. Customers using `isSystemEvent` with TypeScript will
|
30
|
+
now see compliation issues if they try to treat these properties as strings (previously, the code would fail at runtime).
|
12
31
|
|
13
32
|
## 4.5.0 (2021-10-05)
|
14
33
|
|
package/dist/index.js
CHANGED
@@ -1238,16 +1238,17 @@ const ResourceWriteSuccessEventData = {
|
|
1238
1238
|
},
|
1239
1239
|
authorization: {
|
1240
1240
|
serializedName: "authorization",
|
1241
|
-
required: true,
|
1242
1241
|
type: {
|
1243
|
-
name: "
|
1242
|
+
name: "Composite",
|
1243
|
+
className: "ResourceAuthorization"
|
1244
1244
|
}
|
1245
1245
|
},
|
1246
1246
|
claims: {
|
1247
1247
|
serializedName: "claims",
|
1248
1248
|
required: true,
|
1249
1249
|
type: {
|
1250
|
-
name: "
|
1250
|
+
name: "Dictionary",
|
1251
|
+
value: { type: { name: "String" } }
|
1251
1252
|
}
|
1252
1253
|
},
|
1253
1254
|
correlationId: {
|
@@ -1259,6 +1260,72 @@ const ResourceWriteSuccessEventData = {
|
|
1259
1260
|
},
|
1260
1261
|
httpRequest: {
|
1261
1262
|
serializedName: "httpRequest",
|
1263
|
+
type: {
|
1264
|
+
name: "Composite",
|
1265
|
+
className: "ResourceHttpRequest"
|
1266
|
+
}
|
1267
|
+
}
|
1268
|
+
}
|
1269
|
+
}
|
1270
|
+
};
|
1271
|
+
const ResourceAuthorization = {
|
1272
|
+
type: {
|
1273
|
+
name: "Composite",
|
1274
|
+
className: "ResourceAuthorization",
|
1275
|
+
modelProperties: {
|
1276
|
+
scope: {
|
1277
|
+
serializedName: "scope",
|
1278
|
+
required: true,
|
1279
|
+
type: {
|
1280
|
+
name: "String"
|
1281
|
+
}
|
1282
|
+
},
|
1283
|
+
action: {
|
1284
|
+
serializedName: "action",
|
1285
|
+
required: true,
|
1286
|
+
type: {
|
1287
|
+
name: "String"
|
1288
|
+
}
|
1289
|
+
},
|
1290
|
+
evidence: {
|
1291
|
+
serializedName: "evidence",
|
1292
|
+
required: true,
|
1293
|
+
type: {
|
1294
|
+
name: "Dictionary",
|
1295
|
+
value: { type: { name: "String" } }
|
1296
|
+
}
|
1297
|
+
}
|
1298
|
+
}
|
1299
|
+
}
|
1300
|
+
};
|
1301
|
+
const ResourceHttpRequest = {
|
1302
|
+
type: {
|
1303
|
+
name: "Composite",
|
1304
|
+
className: "ResourceHttpRequest",
|
1305
|
+
modelProperties: {
|
1306
|
+
clientRequestId: {
|
1307
|
+
serializedName: "clientRequestId",
|
1308
|
+
required: true,
|
1309
|
+
type: {
|
1310
|
+
name: "String"
|
1311
|
+
}
|
1312
|
+
},
|
1313
|
+
clientIpAddress: {
|
1314
|
+
serializedName: "clientIpAddress",
|
1315
|
+
required: true,
|
1316
|
+
type: {
|
1317
|
+
name: "String"
|
1318
|
+
}
|
1319
|
+
},
|
1320
|
+
method: {
|
1321
|
+
serializedName: "method",
|
1322
|
+
required: true,
|
1323
|
+
type: {
|
1324
|
+
name: "String"
|
1325
|
+
}
|
1326
|
+
},
|
1327
|
+
url: {
|
1328
|
+
serializedName: "url",
|
1262
1329
|
required: true,
|
1263
1330
|
type: {
|
1264
1331
|
name: "String"
|
@@ -1323,16 +1390,17 @@ const ResourceWriteFailureEventData = {
|
|
1323
1390
|
},
|
1324
1391
|
authorization: {
|
1325
1392
|
serializedName: "authorization",
|
1326
|
-
required: true,
|
1327
1393
|
type: {
|
1328
|
-
name: "
|
1394
|
+
name: "Composite",
|
1395
|
+
className: "ResourceAuthorization"
|
1329
1396
|
}
|
1330
1397
|
},
|
1331
1398
|
claims: {
|
1332
1399
|
serializedName: "claims",
|
1333
1400
|
required: true,
|
1334
1401
|
type: {
|
1335
|
-
name: "
|
1402
|
+
name: "Dictionary",
|
1403
|
+
value: { type: { name: "String" } }
|
1336
1404
|
}
|
1337
1405
|
},
|
1338
1406
|
correlationId: {
|
@@ -1344,9 +1412,9 @@ const ResourceWriteFailureEventData = {
|
|
1344
1412
|
},
|
1345
1413
|
httpRequest: {
|
1346
1414
|
serializedName: "httpRequest",
|
1347
|
-
required: true,
|
1348
1415
|
type: {
|
1349
|
-
name: "
|
1416
|
+
name: "Composite",
|
1417
|
+
className: "ResourceHttpRequest"
|
1350
1418
|
}
|
1351
1419
|
}
|
1352
1420
|
}
|
@@ -1408,16 +1476,17 @@ const ResourceWriteCancelEventData = {
|
|
1408
1476
|
},
|
1409
1477
|
authorization: {
|
1410
1478
|
serializedName: "authorization",
|
1411
|
-
required: true,
|
1412
1479
|
type: {
|
1413
|
-
name: "
|
1480
|
+
name: "Composite",
|
1481
|
+
className: "ResourceAuthorization"
|
1414
1482
|
}
|
1415
1483
|
},
|
1416
1484
|
claims: {
|
1417
1485
|
serializedName: "claims",
|
1418
1486
|
required: true,
|
1419
1487
|
type: {
|
1420
|
-
name: "
|
1488
|
+
name: "Dictionary",
|
1489
|
+
value: { type: { name: "String" } }
|
1421
1490
|
}
|
1422
1491
|
},
|
1423
1492
|
correlationId: {
|
@@ -1429,9 +1498,9 @@ const ResourceWriteCancelEventData = {
|
|
1429
1498
|
},
|
1430
1499
|
httpRequest: {
|
1431
1500
|
serializedName: "httpRequest",
|
1432
|
-
required: true,
|
1433
1501
|
type: {
|
1434
|
-
name: "
|
1502
|
+
name: "Composite",
|
1503
|
+
className: "ResourceHttpRequest"
|
1435
1504
|
}
|
1436
1505
|
}
|
1437
1506
|
}
|
@@ -1493,16 +1562,17 @@ const ResourceDeleteSuccessEventData = {
|
|
1493
1562
|
},
|
1494
1563
|
authorization: {
|
1495
1564
|
serializedName: "authorization",
|
1496
|
-
required: true,
|
1497
1565
|
type: {
|
1498
|
-
name: "
|
1566
|
+
name: "Composite",
|
1567
|
+
className: "ResourceAuthorization"
|
1499
1568
|
}
|
1500
1569
|
},
|
1501
1570
|
claims: {
|
1502
1571
|
serializedName: "claims",
|
1503
1572
|
required: true,
|
1504
1573
|
type: {
|
1505
|
-
name: "
|
1574
|
+
name: "Dictionary",
|
1575
|
+
value: { type: { name: "String" } }
|
1506
1576
|
}
|
1507
1577
|
},
|
1508
1578
|
correlationId: {
|
@@ -1514,9 +1584,9 @@ const ResourceDeleteSuccessEventData = {
|
|
1514
1584
|
},
|
1515
1585
|
httpRequest: {
|
1516
1586
|
serializedName: "httpRequest",
|
1517
|
-
required: true,
|
1518
1587
|
type: {
|
1519
|
-
name: "
|
1588
|
+
name: "Composite",
|
1589
|
+
className: "ResourceHttpRequest"
|
1520
1590
|
}
|
1521
1591
|
}
|
1522
1592
|
}
|
@@ -1578,16 +1648,17 @@ const ResourceDeleteFailureEventData = {
|
|
1578
1648
|
},
|
1579
1649
|
authorization: {
|
1580
1650
|
serializedName: "authorization",
|
1581
|
-
required: true,
|
1582
1651
|
type: {
|
1583
|
-
name: "
|
1652
|
+
name: "Composite",
|
1653
|
+
className: "ResourceAuthorization"
|
1584
1654
|
}
|
1585
1655
|
},
|
1586
1656
|
claims: {
|
1587
1657
|
serializedName: "claims",
|
1588
1658
|
required: true,
|
1589
1659
|
type: {
|
1590
|
-
name: "
|
1660
|
+
name: "Dictionary",
|
1661
|
+
value: { type: { name: "String" } }
|
1591
1662
|
}
|
1592
1663
|
},
|
1593
1664
|
correlationId: {
|
@@ -1599,9 +1670,9 @@ const ResourceDeleteFailureEventData = {
|
|
1599
1670
|
},
|
1600
1671
|
httpRequest: {
|
1601
1672
|
serializedName: "httpRequest",
|
1602
|
-
required: true,
|
1603
1673
|
type: {
|
1604
|
-
name: "
|
1674
|
+
name: "Composite",
|
1675
|
+
className: "ResourceHttpRequest"
|
1605
1676
|
}
|
1606
1677
|
}
|
1607
1678
|
}
|
@@ -1663,16 +1734,17 @@ const ResourceDeleteCancelEventData = {
|
|
1663
1734
|
},
|
1664
1735
|
authorization: {
|
1665
1736
|
serializedName: "authorization",
|
1666
|
-
required: true,
|
1667
1737
|
type: {
|
1668
|
-
name: "
|
1738
|
+
name: "Composite",
|
1739
|
+
className: "ResourceAuthorization"
|
1669
1740
|
}
|
1670
1741
|
},
|
1671
1742
|
claims: {
|
1672
1743
|
serializedName: "claims",
|
1673
1744
|
required: true,
|
1674
1745
|
type: {
|
1675
|
-
name: "
|
1746
|
+
name: "Dictionary",
|
1747
|
+
value: { type: { name: "String" } }
|
1676
1748
|
}
|
1677
1749
|
},
|
1678
1750
|
correlationId: {
|
@@ -1684,9 +1756,9 @@ const ResourceDeleteCancelEventData = {
|
|
1684
1756
|
},
|
1685
1757
|
httpRequest: {
|
1686
1758
|
serializedName: "httpRequest",
|
1687
|
-
required: true,
|
1688
1759
|
type: {
|
1689
|
-
name: "
|
1760
|
+
name: "Composite",
|
1761
|
+
className: "ResourceHttpRequest"
|
1690
1762
|
}
|
1691
1763
|
}
|
1692
1764
|
}
|
@@ -1748,16 +1820,17 @@ const ResourceActionSuccessEventData = {
|
|
1748
1820
|
},
|
1749
1821
|
authorization: {
|
1750
1822
|
serializedName: "authorization",
|
1751
|
-
required: true,
|
1752
1823
|
type: {
|
1753
|
-
name: "
|
1824
|
+
name: "Composite",
|
1825
|
+
className: "ResourceAuthorization"
|
1754
1826
|
}
|
1755
1827
|
},
|
1756
1828
|
claims: {
|
1757
1829
|
serializedName: "claims",
|
1758
1830
|
required: true,
|
1759
1831
|
type: {
|
1760
|
-
name: "
|
1832
|
+
name: "Dictionary",
|
1833
|
+
value: { type: { name: "String" } }
|
1761
1834
|
}
|
1762
1835
|
},
|
1763
1836
|
correlationId: {
|
@@ -1769,9 +1842,9 @@ const ResourceActionSuccessEventData = {
|
|
1769
1842
|
},
|
1770
1843
|
httpRequest: {
|
1771
1844
|
serializedName: "httpRequest",
|
1772
|
-
required: true,
|
1773
1845
|
type: {
|
1774
|
-
name: "
|
1846
|
+
name: "Composite",
|
1847
|
+
className: "ResourceHttpRequest"
|
1775
1848
|
}
|
1776
1849
|
}
|
1777
1850
|
}
|
@@ -1833,16 +1906,17 @@ const ResourceActionFailureEventData = {
|
|
1833
1906
|
},
|
1834
1907
|
authorization: {
|
1835
1908
|
serializedName: "authorization",
|
1836
|
-
required: true,
|
1837
1909
|
type: {
|
1838
|
-
name: "
|
1910
|
+
name: "Composite",
|
1911
|
+
className: "ResourceAuthorization"
|
1839
1912
|
}
|
1840
1913
|
},
|
1841
1914
|
claims: {
|
1842
1915
|
serializedName: "claims",
|
1843
1916
|
required: true,
|
1844
1917
|
type: {
|
1845
|
-
name: "
|
1918
|
+
name: "Dictionary",
|
1919
|
+
value: { type: { name: "String" } }
|
1846
1920
|
}
|
1847
1921
|
},
|
1848
1922
|
correlationId: {
|
@@ -1854,9 +1928,9 @@ const ResourceActionFailureEventData = {
|
|
1854
1928
|
},
|
1855
1929
|
httpRequest: {
|
1856
1930
|
serializedName: "httpRequest",
|
1857
|
-
required: true,
|
1858
1931
|
type: {
|
1859
|
-
name: "
|
1932
|
+
name: "Composite",
|
1933
|
+
className: "ResourceHttpRequest"
|
1860
1934
|
}
|
1861
1935
|
}
|
1862
1936
|
}
|
@@ -1918,16 +1992,17 @@ const ResourceActionCancelEventData = {
|
|
1918
1992
|
},
|
1919
1993
|
authorization: {
|
1920
1994
|
serializedName: "authorization",
|
1921
|
-
required: true,
|
1922
1995
|
type: {
|
1923
|
-
name: "
|
1996
|
+
name: "Composite",
|
1997
|
+
className: "ResourceAuthorization"
|
1924
1998
|
}
|
1925
1999
|
},
|
1926
2000
|
claims: {
|
1927
2001
|
serializedName: "claims",
|
1928
2002
|
required: true,
|
1929
2003
|
type: {
|
1930
|
-
name: "
|
2004
|
+
name: "Dictionary",
|
2005
|
+
value: { type: { name: "String" } }
|
1931
2006
|
}
|
1932
2007
|
},
|
1933
2008
|
correlationId: {
|
@@ -1939,9 +2014,9 @@ const ResourceActionCancelEventData = {
|
|
1939
2014
|
},
|
1940
2015
|
httpRequest: {
|
1941
2016
|
serializedName: "httpRequest",
|
1942
|
-
required: true,
|
1943
2017
|
type: {
|
1944
|
-
name: "
|
2018
|
+
name: "Composite",
|
2019
|
+
className: "ResourceHttpRequest"
|
1945
2020
|
}
|
1946
2021
|
}
|
1947
2022
|
}
|
@@ -2303,6 +2378,13 @@ const ContainerRegistryEventData = {
|
|
2303
2378
|
name: "String"
|
2304
2379
|
}
|
2305
2380
|
},
|
2381
|
+
location: {
|
2382
|
+
serializedName: "location",
|
2383
|
+
required: true,
|
2384
|
+
type: {
|
2385
|
+
name: "String"
|
2386
|
+
}
|
2387
|
+
},
|
2306
2388
|
target: {
|
2307
2389
|
serializedName: "target",
|
2308
2390
|
type: {
|
@@ -2330,6 +2412,13 @@ const ContainerRegistryEventData = {
|
|
2330
2412
|
name: "Composite",
|
2331
2413
|
className: "ContainerRegistryEventSource"
|
2332
2414
|
}
|
2415
|
+
},
|
2416
|
+
connectedRegistry: {
|
2417
|
+
serializedName: "connectedRegistry",
|
2418
|
+
type: {
|
2419
|
+
name: "Composite",
|
2420
|
+
className: "ContainerRegistryEventConnectedRegistry"
|
2421
|
+
}
|
2333
2422
|
}
|
2334
2423
|
}
|
2335
2424
|
}
|
@@ -2471,6 +2560,21 @@ const ContainerRegistryEventSource = {
|
|
2471
2560
|
}
|
2472
2561
|
}
|
2473
2562
|
};
|
2563
|
+
const ContainerRegistryEventConnectedRegistry = {
|
2564
|
+
type: {
|
2565
|
+
name: "Composite",
|
2566
|
+
className: "ContainerRegistryEventConnectedRegistry",
|
2567
|
+
modelProperties: {
|
2568
|
+
name: {
|
2569
|
+
serializedName: "name",
|
2570
|
+
required: true,
|
2571
|
+
type: {
|
2572
|
+
name: "String"
|
2573
|
+
}
|
2574
|
+
}
|
2575
|
+
}
|
2576
|
+
}
|
2577
|
+
};
|
2474
2578
|
const ContainerRegistryArtifactEventData = {
|
2475
2579
|
type: {
|
2476
2580
|
name: "Composite",
|
@@ -2497,12 +2601,26 @@ const ContainerRegistryArtifactEventData = {
|
|
2497
2601
|
name: "String"
|
2498
2602
|
}
|
2499
2603
|
},
|
2604
|
+
location: {
|
2605
|
+
serializedName: "location",
|
2606
|
+
required: true,
|
2607
|
+
type: {
|
2608
|
+
name: "String"
|
2609
|
+
}
|
2610
|
+
},
|
2500
2611
|
target: {
|
2501
2612
|
serializedName: "target",
|
2502
2613
|
type: {
|
2503
2614
|
name: "Composite",
|
2504
2615
|
className: "ContainerRegistryArtifactEventTarget"
|
2505
2616
|
}
|
2617
|
+
},
|
2618
|
+
connectedRegistry: {
|
2619
|
+
serializedName: "connectedRegistry",
|
2620
|
+
type: {
|
2621
|
+
name: "Composite",
|
2622
|
+
className: "ContainerRegistryEventConnectedRegistry"
|
2623
|
+
}
|
2506
2624
|
}
|
2507
2625
|
}
|
2508
2626
|
}
|
@@ -5922,6 +6040,27 @@ const AcsRecordingFileStatusUpdatedEventData = {
|
|
5922
6040
|
name: "Number"
|
5923
6041
|
}
|
5924
6042
|
},
|
6043
|
+
recordingContentType: {
|
6044
|
+
serializedName: "recordingContentType",
|
6045
|
+
required: true,
|
6046
|
+
type: {
|
6047
|
+
name: "String"
|
6048
|
+
}
|
6049
|
+
},
|
6050
|
+
recordingChannelType: {
|
6051
|
+
serializedName: "recordingChannelType",
|
6052
|
+
required: true,
|
6053
|
+
type: {
|
6054
|
+
name: "String"
|
6055
|
+
}
|
6056
|
+
},
|
6057
|
+
recordingFormatType: {
|
6058
|
+
serializedName: "recordingFormatType",
|
6059
|
+
required: true,
|
6060
|
+
type: {
|
6061
|
+
name: "String"
|
6062
|
+
}
|
6063
|
+
},
|
5925
6064
|
sessionEndReason: {
|
5926
6065
|
serializedName: "sessionEndReason",
|
5927
6066
|
required: true,
|
@@ -5992,6 +6131,13 @@ const AcsRecordingChunkInfo = {
|
|
5992
6131
|
type: {
|
5993
6132
|
name: "String"
|
5994
6133
|
}
|
6134
|
+
},
|
6135
|
+
deleteLocation: {
|
6136
|
+
serializedName: "deleteLocation",
|
6137
|
+
required: true,
|
6138
|
+
type: {
|
6139
|
+
name: "String"
|
6140
|
+
}
|
5995
6141
|
}
|
5996
6142
|
}
|
5997
6143
|
}
|
@@ -7252,6 +7398,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
7252
7398
|
StorageBlobInventoryPolicyCompletedEventData: StorageBlobInventoryPolicyCompletedEventData,
|
7253
7399
|
EventHubCaptureFileCreatedEventData: EventHubCaptureFileCreatedEventData,
|
7254
7400
|
ResourceWriteSuccessEventData: ResourceWriteSuccessEventData,
|
7401
|
+
ResourceAuthorization: ResourceAuthorization,
|
7402
|
+
ResourceHttpRequest: ResourceHttpRequest,
|
7255
7403
|
ResourceWriteFailureEventData: ResourceWriteFailureEventData,
|
7256
7404
|
ResourceWriteCancelEventData: ResourceWriteCancelEventData,
|
7257
7405
|
ResourceDeleteSuccessEventData: ResourceDeleteSuccessEventData,
|
@@ -7277,6 +7425,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
7277
7425
|
ContainerRegistryEventRequest: ContainerRegistryEventRequest,
|
7278
7426
|
ContainerRegistryEventActor: ContainerRegistryEventActor,
|
7279
7427
|
ContainerRegistryEventSource: ContainerRegistryEventSource,
|
7428
|
+
ContainerRegistryEventConnectedRegistry: ContainerRegistryEventConnectedRegistry,
|
7280
7429
|
ContainerRegistryArtifactEventData: ContainerRegistryArtifactEventData,
|
7281
7430
|
ContainerRegistryArtifactEventTarget: ContainerRegistryArtifactEventTarget,
|
7282
7431
|
ServiceBusActiveMessagesAvailableWithNoListenersEventData: ServiceBusActiveMessagesAvailableWithNoListenersEventData,
|
@@ -7443,7 +7592,7 @@ class GeneratedClientContext extends coreClient.ServiceClient {
|
|
7443
7592
|
const defaults = {
|
7444
7593
|
requestContentType: "application/json; charset=utf-8"
|
7445
7594
|
};
|
7446
|
-
const packageDetails = `azsdk-js-eventgrid/4.
|
7595
|
+
const packageDetails = `azsdk-js-eventgrid/4.6.0`;
|
7447
7596
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
7448
7597
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
7449
7598
|
: `${packageDetails}`;
|