@aws-amplify/notifications 2.0.1-console-preview.be08038.0 → 2.0.1-server-generate-client.1e317a1.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/lib/pushNotifications/Platform/index.d.ts +2 -0
- package/lib/pushNotifications/Platform/index.js +25 -0
- package/lib/pushNotifications/Platform/index.native.d.ts +2 -0
- package/lib/pushNotifications/Platform/index.native.js +7 -0
- package/lib/pushNotifications/Platform/types.d.ts +5 -0
- package/lib/pushNotifications/Platform/types.js +4 -0
- package/lib/tsconfig.build.tsbuildinfo +90 -12
- package/lib-esm/pushNotifications/Platform/index.d.ts +2 -0
- package/lib-esm/pushNotifications/Platform/index.js +23 -0
- package/lib-esm/pushNotifications/Platform/index.native.d.ts +2 -0
- package/lib-esm/pushNotifications/Platform/index.native.js +5 -0
- package/lib-esm/pushNotifications/Platform/types.d.ts +5 -0
- package/lib-esm/pushNotifications/Platform/types.js +2 -0
- package/lib-esm/tsconfig.build.tsbuildinfo +47 -12
- package/package.json +4 -4
- package/src/pushNotifications/Platform/index.native.ts +9 -0
- package/src/pushNotifications/Platform/index.ts +22 -0
- package/src/pushNotifications/Platform/types.ts +15 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
var userAgentIncludes = function (text) {
|
|
6
|
+
var _a;
|
|
7
|
+
return (_a = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes(text);
|
|
8
|
+
};
|
|
9
|
+
var getOS = function () {
|
|
10
|
+
if (userAgentIncludes('Android'))
|
|
11
|
+
return 'android';
|
|
12
|
+
if (userAgentIncludes('like Mac'))
|
|
13
|
+
return 'ios';
|
|
14
|
+
if (userAgentIncludes('Win'))
|
|
15
|
+
return 'windows';
|
|
16
|
+
if (userAgentIncludes('Mac'))
|
|
17
|
+
return 'macos';
|
|
18
|
+
if (userAgentIncludes('Linux'))
|
|
19
|
+
return 'linux';
|
|
20
|
+
if (userAgentIncludes('X11'))
|
|
21
|
+
return 'unix';
|
|
22
|
+
return 'unknown';
|
|
23
|
+
};
|
|
24
|
+
var OS = getOS();
|
|
25
|
+
exports.Platform = { OS: OS };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
var react_native_1 = require("react-native");
|
|
6
|
+
var OS = react_native_1.Platform.OS;
|
|
7
|
+
exports.Platform = { OS: OS };
|
|
@@ -158,8 +158,8 @@
|
|
|
158
158
|
"signature": "d93031677bd533b0d737b02da0f81a7135139631ed9f453455f50061cc40181d"
|
|
159
159
|
},
|
|
160
160
|
"../../core/lib-esm/singleton/Auth/types.d.ts": {
|
|
161
|
-
"version": "
|
|
162
|
-
"signature": "
|
|
161
|
+
"version": "cd3b9309a6cb443d3bbfaa152bc8bdfddcc62e2c1136a4c8cdc3b190e12cf1fa",
|
|
162
|
+
"signature": "cd3b9309a6cb443d3bbfaa152bc8bdfddcc62e2c1136a4c8cdc3b190e12cf1fa"
|
|
163
163
|
},
|
|
164
164
|
"../../core/lib-esm/clients/endpoints/getDnsSuffix.d.ts": {
|
|
165
165
|
"version": "68947051891fb1dde45efbcc0f562b501658b16f5140d2899c6ffd5746c6a2cc",
|
|
@@ -198,8 +198,8 @@
|
|
|
198
198
|
"signature": "8c542877559cd6f411ab47e35a3acb905c0b220461153cf3d5da6ac865cd2245"
|
|
199
199
|
},
|
|
200
200
|
"../../../node_modules/@types/events/index.d.ts": {
|
|
201
|
-
"version": "
|
|
202
|
-
"signature": "
|
|
201
|
+
"version": "e5da7fdc42b400e8cf1121991f3c32efc0750ccd76024db6cad68e38e91a60a3",
|
|
202
|
+
"signature": "e5da7fdc42b400e8cf1121991f3c32efc0750ccd76024db6cad68e38e91a60a3"
|
|
203
203
|
},
|
|
204
204
|
"../../../node_modules/@types/node/inspector.d.ts": {
|
|
205
205
|
"version": "7e49dbf1543b3ee54853ade4c5e9fa460b6a4eca967efe6bf943e0c505d087ed",
|
|
@@ -362,8 +362,8 @@
|
|
|
362
362
|
"signature": "9a7a67ed77e685f0f4fef0b79154fa0645951404e374de8d4cc57dadc864c136"
|
|
363
363
|
},
|
|
364
364
|
"../../../node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts": {
|
|
365
|
-
"version": "
|
|
366
|
-
"signature": "
|
|
365
|
+
"version": "675ec31b704a4c6fab105023dbad7a614b7e60bd6e85172c9ed8c88e77d1e246",
|
|
366
|
+
"signature": "675ec31b704a4c6fab105023dbad7a614b7e60bd6e85172c9ed8c88e77d1e246"
|
|
367
367
|
},
|
|
368
368
|
"../../../node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts": {
|
|
369
369
|
"version": "4f2cfc8b1c9ff5e1f96fcfff8f136181a36ad346e7b6646c7d417c2c21a2bb46",
|
|
@@ -654,8 +654,8 @@
|
|
|
654
654
|
"signature": "8b4034aca6f85bd65594e19eaa642b37fa9f4741f9026ca3ab739c84eb61a1be"
|
|
655
655
|
},
|
|
656
656
|
"../../core/lib-esm/singleton/API/types.d.ts": {
|
|
657
|
-
"version": "
|
|
658
|
-
"signature": "
|
|
657
|
+
"version": "464f8fe93d2969584f36e7a8c3c6ecbe8a9c77a689ac2a2a2e5b663794bf050f",
|
|
658
|
+
"signature": "464f8fe93d2969584f36e7a8c3c6ecbe8a9c77a689ac2a2a2e5b663794bf050f"
|
|
659
659
|
},
|
|
660
660
|
"../../core/lib-esm/providers/pinpoint/types/errors.d.ts": {
|
|
661
661
|
"version": "95abdbf021481c53794a3bd150db5574b83338085f78f1d7aa554e1fea26d461",
|
|
@@ -918,8 +918,8 @@
|
|
|
918
918
|
"signature": "4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288"
|
|
919
919
|
},
|
|
920
920
|
"../../rtn-push-notification/node_modules/@types/prop-types/index.d.ts": {
|
|
921
|
-
"version": "
|
|
922
|
-
"signature": "
|
|
921
|
+
"version": "60ecad5852d4d83edae430e597405132d278a79c10499e9363aecbe1ddc0eade",
|
|
922
|
+
"signature": "60ecad5852d4d83edae430e597405132d278a79c10499e9363aecbe1ddc0eade"
|
|
923
923
|
},
|
|
924
924
|
"../../rtn-push-notification/node_modules/@types/scheduler/tracing.d.ts": {
|
|
925
925
|
"version": "5f8f00356f6a82e21493b2d57b2178f11b00cf8960df00bd37bdcae24c9333ca",
|
|
@@ -1146,8 +1146,8 @@
|
|
|
1146
1146
|
"signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
1147
1147
|
},
|
|
1148
1148
|
"../../../node_modules/@types/uuid/index.d.ts": {
|
|
1149
|
-
"version": "
|
|
1150
|
-
"signature": "
|
|
1149
|
+
"version": "f875e913ef24873eb2a469605402595f1c783070b52a98e53686b32c0f827f7f",
|
|
1150
|
+
"signature": "f875e913ef24873eb2a469605402595f1c783070b52a98e53686b32c0f827f7f"
|
|
1151
1151
|
},
|
|
1152
1152
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": {
|
|
1153
1153
|
"version": "7299856f9e001e93d9c8b8844d9a2d6838756c5fdddfb65cd3456ade4e94cd1c",
|
|
@@ -1565,6 +1565,18 @@
|
|
|
1565
1565
|
"version": "aaf703c869c71b98798dcb05a32e7b48f10cdd72a711c6897b4a14cd7044a77f",
|
|
1566
1566
|
"signature": "aaf703c869c71b98798dcb05a32e7b48f10cdd72a711c6897b4a14cd7044a77f"
|
|
1567
1567
|
},
|
|
1568
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts": {
|
|
1569
|
+
"version": "570fc9ab71a23bfa2aa0f383dfbd9a17f69ce79ab42515cd05f9165a0dec9e06",
|
|
1570
|
+
"signature": "570fc9ab71a23bfa2aa0f383dfbd9a17f69ce79ab42515cd05f9165a0dec9e06"
|
|
1571
|
+
},
|
|
1572
|
+
"../lib-esm/pushNotifications/Platform/index.d.ts": {
|
|
1573
|
+
"version": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb",
|
|
1574
|
+
"signature": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb"
|
|
1575
|
+
},
|
|
1576
|
+
"../lib-esm/pushNotifications/Platform/index.native.d.ts": {
|
|
1577
|
+
"version": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb",
|
|
1578
|
+
"signature": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb"
|
|
1579
|
+
},
|
|
1568
1580
|
"../lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.d.ts": {
|
|
1569
1581
|
"version": "45e2b4d35310ddffc2a6f4b6d525bf91b9c8a322b3914c3a8e5930b32b5b5d3e",
|
|
1570
1582
|
"signature": "45e2b4d35310ddffc2a6f4b6d525bf91b9c8a322b3914c3a8e5930b32b5b5d3e"
|
|
@@ -2021,6 +2033,18 @@
|
|
|
2021
2033
|
"version": "797a551d09f52f1cd75aecc9a3025da87d0b10e42992c3b494f30ad444ab9f84",
|
|
2022
2034
|
"signature": "aaf703c869c71b98798dcb05a32e7b48f10cdd72a711c6897b4a14cd7044a77f"
|
|
2023
2035
|
},
|
|
2036
|
+
"../src/pushNotifications/Platform/types.ts": {
|
|
2037
|
+
"version": "5ff3cba4204b3aa2e3695be943fea7f16b71b0370326993f7305c8e0206c7ed0",
|
|
2038
|
+
"signature": "570fc9ab71a23bfa2aa0f383dfbd9a17f69ce79ab42515cd05f9165a0dec9e06"
|
|
2039
|
+
},
|
|
2040
|
+
"../src/pushNotifications/Platform/index.native.ts": {
|
|
2041
|
+
"version": "791abfb2895a98a169fbdab6daac458480f6dad48efd66942288cf996271beda",
|
|
2042
|
+
"signature": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb"
|
|
2043
|
+
},
|
|
2044
|
+
"../src/pushNotifications/Platform/index.ts": {
|
|
2045
|
+
"version": "696b8b917014f7fabab822d58da4bd6aa603a7f7c82378085efde389f0319d05",
|
|
2046
|
+
"signature": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb"
|
|
2047
|
+
},
|
|
2024
2048
|
"../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts": {
|
|
2025
2049
|
"version": "96ae679391bfe4c6ba25e390c9ec93bd49b0fe8fcad94b43aa9207a5a6692fc5",
|
|
2026
2050
|
"signature": "45e2b4d35310ddffc2a6f4b6d525bf91b9c8a322b3914c3a8e5930b32b5b5d3e"
|
|
@@ -4287,6 +4311,20 @@
|
|
|
4287
4311
|
"../../../node_modules/@types/node/base.d.ts",
|
|
4288
4312
|
"../../../node_modules/@types/node/index.d.ts"
|
|
4289
4313
|
],
|
|
4314
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts": [
|
|
4315
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
4316
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
4317
|
+
],
|
|
4318
|
+
"../lib-esm/pushNotifications/Platform/index.d.ts": [
|
|
4319
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts",
|
|
4320
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
4321
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
4322
|
+
],
|
|
4323
|
+
"../lib-esm/pushNotifications/Platform/index.native.d.ts": [
|
|
4324
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts",
|
|
4325
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
4326
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
4327
|
+
],
|
|
4290
4328
|
"../lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.d.ts": [
|
|
4291
4329
|
"../lib-esm/pushNotifications/providers/pinpoint/types/index.d.ts",
|
|
4292
4330
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -5135,6 +5173,20 @@
|
|
|
5135
5173
|
"../../../node_modules/@types/node/base.d.ts",
|
|
5136
5174
|
"../../../node_modules/@types/node/index.d.ts"
|
|
5137
5175
|
],
|
|
5176
|
+
"../src/pushNotifications/Platform/types.ts": [
|
|
5177
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
5178
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
5179
|
+
],
|
|
5180
|
+
"../src/pushNotifications/Platform/index.native.ts": [
|
|
5181
|
+
"../src/pushNotifications/Platform/types.ts",
|
|
5182
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
5183
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
5184
|
+
],
|
|
5185
|
+
"../src/pushNotifications/Platform/index.ts": [
|
|
5186
|
+
"../src/pushNotifications/Platform/types.ts",
|
|
5187
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
5188
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
5189
|
+
],
|
|
5138
5190
|
"../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts": [
|
|
5139
5191
|
"../../react-native/lib-esm/index.d.ts",
|
|
5140
5192
|
"../src/pushNotifications/errors/errorHelpers.ts",
|
|
@@ -7019,6 +7071,12 @@
|
|
|
7019
7071
|
"../../../node_modules/@types/node/inspector.d.ts",
|
|
7020
7072
|
"../../../node_modules/@types/node/index.d.ts"
|
|
7021
7073
|
],
|
|
7074
|
+
"../src/pushNotifications/Platform/index.ts": [
|
|
7075
|
+
"../src/pushNotifications/Platform/types.ts"
|
|
7076
|
+
],
|
|
7077
|
+
"../src/pushNotifications/Platform/index.native.ts": [
|
|
7078
|
+
"../src/pushNotifications/Platform/types.ts"
|
|
7079
|
+
],
|
|
7022
7080
|
"../../../node_modules/@types/lodash/flatten.d.ts": [
|
|
7023
7081
|
"../../../node_modules/@types/lodash/index.d.ts",
|
|
7024
7082
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -7264,6 +7322,20 @@
|
|
|
7264
7322
|
"../../../node_modules/@types/node/base.d.ts",
|
|
7265
7323
|
"../../../node_modules/@types/node/index.d.ts"
|
|
7266
7324
|
],
|
|
7325
|
+
"../lib-esm/pushNotifications/Platform/index.native.d.ts": [
|
|
7326
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts",
|
|
7327
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
7328
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
7329
|
+
],
|
|
7330
|
+
"../lib-esm/pushNotifications/Platform/index.d.ts": [
|
|
7331
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts",
|
|
7332
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
7333
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
7334
|
+
],
|
|
7335
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts": [
|
|
7336
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
7337
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
7338
|
+
],
|
|
7267
7339
|
"../lib-esm/pushNotifications/providers/pinpoint/types/analytics.d.ts": [
|
|
7268
7340
|
"../../../node_modules/@types/node/base.d.ts",
|
|
7269
7341
|
"../../../node_modules/@types/node/index.d.ts"
|
|
@@ -8420,6 +8492,9 @@
|
|
|
8420
8492
|
"../lib-esm/pushNotifications/errors/errorHelpers.d.ts",
|
|
8421
8493
|
"../lib-esm/pushNotifications/errors/index.d.ts",
|
|
8422
8494
|
"../lib-esm/pushNotifications/index.d.ts",
|
|
8495
|
+
"../lib-esm/pushNotifications/Platform/types.d.ts",
|
|
8496
|
+
"../lib-esm/pushNotifications/Platform/index.d.ts",
|
|
8497
|
+
"../lib-esm/pushNotifications/Platform/index.native.d.ts",
|
|
8423
8498
|
"../lib-esm/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.d.ts",
|
|
8424
8499
|
"../lib-esm/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.d.ts",
|
|
8425
8500
|
"../lib-esm/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.d.ts",
|
|
@@ -8534,6 +8609,9 @@
|
|
|
8534
8609
|
"../src/pushNotifications/providers/pinpoint/apis/index.ts",
|
|
8535
8610
|
"../src/pushNotifications/providers/pinpoint/index.ts",
|
|
8536
8611
|
"../src/pushNotifications/index.ts",
|
|
8612
|
+
"../src/pushNotifications/Platform/types.ts",
|
|
8613
|
+
"../src/pushNotifications/Platform/index.native.ts",
|
|
8614
|
+
"../src/pushNotifications/Platform/index.ts",
|
|
8537
8615
|
"../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts",
|
|
8538
8616
|
"../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.ts",
|
|
8539
8617
|
"../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.ts",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
var userAgentIncludes = function (text) {
|
|
4
|
+
var _a;
|
|
5
|
+
return (_a = navigator === null || navigator === void 0 ? void 0 : navigator.userAgent) === null || _a === void 0 ? void 0 : _a.includes(text);
|
|
6
|
+
};
|
|
7
|
+
var getOS = function () {
|
|
8
|
+
if (userAgentIncludes('Android'))
|
|
9
|
+
return 'android';
|
|
10
|
+
if (userAgentIncludes('like Mac'))
|
|
11
|
+
return 'ios';
|
|
12
|
+
if (userAgentIncludes('Win'))
|
|
13
|
+
return 'windows';
|
|
14
|
+
if (userAgentIncludes('Mac'))
|
|
15
|
+
return 'macos';
|
|
16
|
+
if (userAgentIncludes('Linux'))
|
|
17
|
+
return 'linux';
|
|
18
|
+
if (userAgentIncludes('X11'))
|
|
19
|
+
return 'unix';
|
|
20
|
+
return 'unknown';
|
|
21
|
+
};
|
|
22
|
+
var OS = getOS();
|
|
23
|
+
export var Platform = { OS: OS };
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
"signature": "d93031677bd533b0d737b02da0f81a7135139631ed9f453455f50061cc40181d"
|
|
163
163
|
},
|
|
164
164
|
"../../core/lib-esm/singleton/Auth/types.d.ts": {
|
|
165
|
-
"version": "
|
|
166
|
-
"signature": "
|
|
165
|
+
"version": "cd3b9309a6cb443d3bbfaa152bc8bdfddcc62e2c1136a4c8cdc3b190e12cf1fa",
|
|
166
|
+
"signature": "cd3b9309a6cb443d3bbfaa152bc8bdfddcc62e2c1136a4c8cdc3b190e12cf1fa"
|
|
167
167
|
},
|
|
168
168
|
"../../core/lib-esm/clients/endpoints/getDnsSuffix.d.ts": {
|
|
169
169
|
"version": "68947051891fb1dde45efbcc0f562b501658b16f5140d2899c6ffd5746c6a2cc",
|
|
@@ -202,8 +202,8 @@
|
|
|
202
202
|
"signature": "8c542877559cd6f411ab47e35a3acb905c0b220461153cf3d5da6ac865cd2245"
|
|
203
203
|
},
|
|
204
204
|
"../../../node_modules/@types/events/index.d.ts": {
|
|
205
|
-
"version": "
|
|
206
|
-
"signature": "
|
|
205
|
+
"version": "e5da7fdc42b400e8cf1121991f3c32efc0750ccd76024db6cad68e38e91a60a3",
|
|
206
|
+
"signature": "e5da7fdc42b400e8cf1121991f3c32efc0750ccd76024db6cad68e38e91a60a3"
|
|
207
207
|
},
|
|
208
208
|
"../../../node_modules/@types/node/inspector.d.ts": {
|
|
209
209
|
"version": "7e49dbf1543b3ee54853ade4c5e9fa460b6a4eca967efe6bf943e0c505d087ed",
|
|
@@ -366,8 +366,8 @@
|
|
|
366
366
|
"signature": "9a7a67ed77e685f0f4fef0b79154fa0645951404e374de8d4cc57dadc864c136"
|
|
367
367
|
},
|
|
368
368
|
"../../../node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts": {
|
|
369
|
-
"version": "
|
|
370
|
-
"signature": "
|
|
369
|
+
"version": "675ec31b704a4c6fab105023dbad7a614b7e60bd6e85172c9ed8c88e77d1e246",
|
|
370
|
+
"signature": "675ec31b704a4c6fab105023dbad7a614b7e60bd6e85172c9ed8c88e77d1e246"
|
|
371
371
|
},
|
|
372
372
|
"../../../node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts": {
|
|
373
373
|
"version": "4f2cfc8b1c9ff5e1f96fcfff8f136181a36ad346e7b6646c7d417c2c21a2bb46",
|
|
@@ -658,8 +658,8 @@
|
|
|
658
658
|
"signature": "8b4034aca6f85bd65594e19eaa642b37fa9f4741f9026ca3ab739c84eb61a1be"
|
|
659
659
|
},
|
|
660
660
|
"../../core/lib-esm/singleton/API/types.d.ts": {
|
|
661
|
-
"version": "
|
|
662
|
-
"signature": "
|
|
661
|
+
"version": "464f8fe93d2969584f36e7a8c3c6ecbe8a9c77a689ac2a2a2e5b663794bf050f",
|
|
662
|
+
"signature": "464f8fe93d2969584f36e7a8c3c6ecbe8a9c77a689ac2a2a2e5b663794bf050f"
|
|
663
663
|
},
|
|
664
664
|
"../../core/lib-esm/providers/pinpoint/types/errors.d.ts": {
|
|
665
665
|
"version": "95abdbf021481c53794a3bd150db5574b83338085f78f1d7aa554e1fea26d461",
|
|
@@ -922,8 +922,8 @@
|
|
|
922
922
|
"signature": "4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288"
|
|
923
923
|
},
|
|
924
924
|
"../../rtn-push-notification/node_modules/@types/prop-types/index.d.ts": {
|
|
925
|
-
"version": "
|
|
926
|
-
"signature": "
|
|
925
|
+
"version": "60ecad5852d4d83edae430e597405132d278a79c10499e9363aecbe1ddc0eade",
|
|
926
|
+
"signature": "60ecad5852d4d83edae430e597405132d278a79c10499e9363aecbe1ddc0eade"
|
|
927
927
|
},
|
|
928
928
|
"../../rtn-push-notification/node_modules/@types/scheduler/tracing.d.ts": {
|
|
929
929
|
"version": "5f8f00356f6a82e21493b2d57b2178f11b00cf8960df00bd37bdcae24c9333ca",
|
|
@@ -1142,8 +1142,8 @@
|
|
|
1142
1142
|
"signature": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
1143
1143
|
},
|
|
1144
1144
|
"../../../node_modules/@types/uuid/index.d.ts": {
|
|
1145
|
-
"version": "
|
|
1146
|
-
"signature": "
|
|
1145
|
+
"version": "f875e913ef24873eb2a469605402595f1c783070b52a98e53686b32c0f827f7f",
|
|
1146
|
+
"signature": "f875e913ef24873eb2a469605402595f1c783070b52a98e53686b32c0f827f7f"
|
|
1147
1147
|
},
|
|
1148
1148
|
"../../core/lib-esm/utils/amplifyUuid/index.d.ts": {
|
|
1149
1149
|
"version": "7299856f9e001e93d9c8b8844d9a2d6838756c5fdddfb65cd3456ade4e94cd1c",
|
|
@@ -1649,6 +1649,18 @@
|
|
|
1649
1649
|
"version": "797a551d09f52f1cd75aecc9a3025da87d0b10e42992c3b494f30ad444ab9f84",
|
|
1650
1650
|
"signature": "aaf703c869c71b98798dcb05a32e7b48f10cdd72a711c6897b4a14cd7044a77f"
|
|
1651
1651
|
},
|
|
1652
|
+
"../src/pushNotifications/Platform/types.ts": {
|
|
1653
|
+
"version": "5ff3cba4204b3aa2e3695be943fea7f16b71b0370326993f7305c8e0206c7ed0",
|
|
1654
|
+
"signature": "570fc9ab71a23bfa2aa0f383dfbd9a17f69ce79ab42515cd05f9165a0dec9e06"
|
|
1655
|
+
},
|
|
1656
|
+
"../src/pushNotifications/Platform/index.native.ts": {
|
|
1657
|
+
"version": "791abfb2895a98a169fbdab6daac458480f6dad48efd66942288cf996271beda",
|
|
1658
|
+
"signature": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb"
|
|
1659
|
+
},
|
|
1660
|
+
"../src/pushNotifications/Platform/index.ts": {
|
|
1661
|
+
"version": "696b8b917014f7fabab822d58da4bd6aa603a7f7c82378085efde389f0319d05",
|
|
1662
|
+
"signature": "f2b5bfae2d479822a4ee2af054ecaf806bcd21fd39156ab2dd7a511a7d2a1beb"
|
|
1663
|
+
},
|
|
1652
1664
|
"../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts": {
|
|
1653
1665
|
"version": "96ae679391bfe4c6ba25e390c9ec93bd49b0fe8fcad94b43aa9207a5a6692fc5",
|
|
1654
1666
|
"signature": "45e2b4d35310ddffc2a6f4b6d525bf91b9c8a322b3914c3a8e5930b32b5b5d3e"
|
|
@@ -4241,6 +4253,20 @@
|
|
|
4241
4253
|
"../../../node_modules/@types/node/base.d.ts",
|
|
4242
4254
|
"../../../node_modules/@types/node/index.d.ts"
|
|
4243
4255
|
],
|
|
4256
|
+
"../src/pushNotifications/Platform/types.ts": [
|
|
4257
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
4258
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
4259
|
+
],
|
|
4260
|
+
"../src/pushNotifications/Platform/index.native.ts": [
|
|
4261
|
+
"../src/pushNotifications/Platform/types.ts",
|
|
4262
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
4263
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
4264
|
+
],
|
|
4265
|
+
"../src/pushNotifications/Platform/index.ts": [
|
|
4266
|
+
"../src/pushNotifications/Platform/types.ts",
|
|
4267
|
+
"../../../node_modules/@types/node/base.d.ts",
|
|
4268
|
+
"../../../node_modules/@types/node/index.d.ts"
|
|
4269
|
+
],
|
|
4244
4270
|
"../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts": [
|
|
4245
4271
|
"../../react-native/lib-esm/index.d.ts",
|
|
4246
4272
|
"../src/pushNotifications/errors/errorHelpers.ts",
|
|
@@ -5677,6 +5703,12 @@
|
|
|
5677
5703
|
"../../../node_modules/@types/node/inspector.d.ts",
|
|
5678
5704
|
"../../../node_modules/@types/node/index.d.ts"
|
|
5679
5705
|
],
|
|
5706
|
+
"../src/pushNotifications/Platform/index.ts": [
|
|
5707
|
+
"../src/pushNotifications/Platform/types.ts"
|
|
5708
|
+
],
|
|
5709
|
+
"../src/pushNotifications/Platform/index.native.ts": [
|
|
5710
|
+
"../src/pushNotifications/Platform/types.ts"
|
|
5711
|
+
],
|
|
5680
5712
|
"../../../node_modules/@types/lodash/flatten.d.ts": [
|
|
5681
5713
|
"../../../node_modules/@types/lodash/index.d.ts",
|
|
5682
5714
|
"../../../node_modules/@types/node/base.d.ts",
|
|
@@ -7025,6 +7057,9 @@
|
|
|
7025
7057
|
"../src/pushNotifications/providers/pinpoint/apis/index.ts",
|
|
7026
7058
|
"../src/pushNotifications/providers/pinpoint/index.ts",
|
|
7027
7059
|
"../src/pushNotifications/index.ts",
|
|
7060
|
+
"../src/pushNotifications/Platform/types.ts",
|
|
7061
|
+
"../src/pushNotifications/Platform/index.native.ts",
|
|
7062
|
+
"../src/pushNotifications/Platform/index.ts",
|
|
7028
7063
|
"../src/pushNotifications/providers/pinpoint/apis/getBadgeCount.native.ts",
|
|
7029
7064
|
"../src/pushNotifications/providers/pinpoint/apis/getLaunchNotification.native.ts",
|
|
7030
7065
|
"../src/pushNotifications/providers/pinpoint/apis/getPermissionStatus.native.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/notifications",
|
|
3
|
-
"version": "2.0.1-
|
|
3
|
+
"version": "2.0.1-server-generate-client.1e317a1.0+1e317a1",
|
|
4
4
|
"description": "Notifications category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -97,15 +97,15 @@
|
|
|
97
97
|
"lodash": "^4.17.21"
|
|
98
98
|
},
|
|
99
99
|
"peerDependencies": {
|
|
100
|
-
"@aws-amplify/core": "6.0.1-
|
|
100
|
+
"@aws-amplify/core": "6.0.1-server-generate-client.1e317a1.0+1e317a1"
|
|
101
101
|
},
|
|
102
102
|
"devDependencies": {
|
|
103
|
-
"@aws-amplify/core": "6.0.1-
|
|
103
|
+
"@aws-amplify/core": "6.0.1-server-generate-client.1e317a1.0+1e317a1",
|
|
104
104
|
"@babel/core": "7.15.5",
|
|
105
105
|
"@babel/plugin-proposal-class-properties": "^7.0.0",
|
|
106
106
|
"@babel/plugin-proposal-private-methods": "^7.0.0",
|
|
107
107
|
"@babel/plugin-proposal-private-property-in-object": "^7.0.0",
|
|
108
108
|
"metro-react-native-babel-preset": "^0.66.2"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "1e317a10a7a7e980919b0d78e397bcff1461fec5"
|
|
111
111
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import { Platform as NativePlatform } from 'react-native';
|
|
5
|
+
import { Platform as PlatformInterface } from './types';
|
|
6
|
+
|
|
7
|
+
const { OS } = NativePlatform;
|
|
8
|
+
|
|
9
|
+
export const Platform: PlatformInterface = { OS };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
import { Platform as PlatformInterface } from './types';
|
|
5
|
+
|
|
6
|
+
const userAgentIncludes = (text: string): boolean => {
|
|
7
|
+
return navigator?.userAgent?.includes(text);
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const getOS = (): PlatformInterface['OS'] => {
|
|
11
|
+
if (userAgentIncludes('Android')) return 'android';
|
|
12
|
+
if (userAgentIncludes('like Mac')) return 'ios';
|
|
13
|
+
if (userAgentIncludes('Win')) return 'windows';
|
|
14
|
+
if (userAgentIncludes('Mac')) return 'macos';
|
|
15
|
+
if (userAgentIncludes('Linux')) return 'linux';
|
|
16
|
+
if (userAgentIncludes('X11')) return 'unix';
|
|
17
|
+
return 'unknown';
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const OS = getOS();
|
|
21
|
+
|
|
22
|
+
export const Platform: PlatformInterface = { OS };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
export interface Platform {
|
|
5
|
+
OS: KnownOS | 'unknown';
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type KnownOS =
|
|
9
|
+
| 'windows'
|
|
10
|
+
| 'macos'
|
|
11
|
+
| 'unix'
|
|
12
|
+
| 'linux'
|
|
13
|
+
| 'ios'
|
|
14
|
+
| 'android'
|
|
15
|
+
| 'web';
|