@aws-sdk/client-kendra 3.28.0 → 3.32.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 +32 -0
- package/dist/cjs/package.json +31 -31
- package/dist/cjs/protocols/Aws_json1_1.js +65 -63
- package/dist/cjs/protocols/Aws_json1_1.js.map +1 -1
- package/dist/es/endpoints.js +1 -2
- package/dist/es/endpoints.js.map +1 -1
- package/dist/es/package.json +31 -31
- package/dist/es/protocols/Aws_json1_1.js +66 -64
- package/dist/es/protocols/Aws_json1_1.js.map +1 -1
- package/package.json +31 -31
- package/protocols/Aws_json1_1.ts +72 -65
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kendra",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kendra Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.32.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation",
|
|
7
7
|
"build-documentation": "yarn remove-documentation && typedoc ./",
|
|
@@ -27,39 +27,39 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "^1.0.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "^1.0.0",
|
|
30
|
-
"@aws-sdk/client-sts": "3.
|
|
31
|
-
"@aws-sdk/config-resolver": "3.
|
|
32
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
33
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
34
|
-
"@aws-sdk/hash-node": "3.
|
|
35
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
36
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
37
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
38
|
-
"@aws-sdk/middleware-logger": "3.
|
|
39
|
-
"@aws-sdk/middleware-retry": "3.
|
|
40
|
-
"@aws-sdk/middleware-serde": "3.
|
|
41
|
-
"@aws-sdk/middleware-signing": "3.
|
|
42
|
-
"@aws-sdk/middleware-stack": "3.
|
|
43
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
44
|
-
"@aws-sdk/node-config-provider": "3.
|
|
45
|
-
"@aws-sdk/node-http-handler": "3.
|
|
46
|
-
"@aws-sdk/protocol-http": "3.
|
|
47
|
-
"@aws-sdk/smithy-client": "3.
|
|
48
|
-
"@aws-sdk/types": "3.
|
|
49
|
-
"@aws-sdk/url-parser": "3.
|
|
50
|
-
"@aws-sdk/util-base64-browser": "3.
|
|
51
|
-
"@aws-sdk/util-base64-node": "3.
|
|
52
|
-
"@aws-sdk/util-body-length-browser": "3.
|
|
53
|
-
"@aws-sdk/util-body-length-node": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
56
|
-
"@aws-sdk/util-utf8-browser": "3.
|
|
57
|
-
"@aws-sdk/util-utf8-node": "3.
|
|
30
|
+
"@aws-sdk/client-sts": "3.32.0",
|
|
31
|
+
"@aws-sdk/config-resolver": "3.32.0",
|
|
32
|
+
"@aws-sdk/credential-provider-node": "3.32.0",
|
|
33
|
+
"@aws-sdk/fetch-http-handler": "3.32.0",
|
|
34
|
+
"@aws-sdk/hash-node": "3.32.0",
|
|
35
|
+
"@aws-sdk/invalid-dependency": "3.32.0",
|
|
36
|
+
"@aws-sdk/middleware-content-length": "3.32.0",
|
|
37
|
+
"@aws-sdk/middleware-host-header": "3.32.0",
|
|
38
|
+
"@aws-sdk/middleware-logger": "3.32.0",
|
|
39
|
+
"@aws-sdk/middleware-retry": "3.32.0",
|
|
40
|
+
"@aws-sdk/middleware-serde": "3.32.0",
|
|
41
|
+
"@aws-sdk/middleware-signing": "3.32.0",
|
|
42
|
+
"@aws-sdk/middleware-stack": "3.32.0",
|
|
43
|
+
"@aws-sdk/middleware-user-agent": "3.32.0",
|
|
44
|
+
"@aws-sdk/node-config-provider": "3.32.0",
|
|
45
|
+
"@aws-sdk/node-http-handler": "3.32.0",
|
|
46
|
+
"@aws-sdk/protocol-http": "3.32.0",
|
|
47
|
+
"@aws-sdk/smithy-client": "3.32.0",
|
|
48
|
+
"@aws-sdk/types": "3.32.0",
|
|
49
|
+
"@aws-sdk/url-parser": "3.32.0",
|
|
50
|
+
"@aws-sdk/util-base64-browser": "3.32.0",
|
|
51
|
+
"@aws-sdk/util-base64-node": "3.32.0",
|
|
52
|
+
"@aws-sdk/util-body-length-browser": "3.32.0",
|
|
53
|
+
"@aws-sdk/util-body-length-node": "3.32.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.32.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.32.0",
|
|
56
|
+
"@aws-sdk/util-utf8-browser": "3.32.0",
|
|
57
|
+
"@aws-sdk/util-utf8-node": "3.32.0",
|
|
58
58
|
"tslib": "^2.3.0",
|
|
59
59
|
"uuid": "^8.3.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@aws-sdk/client-documentation-generator": "3.
|
|
62
|
+
"@aws-sdk/client-documentation-generator": "3.32.0",
|
|
63
63
|
"@types/node": "^12.7.5",
|
|
64
64
|
"@types/uuid": "^8.3.0",
|
|
65
65
|
"downlevel-dts": "0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"rimraf": "^3.0.0",
|
|
68
68
|
"ts-jest": "^26.4.1",
|
|
69
69
|
"typedoc": "^0.19.2",
|
|
70
|
-
"typescript": "~4.3.
|
|
70
|
+
"typescript": "~4.3.5"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=10.0.0"
|
package/protocols/Aws_json1_1.ts
CHANGED
|
@@ -285,9 +285,14 @@ import {
|
|
|
285
285
|
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
286
286
|
import {
|
|
287
287
|
expectBoolean as __expectBoolean,
|
|
288
|
-
|
|
288
|
+
expectInt32 as __expectInt32,
|
|
289
|
+
expectLong as __expectLong,
|
|
290
|
+
expectNonNull as __expectNonNull,
|
|
291
|
+
expectNumber as __expectNumber,
|
|
289
292
|
expectString as __expectString,
|
|
290
|
-
|
|
293
|
+
expectUnion as __expectUnion,
|
|
294
|
+
limitedParseFloat32 as __limitedParseFloat32,
|
|
295
|
+
parseEpochTimestamp as __parseEpochTimestamp,
|
|
291
296
|
serializeFloat as __serializeFloat,
|
|
292
297
|
} from "@aws-sdk/smithy-client";
|
|
293
298
|
import {
|
|
@@ -7289,7 +7294,7 @@ const deserializeAws_json1_1BasicAuthenticationConfiguration = (
|
|
|
7289
7294
|
return {
|
|
7290
7295
|
Credentials: __expectString(output.Credentials),
|
|
7291
7296
|
Host: __expectString(output.Host),
|
|
7292
|
-
Port:
|
|
7297
|
+
Port: __expectInt32(output.Port),
|
|
7293
7298
|
} as any;
|
|
7294
7299
|
};
|
|
7295
7300
|
|
|
@@ -7427,8 +7432,8 @@ const deserializeAws_json1_1CapacityUnitsConfiguration = (
|
|
|
7427
7432
|
context: __SerdeContext
|
|
7428
7433
|
): CapacityUnitsConfiguration => {
|
|
7429
7434
|
return {
|
|
7430
|
-
QueryCapacityUnits:
|
|
7431
|
-
StorageCapacityUnits:
|
|
7435
|
+
QueryCapacityUnits: __expectInt32(output.QueryCapacityUnits),
|
|
7436
|
+
StorageCapacityUnits: __expectInt32(output.StorageCapacityUnits),
|
|
7432
7437
|
} as any;
|
|
7433
7438
|
};
|
|
7434
7439
|
|
|
@@ -7681,7 +7686,7 @@ const deserializeAws_json1_1ConnectionConfiguration = (
|
|
|
7681
7686
|
return {
|
|
7682
7687
|
DatabaseHost: __expectString(output.DatabaseHost),
|
|
7683
7688
|
DatabaseName: __expectString(output.DatabaseName),
|
|
7684
|
-
DatabasePort:
|
|
7689
|
+
DatabasePort: __expectInt32(output.DatabasePort),
|
|
7685
7690
|
SecretArn: __expectString(output.SecretArn),
|
|
7686
7691
|
TableName: __expectString(output.TableName),
|
|
7687
7692
|
} as any;
|
|
@@ -7818,7 +7823,7 @@ const deserializeAws_json1_1DataSourceSummary = (output: any, context: __SerdeCo
|
|
|
7818
7823
|
return {
|
|
7819
7824
|
CreatedAt:
|
|
7820
7825
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7821
|
-
?
|
|
7826
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
7822
7827
|
: undefined,
|
|
7823
7828
|
Id: __expectString(output.Id),
|
|
7824
7829
|
Name: __expectString(output.Name),
|
|
@@ -7826,7 +7831,7 @@ const deserializeAws_json1_1DataSourceSummary = (output: any, context: __SerdeCo
|
|
|
7826
7831
|
Type: __expectString(output.Type),
|
|
7827
7832
|
UpdatedAt:
|
|
7828
7833
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
7829
|
-
?
|
|
7834
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
7830
7835
|
: undefined,
|
|
7831
7836
|
} as any;
|
|
7832
7837
|
};
|
|
@@ -7846,7 +7851,9 @@ const deserializeAws_json1_1DataSourceSyncJob = (output: any, context: __SerdeCo
|
|
|
7846
7851
|
return {
|
|
7847
7852
|
DataSourceErrorCode: __expectString(output.DataSourceErrorCode),
|
|
7848
7853
|
EndTime:
|
|
7849
|
-
output.EndTime !== undefined && output.EndTime !== null
|
|
7854
|
+
output.EndTime !== undefined && output.EndTime !== null
|
|
7855
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EndTime)))
|
|
7856
|
+
: undefined,
|
|
7850
7857
|
ErrorCode: __expectString(output.ErrorCode),
|
|
7851
7858
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
7852
7859
|
ExecutionId: __expectString(output.ExecutionId),
|
|
@@ -7856,7 +7863,7 @@ const deserializeAws_json1_1DataSourceSyncJob = (output: any, context: __SerdeCo
|
|
|
7856
7863
|
: undefined,
|
|
7857
7864
|
StartTime:
|
|
7858
7865
|
output.StartTime !== undefined && output.StartTime !== null
|
|
7859
|
-
?
|
|
7866
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.StartTime)))
|
|
7860
7867
|
: undefined,
|
|
7861
7868
|
Status: __expectString(output.Status),
|
|
7862
7869
|
} as any;
|
|
@@ -7941,7 +7948,7 @@ const deserializeAws_json1_1DescribeDataSourceResponse = (
|
|
|
7941
7948
|
: undefined,
|
|
7942
7949
|
CreatedAt:
|
|
7943
7950
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7944
|
-
?
|
|
7951
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
7945
7952
|
: undefined,
|
|
7946
7953
|
Description: __expectString(output.Description),
|
|
7947
7954
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
@@ -7954,7 +7961,7 @@ const deserializeAws_json1_1DescribeDataSourceResponse = (
|
|
|
7954
7961
|
Type: __expectString(output.Type),
|
|
7955
7962
|
UpdatedAt:
|
|
7956
7963
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
7957
|
-
?
|
|
7964
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
7958
7965
|
: undefined,
|
|
7959
7966
|
} as any;
|
|
7960
7967
|
};
|
|
@@ -7963,7 +7970,7 @@ const deserializeAws_json1_1DescribeFaqResponse = (output: any, context: __Serde
|
|
|
7963
7970
|
return {
|
|
7964
7971
|
CreatedAt:
|
|
7965
7972
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7966
|
-
?
|
|
7973
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
7967
7974
|
: undefined,
|
|
7968
7975
|
Description: __expectString(output.Description),
|
|
7969
7976
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
@@ -7979,7 +7986,7 @@ const deserializeAws_json1_1DescribeFaqResponse = (output: any, context: __Serde
|
|
|
7979
7986
|
Status: __expectString(output.Status),
|
|
7980
7987
|
UpdatedAt:
|
|
7981
7988
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
7982
|
-
?
|
|
7989
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
7983
7990
|
: undefined,
|
|
7984
7991
|
} as any;
|
|
7985
7992
|
};
|
|
@@ -7992,7 +7999,7 @@ const deserializeAws_json1_1DescribeIndexResponse = (output: any, context: __Ser
|
|
|
7992
7999
|
: undefined,
|
|
7993
8000
|
CreatedAt:
|
|
7994
8001
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
7995
|
-
?
|
|
8002
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
7996
8003
|
: undefined,
|
|
7997
8004
|
Description: __expectString(output.Description),
|
|
7998
8005
|
DocumentMetadataConfigurations:
|
|
@@ -8015,7 +8022,7 @@ const deserializeAws_json1_1DescribeIndexResponse = (output: any, context: __Ser
|
|
|
8015
8022
|
Status: __expectString(output.Status),
|
|
8016
8023
|
UpdatedAt:
|
|
8017
8024
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8018
|
-
?
|
|
8025
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8019
8026
|
: undefined,
|
|
8020
8027
|
UserContextPolicy: __expectString(output.UserContextPolicy),
|
|
8021
8028
|
UserTokenConfigurations:
|
|
@@ -8047,14 +8054,14 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse = (
|
|
|
8047
8054
|
return {
|
|
8048
8055
|
CreatedAt:
|
|
8049
8056
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8050
|
-
?
|
|
8057
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8051
8058
|
: undefined,
|
|
8052
8059
|
Description: __expectString(output.Description),
|
|
8053
8060
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
8054
|
-
FileSizeBytes:
|
|
8061
|
+
FileSizeBytes: __expectLong(output.FileSizeBytes),
|
|
8055
8062
|
Id: __expectString(output.Id),
|
|
8056
8063
|
IndexId: __expectString(output.IndexId),
|
|
8057
|
-
ItemCount:
|
|
8064
|
+
ItemCount: __expectInt32(output.ItemCount),
|
|
8058
8065
|
Name: __expectString(output.Name),
|
|
8059
8066
|
RoleArn: __expectString(output.RoleArn),
|
|
8060
8067
|
SourceS3Path:
|
|
@@ -8064,7 +8071,7 @@ const deserializeAws_json1_1DescribeQuerySuggestionsBlockListResponse = (
|
|
|
8064
8071
|
Status: __expectString(output.Status),
|
|
8065
8072
|
UpdatedAt:
|
|
8066
8073
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8067
|
-
?
|
|
8074
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8068
8075
|
: undefined,
|
|
8069
8076
|
} as any;
|
|
8070
8077
|
};
|
|
@@ -8077,18 +8084,18 @@ const deserializeAws_json1_1DescribeQuerySuggestionsConfigResponse = (
|
|
|
8077
8084
|
IncludeQueriesWithoutUserInformation: __expectBoolean(output.IncludeQueriesWithoutUserInformation),
|
|
8078
8085
|
LastClearTime:
|
|
8079
8086
|
output.LastClearTime !== undefined && output.LastClearTime !== null
|
|
8080
|
-
?
|
|
8087
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastClearTime)))
|
|
8081
8088
|
: undefined,
|
|
8082
8089
|
LastSuggestionsBuildTime:
|
|
8083
8090
|
output.LastSuggestionsBuildTime !== undefined && output.LastSuggestionsBuildTime !== null
|
|
8084
|
-
?
|
|
8091
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastSuggestionsBuildTime)))
|
|
8085
8092
|
: undefined,
|
|
8086
|
-
MinimumNumberOfQueryingUsers:
|
|
8087
|
-
MinimumQueryCount:
|
|
8093
|
+
MinimumNumberOfQueryingUsers: __expectInt32(output.MinimumNumberOfQueryingUsers),
|
|
8094
|
+
MinimumQueryCount: __expectInt32(output.MinimumQueryCount),
|
|
8088
8095
|
Mode: __expectString(output.Mode),
|
|
8089
|
-
QueryLogLookBackWindowInDays:
|
|
8096
|
+
QueryLogLookBackWindowInDays: __expectInt32(output.QueryLogLookBackWindowInDays),
|
|
8090
8097
|
Status: __expectString(output.Status),
|
|
8091
|
-
TotalSuggestionsCount:
|
|
8098
|
+
TotalSuggestionsCount: __expectInt32(output.TotalSuggestionsCount),
|
|
8092
8099
|
} as any;
|
|
8093
8100
|
};
|
|
8094
8101
|
|
|
@@ -8099,11 +8106,11 @@ const deserializeAws_json1_1DescribeThesaurusResponse = (
|
|
|
8099
8106
|
return {
|
|
8100
8107
|
CreatedAt:
|
|
8101
8108
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8102
|
-
?
|
|
8109
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8103
8110
|
: undefined,
|
|
8104
8111
|
Description: __expectString(output.Description),
|
|
8105
8112
|
ErrorMessage: __expectString(output.ErrorMessage),
|
|
8106
|
-
FileSizeBytes:
|
|
8113
|
+
FileSizeBytes: __expectLong(output.FileSizeBytes),
|
|
8107
8114
|
Id: __expectString(output.Id),
|
|
8108
8115
|
IndexId: __expectString(output.IndexId),
|
|
8109
8116
|
Name: __expectString(output.Name),
|
|
@@ -8113,11 +8120,11 @@ const deserializeAws_json1_1DescribeThesaurusResponse = (
|
|
|
8113
8120
|
? deserializeAws_json1_1S3Path(output.SourceS3Path, context)
|
|
8114
8121
|
: undefined,
|
|
8115
8122
|
Status: __expectString(output.Status),
|
|
8116
|
-
SynonymRuleCount:
|
|
8117
|
-
TermCount:
|
|
8123
|
+
SynonymRuleCount: __expectLong(output.SynonymRuleCount),
|
|
8124
|
+
TermCount: __expectLong(output.TermCount),
|
|
8118
8125
|
UpdatedAt:
|
|
8119
8126
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8120
|
-
?
|
|
8127
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8121
8128
|
: undefined,
|
|
8122
8129
|
} as any;
|
|
8123
8130
|
};
|
|
@@ -8127,7 +8134,7 @@ const deserializeAws_json1_1DocumentAttribute = (output: any, context: __SerdeCo
|
|
|
8127
8134
|
Key: __expectString(output.Key),
|
|
8128
8135
|
Value:
|
|
8129
8136
|
output.Value !== undefined && output.Value !== null
|
|
8130
|
-
? deserializeAws_json1_1DocumentAttributeValue(output.Value, context)
|
|
8137
|
+
? deserializeAws_json1_1DocumentAttributeValue(__expectUnion(output.Value), context)
|
|
8131
8138
|
: undefined,
|
|
8132
8139
|
} as any;
|
|
8133
8140
|
};
|
|
@@ -8157,11 +8164,11 @@ const deserializeAws_json1_1DocumentAttributeStringListValue = (output: any, con
|
|
|
8157
8164
|
const deserializeAws_json1_1DocumentAttributeValue = (output: any, context: __SerdeContext): DocumentAttributeValue => {
|
|
8158
8165
|
if (output.DateValue !== undefined && output.DateValue !== null) {
|
|
8159
8166
|
return {
|
|
8160
|
-
DateValue:
|
|
8167
|
+
DateValue: __expectNonNull(__parseEpochTimestamp(__expectNumber(output.DateValue))),
|
|
8161
8168
|
};
|
|
8162
8169
|
}
|
|
8163
|
-
if (
|
|
8164
|
-
return { LongValue:
|
|
8170
|
+
if (__expectLong(output.LongValue) !== undefined) {
|
|
8171
|
+
return { LongValue: __expectLong(output.LongValue) as any };
|
|
8165
8172
|
}
|
|
8166
8173
|
if (output.StringListValue !== undefined && output.StringListValue !== null) {
|
|
8167
8174
|
return {
|
|
@@ -8179,10 +8186,10 @@ const deserializeAws_json1_1DocumentAttributeValueCountPair = (
|
|
|
8179
8186
|
context: __SerdeContext
|
|
8180
8187
|
): DocumentAttributeValueCountPair => {
|
|
8181
8188
|
return {
|
|
8182
|
-
Count:
|
|
8189
|
+
Count: __expectInt32(output.Count),
|
|
8183
8190
|
DocumentAttributeValue:
|
|
8184
8191
|
output.DocumentAttributeValue !== undefined && output.DocumentAttributeValue !== null
|
|
8185
|
-
? deserializeAws_json1_1DocumentAttributeValue(output.DocumentAttributeValue, context)
|
|
8192
|
+
? deserializeAws_json1_1DocumentAttributeValue(__expectUnion(output.DocumentAttributeValue), context)
|
|
8186
8193
|
: undefined,
|
|
8187
8194
|
} as any;
|
|
8188
8195
|
};
|
|
@@ -8310,7 +8317,7 @@ const deserializeAws_json1_1FacetResultList = (output: any, context: __SerdeCont
|
|
|
8310
8317
|
|
|
8311
8318
|
const deserializeAws_json1_1FaqStatistics = (output: any, context: __SerdeContext): FaqStatistics => {
|
|
8312
8319
|
return {
|
|
8313
|
-
IndexedQuestionAnswersCount:
|
|
8320
|
+
IndexedQuestionAnswersCount: __expectInt32(output.IndexedQuestionAnswersCount),
|
|
8314
8321
|
} as any;
|
|
8315
8322
|
};
|
|
8316
8323
|
|
|
@@ -8318,7 +8325,7 @@ const deserializeAws_json1_1FaqSummary = (output: any, context: __SerdeContext):
|
|
|
8318
8325
|
return {
|
|
8319
8326
|
CreatedAt:
|
|
8320
8327
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8321
|
-
?
|
|
8328
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8322
8329
|
: undefined,
|
|
8323
8330
|
FileFormat: __expectString(output.FileFormat),
|
|
8324
8331
|
Id: __expectString(output.Id),
|
|
@@ -8326,7 +8333,7 @@ const deserializeAws_json1_1FaqSummary = (output: any, context: __SerdeContext):
|
|
|
8326
8333
|
Status: __expectString(output.Status),
|
|
8327
8334
|
UpdatedAt:
|
|
8328
8335
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8329
|
-
?
|
|
8336
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8330
8337
|
: undefined,
|
|
8331
8338
|
} as any;
|
|
8332
8339
|
};
|
|
@@ -8407,12 +8414,12 @@ const deserializeAws_json1_1GroupOrderingIdSummary = (output: any, context: __Se
|
|
|
8407
8414
|
FailureReason: __expectString(output.FailureReason),
|
|
8408
8415
|
LastUpdatedAt:
|
|
8409
8416
|
output.LastUpdatedAt !== undefined && output.LastUpdatedAt !== null
|
|
8410
|
-
?
|
|
8417
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.LastUpdatedAt)))
|
|
8411
8418
|
: undefined,
|
|
8412
|
-
OrderingId:
|
|
8419
|
+
OrderingId: __expectLong(output.OrderingId),
|
|
8413
8420
|
ReceivedAt:
|
|
8414
8421
|
output.ReceivedAt !== undefined && output.ReceivedAt !== null
|
|
8415
|
-
?
|
|
8422
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.ReceivedAt)))
|
|
8416
8423
|
: undefined,
|
|
8417
8424
|
Status: __expectString(output.Status),
|
|
8418
8425
|
} as any;
|
|
@@ -8421,14 +8428,14 @@ const deserializeAws_json1_1GroupOrderingIdSummary = (output: any, context: __Se
|
|
|
8421
8428
|
const deserializeAws_json1_1GroupSummary = (output: any, context: __SerdeContext): GroupSummary => {
|
|
8422
8429
|
return {
|
|
8423
8430
|
GroupId: __expectString(output.GroupId),
|
|
8424
|
-
OrderingId:
|
|
8431
|
+
OrderingId: __expectLong(output.OrderingId),
|
|
8425
8432
|
} as any;
|
|
8426
8433
|
};
|
|
8427
8434
|
|
|
8428
8435
|
const deserializeAws_json1_1Highlight = (output: any, context: __SerdeContext): Highlight => {
|
|
8429
8436
|
return {
|
|
8430
|
-
BeginOffset:
|
|
8431
|
-
EndOffset:
|
|
8437
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
8438
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
8432
8439
|
TopAnswer: __expectBoolean(output.TopAnswer),
|
|
8433
8440
|
Type: __expectString(output.Type),
|
|
8434
8441
|
} as any;
|
|
@@ -8452,7 +8459,7 @@ const deserializeAws_json1_1IndexConfigurationSummary = (
|
|
|
8452
8459
|
return {
|
|
8453
8460
|
CreatedAt:
|
|
8454
8461
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8455
|
-
?
|
|
8462
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8456
8463
|
: undefined,
|
|
8457
8464
|
Edition: __expectString(output.Edition),
|
|
8458
8465
|
Id: __expectString(output.Id),
|
|
@@ -8460,7 +8467,7 @@ const deserializeAws_json1_1IndexConfigurationSummary = (
|
|
|
8460
8467
|
Status: __expectString(output.Status),
|
|
8461
8468
|
UpdatedAt:
|
|
8462
8469
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8463
|
-
?
|
|
8470
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8464
8471
|
: undefined,
|
|
8465
8472
|
} as any;
|
|
8466
8473
|
};
|
|
@@ -8683,7 +8690,7 @@ const deserializeAws_json1_1ProxyConfiguration = (output: any, context: __SerdeC
|
|
|
8683
8690
|
return {
|
|
8684
8691
|
Credentials: __expectString(output.Credentials),
|
|
8685
8692
|
Host: __expectString(output.Host),
|
|
8686
|
-
Port:
|
|
8693
|
+
Port: __expectInt32(output.Port),
|
|
8687
8694
|
} as any;
|
|
8688
8695
|
};
|
|
8689
8696
|
|
|
@@ -8698,7 +8705,7 @@ const deserializeAws_json1_1QueryResult = (output: any, context: __SerdeContext)
|
|
|
8698
8705
|
output.ResultItems !== undefined && output.ResultItems !== null
|
|
8699
8706
|
? deserializeAws_json1_1QueryResultItemList(output.ResultItems, context)
|
|
8700
8707
|
: undefined,
|
|
8701
|
-
TotalNumberOfResults:
|
|
8708
|
+
TotalNumberOfResults: __expectInt32(output.TotalNumberOfResults),
|
|
8702
8709
|
} as any;
|
|
8703
8710
|
};
|
|
8704
8711
|
|
|
@@ -8750,15 +8757,15 @@ const deserializeAws_json1_1QuerySuggestionsBlockListSummary = (
|
|
|
8750
8757
|
return {
|
|
8751
8758
|
CreatedAt:
|
|
8752
8759
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
8753
|
-
?
|
|
8760
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
8754
8761
|
: undefined,
|
|
8755
8762
|
Id: __expectString(output.Id),
|
|
8756
|
-
ItemCount:
|
|
8763
|
+
ItemCount: __expectInt32(output.ItemCount),
|
|
8757
8764
|
Name: __expectString(output.Name),
|
|
8758
8765
|
Status: __expectString(output.Status),
|
|
8759
8766
|
UpdatedAt:
|
|
8760
8767
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
8761
|
-
?
|
|
8768
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
8762
8769
|
: undefined,
|
|
8763
8770
|
} as any;
|
|
8764
8771
|
};
|
|
@@ -8781,7 +8788,7 @@ const deserializeAws_json1_1Relevance = (output: any, context: __SerdeContext):
|
|
|
8781
8788
|
return {
|
|
8782
8789
|
Duration: __expectString(output.Duration),
|
|
8783
8790
|
Freshness: __expectBoolean(output.Freshness),
|
|
8784
|
-
Importance:
|
|
8791
|
+
Importance: __expectInt32(output.Importance),
|
|
8785
8792
|
RankOrder: __expectString(output.RankOrder),
|
|
8786
8793
|
ValueImportanceMap:
|
|
8787
8794
|
output.ValueImportanceMap !== undefined && output.ValueImportanceMap !== null
|
|
@@ -9305,8 +9312,8 @@ const deserializeAws_json1_1Suggestion = (output: any, context: __SerdeContext):
|
|
|
9305
9312
|
|
|
9306
9313
|
const deserializeAws_json1_1SuggestionHighlight = (output: any, context: __SerdeContext): SuggestionHighlight => {
|
|
9307
9314
|
return {
|
|
9308
|
-
BeginOffset:
|
|
9309
|
-
EndOffset:
|
|
9315
|
+
BeginOffset: __expectInt32(output.BeginOffset),
|
|
9316
|
+
EndOffset: __expectInt32(output.EndOffset),
|
|
9310
9317
|
} as any;
|
|
9311
9318
|
};
|
|
9312
9319
|
|
|
@@ -9378,8 +9385,8 @@ const deserializeAws_json1_1TagResourceResponse = (output: any, context: __Serde
|
|
|
9378
9385
|
|
|
9379
9386
|
const deserializeAws_json1_1TextDocumentStatistics = (output: any, context: __SerdeContext): TextDocumentStatistics => {
|
|
9380
9387
|
return {
|
|
9381
|
-
IndexedTextBytes:
|
|
9382
|
-
IndexedTextDocumentsCount:
|
|
9388
|
+
IndexedTextBytes: __expectLong(output.IndexedTextBytes),
|
|
9389
|
+
IndexedTextDocumentsCount: __expectInt32(output.IndexedTextDocumentsCount),
|
|
9383
9390
|
} as any;
|
|
9384
9391
|
};
|
|
9385
9392
|
|
|
@@ -9397,14 +9404,14 @@ const deserializeAws_json1_1ThesaurusSummary = (output: any, context: __SerdeCon
|
|
|
9397
9404
|
return {
|
|
9398
9405
|
CreatedAt:
|
|
9399
9406
|
output.CreatedAt !== undefined && output.CreatedAt !== null
|
|
9400
|
-
?
|
|
9407
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.CreatedAt)))
|
|
9401
9408
|
: undefined,
|
|
9402
9409
|
Id: __expectString(output.Id),
|
|
9403
9410
|
Name: __expectString(output.Name),
|
|
9404
9411
|
Status: __expectString(output.Status),
|
|
9405
9412
|
UpdatedAt:
|
|
9406
9413
|
output.UpdatedAt !== undefined && output.UpdatedAt !== null
|
|
9407
|
-
?
|
|
9414
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.UpdatedAt)))
|
|
9408
9415
|
: undefined,
|
|
9409
9416
|
} as any;
|
|
9410
9417
|
};
|
|
@@ -9483,7 +9490,7 @@ const deserializeAws_json1_1ValueImportanceMap = (output: any, context: __SerdeC
|
|
|
9483
9490
|
}
|
|
9484
9491
|
return {
|
|
9485
9492
|
...acc,
|
|
9486
|
-
[key]:
|
|
9493
|
+
[key]: __expectInt32(value) as any,
|
|
9487
9494
|
};
|
|
9488
9495
|
}, {});
|
|
9489
9496
|
};
|
|
@@ -9497,10 +9504,10 @@ const deserializeAws_json1_1WebCrawlerConfiguration = (
|
|
|
9497
9504
|
output.AuthenticationConfiguration !== undefined && output.AuthenticationConfiguration !== null
|
|
9498
9505
|
? deserializeAws_json1_1AuthenticationConfiguration(output.AuthenticationConfiguration, context)
|
|
9499
9506
|
: undefined,
|
|
9500
|
-
CrawlDepth:
|
|
9501
|
-
MaxContentSizePerPageInMegaBytes:
|
|
9502
|
-
MaxLinksPerPage:
|
|
9503
|
-
MaxUrlsPerMinuteCrawlRate:
|
|
9507
|
+
CrawlDepth: __expectInt32(output.CrawlDepth),
|
|
9508
|
+
MaxContentSizePerPageInMegaBytes: __limitedParseFloat32(output.MaxContentSizePerPageInMegaBytes),
|
|
9509
|
+
MaxLinksPerPage: __expectInt32(output.MaxLinksPerPage),
|
|
9510
|
+
MaxUrlsPerMinuteCrawlRate: __expectInt32(output.MaxUrlsPerMinuteCrawlRate),
|
|
9504
9511
|
ProxyConfiguration:
|
|
9505
9512
|
output.ProxyConfiguration !== undefined && output.ProxyConfiguration !== null
|
|
9506
9513
|
? deserializeAws_json1_1ProxyConfiguration(output.ProxyConfiguration, context)
|