@aws-amplify/core 6.0.1-console-preview.11cf989.0 → 6.0.1-console-preview.4ae78ed.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/AwsClients/CognitoIdentity/getCredentialsForIdentity.d.ts +2 -1
- package/lib/AwsClients/CognitoIdentity/getId.d.ts +2 -1
- package/lib/AwsClients/Pinpoint/getInAppMessages.d.ts +3 -2
- package/lib/AwsClients/Pinpoint/putEvents.d.ts +3 -2
- package/lib/AwsClients/Pinpoint/updateEndpoint.d.ts +3 -2
- package/lib/Cache/AsyncStorageCache.d.ts +1 -1
- package/lib/Cache/AsyncStorageCache.js +20 -22
- package/lib/Platform/types.d.ts +3 -2
- package/lib/Platform/types.js +3 -2
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/Reachability/Reachability.native.d.ts +2 -2
- package/lib/clients/handlers/fetch.js +2 -1
- package/lib/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -1
- package/lib/clients/middleware/signing/signer/signatureV4/index.native.js +2 -1
- package/lib/clients/types/http.d.ts +17 -1
- package/lib/libraryUtils.d.ts +2 -1
- package/lib/libraryUtils.js +4 -1
- package/lib/parseAWSExports.js +24 -8
- package/lib/providers/kinesis/types/index.d.ts +1 -0
- package/lib/providers/kinesis/types/index.js +19 -0
- package/lib/providers/kinesis/types/kinesis.d.ts +9 -0
- package/lib/providers/kinesis/types/kinesis.js +4 -0
- package/lib/providers/kinesis-firehose/types/index.d.ts +1 -0
- package/lib/providers/kinesis-firehose/types/index.js +4 -0
- package/lib/providers/kinesis-firehose/types/kinesis-firehose.d.ts +9 -0
- package/lib/providers/kinesis-firehose/types/kinesis-firehose.js +4 -0
- package/lib/providers/personalize/types/index.d.ts +1 -0
- package/lib/providers/personalize/types/index.js +4 -0
- package/lib/providers/personalize/types/personalize.d.ts +8 -0
- package/lib/providers/personalize/types/personalize.js +4 -0
- package/lib/providers/pinpoint/apis/flushEvents.d.ts +2 -0
- package/lib/providers/pinpoint/apis/flushEvents.js +21 -0
- package/lib/providers/pinpoint/apis/index.d.ts +1 -0
- package/lib/providers/pinpoint/apis/index.js +3 -1
- package/lib/providers/pinpoint/types/pinpoint.d.ts +1 -1
- package/lib/providers/pinpoint/utils/PinpointEventBuffer.d.ts +1 -0
- package/lib/providers/pinpoint/utils/PinpointEventBuffer.js +3 -0
- package/lib/singleton/API/types.d.ts +66 -29
- package/lib/singleton/Analytics/types.d.ts +4 -1
- package/lib/singleton/Auth/utils/index.js +1 -1
- package/lib/storage/DefaultStorage.native.d.ts +2 -2
- package/lib/storage/DefaultStorage.native.js +3 -24
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/globalHelpers/index.native.d.ts +0 -1
- package/lib/utils/globalHelpers/index.native.js +2 -1
- package/lib-esm/AwsClients/CognitoIdentity/getCredentialsForIdentity.d.ts +2 -1
- package/lib-esm/AwsClients/CognitoIdentity/getId.d.ts +2 -1
- package/lib-esm/AwsClients/Pinpoint/getInAppMessages.d.ts +3 -2
- package/lib-esm/AwsClients/Pinpoint/putEvents.d.ts +3 -2
- package/lib-esm/AwsClients/Pinpoint/updateEndpoint.d.ts +3 -2
- package/lib-esm/Cache/AsyncStorageCache.d.ts +1 -1
- package/lib-esm/Cache/AsyncStorageCache.js +2 -1
- package/lib-esm/Platform/types.d.ts +3 -2
- package/lib-esm/Platform/types.js +3 -2
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/Reachability/Reachability.native.d.ts +2 -2
- package/lib-esm/clients/handlers/fetch.js +2 -1
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -1
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.js +2 -1
- package/lib-esm/clients/types/http.d.ts +17 -1
- package/lib-esm/libraryUtils.d.ts +2 -1
- package/lib-esm/libraryUtils.js +2 -0
- package/lib-esm/parseAWSExports.js +24 -8
- package/lib-esm/providers/kinesis/types/index.d.ts +1 -0
- package/lib-esm/providers/kinesis/types/index.js +3 -0
- package/lib-esm/providers/kinesis/types/kinesis.d.ts +9 -0
- package/lib-esm/providers/kinesis/types/kinesis.js +3 -0
- package/lib-esm/providers/kinesis-firehose/types/index.d.ts +1 -0
- package/lib-esm/providers/kinesis-firehose/types/index.js +3 -0
- package/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.d.ts +9 -0
- package/lib-esm/providers/kinesis-firehose/types/kinesis-firehose.js +3 -0
- package/lib-esm/providers/personalize/types/index.d.ts +1 -0
- package/lib-esm/providers/personalize/types/index.js +3 -0
- package/lib-esm/providers/personalize/types/personalize.d.ts +8 -0
- package/lib-esm/providers/personalize/types/personalize.js +3 -0
- package/lib-esm/providers/pinpoint/apis/flushEvents.d.ts +2 -0
- package/lib-esm/providers/pinpoint/apis/flushEvents.js +17 -0
- package/lib-esm/providers/pinpoint/apis/index.d.ts +1 -0
- package/lib-esm/providers/pinpoint/apis/index.js +1 -0
- package/lib-esm/providers/pinpoint/types/pinpoint.d.ts +1 -1
- package/lib-esm/providers/pinpoint/utils/PinpointEventBuffer.d.ts +1 -0
- package/lib-esm/providers/pinpoint/utils/PinpointEventBuffer.js +3 -0
- package/lib-esm/singleton/API/types.d.ts +66 -29
- package/lib-esm/singleton/Analytics/types.d.ts +4 -1
- package/lib-esm/singleton/Auth/utils/index.js +1 -1
- package/lib-esm/storage/DefaultStorage.native.d.ts +2 -2
- package/lib-esm/storage/DefaultStorage.native.js +3 -24
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/utils/globalHelpers/index.native.d.ts +0 -1
- package/lib-esm/utils/globalHelpers/index.native.js +2 -1
- package/package.json +4 -10
- package/src/Cache/AsyncStorageCache.ts +2 -1
- package/src/Hub/index.ts +1 -0
- package/src/Platform/types.ts +3 -2
- package/src/Platform/version.ts +1 -1
- package/src/Reachability/Reachability.native.ts +4 -2
- package/src/Signer/DateUtils.ts +1 -1
- package/src/clients/handlers/fetch.ts +5 -1
- package/src/clients/middleware/signing/signer/signatureV4/index.native.ts +3 -1
- package/src/clients/types/http.ts +19 -1
- package/src/libraryUtils.ts +4 -1
- package/src/parseAWSExports.ts +38 -7
- package/src/providers/kinesis/types/index.ts +4 -0
- package/src/providers/kinesis/types/kinesis.ts +12 -0
- package/src/providers/kinesis-firehose/types/index.ts +4 -0
- package/src/providers/kinesis-firehose/types/kinesis-firehose.ts +12 -0
- package/src/providers/personalize/types/index.ts +4 -0
- package/src/providers/personalize/types/personalize.ts +11 -0
- package/src/providers/pinpoint/apis/flushEvents.ts +31 -0
- package/src/providers/pinpoint/apis/index.ts +1 -0
- package/src/providers/pinpoint/types/pinpoint.ts +1 -1
- package/src/providers/pinpoint/utils/PinpointEventBuffer.ts +4 -0
- package/src/singleton/API/types.ts +77 -26
- package/src/singleton/Analytics/types.ts +7 -1
- package/src/singleton/Auth/utils/index.ts +1 -1
- package/src/storage/DefaultStorage.native.ts +6 -26
- package/src/utils/globalHelpers/index.native.ts +3 -1
- package/polyfills/URL/index.ts +0 -14
- package/polyfills/URL/tsconfig.json +0 -10
- package/polyfills/URL/webpack.config.js +0 -43
|
@@ -14,8 +14,9 @@ export declare const getCredentialsForIdentity: (config: {
|
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
16
16
|
} & {
|
|
17
|
-
region: string;
|
|
18
17
|
abortSignal?: AbortSignal | undefined;
|
|
18
|
+
withCrossDomainCredentials?: boolean | undefined;
|
|
19
19
|
maxAttempts?: number | undefined;
|
|
20
20
|
userAgentHeader?: string | undefined;
|
|
21
|
+
region: string;
|
|
21
22
|
}, input: GetCredentialsForIdentityInput) => Promise<GetCredentialsForIdentityOutput>;
|
|
@@ -14,8 +14,9 @@ export declare const getId: (config: {
|
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
cache?: "default" | "force-cache" | "no-cache" | "no-store" | "only-if-cached" | "reload" | undefined;
|
|
16
16
|
} & {
|
|
17
|
-
region: string;
|
|
18
17
|
abortSignal?: AbortSignal | undefined;
|
|
18
|
+
withCrossDomainCredentials?: boolean | undefined;
|
|
19
19
|
maxAttempts?: number | undefined;
|
|
20
20
|
userAgentHeader?: string | undefined;
|
|
21
|
+
region: string;
|
|
21
22
|
}, input: GetIdInput) => Promise<GetIdOutput>;
|
|
@@ -13,11 +13,12 @@ export declare const getInAppMessages: (config: {
|
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
} & {
|
|
16
|
-
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
17
|
-
region: string;
|
|
18
16
|
abortSignal?: AbortSignal | undefined;
|
|
19
17
|
cache?: RequestCache | undefined;
|
|
18
|
+
withCrossDomainCredentials?: boolean | undefined;
|
|
20
19
|
maxAttempts?: number | undefined;
|
|
21
20
|
userAgentHeader?: string | undefined;
|
|
22
21
|
uriEscapePath?: boolean | undefined;
|
|
22
|
+
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
23
|
+
region: string;
|
|
23
24
|
}, input: GetInAppMessagesInput) => Promise<GetInAppMessagesOutput>;
|
|
@@ -13,11 +13,12 @@ export declare const putEvents: (config: {
|
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
} & {
|
|
16
|
-
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
17
|
-
region: string;
|
|
18
16
|
abortSignal?: AbortSignal | undefined;
|
|
19
17
|
cache?: RequestCache | undefined;
|
|
18
|
+
withCrossDomainCredentials?: boolean | undefined;
|
|
20
19
|
maxAttempts?: number | undefined;
|
|
21
20
|
userAgentHeader?: string | undefined;
|
|
22
21
|
uriEscapePath?: boolean | undefined;
|
|
22
|
+
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
23
|
+
region: string;
|
|
23
24
|
}, input: PutEventsInput) => Promise<PutEventsOutput>;
|
|
@@ -13,11 +13,12 @@ export declare const updateEndpoint: (config: {
|
|
|
13
13
|
computeDelay?: ((attempt: number) => number) | undefined;
|
|
14
14
|
userAgentValue?: string | undefined;
|
|
15
15
|
} & {
|
|
16
|
-
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
17
|
-
region: string;
|
|
18
16
|
abortSignal?: AbortSignal | undefined;
|
|
19
17
|
cache?: RequestCache | undefined;
|
|
18
|
+
withCrossDomainCredentials?: boolean | undefined;
|
|
20
19
|
maxAttempts?: number | undefined;
|
|
21
20
|
userAgentHeader?: string | undefined;
|
|
22
21
|
uriEscapePath?: boolean | undefined;
|
|
22
|
+
credentials: import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity | (() => Promise<import("@smithy/types/dist-types/identity/awsCredentialIdentity").AwsCredentialIdentity>);
|
|
23
|
+
region: string;
|
|
23
24
|
}, input: UpdateEndpointInput) => Promise<UpdateEndpointOutput>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import AsyncStorage from '@react-native-async-storage/async-storage';
|
|
2
1
|
import { StorageCache } from './StorageCache';
|
|
3
2
|
import { CacheConfig, CacheItem, CacheItemOptions, ICache } from './types';
|
|
3
|
+
declare const AsyncStorage: import("@react-native-async-storage/async-storage").AsyncStorageStatic;
|
|
4
4
|
export declare class AsyncStorageCache extends StorageCache implements ICache {
|
|
5
5
|
/**
|
|
6
6
|
* initialize the cache
|
|
@@ -52,19 +52,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
52
52
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
53
53
|
}
|
|
54
54
|
};
|
|
55
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
56
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
57
|
-
};
|
|
58
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
56
|
exports.Cache = exports.AsyncStorage = exports.AsyncStorageCache = void 0;
|
|
60
|
-
var
|
|
61
|
-
exports.AsyncStorage = async_storage_1.default;
|
|
57
|
+
var react_native_1 = require("@aws-amplify/react-native");
|
|
62
58
|
var Logger_1 = require("../Logger");
|
|
63
59
|
var StorageCache_1 = require("./StorageCache");
|
|
64
60
|
var Utils_1 = require("./Utils");
|
|
65
61
|
var CacheUtils_1 = require("./Utils/CacheUtils");
|
|
66
62
|
var errorHelpers_1 = require("./Utils/errorHelpers");
|
|
67
63
|
var logger = new Logger_1.ConsoleLogger('AsyncStorageCache');
|
|
64
|
+
var AsyncStorage = (0, react_native_1.loadAsyncStorage)();
|
|
65
|
+
exports.AsyncStorage = AsyncStorage;
|
|
68
66
|
/*
|
|
69
67
|
* Customized cache which based on the AsyncStorage with LRU implemented
|
|
70
68
|
*/
|
|
@@ -96,7 +94,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
96
94
|
case 0: return [4 /*yield*/, this.getCacheCurSize()];
|
|
97
95
|
case 1:
|
|
98
96
|
curSize = _a.sent();
|
|
99
|
-
return [4 /*yield*/,
|
|
97
|
+
return [4 /*yield*/, AsyncStorage.setItem((0, CacheUtils_1.getCurrSizeKey)(this.cacheConfig.keyPrefix), (curSize - amount).toString())];
|
|
100
98
|
case 2:
|
|
101
99
|
_a.sent();
|
|
102
100
|
return [2 /*return*/];
|
|
@@ -117,7 +115,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
117
115
|
case 0: return [4 /*yield*/, this.getCacheCurSize()];
|
|
118
116
|
case 1:
|
|
119
117
|
curSize = _a.sent();
|
|
120
|
-
return [4 /*yield*/,
|
|
118
|
+
return [4 /*yield*/, AsyncStorage.setItem((0, CacheUtils_1.getCurrSizeKey)(this.cacheConfig.keyPrefix), (curSize + amount).toString())];
|
|
121
119
|
case 2:
|
|
122
120
|
_a.sent();
|
|
123
121
|
return [2 /*return*/];
|
|
@@ -139,7 +137,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
139
137
|
switch (_a.label) {
|
|
140
138
|
case 0:
|
|
141
139
|
item.visitedTime = (0, Utils_1.getCurrTime)();
|
|
142
|
-
return [4 /*yield*/,
|
|
140
|
+
return [4 /*yield*/, AsyncStorage.setItem(prefixedKey, JSON.stringify(item))];
|
|
143
141
|
case 1:
|
|
144
142
|
_a.sent();
|
|
145
143
|
return [2 /*return*/, item];
|
|
@@ -159,7 +157,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
159
157
|
var text, item;
|
|
160
158
|
return __generator(this, function (_a) {
|
|
161
159
|
switch (_a.label) {
|
|
162
|
-
case 0: return [4 /*yield*/,
|
|
160
|
+
case 0: return [4 /*yield*/, AsyncStorage.getItem(key)];
|
|
163
161
|
case 1:
|
|
164
162
|
text = _a.sent();
|
|
165
163
|
(0, errorHelpers_1.assert)(text !== null, errorHelpers_1.CacheErrorCode.NoCacheItem, "Key: ".concat(key));
|
|
@@ -183,7 +181,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
183
181
|
var config, itemSize, removeItemError_1;
|
|
184
182
|
return __generator(this, function (_a) {
|
|
185
183
|
switch (_a.label) {
|
|
186
|
-
case 0: return [4 /*yield*/,
|
|
184
|
+
case 0: return [4 /*yield*/, AsyncStorage.getItem(prefixedKey)];
|
|
187
185
|
case 1:
|
|
188
186
|
config = _a.sent();
|
|
189
187
|
(0, errorHelpers_1.assert)(!!config, errorHelpers_1.CacheErrorCode.NoCacheItem, "Key: ".concat(prefixedKey));
|
|
@@ -196,7 +194,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
196
194
|
_a.label = 3;
|
|
197
195
|
case 3:
|
|
198
196
|
_a.trys.push([3, 5, , 7]);
|
|
199
|
-
return [4 /*yield*/,
|
|
197
|
+
return [4 /*yield*/, AsyncStorage.removeItem(prefixedKey)];
|
|
200
198
|
case 4:
|
|
201
199
|
_a.sent();
|
|
202
200
|
return [3 /*break*/, 7];
|
|
@@ -235,7 +233,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
235
233
|
_a.label = 2;
|
|
236
234
|
case 2:
|
|
237
235
|
_a.trys.push([2, 4, , 6]);
|
|
238
|
-
return [4 /*yield*/,
|
|
236
|
+
return [4 /*yield*/, AsyncStorage.setItem(prefixedKey, JSON.stringify(item))];
|
|
239
237
|
case 3:
|
|
240
238
|
_a.sent();
|
|
241
239
|
return [3 /*break*/, 6];
|
|
@@ -314,7 +312,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
314
312
|
case 0:
|
|
315
313
|
keys = [];
|
|
316
314
|
keyInCache = [];
|
|
317
|
-
return [4 /*yield*/,
|
|
315
|
+
return [4 /*yield*/, AsyncStorage.getAllKeys()];
|
|
318
316
|
case 1:
|
|
319
317
|
keyInCache = _a.sent();
|
|
320
318
|
i = 0;
|
|
@@ -362,7 +360,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
362
360
|
_a.label = 1;
|
|
363
361
|
case 1:
|
|
364
362
|
if (!(i < keys.length)) return [3 /*break*/, 4];
|
|
365
|
-
return [4 /*yield*/,
|
|
363
|
+
return [4 /*yield*/, AsyncStorage.getItem(keys[i])];
|
|
366
364
|
case 2:
|
|
367
365
|
val = _a.sent();
|
|
368
366
|
if (val != null) {
|
|
@@ -469,7 +467,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
469
467
|
_a.label = 1;
|
|
470
468
|
case 1:
|
|
471
469
|
_a.trys.push([1, 12, , 13]);
|
|
472
|
-
return [4 /*yield*/,
|
|
470
|
+
return [4 /*yield*/, AsyncStorage.getItem(prefixedKey)];
|
|
473
471
|
case 2:
|
|
474
472
|
val = _a.sent();
|
|
475
473
|
if (!val) return [3 /*break*/, 4];
|
|
@@ -540,7 +538,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
540
538
|
_a.label = 1;
|
|
541
539
|
case 1:
|
|
542
540
|
_a.trys.push([1, 8, , 9]);
|
|
543
|
-
return [4 /*yield*/,
|
|
541
|
+
return [4 /*yield*/, AsyncStorage.getItem(prefixedKey)];
|
|
544
542
|
case 2:
|
|
545
543
|
ret = _a.sent();
|
|
546
544
|
if (!(ret != null)) return [3 /*break*/, 7];
|
|
@@ -599,7 +597,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
599
597
|
_a.label = 1;
|
|
600
598
|
case 1:
|
|
601
599
|
_a.trys.push([1, 5, , 6]);
|
|
602
|
-
return [4 /*yield*/,
|
|
600
|
+
return [4 /*yield*/, AsyncStorage.getItem(prefixedKey)];
|
|
603
601
|
case 2:
|
|
604
602
|
val = _a.sent();
|
|
605
603
|
if (!val) return [3 /*break*/, 4];
|
|
@@ -633,7 +631,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
633
631
|
_a.label = 1;
|
|
634
632
|
case 1:
|
|
635
633
|
_a.trys.push([1, 7, , 8]);
|
|
636
|
-
return [4 /*yield*/,
|
|
634
|
+
return [4 /*yield*/, AsyncStorage.getAllKeys()];
|
|
637
635
|
case 2:
|
|
638
636
|
keys = _a.sent();
|
|
639
637
|
keysToRemove = [];
|
|
@@ -646,7 +644,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
646
644
|
_a.label = 3;
|
|
647
645
|
case 3:
|
|
648
646
|
if (!(i < keysToRemove.length)) return [3 /*break*/, 6];
|
|
649
|
-
return [4 /*yield*/,
|
|
647
|
+
return [4 /*yield*/, AsyncStorage.removeItem(keysToRemove[i])];
|
|
650
648
|
case 4:
|
|
651
649
|
_a.sent();
|
|
652
650
|
_a.label = 5;
|
|
@@ -672,11 +670,11 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
672
670
|
var ret;
|
|
673
671
|
return __generator(this, function (_a) {
|
|
674
672
|
switch (_a.label) {
|
|
675
|
-
case 0: return [4 /*yield*/,
|
|
673
|
+
case 0: return [4 /*yield*/, AsyncStorage.getItem((0, CacheUtils_1.getCurrSizeKey)(this.cacheConfig.keyPrefix))];
|
|
676
674
|
case 1:
|
|
677
675
|
ret = _a.sent();
|
|
678
676
|
if (!!ret) return [3 /*break*/, 3];
|
|
679
|
-
return [4 /*yield*/,
|
|
677
|
+
return [4 /*yield*/, AsyncStorage.setItem((0, CacheUtils_1.getCurrSizeKey)(this.cacheConfig.keyPrefix), '0')];
|
|
680
678
|
case 2:
|
|
681
679
|
_a.sent();
|
|
682
680
|
ret = '0';
|
|
@@ -698,7 +696,7 @@ var AsyncStorageCache = /** @class */ (function (_super) {
|
|
|
698
696
|
switch (_a.label) {
|
|
699
697
|
case 0:
|
|
700
698
|
_a.trys.push([0, 2, , 3]);
|
|
701
|
-
return [4 /*yield*/,
|
|
699
|
+
return [4 /*yield*/, AsyncStorage.getAllKeys()];
|
|
702
700
|
case 1:
|
|
703
701
|
keys = _a.sent();
|
|
704
702
|
retKeys = [];
|
package/lib/Platform/types.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare enum Category {
|
|
|
31
31
|
}
|
|
32
32
|
export declare enum AnalyticsAction {
|
|
33
33
|
Record = "1",
|
|
34
|
-
|
|
34
|
+
IdentifyUser = "2"
|
|
35
35
|
}
|
|
36
36
|
export declare enum ApiAction {
|
|
37
37
|
GraphQl = "1",
|
|
@@ -53,7 +53,8 @@ export declare enum GeoAction {
|
|
|
53
53
|
None = "0"
|
|
54
54
|
}
|
|
55
55
|
export declare enum InAppMessagingAction {
|
|
56
|
-
|
|
56
|
+
SyncMessages = "1",
|
|
57
|
+
IdentifyUser = "2"
|
|
57
58
|
}
|
|
58
59
|
export declare enum InteractionsAction {
|
|
59
60
|
None = "0"
|
package/lib/Platform/types.js
CHANGED
|
@@ -42,7 +42,7 @@ var Category;
|
|
|
42
42
|
var AnalyticsAction;
|
|
43
43
|
(function (AnalyticsAction) {
|
|
44
44
|
AnalyticsAction["Record"] = "1";
|
|
45
|
-
AnalyticsAction["
|
|
45
|
+
AnalyticsAction["IdentifyUser"] = "2";
|
|
46
46
|
})(AnalyticsAction = exports.AnalyticsAction || (exports.AnalyticsAction = {}));
|
|
47
47
|
var ApiAction;
|
|
48
48
|
(function (ApiAction) {
|
|
@@ -102,7 +102,8 @@ var GeoAction;
|
|
|
102
102
|
})(GeoAction = exports.GeoAction || (exports.GeoAction = {}));
|
|
103
103
|
var InAppMessagingAction;
|
|
104
104
|
(function (InAppMessagingAction) {
|
|
105
|
-
InAppMessagingAction["
|
|
105
|
+
InAppMessagingAction["SyncMessages"] = "1";
|
|
106
|
+
InAppMessagingAction["IdentifyUser"] = "2";
|
|
106
107
|
})(InAppMessagingAction = exports.InAppMessagingAction || (exports.InAppMessagingAction = {}));
|
|
107
108
|
var InteractionsAction;
|
|
108
109
|
(function (InteractionsAction) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.1-console-preview.
|
|
1
|
+
export declare const version = "6.0.1-console-preview.4ae78ed.0+4ae78ed";
|
package/lib/Platform/version.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import
|
|
2
|
+
import { loadNetInfo } from '@aws-amplify/react-native';
|
|
3
3
|
import { NetworkStatus } from './types';
|
|
4
4
|
export declare class Reachability {
|
|
5
|
-
networkMonitor(netInfo?: typeof
|
|
5
|
+
networkMonitor(netInfo?: ReturnType<typeof loadNetInfo>): Observable<NetworkStatus>;
|
|
6
6
|
}
|
|
@@ -57,7 +57,7 @@ var shouldSendBody = function (method) {
|
|
|
57
57
|
// TODO[AllanZhengYP]: we need to provide isCanceledError utility
|
|
58
58
|
var fetchTransferHandler = function (_a, _b) {
|
|
59
59
|
var url = _a.url, method = _a.method, headers = _a.headers, body = _a.body;
|
|
60
|
-
var abortSignal = _b.abortSignal, cache = _b.cache;
|
|
60
|
+
var abortSignal = _b.abortSignal, cache = _b.cache, withCrossDomainCredentials = _b.withCrossDomainCredentials;
|
|
61
61
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
62
62
|
var resp, e_1, responseHeaders, httpResponse, bodyWithMixin;
|
|
63
63
|
var _c, _d;
|
|
@@ -71,6 +71,7 @@ var fetchTransferHandler = function (_a, _b) {
|
|
|
71
71
|
body: shouldSendBody(method) ? body : undefined,
|
|
72
72
|
signal: abortSignal,
|
|
73
73
|
cache: cache,
|
|
74
|
+
credentials: withCrossDomainCredentials ? 'include' : 'same-origin',
|
|
74
75
|
})];
|
|
75
76
|
case 1:
|
|
76
77
|
resp = _e.sent();
|
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.getHashedPayload = exports.TOKEN_QUERY_PARAM = exports.presignUrl = exports.signRequest = void 0;
|
|
6
|
-
require("@aws-amplify/
|
|
6
|
+
var react_native_1 = require("@aws-amplify/react-native");
|
|
7
|
+
(0, react_native_1.loadUrlPolyfill)();
|
|
7
8
|
// TODO: V6 replace Signer
|
|
8
9
|
var signRequest_1 = require("./signRequest");
|
|
9
10
|
Object.defineProperty(exports, "signRequest", { enumerable: true, get: function () { return signRequest_1.signRequest; } });
|
|
@@ -17,7 +17,7 @@ export interface HttpRequest extends Request {
|
|
|
17
17
|
*/
|
|
18
18
|
export type ResponseBodyMixin = Pick<Body, 'blob' | 'json' | 'text'>;
|
|
19
19
|
export interface HttpResponse extends Response {
|
|
20
|
-
body: (ResponseBodyMixin & ReadableStream) | ResponseBodyMixin
|
|
20
|
+
body: (ResponseBodyMixin & ReadableStream) | ResponseBodyMixin;
|
|
21
21
|
statusCode: number;
|
|
22
22
|
/**
|
|
23
23
|
* @see {@link HttpRequest.headers}
|
|
@@ -34,5 +34,21 @@ export interface HttpTransferOptions {
|
|
|
34
34
|
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/cache}
|
|
35
35
|
*/
|
|
36
36
|
cache?: RequestCache;
|
|
37
|
+
/**
|
|
38
|
+
* Internal-only option controls whether or not cross-site Access-Control requests should be made using credentials
|
|
39
|
+
* such as cookies, authorization headers or TLS client certificates. It has no effect on same-origin requests.
|
|
40
|
+
* If set to `true`, the request will include credentials such as cookies, authorization headers, TLS
|
|
41
|
+
* client certificates, and so on. Moreover the response cookies will also be set.
|
|
42
|
+
* If set to `false`, the cross-site request will not include credentials, and the response cookies from a different
|
|
43
|
+
* domain will be ignored.
|
|
44
|
+
*
|
|
45
|
+
* This option is only conformed by {@link fetchTransferHandler | fetchTransferHandler }
|
|
46
|
+
*
|
|
47
|
+
* @default 'same-origin'
|
|
48
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/withCredentials}
|
|
49
|
+
* @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials}
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
withCrossDomainCredentials?: boolean;
|
|
37
53
|
}
|
|
38
54
|
export type HttpTransferHandler = TransferHandler<HttpRequest, HttpResponse, HttpTransferOptions>;
|
package/lib/libraryUtils.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { LegacyConfig } from './singleton/types';
|
|
|
4
4
|
export { JWT, StrictUnion, CognitoIdentityPoolConfig, JwtPayload, } from './singleton/Auth/types';
|
|
5
5
|
export { decodeJWT, assertTokenProviderConfig, assertIdentityPoolIdConfig, assertOAuthConfig, } from './singleton/Auth/utils';
|
|
6
6
|
export { isTokenExpired } from './singleton/Auth';
|
|
7
|
-
export {
|
|
7
|
+
export { APIAuthMode, DocumentType } from './singleton/API/types';
|
|
8
8
|
export { Signer } from './Signer';
|
|
9
9
|
export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
|
|
10
10
|
export { ClientDevice } from './ClientDevice';
|
|
@@ -21,3 +21,4 @@ export { fetchAuthSession } from './singleton/apis/internal/fetchAuthSession';
|
|
|
21
21
|
export { AMPLIFY_SYMBOL } from './Hub';
|
|
22
22
|
export { base64Decoder, base64Encoder } from './utils/convert';
|
|
23
23
|
export { getCrypto } from './utils/globalHelpers';
|
|
24
|
+
export { HubClass } from './Hub';
|
package/lib/libraryUtils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.base64Encoder = exports.base64Decoder = exports.AMPLIFY_SYMBOL = exports.fetchAuthSession = exports.USER_AGENT_HEADER = exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = exports.AmplifyErrorCode = exports.createAssertionFunction = exports.PlatformNotSupportedError = exports.AmplifyError = exports.Reachability = exports.Mutex = exports.BackgroundProcessManager = exports.ServiceWorker = exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InAppMessagingAction = exports.InteractionsAction = exports.GeoAction = exports.Framework = exports.DataStoreAction = exports.Category = exports.AnalyticsAction = exports.AuthAction = exports.ApiAction = exports.getAmplifyUserAgent = exports.getAmplifyUserAgentObject = exports.Platform = exports.ClientDevice = exports.Logger = exports.ConsoleLogger = exports.Signer = exports.isTokenExpired = exports.assertOAuthConfig = exports.assertIdentityPoolIdConfig = exports.assertTokenProviderConfig = exports.decodeJWT = exports.parseAWSExports = exports.urlSafeEncode = exports.urlSafeDecode = exports.retry = exports.NonRetryableError = exports.jitteredExponentialRetry = exports.jitteredBackoff = exports.isWebWorker = exports.isNonRetryableError = exports.isBrowser = exports.generateRandomString = void 0;
|
|
6
|
-
exports.getCrypto = void 0;
|
|
6
|
+
exports.HubClass = exports.getCrypto = void 0;
|
|
7
7
|
/*
|
|
8
8
|
This file maps top-level exports from `@aws-amplify/core/internals/utils`. These are intended to be internal
|
|
9
9
|
utils for use throughout the library.
|
|
@@ -85,3 +85,6 @@ Object.defineProperty(exports, "base64Decoder", { enumerable: true, get: functio
|
|
|
85
85
|
Object.defineProperty(exports, "base64Encoder", { enumerable: true, get: function () { return convert_1.base64Encoder; } });
|
|
86
86
|
var globalHelpers_1 = require("./utils/globalHelpers");
|
|
87
87
|
Object.defineProperty(exports, "getCrypto", { enumerable: true, get: function () { return globalHelpers_1.getCrypto; } });
|
|
88
|
+
// Hub
|
|
89
|
+
var Hub_2 = require("./Hub");
|
|
90
|
+
Object.defineProperty(exports, "HubClass", { enumerable: true, get: function () { return Hub_2.HubClass; } });
|
package/lib/parseAWSExports.js
CHANGED
|
@@ -12,10 +12,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.parseAWSExports = void 0;
|
|
15
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
16
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
17
|
+
var Logger_1 = require("./Logger");
|
|
18
|
+
var logger = new Logger_1.ConsoleLogger('parseAWSExports');
|
|
15
19
|
var authTypeMapping = {
|
|
16
20
|
API_KEY: 'apiKey',
|
|
17
21
|
AWS_IAM: 'iam',
|
|
18
|
-
AMAZON_COGNITO_USER_POOLS: '
|
|
22
|
+
AMAZON_COGNITO_USER_POOLS: 'userPool',
|
|
23
|
+
OPENID_CONNECT: 'oidc',
|
|
24
|
+
NONE: 'none',
|
|
25
|
+
LAMBDA: 'lambda',
|
|
19
26
|
};
|
|
20
27
|
/**
|
|
21
28
|
* This utility converts the `aws-exports.js` file generated by the Amplify CLI into a {@link ResourcesConfig} object
|
|
@@ -27,7 +34,7 @@ var authTypeMapping = {
|
|
|
27
34
|
*/
|
|
28
35
|
var parseAWSExports = function (config) {
|
|
29
36
|
if (config === void 0) { config = {}; }
|
|
30
|
-
var aws_appsync_apiKey = config.aws_appsync_apiKey, aws_appsync_authenticationType = config.aws_appsync_authenticationType, aws_appsync_graphqlEndpoint = config.aws_appsync_graphqlEndpoint, aws_appsync_region = config.aws_appsync_region, aws_cognito_identity_pool_id = config.aws_cognito_identity_pool_id, aws_cognito_sign_up_verification_method = config.aws_cognito_sign_up_verification_method, aws_mandatory_sign_in = config.aws_mandatory_sign_in, aws_mobile_analytics_app_id = config.aws_mobile_analytics_app_id, aws_mobile_analytics_app_region = config.aws_mobile_analytics_app_region, aws_user_files_s3_bucket = config.aws_user_files_s3_bucket, aws_user_files_s3_bucket_region = config.aws_user_files_s3_bucket_region, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing = config.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing, aws_user_pools_id = config.aws_user_pools_id, aws_user_pools_web_client_id = config.aws_user_pools_web_client_id, geo = config.geo, oauth = config.oauth;
|
|
37
|
+
var aws_appsync_apiKey = config.aws_appsync_apiKey, aws_appsync_authenticationType = config.aws_appsync_authenticationType, aws_appsync_graphqlEndpoint = config.aws_appsync_graphqlEndpoint, aws_appsync_region = config.aws_appsync_region, aws_cognito_identity_pool_id = config.aws_cognito_identity_pool_id, aws_cognito_sign_up_verification_method = config.aws_cognito_sign_up_verification_method, aws_mandatory_sign_in = config.aws_mandatory_sign_in, aws_mobile_analytics_app_id = config.aws_mobile_analytics_app_id, aws_mobile_analytics_app_region = config.aws_mobile_analytics_app_region, aws_user_files_s3_bucket = config.aws_user_files_s3_bucket, aws_user_files_s3_bucket_region = config.aws_user_files_s3_bucket_region, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing = config.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing, aws_user_pools_id = config.aws_user_pools_id, aws_user_pools_web_client_id = config.aws_user_pools_web_client_id, geo = config.geo, oauth = config.oauth, aws_cloud_logic_custom = config.aws_cloud_logic_custom;
|
|
31
38
|
var amplifyConfig = {};
|
|
32
39
|
// Analytics
|
|
33
40
|
if (aws_mobile_analytics_app_id) {
|
|
@@ -38,17 +45,18 @@ var parseAWSExports = function (config) {
|
|
|
38
45
|
},
|
|
39
46
|
};
|
|
40
47
|
}
|
|
41
|
-
// TODO: Need to support all API configurations
|
|
42
48
|
// API
|
|
43
49
|
if (aws_appsync_graphqlEndpoint) {
|
|
50
|
+
var defaultAuthMode = authTypeMapping[aws_appsync_authenticationType];
|
|
51
|
+
if (!defaultAuthMode) {
|
|
52
|
+
logger.debug("Invalid authentication type ".concat(aws_appsync_authenticationType, ". Falling back to IAM."));
|
|
53
|
+
}
|
|
44
54
|
amplifyConfig.API = {
|
|
45
|
-
|
|
46
|
-
defaultAuthMode: {
|
|
47
|
-
type: authTypeMapping[aws_appsync_authenticationType],
|
|
48
|
-
apiKey: aws_appsync_apiKey,
|
|
49
|
-
},
|
|
55
|
+
GraphQL: {
|
|
50
56
|
endpoint: aws_appsync_graphqlEndpoint,
|
|
57
|
+
apiKey: aws_appsync_apiKey,
|
|
51
58
|
region: aws_appsync_region,
|
|
59
|
+
defaultAuthMode: defaultAuthMode !== null && defaultAuthMode !== void 0 ? defaultAuthMode : 'iam',
|
|
52
60
|
},
|
|
53
61
|
};
|
|
54
62
|
}
|
|
@@ -80,6 +88,14 @@ var parseAWSExports = function (config) {
|
|
|
80
88
|
}
|
|
81
89
|
: __assign({}, geo);
|
|
82
90
|
}
|
|
91
|
+
// REST API
|
|
92
|
+
if (aws_cloud_logic_custom) {
|
|
93
|
+
amplifyConfig.API = __assign(__assign({}, amplifyConfig.API), { REST: aws_cloud_logic_custom.reduce(function (acc, api) {
|
|
94
|
+
var _a;
|
|
95
|
+
var name = api.name, endpoint = api.endpoint, region = api.region, service = api.service;
|
|
96
|
+
return __assign(__assign({}, acc), (_a = {}, _a[name] = __assign(__assign({ endpoint: endpoint }, (service ? { service: service } : undefined)), (region ? { region: region } : undefined)), _a));
|
|
97
|
+
}, {}) });
|
|
98
|
+
}
|
|
83
99
|
return amplifyConfig;
|
|
84
100
|
};
|
|
85
101
|
exports.parseAWSExports = parseAWSExports;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './kinesis';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
|
+
};
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
+
__exportStar(require("./kinesis"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { KinesisFirehoseProviderConfig } from './kinesis-firehose';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { PersonalizeProviderConfig } from './personalize';
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
exports.flushEvents = void 0;
|
|
6
|
+
var getEventBuffer_1 = require("../utils/getEventBuffer");
|
|
7
|
+
var constants_1 = require("../utils/constants");
|
|
8
|
+
var flushEvents = function (appId, region, credentials, identityId, userAgentValue) {
|
|
9
|
+
(0, getEventBuffer_1.getEventBuffer)({
|
|
10
|
+
appId: appId,
|
|
11
|
+
bufferSize: constants_1.BUFFER_SIZE,
|
|
12
|
+
credentials: credentials,
|
|
13
|
+
flushInterval: constants_1.FLUSH_INTERVAL,
|
|
14
|
+
flushSize: constants_1.FLUSH_SIZE,
|
|
15
|
+
identityId: identityId,
|
|
16
|
+
region: region,
|
|
17
|
+
resendLimit: constants_1.RESEND_LIMIT,
|
|
18
|
+
userAgentValue: userAgentValue,
|
|
19
|
+
}).flushAll();
|
|
20
|
+
};
|
|
21
|
+
exports.flushEvents = flushEvents;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.record = exports.updateEndpoint = void 0;
|
|
5
|
+
exports.flushEvents = exports.record = exports.updateEndpoint = void 0;
|
|
6
6
|
var updateEndpoint_1 = require("./updateEndpoint");
|
|
7
7
|
Object.defineProperty(exports, "updateEndpoint", { enumerable: true, get: function () { return updateEndpoint_1.updateEndpoint; } });
|
|
8
8
|
var record_1 = require("./record");
|
|
9
9
|
Object.defineProperty(exports, "record", { enumerable: true, get: function () { return record_1.record; } });
|
|
10
|
+
var flushEvents_1 = require("./flushEvents");
|
|
11
|
+
Object.defineProperty(exports, "flushEvents", { enumerable: true, get: function () { return flushEvents_1.flushEvents; } });
|
|
@@ -3,7 +3,7 @@ import { UserProfile } from '../../../types';
|
|
|
3
3
|
export type SupportedCategory = 'Analytics' | 'InAppMessaging' | 'PushNotification';
|
|
4
4
|
export type SupportedChannelType = 'APNS' | 'APNS_SANDBOX' | 'GCM' | 'IN_APP';
|
|
5
5
|
export type PinpointProviderConfig = {
|
|
6
|
-
Pinpoint
|
|
6
|
+
Pinpoint?: {
|
|
7
7
|
appId: string;
|
|
8
8
|
region: string;
|
|
9
9
|
};
|