@aws-amplify/core 5.8.18 → 5.8.19

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.
Files changed (146) hide show
  1. package/lib/Amplify.d.ts +10 -0
  2. package/lib/Amplify.js +10 -0
  3. package/lib/ClientDevice/index.d.ts +5 -0
  4. package/lib/ClientDevice/index.js +5 -0
  5. package/lib/Credentials.d.ts +10 -0
  6. package/lib/Credentials.js +10 -0
  7. package/lib/Errors.d.ts +10 -0
  8. package/lib/Errors.js +10 -0
  9. package/lib/Hub.d.ts +20 -0
  10. package/lib/Hub.js +5 -0
  11. package/lib/I18n/index.d.ts +3 -0
  12. package/lib/I18n/index.js +3 -0
  13. package/lib/JS.d.ts +54 -0
  14. package/lib/JS.js +54 -0
  15. package/lib/Logger/ConsoleLogger.d.ts +3 -0
  16. package/lib/Logger/ConsoleLogger.js +3 -0
  17. package/lib/OAuthHelper/index.d.ts +10 -0
  18. package/lib/OAuthHelper/index.js +10 -0
  19. package/lib/Platform/index.d.ts +15 -0
  20. package/lib/Platform/index.js +15 -0
  21. package/lib/Platform/types.d.ts +70 -0
  22. package/lib/Platform/types.js +65 -0
  23. package/lib/Platform/version.d.ts +1 -1
  24. package/lib/Platform/version.js +1 -1
  25. package/lib/Providers/AWSCloudWatchProvider.d.ts +5 -0
  26. package/lib/Providers/AWSCloudWatchProvider.js +5 -0
  27. package/lib/RNComponents/index.d.ts +15 -0
  28. package/lib/RNComponents/index.js +15 -0
  29. package/lib/ServiceWorker/ServiceWorker.d.ts +3 -0
  30. package/lib/ServiceWorker/ServiceWorker.js +3 -0
  31. package/lib/Signer.d.ts +5 -0
  32. package/lib/Signer.js +5 -0
  33. package/lib/StorageHelper/index.d.ts +11 -1
  34. package/lib/StorageHelper/index.js +11 -1
  35. package/lib/UniversalStorage/index.d.ts +5 -0
  36. package/lib/UniversalStorage/index.js +5 -0
  37. package/lib/Util/BackgroundProcessManager.d.ts +9 -0
  38. package/lib/Util/BackgroundProcessManager.js +9 -0
  39. package/lib/Util/Constants.d.ts +35 -0
  40. package/lib/Util/Constants.js +35 -0
  41. package/lib/Util/DateUtils.d.ts +5 -0
  42. package/lib/Util/DateUtils.js +5 -0
  43. package/lib/Util/Mutex.d.ts +5 -0
  44. package/lib/Util/Mutex.js +5 -0
  45. package/lib/Util/Reachability.d.ts +5 -0
  46. package/lib/Util/Reachability.js +5 -0
  47. package/lib/Util/Retry.d.ts +19 -0
  48. package/lib/Util/Retry.js +19 -0
  49. package/lib/Util/StringUtils.d.ts +10 -0
  50. package/lib/Util/StringUtils.js +10 -0
  51. package/lib/constants.d.ts +10 -0
  52. package/lib/constants.js +10 -0
  53. package/lib/index.d.ts +5 -0
  54. package/lib/index.js +5 -0
  55. package/lib/parseAWSExports.d.ts +5 -0
  56. package/lib/parseAWSExports.js +5 -0
  57. package/lib/tsconfig.tsbuildinfo +1 -1
  58. package/lib/types/types.d.ts +5 -0
  59. package/lib-esm/Amplify.d.ts +10 -0
  60. package/lib-esm/Amplify.js +10 -0
  61. package/lib-esm/ClientDevice/index.d.ts +5 -0
  62. package/lib-esm/ClientDevice/index.js +5 -0
  63. package/lib-esm/Credentials.d.ts +10 -0
  64. package/lib-esm/Credentials.js +10 -0
  65. package/lib-esm/Errors.d.ts +10 -0
  66. package/lib-esm/Errors.js +10 -0
  67. package/lib-esm/Hub.d.ts +20 -0
  68. package/lib-esm/Hub.js +5 -0
  69. package/lib-esm/I18n/index.d.ts +3 -0
  70. package/lib-esm/I18n/index.js +3 -0
  71. package/lib-esm/JS.d.ts +54 -0
  72. package/lib-esm/JS.js +54 -0
  73. package/lib-esm/Logger/ConsoleLogger.d.ts +3 -0
  74. package/lib-esm/Logger/ConsoleLogger.js +3 -0
  75. package/lib-esm/OAuthHelper/index.d.ts +10 -0
  76. package/lib-esm/OAuthHelper/index.js +10 -0
  77. package/lib-esm/Platform/index.d.ts +15 -0
  78. package/lib-esm/Platform/index.js +15 -0
  79. package/lib-esm/Platform/types.d.ts +70 -0
  80. package/lib-esm/Platform/types.js +65 -0
  81. package/lib-esm/Platform/version.d.ts +1 -1
  82. package/lib-esm/Platform/version.js +1 -1
  83. package/lib-esm/Providers/AWSCloudWatchProvider.d.ts +5 -0
  84. package/lib-esm/Providers/AWSCloudWatchProvider.js +5 -0
  85. package/lib-esm/RNComponents/index.d.ts +15 -0
  86. package/lib-esm/RNComponents/index.js +15 -0
  87. package/lib-esm/ServiceWorker/ServiceWorker.d.ts +3 -0
  88. package/lib-esm/ServiceWorker/ServiceWorker.js +3 -0
  89. package/lib-esm/Signer.d.ts +5 -0
  90. package/lib-esm/Signer.js +5 -0
  91. package/lib-esm/StorageHelper/index.d.ts +11 -1
  92. package/lib-esm/StorageHelper/index.js +11 -1
  93. package/lib-esm/UniversalStorage/index.d.ts +5 -0
  94. package/lib-esm/UniversalStorage/index.js +5 -0
  95. package/lib-esm/Util/BackgroundProcessManager.d.ts +9 -0
  96. package/lib-esm/Util/BackgroundProcessManager.js +9 -0
  97. package/lib-esm/Util/Constants.d.ts +35 -0
  98. package/lib-esm/Util/Constants.js +35 -0
  99. package/lib-esm/Util/DateUtils.d.ts +5 -0
  100. package/lib-esm/Util/DateUtils.js +5 -0
  101. package/lib-esm/Util/Mutex.d.ts +5 -0
  102. package/lib-esm/Util/Mutex.js +5 -0
  103. package/lib-esm/Util/Reachability.d.ts +5 -0
  104. package/lib-esm/Util/Reachability.js +5 -0
  105. package/lib-esm/Util/Retry.d.ts +19 -0
  106. package/lib-esm/Util/Retry.js +19 -0
  107. package/lib-esm/Util/StringUtils.d.ts +10 -0
  108. package/lib-esm/Util/StringUtils.js +10 -0
  109. package/lib-esm/constants.d.ts +10 -0
  110. package/lib-esm/constants.js +10 -0
  111. package/lib-esm/index.d.ts +5 -0
  112. package/lib-esm/index.js +5 -0
  113. package/lib-esm/parseAWSExports.d.ts +5 -0
  114. package/lib-esm/parseAWSExports.js +5 -0
  115. package/lib-esm/tsconfig.tsbuildinfo +1 -1
  116. package/lib-esm/types/types.d.ts +5 -0
  117. package/package.json +2 -2
  118. package/src/Amplify.ts +10 -0
  119. package/src/ClientDevice/index.ts +5 -0
  120. package/src/Credentials.ts +10 -0
  121. package/src/Errors.ts +10 -0
  122. package/src/Hub.ts +20 -0
  123. package/src/I18n/index.ts +3 -0
  124. package/src/JS.ts +54 -0
  125. package/src/Logger/ConsoleLogger.ts +3 -0
  126. package/src/OAuthHelper/index.ts +10 -0
  127. package/src/Platform/index.ts +15 -0
  128. package/src/Platform/types.ts +70 -0
  129. package/src/Platform/version.ts +1 -1
  130. package/src/Providers/AWSCloudWatchProvider.ts +5 -0
  131. package/src/RNComponents/index.ts +15 -0
  132. package/src/ServiceWorker/ServiceWorker.ts +3 -0
  133. package/src/Signer.ts +5 -0
  134. package/src/StorageHelper/index.ts +11 -1
  135. package/src/UniversalStorage/index.ts +5 -0
  136. package/src/Util/BackgroundProcessManager.ts +9 -0
  137. package/src/Util/Constants.ts +35 -0
  138. package/src/Util/DateUtils.ts +5 -0
  139. package/src/Util/Mutex.ts +5 -0
  140. package/src/Util/Reachability.ts +5 -0
  141. package/src/Util/Retry.ts +19 -0
  142. package/src/Util/StringUtils.ts +10 -0
  143. package/src/constants.ts +10 -0
  144. package/src/index.ts +5 -0
  145. package/src/parseAWSExports.ts +5 -0
  146. package/src/types/types.ts +5 -0
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
3
+ * See the migration guide:
4
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
5
+ */
1
6
  export declare enum Framework {
2
7
  WebUnknown = "0",
3
8
  React = "1",
@@ -16,6 +21,11 @@ export declare enum Framework {
16
21
  ReactNative = "201",
17
22
  Expo = "202"
18
23
  }
24
+ /**
25
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
26
+ * See the migration guide:
27
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
28
+ */
19
29
  export declare enum Category {
20
30
  API = "api",
21
31
  Auth = "auth",
@@ -29,10 +39,20 @@ export declare enum Category {
29
39
  PushNotification = "pushnotification",
30
40
  Storage = "storage"
31
41
  }
42
+ /**
43
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
44
+ * See the migration guide:
45
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
46
+ */
32
47
  export declare enum AnalyticsAction {
33
48
  Record = "1",
34
49
  UpdateEndpoint = "2"
35
50
  }
51
+ /**
52
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
53
+ * See the migration guide:
54
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
55
+ */
36
56
  export declare enum ApiAction {
37
57
  GraphQl = "1",
38
58
  Get = "2",
@@ -42,33 +62,78 @@ export declare enum ApiAction {
42
62
  Del = "6",
43
63
  Head = "7"
44
64
  }
65
+ /**
66
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
67
+ * See the migration guide:
68
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
69
+ */
45
70
  export declare enum AuthAction {
46
71
  FederatedSignIn = "30"
47
72
  }
73
+ /**
74
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
75
+ * See the migration guide:
76
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
77
+ */
48
78
  export declare enum DataStoreAction {
49
79
  Subscribe = "1",
50
80
  GraphQl = "2"
51
81
  }
82
+ /**
83
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
84
+ * See the migration guide:
85
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
86
+ */
52
87
  export declare enum GeoAction {
53
88
  None = "0"
54
89
  }
90
+ /**
91
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
92
+ * See the migration guide:
93
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
94
+ */
55
95
  export declare enum InAppMessagingAction {
56
96
  None = "0"
57
97
  }
98
+ /**
99
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
100
+ * See the migration guide:
101
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
102
+ */
58
103
  export declare enum InteractionsAction {
59
104
  None = "0"
60
105
  }
106
+ /**
107
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
108
+ * See the migration guide:
109
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
110
+ */
61
111
  export declare enum PredictionsAction {
62
112
  Convert = "1",
63
113
  Identify = "2",
64
114
  Interpret = "3"
65
115
  }
116
+ /**
117
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
118
+ * See the migration guide:
119
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
120
+ */
66
121
  export declare enum PubSubAction {
67
122
  Subscribe = "1"
68
123
  }
124
+ /**
125
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
126
+ * See the migration guide:
127
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
128
+ */
69
129
  export declare enum PushNotificationAction {
70
130
  None = "0"
71
131
  }
132
+ /**
133
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
134
+ * See the migration guide:
135
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
136
+ */
72
137
  export declare enum StorageAction {
73
138
  Put = "1",
74
139
  Get = "2",
@@ -97,6 +162,11 @@ type UserAgentDetailsWithCategory<T extends Category> = CustomUserAgentDetailsBa
97
162
  type CustomUserAgentDetailsBase = {
98
163
  framework?: Framework;
99
164
  };
165
+ /**
166
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
167
+ * See the migration guide:
168
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
169
+ */
100
170
  export type CustomUserAgentDetails = (CustomUserAgentDetailsBase & {
101
171
  category?: never;
102
172
  action?: never;
@@ -3,6 +3,11 @@
3
3
  // SPDX-License-Identifier: Apache-2.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InteractionsAction = exports.InAppMessagingAction = exports.GeoAction = exports.DataStoreAction = exports.AuthAction = exports.ApiAction = exports.AnalyticsAction = exports.Category = exports.Framework = void 0;
6
+ /**
7
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
8
+ * See the migration guide:
9
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
10
+ */
6
11
  var Framework;
7
12
  (function (Framework) {
8
13
  // < 100 - Web frameworks
@@ -25,6 +30,11 @@ var Framework;
25
30
  Framework["ReactNative"] = "201";
26
31
  Framework["Expo"] = "202";
27
32
  })(Framework || (exports.Framework = Framework = {}));
33
+ /**
34
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
35
+ * See the migration guide:
36
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
37
+ */
28
38
  var Category;
29
39
  (function (Category) {
30
40
  Category["API"] = "api";
@@ -39,11 +49,21 @@ var Category;
39
49
  Category["PushNotification"] = "pushnotification";
40
50
  Category["Storage"] = "storage";
41
51
  })(Category || (exports.Category = Category = {}));
52
+ /**
53
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
54
+ * See the migration guide:
55
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
56
+ */
42
57
  var AnalyticsAction;
43
58
  (function (AnalyticsAction) {
44
59
  AnalyticsAction["Record"] = "1";
45
60
  AnalyticsAction["UpdateEndpoint"] = "2";
46
61
  })(AnalyticsAction || (exports.AnalyticsAction = AnalyticsAction = {}));
62
+ /**
63
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
64
+ * See the migration guide:
65
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
66
+ */
47
67
  var ApiAction;
48
68
  (function (ApiAction) {
49
69
  ApiAction["GraphQl"] = "1";
@@ -54,6 +74,11 @@ var ApiAction;
54
74
  ApiAction["Del"] = "6";
55
75
  ApiAction["Head"] = "7";
56
76
  })(ApiAction || (exports.ApiAction = ApiAction = {}));
77
+ /**
78
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
79
+ * See the migration guide:
80
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
81
+ */
57
82
  var AuthAction;
58
83
  (function (AuthAction) {
59
84
  // SignUp = '1',
@@ -91,37 +116,77 @@ var AuthAction;
91
116
  // ForgetDevice = '33',
92
117
  // FetchDevices = '34',
93
118
  })(AuthAction || (exports.AuthAction = AuthAction = {}));
119
+ /**
120
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
121
+ * See the migration guide:
122
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
123
+ */
94
124
  var DataStoreAction;
95
125
  (function (DataStoreAction) {
96
126
  DataStoreAction["Subscribe"] = "1";
97
127
  DataStoreAction["GraphQl"] = "2";
98
128
  })(DataStoreAction || (exports.DataStoreAction = DataStoreAction = {}));
129
+ /**
130
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
131
+ * See the migration guide:
132
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
133
+ */
99
134
  var GeoAction;
100
135
  (function (GeoAction) {
101
136
  GeoAction["None"] = "0";
102
137
  })(GeoAction || (exports.GeoAction = GeoAction = {}));
138
+ /**
139
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
140
+ * See the migration guide:
141
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
142
+ */
103
143
  var InAppMessagingAction;
104
144
  (function (InAppMessagingAction) {
105
145
  InAppMessagingAction["None"] = "0";
106
146
  })(InAppMessagingAction || (exports.InAppMessagingAction = InAppMessagingAction = {}));
147
+ /**
148
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
149
+ * See the migration guide:
150
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
151
+ */
107
152
  var InteractionsAction;
108
153
  (function (InteractionsAction) {
109
154
  InteractionsAction["None"] = "0";
110
155
  })(InteractionsAction || (exports.InteractionsAction = InteractionsAction = {}));
156
+ /**
157
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
158
+ * See the migration guide:
159
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
160
+ */
111
161
  var PredictionsAction;
112
162
  (function (PredictionsAction) {
113
163
  PredictionsAction["Convert"] = "1";
114
164
  PredictionsAction["Identify"] = "2";
115
165
  PredictionsAction["Interpret"] = "3";
116
166
  })(PredictionsAction || (exports.PredictionsAction = PredictionsAction = {}));
167
+ /**
168
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
169
+ * See the migration guide:
170
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
171
+ */
117
172
  var PubSubAction;
118
173
  (function (PubSubAction) {
119
174
  PubSubAction["Subscribe"] = "1";
120
175
  })(PubSubAction || (exports.PubSubAction = PubSubAction = {}));
176
+ /**
177
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
178
+ * See the migration guide:
179
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
180
+ */
121
181
  var PushNotificationAction;
122
182
  (function (PushNotificationAction) {
123
183
  PushNotificationAction["None"] = "0";
124
184
  })(PushNotificationAction || (exports.PushNotificationAction = PushNotificationAction = {}));
185
+ /**
186
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
187
+ * See the migration guide:
188
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
189
+ */
125
190
  var StorageAction;
126
191
  (function (StorageAction) {
127
192
  StorageAction["Put"] = "1";
@@ -1 +1 @@
1
- export declare const version = "5.3.36";
1
+ export declare const version = "5.3.41";
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // generated by genversion
5
- exports.version = '5.3.36';
5
+ exports.version = '5.3.41';
@@ -1,5 +1,10 @@
1
1
  import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput, CreateLogStreamCommandInput, CreateLogStreamCommandOutput, DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput, DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput, GetLogEventsCommandInput, GetLogEventsCommandOutput, InputLogEvent } from '@aws-sdk/client-cloudwatch-logs';
2
2
  import { AWSCloudWatchProviderOptions, LoggingProvider } from '../types/types';
3
+ /**
4
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
5
+ * See the migration guide:
6
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
7
+ */
3
8
  declare class AWSCloudWatchProvider implements LoggingProvider {
4
9
  static readonly PROVIDER_NAME = "AWSCloudWatch";
5
10
  static readonly CATEGORY = "Logging";
@@ -71,6 +71,11 @@ var Platform_1 = require("../Platform");
71
71
  var parseAWSExports_1 = require("../parseAWSExports");
72
72
  var Constants_1 = require("../Util/Constants");
73
73
  var logger = new Logger_1.ConsoleLogger('AWSCloudWatch');
74
+ /**
75
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
76
+ * See the migration guide:
77
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
78
+ */
74
79
  var AWSCloudWatchProvider = /** @class */ (function () {
75
80
  function AWSCloudWatchProvider(config) {
76
81
  this.configure(config);
@@ -1,5 +1,20 @@
1
+ /**
2
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
3
+ * See the migration guide:
4
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
5
+ */
1
6
  export declare const Linking: {};
7
+ /**
8
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
9
+ * See the migration guide:
10
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
11
+ */
2
12
  export declare const AppState: {
3
13
  addEventListener: (action: any, handler: any) => any;
4
14
  };
15
+ /**
16
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
17
+ * See the migration guide:
18
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
19
+ */
5
20
  export declare const AsyncStorage: any;
@@ -5,11 +5,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.AsyncStorage = exports.AppState = exports.Linking = void 0;
6
6
  var JS_1 = require("../JS");
7
7
  var StorageHelper_1 = require("../StorageHelper");
8
+ /**
9
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
10
+ * See the migration guide:
11
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
12
+ */
8
13
  exports.Linking = {};
14
+ /**
15
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
16
+ * See the migration guide:
17
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
18
+ */
9
19
  exports.AppState = {
10
20
  addEventListener: function (action, handler) { return undefined; },
11
21
  };
12
22
  // if not in react native, just use local storage
23
+ /**
24
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
25
+ * See the migration guide:
26
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
27
+ */
13
28
  exports.AsyncStorage = (0, JS_1.browserOrNode)().isBrowser
14
29
  ? new StorageHelper_1.StorageHelper().getStorage()
15
30
  : undefined;
@@ -9,6 +9,9 @@
9
9
  * At the minmum this class will register the service worker and listen
10
10
  * and attempt to dispatch messages on state change and record analytics
11
11
  * events based on the service worker lifecycle.
12
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
13
+ * See the migration guide:
14
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
12
15
  */
13
16
  export declare class ServiceWorkerClass {
14
17
  private _serviceWorker;
@@ -29,6 +29,9 @@ var Amplify_1 = require("../Amplify");
29
29
  * At the minmum this class will register the service worker and listen
30
30
  * and attempt to dispatch messages on state change and record analytics
31
31
  * events based on the service worker lifecycle.
32
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
33
+ * See the migration guide:
34
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
32
35
  */
33
36
  var ServiceWorkerClass = /** @class */ (function () {
34
37
  function ServiceWorkerClass() {
package/lib/Signer.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
3
+ * See the migration guide:
4
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
5
+ */
1
6
  export declare class Signer {
2
7
  /**
3
8
  * Sign a HTTP request, add 'Authorization' header to request param
package/lib/Signer.js CHANGED
@@ -19,6 +19,11 @@ var signatureV4_1 = require("./clients/middleware/signing/signer/signatureV4");
19
19
  var IOT_SERVICE_NAME = 'iotdevicegateway';
20
20
  // Best practice regex to parse the service and region from an AWS endpoint
21
21
  var AWS_ENDPOINT_REGEX = /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?$/;
22
+ /**
23
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
24
+ * See the migration guide:
25
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
26
+ */
22
27
  var Signer = /** @class */ (function () {
23
28
  function Signer() {
24
29
  }
@@ -1,4 +1,9 @@
1
- /** @class */
1
+ /**
2
+ * @class
3
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
4
+ * See the migration guide:
5
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
6
+ */
2
7
  export declare class MemoryStorage {
3
8
  /**
4
9
  * This is used to set a specific item in storage
@@ -26,6 +31,11 @@ export declare class MemoryStorage {
26
31
  */
27
32
  static clear(): {};
28
33
  }
34
+ /**
35
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
36
+ * See the migration guide:
37
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
38
+ */
29
39
  export declare class StorageHelper {
30
40
  private storageWindow;
31
41
  /**
@@ -4,7 +4,12 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.StorageHelper = exports.MemoryStorage = void 0;
6
6
  var dataMemory = {};
7
- /** @class */
7
+ /**
8
+ * @class
9
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
10
+ * See the migration guide:
11
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
12
+ */
8
13
  var MemoryStorage = /** @class */ (function () {
9
14
  function MemoryStorage() {
10
15
  }
@@ -48,6 +53,11 @@ var MemoryStorage = /** @class */ (function () {
48
53
  return MemoryStorage;
49
54
  }());
50
55
  exports.MemoryStorage = MemoryStorage;
56
+ /**
57
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
58
+ * See the migration guide:
59
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
60
+ */
51
61
  var StorageHelper = /** @class */ (function () {
52
62
  /**
53
63
  * This is used to get a storage object
@@ -3,6 +3,11 @@ type Store = Record<string, string>;
3
3
  type Context = {
4
4
  req?: any;
5
5
  };
6
+ /**
7
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
8
+ * See the migration guide:
9
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
10
+ */
6
11
  export declare class UniversalStorage implements Storage {
7
12
  cookies: Cookies;
8
13
  store: Store;
@@ -21,6 +21,11 @@ var universal_cookie_1 = __importDefault(require("universal-cookie"));
21
21
  var JS_1 = require("../JS");
22
22
  var isBrowser = (0, JS_1.browserOrNode)().isBrowser;
23
23
  var ONE_YEAR_IN_MS = 365 * 24 * 60 * 60 * 1000;
24
+ /**
25
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
26
+ * See the migration guide:
27
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
28
+ */
24
29
  var UniversalStorage = /** @class */ (function () {
25
30
  function UniversalStorage(context) {
26
31
  if (context === void 0) { context = {}; }
@@ -7,6 +7,9 @@
7
7
  *
8
8
  * As work completes on its own prior to close, the manager removes them
9
9
  * from the registry to avoid holding references to completed jobs.
10
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
11
+ * See the migration guide:
12
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
10
13
  */
11
14
  export declare class BackgroundProcessManager {
12
15
  /**
@@ -181,12 +184,18 @@ export declare class BackgroundProcessManager {
181
184
  }
182
185
  /**
183
186
  *
187
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
188
+ * See the migration guide:
189
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
184
190
  */
185
191
  export declare class BackgroundManagerNotOpenError extends Error {
186
192
  constructor(message: string);
187
193
  }
188
194
  /**
189
195
  * All possible states a `BackgroundProcessManager` instance can be in.
196
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
197
+ * See the migration guide:
198
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
190
199
  */
191
200
  export declare enum BackgroundProcessManagerState {
192
201
  /**
@@ -74,6 +74,9 @@ exports.BackgroundProcessManagerState = exports.BackgroundManagerNotOpenError =
74
74
  *
75
75
  * As work completes on its own prior to close, the manager removes them
76
76
  * from the registry to avoid holding references to completed jobs.
77
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
78
+ * See the migration guide:
79
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
77
80
  */
78
81
  var BackgroundProcessManager = /** @class */ (function () {
79
82
  /**
@@ -419,6 +422,9 @@ var BackgroundProcessManager = /** @class */ (function () {
419
422
  exports.BackgroundProcessManager = BackgroundProcessManager;
420
423
  /**
421
424
  *
425
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
426
+ * See the migration guide:
427
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
422
428
  */
423
429
  var BackgroundManagerNotOpenError = /** @class */ (function (_super) {
424
430
  __extends(BackgroundManagerNotOpenError, _super);
@@ -430,6 +436,9 @@ var BackgroundManagerNotOpenError = /** @class */ (function (_super) {
430
436
  exports.BackgroundManagerNotOpenError = BackgroundManagerNotOpenError;
431
437
  /**
432
438
  * All possible states a `BackgroundProcessManager` instance can be in.
439
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
440
+ * See the migration guide:
441
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
433
442
  */
434
443
  var BackgroundProcessManagerState;
435
444
  (function (BackgroundProcessManagerState) {
@@ -1,8 +1,43 @@
1
+ /**
2
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
3
+ * See the migration guide:
4
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
5
+ */
1
6
  declare const AWS_CLOUDWATCH_BASE_BUFFER_SIZE = 26;
7
+ /**
8
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
9
+ * See the migration guide:
10
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
11
+ */
2
12
  declare const AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = 1048576;
13
+ /**
14
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
15
+ * See the migration guide:
16
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
17
+ */
3
18
  declare const AWS_CLOUDWATCH_MAX_EVENT_SIZE = 256000;
19
+ /**
20
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
21
+ * See the migration guide:
22
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
23
+ */
4
24
  declare const AWS_CLOUDWATCH_CATEGORY = "Logging";
25
+ /**
26
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
27
+ * See the migration guide:
28
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
29
+ */
5
30
  declare const AWS_CLOUDWATCH_PROVIDER_NAME = "AWSCloudWatch";
31
+ /**
32
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
33
+ * See the migration guide:
34
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
35
+ */
6
36
  declare const NO_CREDS_ERROR_STRING = "No credentials";
37
+ /**
38
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
39
+ * See the migration guide:
40
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
41
+ */
7
42
  declare const RETRY_ERROR_CODES: string[];
8
43
  export { AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES, };
@@ -4,18 +4,53 @@
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.RETRY_ERROR_CODES = exports.NO_CREDS_ERROR_STRING = exports.AWS_CLOUDWATCH_PROVIDER_NAME = exports.AWS_CLOUDWATCH_MAX_EVENT_SIZE = exports.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = exports.AWS_CLOUDWATCH_CATEGORY = exports.AWS_CLOUDWATCH_BASE_BUFFER_SIZE = void 0;
6
6
  // Logging constants
7
+ /**
8
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
9
+ * See the migration guide:
10
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
11
+ */
7
12
  var AWS_CLOUDWATCH_BASE_BUFFER_SIZE = 26;
8
13
  exports.AWS_CLOUDWATCH_BASE_BUFFER_SIZE = AWS_CLOUDWATCH_BASE_BUFFER_SIZE;
14
+ /**
15
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
16
+ * See the migration guide:
17
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
18
+ */
9
19
  var AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = 1048576;
10
20
  exports.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE;
21
+ /**
22
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
23
+ * See the migration guide:
24
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
25
+ */
11
26
  var AWS_CLOUDWATCH_MAX_EVENT_SIZE = 256000;
12
27
  exports.AWS_CLOUDWATCH_MAX_EVENT_SIZE = AWS_CLOUDWATCH_MAX_EVENT_SIZE;
28
+ /**
29
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
30
+ * See the migration guide:
31
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
32
+ */
13
33
  var AWS_CLOUDWATCH_CATEGORY = 'Logging';
14
34
  exports.AWS_CLOUDWATCH_CATEGORY = AWS_CLOUDWATCH_CATEGORY;
35
+ /**
36
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
37
+ * See the migration guide:
38
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
39
+ */
15
40
  var AWS_CLOUDWATCH_PROVIDER_NAME = 'AWSCloudWatch';
16
41
  exports.AWS_CLOUDWATCH_PROVIDER_NAME = AWS_CLOUDWATCH_PROVIDER_NAME;
42
+ /**
43
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
44
+ * See the migration guide:
45
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
46
+ */
17
47
  var NO_CREDS_ERROR_STRING = 'No credentials';
18
48
  exports.NO_CREDS_ERROR_STRING = NO_CREDS_ERROR_STRING;
49
+ /**
50
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
51
+ * See the migration guide:
52
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
53
+ */
19
54
  var RETRY_ERROR_CODES = [
20
55
  'ResourceNotFoundException',
21
56
  'InvalidSequenceTokenException',
@@ -4,6 +4,11 @@
4
4
  *
5
5
  * @see https://github.com/aws/aws-sdk-js/blob/6edf586dcc1de7fe8fbfbbd9a0d2b1847921e6e1/lib/util.js#L262
6
6
  */
7
+ /**
8
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
9
+ * See the migration guide:
10
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
11
+ */
7
12
  export declare const DateUtils: {
8
13
  /**
9
14
  * Milliseconds to offset the date to compensate for clock skew between device & services
@@ -27,6 +27,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
27
27
  exports.DateUtils = void 0;
28
28
  // Comment - TODO: remove
29
29
  var FIVE_MINUTES_IN_MS = 1000 * 60 * 5;
30
+ /**
31
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
32
+ * See the migration guide:
33
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
34
+ */
30
35
  exports.DateUtils = {
31
36
  /**
32
37
  * Milliseconds to offset the date to compensate for clock skew between device & services