@aws-sdk/client-kendra 3.82.0 → 3.90.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 +31 -0
- package/README.md +2 -0
- package/dist-cjs/models/models_0.js +42 -29
- package/dist-cjs/pagination/ListFaqsPaginator.js +36 -0
- package/dist-cjs/pagination/ListGroupsOlderThanOrderingIdPaginator.js +36 -0
- package/dist-cjs/pagination/ListQuerySuggestionsBlockListsPaginator.js +36 -0
- package/dist-cjs/pagination/ListThesauriPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_json1_1.js +190 -0
- package/dist-es/models/models_0.js +27 -16
- package/dist-es/pagination/ListFaqsPaginator.js +75 -0
- package/dist-es/pagination/ListGroupsOlderThanOrderingIdPaginator.js +75 -0
- package/dist-es/pagination/ListQuerySuggestionsBlockListsPaginator.js +75 -0
- package/dist-es/pagination/ListThesauriPaginator.js +75 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_json1_1.js +174 -3
- package/dist-types/models/models_0.d.ts +334 -148
- package/dist-types/pagination/ListFaqsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListGroupsOlderThanOrderingIdPaginator.d.ts +4 -0
- package/dist-types/pagination/ListQuerySuggestionsBlockListsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListThesauriPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +101 -51
- package/dist-types/ts3.4/pagination/ListFaqsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListGroupsOlderThanOrderingIdPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListQuerySuggestionsBlockListsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/ListThesauriPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/package.json +6 -6
|
@@ -467,6 +467,16 @@ export var GoogleDriveConfiguration;
|
|
|
467
467
|
(function (GoogleDriveConfiguration) {
|
|
468
468
|
GoogleDriveConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
469
469
|
})(GoogleDriveConfiguration || (GoogleDriveConfiguration = {}));
|
|
470
|
+
export var IssueSubEntity;
|
|
471
|
+
(function (IssueSubEntity) {
|
|
472
|
+
IssueSubEntity["ATTACHMENTS"] = "ATTACHMENTS";
|
|
473
|
+
IssueSubEntity["COMMENTS"] = "COMMENTS";
|
|
474
|
+
IssueSubEntity["WORKLOGS"] = "WORKLOGS";
|
|
475
|
+
})(IssueSubEntity || (IssueSubEntity = {}));
|
|
476
|
+
export var JiraConfiguration;
|
|
477
|
+
(function (JiraConfiguration) {
|
|
478
|
+
JiraConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
479
|
+
})(JiraConfiguration || (JiraConfiguration = {}));
|
|
470
480
|
export var OneDriveUsers;
|
|
471
481
|
(function (OneDriveUsers) {
|
|
472
482
|
OneDriveUsers.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -635,6 +645,7 @@ export var DataSourceType;
|
|
|
635
645
|
DataSourceType["DATABASE"] = "DATABASE";
|
|
636
646
|
DataSourceType["FSX"] = "FSX";
|
|
637
647
|
DataSourceType["GOOGLEDRIVE"] = "GOOGLEDRIVE";
|
|
648
|
+
DataSourceType["JIRA"] = "JIRA";
|
|
638
649
|
DataSourceType["ONEDRIVE"] = "ONEDRIVE";
|
|
639
650
|
DataSourceType["QUIP"] = "QUIP";
|
|
640
651
|
DataSourceType["S3"] = "S3";
|
|
@@ -1235,10 +1246,6 @@ export var DocumentRelevanceConfiguration;
|
|
|
1235
1246
|
(function (DocumentRelevanceConfiguration) {
|
|
1236
1247
|
DocumentRelevanceConfiguration.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1237
1248
|
})(DocumentRelevanceConfiguration || (DocumentRelevanceConfiguration = {}));
|
|
1238
|
-
export var Facet;
|
|
1239
|
-
(function (Facet) {
|
|
1240
|
-
Facet.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1241
|
-
})(Facet || (Facet = {}));
|
|
1242
1249
|
export var QueryResultType;
|
|
1243
1250
|
(function (QueryResultType) {
|
|
1244
1251
|
QueryResultType["ANSWER"] = "ANSWER";
|
|
@@ -1266,14 +1273,6 @@ export var UserContext;
|
|
|
1266
1273
|
(function (UserContext) {
|
|
1267
1274
|
UserContext.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1268
1275
|
})(UserContext || (UserContext = {}));
|
|
1269
|
-
export var DocumentAttributeValueCountPair;
|
|
1270
|
-
(function (DocumentAttributeValueCountPair) {
|
|
1271
|
-
DocumentAttributeValueCountPair.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1272
|
-
})(DocumentAttributeValueCountPair || (DocumentAttributeValueCountPair = {}));
|
|
1273
|
-
export var FacetResult;
|
|
1274
|
-
(function (FacetResult) {
|
|
1275
|
-
FacetResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1276
|
-
})(FacetResult || (FacetResult = {}));
|
|
1277
1276
|
export var ScoreConfidence;
|
|
1278
1277
|
(function (ScoreConfidence) {
|
|
1279
1278
|
ScoreConfidence["HIGH"] = "HIGH";
|
|
@@ -1306,10 +1305,6 @@ export var Warning;
|
|
|
1306
1305
|
(function (Warning) {
|
|
1307
1306
|
Warning.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1308
1307
|
})(Warning || (Warning = {}));
|
|
1309
|
-
export var QueryResult;
|
|
1310
|
-
(function (QueryResult) {
|
|
1311
|
-
QueryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1312
|
-
})(QueryResult || (QueryResult = {}));
|
|
1313
1308
|
var ResourceInUseException = (function (_super) {
|
|
1314
1309
|
__extends(ResourceInUseException, _super);
|
|
1315
1310
|
function ResourceInUseException(opts) {
|
|
@@ -1392,10 +1387,26 @@ export var UpdateThesaurusRequest;
|
|
|
1392
1387
|
(function (UpdateThesaurusRequest) {
|
|
1393
1388
|
UpdateThesaurusRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1394
1389
|
})(UpdateThesaurusRequest || (UpdateThesaurusRequest = {}));
|
|
1390
|
+
export var Facet;
|
|
1391
|
+
(function (Facet) {
|
|
1392
|
+
Facet.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1393
|
+
})(Facet || (Facet = {}));
|
|
1394
|
+
export var DocumentAttributeValueCountPair;
|
|
1395
|
+
(function (DocumentAttributeValueCountPair) {
|
|
1396
|
+
DocumentAttributeValueCountPair.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1397
|
+
})(DocumentAttributeValueCountPair || (DocumentAttributeValueCountPair = {}));
|
|
1398
|
+
export var FacetResult;
|
|
1399
|
+
(function (FacetResult) {
|
|
1400
|
+
FacetResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1401
|
+
})(FacetResult || (FacetResult = {}));
|
|
1395
1402
|
export var AttributeFilter;
|
|
1396
1403
|
(function (AttributeFilter) {
|
|
1397
1404
|
AttributeFilter.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1398
1405
|
})(AttributeFilter || (AttributeFilter = {}));
|
|
1406
|
+
export var QueryResult;
|
|
1407
|
+
(function (QueryResult) {
|
|
1408
|
+
QueryResult.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
1409
|
+
})(QueryResult || (QueryResult = {}));
|
|
1399
1410
|
export var QueryRequest;
|
|
1400
1411
|
(function (QueryRequest) {
|
|
1401
1412
|
QueryRequest.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListFaqsCommand } from "../commands/ListFaqsCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListFaqsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listFaqs.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListFaqs(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListFaqs_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListGroupsOlderThanOrderingIdCommand, } from "../commands/ListGroupsOlderThanOrderingIdCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListGroupsOlderThanOrderingIdCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listGroupsOlderThanOrderingId.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListGroupsOlderThanOrderingId(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListGroupsOlderThanOrderingId_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListQuerySuggestionsBlockListsCommand, } from "../commands/ListQuerySuggestionsBlockListsCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListQuerySuggestionsBlockListsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listQuerySuggestionsBlockLists.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListQuerySuggestionsBlockLists(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListQuerySuggestionsBlockLists_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListThesauriCommand, } from "../commands/ListThesauriCommand";
|
|
3
|
+
import { Kendra } from "../Kendra";
|
|
4
|
+
import { KendraClient } from "../KendraClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListThesauriCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listThesauri.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListThesauri(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListThesauri_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["MaxResults"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof Kendra)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof KendraClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected Kendra | KendraClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -5,4 +5,8 @@ export * from "./ListDataSourcesPaginator";
|
|
|
5
5
|
export * from "./ListEntityPersonasPaginator";
|
|
6
6
|
export * from "./ListExperienceEntitiesPaginator";
|
|
7
7
|
export * from "./ListExperiencesPaginator";
|
|
8
|
+
export * from "./ListFaqsPaginator";
|
|
9
|
+
export * from "./ListGroupsOlderThanOrderingIdPaginator";
|
|
8
10
|
export * from "./ListIndicesPaginator";
|
|
11
|
+
export * from "./ListQuerySuggestionsBlockListsPaginator";
|
|
12
|
+
export * from "./ListThesauriPaginator";
|
|
@@ -4897,7 +4897,7 @@ var serializeAws_json1_1DatabaseConfiguration = function (input, context) {
|
|
|
4897
4897
|
}));
|
|
4898
4898
|
};
|
|
4899
4899
|
var serializeAws_json1_1DataSourceConfiguration = function (input, context) {
|
|
4900
|
-
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BoxConfiguration !== undefined &&
|
|
4900
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.BoxConfiguration !== undefined &&
|
|
4901
4901
|
input.BoxConfiguration !== null && {
|
|
4902
4902
|
BoxConfiguration: serializeAws_json1_1BoxConfiguration(input.BoxConfiguration, context),
|
|
4903
4903
|
})), (input.ConfluenceConfiguration !== undefined &&
|
|
@@ -4912,6 +4912,9 @@ var serializeAws_json1_1DataSourceConfiguration = function (input, context) {
|
|
|
4912
4912
|
})), (input.GoogleDriveConfiguration !== undefined &&
|
|
4913
4913
|
input.GoogleDriveConfiguration !== null && {
|
|
4914
4914
|
GoogleDriveConfiguration: serializeAws_json1_1GoogleDriveConfiguration(input.GoogleDriveConfiguration, context),
|
|
4915
|
+
})), (input.JiraConfiguration !== undefined &&
|
|
4916
|
+
input.JiraConfiguration !== null && {
|
|
4917
|
+
JiraConfiguration: serializeAws_json1_1JiraConfiguration(input.JiraConfiguration, context),
|
|
4915
4918
|
})), (input.OneDriveConfiguration !== undefined &&
|
|
4916
4919
|
input.OneDriveConfiguration !== null && {
|
|
4917
4920
|
OneDriveConfiguration: serializeAws_json1_1OneDriveConfiguration(input.OneDriveConfiguration, context),
|
|
@@ -5273,8 +5276,9 @@ var serializeAws_json1_1ExperienceConfiguration = function (input, context) {
|
|
|
5273
5276
|
}));
|
|
5274
5277
|
};
|
|
5275
5278
|
var serializeAws_json1_1Facet = function (input, context) {
|
|
5276
|
-
return __assign({}, (input.DocumentAttributeKey !== undefined &&
|
|
5277
|
-
input.DocumentAttributeKey !== null && { DocumentAttributeKey: input.DocumentAttributeKey }))
|
|
5279
|
+
return __assign(__assign(__assign({}, (input.DocumentAttributeKey !== undefined &&
|
|
5280
|
+
input.DocumentAttributeKey !== null && { DocumentAttributeKey: input.DocumentAttributeKey })), (input.Facets !== undefined &&
|
|
5281
|
+
input.Facets !== null && { Facets: serializeAws_json1_1FacetList(input.Facets, context) })), (input.MaxResults !== undefined && input.MaxResults !== null && { MaxResults: input.MaxResults }));
|
|
5278
5282
|
};
|
|
5279
5283
|
var serializeAws_json1_1FacetList = function (input, context) {
|
|
5280
5284
|
return input
|
|
@@ -5408,6 +5412,70 @@ var serializeAws_json1_1InlineCustomDocumentEnrichmentConfigurationList = functi
|
|
|
5408
5412
|
return serializeAws_json1_1InlineCustomDocumentEnrichmentConfiguration(entry, context);
|
|
5409
5413
|
});
|
|
5410
5414
|
};
|
|
5415
|
+
var serializeAws_json1_1IssueSubEntityFilter = function (input, context) {
|
|
5416
|
+
return input
|
|
5417
|
+
.filter(function (e) { return e != null; })
|
|
5418
|
+
.map(function (entry) {
|
|
5419
|
+
if (entry === null) {
|
|
5420
|
+
return null;
|
|
5421
|
+
}
|
|
5422
|
+
return entry;
|
|
5423
|
+
});
|
|
5424
|
+
};
|
|
5425
|
+
var serializeAws_json1_1IssueType = function (input, context) {
|
|
5426
|
+
return input
|
|
5427
|
+
.filter(function (e) { return e != null; })
|
|
5428
|
+
.map(function (entry) {
|
|
5429
|
+
if (entry === null) {
|
|
5430
|
+
return null;
|
|
5431
|
+
}
|
|
5432
|
+
return entry;
|
|
5433
|
+
});
|
|
5434
|
+
};
|
|
5435
|
+
var serializeAws_json1_1JiraConfiguration = function (input, context) {
|
|
5436
|
+
return __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, (input.AttachmentFieldMappings !== undefined &&
|
|
5437
|
+
input.AttachmentFieldMappings !== null && {
|
|
5438
|
+
AttachmentFieldMappings: serializeAws_json1_1DataSourceToIndexFieldMappingList(input.AttachmentFieldMappings, context),
|
|
5439
|
+
})), (input.CommentFieldMappings !== undefined &&
|
|
5440
|
+
input.CommentFieldMappings !== null && {
|
|
5441
|
+
CommentFieldMappings: serializeAws_json1_1DataSourceToIndexFieldMappingList(input.CommentFieldMappings, context),
|
|
5442
|
+
})), (input.ExclusionPatterns !== undefined &&
|
|
5443
|
+
input.ExclusionPatterns !== null && {
|
|
5444
|
+
ExclusionPatterns: serializeAws_json1_1DataSourceInclusionsExclusionsStrings(input.ExclusionPatterns, context),
|
|
5445
|
+
})), (input.InclusionPatterns !== undefined &&
|
|
5446
|
+
input.InclusionPatterns !== null && {
|
|
5447
|
+
InclusionPatterns: serializeAws_json1_1DataSourceInclusionsExclusionsStrings(input.InclusionPatterns, context),
|
|
5448
|
+
})), (input.IssueFieldMappings !== undefined &&
|
|
5449
|
+
input.IssueFieldMappings !== null && {
|
|
5450
|
+
IssueFieldMappings: serializeAws_json1_1DataSourceToIndexFieldMappingList(input.IssueFieldMappings, context),
|
|
5451
|
+
})), (input.IssueSubEntityFilter !== undefined &&
|
|
5452
|
+
input.IssueSubEntityFilter !== null && {
|
|
5453
|
+
IssueSubEntityFilter: serializeAws_json1_1IssueSubEntityFilter(input.IssueSubEntityFilter, context),
|
|
5454
|
+
})), (input.IssueType !== undefined &&
|
|
5455
|
+
input.IssueType !== null && { IssueType: serializeAws_json1_1IssueType(input.IssueType, context) })), (input.JiraAccountUrl !== undefined &&
|
|
5456
|
+
input.JiraAccountUrl !== null && { JiraAccountUrl: input.JiraAccountUrl })), (input.Project !== undefined &&
|
|
5457
|
+
input.Project !== null && { Project: serializeAws_json1_1Project(input.Project, context) })), (input.ProjectFieldMappings !== undefined &&
|
|
5458
|
+
input.ProjectFieldMappings !== null && {
|
|
5459
|
+
ProjectFieldMappings: serializeAws_json1_1DataSourceToIndexFieldMappingList(input.ProjectFieldMappings, context),
|
|
5460
|
+
})), (input.SecretArn !== undefined && input.SecretArn !== null && { SecretArn: input.SecretArn })), (input.Status !== undefined &&
|
|
5461
|
+
input.Status !== null && { Status: serializeAws_json1_1JiraStatus(input.Status, context) })), (input.UseChangeLog !== undefined && input.UseChangeLog !== null && { UseChangeLog: input.UseChangeLog })), (input.VpcConfiguration !== undefined &&
|
|
5462
|
+
input.VpcConfiguration !== null && {
|
|
5463
|
+
VpcConfiguration: serializeAws_json1_1DataSourceVpcConfiguration(input.VpcConfiguration, context),
|
|
5464
|
+
})), (input.WorkLogFieldMappings !== undefined &&
|
|
5465
|
+
input.WorkLogFieldMappings !== null && {
|
|
5466
|
+
WorkLogFieldMappings: serializeAws_json1_1DataSourceToIndexFieldMappingList(input.WorkLogFieldMappings, context),
|
|
5467
|
+
}));
|
|
5468
|
+
};
|
|
5469
|
+
var serializeAws_json1_1JiraStatus = function (input, context) {
|
|
5470
|
+
return input
|
|
5471
|
+
.filter(function (e) { return e != null; })
|
|
5472
|
+
.map(function (entry) {
|
|
5473
|
+
if (entry === null) {
|
|
5474
|
+
return null;
|
|
5475
|
+
}
|
|
5476
|
+
return entry;
|
|
5477
|
+
});
|
|
5478
|
+
};
|
|
5411
5479
|
var serializeAws_json1_1JsonTokenTypeConfiguration = function (input, context) {
|
|
5412
5480
|
return __assign(__assign({}, (input.GroupAttributeField !== undefined &&
|
|
5413
5481
|
input.GroupAttributeField !== null && { GroupAttributeField: input.GroupAttributeField })), (input.UserNameAttributeField !== undefined &&
|
|
@@ -5539,6 +5607,16 @@ var serializeAws_json1_1PrivateChannelFilter = function (input, context) {
|
|
|
5539
5607
|
return entry;
|
|
5540
5608
|
});
|
|
5541
5609
|
};
|
|
5610
|
+
var serializeAws_json1_1Project = function (input, context) {
|
|
5611
|
+
return input
|
|
5612
|
+
.filter(function (e) { return e != null; })
|
|
5613
|
+
.map(function (entry) {
|
|
5614
|
+
if (entry === null) {
|
|
5615
|
+
return null;
|
|
5616
|
+
}
|
|
5617
|
+
return entry;
|
|
5618
|
+
});
|
|
5619
|
+
};
|
|
5542
5620
|
var serializeAws_json1_1ProxyConfiguration = function (input, context) {
|
|
5543
5621
|
return __assign(__assign(__assign({}, (input.Credentials !== undefined && input.Credentials !== null && { Credentials: input.Credentials })), (input.Host !== undefined && input.Host !== null && { Host: input.Host })), (input.Port !== undefined && input.Port !== null && { Port: input.Port }));
|
|
5544
5622
|
};
|
|
@@ -6634,6 +6712,9 @@ var deserializeAws_json1_1DataSourceConfiguration = function (output, context) {
|
|
|
6634
6712
|
GoogleDriveConfiguration: output.GoogleDriveConfiguration !== undefined && output.GoogleDriveConfiguration !== null
|
|
6635
6713
|
? deserializeAws_json1_1GoogleDriveConfiguration(output.GoogleDriveConfiguration, context)
|
|
6636
6714
|
: undefined,
|
|
6715
|
+
JiraConfiguration: output.JiraConfiguration !== undefined && output.JiraConfiguration !== null
|
|
6716
|
+
? deserializeAws_json1_1JiraConfiguration(output.JiraConfiguration, context)
|
|
6717
|
+
: undefined,
|
|
6637
6718
|
OneDriveConfiguration: output.OneDriveConfiguration !== undefined && output.OneDriveConfiguration !== null
|
|
6638
6719
|
? deserializeAws_json1_1OneDriveConfiguration(output.OneDriveConfiguration, context)
|
|
6639
6720
|
: undefined,
|
|
@@ -7040,6 +7121,9 @@ var deserializeAws_json1_1DocumentAttributeValueCountPair = function (output, co
|
|
|
7040
7121
|
DocumentAttributeValue: output.DocumentAttributeValue !== undefined && output.DocumentAttributeValue !== null
|
|
7041
7122
|
? deserializeAws_json1_1DocumentAttributeValue(output.DocumentAttributeValue, context)
|
|
7042
7123
|
: undefined,
|
|
7124
|
+
FacetResults: output.FacetResults !== undefined && output.FacetResults !== null
|
|
7125
|
+
? deserializeAws_json1_1FacetResultList(output.FacetResults, context)
|
|
7126
|
+
: undefined,
|
|
7043
7127
|
};
|
|
7044
7128
|
};
|
|
7045
7129
|
var deserializeAws_json1_1DocumentAttributeValueCountPairList = function (output, context) {
|
|
@@ -7484,6 +7568,82 @@ var deserializeAws_json1_1InvalidRequestException = function (output, context) {
|
|
|
7484
7568
|
Message: __expectString(output.Message),
|
|
7485
7569
|
};
|
|
7486
7570
|
};
|
|
7571
|
+
var deserializeAws_json1_1IssueSubEntityFilter = function (output, context) {
|
|
7572
|
+
var retVal = (output || [])
|
|
7573
|
+
.filter(function (e) { return e != null; })
|
|
7574
|
+
.map(function (entry) {
|
|
7575
|
+
if (entry === null) {
|
|
7576
|
+
return null;
|
|
7577
|
+
}
|
|
7578
|
+
return __expectString(entry);
|
|
7579
|
+
});
|
|
7580
|
+
return retVal;
|
|
7581
|
+
};
|
|
7582
|
+
var deserializeAws_json1_1IssueType = function (output, context) {
|
|
7583
|
+
var retVal = (output || [])
|
|
7584
|
+
.filter(function (e) { return e != null; })
|
|
7585
|
+
.map(function (entry) {
|
|
7586
|
+
if (entry === null) {
|
|
7587
|
+
return null;
|
|
7588
|
+
}
|
|
7589
|
+
return __expectString(entry);
|
|
7590
|
+
});
|
|
7591
|
+
return retVal;
|
|
7592
|
+
};
|
|
7593
|
+
var deserializeAws_json1_1JiraConfiguration = function (output, context) {
|
|
7594
|
+
return {
|
|
7595
|
+
AttachmentFieldMappings: output.AttachmentFieldMappings !== undefined && output.AttachmentFieldMappings !== null
|
|
7596
|
+
? deserializeAws_json1_1DataSourceToIndexFieldMappingList(output.AttachmentFieldMappings, context)
|
|
7597
|
+
: undefined,
|
|
7598
|
+
CommentFieldMappings: output.CommentFieldMappings !== undefined && output.CommentFieldMappings !== null
|
|
7599
|
+
? deserializeAws_json1_1DataSourceToIndexFieldMappingList(output.CommentFieldMappings, context)
|
|
7600
|
+
: undefined,
|
|
7601
|
+
ExclusionPatterns: output.ExclusionPatterns !== undefined && output.ExclusionPatterns !== null
|
|
7602
|
+
? deserializeAws_json1_1DataSourceInclusionsExclusionsStrings(output.ExclusionPatterns, context)
|
|
7603
|
+
: undefined,
|
|
7604
|
+
InclusionPatterns: output.InclusionPatterns !== undefined && output.InclusionPatterns !== null
|
|
7605
|
+
? deserializeAws_json1_1DataSourceInclusionsExclusionsStrings(output.InclusionPatterns, context)
|
|
7606
|
+
: undefined,
|
|
7607
|
+
IssueFieldMappings: output.IssueFieldMappings !== undefined && output.IssueFieldMappings !== null
|
|
7608
|
+
? deserializeAws_json1_1DataSourceToIndexFieldMappingList(output.IssueFieldMappings, context)
|
|
7609
|
+
: undefined,
|
|
7610
|
+
IssueSubEntityFilter: output.IssueSubEntityFilter !== undefined && output.IssueSubEntityFilter !== null
|
|
7611
|
+
? deserializeAws_json1_1IssueSubEntityFilter(output.IssueSubEntityFilter, context)
|
|
7612
|
+
: undefined,
|
|
7613
|
+
IssueType: output.IssueType !== undefined && output.IssueType !== null
|
|
7614
|
+
? deserializeAws_json1_1IssueType(output.IssueType, context)
|
|
7615
|
+
: undefined,
|
|
7616
|
+
JiraAccountUrl: __expectString(output.JiraAccountUrl),
|
|
7617
|
+
Project: output.Project !== undefined && output.Project !== null
|
|
7618
|
+
? deserializeAws_json1_1Project(output.Project, context)
|
|
7619
|
+
: undefined,
|
|
7620
|
+
ProjectFieldMappings: output.ProjectFieldMappings !== undefined && output.ProjectFieldMappings !== null
|
|
7621
|
+
? deserializeAws_json1_1DataSourceToIndexFieldMappingList(output.ProjectFieldMappings, context)
|
|
7622
|
+
: undefined,
|
|
7623
|
+
SecretArn: __expectString(output.SecretArn),
|
|
7624
|
+
Status: output.Status !== undefined && output.Status !== null
|
|
7625
|
+
? deserializeAws_json1_1JiraStatus(output.Status, context)
|
|
7626
|
+
: undefined,
|
|
7627
|
+
UseChangeLog: __expectBoolean(output.UseChangeLog),
|
|
7628
|
+
VpcConfiguration: output.VpcConfiguration !== undefined && output.VpcConfiguration !== null
|
|
7629
|
+
? deserializeAws_json1_1DataSourceVpcConfiguration(output.VpcConfiguration, context)
|
|
7630
|
+
: undefined,
|
|
7631
|
+
WorkLogFieldMappings: output.WorkLogFieldMappings !== undefined && output.WorkLogFieldMappings !== null
|
|
7632
|
+
? deserializeAws_json1_1DataSourceToIndexFieldMappingList(output.WorkLogFieldMappings, context)
|
|
7633
|
+
: undefined,
|
|
7634
|
+
};
|
|
7635
|
+
};
|
|
7636
|
+
var deserializeAws_json1_1JiraStatus = function (output, context) {
|
|
7637
|
+
var retVal = (output || [])
|
|
7638
|
+
.filter(function (e) { return e != null; })
|
|
7639
|
+
.map(function (entry) {
|
|
7640
|
+
if (entry === null) {
|
|
7641
|
+
return null;
|
|
7642
|
+
}
|
|
7643
|
+
return __expectString(entry);
|
|
7644
|
+
});
|
|
7645
|
+
return retVal;
|
|
7646
|
+
};
|
|
7487
7647
|
var deserializeAws_json1_1JsonTokenTypeConfiguration = function (output, context) {
|
|
7488
7648
|
return {
|
|
7489
7649
|
GroupAttributeField: __expectString(output.GroupAttributeField),
|
|
@@ -7673,6 +7833,17 @@ var deserializeAws_json1_1PrivateChannelFilter = function (output, context) {
|
|
|
7673
7833
|
});
|
|
7674
7834
|
return retVal;
|
|
7675
7835
|
};
|
|
7836
|
+
var deserializeAws_json1_1Project = function (output, context) {
|
|
7837
|
+
var retVal = (output || [])
|
|
7838
|
+
.filter(function (e) { return e != null; })
|
|
7839
|
+
.map(function (entry) {
|
|
7840
|
+
if (entry === null) {
|
|
7841
|
+
return null;
|
|
7842
|
+
}
|
|
7843
|
+
return __expectString(entry);
|
|
7844
|
+
});
|
|
7845
|
+
return retVal;
|
|
7846
|
+
};
|
|
7676
7847
|
var deserializeAws_json1_1ProxyConfiguration = function (output, context) {
|
|
7677
7848
|
return {
|
|
7678
7849
|
Credentials: __expectString(output.Credentials),
|