@azure/notification-hubs 1.0.0-beta.5 → 1.0.0-beta.6

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 (103) hide show
  1. package/README.md +28 -44
  2. package/dist/index.cjs +390 -310
  3. package/dist/index.cjs.map +1 -1
  4. package/dist-esm/src/client/beginSubmitNotificationHubJob.js +131 -0
  5. package/dist-esm/src/client/beginSubmitNotificationHubJob.js.map +1 -0
  6. package/dist-esm/src/client/cancelScheduledNotification.js +1 -1
  7. package/dist-esm/src/client/cancelScheduledNotification.js.map +1 -1
  8. package/dist-esm/src/client/createOrUpdateInstallation.js +1 -1
  9. package/dist-esm/src/client/createOrUpdateInstallation.js.map +1 -1
  10. package/dist-esm/src/client/createOrUpdateRegistration.js +1 -1
  11. package/dist-esm/src/client/createOrUpdateRegistration.js.map +1 -1
  12. package/dist-esm/src/client/createRegistration.js +1 -1
  13. package/dist-esm/src/client/createRegistration.js.map +1 -1
  14. package/dist-esm/src/client/createRegistrationId.js +1 -1
  15. package/dist-esm/src/client/createRegistrationId.js.map +1 -1
  16. package/dist-esm/src/client/deleteInstallation.js +1 -1
  17. package/dist-esm/src/client/deleteInstallation.js.map +1 -1
  18. package/dist-esm/src/client/deleteRegistration.js +1 -1
  19. package/dist-esm/src/client/deleteRegistration.js.map +1 -1
  20. package/dist-esm/src/client/getFeedbackContainerUrl.js +1 -1
  21. package/dist-esm/src/client/getFeedbackContainerUrl.js.map +1 -1
  22. package/dist-esm/src/client/getInstallation.js +1 -1
  23. package/dist-esm/src/client/getInstallation.js.map +1 -1
  24. package/dist-esm/src/client/getNotificationHubJob.js +1 -1
  25. package/dist-esm/src/client/getNotificationHubJob.js.map +1 -1
  26. package/dist-esm/src/client/getNotificationOutcomeDetails.js +1 -1
  27. package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +1 -1
  28. package/dist-esm/src/client/getRegistration.js +1 -1
  29. package/dist-esm/src/client/getRegistration.js.map +1 -1
  30. package/dist-esm/src/client/index.js +2 -2
  31. package/dist-esm/src/client/index.js.map +1 -1
  32. package/dist-esm/src/client/listNotificationHubJobs.js +1 -1
  33. package/dist-esm/src/client/listNotificationHubJobs.js.map +1 -1
  34. package/dist-esm/src/client/listRegistrations.js +1 -1
  35. package/dist-esm/src/client/listRegistrations.js.map +1 -1
  36. package/dist-esm/src/client/listRegistrationsByTag.js +1 -1
  37. package/dist-esm/src/client/listRegistrationsByTag.js.map +1 -1
  38. package/dist-esm/src/client/scheduleNotification.js +20 -6
  39. package/dist-esm/src/client/scheduleNotification.js.map +1 -1
  40. package/dist-esm/src/client/sendNotification.js +53 -6
  41. package/dist-esm/src/client/sendNotification.js.map +1 -1
  42. package/dist-esm/src/client/submitNotificationHubJob.js +1 -1
  43. package/dist-esm/src/client/submitNotificationHubJob.js.map +1 -1
  44. package/dist-esm/src/client/updateInstallation.js +1 -1
  45. package/dist-esm/src/client/updateInstallation.js.map +1 -1
  46. package/dist-esm/src/client/updateRegistration.js +1 -1
  47. package/dist-esm/src/client/updateRegistration.js.map +1 -1
  48. package/dist-esm/src/models/notificationHubJob.js.map +1 -1
  49. package/dist-esm/src/models/options.js.map +1 -1
  50. package/dist-esm/src/notificationHubsClient.js +16 -45
  51. package/dist-esm/src/notificationHubsClient.js.map +1 -1
  52. package/dist-esm/src/serializers/notificationDetailsSerializer.js +2 -1
  53. package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
  54. package/dist-esm/src/serializers/notificationHubJobSerializer.js +3 -1
  55. package/dist-esm/src/serializers/notificationHubJobSerializer.js.map +1 -1
  56. package/dist-esm/src/utils/constants.js +1 -1
  57. package/dist-esm/src/utils/constants.js.map +1 -1
  58. package/dist-esm/src/utils/notificationUtils.js +25 -0
  59. package/dist-esm/src/utils/notificationUtils.js.map +1 -0
  60. package/dist-esm/src/utils/optionUtils.js +20 -0
  61. package/dist-esm/src/utils/optionUtils.js.map +1 -0
  62. package/package.json +6 -5
  63. package/types/3.1/notification-hubs.d.ts +52 -36
  64. package/types/latest/notification-hubs.d.ts +56 -36
  65. package/types/latest/tsdoc-metadata.json +1 -1
  66. package/types/src/client/beginSubmitNotificationHubJob.d.ts +12 -0
  67. package/types/src/client/beginSubmitNotificationHubJob.d.ts.map +1 -0
  68. package/types/src/client/index.d.ts +1 -1
  69. package/types/src/client/index.d.ts.map +1 -1
  70. package/types/src/client/scheduleNotification.d.ts +3 -5
  71. package/types/src/client/scheduleNotification.d.ts.map +1 -1
  72. package/types/src/client/sendNotification.d.ts +3 -5
  73. package/types/src/client/sendNotification.d.ts.map +1 -1
  74. package/types/src/models/notificationHubJob.d.ts +5 -0
  75. package/types/src/models/notificationHubJob.d.ts.map +1 -1
  76. package/types/src/models/options.d.ts +36 -2
  77. package/types/src/models/options.d.ts.map +1 -1
  78. package/types/src/notificationHubsClient.d.ts +14 -37
  79. package/types/src/notificationHubsClient.d.ts.map +1 -1
  80. package/types/src/utils/notificationUtils.d.ts +10 -0
  81. package/types/src/utils/notificationUtils.d.ts.map +1 -0
  82. package/types/src/utils/optionUtils.d.ts +14 -0
  83. package/types/src/utils/optionUtils.d.ts.map +1 -0
  84. package/dist-esm/src/client/internal/_scheduleNotificationPayload.js +0 -38
  85. package/dist-esm/src/client/internal/_scheduleNotificationPayload.js.map +0 -1
  86. package/dist-esm/src/client/internal/_sendNotificationPayload.js +0 -51
  87. package/dist-esm/src/client/internal/_sendNotificationPayload.js.map +0 -1
  88. package/dist-esm/src/client/scheduleBroadcastNotification.js +0 -17
  89. package/dist-esm/src/client/scheduleBroadcastNotification.js.map +0 -1
  90. package/dist-esm/src/client/sendBroadcastNotification.js +0 -15
  91. package/dist-esm/src/client/sendBroadcastNotification.js.map +0 -1
  92. package/dist-esm/src/client/sendDirectNotification.js +0 -15
  93. package/dist-esm/src/client/sendDirectNotification.js.map +0 -1
  94. package/types/src/client/internal/_scheduleNotificationPayload.d.ts +0 -9
  95. package/types/src/client/internal/_scheduleNotificationPayload.d.ts.map +0 -1
  96. package/types/src/client/internal/_sendNotificationPayload.d.ts +0 -10
  97. package/types/src/client/internal/_sendNotificationPayload.d.ts.map +0 -1
  98. package/types/src/client/scheduleBroadcastNotification.d.ts +0 -16
  99. package/types/src/client/scheduleBroadcastNotification.d.ts.map +0 -1
  100. package/types/src/client/sendBroadcastNotification.d.ts +0 -14
  101. package/types/src/client/sendBroadcastNotification.d.ts.map +0 -1
  102. package/types/src/client/sendDirectNotification.d.ts +0 -15
  103. package/types/src/client/sendDirectNotification.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"notificationHubJobSerializer.js","sourceRoot":"","sources":["../../../src/serializers/notificationHubJobSerializer.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,UAAU,gCAAgC,CAAC,KAAyB;IACxE,MAAM,GAAG,GAAwB;QAC/B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,kBAAkB,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,kBAAkB,EAAE;QACzD,aAAa,EAAE,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,SAAS;KAC7F,CAAC;IAEF,MAAM,aAAa,GAAG,yBAAyB,CAAC,oBAAoB,EAAE,GAAG,CAAC,CAAC;IAE3E,OAAO,YAAY,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,CAAC,CAAC;AACtF,CAAC;AAED;;;;GAIG;AACH,MAAM,CAA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AC,OAA4B;IAC5D,IAAI,gBAAoD,CAAC;IACzD,IAAI,SAAS,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,EAAE;QAC1C,gBAAgB,GAAG,2BAA2B,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC;KAC7E;IAED,IAAI,eAAmD,CAAC;IACxD,IAAI,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,EAAE;QACzC,eAAe,GAAG,2BAA2B,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;KAC3E;IAED,OAAO;QACL,KAAK,EAAE,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC7C,IAAI,EAAE,SAAS,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAA2B;QAClE,MAAM,EAAE,oBAAoB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAA6B;QAC3E,QAAQ,EAAE,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAClD,kBAAkB,EAAE,SAAS,CAAC,OAAO,CAAC,oBAAoB,CAAC,EAAE,oBAAoB,CAAC;QAClF,aAAa,EAAE,oBAAoB,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;QAC7D,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QACjD,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACnD,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACnD,eAAe;QACf,gBAAgB;KACjB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n NotificationHubJob,\n NotificationHubJobStatus,\n NotificationHubJobType,\n} from \"../models/notificationHubJob.js\";\nimport {\n getDateOrUndefined,\n getFloatOrUndefined,\n getString,\n getStringOrUndefined,\n isDefined,\n} from \"../utils/utils.js\";\nimport { parseXML, stringifyXML } from \"@azure/core-xml\";\nimport { serializeToAtomXmlRequest } from \"../utils/xmlUtils.js\";\n\n/**\n * @internal\n * Serializes a NotificationHubJob into an Atom XML entry.\n * @param entry - The NotificationHubJob to turn into an Atom XML entry.\n * @returns An Atom XML entry containing the notification hub job.\n */\nexport function serializeNotificationHubJobEntry(entry: NotificationHubJob): string {\n const job: Record<string, any> = {\n Type: entry.type,\n OutputContainerUri: { __cdata: entry.outputContainerUrl },\n ImportFileUri: isDefined(entry.importFileUrl) ? { __cdata: entry.importFileUrl } : undefined,\n };\n\n const requestObject = serializeToAtomXmlRequest(\"NotificationHubJob\", job);\n\n return stringifyXML(requestObject, { rootName: \"entry\", cdataPropName: \"__cdata\" });\n}\n\n/**\n * Parses an Atom XML of an notification hub job entry.\n * @param bodyText - The incoming Atom XML entry to parse into a notification hub job.\n * @returns A parsed NotificationHubJob.\n */\nexport async function parseNotificationHubJobEntry(bodyText: string): Promise<NotificationHubJob> {\n const xml = await parseXML(bodyText, { includeRoot: true });\n const content = xml.entry.content.NotificationHubJob;\n return createNotificationHubJob(content);\n}\n\n/**\n * Parses an Atom XML feed of notification hub jobs.\n * @param bodyText - The incoming Atom XML feed to parse into notification hub jobs.\n * @returns A list of notification hub jobs.\n */\nexport async function parseNotificationHubJobFeed(bodyText: string): Promise<NotificationHubJob[]> {\n const xml = await parseXML(bodyText, { includeRoot: true });\n const results: NotificationHubJob[] = [];\n\n if (!isDefined(xml.feed.entry)) {\n return results;\n }\n\n const entries = Array.isArray(xml.feed.entry) ? xml.feed.entry : [xml.feed.entry];\n\n for (const item of entries) {\n results.push(createNotificationHubJob(item.content.NotificationHubJob));\n }\n\n return results;\n}\n\nfunction createInputOutputProperties(content: Record<string, any>): Record<string, string> {\n const props: Record<string, string> = {};\n for (const item of content[\"d3p1:KeyValueOfstringstring\"]) {\n props[item[\"d3p1:Key\"]] = item[\"d3p1:Value\"];\n }\n\n return props;\n}\n\nfunction createNotificationHubJob(content: Record<string, any>): NotificationHubJob {\n let outputProperties: Record<string, string> | undefined;\n if (isDefined(content[\"OutputProperties\"])) {\n outputProperties = createInputOutputProperties(content[\"OutputProperties\"]);\n }\n\n let inputProperties: Record<string, string> | undefined;\n if (isDefined(content[\"InputProperties\"])) {\n inputProperties = createInputOutputProperties(content[\"InputProperties\"]);\n }\n\n return {\n jobId: getStringOrUndefined(content[\"JobId\"]),\n type: getString(content[\"Type\"], \"type\") as NotificationHubJobType,\n status: getStringOrUndefined(content[\"Status\"]) as NotificationHubJobStatus,\n progress: getFloatOrUndefined(content[\"Progress\"]),\n outputContainerUrl: getString(content[\"OutputContainerUri\"], \"outputContainerUrl\"),\n importFileUrl: getStringOrUndefined(content[\"ImportFileUri\"]),\n failure: getStringOrUndefined(content[\"Failure\"]),\n createdAt: getDateOrUndefined(content[\"CreatedAt\"]),\n updatedAt: getDateOrUndefined(content[\"UpdatedAt\"]),\n inputProperties,\n outputProperties,\n };\n}\n"]}
