@aws-sdk/client-qapps 3.654.0 → 3.658.1

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.
@@ -8,7 +8,7 @@ const models_0_1 = require("../models/models_0");
8
8
  const QAppsServiceException_1 = require("../models/QAppsServiceException");
9
9
  const se_AssociateLibraryItemReviewCommand = async (input, context) => {
10
10
  const b = (0, core_2.requestBuilder)(input, context);
11
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
11
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
12
12
  "content-type": "application/json",
13
13
  [_ii]: input[_iI],
14
14
  });
@@ -23,7 +23,7 @@ const se_AssociateLibraryItemReviewCommand = async (input, context) => {
23
23
  exports.se_AssociateLibraryItemReviewCommand = se_AssociateLibraryItemReviewCommand;
24
24
  const se_AssociateQAppWithUserCommand = async (input, context) => {
25
25
  const b = (0, core_2.requestBuilder)(input, context);
26
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
26
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
27
27
  "content-type": "application/json",
28
28
  [_ii]: input[_iI],
29
29
  });
@@ -38,7 +38,7 @@ const se_AssociateQAppWithUserCommand = async (input, context) => {
38
38
  exports.se_AssociateQAppWithUserCommand = se_AssociateQAppWithUserCommand;
39
39
  const se_CreateLibraryItemCommand = async (input, context) => {
40
40
  const b = (0, core_2.requestBuilder)(input, context);
41
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
41
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
42
42
  "content-type": "application/json",
43
43
  [_ii]: input[_iI],
44
44
  });
@@ -55,7 +55,7 @@ const se_CreateLibraryItemCommand = async (input, context) => {
55
55
  exports.se_CreateLibraryItemCommand = se_CreateLibraryItemCommand;
56
56
  const se_CreateQAppCommand = async (input, context) => {
57
57
  const b = (0, core_2.requestBuilder)(input, context);
58
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
58
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
59
59
  "content-type": "application/json",
60
60
  [_ii]: input[_iI],
61
61
  });
@@ -73,7 +73,7 @@ const se_CreateQAppCommand = async (input, context) => {
73
73
  exports.se_CreateQAppCommand = se_CreateQAppCommand;
74
74
  const se_DeleteLibraryItemCommand = async (input, context) => {
75
75
  const b = (0, core_2.requestBuilder)(input, context);
76
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
76
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
77
77
  "content-type": "application/json",
78
78
  [_ii]: input[_iI],
79
79
  });
@@ -88,7 +88,7 @@ const se_DeleteLibraryItemCommand = async (input, context) => {
88
88
  exports.se_DeleteLibraryItemCommand = se_DeleteLibraryItemCommand;
89
89
  const se_DeleteQAppCommand = async (input, context) => {
90
90
  const b = (0, core_2.requestBuilder)(input, context);
91
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
91
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
92
92
  "content-type": "application/json",
93
93
  [_ii]: input[_iI],
94
94
  });
@@ -103,7 +103,7 @@ const se_DeleteQAppCommand = async (input, context) => {
103
103
  exports.se_DeleteQAppCommand = se_DeleteQAppCommand;
104
104
  const se_DisassociateLibraryItemReviewCommand = async (input, context) => {
105
105
  const b = (0, core_2.requestBuilder)(input, context);
106
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
106
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
107
107
  "content-type": "application/json",
108
108
  [_ii]: input[_iI],
109
109
  });
@@ -118,7 +118,7 @@ const se_DisassociateLibraryItemReviewCommand = async (input, context) => {
118
118
  exports.se_DisassociateLibraryItemReviewCommand = se_DisassociateLibraryItemReviewCommand;
119
119
  const se_DisassociateQAppFromUserCommand = async (input, context) => {
120
120
  const b = (0, core_2.requestBuilder)(input, context);
121
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
121
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
122
122
  "content-type": "application/json",
123
123
  [_ii]: input[_iI],
124
124
  });
