@azure/notification-hubs 1.0.0-beta.3 → 1.0.0-beta.4
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 +15 -20
- package/dist/index.cjs +76 -118
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/auth/hmacSha256.browser.js +1 -0
- package/dist-esm/src/auth/hmacSha256.browser.js.map +1 -1
- package/dist-esm/src/auth/sasTokenProvider.js +2 -23
- package/dist-esm/src/auth/sasTokenProvider.js.map +1 -1
- package/dist-esm/src/client/cancelScheduledNotification.js.map +1 -1
- package/dist-esm/src/client/createOrUpdateInstallation.js.map +1 -1
- package/dist-esm/src/client/deleteInstallation.js.map +1 -1
- package/dist-esm/src/client/deleteRegistration.js.map +1 -1
- package/dist-esm/src/client/internal/_client.js +23 -7
- package/dist-esm/src/client/internal/_client.js.map +1 -1
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js.map +1 -1
- package/dist-esm/src/client/internal/_sendNotificationPayload.js +1 -1
- package/dist-esm/src/client/internal/_sendNotificationPayload.js.map +1 -1
- package/dist-esm/src/client/scheduleBroadcastNotification.js.map +1 -1
- package/dist-esm/src/client/scheduleNotification.js.map +1 -1
- package/dist-esm/src/client/sendBroadcastNotification.js.map +1 -1
- package/dist-esm/src/client/sendDirectNotification.js +1 -2
- package/dist-esm/src/client/sendDirectNotification.js.map +1 -1
- package/dist-esm/src/client/sendNotification.js.map +1 -1
- package/dist-esm/src/client/updateInstallation.js.map +1 -1
- package/dist-esm/src/models/installation.js +1 -1
- package/dist-esm/src/models/installation.js.map +1 -1
- package/dist-esm/src/models/notification.js +1 -1
- package/dist-esm/src/models/notification.js.map +1 -1
- package/dist-esm/src/models/notificationBuilder.js +6 -6
- package/dist-esm/src/models/notificationBuilder.js.map +1 -1
- package/dist-esm/src/models/notificationDetails.js.map +1 -1
- package/dist-esm/src/models/registration.js +3 -39
- package/dist-esm/src/models/registration.js.map +1 -1
- package/dist-esm/src/models/response.js.map +1 -1
- package/dist-esm/src/notificationHubsClient.js +1 -2
- package/dist-esm/src/notificationHubsClient.js.map +1 -1
- package/dist-esm/src/serializers/notificationHubJobSerializer.js +3 -0
- package/dist-esm/src/serializers/notificationHubJobSerializer.js.map +1 -1
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js +31 -0
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js.map +1 -0
- package/dist-esm/src/serializers/registrationSerializer.js +3 -28
- package/dist-esm/src/serializers/registrationSerializer.js.map +1 -1
- package/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/package.json +4 -4
- package/types/3.1/notification-hubs.d.ts +60 -77
- package/types/latest/notification-hubs.d.ts +61 -83
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/auth/hmacSha256.browser.d.ts +1 -0
- package/types/src/auth/hmacSha256.browser.d.ts.map +1 -1
- package/types/src/auth/sasTokenProvider.d.ts +28 -8
- package/types/src/auth/sasTokenProvider.d.ts.map +1 -1
- package/types/src/client/cancelScheduledNotification.d.ts +1 -1
- package/types/src/client/cancelScheduledNotification.d.ts.map +1 -1
- package/types/src/client/createOrUpdateInstallation.d.ts +1 -1
- package/types/src/client/createOrUpdateInstallation.d.ts.map +1 -1
- package/types/src/client/deleteInstallation.d.ts +1 -1
- package/types/src/client/deleteInstallation.d.ts.map +1 -1
- package/types/src/client/deleteRegistration.d.ts +1 -1
- package/types/src/client/deleteRegistration.d.ts.map +1 -1
- package/types/src/client/index.d.ts +0 -1
- package/types/src/client/index.d.ts.map +1 -1
- package/types/src/client/internal/_client.d.ts +8 -8
- package/types/src/client/internal/_client.d.ts.map +1 -1
- package/types/src/client/internal/_scheduleNotificationPayload.d.ts +1 -1
- package/types/src/client/internal/_scheduleNotificationPayload.d.ts.map +1 -1
- package/types/src/client/internal/_sendNotificationPayload.d.ts +1 -1
- package/types/src/client/internal/_sendNotificationPayload.d.ts.map +1 -1
- package/types/src/client/scheduleBroadcastNotification.d.ts +1 -1
- package/types/src/client/scheduleBroadcastNotification.d.ts.map +1 -1
- package/types/src/client/scheduleNotification.d.ts +1 -1
- package/types/src/client/scheduleNotification.d.ts.map +1 -1
- package/types/src/client/sendBroadcastNotification.d.ts +1 -1
- package/types/src/client/sendBroadcastNotification.d.ts.map +1 -1
- package/types/src/client/sendDirectNotification.d.ts +4 -5
- package/types/src/client/sendDirectNotification.d.ts.map +1 -1
- package/types/src/client/sendNotification.d.ts +1 -1
- package/types/src/client/sendNotification.d.ts.map +1 -1
- package/types/src/client/updateInstallation.d.ts +1 -1
- package/types/src/client/updateInstallation.d.ts.map +1 -1
- package/types/src/models/installation.d.ts +3 -3
- package/types/src/models/installation.d.ts.map +1 -1
- package/types/src/models/notification.d.ts +3 -3
- package/types/src/models/notification.d.ts.map +1 -1
- package/types/src/models/notificationBuilder.d.ts +4 -4
- package/types/src/models/notificationBuilder.d.ts.map +1 -1
- package/types/src/models/notificationDetails.d.ts +63 -0
- package/types/src/models/notificationDetails.d.ts.map +1 -1
- package/types/src/models/registration.d.ts +6 -59
- package/types/src/models/registration.d.ts.map +1 -1
- package/types/src/models/response.d.ts +0 -26
- package/types/src/models/response.d.ts.map +1 -1
- package/types/src/notificationHubsClient.d.ts +3 -5
- package/types/src/notificationHubsClient.d.ts.map +1 -1
- package/types/src/serializers/notificationHubJobSerializer.d.ts.map +1 -1
- package/types/src/serializers/notificationOutcomeSerializer.d.ts +3 -0
- package/types/src/serializers/notificationOutcomeSerializer.d.ts.map +1 -0
- package/types/src/serializers/registrationSerializer.d.ts +1 -21
- package/types/src/serializers/registrationSerializer.d.ts.map +1 -1
|
@@ -585,11 +585,11 @@ export declare function buildAppleNativeMessage(nativeMessage: AppleNativeMessag
|
|
|
585
585
|
export declare function buildBaiduNativeMessage(nativeMessage: BaiduNativeMessage, additionalProperties?: Record<string, any>): BaiduNotification;
|
|
586
586
|
|
|
587
587
|
/**
|
|
588
|
-
* Creates a
|
|
588
|
+
* Creates a FcmLegacyNotification from a native Firebase payload.
|
|
589
589
|
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
590
|
-
* @returns The
|
|
590
|
+
* @returns The FcmLegacyNotification to send to Notification Hubs.
|
|
591
591
|
*/
|
|
592
|
-
export declare function buildFirebaseLegacyNativeMessage(nativeMessage: FirebaseLegacyNativeMessage):
|
|
592
|
+
export declare function buildFirebaseLegacyNativeMessage(nativeMessage: FirebaseLegacyNativeMessage): FcmLegacyNotification;
|
|
593
593
|
|
|
594
594
|
/**
|
|
595
595
|
* Builds a WindowsNotification from a Windows Badge.
|
|
@@ -710,65 +710,33 @@ export declare function createBrowserRegistrationDescription(description: Omit<B
|
|
|
710
710
|
*/
|
|
711
711
|
export declare function createBrowserTemplateRegistrationDescription(description: Omit<BrowserTemplateRegistrationDescription, "type">): BrowserTemplateRegistrationDescription;
|
|
712
712
|
|
|
713
|
-
/**
|
|
714
|
-
* Creates an FCM registration description.
|
|
715
|
-
* @param description - A partial FCM registration description.
|
|
716
|
-
* @returns A created FCM registration description.
|
|
717
|
-
*/
|
|
718
|
-
export declare function createFcmRegistrationDescription(description: Omit<FcmRegistrationDescription, "type">): FcmRegistrationDescription;
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* Creates an FCM template registration description.
|
|
722
|
-
* @param description - A partial FCM template registration description.
|
|
723
|
-
* @returns A created FCM template registration description.
|
|
724
|
-
*/
|
|
725
|
-
export declare function createFcmTemplateRegistrationDescription(description: Omit<FcmTemplateRegistrationDescription, "type">): FcmTemplateRegistrationDescription;
|
|
726
|
-
|
|
727
713
|
/**
|
|
728
714
|
* Creates a Firebase legacy HTTP based installation.
|
|
729
715
|
* @param installation - A partial installation used to create the Firebase Legacy HTTP installation.
|
|
730
716
|
* @returns The newly created Baidu installation.
|
|
731
717
|
*/
|
|
732
|
-
export declare function
|
|
718
|
+
export declare function createFcmLegacyInstallation(installation: Omit<FcmLegacyInstallation, "platform">): FcmLegacyInstallation;
|
|
733
719
|
|
|
734
720
|
/**
|
|
735
721
|
* Creates a notification to send to Firebase.
|
|
736
722
|
* @param notification - A partial message used to create a message for Firebase.
|
|
737
723
|
* @returns A newly created Firebase.
|
|
738
724
|
*/
|
|
739
|
-
export declare function
|
|
725
|
+
export declare function createFcmLegacyNotification(notification: Omit<FcmLegacyNotification, "platform" | "contentType">): FcmLegacyNotification;
|
|
740
726
|
|
|
741
727
|
/**
|
|
742
|
-
*
|
|
743
|
-
* Creates a GCM registration description.
|
|
728
|
+
* Creates a Firebase Legacy registration description.
|
|
744
729
|
* @param description - A partial GCM registration description.
|
|
745
730
|
* @returns A created GCM registration description.
|
|
746
731
|
*/
|
|
747
|
-
export declare function
|
|
732
|
+
export declare function createFcmLegacyRegistrationDescription(description: Omit<GcmRegistrationDescription, "type">): GcmRegistrationDescription;
|
|
748
733
|
|
|
749
734
|
/**
|
|
750
|
-
* @deprecated Use createFcmTemplateRegistrationDescription instead.
|
|
751
735
|
* Creates a GCM template registration description.
|
|
752
736
|
* @param description - A partial GCM template registration description.
|
|
753
737
|
* @returns A created GCM template registration description.
|
|
754
738
|
*/
|
|
755
|
-
export declare function
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* @deprecated Windows Phone is no longer supported.
|
|
759
|
-
* Creates an MPNS registration description.
|
|
760
|
-
* @param description - A partial MPNS registration description.
|
|
761
|
-
* @returns A created MPNS registration description.
|
|
762
|
-
*/
|
|
763
|
-
export declare function createMpnsRegistrationDescription(description: Omit<MpnsRegistrationDescription, "type">): MpnsRegistrationDescription;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* @deprecated Windows Phone is no longer supported.
|
|
767
|
-
* Creates an MPNS template registration description.
|
|
768
|
-
* @param description - A partial MPNS template registration description.
|
|
769
|
-
* @returns A created MPNS template registration description.
|
|
770
|
-
*/
|
|
771
|
-
export declare function createMpnsTemplateRegistrationDescription(description: Omit<MpnsTemplateRegistrationDescription, "type">): MpnsTemplateRegistrationDescription;
|
|
739
|
+
export declare function createFcmLegacyTemplateRegistrationDescription(description: Omit<GcmTemplateRegistrationDescription, "type">): GcmTemplateRegistrationDescription;
|
|
772
740
|
|
|
773
741
|
/**
|
|
774
742
|
* Creates a notification to send to Firebase.
|
|
@@ -847,27 +815,23 @@ export declare interface EntityOperationOptions extends OperationOptions {
|
|
|
847
815
|
}
|
|
848
816
|
|
|
849
817
|
/**
|
|
850
|
-
* Represents
|
|
818
|
+
* Represents a Firebase Legacy HTTP installation.
|
|
851
819
|
*/
|
|
852
|
-
export declare interface
|
|
820
|
+
export declare interface FcmLegacyInstallation extends DeviceTokenInstallation {
|
|
853
821
|
/**
|
|
854
|
-
*
|
|
855
|
-
*/
|
|
856
|
-
fcmRegistrationId: string;
|
|
857
|
-
/**
|
|
858
|
-
* The type of the registration.
|
|
822
|
+
* The platform for the installation.
|
|
859
823
|
*/
|
|
860
|
-
|
|
824
|
+
platform: "gcm";
|
|
861
825
|
}
|
|
862
826
|
|
|
863
827
|
/**
|
|
864
|
-
* Represents
|
|
828
|
+
* Represents a Firebase legacy HTTP push notification.
|
|
865
829
|
*/
|
|
866
|
-
export declare interface
|
|
830
|
+
export declare interface FcmLegacyNotification extends JsonNotification {
|
|
867
831
|
/**
|
|
868
|
-
* The
|
|
832
|
+
* The platform for the push notification.
|
|
869
833
|
*/
|
|
870
|
-
|
|
834
|
+
platform: "gcm";
|
|
871
835
|
}
|
|
872
836
|
|
|
873
837
|
/**
|
|
@@ -970,16 +934,6 @@ export declare interface FirebaseLegacyAppleNativePayload {
|
|
|
970
934
|
titleLocArgs?: string[];
|
|
971
935
|
}
|
|
972
936
|
|
|
973
|
-
/**
|
|
974
|
-
* Represents a Firebase Legacy HTTP installation.
|
|
975
|
-
*/
|
|
976
|
-
export declare interface FirebaseLegacyInstallation extends DeviceTokenInstallation {
|
|
977
|
-
/**
|
|
978
|
-
* The platform for the installation.
|
|
979
|
-
*/
|
|
980
|
-
platform: "gcm";
|
|
981
|
-
}
|
|
982
|
-
|
|
983
937
|
/**
|
|
984
938
|
* Represents the targets, options, and payload for HTTP JSON messages for the Firebase Legacy HTTP interface.
|
|
985
939
|
*/
|
|
@@ -1036,16 +990,6 @@ export declare interface FirebaseLegacyNativeMessage {
|
|
|
1036
990
|
notification?: FirebaseLegacyAppleNativePayload | FirebaseLegacyAndroidNativePayload | FirebaseLegacyWebNativePayload;
|
|
1037
991
|
}
|
|
1038
992
|
|
|
1039
|
-
/**
|
|
1040
|
-
* Represents a Firebase legacy HTTP push notification.
|
|
1041
|
-
*/
|
|
1042
|
-
export declare interface FirebaseLegacyNotification extends JsonNotification {
|
|
1043
|
-
/**
|
|
1044
|
-
* The platform for the push notification.
|
|
1045
|
-
*/
|
|
1046
|
-
platform: "gcm";
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
993
|
/**
|
|
1050
994
|
* Represents an Web Push native payload for the Firebase Legacy HTTP interface.
|
|
1051
995
|
*/
|
|
@@ -1070,7 +1014,6 @@ export declare interface FirebaseLegacyWebNativePayload {
|
|
|
1070
1014
|
|
|
1071
1015
|
/**
|
|
1072
1016
|
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
1073
|
-
* @deprecated Use FcmRegistrationDescription instead.
|
|
1074
1017
|
*/
|
|
1075
1018
|
export declare interface GcmRegistrationDescription extends RegistrationDescriptionCommon {
|
|
1076
1019
|
/**
|
|
@@ -1084,9 +1027,7 @@ export declare interface GcmRegistrationDescription extends RegistrationDescript
|
|
|
1084
1027
|
}
|
|
1085
1028
|
|
|
1086
1029
|
/**
|
|
1087
|
-
*
|
|
1088
|
-
* Represents Notification Hub template registration description for Google Cloud Messaging.
|
|
1089
|
-
* @deprecated Use FcmTemplateRegistrationDescription instead
|
|
1030
|
+
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
1090
1031
|
*/
|
|
1091
1032
|
export declare interface GcmTemplateRegistrationDescription extends Omit<GcmRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
1092
1033
|
/**
|
|
@@ -1098,7 +1039,7 @@ export declare interface GcmTemplateRegistrationDescription extends Omit<GcmRegi
|
|
|
1098
1039
|
/**
|
|
1099
1040
|
* Represents the types of installations available in Notification Hubs.
|
|
1100
1041
|
*/
|
|
1101
|
-
export declare type Installation = AppleInstallation | AdmInstallation | BaiduInstallation | BrowserInstallation |
|
|
1042
|
+
export declare type Installation = AppleInstallation | AdmInstallation | BaiduInstallation | BrowserInstallation | FcmLegacyInstallation | WindowsInstallation;
|
|
1102
1043
|
|
|
1103
1044
|
/**
|
|
1104
1045
|
* Represents an installation for a device for Notification Hubs.
|
|
@@ -1218,7 +1159,7 @@ export declare interface MpnsTemplateRegistrationDescription extends Omit<MpnsRe
|
|
|
1218
1159
|
/**
|
|
1219
1160
|
* Represents the possible push notification messages types.
|
|
1220
1161
|
*/
|
|
1221
|
-
export declare type Notification = AppleNotification | AdmNotification | BaiduNotification | BrowserNotification |
|
|
1162
|
+
export declare type Notification = AppleNotification | AdmNotification | BaiduNotification | BrowserNotification | FcmLegacyNotification | WindowsNotification | TemplateNotification;
|
|
1222
1163
|
|
|
1223
1164
|
/**
|
|
1224
1165
|
* Represents a notification hub.
|
|
@@ -1432,6 +1373,22 @@ export declare interface NotificationHubsMessageResponse extends NotificationHub
|
|
|
1432
1373
|
* The notification ID from the operation. Note this is only available in Standard SKU and above.
|
|
1433
1374
|
*/
|
|
1434
1375
|
notificationId?: string;
|
|
1376
|
+
/**
|
|
1377
|
+
* The number of devices that successfully received the notification.
|
|
1378
|
+
*/
|
|
1379
|
+
success: number;
|
|
1380
|
+
/**
|
|
1381
|
+
* The number of devices that failed to receive a notification.
|
|
1382
|
+
*/
|
|
1383
|
+
failure: number;
|
|
1384
|
+
/**
|
|
1385
|
+
* The list of notification outcome results for each device registered with the hub, to which this notification was sent.
|
|
1386
|
+
*/
|
|
1387
|
+
results: RegistrationResult[];
|
|
1388
|
+
/**
|
|
1389
|
+
* The state of this notification outcome.
|
|
1390
|
+
*/
|
|
1391
|
+
state: NotificationOutcomeState;
|
|
1435
1392
|
}
|
|
1436
1393
|
|
|
1437
1394
|
/**
|
|
@@ -1546,11 +1503,10 @@ export declare class NotificationHubsServiceClient {
|
|
|
1546
1503
|
* Sends a direct push notification to a device with the given push handle.
|
|
1547
1504
|
* @param pushHandle - The push handle which is the unique identifier for the device.
|
|
1548
1505
|
* @param notification - The notification to send to the device.
|
|
1549
|
-
* @param options -
|
|
1550
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
1506
|
+
* @param options - The options for sending a direct notification.
|
|
1551
1507
|
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1552
1508
|
*/
|
|
1553
|
-
sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?:
|
|
1509
|
+
sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1554
1510
|
/**
|
|
1555
1511
|
* Sends push notifications to devices that match the given tags or tag expression.
|
|
1556
1512
|
* @param tags - The tags used to target the device for push notifications in either an array or tag expression.
|
|
@@ -1660,7 +1616,7 @@ export declare type PushHandle = BrowserPushChannel | string;
|
|
|
1660
1616
|
/**
|
|
1661
1617
|
* Describes the types of registration descriptions.
|
|
1662
1618
|
*/
|
|
1663
|
-
export declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription |
|
|
1619
|
+
export declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription | MpnsRegistrationDescription | MpnsTemplateRegistrationDescription | WindowsRegistrationDescription | WindowsTemplateRegistrationDescription;
|
|
1664
1620
|
|
|
1665
1621
|
/**
|
|
1666
1622
|
* Represents a registration description.
|
|
@@ -1726,10 +1682,32 @@ export declare interface RegistrationQueryResponse {
|
|
|
1726
1682
|
continuationToken?: string;
|
|
1727
1683
|
}
|
|
1728
1684
|
|
|
1685
|
+
/**
|
|
1686
|
+
* Represents the result of the registration.
|
|
1687
|
+
*/
|
|
1688
|
+
export declare interface RegistrationResult {
|
|
1689
|
+
/**
|
|
1690
|
+
* The application platform.
|
|
1691
|
+
*/
|
|
1692
|
+
applicationPlatform: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* The PNS handle.
|
|
1695
|
+
*/
|
|
1696
|
+
pnsHandle: string;
|
|
1697
|
+
/**
|
|
1698
|
+
* The registration ID.
|
|
1699
|
+
*/
|
|
1700
|
+
registrationId: string;
|
|
1701
|
+
/**
|
|
1702
|
+
* The outcome of the registration.
|
|
1703
|
+
*/
|
|
1704
|
+
outcome: string;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1729
1707
|
/**
|
|
1730
1708
|
* Represents the types of registration descriptions.
|
|
1731
1709
|
*/
|
|
1732
|
-
export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "
|
|
1710
|
+
export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "Mpns" | "MpnsTemplate" | "Windows" | "WindowsTemplate";
|
|
1733
1711
|
|
|
1734
1712
|
/**
|
|
1735
1713
|
* Represents the send operation options that can be set.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hmacSha256.browser.d.ts","sourceRoot":"","sources":["../../../src/auth/hmacSha256.browser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"hmacSha256.browser.d.ts","sourceRoot":"","sources":["../../../src/auth/hmacSha256.browser.ts"],"names":[],"mappings":";AAKA,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe7E"}
|
|
@@ -1,4 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Represents a named key credential.
|
|
3
|
+
*/
|
|
4
|
+
export interface NamedKeyCredential {
|
|
5
|
+
/**
|
|
6
|
+
* The Shared Access Signature key name.
|
|
7
|
+
*/
|
|
8
|
+
sharedAccessKeyName: string;
|
|
9
|
+
/**
|
|
10
|
+
* The Shared Access Signature key value.
|
|
11
|
+
*/
|
|
12
|
+
sharedAccessKey: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Represents an access token for a SAS Credential.
|
|
16
|
+
*/
|
|
17
|
+
export interface AccessToken {
|
|
18
|
+
/**
|
|
19
|
+
* The SAS Token.
|
|
20
|
+
*/
|
|
21
|
+
token: string;
|
|
22
|
+
/**
|
|
23
|
+
* The expiration time of the token.
|
|
24
|
+
*/
|
|
25
|
+
expiresOnTimestamp: number;
|
|
26
|
+
}
|
|
2
27
|
/**
|
|
3
28
|
* A SasTokenProvider provides an alternative to TokenCredential for providing an `AccessToken`.
|
|
4
29
|
* @hidden
|
|
@@ -22,12 +47,7 @@ export interface SasTokenProvider {
|
|
|
22
47
|
* @param data - The sharedAccessKeyName/sharedAccessKey pair or the sharedAccessSignature.
|
|
23
48
|
* @hidden
|
|
24
49
|
*/
|
|
25
|
-
export declare function createSasTokenProvider(data:
|
|
26
|
-
sharedAccessKeyName: string;
|
|
27
|
-
sharedAccessKey: string;
|
|
28
|
-
} | {
|
|
29
|
-
sharedAccessSignature: string;
|
|
30
|
-
} | NamedKeyCredential | SASCredential): SasTokenProvider;
|
|
50
|
+
export declare function createSasTokenProvider(data: NamedKeyCredential): SasTokenProvider;
|
|
31
51
|
/**
|
|
32
52
|
* A TokenProvider that generates a Sas token:
|
|
33
53
|
* `SharedAccessSignature sr=<resource>&sig=<signature>&se=<expiry>&skn=<keyname>`
|
|
@@ -47,7 +67,7 @@ export declare class SasTokenProviderImpl implements SasTokenProvider {
|
|
|
47
67
|
* Initializes a new instance of SasTokenProvider
|
|
48
68
|
* @param credential - The source `NamedKeyCredential` or `SASCredential`.
|
|
49
69
|
*/
|
|
50
|
-
constructor(credential:
|
|
70
|
+
constructor(credential: NamedKeyCredential);
|
|
51
71
|
/**
|
|
52
72
|
* Gets the sas token for the specified audience
|
|
53
73
|
* @param audience - The audience for which the token is desired.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sasTokenProvider.d.ts","sourceRoot":"","sources":["../../../src/auth/sasTokenProvider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sasTokenProvider.d.ts","sourceRoot":"","sources":["../../../src/auth/sasTokenProvider.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,kBAAkB,EAAE,IAAI,CAAC;IAEzB;;;;;;OAMG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;CAClD;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,kBAAkB,GAAG,gBAAgB,CAEjF;AAED;;;;;GAKG;AACH,qBAAa,oBAAqB,YAAW,gBAAgB;IAC3D;;OAEG;IACH,IAAI,kBAAkB,IAAI,IAAI,CAE7B;IAED;;OAEG;IACH,OAAO,CAAC,WAAW,CAAqB;IAExC;;;OAGG;gBACS,UAAU,EAAE,kBAAkB;IAI1C;;;OAGG;IACG,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;CAQvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { NotificationHubsResponse } from "../models/
|
|
2
|
+
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
3
3
|
import { OperationOptions } from "@azure/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Cancels the scheduled notification with the given notification ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancelScheduledNotification.d.ts","sourceRoot":"","sources":["../../../src/client/cancelScheduledNotification.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cancelScheduledNotification.d.ts","sourceRoot":"","sources":["../../../src/client/cancelScheduledNotification.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAgBnC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Installation } from "../models/installation.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsResponse } from "../models/
|
|
3
|
+
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
4
4
|
import { OperationOptions } from "@azure/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* Creates or overwrites an installation to a Notification Hub.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/createOrUpdateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOrUpdateInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/createOrUpdateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAmBnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { NotificationHubsResponse } from "../models/
|
|
2
|
+
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
3
3
|
import { OperationOptions } from "@azure/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Deletes an installation from a Notification Hub.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/deleteInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deleteInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/deleteInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAenC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityOperationOptions } from "../models/options.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsResponse } from "../models/
|
|
3
|
+
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
4
4
|
/**
|
|
5
5
|
* Deletes a registration with the given registration ID.
|
|
6
6
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/deleteRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deleteRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/deleteRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAM5E;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,wBAAwB,CAAC,CAkBnC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
1
|
import { HttpHeaders, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
|
|
3
2
|
import { NotificationHubsClientOptions } from "../models/options.js";
|
|
4
3
|
import { SasTokenProvider } from "../auth/sasTokenProvider.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AAOnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAK/D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjE;;OAEG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE3D;;OAEG;IACH,UAAU,IAAI,GAAG,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,6BAAkC,GAC1C,6BAA6B,CAE/B"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
/// <reference types="node" resolution-mode="require"/>
|
|
2
1
|
import { HttpHeaders, HttpMethods, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
|
|
3
|
-
import { NotificationHubsMessageResponse, NotificationHubsResponse } from "../../models/
|
|
2
|
+
import { NotificationHubsMessageResponse, NotificationHubsResponse } from "../../models/notificationDetails.js";
|
|
4
3
|
import { NotificationHubsClientContext } from "../index.js";
|
|
5
4
|
import { OperationOptions } from "@azure/core-client";
|
|
6
|
-
/**
|
|
7
|
-
* @internal
|
|
8
|
-
*/
|
|
9
5
|
export declare function createRequest(endpoint: URL, method: HttpMethods, headers: HttpHeaders, options: OperationOptions): PipelineRequest;
|
|
10
6
|
/**
|
|
11
|
-
*
|
|
7
|
+
* Parses the HTTP response and creates a NotificationHubsResponse with header information from the operation.
|
|
8
|
+
* @param response - The HTTP response used to populate the result.
|
|
9
|
+
* @returns A NotificationHubsResponse with header information from the operation.
|
|
12
10
|
*/
|
|
13
11
|
export declare function parseNotificationResponse(response: PipelineResponse): NotificationHubsResponse;
|
|
14
12
|
/**
|
|
15
|
-
*
|
|
13
|
+
* Parses the HTTP response and creates a NotificationHubsMessageResponse with results from the notification.
|
|
14
|
+
* @param response - The HTTP response used to populate the result.
|
|
15
|
+
* @returns A NotificationHubsMessageResponse with results from the notification.
|
|
16
16
|
*/
|
|
17
|
-
export declare function parseNotificationSendResponse(response: PipelineResponse): NotificationHubsMessageResponse
|
|
17
|
+
export declare function parseNotificationSendResponse(response: PipelineResponse): Promise<NotificationHubsMessageResponse>;
|
|
18
18
|
/**
|
|
19
19
|
* Sends a request through the client context.
|
|
20
20
|
* @param context - The client context to use.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_client.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_client.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,GAAG,EACb,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,gBAAgB,GACxB,eAAe,CASjB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,wBAAwB,CAU9F;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,+BAA+B,CAAC,CAwB1C;AAgBD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,6BAA6B,EACtC,OAAO,EAAE,eAAe,EACxB,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,GACnC,OAAO,CAAC,gBAAgB,CAAC,CAgC3B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Notification } from "../../models/notification.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "../index.js";
|
|
3
|
-
import { NotificationHubsMessageResponse } from "../../models/
|
|
3
|
+
import { NotificationHubsMessageResponse } from "../../models/notificationDetails.js";
|
|
4
4
|
import { OperationOptions } from "@azure/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_scheduleNotificationPayload.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_scheduleNotificationPayload.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"_scheduleNotificationPayload.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_scheduleNotificationPayload.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;GAEG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,IAAI,EACnB,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,EACnC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAqC1C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PushHandle } from "../../models/installation.js";
|
|
2
2
|
import { Notification } from "../../models/notification.js";
|
|
3
3
|
import { NotificationHubsClientContext } from "../index.js";
|
|
4
|
-
import { NotificationHubsMessageResponse } from "../../models/
|
|
4
|
+
import { NotificationHubsMessageResponse } from "../../models/notificationDetails.js";
|
|
5
5
|
import { SendOperationOptions } from "../../models/options.js";
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_sendNotificationPayload.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_sendNotificationPayload.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"_sendNotificationPayload.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_sendNotificationPayload.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,+BAA+B,EAAE,MAAM,qCAAqC,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,MAAM,EAAE,MAAM,EACd,UAAU,CAAC,EAAE,UAAU,EACvB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,EACxB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,+BAA+B,CAAC,CAqD1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Notification } from "../models/notification.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsMessageResponse } from "../models/
|
|
3
|
+
import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
|
|
4
4
|
import { OperationOptions } from "@azure/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* Schedules a push notification to all devices registered on the Notification Hub.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleBroadcastNotification.d.ts","sourceRoot":"","sources":["../../../src/client/scheduleBroadcastNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scheduleBroadcastNotification.d.ts","sourceRoot":"","sources":["../../../src/client/scheduleBroadcastNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,IAAI,EACnB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAE1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Notification } from "../models/notification.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsMessageResponse } from "../models/
|
|
3
|
+
import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
|
|
4
4
|
import { OperationOptions } from "@azure/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* Schedules a push notification to devices that match the given tags or tag expression at the specified time.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduleNotification.d.ts","sourceRoot":"","sources":["../../../src/client/scheduleNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"scheduleNotification.d.ts","sourceRoot":"","sources":["../../../src/client/scheduleNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,IAAI,EACnB,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EACvB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAE1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Notification } from "../models/notification.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsMessageResponse } from "../models/
|
|
3
|
+
import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
|
|
4
4
|
import { SendOperationOptions } from "../models/options.js";
|
|
5
5
|
/**
|
|
6
6
|
* Sends push notifications to all devices on the Notification Hub.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendBroadcastNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendBroadcastNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sendBroadcastNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendBroadcastNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,+BAA+B,CAAC,CAS1C"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { Notification } from "../models/notification.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsMessageResponse } from "../models/
|
|
3
|
+
import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
|
|
4
|
+
import { OperationOptions } from "@azure/core-client";
|
|
4
5
|
import { PushHandle } from "../models/installation.js";
|
|
5
|
-
import { SendOperationOptions } from "../models/options.js";
|
|
6
6
|
/**
|
|
7
7
|
* Sends a direct push notification to a device with the given push handle.
|
|
8
8
|
* @param context - The Notification Hubs client.
|
|
9
9
|
* @param pushHandle - The push handle which is the unique identifier for the device.
|
|
10
10
|
* @param notification - The notification to send to the device.
|
|
11
|
-
* @param options -
|
|
12
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
11
|
+
* @param options - The options for sending a direct notification.
|
|
13
12
|
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
14
13
|
*/
|
|
15
|
-
export declare function sendDirectNotification(context: NotificationHubsClientContext, pushHandle: PushHandle, notification: Notification, options?:
|
|
14
|
+
export declare function sendDirectNotification(context: NotificationHubsClientContext, pushHandle: PushHandle, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
16
15
|
//# sourceMappingURL=sendDirectNotification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendDirectNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendDirectNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sendDirectNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendDirectNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,6BAA6B,EACtC,UAAU,EAAE,UAAU,EACtB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAS1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Notification } from "../models/notification.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsMessageResponse } from "../models/
|
|
3
|
+
import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
|
|
4
4
|
import { SendOperationOptions } from "../models/options.js";
|
|
5
5
|
/**
|
|
6
6
|
* Sends push notifications to devices that match the given tags or tag expression.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,6BAA6B,EACtC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EACvB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,+BAA+B,CAAC,CAS1C"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { JsonPatch } from "../models/installation.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { NotificationHubsResponse } from "../models/
|
|
3
|
+
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
4
4
|
import { OperationOptions } from "@azure/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* Updates an installation using the JSON-Patch standard in RFC6902.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/updateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"updateInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/updateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,SAAS,EAAE,EAChC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAkBnC"}
|