1
+ {"version":3,"file":"notificationHubJobSerializer.js","sourceRoot":"","sources":["../../../src/serializers/notificationHubJobSerializer.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAOlC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,oBAAoB,EACpB,SAAS,GACV,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,sBAAsB,CAAC;AAEjE;;;;;GAKG;AACH,MAAM,UAAU,gCAAgC,CAAC,KAAyB;IACxE,MAAM,GAAG,GAAwB;QAC/B,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,kBAAkB,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,kBAAkB,EAAE;QACzD,aAAa,EAAE,SAAS,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,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AC;QACjD,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACnD,SAAS,EAAE,kBAAkB,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QACnD,eAAe;QACf,gBAAgB;KACjB,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n NotificationHubJob,\n NotificationHubJobStatus,\n NotificationHubJobType,\n} from \"../models/notificationHubJob.js\";\nimport {\n getDateOrUndefined,\n getFloatOrUndefined,\n getString,\n getStringOrUndefined,\n isDefined,\n} from \"../utils/utils.js\";\nimport { parseXML, stringifyXML } from \"@azure/core-xml\";\nimport { serializeToAtomXmlRequest } from \"../utils/xmlUtils.js\";\n\n/**\n * @internal\n * Serializes a NotificationHubJob into an Atom XML entry.\n * @param entry - The NotificationHubJob to turn into an Atom XML entry.\n * @returns An Atom XML entry containing the notification hub job.\n */\nexport function serializeNotificationHubJobEntry(entry: NotificationHubJob): string {\n const job: Record<string, any> = {\n Type: entry.type,\n OutputContainerUri: { __cdata: entry.outputContainerUrl },\n ImportFileUri: isDefined(entry.importFileUrl) ? { __cdata: entry.importFileUrl } : undefined,\n };\n\n const requestObject = serializeToAtomXmlRequest(\"NotificationHubJob\", job);\n\n return stringifyXML(requestObject, { rootName: \"entry\", cdataPropName: \"__cdata\" });\n}\n\n/**\n * Parses an Atom XML of an notification hub job entry.\n * @param bodyText - The incoming Atom XML entry to parse into a notification hub job.\n * @returns A parsed NotificationHubJob.\n */\nexport async function parseNotificationHubJobEntry(bodyText: string): Promise<NotificationHubJob> {\n const xml = await parseXML(bodyText, { includeRoot: true });\n const content = xml.entry.content.NotificationHubJob;\n return createNotificationHubJob(content);\n}\n\n/**\n * Parses an Atom XML feed of notification hub jobs.\n * @param bodyText - The incoming Atom XML feed to parse into notification hub jobs.\n * @returns A list of notification hub jobs.\n */\nexport async function parseNotificationHubJobFeed(bodyText: string): Promise<NotificationHubJob[]> {\n const xml = await parseXML(bodyText, { includeRoot: true });\n const results: NotificationHubJob[] = [];\n\n if (!isDefined(xml.feed.entry)) {\n return results;\n }\n\n const entries = Array.isArray(xml.feed.entry) ? xml.feed.entry : [xml.feed.entry];\n\n for (const item of entries) {\n results.push(createNotificationHubJob(item.content.NotificationHubJob));\n }\n\n return results;\n}\n\nfunction createInputOutputProperties(content: Record<string, any>): Record<string, string> {\n const props: Record<string, string> = {};\n\n const keyValues = content[\"d3p1:KeyValueOfstringstring\"];\n const keyValueArray = Array.isArray(keyValues) ? keyValues : [keyValues];\n for (const item of keyValueArray) {\n props[item[\"d3p1:Key\"]] = item[\"d3p1:Value\"];\n }\n\n return props;\n}\n\nfunction createNotificationHubJob(content: Record<string, any>): NotificationHubJob {\n let outputProperties: Record<string, string> | undefined;\n if (isDefined(content[\"OutputProperties\"])) {\n outputProperties = createInputOutputProperties(content[\"OutputProperties\"]);\n }\n\n let inputProperties: Record<string, string> | undefined;\n if (isDefined(content[\"InputProperties\"])) {\n inputProperties = createInputOutputProperties(content[\"InputProperties\"]);\n }\n\n return {\n jobId: getStringOrUndefined(content[\"JobId\"]),\n type: getString(content[\"Type\"], \"type\") as NotificationHubJobType,\n status: getStringOrUndefined(content[\"Status\"]) as NotificationHubJobStatus,\n progress: getFloatOrUndefined(content[\"Progress\"]),\n outputContainerUrl: getString(content[\"OutputContainerUri\"], \"outputContainerUrl\"),\n importFileUrl: getStringOrUndefined(content[\"ImportFileUri\"]),\n failure: getStringOrUndefined(content[\"Failure\"]),\n createdAt: getDateOrUndefined(content[\"CreatedAt\"]),\n updatedAt: getDateOrUndefined(content[\"UpdatedAt\"]),\n inputProperties,\n outputProperties,\n };\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
2
  // Licensed under the MIT license.
3
- export const SDK_VERSION = "1.0.0-beta.5";
3
+ export const SDK_VERSION = "1.0.0-beta.6";
4
4
  export const JSON_CONTENT_TYPE = "application/json;charset=utf-8";
5
5
  export const XML_CONTENT_TYPE = "application/xml";
6
6
  export const STREAM_CONTENT_TYPE = "application/octet-stream";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAG,gCAAgC,CAAC;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE9D,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAC1C,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AACrC,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport const SDK_VERSION: string = \"1.0.0-beta.5\";\n\nexport const JSON_CONTENT_TYPE = \"application/json;charset=utf-8\";\nexport const XML_CONTENT_TYPE = \"application/xml\";\nexport const STREAM_CONTENT_TYPE = \"application/octet-stream\";\n\nexport const WNS_TYPE_NAME = \"X-WNS-Type\";\nexport const WNS_RAW = \"wns/raw\";\nexport const WNS_BADGE = \"wns/badge\";\nexport const WNS_TITLE = \"wns/tile\";\nexport const WNS_TOAST = \"wns/toast\";\n"]}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,MAAM,CAAC,MAAM,WAAW,GAAW,cAAc,CAAC;AAElD,MAAM,CAAC,MAAM,iBAAiB,GAAG,gCAAgC,CAAC;AAClE,MAAM,CAAC,MAAM,gBAAgB,GAAG,iBAAiB,CAAC;AAClD,MAAM,CAAC,MAAM,mBAAmB,GAAG,0BAA0B,CAAC;AAE9D,MAAM,CAAC,MAAM,aAAa,GAAG,YAAY,CAAC;AAC1C,MAAM,CAAC,MAAM,OAAO,GAAG,SAAS,CAAC;AACjC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC;AACrC,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAC;AACpC,MAAM,CAAC,MAAM,SAAS,GAAG,WAAW,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nexport const SDK_VERSION: string = \"1.0.0-beta.6\";\n\nexport const JSON_CONTENT_TYPE = \"application/json;charset=utf-8\";\nexport const XML_CONTENT_TYPE = \"application/xml\";\nexport const STREAM_CONTENT_TYPE = \"application/octet-stream\";\n\nexport const WNS_TYPE_NAME = \"X-WNS-Type\";\nexport const WNS_RAW = \"wns/raw\";\nexport const WNS_BADGE = \"wns/badge\";\nexport const WNS_TITLE = \"wns/tile\";\nexport const WNS_TOAST = \"wns/toast\";\n"]}
