@azure/eventgrid 4.5.1-alpha.20220105.3 → 4.6.1-alpha.20220128.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 +31 -1
- package/dist/index.js +223 -58
- 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 +5 -15
- package/types/eventgrid.d.ts +123 -28
package/CHANGELOG.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
-
## 4.
|
3
|
+
## 4.6.1 (Unreleased)
|
4
4
|
|
5
5
|
### Features Added
|
6
6
|
|
@@ -10,6 +10,36 @@
|
|
10
10
|
|
11
11
|
### Other Changes
|
12
12
|
|
13
|
+
## 4.6.0 (2022-01-11)
|
14
|
+
|
15
|
+
### Features Added
|
16
|
+
|
17
|
+
- Added a new property to `AcsRecordingChunkInfo` (for the `Microsoft.Communication.RecordingFileStatusUpdated` system event):
|
18
|
+
|
19
|
+
- `deleteLocation`
|
20
|
+
|
21
|
+
- Added new properties to `ContainerRegistryArtifactEventData` and `ContainerRegistryEventData` (for the `Microsoft.ContainerRegistry.{ChartDeleted|ChartPushed|ImagePushed|ImageDeleted}` system events):
|
22
|
+
|
23
|
+
- `connectedRegistry`
|
24
|
+
- `location`
|
25
|
+
|
26
|
+
- Added new properties to `AcsRecordingFileStatusUpdatedEventData` (for the `Microsoft.Communication.RecordingFileStatusUpdated` system event):
|
27
|
+
|
28
|
+
- `recordingChannelType`
|
29
|
+
- `recordingContentType`
|
30
|
+
- `recordingFormatType`
|
31
|
+
|
32
|
+
### Key Bug Fixes
|
33
|
+
|
34
|
+
- The TypeScript typings for events from Azure Resource Manager were incorrect. The following properties had their types changed:
|
35
|
+
|
36
|
+
- `authorization`
|
37
|
+
- `claims`
|
38
|
+
- `httpRequest`
|
39
|
+
|
40
|
+
Previously, these properties were typed as `string` but the underlying events from the service actually contained objects. Customers using `isSystemEvent` with TypeScript will
|
41
|
+
now see compliation issues if they try to treat these properties as strings (previously, the code would fail at runtime).
|
42
|
+
|
13
43
|
## 4.5.0 (2021-10-05)
|
14
44
|
|
15
45
|
### Features Added
|
package/dist/index.js
CHANGED
@@ -9,6 +9,26 @@ var uuid = require('uuid');
|
|
9
9
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
10
10
|
var crypto = require('crypto');
|
11
11
|
|
12
|
+
function _interopNamespace(e) {
|
13
|
+
if (e && e.__esModule) return e;
|
14
|
+
var n = Object.create(null);
|
15
|
+
if (e) {
|
16
|
+
Object.keys(e).forEach(function (k) {
|
17
|
+
if (k !== 'default') {
|
18
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
19
|
+
Object.defineProperty(n, k, d.get ? d : {
|
20
|
+
enumerable: true,
|
21
|
+
get: function () { return e[k]; }
|
22
|
+
});
|
23
|
+
}
|
24
|
+
});
|
25
|
+
}
|
26
|
+
n["default"] = e;
|
27
|
+
return Object.freeze(n);
|
28
|
+
}
|
29
|
+
|
30
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
31
|
+
|
12
32
|
// Copyright (c) Microsoft Corporation.
|
13
33
|
// Licensed under the MIT license.
|
14
34
|
/**
|
@@ -1238,16 +1258,17 @@ const ResourceWriteSuccessEventData = {
|
|
1238
1258
|
},
|
1239
1259
|
authorization: {
|
1240
1260
|
serializedName: "authorization",
|
1241
|
-
required: true,
|
1242
1261
|
type: {
|
1243
|
-
name: "
|
1262
|
+
name: "Composite",
|
1263
|
+
className: "ResourceAuthorization"
|
1244
1264
|
}
|
1245
1265
|
},
|
1246
1266
|
claims: {
|
1247
1267
|
serializedName: "claims",
|
1248
1268
|
required: true,
|
1249
1269
|
type: {
|
1250
|
-
name: "
|
1270
|
+
name: "Dictionary",
|
1271
|
+
value: { type: { name: "String" } }
|
1251
1272
|
}
|
1252
1273
|
},
|
1253
1274
|
correlationId: {
|
@@ -1259,6 +1280,72 @@ const ResourceWriteSuccessEventData = {
|
|
1259
1280
|
},
|
1260
1281
|
httpRequest: {
|
1261
1282
|
serializedName: "httpRequest",
|
1283
|
+
type: {
|
1284
|
+
name: "Composite",
|
1285
|
+
className: "ResourceHttpRequest"
|
1286
|
+
}
|
1287
|
+
}
|
1288
|
+
}
|
1289
|
+
}
|
1290
|
+
};
|
1291
|
+
const ResourceAuthorization = {
|
1292
|
+
type: {
|
1293
|
+
name: "Composite",
|
1294
|
+
className: "ResourceAuthorization",
|
1295
|
+
modelProperties: {
|
1296
|
+
scope: {
|
1297
|
+
serializedName: "scope",
|
1298
|
+
required: true,
|
1299
|
+
type: {
|
1300
|
+
name: "String"
|
1301
|
+
}
|
1302
|
+
},
|
1303
|
+
action: {
|
1304
|
+
serializedName: "action",
|
1305
|
+
required: true,
|
1306
|
+
type: {
|
1307
|
+
name: "String"
|
1308
|
+
}
|
1309
|
+
},
|
1310
|
+
evidence: {
|
1311
|
+
serializedName: "evidence",
|
1312
|
+
required: true,
|
1313
|
+
type: {
|
1314
|
+
name: "Dictionary",
|
1315
|
+
value: { type: { name: "String" } }
|
1316
|
+
}
|
1317
|
+
}
|
1318
|
+
}
|
1319
|
+
}
|
1320
|
+
};
|
1321
|
+
const ResourceHttpRequest = {
|
1322
|
+
type: {
|
1323
|
+
name: "Composite",
|
1324
|
+
className: "ResourceHttpRequest",
|
1325
|
+
modelProperties: {
|
1326
|
+
clientRequestId: {
|
1327
|
+
serializedName: "clientRequestId",
|
1328
|
+
required: true,
|
1329
|
+
type: {
|
1330
|
+
name: "String"
|
1331
|
+
}
|
1332
|
+
},
|
1333
|
+
clientIpAddress: {
|
1334
|
+
serializedName: "clientIpAddress",
|
1335
|
+
required: true,
|
1336
|
+
type: {
|
1337
|
+
name: "String"
|
1338
|
+
}
|
1339
|
+
},
|
1340
|
+
method: {
|
1341
|
+
serializedName: "method",
|
1342
|
+
required: true,
|
1343
|
+
type: {
|
1344
|
+
name: "String"
|
1345
|
+
}
|
1346
|
+
},
|
1347
|
+
url: {
|
1348
|
+
serializedName: "url",
|
1262
1349
|
required: true,
|
1263
1350
|
type: {
|
1264
1351
|
name: "String"
|
@@ -1323,16 +1410,17 @@ const ResourceWriteFailureEventData = {
|
|
1323
1410
|
},
|
1324
1411
|
authorization: {
|
1325
1412
|
serializedName: "authorization",
|
1326
|
-
required: true,
|
1327
1413
|
type: {
|
1328
|
-
name: "
|
1414
|
+
name: "Composite",
|
1415
|
+
className: "ResourceAuthorization"
|
1329
1416
|
}
|
1330
1417
|
},
|
1331
1418
|
claims: {
|
1332
1419
|
serializedName: "claims",
|
1333
1420
|
required: true,
|
1334
1421
|
type: {
|
1335
|
-
name: "
|
1422
|
+
name: "Dictionary",
|
1423
|
+
value: { type: { name: "String" } }
|
1336
1424
|
}
|
1337
1425
|
},
|
1338
1426
|
correlationId: {
|
@@ -1344,9 +1432,9 @@ const ResourceWriteFailureEventData = {
|
|
1344
1432
|
},
|
1345
1433
|
httpRequest: {
|
1346
1434
|
serializedName: "httpRequest",
|
1347
|
-
required: true,
|
1348
1435
|
type: {
|
1349
|
-
name: "
|
1436
|
+
name: "Composite",
|
1437
|
+
className: "ResourceHttpRequest"
|
1350
1438
|
}
|
1351
1439
|
}
|
1352
1440
|
}
|
@@ -1408,16 +1496,17 @@ const ResourceWriteCancelEventData = {
|
|
1408
1496
|
},
|
1409
1497
|
authorization: {
|
1410
1498
|
serializedName: "authorization",
|
1411
|
-
required: true,
|
1412
1499
|
type: {
|
1413
|
-
name: "
|
1500
|
+
name: "Composite",
|
1501
|
+
className: "ResourceAuthorization"
|
1414
1502
|
}
|
1415
1503
|
},
|
1416
1504
|
claims: {
|
1417
1505
|
serializedName: "claims",
|
1418
1506
|
required: true,
|
1419
1507
|
type: {
|
1420
|
-
name: "
|
1508
|
+
name: "Dictionary",
|
1509
|
+
value: { type: { name: "String" } }
|
1421
1510
|
}
|
1422
1511
|
},
|
1423
1512
|
correlationId: {
|
@@ -1429,9 +1518,9 @@ const ResourceWriteCancelEventData = {
|
|
1429
1518
|
},
|
1430
1519
|
httpRequest: {
|
1431
1520
|
serializedName: "httpRequest",
|
1432
|
-
required: true,
|
1433
1521
|
type: {
|
1434
|
-
name: "
|
1522
|
+
name: "Composite",
|
1523
|
+
className: "ResourceHttpRequest"
|
1435
1524
|
}
|
1436
1525
|
}
|
1437
1526
|
}
|
@@ -1493,16 +1582,17 @@ const ResourceDeleteSuccessEventData = {
|
|
1493
1582
|
},
|
1494
1583
|
authorization: {
|
1495
1584
|
serializedName: "authorization",
|
1496
|
-
required: true,
|
1497
1585
|
type: {
|
1498
|
-
name: "
|
1586
|
+
name: "Composite",
|
1587
|
+
className: "ResourceAuthorization"
|
1499
1588
|
}
|
1500
1589
|
},
|
1501
1590
|
claims: {
|
1502
1591
|
serializedName: "claims",
|
1503
1592
|
required: true,
|
1504
1593
|
type: {
|
1505
|
-
name: "
|
1594
|
+
name: "Dictionary",
|
1595
|
+
value: { type: { name: "String" } }
|
1506
1596
|
}
|
1507
1597
|
},
|
1508
1598
|
correlationId: {
|
@@ -1514,9 +1604,9 @@ const ResourceDeleteSuccessEventData = {
|
|
1514
1604
|
},
|
1515
1605
|
httpRequest: {
|
1516
1606
|
serializedName: "httpRequest",
|
1517
|
-
required: true,
|
1518
1607
|
type: {
|
1519
|
-
name: "
|
1608
|
+
name: "Composite",
|
1609
|
+
className: "ResourceHttpRequest"
|
1520
1610
|
}
|
1521
1611
|
}
|
1522
1612
|
}
|
@@ -1578,16 +1668,17 @@ const ResourceDeleteFailureEventData = {
|
|
1578
1668
|
},
|
1579
1669
|
authorization: {
|
1580
1670
|
serializedName: "authorization",
|
1581
|
-
required: true,
|
1582
1671
|
type: {
|
1583
|
-
name: "
|
1672
|
+
name: "Composite",
|
1673
|
+
className: "ResourceAuthorization"
|
1584
1674
|
}
|
1585
1675
|
},
|
1586
1676
|
claims: {
|
1587
1677
|
serializedName: "claims",
|
1588
1678
|
required: true,
|
1589
1679
|
type: {
|
1590
|
-
name: "
|
1680
|
+
name: "Dictionary",
|
1681
|
+
value: { type: { name: "String" } }
|
1591
1682
|
}
|
1592
1683
|
},
|
1593
1684
|
correlationId: {
|
@@ -1599,9 +1690,9 @@ const ResourceDeleteFailureEventData = {
|
|
1599
1690
|
},
|
1600
1691
|
httpRequest: {
|
1601
1692
|
serializedName: "httpRequest",
|
1602
|
-
required: true,
|
1603
1693
|
type: {
|
1604
|
-
name: "
|
1694
|
+
name: "Composite",
|
1695
|
+
className: "ResourceHttpRequest"
|
1605
1696
|
}
|
1606
1697
|
}
|
1607
1698
|
}
|
@@ -1663,16 +1754,17 @@ const ResourceDeleteCancelEventData = {
|
|
1663
1754
|
},
|
1664
1755
|
authorization: {
|
1665
1756
|
serializedName: "authorization",
|
1666
|
-
required: true,
|
1667
1757
|
type: {
|
1668
|
-
name: "
|
1758
|
+
name: "Composite",
|
1759
|
+
className: "ResourceAuthorization"
|
1669
1760
|
}
|
1670
1761
|
},
|
1671
1762
|
claims: {
|
1672
1763
|
serializedName: "claims",
|
1673
1764
|
required: true,
|
1674
1765
|
type: {
|
1675
|
-
name: "
|
1766
|
+
name: "Dictionary",
|
1767
|
+
value: { type: { name: "String" } }
|
1676
1768
|
}
|
1677
1769
|
},
|
1678
1770
|
correlationId: {
|
@@ -1684,9 +1776,9 @@ const ResourceDeleteCancelEventData = {
|
|
1684
1776
|
},
|
1685
1777
|
httpRequest: {
|
1686
1778
|
serializedName: "httpRequest",
|
1687
|
-
required: true,
|
1688
1779
|
type: {
|
1689
|
-
name: "
|
1780
|
+
name: "Composite",
|
1781
|
+
className: "ResourceHttpRequest"
|
1690
1782
|
}
|
1691
1783
|
}
|
1692
1784
|
}
|
@@ -1748,16 +1840,17 @@ const ResourceActionSuccessEventData = {
|
|
1748
1840
|
},
|
1749
1841
|
authorization: {
|
1750
1842
|
serializedName: "authorization",
|
1751
|
-
required: true,
|
1752
1843
|
type: {
|
1753
|
-
name: "
|
1844
|
+
name: "Composite",
|
1845
|
+
className: "ResourceAuthorization"
|
1754
1846
|
}
|
1755
1847
|
},
|
1756
1848
|
claims: {
|
1757
1849
|
serializedName: "claims",
|
1758
1850
|
required: true,
|
1759
1851
|
type: {
|
1760
|
-
name: "
|
1852
|
+
name: "Dictionary",
|
1853
|
+
value: { type: { name: "String" } }
|
1761
1854
|
}
|
1762
1855
|
},
|
1763
1856
|
correlationId: {
|
@@ -1769,9 +1862,9 @@ const ResourceActionSuccessEventData = {
|
|
1769
1862
|
},
|
1770
1863
|
httpRequest: {
|
1771
1864
|
serializedName: "httpRequest",
|
1772
|
-
required: true,
|
1773
1865
|
type: {
|
1774
|
-
name: "
|
1866
|
+
name: "Composite",
|
1867
|
+
className: "ResourceHttpRequest"
|
1775
1868
|
}
|
1776
1869
|
}
|
1777
1870
|
}
|
@@ -1833,16 +1926,17 @@ const ResourceActionFailureEventData = {
|
|
1833
1926
|
},
|
1834
1927
|
authorization: {
|
1835
1928
|
serializedName: "authorization",
|
1836
|
-
required: true,
|
1837
1929
|
type: {
|
1838
|
-
name: "
|
1930
|
+
name: "Composite",
|
1931
|
+
className: "ResourceAuthorization"
|
1839
1932
|
}
|
1840
1933
|
},
|
1841
1934
|
claims: {
|
1842
1935
|
serializedName: "claims",
|
1843
1936
|
required: true,
|
1844
1937
|
type: {
|
1845
|
-
name: "
|
1938
|
+
name: "Dictionary",
|
1939
|
+
value: { type: { name: "String" } }
|
1846
1940
|
}
|
1847
1941
|
},
|
1848
1942
|
correlationId: {
|
@@ -1854,9 +1948,9 @@ const ResourceActionFailureEventData = {
|
|
1854
1948
|
},
|
1855
1949
|
httpRequest: {
|
1856
1950
|
serializedName: "httpRequest",
|
1857
|
-
required: true,
|
1858
1951
|
type: {
|
1859
|
-
name: "
|
1952
|
+
name: "Composite",
|
1953
|
+
className: "ResourceHttpRequest"
|
1860
1954
|
}
|
1861
1955
|
}
|
1862
1956
|
}
|
@@ -1918,16 +2012,17 @@ const ResourceActionCancelEventData = {
|
|
1918
2012
|
},
|
1919
2013
|
authorization: {
|
1920
2014
|
serializedName: "authorization",
|
1921
|
-
required: true,
|
1922
2015
|
type: {
|
1923
|
-
name: "
|
2016
|
+
name: "Composite",
|
2017
|
+
className: "ResourceAuthorization"
|
1924
2018
|
}
|
1925
2019
|
},
|
1926
2020
|
claims: {
|
1927
2021
|
serializedName: "claims",
|
1928
2022
|
required: true,
|
1929
2023
|
type: {
|
1930
|
-
name: "
|
2024
|
+
name: "Dictionary",
|
2025
|
+
value: { type: { name: "String" } }
|
1931
2026
|
}
|
1932
2027
|
},
|
1933
2028
|
correlationId: {
|
@@ -1939,9 +2034,9 @@ const ResourceActionCancelEventData = {
|
|
1939
2034
|
},
|
1940
2035
|
httpRequest: {
|
1941
2036
|
serializedName: "httpRequest",
|
1942
|
-
required: true,
|
1943
2037
|
type: {
|
1944
|
-
name: "
|
2038
|
+
name: "Composite",
|
2039
|
+
className: "ResourceHttpRequest"
|
1945
2040
|
}
|
1946
2041
|
}
|
1947
2042
|
}
|
@@ -2303,6 +2398,13 @@ const ContainerRegistryEventData = {
|
|
2303
2398
|
name: "String"
|
2304
2399
|
}
|
2305
2400
|
},
|
2401
|
+
location: {
|
2402
|
+
serializedName: "location",
|
2403
|
+
required: true,
|
2404
|
+
type: {
|
2405
|
+
name: "String"
|
2406
|
+
}
|
2407
|
+
},
|
2306
2408
|
target: {
|
2307
2409
|
serializedName: "target",
|
2308
2410
|
type: {
|
@@ -2330,6 +2432,13 @@ const ContainerRegistryEventData = {
|
|
2330
2432
|
name: "Composite",
|
2331
2433
|
className: "ContainerRegistryEventSource"
|
2332
2434
|
}
|
2435
|
+
},
|
2436
|
+
connectedRegistry: {
|
2437
|
+
serializedName: "connectedRegistry",
|
2438
|
+
type: {
|
2439
|
+
name: "Composite",
|
2440
|
+
className: "ContainerRegistryEventConnectedRegistry"
|
2441
|
+
}
|
2333
2442
|
}
|
2334
2443
|
}
|
2335
2444
|
}
|
@@ -2471,6 +2580,21 @@ const ContainerRegistryEventSource = {
|
|
2471
2580
|
}
|
2472
2581
|
}
|
2473
2582
|
};
|
2583
|
+
const ContainerRegistryEventConnectedRegistry = {
|
2584
|
+
type: {
|
2585
|
+
name: "Composite",
|
2586
|
+
className: "ContainerRegistryEventConnectedRegistry",
|
2587
|
+
modelProperties: {
|
2588
|
+
name: {
|
2589
|
+
serializedName: "name",
|
2590
|
+
required: true,
|
2591
|
+
type: {
|
2592
|
+
name: "String"
|
2593
|
+
}
|
2594
|
+
}
|
2595
|
+
}
|
2596
|
+
}
|
2597
|
+
};
|
2474
2598
|
const ContainerRegistryArtifactEventData = {
|
2475
2599
|
type: {
|
2476
2600
|
name: "Composite",
|
@@ -2497,12 +2621,26 @@ const ContainerRegistryArtifactEventData = {
|
|
2497
2621
|
name: "String"
|
2498
2622
|
}
|
2499
2623
|
},
|
2624
|
+
location: {
|
2625
|
+
serializedName: "location",
|
2626
|
+
required: true,
|
2627
|
+
type: {
|
2628
|
+
name: "String"
|
2629
|
+
}
|
2630
|
+
},
|
2500
2631
|
target: {
|
2501
2632
|
serializedName: "target",
|
2502
2633
|
type: {
|
2503
2634
|
name: "Composite",
|
2504
2635
|
className: "ContainerRegistryArtifactEventTarget"
|
2505
2636
|
}
|
2637
|
+
},
|
2638
|
+
connectedRegistry: {
|
2639
|
+
serializedName: "connectedRegistry",
|
2640
|
+
type: {
|
2641
|
+
name: "Composite",
|
2642
|
+
className: "ContainerRegistryEventConnectedRegistry"
|
2643
|
+
}
|
2506
2644
|
}
|
2507
2645
|
}
|
2508
2646
|
}
|
@@ -5922,6 +6060,27 @@ const AcsRecordingFileStatusUpdatedEventData = {
|
|
5922
6060
|
name: "Number"
|
5923
6061
|
}
|
5924
6062
|
},
|
6063
|
+
recordingContentType: {
|
6064
|
+
serializedName: "recordingContentType",
|
6065
|
+
required: true,
|
6066
|
+
type: {
|
6067
|
+
name: "String"
|
6068
|
+
}
|
6069
|
+
},
|
6070
|
+
recordingChannelType: {
|
6071
|
+
serializedName: "recordingChannelType",
|
6072
|
+
required: true,
|
6073
|
+
type: {
|
6074
|
+
name: "String"
|
6075
|
+
}
|
6076
|
+
},
|
6077
|
+
recordingFormatType: {
|
6078
|
+
serializedName: "recordingFormatType",
|
6079
|
+
required: true,
|
6080
|
+
type: {
|
6081
|
+
name: "String"
|
6082
|
+
}
|
6083
|
+
},
|
5925
6084
|
sessionEndReason: {
|
5926
6085
|
serializedName: "sessionEndReason",
|
5927
6086
|
required: true,
|
@@ -5992,6 +6151,13 @@ const AcsRecordingChunkInfo = {
|
|
5992
6151
|
type: {
|
5993
6152
|
name: "String"
|
5994
6153
|
}
|
6154
|
+
},
|
6155
|
+
deleteLocation: {
|
6156
|
+
serializedName: "deleteLocation",
|
6157
|
+
required: true,
|
6158
|
+
type: {
|
6159
|
+
name: "String"
|
6160
|
+
}
|
5995
6161
|
}
|
5996
6162
|
}
|
5997
6163
|
}
|
@@ -7252,6 +7418,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
7252
7418
|
StorageBlobInventoryPolicyCompletedEventData: StorageBlobInventoryPolicyCompletedEventData,
|
7253
7419
|
EventHubCaptureFileCreatedEventData: EventHubCaptureFileCreatedEventData,
|
7254
7420
|
ResourceWriteSuccessEventData: ResourceWriteSuccessEventData,
|
7421
|
+
ResourceAuthorization: ResourceAuthorization,
|
7422
|
+
ResourceHttpRequest: ResourceHttpRequest,
|
7255
7423
|
ResourceWriteFailureEventData: ResourceWriteFailureEventData,
|
7256
7424
|
ResourceWriteCancelEventData: ResourceWriteCancelEventData,
|
7257
7425
|
ResourceDeleteSuccessEventData: ResourceDeleteSuccessEventData,
|
@@ -7277,6 +7445,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
7277
7445
|
ContainerRegistryEventRequest: ContainerRegistryEventRequest,
|
7278
7446
|
ContainerRegistryEventActor: ContainerRegistryEventActor,
|
7279
7447
|
ContainerRegistryEventSource: ContainerRegistryEventSource,
|
7448
|
+
ContainerRegistryEventConnectedRegistry: ContainerRegistryEventConnectedRegistry,
|
7280
7449
|
ContainerRegistryArtifactEventData: ContainerRegistryArtifactEventData,
|
7281
7450
|
ContainerRegistryArtifactEventTarget: ContainerRegistryArtifactEventTarget,
|
7282
7451
|
ServiceBusActiveMessagesAvailableWithNoListenersEventData: ServiceBusActiveMessagesAvailableWithNoListenersEventData,
|
@@ -7430,7 +7599,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
7430
7599
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7431
7600
|
*/
|
7432
7601
|
/** @internal */
|
7433
|
-
class GeneratedClientContext extends
|
7602
|
+
class GeneratedClientContext extends coreClient__namespace.ServiceClient {
|
7434
7603
|
/**
|
7435
7604
|
* Initializes a new instance of the GeneratedClientContext class.
|
7436
7605
|
* @param options The parameter options
|
@@ -7443,7 +7612,7 @@ class GeneratedClientContext extends coreClient.ServiceClient {
|
|
7443
7612
|
const defaults = {
|
7444
7613
|
requestContentType: "application/json; charset=utf-8"
|
7445
7614
|
};
|
7446
|
-
const packageDetails = `azsdk-js-eventgrid/4.
|
7615
|
+
const packageDetails = `azsdk-js-eventgrid/4.6.1`;
|
7447
7616
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
7448
7617
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
7449
7618
|
: `${packageDetails}`;
|
@@ -7501,7 +7670,7 @@ class GeneratedClient extends GeneratedClientContext {
|
|
7501
7670
|
}
|
7502
7671
|
}
|
7503
7672
|
// Operation Specifications
|
7504
|
-
const serializer =
|
7673
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
7505
7674
|
const publishEventsOperationSpec = {
|
7506
7675
|
path: "",
|
7507
7676
|
httpMethod: "POST",
|
@@ -7511,7 +7680,7 @@ const publishEventsOperationSpec = {
|
|
7511
7680
|
urlParameters: [topicHostname],
|
7512
7681
|
headerParameters: [contentType],
|
7513
7682
|
mediaType: "json",
|
7514
|
-
serializer
|
7683
|
+
serializer: serializer$1
|
7515
7684
|
};
|
7516
7685
|
const publishCloudEventEventsOperationSpec = {
|
7517
7686
|
path: "",
|
@@ -7522,7 +7691,7 @@ const publishCloudEventEventsOperationSpec = {
|
|
7522
7691
|
urlParameters: [topicHostname],
|
7523
7692
|
headerParameters: [contentType1],
|
7524
7693
|
mediaType: "json",
|
7525
|
-
serializer
|
7694
|
+
serializer: serializer$1
|
7526
7695
|
};
|
7527
7696
|
const publishCustomEventEventsOperationSpec = {
|
7528
7697
|
path: "",
|
@@ -7533,7 +7702,7 @@ const publishCustomEventEventsOperationSpec = {
|
|
7533
7702
|
urlParameters: [topicHostname],
|
7534
7703
|
headerParameters: [contentType],
|
7535
7704
|
mediaType: "json",
|
7536
|
-
serializer
|
7705
|
+
serializer: serializer$1
|
7537
7706
|
};
|
7538
7707
|
|
7539
7708
|
// Copyright (c) Microsoft Corporation.
|
@@ -7740,7 +7909,7 @@ async function generateSharedAccessSignature(endpointUrl, credential, expiresOnU
|
|
7740
7909
|
}
|
7741
7910
|
|
7742
7911
|
// Copyright (c) Microsoft Corporation.
|
7743
|
-
const serializer
|
7912
|
+
const serializer = coreClient.createSerializer();
|
7744
7913
|
/**
|
7745
7914
|
* EventGridDeserializer is used to aid in processing events delivered by EventGrid. It can deserialize a JSON encoded payload
|
7746
7915
|
* of either a single event or batch of events as well as be used to convert the result of `JSON.parse` into an
|
@@ -7758,7 +7927,7 @@ class EventGridDeserializer {
|
|
7758
7927
|
const events = [];
|
7759
7928
|
for (const o of decodedArray) {
|
7760
7929
|
validateEventGridEvent(o);
|
7761
|
-
const deserialized = serializer
|
7930
|
+
const deserialized = serializer.deserialize(EventGridEvent, o, "");
|
7762
7931
|
events.push(deserialized);
|
7763
7932
|
}
|
7764
7933
|
return events;
|
@@ -7770,7 +7939,7 @@ class EventGridDeserializer {
|
|
7770
7939
|
validateCloudEventEvent(o);
|
7771
7940
|
// Check that the required fields are present and of the correct type and the optional fields are missing
|
7772
7941
|
// or of the correct type.
|
7773
|
-
const deserialized = serializer
|
7942
|
+
const deserialized = serializer.deserialize(CloudEvent, o, "");
|
7774
7943
|
const modelEvent = {
|
7775
7944
|
specversion: deserialized.specversion,
|
7776
7945
|
id: deserialized.id,
|
@@ -7839,15 +8008,11 @@ function isSystemEvent(eventType, event) {
|
|
7839
8008
|
|
7840
8009
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
7841
8010
|
enumerable: true,
|
7842
|
-
get: function () {
|
7843
|
-
return coreAuth.AzureKeyCredential;
|
7844
|
-
}
|
8011
|
+
get: function () { return coreAuth.AzureKeyCredential; }
|
7845
8012
|
});
|
7846
8013
|
Object.defineProperty(exports, 'AzureSASCredential', {
|
7847
8014
|
enumerable: true,
|
7848
|
-
get: function () {
|
7849
|
-
return coreAuth.AzureSASCredential;
|
7850
|
-
}
|
8015
|
+
get: function () { return coreAuth.AzureSASCredential; }
|
7851
8016
|
});
|
7852
8017
|
exports.EventGridDeserializer = EventGridDeserializer;
|
7853
8018
|
exports.EventGridPublisherClient = EventGridPublisherClient;
|