@aws-amplify/rtn-push-notification 1.2.14 → 1.2.15-node-20-action.f356afc.0
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/cjs/apis/addMessageEventListener.js.map +1 -1
- package/dist/cjs/apis/addTokenEventListener.js.map +1 -1
- package/dist/cjs/apis/completeNotification.js.map +1 -1
- package/dist/cjs/apis/getBadgeCount.js.map +1 -1
- package/dist/cjs/apis/getConstants.js.map +1 -1
- package/dist/cjs/apis/getLaunchNotification.js.map +1 -1
- package/dist/cjs/apis/getPermissionStatus.js.map +1 -1
- package/dist/cjs/apis/index.js.map +1 -1
- package/dist/cjs/apis/registerHeadlessTask.js.map +1 -1
- package/dist/cjs/apis/requestPermissions.js.map +1 -1
- package/dist/cjs/apis/setBadgeCount.js.map +1 -1
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/nativeModule.js.map +1 -1
- package/dist/cjs/types/index.js.map +1 -1
- package/dist/cjs/types/module.js.map +1 -1
- package/dist/cjs/types/native.js.map +1 -1
- package/dist/cjs/utils/index.js.map +1 -1
- package/dist/cjs/utils/normalizeNativeMessage.js.map +1 -1
- package/dist/cjs/utils/normalizeNativePermissionStatus.js.map +1 -1
- package/dist/esm/apis/addMessageEventListener.mjs.map +1 -1
- package/dist/esm/apis/addTokenEventListener.mjs.map +1 -1
- package/dist/esm/apis/completeNotification.mjs.map +1 -1
- package/dist/esm/apis/getBadgeCount.mjs.map +1 -1
- package/dist/esm/apis/getConstants.mjs.map +1 -1
- package/dist/esm/apis/getLaunchNotification.mjs.map +1 -1
- package/dist/esm/apis/getPermissionStatus.mjs.map +1 -1
- package/dist/esm/apis/registerHeadlessTask.mjs.map +1 -1
- package/dist/esm/apis/requestPermissions.mjs.map +1 -1
- package/dist/esm/apis/setBadgeCount.mjs.map +1 -1
- package/dist/esm/constants.mjs.map +1 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/nativeModule.mjs.map +1 -1
- package/dist/esm/utils/normalizeNativeMessage.mjs.map +1 -1
- package/dist/esm/utils/normalizeNativePermissionStatus.mjs.map +1 -1
- package/package.json +4 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addMessageEventListener.js","sources":["
|
|
1
|
+
{"version":3,"file":"addMessageEventListener.js","sources":["../../../src/apis/addMessageEventListener.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.addMessageEventListener = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst utils_1 = require(\"../utils\");\nconst addMessageEventListener = (event, listener) => nativeModule_1.nativeEventEmitter.addListener(event, (nativeMessage) => {\n listener((0, utils_1.normalizeNativeMessage)(nativeMessage), nativeMessage.completionHandlerId);\n});\nexports.addMessageEventListener = addMessageEventListener;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,uBAAuB,GAAG,KAAK,CAAC,CAAC;AACzC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,uBAAuB,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,cAAc,CAAC,kBAAkB,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,aAAa,KAAK;AAC7H,IAAI,QAAQ,CAAC,IAAI,OAAO,CAAC,sBAAsB,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;AACpG,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,uBAAuB,GAAG,uBAAuB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTokenEventListener.js","sources":["
|
|
1
|
+
{"version":3,"file":"addTokenEventListener.js","sources":["../../../src/apis/addTokenEventListener.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.addTokenEventListener = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst addTokenEventListener = (event, listener) => nativeModule_1.nativeEventEmitter.addListener(event, ({ token }) => {\n listener(token);\n});\nexports.addTokenEventListener = addTokenEventListener;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,qBAAqB,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,cAAc,CAAC,kBAAkB,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK;AACvH,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeNotification.js","sources":["
|
|
1
|
+
{"version":3,"file":"completeNotification.js","sources":["../../../src/apis/completeNotification.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.completeNotification = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst completeNotification = (completionHandlerId) => nativeModule_1.nativeModule.completeNotification?.(completionHandlerId);\nexports.completeNotification = completeNotification;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC,CAAC;AACtC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,oBAAoB,GAAG,CAAC,mBAAmB,KAAK,cAAc,CAAC,YAAY,CAAC,oBAAoB,GAAG,mBAAmB,CAAC,CAAC;AAC9H,OAAO,CAAC,oBAAoB,GAAG,oBAAoB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBadgeCount.js","sources":["
|
|
1
|
+
{"version":3,"file":"getBadgeCount.js","sources":["../../../src/apis/getBadgeCount.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getBadgeCount = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst getBadgeCount = () => nativeModule_1.nativeModule.getBadgeCount?.();\nexports.getBadgeCount = getBadgeCount;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,YAAY,CAAC,aAAa,IAAI,CAAC;AAC1E,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConstants.js","sources":["
|
|
1
|
+
{"version":3,"file":"getConstants.js","sources":["../../../src/apis/getConstants.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getConstants = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst getConstants = () => nativeModule_1.nativeModule.getConstants();\nexports.getConstants = getConstants;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC9B,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,YAAY,GAAG,MAAM,cAAc,CAAC,YAAY,CAAC,YAAY,EAAE,CAAC;AACtE,OAAO,CAAC,YAAY,GAAG,YAAY;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLaunchNotification.js","sources":["
|
|
1
|
+
{"version":3,"file":"getLaunchNotification.js","sources":["../../../src/apis/getLaunchNotification.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getLaunchNotification = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst utils_1 = require(\"../utils\");\nconst getLaunchNotification = async () => (0, utils_1.normalizeNativeMessage)((await nativeModule_1.nativeModule.getLaunchNotification()) ?? undefined);\nexports.getLaunchNotification = getLaunchNotification;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,qBAAqB,GAAG,KAAK,CAAC,CAAC;AACvC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,qBAAqB,GAAG,YAAY,IAAI,OAAO,CAAC,sBAAsB,EAAE,CAAC,MAAM,cAAc,CAAC,YAAY,CAAC,qBAAqB,EAAE,KAAK,SAAS,CAAC,CAAC;AACxJ,OAAO,CAAC,qBAAqB,GAAG,qBAAqB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPermissionStatus.js","sources":["
|
|
1
|
+
{"version":3,"file":"getPermissionStatus.js","sources":["../../../src/apis/getPermissionStatus.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.getPermissionStatus = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst utils_1 = require(\"../utils\");\nconst getPermissionStatus = async () => (0, utils_1.normalizeNativePermissionStatus)(await nativeModule_1.nativeModule.getPermissionStatus());\nexports.getPermissionStatus = getPermissionStatus;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,mBAAmB,GAAG,KAAK,CAAC,CAAC;AACrC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,mBAAmB,GAAG,YAAY,IAAI,OAAO,CAAC,+BAA+B,EAAE,MAAM,cAAc,CAAC,YAAY,CAAC,mBAAmB,EAAE,CAAC,CAAC;AAC9I,OAAO,CAAC,mBAAmB,GAAG,mBAAmB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/apis/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setBadgeCount = exports.requestPermissions = exports.registerHeadlessTask = exports.getPermissionStatus = exports.getLaunchNotification = exports.getConstants = exports.getBadgeCount = exports.completeNotification = exports.addTokenEventListener = exports.addMessageEventListener = void 0;\nvar addMessageEventListener_1 = require(\"./addMessageEventListener\");\nObject.defineProperty(exports, \"addMessageEventListener\", { enumerable: true, get: function () { return addMessageEventListener_1.addMessageEventListener; } });\nvar addTokenEventListener_1 = require(\"./addTokenEventListener\");\nObject.defineProperty(exports, \"addTokenEventListener\", { enumerable: true, get: function () { return addTokenEventListener_1.addTokenEventListener; } });\nvar completeNotification_1 = require(\"./completeNotification\");\nObject.defineProperty(exports, \"completeNotification\", { enumerable: true, get: function () { return completeNotification_1.completeNotification; } });\nvar getBadgeCount_1 = require(\"./getBadgeCount\");\nObject.defineProperty(exports, \"getBadgeCount\", { enumerable: true, get: function () { return getBadgeCount_1.getBadgeCount; } });\nvar getConstants_1 = require(\"./getConstants\");\nObject.defineProperty(exports, \"getConstants\", { enumerable: true, get: function () { return getConstants_1.getConstants; } });\nvar getLaunchNotification_1 = require(\"./getLaunchNotification\");\nObject.defineProperty(exports, \"getLaunchNotification\", { enumerable: true, get: function () { return getLaunchNotification_1.getLaunchNotification; } });\nvar getPermissionStatus_1 = require(\"./getPermissionStatus\");\nObject.defineProperty(exports, \"getPermissionStatus\", { enumerable: true, get: function () { return getPermissionStatus_1.getPermissionStatus; } });\nvar registerHeadlessTask_1 = require(\"./registerHeadlessTask\");\nObject.defineProperty(exports, \"registerHeadlessTask\", { enumerable: true, get: function () { return registerHeadlessTask_1.registerHeadlessTask; } });\nvar requestPermissions_1 = require(\"./requestPermissions\");\nObject.defineProperty(exports, \"requestPermissions\", { enumerable: true, get: function () { return requestPermissions_1.requestPermissions; } });\nvar setBadgeCount_1 = require(\"./setBadgeCount\");\nObject.defineProperty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oBAAoB,CAAC,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC;AACjJ,IAAI,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACjD,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,eAAe,CAAC,aAAa,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerHeadlessTask.js","sources":["
|
|
1
|
+
{"version":3,"file":"registerHeadlessTask.js","sources":["../../../src/apis/registerHeadlessTask.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.registerHeadlessTask = void 0;\nconst react_native_1 = require(\"react-native\");\nconst getConstants_1 = require(\"./getConstants\");\nconst utils_1 = require(\"../utils\");\nconst registerHeadlessTask = (task) => {\n const { NativeHeadlessTaskKey } = (0, getConstants_1.getConstants)();\n if (NativeHeadlessTaskKey) {\n react_native_1.AppRegistry.registerHeadlessTask(NativeHeadlessTaskKey, () => async (nativeMessage) => {\n await task((0, utils_1.normalizeNativeMessage)(nativeMessage));\n });\n }\n};\nexports.registerHeadlessTask = registerHeadlessTask;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,oBAAoB,GAAG,KAAK,CAAC,CAAC;AACtC,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/C,MAAM,cAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AACjD,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACpC,MAAM,oBAAoB,GAAG,CAAC,IAAI,KAAK;AACvC,IAAI,MAAM,EAAE,qBAAqB,EAAE,GAAG,IAAI,cAAc,CAAC,YAAY,GAAG,CAAC;AACzE,IAAI,IAAI,qBAAqB,EAAE;AAC/B,QAAQ,cAAc,CAAC,WAAW,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,MAAM,OAAO,aAAa,KAAK;AAC9G,YAAY,MAAM,IAAI,CAAC,IAAI,OAAO,CAAC,sBAAsB,EAAE,aAAa,CAAC,CAAC,CAAC;AAC3E,SAAS,CAAC,CAAC;AACX,KAAK;AACL,CAAC,CAAC;AACF,OAAO,CAAC,oBAAoB,GAAG,oBAAoB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestPermissions.js","sources":["
|
|
1
|
+
{"version":3,"file":"requestPermissions.js","sources":["../../../src/apis/requestPermissions.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.requestPermissions = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst requestPermissions = async ({ alert = true, badge = true, sound = true } = {\n alert: true,\n badge: true,\n sound: true,\n}) => nativeModule_1.nativeModule.requestPermissions({\n alert,\n badge,\n sound,\n});\nexports.requestPermissions = requestPermissions;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,KAAK,CAAC,CAAC;AACpC,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,kBAAkB,GAAG,OAAO,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG;AACjF,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,KAAK,EAAE,IAAI;AACf,CAAC,KAAK,cAAc,CAAC,YAAY,CAAC,kBAAkB,CAAC;AACrD,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,CAAC,CAAC,CAAC;AACH,OAAO,CAAC,kBAAkB,GAAG,kBAAkB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setBadgeCount.js","sources":["
|
|
1
|
+
{"version":3,"file":"setBadgeCount.js","sources":["../../../src/apis/setBadgeCount.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.setBadgeCount = void 0;\nconst nativeModule_1 = require(\"../nativeModule\");\nconst setBadgeCount = (count) => nativeModule_1.nativeModule.setBadgeCount?.(count);\nexports.setBadgeCount = setBadgeCount;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AAC/B,MAAM,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAClD,MAAM,aAAa,GAAG,CAAC,KAAK,KAAK,cAAc,CAAC,YAAY,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC;AACpF,OAAO,CAAC,aAAa,GAAG,aAAa;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.LINKING_ERROR = exports.PACKAGE_NAME = void 0;\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nconst react_native_1 = require(\"react-native\");\n// General\nexports.PACKAGE_NAME = '@aws-amplify/rtn-push-notification';\nexports.LINKING_ERROR = `The ${exports.PACKAGE_NAME} package doesn't seem to be linked. Make sure: \\n\\n` +\n react_native_1.Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo Go\\n';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AACtD;AACA;AACA,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/C;AACA,OAAO,CAAC,YAAY,GAAG,oCAAoC,CAAC;AAC5D,OAAO,CAAC,aAAa,GAAG,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC,mDAAmD,CAAC;AACxG,IAAI,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,gCAAgC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC1F,IAAI,sDAAsD;AAC1D,IAAI,+BAA+B;;"}
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.module = void 0;\nconst apis_1 = require(\"./apis\");\nconst module = {\n addMessageEventListener: apis_1.addMessageEventListener,\n addTokenEventListener: apis_1.addTokenEventListener,\n completeNotification: apis_1.completeNotification,\n getBadgeCount: apis_1.getBadgeCount,\n getConstants: apis_1.getConstants,\n getLaunchNotification: apis_1.getLaunchNotification,\n getPermissionStatus: apis_1.getPermissionStatus,\n registerHeadlessTask: apis_1.registerHeadlessTask,\n requestPermissions: apis_1.requestPermissions,\n setBadgeCount: apis_1.setBadgeCount,\n};\nexports.module = module;\n"],"names":["module"],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;AACxB,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,MAAMA,QAAM,GAAG;AACf,IAAI,uBAAuB,EAAE,MAAM,CAAC,uBAAuB;AAC3D,IAAI,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;AACvD,IAAI,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;AACrD,IAAI,aAAa,EAAE,MAAM,CAAC,aAAa;AACvC,IAAI,YAAY,EAAE,MAAM,CAAC,YAAY;AACrC,IAAI,qBAAqB,EAAE,MAAM,CAAC,qBAAqB;AACvD,IAAI,mBAAmB,EAAE,MAAM,CAAC,mBAAmB;AACnD,IAAI,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;AACrD,IAAI,kBAAkB,EAAE,MAAM,CAAC,kBAAkB;AACjD,IAAI,aAAa,EAAE,MAAM,CAAC,aAAa;AACvC,CAAC,CAAC;AACF,OAAO,CAAC,MAAM,GAAGA,QAAM;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeModule.js","sources":["
|
|
1
|
+
{"version":3,"file":"nativeModule.js","sources":["../../src/nativeModule.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.nativeEventEmitter = exports.nativeModule = void 0;\nconst react_native_1 = require(\"react-native\");\nconst constants_1 = require(\"./constants\");\nexports.nativeModule = react_native_1.NativeModules.AmplifyRTNPushNotification\n ? react_native_1.NativeModules.AmplifyRTNPushNotification\n : new Proxy({}, {\n get() {\n throw new Error(constants_1.LINKING_ERROR);\n },\n });\nexports.nativeEventEmitter = new react_native_1.NativeEventEmitter(exports.nativeModule);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,kBAAkB,GAAG,OAAO,CAAC,YAAY,GAAG,KAAK,CAAC,CAAC;AAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC/C,MAAM,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC3C,OAAO,CAAC,YAAY,GAAG,cAAc,CAAC,aAAa,CAAC,0BAA0B;AAC9E,MAAM,cAAc,CAAC,aAAa,CAAC,0BAA0B;AAC7D,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;AACvD,SAAS;AACT,KAAK,CAAC,CAAC;AACP,OAAO,CAAC,kBAAkB,GAAG,IAAI,cAAc,CAAC,kBAAkB,CAAC,OAAO,CAAC,YAAY,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/types/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\ntslib_1.__exportStar(require(\"./module\"), exports);\ntslib_1.__exportStar(require(\"./native\"), exports);\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACjC,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CAAC;AACnD,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sources":["
|
|
1
|
+
{"version":3,"file":"module.js","sources":["../../../src/types/module.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native.js","sources":["
|
|
1
|
+
{"version":3,"file":"native.js","sources":["../../../src/types/native.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/utils/index.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalizeNativePermissionStatus = exports.normalizeNativeMessage = void 0;\nvar normalizeNativeMessage_1 = require(\"./normalizeNativeMessage\");\nObject.defineProperty(exports, \"normalizeNativeMessage\", { enumerable: true, get: function () { return normalizeNativeMessage_1.normalizeNativeMessage; } });\nvar normalizeNativePermissionStatus_1 = require(\"./normalizeNativePermissionStatus\");\nObject.defineProperty(exports, \"normalizeNativePermissionStatus\", { enumerable: true, get: function () { return normalizeNativePermissionStatus_1.normalizeNativePermissionStatus; } });\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,+BAA+B,GAAG,OAAO,CAAC,sBAAsB,GAAG,KAAK,CAAC,CAAC;AAClF,IAAI,wBAAwB,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AACnE,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,wBAAwB,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,wBAAwB,CAAC,sBAAsB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7J,IAAI,iCAAiC,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AACrF,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,iCAAiC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,YAAY,EAAE,OAAO,iCAAiC,CAAC,+BAA+B,CAAC,EAAE,EAAE,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeNativeMessage.js","sources":["
|
|
1
|
+
{"version":3,"file":"normalizeNativeMessage.js","sources":["../../../src/utils/normalizeNativeMessage.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalizeNativeMessage = void 0;\nconst tslib_1 = require(\"tslib\");\nconst isEmpty_js_1 = tslib_1.__importDefault(require(\"lodash/isEmpty.js\"));\n/**\n * @internal\n */\nconst normalizeNativeMessage = (nativeMessage) => {\n let normalized;\n if (isApnsMessage(nativeMessage)) {\n normalized = normalizeApnsMessage(nativeMessage);\n }\n else if (isFcmMessage(nativeMessage)) {\n normalized = normalizeFcmMessage(nativeMessage);\n }\n else {\n return null;\n }\n const { body, imageUrl, title, action, options, data } = normalized;\n return {\n body,\n data,\n imageUrl,\n title,\n ...action,\n ...options,\n };\n};\nexports.normalizeNativeMessage = normalizeNativeMessage;\nconst normalizeApnsMessage = (apnsMessage) => {\n const { aps, data } = apnsMessage;\n const { body, title } = aps.alert ?? {};\n const action = getApnsAction(data?.pinpoint) ?? {};\n const imageUrl = data?.['media-url'];\n const options = getApnsOptions(apnsMessage);\n return { body, imageUrl, title, action, options, data };\n};\nconst normalizeFcmMessage = (fcmMessage) => {\n const { body, imageUrl, rawData: data, title } = fcmMessage;\n const action = getFcmAction(fcmMessage.action) ?? {};\n const options = getFcmOptions(fcmMessage);\n return { body, imageUrl, title, action, options, data };\n};\nconst getApnsAction = (action) => {\n if (action?.deeplink) {\n return { deeplinkUrl: action.deeplink };\n }\n};\nconst getFcmAction = (action) => {\n if (action?.url) {\n return { goToUrl: action.url };\n }\n if (action?.deeplink) {\n return { deeplinkUrl: action.deeplink };\n }\n};\nconst getApnsOptions = ({ aps, }) => {\n const { subtitle } = aps.alert ?? {};\n const apnsOptions = { ...(subtitle && { subtitle }) };\n return { ...(!(0, isEmpty_js_1.default)(apnsOptions) && { apnsOptions }) };\n};\nconst getFcmOptions = ({ channelId = '', messageId = '', senderId = '', sendTime = new Date().getTime(), }) => {\n const fcmOptions = {\n channelId,\n messageId,\n senderId,\n sendTime: new Date(sendTime),\n };\n return { ...(!(0, isEmpty_js_1.default)(fcmOptions) && { fcmOptions }) };\n};\nconst isApnsMessage = (nativeMessage) => !!nativeMessage?.aps;\nconst isFcmMessage = (nativeMessage) => !!nativeMessage?.rawData;\n"],"names":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F,MAAM,cAAc,GAAG,CAAC,EAAE,GAAG,GAAG,KAAK;AACrC,IAAI,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,CAAC,KAAK,IAAI,EAAE,CAAC;AACzC,IAAI,MAAM,WAAW,GAAG,EAAE,IAAI,QAAQ,IAAI,EAAE,QAAQ,EAAE,GAAG,CAAC;AAC1D,IAAI,OAAO,EAAE,IAAI,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,WAAW,CAAC,IAAI,EAAE,WAAW,EAAE,GAAG,CAAC;AAC/E,CAAC,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,QAAQ,GAAG,EAAE,EAAE,QAAQ,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK;AAC/G,IAAI,MAAM,UAAU,GAAG;AACvB,QAAQ,SAAS;AACjB,QAAQ,SAAS;AACjB,QAAQ,QAAQ;AAChB,QAAQ,QAAQ,EAAE,IAAI,IAAI,CAAC,QAAQ,CAAC;AACpC,KAAK,CAAC;AACN,IAAI,OAAO,EAAE,IAAI,CAAC,IAAI,YAAY,CAAC,OAAO,EAAE,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC;AAC7E,CAAC,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa,EAAE,GAAG,CAAC;AAC9D,MAAM,YAAY,GAAG,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa,EAAE,OAAO;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeNativePermissionStatus.js","sources":["
|
|
1
|
+
{"version":3,"file":"normalizeNativePermissionStatus.js","sources":["../../../src/utils/normalizeNativePermissionStatus.ts"],"sourcesContent":["\"use strict\";\n// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.normalizeNativePermissionStatus = void 0;\n/**\n * @internal\n */\nconst normalizeNativePermissionStatus = (nativeStatus) => {\n switch (nativeStatus) {\n case 'ShouldRequest':\n return 'shouldRequest';\n case 'NotDetermined':\n case 'ShouldExplainThenRequest':\n return 'shouldExplainThenRequest';\n case 'Authorized':\n case 'Granted':\n return 'granted';\n case 'Denied':\n return 'denied';\n }\n};\nexports.normalizeNativePermissionStatus = normalizeNativePermissionStatus;\n"],"names":[],"mappings":";;AACA;AACA;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,+BAA+B,GAAG,KAAK,CAAC,CAAC;AACjD;AACA;AACA;AACA,MAAM,+BAA+B,GAAG,CAAC,YAAY,KAAK;AAC1D,IAAI,QAAQ,YAAY;AACxB,QAAQ,KAAK,eAAe;AAC5B,YAAY,OAAO,eAAe,CAAC;AACnC,QAAQ,KAAK,eAAe,CAAC;AAC7B,QAAQ,KAAK,0BAA0B;AACvC,YAAY,OAAO,0BAA0B,CAAC;AAC9C,QAAQ,KAAK,YAAY,CAAC;AAC1B,QAAQ,KAAK,SAAS;AACtB,YAAY,OAAO,SAAS,CAAC;AAC7B,QAAQ,KAAK,QAAQ;AACrB,YAAY,OAAO,QAAQ,CAAC;AAC5B,KAAK;AACL,CAAC,CAAC;AACF,OAAO,CAAC,+BAA+B,GAAG,+BAA+B;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addMessageEventListener.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"addMessageEventListener.mjs","sources":["../../../src/apis/addMessageEventListener.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeEventEmitter } from '../nativeModule';\nimport { normalizeNativeMessage } from '../utils';\nexport const addMessageEventListener = (event, listener) => nativeEventEmitter.addListener(event, (nativeMessage) => {\n listener(normalizeNativeMessage(nativeMessage), nativeMessage.completionHandlerId);\n});\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,uBAAuB,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,kBAAkB,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,aAAa,KAAK;AACrH,IAAI,QAAQ,CAAC,sBAAsB,CAAC,aAAa,CAAC,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;AACvF,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addTokenEventListener.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"addTokenEventListener.mjs","sources":["../../../src/apis/addTokenEventListener.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeEventEmitter } from '../nativeModule';\nexport const addTokenEventListener = (event, listener) => nativeEventEmitter.addListener(event, ({ token }) => {\n listener(token);\n});\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,qBAAqB,GAAG,CAAC,KAAK,EAAE,QAAQ,KAAK,kBAAkB,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,KAAK;AAC/G,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;AACpB,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"completeNotification.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"completeNotification.mjs","sources":["../../../src/apis/completeNotification.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const completeNotification = (completionHandlerId) => nativeModule.completeNotification?.(completionHandlerId);\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,oBAAoB,GAAG,CAAC,mBAAmB,KAAK,YAAY,CAAC,oBAAoB,GAAG,mBAAmB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getBadgeCount.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"getBadgeCount.mjs","sources":["../../../src/apis/getBadgeCount.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const getBadgeCount = () => nativeModule.getBadgeCount?.();\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,aAAa,GAAG,MAAM,YAAY,CAAC,aAAa;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getConstants.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"getConstants.mjs","sources":["../../../src/apis/getConstants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const getConstants = () => nativeModule.getConstants();\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,YAAY,GAAG,MAAM,YAAY,CAAC,YAAY;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getLaunchNotification.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"getLaunchNotification.mjs","sources":["../../../src/apis/getLaunchNotification.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nimport { normalizeNativeMessage } from '../utils';\nexport const getLaunchNotification = async () => normalizeNativeMessage((await nativeModule.getLaunchNotification()) ?? undefined);\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,qBAAqB,GAAG,YAAY,sBAAsB,CAAC,CAAC,MAAM,YAAY,CAAC,qBAAqB,EAAE,KAAK,SAAS;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPermissionStatus.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"getPermissionStatus.mjs","sources":["../../../src/apis/getPermissionStatus.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nimport { normalizeNativePermissionStatus } from '../utils';\nexport const getPermissionStatus = async () => normalizeNativePermissionStatus(await nativeModule.getPermissionStatus());\n"],"names":[],"mappings":";;;;AAAA;AACA;AAGY,MAAC,mBAAmB,GAAG,YAAY,+BAA+B,CAAC,MAAM,YAAY,CAAC,mBAAmB,EAAE;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerHeadlessTask.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"registerHeadlessTask.mjs","sources":["../../../src/apis/registerHeadlessTask.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { AppRegistry } from 'react-native';\nimport { getConstants } from './getConstants';\nimport { normalizeNativeMessage } from '../utils';\nexport const registerHeadlessTask = (task) => {\n const { NativeHeadlessTaskKey } = getConstants();\n if (NativeHeadlessTaskKey) {\n AppRegistry.registerHeadlessTask(NativeHeadlessTaskKey, () => async (nativeMessage) => {\n await task(normalizeNativeMessage(nativeMessage));\n });\n }\n};\n"],"names":[],"mappings":";;;;AAAA;AACA;AAIY,MAAC,oBAAoB,GAAG,CAAC,IAAI,KAAK;AAC9C,IAAI,MAAM,EAAE,qBAAqB,EAAE,GAAG,YAAY,EAAE,CAAC;AACrD,IAAI,IAAI,qBAAqB,EAAE;AAC/B,QAAQ,WAAW,CAAC,oBAAoB,CAAC,qBAAqB,EAAE,MAAM,OAAO,aAAa,KAAK;AAC/F,YAAY,MAAM,IAAI,CAAC,sBAAsB,CAAC,aAAa,CAAC,CAAC,CAAC;AAC9D,SAAS,CAAC,CAAC;AACX,KAAK;AACL;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"requestPermissions.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"requestPermissions.mjs","sources":["../../../src/apis/requestPermissions.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const requestPermissions = async ({ alert = true, badge = true, sound = true } = {\n alert: true,\n badge: true,\n sound: true,\n}) => nativeModule.requestPermissions({\n alert,\n badge,\n sound,\n});\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,kBAAkB,GAAG,OAAO,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG;AACxF,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,KAAK,EAAE,IAAI;AACf,CAAC,KAAK,YAAY,CAAC,kBAAkB,CAAC;AACtC,IAAI,KAAK;AACT,IAAI,KAAK;AACT,IAAI,KAAK;AACT,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setBadgeCount.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"setBadgeCount.mjs","sources":["../../../src/apis/setBadgeCount.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { nativeModule } from '../nativeModule';\nexport const setBadgeCount = (count) => nativeModule.setBadgeCount?.(count);\n"],"names":[],"mappings":";;AAAA;AACA;AAEY,MAAC,aAAa,GAAG,CAAC,KAAK,KAAK,YAAY,CAAC,aAAa,GAAG,KAAK;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../src/constants.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Platform } from 'react-native';\n// General\nexport const PACKAGE_NAME = '@aws-amplify/rtn-push-notification';\nexport const LINKING_ERROR = `The ${PACKAGE_NAME} package doesn't seem to be linked. Make sure: \\n\\n` +\n Platform.select({ ios: \"- You have run 'pod install'\\n\", default: '' }) +\n '- You rebuilt the app after installing the package\\n' +\n '- You are not using Expo Go\\n';\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACY,MAAC,YAAY,GAAG,qCAAqC;AACrD,MAAC,aAAa,GAAG,CAAC,IAAI,EAAE,YAAY,CAAC,mDAAmD,CAAC;AACrG,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,gCAAgC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;AAC3E,IAAI,sDAAsD;AAC1D,IAAI;;;;"}
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../src/index.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { addMessageEventListener, addTokenEventListener, completeNotification, getBadgeCount, getConstants, getLaunchNotification, getPermissionStatus, registerHeadlessTask, requestPermissions, setBadgeCount, } from './apis';\nconst module = {\n addMessageEventListener,\n addTokenEventListener,\n completeNotification,\n getBadgeCount,\n getConstants,\n getLaunchNotification,\n getPermissionStatus,\n registerHeadlessTask,\n requestPermissions,\n setBadgeCount,\n};\nexport { module };\n"],"names":[],"mappings":";;;;;;;;;;;AAAA;AACA;AAEK,MAAC,MAAM,GAAG;AACf,IAAI,uBAAuB;AAC3B,IAAI,qBAAqB;AACzB,IAAI,oBAAoB;AACxB,IAAI,aAAa;AACjB,IAAI,YAAY;AAChB,IAAI,qBAAqB;AACzB,IAAI,mBAAmB;AACvB,IAAI,oBAAoB;AACxB,IAAI,kBAAkB;AACtB,IAAI,aAAa;AACjB;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeModule.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"nativeModule.mjs","sources":["../../src/nativeModule.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { NativeModules, NativeEventEmitter } from 'react-native';\nimport { LINKING_ERROR } from './constants';\nexport const nativeModule = NativeModules.AmplifyRTNPushNotification\n ? NativeModules.AmplifyRTNPushNotification\n : new Proxy({}, {\n get() {\n throw new Error(LINKING_ERROR);\n },\n });\nexport const nativeEventEmitter = new NativeEventEmitter(nativeModule);\n"],"names":[],"mappings":";;;AAAA;AACA;AAGY,MAAC,YAAY,GAAG,aAAa,CAAC,0BAA0B;AACpE,MAAM,aAAa,CAAC,0BAA0B;AAC9C,MAAM,IAAI,KAAK,CAAC,EAAE,EAAE;AACpB,QAAQ,GAAG,GAAG;AACd,YAAY,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;AAC3C,SAAS;AACT,KAAK,EAAE;AACK,MAAC,kBAAkB,GAAG,IAAI,kBAAkB,CAAC,YAAY;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeNativeMessage.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"normalizeNativeMessage.mjs","sources":["../../../src/utils/normalizeNativeMessage.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport isEmpty from 'lodash/isEmpty.js';\n/**\n * @internal\n */\nexport const normalizeNativeMessage = (nativeMessage) => {\n let normalized;\n if (isApnsMessage(nativeMessage)) {\n normalized = normalizeApnsMessage(nativeMessage);\n }\n else if (isFcmMessage(nativeMessage)) {\n normalized = normalizeFcmMessage(nativeMessage);\n }\n else {\n return null;\n }\n const { body, imageUrl, title, action, options, data } = normalized;\n return {\n body,\n data,\n imageUrl,\n title,\n ...action,\n ...options,\n };\n};\nconst normalizeApnsMessage = (apnsMessage) => {\n const { aps, data } = apnsMessage;\n const { body, title } = aps.alert ?? {};\n const action = getApnsAction(data?.pinpoint) ?? {};\n const imageUrl = data?.['media-url'];\n const options = getApnsOptions(apnsMessage);\n return { body, imageUrl, title, action, options, data };\n};\nconst normalizeFcmMessage = (fcmMessage) => {\n const { body, imageUrl, rawData: data, title } = fcmMessage;\n const action = getFcmAction(fcmMessage.action) ?? {};\n const options = getFcmOptions(fcmMessage);\n return { body, imageUrl, title, action, options, data };\n};\nconst getApnsAction = (action) => {\n if (action?.deeplink) {\n return { deeplinkUrl: action.deeplink };\n }\n};\nconst getFcmAction = (action) => {\n if (action?.url) {\n return { goToUrl: action.url };\n }\n if (action?.deeplink) {\n return { deeplinkUrl: action.deeplink };\n }\n};\nconst getApnsOptions = ({ aps, }) => {\n const { subtitle } = aps.alert ?? {};\n const apnsOptions = { ...(subtitle && { subtitle }) };\n return { ...(!isEmpty(apnsOptions) && { apnsOptions }) };\n};\nconst getFcmOptions = ({ channelId = '', messageId = '', senderId = '', sendTime = new Date().getTime(), }) => {\n const fcmOptions = {\n channelId,\n messageId,\n senderId,\n sendTime: new Date(sendTime),\n };\n return { ...(!isEmpty(fcmOptions) && { fcmOptions }) };\n};\nconst isApnsMessage = (nativeMessage) => !!nativeMessage?.aps;\nconst isFcmMessage = (nativeMessage) => !!nativeMessage?.rawData;\n"],"names":[],"mappings":";;AAAA;AACA;AAEA;AACA;AACA;AACY,MAAC,sBAAsB,GAAG,CAAC,aAAa,KAAK;AACzD,IAAI,IAAI,UAAU,CAAC;AACnB,IAAI,IAAI,aAAa,CAAC,aAAa,CAAC,EAAE;AACtC,QAAQ,UAAU,GAAG,oBAAoB,CAAC,aAAa,CAAC,CAAC;AACzD,KAAK;AACL,SAAS,IAAI,YAAY,CAAC,aAAa,CAAC,EAAE;AAC1C,QAAQ,UAAU,GAAG,mBAAmB,CAAC,aAAa,CAAC,CAAC;AACxD,KAAK;AACL,SA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AI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,CAAC;AAC3D,CAAC,CAAC;AACF,MAAM,aAAa,GAAG,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa,EAAE,GAAG,CAAC;AAC9D,MAAM,YAAY,GAAG,CAAC,aAAa,KAAK,CAAC,CAAC,aAAa,EAAE,OAAO;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalizeNativePermissionStatus.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"normalizeNativePermissionStatus.mjs","sources":["../../../src/utils/normalizeNativePermissionStatus.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n/**\n * @internal\n */\nexport const normalizeNativePermissionStatus = (nativeStatus) => {\n switch (nativeStatus) {\n case 'ShouldRequest':\n return 'shouldRequest';\n case 'NotDetermined':\n case 'ShouldExplainThenRequest':\n return 'shouldExplainThenRequest';\n case 'Authorized':\n case 'Granted':\n return 'granted';\n case 'Denied':\n return 'denied';\n }\n};\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACY,MAAC,+BAA+B,GAAG,CAAC,YAAY,KAAK;AACjE,IAAI,QAAQ,YAAY;AACxB,QAAQ,KAAK,eAAe;AAC5B,YAAY,OAAO,eAAe,CAAC;AACnC,QAAQ,KAAK,eAAe,CAAC;AAC7B,QAAQ,KAAK,0BAA0B;AACvC,YAAY,OAAO,0BAA0B,CAAC;AAC9C,QAAQ,KAAK,YAAY,CAAC;AAC1B,QAAQ,KAAK,SAAS;AACtB,YAAY,OAAO,SAAS,CAAC;AAC7B,QAAQ,KAAK,QAAQ;AACrB,YAAY,OAAO,QAAQ,CAAC;AAC5B,KAAK;AACL;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/rtn-push-notification",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.15-node-20-action.f356afc.0+f356afc",
|
|
4
4
|
"description": "React Native module for aws-amplify push notifications",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 99"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@types/react-native": "0.70.0"
|
|
26
|
+
"@types/react-native": "0.70.0",
|
|
27
|
+
"typescript": "5.0.2"
|
|
27
28
|
},
|
|
28
29
|
"repository": {
|
|
29
30
|
"type": "git",
|
|
@@ -43,5 +44,5 @@
|
|
|
43
44
|
"dist/esm",
|
|
44
45
|
"src"
|
|
45
46
|
],
|
|
46
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "f356afc3f445230d0c79fe941266a27194358c15"
|
|
47
48
|
}
|