@@ -0,0 +1,25 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ /**
4
+ * @internal
5
+ */
6
+ export function createMultipartDirectNotification(boundaryName, notification, deviceHandles) {
7
+ return (`--${boundaryName}\r\n` +
8
+ `Content-type: ${notification.contentType}\r\n` +
9
+ "Content-Disposition: inline; name=notification\r\n\r\n" +
10
+ notification.body +
11
+ "\r\n" +
12
+ `--${boundaryName}\r\n` +
13
+ "Content-type: application/json\r\n" +
14
+ "Content-Disposition: inline; name=devices\r\n\r\n" +
15
+ JSON.stringify(deviceHandles) +
16
+ "\r\n" +
17
+ `--${boundaryName}--`);
18
+ }
19
+ /**
20
+ * @internal
21
+ */
22
+ export function normalizeTags(tags) {
23
+ return Array.isArray(tags) ? tags.join("||") : tags;
24
+ }
25
+ //# sourceMappingURL=notificationUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationUtils.js","sourceRoot":"","sources":["../../../src/utils/notificationUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC;;GAEG;AACH,MAAM,UAAU,iCAAiC,CAC/C,YAAoB,EACpB,YAA0B,EAC1B,aAAuB;IAEvB,OAAO,CACL,KAAK,YAAY,MAAM;QACvB,iBAAiB,YAAY,CAAC,WAAW,MAAM;QAC/C,wDAAwD;QACxD,YAAY,CAAC,IAAI;QACjB,MAAM;QACN,KAAK,YAAY,MAAM;QACvB,oCAAoC;QACpC,mDAAmD;QACnD,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC;QAC7B,MAAM;QACN,KAAK,YAAY,IAAI,CACtB,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,IAAuB;IACnD,OAAO,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACtD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Notification } from \"../models/notification.js\";\n\n/**\n * @internal\n */\nexport function createMultipartDirectNotification(\n boundaryName: string,\n notification: Notification,\n deviceHandles: string[]\n): string {\n return (\n `--${boundaryName}\\r\\n` +\n `Content-type: ${notification.contentType}\\r\\n` +\n \"Content-Disposition: inline; name=notification\\r\\n\\r\\n\" +\n notification.body +\n \"\\r\\n\" +\n `--${boundaryName}\\r\\n` +\n \"Content-type: application/json\\r\\n\" +\n \"Content-Disposition: inline; name=devices\\r\\n\\r\\n\" +\n JSON.stringify(deviceHandles) +\n \"\\r\\n\" +\n `--${boundaryName}--`\n );\n}\n\n/**\n * @internal\n */\nexport function normalizeTags(tags: string | string[]): string {\n return Array.isArray(tags) ? tags.join(\"||\") : tags;\n}\n"]}
@@ -0,0 +1,20 @@
1
+ // Copyright (c) Microsoft Corporation.
2
+ // Licensed under the MIT license.
3
+ import { objectHasProperty } from "@azure/core-util";
4
+ /**
5
+ * Determines whether the options are of type SendNotificationOptions.
6
+ * @param options - The options to test if SendNotificationOptions.
7
+ * @returns true if SendNotificationOptions otherwise false.
8
+ */
9
+ export function isSendNotificationOptions(options) {
10
+ return objectHasProperty(options, "tags") || objectHasProperty(options, "enableTestSend");
11
+ }
12
+ /**
13
+ * Determines whether the options are of type DirectSendNotificationOptions.
14
+ * @param options - The options to test if DirectSendNotificationOptions.
15
+ * @returns true if DirectSendNotificationOptions otherwise false.
16
+ */
17
+ export function isDirectSendNotificationOptions(options) {
18
+ return objectHasProperty(options, "deviceHandle");
19
+ }
20
+ //# sourceMappingURL=optionUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optionUtils.js","sourceRoot":"","sources":["../../../src/utils/optionUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;GAIG;AACH,MAAM,UAAU,yBAAyB,CAAC,OAAgB;IACxD,OAAO,iBAAiB,CAAC,OAAO,EAAE,MAAM,CAAC,IAAI,iBAAiB,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAC5F,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,+BAA+B,CAC7C,OAAgB;IAEhB,OAAO,iBAAiB,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;AACpD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { DirectSendNotificationOptions, SendNotificationOptions } from \"../models/options.js\";\nimport { objectHasProperty } from \"@azure/core-util\";\n\n/**\n * Determines whether the options are of type SendNotificationOptions.\n * @param options - The options to test if SendNotificationOptions.\n * @returns true if SendNotificationOptions otherwise false.\n */\nexport function isSendNotificationOptions(options: unknown): options is SendNotificationOptions {\n return objectHasProperty(options, \"tags\") || objectHasProperty(options, \"enableTestSend\");\n}\n\n/**\n * Determines whether the options are of type DirectSendNotificationOptions.\n * @param options - The options to test if DirectSendNotificationOptions.\n * @returns true if DirectSendNotificationOptions otherwise false.\n */\nexport function isDirectSendNotificationOptions(\n options: unknown\n): options is DirectSendNotificationOptions {\n return objectHasProperty(options, \"deviceHandle\");\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/notification-hubs",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.6",
4
4
  "description": "Azure Notification Hubs SDK for JavaScript",
