@azure/search-documents 11.3.0-alpha.20220110.2 → 11.3.0-alpha.20220202.2
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 +2 -4
- package/dist/index.js +507 -343
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +2 -2
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +2 -0
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +47 -0
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/searchClient.js +2 -0
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +2 -0
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +2 -0
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +3 -0
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +5 -6
- package/types/search-documents.d.ts +30 -9
package/dist/index.js
CHANGED
|
@@ -2,18 +2,40 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
|
|
6
|
-
|
|
7
5
|
var tslib = require('tslib');
|
|
8
6
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
9
7
|
var coreClient = require('@azure/core-client');
|
|
10
8
|
var coreAuth = require('@azure/core-auth');
|
|
11
9
|
var logger$1 = require('@azure/logger');
|
|
12
10
|
var coreTracing = require('@azure/core-tracing');
|
|
13
|
-
var EventEmitter =
|
|
11
|
+
var EventEmitter = require('events');
|
|
14
12
|
var util = require('util');
|
|
15
13
|
var fs = require('fs');
|
|
16
14
|
|
|
15
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
16
|
+
|
|
17
|
+
function _interopNamespace(e) {
|
|
18
|
+
if (e && e.__esModule) return e;
|
|
19
|
+
var n = Object.create(null);
|
|
20
|
+
if (e) {
|
|
21
|
+
Object.keys(e).forEach(function (k) {
|
|
22
|
+
if (k !== 'default') {
|
|
23
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
24
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function () { return e[k]; }
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
n["default"] = e;
|
|
32
|
+
return Object.freeze(n);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
36
|
+
var EventEmitter__default = /*#__PURE__*/_interopDefaultLegacy(EventEmitter);
|
|
37
|
+
var fs__namespace = /*#__PURE__*/_interopNamespace(fs);
|
|
38
|
+
|
|
17
39
|
/*
|
|
18
40
|
* Copyright (c) Microsoft Corporation.
|
|
19
41
|
* Licensed under the MIT License.
|
|
@@ -21,7 +43,7 @@ var fs = require('fs');
|
|
|
21
43
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
22
44
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
23
45
|
*/
|
|
24
|
-
const SearchError = {
|
|
46
|
+
const SearchError$1 = {
|
|
25
47
|
type: {
|
|
26
48
|
name: "Composite",
|
|
27
49
|
className: "SearchError",
|
|
@@ -781,9 +803,9 @@ const AutocompleteRequest = {
|
|
|
781
803
|
}
|
|
782
804
|
};
|
|
783
805
|
|
|
784
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
806
|
+
var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
785
807
|
__proto__: null,
|
|
786
|
-
SearchError: SearchError,
|
|
808
|
+
SearchError: SearchError$1,
|
|
787
809
|
SearchDocumentsResult: SearchDocumentsResult,
|
|
788
810
|
FacetResult: FacetResult,
|
|
789
811
|
AnswerResult: AnswerResult,
|
|
@@ -809,7 +831,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
809
831
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
810
832
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
811
833
|
*/
|
|
812
|
-
const accept = {
|
|
834
|
+
const accept$1 = {
|
|
813
835
|
parameterPath: "accept",
|
|
814
836
|
mapper: {
|
|
815
837
|
defaultValue: "application/json",
|
|
@@ -820,7 +842,7 @@ const accept = {
|
|
|
820
842
|
}
|
|
821
843
|
}
|
|
822
844
|
};
|
|
823
|
-
const endpoint = {
|
|
845
|
+
const endpoint$1 = {
|
|
824
846
|
parameterPath: "endpoint",
|
|
825
847
|
mapper: {
|
|
826
848
|
serializedName: "endpoint",
|
|
@@ -831,7 +853,7 @@ const endpoint = {
|
|
|
831
853
|
},
|
|
832
854
|
skipEncoding: true
|
|
833
855
|
};
|
|
834
|
-
const indexName = {
|
|
856
|
+
const indexName$1 = {
|
|
835
857
|
parameterPath: "indexName",
|
|
836
858
|
mapper: {
|
|
837
859
|
serializedName: "indexName",
|
|
@@ -841,7 +863,7 @@ const indexName = {
|
|
|
841
863
|
}
|
|
842
864
|
}
|
|
843
865
|
};
|
|
844
|
-
const xMsClientRequestId = {
|
|
866
|
+
const xMsClientRequestId$1 = {
|
|
845
867
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
846
868
|
mapper: {
|
|
847
869
|
serializedName: "x-ms-client-request-id",
|
|
@@ -850,7 +872,7 @@ const xMsClientRequestId = {
|
|
|
850
872
|
}
|
|
851
873
|
}
|
|
852
874
|
};
|
|
853
|
-
const apiVersion = {
|
|
875
|
+
const apiVersion$1 = {
|
|
854
876
|
parameterPath: "apiVersion",
|
|
855
877
|
mapper: {
|
|
856
878
|
serializedName: "api-version",
|
|
@@ -1073,7 +1095,7 @@ const sessionId = {
|
|
|
1073
1095
|
}
|
|
1074
1096
|
}
|
|
1075
1097
|
};
|
|
1076
|
-
const select = {
|
|
1098
|
+
const select$1 = {
|
|
1077
1099
|
parameterPath: ["options", "searchOptions", "select"],
|
|
1078
1100
|
mapper: {
|
|
1079
1101
|
serializedName: "$select",
|
|
@@ -1130,7 +1152,7 @@ const semanticFields = {
|
|
|
1130
1152
|
},
|
|
1131
1153
|
collectionFormat: "CSV"
|
|
1132
1154
|
};
|
|
1133
|
-
const contentType = {
|
|
1155
|
+
const contentType$1 = {
|
|
1134
1156
|
parameterPath: ["options", "contentType"],
|
|
1135
1157
|
mapper: {
|
|
1136
1158
|
defaultValue: "application/json",
|
|
@@ -1425,7 +1447,7 @@ class DocumentsImpl {
|
|
|
1425
1447
|
* @param options The options parameters.
|
|
1426
1448
|
*/
|
|
1427
1449
|
get(key, options) {
|
|
1428
|
-
return this.client.sendOperationRequest({ key, options }, getOperationSpec);
|
|
1450
|
+
return this.client.sendOperationRequest({ key, options }, getOperationSpec$5);
|
|
1429
1451
|
}
|
|
1430
1452
|
/**
|
|
1431
1453
|
* Suggests documents in the index that match the given partial query text.
|
|
@@ -1474,7 +1496,7 @@ class DocumentsImpl {
|
|
|
1474
1496
|
}
|
|
1475
1497
|
}
|
|
1476
1498
|
// Operation Specifications
|
|
1477
|
-
const serializer =
|
|
1499
|
+
const serializer$6 = coreClient__namespace.createSerializer(Mappers$1, /* isXml */ false);
|
|
1478
1500
|
const countOperationSpec = {
|
|
1479
1501
|
path: "/docs/$count",
|
|
1480
1502
|
httpMethod: "GET",
|
|
@@ -1483,13 +1505,13 @@ const countOperationSpec = {
|
|
|
1483
1505
|
bodyMapper: { type: { name: "Number" } }
|
|
1484
1506
|
},
|
|
1485
1507
|
default: {
|
|
1486
|
-
bodyMapper: SearchError
|
|
1508
|
+
bodyMapper: SearchError$1
|
|
1487
1509
|
}
|
|
1488
1510
|
},
|
|
1489
|
-
queryParameters: [apiVersion],
|
|
1490
|
-
urlParameters: [endpoint, indexName],
|
|
1491
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1492
|
-
serializer
|
|
1511
|
+
queryParameters: [apiVersion$1],
|
|
1512
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1513
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1514
|
+
serializer: serializer$6
|
|
1493
1515
|
};
|
|
1494
1516
|
const searchGetOperationSpec = {
|
|
1495
1517
|
path: "/docs",
|
|
@@ -1499,11 +1521,11 @@ const searchGetOperationSpec = {
|
|
|
1499
1521
|
bodyMapper: SearchDocumentsResult
|
|
1500
1522
|
},
|
|
1501
1523
|
default: {
|
|
1502
|
-
bodyMapper: SearchError
|
|
1524
|
+
bodyMapper: SearchError$1
|
|
1503
1525
|
}
|
|
1504
1526
|
},
|
|
1505
1527
|
queryParameters: [
|
|
1506
|
-
apiVersion,
|
|
1528
|
+
apiVersion$1,
|
|
1507
1529
|
searchText,
|
|
1508
1530
|
includeTotalResultCount,
|
|
1509
1531
|
facets,
|
|
@@ -1524,15 +1546,15 @@ const searchGetOperationSpec = {
|
|
|
1524
1546
|
searchMode,
|
|
1525
1547
|
scoringStatistics,
|
|
1526
1548
|
sessionId,
|
|
1527
|
-
select,
|
|
1549
|
+
select$1,
|
|
1528
1550
|
skip,
|
|
1529
1551
|
top,
|
|
1530
1552
|
captions,
|
|
1531
1553
|
semanticFields
|
|
1532
1554
|
],
|
|
1533
|
-
urlParameters: [endpoint, indexName],
|
|
1534
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1535
|
-
serializer
|
|
1555
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1556
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1557
|
+
serializer: serializer$6
|
|
1536
1558
|
};
|
|
1537
1559
|
const searchPostOperationSpec = {
|
|
1538
1560
|
path: "/docs/search.post.search",
|
|
@@ -1542,21 +1564,21 @@ const searchPostOperationSpec = {
|
|
|
1542
1564
|
bodyMapper: SearchDocumentsResult
|
|
1543
1565
|
},
|
|
1544
1566
|
default: {
|
|
1545
|
-
bodyMapper: SearchError
|
|
1567
|
+
bodyMapper: SearchError$1
|
|
1546
1568
|
}
|
|
1547
1569
|
},
|
|
1548
1570
|
requestBody: searchRequest,
|
|
1549
|
-
queryParameters: [apiVersion],
|
|
1550
|
-
urlParameters: [endpoint, indexName],
|
|
1571
|
+
queryParameters: [apiVersion$1],
|
|
1572
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1551
1573
|
headerParameters: [
|
|
1552
|
-
accept,
|
|
1553
|
-
xMsClientRequestId,
|
|
1554
|
-
contentType
|
|
1574
|
+
accept$1,
|
|
1575
|
+
xMsClientRequestId$1,
|
|
1576
|
+
contentType$1
|
|
1555
1577
|
],
|
|
1556
1578
|
mediaType: "json",
|
|
1557
|
-
serializer
|
|
1579
|
+
serializer: serializer$6
|
|
1558
1580
|
};
|
|
1559
|
-
const getOperationSpec = {
|
|
1581
|
+
const getOperationSpec$5 = {
|
|
1560
1582
|
path: "/docs('{key}')",
|
|
1561
1583
|
httpMethod: "GET",
|
|
1562
1584
|
responses: {
|
|
@@ -1566,13 +1588,13 @@ const getOperationSpec = {
|
|
|
1566
1588
|
}
|
|
1567
1589
|
},
|
|
1568
1590
|
default: {
|
|
1569
|
-
bodyMapper: SearchError
|
|
1591
|
+
bodyMapper: SearchError$1
|
|
1570
1592
|
}
|
|
1571
1593
|
},
|
|
1572
|
-
queryParameters: [apiVersion, selectedFields],
|
|
1573
|
-
urlParameters: [endpoint, indexName, key],
|
|
1574
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1575
|
-
serializer
|
|
1594
|
+
queryParameters: [apiVersion$1, selectedFields],
|
|
1595
|
+
urlParameters: [endpoint$1, indexName$1, key],
|
|
1596
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1597
|
+
serializer: serializer$6
|
|
1576
1598
|
};
|
|
1577
1599
|
const suggestGetOperationSpec = {
|
|
1578
1600
|
path: "/docs/search.suggest",
|
|
@@ -1582,11 +1604,11 @@ const suggestGetOperationSpec = {
|
|
|
1582
1604
|
bodyMapper: SuggestDocumentsResult
|
|
1583
1605
|
},
|
|
1584
1606
|
default: {
|
|
1585
|
-
bodyMapper: SearchError
|
|
1607
|
+
bodyMapper: SearchError$1
|
|
1586
1608
|
}
|
|
1587
1609
|
},
|
|
1588
1610
|
queryParameters: [
|
|
1589
|
-
apiVersion,
|
|
1611
|
+
apiVersion$1,
|
|
1590
1612
|
searchText1,
|
|
1591
1613
|
suggesterName,
|
|
1592
1614
|
filter1,
|
|
@@ -1599,9 +1621,9 @@ const suggestGetOperationSpec = {
|
|
|
1599
1621
|
select1,
|
|
1600
1622
|
top1
|
|
1601
1623
|
],
|
|
1602
|
-
urlParameters: [endpoint, indexName],
|
|
1603
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1604
|
-
serializer
|
|
1624
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1625
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1626
|
+
serializer: serializer$6
|
|
1605
1627
|
};
|
|
1606
1628
|
const suggestPostOperationSpec = {
|
|
1607
1629
|
path: "/docs/search.post.suggest",
|
|
@@ -1611,19 +1633,19 @@ const suggestPostOperationSpec = {
|
|
|
1611
1633
|
bodyMapper: SuggestDocumentsResult
|
|
1612
1634
|
},
|
|
1613
1635
|
default: {
|
|
1614
|
-
bodyMapper: SearchError
|
|
1636
|
+
bodyMapper: SearchError$1
|
|
1615
1637
|
}
|
|
1616
1638
|
},
|
|
1617
1639
|
requestBody: suggestRequest,
|
|
1618
|
-
queryParameters: [apiVersion],
|
|
1619
|
-
urlParameters: [endpoint, indexName],
|
|
1640
|
+
queryParameters: [apiVersion$1],
|
|
1641
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1620
1642
|
headerParameters: [
|
|
1621
|
-
accept,
|
|
1622
|
-
xMsClientRequestId,
|
|
1623
|
-
contentType
|
|
1643
|
+
accept$1,
|
|
1644
|
+
xMsClientRequestId$1,
|
|
1645
|
+
contentType$1
|
|
1624
1646
|
],
|
|
1625
1647
|
mediaType: "json",
|
|
1626
|
-
serializer
|
|
1648
|
+
serializer: serializer$6
|
|
1627
1649
|
};
|
|
1628
1650
|
const indexOperationSpec = {
|
|
1629
1651
|
path: "/docs/search.index",
|
|
@@ -1636,19 +1658,19 @@ const indexOperationSpec = {
|
|
|
1636
1658
|
bodyMapper: IndexDocumentsResult
|
|
1637
1659
|
},
|
|
1638
1660
|
default: {
|
|
1639
|
-
bodyMapper: SearchError
|
|
1661
|
+
bodyMapper: SearchError$1
|
|
1640
1662
|
}
|
|
1641
1663
|
},
|
|
1642
1664
|
requestBody: batch,
|
|
1643
|
-
queryParameters: [apiVersion],
|
|
1644
|
-
urlParameters: [endpoint, indexName],
|
|
1665
|
+
queryParameters: [apiVersion$1],
|
|
1666
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1645
1667
|
headerParameters: [
|
|
1646
|
-
accept,
|
|
1647
|
-
xMsClientRequestId,
|
|
1648
|
-
contentType
|
|
1668
|
+
accept$1,
|
|
1669
|
+
xMsClientRequestId$1,
|
|
1670
|
+
contentType$1
|
|
1649
1671
|
],
|
|
1650
1672
|
mediaType: "json",
|
|
1651
|
-
serializer
|
|
1673
|
+
serializer: serializer$6
|
|
1652
1674
|
};
|
|
1653
1675
|
const autocompleteGetOperationSpec = {
|
|
1654
1676
|
path: "/docs/search.autocomplete",
|
|
@@ -1658,11 +1680,11 @@ const autocompleteGetOperationSpec = {
|
|
|
1658
1680
|
bodyMapper: AutocompleteResult
|
|
1659
1681
|
},
|
|
1660
1682
|
default: {
|
|
1661
|
-
bodyMapper: SearchError
|
|
1683
|
+
bodyMapper: SearchError$1
|
|
1662
1684
|
}
|
|
1663
1685
|
},
|
|
1664
1686
|
queryParameters: [
|
|
1665
|
-
apiVersion,
|
|
1687
|
+
apiVersion$1,
|
|
1666
1688
|
searchText1,
|
|
1667
1689
|
suggesterName,
|
|
1668
1690
|
autocompleteMode,
|
|
@@ -1674,9 +1696,9 @@ const autocompleteGetOperationSpec = {
|
|
|
1674
1696
|
searchFields2,
|
|
1675
1697
|
top2
|
|
1676
1698
|
],
|
|
1677
|
-
urlParameters: [endpoint, indexName],
|
|
1678
|
-
headerParameters: [accept, xMsClientRequestId],
|
|
1679
|
-
serializer
|
|
1699
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1700
|
+
headerParameters: [accept$1, xMsClientRequestId$1],
|
|
1701
|
+
serializer: serializer$6
|
|
1680
1702
|
};
|
|
1681
1703
|
const autocompletePostOperationSpec = {
|
|
1682
1704
|
path: "/docs/search.post.autocomplete",
|
|
@@ -1686,19 +1708,19 @@ const autocompletePostOperationSpec = {
|
|
|
1686
1708
|
bodyMapper: AutocompleteResult
|
|
1687
1709
|
},
|
|
1688
1710
|
default: {
|
|
1689
|
-
bodyMapper: SearchError
|
|
1711
|
+
bodyMapper: SearchError$1
|
|
1690
1712
|
}
|
|
1691
1713
|
},
|
|
1692
1714
|
requestBody: autocompleteRequest,
|
|
1693
|
-
queryParameters: [apiVersion],
|
|
1694
|
-
urlParameters: [endpoint, indexName],
|
|
1715
|
+
queryParameters: [apiVersion$1],
|
|
1716
|
+
urlParameters: [endpoint$1, indexName$1],
|
|
1695
1717
|
headerParameters: [
|
|
1696
|
-
accept,
|
|
1697
|
-
xMsClientRequestId,
|
|
1698
|
-
contentType
|
|
1718
|
+
accept$1,
|
|
1719
|
+
xMsClientRequestId$1,
|
|
1720
|
+
contentType$1
|
|
1699
1721
|
],
|
|
1700
1722
|
mediaType: "json",
|
|
1701
|
-
serializer
|
|
1723
|
+
serializer: serializer$6
|
|
1702
1724
|
};
|
|
1703
1725
|
|
|
1704
1726
|
/*
|
|
@@ -1709,7 +1731,7 @@ const autocompletePostOperationSpec = {
|
|
|
1709
1731
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1710
1732
|
*/
|
|
1711
1733
|
/** @internal */
|
|
1712
|
-
class SearchClientContext extends
|
|
1734
|
+
class SearchClientContext extends coreClient__namespace.ServiceClient {
|
|
1713
1735
|
/**
|
|
1714
1736
|
* Initializes a new instance of the SearchClientContext class.
|
|
1715
1737
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1734,7 +1756,7 @@ class SearchClientContext extends coreClient.ServiceClient {
|
|
|
1734
1756
|
const defaults = {
|
|
1735
1757
|
requestContentType: "application/json; charset=utf-8"
|
|
1736
1758
|
};
|
|
1737
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
1759
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
|
|
1738
1760
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1739
1761
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1740
1762
|
: `${packageDetails}`;
|
|
@@ -1757,7 +1779,7 @@ class SearchClientContext extends coreClient.ServiceClient {
|
|
|
1757
1779
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1758
1780
|
*/
|
|
1759
1781
|
/** @internal */
|
|
1760
|
-
class SearchClient extends SearchClientContext {
|
|
1782
|
+
class SearchClient$1 extends SearchClientContext {
|
|
1761
1783
|
/**
|
|
1762
1784
|
* Initializes a new instance of the SearchClient class.
|
|
1763
1785
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -1793,7 +1815,7 @@ function createSearchApiKeyCredentialPolicy(credential) {
|
|
|
1793
1815
|
|
|
1794
1816
|
// Copyright (c) Microsoft Corporation.
|
|
1795
1817
|
// Licensed under the MIT license.
|
|
1796
|
-
const SDK_VERSION = "11.3.0-beta.
|
|
1818
|
+
const SDK_VERSION = "11.3.0-beta.6";
|
|
1797
1819
|
|
|
1798
1820
|
// Copyright (c) Microsoft Corporation.
|
|
1799
1821
|
/**
|
|
@@ -1813,7 +1835,7 @@ const createSpan = coreTracing.createSpanFunction({
|
|
|
1813
1835
|
|
|
1814
1836
|
// Copyright (c) Microsoft Corporation.
|
|
1815
1837
|
// Licensed under the MIT license.
|
|
1816
|
-
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1838
|
+
const WorldGeodeticSystem1984$1 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1817
1839
|
/**
|
|
1818
1840
|
* Represents a geographic point in global coordinates.
|
|
1819
1841
|
*/
|
|
@@ -1834,7 +1856,7 @@ class GeographyPoint {
|
|
|
1834
1856
|
return {
|
|
1835
1857
|
type: "Point",
|
|
1836
1858
|
coordinates: [this.longitude, this.latitude],
|
|
1837
|
-
crs: { type: "name", properties: { name: WorldGeodeticSystem1984 } },
|
|
1859
|
+
crs: { type: "name", properties: { name: WorldGeodeticSystem1984$1 } },
|
|
1838
1860
|
};
|
|
1839
1861
|
}
|
|
1840
1862
|
}
|
|
@@ -1842,7 +1864,7 @@ class GeographyPoint {
|
|
|
1842
1864
|
// Copyright (c) Microsoft Corporation.
|
|
1843
1865
|
const ISO8601DateRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z$/i;
|
|
1844
1866
|
const GeoJSONPointTypeName = "Point";
|
|
1845
|
-
const WorldGeodeticSystem1984
|
|
1867
|
+
const WorldGeodeticSystem1984 = "EPSG:4326"; // See https://epsg.io/4326
|
|
1846
1868
|
function serialize(obj) {
|
|
1847
1869
|
return walk(obj, (value) => {
|
|
1848
1870
|
const result = serializeSpecialNumbers(value);
|
|
@@ -1982,7 +2004,7 @@ function isCrsProperties(maybeProperties) {
|
|
|
1982
2004
|
requiredKeys: ["name"],
|
|
1983
2005
|
propertyValidator: (key) => {
|
|
1984
2006
|
if (key === "name") {
|
|
1985
|
-
return maybeProperties.name === WorldGeodeticSystem1984
|
|
2007
|
+
return maybeProperties.name === WorldGeodeticSystem1984;
|
|
1986
2008
|
}
|
|
1987
2009
|
else {
|
|
1988
2010
|
return false;
|
|
@@ -2115,6 +2137,11 @@ function decode(value) {
|
|
|
2115
2137
|
function isComplexField(field) {
|
|
2116
2138
|
return field.type === "Edm.ComplexType" || field.type === "Collection(Edm.ComplexType)";
|
|
2117
2139
|
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Defines values for TokenizerName.
|
|
2142
|
+
* @readonly
|
|
2143
|
+
*/
|
|
2144
|
+
exports.KnownTokenizerNames = void 0;
|
|
2118
2145
|
(function (KnownTokenizerNames) {
|
|
2119
2146
|
/**
|
|
2120
2147
|
* Grammar-based tokenizer that is suitable for processing most European-language documents. See
|
|
@@ -2183,6 +2210,11 @@ function isComplexField(field) {
|
|
|
2183
2210
|
*/
|
|
2184
2211
|
KnownTokenizerNames["Whitespace"] = "whitespace";
|
|
2185
2212
|
})(exports.KnownTokenizerNames || (exports.KnownTokenizerNames = {}));
|
|
2213
|
+
/**
|
|
2214
|
+
* Defines values for TokenFilterName.
|
|
2215
|
+
* @readonly
|
|
2216
|
+
*/
|
|
2217
|
+
exports.KnownTokenFilterNames = void 0;
|
|
2186
2218
|
(function (KnownTokenFilterNames) {
|
|
2187
2219
|
/**
|
|
2188
2220
|
* A token filter that applies the Arabic normalizer to normalize the orthography. See
|
|
@@ -2361,6 +2393,11 @@ function isComplexField(field) {
|
|
|
2361
2393
|
*/
|
|
2362
2394
|
KnownTokenFilterNames["WordDelimiter"] = "word_delimiter";
|
|
2363
2395
|
})(exports.KnownTokenFilterNames || (exports.KnownTokenFilterNames = {}));
|
|
2396
|
+
/**
|
|
2397
|
+
* Defines values for CharFilterName.
|
|
2398
|
+
* @readonly
|
|
2399
|
+
*/
|
|
2400
|
+
exports.KnownCharFilterNames = void 0;
|
|
2364
2401
|
(function (KnownCharFilterNames) {
|
|
2365
2402
|
/**
|
|
2366
2403
|
* A character filter that attempts to strip out HTML constructs. See
|
|
@@ -2368,6 +2405,12 @@ function isComplexField(field) {
|
|
|
2368
2405
|
*/
|
|
2369
2406
|
KnownCharFilterNames["HtmlStrip"] = "html_strip";
|
|
2370
2407
|
})(exports.KnownCharFilterNames || (exports.KnownCharFilterNames = {}));
|
|
2408
|
+
/**
|
|
2409
|
+
* Defines values for AnalyzerName.
|
|
2410
|
+
* See https://docs.microsoft.com/rest/api/searchservice/Language-support
|
|
2411
|
+
* @readonly
|
|
2412
|
+
*/
|
|
2413
|
+
exports.KnownAnalyzerNames = void 0;
|
|
2371
2414
|
(function (KnownAnalyzerNames) {
|
|
2372
2415
|
/**
|
|
2373
2416
|
* Arabic
|
|
@@ -2806,6 +2849,9 @@ function convertSkillsToPublic(skills) {
|
|
|
2806
2849
|
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
2807
2850
|
result.push(skill);
|
|
2808
2851
|
break;
|
|
2852
|
+
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
2853
|
+
result.push(skill);
|
|
2854
|
+
break;
|
|
2809
2855
|
}
|
|
2810
2856
|
}
|
|
2811
2857
|
return result;
|
|
@@ -3222,7 +3268,7 @@ const defaultServiceVersion = "2021-04-30-Preview";
|
|
|
3222
3268
|
* including querying documents in the index as well as
|
|
3223
3269
|
* adding, updating, and removing them.
|
|
3224
3270
|
*/
|
|
3225
|
-
class SearchClient
|
|
3271
|
+
class SearchClient {
|
|
3226
3272
|
/**
|
|
3227
3273
|
* Creates an instance of SearchClient.
|
|
3228
3274
|
*
|
|
@@ -3283,14 +3329,16 @@ class SearchClient$1 {
|
|
|
3283
3329
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
3284
3330
|
}
|
|
3285
3331
|
this.serviceVersion = options.apiVersion;
|
|
3332
|
+
this.apiVersion = options.apiVersion;
|
|
3286
3333
|
}
|
|
3287
3334
|
if (options.serviceVersion) {
|
|
3288
3335
|
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
3289
3336
|
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
3290
3337
|
}
|
|
3291
3338
|
this.serviceVersion = options.serviceVersion;
|
|
3339
|
+
this.apiVersion = options.serviceVersion;
|
|
3292
3340
|
}
|
|
3293
|
-
this.client = new SearchClient(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3341
|
+
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3294
3342
|
if (coreAuth.isTokenCredential(credential)) {
|
|
3295
3343
|
this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
|
|
3296
3344
|
}
|
|
@@ -3754,7 +3802,7 @@ class SearchIndexingBufferedSender {
|
|
|
3754
3802
|
/**
|
|
3755
3803
|
* Event emitter/publisher used in the Buffered Sender
|
|
3756
3804
|
*/
|
|
3757
|
-
this.emitter = new
|
|
3805
|
+
this.emitter = new EventEmitter__default["default"]();
|
|
3758
3806
|
this.client = client;
|
|
3759
3807
|
this.documentKeyRetriever = documentKeyRetriever;
|
|
3760
3808
|
// General Configuration properties
|
|
@@ -4239,7 +4287,7 @@ const AzureActiveDirectoryApplicationCredentials = {
|
|
|
4239
4287
|
}
|
|
4240
4288
|
}
|
|
4241
4289
|
};
|
|
4242
|
-
const SearchError
|
|
4290
|
+
const SearchError = {
|
|
4243
4291
|
type: {
|
|
4244
4292
|
name: "Composite",
|
|
4245
4293
|
className: "SearchError",
|
|
@@ -7298,6 +7346,52 @@ const WebApiSkill = {
|
|
|
7298
7346
|
} })
|
|
7299
7347
|
}
|
|
7300
7348
|
};
|
|
7349
|
+
const AzureMachineLearningSkill = {
|
|
7350
|
+
serializedName: "#Microsoft.Skills.Custom.AmlSkill",
|
|
7351
|
+
type: {
|
|
7352
|
+
name: "Composite",
|
|
7353
|
+
className: "AzureMachineLearningSkill",
|
|
7354
|
+
uberParent: "SearchIndexerSkill",
|
|
7355
|
+
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7356
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
|
|
7357
|
+
serializedName: "uri",
|
|
7358
|
+
nullable: true,
|
|
7359
|
+
type: {
|
|
7360
|
+
name: "String"
|
|
7361
|
+
}
|
|
7362
|
+
}, authenticationKey: {
|
|
7363
|
+
serializedName: "key",
|
|
7364
|
+
nullable: true,
|
|
7365
|
+
type: {
|
|
7366
|
+
name: "String"
|
|
7367
|
+
}
|
|
7368
|
+
}, resourceId: {
|
|
7369
|
+
serializedName: "resourceId",
|
|
7370
|
+
nullable: true,
|
|
7371
|
+
type: {
|
|
7372
|
+
name: "String"
|
|
7373
|
+
}
|
|
7374
|
+
}, timeout: {
|
|
7375
|
+
serializedName: "timeout",
|
|
7376
|
+
nullable: true,
|
|
7377
|
+
type: {
|
|
7378
|
+
name: "TimeSpan"
|
|
7379
|
+
}
|
|
7380
|
+
}, region: {
|
|
7381
|
+
serializedName: "region",
|
|
7382
|
+
nullable: true,
|
|
7383
|
+
type: {
|
|
7384
|
+
name: "String"
|
|
7385
|
+
}
|
|
7386
|
+
}, degreeOfParallelism: {
|
|
7387
|
+
serializedName: "degreeOfParallelism",
|
|
7388
|
+
nullable: true,
|
|
7389
|
+
type: {
|
|
7390
|
+
name: "Number"
|
|
7391
|
+
}
|
|
7392
|
+
} })
|
|
7393
|
+
}
|
|
7394
|
+
};
|
|
7301
7395
|
const DefaultCognitiveServicesAccount = {
|
|
7302
7396
|
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7303
7397
|
type: {
|
|
@@ -8956,6 +9050,7 @@ let discriminators = {
|
|
|
8956
9050
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
8957
9051
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
8958
9052
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
9053
|
+
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
8959
9054
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
8960
9055
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
8961
9056
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -9010,7 +9105,7 @@ let discriminators = {
|
|
|
9010
9105
|
"Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
|
|
9011
9106
|
};
|
|
9012
9107
|
|
|
9013
|
-
var Mappers
|
|
9108
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
9014
9109
|
__proto__: null,
|
|
9015
9110
|
SearchIndexerDataSource: SearchIndexerDataSource,
|
|
9016
9111
|
DataSourceCredentials: DataSourceCredentials,
|
|
@@ -9020,7 +9115,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9020
9115
|
DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
|
|
9021
9116
|
SearchResourceEncryptionKey: SearchResourceEncryptionKey,
|
|
9022
9117
|
AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
|
|
9023
|
-
SearchError: SearchError
|
|
9118
|
+
SearchError: SearchError,
|
|
9024
9119
|
ListDataSourcesResult: ListDataSourcesResult,
|
|
9025
9120
|
DocumentKeysOrIds: DocumentKeysOrIds,
|
|
9026
9121
|
SearchIndexer: SearchIndexer,
|
|
@@ -9104,6 +9199,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9104
9199
|
TextTranslationSkill: TextTranslationSkill,
|
|
9105
9200
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
9106
9201
|
WebApiSkill: WebApiSkill,
|
|
9202
|
+
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
9107
9203
|
DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
|
|
9108
9204
|
CognitiveServicesAccountKey: CognitiveServicesAccountKey,
|
|
9109
9205
|
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
@@ -9170,7 +9266,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
|
|
|
9170
9266
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
9171
9267
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9172
9268
|
*/
|
|
9173
|
-
const contentType
|
|
9269
|
+
const contentType = {
|
|
9174
9270
|
parameterPath: ["options", "contentType"],
|
|
9175
9271
|
mapper: {
|
|
9176
9272
|
defaultValue: "application/json",
|
|
@@ -9185,7 +9281,7 @@ const dataSource = {
|
|
|
9185
9281
|
parameterPath: "dataSource",
|
|
9186
9282
|
mapper: SearchIndexerDataSource
|
|
9187
9283
|
};
|
|
9188
|
-
const accept
|
|
9284
|
+
const accept = {
|
|
9189
9285
|
parameterPath: "accept",
|
|
9190
9286
|
mapper: {
|
|
9191
9287
|
defaultValue: "application/json",
|
|
@@ -9196,7 +9292,7 @@ const accept$1 = {
|
|
|
9196
9292
|
}
|
|
9197
9293
|
}
|
|
9198
9294
|
};
|
|
9199
|
-
const endpoint
|
|
9295
|
+
const endpoint = {
|
|
9200
9296
|
parameterPath: "endpoint",
|
|
9201
9297
|
mapper: {
|
|
9202
9298
|
serializedName: "endpoint",
|
|
@@ -9217,7 +9313,7 @@ const dataSourceName = {
|
|
|
9217
9313
|
}
|
|
9218
9314
|
}
|
|
9219
9315
|
};
|
|
9220
|
-
const xMsClientRequestId
|
|
9316
|
+
const xMsClientRequestId = {
|
|
9221
9317
|
parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
|
|
9222
9318
|
mapper: {
|
|
9223
9319
|
serializedName: "x-ms-client-request-id",
|
|
@@ -9255,7 +9351,7 @@ const prefer = {
|
|
|
9255
9351
|
}
|
|
9256
9352
|
}
|
|
9257
9353
|
};
|
|
9258
|
-
const apiVersion
|
|
9354
|
+
const apiVersion = {
|
|
9259
9355
|
parameterPath: "apiVersion",
|
|
9260
9356
|
mapper: {
|
|
9261
9357
|
serializedName: "api-version",
|
|
@@ -9274,7 +9370,7 @@ const skipIndexerResetRequirementForCache = {
|
|
|
9274
9370
|
}
|
|
9275
9371
|
}
|
|
9276
9372
|
};
|
|
9277
|
-
const select
|
|
9373
|
+
const select = {
|
|
9278
9374
|
parameterPath: ["options", "select"],
|
|
9279
9375
|
mapper: {
|
|
9280
9376
|
serializedName: "$select",
|
|
@@ -9356,7 +9452,7 @@ const index = {
|
|
|
9356
9452
|
parameterPath: "index",
|
|
9357
9453
|
mapper: SearchIndex
|
|
9358
9454
|
};
|
|
9359
|
-
const indexName
|
|
9455
|
+
const indexName = {
|
|
9360
9456
|
parameterPath: "indexName",
|
|
9361
9457
|
mapper: {
|
|
9362
9458
|
serializedName: "indexName",
|
|
@@ -9403,7 +9499,7 @@ class DataSourcesImpl {
|
|
|
9403
9499
|
* @param options The options parameters.
|
|
9404
9500
|
*/
|
|
9405
9501
|
createOrUpdate(dataSourceName, dataSource, options) {
|
|
9406
|
-
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
|
|
9502
|
+
return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
|
|
9407
9503
|
}
|
|
9408
9504
|
/**
|
|
9409
9505
|
* Deletes a datasource.
|
|
@@ -9411,7 +9507,7 @@ class DataSourcesImpl {
|
|
|
9411
9507
|
* @param options The options parameters.
|
|
9412
9508
|
*/
|
|
9413
9509
|
delete(dataSourceName, options) {
|
|
9414
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
|
|
9510
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
|
|
9415
9511
|
}
|
|
9416
9512
|
/**
|
|
9417
9513
|
* Retrieves a datasource definition.
|
|
@@ -9419,14 +9515,14 @@ class DataSourcesImpl {
|
|
|
9419
9515
|
* @param options The options parameters.
|
|
9420
9516
|
*/
|
|
9421
9517
|
get(dataSourceName, options) {
|
|
9422
|
-
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$
|
|
9518
|
+
return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
|
|
9423
9519
|
}
|
|
9424
9520
|
/**
|
|
9425
9521
|
* Lists all datasources available for a search service.
|
|
9426
9522
|
* @param options The options parameters.
|
|
9427
9523
|
*/
|
|
9428
9524
|
list(options) {
|
|
9429
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
9525
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$4);
|
|
9430
9526
|
}
|
|
9431
9527
|
/**
|
|
9432
9528
|
* Creates a new datasource.
|
|
@@ -9434,12 +9530,12 @@ class DataSourcesImpl {
|
|
|
9434
9530
|
* @param options The options parameters.
|
|
9435
9531
|
*/
|
|
9436
9532
|
create(dataSource, options) {
|
|
9437
|
-
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
|
|
9533
|
+
return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
|
|
9438
9534
|
}
|
|
9439
9535
|
}
|
|
9440
9536
|
// Operation Specifications
|
|
9441
|
-
const serializer$
|
|
9442
|
-
const createOrUpdateOperationSpec = {
|
|
9537
|
+
const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9538
|
+
const createOrUpdateOperationSpec$4 = {
|
|
9443
9539
|
path: "/datasources('{dataSourceName}')",
|
|
9444
9540
|
httpMethod: "PUT",
|
|
9445
9541
|
responses: {
|
|
@@ -9450,47 +9546,47 @@ const createOrUpdateOperationSpec = {
|
|
|
9450
9546
|
bodyMapper: SearchIndexerDataSource
|
|
9451
9547
|
},
|
|
9452
9548
|
default: {
|
|
9453
|
-
bodyMapper: SearchError
|
|
9549
|
+
bodyMapper: SearchError
|
|
9454
9550
|
}
|
|
9455
9551
|
},
|
|
9456
9552
|
requestBody: dataSource,
|
|
9457
9553
|
queryParameters: [
|
|
9458
|
-
apiVersion
|
|
9554
|
+
apiVersion,
|
|
9459
9555
|
skipIndexerResetRequirementForCache
|
|
9460
9556
|
],
|
|
9461
|
-
urlParameters: [endpoint
|
|
9557
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9462
9558
|
headerParameters: [
|
|
9463
|
-
contentType
|
|
9464
|
-
accept
|
|
9465
|
-
xMsClientRequestId
|
|
9559
|
+
contentType,
|
|
9560
|
+
accept,
|
|
9561
|
+
xMsClientRequestId,
|
|
9466
9562
|
ifMatch,
|
|
9467
9563
|
ifNoneMatch,
|
|
9468
9564
|
prefer
|
|
9469
9565
|
],
|
|
9470
9566
|
mediaType: "json",
|
|
9471
|
-
serializer: serializer$
|
|
9567
|
+
serializer: serializer$5
|
|
9472
9568
|
};
|
|
9473
|
-
const deleteOperationSpec = {
|
|
9569
|
+
const deleteOperationSpec$4 = {
|
|
9474
9570
|
path: "/datasources('{dataSourceName}')",
|
|
9475
9571
|
httpMethod: "DELETE",
|
|
9476
9572
|
responses: {
|
|
9477
9573
|
204: {},
|
|
9478
9574
|
404: {},
|
|
9479
9575
|
default: {
|
|
9480
|
-
bodyMapper: SearchError
|
|
9576
|
+
bodyMapper: SearchError
|
|
9481
9577
|
}
|
|
9482
9578
|
},
|
|
9483
|
-
queryParameters: [apiVersion
|
|
9484
|
-
urlParameters: [endpoint
|
|
9579
|
+
queryParameters: [apiVersion],
|
|
9580
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9485
9581
|
headerParameters: [
|
|
9486
|
-
accept
|
|
9487
|
-
xMsClientRequestId
|
|
9582
|
+
accept,
|
|
9583
|
+
xMsClientRequestId,
|
|
9488
9584
|
ifMatch,
|
|
9489
9585
|
ifNoneMatch
|
|
9490
9586
|
],
|
|
9491
|
-
serializer: serializer$
|
|
9587
|
+
serializer: serializer$5
|
|
9492
9588
|
};
|
|
9493
|
-
const getOperationSpec$
|
|
9589
|
+
const getOperationSpec$4 = {
|
|
9494
9590
|
path: "/datasources('{dataSourceName}')",
|
|
9495
9591
|
httpMethod: "GET",
|
|
9496
9592
|
responses: {
|
|
@@ -9498,15 +9594,15 @@ const getOperationSpec$1 = {
|
|
|
9498
9594
|
bodyMapper: SearchIndexerDataSource
|
|
9499
9595
|
},
|
|
9500
9596
|
default: {
|
|
9501
|
-
bodyMapper: SearchError
|
|
9597
|
+
bodyMapper: SearchError
|
|
9502
9598
|
}
|
|
9503
9599
|
},
|
|
9504
|
-
queryParameters: [apiVersion
|
|
9505
|
-
urlParameters: [endpoint
|
|
9506
|
-
headerParameters: [accept
|
|
9507
|
-
serializer: serializer$
|
|
9600
|
+
queryParameters: [apiVersion],
|
|
9601
|
+
urlParameters: [endpoint, dataSourceName],
|
|
9602
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9603
|
+
serializer: serializer$5
|
|
9508
9604
|
};
|
|
9509
|
-
const listOperationSpec = {
|
|
9605
|
+
const listOperationSpec$4 = {
|
|
9510
9606
|
path: "/datasources",
|
|
9511
9607
|
httpMethod: "GET",
|
|
9512
9608
|
responses: {
|
|
@@ -9514,15 +9610,15 @@ const listOperationSpec = {
|
|
|
9514
9610
|
bodyMapper: ListDataSourcesResult
|
|
9515
9611
|
},
|
|
9516
9612
|
default: {
|
|
9517
|
-
bodyMapper: SearchError
|
|
9613
|
+
bodyMapper: SearchError
|
|
9518
9614
|
}
|
|
9519
9615
|
},
|
|
9520
|
-
queryParameters: [apiVersion
|
|
9521
|
-
urlParameters: [endpoint
|
|
9522
|
-
headerParameters: [accept
|
|
9523
|
-
serializer: serializer$
|
|
9616
|
+
queryParameters: [apiVersion, select],
|
|
9617
|
+
urlParameters: [endpoint],
|
|
9618
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9619
|
+
serializer: serializer$5
|
|
9524
9620
|
};
|
|
9525
|
-
const createOperationSpec = {
|
|
9621
|
+
const createOperationSpec$4 = {
|
|
9526
9622
|
path: "/datasources",
|
|
9527
9623
|
httpMethod: "POST",
|
|
9528
9624
|
responses: {
|
|
@@ -9530,19 +9626,19 @@ const createOperationSpec = {
|
|
|
9530
9626
|
bodyMapper: SearchIndexerDataSource
|
|
9531
9627
|
},
|
|
9532
9628
|
default: {
|
|
9533
|
-
bodyMapper: SearchError
|
|
9629
|
+
bodyMapper: SearchError
|
|
9534
9630
|
}
|
|
9535
9631
|
},
|
|
9536
9632
|
requestBody: dataSource,
|
|
9537
|
-
queryParameters: [apiVersion
|
|
9538
|
-
urlParameters: [endpoint
|
|
9633
|
+
queryParameters: [apiVersion],
|
|
9634
|
+
urlParameters: [endpoint],
|
|
9539
9635
|
headerParameters: [
|
|
9540
|
-
contentType
|
|
9541
|
-
accept
|
|
9542
|
-
xMsClientRequestId
|
|
9636
|
+
contentType,
|
|
9637
|
+
accept,
|
|
9638
|
+
xMsClientRequestId
|
|
9543
9639
|
],
|
|
9544
9640
|
mediaType: "json",
|
|
9545
|
-
serializer: serializer$
|
|
9641
|
+
serializer: serializer$5
|
|
9546
9642
|
};
|
|
9547
9643
|
|
|
9548
9644
|
/*
|
|
@@ -9592,7 +9688,7 @@ class IndexersImpl {
|
|
|
9592
9688
|
* @param options The options parameters.
|
|
9593
9689
|
*/
|
|
9594
9690
|
createOrUpdate(indexerName, indexer, options) {
|
|
9595
|
-
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$
|
|
9691
|
+
return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
|
|
9596
9692
|
}
|
|
9597
9693
|
/**
|
|
9598
9694
|
* Deletes an indexer.
|
|
@@ -9600,7 +9696,7 @@ class IndexersImpl {
|
|
|
9600
9696
|
* @param options The options parameters.
|
|
9601
9697
|
*/
|
|
9602
9698
|
delete(indexerName, options) {
|
|
9603
|
-
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$
|
|
9699
|
+
return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
|
|
9604
9700
|
}
|
|
9605
9701
|
/**
|
|
9606
9702
|
* Retrieves an indexer definition.
|
|
@@ -9608,14 +9704,14 @@ class IndexersImpl {
|
|
|
9608
9704
|
* @param options The options parameters.
|
|
9609
9705
|
*/
|
|
9610
9706
|
get(indexerName, options) {
|
|
9611
|
-
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$
|
|
9707
|
+
return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
|
|
9612
9708
|
}
|
|
9613
9709
|
/**
|
|
9614
9710
|
* Lists all indexers available for a search service.
|
|
9615
9711
|
* @param options The options parameters.
|
|
9616
9712
|
*/
|
|
9617
9713
|
list(options) {
|
|
9618
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
9714
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$3);
|
|
9619
9715
|
}
|
|
9620
9716
|
/**
|
|
9621
9717
|
* Creates a new indexer.
|
|
@@ -9623,7 +9719,7 @@ class IndexersImpl {
|
|
|
9623
9719
|
* @param options The options parameters.
|
|
9624
9720
|
*/
|
|
9625
9721
|
create(indexer, options) {
|
|
9626
|
-
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$
|
|
9722
|
+
return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
|
|
9627
9723
|
}
|
|
9628
9724
|
/**
|
|
9629
9725
|
* Returns the current status and execution history of an indexer.
|
|
@@ -9635,20 +9731,20 @@ class IndexersImpl {
|
|
|
9635
9731
|
}
|
|
9636
9732
|
}
|
|
9637
9733
|
// Operation Specifications
|
|
9638
|
-
const serializer$
|
|
9734
|
+
const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9639
9735
|
const resetOperationSpec = {
|
|
9640
9736
|
path: "/indexers('{indexerName}')/search.reset",
|
|
9641
9737
|
httpMethod: "POST",
|
|
9642
9738
|
responses: {
|
|
9643
9739
|
204: {},
|
|
9644
9740
|
default: {
|
|
9645
|
-
bodyMapper: SearchError
|
|
9741
|
+
bodyMapper: SearchError
|
|
9646
9742
|
}
|
|
9647
9743
|
},
|
|
9648
|
-
queryParameters: [apiVersion
|
|
9649
|
-
urlParameters: [endpoint
|
|
9650
|
-
headerParameters: [accept
|
|
9651
|
-
serializer: serializer$
|
|
9744
|
+
queryParameters: [apiVersion],
|
|
9745
|
+
urlParameters: [endpoint, indexerName],
|
|
9746
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9747
|
+
serializer: serializer$4
|
|
9652
9748
|
};
|
|
9653
9749
|
const resetDocsOperationSpec = {
|
|
9654
9750
|
path: "/indexers('{indexerName}')/search.resetdocs",
|
|
@@ -9656,19 +9752,19 @@ const resetDocsOperationSpec = {
|
|
|
9656
9752
|
responses: {
|
|
9657
9753
|
204: {},
|
|
9658
9754
|
default: {
|
|
9659
|
-
bodyMapper: SearchError
|
|
9755
|
+
bodyMapper: SearchError
|
|
9660
9756
|
}
|
|
9661
9757
|
},
|
|
9662
9758
|
requestBody: keysOrIds,
|
|
9663
|
-
queryParameters: [apiVersion
|
|
9664
|
-
urlParameters: [endpoint
|
|
9759
|
+
queryParameters: [apiVersion, overwrite],
|
|
9760
|
+
urlParameters: [endpoint, indexerName],
|
|
9665
9761
|
headerParameters: [
|
|
9666
|
-
contentType
|
|
9667
|
-
accept
|
|
9668
|
-
xMsClientRequestId
|
|
9762
|
+
contentType,
|
|
9763
|
+
accept,
|
|
9764
|
+
xMsClientRequestId
|
|
9669
9765
|
],
|
|
9670
9766
|
mediaType: "json",
|
|
9671
|
-
serializer: serializer$
|
|
9767
|
+
serializer: serializer$4
|
|
9672
9768
|
};
|
|
9673
9769
|
const runOperationSpec = {
|
|
9674
9770
|
path: "/indexers('{indexerName}')/search.run",
|
|
@@ -9676,15 +9772,15 @@ const runOperationSpec = {
|
|
|
9676
9772
|
responses: {
|
|
9677
9773
|
202: {},
|
|
9678
9774
|
default: {
|
|
9679
|
-
bodyMapper: SearchError
|
|
9775
|
+
bodyMapper: SearchError
|
|
9680
9776
|
}
|
|
9681
9777
|
},
|
|
9682
|
-
queryParameters: [apiVersion
|
|
9683
|
-
urlParameters: [endpoint
|
|
9684
|
-
headerParameters: [accept
|
|
9685
|
-
serializer: serializer$
|
|
9778
|
+
queryParameters: [apiVersion],
|
|
9779
|
+
urlParameters: [endpoint, indexerName],
|
|
9780
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9781
|
+
serializer: serializer$4
|
|
9686
9782
|
};
|
|
9687
|
-
const createOrUpdateOperationSpec$
|
|
9783
|
+
const createOrUpdateOperationSpec$3 = {
|
|
9688
9784
|
path: "/indexers('{indexerName}')",
|
|
9689
9785
|
httpMethod: "PUT",
|
|
9690
9786
|
responses: {
|
|
@@ -9695,48 +9791,48 @@ const createOrUpdateOperationSpec$1 = {
|
|
|
9695
9791
|
bodyMapper: SearchIndexer
|
|
9696
9792
|
},
|
|
9697
9793
|
default: {
|
|
9698
|
-
bodyMapper: SearchError
|
|
9794
|
+
bodyMapper: SearchError
|
|
9699
9795
|
}
|
|
9700
9796
|
},
|
|
9701
9797
|
requestBody: indexer,
|
|
9702
9798
|
queryParameters: [
|
|
9703
|
-
apiVersion
|
|
9799
|
+
apiVersion,
|
|
9704
9800
|
skipIndexerResetRequirementForCache,
|
|
9705
9801
|
disableCacheReprocessingChangeDetection
|
|
9706
9802
|
],
|
|
9707
|
-
urlParameters: [endpoint
|
|
9803
|
+
urlParameters: [endpoint, indexerName],
|
|
9708
9804
|
headerParameters: [
|
|
9709
|
-
contentType
|
|
9710
|
-
accept
|
|
9711
|
-
xMsClientRequestId
|
|
9805
|
+
contentType,
|
|
9806
|
+
accept,
|
|
9807
|
+
xMsClientRequestId,
|
|
9712
9808
|
ifMatch,
|
|
9713
9809
|
ifNoneMatch,
|
|
9714
9810
|
prefer
|
|
9715
9811
|
],
|
|
9716
9812
|
mediaType: "json",
|
|
9717
|
-
serializer: serializer$
|
|
9813
|
+
serializer: serializer$4
|
|
9718
9814
|
};
|
|
9719
|
-
const deleteOperationSpec$
|
|
9815
|
+
const deleteOperationSpec$3 = {
|
|
9720
9816
|
path: "/indexers('{indexerName}')",
|
|
9721
9817
|
httpMethod: "DELETE",
|
|
9722
9818
|
responses: {
|
|
9723
9819
|
204: {},
|
|
9724
9820
|
404: {},
|
|
9725
9821
|
default: {
|
|
9726
|
-
bodyMapper: SearchError
|
|
9822
|
+
bodyMapper: SearchError
|
|
9727
9823
|
}
|
|
9728
9824
|
},
|
|
9729
|
-
queryParameters: [apiVersion
|
|
9730
|
-
urlParameters: [endpoint
|
|
9825
|
+
queryParameters: [apiVersion],
|
|
9826
|
+
urlParameters: [endpoint, indexerName],
|
|
9731
9827
|
headerParameters: [
|
|
9732
|
-
accept
|
|
9733
|
-
xMsClientRequestId
|
|
9828
|
+
accept,
|
|
9829
|
+
xMsClientRequestId,
|
|
9734
9830
|
ifMatch,
|
|
9735
9831
|
ifNoneMatch
|
|
9736
9832
|
],
|
|
9737
|
-
serializer: serializer$
|
|
9833
|
+
serializer: serializer$4
|
|
9738
9834
|
};
|
|
9739
|
-
const getOperationSpec$
|
|
9835
|
+
const getOperationSpec$3 = {
|
|
9740
9836
|
path: "/indexers('{indexerName}')",
|
|
9741
9837
|
httpMethod: "GET",
|
|
9742
9838
|
responses: {
|
|
@@ -9744,15 +9840,15 @@ const getOperationSpec$2 = {
|
|
|
9744
9840
|
bodyMapper: SearchIndexer
|
|
9745
9841
|
},
|
|
9746
9842
|
default: {
|
|
9747
|
-
bodyMapper: SearchError
|
|
9843
|
+
bodyMapper: SearchError
|
|
9748
9844
|
}
|
|
9749
9845
|
},
|
|
9750
|
-
queryParameters: [apiVersion
|
|
9751
|
-
urlParameters: [endpoint
|
|
9752
|
-
headerParameters: [accept
|
|
9753
|
-
serializer: serializer$
|
|
9846
|
+
queryParameters: [apiVersion],
|
|
9847
|
+
urlParameters: [endpoint, indexerName],
|
|
9848
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9849
|
+
serializer: serializer$4
|
|
9754
9850
|
};
|
|
9755
|
-
const listOperationSpec$
|
|
9851
|
+
const listOperationSpec$3 = {
|
|
9756
9852
|
path: "/indexers",
|
|
9757
9853
|
httpMethod: "GET",
|
|
9758
9854
|
responses: {
|
|
@@ -9760,15 +9856,15 @@ const listOperationSpec$1 = {
|
|
|
9760
9856
|
bodyMapper: ListIndexersResult
|
|
9761
9857
|
},
|
|
9762
9858
|
default: {
|
|
9763
|
-
bodyMapper: SearchError
|
|
9859
|
+
bodyMapper: SearchError
|
|
9764
9860
|
}
|
|
9765
9861
|
},
|
|
9766
|
-
queryParameters: [apiVersion
|
|
9767
|
-
urlParameters: [endpoint
|
|
9768
|
-
headerParameters: [accept
|
|
9769
|
-
serializer: serializer$
|
|
9862
|
+
queryParameters: [apiVersion, select],
|
|
9863
|
+
urlParameters: [endpoint],
|
|
9864
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9865
|
+
serializer: serializer$4
|
|
9770
9866
|
};
|
|
9771
|
-
const createOperationSpec$
|
|
9867
|
+
const createOperationSpec$3 = {
|
|
9772
9868
|
path: "/indexers",
|
|
9773
9869
|
httpMethod: "POST",
|
|
9774
9870
|
responses: {
|
|
@@ -9776,19 +9872,19 @@ const createOperationSpec$1 = {
|
|
|
9776
9872
|
bodyMapper: SearchIndexer
|
|
9777
9873
|
},
|
|
9778
9874
|
default: {
|
|
9779
|
-
bodyMapper: SearchError
|
|
9875
|
+
bodyMapper: SearchError
|
|
9780
9876
|
}
|
|
9781
9877
|
},
|
|
9782
9878
|
requestBody: indexer,
|
|
9783
|
-
queryParameters: [apiVersion
|
|
9784
|
-
urlParameters: [endpoint
|
|
9879
|
+
queryParameters: [apiVersion],
|
|
9880
|
+
urlParameters: [endpoint],
|
|
9785
9881
|
headerParameters: [
|
|
9786
|
-
contentType
|
|
9787
|
-
accept
|
|
9788
|
-
xMsClientRequestId
|
|
9882
|
+
contentType,
|
|
9883
|
+
accept,
|
|
9884
|
+
xMsClientRequestId
|
|
9789
9885
|
],
|
|
9790
9886
|
mediaType: "json",
|
|
9791
|
-
serializer: serializer$
|
|
9887
|
+
serializer: serializer$4
|
|
9792
9888
|
};
|
|
9793
9889
|
const getStatusOperationSpec = {
|
|
9794
9890
|
path: "/indexers('{indexerName}')/search.status",
|
|
@@ -9798,13 +9894,13 @@ const getStatusOperationSpec = {
|
|
|
9798
9894
|
bodyMapper: SearchIndexerStatus
|
|
9799
9895
|
},
|
|
9800
9896
|
default: {
|
|
9801
|
-
bodyMapper: SearchError
|
|
9897
|
+
bodyMapper: SearchError
|
|
9802
9898
|
}
|
|
9803
9899
|
},
|
|
9804
|
-
queryParameters: [apiVersion
|
|
9805
|
-
urlParameters: [endpoint
|
|
9806
|
-
headerParameters: [accept
|
|
9807
|
-
serializer: serializer$
|
|
9900
|
+
queryParameters: [apiVersion],
|
|
9901
|
+
urlParameters: [endpoint, indexerName],
|
|
9902
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9903
|
+
serializer: serializer$4
|
|
9808
9904
|
};
|
|
9809
9905
|
|
|
9810
9906
|
/*
|
|
@@ -9846,7 +9942,7 @@ class SkillsetsImpl {
|
|
|
9846
9942
|
* @param options The options parameters.
|
|
9847
9943
|
*/
|
|
9848
9944
|
get(skillsetName, options) {
|
|
9849
|
-
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$
|
|
9945
|
+
return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
|
|
9850
9946
|
}
|
|
9851
9947
|
/**
|
|
9852
9948
|
* List all skillsets in a search service.
|
|
@@ -9874,7 +9970,7 @@ class SkillsetsImpl {
|
|
|
9874
9970
|
}
|
|
9875
9971
|
}
|
|
9876
9972
|
// Operation Specifications
|
|
9877
|
-
const serializer$3 =
|
|
9973
|
+
const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
9878
9974
|
const createOrUpdateOperationSpec$2 = {
|
|
9879
9975
|
path: "/skillsets('{skillsetName}')",
|
|
9880
9976
|
httpMethod: "PUT",
|
|
@@ -9886,20 +9982,20 @@ const createOrUpdateOperationSpec$2 = {
|
|
|
9886
9982
|
bodyMapper: SearchIndexerSkillset
|
|
9887
9983
|
},
|
|
9888
9984
|
default: {
|
|
9889
|
-
bodyMapper: SearchError
|
|
9985
|
+
bodyMapper: SearchError
|
|
9890
9986
|
}
|
|
9891
9987
|
},
|
|
9892
9988
|
requestBody: skillset,
|
|
9893
9989
|
queryParameters: [
|
|
9894
|
-
apiVersion
|
|
9990
|
+
apiVersion,
|
|
9895
9991
|
skipIndexerResetRequirementForCache,
|
|
9896
9992
|
disableCacheReprocessingChangeDetection
|
|
9897
9993
|
],
|
|
9898
|
-
urlParameters: [endpoint
|
|
9994
|
+
urlParameters: [endpoint, skillsetName],
|
|
9899
9995
|
headerParameters: [
|
|
9900
|
-
contentType
|
|
9901
|
-
accept
|
|
9902
|
-
xMsClientRequestId
|
|
9996
|
+
contentType,
|
|
9997
|
+
accept,
|
|
9998
|
+
xMsClientRequestId,
|
|
9903
9999
|
ifMatch,
|
|
9904
10000
|
ifNoneMatch,
|
|
9905
10001
|
prefer
|
|
@@ -9914,20 +10010,20 @@ const deleteOperationSpec$2 = {
|
|
|
9914
10010
|
204: {},
|
|
9915
10011
|
404: {},
|
|
9916
10012
|
default: {
|
|
9917
|
-
bodyMapper: SearchError
|
|
10013
|
+
bodyMapper: SearchError
|
|
9918
10014
|
}
|
|
9919
10015
|
},
|
|
9920
|
-
queryParameters: [apiVersion
|
|
9921
|
-
urlParameters: [endpoint
|
|
10016
|
+
queryParameters: [apiVersion],
|
|
10017
|
+
urlParameters: [endpoint, skillsetName],
|
|
9922
10018
|
headerParameters: [
|
|
9923
|
-
accept
|
|
9924
|
-
xMsClientRequestId
|
|
10019
|
+
accept,
|
|
10020
|
+
xMsClientRequestId,
|
|
9925
10021
|
ifMatch,
|
|
9926
10022
|
ifNoneMatch
|
|
9927
10023
|
],
|
|
9928
10024
|
serializer: serializer$3
|
|
9929
10025
|
};
|
|
9930
|
-
const getOperationSpec$
|
|
10026
|
+
const getOperationSpec$2 = {
|
|
9931
10027
|
path: "/skillsets('{skillsetName}')",
|
|
9932
10028
|
httpMethod: "GET",
|
|
9933
10029
|
responses: {
|
|
@@ -9935,12 +10031,12 @@ const getOperationSpec$3 = {
|
|
|
9935
10031
|
bodyMapper: SearchIndexerSkillset
|
|
9936
10032
|
},
|
|
9937
10033
|
default: {
|
|
9938
|
-
bodyMapper: SearchError
|
|
10034
|
+
bodyMapper: SearchError
|
|
9939
10035
|
}
|
|
9940
10036
|
},
|
|
9941
|
-
queryParameters: [apiVersion
|
|
9942
|
-
urlParameters: [endpoint
|
|
9943
|
-
headerParameters: [accept
|
|
10037
|
+
queryParameters: [apiVersion],
|
|
10038
|
+
urlParameters: [endpoint, skillsetName],
|
|
10039
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9944
10040
|
serializer: serializer$3
|
|
9945
10041
|
};
|
|
9946
10042
|
const listOperationSpec$2 = {
|
|
@@ -9951,12 +10047,12 @@ const listOperationSpec$2 = {
|
|
|
9951
10047
|
bodyMapper: ListSkillsetsResult
|
|
9952
10048
|
},
|
|
9953
10049
|
default: {
|
|
9954
|
-
bodyMapper: SearchError
|
|
10050
|
+
bodyMapper: SearchError
|
|
9955
10051
|
}
|
|
9956
10052
|
},
|
|
9957
|
-
queryParameters: [apiVersion
|
|
9958
|
-
urlParameters: [endpoint
|
|
9959
|
-
headerParameters: [accept
|
|
10053
|
+
queryParameters: [apiVersion, select],
|
|
10054
|
+
urlParameters: [endpoint],
|
|
10055
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
9960
10056
|
serializer: serializer$3
|
|
9961
10057
|
};
|
|
9962
10058
|
const createOperationSpec$2 = {
|
|
@@ -9967,16 +10063,16 @@ const createOperationSpec$2 = {
|
|
|
9967
10063
|
bodyMapper: SearchIndexerSkillset
|
|
9968
10064
|
},
|
|
9969
10065
|
default: {
|
|
9970
|
-
bodyMapper: SearchError
|
|
10066
|
+
bodyMapper: SearchError
|
|
9971
10067
|
}
|
|
9972
10068
|
},
|
|
9973
10069
|
requestBody: skillset,
|
|
9974
|
-
queryParameters: [apiVersion
|
|
9975
|
-
urlParameters: [endpoint
|
|
10070
|
+
queryParameters: [apiVersion],
|
|
10071
|
+
urlParameters: [endpoint],
|
|
9976
10072
|
headerParameters: [
|
|
9977
|
-
contentType
|
|
9978
|
-
accept
|
|
9979
|
-
xMsClientRequestId
|
|
10073
|
+
contentType,
|
|
10074
|
+
accept,
|
|
10075
|
+
xMsClientRequestId
|
|
9980
10076
|
],
|
|
9981
10077
|
mediaType: "json",
|
|
9982
10078
|
serializer: serializer$3
|
|
@@ -9987,16 +10083,16 @@ const resetSkillsOperationSpec = {
|
|
|
9987
10083
|
responses: {
|
|
9988
10084
|
204: {},
|
|
9989
10085
|
default: {
|
|
9990
|
-
bodyMapper: SearchError
|
|
10086
|
+
bodyMapper: SearchError
|
|
9991
10087
|
}
|
|
9992
10088
|
},
|
|
9993
10089
|
requestBody: skillNames,
|
|
9994
|
-
queryParameters: [apiVersion
|
|
9995
|
-
urlParameters: [endpoint
|
|
10090
|
+
queryParameters: [apiVersion],
|
|
10091
|
+
urlParameters: [endpoint, skillsetName],
|
|
9996
10092
|
headerParameters: [
|
|
9997
|
-
contentType
|
|
9998
|
-
accept
|
|
9999
|
-
xMsClientRequestId
|
|
10093
|
+
contentType,
|
|
10094
|
+
accept,
|
|
10095
|
+
xMsClientRequestId
|
|
10000
10096
|
],
|
|
10001
10097
|
mediaType: "json",
|
|
10002
10098
|
serializer: serializer$3
|
|
@@ -10025,7 +10121,7 @@ class SynonymMapsImpl {
|
|
|
10025
10121
|
* @param options The options parameters.
|
|
10026
10122
|
*/
|
|
10027
10123
|
createOrUpdate(synonymMapName, synonymMap, options) {
|
|
10028
|
-
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$
|
|
10124
|
+
return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
|
|
10029
10125
|
}
|
|
10030
10126
|
/**
|
|
10031
10127
|
* Deletes a synonym map.
|
|
@@ -10033,7 +10129,7 @@ class SynonymMapsImpl {
|
|
|
10033
10129
|
* @param options The options parameters.
|
|
10034
10130
|
*/
|
|
10035
10131
|
delete(synonymMapName, options) {
|
|
10036
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$
|
|
10132
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
|
|
10037
10133
|
}
|
|
10038
10134
|
/**
|
|
10039
10135
|
* Retrieves a synonym map definition.
|
|
@@ -10041,14 +10137,14 @@ class SynonymMapsImpl {
|
|
|
10041
10137
|
* @param options The options parameters.
|
|
10042
10138
|
*/
|
|
10043
10139
|
get(synonymMapName, options) {
|
|
10044
|
-
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$
|
|
10140
|
+
return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
|
|
10045
10141
|
}
|
|
10046
10142
|
/**
|
|
10047
10143
|
* Lists all synonym maps available for a search service.
|
|
10048
10144
|
* @param options The options parameters.
|
|
10049
10145
|
*/
|
|
10050
10146
|
list(options) {
|
|
10051
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$
|
|
10147
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
10052
10148
|
}
|
|
10053
10149
|
/**
|
|
10054
10150
|
* Creates a new synonym map.
|
|
@@ -10056,12 +10152,12 @@ class SynonymMapsImpl {
|
|
|
10056
10152
|
* @param options The options parameters.
|
|
10057
10153
|
*/
|
|
10058
10154
|
create(synonymMap, options) {
|
|
10059
|
-
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$
|
|
10155
|
+
return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
|
|
10060
10156
|
}
|
|
10061
10157
|
}
|
|
10062
10158
|
// Operation Specifications
|
|
10063
|
-
const serializer$
|
|
10064
|
-
const createOrUpdateOperationSpec$
|
|
10159
|
+
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10160
|
+
const createOrUpdateOperationSpec$1 = {
|
|
10065
10161
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10066
10162
|
httpMethod: "PUT",
|
|
10067
10163
|
responses: {
|
|
@@ -10072,44 +10168,44 @@ const createOrUpdateOperationSpec$3 = {
|
|
|
10072
10168
|
bodyMapper: SynonymMap
|
|
10073
10169
|
},
|
|
10074
10170
|
default: {
|
|
10075
|
-
bodyMapper: SearchError
|
|
10171
|
+
bodyMapper: SearchError
|
|
10076
10172
|
}
|
|
10077
10173
|
},
|
|
10078
10174
|
requestBody: synonymMap,
|
|
10079
|
-
queryParameters: [apiVersion
|
|
10080
|
-
urlParameters: [endpoint
|
|
10175
|
+
queryParameters: [apiVersion],
|
|
10176
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10081
10177
|
headerParameters: [
|
|
10082
|
-
contentType
|
|
10083
|
-
accept
|
|
10084
|
-
xMsClientRequestId
|
|
10178
|
+
contentType,
|
|
10179
|
+
accept,
|
|
10180
|
+
xMsClientRequestId,
|
|
10085
10181
|
ifMatch,
|
|
10086
10182
|
ifNoneMatch,
|
|
10087
10183
|
prefer
|
|
10088
10184
|
],
|
|
10089
10185
|
mediaType: "json",
|
|
10090
|
-
serializer: serializer$
|
|
10186
|
+
serializer: serializer$2
|
|
10091
10187
|
};
|
|
10092
|
-
const deleteOperationSpec$
|
|
10188
|
+
const deleteOperationSpec$1 = {
|
|
10093
10189
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10094
10190
|
httpMethod: "DELETE",
|
|
10095
10191
|
responses: {
|
|
10096
10192
|
204: {},
|
|
10097
10193
|
404: {},
|
|
10098
10194
|
default: {
|
|
10099
|
-
bodyMapper: SearchError
|
|
10195
|
+
bodyMapper: SearchError
|
|
10100
10196
|
}
|
|
10101
10197
|
},
|
|
10102
|
-
queryParameters: [apiVersion
|
|
10103
|
-
urlParameters: [endpoint
|
|
10198
|
+
queryParameters: [apiVersion],
|
|
10199
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10104
10200
|
headerParameters: [
|
|
10105
|
-
accept
|
|
10106
|
-
xMsClientRequestId
|
|
10201
|
+
accept,
|
|
10202
|
+
xMsClientRequestId,
|
|
10107
10203
|
ifMatch,
|
|
10108
10204
|
ifNoneMatch
|
|
10109
10205
|
],
|
|
10110
|
-
serializer: serializer$
|
|
10206
|
+
serializer: serializer$2
|
|
10111
10207
|
};
|
|
10112
|
-
const getOperationSpec$
|
|
10208
|
+
const getOperationSpec$1 = {
|
|
10113
10209
|
path: "/synonymmaps('{synonymMapName}')",
|
|
10114
10210
|
httpMethod: "GET",
|
|
10115
10211
|
responses: {
|
|
@@ -10117,15 +10213,15 @@ const getOperationSpec$4 = {
|
|
|
10117
10213
|
bodyMapper: SynonymMap
|
|
10118
10214
|
},
|
|
10119
10215
|
default: {
|
|
10120
|
-
bodyMapper: SearchError
|
|
10216
|
+
bodyMapper: SearchError
|
|
10121
10217
|
}
|
|
10122
10218
|
},
|
|
10123
|
-
queryParameters: [apiVersion
|
|
10124
|
-
urlParameters: [endpoint
|
|
10125
|
-
headerParameters: [accept
|
|
10126
|
-
serializer: serializer$
|
|
10219
|
+
queryParameters: [apiVersion],
|
|
10220
|
+
urlParameters: [endpoint, synonymMapName],
|
|
10221
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10222
|
+
serializer: serializer$2
|
|
10127
10223
|
};
|
|
10128
|
-
const listOperationSpec$
|
|
10224
|
+
const listOperationSpec$1 = {
|
|
10129
10225
|
path: "/synonymmaps",
|
|
10130
10226
|
httpMethod: "GET",
|
|
10131
10227
|
responses: {
|
|
@@ -10133,15 +10229,15 @@ const listOperationSpec$3 = {
|
|
|
10133
10229
|
bodyMapper: ListSynonymMapsResult
|
|
10134
10230
|
},
|
|
10135
10231
|
default: {
|
|
10136
|
-
bodyMapper: SearchError
|
|
10232
|
+
bodyMapper: SearchError
|
|
10137
10233
|
}
|
|
10138
10234
|
},
|
|
10139
|
-
queryParameters: [apiVersion
|
|
10140
|
-
urlParameters: [endpoint
|
|
10141
|
-
headerParameters: [accept
|
|
10142
|
-
serializer: serializer$
|
|
10235
|
+
queryParameters: [apiVersion, select],
|
|
10236
|
+
urlParameters: [endpoint],
|
|
10237
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10238
|
+
serializer: serializer$2
|
|
10143
10239
|
};
|
|
10144
|
-
const createOperationSpec$
|
|
10240
|
+
const createOperationSpec$1 = {
|
|
10145
10241
|
path: "/synonymmaps",
|
|
10146
10242
|
httpMethod: "POST",
|
|
10147
10243
|
responses: {
|
|
@@ -10149,19 +10245,19 @@ const createOperationSpec$3 = {
|
|
|
10149
10245
|
bodyMapper: SynonymMap
|
|
10150
10246
|
},
|
|
10151
10247
|
default: {
|
|
10152
|
-
bodyMapper: SearchError
|
|
10248
|
+
bodyMapper: SearchError
|
|
10153
10249
|
}
|
|
10154
10250
|
},
|
|
10155
10251
|
requestBody: synonymMap,
|
|
10156
|
-
queryParameters: [apiVersion
|
|
10157
|
-
urlParameters: [endpoint
|
|
10252
|
+
queryParameters: [apiVersion],
|
|
10253
|
+
urlParameters: [endpoint],
|
|
10158
10254
|
headerParameters: [
|
|
10159
|
-
contentType
|
|
10160
|
-
accept
|
|
10161
|
-
xMsClientRequestId
|
|
10255
|
+
contentType,
|
|
10256
|
+
accept,
|
|
10257
|
+
xMsClientRequestId
|
|
10162
10258
|
],
|
|
10163
10259
|
mediaType: "json",
|
|
10164
|
-
serializer: serializer$
|
|
10260
|
+
serializer: serializer$2
|
|
10165
10261
|
};
|
|
10166
10262
|
|
|
10167
10263
|
/*
|
|
@@ -10186,14 +10282,14 @@ class IndexesImpl {
|
|
|
10186
10282
|
* @param options The options parameters.
|
|
10187
10283
|
*/
|
|
10188
10284
|
create(index, options) {
|
|
10189
|
-
return this.client.sendOperationRequest({ index, options }, createOperationSpec
|
|
10285
|
+
return this.client.sendOperationRequest({ index, options }, createOperationSpec);
|
|
10190
10286
|
}
|
|
10191
10287
|
/**
|
|
10192
10288
|
* Lists all indexes available for a search service.
|
|
10193
10289
|
* @param options The options parameters.
|
|
10194
10290
|
*/
|
|
10195
10291
|
list(options) {
|
|
10196
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec
|
|
10292
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
10197
10293
|
}
|
|
10198
10294
|
/**
|
|
10199
10295
|
* Creates a new search index or updates an index if it already exists.
|
|
@@ -10202,7 +10298,7 @@ class IndexesImpl {
|
|
|
10202
10298
|
* @param options The options parameters.
|
|
10203
10299
|
*/
|
|
10204
10300
|
createOrUpdate(indexName, index, options) {
|
|
10205
|
-
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec
|
|
10301
|
+
return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
|
|
10206
10302
|
}
|
|
10207
10303
|
/**
|
|
10208
10304
|
* Deletes a search index and all the documents it contains. This operation is permanent, with no
|
|
@@ -10212,7 +10308,7 @@ class IndexesImpl {
|
|
|
10212
10308
|
* @param options The options parameters.
|
|
10213
10309
|
*/
|
|
10214
10310
|
delete(indexName, options) {
|
|
10215
|
-
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec
|
|
10311
|
+
return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
|
|
10216
10312
|
}
|
|
10217
10313
|
/**
|
|
10218
10314
|
* Retrieves an index definition.
|
|
@@ -10220,7 +10316,7 @@ class IndexesImpl {
|
|
|
10220
10316
|
* @param options The options parameters.
|
|
10221
10317
|
*/
|
|
10222
10318
|
get(indexName, options) {
|
|
10223
|
-
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec
|
|
10319
|
+
return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
|
|
10224
10320
|
}
|
|
10225
10321
|
/**
|
|
10226
10322
|
* Returns statistics for the given index, including a document count and storage usage.
|
|
@@ -10241,8 +10337,8 @@ class IndexesImpl {
|
|
|
10241
10337
|
}
|
|
10242
10338
|
}
|
|
10243
10339
|
// Operation Specifications
|
|
10244
|
-
const serializer$
|
|
10245
|
-
const createOperationSpec
|
|
10340
|
+
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10341
|
+
const createOperationSpec = {
|
|
10246
10342
|
path: "/indexes",
|
|
10247
10343
|
httpMethod: "POST",
|
|
10248
10344
|
responses: {
|
|
@@ -10250,21 +10346,21 @@ const createOperationSpec$4 = {
|
|
|
10250
10346
|
bodyMapper: SearchIndex
|
|
10251
10347
|
},
|
|
10252
10348
|
default: {
|
|
10253
|
-
bodyMapper: SearchError
|
|
10349
|
+
bodyMapper: SearchError
|
|
10254
10350
|
}
|
|
10255
10351
|
},
|
|
10256
10352
|
requestBody: index,
|
|
10257
|
-
queryParameters: [apiVersion
|
|
10258
|
-
urlParameters: [endpoint
|
|
10353
|
+
queryParameters: [apiVersion],
|
|
10354
|
+
urlParameters: [endpoint],
|
|
10259
10355
|
headerParameters: [
|
|
10260
|
-
contentType
|
|
10261
|
-
accept
|
|
10262
|
-
xMsClientRequestId
|
|
10356
|
+
contentType,
|
|
10357
|
+
accept,
|
|
10358
|
+
xMsClientRequestId
|
|
10263
10359
|
],
|
|
10264
10360
|
mediaType: "json",
|
|
10265
|
-
serializer: serializer$
|
|
10361
|
+
serializer: serializer$1
|
|
10266
10362
|
};
|
|
10267
|
-
const listOperationSpec
|
|
10363
|
+
const listOperationSpec = {
|
|
10268
10364
|
path: "/indexes",
|
|
10269
10365
|
httpMethod: "GET",
|
|
10270
10366
|
responses: {
|
|
@@ -10272,15 +10368,15 @@ const listOperationSpec$4 = {
|
|
|
10272
10368
|
bodyMapper: ListIndexesResult
|
|
10273
10369
|
},
|
|
10274
10370
|
default: {
|
|
10275
|
-
bodyMapper: SearchError
|
|
10371
|
+
bodyMapper: SearchError
|
|
10276
10372
|
}
|
|
10277
10373
|
},
|
|
10278
|
-
queryParameters: [apiVersion
|
|
10279
|
-
urlParameters: [endpoint
|
|
10280
|
-
headerParameters: [accept
|
|
10281
|
-
serializer: serializer$
|
|
10374
|
+
queryParameters: [apiVersion, select],
|
|
10375
|
+
urlParameters: [endpoint],
|
|
10376
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10377
|
+
serializer: serializer$1
|
|
10282
10378
|
};
|
|
10283
|
-
const createOrUpdateOperationSpec
|
|
10379
|
+
const createOrUpdateOperationSpec = {
|
|
10284
10380
|
path: "/indexes('{indexName}')",
|
|
10285
10381
|
httpMethod: "PUT",
|
|
10286
10382
|
responses: {
|
|
@@ -10291,44 +10387,44 @@ const createOrUpdateOperationSpec$4 = {
|
|
|
10291
10387
|
bodyMapper: SearchIndex
|
|
10292
10388
|
},
|
|
10293
10389
|
default: {
|
|
10294
|
-
bodyMapper: SearchError
|
|
10390
|
+
bodyMapper: SearchError
|
|
10295
10391
|
}
|
|
10296
10392
|
},
|
|
10297
10393
|
requestBody: index,
|
|
10298
|
-
queryParameters: [apiVersion
|
|
10299
|
-
urlParameters: [endpoint
|
|
10394
|
+
queryParameters: [apiVersion, allowIndexDowntime],
|
|
10395
|
+
urlParameters: [endpoint, indexName],
|
|
10300
10396
|
headerParameters: [
|
|
10301
|
-
contentType
|
|
10302
|
-
accept
|
|
10303
|
-
xMsClientRequestId
|
|
10397
|
+
contentType,
|
|
10398
|
+
accept,
|
|
10399
|
+
xMsClientRequestId,
|
|
10304
10400
|
ifMatch,
|
|
10305
10401
|
ifNoneMatch,
|
|
10306
10402
|
prefer
|
|
10307
10403
|
],
|
|
10308
10404
|
mediaType: "json",
|
|
10309
|
-
serializer: serializer$
|
|
10405
|
+
serializer: serializer$1
|
|
10310
10406
|
};
|
|
10311
|
-
const deleteOperationSpec
|
|
10407
|
+
const deleteOperationSpec = {
|
|
10312
10408
|
path: "/indexes('{indexName}')",
|
|
10313
10409
|
httpMethod: "DELETE",
|
|
10314
10410
|
responses: {
|
|
10315
10411
|
204: {},
|
|
10316
10412
|
404: {},
|
|
10317
10413
|
default: {
|
|
10318
|
-
bodyMapper: SearchError
|
|
10414
|
+
bodyMapper: SearchError
|
|
10319
10415
|
}
|
|
10320
10416
|
},
|
|
10321
|
-
queryParameters: [apiVersion
|
|
10322
|
-
urlParameters: [endpoint
|
|
10417
|
+
queryParameters: [apiVersion],
|
|
10418
|
+
urlParameters: [endpoint, indexName],
|
|
10323
10419
|
headerParameters: [
|
|
10324
|
-
accept
|
|
10325
|
-
xMsClientRequestId
|
|
10420
|
+
accept,
|
|
10421
|
+
xMsClientRequestId,
|
|
10326
10422
|
ifMatch,
|
|
10327
10423
|
ifNoneMatch
|
|
10328
10424
|
],
|
|
10329
|
-
serializer: serializer$
|
|
10425
|
+
serializer: serializer$1
|
|
10330
10426
|
};
|
|
10331
|
-
const getOperationSpec
|
|
10427
|
+
const getOperationSpec = {
|
|
10332
10428
|
path: "/indexes('{indexName}')",
|
|
10333
10429
|
httpMethod: "GET",
|
|
10334
10430
|
responses: {
|
|
@@ -10336,13 +10432,13 @@ const getOperationSpec$5 = {
|
|
|
10336
10432
|
bodyMapper: SearchIndex
|
|
10337
10433
|
},
|
|
10338
10434
|
default: {
|
|
10339
|
-
bodyMapper: SearchError
|
|
10435
|
+
bodyMapper: SearchError
|
|
10340
10436
|
}
|
|
10341
10437
|
},
|
|
10342
|
-
queryParameters: [apiVersion
|
|
10343
|
-
urlParameters: [endpoint
|
|
10344
|
-
headerParameters: [accept
|
|
10345
|
-
serializer: serializer$
|
|
10438
|
+
queryParameters: [apiVersion],
|
|
10439
|
+
urlParameters: [endpoint, indexName],
|
|
10440
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10441
|
+
serializer: serializer$1
|
|
10346
10442
|
};
|
|
10347
10443
|
const getStatisticsOperationSpec = {
|
|
10348
10444
|
path: "/indexes('{indexName}')/search.stats",
|
|
@@ -10352,13 +10448,13 @@ const getStatisticsOperationSpec = {
|
|
|
10352
10448
|
bodyMapper: GetIndexStatisticsResult
|
|
10353
10449
|
},
|
|
10354
10450
|
default: {
|
|
10355
|
-
bodyMapper: SearchError
|
|
10451
|
+
bodyMapper: SearchError
|
|
10356
10452
|
}
|
|
10357
10453
|
},
|
|
10358
|
-
queryParameters: [apiVersion
|
|
10359
|
-
urlParameters: [endpoint
|
|
10360
|
-
headerParameters: [accept
|
|
10361
|
-
serializer: serializer$
|
|
10454
|
+
queryParameters: [apiVersion],
|
|
10455
|
+
urlParameters: [endpoint, indexName],
|
|
10456
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10457
|
+
serializer: serializer$1
|
|
10362
10458
|
};
|
|
10363
10459
|
const analyzeOperationSpec = {
|
|
10364
10460
|
path: "/indexes('{indexName}')/search.analyze",
|
|
@@ -10368,19 +10464,19 @@ const analyzeOperationSpec = {
|
|
|
10368
10464
|
bodyMapper: AnalyzeResult
|
|
10369
10465
|
},
|
|
10370
10466
|
default: {
|
|
10371
|
-
bodyMapper: SearchError
|
|
10467
|
+
bodyMapper: SearchError
|
|
10372
10468
|
}
|
|
10373
10469
|
},
|
|
10374
10470
|
requestBody: request,
|
|
10375
|
-
queryParameters: [apiVersion
|
|
10376
|
-
urlParameters: [endpoint
|
|
10471
|
+
queryParameters: [apiVersion],
|
|
10472
|
+
urlParameters: [endpoint, indexName],
|
|
10377
10473
|
headerParameters: [
|
|
10378
|
-
contentType
|
|
10379
|
-
accept
|
|
10380
|
-
xMsClientRequestId
|
|
10474
|
+
contentType,
|
|
10475
|
+
accept,
|
|
10476
|
+
xMsClientRequestId
|
|
10381
10477
|
],
|
|
10382
10478
|
mediaType: "json",
|
|
10383
|
-
serializer: serializer$
|
|
10479
|
+
serializer: serializer$1
|
|
10384
10480
|
};
|
|
10385
10481
|
|
|
10386
10482
|
/*
|
|
@@ -10391,7 +10487,7 @@ const analyzeOperationSpec = {
|
|
|
10391
10487
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
10392
10488
|
*/
|
|
10393
10489
|
/** @internal */
|
|
10394
|
-
class SearchServiceClientContext extends
|
|
10490
|
+
class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
|
|
10395
10491
|
/**
|
|
10396
10492
|
* Initializes a new instance of the SearchServiceClientContext class.
|
|
10397
10493
|
* @param endpoint The endpoint URL of the search service.
|
|
@@ -10412,7 +10508,7 @@ class SearchServiceClientContext extends coreClient.ServiceClient {
|
|
|
10412
10508
|
const defaults = {
|
|
10413
10509
|
requestContentType: "application/json; charset=utf-8"
|
|
10414
10510
|
};
|
|
10415
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
10511
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
|
|
10416
10512
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10417
10513
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10418
10514
|
: `${packageDetails}`;
|
|
@@ -10458,7 +10554,7 @@ class SearchServiceClient extends SearchServiceClientContext {
|
|
|
10458
10554
|
}
|
|
10459
10555
|
}
|
|
10460
10556
|
// Operation Specifications
|
|
10461
|
-
const serializer
|
|
10557
|
+
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
10462
10558
|
const getServiceStatisticsOperationSpec = {
|
|
10463
10559
|
path: "/servicestats",
|
|
10464
10560
|
httpMethod: "GET",
|
|
@@ -10467,13 +10563,13 @@ const getServiceStatisticsOperationSpec = {
|
|
|
10467
10563
|
bodyMapper: ServiceStatistics
|
|
10468
10564
|
},
|
|
10469
10565
|
default: {
|
|
10470
|
-
bodyMapper: SearchError
|
|
10566
|
+
bodyMapper: SearchError
|
|
10471
10567
|
}
|
|
10472
10568
|
},
|
|
10473
|
-
queryParameters: [apiVersion
|
|
10474
|
-
urlParameters: [endpoint
|
|
10475
|
-
headerParameters: [accept
|
|
10476
|
-
serializer
|
|
10569
|
+
queryParameters: [apiVersion],
|
|
10570
|
+
urlParameters: [endpoint],
|
|
10571
|
+
headerParameters: [accept, xMsClientRequestId],
|
|
10572
|
+
serializer
|
|
10477
10573
|
};
|
|
10478
10574
|
|
|
10479
10575
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -10540,12 +10636,14 @@ class SearchIndexClient {
|
|
|
10540
10636
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
10541
10637
|
}
|
|
10542
10638
|
this.serviceVersion = options.apiVersion;
|
|
10639
|
+
this.apiVersion = options.apiVersion;
|
|
10543
10640
|
}
|
|
10544
10641
|
if (options.serviceVersion) {
|
|
10545
10642
|
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
10546
10643
|
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
10547
10644
|
}
|
|
10548
10645
|
this.serviceVersion = options.serviceVersion;
|
|
10646
|
+
this.apiVersion = options.serviceVersion;
|
|
10549
10647
|
}
|
|
10550
10648
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
10551
10649
|
if (coreAuth.isTokenCredential(credential)) {
|
|
@@ -10973,7 +11071,7 @@ class SearchIndexClient {
|
|
|
10973
11071
|
* @param options - SearchClient Options
|
|
10974
11072
|
*/
|
|
10975
11073
|
getSearchClient(indexName, options) {
|
|
10976
|
-
return new SearchClient
|
|
11074
|
+
return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
|
|
10977
11075
|
}
|
|
10978
11076
|
}
|
|
10979
11077
|
|
|
@@ -11039,12 +11137,14 @@ class SearchIndexerClient {
|
|
|
11039
11137
|
throw new Error(`Invalid Api Version: ${options.apiVersion}`);
|
|
11040
11138
|
}
|
|
11041
11139
|
this.serviceVersion = options.apiVersion;
|
|
11140
|
+
this.apiVersion = options.apiVersion;
|
|
11042
11141
|
}
|
|
11043
11142
|
if (options.serviceVersion) {
|
|
11044
11143
|
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
11045
11144
|
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
11046
11145
|
}
|
|
11047
11146
|
this.serviceVersion = options.serviceVersion;
|
|
11147
|
+
this.apiVersion = options.serviceVersion;
|
|
11048
11148
|
}
|
|
11049
11149
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
11050
11150
|
if (coreAuth.isTokenCredential(credential)) {
|
|
@@ -11630,11 +11730,13 @@ function odata(strings, ...values) {
|
|
|
11630
11730
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11631
11731
|
*/
|
|
11632
11732
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11633
|
-
var KnownApiVersion20210430Preview;
|
|
11733
|
+
var KnownApiVersion20210430Preview$1;
|
|
11634
11734
|
(function (KnownApiVersion20210430Preview) {
|
|
11635
11735
|
/** Api Version '2021-04-30-Preview' */
|
|
11636
11736
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11637
|
-
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11737
|
+
})(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
|
|
11738
|
+
/** Known values of {@link QueryLanguage} that the service accepts. */
|
|
11739
|
+
exports.KnownQueryLanguage = void 0;
|
|
11638
11740
|
(function (KnownQueryLanguage) {
|
|
11639
11741
|
/** Query language not specified. */
|
|
11640
11742
|
KnownQueryLanguage["None"] = "none";
|
|
@@ -11702,9 +11804,9 @@ var KnownApiVersion20210430Preview;
|
|
|
11702
11804
|
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
11703
11805
|
/** Query language value for Danish (Denmark). */
|
|
11704
11806
|
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
11705
|
-
/** Query language value for Norwegian (
|
|
11807
|
+
/** Query language value for Norwegian (Norway). */
|
|
11706
11808
|
KnownQueryLanguage["NoNo"] = "no-no";
|
|
11707
|
-
/** Query language value for Bulgarian (
|
|
11809
|
+
/** Query language value for Bulgarian (Bulgaria). */
|
|
11708
11810
|
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
11709
11811
|
/** Query language value for Croatian (Croatia). */
|
|
11710
11812
|
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
@@ -11781,12 +11883,16 @@ var KnownApiVersion20210430Preview;
|
|
|
11781
11883
|
/** Query language value for Urdu (Pakistan). */
|
|
11782
11884
|
KnownQueryLanguage["UrPk"] = "ur-pk";
|
|
11783
11885
|
})(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
|
|
11886
|
+
/** Known values of {@link Speller} that the service accepts. */
|
|
11887
|
+
exports.KnownSpeller = void 0;
|
|
11784
11888
|
(function (KnownSpeller) {
|
|
11785
11889
|
/** Speller not enabled. */
|
|
11786
11890
|
KnownSpeller["None"] = "none";
|
|
11787
11891
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11788
11892
|
KnownSpeller["Lexicon"] = "lexicon";
|
|
11789
11893
|
})(exports.KnownSpeller || (exports.KnownSpeller = {}));
|
|
11894
|
+
/** Known values of {@link Answers} that the service accepts. */
|
|
11895
|
+
exports.KnownAnswers = void 0;
|
|
11790
11896
|
(function (KnownAnswers) {
|
|
11791
11897
|
/** Do not return answers for the query. */
|
|
11792
11898
|
KnownAnswers["None"] = "none";
|
|
@@ -11801,18 +11907,24 @@ var KnownCaptions;
|
|
|
11801
11907
|
/** Extracts captions from the matching documents that contain passages relevant to the search query. */
|
|
11802
11908
|
KnownCaptions["Extractive"] = "extractive";
|
|
11803
11909
|
})(KnownCaptions || (KnownCaptions = {}));
|
|
11910
|
+
/** Known values of {@link QuerySpellerType} that the service accepts. */
|
|
11911
|
+
exports.KnownQuerySpellerType = void 0;
|
|
11804
11912
|
(function (KnownQuerySpellerType) {
|
|
11805
11913
|
/** Speller not enabled. */
|
|
11806
11914
|
KnownQuerySpellerType["None"] = "none";
|
|
11807
11915
|
/** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
|
|
11808
11916
|
KnownQuerySpellerType["Lexicon"] = "lexicon";
|
|
11809
11917
|
})(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
|
|
11918
|
+
/** Known values of {@link QueryAnswerType} that the service accepts. */
|
|
11919
|
+
exports.KnownQueryAnswerType = void 0;
|
|
11810
11920
|
(function (KnownQueryAnswerType) {
|
|
11811
11921
|
/** Do not return answers for the query. */
|
|
11812
11922
|
KnownQueryAnswerType["None"] = "none";
|
|
11813
11923
|
/** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
|
|
11814
11924
|
KnownQueryAnswerType["Extractive"] = "extractive";
|
|
11815
11925
|
})(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
|
|
11926
|
+
/** Known values of {@link QueryCaptionType} that the service accepts. */
|
|
11927
|
+
exports.KnownQueryCaptionType = void 0;
|
|
11816
11928
|
(function (KnownQueryCaptionType) {
|
|
11817
11929
|
/** Do not return captions for the query. */
|
|
11818
11930
|
KnownQueryCaptionType["None"] = "none";
|
|
@@ -11828,11 +11940,13 @@ var KnownCaptions;
|
|
|
11828
11940
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11829
11941
|
*/
|
|
11830
11942
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11831
|
-
var KnownApiVersion20210430Preview
|
|
11943
|
+
var KnownApiVersion20210430Preview;
|
|
11832
11944
|
(function (KnownApiVersion20210430Preview) {
|
|
11833
11945
|
/** Api Version '2021-04-30-Preview' */
|
|
11834
11946
|
KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
|
|
11835
|
-
})(KnownApiVersion20210430Preview
|
|
11947
|
+
})(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
|
|
11948
|
+
/** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
|
|
11949
|
+
exports.KnownSearchIndexerDataSourceType = void 0;
|
|
11836
11950
|
(function (KnownSearchIndexerDataSourceType) {
|
|
11837
11951
|
/** Indicates an Azure SQL datasource. */
|
|
11838
11952
|
KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
|
|
@@ -11847,6 +11961,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11847
11961
|
/** Indicates an ADLS Gen2 datasource. */
|
|
11848
11962
|
KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
|
|
11849
11963
|
})(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
|
|
11964
|
+
/** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
|
|
11965
|
+
exports.KnownBlobIndexerParsingMode = void 0;
|
|
11850
11966
|
(function (KnownBlobIndexerParsingMode) {
|
|
11851
11967
|
/** Set to default for normal file processing. */
|
|
11852
11968
|
KnownBlobIndexerParsingMode["Default"] = "default";
|
|
@@ -11861,6 +11977,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11861
11977
|
/** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
|
|
11862
11978
|
KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
|
|
11863
11979
|
})(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
|
|
11980
|
+
/** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
|
|
11981
|
+
exports.KnownBlobIndexerDataToExtract = void 0;
|
|
11864
11982
|
(function (KnownBlobIndexerDataToExtract) {
|
|
11865
11983
|
/** Indexes just the standard blob properties and user-specified metadata. */
|
|
11866
11984
|
KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
|
|
@@ -11869,6 +11987,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11869
11987
|
/** Extracts all metadata and textual content from each blob. */
|
|
11870
11988
|
KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
|
|
11871
11989
|
})(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
|
|
11990
|
+
/** Known values of {@link BlobIndexerImageAction} that the service accepts. */
|
|
11991
|
+
exports.KnownBlobIndexerImageAction = void 0;
|
|
11872
11992
|
(function (KnownBlobIndexerImageAction) {
|
|
11873
11993
|
/** Ignores embedded images or image files in the data set. This is the default. */
|
|
11874
11994
|
KnownBlobIndexerImageAction["None"] = "none";
|
|
@@ -11877,6 +11997,8 @@ var KnownApiVersion20210430Preview$1;
|
|
|
11877
11997
|
/** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images. Non-PDF file types will be treated the same as if "generateNormalizedImages" was set. */
|
|
11878
11998
|
KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
|
|
11879
11999
|
})(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
|
|
12000
|
+
/** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */
|
|
12001
|
+
exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
|
|
11880
12002
|
(function (KnownBlobIndexerPDFTextRotationAlgorithm) {
|
|
11881
12003
|
/** Leverages normal text extraction. This is the default. */
|
|
11882
12004
|
KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
|
|
@@ -11891,10 +12013,14 @@ var KnownIndexerExecutionEnvironment;
|
|
|
11891
12013
|
/** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */
|
|
11892
12014
|
KnownIndexerExecutionEnvironment["Private"] = "private";
|
|
11893
12015
|
})(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
|
|
12016
|
+
/** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
|
|
12017
|
+
exports.KnownIndexerExecutionStatusDetail = void 0;
|
|
11894
12018
|
(function (KnownIndexerExecutionStatusDetail) {
|
|
11895
12019
|
/** Indicates that the reset that occurred was for a call to ResetDocs. */
|
|
11896
12020
|
KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
|
|
11897
12021
|
})(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
|
|
12022
|
+
/** Known values of {@link IndexingMode} that the service accepts. */
|
|
12023
|
+
exports.KnownIndexingMode = void 0;
|
|
11898
12024
|
(function (KnownIndexingMode) {
|
|
11899
12025
|
/** The indexer is indexing all documents in the datasource. */
|
|
11900
12026
|
KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
|
|
@@ -11929,6 +12055,8 @@ var KnownSearchFieldDataType;
|
|
|
11929
12055
|
KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
|
|
11930
12056
|
KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
|
|
11931
12057
|
})(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
|
|
12058
|
+
/** Known values of {@link LexicalAnalyzerName} that the service accepts. */
|
|
12059
|
+
exports.KnownLexicalAnalyzerName = void 0;
|
|
11932
12060
|
(function (KnownLexicalAnalyzerName) {
|
|
11933
12061
|
/** Microsoft analyzer for Arabic. */
|
|
11934
12062
|
KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
|
|
@@ -12117,6 +12245,8 @@ var KnownSearchFieldDataType;
|
|
|
12117
12245
|
/** An analyzer that uses the whitespace tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceAnalyzer.html */
|
|
12118
12246
|
KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
|
|
12119
12247
|
})(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
|
|
12248
|
+
/** Known values of {@link LexicalNormalizerName} that the service accepts. */
|
|
12249
|
+
exports.KnownLexicalNormalizerName = void 0;
|
|
12120
12250
|
(function (KnownLexicalNormalizerName) {
|
|
12121
12251
|
/** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */
|
|
12122
12252
|
KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
|
|
@@ -12129,6 +12259,8 @@ var KnownSearchFieldDataType;
|
|
|
12129
12259
|
/** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
|
|
12130
12260
|
KnownLexicalNormalizerName["Uppercase"] = "uppercase";
|
|
12131
12261
|
})(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
|
|
12262
|
+
/** Known values of {@link TokenFilterName} that the service accepts. */
|
|
12263
|
+
exports.KnownTokenFilterName = void 0;
|
|
12132
12264
|
(function (KnownTokenFilterName) {
|
|
12133
12265
|
/** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */
|
|
12134
12266
|
KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
|
|
@@ -12199,10 +12331,14 @@ var KnownSearchFieldDataType;
|
|
|
12199
12331
|
/** Splits words into subwords and performs optional transformations on subword groups. */
|
|
12200
12332
|
KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
|
|
12201
12333
|
})(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
|
|
12334
|
+
/** Known values of {@link CharFilterName} that the service accepts. */
|
|
12335
|
+
exports.KnownCharFilterName = void 0;
|
|
12202
12336
|
(function (KnownCharFilterName) {
|
|
12203
12337
|
/** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */
|
|
12204
12338
|
KnownCharFilterName["HtmlStrip"] = "html_strip";
|
|
12205
12339
|
})(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
|
|
12340
|
+
/** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
|
|
12341
|
+
exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
|
|
12206
12342
|
(function (KnownKeyPhraseExtractionSkillLanguage) {
|
|
12207
12343
|
/** Danish */
|
|
12208
12344
|
KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
|
|
@@ -12237,6 +12373,8 @@ var KnownSearchFieldDataType;
|
|
|
12237
12373
|
/** Swedish */
|
|
12238
12374
|
KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
|
|
12239
12375
|
})(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
|
|
12376
|
+
/** Known values of {@link OcrSkillLanguage} that the service accepts. */
|
|
12377
|
+
exports.KnownOcrSkillLanguage = void 0;
|
|
12240
12378
|
(function (KnownOcrSkillLanguage) {
|
|
12241
12379
|
/** Chinese-Simplified */
|
|
12242
12380
|
KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
|
|
@@ -12290,7 +12428,11 @@ var KnownSearchFieldDataType;
|
|
|
12290
12428
|
KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
|
|
12291
12429
|
/** Slovak */
|
|
12292
12430
|
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12431
|
+
/** Unknown. If the language is explicitly set to "unk", the language will be auto-detected. */
|
|
12432
|
+
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
12293
12433
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12434
|
+
/** Known values of {@link LineEnding} that the service accepts. */
|
|
12435
|
+
exports.KnownLineEnding = void 0;
|
|
12294
12436
|
(function (KnownLineEnding) {
|
|
12295
12437
|
/** Lines are separated by a single space character. */
|
|
12296
12438
|
KnownLineEnding["Space"] = "space";
|
|
@@ -12301,6 +12443,8 @@ var KnownSearchFieldDataType;
|
|
|
12301
12443
|
/** Lines are separated by a carriage return and a line feed ('\r\n') character. */
|
|
12302
12444
|
KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
|
|
12303
12445
|
})(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
|
|
12446
|
+
/** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
|
|
12447
|
+
exports.KnownImageAnalysisSkillLanguage = void 0;
|
|
12304
12448
|
(function (KnownImageAnalysisSkillLanguage) {
|
|
12305
12449
|
/** English */
|
|
12306
12450
|
KnownImageAnalysisSkillLanguage["En"] = "en";
|
|
@@ -12313,6 +12457,8 @@ var KnownSearchFieldDataType;
|
|
|
12313
12457
|
/** Chinese */
|
|
12314
12458
|
KnownImageAnalysisSkillLanguage["Zh"] = "zh";
|
|
12315
12459
|
})(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
|
|
12460
|
+
/** Known values of {@link VisualFeature} that the service accepts. */
|
|
12461
|
+
exports.KnownVisualFeature = void 0;
|
|
12316
12462
|
(function (KnownVisualFeature) {
|
|
12317
12463
|
/** Visual features recognized as adult persons. */
|
|
12318
12464
|
KnownVisualFeature["Adult"] = "adult";
|
|
@@ -12329,12 +12475,16 @@ var KnownSearchFieldDataType;
|
|
|
12329
12475
|
/** Tags. */
|
|
12330
12476
|
KnownVisualFeature["Tags"] = "tags";
|
|
12331
12477
|
})(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
|
|
12478
|
+
/** Known values of {@link ImageDetail} that the service accepts. */
|
|
12479
|
+
exports.KnownImageDetail = void 0;
|
|
12332
12480
|
(function (KnownImageDetail) {
|
|
12333
12481
|
/** Details recognized as celebrities. */
|
|
12334
12482
|
KnownImageDetail["Celebrities"] = "celebrities";
|
|
12335
12483
|
/** Details recognized as landmarks. */
|
|
12336
12484
|
KnownImageDetail["Landmarks"] = "landmarks";
|
|
12337
12485
|
})(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
|
|
12486
|
+
/** Known values of {@link EntityCategory} that the service accepts. */
|
|
12487
|
+
exports.KnownEntityCategory = void 0;
|
|
12338
12488
|
(function (KnownEntityCategory) {
|
|
12339
12489
|
/** Entities describing a physical location. */
|
|
12340
12490
|
KnownEntityCategory["Location"] = "location";
|
|
@@ -12351,6 +12501,8 @@ var KnownSearchFieldDataType;
|
|
|
12351
12501
|
/** Entities describing an email address. */
|
|
12352
12502
|
KnownEntityCategory["Email"] = "email";
|
|
12353
12503
|
})(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
|
|
12504
|
+
/** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */
|
|
12505
|
+
exports.KnownEntityRecognitionSkillLanguage = void 0;
|
|
12354
12506
|
(function (KnownEntityRecognitionSkillLanguage) {
|
|
12355
12507
|
/** Arabic */
|
|
12356
12508
|
KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
|
|
@@ -12399,6 +12551,8 @@ var KnownSearchFieldDataType;
|
|
|
12399
12551
|
/** Turkish */
|
|
12400
12552
|
KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
|
|
12401
12553
|
})(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
|
|
12554
|
+
/** Known values of {@link SentimentSkillLanguage} that the service accepts. */
|
|
12555
|
+
exports.KnownSentimentSkillLanguage = void 0;
|
|
12402
12556
|
(function (KnownSentimentSkillLanguage) {
|
|
12403
12557
|
/** Danish */
|
|
12404
12558
|
KnownSentimentSkillLanguage["Da"] = "da";
|
|
@@ -12431,12 +12585,16 @@ var KnownSearchFieldDataType;
|
|
|
12431
12585
|
/** Turkish */
|
|
12432
12586
|
KnownSentimentSkillLanguage["Tr"] = "tr";
|
|
12433
12587
|
})(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
|
|
12588
|
+
/** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
|
|
12589
|
+
exports.KnownPIIDetectionSkillMaskingMode = void 0;
|
|
12434
12590
|
(function (KnownPIIDetectionSkillMaskingMode) {
|
|
12435
12591
|
/** No masking occurs and the maskedText output will not be returned. */
|
|
12436
12592
|
KnownPIIDetectionSkillMaskingMode["None"] = "none";
|
|
12437
12593
|
/** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */
|
|
12438
12594
|
KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
|
|
12439
12595
|
})(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
|
|
12596
|
+
/** Known values of {@link SplitSkillLanguage} that the service accepts. */
|
|
12597
|
+
exports.KnownSplitSkillLanguage = void 0;
|
|
12440
12598
|
(function (KnownSplitSkillLanguage) {
|
|
12441
12599
|
/** Danish */
|
|
12442
12600
|
KnownSplitSkillLanguage["Da"] = "da";
|
|
@@ -12457,12 +12615,16 @@ var KnownSearchFieldDataType;
|
|
|
12457
12615
|
/** Portuguese */
|
|
12458
12616
|
KnownSplitSkillLanguage["Pt"] = "pt";
|
|
12459
12617
|
})(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
|
|
12618
|
+
/** Known values of {@link TextSplitMode} that the service accepts. */
|
|
12619
|
+
exports.KnownTextSplitMode = void 0;
|
|
12460
12620
|
(function (KnownTextSplitMode) {
|
|
12461
12621
|
/** Split the text into individual pages. */
|
|
12462
12622
|
KnownTextSplitMode["Pages"] = "pages";
|
|
12463
12623
|
/** Split the text into individual sentences. */
|
|
12464
12624
|
KnownTextSplitMode["Sentences"] = "sentences";
|
|
12465
12625
|
})(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
|
|
12626
|
+
/** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
|
|
12627
|
+
exports.KnownCustomEntityLookupSkillLanguage = void 0;
|
|
12466
12628
|
(function (KnownCustomEntityLookupSkillLanguage) {
|
|
12467
12629
|
/** Danish */
|
|
12468
12630
|
KnownCustomEntityLookupSkillLanguage["Da"] = "da";
|
|
@@ -12483,6 +12645,8 @@ var KnownSearchFieldDataType;
|
|
|
12483
12645
|
/** Portuguese */
|
|
12484
12646
|
KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
|
|
12485
12647
|
})(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
|
|
12648
|
+
/** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */
|
|
12649
|
+
exports.KnownTextTranslationSkillLanguage = void 0;
|
|
12486
12650
|
(function (KnownTextTranslationSkillLanguage) {
|
|
12487
12651
|
/** Afrikaans */
|
|
12488
12652
|
KnownTextTranslationSkillLanguage["Af"] = "af";
|
|
@@ -12659,6 +12823,8 @@ var KnownLexicalTokenizerName;
|
|
|
12659
12823
|
/** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
|
|
12660
12824
|
KnownLexicalTokenizerName["Whitespace"] = "whitespace";
|
|
12661
12825
|
})(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
|
|
12826
|
+
/** Known values of {@link RegexFlags} that the service accepts. */
|
|
12827
|
+
exports.KnownRegexFlags = void 0;
|
|
12662
12828
|
(function (KnownRegexFlags) {
|
|
12663
12829
|
/** Enables canonical equivalence. */
|
|
12664
12830
|
KnownRegexFlags["CanonEq"] = "CANON_EQ";
|
|
@@ -12679,7 +12845,7 @@ var KnownLexicalTokenizerName;
|
|
|
12679
12845
|
})(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
|
|
12680
12846
|
|
|
12681
12847
|
// Copyright (c) Microsoft Corporation.
|
|
12682
|
-
const readFileAsync = util.promisify(
|
|
12848
|
+
const readFileAsync = util.promisify(fs__namespace.readFile);
|
|
12683
12849
|
/**
|
|
12684
12850
|
* Helper method to create a SynonymMap object. This is a NodeJS only method.
|
|
12685
12851
|
*
|
|
@@ -12701,16 +12867,14 @@ async function createSynonymMapFromFile(name, filePath) {
|
|
|
12701
12867
|
|
|
12702
12868
|
Object.defineProperty(exports, 'AzureKeyCredential', {
|
|
12703
12869
|
enumerable: true,
|
|
12704
|
-
get: function () {
|
|
12705
|
-
return coreAuth.AzureKeyCredential;
|
|
12706
|
-
}
|
|
12870
|
+
get: function () { return coreAuth.AzureKeyCredential; }
|
|
12707
12871
|
});
|
|
12708
12872
|
exports.DEFAULT_BATCH_SIZE = DEFAULT_BATCH_SIZE;
|
|
12709
12873
|
exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
|
|
12710
12874
|
exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
|
|
12711
12875
|
exports.GeographyPoint = GeographyPoint;
|
|
12712
12876
|
exports.IndexDocumentsBatch = IndexDocumentsBatch;
|
|
12713
|
-
exports.SearchClient = SearchClient
|
|
12877
|
+
exports.SearchClient = SearchClient;
|
|
12714
12878
|
exports.SearchIndexClient = SearchIndexClient;
|
|
12715
12879
|
exports.SearchIndexerClient = SearchIndexerClient;
|
|
12716
12880
|
exports.SearchIndexingBufferedSender = SearchIndexingBufferedSender;
|