@azure/notification-hubs 1.0.3-alpha.20230627.2 → 1.0.3-alpha.20230703.2

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.
Files changed (48) hide show
  1. package/dist/{index.cjs → index.js} +184 -107
  2. package/dist/index.js.map +1 -0
  3. package/dist-esm/src/api/clientContext.js +48 -0
  4. package/dist-esm/src/api/clientContext.js.map +1 -0
  5. package/dist-esm/src/api/index.js +1 -45
  6. package/dist-esm/src/api/index.js.map +1 -1
  7. package/dist-esm/src/api/scheduleNotification.js.map +1 -1
  8. package/dist-esm/src/api/sendNotification.js.map +1 -1
  9. package/dist-esm/src/auth/hmacSha256.browser.js +0 -1
  10. package/dist-esm/src/auth/hmacSha256.browser.js.map +1 -1
  11. package/dist-esm/src/index.js +2 -10
  12. package/dist-esm/src/index.js.map +1 -1
  13. package/dist-esm/src/models/index.js +1 -0
  14. package/dist-esm/src/models/index.js.map +1 -1
  15. package/dist-esm/src/models/notification.js +46 -7
  16. package/dist-esm/src/models/notification.js.map +1 -1
  17. package/dist-esm/src/models/notificationBodyBuilder.js.map +1 -1
  18. package/dist-esm/src/models/notificationHeaderBuilder.js +4 -0
  19. package/dist-esm/src/models/notificationHeaderBuilder.js.map +1 -0
  20. package/dist-esm/src/notificationHubsClient.js +1 -1
  21. package/dist-esm/src/notificationHubsClient.js.map +1 -1
  22. package/dist-esm/src/utils/utils.js.map +1 -1
  23. package/package.json +12 -15
  24. package/types/3.1/notification-hubs.d.ts +171 -38
  25. package/types/latest/notification-hubs.d.ts +183 -40
  26. package/types/src/api/clientContext.d.ts +41 -0
  27. package/types/src/api/clientContext.d.ts.map +1 -0
  28. package/types/src/api/index.d.ts +1 -39
  29. package/types/src/api/index.d.ts.map +1 -1
  30. package/types/src/api/internal/_client.d.ts +1 -0
  31. package/types/src/api/internal/_client.d.ts.map +1 -1
  32. package/types/src/api/scheduleNotification.d.ts.map +1 -1
  33. package/types/src/api/sendNotification.d.ts.map +1 -1
  34. package/types/src/auth/hmacSha256.browser.d.ts +18 -1
  35. package/types/src/auth/hmacSha256.browser.d.ts.map +1 -1
  36. package/types/src/index.d.ts +2 -10
  37. package/types/src/index.d.ts.map +1 -1
  38. package/types/src/models/index.d.ts +1 -0
  39. package/types/src/models/index.d.ts.map +1 -1
  40. package/types/src/models/notification.d.ts +69 -9
  41. package/types/src/models/notification.d.ts.map +1 -1
  42. package/types/src/models/notificationBodyBuilder.d.ts +29 -0
  43. package/types/src/models/notificationBodyBuilder.d.ts.map +1 -1
  44. package/types/src/models/notificationHeaderBuilder.d.ts +47 -0
  45. package/types/src/models/notificationHeaderBuilder.d.ts.map +1 -0
  46. package/types/src/utils/utils.d.ts +2 -0
  47. package/types/src/utils/utils.d.ts.map +1 -1
  48. package/dist/index.cjs.map +0 -1
@@ -145,6 +145,20 @@ export declare interface AdmNotification extends JsonNotification {
145
145
  platform: "adm";
146
146
  }
147
147
 
148
+ /**
149
+ * Represents an ADM notification that can be sent to a device.
150
+ */
151
+ export declare interface AdmNotificationParams {
152
+ /**
153
+ * The body for the push notification.
154
+ */
155
+ body: string | AdmNativeMessage;
156
+ /**
157
+ * The headers to include for the push notification.
158
+ */
159
+ headers?: Record<string, string | undefined>;
160
+ }
161
+
148
162
  /**
149
163
  * Describes an ADM Registration channel query.
150
164
  */
