@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;
@@ -1,5 +1,10 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
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
  export var Framework;
4
9
  (function (Framework) {
5
10
  // < 100 - Web frameworks
@@ -22,6 +27,11 @@ export var Framework;
22
27
  Framework["ReactNative"] = "201";
23
28
  Framework["Expo"] = "202";
24
29
  })(Framework || (Framework = {}));
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
+ */
25
35
  export var Category;
26
36
  (function (Category) {
27
37
  Category["API"] = "api";
@@ -36,11 +46,21 @@ export var Category;
36
46
  Category["PushNotification"] = "pushnotification";
37
47
  Category["Storage"] = "storage";
38
48
  })(Category || (Category = {}));
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
+ */
39
54
  export var AnalyticsAction;
40
55
  (function (AnalyticsAction) {
41
56
  AnalyticsAction["Record"] = "1";
42
57
  AnalyticsAction["UpdateEndpoint"] = "2";
43
58
  })(AnalyticsAction || (AnalyticsAction = {}));
59
+ /**
60
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
61
+ * See the migration guide:
62
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
63
+ */
44
64
  export var ApiAction;
45
65
  (function (ApiAction) {
46
66
  ApiAction["GraphQl"] = "1";
@@ -51,6 +71,11 @@ export var ApiAction;
51
71
  ApiAction["Del"] = "6";
52
72
  ApiAction["Head"] = "7";
53
73
  })(ApiAction || (ApiAction = {}));
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
+ */
54
79
  export var AuthAction;
55
80
  (function (AuthAction) {
56
81
  // SignUp = '1',
@@ -88,37 +113,77 @@ export var AuthAction;
88
113
  // ForgetDevice = '33',
89
114
  // FetchDevices = '34',
90
115
  })(AuthAction || (AuthAction = {}));
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
+ */
91
121
  export var DataStoreAction;
92
122
  (function (DataStoreAction) {
93
123
  DataStoreAction["Subscribe"] = "1";
94
124
  DataStoreAction["GraphQl"] = "2";
95
125
  })(DataStoreAction || (DataStoreAction = {}));
126
+ /**
127
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
128
+ * See the migration guide:
129
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
130
+ */
96
131
  export var GeoAction;
97
132
  (function (GeoAction) {
98
133
  GeoAction["None"] = "0";
99
134
  })(GeoAction || (GeoAction = {}));
135
+ /**
136
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
137
+ * See the migration guide:
138
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
139
+ */
100
140
  export var InAppMessagingAction;
101
141
  (function (InAppMessagingAction) {
102
142
  InAppMessagingAction["None"] = "0";
103
143
  })(InAppMessagingAction || (InAppMessagingAction = {}));
144
+ /**
145
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
146
+ * See the migration guide:
147
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
148
+ */
104
149
  export var InteractionsAction;
105
150
  (function (InteractionsAction) {
106
151
  InteractionsAction["None"] = "0";
107
152
  })(InteractionsAction || (InteractionsAction = {}));
153
+ /**
154
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
155
+ * See the migration guide:
156
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
157
+ */
108
158
  export var PredictionsAction;
109
159
  (function (PredictionsAction) {
110
160
  PredictionsAction["Convert"] = "1";
111
161
  PredictionsAction["Identify"] = "2";
112
162
  PredictionsAction["Interpret"] = "3";
113
163
  })(PredictionsAction || (PredictionsAction = {}));
164
+ /**
165
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
166
+ * See the migration guide:
167
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
168
+ */
114
169
  export var PubSubAction;
115
170
  (function (PubSubAction) {
116
171
  PubSubAction["Subscribe"] = "1";
117
172
  })(PubSubAction || (PubSubAction = {}));
173
+ /**
174
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
175
+ * See the migration guide:
176
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
177
+ */
118
178
  export var PushNotificationAction;
119
179
  (function (PushNotificationAction) {
120
180
  PushNotificationAction["None"] = "0";
121
181
  })(PushNotificationAction || (PushNotificationAction = {}));
182
+ /**
183
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
184
+ * See the migration guide:
185
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
186
+ */
122
187
  export var StorageAction;
