@azure/notification-hubs 1.0.0-beta.6 → 1.0.0-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +84 -77
- package/dist/index.cjs +312 -369
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/{client → api}/beginSubmitNotificationHubJob.js +0 -0
- package/dist-esm/src/api/beginSubmitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/cancelScheduledNotification.js +0 -0
- package/dist-esm/src/api/cancelScheduledNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/createOrUpdateInstallation.js +0 -0
- package/dist-esm/src/api/createOrUpdateInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/createOrUpdateRegistration.js +0 -0
- package/dist-esm/src/api/createOrUpdateRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/createRegistration.js +0 -0
- package/dist-esm/src/api/createRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/createRegistrationId.js +0 -0
- package/dist-esm/src/api/createRegistrationId.js.map +1 -0
- package/dist-esm/src/{client → api}/deleteInstallation.js +0 -0
- package/dist-esm/src/api/deleteInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/deleteRegistration.js +0 -0
- package/dist-esm/src/api/deleteRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/getFeedbackContainerUrl.js +0 -0
- package/dist-esm/src/api/getFeedbackContainerUrl.js.map +1 -0
- package/dist-esm/src/{client → api}/getInstallation.js +0 -0
- package/dist-esm/src/api/getInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/getNotificationHubJob.js +0 -0
- package/dist-esm/src/api/getNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/getNotificationOutcomeDetails.js +0 -0
- package/dist-esm/src/api/getNotificationOutcomeDetails.js.map +1 -0
- package/dist-esm/src/{client → api}/getRegistration.js +0 -0
- package/dist-esm/src/api/getRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/index.js +22 -0
- package/dist-esm/src/api/index.js.map +1 -0
- package/dist-esm/src/{client → api}/internal/_client.js +1 -1
- package/dist-esm/src/api/internal/_client.js.map +1 -0
- package/dist-esm/src/{client → api}/internal/_createOrUpdateRegistrationDescription.js +0 -0
- package/dist-esm/src/api/internal/_createOrUpdateRegistrationDescription.js.map +1 -0
- package/dist-esm/src/{client/listRegistrations.js → api/internal/_listRegistrations.js} +6 -38
- package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -0
- package/dist-esm/src/{client → api}/listNotificationHubJobs.js +0 -0
- package/dist-esm/src/api/listNotificationHubJobs.js.map +1 -0
- package/dist-esm/src/api/listRegistrations.js +35 -0
- package/dist-esm/src/api/listRegistrations.js.map +1 -0
- package/dist-esm/src/api/listRegistrationsByChannel.js +58 -0
- package/dist-esm/src/api/listRegistrationsByChannel.js.map +1 -0
- package/dist-esm/src/{client → api}/listRegistrationsByTag.js +0 -0
- package/dist-esm/src/api/listRegistrationsByTag.js.map +1 -0
- package/dist-esm/src/{client → api}/scheduleNotification.js +2 -3
- package/dist-esm/src/api/scheduleNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/sendNotification.js +3 -3
- package/dist-esm/src/api/sendNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/submitNotificationHubJob.js +0 -0
- package/dist-esm/src/api/submitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/updateInstallation.js +0 -0
- package/dist-esm/src/api/updateInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/updateRegistration.js +0 -0
- package/dist-esm/src/api/updateRegistration.js.map +1 -0
- package/dist-esm/src/index.js +3 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.js +12 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/installation.js.map +1 -1
- package/dist-esm/src/models/notification.js.map +1 -1
- package/dist-esm/src/models/notificationBodyBuilder.js +48 -0
- package/dist-esm/src/models/notificationBodyBuilder.js.map +1 -0
- package/dist-esm/src/models/notificationDetails.js.map +1 -1
- package/dist-esm/src/models/options.js.map +1 -1
- package/dist-esm/src/models/registration.js +12 -12
- package/dist-esm/src/models/registration.js.map +1 -1
- package/dist-esm/src/models/tagExpressionBuilder.js +11 -0
- package/dist-esm/src/models/tagExpressionBuilder.js.map +1 -0
- package/dist-esm/src/notificationHubsClient.js +34 -24
- package/dist-esm/src/notificationHubsClient.js.map +1 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js +2 -2
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js.map +1 -1
- package/dist-esm/src/serializers/registrationSerializer.js +16 -16
- package/dist-esm/src/serializers/registrationSerializer.js.map +1 -1
- package/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/notificationUtils.js +0 -6
- package/dist-esm/src/utils/notificationUtils.js.map +1 -1
- package/package.json +9 -13
- package/types/3.1/notification-hubs.d.ts +420 -249
- package/types/latest/notification-hubs.d.ts +448 -254
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/{client → api}/beginSubmitNotificationHubJob.d.ts +0 -0
- package/types/src/api/beginSubmitNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/cancelScheduledNotification.d.ts +0 -0
- package/types/src/api/cancelScheduledNotification.d.ts.map +1 -0
- package/types/src/{client → api}/createOrUpdateInstallation.d.ts +0 -0
- package/types/src/api/createOrUpdateInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/createOrUpdateRegistration.d.ts +0 -0
- package/types/src/api/createOrUpdateRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/createRegistration.d.ts +0 -0
- package/types/src/api/createRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/createRegistrationId.d.ts +0 -0
- package/types/src/api/createRegistrationId.d.ts.map +1 -0
- package/types/src/{client → api}/deleteInstallation.d.ts +0 -0
- package/types/src/api/deleteInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/deleteRegistration.d.ts +0 -0
- package/types/src/api/deleteRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/getFeedbackContainerUrl.d.ts +0 -0
- package/types/src/api/getFeedbackContainerUrl.d.ts.map +1 -0
- package/types/src/{client → api}/getInstallation.d.ts +0 -0
- package/types/src/api/getInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/getNotificationHubJob.d.ts +0 -0
- package/types/src/api/getNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/getNotificationOutcomeDetails.d.ts +0 -0
- package/types/src/api/getNotificationOutcomeDetails.d.ts.map +1 -0
- package/types/src/{client → api}/getRegistration.d.ts +0 -0
- package/types/src/api/getRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/index.d.ts +22 -0
- package/types/src/api/index.d.ts.map +1 -0
- package/types/src/{client → api}/internal/_client.d.ts +0 -0
- package/types/src/api/internal/_client.d.ts.map +1 -0
- package/types/src/{client → api}/internal/_createOrUpdateRegistrationDescription.d.ts +0 -0
- package/types/src/api/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -0
- package/types/src/api/internal/_listRegistrations.d.ts +6 -0
- package/types/src/api/internal/_listRegistrations.d.ts.map +1 -0
- package/types/src/{client → api}/listNotificationHubJobs.d.ts +0 -0
- package/types/src/api/listNotificationHubJobs.d.ts.map +1 -0
- package/types/src/{client → api}/listRegistrations.d.ts +3 -3
- package/types/src/api/listRegistrations.d.ts.map +1 -0
- package/types/src/api/listRegistrationsByChannel.d.ts +13 -0
- package/types/src/api/listRegistrationsByChannel.d.ts.map +1 -0
- package/types/src/{client → api}/listRegistrationsByTag.d.ts +0 -0
- package/types/src/api/listRegistrationsByTag.d.ts.map +1 -0
- package/types/src/{client → api}/scheduleNotification.d.ts +0 -0
- package/types/src/api/scheduleNotification.d.ts.map +1 -0
- package/types/src/{client → api}/sendNotification.d.ts +0 -0
- package/types/src/api/sendNotification.d.ts.map +1 -0
- package/types/src/{client → api}/submitNotificationHubJob.d.ts +0 -0
- package/types/src/api/submitNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/updateInstallation.d.ts +0 -0
- package/types/src/api/updateInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/updateRegistration.d.ts +0 -0
- package/types/src/api/updateRegistration.d.ts.map +1 -0
- package/types/src/index.d.ts +3 -2
- package/types/src/index.d.ts.map +1 -1
- package/types/src/models/index.d.ts +10 -0
- package/types/src/models/index.d.ts.map +1 -0
- package/types/src/models/installation.d.ts +12 -11
- package/types/src/models/installation.d.ts.map +1 -1
- package/types/src/models/notification.d.ts +10 -18
- package/types/src/models/notification.d.ts.map +1 -1
- package/types/src/models/{notificationBuilder.d.ts → notificationBodyBuilder.d.ts} +62 -64
- package/types/src/models/notificationBodyBuilder.d.ts.map +1 -0
- package/types/src/models/notificationDetails.d.ts +9 -9
- package/types/src/models/notificationDetails.d.ts.map +1 -1
- package/types/src/models/options.d.ts +4 -4
- package/types/src/models/options.d.ts.map +1 -1
- package/types/src/models/registration.d.ts +235 -69
- package/types/src/models/registration.d.ts.map +1 -1
- package/types/src/models/tagExpressionBuilder.d.ts +7 -0
- package/types/src/models/tagExpressionBuilder.d.ts.map +1 -0
- package/types/src/notificationHubsClient.d.ts +12 -5
- package/types/src/notificationHubsClient.d.ts.map +1 -1
- package/types/src/serializers/registrationSerializer.d.ts +14 -14
- package/types/src/serializers/registrationSerializer.d.ts.map +1 -1
- package/types/src/utils/notificationUtils.d.ts +0 -4
- package/types/src/utils/notificationUtils.d.ts.map +1 -1
- package/dist-esm/src/client/beginSubmitNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/cancelScheduledNotification.js.map +0 -1
- package/dist-esm/src/client/createOrUpdateInstallation.js.map +0 -1
- package/dist-esm/src/client/createOrUpdateRegistration.js.map +0 -1
- package/dist-esm/src/client/createRegistration.js.map +0 -1
- package/dist-esm/src/client/createRegistrationId.js.map +0 -1
- package/dist-esm/src/client/deleteInstallation.js.map +0 -1
- package/dist-esm/src/client/deleteRegistration.js.map +0 -1
- package/dist-esm/src/client/getFeedbackContainerUrl.js.map +0 -1
- package/dist-esm/src/client/getInstallation.js.map +0 -1
- package/dist-esm/src/client/getNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +0 -1
- package/dist-esm/src/client/getRegistration.js.map +0 -1
- package/dist-esm/src/client/index.js.map +0 -1
- package/dist-esm/src/client/internal/_client.js.map +0 -1
- package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +0 -1
- package/dist-esm/src/client/listNotificationHubJobs.js.map +0 -1
- package/dist-esm/src/client/listRegistrations.js.map +0 -1
- package/dist-esm/src/client/listRegistrationsByTag.js.map +0 -1
- package/dist-esm/src/client/scheduleNotification.js.map +0 -1
- package/dist-esm/src/client/sendNotification.js.map +0 -1
- package/dist-esm/src/client/submitNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/updateInstallation.js.map +0 -1
- package/dist-esm/src/client/updateRegistration.js.map +0 -1
- package/dist-esm/src/models/notificationBuilder.js +0 -169
- package/dist-esm/src/models/notificationBuilder.js.map +0 -1
- package/dist-esm/src/utils/retryPolicy.js +0 -144
- package/dist-esm/src/utils/retryPolicy.js.map +0 -1
- package/types/src/client/beginSubmitNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/cancelScheduledNotification.d.ts.map +0 -1
- package/types/src/client/createOrUpdateInstallation.d.ts.map +0 -1
- package/types/src/client/createOrUpdateRegistration.d.ts.map +0 -1
- package/types/src/client/createRegistration.d.ts.map +0 -1
- package/types/src/client/createRegistrationId.d.ts.map +0 -1
- package/types/src/client/deleteInstallation.d.ts.map +0 -1
- package/types/src/client/deleteRegistration.d.ts.map +0 -1
- package/types/src/client/getFeedbackContainerUrl.d.ts.map +0 -1
- package/types/src/client/getInstallation.d.ts.map +0 -1
- package/types/src/client/getNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/getNotificationOutcomeDetails.d.ts.map +0 -1
- package/types/src/client/getRegistration.d.ts.map +0 -1
- package/types/src/client/index.d.ts.map +0 -1
- package/types/src/client/internal/_client.d.ts.map +0 -1
- package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts.map +0 -1
- package/types/src/client/listNotificationHubJobs.d.ts.map +0 -1
- package/types/src/client/listRegistrations.d.ts.map +0 -1
- package/types/src/client/listRegistrationsByTag.d.ts.map +0 -1
- package/types/src/client/scheduleNotification.d.ts.map +0 -1
- package/types/src/client/sendNotification.d.ts.map +0 -1
- package/types/src/client/submitNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/updateInstallation.d.ts.map +0 -1
- package/types/src/client/updateRegistration.d.ts.map +0 -1
- package/types/src/models/notificationBuilder.d.ts.map +0 -1
- package/types/src/utils/retryPolicy.d.ts +0 -72
- package/types/src/utils/retryPolicy.d.ts.map +0 -1
|
@@ -26,10 +26,6 @@ export interface RegistrationDescriptionCommon {
|
|
|
26
26
|
* A dictionary of push variables associated with property bag.
|
|
27
27
|
*/
|
|
28
28
|
pushVariables?: Record<string, string>;
|
|
29
|
-
/**
|
|
30
|
-
* The type of the registration.
|
|
31
|
-
*/
|
|
32
|
-
type: RegistrationType;
|
|
33
29
|
}
|
|
34
30
|
/**
|
|
35
31
|
* Represents the description of a template registration.
|
|
@@ -44,67 +40,75 @@ export interface TemplateRegistrationDescription {
|
|
|
44
40
|
*/
|
|
45
41
|
templateName?: string;
|
|
46
42
|
}
|
|
47
|
-
|
|
48
|
-
* Represents the description of the Amazon Device Messaging (ADM) registration.
|
|
49
|
-
*/
|
|
50
|
-
export interface AdmRegistrationDescription extends RegistrationDescriptionCommon {
|
|
43
|
+
export interface AdmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
51
44
|
/**
|
|
52
45
|
* The Amazon Device Messaging registration identifier.
|
|
53
46
|
*/
|
|
54
47
|
admRegistrationId: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Represents the description of the Amazon Device Messaging (ADM) registration.
|
|
51
|
+
*/
|
|
52
|
+
export interface AdmRegistrationDescription extends AdmRegistrationDescriptionCommon {
|
|
55
53
|
/**
|
|
56
|
-
* The
|
|
54
|
+
* The kind of the registration.
|
|
57
55
|
*/
|
|
58
|
-
|
|
56
|
+
kind: "Adm";
|
|
59
57
|
}
|
|
60
58
|
/**
|
|
61
59
|
* Creates an ADM registration description.
|
|
62
60
|
* @param description - A partial ADM registration description.
|
|
63
61
|
* @returns A created ADM registration description.
|
|
64
62
|
*/
|
|
65
|
-
export declare function createAdmRegistrationDescription(description:
|
|
63
|
+
export declare function createAdmRegistrationDescription(description: AdmRegistrationDescriptionCommon): AdmRegistrationDescription;
|
|
66
64
|
/**
|
|
67
65
|
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
68
66
|
*/
|
|
69
|
-
export interface
|
|
67
|
+
export interface AdmTemplateRegistrationDescriptionCommon extends AdmRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Represents the description of the Amazon Device Messaging (ADM) template registration.
|
|
71
|
+
*/
|
|
72
|
+
export interface AdmTemplateRegistrationDescription extends AdmTemplateRegistrationDescriptionCommon {
|
|
70
73
|
/**
|
|
71
|
-
* The
|
|
74
|
+
* The kind of the registration.
|
|
72
75
|
*/
|
|
73
|
-
|
|
76
|
+
kind: "AdmTemplate";
|
|
74
77
|
}
|
|
75
78
|
/**
|
|
76
79
|
* Creates an ADM template registration description.
|
|
77
80
|
* @param description - A partial ADM template registration description.
|
|
78
81
|
* @returns A created ADM template registration description.
|
|
79
82
|
*/
|
|
80
|
-
export declare function createAdmTemplateRegistrationDescription(description:
|
|
83
|
+
export declare function createAdmTemplateRegistrationDescription(description: AdmTemplateRegistrationDescriptionCommon): AdmTemplateRegistrationDescription;
|
|
81
84
|
/**
|
|
82
85
|
* Represents the description of apple registration.
|
|
83
86
|
*/
|
|
84
|
-
export interface
|
|
87
|
+
export interface AppleRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
85
88
|
/**
|
|
86
89
|
* The APNs device token.
|
|
87
90
|
*/
|
|
88
91
|
deviceToken: string;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Represents the description of apple registration.
|
|
95
|
+
*/
|
|
96
|
+
export interface AppleRegistrationDescription extends AppleRegistrationDescriptionCommon {
|
|
89
97
|
/**
|
|
90
|
-
* The
|
|
98
|
+
* The kind of the registration.
|
|
91
99
|
*/
|
|
92
|
-
|
|
100
|
+
kind: "Apple";
|
|
93
101
|
}
|
|
94
102
|
/**
|
|
95
103
|
* Creates an Apple registration description.
|
|
96
104
|
* @param description - A partial Apple registration description.
|
|
97
105
|
* @returns A created Apple registration description.
|
|
98
106
|
*/
|
|
99
|
-
export declare function createAppleRegistrationDescription(description:
|
|
100
|
-
/**
|
|
101
|
-
* The priority of the Apple push notification.
|
|
102
|
-
*/
|
|
103
|
-
export declare type ApplePriority = "10" | "5";
|
|
107
|
+
export declare function createAppleRegistrationDescription(description: AppleRegistrationDescriptionCommon): AppleRegistrationDescription;
|
|
104
108
|
/**
|
|
105
109
|
* Represents the description of the Apple template registration.
|
|
106
110
|
*/
|
|
107
|
-
export interface
|
|
111
|
+
export interface AppleTemplateRegistrationDescriptionCommon extends AppleRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
108
112
|
/**
|
|
109
113
|
* The expiry date.
|
|
110
114
|
*/
|
|
@@ -112,26 +116,28 @@ export interface AppleTemplateRegistrationDescription extends Omit<AppleRegistra
|
|
|
112
116
|
/**
|
|
113
117
|
* The notification priority.
|
|
114
118
|
*/
|
|
115
|
-
priority?:
|
|
119
|
+
priority?: "10" | "5";
|
|
116
120
|
/**
|
|
117
121
|
* The APNS headers.
|
|
118
122
|
*/
|
|
119
123
|
apnsHeaders?: Record<string, string>;
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Represents the description of the Apple template registration.
|
|
127
|
+
*/
|
|
128
|
+
export interface AppleTemplateRegistrationDescription extends AppleTemplateRegistrationDescriptionCommon {
|
|
120
129
|
/**
|
|
121
|
-
* The
|
|
130
|
+
* The kind of the registration.
|
|
122
131
|
*/
|
|
123
|
-
|
|
132
|
+
kind: "AppleTemplate";
|
|
124
133
|
}
|
|
125
134
|
/**
|
|
126
135
|
* Creates an Apple template registration description.
|
|
127
136
|
* @param description - A partial Apple template registration description.
|
|
128
137
|
* @returns A created Apple template registration description.
|
|
129
138
|
*/
|
|
130
|
-
export declare function createAppleTemplateRegistrationDescription(description:
|
|
131
|
-
|
|
132
|
-
* Represents a Baidu registration description.
|
|
133
|
-
*/
|
|
134
|
-
export interface BaiduRegistrationDescription extends RegistrationDescriptionCommon {
|
|
139
|
+
export declare function createAppleTemplateRegistrationDescription(description: AppleTemplateRegistrationDescriptionCommon): AppleTemplateRegistrationDescription;
|
|
140
|
+
export interface BaiduRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
135
141
|
/**
|
|
136
142
|
* The Baidu user identifier.
|
|
137
143
|
*/
|
|
@@ -140,36 +146,46 @@ export interface BaiduRegistrationDescription extends RegistrationDescriptionCom
|
|
|
140
146
|
* The Baidu channel identifier.
|
|
141
147
|
*/
|
|
142
148
|
baiduChannelId: string;
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Represents a Baidu registration description.
|
|
152
|
+
*/
|
|
153
|
+
export interface BaiduRegistrationDescription extends BaiduRegistrationDescriptionCommon {
|
|
143
154
|
/**
|
|
144
|
-
* The
|
|
155
|
+
* The kind of the registration.
|
|
145
156
|
*/
|
|
146
|
-
|
|
157
|
+
kind: "Baidu";
|
|
147
158
|
}
|
|
148
159
|
/**
|
|
149
160
|
* Creates a Baidu registration description.
|
|
150
161
|
* @param description - A partial Baidu registration description.
|
|
151
162
|
* @returns A created Baidu registration description.
|
|
152
163
|
*/
|
|
153
|
-
export declare function createBaiduRegistrationDescription(description:
|
|
164
|
+
export declare function createBaiduRegistrationDescription(description: BaiduRegistrationDescriptionCommon): BaiduRegistrationDescription;
|
|
165
|
+
/**
|
|
166
|
+
* Represents a Baidu template registration description.
|
|
167
|
+
*/
|
|
168
|
+
export interface BaiduTemplateRegistrationDescriptionCommon extends BaiduRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
169
|
+
}
|
|
154
170
|
/**
|
|
155
171
|
* Represents a Baidu template registration description.
|
|
156
172
|
*/
|
|
157
|
-
export interface BaiduTemplateRegistrationDescription extends
|
|
173
|
+
export interface BaiduTemplateRegistrationDescription extends BaiduTemplateRegistrationDescriptionCommon {
|
|
158
174
|
/**
|
|
159
|
-
* The
|
|
175
|
+
* The kind of the registration.
|
|
160
176
|
*/
|
|
161
|
-
|
|
177
|
+
kind: "BaiduTemplate";
|
|
162
178
|
}
|
|
163
179
|
/**
|
|
164
180
|
* Creates a Baidu template registration description.
|
|
165
181
|
* @param description - A partial Baidu template registration description.
|
|
166
182
|
* @returns A created Baidu template registration description.
|
|
167
183
|
*/
|
|
168
|
-
export declare function createBaiduTemplateRegistrationDescription(description:
|
|
184
|
+
export declare function createBaiduTemplateRegistrationDescription(description: BaiduTemplateRegistrationDescriptionCommon): BaiduTemplateRegistrationDescription;
|
|
169
185
|
/**
|
|
170
186
|
* Represents a Browser Push registration description.
|
|
171
187
|
*/
|
|
172
|
-
export interface
|
|
188
|
+
export interface BrowserRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
173
189
|
/**
|
|
174
190
|
* The Browser push endpoint.
|
|
175
191
|
*/
|
|
@@ -182,134 +198,284 @@ export interface BrowserRegistrationDescription extends RegistrationDescriptionC
|
|
|
182
198
|
* The Browser push auth secret.
|
|
183
199
|
*/
|
|
184
200
|
auth: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* Represents a Browser Push registration description.
|
|
204
|
+
*/
|
|
205
|
+
export interface BrowserRegistrationDescription extends BrowserRegistrationDescriptionCommon {
|
|
185
206
|
/**
|
|
186
|
-
* The
|
|
207
|
+
* The kind of the registration.
|
|
187
208
|
*/
|
|
188
|
-
|
|
209
|
+
kind: "Browser";
|
|
189
210
|
}
|
|
190
211
|
/**
|
|
191
212
|
* Creates a Web Push registration description.
|
|
192
213
|
* @param description - A partial Web Push registration description.
|
|
193
214
|
* @returns A created Web Push registration description.
|
|
194
215
|
*/
|
|
195
|
-
export declare function createBrowserRegistrationDescription(description:
|
|
216
|
+
export declare function createBrowserRegistrationDescription(description: BrowserRegistrationDescriptionCommon): BrowserRegistrationDescription;
|
|
196
217
|
/**
|
|
197
218
|
* Represents a Browser Push remplate registration description.
|
|
198
219
|
*/
|
|
199
|
-
export interface
|
|
220
|
+
export interface BrowserTemplateRegistrationDescriptionCommon extends BrowserRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Represents a Browser Push remplate registration description.
|
|
224
|
+
*/
|
|
225
|
+
export interface BrowserTemplateRegistrationDescription extends BrowserTemplateRegistrationDescriptionCommon {
|
|
200
226
|
/**
|
|
201
|
-
* The
|
|
227
|
+
* The kind of the registration.
|
|
202
228
|
*/
|
|
203
|
-
|
|
229
|
+
kind: "BrowserTemplate";
|
|
204
230
|
}
|
|
205
231
|
/**
|
|
206
232
|
* Creates a Web Push registration description.
|
|
207
233
|
* @param description - A partial Web Push template registration description.
|
|
208
234
|
* @returns A created Web Push template registration description.
|
|
209
235
|
*/
|
|
210
|
-
export declare function createBrowserTemplateRegistrationDescription(description:
|
|
236
|
+
export declare function createBrowserTemplateRegistrationDescription(description: BrowserTemplateRegistrationDescriptionCommon): BrowserTemplateRegistrationDescription;
|
|
211
237
|
/**
|
|
212
238
|
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
213
239
|
*/
|
|
214
|
-
export interface
|
|
240
|
+
export interface GcmRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
215
241
|
/**
|
|
216
242
|
* Registration id obtained from the Google Cloud Messaging service.
|
|
217
243
|
*/
|
|
218
244
|
gcmRegistrationId: string;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Represents Notification Hub registration description for Google Cloud Messaging.
|
|
248
|
+
*/
|
|
249
|
+
export interface GcmRegistrationDescription extends GcmRegistrationDescriptionCommon {
|
|
219
250
|
/**
|
|
220
|
-
* The
|
|
251
|
+
* The kind of the registration.
|
|
221
252
|
*/
|
|
222
|
-
|
|
253
|
+
kind: "Gcm";
|
|
223
254
|
}
|
|
224
255
|
/**
|
|
225
256
|
* Creates a Firebase Legacy registration description.
|
|
226
257
|
* @param description - A partial GCM registration description.
|
|
227
258
|
* @returns A created GCM registration description.
|
|
228
259
|
*/
|
|
229
|
-
export declare function createFcmLegacyRegistrationDescription(description:
|
|
260
|
+
export declare function createFcmLegacyRegistrationDescription(description: GcmRegistrationDescriptionCommon): GcmRegistrationDescription;
|
|
230
261
|
/**
|
|
231
262
|
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
232
263
|
*/
|
|
233
|
-
export interface
|
|
264
|
+
export interface GcmTemplateRegistrationDescriptionCommon extends GcmRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
265
|
+
}
|
|
266
|
+
/**
|
|
267
|
+
* Represents Notification Hub template registration description for Firebase Legacy Cloud Messaging.
|
|
268
|
+
*/
|
|
269
|
+
export interface GcmTemplateRegistrationDescription extends GcmTemplateRegistrationDescriptionCommon {
|
|
234
270
|
/**
|
|
235
|
-
* The
|
|
271
|
+
* The kind of the registration.
|
|
236
272
|
*/
|
|
237
|
-
|
|
273
|
+
kind: "GcmTemplate";
|
|
238
274
|
}
|
|
239
275
|
/**
|
|
240
276
|
* Creates a GCM template registration description.
|
|
241
277
|
* @param description - A partial GCM template registration description.
|
|
242
278
|
* @returns A created GCM template registration description.
|
|
243
279
|
*/
|
|
244
|
-
export declare function createFcmLegacyTemplateRegistrationDescription(description:
|
|
280
|
+
export declare function createFcmLegacyTemplateRegistrationDescription(description: GcmTemplateRegistrationDescriptionCommon): GcmTemplateRegistrationDescription;
|
|
245
281
|
/**
|
|
246
282
|
* Represents a Windows Phone Notification Services registration description.
|
|
247
283
|
* @deprecated Windows Phone is no longer supported.
|
|
248
284
|
*/
|
|
249
|
-
export interface
|
|
285
|
+
export interface MpnsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
250
286
|
/**
|
|
251
287
|
* The channel URI.
|
|
252
288
|
*/
|
|
253
289
|
channelUri: string;
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* Represents a Windows Phone Notification Services registration description.
|
|
293
|
+
* @deprecated Windows Phone is no longer supported.
|
|
294
|
+
*/
|
|
295
|
+
export interface MpnsRegistrationDescription extends MpnsRegistrationDescriptionCommon {
|
|
254
296
|
/**
|
|
255
|
-
* The
|
|
297
|
+
* The kind of the registration.
|
|
256
298
|
*/
|
|
257
|
-
|
|
299
|
+
kind: "Mpns";
|
|
258
300
|
}
|
|
259
301
|
/**
|
|
260
302
|
* Represents a Windows Phone Notification Services template registration.
|
|
261
303
|
* @deprecated Windows Phone is no longer supported.
|
|
262
304
|
*/
|
|
263
|
-
export interface MpnsTemplateRegistrationDescription extends
|
|
305
|
+
export interface MpnsTemplateRegistrationDescription extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
264
306
|
/**
|
|
265
307
|
* The WNS headers.
|
|
266
308
|
*/
|
|
267
309
|
mpnsHeaders?: Record<string, string>;
|
|
268
310
|
/**
|
|
269
|
-
* The
|
|
311
|
+
* The kind of the registration.
|
|
270
312
|
*/
|
|
271
|
-
|
|
313
|
+
kind: "MpnsTemplate";
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Represents a Windows Phone Notification Services template registration.
|
|
317
|
+
* @deprecated Windows Phone is no longer supported.
|
|
318
|
+
*/
|
|
319
|
+
export interface MpnsTemplateRegistrationDescriptionCommon extends MpnsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
320
|
+
/**
|
|
321
|
+
* The WNS headers.
|
|
322
|
+
*/
|
|
323
|
+
mpnsHeaders?: Record<string, string>;
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Represents a Windows Phone Notification Services template registration.
|
|
327
|
+
* @deprecated Windows Phone is no longer supported.
|
|
328
|
+
*/
|
|
329
|
+
export interface MpnsTemplateRegistrationDescription extends MpnsTemplateRegistrationDescriptionCommon {
|
|
330
|
+
/**
|
|
331
|
+
* The kind of the registration.
|
|
332
|
+
*/
|
|
333
|
+
kind: "MpnsTemplate";
|
|
272
334
|
}
|
|
273
335
|
/**
|
|
274
336
|
* Represents a Windows Notification Services (WNS) registration description.
|
|
275
337
|
*/
|
|
276
|
-
export interface
|
|
338
|
+
export interface WindowsRegistrationDescriptionCommon extends RegistrationDescriptionCommon {
|
|
277
339
|
/**
|
|
278
340
|
* The channel URI.
|
|
279
341
|
*/
|
|
280
342
|
channelUri: string;
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Represents a Windows Notification Services (WNS) registration description.
|
|
346
|
+
*/
|
|
347
|
+
export interface WindowsRegistrationDescription extends WindowsRegistrationDescriptionCommon {
|
|
281
348
|
/**
|
|
282
|
-
* The
|
|
349
|
+
* The kind of the registration.
|
|
283
350
|
*/
|
|
284
|
-
|
|
351
|
+
kind: "Windows";
|
|
285
352
|
}
|
|
286
353
|
/**
|
|
287
354
|
* Creates a Windows registration description.
|
|
288
355
|
* @param description - A partial Windows registration description.
|
|
289
356
|
* @returns A created Windows registration description.
|
|
290
357
|
*/
|
|
291
|
-
export declare function createWindowsRegistrationDescription(description:
|
|
358
|
+
export declare function createWindowsRegistrationDescription(description: WindowsRegistrationDescriptionCommon): WindowsRegistrationDescription;
|
|
292
359
|
/**
|
|
293
360
|
* Represents a Windows Notification Services (WNS) template registration.
|
|
294
361
|
*/
|
|
295
|
-
export interface
|
|
362
|
+
export interface WindowsTemplateRegistrationDescriptionCommon extends WindowsRegistrationDescriptionCommon, TemplateRegistrationDescription {
|
|
296
363
|
/**
|
|
297
364
|
* The WNS headers.
|
|
298
365
|
*/
|
|
299
366
|
wnsHeaders?: Record<string, string>;
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Represents a Windows Notification Services (WNS) template registration.
|
|
370
|
+
*/
|
|
371
|
+
export interface WindowsTemplateRegistrationDescription extends WindowsTemplateRegistrationDescriptionCommon {
|
|
300
372
|
/**
|
|
301
|
-
* The
|
|
373
|
+
* The kind of the registration.
|
|
302
374
|
*/
|
|
303
|
-
|
|
375
|
+
kind: "WindowsTemplate";
|
|
304
376
|
}
|
|
305
377
|
/**
|
|
306
378
|
* Creates a Windows template registration description.
|
|
307
379
|
* @param description - A partial Windows template registration description.
|
|
308
380
|
* @returns A created Windows template registration description.
|
|
309
381
|
*/
|
|
310
|
-
export declare function createWindowsTemplateRegistrationDescription(description:
|
|
382
|
+
export declare function createWindowsTemplateRegistrationDescription(description: WindowsTemplateRegistrationDescriptionCommon): WindowsTemplateRegistrationDescription;
|
|
311
383
|
/**
|
|
312
384
|
* Describes the types of registration descriptions.
|
|
313
385
|
*/
|
|
314
386
|
export declare type RegistrationDescription = AdmRegistrationDescription | AdmTemplateRegistrationDescription | AppleRegistrationDescription | AppleTemplateRegistrationDescription | BaiduRegistrationDescription | BaiduTemplateRegistrationDescription | BrowserRegistrationDescription | BrowserTemplateRegistrationDescription | GcmRegistrationDescription | GcmTemplateRegistrationDescription | MpnsRegistrationDescription | MpnsTemplateRegistrationDescription | WindowsRegistrationDescription | WindowsTemplateRegistrationDescription;
|
|
387
|
+
/**
|
|
388
|
+
* Describes an ADM Registration channel query.
|
|
389
|
+
*/
|
|
390
|
+
export interface AdmRegistrationChannel {
|
|
391
|
+
/**
|
|
392
|
+
* The ADM Registration ID.
|
|
393
|
+
*/
|
|
394
|
+
admRegistrationId: string;
|
|
395
|
+
/**
|
|
396
|
+
* The kind of the registration channel.
|
|
397
|
+
*/
|
|
398
|
+
kind: "adm";
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* Describes an Apple Registration channel query.
|
|
402
|
+
*/
|
|
403
|
+
export interface AppleRegistrationChannel {
|
|
404
|
+
/**
|
|
405
|
+
* The APNs device token.
|
|
406
|
+
*/
|
|
407
|
+
deviceToken: string;
|
|
408
|
+
/**
|
|
409
|
+
* The kind of the registration channel.
|
|
410
|
+
*/
|
|
411
|
+
kind: "apple";
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Describes an Baidu Registration channel query.
|
|
415
|
+
*/
|
|
416
|
+
export interface BaiduRegistrationChannel {
|
|
417
|
+
/**
|
|
418
|
+
* The Baidu Channel ID.
|
|
419
|
+
*/
|
|
420
|
+
baiduChannelId: string;
|
|
421
|
+
/**
|
|
422
|
+
* The Baidu User ID.
|
|
423
|
+
*/
|
|
424
|
+
baiduUserId: string;
|
|
425
|
+
/**
|
|
426
|
+
* The kind of the registration channel.
|
|
427
|
+
*/
|
|
428
|
+
kind: "baidu";
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Describes an Browser Registration channel query.
|
|
432
|
+
*/
|
|
433
|
+
export interface BrowserRegistrationChannel {
|
|
434
|
+
/**
|
|
435
|
+
* The Web Push endpoint URL.
|
|
436
|
+
*/
|
|
437
|
+
endpoint: string;
|
|
438
|
+
/**
|
|
439
|
+
* The Web Push subscription P256DH.
|
|
440
|
+
*/
|
|
441
|
+
p256dh: string;
|
|
442
|
+
/**
|
|
443
|
+
* The Web Push subscription auth secret.
|
|
444
|
+
*/
|
|
445
|
+
auth: string;
|
|
446
|
+
/**
|
|
447
|
+
* The kind of the registration channel.
|
|
448
|
+
*/
|
|
449
|
+
kind: "browser";
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Describes an Firebase Legacy Registration channel query.
|
|
453
|
+
*/
|
|
454
|
+
export interface FirebaseLegacyRegistrationChannel {
|
|
455
|
+
/**
|
|
456
|
+
* The FCM Legacy registration ID.
|
|
457
|
+
*/
|
|
458
|
+
gcmRegistrationId: string;
|
|
459
|
+
/**
|
|
460
|
+
* The kind of the registration channel.
|
|
461
|
+
*/
|
|
462
|
+
kind: "gcm";
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Describes an Windows Notification Services Registration channel query.
|
|
466
|
+
*/
|
|
467
|
+
export interface WindowsRegistrationChannel {
|
|
468
|
+
/**
|
|
469
|
+
* The WNS Channel URI.
|
|
470
|
+
*/
|
|
471
|
+
channelUri: string;
|
|
472
|
+
/**
|
|
473
|
+
* The kind of the registration channel.
|
|
474
|
+
*/
|
|
475
|
+
kind: "windows";
|
|
476
|
+
}
|
|
477
|
+
/**
|
|
478
|
+
* Describes a Registration query.
|
|
479
|
+
*/
|
|
480
|
+
export declare type RegistrationChannel = AdmRegistrationChannel | AppleRegistrationChannel | BaiduRegistrationChannel | BrowserRegistrationChannel | FirebaseLegacyRegistrationChannel | WindowsRegistrationChannel;
|
|
315
481
|
//# sourceMappingURL=registration.d.ts.map
|
|
@@ -1 +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,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;
|
|
1
|
+
{"version":3,"file":"registration.d.ts","sourceRoot":"","sources":["../../../src/models/registration.ts"],"names":[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BAAwB,GACxB,wBAAwB,GACxB,0BAA0B,GAC1B,iCAAiC,GACjC,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a tag expression from a list of tags as a || expression.
|
|
3
|
+
* @param tags - The tags to create the || expression
|
|
4
|
+
* @returns The tag expression made from the array of strings into an || expression.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createTagExpression(tags: string[]): string;
|
|
7
|
+
//# sourceMappingURL=tagExpressionBuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagExpressionBuilder.d.ts","sourceRoot":"","sources":["../../../src/models/tagExpressionBuilder.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAE1D"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { DirectSendNotificationOptions, EntityOperationOptions, NotificationHubsClientOptions, PolledOperationOptions, RegistrationQueryLimitOptions,
|
|
1
|
+
import { DirectSendNotificationOptions, EntityOperationOptions, NotificationHubsClientOptions, PolledOperationOptions, RegistrationQueryLimitOptions, ScheduleNotificationOptions, SendNotificationOptions } from "./models/options.js";
|
|
2
2
|
import { Installation, JsonPatch } from "./models/installation.js";
|
|
3
3
|
import { NotificationDetails, NotificationHubsMessageResponse, NotificationHubsResponse } from "./models/notificationDetails.js";
|
|
4
4
|
import { NotificationHubJob, NotificationHubJobPoller } from "./models/notificationHubJob.js";
|
|
5
|
+
import { RegistrationDescription, RegistrationChannel } from "./models/registration.js";
|
|
5
6
|
import { Notification } from "./models/notification.js";
|
|
6
7
|
import { OperationOptions } from "@azure/core-client";
|
|
7
8
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
8
|
-
import { RegistrationDescription } from "./models/registration.js";
|
|
9
9
|
/**
|
|
10
10
|
* This represents a client for Azure Notification Hubs to manage installations and send
|
|
11
11
|
* messages to devices.
|
|
12
12
|
*/
|
|
13
|
-
export declare class
|
|
13
|
+
export declare class NotificationHubsClient {
|
|
14
14
|
private _client;
|
|
15
15
|
/**
|
|
16
16
|
* Creates a new instance of the NotificationClient with a connection string, hub name and options.
|
|
@@ -93,10 +93,17 @@ export declare class NotificationHubsServiceClient {
|
|
|
93
93
|
getRegistration(registrationId: string, options?: OperationOptions): Promise<RegistrationDescription>;
|
|
94
94
|
/**
|
|
95
95
|
* Gets all registrations for the notification hub with the given query options.
|
|
96
|
-
* @param options - The options for querying the registrations such as $top
|
|
96
|
+
* @param options - The options for querying the registrations such as $top.
|
|
97
97
|
* @returns A paged async iterable containing all of the registrations for the notification hub.
|
|
98
98
|
*/
|
|
99
|
-
listRegistrations(options?:
|
|
99
|
+
listRegistrations(options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
100
|
+
/**
|
|
101
|
+
* Gets all registrations for the notification hub with the given device information and options.
|
|
102
|
+
* @param channel - The registration channel information to query per PNS type.
|
|
103
|
+
* @param options - The options for querying the registrations such as $top.
|
|
104
|
+
* @returns A paged async iterable containing all of the registrations for the notification hub.
|
|
105
|
+
*/
|
|
106
|
+
listRegistrationsByChannel(channel: RegistrationChannel, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
|
|
100
107
|
/**
|
|
101
108
|
* Lists all registrations with the matching tag.
|
|
102
109
|
* @param tag - The tag to query for matching registrations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationHubsClient.d.ts","sourceRoot":"","sources":["../../src/notificationHubsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,
|
|
1
|
+
{"version":3,"file":"notificationHubsClient.d.ts","sourceRoot":"","sources":["../../src/notificationHubsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6BAA6B,EAC7B,sBAAs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