@azure/notification-hubs 1.0.0-beta.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/LICENSE +21 -0
- package/README.md +749 -0
- package/dist/index.js +2235 -0
- package/dist/index.js.map +1 -0
- package/dist-esm/src/client/cancelScheduledNotification.js +23 -0
- package/dist-esm/src/client/cancelScheduledNotification.js.map +1 -0
- package/dist-esm/src/client/createOrUpdateInstallation.js +24 -0
- package/dist-esm/src/client/createOrUpdateInstallation.js.map +1 -0
- package/dist-esm/src/client/createOrUpdateRegistration.js +17 -0
- package/dist-esm/src/client/createOrUpdateRegistration.js.map +1 -0
- package/dist-esm/src/client/createRegistration.js +24 -0
- package/dist-esm/src/client/createRegistration.js.map +1 -0
- package/dist-esm/src/client/createRegistrationId.js +26 -0
- package/dist-esm/src/client/createRegistrationId.js.map +1 -0
- package/dist-esm/src/client/deleteInstallation.js +22 -0
- package/dist-esm/src/client/deleteInstallation.js.map +1 -0
- package/dist-esm/src/client/deleteRegistration.js +25 -0
- package/dist-esm/src/client/deleteRegistration.js.map +1 -0
- package/dist-esm/src/client/getFeedbackContainerUrl.js +23 -0
- package/dist-esm/src/client/getFeedbackContainerUrl.js.map +1 -0
- package/dist-esm/src/client/getInstallation.js +23 -0
- package/dist-esm/src/client/getInstallation.js.map +1 -0
- package/dist-esm/src/client/getNotificationHubJob.js +24 -0
- package/dist-esm/src/client/getNotificationHubJob.js.map +1 -0
- package/dist-esm/src/client/getNotificationOutcomeDetails.js +24 -0
- package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +1 -0
- package/dist-esm/src/client/getRegistration.js +24 -0
- package/dist-esm/src/client/getRegistration.js.map +1 -0
- package/dist-esm/src/client/index.js +44 -0
- package/dist-esm/src/client/index.js.map +1 -0
- package/dist-esm/src/client/internal/_client.js +75 -0
- package/dist-esm/src/client/internal/_client.js.map +1 -0
- package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js +31 -0
- package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +1 -0
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js +37 -0
- package/dist-esm/src/client/internal/_scheduleNotificationPayload.js.map +1 -0
- package/dist-esm/src/client/internal/_sendNotificationPayload.js +51 -0
- package/dist-esm/src/client/internal/_sendNotificationPayload.js.map +1 -0
- package/dist-esm/src/client/listNotificationHubJobs.js +23 -0
- package/dist-esm/src/client/listNotificationHubJobs.js.map +1 -0
- package/dist-esm/src/client/listRegistrations.js +89 -0
- package/dist-esm/src/client/listRegistrations.js.map +1 -0
- package/dist-esm/src/client/listRegistrationsByTag.js +87 -0
- package/dist-esm/src/client/listRegistrationsByTag.js.map +1 -0
- package/dist-esm/src/client/scheduleBroadcastNotification.js +17 -0
- package/dist-esm/src/client/scheduleBroadcastNotification.js.map +1 -0
- package/dist-esm/src/client/scheduleNotification.js +18 -0
- package/dist-esm/src/client/scheduleNotification.js.map +1 -0
- package/dist-esm/src/client/sendBroadcastNotification.js +15 -0
- package/dist-esm/src/client/sendBroadcastNotification.js.map +1 -0
- package/dist-esm/src/client/sendDirectNotification.js +16 -0
- package/dist-esm/src/client/sendDirectNotification.js.map +1 -0
- package/dist-esm/src/client/sendNotification.js +16 -0
- package/dist-esm/src/client/sendNotification.js.map +1 -0
- package/dist-esm/src/client/submitNotificationHubJob.js +26 -0
- package/dist-esm/src/client/submitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/client/updateInstallation.js +25 -0
- package/dist-esm/src/client/updateInstallation.js.map +1 -0
- package/dist-esm/src/client/updateRegistration.js +21 -0
- package/dist-esm/src/client/updateRegistration.js.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/models/installation.js +51 -0
- package/dist-esm/src/models/installation.js.map +1 -0
- package/dist-esm/src/models/notification.js +104 -0
- package/dist-esm/src/models/notification.js.map +1 -0
- package/dist-esm/src/models/notificationBuilder.js +169 -0
- package/dist-esm/src/models/notificationBuilder.js.map +1 -0
- package/dist-esm/src/models/notificationDetails.js +4 -0
- package/dist-esm/src/models/notificationDetails.js.map +1 -0
- package/dist-esm/src/models/notificationHubJob.js +4 -0
- package/dist-esm/src/models/notificationHubJob.js.map +1 -0
- package/dist-esm/src/models/options.js +4 -0
- package/dist-esm/src/models/options.js.map +1 -0
- package/dist-esm/src/models/registration.js +135 -0
- package/dist-esm/src/models/registration.js.map +1 -0
- package/dist-esm/src/models/response.js +4 -0
- package/dist-esm/src/models/response.js.map +1 -0
- package/dist-esm/src/notificationHubsClient.js +251 -0
- package/dist-esm/src/notificationHubsClient.js.map +1 -0
- package/dist-esm/src/serializers/notificationDetailsSerializer.js +58 -0
- package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -0
- package/dist-esm/src/serializers/notificationHubJobSerializer.js +74 -0
- package/dist-esm/src/serializers/notificationHubJobSerializer.js.map +1 -0
- package/dist-esm/src/serializers/registrationSerializer.js +375 -0
- package/dist-esm/src/serializers/registrationSerializer.js.map +1 -0
- package/dist-esm/src/utils/connectionStringUtils.js +37 -0
- package/dist-esm/src/utils/connectionStringUtils.js.map +1 -0
- package/dist-esm/src/utils/constants.js +11 -0
- package/dist-esm/src/utils/constants.js.map +1 -0
- package/dist-esm/src/utils/retryPolicy.js +144 -0
- package/dist-esm/src/utils/retryPolicy.js.map +1 -0
- package/dist-esm/src/utils/tracing.js +13 -0
- package/dist-esm/src/utils/tracing.js.map +1 -0
- package/dist-esm/src/utils/utils.js +130 -0
- package/dist-esm/src/utils/utils.js.map +1 -0
- package/dist-esm/src/utils/xmlUtils.js +101 -0
- package/dist-esm/src/utils/xmlUtils.js.map +1 -0
- package/package.json +144 -0
- package/types/3.1/notification-hubs.d.ts +1728 -0
- package/types/latest/notification-hubs.d.ts +1840 -0
- package/types/latest/tsdoc-metadata.json +11 -0
- package/types/src/client/cancelScheduledNotification.d.ts +13 -0
- package/types/src/client/cancelScheduledNotification.d.ts.map +1 -0
- package/types/src/client/createOrUpdateInstallation.d.ts +13 -0
- package/types/src/client/createOrUpdateInstallation.d.ts.map +1 -0
- package/types/src/client/createOrUpdateRegistration.d.ts +12 -0
- package/types/src/client/createOrUpdateRegistration.d.ts.map +1 -0
- package/types/src/client/createRegistration.d.ts +13 -0
- package/types/src/client/createRegistration.d.ts.map +1 -0
- package/types/src/client/createRegistrationId.d.ts +10 -0
- package/types/src/client/createRegistrationId.d.ts.map +1 -0
- package/types/src/client/deleteInstallation.d.ts +12 -0
- package/types/src/client/deleteInstallation.d.ts.map +1 -0
- package/types/src/client/deleteRegistration.d.ts +12 -0
- package/types/src/client/deleteRegistration.d.ts.map +1 -0
- package/types/src/client/getFeedbackContainerUrl.d.ts +11 -0
- package/types/src/client/getFeedbackContainerUrl.d.ts.map +1 -0
- package/types/src/client/getInstallation.d.ts +12 -0
- package/types/src/client/getInstallation.d.ts.map +1 -0
- package/types/src/client/getNotificationHubJob.d.ts +12 -0
- package/types/src/client/getNotificationHubJob.d.ts.map +1 -0
- package/types/src/client/getNotificationOutcomeDetails.d.ts +13 -0
- package/types/src/client/getNotificationOutcomeDetails.d.ts.map +1 -0
- package/types/src/client/getRegistration.d.ts +12 -0
- package/types/src/client/getRegistration.d.ts.map +1 -0
- package/types/src/client/index.d.ts +41 -0
- package/types/src/client/index.d.ts.map +1 -0
- package/types/src/client/internal/_client.d.ts +26 -0
- package/types/src/client/internal/_client.d.ts.map +1 -0
- package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts +8 -0
- package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -0
- package/types/src/client/internal/_scheduleNotificationPayload.d.ts +9 -0
- package/types/src/client/internal/_scheduleNotificationPayload.d.ts.map +1 -0
- package/types/src/client/internal/_sendNotificationPayload.d.ts +10 -0
- package/types/src/client/internal/_sendNotificationPayload.d.ts.map +1 -0
- package/types/src/client/listNotificationHubJobs.d.ts +11 -0
- package/types/src/client/listNotificationHubJobs.d.ts.map +1 -0
- package/types/src/client/listRegistrations.d.ts +12 -0
- package/types/src/client/listRegistrations.d.ts.map +1 -0
- package/types/src/client/listRegistrationsByTag.d.ts +13 -0
- package/types/src/client/listRegistrationsByTag.d.ts.map +1 -0
- package/types/src/client/scheduleBroadcastNotification.d.ts +16 -0
- package/types/src/client/scheduleBroadcastNotification.d.ts.map +1 -0
- package/types/src/client/scheduleNotification.d.ts +17 -0
- package/types/src/client/scheduleNotification.d.ts.map +1 -0
- package/types/src/client/sendBroadcastNotification.d.ts +14 -0
- package/types/src/client/sendBroadcastNotification.d.ts.map +1 -0
- package/types/src/client/sendDirectNotification.d.ts +16 -0
- package/types/src/client/sendDirectNotification.d.ts.map +1 -0
- package/types/src/client/sendNotification.d.ts +15 -0
- package/types/src/client/sendNotification.d.ts.map +1 -0
- package/types/src/client/submitNotificationHubJob.d.ts +13 -0
- package/types/src/client/submitNotificationHubJob.d.ts.map +1 -0
- package/types/src/client/updateInstallation.d.ts +14 -0
- package/types/src/client/updateInstallation.d.ts.map +1 -0
- package/types/src/client/updateRegistration.d.ts +12 -0
- package/types/src/client/updateRegistration.d.ts.map +1 -0
- package/types/src/index.d.ts +10 -0
- package/types/src/index.d.ts.map +1 -0
- package/types/src/models/installation.d.ts +200 -0
- package/types/src/models/installation.d.ts.map +1 -0
- package/types/src/models/notification.d.ts +166 -0
- package/types/src/models/notification.d.ts.map +1 -0
- package/types/src/models/notificationBuilder.d.ts +546 -0
- package/types/src/models/notificationBuilder.d.ts.map +1 -0
- package/types/src/models/notificationDetails.d.ts +87 -0
- package/types/src/models/notificationDetails.d.ts.map +1 -0
- package/types/src/models/notificationHubJob.d.ts +104 -0
- package/types/src/models/notificationHubJob.d.ts.map +1 -0
- package/types/src/models/options.d.ts +43 -0
- package/types/src/models/options.d.ts.map +1 -0
- package/types/src/models/registration.d.ts +368 -0
- package/types/src/models/registration.d.ts.map +1 -0
- package/types/src/models/response.d.ts +41 -0
- package/types/src/models/response.d.ts.map +1 -0
- package/types/src/notificationHubsClient.d.ts +190 -0
- package/types/src/notificationHubsClient.d.ts.map +1 -0
- package/types/src/serializers/notificationDetailsSerializer.d.ts +7 -0
- package/types/src/serializers/notificationDetailsSerializer.d.ts.map +1 -0
- package/types/src/serializers/notificationHubJobSerializer.d.ts +21 -0
- package/types/src/serializers/notificationHubJobSerializer.d.ts.map +1 -0
- package/types/src/serializers/registrationSerializer.d.ts +193 -0
- package/types/src/serializers/registrationSerializer.d.ts.map +1 -0
- package/types/src/utils/connectionStringUtils.d.ts +37 -0
- package/types/src/utils/connectionStringUtils.d.ts.map +1 -0
- package/types/src/utils/constants.d.ts +9 -0
- package/types/src/utils/constants.d.ts.map +1 -0
- package/types/src/utils/retryPolicy.d.ts +72 -0
- package/types/src/utils/retryPolicy.d.ts.map +1 -0
- package/types/src/utils/tracing.d.ts +6 -0
- package/types/src/utils/tracing.d.ts.map +1 -0
- package/types/src/utils/utils.d.ts +65 -0
- package/types/src/utils/utils.d.ts.map +1 -0
- package/types/src/utils/xmlUtils.d.ts +46 -0
- package/types/src/utils/xmlUtils.d.ts.map +1 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes the types of notification hub jobs.
|
|
3
|
+
*/
|
|
4
|
+
export declare type NotificationHubJobType =
|
|
5
|
+
/**
|
|
6
|
+
* Job type to bulk get registrations.
|
|
7
|
+
*/
|
|
8
|
+
"ExportRegistrations"
|
|
9
|
+
/**
|
|
10
|
+
* Job type to bulk create registrations.
|
|
11
|
+
*/
|
|
12
|
+
| "ImportCreateRegistrations"
|
|
13
|
+
/**
|
|
14
|
+
* Job type to bulk update registrations.
|
|
15
|
+
*/
|
|
16
|
+
| "ImportUpdateRegistrations"
|
|
17
|
+
/**
|
|
18
|
+
* Job type to bulk delete registrations.
|
|
19
|
+
*/
|
|
20
|
+
| "ImportDeleteRegistrations"
|
|
21
|
+
/**
|
|
22
|
+
* Job type to bulk upsert registrations.
|
|
23
|
+
*/
|
|
24
|
+
| "ImportUpsertRegistrations";
|
|
25
|
+
/**
|
|
26
|
+
* Describes the types of notification hub job statuses.
|
|
27
|
+
*/
|
|
28
|
+
export declare type NotificationHubJobStatus =
|
|
29
|
+
/**
|
|
30
|
+
* Indicates that the NotificationHubJob was accepted.
|
|
31
|
+
*/
|
|
32
|
+
"Started"
|
|
33
|
+
/**
|
|
34
|
+
* Indicates that the NotificationHubJob is currently running. Depending on the amount of data,
|
|
35
|
+
* a job may stay in this state for several hours.
|
|
36
|
+
*/
|
|
37
|
+
| "Running"
|
|
38
|
+
/**
|
|
39
|
+
* Indicates that the NotificationHubJob was completed successfully. Any output
|
|
40
|
+
* will be ready where configured via the NotificationHubJob object.
|
|
41
|
+
*/
|
|
42
|
+
| "Completed"
|
|
43
|
+
/**
|
|
44
|
+
* Indicates that the NotificationHubJob has failed.
|
|
45
|
+
*/
|
|
46
|
+
| "Failed";
|
|
47
|
+
/**
|
|
48
|
+
* Represents a Notification Hub Job.
|
|
49
|
+
*/
|
|
50
|
+
export interface NotificationHubJob {
|
|
51
|
+
/**
|
|
52
|
+
* The unique job identifier.
|
|
53
|
+
*/
|
|
54
|
+
jobId?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The output file name.
|
|
57
|
+
*/
|
|
58
|
+
outputFileName?: string;
|
|
59
|
+
/**
|
|
60
|
+
* The file name for the job failures.
|
|
61
|
+
*/
|
|
62
|
+
failuresFileName?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The progress for the job.
|
|
65
|
+
*/
|
|
66
|
+
progress?: number;
|
|
67
|
+
/**
|
|
68
|
+
* The type of job.
|
|
69
|
+
*/
|
|
70
|
+
type: NotificationHubJobType;
|
|
71
|
+
/**
|
|
72
|
+
* The status of the job.
|
|
73
|
+
*/
|
|
74
|
+
status?: NotificationHubJobStatus;
|
|
75
|
+
/**
|
|
76
|
+
* The output container URL.
|
|
77
|
+
*/
|
|
78
|
+
outputContainerUrl: string;
|
|
79
|
+
/**
|
|
80
|
+
* The import file URL.
|
|
81
|
+
*/
|
|
82
|
+
importFileUrl?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The input properties for the notification hub job.
|
|
85
|
+
*/
|
|
86
|
+
inputProperties?: Record<string, string>;
|
|
87
|
+
/**
|
|
88
|
+
* Gets the notification hub job failure message.
|
|
89
|
+
*/
|
|
90
|
+
failure?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The output properties for the notification hub job.
|
|
93
|
+
*/
|
|
94
|
+
outputProperties?: Record<string, string>;
|
|
95
|
+
/**
|
|
96
|
+
* Notification hub job created date.
|
|
97
|
+
*/
|
|
98
|
+
createdAt?: Date;
|
|
99
|
+
/**
|
|
100
|
+
* Notification hub job last updated date.
|
|
101
|
+
*/
|
|
102
|
+
updatedAt?: Date;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=notificationHubJob.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/models/notificationHubJob.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,sBAAsB;AAChC;;GAEG;AACD,qBAAqB;AAEvB;;GAEG;GACD,2BAA2B;AAE7B;;GAEG;GACD,2BAA2B;AAE7B;;GAEG;GACD,2BAA2B;AAE7B;;GAEG;GACD,2BAA2B,CAAC;AAEhC;;GAEG;AACH,oBAAY,wBAAwB;AAClC;;GAEG;AACD,SAAS;AAEX;;;GAGG;GACD,SAAS;AAEX;;;GAGG;GACD,WAAW;AAEb;;GAEG;GACD,QAAQ,CAAC;AAEb;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,EAAE,sBAAsB,CAAC;IAE7B;;OAEG;IACH,MAAM,CAAC,EAAE,wBAAwB,CAAC;IAElC;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEzC;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE1C;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CommonClientOptions, OperationOptions } from "@azure/core-client";
|
|
2
|
+
/**
|
|
3
|
+
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
4
|
+
*/
|
|
5
|
+
export interface NotificationHubsClientOptions extends CommonClientOptions {
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Represents the send operation options that can be set.
|
|
9
|
+
*/
|
|
10
|
+
export interface SendOperationOptions extends OperationOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Set to true to enable test send.
|
|
13
|
+
*/
|
|
14
|
+
enableTestSend?: boolean;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Represents entity update operation options that can be set.
|
|
18
|
+
*/
|
|
19
|
+
export interface EntityOperationOptions extends OperationOptions {
|
|
20
|
+
/**
|
|
21
|
+
* ETag as returned by creation, update, and retrieval, or ‘*’ (overwrite).
|
|
22
|
+
*/
|
|
23
|
+
etag?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Represents query options to include $top support.
|
|
27
|
+
*/
|
|
28
|
+
export interface RegistrationQueryLimitOptions extends OperationOptions {
|
|
29
|
+
/**
|
|
30
|
+
* The $top query member to get a number of records.
|
|
31
|
+
*/
|
|
32
|
+
top?: number;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Represents query options to include both $top and $filter.
|
|
36
|
+
*/
|
|
37
|
+
export interface RegistrationQueryOptions extends RegistrationQueryLimitOptions {
|
|
38
|
+
/**
|
|
39
|
+
* The OData $filter operator query string.
|
|
40
|
+
*/
|
|
41
|
+
filter?: string;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,mBAAmB;CAAG;AAE7E;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC5D;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,6BAA6B;IAC7E;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the types of registration descriptions.
|
|
3
|
+
*/
|
|
4
|
+
export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "Fcm" | "FcmTemplate" | "Mpns" | "MpnsTemplate" | "Windows" | "WindowsTemplate";
|
|
5
|
+
/**
|
|
6
|
+
* Represents a registration description.
|
|
7
|
+
*/
|
|
8
|
+
export interface RegistrationDescriptionCommon {
|
|
9
|
+
/**
|
|
10
|
+
* The registration ID.
|
|
11
|
+
*/
|
|
12
|
+
registrationId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* The expiration time of the registration.
|
|
15
|
+
*/
|
|
16
|
+
expirationTime?: Date;
|
|
17
|
+
/**
|
|
18
|
+
* The ETag associated with this description.
|
|
19
|
+
*/
|
|
20
|
+
etag?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The tags associated with the registration.
|
|
23
|
+
*/
|
|
24
|
+
tags?: string[];
|
|
25
|
+
/**
|
|
26
|
+
* A dictionary of push variables associated with property bag.
|
|
27
|
+
*/
|
|
28
|
+
pushVariables?: Record<string, string>;
|
|
29
|
+
/**
|
|
30
|
+
* The type of the registration.
|
|
31
|
+
*/
|
|
32
|
+
type: RegistrationType;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Represents the description of a template registration.
|
|
36
|
+
*/
|
|
37
|
+
export interface TemplateRegistrationDescription {
|
|
38
|
+
/**
|
|
39
|
+
* The body template.
|
|
40
|
+
*/
|
|
41
|
+
bodyTemplate: string;
|
|
42
|
+
/**
|
|
43
|
+
* The name of the template.
|
|
44
|
+
*/
|
|
45
|
+
templateName?: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Represents the description of the Amazon Device Messaging (ADM) registration.
|
|
49
|
+
*/
|
|
50
|
+
export interface AdmRegistrationDescription extends RegistrationDescriptionCommon {
|
|
51
|
+
/**
|
|
52
|
+
* The Amazon Device Messaging registration identifier.
|
|
53
|
+
*/
|
|
54
|
+
admRegistrationId: string;
|
|
55
|
+
/**
|
|
56
|
+
* The type of the registration.
|
|
57
|
+
*/
|
|
58
|
+
type: "Adm";
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Creates an ADM registration description.
|
|
62
|
+
* @param description - A partial ADM registration description.
|
|
63
|
+
* @returns A created ADM registration description.
|
|
64
|
+
*/
|
|
65
|
+
export declare function createAdmRegistrationDescription(description: Omit<AdmRegistrationDescription, "type">): AdmRegistrationDescription;
|
|
66
|
+
/**
|
|
67
|
+
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
68
|
+
*/
|
|
69
|
+
export interface AdmTemplateRegistrationDescription extends Omit<AdmRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
70
|
+
/**
|
|
71
|
+
* The type of the registration.
|
|
72
|
+
*/
|
|
73
|
+
type: "AdmTemplate";
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Creates an ADM template registration description.
|
|
77
|
+
* @param description - A partial ADM template registration description.
|
|
78
|
+
* @returns A created ADM template registration description.
|
|
79
|
+
*/
|
|
80
|
+
export declare function createAdmTemplateRegistrationDescription(description: Omit<AdmTemplateRegistrationDescription, "type">): AdmTemplateRegistrationDescription;
|
|
81
|
+
/**
|
|
82
|
+
* Represents the description of apple registration.
|
|
83
|
+
*/
|
|
84
|
+
export interface AppleRegistrationDescription extends RegistrationDescriptionCommon {
|
|
85
|
+
/**
|
|
86
|
+
* The APNs device token.
|
|
87
|
+
*/
|
|
88
|
+
deviceToken: string;
|
|
89
|
+
/**
|
|
90
|
+
* The type of the registration.
|
|
91
|
+
*/
|
|
92
|
+
type: "Apple";
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Creates an Apple registration description.
|
|
96
|
+
* @param description - A partial Apple registration description.
|
|
97
|
+
* @returns A created Apple registration description.
|
|
98
|
+
*/
|
|
99
|
+
export declare function createAppleRegistrationDescription(description: Omit<AppleRegistrationDescription, "type">): AppleRegistrationDescription;
|
|
100
|
+
/**
|
|
101
|
+
* The priority of the Apple push notification.
|
|
102
|
+
*/
|
|
103
|
+
export declare type ApplePriority = "10" | "5";
|
|
104
|
+
/**
|
|
105
|
+
* Represents the description of the Apple template registration.
|
|
106
|
+
*/
|
|
107
|
+
export interface AppleTemplateRegistrationDescription extends Omit<AppleRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
108
|
+
/**
|
|
109
|
+
* The expiry date.
|
|
110
|
+
*/
|
|
111
|
+
expiry?: Date;
|
|
112
|
+
/**
|
|
113
|
+
* The notification priority.
|
|
114
|
+
*/
|
|
115
|
+
priority?: ApplePriority;
|
|
116
|
+
/**
|
|
117
|
+
* The APNS headers.
|
|
118
|
+
*/
|
|
119
|
+
apnsHeaders?: Record<string, string>;
|
|
120
|
+
/**
|
|
121
|
+
* The type of the registration.
|
|
122
|
+
*/
|
|
123
|
+
type: "AppleTemplate";
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Creates an Apple template registration description.
|
|
127
|
+
* @param description - A partial Apple template registration description.
|
|
128
|
+
* @returns A created Apple template registration description.
|
|
129
|
+
*/
|
|
130
|
+
export declare function createAppleTemplateRegistrationDescription(description: Omit<AppleTemplateRegistrationDescription, "type">): AppleTemplateRegistrationDescription;
|
|
131
|
+
/**
|
|
132
|
+
* Represents a Baidu registration description.
|
|
133
|
+
*/
|
|
134
|
+
export interface BaiduRegistrationDescription extends RegistrationDescriptionCommon {
|
|
135
|
+
/**
|
|
136
|
+
* The Baidu user identifier.
|
|
137
|
+
*/
|
|
138
|
+
baiduUserId: string;
|
|
139
|
+
/**
|
|
140
|
+
* The Baidu channel identifier.
|
|
141
|
+
*/
|
|
142
|
+
baiduChannelId: string;
|
|
143
|
+
/**
|
|
144
|
+
* The type of the registration.
|
|
145
|
+
*/
|
|
146
|
+
type: "Baidu";
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Creates a Baidu registration description.
|
|
150
|
+
* @param description - A partial Baidu registration description.
|
|
151
|
+
* @returns A created Baidu registration description.
|
|
152
|
+
*/
|
|
153
|
+
export declare function createBaiduRegistrationDescription(description: Omit<BaiduRegistrationDescription, "type">): BaiduRegistrationDescription;
|
|
154
|
+
/**
|
|
155
|
+
* Represents a Baidu template registration description.
|
|
156
|
+
*/
|
|
157
|
+
export interface BaiduTemplateRegistrationDescription extends Omit<BaiduRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
158
|
+
/**
|
|
159
|
+
* The type of the registration.
|
|
160
|
+
*/
|
|
161
|
+
type: "BaiduTemplate";
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Creates a Baidu template registration description.
|
|
165
|
+
* @param description - A partial Baidu template registration description.
|
|
166
|
+
* @returns A created Baidu template registration description.
|
|
167
|
+
*/
|
|
168
|
+
export declare function createBaiduTemplateRegistrationDescription(description: Omit<BaiduTemplateRegistrationDescription, "type">): BaiduTemplateRegistrationDescription;
|
|
169
|
+
/**
|
|
170
|
+
* Represents a Browser Push registration description.
|
|
171
|
+
*/
|
|
172
|
+
export interface BrowserRegistrationDescription extends RegistrationDescriptionCommon {
|
|
173
|
+
/**
|
|
174
|
+
* The Browser push endpoint.
|
|
175
|
+
*/
|
|
176
|
+
endpoint: string;
|
|
177
|
+
/**
|
|
178
|
+
* The Browser push P256DH.
|
|
179
|
+
*/
|
|
180
|
+
p256dh: string;
|
|
181
|
+
/**
|
|
182
|
+
* The Browser push auth secret.
|
|
183
|
+
*/
|
|
184
|
+
auth: string;
|
|
185
|
+
/**
|
|
186
|
+
* The type of the registration.
|
|
187
|
+
*/
|
|
188
|
+
type: "Browser";
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* Creates a Web Push registration description.
|
|
192
|
+
* @param description - A partial Web Push registration description.
|
|
193
|
+
* @returns A created Web Push registration description.
|
|
194
|
+
*/
|
|
195
|
+
export declare function createBrowserRegistrationDescription(description: Omit<BrowserRegistrationDescription, "type">): BrowserRegistrationDescription;
|
|
196
|
+
/**
|
|
197
|
+
* Represents a Browser Push remplate registration description.
|
|
198
|
+
*/
|
|
199
|
+
export interface BrowserTemplateRegistrationDescription extends Omit<BrowserRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
200
|
+
/**
|
|
201
|
+
* The type of the registration.
|
|
202
|
+
*/
|
|
203
|
+
type: "BrowserTemplate";
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Creates a Web Push registration description.
|
|
207
|
+
* @param description - A partial Web Push template registration description.
|
|
208
|
+
* @returns A created Web Push template registration description.
|
|
209
|
+
*/
|
|
210
|
+
export declare function createBrowserTemplateRegistrationDescription(description: Omit<BrowserTemplateRegistrationDescription, "type">): BrowserTemplateRegistrationDescription;
|
|
211
|
+
/**
|
|
212
|
+
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
213
|
+
* @deprecated Use FcmRegistrationDescription instead.
|
|
214
|
+
*/
|
|
215
|
+
export interface GcmRegistrationDescription extends RegistrationDescriptionCommon {
|
|
216
|
+
/**
|
|
217
|
+
* Registration id obtained from the Google Cloud Messaging service.
|
|
218
|
+
*/
|
|
219
|
+
gcmRegistrationId: string;
|
|
220
|
+
/**
|
|
221
|
+
* The type of the registration.
|
|
222
|
+
*/
|
|
223
|
+
type: "Gcm";
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @deprecated Use createFcmRegistrationDescription instead.
|
|
227
|
+
* Creates a GCM registration description.
|
|
228
|
+
* @param description - A partial GCM registration description.
|
|
229
|
+
* @returns A created GCM registration description.
|
|
230
|
+
*/
|
|
231
|
+
export declare function createGcmRegistrationDescription(description: Omit<GcmRegistrationDescription, "type">): GcmRegistrationDescription;
|
|
232
|
+
/**
|
|
233
|
+
* @deprecated Use createFcmTemplateRegistrationDescription instead.
|
|
234
|
+
* Represents Notification Hub template registration description for Google Cloud Messaging.
|
|
235
|
+
* @deprecated Use FcmTemplateRegistrationDescription instead
|
|
236
|
+
*/
|
|
237
|
+
export interface GcmTemplateRegistrationDescription extends Omit<GcmRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
238
|
+
/**
|
|
239
|
+
* The type of the registration.
|
|
240
|
+
*/
|
|
241
|
+
type: "GcmTemplate";
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @deprecated Use createFcmTemplateRegistrationDescription instead.
|
|
245
|
+
* Creates a GCM template registration description.
|
|
246
|
+
* @param description - A partial GCM template registration description.
|
|
247
|
+
* @returns A created GCM template registration description.
|
|
248
|
+
*/
|
|
249
|
+
export declare function createGcmTemplateRegistrationDescription(description: Omit<GcmTemplateRegistrationDescription, "type">): GcmTemplateRegistrationDescription;
|
|
250
|
+
/**
|
|
251
|
+
* Represents Notification Hub registration description for Firebase Legacy HTTP API.
|
|
252
|
+
*/
|
|
253
|
+
export interface FcmRegistrationDescription extends RegistrationDescriptionCommon {
|
|
254
|
+
/**
|
|
255
|
+
* Registration id obtained from the Google Cloud Messaging service.
|
|
256
|
+
*/
|
|
257
|
+
fcmRegistrationId: string;
|
|
258
|
+
/**
|
|
259
|
+
* The type of the registration.
|
|
260
|
+
*/
|
|
261
|
+
type: "Fcm";
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Creates an FCM registration description.
|
|
265
|
+
* @param description - A partial FCM registration description.
|
|
266
|
+
* @returns A created FCM registration description.
|
|
267
|
+
*/
|
|
268
|
+
export declare function createFcmRegistrationDescription(description: Omit<FcmRegistrationDescription, "type">): FcmRegistrationDescription;
|
|
269
|
+
/**
|
|
270
|
+
* Represents Notification Hub template registration description for Firebase Legacy HTTP API.
|
|
271
|
+
*/
|
|
272
|
+
export interface FcmTemplateRegistrationDescription extends Omit<FcmRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
273
|
+
/**
|
|
274
|
+
* The type of the registration.
|
|
275
|
+
*/
|
|
276
|
+
type: "FcmTemplate";
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Creates an FCM template registration description.
|
|
280
|
+
* @param description - A partial FCM template registration description.
|
|
281
|
+
* @returns A created FCM template registration description.
|
|
282
|
+
*/
|
|
283
|
+
export declare function createFcmTemplateRegistrationDescription(description: Omit<FcmTemplateRegistrationDescription, "type">): FcmTemplateRegistrationDescription;
|
|
284
|
+
/**
|
|
285
|
+
* Represents a Windows Phone Notification Services registration description.
|
|
286
|
+
* @deprecated Windows Phone is no longer supported.
|
|
287
|
+
*/
|
|
288
|
+
export interface MpnsRegistrationDescription extends RegistrationDescriptionCommon {
|
|
289
|
+
/**
|
|
290
|
+
* The channel URI.
|
|
291
|
+
*/
|
|
292
|
+
channelUri: string;
|
|
293
|
+
/**
|
|
294
|
+
* The type of the registration.
|
|
295
|
+
*/
|
|
296
|
+
type: "Mpns";
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @deprecated Windows Phone is no longer supported.
|
|
300
|
+
* Creates an MPNS registration description.
|
|
301
|
+
* @param description - A partial MPNS registration description.
|
|
302
|
+
* @returns A created MPNS registration description.
|
|
303
|
+
*/
|
|
304
|
+
export declare function createMpnsRegistrationDescription(description: Omit<MpnsRegistrationDescription, "type">): MpnsRegistrationDescription;
|
|
305
|
+
/**
|
|
306
|
+
* Represents a Windows Phone Notification Services template registration.
|
|
307
|
+
* @deprecated Windows Phone is no longer supported.
|
|
308
|
+
*/
|
|
309
|
+
export interface MpnsTemplateRegistrationDescription extends Omit<MpnsRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
310
|
+
/**
|
|
311
|
+
* The WNS headers.
|
|
312
|
+
*/
|
|
313
|
+
mpnsHeaders?: Record<string, string>;
|
|
314
|
+
/**
|
|
315
|
+
* The type of the registration.
|
|
316
|
+
*/
|
|
317
|
+
type: "MpnsTemplate";
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* @deprecated Windows Phone is no longer supported.
|
|
321
|
+
* Creates an MPNS template registration description.
|
|
322
|
+
* @param description - A partial MPNS template registration description.
|
|
323
|
+
* @returns A created MPNS template registration description.
|
|
324
|
+
*/
|
|
325
|
+
export declare function createMpnsTemplateRegistrationDescription(description: Omit<MpnsTemplateRegistrationDescription, "type">): MpnsTemplateRegistrationDescription;
|
|
326
|
+
/**
|
|
327
|
+
* Represents a Windows Notification Services (WNS) registration description.
|
|
328
|
+
*/
|
|
329
|
+
export interface WindowsRegistrationDescription extends RegistrationDescriptionCommon {
|
|
330
|
+
/**
|
|
331
|
+
* The channel URI.
|
|
332
|
+
*/
|
|
333
|
+
channelUri: string;
|
|
334
|
+
/**
|
|
335
|
+
* The type of the registration.
|
|
336
|
+
*/
|
|
337
|
+
type: "Windows";
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* Creates a Windows registration description.
|
|
341
|
+
* @param description - A partial Windows registration description.
|
|
342
|
+
* @returns A created Windows registration description.
|
|
343
|
+
*/
|
|
344
|
+
export declare function createWindowsRegistrationDescription(description: Omit<WindowsRegistrationDescription, "type">): WindowsRegistrationDescription;
|
|
345
|
+
/**
|
|
346
|
+
* Represents a Windows Notification Services (WNS) template registration.
|
|
347
|
+
*/
|
|
348
|
+
export interface WindowsTemplateRegistrationDescription extends Omit<WindowsRegistrationDescription, "type">, TemplateRegistrationDescription {
|
|
349
|
+
/**
|
|
350
|
+
* The WNS headers.
|
|
351
|
+
*/
|
|
352
|
+
wnsHeaders?: Record<string, string>;
|
|
353
|
+
/**
|
|
354
|
+
* The type of the registration.
|
|
355
|
+
*/
|
|
356
|
+
type: "WindowsTemplate";
|
|
357
|
+
}
|
|
358
|
+
/**
|
|
359
|
+
* Creates a Windows template registration description.
|
|
360
|
+
* @param description - A partial Windows template registration description.
|
|
361
|
+
* @returns A created Windows template registration description.
|
|
362
|
+
*/
|
|
363
|
+
export declare function createWindowsTemplateRegistrationDescription(description: Omit<WindowsTemplateRegistrationDescription, "type">): WindowsTemplateRegistrationDescription;
|
|
364
|
+
/**
|
|
365
|
+
* Describes the types of registration descriptions.
|
|
366
|
+
*/
|
|
367
|
+
export declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription | FcmRegistrationDescription | FcmTemplateRegistrationDescription | MpnsRegistrationDescription | MpnsTemplateRegistrationDescription | WindowsRegistrationDescription | WindowsTemplateRegistrationDescription;
|
|
368
|
+
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../src/models/registration.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,oBAAY,gBAAgB,GACxB,KAAK,GACL,aAAa,GACb,OAAO,GACP,eAAe,GACf,OAAO,GACP,eAAe,GACf,SAAS,GACT,iBAAiB,GACjB,KAAK,GACL,aAAa,GACb,KAAK,GACL,aAAa,GACb,MAAM,GACN,cAAc,GACd,SAAS,GACT,iBAAiB,CAAC;AAEtB;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,cAAc,CAAC,EAAE,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEvC;;OAEG;IACH,IAAI,EAAE,gBAAgB,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,0BAA2B,SAAQ,6BAA6B;IAC/E;;OAEG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC;CACb;AAED;;;;GAIG;AACH,wBAAgB,gCAAgC,CAC9C,WAAW,EAAE,IAAI,CAAC,0BAA0B,EAAE,MAAM,CAAC,GACpD,0BAA0B,CAK5B;AAED;;GAEG;AACH,MAAM,WAAW,kCACf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;AACH,wBAAgB,yCAAyC,CACvD,WAAW,EAAE,IAAI,CAAC,mCAAmC,EAAE,MAAM,CAAC,GAC7D,mCAAmC,CAKrC;AAED;;GAEG;AACH,MAAM,WAAW,8BAA+B,SAAQ,6BAA6B;IACnF;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;;;GAIG;AACH,wBAAgB,oCAAoC,CAClD,WAAW,EAAE,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC,GACxD,8BAA8B,CAKhC;AAED;;GAEG;AACH,MAAM,WAAW,sCACf,SAAQ,IAAI,CAAC,8BAA8B,EAAE,MAAM,CAAC,EAClD,+BAA+B;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEpC;;OAEG;IACH,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,4CAA4C,CAC1D,WAAW,EAAE,IAAI,CAAC,sCAAsC,EAAE,MAAM,CAAC,GAChE,sCAAsC,CAKxC;AAED;;GAEG;AACH,oBAAY,uBAAuB,GAC/B,0BAA0B,GAC1B,kCAAkC,GAClC,4BAA4B,GAC5B,oCAAoC,GACpC,4BAA4B,GAC5B,oCAAoC,GACpC,8BAA8B,GAC9B,sCAAsC,GACtC,0BAA0B,GAC1B,kCAAkC,GAClC,0BAA0B,GAC1B,kCAAkC,GAClC,2BAA2B,GAC3B,mCAAmC,GACnC,8BAA8B,GAC9B,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { RegistrationDescription } from "./registration.js";
|
|
2
|
+
/**
|
|
3
|
+
* Describes a response from the Notification Hubs which includes a tracking ID, correlation ID and location.
|
|
4
|
+
*/
|
|
5
|
+
export interface NotificationHubsResponse {
|
|
6
|
+
/**
|
|
7
|
+
* The Tracking ID of the operation.
|
|
8
|
+
*/
|
|
9
|
+
trackingId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The correlation ID of the operation.
|
|
12
|
+
*/
|
|
13
|
+
correlationId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The location of the operation.
|
|
16
|
+
*/
|
|
17
|
+
location?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Describes a response from the Notification Hubs service for send operations.
|
|
21
|
+
*/
|
|
22
|
+
export interface NotificationHubsMessageResponse extends NotificationHubsResponse {
|
|
23
|
+
/**
|
|
24
|
+
* The notification ID from the operation. Note this is only available in Standard SKU and above.
|
|
25
|
+
*/
|
|
26
|
+
notificationId?: string;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Describes a registration query response with registrations and a continuation token.
|
|
30
|
+
*/
|
|
31
|
+
export interface RegistrationQueryResponse {
|
|
32
|
+
/**
|
|
33
|
+
* The list of registrations.
|
|
34
|
+
*/
|
|
35
|
+
registrations: RegistrationDescription[];
|
|
36
|
+
/**
|
|
37
|
+
* A continuation token to get more results.
|
|
38
|
+
*/
|
|
39
|
+
continuationToken?: string;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=response.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../../src/models/response.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,+BAAgC,SAAQ,wBAAwB;IAC/E;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,aAAa,EAAE,uBAAuB,EAAE,CAAC;IACzC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B"}
|