@azure/eventgrid-namespaces 1.0.1-alpha.20250107.1 → 1.0.1-alpha.20250109.1
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 +17 -13
- package/package.json +4 -4
package/README.md
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
|
3
3
|
[Azure Event Grid](https://azure.microsoft.com/services/event-grid/) is a cloud-based service that provides reliable event delivery at massive scale.
|
4
4
|
|
5
|
-
Use the client library to Send events to Event Grid Namespaces
|
5
|
+
Use the client library to Send events to Event Grid Namespaces
|
6
6
|
|
7
7
|
Key links:
|
8
8
|
|
9
9
|
- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventgrid/eventgrid-namespaces/)
|
10
10
|
- [Package (NPM)](https://www.npmjs.com/package/@azure/eventgrid-namespaces)
|
11
|
-
- [API reference documentation](https://
|
12
|
-
- [Product documentation](https://
|
11
|
+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/eventgrid-namespaces/)
|
12
|
+
- [Product documentation](https://learn.microsoft.com/azure/event-grid/)
|
13
13
|
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-namespaces/samples)
|
14
14
|
|
15
15
|
## Getting started
|
@@ -69,16 +69,20 @@ az eventgrid topic key list --resource-group <your-resource-group-name> --name <
|
|
69
69
|
Once you have an API key and endpoint, you can use the `AzureKeyCredential` class to authenticate the client as follows:
|
70
70
|
|
71
71
|
```js
|
72
|
-
const {
|
72
|
+
const {
|
73
|
+
EventGridSenderClient,
|
74
|
+
EventGridReceiverClient,
|
75
|
+
AzureKeyCredential,
|
76
|
+
} = require("@azure/eventgrid-namespaces");
|
73
77
|
|
74
78
|
const eventGridSenderClient = new EventGridSenderClient(
|
75
79
|
"<endpoint>",
|
76
|
-
new AzureKeyCredential("<Access Key>")
|
80
|
+
new AzureKeyCredential("<Access Key>"),
|
77
81
|
);
|
78
82
|
|
79
83
|
const eventGridReceiverClient = new EventGridReceiverClient(
|
80
84
|
"<endpoint>",
|
81
|
-
new AzureKeyCredential("<Access Key>")
|
85
|
+
new AzureKeyCredential("<Access Key>"),
|
82
86
|
);
|
83
87
|
```
|
84
88
|
|
@@ -97,14 +101,14 @@ const { DefaultAzureCredential } = require("@azure/identity");
|
|
97
101
|
const eventGridSenderClient = new EventGridSenderClient(
|
98
102
|
"<endpoint>",
|
99
103
|
new DefaultAzureCredential(),
|
100
|
-
"<topicName>"
|
104
|
+
"<topicName>",
|
101
105
|
);
|
102
106
|
|
103
107
|
const eventGridReceiverClient = new EventGridReceiverClient(
|
104
108
|
"<endpoint>",
|
105
109
|
new DefaultAzureCredential(),
|
106
110
|
"<topicName>",
|
107
|
-
"<subscriptionName>"
|
111
|
+
"<subscriptionName>",
|
108
112
|
);
|
109
113
|
```
|
110
114
|
|
@@ -118,7 +122,7 @@ const eventGridReceiverClient = new EventGridReceiverClient(
|
|
118
122
|
const eventGridSenderClient = new EventGridSenderClient(
|
119
123
|
"<endpoint>",
|
120
124
|
new AzureKeyCredential("<API Key>"),
|
121
|
-
"<topicName>"
|
125
|
+
"<topicName>",
|
122
126
|
);
|
123
127
|
```
|
124
128
|
|
@@ -129,7 +133,7 @@ const eventGridReceiverClient = new EventGridReceiverClient(
|
|
129
133
|
"<endpoint>",
|
130
134
|
new AzureKeyCredential("<API Key>"),
|
131
135
|
"<topicName>",
|
132
|
-
"<subscriptionName>"
|
136
|
+
"<subscriptionName>",
|
133
137
|
);
|
134
138
|
```
|
135
139
|
|
@@ -198,10 +202,10 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
198
202
|
|
199
203
|

|
200
204
|
|
201
|
-
[azure_cli]: https://
|
205
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
202
206
|
[azure_sub]: https://azure.microsoft.com/free/
|
203
|
-
[event_grid]: https://
|
207
|
+
[event_grid]: https://learn.microsoft.com/azure/event-grid
|
204
208
|
[azure_portal]: https://portal.azure.com
|
205
209
|
[azure-core-tracing-github]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-tracing
|
206
210
|
[cloud-events-distributed-tracing-spec]: https://github.com/cloudevents/spec/blob/v1.0.1/extensions/distributed-tracing.md
|
207
|
-
[eventgrid-on-kubernetes-using-azure-arc]: https://
|
211
|
+
[eventgrid-on-kubernetes-using-azure-arc]: https://learn.microsoft.com/azure/event-grid/kubernetes/
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"sdk-type": "client",
|
4
4
|
"author": "Microsoft Corporation",
|
5
5
|
"description": "An isomorphic client library for the Azure Event Grid service.",
|
6
|
-
"version": "1.0.1-alpha.
|
6
|
+
"version": "1.0.1-alpha.20250109.1",
|
7
7
|
"keywords": [
|
8
8
|
"node",
|
9
9
|
"azure",
|
@@ -36,9 +36,9 @@
|
|
36
36
|
"azure-event-grid"
|
37
37
|
],
|
38
38
|
"requiredResources": {
|
39
|
-
"Azure Event Grid Custom Topic, configured to use the Event Grid Schema": "https://
|
40
|
-
"Azure Event Grid Custom Topic, configured to use the Cloud Event 1.0 Schema": "https://
|
41
|
-
"Azure Service Bus Queue": "https://
|
39
|
+
"Azure Event Grid Custom Topic, configured to use the Event Grid Schema": "https://learn.microsoft.com/azure/event-grid/scripts/event-grid-cli-create-custom-topic",
|
40
|
+
"Azure Event Grid Custom Topic, configured to use the Cloud Event 1.0 Schema": "https://learn.microsoft.com/azure/event-grid/scripts/event-grid-cli-create-custom-topic",
|
41
|
+
"Azure Service Bus Queue": "https://learn.microsoft.com/azure/service-bus-messaging/service-bus-quickstart-portal"
|
42
42
|
}
|
43
43
|
},
|
44
44
|
"scripts": {
|