5
5
  "sdk-type": "client",
6
6
  "main": "dist/index.js",
@@ -102,7 +102,7 @@
102
102
  "@azure/dev-tool": "^1.0.0",
103
103
  "@azure/eslint-plugin-azure-sdk": "^3.0.0",
104
104
  "@azure/test-utils": "^1.0.0",
105
- "@microsoft/api-extractor": "^7.24.2",
105
+ "@microsoft/api-extractor": "^7.31.1",
106
106
  "@types/chai": "^4.3.1",
107
107
  "@types/mocha": "^9.1.1",
108
108
  "@types/node": "^12.0.0",
@@ -132,18 +132,19 @@
132
132
  "rimraf": "^3.0.2",
133
133
  "ts-node": "^10.8.1",
134
134
  "typescript": "^4.8.3",
135
- "util": "^0.12.4",
136
- "uuid": "^8.3.2"
135
+ "util": "^0.12.4"
137
136
  },
138
137
  "dependencies": {
139
138
  "@azure/abort-controller": "^1.1.0",
140
139
  "@azure/core-client": "^1.6.1",
140
+ "@azure/core-lro": "^2.4.0",
141
141
  "@azure/core-paging": "^1.3.0",
142
142
  "@azure/core-rest-pipeline": "^1.8.1",
143
143
  "@azure/core-tracing": "^1.0.1",
144
144
  "@azure/core-util": "^1.1.0",
145
145
  "@azure/core-xml": "^1.3.0",
146
146
  "@azure/logger": "^1.0.3",
147
- "tslib": "^2.4.0"
147
+ "tslib": "^2.4.0",
148
+ "uuid": "^9.0.0"
148
149
  }