@@ -133,7 +133,7 @@ const se_DisassociateQAppFromUserCommand = async (input, context) => {
133
133
  exports.se_DisassociateQAppFromUserCommand = se_DisassociateQAppFromUserCommand;
134
134
  const se_GetLibraryItemCommand = async (input, context) => {
135
135
  const b = (0, core_2.requestBuilder)(input, context);
136
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
136
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
137
137
  [_ii]: input[_iI],
138
138
  });
139
139
  b.bp("/catalog.getItem");
@@ -148,7 +148,7 @@ const se_GetLibraryItemCommand = async (input, context) => {
148
148
  exports.se_GetLibraryItemCommand = se_GetLibraryItemCommand;
149
149
  const se_GetQAppCommand = async (input, context) => {
150
150
  const b = (0, core_2.requestBuilder)(input, context);
151
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
151
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
152
152
  [_ii]: input[_iI],
153
153
  });
154
154
  b.bp("/apps.get");
@@ -162,7 +162,7 @@ const se_GetQAppCommand = async (input, context) => {
162
162
  exports.se_GetQAppCommand = se_GetQAppCommand;
163
163
  const se_GetQAppSessionCommand = async (input, context) => {
164
164
  const b = (0, core_2.requestBuilder)(input, context);
165
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
165
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
166
166
  [_ii]: input[_iI],
167
167
  });
168
168
  b.bp("/runtime.getQAppSession");
@@ -176,7 +176,7 @@ const se_GetQAppSessionCommand = async (input, context) => {
176
176
  exports.se_GetQAppSessionCommand = se_GetQAppSessionCommand;
177
177
  const se_ImportDocumentCommand = async (input, context) => {
178
178
  const b = (0, core_2.requestBuilder)(input, context);
179
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
179
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
180
180
  "content-type": "application/json",
181
181
  [_ii]: input[_iI],
182
182
  });
@@ -196,7 +196,7 @@ const se_ImportDocumentCommand = async (input, context) => {
196
196
  exports.se_ImportDocumentCommand = se_ImportDocumentCommand;
197
197
  const se_ListLibraryItemsCommand = async (input, context) => {
198
198
  const b = (0, core_2.requestBuilder)(input, context);
199
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
199
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
200
200
  [_ii]: input[_iI],
201
201
  });
202
202
  b.bp("/catalog.list");
@@ -212,7 +212,7 @@ const se_ListLibraryItemsCommand = async (input, context) => {
212
212
  exports.se_ListLibraryItemsCommand = se_ListLibraryItemsCommand;
213
213
  const se_ListQAppsCommand = async (input, context) => {
214
214
  const b = (0, core_2.requestBuilder)(input, context);
215
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
215
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
216
216
  [_ii]: input[_iI],
217
217
  });
218
218
  b.bp("/apps.list");
@@ -237,7 +237,7 @@ const se_ListTagsForResourceCommand = async (input, context) => {
237
237
  exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
238
238
  const se_PredictQAppCommand = async (input, context) => {
239
239
  const b = (0, core_2.requestBuilder)(input, context);
240
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
240
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
241
241
  "content-type": "application/json",
242
242
  [_ii]: input[_iI],
243
243
  });
@@ -252,7 +252,7 @@ const se_PredictQAppCommand = async (input, context) => {
252
252
  exports.se_PredictQAppCommand = se_PredictQAppCommand;
253
253
  const se_StartQAppSessionCommand = async (input, context) => {
254
254
  const b = (0, core_2.requestBuilder)(input, context);
255
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
255
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
256
256
  "content-type": "application/json",
257
257
  [_ii]: input[_iI],
258
258
  });
@@ -270,7 +270,7 @@ const se_StartQAppSessionCommand = async (input, context) => {
270
270
  exports.se_StartQAppSessionCommand = se_StartQAppSessionCommand;
271
271
  const se_StopQAppSessionCommand = async (input, context) => {
272
272
  const b = (0, core_2.requestBuilder)(input, context);
273
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
273
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
274
274
  "content-type": "application/json",
275
275
  [_ii]: input[_iI],
276
276
  });