123
188
  (function (StorageAction) {
124
189
  StorageAction["Put"] = "1";
@@ -1 +1 @@
1
- export declare const version = "5.3.36";
1
+ export declare const version = "5.3.41";
@@ -1,2 +1,2 @@
1
1
  // generated by genversion
2
- export var version = '5.3.36';
2
+ export var 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";
@@ -68,6 +68,11 @@ import { getAmplifyUserAgentObject } from '../Platform';
68
68
  import { parseAWSExports } from '../parseAWSExports';
69
69
  import { 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, } from '../Util/Constants';
70
70
  var logger = new Logger('AWSCloudWatch');
71
+ /**
72
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
73
+ * See the migration guide:
74
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
75
+ */
71
76
  var AWSCloudWatchProvider = /** @class */ (function () {
72
77
  function AWSCloudWatchProvider(config) {
73
78
  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;
@@ -2,11 +2,26 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  import { browserOrNode } from '../JS';
4
4
  import { StorageHelper } from '../StorageHelper';
5
+ /**
6
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
7
+ * See the migration guide:
8
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
9
+ */
5
10
  export var Linking = {};
11
+ /**
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/
15
+ */
6
16
  export var AppState = {
7
17
  addEventListener: function (action, handler) { return undefined; },
8
18
  };
9
19
  // if not in react native, just use local storage
20
+ /**
21
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
22
+ * See the migration guide:
23
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
24
+ */
10
25
  export var AsyncStorage = browserOrNode().isBrowser
11
26
  ? new StorageHelper().getStorage()
12
27
  : 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;
@@ -26,6 +26,9 @@ import { Amplify } from '../Amplify';
26
26
  * At the minmum this class will register the service worker and listen
27
27
  * and attempt to dispatch messages on state change and record analytics
28
28
  * events based on the service worker lifecycle.
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/
29
32
  */
30
33
  var ServiceWorkerClass = /** @class */ (function () {
31
34
  function ServiceWorkerClass() {
@@ -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-esm/Signer.js CHANGED
@@ -16,6 +16,11 @@ import { presignUrl, signRequest, TOKEN_QUERY_PARAM, } from './clients/middlewar
16
16
  var IOT_SERVICE_NAME = 'iotdevicegateway';
17
17
  // Best practice regex to parse the service and region from an AWS endpoint
18
18
  var AWS_ENDPOINT_REGEX = /([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com(.cn)?$/;
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
+ */
19
24
  var Signer = /** @class */ (function () {
20
25
  function Signer() {
21
26
  }
@@ -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
  /**
@@ -1,7 +1,12 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  var dataMemory = {};
4
- /** @class */
4
+ /**
5
+ * @class
6
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
7
+ * See the migration guide:
8
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
9
+ */
5
10
  var MemoryStorage = /** @class */ (function () {
6
11
  function MemoryStorage() {
7
12
  }
@@ -45,6 +50,11 @@ var MemoryStorage = /** @class */ (function () {
45
50
  return MemoryStorage;
46
51
  }());
47
52
  export { MemoryStorage };
53
+ /**
54
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
55
+ * See the migration guide:
56
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
57
+ */
48
58
  var StorageHelper = /** @class */ (function () {
49
59
  /**
50
60
  * 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;
@@ -15,6 +15,11 @@ import Cookies from 'universal-cookie';
15
15
  import { browserOrNode } from '../JS';
16
16
  var isBrowser = browserOrNode().isBrowser;
17
17
  var ONE_YEAR_IN_MS = 365 * 24 * 60 * 60 * 1000;
18
+ /**
19
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
20
+ * See the migration guide:
21
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
22
+ */
18
23
  var UniversalStorage = /** @class */ (function () {
19
24
  function UniversalStorage(context) {
20
25
  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
  /**
@@ -71,6 +71,9 @@ var __values = (this && this.__values) || function(o) {
71
71
  *
72
72
  * As work completes on its own prior to close, the manager removes them
73
73
  * from the registry to avoid holding references to completed jobs.
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/
74
77
  */
75
78
  var BackgroundProcessManager = /** @class */ (function () {
76
79
  /**
@@ -416,6 +419,9 @@ var BackgroundProcessManager = /** @class */ (function () {
416
419
  export { BackgroundProcessManager };
417
420
  /**
418
421
  *
422
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
423
+ * See the migration guide:
424
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
419
425
  */
420
426
  var BackgroundManagerNotOpenError = /** @class */ (function (_super) {
421
427
  __extends(BackgroundManagerNotOpenError, _super);
@@ -427,6 +433,9 @@ var BackgroundManagerNotOpenError = /** @class */ (function (_super) {
427
433
  export { BackgroundManagerNotOpenError };
428
434
  /**
429
435
  * All possible states a `BackgroundProcessManager` instance can be in.
436
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
437
+ * See the migration guide:
438
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
430
439
  */
431
440
  export var BackgroundProcessManagerState;
432
441
  (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, };
@@ -1,12 +1,47 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // Logging constants
4
+ /**
5
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
6
+ * See the migration guide:
7
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
8
+ */
4
9
  var AWS_CLOUDWATCH_BASE_BUFFER_SIZE = 26;
10
+ /**
11
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
12
+ * See the migration guide:
13
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
14
+ */
5
15
  var AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = 1048576;
16
+ /**
17
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
18
+ * See the migration guide:
19
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
20
+ */
6
21
  var AWS_CLOUDWATCH_MAX_EVENT_SIZE = 256000;
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
+ */
7
27
  var AWS_CLOUDWATCH_CATEGORY = 'Logging';
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
+ */
8
33
  var AWS_CLOUDWATCH_PROVIDER_NAME = 'AWSCloudWatch';
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
+ */
9
39
  var NO_CREDS_ERROR_STRING = 'No credentials';
40
+ /**
41
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
42
+ * See the migration guide:
43
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
44
+ */
10
45
  var RETRY_ERROR_CODES = [
11
46
  'ResourceNotFoundException',
12
47
  '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
@@ -24,6 +24,11 @@ var __read = (this && this.__read) || function (o, n) {
24
24
  };
25
25
  // Comment - TODO: remove
26
26
  var FIVE_MINUTES_IN_MS = 1000 * 60 * 5;
27
+ /**
28
+ * @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
29
+ * See the migration guide:
30
+ * https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
31
+ */
27
32
  export var DateUtils = {
28
33
  /**
29
34
  * Milliseconds to offset the date to compensate for clock skew between device & services
@@ -34,6 +34,11 @@ declare namespace MutexInterface {
34
34
  (): Promise<T> | T;
35
35
  }
36
36
  }
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
+ */
37
42
  declare class Mutex implements MutexInterface {
38
43
  isLocked(): boolean;
39
44
  acquire(): Promise<MutexInterface.Releaser>;