@azure/notification-hubs 1.0.0-beta.6 → 1.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +86 -78
- package/dist/index.cjs +321 -369
- package/dist/index.cjs.map +1 -1
- package/dist-esm/src/{client → api}/beginSubmitNotificationHubJob.js +0 -0
- package/dist-esm/src/api/beginSubmitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/cancelScheduledNotification.js +0 -0
- package/dist-esm/src/api/cancelScheduledNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/createOrUpdateInstallation.js +0 -0
- package/dist-esm/src/api/createOrUpdateInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/createOrUpdateRegistration.js +0 -0
- package/dist-esm/src/api/createOrUpdateRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/createRegistration.js +0 -0
- package/dist-esm/src/api/createRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/createRegistrationId.js +8 -0
- package/dist-esm/src/api/createRegistrationId.js.map +1 -0
- package/dist-esm/src/{client → api}/deleteInstallation.js +0 -0
- package/dist-esm/src/api/deleteInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/deleteRegistration.js +0 -0
- package/dist-esm/src/api/deleteRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/getFeedbackContainerUrl.js +0 -0
- package/dist-esm/src/api/getFeedbackContainerUrl.js.map +1 -0
- package/dist-esm/src/{client → api}/getInstallation.js +0 -0
- package/dist-esm/src/api/getInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/getNotificationHubJob.js +0 -0
- package/dist-esm/src/api/getNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/getNotificationOutcomeDetails.js +0 -0
- package/dist-esm/src/api/getNotificationOutcomeDetails.js.map +1 -0
- package/dist-esm/src/{client → api}/getRegistration.js +0 -0
- package/dist-esm/src/api/getRegistration.js.map +1 -0
- package/dist-esm/src/{client → api}/index.js +22 -0
- package/dist-esm/src/api/index.js.map +1 -0
- package/dist-esm/src/{client → api}/internal/_client.js +1 -1
- package/dist-esm/src/api/internal/_client.js.map +1 -0
- package/dist-esm/src/{client → api}/internal/_createOrUpdateRegistrationDescription.js +0 -0
- package/dist-esm/src/api/internal/_createOrUpdateRegistrationDescription.js.map +1 -0
- package/dist-esm/src/{client/listRegistrations.js → api/internal/_listRegistrations.js} +6 -38
- package/dist-esm/src/api/internal/_listRegistrations.js.map +1 -0
- package/dist-esm/src/{client → api}/listNotificationHubJobs.js +0 -0
- package/dist-esm/src/api/listNotificationHubJobs.js.map +1 -0
- package/dist-esm/src/api/listRegistrations.js +35 -0
- package/dist-esm/src/api/listRegistrations.js.map +1 -0
- package/dist-esm/src/api/listRegistrationsByChannel.js +58 -0
- package/dist-esm/src/api/listRegistrationsByChannel.js.map +1 -0
- package/dist-esm/src/{client → api}/listRegistrationsByTag.js +0 -0
- package/dist-esm/src/api/listRegistrationsByTag.js.map +1 -0
- package/dist-esm/src/{client → api}/scheduleNotification.js +2 -3
- package/dist-esm/src/api/scheduleNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/sendNotification.js +3 -3
- package/dist-esm/src/api/sendNotification.js.map +1 -0
- package/dist-esm/src/{client → api}/submitNotificationHubJob.js +0 -0
- package/dist-esm/src/api/submitNotificationHubJob.js.map +1 -0
- package/dist-esm/src/{client → api}/updateInstallation.js +0 -0
- package/dist-esm/src/api/updateInstallation.js.map +1 -0
- package/dist-esm/src/{client → api}/updateRegistration.js +0 -0
- package/dist-esm/src/api/updateRegistration.js.map +1 -0
- package/dist-esm/src/index.js +3 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.js +12 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/installation.js.map +1 -1
- package/dist-esm/src/models/notification.js.map +1 -1
- package/dist-esm/src/models/notificationBodyBuilder.js +48 -0
- package/dist-esm/src/models/notificationBodyBuilder.js.map +1 -0
- package/dist-esm/src/models/notificationDetails.js.map +1 -1
- package/dist-esm/src/models/options.js.map +1 -1
- package/dist-esm/src/models/registration.js +12 -12
- package/dist-esm/src/models/registration.js.map +1 -1
- package/dist-esm/src/models/tagExpressionBuilder.js +11 -0
- package/dist-esm/src/models/tagExpressionBuilder.js.map +1 -0
- package/dist-esm/src/notificationHubsClient.js +34 -24
- package/dist-esm/src/notificationHubsClient.js.map +1 -1
- package/dist-esm/src/serializers/notificationDetailsSerializer.js +1 -0
- package/dist-esm/src/serializers/notificationDetailsSerializer.js.map +1 -1
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js +2 -2
- package/dist-esm/src/serializers/notificationOutcomeSerializer.js.map +1 -1
- package/dist-esm/src/serializers/registrationSerializer.js +17 -16
- package/dist-esm/src/serializers/registrationSerializer.js.map +1 -1
- package/dist-esm/src/utils/constants.js +1 -1
- package/dist-esm/src/utils/constants.js.map +1 -1
- package/dist-esm/src/utils/notificationUtils.js +0 -6
- package/dist-esm/src/utils/notificationUtils.js.map +1 -1
- package/package.json +23 -19
- package/types/3.1/notification-hubs.d.ts +420 -249
- package/types/latest/notification-hubs.d.ts +448 -254
- package/types/latest/tsdoc-metadata.json +1 -1
- package/types/src/{client → api}/beginSubmitNotificationHubJob.d.ts +0 -0
- package/types/src/api/beginSubmitNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/cancelScheduledNotification.d.ts +0 -0
- package/types/src/api/cancelScheduledNotification.d.ts.map +1 -0
- package/types/src/{client → api}/createOrUpdateInstallation.d.ts +0 -0
- package/types/src/api/createOrUpdateInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/createOrUpdateRegistration.d.ts +0 -0
- package/types/src/api/createOrUpdateRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/createRegistration.d.ts +0 -0
- package/types/src/api/createRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/createRegistrationId.d.ts +0 -0
- package/types/src/api/createRegistrationId.d.ts.map +1 -0
- package/types/src/{client → api}/deleteInstallation.d.ts +0 -0
- package/types/src/api/deleteInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/deleteRegistration.d.ts +0 -0
- package/types/src/api/deleteRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/getFeedbackContainerUrl.d.ts +0 -0
- package/types/src/api/getFeedbackContainerUrl.d.ts.map +1 -0
- package/types/src/{client → api}/getInstallation.d.ts +0 -0
- package/types/src/api/getInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/getNotificationHubJob.d.ts +0 -0
- package/types/src/api/getNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/getNotificationOutcomeDetails.d.ts +0 -0
- package/types/src/api/getNotificationOutcomeDetails.d.ts.map +1 -0
- package/types/src/{client → api}/getRegistration.d.ts +0 -0
- package/types/src/api/getRegistration.d.ts.map +1 -0
- package/types/src/{client → api}/index.d.ts +22 -0
- package/types/src/api/index.d.ts.map +1 -0
- package/types/src/{client → api}/internal/_client.d.ts +0 -0
- package/types/src/api/internal/_client.d.ts.map +1 -0
- package/types/src/{client → api}/internal/_createOrUpdateRegistrationDescription.d.ts +0 -0
- package/types/src/api/internal/_createOrUpdateRegistrationDescription.d.ts.map +1 -0
- package/types/src/api/internal/_listRegistrations.d.ts +6 -0
- package/types/src/api/internal/_listRegistrations.d.ts.map +1 -0
- package/types/src/{client → api}/listNotificationHubJobs.d.ts +0 -0
- package/types/src/api/listNotificationHubJobs.d.ts.map +1 -0
- package/types/src/{client → api}/listRegistrations.d.ts +3 -3
- package/types/src/api/listRegistrations.d.ts.map +1 -0
- package/types/src/api/listRegistrationsByChannel.d.ts +13 -0
- package/types/src/api/listRegistrationsByChannel.d.ts.map +1 -0
- package/types/src/{client → api}/listRegistrationsByTag.d.ts +0 -0
- package/types/src/api/listRegistrationsByTag.d.ts.map +1 -0
- package/types/src/{client → api}/scheduleNotification.d.ts +0 -0
- package/types/src/api/scheduleNotification.d.ts.map +1 -0
- package/types/src/{client → api}/sendNotification.d.ts +0 -0
- package/types/src/api/sendNotification.d.ts.map +1 -0
- package/types/src/{client → api}/submitNotificationHubJob.d.ts +0 -0
- package/types/src/api/submitNotificationHubJob.d.ts.map +1 -0
- package/types/src/{client → api}/updateInstallation.d.ts +0 -0
- package/types/src/api/updateInstallation.d.ts.map +1 -0
- package/types/src/{client → api}/updateRegistration.d.ts +0 -0
- package/types/src/api/updateRegistration.d.ts.map +1 -0
- package/types/src/index.d.ts +3 -2
- package/types/src/index.d.ts.map +1 -1
- package/types/src/models/index.d.ts +10 -0
- package/types/src/models/index.d.ts.map +1 -0
- package/types/src/models/installation.d.ts +12 -11
- package/types/src/models/installation.d.ts.map +1 -1
- package/types/src/models/notification.d.ts +10 -18
- package/types/src/models/notification.d.ts.map +1 -1
- package/types/src/models/{notificationBuilder.d.ts → notificationBodyBuilder.d.ts} +62 -64
- package/types/src/models/notificationBodyBuilder.d.ts.map +1 -0
- package/types/src/models/notificationDetails.d.ts +9 -9
- package/types/src/models/notificationDetails.d.ts.map +1 -1
- package/types/src/models/options.d.ts +4 -4
- package/types/src/models/options.d.ts.map +1 -1
- package/types/src/models/registration.d.ts +235 -69
- package/types/src/models/registration.d.ts.map +1 -1
- package/types/src/models/tagExpressionBuilder.d.ts +7 -0
- package/types/src/models/tagExpressionBuilder.d.ts.map +1 -0
- package/types/src/notificationHubsClient.d.ts +12 -5
- package/types/src/notificationHubsClient.d.ts.map +1 -1
- package/types/src/serializers/notificationDetailsSerializer.d.ts.map +1 -1
- package/types/src/serializers/registrationSerializer.d.ts +14 -14
- package/types/src/serializers/registrationSerializer.d.ts.map +1 -1
- package/types/src/utils/notificationUtils.d.ts +0 -4
- package/types/src/utils/notificationUtils.d.ts.map +1 -1
- package/dist-esm/src/client/beginSubmitNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/cancelScheduledNotification.js.map +0 -1
- package/dist-esm/src/client/createOrUpdateInstallation.js.map +0 -1
- package/dist-esm/src/client/createOrUpdateRegistration.js.map +0 -1
- package/dist-esm/src/client/createRegistration.js.map +0 -1
- package/dist-esm/src/client/createRegistrationId.js.map +0 -1
- package/dist-esm/src/client/deleteInstallation.js.map +0 -1
- package/dist-esm/src/client/deleteRegistration.js.map +0 -1
- package/dist-esm/src/client/getFeedbackContainerUrl.js.map +0 -1
- package/dist-esm/src/client/getInstallation.js.map +0 -1
- package/dist-esm/src/client/getNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/getNotificationOutcomeDetails.js.map +0 -1
- package/dist-esm/src/client/getRegistration.js.map +0 -1
- package/dist-esm/src/client/index.js.map +0 -1
- package/dist-esm/src/client/internal/_client.js.map +0 -1
- package/dist-esm/src/client/internal/_createOrUpdateRegistrationDescription.js.map +0 -1
- package/dist-esm/src/client/listNotificationHubJobs.js.map +0 -1
- package/dist-esm/src/client/listRegistrations.js.map +0 -1
- package/dist-esm/src/client/listRegistrationsByTag.js.map +0 -1
- package/dist-esm/src/client/scheduleNotification.js.map +0 -1
- package/dist-esm/src/client/sendNotification.js.map +0 -1
- package/dist-esm/src/client/submitNotificationHubJob.js.map +0 -1
- package/dist-esm/src/client/updateInstallation.js.map +0 -1
- package/dist-esm/src/client/updateRegistration.js.map +0 -1
- package/dist-esm/src/models/notificationBuilder.js +0 -169
- package/dist-esm/src/models/notificationBuilder.js.map +0 -1
- package/dist-esm/src/utils/retryPolicy.js +0 -144
- package/dist-esm/src/utils/retryPolicy.js.map +0 -1
- package/types/src/client/beginSubmitNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/cancelScheduledNotification.d.ts.map +0 -1
- package/types/src/client/createOrUpdateInstallation.d.ts.map +0 -1
- package/types/src/client/createOrUpdateRegistration.d.ts.map +0 -1
- package/types/src/client/createRegistration.d.ts.map +0 -1
- package/types/src/client/createRegistrationId.d.ts.map +0 -1
- package/types/src/client/deleteInstallation.d.ts.map +0 -1
- package/types/src/client/deleteRegistration.d.ts.map +0 -1
- package/types/src/client/getFeedbackContainerUrl.d.ts.map +0 -1
- package/types/src/client/getInstallation.d.ts.map +0 -1
- package/types/src/client/getNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/getNotificationOutcomeDetails.d.ts.map +0 -1
- package/types/src/client/getRegistration.d.ts.map +0 -1
- package/types/src/client/index.d.ts.map +0 -1
- package/types/src/client/internal/_client.d.ts.map +0 -1
- package/types/src/client/internal/_createOrUpdateRegistrationDescription.d.ts.map +0 -1
- package/types/src/client/listNotificationHubJobs.d.ts.map +0 -1
- package/types/src/client/listRegistrations.d.ts.map +0 -1
- package/types/src/client/listRegistrationsByTag.d.ts.map +0 -1
- package/types/src/client/scheduleNotification.d.ts.map +0 -1
- package/types/src/client/sendNotification.d.ts.map +0 -1
- package/types/src/client/submitNotificationHubJob.d.ts.map +0 -1
- package/types/src/client/updateInstallation.d.ts.map +0 -1
- package/types/src/client/updateRegistration.d.ts.map +0 -1
- package/types/src/models/notificationBuilder.d.ts.map +0 -1
- package/types/src/utils/retryPolicy.d.ts +0 -72
- package/types/src/utils/retryPolicy.d.ts.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationBuilder.js","sourceRoot":"","sources":["../../../src/models/notificationBuilder.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAML,qBAAqB,EACrB,uBAAuB,EACvB,uBAAuB,EACvB,2BAA2B,EAC3B,8BAA8B,GAC/B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAgK/C,SAAS,sBAAsB,CAC7B,WAAiC;IAEjC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;QAC3B,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,QAAQ,CAAC,WAAW,CAAC,EAAE;QACzB,OAAO,WAAW,CAAC;KACpB;IAED,MAAM,KAAK,GAAwB;QACjC,KAAK,EAAE,WAAW,CAAC,KAAK;QACxB,QAAQ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AAE;KAClC,CAAC;IAEF,OAAO,8BAA8B,CAAC;QACpC,IAAI,EAAE,YAAY,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;KACjD,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n AdmNotification,\n AppleNotification,\n BaiduNotification,\n FcmLegacyNotification,\n WindowsNotification,\n createAdmNotification,\n createAppleNotification,\n createBaiduNotification,\n createFcmLegacyNotification,\n createWindowsBadgeNotification,\n} from \"./notification.js\";\nimport { isDefined, isString } from \"../utils/utils.js\";\nimport { stringifyXML } from \"@azure/core-xml\";\n\n/**\n * Represents what is in the APNs alert body.\n */\nexport interface AppleAlert {\n /**\n * The title of the notification. Apple Watch displays this string in the short look notification\n * interface. Specify a string that’s quickly understood by the user.\n */\n title?: string;\n\n /**\n * Additional information that explains the purpose of the notification.\n */\n subtitle?: string;\n\n /**\n * The content of the alert message.\n */\n body?: string;\n\n /**\n * The name of the launch image file to display. If the user chooses to launch your app,\n * the contents of the specified image or storyboard file are displayed instead of your app’s normal launch image.\n */\n launchImage?: string;\n\n /**\n * The key for a localized title string. Specify this key instead of the title key to retrieve\n * the title from your app’s Localizable.strings files. The value must contain the name of a key in your strings file.\n */\n titleLocKey?: string;\n\n /**\n * An array of strings containing replacement values for variables in your title string.\n * Each %\\@ character in the string specified by the title-loc-key is replaced by a value\n * from this array. The first item in the array replaces the first instance\n * of the %\\@ character in the string, the second item replaces the second instance, and so on.\n */\n titleLocArgs?: string[];\n\n /**\n * The key for a localized subtitle string. Use this key, instead of the subtitle key, to\n * retrieve the subtitle from your app’s Localizable.strings file.\n * The value must contain the name of a key in your strings file.\n */\n subtitleLocKey?: string;\n\n /**\n * An array of strings containing replacement values for variables in your title string.\n * Each %\\@ character in the string specified by subtitle-loc-key is replaced by a value\n * from this array. The first item in the array replaces the first instance of the\n * %\\@ character in the string, the second item replaces the second instance, and so on.\n */\n subtitleLocArgs?: string[];\n\n /**\n * The key for a localized message string. Use this key, instead of the body key, to\n * retrieve the message text from your app’s Localizable.strings file. The value must contain\n * the name of a key in your strings file.\n */\n locKey?: string;\n\n /**\n * An array of strings containing replacement values for variables in your message text.\n * Each %\\@ character in the string specified by loc-key is replaced by a value from\n * this array. The first item in the array replaces the first instance of the %\\@ character\n * in the string, the second item replaces the second instance, and so on.\n */\n locArgs?: string[];\n}\n\n/**\n * Represents an APNs critical sound\n */\nexport interface AppleCriticalSound {\n /**\n * The critical alert flag. Set to 1 to enable the critical alert.\n */\n critical: number;\n\n /**\n * The name of a sound file in your app’s main bundle or in the Library/Sounds folder\n * of your app’s container directory. Specify the string “default” to play the system sound.\n */\n name: string;\n\n /**\n * The volume for the critical alert’s sound. Set this to a value between 0 (silent) and 1 (full volume).\n */\n volume: number;\n}\n\n/**\n * Represents a native APNs message.\n */\nexport interface AppleNativeMessage extends Record<string, any> {\n /**\n * The information for displaying an alert.\n */\n alert?: string | AppleAlert;\n\n /**\n * The number to display in a badge on your app’s icon.\n */\n badge?: number;\n\n /**\n * The name of a sound file in your app’s main bundle or in the Library/Sounds\n * folder of your app’s container directory. Specify the string “default” to\n * play the system sound. Use this key for regular notifications.\n * For critical alerts, use the sound dictionary instead.\n */\n sound?: string | AppleCriticalSound;\n\n /**\n * An app-specific identifier for grouping related notifications.\n */\n threadId?: string;\n\n /**\n * The notification’s type.\n */\n category?: string;\n\n /**\n * The background notification flag. To perform a silent background update,\n * specify the value 1 and don’t include the alert, badge, or sound keys in your payload.\n */\n contentAvailable?: number;\n\n /**\n * The notification service app extension flag. If the value is 1, the system passes\n * the notification to your notification service app extension before delivery.\n */\n mutableContent?: number;\n\n /**\n * The identifier of the window brought forward.\n */\n targetContentId?: string;\n\n /**\n * The importance and delivery timing of a notification.\n */\n interruptionLevel?: \"passive\" | \"active\" | \"time-sensitive\" | \"critical\";\n\n /**\n * The relevance score, a number between 0 and 1, that the system uses to sort the\n * notifications from your app. The highest score gets featured in the notification summary.\n */\n relevanceScore?: number;\n\n /**\n * The criteria the system evaluates to determine if it displays the notification in the current Focus.\n */\n filterCriteria?: string;\n}\n\nfunction createAppleNativeAlert(\n nativeAlert?: string | AppleAlert\n): Record<string, any> | string | undefined {\n if (!isDefined(nativeAlert)) {\n return undefined;\n }\n\n if (isString(nativeAlert)) {\n return nativeAlert;\n }\n\n const alert: Record<string, any> = {\n title: nativeAlert.title,\n subtitle: nativeAlert.subtitle,\n body: nativeAlert.body,\n \"launch-image\": nativeAlert.launchImage,\n \"title-loc-key\": nativeAlert.titleLocKey,\n \"title-loc-args\": nativeAlert.titleLocArgs,\n \"subtitle-loc-key\": nativeAlert.subtitleLocKey,\n \"subtitle-loc-args\": nativeAlert.subtitleLocArgs,\n \"loc-key\": nativeAlert.locKey,\n \"loc-args\": nativeAlert.locArgs,\n };\n\n return alert;\n}\n\n/**\n * Creates an APNs native message to send to Notification Hubs.\n * @param nativeMessage - The Apple native message properties to set.\n * @param additionalProperties - Additional properties for Apple messages.\n * @returns An AppleNotification to send to Notification Hubs.\n */\nexport function buildAppleNativeMessage(\n nativeMessage: AppleNativeMessage,\n additionalProperties?: Record<string, any>\n): AppleNotification {\n const headers: Record<string, string> = {};\n\n const message: Record<string, any> = {\n aps: {\n alert: createAppleNativeAlert(nativeMessage.alert),\n sound: nativeMessage.sound,\n badge: nativeMessage.badge,\n \"thread-id\": nativeMessage.threadId,\n category: nativeMessage.category,\n \"content-available\": nativeMessage.contentAvailable,\n \"mutable-content\": nativeMessage.mutableContent,\n \"target-content-id\": nativeMessage.targetContentId,\n \"interruption-level\": nativeMessage.interruptionLevel,\n \"relevance-score\": nativeMessage.relevanceScore,\n \"filter-criteria\": nativeMessage.filterCriteria,\n },\n ...additionalProperties,\n };\n\n const apnsPriority = nativeMessage?.contentAvailable === 1 ? \"5\" : \"10\";\n headers[\"apns-priority\"] = apnsPriority;\n\n return createAppleNotification({\n body: JSON.stringify(message),\n headers: headers,\n });\n}\n\n/**\n * Represents the targets, options, and payload for HTTP JSON messages for the Firebase Legacy HTTP interface.\n */\nexport interface FirebaseLegacyNativeMessage {\n /**\n * The recipient of a message.\n */\n to?: string;\n\n /**\n * The recipient of a multicast message, a message sent to more than one registration token.\n */\n registrationIds?: string[];\n\n /**\n * A logical expression of conditions that determine the message target.\n */\n condition?: string;\n\n /**\n * Used to identify a group of messages.\n */\n collapseKey?: string;\n\n /**\n * The priority of the message.\n */\n priority?: \"normal\" | \"high\";\n\n /**\n * The background notification flag. To perform a silent background update,\n * specify the value 1 and don’t include the alert, badge, or sound keys in your payload.\n */\n contentAvailable?: boolean;\n\n /**\n * The notification service app extension flag. If the value is 1, the system passes\n * the notification to your notification service app extension before delivery.\n */\n mutableContent?: number;\n\n /**\n * Specifies how long (in seconds) the message should be kept in FCM storage if the device is offline\n */\n timeToLive?: number;\n\n /**\n * The package name of the application where the registration tokens must match in order to receive the message.\n */\n restrictedPackageName?: string;\n\n /**\n * When set to true, allows developers to test a request without actually sending a message.\n */\n dryRun?: boolean;\n\n /**\n * Custom key-value pairs of the message's payload.\n */\n data?: Record<string, any>;\n\n /**\n * The predefined, user-visible key-value pairs of the notification payload.\n */\n notification?:\n | FirebaseLegacyAppleNativePayload\n | FirebaseLegacyAndroidNativePayload\n | FirebaseLegacyWebNativePayload;\n}\n\n/**\n * Represents an APNs native payload for the Firebase Legacy HTTP interface.\n */\nexport interface FirebaseLegacyAppleNativePayload {\n /**\n * The notification's title.\n */\n title?: string;\n\n /**\n * The notification's body text.\n */\n body?: string;\n\n /**\n * The sound to play when the device receives the notification.\n */\n sound?: string;\n\n /**\n * The value of the badge on the home screen app icon.\n */\n badge?: string;\n\n /**\n * The action associated with a user click on the notification which corresponds to the APNs category.\n */\n clickAction?: string;\n\n /**\n * The notification's subtitle.\n */\n subtitle?: string;\n\n /**\n * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.\n */\n bodyLocKey?: string;\n\n /**\n * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.\n */\n bodyLocArgs?: string[];\n\n /**\n * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.\n */\n titleLocKey?: string;\n\n /**\n * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.\n */\n titleLocArgs?: string[];\n}\n\n/**\n * Represents an Android native payload for the Firebase Legacy HTTP interface.\n */\nexport interface FirebaseLegacyAndroidNativePayload {\n /**\n * The notification's title.\n */\n title?: string;\n\n /**\n * The notification's body text.\n */\n body?: string;\n\n /**\n * The notification's channel ID.\n */\n androidChannelId?: string;\n\n /**\n * The notification's icon.\n */\n icon?: string;\n\n /**\n * The sound to play when the device receives the notification.\n */\n sound?: string;\n\n /**\n * Identifier used to replace existing notifications in the notification drawer.\n */\n tag?: string;\n\n /**\n * The notification's icon color, expressed in #rrggbb format.\n */\n color?: string;\n\n /**\n * The action associated with a user click on the notification.\n */\n clickAction?: string;\n\n /**\n * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.\n */\n bodyLocKey?: string;\n\n /**\n * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.\n */\n bodyLocArgs?: string[];\n\n /**\n * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.\n */\n titleLocKey?: string;\n\n /**\n * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.\n */\n titleLocArgs?: string[];\n}\n\n/**\n * Represents an Web Push native payload for the Firebase Legacy HTTP interface.\n */\nexport interface FirebaseLegacyWebNativePayload {\n /**\n * The notification's title.\n */\n title?: string;\n\n /**\n * The notification's body text.\n */\n body?: string;\n\n /**\n * The URL to use for the notification's icon.\n */\n icon?: string;\n\n /**\n * The action associated with a user click on the notification.\n */\n clickAction?: string;\n}\n\nfunction buildFcmLegacyNativePayload(\n nativeNotification?:\n | FirebaseLegacyAppleNativePayload\n | FirebaseLegacyAndroidNativePayload\n | FirebaseLegacyWebNativePayload\n): Record<string, any> | undefined {\n if (!isDefined(nativeNotification)) {\n return undefined;\n }\n\n const androidMessage = nativeNotification as FirebaseLegacyAndroidNativePayload;\n const appleMessage = nativeNotification as FirebaseLegacyAppleNativePayload;\n\n const notification: Record<string, any> = {\n title: nativeNotification.title,\n body: nativeNotification.body,\n click_action: nativeNotification.clickAction,\n\n // Apple/Android fields\n sound: appleMessage.sound,\n badge: appleMessage.badge,\n subtitle: appleMessage.subtitle,\n body_loc_key: appleMessage.bodyLocKey,\n body_loc_args: appleMessage.bodyLocArgs,\n title_loc_key: appleMessage.bodyLocKey,\n title_loc_args: appleMessage.bodyLocArgs,\n\n // Android/Web fields\n android_channel_id: androidMessage.androidChannelId,\n icon: androidMessage.icon,\n tag: androidMessage.tag,\n color: androidMessage.color,\n };\n\n return notification;\n}\n\n/**\n * Creates a FcmLegacyNotification from a native Firebase payload.\n * @param nativeMessage - The native message payload to send to Notification Hubs.\n * @returns The FcmLegacyNotification to send to Notification Hubs.\n */\nexport function buildFirebaseLegacyNativeMessage(\n nativeMessage: FirebaseLegacyNativeMessage\n): FcmLegacyNotification {\n const jsonMessage: Record<string, any> = {\n to: nativeMessage.to,\n registration_ids: nativeMessage.registrationIds,\n condition: nativeMessage.condition,\n collapse_key: nativeMessage.collapseKey,\n priority: nativeMessage.priority,\n content_available: nativeMessage.contentAvailable,\n mutable_content: nativeMessage.mutableContent,\n time_to_live: nativeMessage.timeToLive,\n restricted_package_name: nativeMessage.restrictedPackageName,\n dry_run: nativeMessage.dryRun,\n data: nativeMessage.data,\n notification: buildFcmLegacyNativePayload(nativeMessage.notification),\n };\n\n return createFcmLegacyNotification({\n body: JSON.stringify(jsonMessage),\n });\n}\n\n/**\n * Describes ADM notification messages.\n */\nexport interface AdmNativeNotification {\n /**\n * The notification's title.\n */\n title?: string;\n\n /**\n * The notification's body text.\n */\n body?: string;\n\n /**\n * The notification's icon.\n */\n icon?: string;\n\n /**\n * The notification's icon color, expressed in #rrggbb format.\n */\n color?: string;\n\n /**\n * The sound to play when the device receives the notification. Supports \"default\" or the filename of a sound resource bundled in the app.\n */\n sound?: string;\n\n /**\n * Identifier used to replace existing notifications in the notification drawer.\n */\n tag?: string;\n\n /**\n * The action associated with a user click on the notification.\n */\n clickAction?: string;\n\n /**\n * The key to the body string in the app's string resources to use to localize the body text to the user's current localization.\n */\n bodyLocKey?: string;\n\n /**\n * Variable string values to be used in place of the format specifiers in body_loc_key to use to localize the body text to the user's current localization.\n */\n bodyLocArgs?: string[];\n\n /**\n * The key to the title string in the app's string resources to use to localize the title text to the user's current localization.\n */\n titleLocKey?: string;\n\n /**\n * Variable string values to be used in place of the format specifiers in title_loc_key to use to localize the title text to the user's current localization.\n */\n titleLocArgs?: string[];\n\n /**\n * The notification's channel id.\n */\n channelId?: string;\n\n /**\n * Sets the \"ticker\" text, which is sent to accessibility services.\n */\n ticker?: string;\n\n /**\n * When set to false or unset, the notification is automatically dismissed when the user clicks it in the panel.\n */\n sticky?: boolean;\n\n /**\n * Set the time that the event in the notification occurred. Must be a timestamp in RFC3339 UTC \"Zulu\" format, accurate to nanoseconds. Example: \"2014-10-02T15:01:23.045123456Z\".\n */\n eventTime?: string;\n\n /**\n * Set whether or not this notification is relevant only to the current device.\n */\n localOnly?: boolean;\n\n /**\n * Set the relative priority for this notification.\n */\n notificationPriority?: number; // TODO: Enum?\n\n /**\n * If set to true, use the Android framework's default sound for the notification.\n */\n defaultSound?: boolean;\n\n /**\n * Set the Notification.visibility of the notification.\n */\n visibility?: number; // TODO: Enum?\n\n /**\n * Sets the number of items this notification represents.\n */\n notificationCount?: number;\n\n /**\n * Contains the URL of an image that is going to be displayed in a notification.\n */\n image?: string;\n}\n\n/**\n * Represents a native ADM notification message payload.\n */\nexport interface AdmNativeMessage {\n /**\n * The notification payload to send with the message.\n */\n notification?: AdmNativeNotification;\n\n /**\n * The payload data to send with the message.\n */\n data?: Record<string, string>;\n\n /**\n * The priority of the msssage.\n */\n priority?: \"normal\" | \"high\";\n\n /**\n * This is an arbitrary string used to indicate that multiple messages are logically the same\n * and that ADM is allowed to drop previously enqueued messages in favor of this new one.\n */\n consolidationKey?: string;\n\n /**\n * The number of seconds that ADM should retain the message if the device is offline.\n */\n expiresAfter?: number;\n\n /**\n * This is a base-64-encoded MD5 checksum of the data parameter.\n */\n md5?: string;\n}\n\nfunction buildAdmNativeNotification(\n nativeNotification?: AdmNativeNotification\n): Record<string, any> | undefined {\n if (!isDefined(nativeNotification)) {\n return undefined;\n }\n\n return {\n title: nativeNotification.title,\n body: nativeNotification.body,\n icon: nativeNotification.icon,\n color: nativeNotification.color,\n sound: nativeNotification.sound,\n tag: nativeNotification.tag,\n click_action: nativeNotification.clickAction,\n body_loc_key: nativeNotification.bodyLocKey,\n body_loc_args: nativeNotification.bodyLocArgs,\n title_loc_key: nativeNotification.titleLocKey,\n title_loc_args: nativeNotification.titleLocArgs,\n channel_id: nativeNotification.channelId,\n ticker: nativeNotification.ticker,\n sticky: nativeNotification.sticky,\n event_time: nativeNotification.eventTime,\n local_only: nativeNotification.localOnly,\n notification_priority: nativeNotification.notificationPriority,\n default_sound: nativeNotification.defaultSound,\n visibility: nativeNotification.visibility,\n notification_count: nativeNotification.notificationCount,\n image: nativeNotification.image,\n };\n}\n\n/**\n * Creates a AdmNotification from a native ADM payload.\n * @param nativeMessage - The native message payload to send to Notification Hubs.\n * @returns The AdmNotification to send to Notification Hubs.\n */\nexport function buildAdmNativeMessage(nativeMessage: AdmNativeMessage): AdmNotification {\n const jsonObj: Record<string, any> = {\n notification: buildAdmNativeNotification(nativeMessage.notification),\n data: nativeMessage.data || {},\n ...nativeMessage,\n };\n\n return createAdmNotification({\n body: JSON.stringify(jsonObj),\n });\n}\n\n/**\n * Represents the Baidu Apple native payload.\n */\nexport interface BaiduAppleNativePayload {\n /**\n * The alert string.\n */\n alert?: string;\n\n /**\n * The APNs sound to play.\n */\n sound?: string;\n\n /**\n * The APNs badge count.\n */\n badge?: number;\n}\n\n/**\n * Baidu Native Format:\n * https://stackoverflow.com/questions/42591815/customize-baidu-push-json-payload\n * http://www.tuicool.com/articles/ZnmANn\n */\nexport interface BaiduNativeMessage extends Record<string, any> {\n /**\n * Notification title for Android.\n */\n title?: string;\n\n /**\n * Baidu Notification description for Android.\n */\n description?: string;\n\n /**\n * Baidu Notification builder ID.\n */\n notificationBuilderId?: number;\n\n /**\n * Baidu Notification Android basic style.\n */\n notificationBasicStyle?: number;\n\n /**\n * Baidu Android open type.\n */\n openType?: number;\n\n /**\n * Baidu Android net support option.\n */\n netSupport?: number;\n\n /**\n * Baidu Android user confirm.\n */\n userConfirm?: number;\n\n /**\n * Baidu Android URL.\n */\n url?: string;\n\n /**\n * Baidu Android package content.\n */\n pkgContent?: string;\n\n /**\n * Baidu Android package version.\n */\n pkgVersion?: string;\n\n /**\n * Baidu Android custom content dictionary.\n */\n customContent?: Record<string, any>;\n\n /**\n * Baidu APNs support.\n */\n aps?: BaiduAppleNativePayload;\n}\n\n/**\n * Creates a BaiduNotification from a native Baidu payload.\n * @param nativeMessage - The native message payload to send to Notification Hubs.\n * @param additionalProperties - Additional properties for Apple Baidu messages.\n * @returns The BaiduNotification to send to Notification Hubs.\n */\nexport function buildBaiduNativeMessage(\n nativeMessage: BaiduNativeMessage,\n additionalProperties?: Record<string, any>\n): BaiduNotification {\n const jsonObj: Record<string, any> = {\n title: nativeMessage.title,\n description: nativeMessage.description,\n notification_builder_id: nativeMessage.notificationBuilderId,\n notification_basic_style: nativeMessage.notificationBasicStyle,\n open_type: nativeMessage.openType,\n net_support: nativeMessage.netSupport,\n user_confirm: nativeMessage.userConfirm,\n url: nativeMessage.url,\n pkg_content: nativeMessage.pkgContent,\n pkg_version: nativeMessage.pkgVersion,\n custom_content: nativeMessage.customContent,\n aps: nativeMessage.aps,\n ...additionalProperties,\n };\n\n return createBaiduNotification({\n body: JSON.stringify(jsonObj),\n });\n}\n\n/**\n * Represents the types of Windows Badge Glyphs\n */\nexport type WindowsBadgeGlyphType =\n | \"none\"\n | \"activity\"\n | \"alarm\"\n | \"alert\"\n | \"attention\"\n | \"available\"\n | \"away\"\n | \"busy\"\n | \"error\"\n | \"newMessage\"\n | \"paused\"\n | \"playing\"\n | \"unavailable\";\n\n/**\n * Represents the Windows Badge Message\n */\nexport interface WindowsBadgeNativeMessage {\n /**\n * Either a numeric value or a string value that specifies a predefined badge glyph.\n */\n value: WindowsBadgeGlyphType | number;\n}\n\n/**\n * Builds a WindowsNotification from a Windows Badge.\n * @param nativeMessage - The Windows Badge Message to build.\n * @returns A WindowsNotification created with the badge information.\n */\nexport function buildWindowsBadgeNativeMessage(\n nativeMessage: WindowsBadgeNativeMessage\n): WindowsNotification {\n const badge = {\n $: { value: nativeMessage.value },\n };\n\n return createWindowsBadgeNotification({\n body: stringifyXML(badge, { rootName: \"badge\" }),\n });\n}\n"]}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT license.
|
|
3
|
-
import { AbortError } from "@azure/abort-controller";
|
|
4
|
-
import { delay } from "@azure/core-util";
|
|
5
|
-
import { isDefined } from "./utils.js";
|
|
6
|
-
import { isError } from "@azure/core-util";
|
|
7
|
-
import { isRestError } from "@azure/core-rest-pipeline";
|
|
8
|
-
const JITTER_FACTOR = 0.08;
|
|
9
|
-
function isAbortError(e) {
|
|
10
|
-
if (e instanceof AbortError) {
|
|
11
|
-
return true;
|
|
12
|
-
}
|
|
13
|
-
return isError(e) && e.name === "AbortError";
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Represents the retry delay calculation either fixed or exponential.
|
|
17
|
-
*/
|
|
18
|
-
export var RetryMode;
|
|
19
|
-
(function (RetryMode) {
|
|
20
|
-
/**
|
|
21
|
-
* Fixed interval between retries.
|
|
22
|
-
*/
|
|
23
|
-
RetryMode[RetryMode["Fixed"] = 0] = "Fixed";
|
|
24
|
-
/**
|
|
25
|
-
* Exporation interval between retries.
|
|
26
|
-
*/
|
|
27
|
-
RetryMode[RetryMode["Exponential"] = 1] = "Exponential";
|
|
28
|
-
})(RetryMode = RetryMode || (RetryMode = {}));
|
|
29
|
-
/**
|
|
30
|
-
* Creates a set of retry options with defaults.
|
|
31
|
-
* @param options - The options for the retry behavior.
|
|
32
|
-
* @returns The retry options.
|
|
33
|
-
*/
|
|
34
|
-
export function createRetryOptions(options) {
|
|
35
|
-
return Object.assign({ mode: RetryMode.Fixed, maxRetries: 3, delay: 1000, maxDelay: 1000 * 60 }, options);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Creates a base retry policy with the incoming calculateRetryDelay method.
|
|
39
|
-
* @param calculateRetryDelay - The retry calculation behavior based upon attempt number and error.
|
|
40
|
-
* @returns A retry policy with the given calculateRetryDelay method.
|
|
41
|
-
*/
|
|
42
|
-
export function createBaseRetryPolicy(calculateRetryDelay) {
|
|
43
|
-
async function runOperation(operation, signal) {
|
|
44
|
-
let failedAttemptCount = 0;
|
|
45
|
-
while (!(signal === null || signal === void 0 ? void 0 : signal.aborted)) {
|
|
46
|
-
try {
|
|
47
|
-
return await operation(signal);
|
|
48
|
-
}
|
|
49
|
-
catch (err) {
|
|
50
|
-
++failedAttemptCount;
|
|
51
|
-
const retryDelay = calculateRetryDelay(err, failedAttemptCount);
|
|
52
|
-
if (isDefined(retryDelay)) {
|
|
53
|
-
await delay(retryDelay);
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
throw err;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
throw new AbortError("The operation has been aborted");
|
|
61
|
-
}
|
|
62
|
-
return {
|
|
63
|
-
calculateRetryDelay,
|
|
64
|
-
runOperation,
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Creates a retry policy configured with the given retry options.
|
|
69
|
-
* @param options - The retry options including delay, max attempts and backoff behavior.
|
|
70
|
-
* @returns A retry policy configured with the given options.
|
|
71
|
-
*/
|
|
72
|
-
export function createDefaultRetryPolicy(options) {
|
|
73
|
-
function calculateRetryDelay(error, attempt) {
|
|
74
|
-
var _a;
|
|
75
|
-
if (options.maxRetries <= 0 ||
|
|
76
|
-
options.delay === 0 ||
|
|
77
|
-
options.maxDelay === 0 ||
|
|
78
|
-
attempt > options.maxRetries ||
|
|
79
|
-
!shouldRetryError(error)) {
|
|
80
|
-
return undefined;
|
|
81
|
-
}
|
|
82
|
-
const baseJitterSeconds = (options.delay / 1000) * JITTER_FACTOR;
|
|
83
|
-
let retryDelay;
|
|
84
|
-
if (isRestError(error)) {
|
|
85
|
-
retryDelay = parseRetryAfter((_a = error.response) === null || _a === void 0 ? void 0 : _a.headers.get("retry-after"));
|
|
86
|
-
}
|
|
87
|
-
if (!isDefined(retryDelay)) {
|
|
88
|
-
if (options.mode === RetryMode.Exponential) {
|
|
89
|
-
retryDelay = calculateExponentialDelay(attempt, options.delay / 1000, baseJitterSeconds);
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
retryDelay = calculateFixedDelay(options.delay / 1000, baseJitterSeconds);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
if (options.maxDelay < retryDelay) {
|
|
96
|
-
return options.maxDelay;
|
|
97
|
-
}
|
|
98
|
-
return retryDelay;
|
|
99
|
-
}
|
|
100
|
-
return createBaseRetryPolicy(calculateRetryDelay);
|
|
101
|
-
}
|
|
102
|
-
function parseRetryAfter(headerValue) {
|
|
103
|
-
if (!isDefined(headerValue)) {
|
|
104
|
-
return undefined;
|
|
105
|
-
}
|
|
106
|
-
// Retry-After is defined in seconds
|
|
107
|
-
const number = new Number(headerValue);
|
|
108
|
-
if (Number.isFinite(number) && number >= 0) {
|
|
109
|
-
return number.valueOf() * 1000;
|
|
110
|
-
}
|
|
111
|
-
// Retry-After is defined as a Date
|
|
112
|
-
const retryDate = Date.parse(headerValue);
|
|
113
|
-
if (Number.isNaN(retryDate)) {
|
|
114
|
-
return undefined;
|
|
115
|
-
}
|
|
116
|
-
const diff = retryDate - Date.now();
|
|
117
|
-
return diff <= 0 ? undefined : diff;
|
|
118
|
-
}
|
|
119
|
-
function shouldRetryError(e) {
|
|
120
|
-
if (isAbortError(e)) {
|
|
121
|
-
return false;
|
|
122
|
-
}
|
|
123
|
-
if (isRestError(e)) {
|
|
124
|
-
// Throttle and legacy throttle
|
|
125
|
-
if ((e === null || e === void 0 ? void 0 : e.statusCode) === 429 || (e === null || e === void 0 ? void 0 : e.statusCode) === 403) {
|
|
126
|
-
return true;
|
|
127
|
-
}
|
|
128
|
-
// Network hiccups
|
|
129
|
-
if ((e === null || e === void 0 ? void 0 : e.statusCode) === 500 ||
|
|
130
|
-
(e === null || e === void 0 ? void 0 : e.statusCode) === 503 ||
|
|
131
|
-
(e === null || e === void 0 ? void 0 : e.statusCode) === 504 ||
|
|
132
|
-
(e === null || e === void 0 ? void 0 : e.statusCode) === 408) {
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
return false;
|
|
137
|
-
}
|
|
138
|
-
function calculateFixedDelay(baseDelaySeconds, baseJitterSeconds) {
|
|
139
|
-
return (baseDelaySeconds + Math.random() * baseJitterSeconds) * 1000;
|
|
140
|
-
}
|
|
141
|
-
function calculateExponentialDelay(attemptCount, baseDelaySeconds, baseJitterSeconds) {
|
|
142
|
-
return (Math.pow(2, attemptCount) * baseDelaySeconds + Math.random() * baseJitterSeconds) * 1000;
|
|
143
|
-
}
|
|
144
|
-
//# sourceMappingURL=retryPolicy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retryPolicy.js","sourceRoot":"","sources":["../../../src/utils/retryPolicy.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,UAAU,EAAe,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,WAAW,E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;YACA,OAAO,IAAI,CAAC;SACb;KACF;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,mBAAmB,CAAC,gBAAwB,EAAE,iBAAyB;IAC9E,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC;AACvE,CAAC;AAED,SAAS,yBAAyB,CAChC,YAAoB,EACpB,gBAAwB,EACxB,iBAAyB;IAEzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC;AACnG,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { AbortError, AbortSignal } from \"@azure/abort-controller\";\nimport { delay } from \"@azure/core-util\";\nimport { isDefined } from \"./utils.js\";\nimport { isError } from \"@azure/core-util\";\nimport { isRestError } from \"@azure/core-rest-pipeline\";\n\nconst JITTER_FACTOR = 0.08;\n\nfunction isAbortError(e: unknown): e is AbortError {\n if (e instanceof AbortError) {\n return true;\n }\n\n return isError(e) && e.name === \"AbortError\";\n}\n\n/**\n * Represents the retry delay calculation either fixed or exponential.\n */\nexport enum RetryMode {\n /**\n * Fixed interval between retries.\n */\n Fixed,\n /**\n * Exporation interval between retries.\n */\n Exponential,\n}\n\n/**\n * Represents the retry options for an operation.\n */\nexport interface RetryOptions {\n /**\n * The retry mode.\n */\n mode: RetryMode;\n\n /**\n * The number of maximum retries.\n */\n maxRetries: number;\n\n /**\n * The delay in milliseconds between retries.\n */\n delay: number;\n\n /**\n * The maximum delay in milliseconds between retries.\n */\n maxDelay: number;\n}\n\n/**\n * Creates a set of retry options with defaults.\n * @param options - The options for the retry behavior.\n * @returns The retry options.\n */\nexport function createRetryOptions(options?: Partial<RetryOptions>): RetryOptions {\n return {\n mode: RetryMode.Fixed,\n maxRetries: 3,\n delay: 1000,\n maxDelay: 1000 * 60,\n ...options,\n };\n}\n\n/**\n * Represents a retry policy with a run operation and define a retry time calculation.\n */\nexport interface RetryPolicy {\n /**\n * Calculates the retry delay based upon the error and retry attempt.\n * @param error - The error from the operation.\n * @param attempt - The retry attempt number.\n */\n calculateRetryDelay: (error: unknown, attempt: number) => number | undefined;\n\n /**\n * Runs an operation and retries based upon the retry policy.\n * @param operation - The operation to run and retry if necessary.\n * @param signal - An AbortSignal to check for cancellation.\n * @returns The result of the operation.\n */\n runOperation<TResult>(\n operation: (signal?: AbortSignal) => Promise<TResult>,\n signal?: AbortSignal\n ): Promise<TResult>;\n}\n\n/**\n * Creates a base retry policy with the incoming calculateRetryDelay method.\n * @param calculateRetryDelay - The retry calculation behavior based upon attempt number and error.\n * @returns A retry policy with the given calculateRetryDelay method.\n */\nexport function createBaseRetryPolicy(\n calculateRetryDelay: (error: unknown, attempt: number) => number | undefined\n): RetryPolicy {\n async function runOperation<TResult>(\n operation: (signal?: AbortSignal) => Promise<TResult>,\n signal?: AbortSignal\n ): Promise<TResult> {\n let failedAttemptCount = 0;\n\n while (!signal?.aborted) {\n try {\n return await operation(signal);\n } catch (err) {\n ++failedAttemptCount;\n const retryDelay = calculateRetryDelay(err, failedAttemptCount);\n if (isDefined(retryDelay)) {\n await delay(retryDelay);\n } else {\n throw err;\n }\n }\n }\n\n throw new AbortError(\"The operation has been aborted\");\n }\n\n return {\n calculateRetryDelay,\n runOperation,\n };\n}\n\n/**\n * Creates a retry policy configured with the given retry options.\n * @param options - The retry options including delay, max attempts and backoff behavior.\n * @returns A retry policy configured with the given options.\n */\nexport function createDefaultRetryPolicy(options: RetryOptions): RetryPolicy {\n function calculateRetryDelay(error: unknown, attempt: number): number | undefined {\n if (\n options.maxRetries <= 0 ||\n options.delay === 0 ||\n options.maxDelay === 0 ||\n attempt > options.maxRetries ||\n !shouldRetryError(error)\n ) {\n return undefined;\n }\n\n const baseJitterSeconds = (options.delay / 1000) * JITTER_FACTOR;\n\n let retryDelay: number | undefined;\n if (isRestError(error)) {\n retryDelay = parseRetryAfter(error.response?.headers.get(\"retry-after\"));\n }\n\n if (!isDefined(retryDelay)) {\n if (options.mode === RetryMode.Exponential) {\n retryDelay = calculateExponentialDelay(attempt, options.delay / 1000, baseJitterSeconds);\n } else {\n retryDelay = calculateFixedDelay(options.delay / 1000, baseJitterSeconds);\n }\n }\n\n if (options.maxDelay < retryDelay) {\n return options.maxDelay;\n }\n\n return retryDelay;\n }\n\n return createBaseRetryPolicy(calculateRetryDelay);\n}\n\nfunction parseRetryAfter(headerValue: string | undefined): number | undefined {\n if (!isDefined(headerValue)) {\n return undefined;\n }\n\n // Retry-After is defined in seconds\n const number = new Number(headerValue);\n if (Number.isFinite(number) && number >= 0) {\n return number.valueOf() * 1000;\n }\n\n // Retry-After is defined as a Date\n const retryDate = Date.parse(headerValue);\n if (Number.isNaN(retryDate)) {\n return undefined;\n }\n\n const diff = retryDate - Date.now();\n return diff <= 0 ? undefined : diff;\n}\n\nfunction shouldRetryError(e: unknown): boolean {\n if (isAbortError(e)) {\n return false;\n }\n\n if (isRestError(e)) {\n // Throttle and legacy throttle\n if (e?.statusCode === 429 || e?.statusCode === 403) {\n return true;\n }\n // Network hiccups\n if (\n e?.statusCode === 500 ||\n e?.statusCode === 503 ||\n e?.statusCode === 504 ||\n e?.statusCode === 408\n ) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction calculateFixedDelay(baseDelaySeconds: number, baseJitterSeconds: number): number {\n return (baseDelaySeconds + Math.random() * baseJitterSeconds) * 1000;\n}\n\nfunction calculateExponentialDelay(\n attemptCount: number,\n baseDelaySeconds: number,\n baseJitterSeconds: number\n): number {\n return (Math.pow(2, attemptCount) * baseDelaySeconds + Math.random() * baseJitterSeconds) * 1000;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cancelScheduledNotification.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAKtD;;;;;;;GAOG;AACH,wBAAgB,2BAA2B,CACzC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAgBnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAKtD;;;;;;GAMG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,6BAA6B,EACtC,YAAY,EAAE,YAAY,EAC1B,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAmBnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createOrUpdateRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/createOrUpdateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/createRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createRegistrationId.d.ts","sourceRoot":"","sources":["../../../src/client/createRegistrationId.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAsBjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAKtD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,wBAAwB,CAAC,CAenC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deleteRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/deleteRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAM5E;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,sBAA2B,GACnC,OAAO,CAAC,wBAAwB,CAAC,CAkBnC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getFeedbackContainerUrl.d.ts","sourceRoot":"","sources":["../../../src/client/getFeedbackContainerUrl.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAiBjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAKtD;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,YAAY,CAAC,CAiBvB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAMtD;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,6BAA6B,EACtC,KAAK,EAAE,MAAM,EACb,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CAiB7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getNotificationOutcomeDetails.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAMtD;;;;;;;GAOG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE,6BAA6B,EACtC,cAAc,EAAE,MAAM,EACtB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,mBAAmB,CAAC,CAe9B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/getRegistration.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,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"}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_client.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_client.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,WAAW,EACX,WAAW,EACX,eAAe,EACf,gBAAgB,EAGjB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACzB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAKtD,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,GAAG,EACb,MAAM,EAAE,WAAW,EACnB,OAAO,EAAE,WAAW,EACpB,OAAO,EAAE,gBAAgB,GACxB,eAAe,CASjB;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,gBAAgB,GAAG,wBAAwB,CAU9F;AAED;;;;GAIG;AACH,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,gBAAgB,GACzB,OAAO,CAAC,+BAA+B,CAAC,CAwB1C;AAgBD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAC/B,OAAO,EAAE,6BAA6B,EACtC,OAAO,EAAE,eAAe,EACxB,iBAAiB,EAAE,MAAM,GAAG,MAAM,EAAE,GACnC,OAAO,CAAC,gBAAgB,CAAC,CAgC3B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_createOrUpdateRegistrationDescription.d.ts","sourceRoot":"","sources":["../../../../src/client/internal/_createOrUpdateRegistrationDescription.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listNotificationHubJobs.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAMtD;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAiB/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listRegistrations.d.ts","sourceRoot":"","sources":["../../../src/client/listRegistrations.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAOhE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,6BAA6B,EACtC,OAAO,GAAE,wBAA6B,GACrC,0BAA0B,CAAC,uBAAuB,CAAC,CAwBrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"listRegistrationsByTag.d.ts","sourceRoot":"","sources":["../../../src/client/listRegistrationsByTag.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,6BAA6B,EAAE,MAAM,sBAAsB,CAAC;AAOrE;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,6BAA6B,EACtC,GAAG,EAAE,MAAM,EACX,OAAO,GAAE,6BAAkC,GAC1C,0BAA0B,CAAC,uBAAuB,CAAC,CAwBrD"}
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"submitNotificationHubJob.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAKtD;;;;;;;GAOG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,6BAA6B,EACtC,GAAG,EAAE,kBAAkB,EACvB,OAAO,GAAE,gBAAqB,GAC7B,OAAO,CAAC,kBAAkB,CAAC,CAkB7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateInstallation.d.ts","sourceRoot":"","sources":["../../../src/client/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,oBAAoB,CAAC;AAKtD;;;;;;;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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"updateRegistration.d.ts","sourceRoot":"","sources":["../../../src/client/updateRegistration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationBuilder.d.ts","sourceRoot":"","sources":["../../../src/models/notificationBuilder.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EAMpB,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IAExB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;IACH,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;IAE3B;;;;OAIG;IACH,MAAM,CAA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W,yBAAyB;IACxC;;OAEG;IACH,KAAK,EAAE,qBAAqB,GAAG,MAAM,CAAC;CACvC;AAED;;;;GAIG;AACH,wBAAgB,8BAA8B,CAC5C,aAAa,EAAE,yBAAyB,GACvC,mBAAmB,CAQrB"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { AbortSignal } from "@azure/abort-controller";
|
|
2
|
-
/**
|
|
3
|
-
* Represents the retry delay calculation either fixed or exponential.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum RetryMode {
|
|
6
|
-
/**
|
|
7
|
-
* Fixed interval between retries.
|
|
8
|
-
*/
|
|
9
|
-
Fixed = 0,
|
|
10
|
-
/**
|
|
11
|
-
* Exporation interval between retries.
|
|
12
|
-
*/
|
|
13
|
-
Exponential = 1
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Represents the retry options for an operation.
|
|
17
|
-
*/
|
|
18
|
-
export interface RetryOptions {
|
|
19
|
-
/**
|
|
20
|
-
* The retry mode.
|
|
21
|
-
*/
|
|
22
|
-
mode: RetryMode;
|
|
23
|
-
/**
|
|
24
|
-
* The number of maximum retries.
|
|
25
|
-
*/
|
|
26
|
-
maxRetries: number;
|
|
27
|
-
/**
|
|
28
|
-
* The delay in milliseconds between retries.
|
|
29
|
-
*/
|
|
30
|
-
delay: number;
|
|
31
|
-
/**
|
|
32
|
-
* The maximum delay in milliseconds between retries.
|
|
33
|
-
*/
|
|
34
|
-
maxDelay: number;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Creates a set of retry options with defaults.
|
|
38
|
-
* @param options - The options for the retry behavior.
|
|
39
|
-
* @returns The retry options.
|
|
40
|
-
*/
|
|
41
|
-
export declare function createRetryOptions(options?: Partial<RetryOptions>): RetryOptions;
|
|
42
|
-
/**
|
|
43
|
-
* Represents a retry policy with a run operation and define a retry time calculation.
|
|
44
|
-
*/
|
|
45
|
-
export interface RetryPolicy {
|
|
46
|
-
/**
|
|
47
|
-
* Calculates the retry delay based upon the error and retry attempt.
|
|
48
|
-
* @param error - The error from the operation.
|
|
49
|
-
* @param attempt - The retry attempt number.
|
|
50
|
-
*/
|
|
51
|
-
calculateRetryDelay: (error: unknown, attempt: number) => number | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Runs an operation and retries based upon the retry policy.
|
|
54
|
-
* @param operation - The operation to run and retry if necessary.
|
|
55
|
-
* @param signal - An AbortSignal to check for cancellation.
|
|
56
|
-
* @returns The result of the operation.
|
|
57
|
-
*/
|
|
58
|
-
runOperation<TResult>(operation: (signal?: AbortSignal) => Promise<TResult>, signal?: AbortSignal): Promise<TResult>;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Creates a base retry policy with the incoming calculateRetryDelay method.
|
|
62
|
-
* @param calculateRetryDelay - The retry calculation behavior based upon attempt number and error.
|
|
63
|
-
* @returns A retry policy with the given calculateRetryDelay method.
|
|
64
|
-
*/
|
|
65
|
-
export declare function createBaseRetryPolicy(calculateRetryDelay: (error: unknown, attempt: number) => number | undefined): RetryPolicy;
|
|
66
|
-
/**
|
|
67
|
-
* Creates a retry policy configured with the given retry options.
|
|
68
|
-
* @param options - The retry options including delay, max attempts and backoff behavior.
|
|
69
|
-
* @returns A retry policy configured with the given options.
|
|
70
|
-
*/
|
|
71
|
-
export declare function createDefaultRetryPolicy(options: RetryOptions): RetryPolicy;
|
|
72
|
-
//# sourceMappingURL=retryPolicy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"retryPolicy.d.ts","sourceRoot":"","sources":["../../../src/utils/retryPolicy.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAgBlE;;GAEG;AACH,oBAAY,SAAS;IACnB;;OAEG;IACH,KAAK,IAAA;IACL;;OAEG;IACH,WAAW,IAAA;CACZ;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,CAQhF;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IAE7E;;;;;OAKG;IACH,YAAY,CAAC,OAAO,EAClB,SAAS,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,EACrD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,OAAO,CAAC,CAAC;CACrB;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,mBAAmB,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,GAC3E,WAAW,CA4Bb;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,YAAY,GAAG,WAAW,CAmC3E"}
|