149
150
  }
@@ -1,6 +1,8 @@
1
1
  import { CommonClientOptions } from '@azure/core-client';
2
2
  import { OperationOptions } from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
5
+ import { SimplePollerLike } from '@azure/core-lro';
4
6
  /**
5
7
  * Represents an Amazon Device Messaging (ADM) based installation.
6
8
  */
@@ -744,6 +746,15 @@ export declare interface DeviceTokenInstallation extends InstallationCommon {
744
746
  */
745
747
  pushChannel: string;
746
748
  }
749
+ /**
750
+ * Options for sending notifications to individual devices.
751
+ */
752
+ export declare interface DirectSendNotificationOptions extends OperationOptions {
753
+ /**
754
+ * The device handle to send the notification. If an array is provided, this uses batch direct send which is only available in Standard SKU and above.
755
+ */
756
+ deviceHandle: string | BrowserPushChannel | string[];
757
+ }
747
758
  /**
748
759
  * Represents entity update operation options that can be set.
749
760
  */
@@ -1230,6 +1241,10 @@ export declare interface NotificationHubJob {
1230
1241
  */
1231
1242
  updatedAt?: Date;
1232
1243
  }
1244
+ /**
1245
+ * Describes a poller for NotificationHubJob types.
1246
+ */
1247
+ export declare type NotificationHubJobPoller = SimplePollerLike<OperationState<NotificationHubJob>, NotificationHubJob>;
1233
1248
  /**
1234
1249
  * Describes the types of notification hub job statuses.
1235
1250
  */