@@ -304,10 +304,7 @@ const se_UntagResourceCommand = async (input, context) => {
304
304
  b.bp("/tags/{resourceARN}");
305
305
  b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
306
306
  const query = (0, smithy_client_1.map)({
307
- [_tK]: [
308
- (0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
309
- () => (input[_tK] || []).map((_entry) => _entry),
310
- ],
307
+ [_tK]: [(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
311
308
  });
312
309
  let body;
313
310
  b.m("DELETE").h(headers).q(query).b(body);
@@ -316,7 +313,7 @@ const se_UntagResourceCommand = async (input, context) => {
316
313
  exports.se_UntagResourceCommand = se_UntagResourceCommand;
317
314
  const se_UpdateLibraryItemCommand = async (input, context) => {
318
315
  const b = (0, core_2.requestBuilder)(input, context);
319
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
316
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
320
317
  "content-type": "application/json",
321
318
  [_ii]: input[_iI],
322
319
  });
@@ -333,7 +330,7 @@ const se_UpdateLibraryItemCommand = async (input, context) => {
333
330
  exports.se_UpdateLibraryItemCommand = se_UpdateLibraryItemCommand;
334
331
  const se_UpdateLibraryItemMetadataCommand = async (input, context) => {
335
332
  const b = (0, core_2.requestBuilder)(input, context);
336
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
333
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
337
334
  "content-type": "application/json",
338
335
  [_ii]: input[_iI],
339
336
  });
@@ -349,7 +346,7 @@ const se_UpdateLibraryItemMetadataCommand = async (input, context) => {
349
346
  exports.se_UpdateLibraryItemMetadataCommand = se_UpdateLibraryItemMetadataCommand;
350
347
  const se_UpdateQAppCommand = async (input, context) => {
351
348
  const b = (0, core_2.requestBuilder)(input, context);
352
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
349
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
353
350
  "content-type": "application/json",
354
351
  [_ii]: input[_iI],
355
352
  });
@@ -367,7 +364,7 @@ const se_UpdateQAppCommand = async (input, context) => {
367
364
  exports.se_UpdateQAppCommand = se_UpdateQAppCommand;
368
365
  const se_UpdateQAppSessionCommand = async (input, context) => {
369
366
  const b = (0, core_2.requestBuilder)(input, context);
370
- const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, {
367
+ const headers = (0, smithy_client_1.map)({}, smithy_client_1.isSerializableHeaderValue, {
371
368
  "content-type": "application/json",
372
369
  [_ii]: input[_iI],
373
370
  });
@@ -1221,11 +1218,6 @@ const deserializeMetadata = (output) => ({
1221
1218
  cfId: output.headers["x-amz-cf-id"],
1222
1219
  });
1223
1220
  const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
1224
- const isSerializableHeaderValue = (value) => value !== undefined &&
1225
- value !== null &&
1226
- value !== "" &&
1227
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1228
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1229
1221
  const _aI = "appId";
1230
1222
  const _cI = "categoryId";
1231
1223
  const _iI = "instanceId";
@@ -1,6 +1,6 @@
1
1
  import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
3
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, map, parseEpochTimestamp as __parseEpochTimestamp, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { AccessDeniedException, CardInput, ConflictException, ContentTooLargeException, DocumentAttributeValue, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/models_0";
5
5
  import { QAppsServiceException as __BaseException } from "../models/QAppsServiceException";
6
6
  export const se_AssociateLibraryItemReviewCommand = async (input, context) => {
@@ -282,10 +282,7 @@ export const se_UntagResourceCommand = async (input, context) => {
282
282
  b.bp("/tags/{resourceARN}");
283
283
  b.p("resourceARN", () => input.resourceARN, "{resourceARN}", false);
284
284
  const query = map({
285
- [_tK]: [
286
- __expectNonNull(input.tagKeys, `tagKeys`) != null,
287
- () => (input[_tK] || []).map((_entry) => _entry),
288
- ],
285
+ [_tK]: [__expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
289
286
  });
290
287
  let body;
291
288
  b.m("DELETE").h(headers).q(query).b(body);
@@ -1170,11 +1167,6 @@ const deserializeMetadata = (output) => ({
1170
1167
  cfId: output.headers["x-amz-cf-id"],
1171
1168
  });
1172
1169
  const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
1173
- const isSerializableHeaderValue = (value) => value !== undefined &&
1174
- value !== null &&
1175
- value !== "" &&
1176
- (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
1177
- (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
1178
1170
  const _aI = "appId";
1179
1171
  const _cI = "categoryId";
1180
1172
  const _iI = "instanceId";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-qapps",
3
3
  "description": "AWS SDK for JavaScript Qapps Client for Node.js, Browser and React Native",
4
- "version": "3.654.0",
4
+ "version": "3.658.1",
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",
@@ -20,10 +20,10 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/client-sso-oidc": "3.654.0",
24
- "@aws-sdk/client-sts": "3.654.0",
25
- "@aws-sdk/core": "3.654.0",
26
- "@aws-sdk/credential-provider-node": "3.654.0",
23
+ "@aws-sdk/client-sso-oidc": "3.658.1",
24
+ "@aws-sdk/client-sts": "3.658.1",
25
+ "@aws-sdk/core": "3.658.1",
26
+ "@aws-sdk/credential-provider-node": "3.658.1",
27
27
  "@aws-sdk/middleware-host-header": "3.654.0",
28
28
  "@aws-sdk/middleware-logger": "3.654.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.654.0",
@@ -34,26 +34,26 @@
34
34
  "@aws-sdk/util-user-agent-browser": "3.654.0",
35
35
  "@aws-sdk/util-user-agent-node": "3.654.0",
36
36
  "@smithy/config-resolver": "^3.0.8",
37
- "@smithy/core": "^2.4.3",
38
- "@smithy/fetch-http-handler": "^3.2.7",
37
+ "@smithy/core": "^2.4.6",
38
+ "@smithy/fetch-http-handler": "^3.2.8",
39
39
  "@smithy/hash-node": "^3.0.6",
40
40
  "@smithy/invalid-dependency": "^3.0.6",
41
41
  "@smithy/middleware-content-length": "^3.0.8",
42
42
  "@smithy/middleware-endpoint": "^3.1.3",
43
- "@smithy/middleware-retry": "^3.0.18",
43
+ "@smithy/middleware-retry": "^3.0.21",
44
44
  "@smithy/middleware-serde": "^3.0.6",
45
45
  "@smithy/middleware-stack": "^3.0.6",
46
46
  "@smithy/node-config-provider": "^3.1.7",
47
- "@smithy/node-http-handler": "^3.2.2",
47
+ "@smithy/node-http-handler": "^3.2.3",
48
48
  "@smithy/protocol-http": "^4.1.3",
49
- "@smithy/smithy-client": "^3.3.2",
49
+ "@smithy/smithy-client": "^3.3.5",
50
50
  "@smithy/types": "^3.4.2",
51
51
  "@smithy/url-parser": "^3.0.6",
52
52
  "@smithy/util-base64": "^3.0.0",
53
53
  "@smithy/util-body-length-browser": "^3.0.0",
54
54
  "@smithy/util-body-length-node": "^3.0.0",
55
- "@smithy/util-defaults-mode-browser": "^3.0.18",
56
- "@smithy/util-defaults-mode-node": "^3.0.18",
55
+ "@smithy/util-defaults-mode-browser": "^3.0.21",
56
+ "@smithy/util-defaults-mode-node": "^3.0.21",
57
57
  "@smithy/util-endpoints": "^2.1.2",
58
58
  "@smithy/util-middleware": "^3.0.6",
59
59
  "@smithy/util-retry": "^3.0.6",