@azure/notification-hubs 2.0.1-alpha.20241112.1 → 2.0.1-alpha.20241113.1

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.
@@ -1,7 +1,6 @@
1
1
  import type { ClientOptions } from '@azure-rest/core-client';
2
2
  import type { OperationOptions } from '@azure-rest/core-client';
3
3
  import type { OperationState } from '@azure/core-lro';
4
- import type { PagedAsyncIterableIterator } from '@azure/core-paging';
5
4
  import type { PollerLike } from '@azure/core-lro';
6
5
 
7
6
  /**
@@ -2212,194 +2211,6 @@ export declare type NotificationHubJobType =
2212
2211
  */
2213
2212
  | "ImportUpsertRegistrations";
2214
2213
 
2215
- /**
2216
- * This represents a client for Azure Notification Hubs to manage installations and send
2217
- * messages to devices.
2218
- */
2219
- export declare class NotificationHubsClient {
2220
- private _client;
2221
- /**
2222
- * Creates a new instance of the NotificationClient with a connection string, hub name and options.
2223
- * @param connectionString - The Notification Hub Access Policy connection string.
2224
- * @param hubName - The name of the Azure Notification Hub.
2225
- * @param options - Options for configuring the Azure Notification Hubs client.
2226
- */
2227
- constructor(connectionString: string, hubName: string, options?: NotificationHubsClientOptions);
2228
- /**
2229
- * Creates or overwrites an installation to a Notification Hub.
2230
- * @param installation - The installation to create or overwrite.
2231
- * @param options - Configuration options for the create or update installation operation.
2232
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2233
- */
2234
- createOrUpdateInstallation(installation: Installation, options?: OperationOptions): Promise<NotificationHubsResponse>;
2235
- /**
2236
- * Deletes an installation from a Notification Hub.
2237
- * @param installationId - The installation ID of the installation to delete.
2238
- * @param options - Configuration options for the installation delete operation.
2239
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2240
- */
2241
- deleteInstallation(installationId: string, options?: OperationOptions): Promise<NotificationHubsResponse>;
2242
- /**
2243
- * Gets an Azure Notification Hub installation by the installation ID.
2244
- * @param installationId - The ID of the installation to get.
2245
- * @param options - Configuration options for the get installation operation.
2246
- * @returns The installation that matches the installation ID.
2247
- */
2248
- getInstallation(installationId: string, options?: OperationOptions): Promise<Installation>;
2249
- /**
2250
- * Updates an installation using the JSON-Patch standard in RFC6902.
2251
- * @param installationId - The ID of the installation to update.
2252
- * @param patches - An array of patches following the JSON-Patch standard.
2253
- * @param options - Configuration options for the patch installation operation.
2254
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2255
- */
2256
- updateInstallation(installationId: string, patches: JsonPatch[], options?: OperationOptions): Promise<NotificationHubsResponse>;
2257
- /**
2258
- * Creates a new registration ID.
2259
- * @param options - The options for creating a new registration ID.
2260
- * @returns The newly created registration ID.
2261
- */
2262
- createRegistrationId(options?: OperationOptions): Promise<string>;
2263
- /**
2264
- * Creates a new registration. This method generates a registration ID,
2265
- * which you can subsequently use to retrieve, update, and delete this registration.
2266
- * @param registration - The registration to create.
2267
- * @param options - Options for creating a new registration.
2268
- * @returns The newly created registration description.
2269
- */
2270
- createRegistration(registration: RegistrationDescription, options?: OperationOptions): Promise<RegistrationDescription>;
2271
- /**
2272
- * Creates or updates a registration.
2273
- * @param registration - The registration to create or update.
2274
- * @param options - The operation options.
2275
- * @returns The created or updated registration description.
2276
- */
2277
- createOrUpdateRegistration(registration: RegistrationDescription, options?: OperationOptions): Promise<RegistrationDescription>;
2278
- /**
2279
- * Updates an existing registration.
2280
- * @param registration - The registration to update.
2281
- * @param options - The operation options.
2282
- * @returns The updated registration description.
2283
- */
2284
- updateRegistration(registration: RegistrationDescription, options?: OperationOptions): Promise<RegistrationDescription>;
2285
- /**
2286
- * Deletes a registration with the given registration ID.
2287
- * @param context - The Notification Hubs client.
2288
- * @param registrationId - The registration ID of the registration to delete.
2289
- * @param options - The options for delete operations including the ETag
2290
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2291
- */
2292
- deleteRegistration(registrationId: string, options?: EntityOperationOptions): Promise<NotificationHubsResponse>;
2293
- /**
2294
- * Gets a registration by the given registration ID.
2295
- * @param registrationId - The ID of the registration to get.
2296
- * @param options - The options for getting a registration by ID.
2297
- * @returns A RegistrationDescription that has the given registration ID.
2298
- */
2299
- getRegistration(registrationId: string, options?: OperationOptions): Promise<RegistrationDescription>;
2300
- /**
2301
- * Gets all registrations for the notification hub with the given query options.
2302
- * @param options - The options for querying the registrations such as $top.
2303
- * @returns A paged async iterable containing all of the registrations for the notification hub.
2304
- */
2305
- listRegistrations(options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
2306
- /**
2307
- * Gets all registrations for the notification hub with the given device information and options.
2308
- * @param channel - The registration channel information to query per PNS type.
2309
- * @param options - The options for querying the registrations such as $top.
2310
- * @returns A paged async iterable containing all of the registrations for the notification hub.
2311
- */
2312
- listRegistrationsByChannel(channel: RegistrationChannel, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
2313
- /**
2314
- * Lists all registrations with the matching tag.
2315
- * @param tag - The tag to query for matching registrations.
2316
- * @param options - The query options such as $top.
2317
- * @returns A paged async iterable containing the matching registrations for the notification hub.
2318
- */
2319
- listRegistrationsByTag(tag: string, options?: RegistrationQueryLimitOptions): PagedAsyncIterableIterator<RegistrationDescription>;
2320
- /**
2321
- * Sends push notifications to devices all devices.
2322
- * @param notification - The notification to send to all devices.
2323
- * @param options - Options for the notification including whether to enable test send.
2324
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2325
- */
2326
- sendBroadcastNotification(notification: Notification, options?: BroadcastSendNotificationOptions): Promise<NotificationHubsMessageResponse>;
2327
- /**
2328
- * Sends push notifications to devices that match the given tags or tag expression.
2329
- * @param notification - The notification to send to the matching devices.
2330
- * @param options - Options for the notification including tags, device handles and whether to enable test send.
2331
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2332
- */
2333
- sendNotification(notification: Notification, options: DirectSendNotificationOptions | SendNotificationOptions): Promise<NotificationHubsMessageResponse>;
2334
- /**
2335
- * Schedules a push notification to all devices at the specified time.
2336
- * NOTE: This is only available in Standard SKU Azure Notification Hubs.
2337
- * @param scheduledTime - The Date to send the push notification.
2338
- * @param notification - The notification to send to the matching devices.
2339
- * @param options - The operation options.
2340
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2341
- */
2342
- scheduleBroadcastNotification(scheduledTime: Date, notification: Notification, options?: OperationOptions): Promise<NotificationHubsMessageResponse>;
2343
- /**
2344
- * Schedules a push notification to devices that match the given tags or tag expression at the specified time.
2345
- * NOTE: This is only available in Standard SKU Azure Notification Hubs.
2346
- * @param scheduledTime - The Date to send the push notification.
2347
- * @param notification - The notification to send to the matching devices.
2348
- * @param options - Options which include tags used to target the device for push notifications in either an array or tag expression.
2349
- * @returns A NotificationHubResponse with the tracking ID, correlation ID and location.
2350
- */
2351
- scheduleNotification(scheduledTime: Date, notification: Notification, options: ScheduleNotificationOptions): Promise<NotificationHubsMessageResponse>;
2352
- /**
2353
- * Cancels the scheduled notification with the given notification ID.
2354
- * @param notificationId - The notification ID from the scheduled notification.
2355
- * @param options - The operation options.
2356
- * @returns A notification hub response with correlation ID and tracking ID.
2357
- */
2358
- cancelScheduledNotification(notificationId: string, options?: OperationOptions): Promise<NotificationHubsResponse>;
2359
- /**
2360
- * Retrieves an Azure Storage container URL. The container has feedback data for the notification hub.
2361
- * The caller can then use the Azure Storage Services SDK to retrieve the contents of the container.
2362
- * @param options - The options for getting the push notification feedback container URL.
2363
- * @returns The URL of the Azure Storage Container containing the feedback data.
2364
- */
2365
- getFeedbackContainerUrl(options?: OperationOptions): Promise<string>;
2366
- /**
2367
- * Retrieves the results of a send operation. This can retrieve intermediate results if the send is being processed
2368
- * or final results if the Send* has completed. This API can only be called for Standard SKU and above.
2369
- * @param notificationId - The notification ID returned from the send operation.
2370
- * @param options - The operation options.
2371
- * @returns The results of the send operation.
2372
- */
2373
- getNotificationOutcomeDetails(notificationId: string, options?: OperationOptions): Promise<NotificationDetails>;
2374
- /**
2375
- * Gets a Notification Hub Job by the ID.
2376
- * @param jobId - The Notification Hub Job ID.
2377
- * @param options - The operation options.
2378
- * @returns The Notification Hub Job with the matching ID.
2379
- */
2380
- getNotificationHubJob(jobId: string, options?: OperationOptions): Promise<NotificationHubJob>;
2381
- /**
2382
- * Submits a Notification Hub job and creates a poller to poll for results.
2383
- * @param notificationHubJob - The Notification Hub import/export job to start.
2384
- * @param options - The operation options.
2385
- * @returns A poller which can be called to poll until completion of the job.
2386
- */
2387
- beginSubmitNotificationHubJob(notificationHubJob: NotificationHubJob, options?: PolledOperationOptions): Promise<NotificationHubJobPoller>;
2388
- /**
2389
- * Submits a Notification Hub Job. Note this is available to Standard SKU namespace and above.
2390
- * @param job - The notification hub job to submit.
2391
- * @param options - The operation options.
2392
- * @returns The notification hub job details including job ID and status.
2393
- */
2394
- submitNotificationHubJob(job: NotificationHubJob, options?: OperationOptions): Promise<NotificationHubJob>;
2395
- /**
2396
- * Gets all Notification Hub Jobs for this Notification Hub.
2397
- * @param options - The operation options.
2398
- * @returns An array of all Notification Hub Jobs for this Notification Hub.
2399
- */
2400
- listNotificationHubJobs(options?: OperationOptions): Promise<NotificationHubJob[]>;
2401
- }
2402
-
2403
2214
  /**
2404
2215
  * Describes the options that can be provided while creating the NotificationHubsClientContext.
2405
2216
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/notification-hubs",
3
- "version": "2.0.1-alpha.20241112.1",
3
+ "version": "2.0.1-alpha.20241113.1",
4
4
  "description": "Azure Notification Hubs SDK for JavaScript",
5
5
  "sdk-type": "client",
6
6
  "main": "./dist/commonjs/index.js",