@aws-sdk/client-identitystore 3.141.0 → 3.142.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/CHANGELOG.md +11 -0
- package/dist-cjs/protocols/Aws_json1_1.js +20 -35
- package/dist-es/protocols/Aws_json1_1.js +33 -36
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
|
|
7
18
|
|
|
8
19
|
|
|
@@ -64,7 +64,6 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
64
64
|
...output,
|
|
65
65
|
body: await parseBody(output.body, context),
|
|
66
66
|
};
|
|
67
|
-
let response;
|
|
68
67
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
69
68
|
switch (errorCode) {
|
|
70
69
|
case "AccessDeniedException":
|
|
@@ -84,14 +83,12 @@ const deserializeAws_json1_1DescribeGroupCommandError = async (output, context)
|
|
|
84
83
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
85
84
|
default:
|
|
86
85
|
const parsedBody = parsedOutput.body;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
$metadata,
|
|
86
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
87
|
+
output,
|
|
88
|
+
parsedBody,
|
|
89
|
+
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
90
|
+
errorCode,
|
|
93
91
|
});
|
|
94
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
95
92
|
}
|
|
96
93
|
};
|
|
97
94
|
const deserializeAws_json1_1DescribeUserCommand = async (output, context) => {
|
|
@@ -113,7 +110,6 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
113
110
|
...output,
|
|
114
111
|
body: await parseBody(output.body, context),
|
|
115
112
|
};
|
|
116
|
-
let response;
|
|
117
113
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
118
114
|
switch (errorCode) {
|
|
119
115
|
case "AccessDeniedException":
|
|
@@ -133,14 +129,12 @@ const deserializeAws_json1_1DescribeUserCommandError = async (output, context) =
|
|
|
133
129
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
134
130
|
default:
|
|
135
131
|
const parsedBody = parsedOutput.body;
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
$metadata,
|
|
132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
133
|
+
output,
|
|
134
|
+
parsedBody,
|
|
135
|
+
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
136
|
+
errorCode,
|
|
142
137
|
});
|
|
143
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
144
138
|
}
|
|
145
139
|
};
|
|
146
140
|
const deserializeAws_json1_1ListGroupsCommand = async (output, context) => {
|
|
@@ -162,7 +156,6 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
162
156
|
...output,
|
|
163
157
|
body: await parseBody(output.body, context),
|
|
164
158
|
};
|
|
165
|
-
let response;
|
|
166
159
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
167
160
|
switch (errorCode) {
|
|
168
161
|
case "AccessDeniedException":
|
|
@@ -182,14 +175,12 @@ const deserializeAws_json1_1ListGroupsCommandError = async (output, context) =>
|
|
|
182
175
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
183
176
|
default:
|
|
184
177
|
const parsedBody = parsedOutput.body;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
$metadata,
|
|
178
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
179
|
+
output,
|
|
180
|
+
parsedBody,
|
|
181
|
+
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
182
|
+
errorCode,
|
|
191
183
|
});
|
|
192
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
193
184
|
}
|
|
194
185
|
};
|
|
195
186
|
const deserializeAws_json1_1ListUsersCommand = async (output, context) => {
|
|
@@ -211,7 +202,6 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
211
202
|
...output,
|
|
212
203
|
body: await parseBody(output.body, context),
|
|
213
204
|
};
|
|
214
|
-
let response;
|
|
215
205
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
216
206
|
switch (errorCode) {
|
|
217
207
|
case "AccessDeniedException":
|
|
@@ -231,14 +221,12 @@ const deserializeAws_json1_1ListUsersCommandError = async (output, context) => {
|
|
|
231
221
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
232
222
|
default:
|
|
233
223
|
const parsedBody = parsedOutput.body;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
$metadata,
|
|
224
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
225
|
+
output,
|
|
226
|
+
parsedBody,
|
|
227
|
+
exceptionCtor: IdentitystoreServiceException_1.IdentitystoreServiceException,
|
|
228
|
+
errorCode,
|
|
240
229
|
});
|
|
241
|
-
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
242
230
|
}
|
|
243
231
|
};
|
|
244
232
|
const deserializeAws_json1_1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -308,9 +296,6 @@ const serializeAws_json1_1Filters = (input, context) => {
|
|
|
308
296
|
return input
|
|
309
297
|
.filter((e) => e != null)
|
|
310
298
|
.map((entry) => {
|
|
311
|
-
if (entry === null) {
|
|
312
|
-
return null;
|
|
313
|
-
}
|
|
314
299
|
return serializeAws_json1_1Filter(entry, context);
|
|
315
300
|
});
|
|
316
301
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
|
|
3
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString, } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { decorateServiceException as __decorateServiceException, expectString as __expectString, throwDefaultError, } from "@aws-sdk/smithy-client";
|
|
4
4
|
import { IdentitystoreServiceException as __BaseException } from "../models/IdentitystoreServiceException";
|
|
5
5
|
import { AccessDeniedException, InternalServerException, ResourceNotFoundException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export var serializeAws_json1_1DescribeGroupCommand = function (input, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
@@ -66,7 +66,7 @@ export var deserializeAws_json1_1DescribeGroupCommand = function (output, contex
|
|
|
66
66
|
});
|
|
67
67
|
}); };
|
|
68
68
|
var deserializeAws_json1_1DescribeGroupCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
69
|
-
var parsedOutput, _a,
|
|
69
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
70
70
|
var _c;
|
|
71
71
|
return __generator(this, function (_d) {
|
|
72
72
|
switch (_d.label) {
|
|
@@ -103,14 +103,14 @@ var deserializeAws_json1_1DescribeGroupCommandError = function (output, context)
|
|
|
103
103
|
case 11: throw _d.sent();
|
|
104
104
|
case 12:
|
|
105
105
|
parsedBody = parsedOutput.body;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
$metadata: $metadata,
|
|
106
|
+
throwDefaultError({
|
|
107
|
+
output: output,
|
|
108
|
+
parsedBody: parsedBody,
|
|
109
|
+
exceptionCtor: __BaseException,
|
|
110
|
+
errorCode: errorCode,
|
|
112
111
|
});
|
|
113
|
-
|
|
112
|
+
_d.label = 13;
|
|
113
|
+
case 13: return [2];
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
}); };
|
|
@@ -133,7 +133,7 @@ export var deserializeAws_json1_1DescribeUserCommand = function (output, context
|
|
|
133
133
|
});
|
|
134
134
|
}); };
|
|
135
135
|
var deserializeAws_json1_1DescribeUserCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
136
|
-
var parsedOutput, _a,
|
|
136
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
137
137
|
var _c;
|
|
138
138
|
return __generator(this, function (_d) {
|
|
139
139
|
switch (_d.label) {
|
|
@@ -170,14 +170,14 @@ var deserializeAws_json1_1DescribeUserCommandError = function (output, context)
|
|
|
170
170
|
case 11: throw _d.sent();
|
|
171
171
|
case 12:
|
|
172
172
|
parsedBody = parsedOutput.body;
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
$metadata: $metadata,
|
|
173
|
+
throwDefaultError({
|
|
174
|
+
output: output,
|
|
175
|
+
parsedBody: parsedBody,
|
|
176
|
+
exceptionCtor: __BaseException,
|
|
177
|
+
errorCode: errorCode,
|
|
179
178
|
});
|
|
180
|
-
|
|
179
|
+
_d.label = 13;
|
|
180
|
+
case 13: return [2];
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}); };
|
|
@@ -200,7 +200,7 @@ export var deserializeAws_json1_1ListGroupsCommand = function (output, context)
|
|
|
200
200
|
});
|
|
201
201
|
}); };
|
|
202
202
|
var deserializeAws_json1_1ListGroupsCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
203
|
-
var parsedOutput, _a,
|
|
203
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
204
204
|
var _c;
|
|
205
205
|
return __generator(this, function (_d) {
|
|
206
206
|
switch (_d.label) {
|
|
@@ -237,14 +237,14 @@ var deserializeAws_json1_1ListGroupsCommandError = function (output, context) {
|
|
|
237
237
|
case 11: throw _d.sent();
|
|
238
238
|
case 12:
|
|
239
239
|
parsedBody = parsedOutput.body;
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
$metadata: $metadata,
|
|
240
|
+
throwDefaultError({
|
|
241
|
+
output: output,
|
|
242
|
+
parsedBody: parsedBody,
|
|
243
|
+
exceptionCtor: __BaseException,
|
|
244
|
+
errorCode: errorCode,
|
|
246
245
|
});
|
|
247
|
-
|
|
246
|
+
_d.label = 13;
|
|
247
|
+
case 13: return [2];
|
|
248
248
|
}
|
|
249
249
|
});
|
|
250
250
|
}); };
|
|
@@ -267,7 +267,7 @@ export var deserializeAws_json1_1ListUsersCommand = function (output, context) {
|
|
|
267
267
|
});
|
|
268
268
|
}); };
|
|
269
269
|
var deserializeAws_json1_1ListUsersCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
|
|
270
|
-
var parsedOutput, _a,
|
|
270
|
+
var parsedOutput, _a, errorCode, _b, parsedBody;
|
|
271
271
|
var _c;
|
|
272
272
|
return __generator(this, function (_d) {
|
|
273
273
|
switch (_d.label) {
|
|
@@ -304,14 +304,14 @@ var deserializeAws_json1_1ListUsersCommandError = function (output, context) { r
|
|
|
304
304
|
case 11: throw _d.sent();
|
|
305
305
|
case 12:
|
|
306
306
|
parsedBody = parsedOutput.body;
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
$metadata: $metadata,
|
|
307
|
+
throwDefaultError({
|
|
308
|
+
output: output,
|
|
309
|
+
parsedBody: parsedBody,
|
|
310
|
+
exceptionCtor: __BaseException,
|
|
311
|
+
errorCode: errorCode,
|
|
313
312
|
});
|
|
314
|
-
|
|
313
|
+
_d.label = 13;
|
|
314
|
+
case 13: return [2];
|
|
315
315
|
}
|
|
316
316
|
});
|
|
317
317
|
}); };
|
|
@@ -373,9 +373,6 @@ var serializeAws_json1_1Filters = function (input, context) {
|
|
|
373
373
|
return input
|
|
374
374
|
.filter(function (e) { return e != null; })
|
|
375
375
|
.map(function (entry) {
|
|
376
|
-
if (entry === null) {
|
|
377
|
-
return null;
|
|
378
|
-
}
|
|
379
376
|
return serializeAws_json1_1Filter(entry, context);
|
|
380
377
|
});
|
|
381
378
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-identitystore",
|
|
3
3
|
"description": "AWS SDK for JavaScript Identitystore Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.142.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.142.0",
|
|
22
22
|
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.142.0",
|
|
24
24
|
"@aws-sdk/fetch-http-handler": "3.131.0",
|
|
25
25
|
"@aws-sdk/hash-node": "3.127.0",
|
|
26
26
|
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
37
|
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
38
|
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
39
|
+
"@aws-sdk/smithy-client": "3.142.0",
|
|
40
40
|
"@aws-sdk/types": "3.127.0",
|
|
41
41
|
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.142.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.142.0",
|
|
48
48
|
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
49
|
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|