@@ -1421,52 +1436,22 @@ export declare class NotificationHubsServiceClient {
1421
1436
  * @returns A paged async iterable containing the matching registrations for the notification hub.
1422
1437
  */
1423
1438
  listRegistrationsByTag(tag: string, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
1424
- /**
1425
- * Sends a direct push notification to a device with the given push handle.
1426
- * @param pushHandle - The push handle which is the unique identifier for the device.
1427
- * @param notification - The notification to send to the device.
1428
- * @param options - The options for sending a direct notification.
1429
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1430
- */
1431
- sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
1432
1439
  /**
1433
1440
  * Sends push notifications to devices that match the given tags or tag expression.
1434
- * @param tags - The tags used to target the device for push notifications in either an array or tag expression.
1435
1441
  * @param notification - The notification to send to the matching devices.
1436
- * @param options - Configuration options for the direct send operation which can contain custom headers
1437
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1438
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1439
- */
1440
- sendNotification(tags: string[] | string, notification: Notification, options?: SendOperationOptions): Promise<NotificationHubsMessageResponse>;
1441
- /**
1442
- * Sends push notifications to all devices on the Notification Hub.
1443
- * @param notification - The notification to send to all devices.
1444
- * @param options - Configuration options for the direct send operation which can contain custom headers
1445
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1442
+ * @param options - Options for the notification including tags, device handles and whether to enable test send.
1446
1443
  * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1447
1444
  */
1448
- sendBroadcastNotification(notification: Notification, options?: SendOperationOptions): Promise<NotificationHubsMessageResponse>;
1445
+ sendNotification(notification: Notification, options?: DirectSendNotificationOptions | SendNotificationOptions): Promise<NotificationHubsMessageResponse>;
1449
1446
  /**
1450
1447
  * Schedules a push notification to devices that match the given tags or tag expression at the specified time.
1451
1448
  * NOTE: This is only available in Standard SKU Azure Notification Hubs.
1452
1449
  * @param scheduledTime - The Date to send the push notification.
1453
- * @param tags - The tags used to target the device for push notifications in either an array or tag expression.
1454
- * @param notification - The notification to send to the matching devices.
1455
- * @param options - Configuration options for the direct send operation which can contain custom headers
1456
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1457
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1458
- */
1459
- scheduleNotification(scheduledTime: Date, tags: string[] | string, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
1460
- /**
1461
- * Schedules a push notification to all devices registered on the Notification Hub.
1462
- * NOTE: This is only available in Standard SKU Azure Notification Hubs.
1463
- * @param scheduledTime - The Date to send the push notification.
1464
1450
  * @param notification - The notification to send to the matching devices.
1465
- * @param options - Configuration options for the direct send operation which can contain custom headers
1466
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1451
+ * @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.
1467
1452
  * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1468
1453
  */
1469
- scheduleBroadcastNotification(scheduledTime: Date, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
1454
+ scheduleNotification(scheduledTime: Date, notification: Notification, options?: ScheduleNotificationOptions): Promise<NotificationHubsMessageResponse>;
1470
1455
  /**
1471
1456
  * Cancels the scheduled notification with the given notification ID.
1472
1457
  * @param notificationId - The notification ID from the scheduled notification.
@@ -1496,6 +1481,13 @@ export declare class NotificationHubsServiceClient {
1496
1481
  * @returns The Notification Hub Job with the matching ID.
1497
1482
  */
1498
1483
  getNotificationHubJob(jobId: string, options?: OperationOptions): Promise<NotificationHubJob>;
1484
+ /**
1485
+ * Submits a Notification Hub job and creates a poller to poll for results.
1486
+ * @param notificationHubJob - The Notification Hub import/export job to start.
1487
+ * @param options - The operation options.
1488
+ * @returns A poller which can be called to poll until completion of the job.
1489
+ */
1490
+ beginSubmitNotificationHubJob(notificationHubJob: NotificationHubJob, options?: PolledOperationOptions): Promise<NotificationHubJobPoller>;
1499
1491
  /**
1500
1492
  * Submits a Notification Hub Job. Note this is available to Standard SKU namespace and above.
1501
1493
  * @param job - The notification hub job to submit.
@@ -1527,6 +1519,15 @@ export declare interface NotificationOutcomeCollectionItem {
1527
1519
  * Represents the notification outcome states.
1528
1520
  */
1529
1521
  export declare type NotificationOutcomeState = "Enqueued" | "DetailedStateAvailable" | "Processing" | "Completed" | "Abandoned" | "Unknown" | "NoTargetFound" | "Cancelled";
1522
+ /**
1523
+ * Options for polled operations including the polling interval cycle.
1524
+ */
1525
+ export declare interface PolledOperationOptions extends OperationOptions {
1526
+ /**
1527
+ * Time delay between poll requests, in milliseconds.
1528
+ */
1529
+ updateIntervalInMs?: number;
1530
+ }
1530
1531
  /**
1531
1532
  * Represents the types of push channels available for Notification Hubs.
1532
1533
  */
@@ -1621,9 +1622,24 @@ export declare interface RegistrationResult {
1621
1622
  */
1622
1623
  export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "Mpns" | "MpnsTemplate" | "Windows" | "WindowsTemplate";
1623
1624
  /**
1624
- * Represents the send operation options that can be set.
1625
+ * Options for sending notifications for both tag based send and broadcast scheduled send.
1626
+ */
1627
+ export declare interface ScheduleNotificationOptions extends OperationOptions {
1628
+ /**
1629
+ * The tags used to target the device for push notifications in either an array as "an || condition" or tag expression.
1630
+ * If not set, this results in a broadcast notification to be scheduled.
1631
+ */
1632
+ tags?: string | string[];
1633
+ }
1634
+ /**
1635
+ * Options for sending notifications for both tag based send and broadcast send.
1625
1636
  */
1626
- export declare interface SendOperationOptions extends OperationOptions {
1637
+ export declare interface SendNotificationOptions extends OperationOptions {
1638
+ /**
1639
+ * The tags used to target the device for push notifications in either an array as "an || condition" or tag expression.
1640
+ * If not set, this results in a broadcast notification to be sent.
1641
+ */
1642
+ tags?: string | string[];
1627
1643
  /**
1628
1644
  * Set to true to enable test send.
1629
1645
  */
@@ -1,6 +1,8 @@
1
1
  import { CommonClientOptions } from '@azure/core-client';
2
2
  import { OperationOptions } from '@azure/core-client';
3
+ import { OperationState } from '@azure/core-lro';
3
4
  import { PagedAsyncIterableIterator } from '@azure/core-paging';
5
+ import { SimplePollerLike } from '@azure/core-lro';
4
6
 
5
7
  /**
6
8
  * Represents an Amazon Device Messaging (ADM) based installation.
@@ -804,6 +806,16 @@ export declare interface DeviceTokenInstallation extends InstallationCommon {
804
806
  pushChannel: string;
805
807
  }
806
808
 
809
+ /**
810
+ * Options for sending notifications to individual devices.
811
+ */
812
+ export declare interface DirectSendNotificationOptions extends OperationOptions {
813
+ /**
814
+ * The device handle to send the notification. If an array is provided, this uses batch direct send which is only available in Standard SKU and above.
815
+ */
816
+ deviceHandle: string | BrowserPushChannel | string[];
817
+ }
818
+
807
819
  /**
808
820
  * Represents entity update operation options that can be set.
809
821
  */
@@ -1311,6 +1323,11 @@ export declare interface NotificationHubJob {
1311
1323
  updatedAt?: Date;
1312
1324
  }
1313
1325
 
1326
+ /**
1327
+ * Describes a poller for NotificationHubJob types.
1328
+ */
1329
+ export declare type NotificationHubJobPoller = SimplePollerLike<OperationState<NotificationHubJob>, NotificationHubJob>;
1330
+
1314
1331
  /**
1315
1332
  * Describes the types of notification hub job statuses.
1316
1333
  */
@@ -1507,52 +1524,22 @@ export declare class NotificationHubsServiceClient {
1507
1524
  * @returns A paged async iterable containing the matching registrations for the notification hub.
1508
1525
  */
1509
1526
  listRegistrationsByTag(tag: string, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
1510
- /**
1511
- * Sends a direct push notification to a device with the given push handle.
1512
- * @param pushHandle - The push handle which is the unique identifier for the device.
1513
- * @param notification - The notification to send to the device.
1514
- * @param options - The options for sending a direct notification.
1515
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1516
- */
1517
- sendDirectNotification(pushHandle: PushHandle, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
1518
1527
  /**
1519
1528
  * Sends push notifications to devices that match the given tags or tag expression.
1520
- * @param tags - The tags used to target the device for push notifications in either an array or tag expression.
1521
1529
  * @param notification - The notification to send to the matching devices.
1522
- * @param options - Configuration options for the direct send operation which can contain custom headers
1523
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1524
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1525
- */
1526
- sendNotification(tags: string[] | string, notification: Notification, options?: SendOperationOptions): Promise<NotificationHubsMessageResponse>;
1527
- /**
1528
- * Sends push notifications to all devices on the Notification Hub.
1529
- * @param notification - The notification to send to all devices.
1530
- * @param options - Configuration options for the direct send operation which can contain custom headers
1531
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1530
+ * @param options - Options for the notification including tags, device handles and whether to enable test send.
1532
1531
  * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1533
1532
  */
1534
- sendBroadcastNotification(notification: Notification, options?: SendOperationOptions): Promise<NotificationHubsMessageResponse>;
1533
+ sendNotification(notification: Notification, options?: DirectSendNotificationOptions | SendNotificationOptions): Promise<NotificationHubsMessageResponse>;
1535
1534
  /**
1536
1535
  * Schedules a push notification to devices that match the given tags or tag expression at the specified time.
1537
1536
  * NOTE: This is only available in Standard SKU Azure Notification Hubs.
1538
1537
  * @param scheduledTime - The Date to send the push notification.
1539
- * @param tags - The tags used to target the device for push notifications in either an array or tag expression.
1540
- * @param notification - The notification to send to the matching devices.
1541
- * @param options - Configuration options for the direct send operation which can contain custom headers
1542
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1543
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1544
- */
1545
- scheduleNotification(scheduledTime: Date, tags: string[] | string, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
1546
- /**
1547
- * Schedules a push notification to all devices registered on the Notification Hub.
1548
- * NOTE: This is only available in Standard SKU Azure Notification Hubs.
1549
- * @param scheduledTime - The Date to send the push notification.
1550
1538
  * @param notification - The notification to send to the matching devices.
1551
- * @param options - Configuration options for the direct send operation which can contain custom headers
1552
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
1539
+ * @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.
1553
1540
  * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
1554
1541
  */
1555
- scheduleBroadcastNotification(scheduledTime: Date, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
1542
+ scheduleNotification(scheduledTime: Date, notification: Notification, options?: ScheduleNotificationOptions): Promise<NotificationHubsMessageResponse>;
1556
1543
  /**
1557
1544
  * Cancels the scheduled notification with the given notification ID.
1558
1545
  * @param notificationId - The notification ID from the scheduled notification.
@@ -1582,6 +1569,13 @@ export declare class NotificationHubsServiceClient {
1582
1569
  * @returns The Notification Hub Job with the matching ID.
1583
1570
  */
1584
1571
  getNotificationHubJob(jobId: string, options?: OperationOptions): Promise<NotificationHubJob>;
1572
+ /**
1573
+ * Submits a Notification Hub job and creates a poller to poll for results.
1574
+ * @param notificationHubJob - The Notification Hub import/export job to start.
1575
+ * @param options - The operation options.
1576
+ * @returns A poller which can be called to poll until completion of the job.
1577
+ */
1578
+ beginSubmitNotificationHubJob(notificationHubJob: NotificationHubJob, options?: PolledOperationOptions): Promise<NotificationHubJobPoller>;
1585
1579
  /**
1586
1580
  * Submits a Notification Hub Job. Note this is available to Standard SKU namespace and above.
1587
1581
  * @param job - The notification hub job to submit.
@@ -1616,6 +1610,16 @@ export declare interface NotificationOutcomeCollectionItem {
1616
1610
  */
1617
1611
  export declare type NotificationOutcomeState = "Enqueued" | "DetailedStateAvailable" | "Processing" | "Completed" | "Abandoned" | "Unknown" | "NoTargetFound" | "Cancelled";
1618
1612
 
1613
+ /**
1614
+ * Options for polled operations including the polling interval cycle.
1615
+ */
1616
+ export declare interface PolledOperationOptions extends OperationOptions {
1617
+ /**
1618
+ * Time delay between poll requests, in milliseconds.
1619
+ */
1620
+ updateIntervalInMs?: number;
1621
+ }
1622
+
1619
1623
  /**
1620
1624
  * Represents the types of push channels available for Notification Hubs.
1621
1625
  */
@@ -1718,9 +1722,25 @@ export declare interface RegistrationResult {
1718
1722
  export declare type RegistrationType = "Adm" | "AdmTemplate" | "Apple" | "AppleTemplate" | "Baidu" | "BaiduTemplate" | "Browser" | "BrowserTemplate" | "Gcm" | "GcmTemplate" | "Mpns" | "MpnsTemplate" | "Windows" | "WindowsTemplate";
1719
1723
 
1720
1724
  /**
1721
- * Represents the send operation options that can be set.
1725
+ * Options for sending notifications for both tag based send and broadcast scheduled send.
1722
1726
  */
1723
- export declare interface SendOperationOptions extends OperationOptions {
1727
+ export declare interface ScheduleNotificationOptions extends OperationOptions {
1728
+ /**
1729
+ * The tags used to target the device for push notifications in either an array as "an || condition" or tag expression.
1730
+ * If not set, this results in a broadcast notification to be scheduled.
1731
+ */
1732
+ tags?: string | string[];
1733
+ }
1734
+
1735
+ /**
1736
+ * Options for sending notifications for both tag based send and broadcast send.
1737
+ */
1738
+ export declare interface SendNotificationOptions extends OperationOptions {
1739
+ /**
1740
+ * The tags used to target the device for push notifications in either an array as "an || condition" or tag expression.
1741
+ * If not set, this results in a broadcast notification to be sent.
1742
+ */
1743
+ tags?: string | string[];
1724
1744
  /**
1725
1745
  * Set to true to enable test send.
1726
1746
  */
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.30.0"
8
+ "packageVersion": "7.32.0"
9
9
  }
10
10
  ]
11
11
  }
@@ -0,0 +1,12 @@
1
+ import { NotificationHubJob, NotificationHubJobPoller } from "../models/notificationHubJob.js";
2
+ import { NotificationHubsClientContext } from "./index.js";
3
+ import { PolledOperationOptions } from "../models/options.js";
4
+ /**
5
+ * Submits a Notification Hub job and creates a poller to poll for results.
6
+ * @param context - The Notification Hubs client.
7
+ * @param notificationHubJob - The Notification Hub import/export job to start.
8
+ * @param options - The operation options.
9
+ * @returns A poller which can be called to poll until completion of the job.
10
+ */
11
+ export declare function beginSubmitNotificationHubJob(context: NotificationHubsClientContext, notificationHubJob: NotificationHubJob, polledOperationOptions?: PolledOperationOptions): Promise<NotificationHubJobPoller>;
12
+ //# sourceMappingURL=beginSubmitNotificationHubJob.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beginSubmitNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/client/beginSubmitNotificationHubJob.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAC/F,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAI9D;;;;;;GAMG;AACH,wBAAsB,6BAA6B,CACjD,OAAO,EAAE,6BAA6B,EACtC,kBAAkB,EAAE,kBAAkB,EACtC,sBAAsB,GAAE,sBAA2B,GAClD,OAAO,CAAC,wBAAwB,CAAC,CAsHnC"}
@@ -24,7 +24,7 @@ export interface NotificationHubsClientContext {
24
24
  /**
25
25
  * @internal
26
26
  */
27
- createHeaders(operationName: string): Promise<HttpHeaders>;
27
+ createHeaders(operationName: string, rawHeaders?: Record<string, string>): Promise<HttpHeaders>;
28
28
  /**
29
29
  * @internal
30
30
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/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,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAE3D;;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
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/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"}
@@ -1,17 +1,15 @@
1
1
  import { Notification } from "../models/notification.js";
2
2
  import { NotificationHubsClientContext } from "./index.js";
3
3
  import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
4
- import { OperationOptions } from "@azure/core-client";
4
+ import { ScheduleNotificationOptions } from "../models/options.js";
5
5
  /**
6
6
  * Schedules a push notification to devices that match the given tags or tag expression at the specified time.
7
7
  * NOTE: This is only available in Standard SKU Azure Notification Hubs.
8
8
  * @param context - The Notification Hubs client.
9
9
  * @param scheduledTime - The Date to send the push notification.
10
- * @param tags - The tags used to target the device for push notifications in either an array or tag expression.
11
10
  * @param notification - The notification to send to the matching devices.
12
- * @param options - Configuration options for the direct send operation which can contain custom headers
13
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
11
+ * @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.
14
12
  * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
15
13
  */
16
- export declare function scheduleNotification(context: NotificationHubsClientContext, scheduledTime: Date, tags: string[] | string, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
14
+ export declare function scheduleNotification(context: NotificationHubsClientContext, scheduledTime: Date, notification: Notification, options?: ScheduleNotificationOptions): Promise<NotificationHubsMessageResponse>;
17
15
  //# sourceMappingURL=scheduleNotification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scheduleNotification.d.ts","sourceRoot":"","sources":["../../../src/client/scheduleNotification.ts"],"names":[],"mappings":"AAGA,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,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;;;;;;;GAUG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,6BAA6B,EACtC,aAAa,EAAE,IAAI,EACnB,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EACvB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,+BAA+B,CAAC,CAE1C"}
1
+ {"version":3,"file":"scheduleNotification.d.ts","sourceRoot":"","sources":["../../../src/client/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;AAInE;;;;;;;;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,15 +1,13 @@
1
+ import { DirectSendNotificationOptions, SendNotificationOptions } from "../models/options.js";
1
2
  import { Notification } from "../models/notification.js";
2
3
  import { NotificationHubsClientContext } from "./index.js";
3
4
  import { NotificationHubsMessageResponse } from "../models/notificationDetails.js";
4
- import { SendOperationOptions } from "../models/options.js";
5
5
  /**
6
6
  * Sends push notifications to devices that match the given tags or tag expression.
7
7
  * @param context - The Notification Hubs client.
8
- * @param tags - The tags used to target the device for push notifications in either an array or tag expression.
9
8
  * @param notification - The notification to send to the matching devices.
10
- * @param options - Configuration options for the direct send operation which can contain custom headers
11
- * which may include APNs specific such as apns-topic or for WNS, X-WNS-TYPE.
9
+ * @param options - Options for the notification including tags, device handles and whether to enable test send.
12
10
  * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
13
11
  */
14
- export declare function sendNotification(context: NotificationHubsClientContext, tags: string[] | string, notification: Notification, options?: SendOperationOptions): Promise<NotificationHubsMessageResponse>;
12
+ export declare function sendNotification(context: NotificationHubsClientContext, notification: Notification, options?: DirectSendNotificationOptions | SendNotificationOptions): Promise<NotificationHubsMessageResponse>;
15
13
  //# sourceMappingURL=sendNotification.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../src/client/sendNotification.ts"],"names":[],"mappings":"AAGA,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,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG5D;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,6BAA6B,EACtC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EACvB,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,+BAA+B,CAAC,CAS1C"}
1
+ {"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../src/client/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;AAInF;;;;;;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,3 +1,4 @@
1
+ import { OperationState, SimplePollerLike } from "@azure/core-lro";
1
2
  /**
2
3
  * Describes the types of notification hub jobs.
3
4
  */
@@ -101,4 +102,8 @@ export interface NotificationHubJob {
101
102
  */
102
103
  updatedAt?: Date;
103
104
  }
105
+ /**
106
+ * Describes a poller for NotificationHubJob types.
107
+ */
108
+ export declare type NotificationHubJobPoller = SimplePollerLike<OperationState<NotificationHubJob>, NotificationHubJob>;
104
109
  //# sourceMappingURL=notificationHubJob.d.ts.map
@@ -1 +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"}
1
+ {"version":3,"file":"notificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/models/notificationHubJob.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEnE;;GAEG;AACH,oBAAY,sBAAsB;AAChC;;GAEG;AACD,qBAAqB;AAEvB;;GAEG;GACD,2BAA2B;AAE7B;;GAEG;GACD,2BAA2B;AAE7B;;GAEG;GACD,2BAA2B;AAE7B;;GAEG;GACD,2BAA2B,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