@@ -192,6 +206,11 @@ export declare interface AdmTemplateRegistrationDescription extends AdmTemplateR
192
206
  export declare interface AdmTemplateRegistrationDescriptionCommon extends AdmRegistrationDescriptionCommon, TemplateRegistrationDescription {
193
207
  }
194
208
 
209
+ /**
210
+ * Describes the types of APNs pushes.
211
+ */
212
+ export declare type ApnsPushTypes = "alert" | "background" | "voip" | "complication" | "fileprovider" | "mdm" | "location" | "liveactivity" | "pushtotalk";
213
+
195
214
  /**
196
215
  * Represents what is in the APNs alert body.
197
216
  */
@@ -255,38 +274,9 @@ export declare interface AppleAlert {
255
274
  }
256
275
 
257
276
  /**
258
- * Represents an APNs critical sound
259
- */
260
- export declare interface AppleCriticalSound {
261
- /**
262
- * The critical alert flag. Set to 1 to enable the critical alert.
263
- */
264
- critical: number;
265
- /**
266
- * The name of a sound file in your app’s main bundle or in the Library/Sounds folder
267
- * of your app’s container directory. Specify the string “default” to play the system sound.
268
- */
269
- name: string;
270
- /**
271
- * The volume for the critical alert’s sound. Set this to a value between 0 (silent) and 1 (full volume).
272
- */
273
- volume: number;
274
- }
275
-
276
- /**
277
- * Represents an Apple APNs based installation.
277
+ * Represents a native APNs APS message.
278
278
  */
