Skip to content

[AutoPR @azure/eventgrid-systemevents] Test js generation #14750

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion sdk/eventgrid/ci.mgmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ trigger:
- main
- release/*
- hotfix/*
exclude:
- feature/v4
paths:
include:
- sdk/eventgrid/ci.mgmt.yml
- sdk/eventgrid/arm-eventgrid
- sdk/eventgrid/eventgrid-systemevents
pr:
branches:
include:
Expand All @@ -23,6 +26,7 @@ pr:
include:
- sdk/eventgrid/ci.mgmt.yml
- sdk/eventgrid/arm-eventgrid
- sdk/eventgrid/eventgrid-systemevents
extends:
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
parameters:
Expand All @@ -31,4 +35,6 @@ extends:
- name: azure-arm-eventgrid
safeName: azurearmeventgrid
triggeringPaths:
- /sdk/test-utils/
- /sdk/test-utils/
- name: azure-eventgrid-systemevents
safeName: azureeventgridsystemevents
60 changes: 3 additions & 57 deletions sdk/eventgrid/eventgrid-systemevents/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,7 @@
# Release History

## 1.0.0-beta.7 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 1.0.0-beta.6 (2025-02-20)

### Features Added

- Added `animated` property to `AcsMessageMediaContent`

- Added the following properties to `AcsMessageReceivedEventData`
- `messageId`
- `messageType`
- `reaction`

### Other Changes

- Rename this package to `@azure/eventgrid-systemevents`

## 1.0.0-beta.5 (2025-01-21)

### Other Changes

- Added `internetMessageId` property to `AcsEmailDeliveryReportReceivedEventData`.
- Added `recipientMailServerHostName` property to `AcsEmailDeliveryReportStatusDetails`.
- For `AcsSmsReceivedEventData`:
- Added `segmentCount` property
- Regenerated SDK with latest commit.

## 1.0.0-beta.4 (2024-09-23)

### Other Changes

- A new property `tierToColdSummary` is added to the `StorageLifecyclePolicyCompletedEventData` interface.

## 1.0.0-beta.3 (2024-08-20)

### Other Changes

- A new field `accessTier` is added to the `StorageBlobCreatedEventData` object.
- Two new fields `accessTier` & `previousTier` are added to the StorageBlobTierChangedEventData object.

## 1.0.0-beta.2 (2024-07-16)

### Other Changes

- Regenerated SDK with latest commit. Refer [#30399](https://github.com/Azure/azure-sdk-for-js/pull/30399) for further details.

## 1.0.0-beta.1 (2024-06-11)

## 1.0.0 (2025-04-08)

### Features Added

- Released System Events related to Eventgrid service.
The package of @azure/eventgrid-systemevents is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
2 changes: 1 addition & 1 deletion sdk/eventgrid/eventgrid-systemevents/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
53 changes: 21 additions & 32 deletions sdk/eventgrid/eventgrid-systemevents/README.md
Original file line number Diff line number Diff line change
@@ -1,82 +1,71 @@
# Azure Event Grid System Events client library for JavaScript
# Azure SystemEvents client library for JavaScript

Azure Event Grid system events are published by Azure services to system topics. The models in this package map to events sent by various Azure services.
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure SystemEvents client.

Azure Messaging EventGrid SystemEvents

Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/eventgrid/eventgrid-systemevents/)
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/eventgrid/eventgrid-systemevents)
- [Package (NPM)](https://www.npmjs.com/package/@azure/eventgrid-systemevents)
<!-- - [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/eventgrid-systemevents/) -->
- [Product documentation](https://learn.microsoft.com/azure/event-grid/)
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/eventgrid-systemevents?view=azure-node-preview)

## Getting started

### Currently supported environments

- [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule)
- Latest versions of Safari, Chrome, Edge, and Firefox.
- Latest versions of Safari, Chrome, Edge and Firefox.

See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.

### Prerequisites

- An [Azure subscription][azure_sub].
- An existing [Event Grid][event_grid] Topic or Domain. If you need to create the resource, you can use the [Azure Portal][azure_portal] or [Azure CLI][azure_cli].

If you use the Azure CLI, replace `<your-resource-group-name>` and `<your-resource-name>` with your own unique names:
### Install the `@azure/eventgrid-systemevents` package

#### Create an Event Grid Topic
Install the Azure SystemEvents client library for JavaScript with `npm`:

```bash
az eventgrid topic create --location <location> --resource-group <your-resource-group-name> --name <your-resource-name>
npm install @azure/eventgrid-systemevents
```

#### Create an Event Grid Domain

```bash
az eventgrid domain create --location <location> --resource-group <your-resource-group-name> --name <your-resource-name>
```

### Install the `@azure/eventgrid-systemevents` package

Install the Azure Event Grid System Events client library for JavaScript with `npm`:

```bash
npm install @azure/eventgrid-systemevents
```
### JavaScript Bundle
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).

## Key concepts

This package provides a list of System Events that could be used to publish events to EventGrid.
### SystemEventsClient

`SystemEventsClient` is the primary interface for developers using the Azure SystemEvents client library. Explore the methods on this client object to understand the different features of the Azure SystemEvents service that you can access.

## Troubleshooting

### Logging

Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:

```ts snippet:SetLogLevel
```ts
import { setLogLevel } from "@azure/logger";

setLogLevel("info");
```

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).
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).


## Contributing

If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.

## Related projects

- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)


- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)

[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[event_grid]: https://learn.microsoft.com/azure/event-grid
[azure_portal]: https://portal.azure.com
[azure-core-tracing-github]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/core-tracing
[cloud-events-distributed-tracing-spec]: https://github.com/cloudevents/spec/blob/v1.0.1/extensions/distributed-tracing.md
[eventgrid-on-kubernetes-using-azure-arc]: https://learn.microsoft.com/azure/event-grid/kubernetes/
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
14 changes: 14 additions & 0 deletions sdk/eventgrid/eventgrid-systemevents/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
},
]);
Loading