@aws-amplify/core 6.0.1-console-preview.3b09ef9.0 → 6.0.1-ui-preview.1aa6ecb.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.
@@ -1,3 +1,5 @@
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
1
3
  export var Framework;
2
4
  (function (Framework) {
3
5
  // < 100 - Web frameworks
@@ -51,44 +53,40 @@ export var ApiAction;
51
53
  })(ApiAction || (ApiAction = {}));
52
54
  export var AuthAction;
53
55
  (function (AuthAction) {
54
- AuthAction["SignUp"] = "1";
55
- AuthAction["ConfirmSignUp"] = "2";
56
- AuthAction["ResendSignUp"] = "3";
57
- AuthAction["SignIn"] = "4";
58
- AuthAction["GetMFAOptions"] = "5";
59
- AuthAction["GetPreferredMFA"] = "6";
60
- AuthAction["SetPreferredMFA"] = "7";
61
- AuthAction["DisableSMS"] = "8";
62
- AuthAction["EnableSMS"] = "9";
63
- AuthAction["SetupTOTP"] = "10";
64
- AuthAction["VerifyTotpToken"] = "11";
65
- AuthAction["ConfirmSignIn"] = "12";
66
- AuthAction["CompleteNewPassword"] = "13";
67
- AuthAction["SendCustomChallengeAnswer"] = "14";
68
- AuthAction["DeleteUserAttributes"] = "15";
69
- AuthAction["DeleteUser"] = "16";
70
- AuthAction["UpdateUserAttributes"] = "17";
71
- AuthAction["UserAttributes"] = "18";
72
- AuthAction["CurrentUserPoolUser"] = "19";
73
- AuthAction["CurrentAuthenticatedUser"] = "20";
74
- AuthAction["CurrentSession"] = "21";
75
- AuthAction["VerifyUserAttribute"] = "22";
76
- AuthAction["VerifyUserAttributeSubmit"] = "23";
77
- AuthAction["VerifyCurrentUserAttribute"] = "24";
78
- AuthAction["VerifyCurrentUserAttributeSubmit"] = "25";
79
- AuthAction["SignOut"] = "26";
80
- AuthAction["ChangePassword"] = "27";
81
- AuthAction["ForgotPassword"] = "28";
82
- AuthAction["ForgotPasswordSubmit"] = "29";
56
+ // SignUp = '1',
57
+ // ConfirmSignUp = '2',
58
+ // ResendSignUp = '3',
59
+ // SignIn = '4',
60
+ // GetMFAOptions = '5',
61
+ // GetPreferredMFA = '6',
62
+ // SetPreferredMFA = '7',
63
+ // DisableSMS = '8',
64
+ // EnableSMS = '9',
65
+ // SetupTOTP = '10',
66
+ // VerifyTotpToken = '11',
67
+ // ConfirmSignIn = '12',
68
+ // CompleteNewPassword = '13',
69
+ // SendCustomChallengeAnswer = '14',
70
+ // DeleteUserAttributes = '15',
71
+ // DeleteUser = '16',
72
+ // UpdateUserAttributes = '17',
73
+ // UserAttributes = '18',
74
+ // CurrentUserPoolUser = '19',
75
+ // CurrentAuthenticatedUser = '20',
76
+ // CurrentSession = '21',
77
+ // VerifyUserAttribute = '22',
78
+ // VerifyUserAttributeSubmit = '23',
79
+ // VerifyCurrentUserAttribute = '24',
80
+ // VerifyCurrentUserAttributeSubmit = '25',
81
+ // SignOut = '26',
82
+ // ChangePassword = '27',
83
+ // ForgotPassword = '28',
84
+ // ForgotPasswordSubmit = '29',
83
85
  AuthAction["FederatedSignIn"] = "30";
84
- AuthAction["VerifiedContact"] = "31";
85
- AuthAction["UserSession"] = "32";
86
- AuthAction["CurrentUserCredentials"] = "33";
87
- AuthAction["CurrentCredentials"] = "34";
88
- AuthAction["CurrentUserInfo"] = "35";
89
- AuthAction["RememberDevice"] = "36";
90
- AuthAction["ForgetDevice"] = "37";
91
- AuthAction["FetchDevices"] = "38";
86
+ // CurrentUserInfo = '31',
87
+ // RememberDevice = '32',
88
+ // ForgetDevice = '33',
89
+ // FetchDevices = '34',
92
90
  })(AuthAction || (AuthAction = {}));
93
91
  export var DataStoreAction;
94
92
  (function (DataStoreAction) {
@@ -97,20 +95,11 @@ export var DataStoreAction;
97
95
  })(DataStoreAction || (DataStoreAction = {}));
98
96
  export var GeoAction;
99
97
  (function (GeoAction) {
100
- GeoAction["SearchByText"] = "1";
101
- GeoAction["SearchForSuggestions"] = "2";
102
- GeoAction["SearchByPlaceId"] = "3";
103
- GeoAction["SearchByCoordinates"] = "4";
104
- GeoAction["SaveGeofences"] = "5";
105
- GeoAction["GetGeofence"] = "6";
106
- GeoAction["ListGeofences"] = "7";
107
- GeoAction["DeleteGeofences"] = "8";
98
+ GeoAction["None"] = "0";
108
99
  })(GeoAction || (GeoAction = {}));
109
100
  export var InAppMessagingAction;
110
101
  (function (InAppMessagingAction) {
111
102
  InAppMessagingAction["None"] = "0";
112
- InAppMessagingAction["SyncMessages"] = "1";
113
- InAppMessagingAction["IdentifyUser"] = "2";
114
103
  })(InAppMessagingAction || (InAppMessagingAction = {}));
