@azure/search-documents 11.3.0-alpha.20220112.1 → 11.3.0-alpha.20220204.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/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 = _interopDefault(require('events'));
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 = coreClient.createSerializer(Mappers, /* isXml */ false);
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 coreClient.ServiceClient {
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.5`;
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.5";
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$1 = "EPSG:4326"; // See https://epsg.io/4326
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$1;
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$1 {
3271
+ class SearchClient {
3226
3272
  /**
3227
3273
  * Creates an instance of SearchClient.
3228
3274
  *
@@ -3292,7 +3338,7 @@ class SearchClient$1 {
3292
3338
  this.serviceVersion = options.serviceVersion;
3293
3339
  this.apiVersion = options.serviceVersion;
3294
3340
  }
3295
- this.client = new SearchClient(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
3341
+ this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
3296
3342
  if (coreAuth.isTokenCredential(credential)) {
3297
3343
  this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
3298
3344
  }
@@ -3756,7 +3802,7 @@ class SearchIndexingBufferedSender {
3756
3802
  /**
3757
3803
  * Event emitter/publisher used in the Buffered Sender
3758
3804
  */
3759
- this.emitter = new EventEmitter();
3805
+ this.emitter = new EventEmitter__default["default"]();
3760
3806
  this.client = client;
3761
3807
  this.documentKeyRetriever = documentKeyRetriever;
3762
3808
  // General Configuration properties
@@ -4241,7 +4287,7 @@ const AzureActiveDirectoryApplicationCredentials = {
4241
4287
  }
4242
4288
  }
4243
4289
  };
4244
- const SearchError$1 = {
4290
+ const SearchError = {
4245
4291
  type: {
4246
4292
  name: "Composite",
4247
4293
  className: "SearchError",
@@ -7300,6 +7346,52 @@ const WebApiSkill = {
7300
7346
  } })
7301
7347
  }
7302
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
+ };
7303
7395
  const DefaultCognitiveServicesAccount = {
7304
7396
  serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
7305
7397
  type: {
@@ -8958,6 +9050,7 @@ let discriminators = {
8958
9050
  "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
8959
9051
  "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
8960
9052
  "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
9053
+ "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
8961
9054
  "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
8962
9055
  "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
8963
9056
  "ScoringFunction.distance": DistanceScoringFunction,
@@ -9012,7 +9105,7 @@ let discriminators = {
9012
9105
  "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity
9013
9106
  };
9014
9107
 
9015
- var Mappers$1 = /*#__PURE__*/Object.freeze({
9108
+ var Mappers = /*#__PURE__*/Object.freeze({
9016
9109
  __proto__: null,
9017
9110
  SearchIndexerDataSource: SearchIndexerDataSource,
9018
9111
  DataSourceCredentials: DataSourceCredentials,
@@ -9022,7 +9115,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
9022
9115
  DataDeletionDetectionPolicy: DataDeletionDetectionPolicy,
9023
9116
  SearchResourceEncryptionKey: SearchResourceEncryptionKey,
9024
9117
  AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
9025
- SearchError: SearchError$1,
9118
+ SearchError: SearchError,
9026
9119
  ListDataSourcesResult: ListDataSourcesResult,
9027
9120
  DocumentKeysOrIds: DocumentKeysOrIds,
9028
9121
  SearchIndexer: SearchIndexer,
@@ -9106,6 +9199,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
9106
9199
  TextTranslationSkill: TextTranslationSkill,
9107
9200
  DocumentExtractionSkill: DocumentExtractionSkill,
9108
9201
  WebApiSkill: WebApiSkill,
9202
+ AzureMachineLearningSkill: AzureMachineLearningSkill,
9109
9203
  DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
9110
9204
  CognitiveServicesAccountKey: CognitiveServicesAccountKey,
9111
9205
  SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
@@ -9172,7 +9266,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
9172
9266
  * Code generated by Microsoft (R) AutoRest Code Generator.
9173
9267
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9174
9268
  */
9175
- const contentType$1 = {
9269
+ const contentType = {
9176
9270
  parameterPath: ["options", "contentType"],
9177
9271
  mapper: {
9178
9272
  defaultValue: "application/json",
@@ -9187,7 +9281,7 @@ const dataSource = {
9187
9281
  parameterPath: "dataSource",
9188
9282
  mapper: SearchIndexerDataSource
9189
9283
  };
9190
- const accept$1 = {
9284
+ const accept = {
9191
9285
  parameterPath: "accept",
9192
9286
  mapper: {
9193
9287
  defaultValue: "application/json",
@@ -9198,7 +9292,7 @@ const accept$1 = {
9198
9292
  }
9199
9293
  }
9200
9294
  };
9201
- const endpoint$1 = {
9295
+ const endpoint = {
9202
9296
  parameterPath: "endpoint",
9203
9297
  mapper: {
9204
9298
  serializedName: "endpoint",
@@ -9219,7 +9313,7 @@ const dataSourceName = {
9219
9313
  }
9220
9314
  }
9221
9315
  };
9222
- const xMsClientRequestId$1 = {
9316
+ const xMsClientRequestId = {
9223
9317
  parameterPath: ["options", "requestOptionsParam", "xMsClientRequestId"],
9224
9318
  mapper: {
9225
9319
  serializedName: "x-ms-client-request-id",
@@ -9257,7 +9351,7 @@ const prefer = {
9257
9351
  }
9258
9352
  }
9259
9353
  };
9260
- const apiVersion$1 = {
9354
+ const apiVersion = {
9261
9355
  parameterPath: "apiVersion",
9262
9356
  mapper: {
9263
9357
  serializedName: "api-version",
@@ -9276,7 +9370,7 @@ const skipIndexerResetRequirementForCache = {
9276
9370
  }
9277
9371
  }
9278
9372
  };
9279
- const select$1 = {
9373
+ const select = {
9280
9374
  parameterPath: ["options", "select"],
9281
9375
  mapper: {
9282
9376
  serializedName: "$select",
@@ -9358,7 +9452,7 @@ const index = {
9358
9452
  parameterPath: "index",
9359
9453
  mapper: SearchIndex
9360
9454
  };
9361
- const indexName$1 = {
9455
+ const indexName = {
9362
9456
  parameterPath: "indexName",
9363
9457
  mapper: {
9364
9458
  serializedName: "indexName",
@@ -9405,7 +9499,7 @@ class DataSourcesImpl {
9405
9499
  * @param options The options parameters.
9406
9500
  */
9407
9501
  createOrUpdate(dataSourceName, dataSource, options) {
9408
- return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
9502
+ return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec$4);
9409
9503
  }
9410
9504
  /**
9411
9505
  * Deletes a datasource.
@@ -9413,7 +9507,7 @@ class DataSourcesImpl {
9413
9507
  * @param options The options parameters.
9414
9508
  */
9415
9509
  delete(dataSourceName, options) {
9416
- return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
9510
+ return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec$4);
9417
9511
  }
9418
9512
  /**
9419
9513
  * Retrieves a datasource definition.
@@ -9421,14 +9515,14 @@ class DataSourcesImpl {
9421
9515
  * @param options The options parameters.
9422
9516
  */
9423
9517
  get(dataSourceName, options) {
9424
- return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$1);
9518
+ return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$4);
9425
9519
  }
9426
9520
  /**
9427
9521
  * Lists all datasources available for a search service.
9428
9522
  * @param options The options parameters.
9429
9523
  */
9430
9524
  list(options) {
9431
- return this.client.sendOperationRequest({ options }, listOperationSpec);
9525
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
9432
9526
  }
9433
9527
  /**
9434
9528
  * Creates a new datasource.
@@ -9436,12 +9530,12 @@ class DataSourcesImpl {
9436
9530
  * @param options The options parameters.
9437
9531
  */
9438
9532
  create(dataSource, options) {
9439
- return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
9533
+ return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec$4);
9440
9534
  }
9441
9535
  }
9442
9536
  // Operation Specifications
9443
- const serializer$1 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9444
- const createOrUpdateOperationSpec = {
9537
+ const serializer$5 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9538
+ const createOrUpdateOperationSpec$4 = {
9445
9539
  path: "/datasources('{dataSourceName}')",
9446
9540
  httpMethod: "PUT",
9447
9541
  responses: {
@@ -9452,47 +9546,47 @@ const createOrUpdateOperationSpec = {
9452
9546
  bodyMapper: SearchIndexerDataSource
9453
9547
  },
9454
9548
  default: {
9455
- bodyMapper: SearchError$1
9549
+ bodyMapper: SearchError
9456
9550
  }
9457
9551
  },
9458
9552
  requestBody: dataSource,
9459
9553
  queryParameters: [
9460
- apiVersion$1,
9554
+ apiVersion,
9461
9555
  skipIndexerResetRequirementForCache
9462
9556
  ],
9463
- urlParameters: [endpoint$1, dataSourceName],
9557
+ urlParameters: [endpoint, dataSourceName],
9464
9558
  headerParameters: [
9465
- contentType$1,
9466
- accept$1,
9467
- xMsClientRequestId$1,
9559
+ contentType,
9560
+ accept,
9561
+ xMsClientRequestId,
9468
9562
  ifMatch,
9469
9563
  ifNoneMatch,
9470
9564
  prefer
9471
9565
  ],
9472
9566
  mediaType: "json",
9473
- serializer: serializer$1
9567
+ serializer: serializer$5
9474
9568
  };
9475
- const deleteOperationSpec = {
9569
+ const deleteOperationSpec$4 = {
9476
9570
  path: "/datasources('{dataSourceName}')",
9477
9571
  httpMethod: "DELETE",
9478
9572
  responses: {
9479
9573
  204: {},
9480
9574
  404: {},
9481
9575
  default: {
9482
- bodyMapper: SearchError$1
9576
+ bodyMapper: SearchError
9483
9577
  }
9484
9578
  },
9485
- queryParameters: [apiVersion$1],
9486
- urlParameters: [endpoint$1, dataSourceName],
9579
+ queryParameters: [apiVersion],
9580
+ urlParameters: [endpoint, dataSourceName],
9487
9581
  headerParameters: [
9488
- accept$1,
9489
- xMsClientRequestId$1,
9582
+ accept,
9583
+ xMsClientRequestId,
9490
9584
  ifMatch,
9491
9585
  ifNoneMatch
9492
9586
  ],
9493
- serializer: serializer$1
9587
+ serializer: serializer$5
9494
9588
  };
9495
- const getOperationSpec$1 = {
9589
+ const getOperationSpec$4 = {
9496
9590
  path: "/datasources('{dataSourceName}')",
9497
9591
  httpMethod: "GET",
9498
9592
  responses: {
@@ -9500,15 +9594,15 @@ const getOperationSpec$1 = {
9500
9594
  bodyMapper: SearchIndexerDataSource
9501
9595
  },
9502
9596
  default: {
9503
- bodyMapper: SearchError$1
9597
+ bodyMapper: SearchError
9504
9598
  }
9505
9599
  },
9506
- queryParameters: [apiVersion$1],
9507
- urlParameters: [endpoint$1, dataSourceName],
9508
- headerParameters: [accept$1, xMsClientRequestId$1],
9509
- serializer: serializer$1
9600
+ queryParameters: [apiVersion],
9601
+ urlParameters: [endpoint, dataSourceName],
9602
+ headerParameters: [accept, xMsClientRequestId],
9603
+ serializer: serializer$5
9510
9604
  };
9511
- const listOperationSpec = {
9605
+ const listOperationSpec$4 = {
9512
9606
  path: "/datasources",
9513
9607
  httpMethod: "GET",
9514
9608
  responses: {
@@ -9516,15 +9610,15 @@ const listOperationSpec = {
9516
9610
  bodyMapper: ListDataSourcesResult
9517
9611
  },
9518
9612
  default: {
9519
- bodyMapper: SearchError$1
9613
+ bodyMapper: SearchError
9520
9614
  }
9521
9615
  },
9522
- queryParameters: [apiVersion$1, select$1],
9523
- urlParameters: [endpoint$1],
9524
- headerParameters: [accept$1, xMsClientRequestId$1],
9525
- serializer: serializer$1
9616
+ queryParameters: [apiVersion, select],
9617
+ urlParameters: [endpoint],
9618
+ headerParameters: [accept, xMsClientRequestId],
9619
+ serializer: serializer$5
9526
9620
  };
9527
- const createOperationSpec = {
9621
+ const createOperationSpec$4 = {
9528
9622
  path: "/datasources",
9529
9623
  httpMethod: "POST",
9530
9624
  responses: {
@@ -9532,19 +9626,19 @@ const createOperationSpec = {
9532
9626
  bodyMapper: SearchIndexerDataSource
9533
9627
  },
9534
9628
  default: {
9535
- bodyMapper: SearchError$1
9629
+ bodyMapper: SearchError
9536
9630
  }
9537
9631
  },
9538
9632
  requestBody: dataSource,
9539
- queryParameters: [apiVersion$1],
9540
- urlParameters: [endpoint$1],
9633
+ queryParameters: [apiVersion],
9634
+ urlParameters: [endpoint],
9541
9635
  headerParameters: [
9542
- contentType$1,
9543
- accept$1,
9544
- xMsClientRequestId$1
9636
+ contentType,
9637
+ accept,
9638
+ xMsClientRequestId
9545
9639
  ],
9546
9640
  mediaType: "json",
9547
- serializer: serializer$1
9641
+ serializer: serializer$5
9548
9642
  };
9549
9643
 
9550
9644
  /*
@@ -9594,7 +9688,7 @@ class IndexersImpl {
9594
9688
  * @param options The options parameters.
9595
9689
  */
9596
9690
  createOrUpdate(indexerName, indexer, options) {
9597
- return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$1);
9691
+ return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$3);
9598
9692
  }
9599
9693
  /**
9600
9694
  * Deletes an indexer.
@@ -9602,7 +9696,7 @@ class IndexersImpl {
9602
9696
  * @param options The options parameters.
9603
9697
  */
9604
9698
  delete(indexerName, options) {
9605
- return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$1);
9699
+ return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$3);
9606
9700
  }
9607
9701
  /**
9608
9702
  * Retrieves an indexer definition.
@@ -9610,14 +9704,14 @@ class IndexersImpl {
9610
9704
  * @param options The options parameters.
9611
9705
  */
9612
9706
  get(indexerName, options) {
9613
- return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$2);
9707
+ return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$3);
9614
9708
  }
9615
9709
  /**
9616
9710
  * Lists all indexers available for a search service.
9617
9711
  * @param options The options parameters.
9618
9712
  */
9619
9713
  list(options) {
9620
- return this.client.sendOperationRequest({ options }, listOperationSpec$1);
9714
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
9621
9715
  }
9622
9716
  /**
9623
9717
  * Creates a new indexer.
@@ -9625,7 +9719,7 @@ class IndexersImpl {
9625
9719
  * @param options The options parameters.
9626
9720
  */
9627
9721
  create(indexer, options) {
9628
- return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$1);
9722
+ return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$3);
9629
9723
  }
9630
9724
  /**
9631
9725
  * Returns the current status and execution history of an indexer.
@@ -9637,20 +9731,20 @@ class IndexersImpl {
9637
9731
  }
9638
9732
  }
9639
9733
  // Operation Specifications
9640
- const serializer$2 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9734
+ const serializer$4 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9641
9735
  const resetOperationSpec = {
9642
9736
  path: "/indexers('{indexerName}')/search.reset",
9643
9737
  httpMethod: "POST",
9644
9738
  responses: {
9645
9739
  204: {},
9646
9740
  default: {
9647
- bodyMapper: SearchError$1
9741
+ bodyMapper: SearchError
9648
9742
  }
9649
9743
  },
9650
- queryParameters: [apiVersion$1],
9651
- urlParameters: [endpoint$1, indexerName],
9652
- headerParameters: [accept$1, xMsClientRequestId$1],
9653
- serializer: serializer$2
9744
+ queryParameters: [apiVersion],
9745
+ urlParameters: [endpoint, indexerName],
9746
+ headerParameters: [accept, xMsClientRequestId],
9747
+ serializer: serializer$4
9654
9748
  };
9655
9749
  const resetDocsOperationSpec = {
9656
9750
  path: "/indexers('{indexerName}')/search.resetdocs",
@@ -9658,19 +9752,19 @@ const resetDocsOperationSpec = {
9658
9752
  responses: {
9659
9753
  204: {},
9660
9754
  default: {
9661
- bodyMapper: SearchError$1
9755
+ bodyMapper: SearchError
9662
9756
  }
9663
9757
  },
9664
9758
  requestBody: keysOrIds,
9665
- queryParameters: [apiVersion$1, overwrite],
9666
- urlParameters: [endpoint$1, indexerName],
9759
+ queryParameters: [apiVersion, overwrite],
9760
+ urlParameters: [endpoint, indexerName],
9667
9761
  headerParameters: [
9668
- contentType$1,
9669
- accept$1,
9670
- xMsClientRequestId$1
9762
+ contentType,
9763
+ accept,
9764
+ xMsClientRequestId
9671
9765
  ],
9672
9766
  mediaType: "json",
9673
- serializer: serializer$2
9767
+ serializer: serializer$4
9674
9768
  };
9675
9769
  const runOperationSpec = {
9676
9770
  path: "/indexers('{indexerName}')/search.run",
@@ -9678,15 +9772,15 @@ const runOperationSpec = {
9678
9772
  responses: {
9679
9773
  202: {},
9680
9774
  default: {
9681
- bodyMapper: SearchError$1
9775
+ bodyMapper: SearchError
9682
9776
  }
9683
9777
  },
9684
- queryParameters: [apiVersion$1],
9685
- urlParameters: [endpoint$1, indexerName],
9686
- headerParameters: [accept$1, xMsClientRequestId$1],
9687
- serializer: serializer$2
9778
+ queryParameters: [apiVersion],
9779
+ urlParameters: [endpoint, indexerName],
9780
+ headerParameters: [accept, xMsClientRequestId],
9781
+ serializer: serializer$4
9688
9782
  };
9689
- const createOrUpdateOperationSpec$1 = {
9783
+ const createOrUpdateOperationSpec$3 = {
9690
9784
  path: "/indexers('{indexerName}')",
9691
9785
  httpMethod: "PUT",
9692
9786
  responses: {
@@ -9697,48 +9791,48 @@ const createOrUpdateOperationSpec$1 = {
9697
9791
  bodyMapper: SearchIndexer
9698
9792
  },
9699
9793
  default: {
9700
- bodyMapper: SearchError$1
9794
+ bodyMapper: SearchError
9701
9795
  }
9702
9796
  },
9703
9797
  requestBody: indexer,
9704
9798
  queryParameters: [
9705
- apiVersion$1,
9799
+ apiVersion,
9706
9800
  skipIndexerResetRequirementForCache,
9707
9801
  disableCacheReprocessingChangeDetection
9708
9802
  ],
9709
- urlParameters: [endpoint$1, indexerName],
9803
+ urlParameters: [endpoint, indexerName],
9710
9804
  headerParameters: [
9711
- contentType$1,
9712
- accept$1,
9713
- xMsClientRequestId$1,
9805
+ contentType,
9806
+ accept,
9807
+ xMsClientRequestId,
9714
9808
  ifMatch,
9715
9809
  ifNoneMatch,
9716
9810
  prefer
9717
9811
  ],
9718
9812
  mediaType: "json",
9719
- serializer: serializer$2
9813
+ serializer: serializer$4
9720
9814
  };
9721
- const deleteOperationSpec$1 = {
9815
+ const deleteOperationSpec$3 = {
9722
9816
  path: "/indexers('{indexerName}')",
9723
9817
  httpMethod: "DELETE",
9724
9818
  responses: {
9725
9819
  204: {},
9726
9820
  404: {},
9727
9821
  default: {
9728
- bodyMapper: SearchError$1
9822
+ bodyMapper: SearchError
9729
9823
  }
9730
9824
  },
9731
- queryParameters: [apiVersion$1],
9732
- urlParameters: [endpoint$1, indexerName],
9825
+ queryParameters: [apiVersion],
9826
+ urlParameters: [endpoint, indexerName],
9733
9827
  headerParameters: [
9734
- accept$1,
9735
- xMsClientRequestId$1,
9828
+ accept,
9829
+ xMsClientRequestId,
9736
9830
  ifMatch,
9737
9831
  ifNoneMatch
9738
9832
  ],
9739
- serializer: serializer$2
9833
+ serializer: serializer$4
9740
9834
  };
9741
- const getOperationSpec$2 = {
9835
+ const getOperationSpec$3 = {
9742
9836
  path: "/indexers('{indexerName}')",
9743
9837
  httpMethod: "GET",
9744
9838
  responses: {
@@ -9746,15 +9840,15 @@ const getOperationSpec$2 = {
9746
9840
  bodyMapper: SearchIndexer
9747
9841
  },
9748
9842
  default: {
9749
- bodyMapper: SearchError$1
9843
+ bodyMapper: SearchError
9750
9844
  }
9751
9845
  },
9752
- queryParameters: [apiVersion$1],
9753
- urlParameters: [endpoint$1, indexerName],
9754
- headerParameters: [accept$1, xMsClientRequestId$1],
9755
- serializer: serializer$2
9846
+ queryParameters: [apiVersion],
9847
+ urlParameters: [endpoint, indexerName],
9848
+ headerParameters: [accept, xMsClientRequestId],
9849
+ serializer: serializer$4
9756
9850
  };
9757
- const listOperationSpec$1 = {
9851
+ const listOperationSpec$3 = {
9758
9852
  path: "/indexers",
9759
9853
  httpMethod: "GET",
9760
9854
  responses: {
@@ -9762,15 +9856,15 @@ const listOperationSpec$1 = {
9762
9856
  bodyMapper: ListIndexersResult
9763
9857
  },
9764
9858
  default: {
9765
- bodyMapper: SearchError$1
9859
+ bodyMapper: SearchError
9766
9860
  }
9767
9861
  },
9768
- queryParameters: [apiVersion$1, select$1],
9769
- urlParameters: [endpoint$1],
9770
- headerParameters: [accept$1, xMsClientRequestId$1],
9771
- serializer: serializer$2
9862
+ queryParameters: [apiVersion, select],
9863
+ urlParameters: [endpoint],
9864
+ headerParameters: [accept, xMsClientRequestId],
9865
+ serializer: serializer$4
9772
9866
  };
9773
- const createOperationSpec$1 = {
9867
+ const createOperationSpec$3 = {
9774
9868
  path: "/indexers",
9775
9869
  httpMethod: "POST",
9776
9870
  responses: {
@@ -9778,19 +9872,19 @@ const createOperationSpec$1 = {
9778
9872
  bodyMapper: SearchIndexer
9779
9873
  },
9780
9874
  default: {
9781
- bodyMapper: SearchError$1
9875
+ bodyMapper: SearchError
9782
9876
  }
9783
9877
  },
9784
9878
  requestBody: indexer,
9785
- queryParameters: [apiVersion$1],
9786
- urlParameters: [endpoint$1],
9879
+ queryParameters: [apiVersion],
9880
+ urlParameters: [endpoint],
9787
9881
  headerParameters: [
9788
- contentType$1,
9789
- accept$1,
9790
- xMsClientRequestId$1
9882
+ contentType,
9883
+ accept,
9884
+ xMsClientRequestId
9791
9885
  ],
9792
9886
  mediaType: "json",
9793
- serializer: serializer$2
9887
+ serializer: serializer$4
9794
9888
  };
9795
9889
  const getStatusOperationSpec = {
9796
9890
  path: "/indexers('{indexerName}')/search.status",
@@ -9800,13 +9894,13 @@ const getStatusOperationSpec = {
9800
9894
  bodyMapper: SearchIndexerStatus
9801
9895
  },
9802
9896
  default: {
9803
- bodyMapper: SearchError$1
9897
+ bodyMapper: SearchError
9804
9898
  }
9805
9899
  },
9806
- queryParameters: [apiVersion$1],
9807
- urlParameters: [endpoint$1, indexerName],
9808
- headerParameters: [accept$1, xMsClientRequestId$1],
9809
- serializer: serializer$2
9900
+ queryParameters: [apiVersion],
9901
+ urlParameters: [endpoint, indexerName],
9902
+ headerParameters: [accept, xMsClientRequestId],
9903
+ serializer: serializer$4
9810
9904
  };
9811
9905
 
9812
9906
  /*
@@ -9848,7 +9942,7 @@ class SkillsetsImpl {
9848
9942
  * @param options The options parameters.
9849
9943
  */
9850
9944
  get(skillsetName, options) {
9851
- return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
9945
+ return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$2);
9852
9946
  }
9853
9947
  /**
9854
9948
  * List all skillsets in a search service.
@@ -9876,7 +9970,7 @@ class SkillsetsImpl {
9876
9970
  }
9877
9971
  }
9878
9972
  // Operation Specifications
9879
- const serializer$3 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9973
+ const serializer$3 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
9880
9974
  const createOrUpdateOperationSpec$2 = {
9881
9975
  path: "/skillsets('{skillsetName}')",
9882
9976
  httpMethod: "PUT",
@@ -9888,20 +9982,20 @@ const createOrUpdateOperationSpec$2 = {
9888
9982
  bodyMapper: SearchIndexerSkillset
9889
9983
  },
9890
9984
  default: {
9891
- bodyMapper: SearchError$1
9985
+ bodyMapper: SearchError
9892
9986
  }
9893
9987
  },
9894
9988
  requestBody: skillset,
9895
9989
  queryParameters: [
9896
- apiVersion$1,
9990
+ apiVersion,
9897
9991
  skipIndexerResetRequirementForCache,
9898
9992
  disableCacheReprocessingChangeDetection
9899
9993
  ],
9900
- urlParameters: [endpoint$1, skillsetName],
9994
+ urlParameters: [endpoint, skillsetName],
9901
9995
  headerParameters: [
9902
- contentType$1,
9903
- accept$1,
9904
- xMsClientRequestId$1,
9996
+ contentType,
9997
+ accept,
9998
+ xMsClientRequestId,
9905
9999
  ifMatch,
9906
10000
  ifNoneMatch,
9907
10001
  prefer
@@ -9916,20 +10010,20 @@ const deleteOperationSpec$2 = {
9916
10010
  204: {},
9917
10011
  404: {},
9918
10012
  default: {
9919
- bodyMapper: SearchError$1
10013
+ bodyMapper: SearchError
9920
10014
  }
9921
10015
  },
9922
- queryParameters: [apiVersion$1],
9923
- urlParameters: [endpoint$1, skillsetName],
10016
+ queryParameters: [apiVersion],
10017
+ urlParameters: [endpoint, skillsetName],
9924
10018
  headerParameters: [
9925
- accept$1,
9926
- xMsClientRequestId$1,
10019
+ accept,
10020
+ xMsClientRequestId,
9927
10021
  ifMatch,
9928
10022
  ifNoneMatch
9929
10023
  ],
9930
10024
  serializer: serializer$3
9931
10025
  };
9932
- const getOperationSpec$3 = {
10026
+ const getOperationSpec$2 = {
9933
10027
  path: "/skillsets('{skillsetName}')",
9934
10028
  httpMethod: "GET",
9935
10029
  responses: {
@@ -9937,12 +10031,12 @@ const getOperationSpec$3 = {
9937
10031
  bodyMapper: SearchIndexerSkillset
9938
10032
  },
9939
10033
  default: {
9940
- bodyMapper: SearchError$1
10034
+ bodyMapper: SearchError
9941
10035
  }
9942
10036
  },
9943
- queryParameters: [apiVersion$1],
9944
- urlParameters: [endpoint$1, skillsetName],
9945
- headerParameters: [accept$1, xMsClientRequestId$1],
10037
+ queryParameters: [apiVersion],
10038
+ urlParameters: [endpoint, skillsetName],
10039
+ headerParameters: [accept, xMsClientRequestId],
9946
10040
  serializer: serializer$3
9947
10041
  };
9948
10042
  const listOperationSpec$2 = {
@@ -9953,12 +10047,12 @@ const listOperationSpec$2 = {
9953
10047
  bodyMapper: ListSkillsetsResult
9954
10048
  },
9955
10049
  default: {
9956
- bodyMapper: SearchError$1
10050
+ bodyMapper: SearchError
9957
10051
  }
9958
10052
  },
9959
- queryParameters: [apiVersion$1, select$1],
9960
- urlParameters: [endpoint$1],
9961
- headerParameters: [accept$1, xMsClientRequestId$1],
10053
+ queryParameters: [apiVersion, select],
10054
+ urlParameters: [endpoint],
10055
+ headerParameters: [accept, xMsClientRequestId],
9962
10056
  serializer: serializer$3
9963
10057
  };
9964
10058
  const createOperationSpec$2 = {
@@ -9969,16 +10063,16 @@ const createOperationSpec$2 = {
9969
10063
  bodyMapper: SearchIndexerSkillset
9970
10064
  },
9971
10065
  default: {
9972
- bodyMapper: SearchError$1
10066
+ bodyMapper: SearchError
9973
10067
  }
9974
10068
  },
9975
10069
  requestBody: skillset,
9976
- queryParameters: [apiVersion$1],
9977
- urlParameters: [endpoint$1],
10070
+ queryParameters: [apiVersion],
10071
+ urlParameters: [endpoint],
9978
10072
  headerParameters: [
9979
- contentType$1,
9980
- accept$1,
9981
- xMsClientRequestId$1
10073
+ contentType,
10074
+ accept,
10075
+ xMsClientRequestId
9982
10076
  ],
9983
10077
  mediaType: "json",
9984
10078
  serializer: serializer$3
@@ -9989,16 +10083,16 @@ const resetSkillsOperationSpec = {
9989
10083
  responses: {
9990
10084
  204: {},
9991
10085
  default: {
9992
- bodyMapper: SearchError$1
10086
+ bodyMapper: SearchError
9993
10087
  }
9994
10088
  },
9995
10089
  requestBody: skillNames,
9996
- queryParameters: [apiVersion$1],
9997
- urlParameters: [endpoint$1, skillsetName],
10090
+ queryParameters: [apiVersion],
10091
+ urlParameters: [endpoint, skillsetName],
9998
10092
  headerParameters: [
9999
- contentType$1,
10000
- accept$1,
10001
- xMsClientRequestId$1
10093
+ contentType,
10094
+ accept,
10095
+ xMsClientRequestId
10002
10096
  ],
10003
10097
  mediaType: "json",
10004
10098
  serializer: serializer$3
@@ -10027,7 +10121,7 @@ class SynonymMapsImpl {
10027
10121
  * @param options The options parameters.
10028
10122
  */
10029
10123
  createOrUpdate(synonymMapName, synonymMap, options) {
10030
- return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$3);
10124
+ return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$1);
10031
10125
  }
10032
10126
  /**
10033
10127
  * Deletes a synonym map.
@@ -10035,7 +10129,7 @@ class SynonymMapsImpl {
10035
10129
  * @param options The options parameters.
10036
10130
  */
10037
10131
  delete(synonymMapName, options) {
10038
- return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$3);
10132
+ return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$1);
10039
10133
  }
10040
10134
  /**
10041
10135
  * Retrieves a synonym map definition.
@@ -10043,14 +10137,14 @@ class SynonymMapsImpl {
10043
10137
  * @param options The options parameters.
10044
10138
  */
10045
10139
  get(synonymMapName, options) {
10046
- return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$4);
10140
+ return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$1);
10047
10141
  }
10048
10142
  /**
10049
10143
  * Lists all synonym maps available for a search service.
10050
10144
  * @param options The options parameters.
10051
10145
  */
10052
10146
  list(options) {
10053
- return this.client.sendOperationRequest({ options }, listOperationSpec$3);
10147
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
10054
10148
  }
10055
10149
  /**
10056
10150
  * Creates a new synonym map.
@@ -10058,12 +10152,12 @@ class SynonymMapsImpl {
10058
10152
  * @param options The options parameters.
10059
10153
  */
10060
10154
  create(synonymMap, options) {
10061
- return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$3);
10155
+ return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$1);
10062
10156
  }
10063
10157
  }
10064
10158
  // Operation Specifications
10065
- const serializer$4 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
10066
- const createOrUpdateOperationSpec$3 = {
10159
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10160
+ const createOrUpdateOperationSpec$1 = {
10067
10161
  path: "/synonymmaps('{synonymMapName}')",
10068
10162
  httpMethod: "PUT",
10069
10163
  responses: {
@@ -10074,44 +10168,44 @@ const createOrUpdateOperationSpec$3 = {
10074
10168
  bodyMapper: SynonymMap
10075
10169
  },
10076
10170
  default: {
10077
- bodyMapper: SearchError$1
10171
+ bodyMapper: SearchError
10078
10172
  }
10079
10173
  },
10080
10174
  requestBody: synonymMap,
10081
- queryParameters: [apiVersion$1],
10082
- urlParameters: [endpoint$1, synonymMapName],
10175
+ queryParameters: [apiVersion],
10176
+ urlParameters: [endpoint, synonymMapName],
10083
10177
  headerParameters: [
10084
- contentType$1,
10085
- accept$1,
10086
- xMsClientRequestId$1,
10178
+ contentType,
10179
+ accept,
10180
+ xMsClientRequestId,
10087
10181
  ifMatch,
10088
10182
  ifNoneMatch,
10089
10183
  prefer
10090
10184
  ],
10091
10185
  mediaType: "json",
10092
- serializer: serializer$4
10186
+ serializer: serializer$2
10093
10187
  };
10094
- const deleteOperationSpec$3 = {
10188
+ const deleteOperationSpec$1 = {
10095
10189
  path: "/synonymmaps('{synonymMapName}')",
10096
10190
  httpMethod: "DELETE",
10097
10191
  responses: {
10098
10192
  204: {},
10099
10193
  404: {},
10100
10194
  default: {
10101
- bodyMapper: SearchError$1
10195
+ bodyMapper: SearchError
10102
10196
  }
10103
10197
  },
10104
- queryParameters: [apiVersion$1],
10105
- urlParameters: [endpoint$1, synonymMapName],
10198
+ queryParameters: [apiVersion],
10199
+ urlParameters: [endpoint, synonymMapName],
10106
10200
  headerParameters: [
10107
- accept$1,
10108
- xMsClientRequestId$1,
10201
+ accept,
10202
+ xMsClientRequestId,
10109
10203
  ifMatch,
10110
10204
  ifNoneMatch
10111
10205
  ],
10112
- serializer: serializer$4
10206
+ serializer: serializer$2
10113
10207
  };
10114
- const getOperationSpec$4 = {
10208
+ const getOperationSpec$1 = {
10115
10209
  path: "/synonymmaps('{synonymMapName}')",
10116
10210
  httpMethod: "GET",
10117
10211
  responses: {
@@ -10119,15 +10213,15 @@ const getOperationSpec$4 = {
10119
10213
  bodyMapper: SynonymMap
10120
10214
  },
10121
10215
  default: {
10122
- bodyMapper: SearchError$1
10216
+ bodyMapper: SearchError
10123
10217
  }
10124
10218
  },
10125
- queryParameters: [apiVersion$1],
10126
- urlParameters: [endpoint$1, synonymMapName],
10127
- headerParameters: [accept$1, xMsClientRequestId$1],
10128
- serializer: serializer$4
10219
+ queryParameters: [apiVersion],
10220
+ urlParameters: [endpoint, synonymMapName],
10221
+ headerParameters: [accept, xMsClientRequestId],
10222
+ serializer: serializer$2
10129
10223
  };
10130
- const listOperationSpec$3 = {
10224
+ const listOperationSpec$1 = {
10131
10225
  path: "/synonymmaps",
10132
10226
  httpMethod: "GET",
10133
10227
  responses: {
@@ -10135,15 +10229,15 @@ const listOperationSpec$3 = {
10135
10229
  bodyMapper: ListSynonymMapsResult
10136
10230
  },
10137
10231
  default: {
10138
- bodyMapper: SearchError$1
10232
+ bodyMapper: SearchError
10139
10233
  }
10140
10234
  },
10141
- queryParameters: [apiVersion$1, select$1],
10142
- urlParameters: [endpoint$1],
10143
- headerParameters: [accept$1, xMsClientRequestId$1],
10144
- serializer: serializer$4
10235
+ queryParameters: [apiVersion, select],
10236
+ urlParameters: [endpoint],
10237
+ headerParameters: [accept, xMsClientRequestId],
10238
+ serializer: serializer$2
10145
10239
  };
10146
- const createOperationSpec$3 = {
10240
+ const createOperationSpec$1 = {
10147
10241
  path: "/synonymmaps",
10148
10242
  httpMethod: "POST",
10149
10243
  responses: {
@@ -10151,19 +10245,19 @@ const createOperationSpec$3 = {
10151
10245
  bodyMapper: SynonymMap
10152
10246
  },
10153
10247
  default: {
10154
- bodyMapper: SearchError$1
10248
+ bodyMapper: SearchError
10155
10249
  }
10156
10250
  },
10157
10251
  requestBody: synonymMap,
10158
- queryParameters: [apiVersion$1],
10159
- urlParameters: [endpoint$1],
10252
+ queryParameters: [apiVersion],
10253
+ urlParameters: [endpoint],
10160
10254
  headerParameters: [
10161
- contentType$1,
10162
- accept$1,
10163
- xMsClientRequestId$1
10255
+ contentType,
10256
+ accept,
10257
+ xMsClientRequestId
10164
10258
  ],
10165
10259
  mediaType: "json",
10166
- serializer: serializer$4
10260
+ serializer: serializer$2
10167
10261
  };
10168
10262
 
10169
10263
  /*
@@ -10188,14 +10282,14 @@ class IndexesImpl {
10188
10282
  * @param options The options parameters.
10189
10283
  */
10190
10284
  create(index, options) {
10191
- return this.client.sendOperationRequest({ index, options }, createOperationSpec$4);
10285
+ return this.client.sendOperationRequest({ index, options }, createOperationSpec);
10192
10286
  }
10193
10287
  /**
10194
10288
  * Lists all indexes available for a search service.
10195
10289
  * @param options The options parameters.
10196
10290
  */
10197
10291
  list(options) {
10198
- return this.client.sendOperationRequest({ options }, listOperationSpec$4);
10292
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
10199
10293
  }
10200
10294
  /**
10201
10295
  * Creates a new search index or updates an index if it already exists.
@@ -10204,7 +10298,7 @@ class IndexesImpl {
10204
10298
  * @param options The options parameters.
10205
10299
  */
10206
10300
  createOrUpdate(indexName, index, options) {
10207
- return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$4);
10301
+ return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec);
10208
10302
  }
10209
10303
  /**
10210
10304
  * Deletes a search index and all the documents it contains. This operation is permanent, with no
@@ -10214,7 +10308,7 @@ class IndexesImpl {
10214
10308
  * @param options The options parameters.
10215
10309
  */
10216
10310
  delete(indexName, options) {
10217
- return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$4);
10311
+ return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec);
10218
10312
  }
10219
10313
  /**
10220
10314
  * Retrieves an index definition.
@@ -10222,7 +10316,7 @@ class IndexesImpl {
10222
10316
  * @param options The options parameters.
10223
10317
  */
10224
10318
  get(indexName, options) {
10225
- return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$5);
10319
+ return this.client.sendOperationRequest({ indexName, options }, getOperationSpec);
10226
10320
  }
10227
10321
  /**
10228
10322
  * Returns statistics for the given index, including a document count and storage usage.
@@ -10243,8 +10337,8 @@ class IndexesImpl {
10243
10337
  }
10244
10338
  }
10245
10339
  // Operation Specifications
10246
- const serializer$5 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
10247
- const createOperationSpec$4 = {
10340
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10341
+ const createOperationSpec = {
10248
10342
  path: "/indexes",
10249
10343
  httpMethod: "POST",
10250
10344
  responses: {
@@ -10252,21 +10346,21 @@ const createOperationSpec$4 = {
10252
10346
  bodyMapper: SearchIndex
10253
10347
  },
10254
10348
  default: {
10255
- bodyMapper: SearchError$1
10349
+ bodyMapper: SearchError
10256
10350
  }
10257
10351
  },
10258
10352
  requestBody: index,
10259
- queryParameters: [apiVersion$1],
10260
- urlParameters: [endpoint$1],
10353
+ queryParameters: [apiVersion],
10354
+ urlParameters: [endpoint],
10261
10355
  headerParameters: [
10262
- contentType$1,
10263
- accept$1,
10264
- xMsClientRequestId$1
10356
+ contentType,
10357
+ accept,
10358
+ xMsClientRequestId
10265
10359
  ],
10266
10360
  mediaType: "json",
10267
- serializer: serializer$5
10361
+ serializer: serializer$1
10268
10362
  };
10269
- const listOperationSpec$4 = {
10363
+ const listOperationSpec = {
10270
10364
  path: "/indexes",
10271
10365
  httpMethod: "GET",
10272
10366
  responses: {
@@ -10274,15 +10368,15 @@ const listOperationSpec$4 = {
10274
10368
  bodyMapper: ListIndexesResult
10275
10369
  },
10276
10370
  default: {
10277
- bodyMapper: SearchError$1
10371
+ bodyMapper: SearchError
10278
10372
  }
10279
10373
  },
10280
- queryParameters: [apiVersion$1, select$1],
10281
- urlParameters: [endpoint$1],
10282
- headerParameters: [accept$1, xMsClientRequestId$1],
10283
- serializer: serializer$5
10374
+ queryParameters: [apiVersion, select],
10375
+ urlParameters: [endpoint],
10376
+ headerParameters: [accept, xMsClientRequestId],
10377
+ serializer: serializer$1
10284
10378
  };
10285
- const createOrUpdateOperationSpec$4 = {
10379
+ const createOrUpdateOperationSpec = {
10286
10380
  path: "/indexes('{indexName}')",
10287
10381
  httpMethod: "PUT",
10288
10382
  responses: {
@@ -10293,44 +10387,44 @@ const createOrUpdateOperationSpec$4 = {
10293
10387
  bodyMapper: SearchIndex
10294
10388
  },
10295
10389
  default: {
10296
- bodyMapper: SearchError$1
10390
+ bodyMapper: SearchError
10297
10391
  }
10298
10392
  },
10299
10393
  requestBody: index,
10300
- queryParameters: [apiVersion$1, allowIndexDowntime],
10301
- urlParameters: [endpoint$1, indexName$1],
10394
+ queryParameters: [apiVersion, allowIndexDowntime],
10395
+ urlParameters: [endpoint, indexName],
10302
10396
  headerParameters: [
10303
- contentType$1,
10304
- accept$1,
10305
- xMsClientRequestId$1,
10397
+ contentType,
10398
+ accept,
10399
+ xMsClientRequestId,
10306
10400
  ifMatch,
10307
10401
  ifNoneMatch,
10308
10402
  prefer
10309
10403
  ],
10310
10404
  mediaType: "json",
10311
- serializer: serializer$5
10405
+ serializer: serializer$1
10312
10406
  };
10313
- const deleteOperationSpec$4 = {
10407
+ const deleteOperationSpec = {
10314
10408
  path: "/indexes('{indexName}')",
10315
10409
  httpMethod: "DELETE",
10316
10410
  responses: {
10317
10411
  204: {},
10318
10412
  404: {},
10319
10413
  default: {
10320
- bodyMapper: SearchError$1
10414
+ bodyMapper: SearchError
10321
10415
  }
10322
10416
  },
10323
- queryParameters: [apiVersion$1],
10324
- urlParameters: [endpoint$1, indexName$1],
10417
+ queryParameters: [apiVersion],
10418
+ urlParameters: [endpoint, indexName],
10325
10419
  headerParameters: [
10326
- accept$1,
10327
- xMsClientRequestId$1,
10420
+ accept,
10421
+ xMsClientRequestId,
10328
10422
  ifMatch,
10329
10423
  ifNoneMatch
10330
10424
  ],
10331
- serializer: serializer$5
10425
+ serializer: serializer$1
10332
10426
  };
10333
- const getOperationSpec$5 = {
10427
+ const getOperationSpec = {
10334
10428
  path: "/indexes('{indexName}')",
10335
10429
  httpMethod: "GET",
10336
10430
  responses: {
@@ -10338,13 +10432,13 @@ const getOperationSpec$5 = {
10338
10432
  bodyMapper: SearchIndex
10339
10433
  },
10340
10434
  default: {
10341
- bodyMapper: SearchError$1
10435
+ bodyMapper: SearchError
10342
10436
  }
10343
10437
  },
10344
- queryParameters: [apiVersion$1],
10345
- urlParameters: [endpoint$1, indexName$1],
10346
- headerParameters: [accept$1, xMsClientRequestId$1],
10347
- serializer: serializer$5
10438
+ queryParameters: [apiVersion],
10439
+ urlParameters: [endpoint, indexName],
10440
+ headerParameters: [accept, xMsClientRequestId],
10441
+ serializer: serializer$1
10348
10442
  };
10349
10443
  const getStatisticsOperationSpec = {
10350
10444
  path: "/indexes('{indexName}')/search.stats",
@@ -10354,13 +10448,13 @@ const getStatisticsOperationSpec = {
10354
10448
  bodyMapper: GetIndexStatisticsResult
10355
10449
  },
10356
10450
  default: {
10357
- bodyMapper: SearchError$1
10451
+ bodyMapper: SearchError
10358
10452
  }
10359
10453
  },
10360
- queryParameters: [apiVersion$1],
10361
- urlParameters: [endpoint$1, indexName$1],
10362
- headerParameters: [accept$1, xMsClientRequestId$1],
10363
- serializer: serializer$5
10454
+ queryParameters: [apiVersion],
10455
+ urlParameters: [endpoint, indexName],
10456
+ headerParameters: [accept, xMsClientRequestId],
10457
+ serializer: serializer$1
10364
10458
  };
10365
10459
  const analyzeOperationSpec = {
10366
10460
  path: "/indexes('{indexName}')/search.analyze",
@@ -10370,19 +10464,19 @@ const analyzeOperationSpec = {
10370
10464
  bodyMapper: AnalyzeResult
10371
10465
  },
10372
10466
  default: {
10373
- bodyMapper: SearchError$1
10467
+ bodyMapper: SearchError
10374
10468
  }
10375
10469
  },
10376
10470
  requestBody: request,
10377
- queryParameters: [apiVersion$1],
10378
- urlParameters: [endpoint$1, indexName$1],
10471
+ queryParameters: [apiVersion],
10472
+ urlParameters: [endpoint, indexName],
10379
10473
  headerParameters: [
10380
- contentType$1,
10381
- accept$1,
10382
- xMsClientRequestId$1
10474
+ contentType,
10475
+ accept,
10476
+ xMsClientRequestId
10383
10477
  ],
10384
10478
  mediaType: "json",
10385
- serializer: serializer$5
10479
+ serializer: serializer$1
10386
10480
  };
10387
10481
 
10388
10482
  /*
@@ -10393,7 +10487,7 @@ const analyzeOperationSpec = {
10393
10487
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10394
10488
  */
10395
10489
  /** @internal */
10396
- class SearchServiceClientContext extends coreClient.ServiceClient {
10490
+ class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
10397
10491
  /**
10398
10492
  * Initializes a new instance of the SearchServiceClientContext class.
10399
10493
  * @param endpoint The endpoint URL of the search service.
@@ -10414,7 +10508,7 @@ class SearchServiceClientContext extends coreClient.ServiceClient {
10414
10508
  const defaults = {
10415
10509
  requestContentType: "application/json; charset=utf-8"
10416
10510
  };
10417
- const packageDetails = `azsdk-js-search-documents/11.3.0-beta.5`;
10511
+ const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
10418
10512
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10419
10513
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10420
10514
  : `${packageDetails}`;
@@ -10460,7 +10554,7 @@ class SearchServiceClient extends SearchServiceClientContext {
10460
10554
  }
10461
10555
  }
10462
10556
  // Operation Specifications
10463
- const serializer$6 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
10557
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
10464
10558
  const getServiceStatisticsOperationSpec = {
10465
10559
  path: "/servicestats",
10466
10560
  httpMethod: "GET",
@@ -10469,13 +10563,13 @@ const getServiceStatisticsOperationSpec = {
10469
10563
  bodyMapper: ServiceStatistics
10470
10564
  },
10471
10565
  default: {
10472
- bodyMapper: SearchError$1
10566
+ bodyMapper: SearchError
10473
10567
  }
10474
10568
  },
10475
- queryParameters: [apiVersion$1],
10476
- urlParameters: [endpoint$1],
10477
- headerParameters: [accept$1, xMsClientRequestId$1],
10478
- serializer: serializer$6
10569
+ queryParameters: [apiVersion],
10570
+ urlParameters: [endpoint],
10571
+ headerParameters: [accept, xMsClientRequestId],
10572
+ serializer
10479
10573
  };
10480
10574
 
10481
10575
  // Copyright (c) Microsoft Corporation.
@@ -10977,7 +11071,7 @@ class SearchIndexClient {
10977
11071
  * @param options - SearchClient Options
10978
11072
  */
10979
11073
  getSearchClient(indexName, options) {
10980
- return new SearchClient$1(this.endpoint, indexName, this.credential, options || this.options);
11074
+ return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
10981
11075
  }
10982
11076
  }
10983
11077
 
@@ -11636,11 +11730,13 @@ function odata(strings, ...values) {
11636
11730
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11637
11731
  */
11638
11732
  /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
11639
- var KnownApiVersion20210430Preview;
11733
+ var KnownApiVersion20210430Preview$1;
11640
11734
  (function (KnownApiVersion20210430Preview) {
11641
11735
  /** Api Version '2021-04-30-Preview' */
11642
11736
  KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
11643
- })(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
11737
+ })(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
11738
+ /** Known values of {@link QueryLanguage} that the service accepts. */
11739
+ exports.KnownQueryLanguage = void 0;
11644
11740
  (function (KnownQueryLanguage) {
11645
11741
  /** Query language not specified. */
11646
11742
  KnownQueryLanguage["None"] = "none";
@@ -11708,9 +11804,9 @@ var KnownApiVersion20210430Preview;
11708
11804
  KnownQueryLanguage["ArJo"] = "ar-jo";
11709
11805
  /** Query language value for Danish (Denmark). */
11710
11806
  KnownQueryLanguage["DaDk"] = "da-dk";
11711
- /** Query language value for Norwegian (Normway). */
11807
+ /** Query language value for Norwegian (Norway). */
11712
11808
  KnownQueryLanguage["NoNo"] = "no-no";
11713
- /** Query language value for Bulgarian (Bulgary). */
11809
+ /** Query language value for Bulgarian (Bulgaria). */
11714
11810
  KnownQueryLanguage["BgBg"] = "bg-bg";
11715
11811
  /** Query language value for Croatian (Croatia). */
11716
11812
  KnownQueryLanguage["HrHr"] = "hr-hr";
@@ -11787,12 +11883,16 @@ var KnownApiVersion20210430Preview;
11787
11883
  /** Query language value for Urdu (Pakistan). */
11788
11884
  KnownQueryLanguage["UrPk"] = "ur-pk";
11789
11885
  })(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
11886
+ /** Known values of {@link Speller} that the service accepts. */
11887
+ exports.KnownSpeller = void 0;
11790
11888
  (function (KnownSpeller) {
11791
11889
  /** Speller not enabled. */
11792
11890
  KnownSpeller["None"] = "none";
11793
11891
  /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
11794
11892
  KnownSpeller["Lexicon"] = "lexicon";
11795
11893
  })(exports.KnownSpeller || (exports.KnownSpeller = {}));
11894
+ /** Known values of {@link Answers} that the service accepts. */
11895
+ exports.KnownAnswers = void 0;
11796
11896
  (function (KnownAnswers) {
11797
11897
  /** Do not return answers for the query. */
11798
11898
  KnownAnswers["None"] = "none";
@@ -11807,18 +11907,24 @@ var KnownCaptions;
11807
11907
  /** Extracts captions from the matching documents that contain passages relevant to the search query. */
11808
11908
  KnownCaptions["Extractive"] = "extractive";
11809
11909
  })(KnownCaptions || (KnownCaptions = {}));
11910
+ /** Known values of {@link QuerySpellerType} that the service accepts. */
11911
+ exports.KnownQuerySpellerType = void 0;
11810
11912
  (function (KnownQuerySpellerType) {
11811
11913
  /** Speller not enabled. */
11812
11914
  KnownQuerySpellerType["None"] = "none";
11813
11915
  /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
11814
11916
  KnownQuerySpellerType["Lexicon"] = "lexicon";
11815
11917
  })(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
11918
+ /** Known values of {@link QueryAnswerType} that the service accepts. */
11919
+ exports.KnownQueryAnswerType = void 0;
11816
11920
  (function (KnownQueryAnswerType) {
11817
11921
  /** Do not return answers for the query. */
11818
11922
  KnownQueryAnswerType["None"] = "none";
11819
11923
  /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
11820
11924
  KnownQueryAnswerType["Extractive"] = "extractive";
11821
11925
  })(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
11926
+ /** Known values of {@link QueryCaptionType} that the service accepts. */
11927
+ exports.KnownQueryCaptionType = void 0;
11822
11928
  (function (KnownQueryCaptionType) {
11823
11929
  /** Do not return captions for the query. */
11824
11930
  KnownQueryCaptionType["None"] = "none";
@@ -11834,11 +11940,13 @@ var KnownCaptions;
11834
11940
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11835
11941
  */
11836
11942
  /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
11837
- var KnownApiVersion20210430Preview$1;
11943
+ var KnownApiVersion20210430Preview;
11838
11944
  (function (KnownApiVersion20210430Preview) {
11839
11945
  /** Api Version '2021-04-30-Preview' */
11840
11946
  KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
11841
- })(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
11947
+ })(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
11948
+ /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */
11949
+ exports.KnownSearchIndexerDataSourceType = void 0;
11842
11950
  (function (KnownSearchIndexerDataSourceType) {
11843
11951
  /** Indicates an Azure SQL datasource. */
11844
11952
  KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
@@ -11853,6 +11961,8 @@ var KnownApiVersion20210430Preview$1;
11853
11961
  /** Indicates an ADLS Gen2 datasource. */
11854
11962
  KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
11855
11963
  })(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
11964
+ /** Known values of {@link BlobIndexerParsingMode} that the service accepts. */
11965
+ exports.KnownBlobIndexerParsingMode = void 0;
11856
11966
  (function (KnownBlobIndexerParsingMode) {
11857
11967
  /** Set to default for normal file processing. */
11858
11968
  KnownBlobIndexerParsingMode["Default"] = "default";
@@ -11867,6 +11977,8 @@ var KnownApiVersion20210430Preview$1;
11867
11977
  /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
11868
11978
  KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
11869
11979
  })(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
11980
+ /** Known values of {@link BlobIndexerDataToExtract} that the service accepts. */
11981
+ exports.KnownBlobIndexerDataToExtract = void 0;
11870
11982
  (function (KnownBlobIndexerDataToExtract) {
11871
11983
  /** Indexes just the standard blob properties and user-specified metadata. */
11872
11984
  KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
@@ -11875,6 +11987,8 @@ var KnownApiVersion20210430Preview$1;
11875
11987
  /** Extracts all metadata and textual content from each blob. */
11876
11988
  KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
11877
11989
  })(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
11990
+ /** Known values of {@link BlobIndexerImageAction} that the service accepts. */
11991
+ exports.KnownBlobIndexerImageAction = void 0;
11878
11992
  (function (KnownBlobIndexerImageAction) {
11879
11993
  /** Ignores embedded images or image files in the data set. This is the default. */
11880
11994
  KnownBlobIndexerImageAction["None"] = "none";
@@ -11883,6 +11997,8 @@ var KnownApiVersion20210430Preview$1;
11883
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. */
11884
11998
  KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
11885
11999
  })(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
12000
+ /** Known values of {@link BlobIndexerPDFTextRotationAlgorithm} that the service accepts. */
12001
+ exports.KnownBlobIndexerPDFTextRotationAlgorithm = void 0;
11886
12002
  (function (KnownBlobIndexerPDFTextRotationAlgorithm) {
11887
12003
  /** Leverages normal text extraction. This is the default. */
11888
12004
  KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
@@ -11897,10 +12013,14 @@ var KnownIndexerExecutionEnvironment;
11897
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. */
11898
12014
  KnownIndexerExecutionEnvironment["Private"] = "private";
11899
12015
  })(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
12016
+ /** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */
12017
+ exports.KnownIndexerExecutionStatusDetail = void 0;
11900
12018
  (function (KnownIndexerExecutionStatusDetail) {
11901
12019
  /** Indicates that the reset that occurred was for a call to ResetDocs. */
11902
12020
  KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
11903
12021
  })(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
12022
+ /** Known values of {@link IndexingMode} that the service accepts. */
12023
+ exports.KnownIndexingMode = void 0;
11904
12024
  (function (KnownIndexingMode) {
11905
12025
  /** The indexer is indexing all documents in the datasource. */
11906
12026
  KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
@@ -11935,6 +12055,8 @@ var KnownSearchFieldDataType;
11935
12055
  KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
11936
12056
  KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
11937
12057
  })(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
12058
+ /** Known values of {@link LexicalAnalyzerName} that the service accepts. */
12059
+ exports.KnownLexicalAnalyzerName = void 0;
11938
12060
  (function (KnownLexicalAnalyzerName) {
11939
12061
  /** Microsoft analyzer for Arabic. */
11940
12062
  KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
@@ -12123,6 +12245,8 @@ var KnownSearchFieldDataType;
12123
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 */
12124
12246
  KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
12125
12247
  })(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
12248
+ /** Known values of {@link LexicalNormalizerName} that the service accepts. */
12249
+ exports.KnownLexicalNormalizerName = void 0;
12126
12250
  (function (KnownLexicalNormalizerName) {
12127
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 */
12128
12252
  KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
@@ -12135,6 +12259,8 @@ var KnownSearchFieldDataType;
12135
12259
  /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
12136
12260
  KnownLexicalNormalizerName["Uppercase"] = "uppercase";
12137
12261
  })(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
12262
+ /** Known values of {@link TokenFilterName} that the service accepts. */
12263
+ exports.KnownTokenFilterName = void 0;
12138
12264
  (function (KnownTokenFilterName) {
12139
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 */
12140
12266
  KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
@@ -12205,10 +12331,14 @@ var KnownSearchFieldDataType;
12205
12331
  /** Splits words into subwords and performs optional transformations on subword groups. */
12206
12332
  KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
12207
12333
  })(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
12334
+ /** Known values of {@link CharFilterName} that the service accepts. */
12335
+ exports.KnownCharFilterName = void 0;
12208
12336
  (function (KnownCharFilterName) {
12209
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 */
12210
12338
  KnownCharFilterName["HtmlStrip"] = "html_strip";
12211
12339
  })(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
12340
+ /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */
12341
+ exports.KnownKeyPhraseExtractionSkillLanguage = void 0;
12212
12342
  (function (KnownKeyPhraseExtractionSkillLanguage) {
12213
12343
  /** Danish */
12214
12344
  KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
@@ -12243,6 +12373,8 @@ var KnownSearchFieldDataType;
12243
12373
  /** Swedish */
12244
12374
  KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
12245
12375
  })(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
12376
+ /** Known values of {@link OcrSkillLanguage} that the service accepts. */
12377
+ exports.KnownOcrSkillLanguage = void 0;
12246
12378
  (function (KnownOcrSkillLanguage) {
12247
12379
  /** Chinese-Simplified */
12248
12380
  KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
@@ -12296,7 +12428,11 @@ var KnownSearchFieldDataType;
12296
12428
  KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
12297
12429
  /** Slovak */
12298
12430
  KnownOcrSkillLanguage["Sk"] = "sk";
12431
+ /** Unknown. If the language is explicitly set to "unk", the language will be auto-detected. */
12432
+ KnownOcrSkillLanguage["Unk"] = "unk";
12299
12433
  })(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
12434
+ /** Known values of {@link LineEnding} that the service accepts. */
12435
+ exports.KnownLineEnding = void 0;
12300
12436
  (function (KnownLineEnding) {
12301
12437
  /** Lines are separated by a single space character. */
12302
12438
  KnownLineEnding["Space"] = "space";
@@ -12307,6 +12443,8 @@ var KnownSearchFieldDataType;
12307
12443
  /** Lines are separated by a carriage return and a line feed ('\r\n') character. */
12308
12444
  KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
12309
12445
  })(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
12446
+ /** Known values of {@link ImageAnalysisSkillLanguage} that the service accepts. */
12447
+ exports.KnownImageAnalysisSkillLanguage = void 0;
12310
12448
  (function (KnownImageAnalysisSkillLanguage) {
12311
12449
  /** English */
12312
12450
  KnownImageAnalysisSkillLanguage["En"] = "en";
@@ -12319,6 +12457,8 @@ var KnownSearchFieldDataType;
12319
12457
  /** Chinese */
12320
12458
  KnownImageAnalysisSkillLanguage["Zh"] = "zh";
12321
12459
  })(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
12460
+ /** Known values of {@link VisualFeature} that the service accepts. */
12461
+ exports.KnownVisualFeature = void 0;
12322
12462
  (function (KnownVisualFeature) {
12323
12463
  /** Visual features recognized as adult persons. */
12324
12464
  KnownVisualFeature["Adult"] = "adult";
@@ -12335,12 +12475,16 @@ var KnownSearchFieldDataType;
12335
12475
  /** Tags. */
12336
12476
  KnownVisualFeature["Tags"] = "tags";
12337
12477
  })(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
12478
+ /** Known values of {@link ImageDetail} that the service accepts. */
12479
+ exports.KnownImageDetail = void 0;
12338
12480
  (function (KnownImageDetail) {
12339
12481
  /** Details recognized as celebrities. */
12340
12482
  KnownImageDetail["Celebrities"] = "celebrities";
12341
12483
  /** Details recognized as landmarks. */
12342
12484
  KnownImageDetail["Landmarks"] = "landmarks";
12343
12485
  })(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
12486
+ /** Known values of {@link EntityCategory} that the service accepts. */
12487
+ exports.KnownEntityCategory = void 0;
12344
12488
  (function (KnownEntityCategory) {
12345
12489
  /** Entities describing a physical location. */
12346
12490
  KnownEntityCategory["Location"] = "location";
@@ -12357,6 +12501,8 @@ var KnownSearchFieldDataType;
12357
12501
  /** Entities describing an email address. */
12358
12502
  KnownEntityCategory["Email"] = "email";
12359
12503
  })(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
12504
+ /** Known values of {@link EntityRecognitionSkillLanguage} that the service accepts. */
12505
+ exports.KnownEntityRecognitionSkillLanguage = void 0;
12360
12506
  (function (KnownEntityRecognitionSkillLanguage) {
12361
12507
  /** Arabic */
12362
12508
  KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
@@ -12405,6 +12551,8 @@ var KnownSearchFieldDataType;
12405
12551
  /** Turkish */
12406
12552
  KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
12407
12553
  })(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
12554
+ /** Known values of {@link SentimentSkillLanguage} that the service accepts. */
12555
+ exports.KnownSentimentSkillLanguage = void 0;
12408
12556
  (function (KnownSentimentSkillLanguage) {
12409
12557
  /** Danish */
12410
12558
  KnownSentimentSkillLanguage["Da"] = "da";
@@ -12437,12 +12585,16 @@ var KnownSearchFieldDataType;
12437
12585
  /** Turkish */
12438
12586
  KnownSentimentSkillLanguage["Tr"] = "tr";
12439
12587
  })(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
12588
+ /** Known values of {@link PIIDetectionSkillMaskingMode} that the service accepts. */
12589
+ exports.KnownPIIDetectionSkillMaskingMode = void 0;
12440
12590
  (function (KnownPIIDetectionSkillMaskingMode) {
12441
12591
  /** No masking occurs and the maskedText output will not be returned. */
12442
12592
  KnownPIIDetectionSkillMaskingMode["None"] = "none";
12443
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. */
12444
12594
  KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
12445
12595
  })(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
12596
+ /** Known values of {@link SplitSkillLanguage} that the service accepts. */
12597
+ exports.KnownSplitSkillLanguage = void 0;
12446
12598
  (function (KnownSplitSkillLanguage) {
12447
12599
  /** Danish */
12448
12600
  KnownSplitSkillLanguage["Da"] = "da";
@@ -12463,12 +12615,16 @@ var KnownSearchFieldDataType;
12463
12615
  /** Portuguese */
12464
12616
  KnownSplitSkillLanguage["Pt"] = "pt";
12465
12617
  })(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
12618
+ /** Known values of {@link TextSplitMode} that the service accepts. */
12619
+ exports.KnownTextSplitMode = void 0;
12466
12620
  (function (KnownTextSplitMode) {
12467
12621
  /** Split the text into individual pages. */
12468
12622
  KnownTextSplitMode["Pages"] = "pages";
12469
12623
  /** Split the text into individual sentences. */
12470
12624
  KnownTextSplitMode["Sentences"] = "sentences";
12471
12625
  })(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
12626
+ /** Known values of {@link CustomEntityLookupSkillLanguage} that the service accepts. */
12627
+ exports.KnownCustomEntityLookupSkillLanguage = void 0;
12472
12628
  (function (KnownCustomEntityLookupSkillLanguage) {
12473
12629
  /** Danish */
12474
12630
  KnownCustomEntityLookupSkillLanguage["Da"] = "da";
@@ -12489,6 +12645,8 @@ var KnownSearchFieldDataType;
12489
12645
  /** Portuguese */
12490
12646
  KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
12491
12647
  })(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
12648
+ /** Known values of {@link TextTranslationSkillLanguage} that the service accepts. */
12649
+ exports.KnownTextTranslationSkillLanguage = void 0;
12492
12650
  (function (KnownTextTranslationSkillLanguage) {
12493
12651
  /** Afrikaans */
12494
12652
  KnownTextTranslationSkillLanguage["Af"] = "af";
@@ -12665,6 +12823,8 @@ var KnownLexicalTokenizerName;
12665
12823
  /** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
12666
12824
  KnownLexicalTokenizerName["Whitespace"] = "whitespace";
12667
12825
  })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
12826
+ /** Known values of {@link RegexFlags} that the service accepts. */
12827
+ exports.KnownRegexFlags = void 0;
12668
12828
  (function (KnownRegexFlags) {
12669
12829
  /** Enables canonical equivalence. */
12670
12830
  KnownRegexFlags["CanonEq"] = "CANON_EQ";
@@ -12685,7 +12845,7 @@ var KnownLexicalTokenizerName;
12685
12845
  })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
12686
12846
 
12687
12847
  // Copyright (c) Microsoft Corporation.
12688
- const readFileAsync = util.promisify(fs.readFile);
12848
+ const readFileAsync = util.promisify(fs__namespace.readFile);
12689
12849
  /**
12690
12850
  * Helper method to create a SynonymMap object. This is a NodeJS only method.
12691
12851
  *
@@ -12707,16 +12867,14 @@ async function createSynonymMapFromFile(name, filePath) {
12707
12867
 
12708
12868
  Object.defineProperty(exports, 'AzureKeyCredential', {
12709
12869
  enumerable: true,
12710
- get: function () {
12711
- return coreAuth.AzureKeyCredential;
12712
- }
12870
+ get: function () { return coreAuth.AzureKeyCredential; }
12713
12871
  });
12714
12872
  exports.DEFAULT_BATCH_SIZE = DEFAULT_BATCH_SIZE;
12715
12873
  exports.DEFAULT_FLUSH_WINDOW = DEFAULT_FLUSH_WINDOW;
12716
12874
  exports.DEFAULT_RETRY_COUNT = DEFAULT_RETRY_COUNT;
12717
12875
  exports.GeographyPoint = GeographyPoint;
12718
12876
  exports.IndexDocumentsBatch = IndexDocumentsBatch;
12719
- exports.SearchClient = SearchClient$1;
12877
+ exports.SearchClient = SearchClient;
12720
12878
  exports.SearchIndexClient = SearchIndexClient;
12721
12879
  exports.SearchIndexerClient = SearchIndexerClient;
12722
12880
  exports.SearchIndexingBufferedSender = SearchIndexingBufferedSender;