@azure/notification-hubs 1.0.3-alpha.20230717.1 → 1.0.3-alpha.20230804.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.
- package/dist/index.js +31 -36
- package/dist/index.js.map +1 -1
- package/dist-esm/src/api/cancelScheduledNotification.js.map +1 -1
- package/dist-esm/src/api/clientContext.js +24 -17
- package/dist-esm/src/api/clientContext.js.map +1 -1
- package/dist-esm/src/api/createOrUpdateInstallation.js.map +1 -1
- package/dist-esm/src/api/createOrUpdateRegistration.js.map +1 -1
- package/dist-esm/src/api/createRegistration.js.map +1 -1
- package/dist-esm/src/api/createRegistrationId.js.map +1 -1
- package/dist-esm/src/api/deleteInstallation.js.map +1 -1
- package/dist-esm/src/api/getFeedbackContainerUrl.js.map +1 -1
- package/dist-esm/src/api/getInstallation.js.map +1 -1
- package/dist-esm/src/api/getNotificationHubJob.js.map +1 -1
- package/dist-esm/src/api/getNotificationOutcomeDetails.js.map +1 -1
- package/dist-esm/src/api/getRegistration.js.map +1 -1
- package/dist-esm/src/api/internal/_client.js.map +1 -1
- package/dist-esm/src/api/internal/_createOrUpdateRegistrationDescription.js.map +1 -1
- package/dist-esm/src/api/listNotificationHubJobs.js.map +1 -1
- package/dist-esm/src/api/submitNotificationHubJob.js.map +1 -1
- package/dist-esm/src/api/updateInstallation.js.map +1 -1
- package/dist-esm/src/api/updateRegistration.js.map +1 -1
- package/dist-esm/src/auth/connectionStringUtils.js +5 -5
- package/dist-esm/src/auth/connectionStringUtils.js.map +1 -1
- package/dist-esm/src/auth/{sasTokenProvider.js → sasTokenCredential.js} +5 -18
- package/dist-esm/src/auth/sasTokenCredential.js.map +1 -0
- package/dist-esm/src/models/options.js.map +1 -1
- package/dist-esm/src/notificationHubsClient.js.map +1 -1
- package/package.json +3 -2
- package/types/3.1/notification-hubs.d.ts +3 -3
- package/types/latest/notification-hubs.d.ts +3 -3
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/api/cancelScheduledNotification.d.ts +1 -1
- package/types/src/api/cancelScheduledNotification.d.ts.map +1 -1
- package/types/src/api/clientContext.d.ts +0 -13
- package/types/src/api/clientContext.d.ts.map +1 -1
- package/types/src/api/createOrUpdateInstallation.d.ts +1 -1
- package/types/src/api/createOrUpdateInstallation.d.ts.map +1 -1
- package/types/src/api/createOrUpdateRegistration.d.ts +1 -1
- package/types/src/api/createOrUpdateRegistration.d.ts.map +1 -1
- package/types/src/api/createRegistration.d.ts +1 -1
- package/types/src/api/createRegistration.d.ts.map +1 -1
- package/types/src/api/createRegistrationId.d.ts +1 -1
- package/types/src/api/createRegistrationId.d.ts.map +1 -1
- package/types/src/api/deleteInstallation.d.ts +1 -1
- package/types/src/api/deleteInstallation.d.ts.map +1 -1
- package/types/src/api/getFeedbackContainerUrl.d.ts +1 -1
- package/types/src/api/getFeedbackContainerUrl.d.ts.map +1 -1
- package/types/src/api/getInstallation.d.ts +1 -1
- package/types/src/api/getInstallation.d.ts.map +1 -1
- package/types/src/api/getNotificationHubJob.d.ts +1 -1
- package/types/src/api/getNotificationHubJob.d.ts.map +1 -1
- package/types/src/api/getNotificationOutcomeDetails.d.ts +1 -1
- package/types/src/api/getNotificationOutcomeDetails.d.ts.map +1 -1
- package/types/src/api/getRegistration.d.ts +1 -1
- package/types/src/api/getRegistration.d.ts.map +1 -1
- package/types/src/api/internal/_client.d.ts +1 -1
- package/types/src/api/internal/_client.d.ts.map +1 -1
- package/types/src/api/internal/_createOrUpdateRegistrationDescription.d.ts +1 -1
- package/types/src/api/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -1
- package/types/src/api/listNotificationHubJobs.d.ts +1 -1
- package/types/src/api/listNotificationHubJobs.d.ts.map +1 -1
- package/types/src/api/submitNotificationHubJob.d.ts +1 -1
- package/types/src/api/submitNotificationHubJob.d.ts.map +1 -1
- package/types/src/api/updateInstallation.d.ts +1 -1
- package/types/src/api/updateInstallation.d.ts.map +1 -1
- package/types/src/api/updateRegistration.d.ts +1 -1
- package/types/src/api/updateRegistration.d.ts.map +1 -1
- package/types/src/auth/connectionStringUtils.d.ts +4 -4
- package/types/src/auth/connectionStringUtils.d.ts.map +1 -1
- package/types/src/auth/sasTokenCredential.d.ts +37 -0
- package/types/src/auth/sasTokenCredential.d.ts.map +1 -0
- package/types/src/models/options.d.ts +2 -2
- package/types/src/models/options.d.ts.map +1 -1
- package/types/src/notificationHubsClient.d.ts +1 -1
- package/types/src/notificationHubsClient.d.ts.map +1 -1
- package/dist-esm/src/auth/sasTokenProvider.js.map +0 -1
- package/types/src/auth/sasTokenProvider.d.ts +0 -77
- package/types/src/auth/sasTokenProvider.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationHubsClient.js","sourceRoot":"","sources":["../../src/notificationHubsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkBlC,OAAO,EAAiC,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAK5F,OAAO,EAAE,6BAA6B,IAAI,mCAAmC,EAAE,MAAM,wCAAwC,CAAC;AAC9H,OAAO,EAAE,2BAA2B,IAAI,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACxH,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,eAAe,IA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;IAED;;;;;;OAMG;IACH,6BAA6B,CAC3B,cAAsB,EACtB,UAA4B,EAAE;QAE9B,OAAO,mCAAmC,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;IAED;;;;;OAKG;IACH,qBAAqB,CACnB,KAAa,EACb,UAA4B,EAAE;QAE9B,OAAO,2BAA2B,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,6BAA6B,CAC3B,kBAAsC,EACtC,UAAkC,EAAE;QAEpC,OAAO,mCAAmC,CAAC,IAAI,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;OAKG;IACH,wBAAwB,CACtB,GAAuB,EACvB,UAA4B,EAAE;QAE9B,OAAO,8BAA8B,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACH,uBAAuB,CAAC,UAA4B,EAAE;QACpD,OAAO,6BAA6B,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n DirectSendNotificationOptions,\n EntityOperationOptions,\n NotificationHubsClientOptions,\n PolledOperationOptions,\n RegistrationQueryLimitOptions,\n ScheduleNotificationOptions,\n SendNotificationOptions,\n} from \"./models/options.js\";\nimport { Installation, JsonPatch } from \"./models/installation.js\";\nimport {\n NotificationDetails,\n NotificationHubsMessageResponse,\n NotificationHubsResponse,\n} from \"./models/notificationDetails.js\";\nimport { NotificationHubJob, NotificationHubJobPoller } from \"./models/notificationHubJob.js\";\nimport { NotificationHubsClientContext, createClientContext } from \"./api/clientContext.js\";\nimport { RegistrationDescription, RegistrationChannel } from \"./models/registration.js\";\nimport { Notification } from \"./models/notification.js\";\nimport { OperationOptions } from \"@azure/core-client\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { beginSubmitNotificationHubJob as beginSubmitNotificationHubJobMethod } from \"./api/beginSubmitNotificationHubJob.js\";\nimport { cancelScheduledNotification as cancelScheduledNotificationMethod } from \"./api/cancelScheduledNotification.js\";\nimport { createOrUpdateInstallation as createOrUpdateInstallationMethod } from \"./api/createOrUpdateInstallation.js\";\nimport { createOrUpdateRegistration as createOrUpdateRegistrationMethod } from \"./api/createOrUpdateRegistration.js\";\nimport { createRegistrationId as createRegistrationIdMethod } from \"./api/createRegistrationId.js\";\nimport { createRegistration as createRegistrationMethod } from \"./api/createRegistration.js\";\nimport { deleteInstallation as deleteInstallationMethod } from \"./api/deleteInstallation.js\";\nimport { deleteRegistration } from \"./api/deleteRegistration.js\";\nimport { getFeedbackContainerUrl as getFeedbackContainerUrlMethod } from \"./api/getFeedbackContainerUrl.js\";\nimport { getInstallation as getInstallationMethod } from \"./api/getInstallation.js\";\nimport { getNotificationHubJob as getNotificationHubJobMethod } from \"./api/getNotificationHubJob.js\";\nimport { getNotificationOutcomeDetails as getNotificationOutcomeDetailsMethod } from \"./api/getNotificationOutcomeDetails.js\";\nimport { getRegistration as getRegistrationMethod } from \"./api/getRegistration.js\";\nimport { listNotificationHubJobs as listNotificationHubJobsMethod } from \"./api/listNotificationHubJobs.js\";\nimport { listRegistrationsByChannel as listRegistrationsByChannelMethod } from \"./api/listRegistrationsByChannel.js\";\nimport { listRegistrationsByTag as listRegistrationsByTagMethod } from \"./api/listRegistrationsByTag.js\";\nimport { listRegistrations as listRegistrationsMethod } from \"./api/listRegistrations.js\";\nimport { scheduleNotification as scheduleNotificationMethod } from \"./api/scheduleNotification.js\";\nimport { sendNotification as sendNotificationMethod } from \"./api/sendNotification.js\";\nimport { submitNotificationHubJob as submitNotificationHubJobMethod } from \"./api/submitNotificationHubJob.js\";\nimport { updateInstallation as updateInstallationMethod } from \"./api/updateInstallation.js\";\nimport { updateRegistration as updateRegistrationMethod } from \"./api/updateRegistration.js\";\n\n/**\n * This represents a client for Azure Notification Hubs to manage installations and send\n * messages to devices.\n */\nexport class NotificationHubsClient {\n private _client: NotificationHubsClientContext;\n\n /**\n * Creates a new instance of the NotificationClient with a connection string, hub name and options.\n * @param connectionString - The Notification Hub Access Policy connection string.\n * @param hubName - The name of the Azure Notification Hub.\n * @param options - Options for configuring the Azure Notification Hubs client.\n */\n constructor(\n connectionString: string,\n hubName: string,\n options: NotificationHubsClientOptions = {}\n ) {\n this._client = createClientContext(connectionString, hubName, options);\n }\n\n /**\n * Creates or overwrites an installation to a Notification Hub.\n * @param installation - The installation to create or overwrite.\n * @param options - Configuration options for the create or update installation operation.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n createOrUpdateInstallation(\n installation: Installation,\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return createOrUpdateInstallationMethod(this._client, installation, options);\n }\n\n /**\n * Deletes an installation from a Notification Hub.\n * @param installationId - The installation ID of the installation to delete.\n * @param options - Configuration options for the installation delete operation.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n deleteInstallation(\n installationId: string,\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return deleteInstallationMethod(this._client, installationId, options);\n }\n\n /**\n * Gets an Azure Notification Hub installation by the installation ID.\n * @param installationId - The ID of the installation to get.\n * @param options - Configuration options for the get installation operation.\n * @returns The installation that matches the installation ID.\n */\n getInstallation(installationId: string, options: OperationOptions = {}): Promise<Installation> {\n return getInstallationMethod(this._client, installationId, options);\n }\n\n /**\n * Updates an installation using the JSON-Patch standard in RFC6902.\n * @param installationId - The ID of the installation to update.\n * @param patches - An array of patches following the JSON-Patch standard.\n * @param options - Configuration options for the patch installation operation.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n updateInstallation(\n installationId: string,\n patches: JsonPatch[],\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return updateInstallationMethod(this._client, installationId, patches, options);\n }\n\n /**\n * Creates a new registration ID.\n * @param options - The options for creating a new registration ID.\n * @returns The newly created registration ID.\n */\n createRegistrationId(options: OperationOptions = {}): Promise<string> {\n return createRegistrationIdMethod(this._client, options);\n }\n\n /**\n * Creates a new registration. This method generates a registration ID,\n * which you can subsequently use to retrieve, update, and delete this registration.\n * @param registration - The registration to create.\n * @param options - Options for creating a new registration.\n * @returns The newly created registration description.\n */\n createRegistration(\n registration: RegistrationDescription,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return createRegistrationMethod(this._client, registration, options);\n }\n\n /**\n * Creates or updates a registration.\n * @param registration - The registration to create or update.\n * @param options - The operation options.\n * @returns The created or updated registration description.\n */\n createOrUpdateRegistration(\n registration: RegistrationDescription,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return createOrUpdateRegistrationMethod(this._client, registration, options);\n }\n\n /**\n * Updates an existing registration.\n * @param registration - The registration to update.\n * @param options - The operation options.\n * @returns The updated registration description.\n */\n updateRegistration(\n registration: RegistrationDescription,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return updateRegistrationMethod(this._client, registration, options);\n }\n\n /**\n * Deletes a registration with the given registration ID.\n * @param context - The Notification Hubs client.\n * @param registrationId - The registration ID of the registration to delete.\n * @param options - The options for delete operations including the ETag\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n deleteRegistration(\n registrationId: string,\n options: EntityOperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return deleteRegistration(this._client, registrationId, options);\n }\n\n /**\n * Gets a registration by the given registration ID.\n * @param registrationId - The ID of the registration to get.\n * @param options - The options for getting a registration by ID.\n * @returns A RegistrationDescription that has the given registration ID.\n */\n getRegistration(\n registrationId: string,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return getRegistrationMethod(this._client, registrationId, options);\n }\n\n /**\n * Gets all registrations for the notification hub with the given query options.\n * @param options - The options for querying the registrations such as $top.\n * @returns A paged async iterable containing all of the registrations for the notification hub.\n */\n listRegistrations(\n options: RegistrationQueryLimitOptions = {}\n ): PagedAsyncIterableIterator<RegistrationDescription> {\n return listRegistrationsMethod(this._client, options);\n }\n\n /**\n * Gets all registrations for the notification hub with the given device information and options.\n * @param channel - The registration channel information to query per PNS type.\n * @param options - The options for querying the registrations such as $top.\n * @returns A paged async iterable containing all of the registrations for the notification hub.\n */\n listRegistrationsByChannel(\n channel: RegistrationChannel,\n options: RegistrationQueryLimitOptions = {}\n ): PagedAsyncIterableIterator<RegistrationDescription> {\n return listRegistrationsByChannelMethod(this._client, channel, options);\n }\n\n /**\n * Lists all registrations with the matching tag.\n * @param tag - The tag to query for matching registrations.\n * @param options - The query options such as $top.\n * @returns A paged async iterable containing the matching registrations for the notification hub.\n */\n listRegistrationsByTag(\n tag: string,\n options: RegistrationQueryLimitOptions = {}\n ): PagedAsyncIterableIterator<RegistrationDescription> {\n return listRegistrationsByTagMethod(this._client, tag, options);\n }\n\n /**\n * Sends push notifications to devices that match the given tags or tag expression.\n * @param notification - The notification to send to the matching devices.\n * @param options - Options for the notification including tags, device handles and whether to enable test send.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n sendNotification(\n notification: Notification,\n options: DirectSendNotificationOptions | SendNotificationOptions = { enableTestSend: false }\n ): Promise<NotificationHubsMessageResponse> {\n return sendNotificationMethod(this._client, notification, options);\n }\n\n /**\n * Schedules a push notification to devices that match the given tags or tag expression at the specified time.\n * NOTE: This is only available in Standard SKU Azure Notification Hubs.\n * @param scheduledTime - The Date to send the push notification.\n * @param notification - The notification to send to the matching devices.\n * @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n scheduleNotification(\n scheduledTime: Date,\n notification: Notification,\n options: ScheduleNotificationOptions = {}\n ): Promise<NotificationHubsMessageResponse> {\n return scheduleNotificationMethod(this._client, scheduledTime, notification, options);\n }\n\n /**\n * Cancels the scheduled notification with the given notification ID.\n * @param notificationId - The notification ID from the scheduled notification.\n * @param options - The operation options.\n * @returns A notification hub response with correlation ID and tracking ID.\n */\n cancelScheduledNotification(\n notificationId: string,\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return cancelScheduledNotificationMethod(this._client, notificationId, options);\n }\n\n /**\n * Retrieves an Azure Storage container URL. The container has feedback data for the notification hub.\n * The caller can then use the Azure Storage Services SDK to retrieve the contents of the container.\n * @param options - The options for getting the push notification feedback container URL.\n * @returns The URL of the Azure Storage Container containing the feedback data.\n */\n getFeedbackContainerUrl(options: OperationOptions = {}): Promise<string> {\n return getFeedbackContainerUrlMethod(this._client, options);\n }\n\n /**\n * Retrieves the results of a send operation. This can retrieve intermediate results if the send is being processed\n * or final results if the Send* has completed. This API can only be called for Standard SKU and above.\n * @param notificationId - The notification ID returned from the send operation.\n * @param options - The operation options.\n * @returns The results of the send operation.\n */\n getNotificationOutcomeDetails(\n notificationId: string,\n options: OperationOptions = {}\n ): Promise<NotificationDetails> {\n return getNotificationOutcomeDetailsMethod(this._client, notificationId, options);\n }\n\n /**\n * Gets a Notification Hub Job by the ID.\n * @param jobId - The Notification Hub Job ID.\n * @param options - The operation options.\n * @returns The Notification Hub Job with the matching ID.\n */\n getNotificationHubJob(\n jobId: string,\n options: OperationOptions = {}\n ): Promise<NotificationHubJob> {\n return getNotificationHubJobMethod(this._client, jobId, options);\n }\n\n /**\n * Submits a Notification Hub job and creates a poller to poll for results.\n * @param notificationHubJob - The Notification Hub import/export job to start.\n * @param options - The operation options.\n * @returns A poller which can be called to poll until completion of the job.\n */\n beginSubmitNotificationHubJob(\n notificationHubJob: NotificationHubJob,\n options: PolledOperationOptions = {}\n ): Promise<NotificationHubJobPoller> {\n return beginSubmitNotificationHubJobMethod(this._client, notificationHubJob, options);\n }\n\n /**\n * Submits a Notification Hub Job. Note this is available to Standard SKU namespace and above.\n * @param job - The notification hub job to submit.\n * @param options - The operation options.\n * @returns The notification hub job details including job ID and status.\n */\n submitNotificationHubJob(\n job: NotificationHubJob,\n options: OperationOptions = {}\n ): Promise<NotificationHubJob> {\n return submitNotificationHubJobMethod(this._client, job, options);\n }\n\n /**\n * Gets all Notification Hub Jobs for this Notification Hub.\n * @param options - The operation options.\n * @returns An array of all Notification Hub Jobs for this Notification Hub.\n */\n listNotificationHubJobs(options: OperationOptions = {}): Promise<NotificationHubJob[]> {\n return listNotificationHubJobsMethod(this._client, options);\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"notificationHubsClient.js","sourceRoot":"","sources":["../../src/notificationHubsClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAkBlC,OAAO,EAAiC,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAK5F,OAAO,EAAE,6BAA6B,IAAI,mCAAmC,EAAE,MAAM,wCAAwC,CAAC;AAC9H,OAAO,EAAE,2BAA2B,IAAI,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACxH,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAE,0BAA0B,IAAI,gCAAgC,EAAE,MAAM,qCAAqC,CAAC;AACrH,OAAO,EAAE,oBAAoB,IAAI,0BAA0B,EAAE,MAAM,+BAA+B,CAAC;AACnG,OAAO,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,kBAAkB,IAAI,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,uBAAuB,IAAI,6BAA6B,EAAE,MAAM,kCAAkC,CAAC;AAC5G,OAAO,EAAE,eAAe,IAAI,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACpF,OAAO,EAAE,qBAAqB,IAAI,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AACtG,OAAO,EAAE,6BAA6B,IAAI,mCAAmC,EAAE,MAAM,wCA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;;;;;OAKG;IACH,qBAAqB,CACnB,KAAa,EACb,UAA4B,EAAE;QAE9B,OAAO,2BAA2B,CAAC,IAAI,CAAC,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAED;;;;;OAKG;IACH,6BAA6B,CAC3B,kBAAsC,EACtC,UAAkC,EAAE;QAEpC,OAAO,mCAAmC,CAAC,IAAI,CAAC,OAAO,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAC;IACxF,CAAC;IAED;;;;;OAKG;IACH,wBAAwB,CACtB,GAAuB,EACvB,UAA4B,EAAE;QAE9B,OAAO,8BAA8B,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;IAED;;;;OAIG;IACH,uBAAuB,CAAC,UAA4B,EAAE;QACpD,OAAO,6BAA6B,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n DirectSendNotificationOptions,\n EntityOperationOptions,\n NotificationHubsClientOptions,\n PolledOperationOptions,\n RegistrationQueryLimitOptions,\n ScheduleNotificationOptions,\n SendNotificationOptions,\n} from \"./models/options.js\";\nimport { Installation, JsonPatch } from \"./models/installation.js\";\nimport {\n NotificationDetails,\n NotificationHubsMessageResponse,\n NotificationHubsResponse,\n} from \"./models/notificationDetails.js\";\nimport { NotificationHubJob, NotificationHubJobPoller } from \"./models/notificationHubJob.js\";\nimport { NotificationHubsClientContext, createClientContext } from \"./api/clientContext.js\";\nimport { RegistrationDescription, RegistrationChannel } from \"./models/registration.js\";\nimport { Notification } from \"./models/notification.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { beginSubmitNotificationHubJob as beginSubmitNotificationHubJobMethod } from \"./api/beginSubmitNotificationHubJob.js\";\nimport { cancelScheduledNotification as cancelScheduledNotificationMethod } from \"./api/cancelScheduledNotification.js\";\nimport { createOrUpdateInstallation as createOrUpdateInstallationMethod } from \"./api/createOrUpdateInstallation.js\";\nimport { createOrUpdateRegistration as createOrUpdateRegistrationMethod } from \"./api/createOrUpdateRegistration.js\";\nimport { createRegistrationId as createRegistrationIdMethod } from \"./api/createRegistrationId.js\";\nimport { createRegistration as createRegistrationMethod } from \"./api/createRegistration.js\";\nimport { deleteInstallation as deleteInstallationMethod } from \"./api/deleteInstallation.js\";\nimport { deleteRegistration } from \"./api/deleteRegistration.js\";\nimport { getFeedbackContainerUrl as getFeedbackContainerUrlMethod } from \"./api/getFeedbackContainerUrl.js\";\nimport { getInstallation as getInstallationMethod } from \"./api/getInstallation.js\";\nimport { getNotificationHubJob as getNotificationHubJobMethod } from \"./api/getNotificationHubJob.js\";\nimport { getNotificationOutcomeDetails as getNotificationOutcomeDetailsMethod } from \"./api/getNotificationOutcomeDetails.js\";\nimport { getRegistration as getRegistrationMethod } from \"./api/getRegistration.js\";\nimport { listNotificationHubJobs as listNotificationHubJobsMethod } from \"./api/listNotificationHubJobs.js\";\nimport { listRegistrationsByChannel as listRegistrationsByChannelMethod } from \"./api/listRegistrationsByChannel.js\";\nimport { listRegistrationsByTag as listRegistrationsByTagMethod } from \"./api/listRegistrationsByTag.js\";\nimport { listRegistrations as listRegistrationsMethod } from \"./api/listRegistrations.js\";\nimport { scheduleNotification as scheduleNotificationMethod } from \"./api/scheduleNotification.js\";\nimport { sendNotification as sendNotificationMethod } from \"./api/sendNotification.js\";\nimport { submitNotificationHubJob as submitNotificationHubJobMethod } from \"./api/submitNotificationHubJob.js\";\nimport { updateInstallation as updateInstallationMethod } from \"./api/updateInstallation.js\";\nimport { updateRegistration as updateRegistrationMethod } from \"./api/updateRegistration.js\";\n\n/**\n * This represents a client for Azure Notification Hubs to manage installations and send\n * messages to devices.\n */\nexport class NotificationHubsClient {\n private _client: NotificationHubsClientContext;\n\n /**\n * Creates a new instance of the NotificationClient with a connection string, hub name and options.\n * @param connectionString - The Notification Hub Access Policy connection string.\n * @param hubName - The name of the Azure Notification Hub.\n * @param options - Options for configuring the Azure Notification Hubs client.\n */\n constructor(\n connectionString: string,\n hubName: string,\n options: NotificationHubsClientOptions = {}\n ) {\n this._client = createClientContext(connectionString, hubName, options);\n }\n\n /**\n * Creates or overwrites an installation to a Notification Hub.\n * @param installation - The installation to create or overwrite.\n * @param options - Configuration options for the create or update installation operation.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n createOrUpdateInstallation(\n installation: Installation,\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return createOrUpdateInstallationMethod(this._client, installation, options);\n }\n\n /**\n * Deletes an installation from a Notification Hub.\n * @param installationId - The installation ID of the installation to delete.\n * @param options - Configuration options for the installation delete operation.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n deleteInstallation(\n installationId: string,\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return deleteInstallationMethod(this._client, installationId, options);\n }\n\n /**\n * Gets an Azure Notification Hub installation by the installation ID.\n * @param installationId - The ID of the installation to get.\n * @param options - Configuration options for the get installation operation.\n * @returns The installation that matches the installation ID.\n */\n getInstallation(installationId: string, options: OperationOptions = {}): Promise<Installation> {\n return getInstallationMethod(this._client, installationId, options);\n }\n\n /**\n * Updates an installation using the JSON-Patch standard in RFC6902.\n * @param installationId - The ID of the installation to update.\n * @param patches - An array of patches following the JSON-Patch standard.\n * @param options - Configuration options for the patch installation operation.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n updateInstallation(\n installationId: string,\n patches: JsonPatch[],\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return updateInstallationMethod(this._client, installationId, patches, options);\n }\n\n /**\n * Creates a new registration ID.\n * @param options - The options for creating a new registration ID.\n * @returns The newly created registration ID.\n */\n createRegistrationId(options: OperationOptions = {}): Promise<string> {\n return createRegistrationIdMethod(this._client, options);\n }\n\n /**\n * Creates a new registration. This method generates a registration ID,\n * which you can subsequently use to retrieve, update, and delete this registration.\n * @param registration - The registration to create.\n * @param options - Options for creating a new registration.\n * @returns The newly created registration description.\n */\n createRegistration(\n registration: RegistrationDescription,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return createRegistrationMethod(this._client, registration, options);\n }\n\n /**\n * Creates or updates a registration.\n * @param registration - The registration to create or update.\n * @param options - The operation options.\n * @returns The created or updated registration description.\n */\n createOrUpdateRegistration(\n registration: RegistrationDescription,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return createOrUpdateRegistrationMethod(this._client, registration, options);\n }\n\n /**\n * Updates an existing registration.\n * @param registration - The registration to update.\n * @param options - The operation options.\n * @returns The updated registration description.\n */\n updateRegistration(\n registration: RegistrationDescription,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return updateRegistrationMethod(this._client, registration, options);\n }\n\n /**\n * Deletes a registration with the given registration ID.\n * @param context - The Notification Hubs client.\n * @param registrationId - The registration ID of the registration to delete.\n * @param options - The options for delete operations including the ETag\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n deleteRegistration(\n registrationId: string,\n options: EntityOperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return deleteRegistration(this._client, registrationId, options);\n }\n\n /**\n * Gets a registration by the given registration ID.\n * @param registrationId - The ID of the registration to get.\n * @param options - The options for getting a registration by ID.\n * @returns A RegistrationDescription that has the given registration ID.\n */\n getRegistration(\n registrationId: string,\n options: OperationOptions = {}\n ): Promise<RegistrationDescription> {\n return getRegistrationMethod(this._client, registrationId, options);\n }\n\n /**\n * Gets all registrations for the notification hub with the given query options.\n * @param options - The options for querying the registrations such as $top.\n * @returns A paged async iterable containing all of the registrations for the notification hub.\n */\n listRegistrations(\n options: RegistrationQueryLimitOptions = {}\n ): PagedAsyncIterableIterator<RegistrationDescription> {\n return listRegistrationsMethod(this._client, options);\n }\n\n /**\n * Gets all registrations for the notification hub with the given device information and options.\n * @param channel - The registration channel information to query per PNS type.\n * @param options - The options for querying the registrations such as $top.\n * @returns A paged async iterable containing all of the registrations for the notification hub.\n */\n listRegistrationsByChannel(\n channel: RegistrationChannel,\n options: RegistrationQueryLimitOptions = {}\n ): PagedAsyncIterableIterator<RegistrationDescription> {\n return listRegistrationsByChannelMethod(this._client, channel, options);\n }\n\n /**\n * Lists all registrations with the matching tag.\n * @param tag - The tag to query for matching registrations.\n * @param options - The query options such as $top.\n * @returns A paged async iterable containing the matching registrations for the notification hub.\n */\n listRegistrationsByTag(\n tag: string,\n options: RegistrationQueryLimitOptions = {}\n ): PagedAsyncIterableIterator<RegistrationDescription> {\n return listRegistrationsByTagMethod(this._client, tag, options);\n }\n\n /**\n * Sends push notifications to devices that match the given tags or tag expression.\n * @param notification - The notification to send to the matching devices.\n * @param options - Options for the notification including tags, device handles and whether to enable test send.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n sendNotification(\n notification: Notification,\n options: DirectSendNotificationOptions | SendNotificationOptions = { enableTestSend: false }\n ): Promise<NotificationHubsMessageResponse> {\n return sendNotificationMethod(this._client, notification, options);\n }\n\n /**\n * Schedules a push notification to devices that match the given tags or tag expression at the specified time.\n * NOTE: This is only available in Standard SKU Azure Notification Hubs.\n * @param scheduledTime - The Date to send the push notification.\n * @param notification - The notification to send to the matching devices.\n * @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.\n * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.\n */\n scheduleNotification(\n scheduledTime: Date,\n notification: Notification,\n options: ScheduleNotificationOptions = {}\n ): Promise<NotificationHubsMessageResponse> {\n return scheduleNotificationMethod(this._client, scheduledTime, notification, options);\n }\n\n /**\n * Cancels the scheduled notification with the given notification ID.\n * @param notificationId - The notification ID from the scheduled notification.\n * @param options - The operation options.\n * @returns A notification hub response with correlation ID and tracking ID.\n */\n cancelScheduledNotification(\n notificationId: string,\n options: OperationOptions = {}\n ): Promise<NotificationHubsResponse> {\n return cancelScheduledNotificationMethod(this._client, notificationId, options);\n }\n\n /**\n * Retrieves an Azure Storage container URL. The container has feedback data for the notification hub.\n * The caller can then use the Azure Storage Services SDK to retrieve the contents of the container.\n * @param options - The options for getting the push notification feedback container URL.\n * @returns The URL of the Azure Storage Container containing the feedback data.\n */\n getFeedbackContainerUrl(options: OperationOptions = {}): Promise<string> {\n return getFeedbackContainerUrlMethod(this._client, options);\n }\n\n /**\n * Retrieves the results of a send operation. This can retrieve intermediate results if the send is being processed\n * or final results if the Send* has completed. This API can only be called for Standard SKU and above.\n * @param notificationId - The notification ID returned from the send operation.\n * @param options - The operation options.\n * @returns The results of the send operation.\n */\n getNotificationOutcomeDetails(\n notificationId: string,\n options: OperationOptions = {}\n ): Promise<NotificationDetails> {\n return getNotificationOutcomeDetailsMethod(this._client, notificationId, options);\n }\n\n /**\n * Gets a Notification Hub Job by the ID.\n * @param jobId - The Notification Hub Job ID.\n * @param options - The operation options.\n * @returns The Notification Hub Job with the matching ID.\n */\n getNotificationHubJob(\n jobId: string,\n options: OperationOptions = {}\n ): Promise<NotificationHubJob> {\n return getNotificationHubJobMethod(this._client, jobId, options);\n }\n\n /**\n * Submits a Notification Hub job and creates a poller to poll for results.\n * @param notificationHubJob - The Notification Hub import/export job to start.\n * @param options - The operation options.\n * @returns A poller which can be called to poll until completion of the job.\n */\n beginSubmitNotificationHubJob(\n notificationHubJob: NotificationHubJob,\n options: PolledOperationOptions = {}\n ): Promise<NotificationHubJobPoller> {\n return beginSubmitNotificationHubJobMethod(this._client, notificationHubJob, options);\n }\n\n /**\n * Submits a Notification Hub Job. Note this is available to Standard SKU namespace and above.\n * @param job - The notification hub job to submit.\n * @param options - The operation options.\n * @returns The notification hub job details including job ID and status.\n */\n submitNotificationHubJob(\n job: NotificationHubJob,\n options: OperationOptions = {}\n ): Promise<NotificationHubJob> {\n return submitNotificationHubJobMethod(this._client, job, options);\n }\n\n /**\n * Gets all Notification Hub Jobs for this Notification Hub.\n * @param options - The operation options.\n * @returns An array of all Notification Hub Jobs for this Notification Hub.\n */\n listNotificationHubJobs(options: OperationOptions = {}): Promise<NotificationHubJob[]> {\n return listNotificationHubJobsMethod(this._client, options);\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/notification-hubs",
|
|
3
|
-
"version": "1.0.3-alpha.
|
|
3
|
+
"version": "1.0.3-alpha.20230804.2",
|
|
4
4
|
"description": "Azure Notification Hubs SDK for JavaScript",
|
|
5
5
|
"sdk-type": "client",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -140,8 +140,8 @@
|
|
|
140
140
|
"util": "^0.12.4"
|
|
141
141
|
},
|
|
142
142
|
"dependencies": {
|
|
143
|
+
"@azure/core-auth": "^1.4.1",
|
|
143
144
|
"@azure/abort-controller": "^1.1.0",
|
|
144
|
-
"@azure/core-client": "^1.6.1",
|
|
145
145
|
"@azure/core-lro": "^2.4.0",
|
|
146
146
|
"@azure/core-paging": "^1.3.0",
|
|
147
147
|
"@azure/core-rest-pipeline": "^1.8.1",
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
"@azure/core-util": "^1.3.0",
|
|
150
150
|
"@azure/core-xml": "^1.3.1",
|
|
151
151
|
"@azure/logger": "^1.0.3",
|
|
152
|
+
"@azure-rest/core-client": ">=1.1.5-alpha <1.1.5-alphb",
|
|
152
153
|
"tslib": "^2.4.0"
|
|
153
154
|
}
|
|
154
155
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OperationOptions } from '@azure/core-client';
|
|
1
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
|
2
|
+
import { OperationOptions } from '@azure-rest/core-client';
|
|
3
3
|
import { OperationState } from '@azure/core-lro';
|
|
4
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
5
|
import { SimplePollerLike } from '@azure/core-lro';
|
|
@@ -1741,7 +1741,7 @@ export declare class NotificationHubsClient {
|
|
|
1741
1741
|
/**
|
|
1742
1742
|
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
1743
1743
|
*/
|
|
1744
|
-
export declare interface NotificationHubsClientOptions extends
|
|
1744
|
+
export declare interface NotificationHubsClientOptions extends ClientOptions {
|
|
1745
1745
|
}
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Describes a response from the Notification Hubs service for send operations.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OperationOptions } from '@azure/core-client';
|
|
1
|
+
import { ClientOptions } from '@azure-rest/core-client';
|
|
2
|
+
import { OperationOptions } from '@azure-rest/core-client';
|
|
3
3
|
import { OperationState } from '@azure/core-lro';
|
|
4
4
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
5
5
|
import { SimplePollerLike } from '@azure/core-lro';
|
|
@@ -1857,7 +1857,7 @@ export declare class NotificationHubsClient {
|
|
|
1857
1857
|
/**
|
|
1858
1858
|
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
1859
1859
|
*/
|
|
1860
|
-
export declare interface NotificationHubsClientOptions extends
|
|
1860
|
+
export declare interface NotificationHubsClientOptions extends ClientOptions {
|
|
1861
1861
|
}
|
|
1862
1862
|
|
|
1863
1863
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
2
|
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Cancels the scheduled notification with the given notification ID.
|
|
6
6
|
* NOTE: This is only available in Standard SKU Azure Notification Hubs.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancelScheduledNotification.d.ts","sourceRoot":"","sources":["../../../src/api/cancelScheduledNotification.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"cancelScheduledNotification.d.ts","sourceRoot":"","sources":["../../../src/api/cancelScheduledNotification.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAgBnC"}
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
import { HttpHeaders, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
|
|
3
3
|
import { NotificationHubsClientOptions } from "../models/options.js";
|
|
4
|
-
import { SasTokenProvider } from "../auth/sasTokenProvider.js";
|
|
5
4
|
/**
|
|
6
5
|
* Represents the Notification Hubs SDK client context.
|
|
7
6
|
*/
|
|
8
7
|
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
8
|
/**
|
|
22
9
|
* @internal
|
|
23
10
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clientContext.d.ts","sourceRoot":"","sources":["../../../src/api/clientContext.ts"],"names":[],"mappings":";AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"clientContext.d.ts","sourceRoot":"","sources":["../../../src/api/clientContext.ts"],"names":[],"mappings":";AAIA,OAAO,EAEL,WAAW,EACX,eAAe,EACf,gBAAgB,EAIjB,MAAM,2BAA2B,CAAC;AAKnC,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAMrE;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C;;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,7 +1,7 @@
|
|
|
1
1
|
import { Installation } from "../models/installation.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
3
|
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
4
|
-
import { OperationOptions } from "@azure/core-client";
|
|
4
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* Creates or overwrites an installation to a Notification Hub.
|
|
7
7
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/createOrUpdateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOrUpdateInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/createOrUpdateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAmBnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
import { RegistrationDescription } from "../models/registration.js";
|
|
4
4
|
/**
|
|
5
5
|
* Creates or updates a registration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/createOrUpdateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createOrUpdateRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/createOrUpdateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAMpE;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,uBAAuB,EACrC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAalC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
import { RegistrationDescription } from "../models/registration.js";
|
|
4
4
|
/**
|
|
5
5
|
* Creates a new registration. This method generates a registration ID,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/createRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/createRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOpE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,uBAAuB,EACrC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAclC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
/**
|
|
4
4
|
* Creates a new registration ID.
|
|
5
5
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRegistrationId.d.ts","sourceRoot":"","sources":["../../../src/api/createRegistrationId.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"createRegistrationId.d.ts","sourceRoot":"","sources":["../../../src/api/createRegistrationId.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM3D;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CA6BjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
2
|
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Deletes an installation from a Notification Hub.
|
|
6
6
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/deleteInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"deleteInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/deleteInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAenC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
/**
|
|
4
4
|
* Retrieves an Azure Storage container URL. The container has feedback data for the notification hub.
|
|
5
5
|
* The caller can then use the Azure Storage Services SDK to retrieve the contents of the container.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFeedbackContainerUrl.d.ts","sourceRoot":"","sources":["../../../src/api/getFeedbackContainerUrl.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getFeedbackContainerUrl.d.ts","sourceRoot":"","sources":["../../../src/api/getFeedbackContainerUrl.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAiBjB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Installation } from "../models/installation.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Gets an Azure Notification Hub installation by the installation ID.
|
|
6
6
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/getInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/getInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,YAAY,CAAC,CAiBvB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationHubJob } from "../models/notificationHubJob.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a Notification Hub Job by the ID.
|
|
6
6
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/api/getNotificationHubJob.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/api/getNotificationHubJob.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM3D;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,6BAA6B,EACtC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CAiB7B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationDetails } from "../models/notificationDetails.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Retrieves the results of a send operation. This can retrieve intermediate results if the send is being processed
|
|
6
6
|
* or final results if the Send* has completed. This API can only be called for Standard SKU and above.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getNotificationOutcomeDetails.d.ts","sourceRoot":"","sources":["../../../src/api/getNotificationOutcomeDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getNotificationOutcomeDetails.d.ts","sourceRoot":"","sources":["../../../src/api/getNotificationOutcomeDetails.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM3D;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,mBAAmB,CAAC,CAe9B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
import { RegistrationDescription } from "../models/registration.js";
|
|
4
4
|
/**
|
|
5
5
|
* Gets a registration by the given registration ID.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/getRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"getRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/getRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAMpE;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAiBlC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { HttpHeaders, HttpMethods, PipelineRequest, PipelineResponse } from "@azure/core-rest-pipeline";
|
|
3
3
|
import { NotificationHubsMessageResponse, NotificationHubsResponse } from "../../models/notificationDetails.js";
|
|
4
4
|
import { NotificationHubsClientContext } from "../index.js";
|
|
5
|
-
import { OperationOptions } from "@azure/core-client";
|
|
5
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
6
6
|
export declare function createRequest(endpoint: URL, method: HttpMethods, headers: HttpHeaders, options: OperationOptions): PipelineRequest;
|
|
7
7
|
/**
|
|
8
8
|
* Parses the HTTP response and creates a NotificationHubsResponse with header information from the operation.
|
|
@@ -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,
|
|
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,yBAAyB,CAAC;AAK3D,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,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "../index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
import { RegistrationDescription } from "../../models/registration.js";
|
|
4
4
|
/**
|
|
5
5
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_createOrUpdateRegistrationDescription.d.ts","sourceRoot":"","sources":["../../../../src/api/internal/_createOrUpdateRegistrationDescription.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"_createOrUpdateRegistrationDescription.d.ts","sourceRoot":"","sources":["../../../../src/api/internal/_createOrUpdateRegistrationDescription.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE;;GAEG;AACH,wBAAsB,qCAAqC,CACzD,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,uBAAuB,EACrC,aAAa,EAAE,QAAQ,GAAG,gBAAgB,GAAG,QAAQ,EACrD,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,uBAAuB,CAAC,CA4BlC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationHubJob } from "../models/notificationHubJob.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Gets all Notification Hub Jobs for this Notification Hub.
|
|
6
6
|
* @param context - The Notification Hubs client.xs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listNotificationHubJobs.d.ts","sourceRoot":"","sources":["../../../src/api/listNotificationHubJobs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"listNotificationHubJobs.d.ts","sourceRoot":"","sources":["../../../src/api/listNotificationHubJobs.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAM3D;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAiB/B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NotificationHubJob } from "../models/notificationHubJob.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
|
-
import { OperationOptions } from "@azure/core-client";
|
|
3
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
4
4
|
/**
|
|
5
5
|
* Submits a Notification Hub Job.
|
|
6
6
|
* Note: this is available to Standard SKU namespace and above.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"submitNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/api/submitNotificationHubJob.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"submitNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/api/submitNotificationHubJob.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,6BAA6B,EACtC,GAAG,EAAE,kBAAkB,EACvB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CAkB7B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { JsonPatch } from "../models/installation.js";
|
|
2
2
|
import { NotificationHubsClientContext } from "./index.js";
|
|
3
3
|
import { NotificationHubsResponse } from "../models/notificationDetails.js";
|
|
4
|
-
import { OperationOptions } from "@azure/core-client";
|
|
4
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
5
5
|
/**
|
|
6
6
|
* Updates an installation using the JSON-Patch standard in RFC6902.
|
|
7
7
|
* @param context - The Notification Hubs client.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/updateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"updateInstallation.d.ts","sourceRoot":"","sources":["../../../src/api/updateInstallation.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAK3D;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,mBAAmB,EAAE,SAAS,EAAE,EAChC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAkBnC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NotificationHubsClientContext } from "./index.js";
|
|
2
|
-
import { OperationOptions } from "@azure/core-client";
|
|
2
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
import { RegistrationDescription } from "../models/registration.js";
|
|
4
4
|
/**
|
|
5
5
|
* Updates an existing registration.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/updateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"updateRegistration.d.ts","sourceRoot":"","sources":["../../../src/api/updateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOpE;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,uBAAuB,EACrC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,uBAAuB,CAAC,CAWlC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SasTokenCredential } from "./sasTokenCredential.js";
|
|
2
2
|
/**
|
|
3
3
|
* Defines an object with possible properties defined in T.
|
|
4
4
|
*/
|
|
@@ -27,12 +27,12 @@ export interface NotificationHubsConnectionStringProperties {
|
|
|
27
27
|
sharedAccessKeyName: string;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* Creates a
|
|
30
|
+
* Creates a SasTokenCredential from a shared access key and shared access key name.
|
|
31
31
|
* @param sharedAccessKey - The shared access key value.
|
|
32
32
|
* @param sharedAccessKeyName - The shared access key name.
|
|
33
|
-
* @returns A
|
|
33
|
+
* @returns A SasTokenCredential with the given shared access token information.
|
|
34
34
|
*/
|
|
35
|
-
export declare function
|
|
35
|
+
export declare function createTokenCredentialFromConnection(sharedAccessKey: string, sharedAccessKeyName: string): SasTokenCredential;
|
|
36
36
|
/**
|
|
37
37
|
* Parses given connection string into the different properties applicable to Azure Service Bus.
|
|
38
38
|
* The properties are useful to then construct a ServiceBusClient.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectionStringUtils.d.ts","sourceRoot":"","sources":["../../../src/auth/connectionStringUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"connectionStringUtils.d.ts","sourceRoot":"","sources":["../../../src/auth/connectionStringUtils.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC;AAgDvD;;GAEG;AACH,MAAM,WAAW,0CAA0C;IACzD;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,mCAAmC,CACjD,eAAe,EAAE,MAAM,EACvB,mBAAmB,EAAE,MAAM,GAC1B,kBAAkB,CAEpB;AAED;;;;;GAKG;AACH,wBAAgB,qCAAqC,CACnD,gBAAgB,EAAE,MAAM,GACvB,0CAA0C,CAyB5C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AccessToken, TokenCredential } from "@azure/core-auth";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a named key credential.
|
|
4
|
+
*/
|
|
5
|
+
export interface NamedKeyCredential {
|
|
6
|
+
/**
|
|
7
|
+
* The Shared Access Signature key name.
|
|
8
|
+
*/
|
|
9
|
+
sharedAccessKeyName: string;
|
|
10
|
+
/**
|
|
11
|
+
* The Shared Access Signature key value.
|
|
12
|
+
*/
|
|
13
|
+
sharedAccessKey: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A TokenProvider that generates a Sas token:
|
|
17
|
+
* `SharedAccessSignature sr=<resource>&sig=<signature>&se=<expiry>&skn=<keyname>`
|
|
18
|
+
*
|
|
19
|
+
* @internal
|
|
20
|
+
*/
|
|
21
|
+
export declare class SasTokenCredential implements TokenCredential {
|
|
22
|
+
/**
|
|
23
|
+
* The SASCredential containing the key name and secret key value.
|
|
24
|
+
*/
|
|
25
|
+
private _credential;
|
|
26
|
+
/**
|
|
27
|
+
* Initializes a new instance of SasTokenProvider
|
|
28
|
+
* @param credential - The source `NamedKeyCredential` or `SASCredential`.
|
|
29
|
+
*/
|
|
30
|
+
constructor(credential: NamedKeyCredential);
|
|
31
|
+
/**
|
|
32
|
+
* Gets the sas token for the specified audience
|
|
33
|
+
* @param scopes - The scope for which the token is desired.
|
|
34
|
+
*/
|
|
35
|
+
getToken(scopes: string | string[]): Promise<AccessToken | null>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=sasTokenCredential.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sasTokenCredential.d.ts","sourceRoot":"","sources":["../../../src/auth/sasTokenCredential.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAGhE;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,mBAAmB,EAAE,MAAM,CAAC;IAE5B;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;CACzB;AAED;;;;;GAKG;AACH,qBAAa,kBAAmB,YAAW,eAAe;IACxD;;OAEG;IACH,OAAO,CAAC,WAAW,CAAqB;IAExC;;;OAGG;gBACS,UAAU,EAAE,kBAAkB;IAI1C;;;OAGG;IACG,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC;CASvE"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ClientOptions, OperationOptions } from "@azure-rest/core-client";
|
|
2
2
|
import { BrowserPushChannel } from "./installation.js";
|
|
3
3
|
/**
|
|
4
4
|
* Describes the options that can be provided while creating the NotificationHubsClientContext.
|
|
5
5
|
*/
|
|
6
|
-
export interface NotificationHubsClientOptions extends
|
|
6
|
+
export interface NotificationHubsClientOptions extends ClientOptions {
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* Options for polled operations including the polling interval cycle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/models/options.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAEvD;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,aAAa;CAAG;AAEvE;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,2BAA4B,SAAQ,gBAAgB;IACnE;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,kBAAkB,GAAG,MAAM,EAAE,CAAC;CACtD;AAED;;GAEG;AACH,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,wBAAyB,SAAQ,6BAA6B;IAC7E;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -4,7 +4,7 @@ import { NotificationDetails, NotificationHubsMessageResponse, NotificationHubsR
|
|
|
4
4
|
import { NotificationHubJob, NotificationHubJobPoller } from "./models/notificationHubJob.js";
|
|
5
5
|
import { RegistrationDescription, RegistrationChannel } from "./models/registration.js";
|
|
6
6
|
import { Notification } from "./models/notification.js";
|
|
7
|
-
import { OperationOptions } from "@azure/core-client";
|
|
7
|
+
import { OperationOptions } from "@azure-rest/core-client";
|
|
8
8
|
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
9
|
/**
|
|
10
10
|
* This represents a client for Azure Notification Hubs to manage installations and send
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notificationHubsClient.d.ts","sourceRoot":"","sources":["../../src/notificationHubsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"notificationHubsClient.d.ts","sourceRoot":"","sources":["../../src/notificationHubsClient.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,sBAAsB,EACtB,6BAA6B,EAC7B,2BAA2B,EAC3B,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,EACL,mBAAmB,EACnB,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE9F,OAAO,EAAE,uBAAuB,EAA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