@azure/notification-hubs 1.0.0-beta.8 → 1.0.0
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 +1 -1
- package/dist/index.cjs +71 -3
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/models/installation.js +8 -0
- package/dist-esm/src/models/installation.js.map +1 -1
- package/dist-esm/src/models/notification.js +9 -1
- package/dist-esm/src/models/notification.js.map +1 -1
- package/dist-esm/src/models/notificationDetails.js.map +1 -1
- package/dist-esm/src/models/registration.js +16 -0
- package/dist-esm/src/models/registration.js.map +1 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js +5 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
- package/dist-esm/src/serializers/registrationSerializer.js +28 -0
- 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/package.json +14 -9
- package/types/3.1/notification-hubs.d.ts +97 -6
- package/types/latest/notification-hubs.d.ts +108 -6
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/models/installation.d.ts +16 -1
- package/types/src/models/installation.d.ts.map +1 -1
- package/types/src/models/notification.d.ts +17 -2
- package/types/src/models/notification.d.ts.map +1 -1
- package/types/src/models/notificationDetails.d.ts +4 -0
- package/types/src/models/notificationDetails.d.ts.map +1 -1
- package/types/src/models/registration.d.ts +60 -3
- package/types/src/models/registration.d.ts.map +1 -1
- package/types/src/serializers/notificationDetailsSerializer.d.ts.map +1 -1
- package/types/src/serializers/registrationSerializer.d.ts +21 -1
- package/types/src/serializers/registrationSerializer.d.ts.map +1 -1
- package/types/src/utils/constants.d.ts.map +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdmRegistrationDescription, AdmTemplateRegistrationDescription, AppleRegistrationDescription, AppleTemplateRegistrationDescription, BaiduRegistrationDescription, BaiduTemplateRegistrationDescription, BrowserRegistrationDescription, BrowserTemplateRegistrationDescription, GcmRegistrationDescription, GcmTemplateRegistrationDescription, MpnsRegistrationDescription, MpnsTemplateRegistrationDescription, RegistrationDescription, WindowsRegistrationDescription, WindowsTemplateRegistrationDescription } from "../models/registration.js";
|
|
1
|
+
import { AdmRegistrationDescription, AdmTemplateRegistrationDescription, AppleRegistrationDescription, AppleTemplateRegistrationDescription, BaiduRegistrationDescription, BaiduTemplateRegistrationDescription, BrowserRegistrationDescription, BrowserTemplateRegistrationDescription, GcmRegistrationDescription, GcmTemplateRegistrationDescription, MpnsRegistrationDescription, MpnsTemplateRegistrationDescription, RegistrationDescription, XiaomiRegistrationDescription, XiaomiTemplateRegistrationDescription, WindowsRegistrationDescription, WindowsTemplateRegistrationDescription } from "../models/registration.js";
|
|
2
2
|
/**
|
|
3
3
|
* Represents a registration description parser from the incoming XML.
|
|
4
4
|
*/
|
|
@@ -73,6 +73,16 @@ export interface RegistrationDescriptionParser {
|
|
|
73
73
|
* Creates a Microsoft Phone Notification Services (MPNS) template registration description from the incoming parsed XML.
|
|
74
74
|
*/
|
|
75
75
|
createMpnsTemplateRegistrationDescription: (rawRegistrationDescription: Record<string, any>) => MpnsTemplateRegistrationDescription;
|
|
76
|
+
/**
|
|
77
|
+
* @internal
|
|
78
|
+
* Creates a Xiaomi registration description from the incoming parsed XML.
|
|
79
|
+
*/
|
|
80
|
+
createXiaomiRegistrationDescription: (rawRegistrationDescription: Record<string, any>) => XiaomiRegistrationDescription;
|
|
81
|
+
/**
|
|
82
|
+
* @internal
|
|
83
|
+
* Creates a Xiaomi template registration description from the incoming parsed XML.
|
|
84
|
+
*/
|
|
85
|
+
createXiaomiTemplateRegistrationDescription: (rawRegistrationDescription: Record<string, any>) => XiaomiTemplateRegistrationDescription;
|
|
76
86
|
/**
|
|
77
87
|
* @internal
|
|
78
88
|
* Creates a Windows Notification Services (WNS) registration description from the incoming parsed XML.
|
|
@@ -155,6 +165,16 @@ export interface RegistrationDescriptionSerializer {
|
|
|
155
165
|
* Serializes a Windows Phone template registration description into an XML object for serialization.
|
|
156
166
|
*/
|
|
157
167
|
serializeMpnsTemplateRegistrationDescription(description: Omit<MpnsTemplateRegistrationDescription, "kind">): Record<string, any>;
|
|
168
|
+
/**
|
|
169
|
+
* @internal
|
|
170
|
+
* Serializes a Xiaomi registration description into an XML object for serialization.
|
|
171
|
+
*/
|
|
172
|
+
serializeXiaomiRegistrationDescription(description: Omit<XiaomiRegistrationDescription, "kind">): Record<string, any>;
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
* Serializes a Xiaomi template registration description into an XML object for serialization.
|
|
176
|
+
*/
|
|
177
|
+
serializeXiaomiTemplateRegistrationDescription(description: Omit<XiaomiTemplateRegistrationDescription, "kind">): Record<string, any>;
|
|
158
178
|
/**
|
|
159
179
|
* @internal
|
|
160
180
|
* Serializes a Windows Notification Services (WNS) registration description into an XML object for serialization.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registrationSerializer.d.ts","sourceRoot":"","sources":["../../../src/serializers/registrationSerializer.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,4BAA4B,EAC5B,oCAAoC,EACpC,4BAA4B,EAC5B,oCAAoC,EACpC,8BAA8B,EAC9B,sCAAsC,EACtC,0BAA0B,EAC1B,kCAAkC,EAClC,2BAA2B,EAC3B,mCAAmC,EACnC,uBAAuB,EAGvB,8BAA8B,EAC9B,sCAAsC,EACvC,MAAM,2BAA2B,CAAC;AAYnC;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,sBAAsB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC/E;;;OAGG;IACH,qBAAqB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAChF;;;OAGG;IACH,gCAAgC,EAAE,CAChC,0B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zC,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5C,mCAAmC,CAAC;IACzC;;;OAGG;IACH,oCAAoC,EAAE,CACpC,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5C,8BAA8B,CAAC;IACpC;;;OAGG;IACH,4CAA4C,EAAE,CAC5C,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5C,sCAAsC,CAAC;CAC7C;AAED,eAAO,MAAM,6BAA6B,EAAE,
|
|
1
|
+
{"version":3,"file":"registrationSerializer.d.ts","sourceRoot":"","sources":["../../../src/serializers/registrationSerializer.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,0BAA0B,EAC1B,kCAAkC,EAClC,4BAA4B,EAC5B,oCAAoC,EACpC,4BAA4B,EAC5B,oCAAoC,EACpC,8BAA8B,EAC9B,sCAAsC,EACtC,0BAA0B,EAC1B,kCAAkC,EAClC,2BAA2B,EAC3B,mCAAmC,EACnC,uBAAuB,EAGvB,6BAA6B,EAC7B,qCAAqC,EACrC,8BAA8B,EAC9B,sCAAsC,EACvC,MAAM,2BAA2B,CAAC;AAYnC;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;;OAGG;IACH,sBAAsB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAC/E;;;OAGG;IACH,qBAAqB,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,uBAAuB,EAAE,CAAC,CAAC;IAChF;;;OAGG;IACH,gCAAgC,EAAE,CAChC,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5C,0BAA0B,CAAC;IAChC;;;OAGG;IACH,wCAAwC,EAAE,CACxC,0BAA0B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAC5C,kCAAkC,CAAC;IACxC;;;OAGG;IACH,kCAAkC,EAAE,CACl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AC,CAAC;IACvB;;;OAGG;IACH,+CAA+C,CAC7C,WAAW,EAAE,IAAI,CAAC,sCAAsC,EAAE,MAAM,CAAC,GAChE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,iCAsR/C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAgB,CAAC;AAE3C,eAAO,MAAM,iBAAiB,mCAAmC,CAAC;AAClE,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAClD,eAAO,MAAM,mBAAmB,6BAA6B,CAAC;AAE9D,eAAO,MAAM,aAAa,eAAe,CAAC;AAC1C,eAAO,MAAM,OAAO,YAAY,CAAC;AACjC,eAAO,MAAM,SAAS,cAAc,CAAC;AACrC,eAAO,MAAM,SAAS,aAAa,CAAC;AACpC,eAAO,MAAM,SAAS,cAAc,CAAC"}
|