279
- export declare interface AppleInstallation extends DeviceTokenInstallation {
280
- /**
281
- * The platform for the installation.
282
- */
283
- platform: "apns";
284
- }
285
-
286
- /**
287
- * Represents a native APNs message.
288
- */
289
- export declare interface AppleNativeMessage extends Record<string, any> {
279
+ export declare interface AppleApsNativeMessage extends Record<string, any> {
290
280
  /**
291
281
  * The information for displaying an alert.
292
282
  */
@@ -337,6 +327,95 @@ export declare interface AppleNativeMessage extends Record<string, any> {
337
327
  * The criteria the system evaluates to determine if it displays the notification in the current Focus.
338
328
  */
339
329
  "filter-criteria"?: string;
330
+ /**
331
+ * The UNIX timestamp that represents the date at which a Live Activity becomes stale, or out of date.
332
+ */
333
+ "stale-date"?: number;
334
+ /**
335
+ * The updated or final content for a Live Activity.
336
+ */
337
+ "content-state"?: Record<string, any>;
338
+ /**
339
+ * The UNIX timestamp that marks the time when you send the remote notification that updates or ends a Live Activity.
340
+ */
341
+ timestamp?: number;
342
+ /**
343
+ * The string that describes whether you update or end an ongoing Live Activity with the remote push notification. To update the Live Activity, use update. To end the Live Activity, use end.
344
+ */
345
+ events?: string;
346
+ /**
347
+ * The UNIX timestamp that represents the date at which the system ends a Live Activity and removes it from the Dynamic Island and the Lock Screen.
348
+ */
349
+ "dismissal-date"?: number;
350
+ }
351
+
352
+ /**
353
+ * Represents an APNs critical sound
354
+ */
355
+ export declare interface AppleCriticalSound {
356
+ /**
357
+ * The critical alert flag. Set to 1 to enable the critical alert.
358
+ */
359
+ critical: number;
360
+ /**
361
+ * The name of a sound file in your app’s main bundle or in the Library/Sounds folder
362
+ * of your app’s container directory. Specify the string “default” to play the system sound.
363
+ */
364
+ name: string;
365
+ /**
366
+ * The volume for the critical alert’s sound. Set this to a value between 0 (silent) and 1 (full volume).
367
+ */
368
+ volume: number;
369
+ }
370
+
371
+ /**
372
+ * The list of APNs specific headers.
373
+ */
374
+ export declare interface AppleHeaders extends Record<string, string | undefined> {
375
+ /**
376
+ * The value of this header must accurately reflect the contents of your notification’s payload.
377
+ */
378
+ "apns-push-type"?: ApnsPushTypes;
379
+ /**
380
+ * A canonical UUID that’s the unique ID for the notification.
381
+ */
382
+ "apns-id"?: string;
383
+ /**
384
+ * The date at which the notification is no longer valid. This value is a UNIX epoch expressed in seconds (UTC).
385
+ */
386
+ "apns-expiration"?: string;
387
+ /**
388
+ * The priority of the notification. If you omit this header, APNs sets the notification priority to 10.
389
+ */
390
+ "apns-priority"?: "5" | "10";
391
+ /**
392
+ * The topic for the notification. In general, the topic is your app’s bundle ID/app ID.
393
+ */
394
+ "apns-topic"?: string;
395
+ /**
396
+ * An identifier you use to merge multiple notifications into a single notification for the user.
397
+ */
398
+ "apns-collapse-id"?: string;
399
+ }
400
+
401
+ /**
402
+ * Represents an Apple APNs based installation.
403
+ */
404
+ export declare interface AppleInstallation extends DeviceTokenInstallation {
405
+ /**
406
+ * The platform for the installation.
407
+ */
408
+ platform: "apns";
409
+ }
410
+
411
+ /**
412
+ * Represents a native APNs message.
413
+ */
414
+ export declare interface AppleNativeMessage extends Record<string, any> {
415
+ /**
416
+ * The Apple specific push notification information.
417
+ */
418
+ aps?: AppleApsNativeMessage;
340
419
  }
341
420
 
342
421
  /**
@@ -349,6 +428,20 @@ export declare interface AppleNotification extends JsonNotification {
349
428
  platform: "apple";
350
429
  }
351
430
 
431
+ /**
432
+ * Represents an Apple notification that can be sent to a device.
433
+ */
434
+ export declare interface AppleNotificationParams {
435
+ /**
436
+ * The body for the push notification.
437
+ */
438
+ body: string | AppleNativeMessage;
439
+ /**
440
+ * The headers to include for the push notification.
441
+ */
442
+ headers?: AppleHeaders;
443
+ }
444
+
352
445
  /**
353
446
  * Describes an Apple Registration channel query.
354
447
  */
@@ -686,7 +779,7 @@ export declare function createAdmInstallation(installation: DeviceTokenInstallat
686
779
  * @param notification - A partial message used to create a message for Amazon Device Messaging.
687
780
  * @returns A newly created Amazon Device Messaging.
688
781
  */
689
- export declare function createAdmNotification(notification: NotificationCommon): AdmNotification;
782
+ export declare function createAdmNotification(notification: AdmNotificationParams): AdmNotification;
690
783
 
691
784
  /**
692
785
  * Creates a AdmNotification from a native ADM payload.
@@ -721,7 +814,7 @@ export declare function createAppleInstallation(installation: DeviceTokenInstall
721
814
  * @param notification - A partial message used to create a message for Apple.
722
815
  * @returns A newly created Apple.
723
816
  */
724
- export declare function createAppleNotification(notification: NotificationCommon): AppleNotification;
817
+ export declare function createAppleNotification(notification: AppleNotificationParams): AppleNotification;
725
818
 
726
819
  /**
727
820
  * Creates an APNs native message to send to Notification Hubs.
@@ -820,7 +913,7 @@ export declare function createFcmLegacyInstallation(installation: DeviceTokenIns
820
913
  * @param notification - A partial message used to create a message for Firebase.
821
914
  * @returns A newly created Firebase notification.
822
915
  */
823
- export declare function createFcmLegacyNotification(notification: NotificationCommon): FcmLegacyNotification;
916
+ export declare function createFcmLegacyNotification(notification: FcmLegacyNotificationParams): FcmLegacyNotification;
824
917
 
825
918
  /**
826
919
  * Creates a Firebase Legacy registration description.
@@ -862,7 +955,7 @@ export declare function createTemplateNotification(notification: NotificationCom
862
955
  * @param notification - A partial message used to create a badge message for WNS.
863
956
  * @returns A newly created WNS badge.
864
957
  */
865
- export declare function createWindowsBadgeNotification(notification: NotificationCommon): WindowsNotification;
958
+ export declare function createWindowsBadgeNotification(notification: WnsNotificationParams): WindowsNotification;
866
959
 
867
960
  /**
868
961
  * Builds a WindowsNotification from a Windows Badge.
@@ -878,12 +971,19 @@ export declare function createWindowsBadgeNotificationBody(nativeMessage: Window
878
971
  */
879
972
  export declare function createWindowsInstallation(installation: DeviceTokenInstallation): WindowsInstallation;
880
973
 
974
+ /**
975
+ * Creates a notification to send to WNS.
976
+ * @param notification - The WNS notification to send.
977
+ * @returns A newly created WNS message.
978
+ */
979
+ export declare function createWindowsNotification(notification: WnsNotificationParams): WindowsNotification;
980
+
881
981
  /**
882
982
  * Creates a notification to send to WNS in wns/raw format..
883
983
  * @param notification - A partial message used to create a message for WNS in XML format.
884
984
  * @returns A newly created WNS message using XML.
885
985
  */
886
- export declare function createWindowsRawNotification(notification: NotificationCommon): WindowsNotification;
986
+ export declare function createWindowsRawNotification(notification: WnsNotificationParams): WindowsNotification;
887
987
 
888
988
  /**
889
989
  * Creates a Windows registration description.
@@ -904,14 +1004,14 @@ export declare function createWindowsTemplateRegistrationDescription(description
904
1004
  * @param notification - A partial message used to create a tile message for WNS.
905
1005
  * @returns A newly created WNS tile.
906
1006
  */
907
- export declare function createWindowsTileNotification(notification: NotificationCommon): WindowsNotification;
1007
+ export declare function createWindowsTileNotification(notification: WnsNotificationParams): WindowsNotification;
908
1008
 
909
1009
  /**
910
1010
  * Creates a toast message to send to WNS.
911
1011
  * @param notification - A partial message used to create a toast message for WNS.
912
1012
  * @returns A newly created WNS toast.
913
1013
  */
914
- export declare function createWindowsToastNotification(notification: NotificationCommon): WindowsNotification;
1014
+ export declare function createWindowsToastNotification(notification: WnsNotificationParams): WindowsNotification;
915
1015
 
916
1016
  /**
917
1017
  * Creates a Xiaomi based installation.
@@ -991,6 +1091,20 @@ export declare interface FcmLegacyNotification extends JsonNotification {
991
1091
  platform: "gcm";
992
1092
  }
993
1093
 
1094
+ /**
1095
+ * Represents an Firebase Legacy notification that can be sent to a device.
1096
+ */
1097
+ export declare interface FcmLegacyNotificationParams {
1098
+ /**
1099
+ * The body for the push notification.
1100
+ */
1101
+ body: string | FirebaseLegacyNativeMessage;
1102
+ /**
1103
+ * The headers to include for the push notification.
1104
+ */
1105
+ headers?: Record<string, string | undefined>;
1106
+ }
1107
+
994
1108
  /**
995
1109
  * Represents an Android native payload for the Firebase Legacy HTTP interface.
996
1110
  */
@@ -1370,7 +1484,7 @@ export declare interface MpnsTemplateRegistrationDescriptionCommon extends MpnsR
1370
1484
  export declare type Notification = AppleNotification | AdmNotification | BaiduNotification | BrowserNotification | FcmLegacyNotification | XiaomiNotification | WindowsNotification | TemplateNotification;
1371
1485
 
1372
1486
  /**
1373
- * Represents a notification hub.
1487
+ * Represents a notification that can be sent to a device.
1374
1488
  */
1375
1489
  export declare interface NotificationCommon {
1376
1490
  /**
@@ -1380,7 +1494,7 @@ export declare interface NotificationCommon {
1380
1494
  /**
1381
1495
  * The headers to include for the push notification.
1382
1496
  */
1383
- headers?: Record<string, string>;
1497
+ headers?: Record<string, string | undefined>;
1384
1498
  }
1385
1499
 
1386
1500
  /**
@@ -1991,6 +2105,16 @@ export declare interface WindowsBadgeNativeMessage {
1991
2105
  */
1992
2106
  export declare type WindowsContentType = "application/xml" | "application/octet-stream";
1993
2107
 
2108
+ /**
2109
+ * List of WNS specific headers.
2110
+ */
2111
+ export declare interface WindowsHeaders extends Record<string, string | undefined> {
2112
+ /**
2113
+ * The header specifies whether this is a tile, toast, badge, or raw notification.
2114
+ */
2115
+ "X-WNS-Type"?: WnsTypes;
2116
+ }
2117
+
1994
2118
  /**
1995
2119
  * Represents a Windows Notification Services (WNS) based installation.
1996
2120
  */
@@ -2069,6 +2193,25 @@ export declare interface WindowsTemplateRegistrationDescriptionCommon extends Wi
2069
2193
  wnsHeaders?: Record<string, string>;
2070
2194
  }
2071
2195
 
2196
+ /**
2197
+ * Represents a WNS notification that can be sent to a device.
2198
+ */
2199
+ export declare interface WnsNotificationParams {
2200
+ /**
2201
+ * The body for the push notification.
2202
+ */
2203
+ body: string;
2204
+ /**
2205
+ * The headers to include for the push notification.
2206
+ */
2207
+ headers?: WindowsHeaders;
2208
+ }
2209
+
2210
+ /**
2211
+ * The list of WNS specific types.
2212
+ */
2213
+ export declare type WnsTypes = "wns/toast" | "wns/badge" | "wns/tile" | "wns/raw";
2214
+
2072
2215
  /**
2073
2216
  * Represents a Xiaomi based installation.
2074
2217
  */
@@ -0,0 +1,41 @@
1
+ /// <reference types="node" resolution-mode="require"/>
2
+ import { HttpHeaders, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
3
+ import { NotificationHubsClientOptions } from "../models/options.js";
4
+ import { SasTokenProvider } from "../auth/sasTokenProvider.js";
5
+ /**
6
+ * Represents the Notification Hubs SDK client context.
7
+ */
8
+ export interface NotificationHubsClientContext {
9
+ /**
10
+ * The SAS Token Provider for connecting to Notification Hubs.
11
+ */
12
+ readonly sasTokenProvider: SasTokenProvider;
13
+ /**
14
+ * The base URL for the Notification Hub namespace.
15
+ */
16
+ readonly baseUrl: string;
17
+ /**
18
+ * The Notification Hub name.
19
+ */
20
+ readonly hubName: string;
21
+ /**
22
+ * @internal
23
+ */
24
+ sendRequest(request: PipelineRequest): Promise<PipelineResponse>;
25
+ /**
26
+ * @internal
27
+ */
28
+ createHeaders(operationName: string, rawHeaders?: Record<string, string>): Promise<HttpHeaders>;
29
+ /**
30
+ * @internal
31
+ */
32
+ requestUrl(): URL;
33
+ }
34
+ /**
35
+ * Creates a NotificationHubClient from the Access Policy connection string and hub name.
36
+ * @param connectionString - The Access Policy connection string for the notification hub.
37
+ * @param hubName - The notification hub name.
38
+ * @returns A NotificationHubsClientContext initialized from the connection string and hub name.
39
+ */
40
+ export declare function createClientContext(connectionString: string, hubName: string, options?: NotificationHubsClientOptions): NotificationHubsClientContext;
41
+ //# sourceMappingURL=clientContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientContext.d.ts","sourceRoot":"","sources":["../../../src/api/clientContext.ts"],"names":[],"mappings":";AAIA,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AAOnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAK/D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjE;;OAEG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEhG;;OAEG;IACH,UAAU,IAAI,GAAG,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,6BAAkC,GAC1C,6BAA6B,CAE/B"}
@@ -1,42 +1,4 @@
1
- import { HttpHeaders, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
2
- import { NotificationHubsClientOptions } from "../models/options.js";
3
- import { SasTokenProvider } from "../auth/sasTokenProvider.js";
4
- /**
5
- * Represents the Notification Hubs SDK client context.
6
- */
7
- export interface NotificationHubsClientContext {
8
- /**
9
- * The SAS Token Provider for connecting to Notification Hubs.
10
- */
11
- readonly sasTokenProvider: SasTokenProvider;
12
- /**
13
- * The base URL for the Notification Hub namespace.
14
- */
15
- readonly baseUrl: string;
16
- /**
17
- * The Notification Hub name.
18
- */
19
- readonly hubName: string;
20
- /**
21
- * @internal
22
- */
23
- sendRequest(request: PipelineRequest): Promise<PipelineResponse>;
24
- /**
25
- * @internal
26
- */
27
- createHeaders(operationName: string, rawHeaders?: Record<string, string>): Promise<HttpHeaders>;
28
- /**
29
- * @internal
30
- */
31
- requestUrl(): URL;
32
- }
33
- /**
34
- * Creates a NotificationHubClient from the Access Policy connection string and hub name.
35
- * @param connectionString - The Access Policy connection string for the notification hub.
36
- * @param hubName - The notification hub name.
37
- * @returns A NotificationHubsClientContext initialized from the connection string and hub name.
38
- */
39
- export declare function createClientContext(connectionString: string, hubName: string, options?: NotificationHubsClientOptions): NotificationHubsClientContext;
1
+ export * from "./clientContext.js";
40
2
  export * from "./beginSubmitNotificationHubJob.js";
41
3
  export * from "./cancelScheduledNotification.js";
42
4
  export * from "./createOrUpdateInstallation.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,WAAW,EACX,eAAe,EACf,gBAAgB,EAEjB,MAAM,2BAA2B,CAAC;AAOnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAK/D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,WAAW,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEjE;;OAEG;IACH,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAEhG;;OAEG;IACH,UAAU,IAAI,GAAG,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,gBAAgB,EAAE,MAAM,EACxB,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,6BAAkC,GAC1C,6BAA6B,CAE/B;AA6DD,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/api/index.ts"],"names":[],"mappings":"AAGA,cAAc,oBAAoB,CAAC;AACnC,cAAc,oCAAoC,CAAC;AACnD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="node" resolution-mode="require"/>
1
2
  import { HttpHeaders, HttpMethods, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
2
3
  import { NotificationHubsMessageResponse, NotificationHubsResponse } from "../../models/notificationDetails.js";
3
4
  import { NotificationHubsClientContext } from "../index.js";
@@ -1 +1 @@
1
- {"version":3,"file":"_client.d.ts","sourceRoot":"","sources":["../../../../src/api/internal/_client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,GAAG,EACb,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,gBAAgB,GACxB,eAAe,CASjB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,wBAAwB,CAU9F;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,+BAA+B,CAAC,CAwB1C;AAgBD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,6BAA6B,EACtC,OAAO,EAAE,eAAe,EACxB,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,GACnC,OAAO,CAAC,gBAAgB,CAAC,CAgC3B"}
1
+ {"version":3,"file":"_client.d.ts","sourceRoot":"","sources":["../../../../src/api/internal/_client.ts"],"names":[],"mappings":";AAGA,OAAO,EACL,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,GAAG,EACb,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,gBAAgB,GACxB,eAAe,CASjB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,wBAAwB,CAU9F;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,+BAA+B,CAAC,CAwB1C;AAgBD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,6BAA6B,EACtC,OAAO,EAAE,eAAe,EACxB,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,GACnC,OAAO,CAAC,gBAAgB,CAAC,CAgC3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"scheduleNotification.d.ts","sourceRoot":"","sources":["../../../src/api/scheduleNotification.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAGnE;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,IAAI,EACnB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,+BAA+B,CAAC,CAyB1C"}
1
+ {"version":3,"file":"scheduleNotification.d.ts","sourceRoot":"","sources":["../../../src/api/scheduleNotification.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAGnE;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,IAAI,EACnB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,2BAAgC,GACxC,OAAO,CAAC,+BAA+B,CAAC,CA4B1C"}
@@ -1 +1 @@
1
- {"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../src/api/sendNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAO9F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAKnF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,6BAA6B,GAAG,uBAAmD,GAC3F,OAAO,CAAC,+BAA+B,CAAC,CA0D1C"}
1
+ {"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../src/api/sendNotification.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAQ9F,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,+BAA+B,EAAE,MAAM,kCAAkC,CAAC;AAKnF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,6BAA6B,GAAG,uBAAmD,GAC3F,OAAO,CAAC,+BAA+B,CAAC,CA6D1C"}
@@ -1,3 +1,20 @@
1
- /// <reference lib="dom" />
1
+ declare global {
2
+ class TextEncoder {
3
+ encode(input?: string): Uint8Array;
4
+ }
5
+ interface HmacImportParams {
6
+ name: string;
7
+ hash: {
8
+ name: string;
9
+ };
10
+ }
11
+ interface CryptoKey {
12
+ algorithm: HmacImportParams;
13
+ type: string;
14
+ extractable: boolean;
15
+ usages: string[];
16
+ }
17
+ function btoa(input: string): string;
18
+ }
2
19
  export declare function signString(key: string, toSign: string): Promise<string>;
3
20
  //# sourceMappingURL=hmacSha256.browser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hmacSha256.browser.d.ts","sourceRoot":"","sources":["../../../src/auth/hmacSha256.browser.ts"],"names":[],"mappings":";AAKA,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB7E"}
1
+ {"version":3,"file":"hmacSha256.browser.d.ts","sourceRoot":"","sources":["../../../src/auth/hmacSha256.browser.ts"],"names":[],"mappings":"AAGA,OAAO,CAAC,MAAM,CAAC;IACb,MAAM,WAAW;QACf,MAAM,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU;KACnC;IAED,UAAU,gBAAgB;QACxB,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC;KACxB;IAED,UAAU,SAAS;QACjB,SAAS,EAAE,gBAAgB,CAAC;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,OAAO,CAAC;QACrB,MAAM,EAAE,MAAM,EAAE,CAAC;KAClB;IAED,SAAS,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACtC;AAiBD,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmB7E"}
@@ -1,11 +1,3 @@
1
- export { NotificationHubsClient } from "./notificationHubsClient.js";
2
- export * from "./models/installation.js";
3
- export * from "./models/notification.js";
4
- export * from "./models/notificationBodyBuilder.js";
5
- export * from "./models/notificationDetails.js";
6
- export * from "./models/notificationHubJob.js";
7
- export * from "./models/options.js";
8
- export * from "./models/registration.js";
9
- export * from "./models/response.js";
10
- export * from "./models/tagExpressionBuilder.js";
1
+ export * from "./notificationHubsClient.js";
2
+ export * from "./models/index.js";
11
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * from "./installation.js";
2
2
  export * from "./notification.js";
3
3
  export * from "./notificationBodyBuilder.js";
4
+ export * from "./notificationHeaderBuilder.js";
4
5
  export * from "./notificationDetails.js";
5
6
  export * from "./notificationHubJob.js";
6
7
  export * from "./options.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAGA,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC"}