Skip to content

Commit 7c813ab

Browse files
authored
[notification hubs] Update for Beta 7 (Azure#23684)
1 parent 87cfdc6 commit 7c813ab

File tree

84 files changed

+1390
-1647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+1390
-1647
lines changed

sdk/notificationhubs/notification-hubs/CHANGELOG.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,20 @@
44

55
### Features Added
66

7-
### Breaking Changes
7+
- Added a tag expression builder from arrays with `createTagExpression` from the `@azure/notification-hubs/models/tagExpressionBuilder` modular import or regular `@azure/notification-hubs` top level import.
8+
- Added the `listRegistrationsByChannel` to list all registrations for a given channel.
9+
- Moved all API methods to the `/api` subpath export.
10+
- Moved all models to the `/models` subpath export.
11+
- Added notification body creation methods per PNS type, removing the old `build` methods.
12+
- Created `Common` types for `Notification`, `Installation` and `Registrations` to get rid of `Omit<>` usage.
813

9-
### Bugs Fixed
14+
### Breaking Changes
1015

11-
### Other Changes
16+
- `sendNotification` and `scheduleNotification` options no longer accept a string array for `tags`. This has been changed to `tagExpression`. If you need to create a tag expression, use the`createTagExpression`from the`@azure/notification-hubs/models/tagExpressionBuilder`modular import or regular`@azure/notification-hubs` top level import.
17+
- `listRegistrations` no longer accepts a `filter`. This has been replaced with the `listRegistrationsByChannel` which then queries channel specific information.
18+
- Changed `/client` to `/api` for the client context and methods. All methods are now exported at the top level `/api` subpath export for external references instead of per file.
19+
- All interfaces and factory functions are now exported at the top level `/model` subpath export for external references instead of per file.
20+
- `build*NativeNotification` methods removed in favor of `create*NotificationBody` methods which return a string instead of the `Notification`.
1221

1322
## 1.0.0-beta.6 (2022-10-12)
1423

sdk/notificationhubs/notification-hubs/README.md

Lines changed: 84 additions & 77 deletions
Large diffs are not rendered by default.

sdk/notificationhubs/notification-hubs/package.json

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,13 @@
1818
"require": "./dist/index.cjs",
1919
"import": "./dist-esm/src/index.js"
2020
},
21-
"./client": {
22-
"types": "./types/src/client/index.d.ts",
23-
"import": "./dist-esm/src/client/index.js"
21+
"./api": {
22+
"types": "./types/src/api/index.d.ts",
23+
"import": "./dist-esm/src/api/index.js"
2424
},
25-
"./client/*": {
26-
"types": "./types/src/client/*.d.ts",
27-
"import": "./dist-esm/src/client/*.js"
28-
},
29-
"./models/*": {
30-
"types": "./types/src/models/*.d.ts",
31-
"import": "./dist-esm/src/models/*.js"
25+
"./models": {
26+
"types": "./types/src/models/index.d.ts",
27+
"import": "./dist-esm/src/models/index.js"
3228
}
3329
},
3430
"//metadata": {

0 commit comments

Comments
 (0)