115
104
  export var InteractionsAction;
116
105
  (function (InteractionsAction) {
@@ -138,5 +127,4 @@ export var StorageAction;
138
127
  StorageAction["Copy"] = "4";
139
128
  StorageAction["Remove"] = "5";
140
129
  StorageAction["GetProperties"] = "6";
141
- StorageAction["Cancel"] = "7";
142
130
  })(StorageAction || (StorageAction = {}));
@@ -1 +1 @@
1
- export declare const version = "6.0.1-console-preview.3b09ef9.0+3b09ef9";
1
+ export declare const version = "6.0.1-ui-preview.1aa6ecb.0+1aa6ecb";
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export var version = '6.0.1-console-preview.3b09ef9.0+3b09ef9';
2
+ export var version = '6.0.1-ui-preview.1aa6ecb.0+1aa6ecb';
@@ -7,7 +7,7 @@ export { AppState, AsyncStorage, Linking } from './RNComponents';
7
7
  export { Credentials, CredentialsClass } from './Credentials';
8
8
  export { ICredentials } from './types';
9
9
  export { TokenProvider, AuthTokens, FetchAuthSessionOptions, AWSCredentialsAndIdentityIdProvider, AWSCredentialsAndIdentityId, Identity, OAuthConfig, CognitoUserPoolConfig, } from './singleton/Auth/types';
10
- export { AuthConfig, UserPoolConfig, UserPoolConfigAndIdentityPoolConfig, StorageAccessLevel, StorageConfig, GetCredentialsOptions, ResourcesConfig, LibraryOptions, AnalyticsConfig, } from './singleton/types';
10
+ export { AuthConfig, AuthUserPoolConfig, AuthUserPoolAndIdentityPoolConfig, StorageAccessLevel, StorageConfig, GetCredentialsOptions, ResourcesConfig, LibraryOptions, AnalyticsConfig, } from './singleton/types';
11
11
  export { Amplify, fetchAuthSession, AmplifyClass as AmplifyClassV6, clearCredentials, } from './singleton';
12
12
  export { getCredentialsForIdentity, getId, GetCredentialsForIdentityInput, GetCredentialsForIdentityOutput, } from './AwsClients/CognitoIdentity';
13
13
  export { UserProfile } from './types';
@@ -1,5 +1,5 @@
1
1
  export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './Util/JS';
2
- export { JWT, StrictUnion } from './singleton/Auth/types';
2
+ export { JWT, StrictUnion, CognitoIdentityPoolConfig, } from './singleton/Auth/types';
3
3
  export { decodeJWT, assertTokenProviderConfig, assertIdentityPooIdConfig, assertOAuthConfig, } from './singleton/Auth/utils';
4
4
  export { isTokenExpired } from './singleton/Auth';
5
5
  export { Signer } from './Signer';
@@ -118,7 +118,7 @@ var AuthClass = /** @class */ (function () {
118
118
  switch (_b.label) {
119
119
  case 0:
120
120
  if (!((_a = this.authOptions) === null || _a === void 0 ? void 0 : _a.credentialsProvider)) return [3 /*break*/, 2];
121
- return [4 /*yield*/, this.authOptions.credentialsProvider.clearCredentials()];
121
+ return [4 /*yield*/, this.authOptions.credentialsProvider.clearCredentialsAndIdentityId()];
122
122
  case 1: return [2 /*return*/, _b.sent()];
123
123
  case 2: return [2 /*return*/];
124
124
  }
@@ -35,8 +35,8 @@ export type Identity = {
35
35
  type: 'guest' | 'primary';
36
36
  };
37
37
  export interface AWSCredentialsAndIdentityIdProvider {
38
- getCredentialsAndIdentityId: (getCredentialsOptions: GetCredentialsOptions) => Promise<AWSCredentialsAndIdentityId>;
39
- clearCredentials: () => void;
38
+ getCredentialsAndIdentityId: (getCredentialsOptions: GetCredentialsOptions) => Promise<AWSCredentialsAndIdentityId | undefined>;
39
+ clearCredentialsAndIdentityId: () => void;
40
40
  }
41
41
  export type TokenProvider = {
42
42
  getTokens: ({ forceRefresh, }?: {
@@ -1,5 +1,5 @@
1
1
  import { AnalyticsConfig } from './Analytics/types';
2
- import { AuthConfig, LibraryAuthOptions, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions } from './Auth/types';
2
+ import { AuthConfig, LibraryAuthOptions, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions, CognitoIdentityPoolConfig } from './Auth/types';
3
3
  import { LibraryStorageOptions, StorageAccessLevel, StorageConfig } from './Storage/types';
4
4
  export type ResourcesConfig = {
5
5
  Analytics?: AnalyticsConfig;
@@ -11,4 +11,4 @@ export type LibraryOptions = {
11
11
  Auth?: LibraryAuthOptions;
12
12
  Storage?: LibraryStorageOptions;
13
13
  };
14
- export { AuthConfig, AuthUserPoolConfig as UserPoolConfig, AuthIdentityPoolConfig as IdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig as UserPoolConfigAndIdentityPoolConfig, GetCredentialsOptions, StorageAccessLevel, StorageConfig, AnalyticsConfig, };
14
+ export { AuthConfig, AuthUserPoolConfig, AuthIdentityPoolConfig, AuthUserPoolAndIdentityPoolConfig, GetCredentialsOptions, StorageAccessLevel, StorageConfig, AnalyticsConfig, CognitoIdentityPoolConfig, };