@azure/notification-hubs 2.0.1-alpha.20241112.1 → 2.0.1-alpha.20241113.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/notification-hubs.d.ts +0 -189
- package/package.json +1 -1
- package/dist/api/notification-hubs.d.ts +0 -1472
- package/dist/models/notification-hubs.d.ts +0 -2636
|
@@ -1,1472 +0,0 @@
|
|
|
1
|
-
import type { ClientOptions } from '@azure-rest/core-client';
|
|
2
|
-
import type { HttpHeaders } from '@azure/core-rest-pipeline';
|
|
3
|
-
import type { OperationOptions } from '@azure-rest/core-client';
|
|
4
|
-
import type { OperationState } from '@azure/core-lro';
|
|
5
|
-
import type { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
6
|
-
import type { PipelineRequest } from '@azure/core-rest-pipeline';
|
|
7
|
-
import type { PipelineResponse } from '@azure/core-rest-pipeline';
|
|
8
|
-
import type { PollerLike } from '@azure/core-lro';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Represents an Amazon Device Messaging (ADM) based installation.
|
|
12
|
-
*/
|
|
13
|
-
declare interface AdmInstallation extends DeviceTokenInstallation {
|
|
14
|
-
/**
|
|
15
|
-
* The platform for the installation.
|
|
16
|
-
*/
|
|
17
|
-
platform: "adm";
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* Represents an Amazon Device Messaging (ADM) push notification.
|
|
22
|
-
*/
|
|
23
|
-
declare interface AdmNotification extends JsonNotification {
|
|
24
|
-
/**
|
|
25
|
-
* The platform for the push notification.
|
|
26
|
-
*/
|
|
27
|
-
platform: "adm";
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Describes an ADM Registration channel query.
|
|
32
|
-
*/
|
|
33
|
-
declare interface AdmRegistrationChannel {
|
|
34
|
-
/**
|
|
35
|
-
* The ADM Registration ID.
|
|
36
|
-
*/
|
|
37
|
-
admRegistrationId: string;
|
|
38
|
-
/**
|
|
39
|
-
* The kind of the registration channel.
|
|
40
|
-
*/
|
|
41
|
-
kind: "adm";
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* Represents the description of the Amazon Device Messaging (ADM) registration.
|
|
46
|
-
*/
|
|
47
|
-
declare interface AdmRegistrationDescription extends AdmRegistrationDescriptionCommon {
|
|
48
|
-
/**
|
|
49
|
-
* The kind of the registration.
|
|
50
|
-
*/
|
|
51
|
-
kind: "Adm";
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
declare interface AdmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
55
|
-
/**
|
|
56
|
-
* The Amazon Device Messaging registration identifier.
|
|
57
|
-
*/
|
|
58
|
-
admRegistrationId: string;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
63
|
-
*/
|
|
64
|
-
declare interface AdmTemplateRegistrationDescription extends AdmTemplateRegistrationDescriptionCommon {
|
|
65
|
-
/**
|
|
66
|
-
* The kind of the registration.
|
|
67
|
-
*/
|
|
68
|
-
kind: "AdmTemplate";
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
73
|
-
*/
|
|
74
|
-
declare interface AdmTemplateRegistrationDescriptionCommon extends AdmRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* Represents an Apple APNs based installation.
|
|
79
|
-
*/
|
|
80
|
-
declare interface AppleInstallation extends DeviceTokenInstallation {
|
|
81
|
-
/**
|
|
82
|
-
* The platform for the installation.
|
|
83
|
-
*/
|
|
84
|
-
platform: "apns";
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Represents an Apple APNs push notification.
|
|
89
|
-
*/
|
|
90
|
-
declare interface AppleNotification extends JsonNotification {
|
|
91
|
-
/**
|
|
92
|
-
* The platform for the push notification.
|
|
93
|
-
*/
|
|
94
|
-
platform: "apple";
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Describes an Apple Registration channel query.
|
|
99
|
-
*/
|
|
100
|
-
declare interface AppleRegistrationChannel {
|
|
101
|
-
/**
|
|
102
|
-
* The APNs device token.
|
|
103
|
-
*/
|
|
104
|
-
deviceToken: string;
|
|
105
|
-
/**
|
|
106
|
-
* The kind of the registration channel.
|
|
107
|
-
*/
|
|
108
|
-
kind: "apple";
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Represents the description of apple registration.
|
|
113
|
-
*/
|
|
114
|
-
declare interface AppleRegistrationDescription extends AppleRegistrationDescriptionCommon {
|
|
115
|
-
/**
|
|
116
|
-
* The kind of the registration.
|
|
117
|
-
*/
|
|
118
|
-
kind: "Apple";
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Represents the description of apple registration.
|
|
123
|
-
*/
|
|
124
|
-
declare interface AppleRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
125
|
-
/**
|
|
126
|
-
* The APNs device token.
|
|
127
|
-
*/
|
|
128
|
-
deviceToken: string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Represents the description of the Apple template registration.
|
|
133
|
-
*/
|
|
134
|
-
declare interface AppleTemplateRegistrationDescription extends AppleTemplateRegistrationDescriptionCommon {
|
|
135
|
-
/**
|
|
136
|
-
* The kind of the registration.
|
|
137
|
-
*/
|
|
138
|
-
kind: "AppleTemplate";
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Represents the description of the Apple template registration.
|
|
143
|
-
*/
|
|
144
|
-
declare interface AppleTemplateRegistrationDescriptionCommon extends AppleRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
145
|
-
/**
|
|
146
|
-
* The expiry date.
|
|
147
|
-
*/
|
|
148
|
-
expiry?: Date;
|
|
149
|
-
/**
|
|
150
|
-
* The notification priority.
|
|
151
|
-
*/
|
|
152
|
-
priority?: "10" | "5";
|
|
153
|
-
/**
|
|
154
|
-
* The APNS headers.
|
|
155
|
-
*/
|
|
156
|
-
apnsHeaders?: Record<string, string>;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Represents a Baidu based installation.
|
|
161
|
-
*/
|
|
162
|
-
declare interface BaiduInstallation extends DeviceTokenInstallation {
|
|
163
|
-
/**
|
|
164
|
-
* The platform for the installation.
|
|
165
|
-
*/
|
|
166
|
-
platform: "baidu";
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/**
|
|
170
|
-
* Represents a Baidu push notification.
|
|
171
|
-
*/
|
|
172
|
-
declare interface BaiduNotification extends JsonNotification {
|
|
173
|
-
/**
|
|
174
|
-
* The platform for the push notification.
|
|
175
|
-
*/
|
|
176
|
-
platform: "baidu";
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* Describes an Baidu Registration channel query.
|
|
181
|
-
*/
|
|
182
|
-
declare interface BaiduRegistrationChannel {
|
|
183
|
-
/**
|
|
184
|
-
* The Baidu Channel ID.
|
|
185
|
-
*/
|
|
186
|
-
baiduChannelId: string;
|
|
187
|
-
/**
|
|
188
|
-
* The Baidu User ID.
|
|
189
|
-
*/
|
|
190
|
-
baiduUserId: string;
|
|
191
|
-
/**
|
|
192
|
-
* The kind of the registration channel.
|
|
193
|
-
*/
|
|
194
|
-
kind: "baidu";
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Represents a Baidu registration description.
|
|
199
|
-
*/
|
|
200
|
-
declare interface BaiduRegistrationDescription extends BaiduRegistrationDescriptionCommon {
|
|
201
|
-
/**
|
|
202
|
-
* The kind of the registration.
|
|
203
|
-
*/
|
|
204
|
-
kind: "Baidu";
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
declare interface BaiduRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
208
|
-
/**
|
|
209
|
-
* The Baidu user identifier.
|
|
210
|
-
*/
|
|
211
|
-
baiduUserId: string;
|
|
212
|
-
/**
|
|
213
|
-
* The Baidu channel identifier.
|
|
214
|
-
*/
|
|
215
|
-
baiduChannelId: string;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Represents a Baidu template registration description.
|
|
220
|
-
*/
|
|
221
|
-
declare interface BaiduTemplateRegistrationDescription extends BaiduTemplateRegistrationDescriptionCommon {
|
|
222
|
-
/**
|
|
223
|
-
* The kind of the registration.
|
|
224
|
-
*/
|
|
225
|
-
kind: "BaiduTemplate";
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* Represents a Baidu template registration description.
|
|
230
|
-
*/
|
|
231
|
-
declare interface BaiduTemplateRegistrationDescriptionCommon extends BaiduRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Submits a Notification Hub job and creates a poller to poll for results.
|
|
236
|
-
* @param context - The Notification Hubs client.
|
|
237
|
-
* @param notificationHubJob - The Notification Hub import/export job to start.
|
|
238
|
-
* @param options - The operation options.
|
|
239
|
-
* @returns A poller which can be called to poll until completion of the job.
|
|
240
|
-
*/
|
|
241
|
-
export declare function beginSubmitNotificationHubJob(context: NotificationHubsClientContext, notificationHubJob: NotificationHubJob, polledOperationOptions?: PolledOperationOptions): Promise<NotificationHubJobPoller>;
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Options for sending notifications for test send.
|
|
245
|
-
*/
|
|
246
|
-
declare interface BroadcastSendNotificationOptions extends OperationOptions {
|
|
247
|
-
/**
|
|
248
|
-
* Set to true to enable test send.
|
|
249
|
-
*/
|
|
250
|
-
enableTestSend?: boolean;
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Represents a Browser/Web Push based installation.
|
|
255
|
-
*/
|
|
256
|
-
declare interface BrowserInstallation extends BrowserInstallationCommon {
|
|
257
|
-
/**
|
|
258
|
-
* The platform for the installation.
|
|
259
|
-
*/
|
|
260
|
-
platform: "browser";
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* Represents a Browser/Web Push based installation.
|
|
265
|
-
*/
|
|
266
|
-
declare interface BrowserInstallationCommon extends InstallationCommon {
|
|
267
|
-
/**
|
|
268
|
-
* The push channel for the Web Push API.
|
|
269
|
-
*/
|
|
270
|
-
pushChannel: BrowserPushChannel;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Represents a Browser push notification.
|
|
275
|
-
*/
|
|
276
|
-
declare interface BrowserNotification extends JsonNotification {
|
|
277
|
-
/**
|
|
278
|
-
* The platform for the push notification.
|
|
279
|
-
*/
|
|
280
|
-
platform: "browser";
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
/**
|
|
284
|
-
* Represents the push channel for a Browser Push installation.
|
|
285
|
-
*/
|
|
286
|
-
declare interface BrowserPushChannel {
|
|
287
|
-
/**
|
|
288
|
-
* The P256DH for the browser push installation.
|
|
289
|
-
*/
|
|
290
|
-
p256dh: string;
|
|
291
|
-
/**
|
|
292
|
-
* The auth secret for the browser push installation.
|
|
293
|
-
*/
|
|
294
|
-
auth: string;
|
|
295
|
-
/**
|
|
296
|
-
* The endpoint URL for the browser push installation.
|
|
297
|
-
*/
|
|
298
|
-
endpoint: string;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
/**
|
|
302
|
-
* Describes an Browser Registration channel query.
|
|
303
|
-
*/
|
|
304
|
-
declare interface BrowserRegistrationChannel {
|
|
305
|
-
/**
|
|
306
|
-
* The Web Push endpoint URL.
|
|
307
|
-
*/
|
|
308
|
-
endpoint: string;
|
|
309
|
-
/**
|
|
310
|
-
* The Web Push subscription P256DH.
|
|
311
|
-
*/
|
|
312
|
-
p256dh: string;
|
|
313
|
-
/**
|
|
314
|
-
* The Web Push subscription auth secret.
|
|
315
|
-
*/
|
|
316
|
-
auth: string;
|
|
317
|
-
/**
|
|
318
|
-
* The kind of the registration channel.
|
|
319
|
-
*/
|
|
320
|
-
kind: "browser";
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/**
|
|
324
|
-
* Represents a Browser Push registration description.
|
|
325
|
-
*/
|
|
326
|
-
declare interface BrowserRegistrationDescription extends BrowserRegistrationDescriptionCommon {
|
|
327
|
-
/**
|
|
328
|
-
* The kind of the registration.
|
|
329
|
-
*/
|
|
330
|
-
kind: "Browser";
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
/**
|
|
334
|
-
* Represents a Browser Push registration description.
|
|
335
|
-
*/
|
|
336
|
-
declare interface BrowserRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
337
|
-
/**
|
|
338
|
-
* The Browser push endpoint.
|
|
339
|
-
*/
|
|
340
|
-
endpoint: string;
|
|
341
|
-
/**
|
|
342
|
-
* The Browser push P256DH.
|
|
343
|
-
*/
|
|
344
|
-
p256dh: string;
|
|
345
|
-
/**
|
|
346
|
-
* The Browser push auth secret.
|
|
347
|
-
*/
|
|
348
|
-
auth: string;
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* Represents a Browser Push remplate registration description.
|
|
353
|
-
*/
|
|
354
|
-
declare interface BrowserTemplateRegistrationDescription extends BrowserTemplateRegistrationDescriptionCommon {
|
|
355
|
-
/**
|
|
356
|
-
* The kind of the registration.
|
|
357
|
-
*/
|
|
358
|
-
kind: "BrowserTemplate";
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Represents a Browser Push remplate registration description.
|
|
363
|
-
*/
|
|
364
|
-
declare interface BrowserTemplateRegistrationDescriptionCommon extends BrowserRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* Cancels the scheduled notification with the given notification ID.
|
|
369
|
-
* NOTE: This is only available in Standard SKU Azure Notification Hubs.
|
|
370
|
-
* @param context - The Notification Hubs client.
|
|
371
|
-
* @param notificationId - The notification ID from the scheduled notification.
|
|
372
|
-
* @param options - The operation options.
|
|
373
|
-
* @returns A notification hub response with correlation ID and tracking ID.
|
|
374
|
-
*/
|
|
375
|
-
export declare function cancelScheduledNotification(context: NotificationHubsClientContext, notificationId: string, options?: OperationOptions): Promise<NotificationHubsResponse>;
|
|
376
|
-
|
|
377
|
-
/**
|
|
378
|
-
* Creates a NotificationHubClient from the Access Policy connection string and hub name.
|
|
379
|
-
* @param connectionString - The Access Policy connection string for the notification hub.
|
|
380
|
-
* @param hubName - The notification hub name.
|
|
381
|
-
* @returns A NotificationHubsClientContext initialized from the connection string and hub name.
|
|
382
|
-
*/
|
|
383
|
-
export declare function createClientContext(connectionString: string, hubName: string, options?: NotificationHubsClientOptions): NotificationHubsClientContext;
|
|
384
|
-
|
|
385
|
-
/**
|
|
386
|
-
* Creates or overwrites an installation to a Notification Hub.
|
|
387
|
-
* @param context - The Notification Hubs client.
|
|
388
|
-
* @param installation - The installation to create or overwrite.
|
|
389
|
-
* @param options - Configuration options for the create or update installation operation.
|
|
390
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
391
|
-
*/
|
|
392
|
-
export declare function createOrUpdateInstallation(context: NotificationHubsClientContext, installation: Installation, options?: OperationOptions): Promise<NotificationHubsResponse>;
|
|
393
|
-
|
|
394
|
-
/**
|
|
395
|
-
* Creates or updates a registration.
|
|
396
|
-
* @param context - The Notification Hubs client.
|
|
397
|
-
* @param registration - The registration to create or update.
|
|
398
|
-
* @param options - The operation options.
|
|
399
|
-
* @returns The created or updated registration description.
|
|
400
|
-
*/
|
|
401
|
-
export declare function createOrUpdateRegistration(context: NotificationHubsClientContext, registration: RegistrationDescription, options?: OperationOptions): Promise<RegistrationDescription>;
|
|
402
|
-
|
|
403
|
-
/**
|
|
404
|
-
* Creates a new registration. This method generates a registration ID,
|
|
405
|
-
* which you can subsequently use to retrieve, update, and delete this registration.
|
|
406
|
-
* @param context - The Notification Hubs client.
|
|
407
|
-
* @param registration - The registration to create.
|
|
408
|
-
* @param options - Options for creating a new registration.
|
|
409
|
-
* @returns The newly created registration description.
|
|
410
|
-
*/
|
|
411
|
-
export declare function createRegistration(context: NotificationHubsClientContext, registration: RegistrationDescription, options?: OperationOptions): Promise<RegistrationDescription>;
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Creates a new registration ID.
|
|
415
|
-
* @param context - The Notification Hubs client.
|
|
416
|
-
* @param options - The options for creating a new registration ID.
|
|
417
|
-
* @returns The newly created registration ID.
|
|
418
|
-
*/
|
|
419
|
-
export declare function createRegistrationId(context: NotificationHubsClientContext, options?: OperationOptions): Promise<string>;
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* Deletes an installation from a Notification Hub.
|
|
423
|
-
* @param context - The Notification Hubs client.
|
|
424
|
-
* @param installationId - The installation ID of the installation to delete.
|
|
425
|
-
* @param options - Configuration options for the installation delete operation.
|
|
426
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
427
|
-
*/
|
|
428
|
-
export declare function deleteInstallation(context: NotificationHubsClientContext, installationId: string, options?: OperationOptions): Promise<NotificationHubsResponse>;
|
|
429
|
-
|
|
430
|
-
/**
|
|
431
|
-
* Deletes a registration with the given registration ID.
|
|
432
|
-
* @param context - The Notification Hubs client.
|
|
433
|
-
* @param registrationId - The registration ID of the registration to delete.
|
|
434
|
-
* @param options - The options for delete operations including the ETag
|
|
435
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
436
|
-
*/
|
|
437
|
-
export declare function deleteRegistration(context: NotificationHubsClientContext, registrationId: string, options?: EntityOperationOptions): Promise<NotificationHubsResponse>;
|
|
438
|
-
|
|
439
|
-
/**
|
|
440
|
-
* Represents an installation with a string based device token.
|
|
441
|
-
*/
|
|
442
|
-
declare interface DeviceTokenInstallation extends InstallationCommon {
|
|
443
|
-
/**
|
|
444
|
-
* The push channel for a device.
|
|
445
|
-
*/
|
|
446
|
-
pushChannel: string;
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* Options for sending notifications to individual devices.
|
|
451
|
-
*/
|
|
452
|
-
declare interface DirectSendNotificationOptions extends OperationOptions {
|
|
453
|
-
/**
|
|
454
|
-
* 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.
|
|
455
|
-
*/
|
|
456
|
-
deviceHandle: string | BrowserPushChannel | string[];
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* Represents entity update operation options that can be set.
|
|
461
|
-
*/
|
|
462
|
-
declare interface EntityOperationOptions extends OperationOptions {
|
|
463
|
-
/**
|
|
464
|
-
* ETag as returned by creation, update, and retrieval, or ‘*’ (overwrite).
|
|
465
|
-
*/
|
|
466
|
-
etag?: string;
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* Represents a Firebase Legacy HTTP installation.
|
|
471
|
-
*/
|
|
472
|
-
declare interface FcmLegacyInstallation extends DeviceTokenInstallation {
|
|
473
|
-
/**
|
|
474
|
-
* The platform for the installation.
|
|
475
|
-
*/
|
|
476
|
-
platform: "gcm";
|
|
477
|
-
}
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* Represents a Firebase legacy HTTP push notification.
|
|
481
|
-
*/
|
|
482
|
-
declare interface FcmLegacyNotification extends JsonNotification {
|
|
483
|
-
/**
|
|
484
|
-
* The platform for the push notification.
|
|
485
|
-
*/
|
|
486
|
-
platform: "gcm";
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
/**
|
|
490
|
-
* Represents an Firebase V1 Cloud Messaging based installation.
|
|
491
|
-
*/
|
|
492
|
-
declare interface FcmV1Installation extends DeviceTokenInstallation {
|
|
493
|
-
/**
|
|
494
|
-
* The platform for the installation.
|
|
495
|
-
*/
|
|
496
|
-
platform: "fcmv1";
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/**
|
|
500
|
-
* Represents an Firebase V1 API notification that can be sent to a device.
|
|
501
|
-
*/
|
|
502
|
-
declare interface FcmV1Notification extends JsonNotification {
|
|
503
|
-
/**
|
|
504
|
-
* The platform for the push notification.
|
|
505
|
-
*/
|
|
506
|
-
platform: "fcmv1";
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
/**
|
|
510
|
-
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
511
|
-
*/
|
|
512
|
-
declare interface FcmV1RegistrationDescription extends FcmV1RegistrationDescriptionCommon {
|
|
513
|
-
/**
|
|
514
|
-
* The kind of the registration.
|
|
515
|
-
*/
|
|
516
|
-
kind: "FcmV1";
|
|
517
|
-
}
|
|
518
|
-
|
|
519
|
-
/**
|
|
520
|
-
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
521
|
-
*/
|
|
522
|
-
declare interface FcmV1RegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
523
|
-
/**
|
|
524
|
-
* Registration id obtained from the Firebase Cloud Messaging service.
|
|
525
|
-
*/
|
|
526
|
-
fcmV1RegistrationId: string;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* Represents Notification Hub template registration description for Firebase V1 Cloud Messaging.
|
|
531
|
-
*/
|
|
532
|
-
declare interface FcmV1TemplateRegistrationDescription extends FcmV1TemplateRegistrationDescriptionCommon {
|
|
533
|
-
/**
|
|
534
|
-
* The kind of the registration.
|
|
535
|
-
*/
|
|
536
|
-
kind: "FcmV1Template";
|
|
537
|
-
}
|
|
538
|
-
|
|
539
|
-
/**
|
|
540
|
-
* Represents Notification Hub template registration description for Firebase V1 Cloud Messaging.
|
|
541
|
-
*/
|
|
542
|
-
declare interface FcmV1TemplateRegistrationDescriptionCommon extends FcmV1RegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
/**
|
|
546
|
-
* Describes an Firebase Legacy Registration channel query.
|
|
547
|
-
*/
|
|
548
|
-
declare interface FirebaseLegacyRegistrationChannel {
|
|
549
|
-
/**
|
|
550
|
-
* The FCM Legacy registration ID.
|
|
551
|
-
*/
|
|
552
|
-
gcmRegistrationId: string;
|
|
553
|
-
/**
|
|
554
|
-
* The kind of the registration channel.
|
|
555
|
-
*/
|
|
556
|
-
kind: "gcm";
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
/**
|
|
560
|
-
* Describes an Firebase Legacy Registration channel query.
|
|
561
|
-
*/
|
|
562
|
-
declare interface FirebaseV1RegistrationChannel {
|
|
563
|
-
/**
|
|
564
|
-
* The FCM V1 registration ID.
|
|
565
|
-
*/
|
|
566
|
-
fcmV1RegistrationId: string;
|
|
567
|
-
/**
|
|
568
|
-
* The kind of the registration channel.
|
|
569
|
-
*/
|
|
570
|
-
kind: "fcmv1";
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
575
|
-
*/
|
|
576
|
-
declare interface GcmRegistrationDescription extends GcmRegistrationDescriptionCommon {
|
|
577
|
-
/**
|
|
578
|
-
* The kind of the registration.
|
|
579
|
-
*/
|
|
580
|
-
kind: "Gcm";
|
|
581
|
-
}
|
|
582
|
-
|
|
583
|
-
/**
|
|
584
|
-
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
585
|
-
*/
|
|
586
|
-
declare interface GcmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
587
|
-
/**
|
|
588
|
-
* Registration id obtained from the Google Cloud Messaging service.
|
|
589
|
-
*/
|
|
590
|
-
gcmRegistrationId: string;
|
|
591
|
-
}
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
595
|
-
*/
|
|
596
|
-
declare interface GcmTemplateRegistrationDescription extends GcmTemplateRegistrationDescriptionCommon {
|
|
597
|
-
/**
|
|
598
|
-
* The kind of the registration.
|
|
599
|
-
*/
|
|
600
|
-
kind: "GcmTemplate";
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
605
|
-
*/
|
|
606
|
-
declare interface GcmTemplateRegistrationDescriptionCommon extends GcmRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
607
|
-
}
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* Retrieves an Azure Storage container URL. The container has feedback data for the notification hub.
|
|
611
|
-
* The caller can then use the Azure Storage Services SDK to retrieve the contents of the container.
|
|
612
|
-
* @param context - The Notification Hubs client.
|
|
613
|
-
* @param options - The options for getting the push notification feedback container URL.
|
|
614
|
-
* @returns The URL of the Azure Storage Container containing the feedback data.
|
|
615
|
-
*/
|
|
616
|
-
export declare function getFeedbackContainerUrl(context: NotificationHubsClientContext, options?: OperationOptions): Promise<string>;
|
|
617
|
-
|
|
618
|
-
/**
|
|
619
|
-
* Gets an Azure Notification Hub installation by the installation ID.
|
|
620
|
-
* @param context - The Notification Hubs client.
|
|
621
|
-
* @param installationId - The ID of the installation to get.
|
|
622
|
-
* @param options - Configuration options for the get installation operation.
|
|
623
|
-
* @returns The installation that matches the installation ID.
|
|
624
|
-
*/
|
|
625
|
-
export declare function getInstallation(context: NotificationHubsClientContext, installationId: string, options?: OperationOptions): Promise<Installation>;
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Gets a Notification Hub Job by the ID.
|
|
629
|
-
* @param context - The Notification Hubs client.
|
|
630
|
-
* @param jobId - The Notification Hub Job ID.
|
|
631
|
-
* @param options - The operation options.
|
|
632
|
-
* @returns The Notification Hub Job with the matching ID.
|
|
633
|
-
*/
|
|
634
|
-
export declare function getNotificationHubJob(context: NotificationHubsClientContext, jobId: string, options?: OperationOptions): Promise<NotificationHubJob>;
|
|
635
|
-
|
|
636
|
-
/**
|
|
637
|
-
* Retrieves the results of a send operation. This can retrieve intermediate results if the send is being processed
|
|
638
|
-
* or final results if the Send* has completed. This API can only be called for Standard SKU and above.
|
|
639
|
-
* @param context - The Notification Hubs client.
|
|
640
|
-
* @param notificationId - The notification ID returned from the send operation.
|
|
641
|
-
* @param options - The operation options.
|
|
642
|
-
* @returns The results of the send operation.
|
|
643
|
-
*/
|
|
644
|
-
export declare function getNotificationOutcomeDetails(context: NotificationHubsClientContext, notificationId: string, options?: OperationOptions): Promise<NotificationDetails>;
|
|
645
|
-
|
|
646
|
-
/**
|
|
647
|
-
* Gets a registration by the given registration ID.
|
|
648
|
-
* @param context - The Notification Hubs client.
|
|
649
|
-
* @param registrationId - The ID of the registration to get.
|
|
650
|
-
* @param options - The options for getting a registration by ID.
|
|
651
|
-
* @returns A RegistrationDescription that has the given registration ID.
|
|
652
|
-
*/
|
|
653
|
-
export declare function getRegistration(context: NotificationHubsClientContext, registrationId: string, options?: OperationOptions): Promise<RegistrationDescription>;
|
|
654
|
-
|
|
655
|
-
/**
|
|
656
|
-
* Represents the types of installations available in Notification Hubs.
|
|
657
|
-
*/
|
|
658
|
-
declare type Installation = AppleInstallation | AdmInstallation | BaiduInstallation | BrowserInstallation | FcmLegacyInstallation | FcmV1Installation | XiaomiInstallation | WindowsInstallation;
|
|
659
|
-
|
|
660
|
-
/**
|
|
661
|
-
* Represents an installation for a device for Notification Hubs.
|
|
662
|
-
*/
|
|
663
|
-
declare interface InstallationCommon {
|
|
664
|
-
/**
|
|
665
|
-
* The ID for the installation.
|
|
666
|
-
*/
|
|
667
|
-
installationId: string;
|
|
668
|
-
/**
|
|
669
|
-
* The User ID for the installation used for targeting.
|
|
670
|
-
*/
|
|
671
|
-
userId?: string;
|
|
672
|
-
/**
|
|
673
|
-
* The installation expiration time.
|
|
674
|
-
*/
|
|
675
|
-
readonly expirationTime?: string;
|
|
676
|
-
/**
|
|
677
|
-
* The last update date of the installation.
|
|
678
|
-
*/
|
|
679
|
-
readonly lastUpdate?: string;
|
|
680
|
-
/**
|
|
681
|
-
* The tags used for targeting this installation.
|
|
682
|
-
*/
|
|
683
|
-
tags?: string[];
|
|
684
|
-
/**
|
|
685
|
-
* The templates for the installation.
|
|
686
|
-
*/
|
|
687
|
-
templates?: Record<string, InstallationTemplate>;
|
|
688
|
-
/**
|
|
689
|
-
* This parameter is true if the PNS expired the channel.
|
|
690
|
-
*/
|
|
691
|
-
readonly pushChannelExpired?: boolean;
|
|
692
|
-
/**
|
|
693
|
-
* The push variables for the installation.
|
|
694
|
-
*/
|
|
695
|
-
pushVariables?: Record<string, string>;
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
/**
|
|
699
|
-
* Represents an installation template.
|
|
700
|
-
*/
|
|
701
|
-
declare interface InstallationTemplate {
|
|
702
|
-
/**
|
|
703
|
-
* The body for the installation template.
|
|
704
|
-
*/
|
|
705
|
-
body: string;
|
|
706
|
-
/**
|
|
707
|
-
* Headers to include for the template send.
|
|
708
|
-
*/
|
|
709
|
-
headers: Record<string, string>;
|
|
710
|
-
/**
|
|
711
|
-
* The tags to include for the template.
|
|
712
|
-
*/
|
|
713
|
-
tags?: string[];
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
/**
|
|
717
|
-
* Represents a JSON notification hub.
|
|
718
|
-
*/
|
|
719
|
-
declare interface JsonNotification extends NotificationCommon {
|
|
720
|
-
/**
|
|
721
|
-
* The content type for the push notification.
|
|
722
|
-
*/
|
|
723
|
-
contentType: "application/json;charset=utf-8";
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Represents a patch operation.
|
|
728
|
-
*/
|
|
729
|
-
declare interface JsonPatch {
|
|
730
|
-
/**
|
|
731
|
-
* The patch operation.
|
|
732
|
-
*/
|
|
733
|
-
op: JsonPatchOperation;
|
|
734
|
-
/**
|
|
735
|
-
* The path for the patch operation.
|
|
736
|
-
*/
|
|
737
|
-
path: string;
|
|
738
|
-
/**
|
|
739
|
-
* The value to add or replace for the operation.
|
|
740
|
-
*/
|
|
741
|
-
value?: string;
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* Represents the JSON Patch types of add, remove and replace.
|
|
746
|
-
*/
|
|
747
|
-
declare type JsonPatchOperation = "add" | "remove" | "replace";
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* Gets all Notification Hub Jobs for this Notification Hub.
|
|
751
|
-
* @param context - The Notification Hubs client.xs
|
|
752
|
-
* @param options - The operation options.
|
|
753
|
-
* @returns An array of all Notification Hub Jobs for this Notification Hub.
|
|
754
|
-
*/
|
|
755
|
-
export declare function listNotificationHubJobs(context: NotificationHubsClientContext, options?: OperationOptions): Promise<NotificationHubJob[]>;
|
|
756
|
-
|
|
757
|
-
/**
|
|
758
|
-
* Gets all registrations for the notification hub with the given query options.
|
|
759
|
-
* @param context - The Notification Hubs client.
|
|
760
|
-
* @param options - The options for querying the registrations such as $top.
|
|
761
|
-
* @returns A paged async iterable containing all of the registrations for the notification hub.
|
|
762
|
-
*/
|
|
763
|
-
export declare function listRegistrations(context: NotificationHubsClientContext, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
764
|
-
|
|
765
|
-
/**
|
|
766
|
-
* Gets all registrations for the notification hub with the given device information and options.
|
|
767
|
-
* @param context - The Notification Hubs client.
|
|
768
|
-
* @param channel - The Registration channel information to query per PNS type.
|
|
769
|
-
* @param options - The options for querying the registrations such as $top.
|
|
770
|
-
* @returns A paged async iterable containing all of the registrations for the notification hub.
|
|
771
|
-
*/
|
|
772
|
-
export declare function listRegistrationsByChannel(context: NotificationHubsClientContext, channel: RegistrationChannel, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
773
|
-
|
|
774
|
-
/**
|
|
775
|
-
* Lists all registrations with the matching tag.
|
|
776
|
-
* @param context - The Notification Hubs client.
|
|
777
|
-
* @param tag - The tag to query for matching registrations.
|
|
778
|
-
* @param options - The query options such as $top.
|
|
779
|
-
* @returns A paged async iterable containing the matching registrations for the notification hub.
|
|
780
|
-
*/
|
|
781
|
-
export declare function listRegistrationsByTag(context: NotificationHubsClientContext, tag: string, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
782
|
-
|
|
783
|
-
/**
|
|
784
|
-
* Represents a Windows Phone Notification Services registration description.
|
|
785
|
-
* @deprecated Windows Phone is no longer supported.
|
|
786
|
-
*/
|
|
787
|
-
declare interface MpnsRegistrationDescription extends MpnsRegistrationDescriptionCommon {
|
|
788
|
-
/**
|
|
789
|
-
* The kind of the registration.
|
|
790
|
-
*/
|
|
791
|
-
kind: "Mpns";
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Represents a Windows Phone Notification Services registration description.
|
|
796
|
-
* @deprecated Windows Phone is no longer supported.
|
|
797
|
-
*/
|
|
798
|
-
declare interface MpnsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
799
|
-
/**
|
|
800
|
-
* The channel URI.
|
|
801
|
-
*/
|
|
802
|
-
channelUri: string;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
/**
|
|
806
|
-
* Represents a Windows Phone Notification Services template registration.
|
|
807
|
-
* @deprecated Windows Phone is no longer supported.
|
|
808
|
-
*/
|
|
809
|
-
declare interface MpnsTemplateRegistrationDescription extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
810
|
-
/**
|
|
811
|
-
* The WNS headers.
|
|
812
|
-
*/
|
|
813
|
-
mpnsHeaders?: Record<string, string>;
|
|
814
|
-
/**
|
|
815
|
-
* The kind of the registration.
|
|
816
|
-
*/
|
|
817
|
-
kind: "MpnsTemplate";
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
/**
|
|
821
|
-
* Represents a Windows Phone Notification Services template registration.
|
|
822
|
-
* @deprecated Windows Phone is no longer supported.
|
|
823
|
-
*/
|
|
824
|
-
declare interface MpnsTemplateRegistrationDescription extends MpnsTemplateRegistrationDescriptionCommon {
|
|
825
|
-
/**
|
|
826
|
-
* The kind of the registration.
|
|
827
|
-
*/
|
|
828
|
-
kind: "MpnsTemplate";
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
/**
|
|
832
|
-
* Represents a Windows Phone Notification Services template registration.
|
|
833
|
-
* @deprecated Windows Phone is no longer supported.
|
|
834
|
-
*/
|
|
835
|
-
declare interface MpnsTemplateRegistrationDescriptionCommon extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
836
|
-
/**
|
|
837
|
-
* The WNS headers.
|
|
838
|
-
*/
|
|
839
|
-
mpnsHeaders?: Record<string, string>;
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
* Represents the possible push notification messages types.
|
|
844
|
-
*/
|
|
845
|
-
declare type Notification = AppleNotification | AdmNotification | BaiduNotification | BrowserNotification | FcmLegacyNotification | FcmV1Notification | XiaomiNotification | WindowsNotification | TemplateNotification;
|
|
846
|
-
|
|
847
|
-
/**
|
|
848
|
-
* Represents a notification that can be sent to a device.
|
|
849
|
-
*/
|
|
850
|
-
declare interface NotificationCommon {
|
|
851
|
-
/**
|
|
852
|
-
* The body for the push notification.
|
|
853
|
-
*/
|
|
854
|
-
body: string;
|
|
855
|
-
/**
|
|
856
|
-
* The headers to include for the push notification.
|
|
857
|
-
*/
|
|
858
|
-
headers?: Record<string, unknown>;
|
|
859
|
-
}
|
|
860
|
-
|
|
861
|
-
/**
|
|
862
|
-
* Represents Notification details.
|
|
863
|
-
*/
|
|
864
|
-
declare interface NotificationDetails {
|
|
865
|
-
/**
|
|
866
|
-
* The unique notification identifier.
|
|
867
|
-
*/
|
|
868
|
-
notificationId?: string;
|
|
869
|
-
/**
|
|
870
|
-
* The notification location.
|
|
871
|
-
*/
|
|
872
|
-
location?: string;
|
|
873
|
-
/**
|
|
874
|
-
* The notification state.
|
|
875
|
-
*/
|
|
876
|
-
state?: NotificationOutcomeState;
|
|
877
|
-
/**
|
|
878
|
-
* The enqueue time of the notification.
|
|
879
|
-
*/
|
|
880
|
-
enqueueTime?: Date;
|
|
881
|
-
/**
|
|
882
|
-
* The notification send start time.
|
|
883
|
-
*/
|
|
884
|
-
startTime?: Date;
|
|
885
|
-
/**
|
|
886
|
-
* The notification send end time.
|
|
887
|
-
*/
|
|
888
|
-
endTime?: Date;
|
|
889
|
-
/**
|
|
890
|
-
* The notification body.
|
|
891
|
-
*/
|
|
892
|
-
notificationBody?: string;
|
|
893
|
-
/**
|
|
894
|
-
* The notification tags.
|
|
895
|
-
*/
|
|
896
|
-
tags?: string;
|
|
897
|
-
/**
|
|
898
|
-
* The notification platforms targeted.
|
|
899
|
-
*/
|
|
900
|
-
targetPlatforms?: string;
|
|
901
|
-
/**
|
|
902
|
-
* The URL for the platform notification services errors.
|
|
903
|
-
*/
|
|
904
|
-
pnsErrorDetailsUrl?: string;
|
|
905
|
-
/**
|
|
906
|
-
* APNs outcomes counts per state.
|
|
907
|
-
*/
|
|
908
|
-
apnsOutcomeCounts?: NotificationOutcome[];
|
|
909
|
-
/**
|
|
910
|
-
* WNS outcomes counts per state.
|
|
911
|
-
*/
|
|
912
|
-
wnsOutcomeCounts?: NotificationOutcome[];
|
|
913
|
-
/**
|
|
914
|
-
* FCM outcome counts per state.
|
|
915
|
-
*/
|
|
916
|
-
fcmOutcomeCounts?: NotificationOutcome[];
|
|
917
|
-
/**
|
|
918
|
-
* FCM V1 outcome counts per state.
|
|
919
|
-
*/
|
|
920
|
-
fcmV1OutcomeCounts?: NotificationOutcome[];
|
|
921
|
-
/**
|
|
922
|
-
* ADM outcome counts per state.
|
|
923
|
-
*/
|
|
924
|
-
admOutcomeCounts?: NotificationOutcome[];
|
|
925
|
-
/**
|
|
926
|
-
* Baidu outcome counts per state.
|
|
927
|
-
*/
|
|
928
|
-
baiduOutcomeCounts?: NotificationOutcome[];
|
|
929
|
-
/**
|
|
930
|
-
* Web Push outcome counts per state.
|
|
931
|
-
*/
|
|
932
|
-
browserOutcomeCounts?: NotificationOutcome[];
|
|
933
|
-
/**
|
|
934
|
-
* Xiaomi outcome counts per state.
|
|
935
|
-
*/
|
|
936
|
-
xiaomiOutcomeCounts?: NotificationOutcome[];
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
/**
|
|
940
|
-
* Represents a Notification Hub Job.
|
|
941
|
-
*/
|
|
942
|
-
declare interface NotificationHubJob {
|
|
943
|
-
/**
|
|
944
|
-
* The unique job identifier.
|
|
945
|
-
*/
|
|
946
|
-
jobId?: string;
|
|
947
|
-
/**
|
|
948
|
-
* The output file name.
|
|
949
|
-
*/
|
|
950
|
-
outputFileName?: string;
|
|
951
|
-
/**
|
|
952
|
-
* The file name for the job failures.
|
|
953
|
-
*/
|
|
954
|
-
failuresFileName?: string;
|
|
955
|
-
/**
|
|
956
|
-
* The progress for the job.
|
|
957
|
-
*/
|
|
958
|
-
progress?: number;
|
|
959
|
-
/**
|
|
960
|
-
* The type of job.
|
|
961
|
-
*/
|
|
962
|
-
type: NotificationHubJobType;
|
|
963
|
-
/**
|
|
964
|
-
* The status of the job.
|
|
965
|
-
*/
|
|
966
|
-
status?: NotificationHubJobStatus;
|
|
967
|
-
/**
|
|
968
|
-
* The output container URL.
|
|
969
|
-
*/
|
|
970
|
-
outputContainerUrl: string;
|
|
971
|
-
/**
|
|
972
|
-
* The import file URL.
|
|
973
|
-
*/
|
|
974
|
-
importFileUrl?: string;
|
|
975
|
-
/**
|
|
976
|
-
* The input properties for the notification hub job.
|
|
977
|
-
*/
|
|
978
|
-
inputProperties?: Record<string, string>;
|
|
979
|
-
/**
|
|
980
|
-
* Gets the notification hub job failure message.
|
|
981
|
-
*/
|
|
982
|
-
failure?: string;
|
|
983
|
-
/**
|
|
984
|
-
* The output properties for the notification hub job.
|
|
985
|
-
*/
|
|
986
|
-
outputProperties?: Record<string, string>;
|
|
987
|
-
/**
|
|
988
|
-
* Notification hub job created date.
|
|
989
|
-
*/
|
|
990
|
-
createdAt?: Date;
|
|
991
|
-
/**
|
|
992
|
-
* Notification hub job last updated date.
|
|
993
|
-
*/
|
|
994
|
-
updatedAt?: Date;
|
|
995
|
-
}
|
|
996
|
-
|
|
997
|
-
/**
|
|
998
|
-
* Describes a poller for NotificationHubJob types.
|
|
999
|
-
*/
|
|
1000
|
-
declare type NotificationHubJobPoller = PollerLike<OperationState<NotificationHubJob>, NotificationHubJob>;
|
|
1001
|
-
|
|
1002
|
-
/**
|
|
1003
|
-
* Describes the types of notification hub job statuses.
|
|
1004
|
-
*/
|
|
1005
|
-
declare type NotificationHubJobStatus =
|
|
1006
|
-
/**
|
|
1007
|
-
* Indicates that the NotificationHubJob was accepted.
|
|
1008
|
-
*/
|
|
1009
|
-
"Started"
|
|
1010
|
-
/**
|
|
1011
|
-
* Indicates that the NotificationHubJob is currently running. Depending on the amount of data,
|
|
1012
|
-
* a job may stay in this state for several hours.
|
|
1013
|
-
*/
|
|
1014
|
-
| "Running"
|
|
1015
|
-
/**
|
|
1016
|
-
* Indicates that the NotificationHubJob was completed successfully. Any output
|
|
1017
|
-
* will be ready where configured via the NotificationHubJob object.
|
|
1018
|
-
*/
|
|
1019
|
-
| "Completed"
|
|
1020
|
-
/**
|
|
1021
|
-
* Indicates that the NotificationHubJob has failed.
|
|
1022
|
-
*/
|
|
1023
|
-
| "Failed";
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
* Describes the types of notification hub jobs.
|
|
1027
|
-
*/
|
|
1028
|
-
declare type NotificationHubJobType =
|
|
1029
|
-
/**
|
|
1030
|
-
* Job type to bulk get registrations.
|
|
1031
|
-
*/
|
|
1032
|
-
"ExportRegistrations"
|
|
1033
|
-
/**
|
|
1034
|
-
* Job type to bulk create registrations.
|
|
1035
|
-
*/
|
|
1036
|
-
| "ImportCreateRegistrations"
|
|
1037
|
-
/**
|
|
1038
|
-
* Job type to bulk update registrations.
|
|
1039
|
-
*/
|
|
1040
|
-
| "ImportUpdateRegistrations"
|
|
1041
|
-
/**
|
|
1042
|
-
* Job type to bulk delete registrations.
|
|
1043
|
-
*/
|
|
1044
|
-
| "ImportDeleteRegistrations"
|
|
1045
|
-
/**
|
|
1046
|
-
* Job type to bulk upsert registrations.
|
|
1047
|
-
*/
|
|
1048
|
-
| "ImportUpsertRegistrations";
|
|
1049
|
-
|
|
1050
|
-
/**
|
|
1051
|
-
* Represents the Notification Hubs SDK client context.
|
|
1052
|
-
*/
|
|
1053
|
-
export declare interface NotificationHubsClientContext {
|
|
1054
|
-
/* Excluded from this release type: sendRequest */
|
|
1055
|
-
/* Excluded from this release type: createHeaders */
|
|
1056
|
-
/* Excluded from this release type: requestUrl */
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
/**
|
|
1060
|
-
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
1061
|
-
*/
|
|
1062
|
-
declare interface NotificationHubsClientOptions extends ClientOptions {
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
/**
|
|
1066
|
-
* Describes a response from the Notification Hubs service for send operations.
|
|
1067
|
-
*/
|
|
1068
|
-
declare interface NotificationHubsMessageResponse extends NotificationHubsResponse {
|
|
1069
|
-
/**
|
|
1070
|
-
* The notification ID from the operation. Note this is only available in Standard SKU and above.
|
|
1071
|
-
*/
|
|
1072
|
-
notificationId?: string;
|
|
1073
|
-
/**
|
|
1074
|
-
* The number of devices that successfully received the notification.
|
|
1075
|
-
*/
|
|
1076
|
-
successCount: number;
|
|
1077
|
-
/**
|
|
1078
|
-
* The number of devices that failed to receive a notification.
|
|
1079
|
-
*/
|
|
1080
|
-
failureCount: number;
|
|
1081
|
-
/**
|
|
1082
|
-
* The list of notification outcome results for each device registered with the hub, to which this notification was sent.
|
|
1083
|
-
*/
|
|
1084
|
-
results: RegistrationResult[];
|
|
1085
|
-
/**
|
|
1086
|
-
* The state of this notification outcome.
|
|
1087
|
-
*/
|
|
1088
|
-
state: NotificationOutcomeState;
|
|
1089
|
-
}
|
|
1090
|
-
|
|
1091
|
-
/**
|
|
1092
|
-
* Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
|
|
1093
|
-
*/
|
|
1094
|
-
declare interface NotificationHubsResponse {
|
|
1095
|
-
/**
|
|
1096
|
-
* The Tracking ID of the operation.
|
|
1097
|
-
*/
|
|
1098
|
-
trackingId?: string;
|
|
1099
|
-
/**
|
|
1100
|
-
* The correlation ID of the operation.
|
|
1101
|
-
*/
|
|
1102
|
-
correlationId?: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* The location of the operation.
|
|
1105
|
-
*/
|
|
1106
|
-
location?: string;
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
/**
|
|
1110
|
-
* The per platform count per state.
|
|
1111
|
-
*/
|
|
1112
|
-
declare interface NotificationOutcome {
|
|
1113
|
-
/**
|
|
1114
|
-
* The state of the notification.
|
|
1115
|
-
*/
|
|
1116
|
-
state: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* The count of notifications per state.
|
|
1119
|
-
*/
|
|
1120
|
-
count: number;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* Represents the notification outcome states.
|
|
1125
|
-
*/
|
|
1126
|
-
declare type NotificationOutcomeState = "Enqueued" | "DetailedStateAvailable" | "Processing" | "Completed" | "Abandoned" | "Unknown" | "NoTargetFound" | "Cancelled";
|
|
1127
|
-
|
|
1128
|
-
/**
|
|
1129
|
-
* Options for polled operations including the polling interval cycle.
|
|
1130
|
-
*/
|
|
1131
|
-
declare interface PolledOperationOptions extends OperationOptions {
|
|
1132
|
-
/**
|
|
1133
|
-
* Time delay between poll requests, in milliseconds.
|
|
1134
|
-
*/
|
|
1135
|
-
updateIntervalInMs?: number;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
|
-
/**
|
|
1139
|
-
* Describes a Registration query.
|
|
1140
|
-
*/
|
|
1141
|
-
declare type RegistrationChannel = AdmRegistrationChannel | AppleRegistrationChannel | BaiduRegistrationChannel | BrowserRegistrationChannel | FirebaseLegacyRegistrationChannel | FirebaseV1RegistrationChannel | XiaomiRegistrationChannel | WindowsRegistrationChannel;
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
* Describes the types of registration descriptions.
|
|
1145
|
-
*/
|
|
1146
|
-
declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription | FcmV1RegistrationDescription | FcmV1TemplateRegistrationDescription | MpnsRegistrationDescription | MpnsTemplateRegistrationDescription | XiaomiRegistrationDescription | XiaomiTemplateRegistrationDescription | WindowsRegistrationDescription | WindowsTemplateRegistrationDescription;
|
|
1147
|
-
|
|
1148
|
-
/**
|
|
1149
|
-
* Represents a registration description.
|
|
1150
|
-
*/
|
|
1151
|
-
declare interface RegistrationDescriptionCommon {
|
|
1152
|
-
/**
|
|
1153
|
-
* The registration ID.
|
|
1154
|
-
*/
|
|
1155
|
-
registrationId?: string;
|
|
1156
|
-
/**
|
|
1157
|
-
* The expiration time of the registration.
|
|
1158
|
-
*/
|
|
1159
|
-
expirationTime?: Date;
|
|
1160
|
-
/**
|
|
1161
|
-
* The ETag associated with this description.
|
|
1162
|
-
*/
|
|
1163
|
-
etag?: string;
|
|
1164
|
-
/**
|
|
1165
|
-
* The tags associated with the registration.
|
|
1166
|
-
*/
|
|
1167
|
-
tags?: string[];
|
|
1168
|
-
/**
|
|
1169
|
-
* A dictionary of push variables associated with property bag.
|
|
1170
|
-
*/
|
|
1171
|
-
pushVariables?: Record<string, string>;
|
|
1172
|
-
}
|
|
1173
|
-
|
|
1174
|
-
/**
|
|
1175
|
-
* Represents query options to include $top support.
|
|
1176
|
-
*/
|
|
1177
|
-
declare interface RegistrationQueryLimitOptions extends OperationOptions {
|
|
1178
|
-
/**
|
|
1179
|
-
* The $top query member to get a number of records.
|
|
1180
|
-
*/
|
|
1181
|
-
top?: number;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
/**
|
|
1185
|
-
* Represents the result of the registration.
|
|
1186
|
-
*/
|
|
1187
|
-
declare interface RegistrationResult {
|
|
1188
|
-
/**
|
|
1189
|
-
* The application platform.
|
|
1190
|
-
*/
|
|
1191
|
-
applicationPlatform: string;
|
|
1192
|
-
/**
|
|
1193
|
-
* The PNS handle.
|
|
1194
|
-
*/
|
|
1195
|
-
pnsHandle: string;
|
|
1196
|
-
/**
|
|
1197
|
-
* The registration ID.
|
|
1198
|
-
*/
|
|
1199
|
-
registrationId: string;
|
|
1200
|
-
/**
|
|
1201
|
-
* The outcome of the registration.
|
|
1202
|
-
*/
|
|
1203
|
-
outcome: string;
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
/**
|
|
1207
|
-
* Schedules a push notification to all registered devices.
|
|
1208
|
-
* NOTE: This is only available in Standard SKU Azure Notification Hubs.
|
|
1209
|
-
* @param context - The Notification Hubs client.
|
|
1210
|
-
* @param scheduledTime - The Date to send the push notification.
|
|
1211
|
-
* @param notification - The notification to send to the matching devices.
|
|
1212
|
-
* @param options - Operation options.
|
|
1213
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1214
|
-
*/
|
|
1215
|
-
export declare function scheduleBroadcastNotification(context: NotificationHubsClientContext, scheduledTime: Date, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1216
|
-
|
|
1217
|
-
/**
|
|
1218
|
-
* Schedules a push notification to devices that match the given tags or tag expression at the specified time.
|
|
1219
|
-
* NOTE: This is only available in Standard SKU Azure Notification Hubs.
|
|
1220
|
-
* @param context - The Notification Hubs client.
|
|
1221
|
-
* @param scheduledTime - The Date to send the push notification.
|
|
1222
|
-
* @param notification - The notification to send to the matching devices.
|
|
1223
|
-
* @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.
|
|
1224
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1225
|
-
*/
|
|
1226
|
-
export declare function scheduleNotification(context: NotificationHubsClientContext, scheduledTime: Date, notification: Notification, options: ScheduleNotificationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
* Options for sending notifications for both tag based scheduled send.
|
|
1230
|
-
*/
|
|
1231
|
-
declare interface ScheduleNotificationOptions extends OperationOptions {
|
|
1232
|
-
/**
|
|
1233
|
-
* A tag expression used to target devices. Use the `createTagExpression` function to create a tag expression from an array of tags.
|
|
1234
|
-
*/
|
|
1235
|
-
tagExpression: string;
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
/**
|
|
1239
|
-
* Sends push notifications to all devices with a broadcast send.
|
|
1240
|
-
* @param context - The Notification Hubs client.
|
|
1241
|
-
* @param notification - The notification to send to the matching devices.
|
|
1242
|
-
* @param options - Options for the notification including whether to enable test send.
|
|
1243
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1244
|
-
*/
|
|
1245
|
-
export declare function sendBroadcastNotification(context: NotificationHubsClientContext, notification: Notification, options?: BroadcastSendNotificationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1246
|
-
|
|
1247
|
-
/**
|
|
1248
|
-
* Sends push notifications to devices that match the given tags or tag expression.
|
|
1249
|
-
* @param context - The Notification Hubs client.
|
|
1250
|
-
* @param notification - The notification to send to the matching devices.
|
|
1251
|
-
* @param options - Options for the notification including tags, device handles and whether to enable test send.
|
|
1252
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1253
|
-
*/
|
|
1254
|
-
export declare function sendNotification(context: NotificationHubsClientContext, notification: Notification, options: DirectSendNotificationOptions | SendNotificationOptions): Promise<NotificationHubsMessageResponse>;
|
|
1255
|
-
|
|
1256
|
-
/**
|
|
1257
|
-
* Options for sending notifications for tag based send.
|
|
1258
|
-
*/
|
|
1259
|
-
declare interface SendNotificationOptions extends BroadcastSendNotificationOptions {
|
|
1260
|
-
/**
|
|
1261
|
-
* A tag expression used to target devices. Use the `createTagExpression` function to create a tag expression from an array of tags.
|
|
1262
|
-
*/
|
|
1263
|
-
tagExpression: string;
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
/**
|
|
1267
|
-
* Submits a Notification Hub Job.
|
|
1268
|
-
* Note: this is available to Standard SKU namespace and above.
|
|
1269
|
-
* @param context - The Notification Hubs client.
|
|
1270
|
-
* @param job - The notification hub job to submit.
|
|
1271
|
-
* @param options - The operation options.
|
|
1272
|
-
* @returns The notification hub job details including job ID and status.
|
|
1273
|
-
*/
|
|
1274
|
-
export declare function submitNotificationHubJob(context: NotificationHubsClientContext, job: NotificationHubJob, options?: OperationOptions): Promise<NotificationHubJob>;
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Represents a template based push notification.
|
|
1278
|
-
*/
|
|
1279
|
-
declare interface TemplateNotification extends JsonNotification {
|
|
1280
|
-
/**
|
|
1281
|
-
* The platform for the push notification.
|
|
1282
|
-
*/
|
|
1283
|
-
platform: "template";
|
|
1284
|
-
}
|
|
1285
|
-
|
|
1286
|
-
/**
|
|
1287
|
-
* Represents the description of a template registration.
|
|
1288
|
-
*/
|
|
1289
|
-
declare interface TemplateRegistrationDescription {
|
|
1290
|
-
/**
|
|
1291
|
-
* The body template.
|
|
1292
|
-
*/
|
|
1293
|
-
bodyTemplate: string;
|
|
1294
|
-
/**
|
|
1295
|
-
* The name of the template.
|
|
1296
|
-
*/
|
|
1297
|
-
templateName?: string;
|
|
1298
|
-
}
|
|
1299
|
-
|
|
1300
|
-
/**
|
|
1301
|
-
* Updates an installation using the JSON-Patch standard in RFC6902.
|
|
1302
|
-
* @param context - The Notification Hubs client.
|
|
1303
|
-
* @param installationId - The ID of the installation to update.
|
|
1304
|
-
* @param installationPatches - An array of patches following the JSON-Patch standard.
|
|
1305
|
-
* @param options - Configuration options for the patch installation operation.
|
|
1306
|
-
* @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
|
|
1307
|
-
*/
|
|
1308
|
-
export declare function updateInstallation(context: NotificationHubsClientContext, installationId: string, installationPatches: JsonPatch[], options?: OperationOptions): Promise<NotificationHubsResponse>;
|
|
1309
|
-
|
|
1310
|
-
/**
|
|
1311
|
-
* Updates an existing registration.
|
|
1312
|
-
* @param context - The Notification Hubs client.
|
|
1313
|
-
* @param registration - The registration to update.
|
|
1314
|
-
* @param options - The operation options.
|
|
1315
|
-
* @returns The updated registration description.
|
|
1316
|
-
*/
|
|
1317
|
-
export declare function updateRegistration(context: NotificationHubsClientContext, registration: RegistrationDescription, options?: OperationOptions): Promise<RegistrationDescription>;
|
|
1318
|
-
|
|
1319
|
-
/**
|
|
1320
|
-
* Represents the possible WNS content-types.
|
|
1321
|
-
*/
|
|
1322
|
-
declare type WindowsContentType = "application/xml" | "application/octet-stream";
|
|
1323
|
-
|
|
1324
|
-
/**
|
|
1325
|
-
* Represents a Windows Notification Services (WNS) based installation.
|
|
1326
|
-
*/
|
|
1327
|
-
declare interface WindowsInstallation extends DeviceTokenInstallation {
|
|
1328
|
-
/**
|
|
1329
|
-
* The platform for the installation.
|
|
1330
|
-
*/
|
|
1331
|
-
platform: "wns";
|
|
1332
|
-
}
|
|
1333
|
-
|
|
1334
|
-
/**
|
|
1335
|
-
* Represents a Windows Notification Services (WNS) push notification.
|
|
1336
|
-
*/
|
|
1337
|
-
declare interface WindowsNotification extends NotificationCommon {
|
|
1338
|
-
/**
|
|
1339
|
-
* The platform for the push notification.
|
|
1340
|
-
*/
|
|
1341
|
-
platform: "windows";
|
|
1342
|
-
/**
|
|
1343
|
-
* The content type for the push notification.
|
|
1344
|
-
*/
|
|
1345
|
-
contentType: WindowsContentType;
|
|
1346
|
-
}
|
|
1347
|
-
|
|
1348
|
-
/**
|
|
1349
|
-
* Describes an Windows Notification Services Registration channel query.
|
|
1350
|
-
*/
|
|
1351
|
-
declare interface WindowsRegistrationChannel {
|
|
1352
|
-
/**
|
|
1353
|
-
* The WNS Channel URI.
|
|
1354
|
-
*/
|
|
1355
|
-
channelUri: string;
|
|
1356
|
-
/**
|
|
1357
|
-
* The kind of the registration channel.
|
|
1358
|
-
*/
|
|
1359
|
-
kind: "windows";
|
|
1360
|
-
}
|
|
1361
|
-
|
|
1362
|
-
/**
|
|
1363
|
-
* Represents a Windows Notification Services (WNS) registration description.
|
|
1364
|
-
*/
|
|
1365
|
-
declare interface WindowsRegistrationDescription extends WindowsRegistrationDescriptionCommon {
|
|
1366
|
-
/**
|
|
1367
|
-
* The kind of the registration.
|
|
1368
|
-
*/
|
|
1369
|
-
kind: "Windows";
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
/**
|
|
1373
|
-
* Represents a Windows Notification Services (WNS) registration description.
|
|
1374
|
-
*/
|
|
1375
|
-
declare interface WindowsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
1376
|
-
/**
|
|
1377
|
-
* The channel URI.
|
|
1378
|
-
*/
|
|
1379
|
-
channelUri: string;
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
/**
|
|
1383
|
-
* Represents a Windows Notification Services (WNS) template registration.
|
|
1384
|
-
*/
|
|
1385
|
-
declare interface WindowsTemplateRegistrationDescription extends WindowsTemplateRegistrationDescriptionCommon {
|
|
1386
|
-
/**
|
|
1387
|
-
* The kind of the registration.
|
|
1388
|
-
*/
|
|
1389
|
-
kind: "WindowsTemplate";
|
|
1390
|
-
}
|
|
1391
|
-
|
|
1392
|
-
/**
|
|
1393
|
-
* Represents a Windows Notification Services (WNS) template registration.
|
|
1394
|
-
*/
|
|
1395
|
-
declare interface WindowsTemplateRegistrationDescriptionCommon extends WindowsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
1396
|
-
/**
|
|
1397
|
-
* The WNS headers.
|
|
1398
|
-
*/
|
|
1399
|
-
wnsHeaders?: Record<string, string>;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
/**
|
|
1403
|
-
* Represents a Xiaomi based installation.
|
|
1404
|
-
*/
|
|
1405
|
-
declare interface XiaomiInstallation extends DeviceTokenInstallation {
|
|
1406
|
-
/**
|
|
1407
|
-
* The platform for the installation.
|
|
1408
|
-
*/
|
|
1409
|
-
platform: "xiaomi";
|
|
1410
|
-
}
|
|
1411
|
-
|
|
1412
|
-
/**
|
|
1413
|
-
* Represents a Xiaomi push notification.
|
|
1414
|
-
*/
|
|
1415
|
-
declare interface XiaomiNotification extends JsonNotification {
|
|
1416
|
-
/**
|
|
1417
|
-
* The platform for the push notification.
|
|
1418
|
-
*/
|
|
1419
|
-
platform: "xiaomi";
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
/**
|
|
1423
|
-
* Describes an Xiaomi Registration channel query.
|
|
1424
|
-
*/
|
|
1425
|
-
declare interface XiaomiRegistrationChannel {
|
|
1426
|
-
/**
|
|
1427
|
-
* The Xiaomi registration ID.
|
|
1428
|
-
*/
|
|
1429
|
-
xiaomiRegistrationId: string;
|
|
1430
|
-
/**
|
|
1431
|
-
* The kind of the registration channel.
|
|
1432
|
-
*/
|
|
1433
|
-
kind: "xiaomi";
|
|
1434
|
-
}
|
|
1435
|
-
|
|
1436
|
-
/**
|
|
1437
|
-
* Represents a Xiaomi registration description.
|
|
1438
|
-
*/
|
|
1439
|
-
declare interface XiaomiRegistrationDescription extends XiaomiRegistrationDescriptionCommon {
|
|
1440
|
-
/**
|
|
1441
|
-
* The kind of the registration.
|
|
1442
|
-
*/
|
|
1443
|
-
kind: "Xiaomi";
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
/**
|
|
1447
|
-
* Represents a Xiaomi registration description.
|
|
1448
|
-
*/
|
|
1449
|
-
declare interface XiaomiRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
1450
|
-
/**
|
|
1451
|
-
* The Xiaomi registration ID.
|
|
1452
|
-
*/
|
|
1453
|
-
xiaomiRegistrationId: string;
|
|
1454
|
-
}
|
|
1455
|
-
|
|
1456
|
-
/**
|
|
1457
|
-
* Represents a Windows Notification Services (WNS) template registration.
|
|
1458
|
-
*/
|
|
1459
|
-
declare interface XiaomiTemplateRegistrationDescription extends XiaomiTemplateRegistrationDescriptionCommon {
|
|
1460
|
-
/**
|
|
1461
|
-
* The kind of the registration.
|
|
1462
|
-
*/
|
|
1463
|
-
kind: "XiaomiTemplate";
|
|
1464
|
-
}
|
|
1465
|
-
|
|
1466
|
-
/**
|
|
1467
|
-
* Represents a Xiaomi template registration.
|
|
1468
|
-
*/
|
|
1469
|
-
declare interface XiaomiTemplateRegistrationDescriptionCommon extends XiaomiRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
export { }
|