@azure/notification-hubs 1.0.0-beta.1 → 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.js → index.cjs} +245 -146
- package/dist/index.cjs.map +1 -0
- package/dist-esm/src/{utils → auth}/connectionStringUtils.js +37 -1
- package/dist-esm/src/auth/connectionStringUtils.js.map +1 -0
- package/dist-esm/src/auth/hmacSha256.browser.js +12 -0
- package/dist-esm/src/auth/hmacSha256.browser.js.map +1 -0
- package/dist-esm/src/auth/hmacSha256.js +8 -0
- package/dist-esm/src/auth/hmacSha256.js.map +1 -0
- package/dist-esm/src/auth/sasTokenProvider.js +58 -0
- package/dist-esm/src/auth/sasTokenProvider.js.map +1 -0
- package/dist-esm/src/client/cancelScheduledNotification.js +3 -2
- package/dist-esm/src/client/cancelScheduledNotification.js.map +1 -1
- package/dist-esm/src/client/createOrUpdateInstallation.js +3 -2
- package/dist-esm/src/client/createOrUpdateInstallation.js.map +1 -1
- package/dist-esm/src/client/createOrUpdateRegistration.js +2 -1
- package/dist-esm/src/client/createOrUpdateRegistration.js.map +1 -1
- package/dist-esm/src/client/createRegistration.js +2 -1
- package/dist-esm/src/client/createRegistration.js.map +1 -1
- package/dist-esm/src/client/createRegistrationId.js +3 -2
- package/dist-esm/src/client/createRegistrationId.js.map +1 -1
- package/dist-esm/src/client/deleteInstallation.js +3 -2
- package/dist-esm/src/client/deleteInstallation.js.map +1 -1
- package/dist-esm/src/client/deleteRegistration.js +3 -2
- package/dist-esm/src/client/deleteRegistration.js.map +1 -1
- package/dist-esm/src/client/getFeedbackContainerUrl.js +3 -2
- package/dist-esm/src/client/getFeedbackContainerUrl.js.map +1 -1
- package/dist-esm/src/client/getInstallation.js +3 -2
- package/dist-esm/src/client/getInstallation.js.map +1 -1
- package/dist-esm/src/client/getNotificationHubJob.js +3 -2
- package/dist-esm/src/client/getNotificationHubJob.js.map +1 -1
- package/dist-esm/src/client/getNotificationOutcomeDetails.js +3 -2
- package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +1 -1
- package/dist-esm/src/client/getRegistration.js +3 -2
- package/dist-esm/src/client/getRegistration.js.map +1 -1
- package/dist-esm/src/client/index.js +7 -3
- package/dist-esm/src/client/index.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/_createOrUpdateRegistrationDescription.js +1 -1
- package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +1 -1
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js +3 -2
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js.map +1 -1
- package/dist-esm/src/client/internal/_sendNotificationPayload.js +2 -2
- package/dist-esm/src/client/internal/_sendNotificationPayload.js.map +1 -1
- package/dist-esm/src/client/listNotificationHubJobs.js +3 -2
- package/dist-esm/src/client/listNotificationHubJobs.js.map +1 -1
- package/dist-esm/src/client/listRegistrations.js +3 -2
- package/dist-esm/src/client/listRegistrations.js.map +1 -1
- package/dist-esm/src/client/listRegistrationsByTag.js +3 -2
- package/dist-esm/src/client/listRegistrationsByTag.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/submitNotificationHubJob.js +3 -2
- package/dist-esm/src/client/submitNotificationHubJob.js.map +1 -1
- package/dist-esm/src/client/updateInstallation.js +3 -2
- package/dist-esm/src/client/updateInstallation.js.map +1 -1
- package/dist-esm/src/client/updateRegistration.js +2 -1
- package/dist-esm/src/client/updateRegistration.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 -0
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/retryPolicy.js +2 -2
- package/dist-esm/src/utils/retryPolicy.js.map +1 -1
- package/dist-esm/src/utils/tracing.js +2 -1
- package/dist-esm/src/utils/tracing.js.map +1 -1
- package/package.json +18 -13
- 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/{utils → auth}/connectionStringUtils.d.ts +7 -1
- package/types/src/auth/connectionStringUtils.d.ts.map +1 -0
- package/types/src/auth/hmacSha256.browser.d.ts +3 -0
- package/types/src/auth/hmacSha256.browser.d.ts.map +1 -0
- package/types/src/auth/hmacSha256.d.ts +2 -0
- package/types/src/auth/hmacSha256.d.ts.map +1 -0
- package/types/src/auth/sasTokenProvider.d.ts +77 -0
- package/types/src/auth/sasTokenProvider.d.ts.map +1 -0
- 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/createOrUpdateRegistration.d.ts.map +1 -1
- package/types/src/client/createRegistration.d.ts.map +1 -1
- package/types/src/client/createRegistrationId.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/getFeedbackContainerUrl.d.ts.map +1 -1
- package/types/src/client/getInstallation.d.ts.map +1 -1
- package/types/src/client/getNotificationHubJob.d.ts.map +1 -1
- package/types/src/client/getNotificationOutcomeDetails.d.ts.map +1 -1
- package/types/src/client/getRegistration.d.ts.map +1 -1
- package/types/src/client/index.d.ts +2 -3
- 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/listNotificationHubJobs.d.ts.map +1 -1
- package/types/src/client/listRegistrations.d.ts.map +1 -1
- package/types/src/client/listRegistrationsByTag.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/submitNotificationHubJob.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/client/updateRegistration.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
- package/types/src/utils/constants.d.ts +1 -0
- package/types/src/utils/constants.d.ts.map +1 -1
- package/types/src/utils/tracing.d.ts.map +1 -1
- package/dist/index.js.map +0 -1
- package/dist-esm/src/utils/connectionStringUtils.js.map +0 -1
- package/types/src/utils/connectionStringUtils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,35 +1,40 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/notification-hubs",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.4",
|
|
4
4
|
"description": "Azure Notification Hubs SDK for JavaScript",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist-esm/src/index.js",
|
|
8
|
-
"browser": {
|
|
8
|
+
"browser": {
|
|
9
|
+
"./dist-esm/src/auth/hmacSha256.js": "./dist-esm/src/auth/hmacSha256.browser.js"
|
|
10
|
+
},
|
|
11
|
+
"react-native": {
|
|
12
|
+
"./dist/index.js": "./dist-esm/src/index.js"
|
|
13
|
+
},
|
|
9
14
|
"type": "module",
|
|
10
15
|
"exports": {
|
|
11
16
|
".": {
|
|
12
|
-
"types": "./types/src/index.
|
|
13
|
-
"require": "./dist/index.
|
|
17
|
+
"types": "./types/src/index.d.ts",
|
|
18
|
+
"require": "./dist/index.cjs",
|
|
14
19
|
"import": "./dist-esm/src/index.js"
|
|
15
20
|
},
|
|
16
21
|
"./client": {
|
|
17
|
-
"types": "./types/src/client/index.
|
|
22
|
+
"types": "./types/src/client/index.d.ts",
|
|
18
23
|
"import": "./dist-esm/src/client/index.js"
|
|
19
24
|
},
|
|
20
25
|
"./client/*": {
|
|
21
|
-
"types": "./types/src/client/*.
|
|
26
|
+
"types": "./types/src/client/*.d.ts",
|
|
22
27
|
"import": "./dist-esm/src/client/*.js"
|
|
23
28
|
},
|
|
24
29
|
"./models/*": {
|
|
25
|
-
"types": "./types/src/models/*.
|
|
30
|
+
"types": "./types/src/models/*.d.ts",
|
|
26
31
|
"import": "./dist-esm/src/models/*.js"
|
|
27
32
|
}
|
|
28
33
|
},
|
|
29
34
|
"//metadata": {
|
|
30
35
|
"constantPaths": [
|
|
31
36
|
{
|
|
32
|
-
"path": "src/constants.ts",
|
|
37
|
+
"path": "src/utils/constants.ts",
|
|
33
38
|
"prefix": "SDK_VERSION"
|
|
34
39
|
}
|
|
35
40
|
]
|
|
@@ -47,7 +52,8 @@
|
|
|
47
52
|
"build:samples": "echo Obsolete",
|
|
48
53
|
"build:test": "npm run clean && tsc -p . && dev-tool run bundle",
|
|
49
54
|
"build:types": "downlevel-dts types/latest/ types/3.1/",
|
|
50
|
-
"build": "
|
|
55
|
+
"build:output": "node scripts/renameOutput.mjs",
|
|
56
|
+
"build": "npm run build:test && api-extractor run --local && npm run build:types && npm run build:output",
|
|
51
57
|
"check-format": "prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
|
|
52
58
|
"clean": "rimraf dist dist-* temp types *.tgz *.log",
|
|
53
59
|
"execute:samples": "dev-tool samples run samples-dev",
|
|
@@ -118,25 +124,24 @@
|
|
|
118
124
|
"karma-junit-reporter": "^2.0.1",
|
|
119
125
|
"karma-mocha": "^2.0.1",
|
|
120
126
|
"karma-mocha-reporter": "^2.2.5",
|
|
127
|
+
"karma-sourcemap-loader": "^0.3.8",
|
|
121
128
|
"mocha": "^10.0.0",
|
|
122
129
|
"mocha-junit-reporter": "^2.0.2",
|
|
123
130
|
"nyc": "^15.1.0",
|
|
124
131
|
"prettier": "^2.6.2",
|
|
125
132
|
"rimraf": "^3.0.2",
|
|
126
133
|
"ts-node": "^10.8.1",
|
|
127
|
-
"typescript": "^4.
|
|
134
|
+
"typescript": "^4.8.3",
|
|
128
135
|
"util": "^0.12.4",
|
|
129
136
|
"uuid": "^8.3.2"
|
|
130
137
|
},
|
|
131
138
|
"dependencies": {
|
|
132
139
|
"@azure/abort-controller": "^1.1.0",
|
|
133
|
-
"@azure/core-amqp": "^3.1.0",
|
|
134
|
-
"@azure/core-auth": "^1.4.0",
|
|
135
140
|
"@azure/core-client": "^1.6.1",
|
|
136
141
|
"@azure/core-paging": "^1.3.0",
|
|
137
142
|
"@azure/core-rest-pipeline": "^1.8.1",
|
|
138
143
|
"@azure/core-tracing": "^1.0.1",
|
|
139
|
-
"@azure/core-util": "^1.
|
|
144
|
+
"@azure/core-util": "^1.1.0",
|
|
140
145
|
"@azure/core-xml": "^1.3.0",
|
|
141
146
|
"@azure/logger": "^1.0.3",
|
|
142
147
|
"tslib": "^2.4.0"
|
|
@@ -556,11 +556,11 @@ export declare function buildAppleNativeMessage(nativeMessage: AppleNativeMessag
|
|
|
556
556
|
*/
|
|
557
557
|
export declare function buildBaiduNativeMessage(nativeMessage: BaiduNativeMessage, additionalProperties?: Record<string, any>): BaiduNotification;
|
|
558
558
|
/**
|
|
559
|
-
* Creates a
|
|
559
|
+
* Creates a FcmLegacyNotification from a native Firebase payload.
|
|
560
560
|
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
561
|
-
* @returns The
|
|
561
|
+
* @returns The FcmLegacyNotification to send to Notification Hubs.
|
|
562
562
|
*/
|
|
563
|
-
export declare function buildFirebaseLegacyNativeMessage(nativeMessage: FirebaseLegacyNativeMessage):
|
|
563
|
+
export declare function buildFirebaseLegacyNativeMessage(nativeMessage: FirebaseLegacyNativeMessage): FcmLegacyNotification;
|
|
564
564
|
/**
|
|
565
565
|
* Builds a WindowsNotification from a Windows Badge.
|
|
566
566
|
* @param nativeMessage - The Windows Badge Message to build.
|
|
@@ -663,58 +663,30 @@ export declare function createBrowserRegistrationDescription(description: Pick<B
|
|
|
663
663
|
* @returns A created Web Push template registration description.
|
|
664
664
|
*/
|
|
665
665
|
export declare function createBrowserTemplateRegistrationDescription(description: Pick<BrowserTemplateRegistrationDescription, Exclude<keyof BrowserTemplateRegistrationDescription, "type">>): BrowserTemplateRegistrationDescription;
|
|
666
|
-
/**
|
|
667
|
-
* Creates an FCM registration description.
|
|
668
|
-
* @param description - A partial FCM registration description.
|
|
669
|
-
* @returns A created FCM registration description.
|
|
670
|
-
*/
|
|
671
|
-
export declare function createFcmRegistrationDescription(description: Pick<FcmRegistrationDescription, Exclude<keyof FcmRegistrationDescription, "type">>): FcmRegistrationDescription;
|
|
672
|
-
/**
|
|
673
|
-
* Creates an FCM template registration description.
|
|
674
|
-
* @param description - A partial FCM template registration description.
|
|
675
|
-
* @returns A created FCM template registration description.
|
|
676
|
-
*/
|
|
677
|
-
export declare function createFcmTemplateRegistrationDescription(description: Pick<FcmTemplateRegistrationDescription, Exclude<keyof FcmTemplateRegistrationDescription, "type">>): FcmTemplateRegistrationDescription;
|
|
678
666
|
/**
|
|
679
667
|
* Creates a Firebase legacy HTTP based installation.
|
|
680
668
|
* @param installation - A partial installation used to create the Firebase Legacy HTTP installation.
|
|
681
669
|
* @returns The newly created Baidu installation.
|
|
682
670
|
*/
|
|
683
|
-
export declare function
|
|
671
|
+
export declare function createFcmLegacyInstallation(installation: Pick<FcmLegacyInstallation, Exclude<keyof FcmLegacyInstallation, "platform">>): FcmLegacyInstallation;
|
|
684
672
|
/**
|
|
685
673
|
* Creates a notification to send to Firebase.
|
|
686
674
|
* @param notification - A partial message used to create a message for Firebase.
|
|
687
675
|
* @returns A newly created Firebase.
|
|
688
676
|
*/
|
|
689
|
-
export declare function
|
|
677
|
+
export declare function createFcmLegacyNotification(notification: Pick<FcmLegacyNotification, Exclude<keyof FcmLegacyNotification, "platform" | "contentType">>): FcmLegacyNotification;
|
|
690
678
|
/**
|
|
691
|
-
*
|
|
692
|
-
* Creates a GCM registration description.
|
|
679
|
+
* Creates a Firebase Legacy registration description.
|
|
693
680
|
* @param description - A partial GCM registration description.
|
|
694
681
|
* @returns A created GCM registration description.
|
|
695
682
|
*/
|
|
696
|
-
export declare function
|
|
683
|
+
export declare function createFcmLegacyRegistrationDescription(description: Pick<GcmRegistrationDescription, Exclude<keyof GcmRegistrationDescription, "type">>): GcmRegistrationDescription;
|
|
697
684
|
/**
|
|
698
|
-
* @deprecated Use createFcmTemplateRegistrationDescription instead.
|
|
699
685
|
* Creates a GCM template registration description.
|
|
700
686
|
* @param description - A partial GCM template registration description.
|
|
701
687
|
* @returns A created GCM template registration description.
|
|
702
688
|
*/
|
|
703
|
-
export declare function
|
|
704
|
-
/**
|
|
705
|
-
* @deprecated Windows Phone is no longer supported.
|
|
706
|
-
* Creates an MPNS registration description.
|
|
707
|
-
* @param description - A partial MPNS registration description.
|
|
708
|
-
* @returns A created MPNS registration description.
|
|
709
|
-
*/
|
|
710
|
-
export declare function createMpnsRegistrationDescription(description: Pick<MpnsRegistrationDescription, Exclude<keyof MpnsRegistrationDescription, "type">>): MpnsRegistrationDescription;
|
|
711
|
-
/**
|
|
712
|
-
* @deprecated Windows Phone is no longer supported.
|
|
713
|
-
* Creates an MPNS template registration description.
|
|
714
|
-
* @param description - A partial MPNS template registration description.
|
|
715
|
-
* @returns A created MPNS template registration description.
|
|
716
|
-
*/
|
|
717
|
-
export declare function createMpnsTemplateRegistrationDescription(description: Pick<MpnsTemplateRegistrationDescription, Exclude<keyof MpnsTemplateRegistrationDescription, "type">>): MpnsTemplateRegistrationDescription;
|
|
689
|
+
export declare function createFcmLegacyTemplateRegistrationDescription(description: Pick<GcmTemplateRegistrationDescription, Exclude<keyof GcmTemplateRegistrationDescription, "type">>): GcmTemplateRegistrationDescription;
|
|
718
690
|
/**
|
|
719
691
|
* Creates a notification to send to Firebase.
|
|
720
692
|
* @param notification - A partial message used to create a message for Firebase.
|
|
@@ -782,26 +754,22 @@ export declare interface EntityOperationOptions extends OperationOptions {
|
|
|
782
754
|
etag?: string;
|
|
783
755
|
}
|
|
784
756
|
/**
|
|
785
|
-
* Represents
|
|
757
|
+
* Represents a Firebase Legacy HTTP installation.
|
|
786
758
|
*/
|
|
787
|
-
export declare interface
|
|
759
|
+
export declare interface FcmLegacyInstallation extends DeviceTokenInstallation {
|
|
788
760
|
/**
|
|
789
|
-
*
|
|
790
|
-
*/
|
|
791
|
-
fcmRegistrationId: string;
|
|
792
|
-
/**
|
|
793
|
-
* The type of the registration.
|
|
761
|
+
* The platform for the installation.
|
|
794
762
|
*/
|
|
795
|
-
|
|
763
|
+
platform: "gcm";
|
|
796
764
|
}
|
|
797
765
|
/**
|
|
798
|
-
* Represents
|
|
766
|
+
* Represents a Firebase legacy HTTP push notification.
|
|
799
767
|
*/
|
|
800
|
-
export declare interface
|
|
768
|
+
export declare interface FcmLegacyNotification extends JsonNotification {
|
|
801
769
|
/**
|
|
802
|
-
* The
|
|
770
|
+
* The platform for the push notification.
|
|
803
771
|
*/
|
|
804
|
-
|
|
772
|
+
platform: "gcm";
|
|
805
773
|
}
|
|
806
774
|
/**
|
|
807
775
|
* Represents an Android native payload for the Firebase Legacy HTTP interface.
|
|
@@ -901,15 +869,6 @@ export declare interface FirebaseLegacyAppleNativePayload {
|
|
|
901
869
|
*/
|
|
902
870
|
titleLocArgs?: string[];
|
|
903
871
|
}
|
|
904
|
-
/**
|
|
905
|
-
* Represents a Firebase Legacy HTTP installation.
|
|
906
|
-
*/
|
|
907
|
-
export declare interface FirebaseLegacyInstallation extends DeviceTokenInstallation {
|
|
908
|
-
/**
|
|
909
|
-
* The platform for the installation.
|
|
910
|
-
*/
|
|
911
|
-
platform: "gcm";
|
|
912
|
-
}
|
|
913
872
|
/**
|
|
914
873
|
* Represents the targets, options, and payload for HTTP JSON messages for the Firebase Legacy HTTP interface.
|
|
915
874
|
*/
|
|
@@ -965,15 +924,6 @@ export declare interface FirebaseLegacyNativeMessage {
|
|
|
965
924
|
*/
|
|
966
925
|
notification?: FirebaseLegacyAppleNativePayload | FirebaseLegacyAndroidNativePayload | FirebaseLegacyWebNativePayload;
|
|
967
926
|
}
|
|
968
|
-
/**
|
|
969
|
-
* Represents a Firebase legacy HTTP push notification.
|
|
970
|
-
*/
|
|
971
|
-
export declare interface FirebaseLegacyNotification extends JsonNotification {
|
|
972
|
-
/**
|
|
973
|
-
* The platform for the push notification.
|
|
974
|
-
*/
|
|
975
|
-
platform: "gcm";
|
|
976
|
-
}
|
|
977
927
|
/**
|
|
978
928
|
* Represents an Web Push native payload for the Firebase Legacy HTTP interface.
|
|
979
929
|
*/
|
|
@@ -997,7 +947,6 @@ export declare interface FirebaseLegacyWebNativePayload {
|
|
|
997
947
|
}
|
|
998
948
|
/**
|
|
999
949
|
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
1000
|
-
* @deprecated Use FcmRegistrationDescription instead.
|
|
1001
950
|
*/
|
|
1002
951
|
export declare interface GcmRegistrationDescription extends RegistrationDescriptionCommon {
|
|
1003
952
|
/**
|
|
@@ -1010,9 +959,7 @@ export declare interface GcmRegistrationDescription extends RegistrationDescript
|
|
|
1010
959
|
type: "Gcm";
|
|
1011
960
|
}
|
|
1012
961
|
/**
|
|
1013
|
-
*
|
|
1014
|
-
* Represents Notification Hub template registration description for Google Cloud Messaging.
|
|
1015
|
-
* @deprecated Use FcmTemplateRegistrationDescription instead
|
|
962
|
+
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
1016
963
|
*/
|
|
1017
964
|
export declare interface GcmTemplateRegistrationDescription extends Pick<GcmRegistrationDescription, Exclude<keyof GcmRegistrationDescription, "type">>, TemplateRegistrationDescription {
|
|
1018
965
|
/**
|
|
@@ -1023,7 +970,7 @@ export declare interface GcmTemplateRegistrationDescription extends Pick<GcmRegi
|
|
|
1023
970
|
/**
|
|
1024
971
|
* Represents the types of installations available in Notification Hubs.
|
|
1025
972
|
*/
|
|
1026
|
-
export declare type Installation = AppleInstallation | AdmInstallation | BaiduInstallation | BrowserInstallation |
|
|
973
|
+
export declare type Installation = AppleInstallation | AdmInstallation | BaiduInstallation | BrowserInstallation | FcmLegacyInstallation | WindowsInstallation;
|
|
1027
974
|
/**
|
|
1028
975
|
* Represents an installation for a device for Notification Hubs.
|
|
1029
976
|
*/
|
|
@@ -1135,7 +1082,7 @@ export declare interface MpnsTemplateRegistrationDescription extends Pick<MpnsRe
|
|
|
1135
1082
|
/**
|
|
1136
1083
|
* Represents the possible push notification messages types.
|
|
1137
1084
|
*/
|
|
1138
|
-
export declare type Notification = AppleNotification | AdmNotification | BaiduNotification | BrowserNotification |
|
|
1085
|
+
export declare type Notification = AppleNotification | AdmNotification | BaiduNotification | BrowserNotification | FcmLegacyNotification | WindowsNotification | TemplateNotification;
|
|
1139
1086
|
/**
|
|
1140
1087
|
* Represents a notification hub.
|
|
1141
1088
|
*/
|
|
@@ -1342,6 +1289,22 @@ export declare interface NotificationHubsMessageResponse extends NotificationHub
|
|
|
1342
1289
|
* The notification ID from the operation. Note this is only available in Standard SKU and above.
|
|
1343
1290
|
*/
|
|
1344
1291
|
notificationId?: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* The number of devices that successfully received the notification.
|
|
1294
|
+
*/
|
|
1295
|
+
success: number;
|
|
1296
|
+
/**
|
|
1297
|
+
* The number of devices that failed to receive a notification.
|
|
1298
|
+
*/
|
|
1299
|
+
failure: number;
|
|
1300
|
+
/**
|
|
1301
|
+
* The list of notification outcome results for each device registered with the hub, to which this notification was sent.
|
|
1302
|
+
*/
|
|
1303
|
+
results: RegistrationResult[];
|
|
1304
|
+
/**
|
|
1305
|
+
* The state of this notification outcome.
|
|
1306
|
+
*/
|
|
1307
|
+
state: NotificationOutcomeState;
|
|
1345
1308
|
}
|
|
1346
1309
|
/**
|
|
1347
1310
|
* Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
|
|
@@ -1454,11 +1417,10 @@ export declare class NotificationHubsServiceClient {
|
|
|
1454
1417
|
* Sends a direct push notification to a device with the given push handle.
|
|
1455
1418
|
* @param pushHandle - The push handle which is the unique identifier for the device.
|
|
1456
1419
|
* @param notification - The notification to send to the device.
|
|
1457
|
-
* @param options -
|
|
1458
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
1420
|
+
* @param options - The options for sending a direct notification.
|
|
1459
1421
|
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1460
1422
|
*/
|
|
1461
|
-
sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?:
|
|
1423
|
+
sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1462
1424
|
/**
|
|
1463
1425
|
* Sends push notifications to devices that match the given tags or tag expression.
|
|
1464
1426
|
* @param tags - The tags used to target the device for push notifications in either an array or tag expression.
|
|
@@ -1564,7 +1526,7 @@ export declare type PushHandle = BrowserPushChannel | string;
|
|
|
1564
1526
|
/**
|
|
1565
1527
|
* Describes the types of registration descriptions.
|
|
1566
1528
|
*/
|
|
1567
|
-
export declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription |
|
|
1529
|
+
export declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription | MpnsRegistrationDescription | MpnsTemplateRegistrationDescription | WindowsRegistrationDescription | WindowsTemplateRegistrationDescription;
|
|
1568
1530
|
/**
|
|
1569
1531
|
* Represents a registration description.
|
|
1570
1532
|
*/
|
|
@@ -1625,10 +1587,31 @@ export declare interface RegistrationQueryResponse {
|
|
|
1625
1587
|
*/
|
|
1626
1588
|
continuationToken?: string;
|
|
1627
1589
|
}
|
|
1590
|
+
/**
|
|
1591
|
+
* Represents the result of the registration.
|
|
1592
|
+
*/
|
|
1593
|
+
export declare interface RegistrationResult {
|
|
1594
|
+
/**
|
|
1595
|
+
* The application platform.
|
|
1596
|
+
*/
|
|
1597
|
+
applicationPlatform: string;
|
|
1598
|
+
/**
|
|
1599
|
+
* The PNS handle.
|
|
1600
|
+
*/
|
|
1601
|
+
pnsHandle: string;
|
|
1602
|
+
/**
|
|
1603
|
+
* The registration ID.
|
|
1604
|
+
*/
|
|
1605
|
+
registrationId: string;
|
|
1606
|
+
/**
|
|
1607
|
+
* The outcome of the registration.
|
|
1608
|
+
*/
|
|
1609
|
+
outcome: string;
|
|
1610
|
+
}
|
|
1628
1611
|
/**
|
|
1629
1612
|
* Represents the types of registration descriptions.
|
|
1630
1613
|
*/
|
|
1631
|
-
export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "
|
|
1614
|
+
export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "Mpns" | "MpnsTemplate" | "Windows" | "WindowsTemplate";
|
|
1632
1615
|
/**
|
|
1633
1616
|
* Represents the send operation options that can be set.
|
|
1634
1617
|
*/
|
|
@@ -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,4 +1,10 @@
|
|
|
1
|
-
import { SasTokenProvider } from "
|
|
1
|
+
import { SasTokenProvider } from "./sasTokenProvider.js";
|
|
2
|
+
/**
|
|
3
|
+
* Defines an object with possible properties defined in T.
|
|
4
|
+
*/
|
|
5
|
+
export declare type ParsedOutput<T> = {
|
|
6
|
+
[P in keyof T]: T[P];
|
|
7
|
+
};
|
|
2
8
|
/**
|
|
3
9
|
* The set of properties that comprise a Notification Hubs connection string.
|
|
4
10
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectionStringUtils.d.ts","sourceRoot":"","sources":["../../../src/auth/connectionStringUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAA0B,MAAM,uBAAuB,CAAC;AAEjF;;GAEG;AACH,oBAAY,YAAY,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAgDvD;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,iCAAiC,CAC/C,eAAe,EAAE,MAAM,EACvB,mBAAmB,EAAE,MAAM,GAC1B,gBAAgB,CAElB;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,gBAAgB,EAAE,MAAM,GACvB,0CAA0C,CAyB5C"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|