@azure/notification-hubs 1.0.3-alpha.20231030.1 → 1.0.3-alpha.20231108.3
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/dist/index.cjs +6 -4
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/api/beginSubmitNotificationHubJob.js.map +1 -1
- package/dist-esm/src/api/cancelScheduledNotification.js.map +1 -1
- package/dist-esm/src/api/clientContext.js.map +1 -1
- package/dist-esm/src/api/createOrUpdateInstallation.js.map +1 -1
- package/dist-esm/src/api/createOrUpdateRegistration.js.map +1 -1
- package/dist-esm/src/api/createRegistration.js.map +1 -1
- package/dist-esm/src/api/createRegistrationId.js.map +1 -1
- package/dist-esm/src/api/deleteInstallation.js.map +1 -1
- package/dist-esm/src/api/deleteRegistration.js.map +1 -1
- package/dist-esm/src/api/getFeedbackContainerUrl.js.map +1 -1
- package/dist-esm/src/api/getInstallation.js.map +1 -1
- package/dist-esm/src/api/getNotificationHubJob.js.map +1 -1
- package/dist-esm/src/api/getNotificationOutcomeDetails.js.map +1 -1
- package/dist-esm/src/api/getRegistration.js.map +1 -1
- package/dist-esm/src/api/internal/_client.js.map +1 -1
- package/dist-esm/src/api/internal/_createOrUpdateRegistrationDescription.js.map +1 -1
- package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -1
- package/dist-esm/src/api/listNotificationHubJobs.js.map +1 -1
- package/dist-esm/src/api/listRegistrations.js.map +1 -1
- package/dist-esm/src/api/listRegistrationsByChannel.js.map +1 -1
- package/dist-esm/src/api/listRegistrationsByTag.js.map +1 -1
- package/dist-esm/src/api/scheduleNotification.js.map +1 -1
- package/dist-esm/src/api/sendNotification.js.map +1 -1
- package/dist-esm/src/api/submitNotificationHubJob.js.map +1 -1
- package/dist-esm/src/api/updateInstallation.js.map +1 -1
- package/dist-esm/src/api/updateRegistration.js.map +1 -1
- package/dist-esm/src/auth/connectionStringUtils.js.map +1 -1
- package/dist-esm/src/auth/hmacSha256.browser.js.map +1 -1
- package/dist-esm/src/auth/sasTokenCredential.js.map +1 -1
- package/dist-esm/src/models/installation.js.map +1 -1
- package/dist-esm/src/models/notification.js +4 -4
- package/dist-esm/src/models/notification.js.map +1 -1
- package/dist-esm/src/models/notificationBodyBuilder.js.map +1 -1
- package/dist-esm/src/models/registration.js.map +1 -1
- package/dist-esm/src/notificationHubsClient.js.map +1 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js.map +1 -1
- package/dist-esm/src/serializers/registrationSerializer.js.map +1 -1
- package/dist-esm/src/utils/notificationUtils.js.map +1 -1
- package/dist-esm/src/utils/optionUtils.js.map +1 -1
- package/dist-esm/src/utils/utils.js.map +1 -1
- package/dist-esm/src/utils/xmlUtils.js.map +1 -1
- package/package.json +13 -15
- package/types/3.1/notification-hubs.d.ts +1 -1
- package/types/latest/notification-hubs.d.ts +1 -1
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/models/notification.d.ts +1 -1
- package/types/src/models/notification.d.ts.map +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
4
6
|
var crypto = require('crypto');
|
|
5
7
|
var coreClient = require('@azure-rest/core-client');
|
|
@@ -2272,7 +2274,7 @@ function createWindowsNotification(notification) {
|
|
|
2272
2274
|
* @returns A newly created WNS badge.
|
|
2273
2275
|
*/
|
|
2274
2276
|
function createWindowsBadgeNotification(notification) {
|
|
2275
|
-
const result = Object.assign(Object.assign({}, notification), { platform: "
|
|
2277
|
+
const result = Object.assign(Object.assign({}, notification), { platform: "windows", contentType: XML_CONTENT_TYPE });
|
|
2276
2278
|
if (!result.headers) {
|
|
2277
2279
|
result.headers = {};
|
|
2278
2280
|
}
|
|
@@ -2287,7 +2289,7 @@ function createWindowsBadgeNotification(notification) {
|
|
|
2287
2289
|
* @returns A newly created WNS tile.
|
|
2288
2290
|
*/
|
|
2289
2291
|
function createWindowsTileNotification(notification) {
|
|
2290
|
-
const result = Object.assign(Object.assign({}, notification), { platform: "
|
|
2292
|
+
const result = Object.assign(Object.assign({}, notification), { platform: "windows", contentType: XML_CONTENT_TYPE });
|
|
2291
2293
|
if (!result.headers) {
|
|
2292
2294
|
result.headers = {};
|
|
2293
2295
|
}
|
|
@@ -2302,7 +2304,7 @@ function createWindowsTileNotification(notification) {
|
|
|
2302
2304
|
* @returns A newly created WNS toast.
|
|
2303
2305
|
*/
|
|
2304
2306
|
function createWindowsToastNotification(notification) {
|
|
2305
|
-
const result = Object.assign(Object.assign({}, notification), { platform: "
|
|
2307
|
+
const result = Object.assign(Object.assign({}, notification), { platform: "windows", contentType: XML_CONTENT_TYPE });
|
|
2306
2308
|
if (!result.headers) {
|
|
2307
2309
|
result.headers = {};
|
|
2308
2310
|
}
|
|
@@ -2317,7 +2319,7 @@ function createWindowsToastNotification(notification) {
|
|
|
2317
2319
|
* @returns A newly created WNS message using XML.
|
|
2318
2320
|
*/
|
|
2319
2321
|
function createWindowsRawNotification(notification) {
|
|
2320
|
-
const result = Object.assign(Object.assign({}, notification), { platform: "
|
|
2322
|
+
const result = Object.assign(Object.assign({}, notification), { platform: "windows", contentType: STREAM_CONTENT_TYPE });
|
|
2321
2323
|
if (!result.headers) {
|
|
2322
2324
|
result.headers = {};
|
|
2323
2325
|
}
|