@azure/notification-hubs 1.0.0-beta.5 → 1.0.0-beta.7
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 +104 -113
- package/dist/index.cjs +625 -602
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/api/beginSubmitNotificationHubJob.js +131 -0
- package/dist-esm/src/api/beginSubmitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/cancelScheduledNotification.js +1 -1
- package/dist-esm/src/api/cancelScheduledNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/createOrUpdateInstallation.js +1 -1
- package/dist-esm/src/api/createOrUpdateInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/createOrUpdateRegistration.js +1 -1
- package/dist-esm/src/api/createOrUpdateRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/createRegistration.js +1 -1
- package/dist-esm/src/api/createRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/createRegistrationId.js +1 -1
- package/dist-esm/src/api/createRegistrationId.js.map +1 -0
- package/dist-esm/src/{client → api}/deleteInstallation.js +1 -1
- package/dist-esm/src/api/deleteInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/deleteRegistration.js +1 -1
- package/dist-esm/src/api/deleteRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/getFeedbackContainerUrl.js +1 -1
- package/dist-esm/src/api/getFeedbackContainerUrl.js.map +1 -0
- package/dist-esm/src/{client → api}/getInstallation.js +1 -1
- package/dist-esm/src/api/getInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/getNotificationHubJob.js +1 -1
- package/dist-esm/src/api/getNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/getNotificationOutcomeDetails.js +1 -1
- package/dist-esm/src/api/getNotificationOutcomeDetails.js.map +1 -0
- package/dist-esm/src/{client → api}/getRegistration.js +1 -1
- package/dist-esm/src/api/getRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/index.js +24 -2
- package/dist-esm/src/api/index.js.map +1 -0
- package/dist-esm/src/{client → api}/internal/_client.js +1 -1
- package/dist-esm/src/api/internal/_client.js.map +1 -0
- package/dist-esm/src/{client → api}/internal/_createOrUpdateRegistrationDescription.js +0 -0
- package/dist-esm/src/api/internal/_createOrUpdateRegistrationDescription.js.map +1 -0
- package/dist-esm/src/{client/listRegistrations.js → api/internal/_listRegistrations.js} +6 -38
- package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -0
- package/dist-esm/src/{client → api}/listNotificationHubJobs.js +1 -1
- package/dist-esm/src/api/listNotificationHubJobs.js.map +1 -0
- package/dist-esm/src/api/listRegistrations.js +35 -0
- package/dist-esm/src/api/listRegistrations.js.map +1 -0
- package/dist-esm/src/api/listRegistrationsByChannel.js +58 -0
- package/dist-esm/src/api/listRegistrationsByChannel.js.map +1 -0
- package/dist-esm/src/{client → api}/listRegistrationsByTag.js +1 -1
- package/dist-esm/src/api/listRegistrationsByTag.js.map +1 -0
- package/dist-esm/src/api/scheduleNotification.js +31 -0
- package/dist-esm/src/api/scheduleNotification.js.map +1 -0
- package/dist-esm/src/api/sendNotification.js +63 -0
- package/dist-esm/src/api/sendNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/submitNotificationHubJob.js +1 -1
- package/dist-esm/src/api/submitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/updateInstallation.js +1 -1
- package/dist-esm/src/api/updateInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/updateRegistration.js +1 -1
- package/dist-esm/src/api/updateRegistration.js.map +1 -0
- package/dist-esm/src/index.js +3 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.js +12 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/installation.js.map +1 -1
- package/dist-esm/src/models/notification.js.map +1 -1
- package/dist-esm/src/models/notificationBodyBuilder.js +48 -0
- package/dist-esm/src/models/notificationBodyBuilder.js.map +1 -0
- package/dist-esm/src/models/notificationDetails.js.map +1 -1
- package/dist-esm/src/models/notificationHubJob.js.map +1 -1
- package/dist-esm/src/models/options.js.map +1 -1
- package/dist-esm/src/models/registration.js +12 -12
- package/dist-esm/src/models/registration.js.map +1 -1
- package/dist-esm/src/models/tagExpressionBuilder.js +11 -0
- package/dist-esm/src/models/tagExpressionBuilder.js.map +1 -0
- package/dist-esm/src/notificationHubsClient.js +49 -68
- package/dist-esm/src/notificationHubsClient.js.map +1 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js +2 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
- package/dist-esm/src/serializers/notificationHubJobSerializer.js +3 -1
- package/dist-esm/src/serializers/notificationHubJobSerializer.js.map +1 -1
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js +2 -2
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js.map +1 -1
- package/dist-esm/src/serializers/registrationSerializer.js +16 -16
- 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/dist-esm/src/utils/notificationUtils.js +19 -0
- package/dist-esm/src/utils/notificationUtils.js.map +1 -0
- package/dist-esm/src/utils/optionUtils.js +20 -0
- package/dist-esm/src/utils/optionUtils.js.map +1 -0
- package/package.json +14 -17
- package/types/3.1/notification-hubs.d.ts +468 -281
- package/types/latest/notification-hubs.d.ts +500 -286
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/api/beginSubmitNotificationHubJob.d.ts +12 -0
- package/types/src/api/beginSubmitNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/cancelScheduledNotification.d.ts +0 -0
- package/types/src/api/cancelScheduledNotification.d.ts.map +1 -0
- package/types/src/{client → api}/createOrUpdateInstallation.d.ts +0 -0
- package/types/src/api/createOrUpdateInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/createOrUpdateRegistration.d.ts +0 -0
- package/types/src/api/createOrUpdateRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/createRegistration.d.ts +0 -0
- package/types/src/api/createRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/createRegistrationId.d.ts +0 -0
- package/types/src/api/createRegistrationId.d.ts.map +1 -0
- package/types/src/{client → api}/deleteInstallation.d.ts +0 -0
- package/types/src/api/deleteInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/deleteRegistration.d.ts +0 -0
- package/types/src/api/deleteRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/getFeedbackContainerUrl.d.ts +0 -0
- package/types/src/api/getFeedbackContainerUrl.d.ts.map +1 -0
- package/types/src/{client → api}/getInstallation.d.ts +0 -0
- package/types/src/api/getInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/getNotificationHubJob.d.ts +0 -0
- package/types/src/api/getNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/getNotificationOutcomeDetails.d.ts +0 -0
- package/types/src/api/getNotificationOutcomeDetails.d.ts.map +1 -0
- package/types/src/{client → api}/getRegistration.d.ts +0 -0
- package/types/src/api/getRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/index.d.ts +23 -1
- package/types/src/api/index.d.ts.map +1 -0
- package/types/src/{client → api}/internal/_client.d.ts +0 -0
- package/types/src/api/internal/_client.d.ts.map +1 -0
- package/types/src/{client → api}/internal/_createOrUpdateRegistrationDescription.d.ts +0 -0
- package/types/src/api/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -0
- package/types/src/api/internal/_listRegistrations.d.ts +6 -0
- package/types/src/api/internal/_listRegistrations.d.ts.map +1 -0
- package/types/src/{client → api}/listNotificationHubJobs.d.ts +0 -0
- package/types/src/api/listNotificationHubJobs.d.ts.map +1 -0
- package/types/src/{client → api}/listRegistrations.d.ts +3 -3
- package/types/src/api/listRegistrations.d.ts.map +1 -0
- package/types/src/api/listRegistrationsByChannel.d.ts +13 -0
- package/types/src/api/listRegistrationsByChannel.d.ts.map +1 -0
- package/types/src/{client → api}/listRegistrationsByTag.d.ts +0 -0
- package/types/src/api/listRegistrationsByTag.d.ts.map +1 -0
- package/types/src/{client → api}/scheduleNotification.d.ts +3 -5
- package/types/src/api/scheduleNotification.d.ts.map +1 -0
- package/types/src/{client → api}/sendNotification.d.ts +3 -5
- package/types/src/api/sendNotification.d.ts.map +1 -0
- package/types/src/{client → api}/submitNotificationHubJob.d.ts +0 -0
- package/types/src/api/submitNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/updateInstallation.d.ts +0 -0
- package/types/src/api/updateInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/updateRegistration.d.ts +0 -0
- package/types/src/api/updateRegistration.d.ts.map +1 -0
- package/types/src/index.d.ts +3 -2
- package/types/src/index.d.ts.map +1 -1
- package/types/src/models/index.d.ts +10 -0
- package/types/src/models/index.d.ts.map +1 -0
- package/types/src/models/installation.d.ts +12 -11
- package/types/src/models/installation.d.ts.map +1 -1
- package/types/src/models/notification.d.ts +10 -18
- package/types/src/models/notification.d.ts.map +1 -1
- package/types/src/models/{notificationBuilder.d.ts → notificationBodyBuilder.d.ts} +62 -64
- package/types/src/models/notificationBodyBuilder.d.ts.map +1 -0
- package/types/src/models/notificationDetails.d.ts +9 -9
- package/types/src/models/notificationDetails.d.ts.map +1 -1
- package/types/src/models/notificationHubJob.d.ts +5 -0
- package/types/src/models/notificationHubJob.d.ts.map +1 -1
- package/types/src/models/options.d.ts +36 -2
- package/types/src/models/options.d.ts.map +1 -1
- package/types/src/models/registration.d.ts +235 -69
- package/types/src/models/registration.d.ts.map +1 -1
- package/types/src/models/tagExpressionBuilder.d.ts +7 -0
- package/types/src/models/tagExpressionBuilder.d.ts.map +1 -0
- package/types/src/notificationHubsClient.d.ts +25 -41
- package/types/src/notificationHubsClient.d.ts.map +1 -1
- package/types/src/serializers/registrationSerializer.d.ts +14 -14
- package/types/src/serializers/registrationSerializer.d.ts.map +1 -1
- package/types/src/utils/notificationUtils.d.ts +6 -0
- package/types/src/utils/notificationUtils.d.ts.map +1 -0
- package/types/src/utils/optionUtils.d.ts +14 -0
- package/types/src/utils/optionUtils.d.ts.map +1 -0
- package/dist-esm/src/client/cancelScheduledNotification.js.map +0 -1
- package/dist-esm/src/client/createOrUpdateInstallation.js.map +0 -1
- package/dist-esm/src/client/createOrUpdateRegistration.js.map +0 -1
- package/dist-esm/src/client/createRegistration.js.map +0 -1
- package/dist-esm/src/client/createRegistrationId.js.map +0 -1
- package/dist-esm/src/client/deleteInstallation.js.map +0 -1
- package/dist-esm/src/client/deleteRegistration.js.map +0 -1
- package/dist-esm/src/client/getFeedbackContainerUrl.js.map +0 -1
- package/dist-esm/src/client/getInstallation.js.map +0 -1
- package/dist-esm/src/client/getNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +0 -1
- package/dist-esm/src/client/getRegistration.js.map +0 -1
- package/dist-esm/src/client/index.js.map +0 -1
- package/dist-esm/src/client/internal/_client.js.map +0 -1
- package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +0 -1
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js +0 -38
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js.map +0 -1
- package/dist-esm/src/client/internal/_sendNotificationPayload.js +0 -51
- package/dist-esm/src/client/internal/_sendNotificationPayload.js.map +0 -1
- package/dist-esm/src/client/listNotificationHubJobs.js.map +0 -1
- package/dist-esm/src/client/listRegistrations.js.map +0 -1
- package/dist-esm/src/client/listRegistrationsByTag.js.map +0 -1
- package/dist-esm/src/client/scheduleBroadcastNotification.js +0 -17
- package/dist-esm/src/client/scheduleBroadcastNotification.js.map +0 -1
- package/dist-esm/src/client/scheduleNotification.js +0 -18
- package/dist-esm/src/client/scheduleNotification.js.map +0 -1
- package/dist-esm/src/client/sendBroadcastNotification.js +0 -15
- package/dist-esm/src/client/sendBroadcastNotification.js.map +0 -1
- package/dist-esm/src/client/sendDirectNotification.js +0 -15
- package/dist-esm/src/client/sendDirectNotification.js.map +0 -1
- package/dist-esm/src/client/sendNotification.js +0 -16
- package/dist-esm/src/client/sendNotification.js.map +0 -1
- package/dist-esm/src/client/submitNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/updateInstallation.js.map +0 -1
- package/dist-esm/src/client/updateRegistration.js.map +0 -1
- package/dist-esm/src/models/notificationBuilder.js +0 -169
- package/dist-esm/src/models/notificationBuilder.js.map +0 -1
- package/dist-esm/src/utils/retryPolicy.js +0 -144
- package/dist-esm/src/utils/retryPolicy.js.map +0 -1
- package/types/src/client/cancelScheduledNotification.d.ts.map +0 -1
- package/types/src/client/createOrUpdateInstallation.d.ts.map +0 -1
- package/types/src/client/createOrUpdateRegistration.d.ts.map +0 -1
- package/types/src/client/createRegistration.d.ts.map +0 -1
- package/types/src/client/createRegistrationId.d.ts.map +0 -1
- package/types/src/client/deleteInstallation.d.ts.map +0 -1
- package/types/src/client/deleteRegistration.d.ts.map +0 -1
- package/types/src/client/getFeedbackContainerUrl.d.ts.map +0 -1
- package/types/src/client/getInstallation.d.ts.map +0 -1
- package/types/src/client/getNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/getNotificationOutcomeDetails.d.ts.map +0 -1
- package/types/src/client/getRegistration.d.ts.map +0 -1
- package/types/src/client/index.d.ts.map +0 -1
- package/types/src/client/internal/_client.d.ts.map +0 -1
- package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts.map +0 -1
- package/types/src/client/internal/_scheduleNotificationPayload.d.ts +0 -9
- package/types/src/client/internal/_scheduleNotificationPayload.d.ts.map +0 -1
- package/types/src/client/internal/_sendNotificationPayload.d.ts +0 -10
- package/types/src/client/internal/_sendNotificationPayload.d.ts.map +0 -1
- package/types/src/client/listNotificationHubJobs.d.ts.map +0 -1
- package/types/src/client/listRegistrations.d.ts.map +0 -1
- package/types/src/client/listRegistrationsByTag.d.ts.map +0 -1
- package/types/src/client/scheduleBroadcastNotification.d.ts +0 -16
- package/types/src/client/scheduleBroadcastNotification.d.ts.map +0 -1
- package/types/src/client/scheduleNotification.d.ts.map +0 -1
- package/types/src/client/sendBroadcastNotification.d.ts +0 -14
- package/types/src/client/sendBroadcastNotification.d.ts.map +0 -1
- package/types/src/client/sendDirectNotification.d.ts +0 -15
- package/types/src/client/sendDirectNotification.d.ts.map +0 -1
- package/types/src/client/sendNotification.d.ts.map +0 -1
- package/types/src/client/submitNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/updateInstallation.d.ts.map +0 -1
- package/types/src/client/updateRegistration.d.ts.map +0 -1
- package/types/src/models/notificationBuilder.d.ts.map +0 -1
- package/types/src/utils/retryPolicy.d.ts +0 -72
- package/types/src/utils/retryPolicy.d.ts.map +0 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CommonClientOptions } from '@azure/core-client';
|
|
2
2
|
import { OperationOptions } from '@azure/core-client';
|
|
3
|
+
import { OperationState } from '@azure/core-lro';
|
|
3
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
4
6
|
/**
|
|
5
7
|
* Represents an Amazon Device Messaging (ADM) based installation.
|
|
6
8
|
*/
|
|
@@ -71,27 +73,27 @@ export declare interface AdmNativeNotification {
|
|
|
71
73
|
/**
|
|
72
74
|
* The action associated with a user click on the notification.
|
|
73
75
|
*/
|
|
74
|
-
|
|
76
|
+
click_action?: string;
|
|
75
77
|
/**
|
|
76
78
|
* The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
|
|
77
79
|
*/
|
|
78
|
-
|
|
80
|
+
body_loc_key?: string;
|
|
79
81
|
/**
|
|
80
82
|
* Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
|
|
81
83
|
*/
|
|
82
|
-
|
|
84
|
+
body_loc_args?: string[];
|
|
83
85
|
/**
|
|
84
86
|
* The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
|
|
85
87
|
*/
|
|
86
|
-
|
|
88
|
+
title_loc_key?: string;
|
|
87
89
|
/**
|
|
88
90
|
* Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
|
|
89
91
|
*/
|
|
90
|
-
|
|
92
|
+
title_loc_args?: string[];
|
|
91
93
|
/**
|
|
92
94
|
* The notification's channel id.
|
|
93
95
|
*/
|
|
94
|
-
|
|
96
|
+
channel_id?: string;
|
|
95
97
|
/**
|
|
96
98
|
* Sets the "ticker" text, which is sent to accessibility services.
|
|
97
99
|
*/
|
|
@@ -103,27 +105,27 @@ export declare interface AdmNativeNotification {
|
|
|
103
105
|
/**
|
|
104
106
|
* Set the time that the event in the notification occurred. Must be a timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z".
|
|
105
107
|
*/
|
|
106
|
-
|
|
108
|
+
event_time?: string;
|
|
107
109
|
/**
|
|
108
110
|
* Set whether or not this notification is relevant only to the current device.
|
|
109
111
|
*/
|
|
110
|
-
|
|
112
|
+
local_only?: boolean;
|
|
111
113
|
/**
|
|
112
114
|
* Set the relative priority for this notification.
|
|
113
115
|
*/
|
|
114
|
-
|
|
116
|
+
notification_priority?: "PRIORITY_UNSPECIFIED" | "PRIORITY_MIN" | "PRIORITY_LOW" | "PRIORITY_DEFAULT" | "PRIORITY_HIGH" | "PRIORITY_MAX";
|
|
115
117
|
/**
|
|
116
118
|
* If set to true, use the Android framework's default sound for the notification.
|
|
117
119
|
*/
|
|
118
|
-
|
|
120
|
+
default_sound?: boolean;
|
|
119
121
|
/**
|
|
120
122
|
* Set the Notification.visibility of the notification.
|
|
121
123
|
*/
|
|
122
|
-
visibility?:
|
|
124
|
+
visibility?: "VISIBILITY_UNSPECIFIED" | "PRIVATE" | "PUBLIC" | "SECRET";
|
|
123
125
|
/**
|
|
124
126
|
* Sets the number of items this notification represents.
|
|
125
127
|
*/
|
|
126
|
-
|
|
128
|
+
notification_count?: number;
|
|
127
129
|
/**
|
|
128
130
|
* Contains the URL of an image that is going to be displayed in a notification.
|
|
129
131
|
*/
|
|
@@ -139,26 +141,46 @@ export declare interface AdmNotification extends JsonNotification {
|
|
|
139
141
|
platform: "adm";
|
|
140
142
|
}
|
|
141
143
|
/**
|
|
142
|
-
*
|
|
144
|
+
* Describes an ADM Registration channel query.
|
|
143
145
|
*/
|
|
144
|
-
export declare interface
|
|
146
|
+
export declare interface AdmRegistrationChannel {
|
|
145
147
|
/**
|
|
146
|
-
* The
|
|
148
|
+
* The ADM Registration ID.
|
|
147
149
|
*/
|
|
148
150
|
admRegistrationId: string;
|
|
149
151
|
/**
|
|
150
|
-
* The
|
|
152
|
+
* The kind of the registration channel.
|
|
153
|
+
*/
|
|
154
|
+
kind: "adm";
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Represents the description of the Amazon Device Messaging (ADM) registration.
|
|
158
|
+
*/
|
|
159
|
+
export declare interface AdmRegistrationDescription extends AdmRegistrationDescriptionCommon {
|
|
160
|
+
/**
|
|
161
|
+
* The kind of the registration.
|
|
162
|
+
*/
|
|
163
|
+
kind: "Adm";
|
|
164
|
+
}
|
|
165
|
+
export declare interface AdmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
166
|
+
/**
|
|
167
|
+
* The Amazon Device Messaging registration identifier.
|
|
151
168
|
*/
|
|
152
|
-
|
|
169
|
+
admRegistrationId: string;
|
|
153
170
|
}
|
|
154
171
|
/**
|
|
155
172
|
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
156
173
|
*/
|
|
157
|
-
export declare interface AdmTemplateRegistrationDescription extends
|
|
174
|
+
export declare interface AdmTemplateRegistrationDescription extends AdmTemplateRegistrationDescriptionCommon {
|
|
158
175
|
/**
|
|
159
|
-
* The
|
|
176
|
+
* The kind of the registration.
|
|
160
177
|
*/
|
|
161
|
-
|
|
178
|
+
kind: "AdmTemplate";
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
182
|
+
*/
|
|
183
|
+
export declare interface AdmTemplateRegistrationDescriptionCommon extends AdmRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
162
184
|
}
|
|
163
185
|
/**
|
|
164
186
|
* Represents what is in the APNs alert body.
|
|
@@ -181,45 +203,45 @@ export declare interface AppleAlert {
|
|
|
181
203
|
* The name of the launch image file to display. If the user chooses to launch your app,
|
|
182
204
|
* the contents of the specified image or storyboard file are displayed instead of your app’s normal launch image.
|
|
183
205
|
*/
|
|
184
|
-
|
|
206
|
+
"launch-image"?: string;
|
|
185
207
|
/**
|
|
186
208
|
* The key for a localized title string. Specify this key instead of the title key to retrieve
|
|
187
209
|
* the title from your app’s Localizable.strings files. The value must contain the name of a key in your strings file.
|
|
188
210
|
*/
|
|
189
|
-
|
|
211
|
+
"title-loc-key"?: string;
|
|
190
212
|
/**
|
|
191
213
|
* An array of strings containing replacement values for variables in your title string.
|
|
192
214
|
* Each %\@ character in the string specified by the title-loc-key is replaced by a value
|
|
193
215
|
* from this array. The first item in the array replaces the first instance
|
|
194
216
|
* of the %\@ character in the string, the second item replaces the second instance, and so on.
|
|
195
217
|
*/
|
|
196
|
-
|
|
218
|
+
"title-loc-args"?: string[];
|
|
197
219
|
/**
|
|
198
220
|
* The key for a localized subtitle string. Use this key, instead of the subtitle key, to
|
|
199
221
|
* retrieve the subtitle from your app’s Localizable.strings file.
|
|
200
222
|
* The value must contain the name of a key in your strings file.
|
|
201
223
|
*/
|
|
202
|
-
|
|
224
|
+
"subtitle-loc-key"?: string;
|
|
203
225
|
/**
|
|
204
226
|
* An array of strings containing replacement values for variables in your title string.
|
|
205
227
|
* Each %\@ character in the string specified by subtitle-loc-key is replaced by a value
|
|
206
228
|
* from this array. The first item in the array replaces the first instance of the
|
|
207
229
|
* %\@ character in the string, the second item replaces the second instance, and so on.
|
|
208
230
|
*/
|
|
209
|
-
|
|
231
|
+
"subtitle-loc-args"?: string[];
|
|
210
232
|
/**
|
|
211
233
|
* The key for a localized message string. Use this key, instead of the body key, to
|
|
212
234
|
* retrieve the message text from your app’s Localizable.strings file. The value must contain
|
|
213
235
|
* the name of a key in your strings file.
|
|
214
236
|
*/
|
|
215
|
-
|
|
237
|
+
"loc-key"?: string;
|
|
216
238
|
/**
|
|
217
239
|
* An array of strings containing replacement values for variables in your message text.
|
|
218
240
|
* Each %\@ character in the string specified by loc-key is replaced by a value from
|
|
219
241
|
* this array. The first item in the array replaces the first instance of the %\@ character
|
|
220
242
|
* in the string, the second item replaces the second instance, and so on.
|
|
221
243
|
*/
|
|
222
|
-
|
|
244
|
+
"loc-args"?: string[];
|
|
223
245
|
}
|
|
224
246
|
/**
|
|
225
247
|
* Represents an APNs critical sound
|
|
@@ -270,7 +292,7 @@ export declare interface AppleNativeMessage extends Record<string, any> {
|
|
|
270
292
|
/**
|
|
271
293
|
* An app-specific identifier for grouping related notifications.
|
|
272
294
|
*/
|
|
273
|
-
|
|
295
|
+
"thread-id"?: string;
|
|
274
296
|
/**
|
|
275
297
|
* The notification’s type.
|
|
276
298
|
*/
|
|
@@ -279,29 +301,29 @@ export declare interface AppleNativeMessage extends Record<string, any> {
|
|
|
279
301
|
* The background notification flag. To perform a silent background update,
|
|
280
302
|
* specify the value 1 and don’t include the alert, badge, or sound keys in your payload.
|
|
281
303
|
*/
|
|
282
|
-
|
|
304
|
+
"content-available"?: number;
|
|
283
305
|
/**
|
|
284
306
|
* The notification service app extension flag. If the value is 1, the system passes
|
|
285
307
|
* the notification to your notification service app extension before delivery.
|
|
286
308
|
*/
|
|
287
|
-
|
|
309
|
+
"mutable-content"?: number;
|
|
288
310
|
/**
|
|
289
311
|
* The identifier of the window brought forward.
|
|
290
312
|
*/
|
|
291
|
-
|
|
313
|
+
"target-content-id"?: string;
|
|
292
314
|
/**
|
|
293
315
|
* The importance and delivery timing of a notification.
|
|
294
316
|
*/
|
|
295
|
-
|
|
317
|
+
"interruption-level"?: "passive" | "active" | "time-sensitive" | "critical";
|
|
296
318
|
/**
|
|
297
319
|
* The relevance score, a number between 0 and 1, that the system uses to sort the
|
|
298
320
|
* notifications from your app. The highest score gets featured in the notification summary.
|
|
299
321
|
*/
|
|
300
|
-
|
|
322
|
+
"relevance-score"?: number;
|
|
301
323
|
/**
|
|
302
324
|
* The criteria the system evaluates to determine if it displays the notification in the current Focus.
|
|
303
325
|
*/
|
|
304
|
-
|
|
326
|
+
"filter-criteria"?: string;
|
|
305
327
|
}
|
|
306
328
|
/**
|
|
307
329
|
* Represents an Apple APNs push notification.
|
|
@@ -313,26 +335,49 @@ export declare interface AppleNotification extends JsonNotification {
|
|
|
313
335
|
platform: "apple";
|
|
314
336
|
}
|
|
315
337
|
/**
|
|
316
|
-
*
|
|
338
|
+
* Describes an Apple Registration channel query.
|
|
317
339
|
*/
|
|
318
|
-
export declare
|
|
340
|
+
export declare interface AppleRegistrationChannel {
|
|
341
|
+
/**
|
|
342
|
+
* The APNs device token.
|
|
343
|
+
*/
|
|
344
|
+
deviceToken: string;
|
|
345
|
+
/**
|
|
346
|
+
* The kind of the registration channel.
|
|
347
|
+
*/
|
|
348
|
+
kind: "apple";
|
|
349
|
+
}
|
|
319
350
|
/**
|
|
320
351
|
* Represents the description of apple registration.
|
|
321
352
|
*/
|
|
322
|
-
export declare interface AppleRegistrationDescription extends
|
|
353
|
+
export declare interface AppleRegistrationDescription extends AppleRegistrationDescriptionCommon {
|
|
354
|
+
/**
|
|
355
|
+
* The kind of the registration.
|
|
356
|
+
*/
|
|
357
|
+
kind: "Apple";
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Represents the description of apple registration.
|
|
361
|
+
*/
|
|
362
|
+
export declare interface AppleRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
323
363
|
/**
|
|
324
364
|
* The APNs device token.
|
|
325
365
|
*/
|
|
326
366
|
deviceToken: string;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Represents the description of the Apple template registration.
|
|
370
|
+
*/
|
|
371
|
+
export declare interface AppleTemplateRegistrationDescription extends AppleTemplateRegistrationDescriptionCommon {
|
|
327
372
|
/**
|
|
328
|
-
* The
|
|
373
|
+
* The kind of the registration.
|
|
329
374
|
*/
|
|
330
|
-
|
|
375
|
+
kind: "AppleTemplate";
|
|
331
376
|
}
|
|
332
377
|
/**
|
|
333
378
|
* Represents the description of the Apple template registration.
|
|
334
379
|
*/
|
|
335
|
-
export declare interface
|
|
380
|
+
export declare interface AppleTemplateRegistrationDescriptionCommon extends AppleRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
336
381
|
/**
|
|
337
382
|
* The expiry date.
|
|
338
383
|
*/
|
|
@@ -340,15 +385,11 @@ export declare interface AppleTemplateRegistrationDescription extends Pick<Apple
|
|
|
340
385
|
/**
|
|
341
386
|
* The notification priority.
|
|
342
387
|
*/
|
|
343
|
-
priority?:
|
|
388
|
+
priority?: "10" | "5";
|
|
344
389
|
/**
|
|
345
390
|
* The APNS headers.
|
|
346
391
|
*/
|
|
347
392
|
apnsHeaders?: Record<string, string>;
|
|
348
|
-
/**
|
|
349
|
-
* The type of the registration.
|
|
350
|
-
*/
|
|
351
|
-
type: "AppleTemplate";
|
|
352
393
|
}
|
|
353
394
|
/**
|
|
354
395
|
* Represents the Baidu Apple native payload.
|
|
@@ -393,23 +434,23 @@ export declare interface BaiduNativeMessage extends Record<string, any> {
|
|
|
393
434
|
/**
|
|
394
435
|
* Baidu Notification builder ID.
|
|
395
436
|
*/
|
|
396
|
-
|
|
437
|
+
notification_builder_id?: number;
|
|
397
438
|
/**
|
|
398
439
|
* Baidu Notification Android basic style.
|
|
399
440
|
*/
|
|
400
|
-
|
|
441
|
+
notification_basic_style?: number;
|
|
401
442
|
/**
|
|
402
443
|
* Baidu Android open type.
|
|
403
444
|
*/
|
|
404
|
-
|
|
445
|
+
open_type?: number;
|
|
405
446
|
/**
|
|
406
447
|
* Baidu Android net support option.
|
|
407
448
|
*/
|
|
408
|
-
|
|
449
|
+
net_support?: number;
|
|
409
450
|
/**
|
|
410
451
|
* Baidu Android user confirm.
|
|
411
452
|
*/
|
|
412
|
-
|
|
453
|
+
user_confirm?: number;
|
|
413
454
|
/**
|
|
414
455
|
* Baidu Android URL.
|
|
415
456
|
*/
|
|
@@ -417,15 +458,15 @@ export declare interface BaiduNativeMessage extends Record<string, any> {
|
|
|
417
458
|
/**
|
|
418
459
|
* Baidu Android package content.
|
|
419
460
|
*/
|
|
420
|
-
|
|
461
|
+
pkg_content?: string;
|
|
421
462
|
/**
|
|
422
463
|
* Baidu Android package version.
|
|
423
464
|
*/
|
|
424
|
-
|
|
465
|
+
pkg_version?: string;
|
|
425
466
|
/**
|
|
426
467
|
* Baidu Android custom content dictionary.
|
|
427
468
|
*/
|
|
428
|
-
|
|
469
|
+
custom_content?: Record<string, any>;
|
|
429
470
|
/**
|
|
430
471
|
* Baidu APNs support.
|
|
431
472
|
*/
|
|
@@ -440,10 +481,33 @@ export declare interface BaiduNotification extends JsonNotification {
|
|
|
440
481
|
*/
|
|
441
482
|
platform: "baidu";
|
|
442
483
|
}
|
|
484
|
+
/**
|
|
485
|
+
* Describes an Baidu Registration channel query.
|
|
486
|
+
*/
|
|
487
|
+
export declare interface BaiduRegistrationChannel {
|
|
488
|
+
/**
|
|
489
|
+
* The Baidu Channel ID.
|
|
490
|
+
*/
|
|
491
|
+
baiduChannelId: string;
|
|
492
|
+
/**
|
|
493
|
+
* The Baidu User ID.
|
|
494
|
+
*/
|
|
495
|
+
baiduUserId: string;
|
|
496
|
+
/**
|
|
497
|
+
* The kind of the registration channel.
|
|
498
|
+
*/
|
|
499
|
+
kind: "baidu";
|
|
500
|
+
}
|
|
443
501
|
/**
|
|
444
502
|
* Represents a Baidu registration description.
|
|
445
503
|
*/
|
|
446
|
-
export declare interface BaiduRegistrationDescription extends
|
|
504
|
+
export declare interface BaiduRegistrationDescription extends BaiduRegistrationDescriptionCommon {
|
|
505
|
+
/**
|
|
506
|
+
* The kind of the registration.
|
|
507
|
+
*/
|
|
508
|
+
kind: "Baidu";
|
|
509
|
+
}
|
|
510
|
+
export declare interface BaiduRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
447
511
|
/**
|
|
448
512
|
* The Baidu user identifier.
|
|
449
513
|
*/
|
|
@@ -452,32 +516,38 @@ export declare interface BaiduRegistrationDescription extends RegistrationDescri
|
|
|
452
516
|
* The Baidu channel identifier.
|
|
453
517
|
*/
|
|
454
518
|
baiduChannelId: string;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* Represents a Baidu template registration description.
|
|
522
|
+
*/
|
|
523
|
+
export declare interface BaiduTemplateRegistrationDescription extends BaiduTemplateRegistrationDescriptionCommon {
|
|
455
524
|
/**
|
|
456
|
-
* The
|
|
525
|
+
* The kind of the registration.
|
|
457
526
|
*/
|
|
458
|
-
|
|
527
|
+
kind: "BaiduTemplate";
|
|
459
528
|
}
|
|
460
529
|
/**
|
|
461
530
|
* Represents a Baidu template registration description.
|
|
462
531
|
*/
|
|
463
|
-
export declare interface
|
|
532
|
+
export declare interface BaiduTemplateRegistrationDescriptionCommon extends BaiduRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
533
|
+
}
|
|
534
|
+
/**
|
|
535
|
+
* Represents a Browser/Web Push based installation.
|
|
536
|
+
*/
|
|
537
|
+
export declare interface BrowserInstallation extends BrowserInstallationCommon {
|
|
464
538
|
/**
|
|
465
|
-
* The
|
|
539
|
+
* The platform for the installation.
|
|
466
540
|
*/
|
|
467
|
-
|
|
541
|
+
platform: "browser";
|
|
468
542
|
}
|
|
469
543
|
/**
|
|
470
544
|
* Represents a Browser/Web Push based installation.
|
|
471
545
|
*/
|
|
472
|
-
export declare interface
|
|
546
|
+
export declare interface BrowserInstallationCommon extends InstallationCommon {
|
|
473
547
|
/**
|
|
474
548
|
* The push channel for the Web Push API.
|
|
475
549
|
*/
|
|
476
550
|
pushChannel: BrowserPushChannel;
|
|
477
|
-
/**
|
|
478
|
-
* The platform for the installation.
|
|
479
|
-
*/
|
|
480
|
-
platform: "browser";
|
|
481
551
|
}
|
|
482
552
|
/**
|
|
483
553
|
* Represents a Browser push notification.
|
|
@@ -506,235 +576,271 @@ export declare interface BrowserPushChannel {
|
|
|
506
576
|
endpoint: string;
|
|
507
577
|
}
|
|
508
578
|
/**
|
|
509
|
-
*
|
|
579
|
+
* Describes an Browser Registration channel query.
|
|
510
580
|
*/
|
|
511
|
-
export declare interface
|
|
581
|
+
export declare interface BrowserRegistrationChannel {
|
|
512
582
|
/**
|
|
513
|
-
* The
|
|
583
|
+
* The Web Push endpoint URL.
|
|
514
584
|
*/
|
|
515
585
|
endpoint: string;
|
|
516
586
|
/**
|
|
517
|
-
* The
|
|
587
|
+
* The Web Push subscription P256DH.
|
|
518
588
|
*/
|
|
519
589
|
p256dh: string;
|
|
520
590
|
/**
|
|
521
|
-
* The
|
|
591
|
+
* The Web Push subscription auth secret.
|
|
522
592
|
*/
|
|
523
593
|
auth: string;
|
|
524
594
|
/**
|
|
525
|
-
* The
|
|
595
|
+
* The kind of the registration channel.
|
|
526
596
|
*/
|
|
527
|
-
|
|
597
|
+
kind: "browser";
|
|
528
598
|
}
|
|
529
599
|
/**
|
|
530
|
-
* Represents a Browser Push
|
|
600
|
+
* Represents a Browser Push registration description.
|
|
531
601
|
*/
|
|
532
|
-
export declare interface
|
|
602
|
+
export declare interface BrowserRegistrationDescription extends BrowserRegistrationDescriptionCommon {
|
|
533
603
|
/**
|
|
534
|
-
* The
|
|
604
|
+
* The kind of the registration.
|
|
535
605
|
*/
|
|
536
|
-
|
|
606
|
+
kind: "Browser";
|
|
537
607
|
}
|
|
538
608
|
/**
|
|
539
|
-
*
|
|
540
|
-
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
541
|
-
* @returns The AdmNotification to send to Notification Hubs.
|
|
542
|
-
*/
|
|
543
|
-
export declare function buildAdmNativeMessage(nativeMessage: AdmNativeMessage): AdmNotification;
|
|
544
|
-
/**
|
|
545
|
-
* Creates an APNs native message to send to Notification Hubs.
|
|
546
|
-
* @param nativeMessage - The Apple native message properties to set.
|
|
547
|
-
* @param additionalProperties - Additional properties for Apple messages.
|
|
548
|
-
* @returns An AppleNotification to send to Notification Hubs.
|
|
549
|
-
*/
|
|
550
|
-
export declare function buildAppleNativeMessage(nativeMessage: AppleNativeMessage, additionalProperties?: Record<string, any>): AppleNotification;
|
|
551
|
-
/**
|
|
552
|
-
* Creates a BaiduNotification from a native Baidu payload.
|
|
553
|
-
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
554
|
-
* @param additionalProperties - Additional properties for Apple Baidu messages.
|
|
555
|
-
* @returns The BaiduNotification to send to Notification Hubs.
|
|
609
|
+
* Represents a Browser Push registration description.
|
|
556
610
|
*/
|
|
557
|
-
export declare
|
|
611
|
+
export declare interface BrowserRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
612
|
+
/**
|
|
613
|
+
* The Browser push endpoint.
|
|
614
|
+
*/
|
|
615
|
+
endpoint: string;
|
|
616
|
+
/**
|
|
617
|
+
* The Browser push P256DH.
|
|
618
|
+
*/
|
|
619
|
+
p256dh: string;
|
|
620
|
+
/**
|
|
621
|
+
* The Browser push auth secret.
|
|
622
|
+
*/
|
|
623
|
+
auth: string;
|
|
624
|
+
}
|
|
558
625
|
/**
|
|
559
|
-
*
|
|
560
|
-
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
561
|
-
* @returns The FcmLegacyNotification to send to Notification Hubs.
|
|
626
|
+
* Represents a Browser Push remplate registration description.
|
|
562
627
|
*/
|
|
563
|
-
export declare
|
|
628
|
+
export declare interface BrowserTemplateRegistrationDescription extends BrowserTemplateRegistrationDescriptionCommon {
|
|
629
|
+
/**
|
|
630
|
+
* The kind of the registration.
|
|
631
|
+
*/
|
|
632
|
+
kind: "BrowserTemplate";
|
|
633
|
+
}
|
|
564
634
|
/**
|
|
565
|
-
*
|
|
566
|
-
* @param nativeMessage - The Windows Badge Message to build.
|
|
567
|
-
* @returns A WindowsNotification created with the badge information.
|
|
635
|
+
* Represents a Browser Push remplate registration description.
|
|
568
636
|
*/
|
|
569
|
-
export declare
|
|
637
|
+
export declare interface BrowserTemplateRegistrationDescriptionCommon extends BrowserRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
638
|
+
}
|
|
570
639
|
/**
|
|
571
640
|
* Creates an Amazon Device Messaging (ADM) based installation.
|
|
572
641
|
* @param installation - A partial installation used to create the ADM installation.
|
|
573
642
|
* @returns The newly created ADM installation.
|
|
574
643
|
*/
|
|
575
|
-
export declare function createAdmInstallation(installation:
|
|
644
|
+
export declare function createAdmInstallation(installation: DeviceTokenInstallation): AdmInstallation;
|
|
576
645
|
/**
|
|
577
646
|
* Creates a notification to send to an Amazon Device Messaging device.
|
|
578
647
|
* @param notification - A partial message used to create a message for Amazon Device Messaging.
|
|
579
648
|
* @returns A newly created Amazon Device Messaging.
|
|
580
649
|
*/
|
|
581
|
-
export declare function createAdmNotification(notification:
|
|
650
|
+
export declare function createAdmNotification(notification: NotificationCommon): AdmNotification;
|
|
651
|
+
/**
|
|
652
|
+
* Creates a AdmNotification from a native ADM payload.
|
|
653
|
+
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
654
|
+
* @returns The AdmNotification to send to Notification Hubs.
|
|
655
|
+
*/
|
|
656
|
+
export declare function createAdmNotificationBody(nativeMessage: AdmNativeMessage): string;
|
|
582
657
|
/**
|
|
583
658
|
* Creates an ADM registration description.
|
|
584
659
|
* @param description - A partial ADM registration description.
|
|
585
660
|
* @returns A created ADM registration description.
|
|
586
661
|
*/
|
|
587
|
-
export declare function createAdmRegistrationDescription(description:
|
|
662
|
+
export declare function createAdmRegistrationDescription(description: AdmRegistrationDescriptionCommon): AdmRegistrationDescription;
|
|
588
663
|
/**
|
|
589
664
|
* Creates an ADM template registration description.
|
|
590
665
|
* @param description - A partial ADM template registration description.
|
|
591
666
|
* @returns A created ADM template registration description.
|
|
592
667
|
*/
|
|
593
|
-
export declare function createAdmTemplateRegistrationDescription(description:
|
|
668
|
+
export declare function createAdmTemplateRegistrationDescription(description: AdmTemplateRegistrationDescriptionCommon): AdmTemplateRegistrationDescription;
|
|
594
669
|
/**
|
|
595
670
|
* Creates an Apple based installation.
|
|
596
671
|
* @param installation - A partial installation used to create the Apple installation.
|
|
597
672
|
* @returns The newly created Apple installation.
|
|
598
673
|
*/
|
|
599
|
-
export declare function createAppleInstallation(installation:
|
|
674
|
+
export declare function createAppleInstallation(installation: DeviceTokenInstallation): AppleInstallation;
|
|
600
675
|
/**
|
|
601
676
|
* Creates a notification to send to an Apple device.
|
|
602
677
|
* @param notification - A partial message used to create a message for Apple.
|
|
603
678
|
* @returns A newly created Apple.
|
|
604
679
|
*/
|
|
605
|
-
export declare function createAppleNotification(notification:
|
|
680
|
+
export declare function createAppleNotification(notification: NotificationCommon): AppleNotification;
|
|
681
|
+
/**
|
|
682
|
+
* Creates an APNs native message to send to Notification Hubs.
|
|
683
|
+
* @param nativeMessage - The Apple native message properties to set.
|
|
684
|
+
* @param additionalProperties - Additional properties for Apple messages.
|
|
685
|
+
* @returns An AppleNotification to send to Notification Hubs.
|
|
686
|
+
*/
|
|
687
|
+
export declare function createAppleNotificationBody(nativeMessage: AppleNativeMessage): string;
|
|
606
688
|
/**
|
|
607
689
|
* Creates an Apple registration description.
|
|
608
690
|
* @param description - A partial Apple registration description.
|
|
609
691
|
* @returns A created Apple registration description.
|
|
610
692
|
*/
|
|
611
|
-
export declare function createAppleRegistrationDescription(description:
|
|
693
|
+
export declare function createAppleRegistrationDescription(description: AppleRegistrationDescriptionCommon): AppleRegistrationDescription;
|
|
612
694
|
/**
|
|
613
695
|
* Creates an Apple template registration description.
|
|
614
696
|
* @param description - A partial Apple template registration description.
|
|
615
697
|
* @returns A created Apple template registration description.
|
|
616
698
|
*/
|
|
617
|
-
export declare function createAppleTemplateRegistrationDescription(description:
|
|
699
|
+
export declare function createAppleTemplateRegistrationDescription(description: AppleTemplateRegistrationDescriptionCommon): AppleTemplateRegistrationDescription;
|
|
618
700
|
/**
|
|
619
701
|
* Creates a Baidu based installation.
|
|
620
702
|
* @param installation - A partial installation used to create the Baidu installation.
|
|
621
703
|
* @returns The newly created Baidu installation.
|
|
622
704
|
*/
|
|
623
|
-
export declare function createBaiduInstallation(installation:
|
|
705
|
+
export declare function createBaiduInstallation(installation: DeviceTokenInstallation): BaiduInstallation;
|
|
624
706
|
/**
|
|
625
707
|
* Creates a notification to send to a Baidu registered device.
|
|
626
708
|
* @param notification - A partial message used to create a message for Baidu.
|
|
627
709
|
* @returns A newly created Baidu.
|
|
628
710
|
*/
|
|
629
|
-
export declare function createBaiduNotification(notification:
|
|
711
|
+
export declare function createBaiduNotification(notification: NotificationCommon): BaiduNotification;
|
|
712
|
+
/**
|
|
713
|
+
* Creates a BaiduNotification from a native Baidu payload.
|
|
714
|
+
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
715
|
+
* @returns The JSON body to send to Notification Hubs.
|
|
716
|
+
*/
|
|
717
|
+
export declare function createBaiduNotificationBody(nativeMessage: BaiduNativeMessage): string;
|
|
630
718
|
/**
|
|
631
719
|
* Creates a Baidu registration description.
|
|
632
720
|
* @param description - A partial Baidu registration description.
|
|
633
721
|
* @returns A created Baidu registration description.
|
|
634
722
|
*/
|
|
635
|
-
export declare function createBaiduRegistrationDescription(description:
|
|
723
|
+
export declare function createBaiduRegistrationDescription(description: BaiduRegistrationDescriptionCommon): BaiduRegistrationDescription;
|
|
636
724
|
/**
|
|
637
725
|
* Creates a Baidu template registration description.
|
|
638
726
|
* @param description - A partial Baidu template registration description.
|
|
639
727
|
* @returns A created Baidu template registration description.
|
|
640
728
|
*/
|
|
641
|
-
export declare function createBaiduTemplateRegistrationDescription(description:
|
|
729
|
+
export declare function createBaiduTemplateRegistrationDescription(description: BaiduTemplateRegistrationDescriptionCommon): BaiduTemplateRegistrationDescription;
|
|
642
730
|
/**
|
|
643
731
|
* Creates a Web Push based installation.
|
|
644
732
|
* @param installation - A partial installation used to create the Web Push installation.
|
|
645
733
|
* @returns The newly created Web Push installation.
|
|
646
734
|
*/
|
|
647
|
-
export declare function createBrowserInstallation(installation:
|
|
735
|
+
export declare function createBrowserInstallation(installation: BrowserInstallationCommon): BrowserInstallation;
|
|
648
736
|
/**
|
|
649
737
|
* Creates a notification to send to a browser.
|
|
650
738
|
* @param notification - A partial message used to create a message for a browser.
|
|
651
739
|
* @returns A newly created Web Push browser.
|
|
652
740
|
*/
|
|
653
|
-
export declare function createBrowserNotification(notification:
|
|
741
|
+
export declare function createBrowserNotification(notification: NotificationCommon): BrowserNotification;
|
|
654
742
|
/**
|
|
655
743
|
* Creates a Web Push registration description.
|
|
656
744
|
* @param description - A partial Web Push registration description.
|
|
657
745
|
* @returns A created Web Push registration description.
|
|
658
746
|
*/
|
|
659
|
-
export declare function createBrowserRegistrationDescription(description:
|
|
747
|
+
export declare function createBrowserRegistrationDescription(description: BrowserRegistrationDescriptionCommon): BrowserRegistrationDescription;
|
|
660
748
|
/**
|
|
661
749
|
* Creates a Web Push registration description.
|
|
662
750
|
* @param description - A partial Web Push template registration description.
|
|
663
751
|
* @returns A created Web Push template registration description.
|
|
664
752
|
*/
|
|
665
|
-
export declare function createBrowserTemplateRegistrationDescription(description:
|
|
753
|
+
export declare function createBrowserTemplateRegistrationDescription(description: BrowserTemplateRegistrationDescriptionCommon): BrowserTemplateRegistrationDescription;
|
|
666
754
|
/**
|
|
667
755
|
* Creates a Firebase legacy HTTP based installation.
|
|
668
756
|
* @param installation - A partial installation used to create the Firebase Legacy HTTP installation.
|
|
669
757
|
* @returns The newly created Baidu installation.
|
|
670
758
|
*/
|
|
671
|
-
export declare function createFcmLegacyInstallation(installation:
|
|
759
|
+
export declare function createFcmLegacyInstallation(installation: DeviceTokenInstallation): FcmLegacyInstallation;
|
|
672
760
|
/**
|
|
673
761
|
* Creates a notification to send to Firebase.
|
|
674
762
|
* @param notification - A partial message used to create a message for Firebase.
|
|
675
763
|
* @returns A newly created Firebase.
|
|
676
764
|
*/
|
|
677
|
-
export declare function createFcmLegacyNotification(notification:
|
|
765
|
+
export declare function createFcmLegacyNotification(notification: NotificationCommon): FcmLegacyNotification;
|
|
678
766
|
/**
|
|
679
767
|
* Creates a Firebase Legacy registration description.
|
|
680
768
|
* @param description - A partial GCM registration description.
|
|
681
769
|
* @returns A created GCM registration description.
|
|
682
770
|
*/
|
|
683
|
-
export declare function createFcmLegacyRegistrationDescription(description:
|
|
771
|
+
export declare function createFcmLegacyRegistrationDescription(description: GcmRegistrationDescriptionCommon): GcmRegistrationDescription;
|
|
684
772
|
/**
|
|
685
773
|
* Creates a GCM template registration description.
|
|
686
774
|
* @param description - A partial GCM template registration description.
|
|
687
775
|
* @returns A created GCM template registration description.
|
|
688
776
|
*/
|
|
689
|
-
export declare function createFcmLegacyTemplateRegistrationDescription(description:
|
|
777
|
+
export declare function createFcmLegacyTemplateRegistrationDescription(description: GcmTemplateRegistrationDescriptionCommon): GcmTemplateRegistrationDescription;
|
|
778
|
+
/**
|
|
779
|
+
* Creates a FcmLegacyNotification from a native Firebase payload.
|
|
780
|
+
* @param nativeMessage - The native message payload to send to Notification Hubs.
|
|
781
|
+
* @returns The JSON body to send to Notification Hubs.
|
|
782
|
+
*/
|
|
783
|
+
export declare function createFirebaseLegacyNotificationBody(nativeMessage: FirebaseLegacyNativeMessage): string;
|
|
784
|
+
/**
|
|
785
|
+
* Creates a tag expression from a list of tags as a || expression.
|
|
786
|
+
* @param tags - The tags to create the || expression
|
|
787
|
+
* @returns The tag expression made from the array of strings into an || expression.
|
|
788
|
+
*/
|
|
789
|
+
export declare function createTagExpression(tags: string[]): string;
|
|
690
790
|
/**
|
|
691
791
|
* Creates a notification to send to Firebase.
|
|
692
792
|
* @param notification - A partial message used to create a message for Firebase.
|
|
693
793
|
* @returns A newly created Firebase.
|
|
694
794
|
*/
|
|
695
|
-
export declare function createTemplateNotification(notification:
|
|
795
|
+
export declare function createTemplateNotification(notification: NotificationCommon): TemplateNotification;
|
|
696
796
|
/**
|
|
697
797
|
* Creates a badge message to send to WNS.
|
|
698
798
|
* @param notification - A partial message used to create a badge message for WNS.
|
|
699
799
|
* @returns A newly created WNS badge.
|
|
700
800
|
*/
|
|
701
|
-
export declare function createWindowsBadgeNotification(notification:
|
|
801
|
+
export declare function createWindowsBadgeNotification(notification: NotificationCommon): WindowsNotification;
|
|
802
|
+
/**
|
|
803
|
+
* Builds a WindowsNotification from a Windows Badge.
|
|
804
|
+
* @param nativeMessage - The Windows Badge Message to build.
|
|
805
|
+
* @returns The WNS XML created with the badge information.
|
|
806
|
+
*/
|
|
807
|
+
export declare function createWindowsBadgeNotificationBody(nativeMessage: WindowsBadgeNativeMessage): string;
|
|
702
808
|
/**
|
|
703
809
|
* Creates a Windows Notification Services (WNS) based installation.
|
|
704
810
|
* @param installation - A partial installation used to create the WNS installation.
|
|
705
811
|
* @returns The newly created WNS installation.
|
|
706
812
|
*/
|
|
707
|
-
export declare function createWindowsInstallation(installation:
|
|
813
|
+
export declare function createWindowsInstallation(installation: DeviceTokenInstallation): WindowsInstallation;
|
|
708
814
|
/**
|
|
709
815
|
* Creates a notification to send to WNS in wns/raw format..
|
|
710
816
|
* @param notification - A partial message used to create a message for WNS in XML format.
|
|
711
817
|
* @returns A newly created WNS message using XML.
|
|
712
818
|
*/
|
|
713
|
-
export declare function createWindowsRawNotification(notification:
|
|
819
|
+
export declare function createWindowsRawNotification(notification: NotificationCommon): WindowsNotification;
|
|
714
820
|
/**
|
|
715
821
|
* Creates a Windows registration description.
|
|
716
822
|
* @param description - A partial Windows registration description.
|
|
717
823
|
* @returns A created Windows registration description.
|
|
718
824
|
*/
|
|
719
|
-
export declare function createWindowsRegistrationDescription(description:
|
|
825
|
+
export declare function createWindowsRegistrationDescription(description: WindowsRegistrationDescriptionCommon): WindowsRegistrationDescription;
|
|
720
826
|
/**
|
|
721
827
|
* Creates a Windows template registration description.
|
|
722
828
|
* @param description - A partial Windows template registration description.
|
|
723
829
|
* @returns A created Windows template registration description.
|
|
724
830
|
*/
|
|
725
|
-
export declare function createWindowsTemplateRegistrationDescription(description:
|
|
831
|
+
export declare function createWindowsTemplateRegistrationDescription(description: WindowsTemplateRegistrationDescriptionCommon): WindowsTemplateRegistrationDescription;
|
|
726
832
|
/**
|
|
727
833
|
* Creates a tile message to send to WNS.
|
|
728
834
|
* @param notification - A partial message used to create a tile message for WNS.
|
|
729
835
|
* @returns A newly created WNS tile.
|
|
730
836
|
*/
|
|
731
|
-
export declare function createWindowsTileNotification(notification:
|
|
837
|
+
export declare function createWindowsTileNotification(notification: NotificationCommon): WindowsNotification;
|
|
732
838
|
/**
|
|
733
839
|
* Creates a toast message to send to WNS.
|
|
734
840
|
* @param notification - A partial message used to create a toast message for WNS.
|
|
735
841
|
* @returns A newly created WNS toast.
|
|
736
842
|
*/
|
|
737
|
-
export declare function createWindowsToastNotification(notification:
|
|
843
|
+
export declare function createWindowsToastNotification(notification: NotificationCommon): WindowsNotification;
|
|
738
844
|
/**
|
|
739
845
|
* Represents an installation with a string based device token.
|
|
740
846
|
*/
|
|
@@ -744,6 +850,15 @@ export declare interface DeviceTokenInstallation extends InstallationCommon {
|
|
|
744
850
|
*/
|
|
745
851
|
pushChannel: string;
|
|
746
852
|
}
|
|
853
|
+
/**
|
|
854
|
+
* Options for sending notifications to individual devices.
|
|
855
|
+
*/
|
|
856
|
+
export declare interface DirectSendNotificationOptions extends OperationOptions {
|
|
857
|
+
/**
|
|
858
|
+
* The device handle to send the notification. If an array is provided, this uses batch direct send which is only available in Standard SKU and above.
|
|
859
|
+
*/
|
|
860
|
+
deviceHandle: string | BrowserPushChannel | string[];
|
|
861
|
+
}
|
|
747
862
|
/**
|
|
748
863
|
* Represents entity update operation options that can be set.
|
|
749
864
|
*/
|
|
@@ -786,7 +901,7 @@ export declare interface FirebaseLegacyAndroidNativePayload {
|
|
|
786
901
|
/**
|
|
787
902
|
* The notification's channel ID.
|
|
788
903
|
*/
|
|
789
|
-
|
|
904
|
+
android_channel_id?: string;
|
|
790
905
|
/**
|
|
791
906
|
* The notification's icon.
|
|
792
907
|
*/
|
|
@@ -806,23 +921,23 @@ export declare interface FirebaseLegacyAndroidNativePayload {
|
|
|
806
921
|
/**
|
|
807
922
|
* The action associated with a user click on the notification.
|
|
808
923
|
*/
|
|
809
|
-
|
|
924
|
+
click_action?: string;
|
|
810
925
|
/**
|
|
811
926
|
* The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
|
|
812
927
|
*/
|
|
813
|
-
|
|
928
|
+
body_loc_key?: string;
|
|
814
929
|
/**
|
|
815
930
|
* Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
|
|
816
931
|
*/
|
|
817
|
-
|
|
932
|
+
body_loc_args?: string[];
|
|
818
933
|
/**
|
|
819
934
|
* The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
|
|
820
935
|
*/
|
|
821
|
-
|
|
936
|
+
title_loc_key?: string;
|
|
822
937
|
/**
|
|
823
938
|
* Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
|
|
824
939
|
*/
|
|
825
|
-
|
|
940
|
+
title_loc_args?: string[];
|
|
826
941
|
}
|
|
827
942
|
/**
|
|
828
943
|
* Represents an APNs native payload for the Firebase Legacy HTTP interface.
|
|
@@ -847,7 +962,7 @@ export declare interface FirebaseLegacyAppleNativePayload {
|
|
|
847
962
|
/**
|
|
848
963
|
* The action associated with a user click on the notification which corresponds to the APNs category.
|
|
849
964
|
*/
|
|
850
|
-
|
|
965
|
+
click_action?: string;
|
|
851
966
|
/**
|
|
852
967
|
* The notification's subtitle.
|
|
853
968
|
*/
|
|
@@ -855,19 +970,19 @@ export declare interface FirebaseLegacyAppleNativePayload {
|
|
|
855
970
|
/**
|
|
856
971
|
* The key to the body string in the app's string resources to use to localize the body text to the user's current localization.
|
|
857
972
|
*/
|
|
858
|
-
|
|
973
|
+
body_loc_key?: string;
|
|
859
974
|
/**
|
|
860
975
|
* Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.
|
|
861
976
|
*/
|
|
862
|
-
|
|
977
|
+
body_loc_args?: string[];
|
|
863
978
|
/**
|
|
864
979
|
* The key to the title string in the app's string resources to use to localize the title text to the user's current localization.
|
|
865
980
|
*/
|
|
866
|
-
|
|
981
|
+
title_loc_key?: string;
|
|
867
982
|
/**
|
|
868
983
|
* Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.
|
|
869
984
|
*/
|
|
870
|
-
|
|
985
|
+
title_loc_args?: string[];
|
|
871
986
|
}
|
|
872
987
|
/**
|
|
873
988
|
* Represents the targets, options, and payload for HTTP JSON messages for the Firebase Legacy HTTP interface.
|
|
@@ -880,7 +995,7 @@ export declare interface FirebaseLegacyNativeMessage {
|
|
|
880
995
|
/**
|
|
881
996
|
* The recipient of a multicast message, a message sent to more than one registration token.
|
|
882
997
|
*/
|
|
883
|
-
|
|
998
|
+
registration_ids?: string[];
|
|
884
999
|
/**
|
|
885
1000
|
* A logical expression of conditions that determine the message target.
|
|
886
1001
|
*/
|
|
@@ -888,7 +1003,7 @@ export declare interface FirebaseLegacyNativeMessage {
|
|
|
888
1003
|
/**
|
|
889
1004
|
* Used to identify a group of messages.
|
|
890
1005
|
*/
|
|
891
|
-
|
|
1006
|
+
collapse_key?: string;
|
|
892
1007
|
/**
|
|
893
1008
|
* The priority of the message.
|
|
894
1009
|
*/
|
|
@@ -897,24 +1012,24 @@ export declare interface FirebaseLegacyNativeMessage {
|
|
|
897
1012
|
* The background notification flag. To perform a silent background update,
|
|
898
1013
|
* specify the value 1 and don’t include the alert, badge, or sound keys in your payload.
|
|
899
1014
|
*/
|
|
900
|
-
|
|
1015
|
+
content_available?: boolean;
|
|
901
1016
|
/**
|
|
902
1017
|
* The notification service app extension flag. If the value is 1, the system passes
|
|
903
1018
|
* the notification to your notification service app extension before delivery.
|
|
904
1019
|
*/
|
|
905
|
-
|
|
1020
|
+
mutable_content?: number;
|
|
906
1021
|
/**
|
|
907
1022
|
* Specifies how long (in seconds) the message should be kept in FCM storage if the device is offline
|
|
908
1023
|
*/
|
|
909
|
-
|
|
1024
|
+
time_to_live?: number;
|
|
910
1025
|
/**
|
|
911
1026
|
* The package name of the application where the registration tokens must match in order to receive the message.
|
|
912
1027
|
*/
|
|
913
|
-
|
|
1028
|
+
restricted_package_name?: string;
|
|
914
1029
|
/**
|
|
915
1030
|
* When set to true, allows developers to test a request without actually sending a message.
|
|
916
1031
|
*/
|
|
917
|
-
|
|
1032
|
+
dry_run?: boolean;
|
|
918
1033
|
/**
|
|
919
1034
|
* Custom key-value pairs of the message's payload.
|
|
920
1035
|
*/
|
|
@@ -924,6 +1039,19 @@ export declare interface FirebaseLegacyNativeMessage {
|
|
|
924
1039
|
*/
|
|
925
1040
|
notification?: FirebaseLegacyAppleNativePayload | FirebaseLegacyAndroidNativePayload | FirebaseLegacyWebNativePayload;
|
|
926
1041
|
}
|
|
1042
|
+
/**
|
|
1043
|
+
* Describes an Firebase Legacy Registration channel query.
|
|
1044
|
+
*/
|
|
1045
|
+
export declare interface FirebaseLegacyRegistrationChannel {
|
|
1046
|
+
/**
|
|
1047
|
+
* The FCM Legacy registration ID.
|
|
1048
|
+
*/
|
|
1049
|
+
gcmRegistrationId: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* The kind of the registration channel.
|
|
1052
|
+
*/
|
|
1053
|
+
kind: "gcm";
|
|
1054
|
+
}
|
|
927
1055
|
/**
|
|
928
1056
|
* Represents an Web Push native payload for the Firebase Legacy HTTP interface.
|
|
929
1057
|
*/
|
|
@@ -943,29 +1071,39 @@ export declare interface FirebaseLegacyWebNativePayload {
|
|
|
943
1071
|
/**
|
|
944
1072
|
* The action associated with a user click on the notification.
|
|
945
1073
|
*/
|
|
946
|
-
|
|
1074
|
+
click_action?: string;
|
|
947
1075
|
}
|
|
948
1076
|
/**
|
|
949
1077
|
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
950
1078
|
*/
|
|
951
|
-
export declare interface GcmRegistrationDescription extends
|
|
1079
|
+
export declare interface GcmRegistrationDescription extends GcmRegistrationDescriptionCommon {
|
|
952
1080
|
/**
|
|
953
|
-
*
|
|
1081
|
+
* The kind of the registration.
|
|
954
1082
|
*/
|
|
955
|
-
|
|
1083
|
+
kind: "Gcm";
|
|
1084
|
+
}
|
|
1085
|
+
/**
|
|
1086
|
+
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
1087
|
+
*/
|
|
1088
|
+
export declare interface GcmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
956
1089
|
/**
|
|
957
|
-
*
|
|
1090
|
+
* Registration id obtained from the Google Cloud Messaging service.
|
|
958
1091
|
*/
|
|
959
|
-
|
|
1092
|
+
gcmRegistrationId: string;
|
|
960
1093
|
}
|
|
961
1094
|
/**
|
|
962
1095
|
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
963
1096
|
*/
|
|
964
|
-
export declare interface GcmTemplateRegistrationDescription extends
|
|
1097
|
+
export declare interface GcmTemplateRegistrationDescription extends GcmTemplateRegistrationDescriptionCommon {
|
|
965
1098
|
/**
|
|
966
|
-
* The
|
|
1099
|
+
* The kind of the registration.
|
|
967
1100
|
*/
|
|
968
|
-
|
|
1101
|
+
kind: "GcmTemplate";
|
|
1102
|
+
}
|
|
1103
|
+
/**
|
|
1104
|
+
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
1105
|
+
*/
|
|
1106
|
+
export declare interface GcmTemplateRegistrationDescriptionCommon extends GcmRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
969
1107
|
}
|
|
970
1108
|
/**
|
|
971
1109
|
* Represents the types of installations available in Notification Hubs.
|
|
@@ -991,10 +1129,6 @@ export declare interface InstallationCommon {
|
|
|
991
1129
|
* The last update date of the installation.
|
|
992
1130
|
*/
|
|
993
1131
|
readonly lastUpdate?: string;
|
|
994
|
-
/**
|
|
995
|
-
* The platform for the installation.
|
|
996
|
-
*/
|
|
997
|
-
platform: "apns" | "adm" | "baidu" | "browser" | "gcm" | "wns";
|
|
998
1132
|
/**
|
|
999
1133
|
* The tags used for targeting this installation.
|
|
1000
1134
|
*/
|
|
@@ -1055,29 +1189,55 @@ export declare type JsonPatchOperation = "add" | "remove" | "replace";
|
|
|
1055
1189
|
* Represents a Windows Phone Notification Services registration description.
|
|
1056
1190
|
* @deprecated Windows Phone is no longer supported.
|
|
1057
1191
|
*/
|
|
1058
|
-
export declare interface MpnsRegistrationDescription extends
|
|
1192
|
+
export declare interface MpnsRegistrationDescription extends MpnsRegistrationDescriptionCommon {
|
|
1059
1193
|
/**
|
|
1060
|
-
* The
|
|
1194
|
+
* The kind of the registration.
|
|
1061
1195
|
*/
|
|
1062
|
-
|
|
1196
|
+
kind: "Mpns";
|
|
1197
|
+
}
|
|
1198
|
+
/**
|
|
1199
|
+
* Represents a Windows Phone Notification Services registration description.
|
|
1200
|
+
* @deprecated Windows Phone is no longer supported.
|
|
1201
|
+
*/
|
|
1202
|
+
export declare interface MpnsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
1063
1203
|
/**
|
|
1064
|
-
* The
|
|
1204
|
+
* The channel URI.
|
|
1065
1205
|
*/
|
|
1066
|
-
|
|
1206
|
+
channelUri: string;
|
|
1067
1207
|
}
|
|
1068
1208
|
/**
|
|
1069
1209
|
* Represents a Windows Phone Notification Services template registration.
|
|
1070
1210
|
* @deprecated Windows Phone is no longer supported.
|
|
1071
1211
|
*/
|
|
1072
|
-
export declare interface MpnsTemplateRegistrationDescription extends
|
|
1212
|
+
export declare interface MpnsTemplateRegistrationDescription extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
1073
1213
|
/**
|
|
1074
1214
|
* The WNS headers.
|
|
1075
1215
|
*/
|
|
1076
1216
|
mpnsHeaders?: Record<string, string>;
|
|
1077
1217
|
/**
|
|
1078
|
-
* The
|
|
1218
|
+
* The kind of the registration.
|
|
1079
1219
|
*/
|
|
1080
|
-
|
|
1220
|
+
kind: "MpnsTemplate";
|
|
1221
|
+
}
|
|
1222
|
+
/**
|
|
1223
|
+
* Represents a Windows Phone Notification Services template registration.
|
|
1224
|
+
* @deprecated Windows Phone is no longer supported.
|
|
1225
|
+
*/
|
|
1226
|
+
export declare interface MpnsTemplateRegistrationDescription extends MpnsTemplateRegistrationDescriptionCommon {
|
|
1227
|
+
/**
|
|
1228
|
+
* The kind of the registration.
|
|
1229
|
+
*/
|
|
1230
|
+
kind: "MpnsTemplate";
|
|
1231
|
+
}
|
|
1232
|
+
/**
|
|
1233
|
+
* Represents a Windows Phone Notification Services template registration.
|
|
1234
|
+
* @deprecated Windows Phone is no longer supported.
|
|
1235
|
+
*/
|
|
1236
|
+
export declare interface MpnsTemplateRegistrationDescriptionCommon extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
1237
|
+
/**
|
|
1238
|
+
* The WNS headers.
|
|
1239
|
+
*/
|
|
1240
|
+
mpnsHeaders?: Record<string, string>;
|
|
1081
1241
|
}
|
|
1082
1242
|
/**
|
|
1083
1243
|
* Represents the possible push notification messages types.
|
|
@@ -1095,14 +1255,6 @@ export declare interface NotificationCommon {
|
|
|
1095
1255
|
* The headers to include for the push notification.
|
|
1096
1256
|
*/
|
|
1097
1257
|
headers?: Record<string, string>;
|
|
1098
|
-
/**
|
|
1099
|
-
* The platform for the push notification.
|
|
1100
|
-
*/
|
|
1101
|
-
platform: string;
|
|
1102
|
-
/**
|
|
1103
|
-
* The content type for the push notification.
|
|
1104
|
-
*/
|
|
1105
|
-
contentType: string;
|
|
1106
1258
|
}
|
|
1107
1259
|
/**
|
|
1108
1260
|
* Represents Notification details.
|
|
@@ -1151,27 +1303,27 @@ export declare interface NotificationDetails {
|
|
|
1151
1303
|
/**
|
|
1152
1304
|
* APNs outcomes counts per state.
|
|
1153
1305
|
*/
|
|
1154
|
-
apnsOutcomeCounts?:
|
|
1306
|
+
apnsOutcomeCounts?: NotificationOutcome[];
|
|
1155
1307
|
/**
|
|
1156
1308
|
* WNS outcomes counts per state.
|
|
1157
1309
|
*/
|
|
1158
|
-
wnsOutcomeCounts?:
|
|
1310
|
+
wnsOutcomeCounts?: NotificationOutcome[];
|
|
1159
1311
|
/**
|
|
1160
1312
|
* FCM outcome counts per state.
|
|
1161
1313
|
*/
|
|
1162
|
-
fcmOutcomeCounts?:
|
|
1314
|
+
fcmOutcomeCounts?: NotificationOutcome[];
|
|
1163
1315
|
/**
|
|
1164
1316
|
* ADM outcome counts per state.
|
|
1165
1317
|
*/
|
|
1166
|
-
admOutcomeCounts?:
|
|
1318
|
+
admOutcomeCounts?: NotificationOutcome[];
|
|
1167
1319
|
/**
|
|
1168
1320
|
* Baidu outcome counts per state.
|
|
1169
1321
|
*/
|
|
1170
|
-
baiduOutcomeCounts?:
|
|
1322
|
+
baiduOutcomeCounts?: NotificationOutcome[];
|
|
1171
1323
|
/**
|
|
1172
1324
|
* Web Push outcome counts per state.
|
|
1173
1325
|
*/
|
|
1174
|
-
browserOutcomeCounts?:
|
|
1326
|
+
browserOutcomeCounts?: NotificationOutcome[];
|
|
1175
1327
|
}
|
|
1176
1328
|
/**
|
|
1177
1329
|
* Represents a Notification Hub Job.
|
|
@@ -1230,6 +1382,10 @@ export declare interface NotificationHubJob {
|
|
|
1230
1382
|
*/
|
|
1231
1383
|
updatedAt?: Date;
|
|
1232
1384
|
}
|
|
1385
|
+
/**
|
|
1386
|
+
* Describes a poller for NotificationHubJob types.
|
|
1387
|
+
*/
|
|
1388
|
+
export declare type NotificationHubJobPoller = SimplePollerLike<OperationState<NotificationHubJob>, NotificationHubJob>;
|
|
1233
1389
|
/**
|
|
1234
1390
|
* Describes the types of notification hub job statuses.
|
|
1235
1391
|
*/
|
|
@@ -1276,58 +1432,11 @@ export declare type NotificationHubJobType =
|
|
|
1276
1432
|
* Job type to bulk upsert registrations.
|
|
1277
1433
|
*/
|
|
1278
1434
|
| "ImportUpsertRegistrations";
|
|
1279
|
-
/**
|
|
1280
|
-
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
1281
|
-
*/
|
|
1282
|
-
export declare interface NotificationHubsClientOptions extends CommonClientOptions {
|
|
1283
|
-
}
|
|
1284
|
-
/**
|
|
1285
|
-
* Describes a response from the Notification Hubs service for send operations.
|
|
1286
|
-
*/
|
|
1287
|
-
export declare interface NotificationHubsMessageResponse extends NotificationHubsResponse {
|
|
1288
|
-
/**
|
|
1289
|
-
* The notification ID from the operation. Note this is only available in Standard SKU and above.
|
|
1290
|
-
*/
|
|
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;
|
|
1308
|
-
}
|
|
1309
|
-
/**
|
|
1310
|
-
* Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
|
|
1311
|
-
*/
|
|
1312
|
-
export declare interface NotificationHubsResponse {
|
|
1313
|
-
/**
|
|
1314
|
-
* The Tracking ID of the operation.
|
|
1315
|
-
*/
|
|
1316
|
-
trackingId?: string;
|
|
1317
|
-
/**
|
|
1318
|
-
* The correlation ID of the operation.
|
|
1319
|
-
*/
|
|
1320
|
-
correlationId?: string;
|
|
1321
|
-
/**
|
|
1322
|
-
* The location of the operation.
|
|
1323
|
-
*/
|
|
1324
|
-
location?: string;
|
|
1325
|
-
}
|
|
1326
1435
|
/**
|
|
1327
1436
|
* This represents a client for Azure Notification Hubs to manage installations and send
|
|
1328
1437
|
* messages to devices.
|
|
1329
1438
|
*/
|
|
1330
|
-
export declare class
|
|
1439
|
+
export declare class NotificationHubsClient {
|
|
1331
1440
|
private _client;
|
|
1332
1441
|
/**
|
|
1333
1442
|
* Creates a new instance of the NotificationClient with a connection string, hub name and options.
|
|
@@ -1410,10 +1519,17 @@ export declare class NotificationHubsServiceClient {
|
|
|
1410
1519
|
getRegistration(registrationId: string, options?: OperationOptions): Promise<RegistrationDescription>;
|
|
1411
1520
|
/**
|
|
1412
1521
|
* Gets all registrations for the notification hub with the given query options.
|
|
1413
|
-
* @param options - The options for querying the registrations such as $top
|
|
1522
|
+
* @param options - The options for querying the registrations such as $top.
|
|
1414
1523
|
* @returns A paged async iterable containing all of the registrations for the notification hub.
|
|
1415
1524
|
*/
|
|
1416
|
-
listRegistrations(options?:
|
|
1525
|
+
listRegistrations(options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
1526
|
+
/**
|
|
1527
|
+
* Gets all registrations for the notification hub with the given device information and options.
|
|
1528
|
+
* @param channel - The registration channel information to query per PNS type.
|
|
1529
|
+
* @param options - The options for querying the registrations such as $top.
|
|
1530
|
+
* @returns A paged async iterable containing all of the registrations for the notification hub.
|
|
1531
|
+
*/
|
|
1532
|
+
listRegistrationsByChannel(channel: RegistrationChannel, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
1417
1533
|
/**
|
|
1418
1534
|
* Lists all registrations with the matching tag.
|
|
1419
1535
|
* @param tag - The tag to query for matching registrations.
|
|
@@ -1421,52 +1537,22 @@ export declare class NotificationHubsServiceClient {
|
|
|
1421
1537
|
* @returns A paged async iterable containing the matching registrations for the notification hub.
|
|
1422
1538
|
*/
|
|
1423
1539
|
listRegistrationsByTag(tag: string, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
1424
|
-
/**
|
|
1425
|
-
* Sends a direct push notification to a device with the given push handle.
|
|
1426
|
-
* @param pushHandle - The push handle which is the unique identifier for the device.
|
|
1427
|
-
* @param notification - The notification to send to the device.
|
|
1428
|
-
* @param options - The options for sending a direct notification.
|
|
1429
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1430
|
-
*/
|
|
1431
|
-
sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1432
1540
|
/**
|
|
1433
1541
|
* Sends push notifications to devices that match the given tags or tag expression.
|
|
1434
|
-
* @param tags - The tags used to target the device for push notifications in either an array or tag expression.
|
|
1435
1542
|
* @param notification - The notification to send to the matching devices.
|
|
1436
|
-
* @param options -
|
|
1437
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
1543
|
+
* @param options - Options for the notification including tags, device handles and whether to enable test send.
|
|
1438
1544
|
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1439
1545
|
*/
|
|
1440
|
-
sendNotification(
|
|
1441
|
-
/**
|
|
1442
|
-
* Sends push notifications to all devices on the Notification Hub.
|
|
1443
|
-
* @param notification - The notification to send to all devices.
|
|
1444
|
-
* @param options - Configuration options for the direct send operation which can contain custom headers
|
|
1445
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
1446
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1447
|
-
*/
|
|
1448
|
-
sendBroadcastNotification(notification: Notification, options?: SendOperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1546
|
+
sendNotification(notification: Notification, options?: DirectSendNotificationOptions | SendNotificationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1449
1547
|
/**
|
|
1450
1548
|
* Schedules a push notification to devices that match the given tags or tag expression at the specified time.
|
|
1451
1549
|
* NOTE: This is only available in Standard SKU Azure Notification Hubs.
|
|
1452
1550
|
* @param scheduledTime - The Date to send the push notification.
|
|
1453
|
-
* @param tags - The tags used to target the device for push notifications in either an array or tag expression.
|
|
1454
|
-
* @param notification - The notification to send to the matching devices.
|
|
1455
|
-
* @param options - Configuration options for the direct send operation which can contain custom headers
|
|
1456
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
1457
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1458
|
-
*/
|
|
1459
|
-
scheduleNotification(scheduledTime: Date, tags: string[] | string, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1460
|
-
/**
|
|
1461
|
-
* Schedules a push notification to all devices registered on the Notification Hub.
|
|
1462
|
-
* NOTE: This is only available in Standard SKU Azure Notification Hubs.
|
|
1463
|
-
* @param scheduledTime - The Date to send the push notification.
|
|
1464
1551
|
* @param notification - The notification to send to the matching devices.
|
|
1465
|
-
* @param options -
|
|
1466
|
-
* which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
|
|
1552
|
+
* @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.
|
|
1467
1553
|
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1468
1554
|
*/
|
|
1469
|
-
|
|
1555
|
+
scheduleNotification(scheduledTime: Date, notification: Notification, options?: ScheduleNotificationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1470
1556
|
/**
|
|
1471
1557
|
* Cancels the scheduled notification with the given notification ID.
|
|
1472
1558
|
* @param notificationId - The notification ID from the scheduled notification.
|
|
@@ -1496,6 +1582,13 @@ export declare class NotificationHubsServiceClient {
|
|
|
1496
1582
|
* @returns The Notification Hub Job with the matching ID.
|
|
1497
1583
|
*/
|
|
1498
1584
|
getNotificationHubJob(jobId: string, options?: OperationOptions): Promise<NotificationHubJob>;
|
|
1585
|
+
/**
|
|
1586
|
+
* Submits a Notification Hub job and creates a poller to poll for results.
|
|
1587
|
+
* @param notificationHubJob - The Notification Hub import/export job to start.
|
|
1588
|
+
* @param options - The operation options.
|
|
1589
|
+
* @returns A poller which can be called to poll until completion of the job.
|
|
1590
|
+
*/
|
|
1591
|
+
beginSubmitNotificationHubJob(notificationHubJob: NotificationHubJob, options?: PolledOperationOptions): Promise<NotificationHubJobPoller>;
|
|
1499
1592
|
/**
|
|
1500
1593
|
* Submits a Notification Hub Job. Note this is available to Standard SKU namespace and above.
|
|
1501
1594
|
* @param job - The notification hub job to submit.
|
|
@@ -1510,10 +1603,57 @@ export declare class NotificationHubsServiceClient {
|
|
|
1510
1603
|
*/
|
|
1511
1604
|
listNotificationHubJobs(options?: OperationOptions): Promise<NotificationHubJob[]>;
|
|
1512
1605
|
}
|
|
1606
|
+
/**
|
|
1607
|
+
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
1608
|
+
*/
|
|
1609
|
+
export declare interface NotificationHubsClientOptions extends CommonClientOptions {
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Describes a response from the Notification Hubs service for send operations.
|
|
1613
|
+
*/
|
|
1614
|
+
export declare interface NotificationHubsMessageResponse extends NotificationHubsResponse {
|
|
1615
|
+
/**
|
|
1616
|
+
* The notification ID from the operation. Note this is only available in Standard SKU and above.
|
|
1617
|
+
*/
|
|
1618
|
+
notificationId?: string;
|
|
1619
|
+
/**
|
|
1620
|
+
* The number of devices that successfully received the notification.
|
|
1621
|
+
*/
|
|
1622
|
+
successCount: number;
|
|
1623
|
+
/**
|
|
1624
|
+
* The number of devices that failed to receive a notification.
|
|
1625
|
+
*/
|
|
1626
|
+
failureCount: number;
|
|
1627
|
+
/**
|
|
1628
|
+
* The list of notification outcome results for each device registered with the hub, to which this notification was sent.
|
|
1629
|
+
*/
|
|
1630
|
+
results: RegistrationResult[];
|
|
1631
|
+
/**
|
|
1632
|
+
* The state of this notification outcome.
|
|
1633
|
+
*/
|
|
1634
|
+
state: NotificationOutcomeState;
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
|
|
1638
|
+
*/
|
|
1639
|
+
export declare interface NotificationHubsResponse {
|
|
1640
|
+
/**
|
|
1641
|
+
* The Tracking ID of the operation.
|
|
1642
|
+
*/
|
|
1643
|
+
trackingId?: string;
|
|
1644
|
+
/**
|
|
1645
|
+
* The correlation ID of the operation.
|
|
1646
|
+
*/
|
|
1647
|
+
correlationId?: string;
|
|
1648
|
+
/**
|
|
1649
|
+
* The location of the operation.
|
|
1650
|
+
*/
|
|
1651
|
+
location?: string;
|
|
1652
|
+
}
|
|
1513
1653
|
/**
|
|
1514
1654
|
* The per platform count per state.
|
|
1515
1655
|
*/
|
|
1516
|
-
export declare interface
|
|
1656
|
+
export declare interface NotificationOutcome {
|
|
1517
1657
|
/**
|
|
1518
1658
|
* The state of the notification.
|
|
1519
1659
|
*/
|
|
@@ -1527,10 +1667,23 @@ export declare interface NotificationOutcomeCollectionItem {
|
|
|
1527
1667
|
* Represents the notification outcome states.
|
|
1528
1668
|
*/
|
|
1529
1669
|
export declare type NotificationOutcomeState = "Enqueued" | "DetailedStateAvailable" | "Processing" | "Completed" | "Abandoned" | "Unknown" | "NoTargetFound" | "Cancelled";
|
|
1670
|
+
/**
|
|
1671
|
+
* Options for polled operations including the polling interval cycle.
|
|
1672
|
+
*/
|
|
1673
|
+
export declare interface PolledOperationOptions extends OperationOptions {
|
|
1674
|
+
/**
|
|
1675
|
+
* Time delay between poll requests, in milliseconds.
|
|
1676
|
+
*/
|
|
1677
|
+
updateIntervalInMs?: number;
|
|
1678
|
+
}
|
|
1530
1679
|
/**
|
|
1531
1680
|
* Represents the types of push channels available for Notification Hubs.
|
|
1532
1681
|
*/
|
|
1533
1682
|
export declare type PushHandle = BrowserPushChannel | string;
|
|
1683
|
+
/**
|
|
1684
|
+
* Describes a Registration query.
|
|
1685
|
+
*/
|
|
1686
|
+
export declare type RegistrationChannel = AdmRegistrationChannel | AppleRegistrationChannel | BaiduRegistrationChannel | BrowserRegistrationChannel | FirebaseLegacyRegistrationChannel | WindowsRegistrationChannel;
|
|
1534
1687
|
/**
|
|
1535
1688
|
* Describes the types of registration descriptions.
|
|
1536
1689
|
*/
|
|
@@ -1559,10 +1712,6 @@ export declare interface RegistrationDescriptionCommon {
|
|
|
1559
1712
|
* A dictionary of push variables associated with property bag.
|
|
1560
1713
|
*/
|
|
1561
1714
|
pushVariables?: Record<string, string>;
|
|
1562
|
-
/**
|
|
1563
|
-
* The type of the registration.
|
|
1564
|
-
*/
|
|
1565
|
-
type: RegistrationType;
|
|
1566
1715
|
}
|
|
1567
1716
|
/**
|
|
1568
1717
|
* Represents query options to include $top support.
|
|
@@ -1621,9 +1770,24 @@ export declare interface RegistrationResult {
|
|
|
1621
1770
|
*/
|
|
1622
1771
|
export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "Mpns" | "MpnsTemplate" | "Windows" | "WindowsTemplate";
|
|
1623
1772
|
/**
|
|
1624
|
-
*
|
|
1773
|
+
* Options for sending notifications for both tag based send and broadcast scheduled send.
|
|
1774
|
+
*/
|
|
1775
|
+
export declare interface ScheduleNotificationOptions extends OperationOptions {
|
|
1776
|
+
/**
|
|
1777
|
+
* A tag expression used to target devices. Use the `createTagExpression` function to create a tag expression from an array of tags.
|
|
1778
|
+
* If not set, this results in a broadcast notification to be scheduled.
|
|
1779
|
+
*/
|
|
1780
|
+
tagExpression?: string;
|
|
1781
|
+
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Options for sending notifications for both tag based send and broadcast send.
|
|
1625
1784
|
*/
|
|
1626
|
-
export declare interface
|
|
1785
|
+
export declare interface SendNotificationOptions extends OperationOptions {
|
|
1786
|
+
/**
|
|
1787
|
+
* A tag expression used to target devices. Use the `createTagExpression` function to create a tag expression from an array of tags.
|
|
1788
|
+
* If not set, this results in a broadcast notification to be sent.
|
|
1789
|
+
*/
|
|
1790
|
+
tagExpression?: string;
|
|
1627
1791
|
/**
|
|
1628
1792
|
* Set to true to enable test send.
|
|
1629
1793
|
*/
|
|
@@ -1690,30 +1854,53 @@ export declare interface WindowsNotification extends NotificationCommon {
|
|
|
1690
1854
|
*/
|
|
1691
1855
|
contentType: WindowsContentType;
|
|
1692
1856
|
}
|
|
1857
|
+
/**
|
|
1858
|
+
* Describes an Windows Notification Services Registration channel query.
|
|
1859
|
+
*/
|
|
1860
|
+
export declare interface WindowsRegistrationChannel {
|
|
1861
|
+
/**
|
|
1862
|
+
* The WNS Channel URI.
|
|
1863
|
+
*/
|
|
1864
|
+
channelUri: string;
|
|
1865
|
+
/**
|
|
1866
|
+
* The kind of the registration channel.
|
|
1867
|
+
*/
|
|
1868
|
+
kind: "windows";
|
|
1869
|
+
}
|
|
1693
1870
|
/**
|
|
1694
1871
|
* Represents a Windows Notification Services (WNS) registration description.
|
|
1695
1872
|
*/
|
|
1696
|
-
export declare interface WindowsRegistrationDescription extends
|
|
1873
|
+
export declare interface WindowsRegistrationDescription extends WindowsRegistrationDescriptionCommon {
|
|
1874
|
+
/**
|
|
1875
|
+
* The kind of the registration.
|
|
1876
|
+
*/
|
|
1877
|
+
kind: "Windows";
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* Represents a Windows Notification Services (WNS) registration description.
|
|
1881
|
+
*/
|
|
1882
|
+
export declare interface WindowsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
1697
1883
|
/**
|
|
1698
1884
|
* The channel URI.
|
|
1699
1885
|
*/
|
|
1700
1886
|
channelUri: string;
|
|
1887
|
+
}
|
|
1888
|
+
/**
|
|
1889
|
+
* Represents a Windows Notification Services (WNS) template registration.
|
|
1890
|
+
*/
|
|
1891
|
+
export declare interface WindowsTemplateRegistrationDescription extends WindowsTemplateRegistrationDescriptionCommon {
|
|
1701
1892
|
/**
|
|
1702
|
-
* The
|
|
1893
|
+
* The kind of the registration.
|
|
1703
1894
|
*/
|
|
1704
|
-
|
|
1895
|
+
kind: "WindowsTemplate";
|
|
1705
1896
|
}
|
|
1706
1897
|
/**
|
|
1707
1898
|
* Represents a Windows Notification Services (WNS) template registration.
|
|
1708
1899
|
*/
|
|
1709
|
-
export declare interface
|
|
1900
|
+
export declare interface WindowsTemplateRegistrationDescriptionCommon extends WindowsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
1710
1901
|
/**
|
|
1711
1902
|
* The WNS headers.
|
|
1712
1903
|
*/
|
|
1713
1904
|
wnsHeaders?: Record<string, string>;
|
|
1714
|
-
/**
|
|
1715
|
-
* The type of the registration.
|
|
1716
|
-
*/
|
|
1717
|
-
type: "WindowsTemplate";
|
|
1718
1905
|
}
|
|
1719
1906
|
export {};
|