@azure/search-documents 11.3.0-beta.3 → 11.3.0-beta.4

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/index.js +1423 -373
  3. package/dist/index.js.map +1 -1
  4. package/dist-esm/src/constants.js +1 -1
  5. package/dist-esm/src/constants.js.map +1 -1
  6. package/dist-esm/src/generated/data/models/index.js +62 -1
  7. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  8. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  9. package/dist-esm/src/generated/data/models/parameters.js +12 -13
  10. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  11. package/dist-esm/src/generated/data/operations/documents.js +15 -49
  12. package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
  13. package/dist-esm/src/generated/data/searchClientContext.js +13 -10
  14. package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
  15. package/dist-esm/src/generated/service/models/index.js +902 -1
  16. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  17. package/dist-esm/src/generated/service/models/mappers.js +169 -2
  18. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  19. package/dist-esm/src/generated/service/models/parameters.js +21 -3
  20. package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
  21. package/dist-esm/src/generated/service/operations/dataSources.js +12 -29
  22. package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
  23. package/dist-esm/src/generated/service/operations/indexers.js +40 -44
  24. package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
  25. package/dist-esm/src/generated/service/operations/indexes.js +10 -39
  26. package/dist-esm/src/generated/service/operations/indexes.js.map +1 -1
  27. package/dist-esm/src/generated/service/operations/skillsets.js +38 -29
  28. package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
  29. package/dist-esm/src/generated/service/operations/synonymMaps.js +8 -28
  30. package/dist-esm/src/generated/service/operations/synonymMaps.js.map +1 -1
  31. package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js.map +1 -1
  32. package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -1
  33. package/dist-esm/src/generated/service/operationsInterfaces/indexes.js.map +1 -1
  34. package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -1
  35. package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js.map +1 -1
  36. package/dist-esm/src/generated/service/searchServiceClient.js +3 -6
  37. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  38. package/dist-esm/src/generated/service/searchServiceClientContext.js +13 -10
  39. package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
  40. package/dist-esm/src/index.js +2 -0
  41. package/dist-esm/src/index.js.map +1 -1
  42. package/dist-esm/src/indexModels.js.map +1 -1
  43. package/dist-esm/src/odataMetadataPolicy.js +6 -14
  44. package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
  45. package/dist-esm/src/searchApiKeyCredentialPolicy.js +7 -20
  46. package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
  47. package/dist-esm/src/searchClient.js +27 -22
  48. package/dist-esm/src/searchClient.js.map +1 -1
  49. package/dist-esm/src/searchIndexClient.js +34 -29
  50. package/dist-esm/src/searchIndexClient.js.map +1 -1
  51. package/dist-esm/src/searchIndexerClient.js +79 -33
  52. package/dist-esm/src/searchIndexerClient.js.map +1 -1
  53. package/dist-esm/src/searchIndexingBufferedSender.js +1 -1
  54. package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
  55. package/dist-esm/src/serviceModels.js.map +1 -1
  56. package/dist-esm/src/serviceUtils.js +8 -11
  57. package/dist-esm/src/serviceUtils.js.map +1 -1
  58. package/package.json +7 -5
  59. package/types/search-documents.d.ts +210 -42
package/dist/index.js CHANGED
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
6
6
 
7
7
  var tslib = require('tslib');
8
- var coreHttp = require('@azure/core-http');
8
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
9
+ var coreClient = require('@azure/core-client');
9
10
  var coreAuth = require('@azure/core-auth');
10
11
  var logger$1 = require('@azure/logger');
11
12
  var coreTracing = require('@azure/core-tracing');
@@ -884,7 +885,7 @@ const facets = {
884
885
  }
885
886
  }
886
887
  },
887
- collectionFormat: coreHttp.QueryCollectionFormat.Multi
888
+ collectionFormat: "Multi"
888
889
  };
889
890
  const filter = {
890
891
  parameterPath: ["options", "searchOptions", "filter"],
@@ -908,7 +909,7 @@ const highlightFields = {
908
909
  }
909
910
  }
910
911
  },
911
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
912
+ collectionFormat: "CSV"
912
913
  };
913
914
  const highlightPostTag = {
914
915
  parameterPath: ["options", "searchOptions", "highlightPostTag"],
@@ -950,7 +951,7 @@ const orderBy = {
950
951
  }
951
952
  }
952
953
  },
953
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
954
+ collectionFormat: "CSV"
954
955
  };
955
956
  const queryType = {
956
957
  parameterPath: ["options", "searchOptions", "queryType"],
@@ -975,7 +976,7 @@ const scoringParameters = {
975
976
  }
976
977
  }
977
978
  },
978
- collectionFormat: coreHttp.QueryCollectionFormat.Multi
979
+ collectionFormat: "Multi"
979
980
  };
980
981
  const scoringProfile = {
981
982
  parameterPath: ["options", "searchOptions", "scoringProfile"],
@@ -999,7 +1000,7 @@ const searchFields = {
999
1000
  }
1000
1001
  }
1001
1002
  },
1002
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1003
+ collectionFormat: "CSV"
1003
1004
  };
1004
1005
  const queryLanguage = {
1005
1006
  parameterPath: ["options", "searchOptions", "queryLanguage"],
@@ -1070,7 +1071,7 @@ const select = {
1070
1071
  }
1071
1072
  }
1072
1073
  },
1073
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1074
+ collectionFormat: "CSV"
1074
1075
  };
1075
1076
  const skip = {
1076
1077
  parameterPath: ["options", "searchOptions", "skip"],
@@ -1112,7 +1113,7 @@ const semanticFields = {
1112
1113
  }
1113
1114
  }
1114
1115
  },
1115
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1116
+ collectionFormat: "CSV"
1116
1117
  };
1117
1118
  const contentType = {
1118
1119
  parameterPath: ["options", "contentType"],
@@ -1152,7 +1153,7 @@ const selectedFields = {
1152
1153
  }
1153
1154
  }
1154
1155
  },
1155
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1156
+ collectionFormat: "CSV"
1156
1157
  };
1157
1158
  const searchText1 = {
1158
1159
  parameterPath: "searchText",
@@ -1232,7 +1233,7 @@ const orderBy1 = {
1232
1233
  }
1233
1234
  }
1234
1235
  },
1235
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1236
+ collectionFormat: "CSV"
1236
1237
  };
1237
1238
  const searchFields1 = {
1238
1239
  parameterPath: ["options", "suggestOptions", "searchFields"],
@@ -1247,7 +1248,7 @@ const searchFields1 = {
1247
1248
  }
1248
1249
  }
1249
1250
  },
1250
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1251
+ collectionFormat: "CSV"
1251
1252
  };
1252
1253
  const select1 = {
1253
1254
  parameterPath: ["options", "suggestOptions", "select"],
@@ -1262,7 +1263,7 @@ const select1 = {
1262
1263
  }
1263
1264
  }
1264
1265
  },
1265
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1266
+ collectionFormat: "CSV"
1266
1267
  };
1267
1268
  const top1 = {
1268
1269
  parameterPath: ["options", "suggestOptions", "top"],
@@ -1349,7 +1350,7 @@ const searchFields2 = {
1349
1350
  }
1350
1351
  }
1351
1352
  },
1352
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1353
+ collectionFormat: "CSV"
1353
1354
  };
1354
1355
  const top2 = {
1355
1356
  parameterPath: ["options", "autocompleteOptions", "top"],
@@ -1372,7 +1373,7 @@ const autocompleteRequest = {
1372
1373
  * Code generated by Microsoft (R) AutoRest Code Generator.
1373
1374
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1374
1375
  */
1375
- /** Class representing a Documents. */
1376
+ /** Class containing Documents operations. */
1376
1377
  class DocumentsImpl {
1377
1378
  /**
1378
1379
  * Initialize a new instance of the class Documents class.
@@ -1386,20 +1387,14 @@ class DocumentsImpl {
1386
1387
  * @param options The options parameters.
1387
1388
  */
1388
1389
  count(options) {
1389
- const operationArguments = {
1390
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1391
- };
1392
- return this.client.sendOperationRequest(operationArguments, countOperationSpec);
1390
+ return this.client.sendOperationRequest({ options }, countOperationSpec);
1393
1391
  }
1394
1392
  /**
1395
1393
  * Searches for documents in the index.
1396
1394
  * @param options The options parameters.
1397
1395
  */
1398
1396
  searchGet(options) {
1399
- const operationArguments = {
1400
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1401
- };
1402
- return this.client.sendOperationRequest(operationArguments, searchGetOperationSpec);
1397
+ return this.client.sendOperationRequest({ options }, searchGetOperationSpec);
1403
1398
  }
1404
1399
  /**
1405
1400
  * Searches for documents in the index.
@@ -1407,11 +1402,7 @@ class DocumentsImpl {
1407
1402
  * @param options The options parameters.
1408
1403
  */
1409
1404
  searchPost(searchRequest, options) {
1410
- const operationArguments = {
1411
- searchRequest,
1412
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1413
- };
1414
- return this.client.sendOperationRequest(operationArguments, searchPostOperationSpec);
1405
+ return this.client.sendOperationRequest({ searchRequest, options }, searchPostOperationSpec);
1415
1406
  }
1416
1407
  /**
1417
1408
  * Retrieves a document from the index.
@@ -1419,11 +1410,7 @@ class DocumentsImpl {
1419
1410
  * @param options The options parameters.
1420
1411
  */
1421
1412
  get(key, options) {
1422
- const operationArguments = {
1423
- key,
1424
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1425
- };
1426
- return this.client.sendOperationRequest(operationArguments, getOperationSpec);
1413
+ return this.client.sendOperationRequest({ key, options }, getOperationSpec);
1427
1414
  }
1428
1415
  /**
1429
1416
  * Suggests documents in the index that match the given partial query text.
@@ -1434,12 +1421,7 @@ class DocumentsImpl {
1434
1421
  * @param options The options parameters.
1435
1422
  */
1436
1423
  suggestGet(searchText, suggesterName, options) {
1437
- const operationArguments = {
1438
- searchText,
1439
- suggesterName,
1440
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1441
- };
1442
- return this.client.sendOperationRequest(operationArguments, suggestGetOperationSpec);
1424
+ return this.client.sendOperationRequest({ searchText, suggesterName, options }, suggestGetOperationSpec);
1443
1425
  }
1444
1426
  /**
1445
1427
  * Suggests documents in the index that match the given partial query text.
@@ -1447,11 +1429,7 @@ class DocumentsImpl {
1447
1429
  * @param options The options parameters.
1448
1430
  */
1449
1431
  suggestPost(suggestRequest, options) {
1450
- const operationArguments = {
1451
- suggestRequest,
1452
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1453
- };
1454
- return this.client.sendOperationRequest(operationArguments, suggestPostOperationSpec);
1432
+ return this.client.sendOperationRequest({ suggestRequest, options }, suggestPostOperationSpec);
1455
1433
  }
1456
1434
  /**
1457
1435
  * Sends a batch of document write actions to the index.
@@ -1459,11 +1437,7 @@ class DocumentsImpl {
1459
1437
  * @param options The options parameters.
1460
1438
  */
1461
1439
  index(batch, options) {
1462
- const operationArguments = {
1463
- batch,
1464
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1465
- };
1466
- return this.client.sendOperationRequest(operationArguments, indexOperationSpec);
1440
+ return this.client.sendOperationRequest({ batch, options }, indexOperationSpec);
1467
1441
  }
1468
1442
  /**
1469
1443
  * Autocompletes incomplete query terms based on input text and matching terms in the index.
@@ -1473,12 +1447,7 @@ class DocumentsImpl {
1473
1447
  * @param options The options parameters.
1474
1448
  */
1475
1449
  autocompleteGet(searchText, suggesterName, options) {
1476
- const operationArguments = {
1477
- searchText,
1478
- suggesterName,
1479
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1480
- };
1481
- return this.client.sendOperationRequest(operationArguments, autocompleteGetOperationSpec);
1450
+ return this.client.sendOperationRequest({ searchText, suggesterName, options }, autocompleteGetOperationSpec);
1482
1451
  }
1483
1452
  /**
1484
1453
  * Autocompletes incomplete query terms based on input text and matching terms in the index.
@@ -1486,15 +1455,11 @@ class DocumentsImpl {
1486
1455
  * @param options The options parameters.
1487
1456
  */
1488
1457
  autocompletePost(autocompleteRequest, options) {
1489
- const operationArguments = {
1490
- autocompleteRequest,
1491
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1492
- };
1493
- return this.client.sendOperationRequest(operationArguments, autocompletePostOperationSpec);
1458
+ return this.client.sendOperationRequest({ autocompleteRequest, options }, autocompletePostOperationSpec);
1494
1459
  }
1495
1460
  }
1496
1461
  // Operation Specifications
1497
- const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
1462
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1498
1463
  const countOperationSpec = {
1499
1464
  path: "/docs/$count",
1500
1465
  httpMethod: "GET",
@@ -1580,7 +1545,9 @@ const getOperationSpec = {
1580
1545
  httpMethod: "GET",
1581
1546
  responses: {
1582
1547
  200: {
1583
- bodyMapper: { type: { name: "any" } }
1548
+ bodyMapper: {
1549
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
1550
+ }
1584
1551
  },
1585
1552
  default: {
1586
1553
  bodyMapper: SearchError
@@ -1725,10 +1692,8 @@ const autocompletePostOperationSpec = {
1725
1692
  * Code generated by Microsoft (R) AutoRest Code Generator.
1726
1693
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1727
1694
  */
1728
- const packageName = "@azure/search-documents";
1729
- const packageVersion = "11.3.0-beta.3";
1730
1695
  /** @internal */
1731
- class SearchClientContext extends coreHttp.ServiceClient {
1696
+ class SearchClientContext extends coreClient.ServiceClient {
1732
1697
  /**
1733
1698
  * Initializes a new instance of the SearchClientContext class.
1734
1699
  * @param endpoint The endpoint URL of the search service.
@@ -1750,12 +1715,17 @@ class SearchClientContext extends coreHttp.ServiceClient {
1750
1715
  if (!options) {
1751
1716
  options = {};
1752
1717
  }
1753
- const defaultUserAgent = `azsdk-js-${packageName.replace("@azure/", "")}/${packageVersion} ${coreHttp.getDefaultUserAgentValue()}`;
1754
- super(undefined, Object.assign(Object.assign({}, options), { userAgent: options.userAgent
1755
- ? `${options.userAgent} ${defaultUserAgent}`
1756
- : `${defaultUserAgent}` }));
1757
- this.requestContentType = "application/json; charset=utf-8";
1758
- this.baseUri = options.endpoint || "{endpoint}/indexes('{indexName}')";
1718
+ const defaults = {
1719
+ requestContentType: "application/json; charset=utf-8"
1720
+ };
1721
+ const packageDetails = `azsdk-js-search-documents/11.3.0-beta.4`;
1722
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1723
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1724
+ : `${packageDetails}`;
1725
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1726
+ userAgentPrefix
1727
+ }, baseUri: options.endpoint || "{endpoint}/indexes('{indexName}')" });
1728
+ super(optionsWithDefaults);
1759
1729
  // Parameter assignments
1760
1730
  this.endpoint = endpoint;
1761
1731
  this.indexName = indexName;
@@ -1786,39 +1756,28 @@ class SearchClient extends SearchClientContext {
1786
1756
  }
1787
1757
 
1788
1758
  // Copyright (c) Microsoft Corporation.
1759
+ // Licensed under the MIT license.
1789
1760
  const API_KEY_HEADER_NAME = "api-key";
1761
+ const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy";
1790
1762
  /**
1791
1763
  * Create an HTTP pipeline policy to authenticate a request
1792
1764
  * using an `AzureKeyCredential` for Azure Cognitive Search
1793
1765
  */
1794
1766
  function createSearchApiKeyCredentialPolicy(credential) {
1795
1767
  return {
1796
- create: (nextPolicy, options) => {
1797
- return new SearchApiKeyCredentialPolicy(nextPolicy, options, credential);
1768
+ name: searchApiKeyCredentialPolicy,
1769
+ async sendRequest(request, next) {
1770
+ if (!request.headers.has(API_KEY_HEADER_NAME)) {
1771
+ request.headers.set(API_KEY_HEADER_NAME, credential.key);
1772
+ }
1773
+ return next(request);
1798
1774
  }
1799
1775
  };
1800
1776
  }
1801
- /**
1802
- * A concrete implementation of an AzureKeyCredential policy
1803
- * using the appropriate header for Azure Cognitive Search
1804
- */
1805
- class SearchApiKeyCredentialPolicy extends coreHttp.BaseRequestPolicy {
1806
- constructor(nextPolicy, options, credential) {
1807
- super(nextPolicy, options);
1808
- this.credential = credential;
1809
- }
1810
- async sendRequest(webResource) {
1811
- if (!webResource) {
1812
- throw new Error("webResource cannot be null or undefined");
1813
- }
1814
- webResource.headers.set(API_KEY_HEADER_NAME, this.credential.key);
1815
- return this._nextPolicy.sendRequest(webResource);
1816
- }
1817
- }
1818
1777
 
1819
1778
  // Copyright (c) Microsoft Corporation.
1820
1779
  // Licensed under the MIT license.
1821
- const SDK_VERSION = "11.3.0-beta.3";
1780
+ const SDK_VERSION = "11.3.0-beta.4";
1822
1781
 
1823
1782
  // Copyright (c) Microsoft Corporation.
1824
1783
  /**
@@ -2038,28 +1997,22 @@ function isValidObject(obj, options = {}) {
2038
1997
  }
2039
1998
 
2040
1999
  // Copyright (c) Microsoft Corporation.
2000
+ // Licensed under the MIT license.
2041
2001
  const AcceptHeaderName = "Accept";
2002
+ const odataMetadataPolicy = "OdataMetadataPolicy";
2042
2003
  /**
2043
2004
  * A policy factory for setting the Accept header to ignore odata metadata
2044
2005
  * @internal
2045
2006
  */
2046
- function odataMetadataPolicy(metadataLevel) {
2007
+ function createOdataMetadataPolicy(metadataLevel) {
2047
2008
  return {
2048
- create: (nextPolicy, options) => {
2049
- return new OdataMetadataPolicy(nextPolicy, options, { metadataLevel });
2009
+ name: odataMetadataPolicy,
2010
+ async sendRequest(request, next) {
2011
+ request.headers.set(AcceptHeaderName, `application/json;odata.metadata=${metadataLevel}`);
2012
+ return next(request);
2050
2013
  }
2051
2014
  };
2052
2015
  }
2053
- class OdataMetadataPolicy extends coreHttp.BaseRequestPolicy {
2054
- constructor(nextPolicy, options, policyOptions) {
2055
- super(nextPolicy, options);
2056
- this.metadataLevel = policyOptions.metadataLevel;
2057
- }
2058
- async sendRequest(webResource) {
2059
- webResource.headers.set(AcceptHeaderName, `application/json;odata.metadata=${this.metadataLevel}`);
2060
- return this._nextPolicy.sendRequest(webResource);
2061
- }
2062
- }
2063
2016
 
2064
2017
  // Copyright (c) Microsoft Corporation.
2065
2018
  // Licensed under the MIT license.
@@ -3013,17 +2966,6 @@ function convertSimilarityToPublic(similarity) {
3013
2966
  return similarity;
3014
2967
  }
3015
2968
  }
3016
- function extractOperationOptions(obj) {
3017
- const { abortSignal, requestOptions, tracingOptions } = obj, restOptions = tslib.__rest(obj, ["abortSignal", "requestOptions", "tracingOptions"]);
3018
- return {
3019
- operationOptions: {
3020
- abortSignal,
3021
- requestOptions,
3022
- tracingOptions
3023
- },
3024
- restOptions
3025
- };
3026
- }
3027
2969
  function convertEncryptionKeyToPublic(encryptionKey) {
3028
2970
  if (!encryptionKey) {
3029
2971
  return encryptionKey;
@@ -3245,6 +3187,14 @@ function getRandomIntegerInclusive(min, max) {
3245
3187
  const offset = Math.floor(Math.random() * (max - min + 1));
3246
3188
  return offset + min;
3247
3189
  }
3190
+ /**
3191
+ * A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.
3192
+ * @param timeInMs - The number of milliseconds to be delayed.
3193
+ * @returns Promise that is resolved after timeInMs
3194
+ */
3195
+ function delay(timeInMs) {
3196
+ return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
3197
+ }
3248
3198
 
3249
3199
  // Copyright (c) Microsoft Corporation.
3250
3200
  /**
@@ -3290,10 +3240,10 @@ class SearchClient$1 {
3290
3240
  else {
3291
3241
  options.userAgentOptions.userAgentPrefix = libInfo;
3292
3242
  }
3293
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
3243
+ const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
3294
3244
  loggingOptions: {
3295
3245
  logger: logger.info,
3296
- allowedHeaderNames: [
3246
+ additionalAllowedHeaderNames: [
3297
3247
  "elapsed-time",
3298
3248
  "Location",
3299
3249
  "OData-MaxVersion",
@@ -3303,13 +3253,6 @@ class SearchClient$1 {
3303
3253
  ]
3304
3254
  }
3305
3255
  });
3306
- const requestPolicyFactory = coreAuth.isTokenCredential(credential)
3307
- ? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
3308
- : createSearchApiKeyCredentialPolicy(credential);
3309
- const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
3310
- if (Array.isArray(pipeline.requestPolicyFactories)) {
3311
- pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("none"));
3312
- }
3313
3256
  let apiVersion = this.apiVersion;
3314
3257
  if (options.apiVersion) {
3315
3258
  if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
@@ -3317,7 +3260,14 @@ class SearchClient$1 {
3317
3260
  }
3318
3261
  apiVersion = options.apiVersion;
3319
3262
  }
3320
- this.client = new SearchClient(this.endpoint, this.indexName, apiVersion, pipeline);
3263
+ this.client = new SearchClient(this.endpoint, this.indexName, apiVersion, internalClientPipelineOptions);
3264
+ if (coreAuth.isTokenCredential(credential)) {
3265
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
3266
+ }
3267
+ else {
3268
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
3269
+ }
3270
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("none"));
3321
3271
  }
3322
3272
  /**
3323
3273
  * Retrieves the number of documents in the index.
@@ -3326,8 +3276,11 @@ class SearchClient$1 {
3326
3276
  async getDocumentsCount(options = {}) {
3327
3277
  const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
3328
3278
  try {
3329
- const result = await this.client.documents.count(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3330
- return Number(result._response.bodyAsText);
3279
+ let documentsCount = 0;
3280
+ await this.client.documents.count(Object.assign(Object.assign({}, updatedOptions), { onResponse: (response) => {
3281
+ documentsCount = Number(response.bodyAsText);
3282
+ } }));
3283
+ return documentsCount;
3331
3284
  }
3332
3285
  catch (e) {
3333
3286
  span.setStatus({
@@ -3359,7 +3312,7 @@ class SearchClient$1 {
3359
3312
  }
3360
3313
  const { span, updatedOptions } = createSpan("SearchClient-autocomplete", operationOptions);
3361
3314
  try {
3362
- const result = await this.client.documents.autocompletePost(fullOptions, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3315
+ const result = await this.client.documents.autocompletePost(fullOptions, updatedOptions);
3363
3316
  return result;
3364
3317
  }
3365
3318
  catch (e) {
@@ -3379,7 +3332,7 @@ class SearchClient$1 {
3379
3332
  const fullOptions = Object.assign(Object.assign({ searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions), nextPageParameters);
3380
3333
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", operationOptions);
3381
3334
  try {
3382
- const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3335
+ const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }), updatedOptions);
3383
3336
  const { results, count, coverage, facets, answers, nextLink } = result;
3384
3337
  const modifiedResults = generatedSearchResultToPublicSearchResult(results);
3385
3338
  const converted = {
@@ -3503,7 +3456,7 @@ class SearchClient$1 {
3503
3456
  }
3504
3457
  const { span, updatedOptions } = createSpan("SearchClient-suggest", operationOptions);
3505
3458
  try {
3506
- const result = await this.client.documents.suggestPost(fullOptions, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3459
+ const result = await this.client.documents.suggestPost(fullOptions, updatedOptions);
3507
3460
  const modifiedResult = generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(result);
3508
3461
  return deserialize(modifiedResult);
3509
3462
  }
@@ -3526,8 +3479,8 @@ class SearchClient$1 {
3526
3479
  async getDocument(key, options = {}) {
3527
3480
  const { span, updatedOptions } = createSpan("SearchClient-getDocument", options);
3528
3481
  try {
3529
- const result = await this.client.documents.get(key, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3530
- return deserialize(result.body);
3482
+ const result = await this.client.documents.get(key, updatedOptions);
3483
+ return deserialize(result);
3531
3484
  }
3532
3485
  catch (e) {
3533
3486
  span.setStatus({
@@ -3555,8 +3508,11 @@ class SearchClient$1 {
3555
3508
  batch, options = {}) {
3556
3509
  const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options);
3557
3510
  try {
3558
- const result = await this.client.documents.index({ actions: serialize(batch.actions) }, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3559
- if (options.throwOnAnyFailure && result._response.status === 207) {
3511
+ let status = 0;
3512
+ const result = await this.client.documents.index({ actions: serialize(batch.actions) }, Object.assign(Object.assign({}, updatedOptions), { onResponse: (response) => {
3513
+ status = response.status;
3514
+ } }));
3515
+ if (options.throwOnAnyFailure && status === 207) {
3560
3516
  throw result;
3561
3517
  }
3562
3518
  return result;
@@ -3997,7 +3953,7 @@ class SearchIndexingBufferedSender {
3997
3953
  // Allow the final value to have some "jitter" (within 50% of the delay size) so
3998
3954
  // that retries across multiple clients don't occur simultaneously.
3999
3955
  const delayWithJitter = clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);
4000
- await coreHttp.delay(delayWithJitter);
3956
+ await delay(delayWithJitter);
4001
3957
  await this.submitDocuments(actionsToSend, options, retryAttempt + 1);
4002
3958
  }
4003
3959
  else {
@@ -4311,6 +4267,36 @@ const ListDataSourcesResult = {
4311
4267
  }
4312
4268
  }
4313
4269
  };
4270
+ const DocumentKeysOrIds = {
4271
+ type: {
4272
+ name: "Composite",
4273
+ className: "DocumentKeysOrIds",
4274
+ modelProperties: {
4275
+ documentKeys: {
4276
+ serializedName: "documentKeys",
4277
+ type: {
4278
+ name: "Sequence",
4279
+ element: {
4280
+ type: {
4281
+ name: "String"
4282
+ }
4283
+ }
4284
+ }
4285
+ },
4286
+ datasourceDocumentIds: {
4287
+ serializedName: "datasourceDocumentIds",
4288
+ type: {
4289
+ name: "Sequence",
4290
+ element: {
4291
+ type: {
4292
+ name: "String"
4293
+ }
4294
+ }
4295
+ }
4296
+ }
4297
+ }
4298
+ }
4299
+ };
4314
4300
  const SearchIndexer = {
4315
4301
  type: {
4316
4302
  name: "Composite",
@@ -4388,6 +4374,7 @@ const SearchIndexer = {
4388
4374
  }
4389
4375
  },
4390
4376
  isDisabled: {
4377
+ defaultValue: false,
4391
4378
  serializedName: "disabled",
4392
4379
  nullable: true,
4393
4380
  type: {
@@ -4451,6 +4438,7 @@ const IndexingParameters = {
4451
4438
  }
4452
4439
  },
4453
4440
  maxFailedItems: {
4441
+ defaultValue: 0,
4454
4442
  serializedName: "maxFailedItems",
4455
4443
  nullable: true,
4456
4444
  type: {
@@ -4458,6 +4446,7 @@ const IndexingParameters = {
4458
4446
  }
4459
4447
  },
4460
4448
  maxFailedItemsPerBatch: {
4449
+ defaultValue: 0,
4461
4450
  serializedName: "maxFailedItemsPerBatch",
4462
4451
  nullable: true,
4463
4452
  type: {
@@ -4488,30 +4477,35 @@ const IndexingParametersConfiguration = {
4488
4477
  }
4489
4478
  },
4490
4479
  excludedFileNameExtensions: {
4480
+ defaultValue: "",
4491
4481
  serializedName: "excludedFileNameExtensions",
4492
4482
  type: {
4493
4483
  name: "String"
4494
4484
  }
4495
4485
  },
4496
4486
  indexedFileNameExtensions: {
4487
+ defaultValue: "",
4497
4488
  serializedName: "indexedFileNameExtensions",
4498
4489
  type: {
4499
4490
  name: "String"
4500
4491
  }
4501
4492
  },
4502
4493
  failOnUnsupportedContentType: {
4494
+ defaultValue: false,
4503
4495
  serializedName: "failOnUnsupportedContentType",
4504
4496
  type: {
4505
4497
  name: "Boolean"
4506
4498
  }
4507
4499
  },
4508
4500
  failOnUnprocessableDocument: {
4501
+ defaultValue: false,
4509
4502
  serializedName: "failOnUnprocessableDocument",
4510
4503
  type: {
4511
4504
  name: "Boolean"
4512
4505
  }
4513
4506
  },
4514
4507
  indexStorageMetadataOnlyForOversizedDocuments: {
4508
+ defaultValue: false,
4515
4509
  serializedName: "indexStorageMetadataOnlyForOversizedDocuments",
4516
4510
  type: {
4517
4511
  name: "Boolean"
@@ -4557,6 +4551,7 @@ const IndexingParametersConfiguration = {
4557
4551
  }
4558
4552
  },
4559
4553
  allowSkillsetToReadFileData: {
4554
+ defaultValue: false,
4560
4555
  serializedName: "allowSkillsetToReadFileData",
4561
4556
  type: {
4562
4557
  name: "Boolean"
@@ -4628,9 +4623,12 @@ const FieldMappingFunction = {
4628
4623
  },
4629
4624
  parameters: {
4630
4625
  serializedName: "parameters",
4626
+ nullable: true,
4631
4627
  type: {
4632
4628
  name: "Dictionary",
4633
- value: { type: { name: "any" } }
4629
+ value: {
4630
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
4631
+ }
4634
4632
  }
4635
4633
  }
4636
4634
  }
@@ -4738,6 +4736,20 @@ const IndexerExecutionResult = {
4738
4736
  allowedValues: ["transientFailure", "success", "inProgress", "reset"]
4739
4737
  }
4740
4738
  },
4739
+ statusDetail: {
4740
+ serializedName: "statusDetail",
4741
+ readOnly: true,
4742
+ type: {
4743
+ name: "String"
4744
+ }
4745
+ },
4746
+ currentState: {
4747
+ serializedName: "currentState",
4748
+ type: {
4749
+ name: "Composite",
4750
+ className: "IndexerCurrentState"
4751
+ }
4752
+ },
4741
4753
  errorMessage: {
4742
4754
  serializedName: "errorMessage",
4743
4755
  readOnly: true,
@@ -4821,6 +4833,73 @@ const IndexerExecutionResult = {
4821
4833
  }
4822
4834
  }
4823
4835
  };
4836
+ const IndexerCurrentState = {
4837
+ type: {
4838
+ name: "Composite",
4839
+ className: "IndexerCurrentState",
4840
+ modelProperties: {
4841
+ mode: {
4842
+ serializedName: "mode",
4843
+ readOnly: true,
4844
+ type: {
4845
+ name: "String"
4846
+ }
4847
+ },
4848
+ allDocsInitialChangeTrackingState: {
4849
+ serializedName: "allDocsInitialChangeTrackingState",
4850
+ readOnly: true,
4851
+ type: {
4852
+ name: "String"
4853
+ }
4854
+ },
4855
+ allDocsFinalChangeTrackingState: {
4856
+ serializedName: "allDocsFinalChangeTrackingState",
4857
+ readOnly: true,
4858
+ type: {
4859
+ name: "String"
4860
+ }
4861
+ },
4862
+ resetDocsInitialChangeTrackingState: {
4863
+ serializedName: "resetDocsInitialChangeTrackingState",
4864
+ readOnly: true,
4865
+ type: {
4866
+ name: "String"
4867
+ }
4868
+ },
4869
+ resetDocsFinalChangeTrackingState: {
4870
+ serializedName: "resetDocsFinalChangeTrackingState",
4871
+ readOnly: true,
4872
+ type: {
4873
+ name: "String"
4874
+ }
4875
+ },
4876
+ resetDocumentKeys: {
4877
+ serializedName: "resetDocumentKeys",
4878
+ readOnly: true,
4879
+ type: {
4880
+ name: "Sequence",
4881
+ element: {
4882
+ type: {
4883
+ name: "String"
4884
+ }
4885
+ }
4886
+ }
4887
+ },
4888
+ resetDatasourceDocumentIds: {
4889
+ serializedName: "resetDatasourceDocumentIds",
4890
+ readOnly: true,
4891
+ type: {
4892
+ name: "Sequence",
4893
+ element: {
4894
+ type: {
4895
+ name: "String"
4896
+ }
4897
+ }
4898
+ }
4899
+ }
4900
+ }
4901
+ }
4902
+ };
4824
4903
  const SearchIndexerError = {
4825
4904
  type: {
4826
4905
  name: "Composite",
@@ -5295,6 +5374,25 @@ const ListSkillsetsResult = {
5295
5374
  }
5296
5375
  }
5297
5376
  };
5377
+ const SkillNames = {
5378
+ type: {
5379
+ name: "Composite",
5380
+ className: "SkillNames",
5381
+ modelProperties: {
5382
+ skillNames: {
5383
+ serializedName: "skillNames",
5384
+ type: {
5385
+ name: "Sequence",
5386
+ element: {
5387
+ type: {
5388
+ name: "String"
5389
+ }
5390
+ }
5391
+ }
5392
+ }
5393
+ }
5394
+ }
5395
+ };
5298
5396
  const SynonymMap = {
5299
5397
  type: {
5300
5398
  name: "Composite",
@@ -6570,6 +6668,7 @@ const OcrSkill = {
6570
6668
  name: "String"
6571
6669
  }
6572
6670
  }, shouldDetectOrientation: {
6671
+ defaultValue: false,
6573
6672
  serializedName: "detectOrientation",
6574
6673
  type: {
6575
6674
  name: "Boolean"
@@ -6737,6 +6836,7 @@ const SentimentSkillV3 = {
6737
6836
  name: "String"
6738
6837
  }
6739
6838
  }, includeOpinionMining: {
6839
+ defaultValue: false,
6740
6840
  serializedName: "includeOpinionMining",
6741
6841
  type: {
6742
6842
  name: "Boolean"
@@ -7015,7 +7115,9 @@ const DocumentExtractionSkill = {
7015
7115
  nullable: true,
7016
7116
  type: {
7017
7117
  name: "Dictionary",
7018
- value: { type: { name: "any" } }
7118
+ value: {
7119
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
7120
+ }
7019
7121
  }
7020
7122
  } })
7021
7123
  }
@@ -7418,6 +7520,7 @@ const MicrosoftLanguageTokenizer = {
7418
7520
  name: "Number"
7419
7521
  }
7420
7522
  }, isSearchTokenizer: {
7523
+ defaultValue: false,
7421
7524
  serializedName: "isSearchTokenizer",
7422
7525
  type: {
7423
7526
  name: "Boolean"
@@ -7491,6 +7594,7 @@ const MicrosoftLanguageStemmingTokenizer = {
7491
7594
  name: "Number"
7492
7595
  }
7493
7596
  }, isSearchTokenizer: {
7597
+ defaultValue: false,
7494
7598
  serializedName: "isSearchTokenizer",
7495
7599
  type: {
7496
7600
  name: "Boolean"
@@ -7624,11 +7728,13 @@ const PathHierarchyTokenizerV2 = {
7624
7728
  name: "Number"
7625
7729
  }
7626
7730
  }, reverseTokenOrder: {
7731
+ defaultValue: false,
7627
7732
  serializedName: "reverse",
7628
7733
  type: {
7629
7734
  name: "Boolean"
7630
7735
  }
7631
7736
  }, numberOfTokensToSkip: {
7737
+ defaultValue: 0,
7632
7738
  serializedName: "skip",
7633
7739
  type: {
7634
7740
  name: "Number"
@@ -7725,6 +7831,7 @@ const AsciiFoldingTokenFilter = {
7725
7831
  uberParent: "TokenFilter",
7726
7832
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
7727
7833
  modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { preserveOriginal: {
7834
+ defaultValue: false,
7728
7835
  serializedName: "preserveOriginal",
7729
7836
  type: {
7730
7837
  name: "Boolean"
@@ -7751,6 +7858,7 @@ const CjkBigramTokenFilter = {
7751
7858
  }
7752
7859
  }
7753
7860
  }, outputUnigrams: {
7861
+ defaultValue: false,
7754
7862
  serializedName: "outputUnigrams",
7755
7863
  type: {
7756
7864
  name: "Boolean"
@@ -7777,11 +7885,13 @@ const CommonGramTokenFilter = {
7777
7885
  }
7778
7886
  }
7779
7887
  }, ignoreCase: {
7888
+ defaultValue: false,
7780
7889
  serializedName: "ignoreCase",
7781
7890
  type: {
7782
7891
  name: "Boolean"
7783
7892
  }
7784
7893
  }, useQueryMode: {
7894
+ defaultValue: false,
7785
7895
  serializedName: "queryMode",
7786
7896
  type: {
7787
7897
  name: "Boolean"
@@ -7835,6 +7945,7 @@ const DictionaryDecompounderTokenFilter = {
7835
7945
  name: "Number"
7836
7946
  }
7837
7947
  }, onlyLongestMatch: {
7948
+ defaultValue: false,
7838
7949
  serializedName: "onlyLongestMatch",
7839
7950
  type: {
7840
7951
  name: "Boolean"
@@ -7943,6 +8054,7 @@ const KeepTokenFilter = {
7943
8054
  }
7944
8055
  }
7945
8056
  }, lowerCaseKeepWords: {
8057
+ defaultValue: false,
7946
8058
  serializedName: "keepWordsCase",
7947
8059
  type: {
7948
8060
  name: "Boolean"
@@ -7969,6 +8081,7 @@ const KeywordMarkerTokenFilter = {
7969
8081
  }
7970
8082
  }
7971
8083
  }, ignoreCase: {
8084
+ defaultValue: false,
7972
8085
  serializedName: "ignoreCase",
7973
8086
  type: {
7974
8087
  name: "Boolean"
@@ -7984,6 +8097,7 @@ const LengthTokenFilter = {
7984
8097
  uberParent: "TokenFilter",
7985
8098
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
7986
8099
  modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minLength: {
8100
+ defaultValue: 0,
7987
8101
  constraints: {
7988
8102
  InclusiveMaximum: 300
7989
8103
  },
@@ -8017,6 +8131,7 @@ const LimitTokenFilter = {
8017
8131
  name: "Number"
8018
8132
  }
8019
8133
  }, consumeAllTokens: {
8134
+ defaultValue: false,
8020
8135
  serializedName: "consumeAllTokens",
8021
8136
  type: {
8022
8137
  name: "Boolean"
@@ -8189,6 +8304,7 @@ const ShingleTokenFilter = {
8189
8304
  name: "Boolean"
8190
8305
  }
8191
8306
  }, outputUnigramsIfNoShingles: {
8307
+ defaultValue: false,
8192
8308
  serializedName: "outputUnigramsIfNoShingles",
8193
8309
  type: {
8194
8310
  name: "Boolean"
@@ -8397,6 +8513,7 @@ const StopwordsTokenFilter = {
8397
8513
  ]
8398
8514
  }
8399
8515
  }, ignoreCase: {
8516
+ defaultValue: false,
8400
8517
  serializedName: "ignoreCase",
8401
8518
  type: {
8402
8519
  name: "Boolean"
@@ -8429,6 +8546,7 @@ const SynonymTokenFilter = {
8429
8546
  }
8430
8547
  }
8431
8548
  }, ignoreCase: {
8549
+ defaultValue: false,
8432
8550
  serializedName: "ignoreCase",
8433
8551
  type: {
8434
8552
  name: "Boolean"
@@ -8469,6 +8587,7 @@ const UniqueTokenFilter = {
8469
8587
  uberParent: "TokenFilter",
8470
8588
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
8471
8589
  modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { onlyOnSamePosition: {
8590
+ defaultValue: false,
8472
8591
  serializedName: "onlyOnSamePosition",
8473
8592
  type: {
8474
8593
  name: "Boolean"
@@ -8496,16 +8615,19 @@ const WordDelimiterTokenFilter = {
8496
8615
  name: "Boolean"
8497
8616
  }
8498
8617
  }, catenateWords: {
8618
+ defaultValue: false,
8499
8619
  serializedName: "catenateWords",
8500
8620
  type: {
8501
8621
  name: "Boolean"
8502
8622
  }
8503
8623
  }, catenateNumbers: {
8624
+ defaultValue: false,
8504
8625
  serializedName: "catenateNumbers",
8505
8626
  type: {
8506
8627
  name: "Boolean"
8507
8628
  }
8508
8629
  }, catenateAll: {
8630
+ defaultValue: false,
8509
8631
  serializedName: "catenateAll",
8510
8632
  type: {
8511
8633
  name: "Boolean"
@@ -8517,6 +8639,7 @@ const WordDelimiterTokenFilter = {
8517
8639
  name: "Boolean"
8518
8640
  }
8519
8641
  }, preserveOriginal: {
8642
+ defaultValue: false,
8520
8643
  serializedName: "preserveOriginal",
8521
8644
  type: {
8522
8645
  name: "Boolean"
@@ -8767,6 +8890,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8767
8890
  AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
8768
8891
  SearchError: SearchError$1,
8769
8892
  ListDataSourcesResult: ListDataSourcesResult,
8893
+ DocumentKeysOrIds: DocumentKeysOrIds,
8770
8894
  SearchIndexer: SearchIndexer,
8771
8895
  IndexingSchedule: IndexingSchedule,
8772
8896
  IndexingParameters: IndexingParameters,
@@ -8777,6 +8901,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8777
8901
  ListIndexersResult: ListIndexersResult,
8778
8902
  SearchIndexerStatus: SearchIndexerStatus,
8779
8903
  IndexerExecutionResult: IndexerExecutionResult,
8904
+ IndexerCurrentState: IndexerCurrentState,
8780
8905
  SearchIndexerError: SearchIndexerError,
8781
8906
  SearchIndexerWarning: SearchIndexerWarning,
8782
8907
  SearchIndexerLimits: SearchIndexerLimits,
@@ -8789,6 +8914,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8789
8914
  SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
8790
8915
  SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
8791
8916
  ListSkillsetsResult: ListSkillsetsResult,
8917
+ SkillNames: SkillNames,
8792
8918
  SynonymMap: SynonymMap,
8793
8919
  ListSynonymMapsResult: ListSynonymMapsResult,
8794
8920
  SearchIndex: SearchIndex,
@@ -9003,8 +9129,8 @@ const apiVersion$1 = {
9003
9129
  }
9004
9130
  }
9005
9131
  };
9006
- const ignoreResetRequirements = {
9007
- parameterPath: ["options", "ignoreResetRequirements"],
9132
+ const skipIndexerResetRequirementForCache = {
9133
+ parameterPath: ["options", "skipIndexerResetRequirementForCache"],
9008
9134
  mapper: {
9009
9135
  serializedName: "ignoreResetRequirements",
9010
9136
  type: {
@@ -9031,6 +9157,20 @@ const indexerName = {
9031
9157
  }
9032
9158
  }
9033
9159
  };
9160
+ const keysOrIds = {
9161
+ parameterPath: ["options", "keysOrIds"],
9162
+ mapper: DocumentKeysOrIds
9163
+ };
9164
+ const overwrite = {
9165
+ parameterPath: ["options", "overwrite"],
9166
+ mapper: {
9167
+ defaultValue: false,
9168
+ serializedName: "overwrite",
9169
+ type: {
9170
+ name: "Boolean"
9171
+ }
9172
+ }
9173
+ };
9034
9174
  const indexer = {
9035
9175
  parameterPath: "indexer",
9036
9176
  mapper: SearchIndexer
@@ -9058,6 +9198,10 @@ const skillsetName = {
9058
9198
  }
9059
9199
  }
9060
9200
  };
9201
+ const skillNames = {
9202
+ parameterPath: "skillNames",
9203
+ mapper: SkillNames
9204
+ };
9061
9205
  const synonymMap = {
9062
9206
  parameterPath: "synonymMap",
9063
9207
  mapper: SynonymMap
@@ -9107,7 +9251,7 @@ const request = {
9107
9251
  * Code generated by Microsoft (R) AutoRest Code Generator.
9108
9252
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9109
9253
  */
9110
- /** Class representing a DataSources. */
9254
+ /** Class containing DataSources operations. */
9111
9255
  class DataSourcesImpl {
9112
9256
  /**
9113
9257
  * Initialize a new instance of the class DataSources class.
@@ -9123,12 +9267,7 @@ class DataSourcesImpl {
9123
9267
  * @param options The options parameters.
9124
9268
  */
9125
9269
  createOrUpdate(dataSourceName, dataSource, options) {
9126
- const operationArguments = {
9127
- dataSourceName,
9128
- dataSource,
9129
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9130
- };
9131
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec);
9270
+ return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
9132
9271
  }
9133
9272
  /**
9134
9273
  * Deletes a datasource.
@@ -9136,11 +9275,7 @@ class DataSourcesImpl {
9136
9275
  * @param options The options parameters.
9137
9276
  */
9138
9277
  delete(dataSourceName, options) {
9139
- const operationArguments = {
9140
- dataSourceName,
9141
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9142
- };
9143
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
9278
+ return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
9144
9279
  }
9145
9280
  /**
9146
9281
  * Retrieves a datasource definition.
@@ -9148,21 +9283,14 @@ class DataSourcesImpl {
9148
9283
  * @param options The options parameters.
9149
9284
  */
9150
9285
  get(dataSourceName, options) {
9151
- const operationArguments = {
9152
- dataSourceName,
9153
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9154
- };
9155
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$1);
9286
+ return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$1);
9156
9287
  }
9157
9288
  /**
9158
9289
  * Lists all datasources available for a search service.
9159
9290
  * @param options The options parameters.
9160
9291
  */
9161
9292
  list(options) {
9162
- const operationArguments = {
9163
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9164
- };
9165
- return this.client.sendOperationRequest(operationArguments, listOperationSpec);
9293
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
9166
9294
  }
9167
9295
  /**
9168
9296
  * Creates a new datasource.
@@ -9170,15 +9298,11 @@ class DataSourcesImpl {
9170
9298
  * @param options The options parameters.
9171
9299
  */
9172
9300
  create(dataSource, options) {
9173
- const operationArguments = {
9174
- dataSource,
9175
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9176
- };
9177
- return this.client.sendOperationRequest(operationArguments, createOperationSpec);
9301
+ return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
9178
9302
  }
9179
9303
  }
9180
9304
  // Operation Specifications
9181
- const serializer$1 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9305
+ const serializer$1 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9182
9306
  const createOrUpdateOperationSpec = {
9183
9307
  path: "/datasources('{dataSourceName}')",
9184
9308
  httpMethod: "PUT",
@@ -9194,7 +9318,10 @@ const createOrUpdateOperationSpec = {
9194
9318
  }
9195
9319
  },
9196
9320
  requestBody: dataSource,
9197
- queryParameters: [apiVersion$1, ignoreResetRequirements],
9321
+ queryParameters: [
9322
+ apiVersion$1,
9323
+ skipIndexerResetRequirementForCache
9324
+ ],
9198
9325
  urlParameters: [endpoint$1, dataSourceName],
9199
9326
  headerParameters: [
9200
9327
  contentType$1,
@@ -9289,7 +9416,7 @@ const createOperationSpec = {
9289
9416
  * Code generated by Microsoft (R) AutoRest Code Generator.
9290
9417
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9291
9418
  */
9292
- /** Class representing a Indexers. */
9419
+ /** Class containing Indexers operations. */
9293
9420
  class IndexersImpl {
9294
9421
  /**
9295
9422
  * Initialize a new instance of the class Indexers class.
@@ -9304,11 +9431,15 @@ class IndexersImpl {
9304
9431
  * @param options The options parameters.
9305
9432
  */
9306
9433
  reset(indexerName, options) {
9307
- const operationArguments = {
9308
- indexerName,
9309
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9310
- };
9311
- return this.client.sendOperationRequest(operationArguments, resetOperationSpec);
9434
+ return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
9435
+ }
9436
+ /**
9437
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
9438
+ * @param indexerName The name of the indexer to reset documents for.
9439
+ * @param options The options parameters.
9440
+ */
9441
+ resetDocs(indexerName, options) {
9442
+ return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
9312
9443
  }
9313
9444
  /**
9314
9445
  * Runs an indexer on-demand.
@@ -9316,11 +9447,7 @@ class IndexersImpl {
9316
9447
  * @param options The options parameters.
9317
9448
  */
9318
9449
  run(indexerName, options) {
9319
- const operationArguments = {
9320
- indexerName,
9321
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9322
- };
9323
- return this.client.sendOperationRequest(operationArguments, runOperationSpec);
9450
+ return this.client.sendOperationRequest({ indexerName, options }, runOperationSpec);
9324
9451
  }
9325
9452
  /**
9326
9453
  * Creates a new indexer or updates an indexer if it already exists.
@@ -9329,12 +9456,7 @@ class IndexersImpl {
9329
9456
  * @param options The options parameters.
9330
9457
  */
9331
9458
  createOrUpdate(indexerName, indexer, options) {
9332
- const operationArguments = {
9333
- indexerName,
9334
- indexer,
9335
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9336
- };
9337
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$1);
9459
+ return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$1);
9338
9460
  }
9339
9461
  /**
9340
9462
  * Deletes an indexer.
@@ -9342,11 +9464,7 @@ class IndexersImpl {
9342
9464
  * @param options The options parameters.
9343
9465
  */
9344
9466
  delete(indexerName, options) {
9345
- const operationArguments = {
9346
- indexerName,
9347
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9348
- };
9349
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
9467
+ return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$1);
9350
9468
  }
9351
9469
  /**
9352
9470
  * Retrieves an indexer definition.
@@ -9354,21 +9472,14 @@ class IndexersImpl {
9354
9472
  * @param options The options parameters.
9355
9473
  */
9356
9474
  get(indexerName, options) {
9357
- const operationArguments = {
9358
- indexerName,
9359
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9360
- };
9361
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$2);
9475
+ return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$2);
9362
9476
  }
9363
9477
  /**
9364
9478
  * Lists all indexers available for a search service.
9365
9479
  * @param options The options parameters.
9366
9480
  */
9367
9481
  list(options) {
9368
- const operationArguments = {
9369
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9370
- };
9371
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$1);
9482
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
9372
9483
  }
9373
9484
  /**
9374
9485
  * Creates a new indexer.
@@ -9376,11 +9487,7 @@ class IndexersImpl {
9376
9487
  * @param options The options parameters.
9377
9488
  */
9378
9489
  create(indexer, options) {
9379
- const operationArguments = {
9380
- indexer,
9381
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9382
- };
9383
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
9490
+ return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$1);
9384
9491
  }
9385
9492
  /**
9386
9493
  * Returns the current status and execution history of an indexer.
@@ -9388,15 +9495,11 @@ class IndexersImpl {
9388
9495
  * @param options The options parameters.
9389
9496
  */
9390
9497
  getStatus(indexerName, options) {
9391
- const operationArguments = {
9392
- indexerName,
9393
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9394
- };
9395
- return this.client.sendOperationRequest(operationArguments, getStatusOperationSpec);
9498
+ return this.client.sendOperationRequest({ indexerName, options }, getStatusOperationSpec);
9396
9499
  }
9397
9500
  }
9398
9501
  // Operation Specifications
9399
- const serializer$2 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9502
+ const serializer$2 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9400
9503
  const resetOperationSpec = {
9401
9504
  path: "/indexers('{indexerName}')/search.reset",
9402
9505
  httpMethod: "POST",
@@ -9411,6 +9514,26 @@ const resetOperationSpec = {
9411
9514
  headerParameters: [accept$1, xMsClientRequestId$1],
9412
9515
  serializer: serializer$2
9413
9516
  };
9517
+ const resetDocsOperationSpec = {
9518
+ path: "/indexers('{indexerName}')/search.resetdocs",
9519
+ httpMethod: "POST",
9520
+ responses: {
9521
+ 204: {},
9522
+ default: {
9523
+ bodyMapper: SearchError$1
9524
+ }
9525
+ },
9526
+ requestBody: keysOrIds,
9527
+ queryParameters: [apiVersion$1, overwrite],
9528
+ urlParameters: [endpoint$1, indexerName],
9529
+ headerParameters: [
9530
+ contentType$1,
9531
+ accept$1,
9532
+ xMsClientRequestId$1
9533
+ ],
9534
+ mediaType: "json",
9535
+ serializer: serializer$2
9536
+ };
9414
9537
  const runOperationSpec = {
9415
9538
  path: "/indexers('{indexerName}')/search.run",
9416
9539
  httpMethod: "POST",
@@ -9442,7 +9565,7 @@ const createOrUpdateOperationSpec$1 = {
9442
9565
  requestBody: indexer,
9443
9566
  queryParameters: [
9444
9567
  apiVersion$1,
9445
- ignoreResetRequirements,
9568
+ skipIndexerResetRequirementForCache,
9446
9569
  disableCacheReprocessingChangeDetection
9447
9570
  ],
9448
9571
  urlParameters: [endpoint$1, indexerName],
@@ -9555,7 +9678,7 @@ const getStatusOperationSpec = {
9555
9678
  * Code generated by Microsoft (R) AutoRest Code Generator.
9556
9679
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9557
9680
  */
9558
- /** Class representing a Skillsets. */
9681
+ /** Class containing Skillsets operations. */
9559
9682
  class SkillsetsImpl {
9560
9683
  /**
9561
9684
  * Initialize a new instance of the class Skillsets class.
@@ -9571,12 +9694,7 @@ class SkillsetsImpl {
9571
9694
  * @param options The options parameters.
9572
9695
  */
9573
9696
  createOrUpdate(skillsetName, skillset, options) {
9574
- const operationArguments = {
9575
- skillsetName,
9576
- skillset,
9577
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9578
- };
9579
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$2);
9697
+ return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
9580
9698
  }
9581
9699
  /**
9582
9700
  * Deletes a skillset in a search service.
@@ -9584,11 +9702,7 @@ class SkillsetsImpl {
9584
9702
  * @param options The options parameters.
9585
9703
  */
9586
9704
  delete(skillsetName, options) {
9587
- const operationArguments = {
9588
- skillsetName,
9589
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9590
- };
9591
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
9705
+ return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
9592
9706
  }
9593
9707
  /**
9594
9708
  * Retrieves a skillset in a search service.
@@ -9596,21 +9710,14 @@ class SkillsetsImpl {
9596
9710
  * @param options The options parameters.
9597
9711
  */
9598
9712
  get(skillsetName, options) {
9599
- const operationArguments = {
9600
- skillsetName,
9601
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9602
- };
9603
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$3);
9713
+ return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
9604
9714
  }
9605
9715
  /**
9606
9716
  * List all skillsets in a search service.
9607
9717
  * @param options The options parameters.
9608
9718
  */
9609
9719
  list(options) {
9610
- const operationArguments = {
9611
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9612
- };
9613
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$2);
9720
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
9614
9721
  }
9615
9722
  /**
9616
9723
  * Creates a new skillset in a search service.
@@ -9618,15 +9725,20 @@ class SkillsetsImpl {
9618
9725
  * @param options The options parameters.
9619
9726
  */
9620
9727
  create(skillset, options) {
9621
- const operationArguments = {
9622
- skillset,
9623
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9624
- };
9625
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
9728
+ return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
9729
+ }
9730
+ /**
9731
+ * Reset an existing skillset in a search service.
9732
+ * @param skillsetName The name of the skillset to reset.
9733
+ * @param skillNames The names of skills to reset.
9734
+ * @param options The options parameters.
9735
+ */
9736
+ resetSkills(skillsetName, skillNames, options) {
9737
+ return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
9626
9738
  }
9627
9739
  }
9628
9740
  // Operation Specifications
9629
- const serializer$3 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9741
+ const serializer$3 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9630
9742
  const createOrUpdateOperationSpec$2 = {
9631
9743
  path: "/skillsets('{skillsetName}')",
9632
9744
  httpMethod: "PUT",
@@ -9644,7 +9756,7 @@ const createOrUpdateOperationSpec$2 = {
9644
9756
  requestBody: skillset,
9645
9757
  queryParameters: [
9646
9758
  apiVersion$1,
9647
- ignoreResetRequirements,
9759
+ skipIndexerResetRequirementForCache,
9648
9760
  disableCacheReprocessingChangeDetection
9649
9761
  ],
9650
9762
  urlParameters: [endpoint$1, skillsetName],
@@ -9733,6 +9845,26 @@ const createOperationSpec$2 = {
9733
9845
  mediaType: "json",
9734
9846
  serializer: serializer$3
9735
9847
  };
9848
+ const resetSkillsOperationSpec = {
9849
+ path: "/skillsets('{skillsetName}')/search.resetskills",
9850
+ httpMethod: "POST",
9851
+ responses: {
9852
+ 204: {},
9853
+ default: {
9854
+ bodyMapper: SearchError$1
9855
+ }
9856
+ },
9857
+ requestBody: skillNames,
9858
+ queryParameters: [apiVersion$1],
9859
+ urlParameters: [endpoint$1, skillsetName],
9860
+ headerParameters: [
9861
+ contentType$1,
9862
+ accept$1,
9863
+ xMsClientRequestId$1
9864
+ ],
9865
+ mediaType: "json",
9866
+ serializer: serializer$3
9867
+ };
9736
9868
 
9737
9869
  /*
9738
9870
  * Copyright (c) Microsoft Corporation.
@@ -9741,7 +9873,7 @@ const createOperationSpec$2 = {
9741
9873
  * Code generated by Microsoft (R) AutoRest Code Generator.
9742
9874
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9743
9875
  */
9744
- /** Class representing a SynonymMaps. */
9876
+ /** Class containing SynonymMaps operations. */
9745
9877
  class SynonymMapsImpl {
9746
9878
  /**
9747
9879
  * Initialize a new instance of the class SynonymMaps class.
@@ -9757,12 +9889,7 @@ class SynonymMapsImpl {
9757
9889
  * @param options The options parameters.
9758
9890
  */
9759
9891
  createOrUpdate(synonymMapName, synonymMap, options) {
9760
- const operationArguments = {
9761
- synonymMapName,
9762
- synonymMap,
9763
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9764
- };
9765
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$3);
9892
+ return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$3);
9766
9893
  }
9767
9894
  /**
9768
9895
  * Deletes a synonym map.
@@ -9770,11 +9897,7 @@ class SynonymMapsImpl {
9770
9897
  * @param options The options parameters.
9771
9898
  */
9772
9899
  delete(synonymMapName, options) {
9773
- const operationArguments = {
9774
- synonymMapName,
9775
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9776
- };
9777
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$3);
9900
+ return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$3);
9778
9901
  }
9779
9902
  /**
9780
9903
  * Retrieves a synonym map definition.
@@ -9782,21 +9905,14 @@ class SynonymMapsImpl {
9782
9905
  * @param options The options parameters.
9783
9906
  */
9784
9907
  get(synonymMapName, options) {
9785
- const operationArguments = {
9786
- synonymMapName,
9787
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9788
- };
9789
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$4);
9908
+ return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$4);
9790
9909
  }
9791
9910
  /**
9792
9911
  * Lists all synonym maps available for a search service.
9793
9912
  * @param options The options parameters.
9794
9913
  */
9795
9914
  list(options) {
9796
- const operationArguments = {
9797
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9798
- };
9799
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$3);
9915
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
9800
9916
  }
9801
9917
  /**
9802
9918
  * Creates a new synonym map.
@@ -9804,15 +9920,11 @@ class SynonymMapsImpl {
9804
9920
  * @param options The options parameters.
9805
9921
  */
9806
9922
  create(synonymMap, options) {
9807
- const operationArguments = {
9808
- synonymMap,
9809
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9810
- };
9811
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$3);
9923
+ return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$3);
9812
9924
  }
9813
9925
  }
9814
9926
  // Operation Specifications
9815
- const serializer$4 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9927
+ const serializer$4 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9816
9928
  const createOrUpdateOperationSpec$3 = {
9817
9929
  path: "/synonymmaps('{synonymMapName}')",
9818
9930
  httpMethod: "PUT",
@@ -9923,7 +10035,7 @@ const createOperationSpec$3 = {
9923
10035
  * Code generated by Microsoft (R) AutoRest Code Generator.
9924
10036
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9925
10037
  */
9926
- /** Class representing a Indexes. */
10038
+ /** Class containing Indexes operations. */
9927
10039
  class IndexesImpl {
9928
10040
  /**
9929
10041
  * Initialize a new instance of the class Indexes class.
@@ -9938,21 +10050,14 @@ class IndexesImpl {
9938
10050
  * @param options The options parameters.
9939
10051
  */
9940
10052
  create(index, options) {
9941
- const operationArguments = {
9942
- index,
9943
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9944
- };
9945
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$4);
10053
+ return this.client.sendOperationRequest({ index, options }, createOperationSpec$4);
9946
10054
  }
9947
10055
  /**
9948
10056
  * Lists all indexes available for a search service.
9949
10057
  * @param options The options parameters.
9950
10058
  */
9951
10059
  list(options) {
9952
- const operationArguments = {
9953
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9954
- };
9955
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$4);
10060
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
9956
10061
  }
9957
10062
  /**
9958
10063
  * Creates a new search index or updates an index if it already exists.
@@ -9961,12 +10066,7 @@ class IndexesImpl {
9961
10066
  * @param options The options parameters.
9962
10067
  */
9963
10068
  createOrUpdate(indexName, index, options) {
9964
- const operationArguments = {
9965
- indexName,
9966
- index,
9967
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9968
- };
9969
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$4);
10069
+ return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$4);
9970
10070
  }
9971
10071
  /**
9972
10072
  * Deletes a search index and all the documents it contains. This operation is permanent, with no
@@ -9976,11 +10076,7 @@ class IndexesImpl {
9976
10076
  * @param options The options parameters.
9977
10077
  */
9978
10078
  delete(indexName, options) {
9979
- const operationArguments = {
9980
- indexName,
9981
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9982
- };
9983
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$4);
10079
+ return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$4);
9984
10080
  }
9985
10081
  /**
9986
10082
  * Retrieves an index definition.
@@ -9988,11 +10084,7 @@ class IndexesImpl {
9988
10084
  * @param options The options parameters.
9989
10085
  */
9990
10086
  get(indexName, options) {
9991
- const operationArguments = {
9992
- indexName,
9993
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9994
- };
9995
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$5);
10087
+ return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$5);
9996
10088
  }
9997
10089
  /**
9998
10090
  * Returns statistics for the given index, including a document count and storage usage.
@@ -10000,11 +10092,7 @@ class IndexesImpl {
10000
10092
  * @param options The options parameters.
10001
10093
  */
10002
10094
  getStatistics(indexName, options) {
10003
- const operationArguments = {
10004
- indexName,
10005
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
10006
- };
10007
- return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
10095
+ return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
10008
10096
  }
10009
10097
  /**
10010
10098
  * Shows how an analyzer breaks text into tokens.
@@ -10013,16 +10101,11 @@ class IndexesImpl {
10013
10101
  * @param options The options parameters.
10014
10102
  */
10015
10103
  analyze(indexName, request, options) {
10016
- const operationArguments = {
10017
- indexName,
10018
- request,
10019
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
10020
- };
10021
- return this.client.sendOperationRequest(operationArguments, analyzeOperationSpec);
10104
+ return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
10022
10105
  }
10023
10106
  }
10024
10107
  // Operation Specifications
10025
- const serializer$5 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
10108
+ const serializer$5 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
10026
10109
  const createOperationSpec$4 = {
10027
10110
  path: "/indexes",
10028
10111
  httpMethod: "POST",
@@ -10171,10 +10254,8 @@ const analyzeOperationSpec = {
10171
10254
  * Code generated by Microsoft (R) AutoRest Code Generator.
10172
10255
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10173
10256
  */
10174
- const packageName$1 = "@azure/search-documents";
10175
- const packageVersion$1 = "11.3.0-beta.3";
10176
10257
  /** @internal */
10177
- class SearchServiceClientContext extends coreHttp.ServiceClient {
10258
+ class SearchServiceClientContext extends coreClient.ServiceClient {
10178
10259
  /**
10179
10260
  * Initializes a new instance of the SearchServiceClientContext class.
10180
10261
  * @param endpoint The endpoint URL of the search service.
@@ -10192,12 +10273,17 @@ class SearchServiceClientContext extends coreHttp.ServiceClient {
10192
10273
  if (!options) {
10193
10274
  options = {};
10194
10275
  }
10195
- const defaultUserAgent = `azsdk-js-${packageName$1.replace("@azure/", "")}/${packageVersion$1} ${coreHttp.getDefaultUserAgentValue()}`;
10196
- super(undefined, Object.assign(Object.assign({}, options), { userAgent: options.userAgent
10197
- ? `${options.userAgent} ${defaultUserAgent}`
10198
- : `${defaultUserAgent}` }));
10199
- this.requestContentType = "application/json; charset=utf-8";
10200
- this.baseUri = options.endpoint || "{endpoint}";
10276
+ const defaults = {
10277
+ requestContentType: "application/json; charset=utf-8"
10278
+ };
10279
+ const packageDetails = `azsdk-js-search-documents/11.3.0-beta.4`;
10280
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10281
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10282
+ : `${packageDetails}`;
10283
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
10284
+ userAgentPrefix
10285
+ }, baseUri: options.endpoint || "{endpoint}" });
10286
+ super(optionsWithDefaults);
10201
10287
  // Parameter assignments
10202
10288
  this.endpoint = endpoint;
10203
10289
  this.apiVersion = apiVersion;
@@ -10232,14 +10318,11 @@ class SearchServiceClient extends SearchServiceClientContext {
10232
10318
  * @param options The options parameters.
10233
10319
  */
10234
10320
  getServiceStatistics(options) {
10235
- const operationArguments = {
10236
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
10237
- };
10238
- return this.sendOperationRequest(operationArguments, getServiceStatisticsOperationSpec);
10321
+ return this.sendOperationRequest({ options }, getServiceStatisticsOperationSpec);
10239
10322
  }
10240
10323
  }
10241
10324
  // Operation Specifications
10242
- const serializer$6 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
10325
+ const serializer$6 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
10243
10326
  const getServiceStatisticsOperationSpec = {
10244
10327
  path: "/servicestats",
10245
10328
  httpMethod: "GET",
@@ -10298,10 +10381,10 @@ class SearchIndexClient {
10298
10381
  else {
10299
10382
  options.userAgentOptions.userAgentPrefix = libInfo;
10300
10383
  }
10301
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
10384
+ const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
10302
10385
  loggingOptions: {
10303
10386
  logger: logger.info,
10304
- allowedHeaderNames: [
10387
+ additionalAllowedHeaderNames: [
10305
10388
  "elapsed-time",
10306
10389
  "Location",
10307
10390
  "OData-MaxVersion",
@@ -10311,13 +10394,6 @@ class SearchIndexClient {
10311
10394
  ]
10312
10395
  }
10313
10396
  });
10314
- const requestPolicyFactory = coreAuth.isTokenCredential(credential)
10315
- ? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
10316
- : createSearchApiKeyCredentialPolicy(credential);
10317
- const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
10318
- if (Array.isArray(pipeline.requestPolicyFactories)) {
10319
- pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal"));
10320
- }
10321
10397
  let apiVersion = this.apiVersion;
10322
10398
  if (options.apiVersion) {
10323
10399
  if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
@@ -10325,13 +10401,20 @@ class SearchIndexClient {
10325
10401
  }
10326
10402
  apiVersion = options.apiVersion;
10327
10403
  }
10328
- this.client = new SearchServiceClient(this.endpoint, apiVersion, pipeline);
10404
+ this.client = new SearchServiceClient(this.endpoint, apiVersion, internalClientPipelineOptions);
10405
+ if (coreAuth.isTokenCredential(credential)) {
10406
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
10407
+ }
10408
+ else {
10409
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
10410
+ }
10411
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
10329
10412
  }
10330
10413
  listIndexesPage(options = {}) {
10331
10414
  return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
10332
10415
  const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
10333
10416
  try {
10334
- const result = yield tslib.__await(this.client.indexes.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)));
10417
+ const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
10335
10418
  const mapped = result.indexes.map(generatedIndexToPublicIndex);
10336
10419
  yield yield tslib.__await(mapped);
10337
10420
  }
@@ -10387,7 +10470,7 @@ class SearchIndexClient {
10387
10470
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
10388
10471
  const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
10389
10472
  try {
10390
- const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" })));
10473
+ const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" })));
10391
10474
  const mapped = result.indexes.map((idx) => idx.name);
10392
10475
  yield yield tslib.__await(mapped);
10393
10476
  }
@@ -10446,7 +10529,7 @@ class SearchIndexClient {
10446
10529
  async listSynonymMaps(options = {}) {
10447
10530
  const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMaps", options);
10448
10531
  try {
10449
- const result = await this.client.synonymMaps.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10532
+ const result = await this.client.synonymMaps.list(updatedOptions);
10450
10533
  return result.synonymMaps.map(generatedSynonymMapToPublicSynonymMap);
10451
10534
  }
10452
10535
  catch (e) {
@@ -10467,7 +10550,7 @@ class SearchIndexClient {
10467
10550
  async listSynonymMapsNames(options = {}) {
10468
10551
  const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
10469
10552
  try {
10470
- const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
10553
+ const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10471
10554
  return result.synonymMaps.map((sm) => sm.name);
10472
10555
  }
10473
10556
  catch (e) {
@@ -10489,7 +10572,7 @@ class SearchIndexClient {
10489
10572
  async getIndex(indexName, options = {}) {
10490
10573
  const { span, updatedOptions } = createSpan("SearchIndexClient-getIndex", options);
10491
10574
  try {
10492
- const result = await this.client.indexes.get(indexName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10575
+ const result = await this.client.indexes.get(indexName, updatedOptions);
10493
10576
  return generatedIndexToPublicIndex(result);
10494
10577
  }
10495
10578
  catch (e) {
@@ -10511,7 +10594,7 @@ class SearchIndexClient {
10511
10594
  async getSynonymMap(synonymMapName, options = {}) {
10512
10595
  const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options);
10513
10596
  try {
10514
- const result = await this.client.synonymMaps.get(synonymMapName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10597
+ const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);
10515
10598
  return generatedSynonymMapToPublicSynonymMap(result);
10516
10599
  }
10517
10600
  catch (e) {
@@ -10533,7 +10616,7 @@ class SearchIndexClient {
10533
10616
  async createIndex(index, options = {}) {
10534
10617
  const { span, updatedOptions } = createSpan("SearchIndexClient-createIndex", options);
10535
10618
  try {
10536
- const result = await this.client.indexes.create(publicIndexToGeneratedIndex(index), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10619
+ const result = await this.client.indexes.create(publicIndexToGeneratedIndex(index), updatedOptions);
10537
10620
  return generatedIndexToPublicIndex(result);
10538
10621
  }
10539
10622
  catch (e) {
@@ -10555,7 +10638,7 @@ class SearchIndexClient {
10555
10638
  async createSynonymMap(synonymMap, options = {}) {
10556
10639
  const { span, updatedOptions } = createSpan("SearchIndexClient-createSynonymMaps", options);
10557
10640
  try {
10558
- const result = await this.client.synonymMaps.create(publicSynonymMapToGeneratedSynonymMap(synonymMap), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10641
+ const result = await this.client.synonymMaps.create(publicSynonymMapToGeneratedSynonymMap(synonymMap), updatedOptions);
10559
10642
  return generatedSynonymMapToPublicSynonymMap(result);
10560
10643
  }
10561
10644
  catch (e) {
@@ -10578,7 +10661,7 @@ class SearchIndexClient {
10578
10661
  const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateIndex", options);
10579
10662
  try {
10580
10663
  const etag = options.onlyIfUnchanged ? index.etag : undefined;
10581
- const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10664
+ const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10582
10665
  return generatedIndexToPublicIndex(result);
10583
10666
  }
10584
10667
  catch (e) {
@@ -10601,7 +10684,7 @@ class SearchIndexClient {
10601
10684
  const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateSynonymMap", options);
10602
10685
  try {
10603
10686
  const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;
10604
- const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10687
+ const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10605
10688
  return generatedSynonymMapToPublicSynonymMap(result);
10606
10689
  }
10607
10690
  catch (e) {
@@ -10625,7 +10708,7 @@ class SearchIndexClient {
10625
10708
  try {
10626
10709
  const indexName = typeof index === "string" ? index : index.name;
10627
10710
  const etag = typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;
10628
- await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10711
+ await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10629
10712
  }
10630
10713
  catch (e) {
10631
10714
  span.setStatus({
@@ -10652,7 +10735,7 @@ class SearchIndexClient {
10652
10735
  : options.onlyIfUnchanged
10653
10736
  ? synonymMap.etag
10654
10737
  : undefined;
10655
- await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10738
+ await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10656
10739
  }
10657
10740
  catch (e) {
10658
10741
  span.setStatus({
@@ -10674,7 +10757,7 @@ class SearchIndexClient {
10674
10757
  async getIndexStatistics(indexName, options = {}) {
10675
10758
  const { span, updatedOptions } = createSpan("SearchIndexClient-getIndexStatistics", options);
10676
10759
  try {
10677
- const result = await this.client.indexes.getStatistics(indexName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10760
+ const result = await this.client.indexes.getStatistics(indexName, updatedOptions);
10678
10761
  return result;
10679
10762
  }
10680
10763
  catch (e) {
@@ -10695,10 +10778,15 @@ class SearchIndexClient {
10695
10778
  * @param options - Additional arguments
10696
10779
  */
10697
10780
  async analyzeText(indexName, options) {
10698
- const { operationOptions, restOptions } = extractOperationOptions(options);
10781
+ const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
10782
+ const operationOptions = {
10783
+ abortSignal,
10784
+ requestOptions,
10785
+ tracingOptions
10786
+ };
10699
10787
  const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
10700
10788
  try {
10701
- const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10789
+ const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), updatedOptions);
10702
10790
  return result;
10703
10791
  }
10704
10792
  catch (e) {
@@ -10719,7 +10807,7 @@ class SearchIndexClient {
10719
10807
  async getServiceStatistics(options = {}) {
10720
10808
  const { span, updatedOptions } = createSpan("SearchIndexClient-getServiceStatistics", options);
10721
10809
  try {
10722
- const result = await this.client.getServiceStatistics(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10810
+ const result = await this.client.getServiceStatistics(updatedOptions);
10723
10811
  return result;
10724
10812
  }
10725
10813
  catch (e) {
@@ -10782,10 +10870,10 @@ class SearchIndexerClient {
10782
10870
  else {
10783
10871
  options.userAgentOptions.userAgentPrefix = libInfo;
10784
10872
  }
10785
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
10873
+ const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
10786
10874
  loggingOptions: {
10787
10875
  logger: logger.info,
10788
- allowedHeaderNames: [
10876
+ additionalAllowedHeaderNames: [
10789
10877
  "elapsed-time",
10790
10878
  "Location",
10791
10879
  "OData-MaxVersion",
@@ -10795,13 +10883,6 @@ class SearchIndexerClient {
10795
10883
  ]
10796
10884
  }
10797
10885
  });
10798
- const requestPolicyFactory = coreAuth.isTokenCredential(credential)
10799
- ? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
10800
- : createSearchApiKeyCredentialPolicy(credential);
10801
- const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
10802
- if (Array.isArray(pipeline.requestPolicyFactories)) {
10803
- pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal"));
10804
- }
10805
10886
  let apiVersion = this.apiVersion;
10806
10887
  if (options.apiVersion) {
10807
10888
  if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
@@ -10809,7 +10890,14 @@ class SearchIndexerClient {
10809
10890
  }
10810
10891
  apiVersion = options.apiVersion;
10811
10892
  }
10812
- this.client = new SearchServiceClient(this.endpoint, apiVersion, pipeline);
10893
+ this.client = new SearchServiceClient(this.endpoint, apiVersion, internalClientPipelineOptions);
10894
+ if (coreAuth.isTokenCredential(credential)) {
10895
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
10896
+ }
10897
+ else {
10898
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
10899
+ }
10900
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
10813
10901
  }
10814
10902
  /**
10815
10903
  * Retrieves a list of existing indexers in the service.
@@ -10818,7 +10906,7 @@ class SearchIndexerClient {
10818
10906
  async listIndexers(options = {}) {
10819
10907
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexers", options);
10820
10908
  try {
10821
- const result = await this.client.indexers.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10909
+ const result = await this.client.indexers.list(updatedOptions);
10822
10910
  return result.indexers.map(generatedSearchIndexerToPublicSearchIndexer);
10823
10911
  }
10824
10912
  catch (e) {
@@ -10839,7 +10927,7 @@ class SearchIndexerClient {
10839
10927
  async listIndexersNames(options = {}) {
10840
10928
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
10841
10929
  try {
10842
- const result = await this.client.indexers.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
10930
+ const result = await this.client.indexers.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10843
10931
  return result.indexers.map((idx) => idx.name);
10844
10932
  }
10845
10933
  catch (e) {
@@ -10860,7 +10948,7 @@ class SearchIndexerClient {
10860
10948
  async listDataSourceConnections(options = {}) {
10861
10949
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnections", options);
10862
10950
  try {
10863
- const result = await this.client.dataSources.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10951
+ const result = await this.client.dataSources.list(updatedOptions);
10864
10952
  return result.dataSources.map(generatedDataSourceToPublicDataSource);
10865
10953
  }
10866
10954
  catch (e) {
@@ -10881,7 +10969,7 @@ class SearchIndexerClient {
10881
10969
  async listDataSourceConnectionsNames(options = {}) {
10882
10970
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
10883
10971
  try {
10884
- const result = await this.client.dataSources.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
10972
+ const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10885
10973
  return result.dataSources.map((ds) => ds.name);
10886
10974
  }
10887
10975
  catch (e) {
@@ -10902,7 +10990,7 @@ class SearchIndexerClient {
10902
10990
  async listSkillsets(options = {}) {
10903
10991
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsets", options);
10904
10992
  try {
10905
- const result = await this.client.skillsets.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10993
+ const result = await this.client.skillsets.list(updatedOptions);
10906
10994
  return result.skillsets.map(generatedSkillsetToPublicSkillset);
10907
10995
  }
10908
10996
  catch (e) {
@@ -10923,7 +11011,7 @@ class SearchIndexerClient {
10923
11011
  async listSkillsetsNames(options = {}) {
10924
11012
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
10925
11013
  try {
10926
- const result = await this.client.skillsets.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
11014
+ const result = await this.client.skillsets.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10927
11015
  return result.skillsets.map((sks) => sks.name);
10928
11016
  }
10929
11017
  catch (e) {
@@ -10945,7 +11033,7 @@ class SearchIndexerClient {
10945
11033
  async getIndexer(indexerName, options = {}) {
10946
11034
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexer", options);
10947
11035
  try {
10948
- const result = await this.client.indexers.get(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11036
+ const result = await this.client.indexers.get(indexerName, updatedOptions);
10949
11037
  return generatedSearchIndexerToPublicSearchIndexer(result);
10950
11038
  }
10951
11039
  catch (e) {
@@ -10967,7 +11055,7 @@ class SearchIndexerClient {
10967
11055
  async getDataSourceConnection(dataSourceConnectionName, options = {}) {
10968
11056
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getDataSourceConnection", options);
10969
11057
  try {
10970
- const result = await this.client.dataSources.get(dataSourceConnectionName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11058
+ const result = await this.client.dataSources.get(dataSourceConnectionName, updatedOptions);
10971
11059
  return generatedDataSourceToPublicDataSource(result);
10972
11060
  }
10973
11061
  catch (e) {
@@ -10989,7 +11077,7 @@ class SearchIndexerClient {
10989
11077
  async getSkillset(skillsetName, options = {}) {
10990
11078
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getSkillset", options);
10991
11079
  try {
10992
- const result = await this.client.skillsets.get(skillsetName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11080
+ const result = await this.client.skillsets.get(skillsetName, updatedOptions);
10993
11081
  return generatedSkillsetToPublicSkillset(result);
10994
11082
  }
10995
11083
  catch (e) {
@@ -11011,7 +11099,7 @@ class SearchIndexerClient {
11011
11099
  async createIndexer(indexer, options = {}) {
11012
11100
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createIndexer", options);
11013
11101
  try {
11014
- const result = await this.client.indexers.create(publicSearchIndexerToGeneratedSearchIndexer(indexer), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11102
+ const result = await this.client.indexers.create(publicSearchIndexerToGeneratedSearchIndexer(indexer), updatedOptions);
11015
11103
  return generatedSearchIndexerToPublicSearchIndexer(result);
11016
11104
  }
11017
11105
  catch (e) {
@@ -11033,7 +11121,7 @@ class SearchIndexerClient {
11033
11121
  async createDataSourceConnection(dataSourceConnection, options = {}) {
11034
11122
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createDataSourceConnection", options);
11035
11123
  try {
11036
- const result = await this.client.dataSources.create(publicDataSourceToGeneratedDataSource(dataSourceConnection), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11124
+ const result = await this.client.dataSources.create(publicDataSourceToGeneratedDataSource(dataSourceConnection), updatedOptions);
11037
11125
  return generatedDataSourceToPublicDataSource(result);
11038
11126
  }
11039
11127
  catch (e) {
@@ -11055,7 +11143,7 @@ class SearchIndexerClient {
11055
11143
  async createSkillset(skillset, options = {}) {
11056
11144
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createSkillset", options);
11057
11145
  try {
11058
- const result = await this.client.skillsets.create(publicSkillsetToGeneratedSkillset(skillset), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11146
+ const result = await this.client.skillsets.create(publicSkillsetToGeneratedSkillset(skillset), updatedOptions);
11059
11147
  return generatedSkillsetToPublicSkillset(result);
11060
11148
  }
11061
11149
  catch (e) {
@@ -11078,7 +11166,7 @@ class SearchIndexerClient {
11078
11166
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
11079
11167
  try {
11080
11168
  const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
11081
- const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag, ignoreResetRequirements: options.ignoreResetRequirements, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11169
+ const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11082
11170
  return generatedSearchIndexerToPublicSearchIndexer(result);
11083
11171
  }
11084
11172
  catch (e) {
@@ -11101,7 +11189,7 @@ class SearchIndexerClient {
11101
11189
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
11102
11190
  try {
11103
11191
  const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
11104
- const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag, ignoreResetRequirements: options.ignoreResetRequirements }));
11192
+ const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache }));
11105
11193
  return generatedDataSourceToPublicDataSource(result);
11106
11194
  }
11107
11195
  catch (e) {
@@ -11124,7 +11212,7 @@ class SearchIndexerClient {
11124
11212
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
11125
11213
  try {
11126
11214
  const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
11127
- const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag, ignoreResetRequirements: options.ignoreResetRequirements, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11215
+ const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11128
11216
  return generatedSkillsetToPublicSkillset(result);
11129
11217
  }
11130
11218
  catch (e) {
@@ -11152,7 +11240,7 @@ class SearchIndexerClient {
11152
11240
  : options.onlyIfUnchanged
11153
11241
  ? indexer.etag
11154
11242
  : undefined;
11155
- await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11243
+ await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
11156
11244
  }
11157
11245
  catch (e) {
11158
11246
  span.setStatus({
@@ -11179,7 +11267,7 @@ class SearchIndexerClient {
11179
11267
  : options.onlyIfUnchanged
11180
11268
  ? dataSourceConnection.etag
11181
11269
  : undefined;
11182
- await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11270
+ await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
11183
11271
  }
11184
11272
  catch (e) {
11185
11273
  span.setStatus({
@@ -11206,7 +11294,7 @@ class SearchIndexerClient {
11206
11294
  : options.onlyIfUnchanged
11207
11295
  ? skillset.etag
11208
11296
  : undefined;
11209
- await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11297
+ await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
11210
11298
  }
11211
11299
  catch (e) {
11212
11300
  span.setStatus({
@@ -11227,7 +11315,7 @@ class SearchIndexerClient {
11227
11315
  async getIndexerStatus(indexerName, options = {}) {
11228
11316
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexerStatus", options);
11229
11317
  try {
11230
- const result = await this.client.indexers.getStatus(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11318
+ const result = await this.client.indexers.getStatus(indexerName, updatedOptions);
11231
11319
  return result;
11232
11320
  }
11233
11321
  catch (e) {
@@ -11249,7 +11337,7 @@ class SearchIndexerClient {
11249
11337
  async resetIndexer(indexerName, options = {}) {
11250
11338
  const { span, updatedOptions } = createSpan("SearchIndexerClient-resetIndexer", options);
11251
11339
  try {
11252
- await this.client.indexers.reset(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11340
+ await this.client.indexers.reset(indexerName, updatedOptions);
11253
11341
  }
11254
11342
  catch (e) {
11255
11343
  span.setStatus({
@@ -11270,7 +11358,53 @@ class SearchIndexerClient {
11270
11358
  async runIndexer(indexerName, options = {}) {
11271
11359
  const { span, updatedOptions } = createSpan("SearchIndexerClient-runIndexer", options);
11272
11360
  try {
11273
- await this.client.indexers.run(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11361
+ await this.client.indexers.run(indexerName, updatedOptions);
11362
+ }
11363
+ catch (e) {
11364
+ span.setStatus({
11365
+ code: coreTracing.SpanStatusCode.ERROR,
11366
+ message: e.message
11367
+ });
11368
+ throw e;
11369
+ }
11370
+ finally {
11371
+ span.end();
11372
+ }
11373
+ }
11374
+ /**
11375
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
11376
+ * @param indexerName - The name of the indexer to reset documents for.
11377
+ * @param options - Additional optional arguments.
11378
+ */
11379
+ async resetDocs(indexerName, options = {}) {
11380
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
11381
+ try {
11382
+ await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
11383
+ documentKeys: updatedOptions.documentKeys,
11384
+ datasourceDocumentIds: updatedOptions.datasourceDocumentIds
11385
+ } }));
11386
+ }
11387
+ catch (e) {
11388
+ span.setStatus({
11389
+ code: coreTracing.SpanStatusCode.ERROR,
11390
+ message: e.message
11391
+ });
11392
+ throw e;
11393
+ }
11394
+ finally {
11395
+ span.end();
11396
+ }
11397
+ }
11398
+ /**
11399
+ * Reset an existing skillset in a search service.
11400
+ * @param skillsetName - The name of the skillset to reset.
11401
+ * @param skillNames - The names of skills to reset.
11402
+ * @param options - The options parameters.
11403
+ */
11404
+ async resetSkills(skillsetName, skillNames, options = {}) {
11405
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
11406
+ try {
11407
+ await this.client.skillsets.resetSkills(skillsetName, { skillNames }, updatedOptions);
11274
11408
  }
11275
11409
  catch (e) {
11276
11410
  span.setStatus({
@@ -11332,6 +11466,922 @@ function odata(strings, ...values) {
11332
11466
  return results.join("");
11333
11467
  }
11334
11468
 
11469
+ /*
11470
+ * Copyright (c) Microsoft Corporation.
11471
+ * Licensed under the MIT License.
11472
+ *
11473
+ * Code generated by Microsoft (R) AutoRest Code Generator.
11474
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11475
+ */
11476
+ /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
11477
+ var KnownApiVersion20210430Preview;
11478
+ (function (KnownApiVersion20210430Preview) {
11479
+ /** Api Version '2021-04-30-Preview' */
11480
+ KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
11481
+ })(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
11482
+ (function (KnownQueryLanguage) {
11483
+ /** Query language not specified. */
11484
+ KnownQueryLanguage["None"] = "none";
11485
+ /** English */
11486
+ KnownQueryLanguage["EnUs"] = "en-us";
11487
+ })(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
11488
+ (function (KnownSpeller) {
11489
+ /** Speller not enabled. */
11490
+ KnownSpeller["None"] = "none";
11491
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
11492
+ KnownSpeller["Lexicon"] = "lexicon";
11493
+ })(exports.KnownSpeller || (exports.KnownSpeller = {}));
11494
+ (function (KnownAnswers) {
11495
+ /** Do not return answers for the query. */
11496
+ KnownAnswers["None"] = "none";
11497
+ /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
11498
+ KnownAnswers["Extractive"] = "extractive";
11499
+ })(exports.KnownAnswers || (exports.KnownAnswers = {}));
11500
+ /** Known values of {@link Captions} that the service accepts. */
11501
+ var KnownCaptions;
11502
+ (function (KnownCaptions) {
11503
+ /** Do not return captions for the query. */
11504
+ KnownCaptions["None"] = "none";
11505
+ /** Extracts captions from the matching documents that contain passages relevant to the search query. */
11506
+ KnownCaptions["Extractive"] = "extractive";
11507
+ })(KnownCaptions || (KnownCaptions = {}));
11508
+ (function (KnownQuerySpellerType) {
11509
+ /** Speller not enabled. */
11510
+ KnownQuerySpellerType["None"] = "none";
11511
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
11512
+ KnownQuerySpellerType["Lexicon"] = "lexicon";
11513
+ })(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
11514
+ (function (KnownQueryAnswerType) {
11515
+ /** Do not return answers for the query. */
11516
+ KnownQueryAnswerType["None"] = "none";
11517
+ /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
11518
+ KnownQueryAnswerType["Extractive"] = "extractive";
11519
+ })(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
11520
+ (function (KnownQueryCaptionType) {
11521
+ /** Do not return captions for the query. */
11522
+ KnownQueryCaptionType["None"] = "none";
11523
+ /** Extracts captions from the matching documents that contain passages relevant to the search query. */
11524
+ KnownQueryCaptionType["Extractive"] = "extractive";
11525
+ })(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
11526
+
11527
+ /*
11528
+ * Copyright (c) Microsoft Corporation.
11529
+ * Licensed under the MIT License.
11530
+ *
11531
+ * Code generated by Microsoft (R) AutoRest Code Generator.
11532
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11533
+ */
11534
+ /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
11535
+ var KnownApiVersion20210430Preview$1;
11536
+ (function (KnownApiVersion20210430Preview) {
11537
+ /** Api Version '2021-04-30-Preview' */
11538
+ KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
11539
+ })(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
11540
+ (function (KnownSearchIndexerDataSourceType) {
11541
+ /** Indicates an Azure SQL datasource. */
11542
+ KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
11543
+ /** Indicates a CosmosDB datasource. */
11544
+ KnownSearchIndexerDataSourceType["CosmosDb"] = "cosmosdb";
11545
+ /** Indicates an Azure Blob datasource. */
11546
+ KnownSearchIndexerDataSourceType["AzureBlob"] = "azureblob";
11547
+ /** Indicates an Azure Table datasource. */
11548
+ KnownSearchIndexerDataSourceType["AzureTable"] = "azuretable";
11549
+ /** Indicates a MySql datasource. */
11550
+ KnownSearchIndexerDataSourceType["MySql"] = "mysql";
11551
+ /** Indicates an ADLS Gen2 datasource. */
11552
+ KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
11553
+ })(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
11554
+ (function (KnownBlobIndexerParsingMode) {
11555
+ /** Set to default for normal file processing. */
11556
+ KnownBlobIndexerParsingMode["Default"] = "default";
11557
+ /** Set to text to improve indexing performance on plain text files in blob storage. */
11558
+ KnownBlobIndexerParsingMode["Text"] = "text";
11559
+ /** Set to delimitedText when blobs are plain CSV files. */
11560
+ KnownBlobIndexerParsingMode["DelimitedText"] = "delimitedText";
11561
+ /** Set to json to extract structured content from JSON files. */
11562
+ KnownBlobIndexerParsingMode["Json"] = "json";
11563
+ /** Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. */
11564
+ KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
11565
+ /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
11566
+ KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
11567
+ })(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
11568
+ (function (KnownBlobIndexerDataToExtract) {
11569
+ /** Indexes just the standard blob properties and user-specified metadata. */
11570
+ KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
11571
+ /** Extracts metadata provided by the Azure blob storage subsystem and the content-type specific metadata (for example, metadata unique to just .png files are indexed). */
11572
+ KnownBlobIndexerDataToExtract["AllMetadata"] = "allMetadata";
11573
+ /** Extracts all metadata and textual content from each blob. */
11574
+ KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
11575
+ })(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
11576
+ (function (KnownBlobIndexerImageAction) {
11577
+ /** Ignores embedded images or image files in the data set. This is the default. */
11578
+ KnownBlobIndexerImageAction["None"] = "none";
11579
+ /** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field. This action requires that "dataToExtract" is set to "contentAndMetadata". A normalized image refers to additional processing resulting in uniform image output, sized and rotated to promote consistent rendering when you include images in visual search results. This information is generated for each image when you use this option. */
11580
+ KnownBlobIndexerImageAction["GenerateNormalizedImages"] = "generateNormalizedImages";
11581
+ /** 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. */
11582
+ KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
11583
+ })(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
11584
+ (function (KnownBlobIndexerPDFTextRotationAlgorithm) {
11585
+ /** Leverages normal text extraction. This is the default. */
11586
+ KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
11587
+ /** May produce better and more readable text extraction from PDF files that have rotated text within them. Note that there may be a small performance speed impact when this parameter is used. This parameter only applies to PDF files, and only to PDFs with embedded text. If the rotated text appears within an embedded image in the PDF, this parameter does not apply. */
11588
+ KnownBlobIndexerPDFTextRotationAlgorithm["DetectAngles"] = "detectAngles";
11589
+ })(exports.KnownBlobIndexerPDFTextRotationAlgorithm || (exports.KnownBlobIndexerPDFTextRotationAlgorithm = {}));
11590
+ /** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */
11591
+ var KnownIndexerExecutionEnvironment;
11592
+ (function (KnownIndexerExecutionEnvironment) {
11593
+ /** Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */
11594
+ KnownIndexerExecutionEnvironment["Standard"] = "standard";
11595
+ /** 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. */
11596
+ KnownIndexerExecutionEnvironment["Private"] = "private";
11597
+ })(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
11598
+ (function (KnownIndexerExecutionStatusDetail) {
11599
+ /** Indicates that the reset that occurred was for a call to ResetDocs. */
11600
+ KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
11601
+ })(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
11602
+ (function (KnownIndexingMode) {
11603
+ /** The indexer is indexing all documents in the datasource. */
11604
+ KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
11605
+ /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
11606
+ KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
11607
+ })(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
11608
+ /** Known values of {@link SearchFieldDataType} that the service accepts. */
11609
+ var KnownSearchFieldDataType;
11610
+ (function (KnownSearchFieldDataType) {
11611
+ /** Indicates that a field contains a string. */
11612
+ KnownSearchFieldDataType["String"] = "Edm.String";
11613
+ /** Indicates that a field contains a 32-bit signed integer. */
11614
+ KnownSearchFieldDataType["Int32"] = "Edm.Int32";
11615
+ /** Indicates that a field contains a 64-bit signed integer. */
11616
+ KnownSearchFieldDataType["Int64"] = "Edm.Int64";
11617
+ /** Indicates that a field contains an IEEE double-precision floating point number. */
11618
+ KnownSearchFieldDataType["Double"] = "Edm.Double";
11619
+ /** Indicates that a field contains a Boolean value (true or false). */
11620
+ KnownSearchFieldDataType["Boolean"] = "Edm.Boolean";
11621
+ /** Indicates that a field contains a date/time value, including timezone information. */
11622
+ KnownSearchFieldDataType["DateTimeOffset"] = "Edm.DateTimeOffset";
11623
+ /** Indicates that a field contains a geo-location in terms of longitude and latitude. */
11624
+ KnownSearchFieldDataType["GeographyPoint"] = "Edm.GeographyPoint";
11625
+ /** Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. */
11626
+ KnownSearchFieldDataType["Complex"] = "Edm.ComplexType";
11627
+ KnownSearchFieldDataType["CollectionEdmString"] = "Collection(Edm.String)";
11628
+ KnownSearchFieldDataType["CollectionEdmInt32"] = "Collection(Edm.Int32)";
11629
+ KnownSearchFieldDataType["CollectionEdmInt64"] = "Collection(Edm.Int64)";
11630
+ KnownSearchFieldDataType["CollectionEdmDouble"] = "Collection(Edm.Double)";
11631
+ KnownSearchFieldDataType["CollectionEdmBoolean"] = "Collection(Edm.Boolean)";
11632
+ KnownSearchFieldDataType["CollectionEdmDateTimeOffset"] = "Collection(Edm.DateTimeOffset)";
11633
+ KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
11634
+ KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
11635
+ })(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
11636
+ (function (KnownLexicalAnalyzerName) {
11637
+ /** Microsoft analyzer for Arabic. */
11638
+ KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
11639
+ /** Lucene analyzer for Arabic. */
11640
+ KnownLexicalAnalyzerName["ArLucene"] = "ar.lucene";
11641
+ /** Lucene analyzer for Armenian. */
11642
+ KnownLexicalAnalyzerName["HyLucene"] = "hy.lucene";
11643
+ /** Microsoft analyzer for Bangla. */
11644
+ KnownLexicalAnalyzerName["BnMicrosoft"] = "bn.microsoft";
11645
+ /** Lucene analyzer for Basque. */
11646
+ KnownLexicalAnalyzerName["EuLucene"] = "eu.lucene";
11647
+ /** Microsoft analyzer for Bulgarian. */
11648
+ KnownLexicalAnalyzerName["BgMicrosoft"] = "bg.microsoft";
11649
+ /** Lucene analyzer for Bulgarian. */
11650
+ KnownLexicalAnalyzerName["BgLucene"] = "bg.lucene";
11651
+ /** Microsoft analyzer for Catalan. */
11652
+ KnownLexicalAnalyzerName["CaMicrosoft"] = "ca.microsoft";
11653
+ /** Lucene analyzer for Catalan. */
11654
+ KnownLexicalAnalyzerName["CaLucene"] = "ca.lucene";
11655
+ /** Microsoft analyzer for Chinese (Simplified). */
11656
+ KnownLexicalAnalyzerName["ZhHansMicrosoft"] = "zh-Hans.microsoft";
11657
+ /** Lucene analyzer for Chinese (Simplified). */
11658
+ KnownLexicalAnalyzerName["ZhHansLucene"] = "zh-Hans.lucene";
11659
+ /** Microsoft analyzer for Chinese (Traditional). */
11660
+ KnownLexicalAnalyzerName["ZhHantMicrosoft"] = "zh-Hant.microsoft";
11661
+ /** Lucene analyzer for Chinese (Traditional). */
11662
+ KnownLexicalAnalyzerName["ZhHantLucene"] = "zh-Hant.lucene";
11663
+ /** Microsoft analyzer for Croatian. */
11664
+ KnownLexicalAnalyzerName["HrMicrosoft"] = "hr.microsoft";
11665
+ /** Microsoft analyzer for Czech. */
11666
+ KnownLexicalAnalyzerName["CsMicrosoft"] = "cs.microsoft";
11667
+ /** Lucene analyzer for Czech. */
11668
+ KnownLexicalAnalyzerName["CsLucene"] = "cs.lucene";
11669
+ /** Microsoft analyzer for Danish. */
11670
+ KnownLexicalAnalyzerName["DaMicrosoft"] = "da.microsoft";
11671
+ /** Lucene analyzer for Danish. */
11672
+ KnownLexicalAnalyzerName["DaLucene"] = "da.lucene";
11673
+ /** Microsoft analyzer for Dutch. */
11674
+ KnownLexicalAnalyzerName["NlMicrosoft"] = "nl.microsoft";
11675
+ /** Lucene analyzer for Dutch. */
11676
+ KnownLexicalAnalyzerName["NlLucene"] = "nl.lucene";
11677
+ /** Microsoft analyzer for English. */
11678
+ KnownLexicalAnalyzerName["EnMicrosoft"] = "en.microsoft";
11679
+ /** Lucene analyzer for English. */
11680
+ KnownLexicalAnalyzerName["EnLucene"] = "en.lucene";
11681
+ /** Microsoft analyzer for Estonian. */
11682
+ KnownLexicalAnalyzerName["EtMicrosoft"] = "et.microsoft";
11683
+ /** Microsoft analyzer for Finnish. */
11684
+ KnownLexicalAnalyzerName["FiMicrosoft"] = "fi.microsoft";
11685
+ /** Lucene analyzer for Finnish. */
11686
+ KnownLexicalAnalyzerName["FiLucene"] = "fi.lucene";
11687
+ /** Microsoft analyzer for French. */
11688
+ KnownLexicalAnalyzerName["FrMicrosoft"] = "fr.microsoft";
11689
+ /** Lucene analyzer for French. */
11690
+ KnownLexicalAnalyzerName["FrLucene"] = "fr.lucene";
11691
+ /** Lucene analyzer for Galician. */
11692
+ KnownLexicalAnalyzerName["GlLucene"] = "gl.lucene";
11693
+ /** Microsoft analyzer for German. */
11694
+ KnownLexicalAnalyzerName["DeMicrosoft"] = "de.microsoft";
11695
+ /** Lucene analyzer for German. */
11696
+ KnownLexicalAnalyzerName["DeLucene"] = "de.lucene";
11697
+ /** Microsoft analyzer for Greek. */
11698
+ KnownLexicalAnalyzerName["ElMicrosoft"] = "el.microsoft";
11699
+ /** Lucene analyzer for Greek. */
11700
+ KnownLexicalAnalyzerName["ElLucene"] = "el.lucene";
11701
+ /** Microsoft analyzer for Gujarati. */
11702
+ KnownLexicalAnalyzerName["GuMicrosoft"] = "gu.microsoft";
11703
+ /** Microsoft analyzer for Hebrew. */
11704
+ KnownLexicalAnalyzerName["HeMicrosoft"] = "he.microsoft";
11705
+ /** Microsoft analyzer for Hindi. */
11706
+ KnownLexicalAnalyzerName["HiMicrosoft"] = "hi.microsoft";
11707
+ /** Lucene analyzer for Hindi. */
11708
+ KnownLexicalAnalyzerName["HiLucene"] = "hi.lucene";
11709
+ /** Microsoft analyzer for Hungarian. */
11710
+ KnownLexicalAnalyzerName["HuMicrosoft"] = "hu.microsoft";
11711
+ /** Lucene analyzer for Hungarian. */
11712
+ KnownLexicalAnalyzerName["HuLucene"] = "hu.lucene";
11713
+ /** Microsoft analyzer for Icelandic. */
11714
+ KnownLexicalAnalyzerName["IsMicrosoft"] = "is.microsoft";
11715
+ /** Microsoft analyzer for Indonesian (Bahasa). */
11716
+ KnownLexicalAnalyzerName["IdMicrosoft"] = "id.microsoft";
11717
+ /** Lucene analyzer for Indonesian. */
11718
+ KnownLexicalAnalyzerName["IdLucene"] = "id.lucene";
11719
+ /** Lucene analyzer for Irish. */
11720
+ KnownLexicalAnalyzerName["GaLucene"] = "ga.lucene";
11721
+ /** Microsoft analyzer for Italian. */
11722
+ KnownLexicalAnalyzerName["ItMicrosoft"] = "it.microsoft";
11723
+ /** Lucene analyzer for Italian. */
11724
+ KnownLexicalAnalyzerName["ItLucene"] = "it.lucene";
11725
+ /** Microsoft analyzer for Japanese. */
11726
+ KnownLexicalAnalyzerName["JaMicrosoft"] = "ja.microsoft";
11727
+ /** Lucene analyzer for Japanese. */
11728
+ KnownLexicalAnalyzerName["JaLucene"] = "ja.lucene";
11729
+ /** Microsoft analyzer for Kannada. */
11730
+ KnownLexicalAnalyzerName["KnMicrosoft"] = "kn.microsoft";
11731
+ /** Microsoft analyzer for Korean. */
11732
+ KnownLexicalAnalyzerName["KoMicrosoft"] = "ko.microsoft";
11733
+ /** Lucene analyzer for Korean. */
11734
+ KnownLexicalAnalyzerName["KoLucene"] = "ko.lucene";
11735
+ /** Microsoft analyzer for Latvian. */
11736
+ KnownLexicalAnalyzerName["LvMicrosoft"] = "lv.microsoft";
11737
+ /** Lucene analyzer for Latvian. */
11738
+ KnownLexicalAnalyzerName["LvLucene"] = "lv.lucene";
11739
+ /** Microsoft analyzer for Lithuanian. */
11740
+ KnownLexicalAnalyzerName["LtMicrosoft"] = "lt.microsoft";
11741
+ /** Microsoft analyzer for Malayalam. */
11742
+ KnownLexicalAnalyzerName["MlMicrosoft"] = "ml.microsoft";
11743
+ /** Microsoft analyzer for Malay (Latin). */
11744
+ KnownLexicalAnalyzerName["MsMicrosoft"] = "ms.microsoft";
11745
+ /** Microsoft analyzer for Marathi. */
11746
+ KnownLexicalAnalyzerName["MrMicrosoft"] = "mr.microsoft";
11747
+ /** Microsoft analyzer for Norwegian (Bokmål). */
11748
+ KnownLexicalAnalyzerName["NbMicrosoft"] = "nb.microsoft";
11749
+ /** Lucene analyzer for Norwegian. */
11750
+ KnownLexicalAnalyzerName["NoLucene"] = "no.lucene";
11751
+ /** Lucene analyzer for Persian. */
11752
+ KnownLexicalAnalyzerName["FaLucene"] = "fa.lucene";
11753
+ /** Microsoft analyzer for Polish. */
11754
+ KnownLexicalAnalyzerName["PlMicrosoft"] = "pl.microsoft";
11755
+ /** Lucene analyzer for Polish. */
11756
+ KnownLexicalAnalyzerName["PlLucene"] = "pl.lucene";
11757
+ /** Microsoft analyzer for Portuguese (Brazil). */
11758
+ KnownLexicalAnalyzerName["PtBrMicrosoft"] = "pt-BR.microsoft";
11759
+ /** Lucene analyzer for Portuguese (Brazil). */
11760
+ KnownLexicalAnalyzerName["PtBrLucene"] = "pt-BR.lucene";
11761
+ /** Microsoft analyzer for Portuguese (Portugal). */
11762
+ KnownLexicalAnalyzerName["PtPtMicrosoft"] = "pt-PT.microsoft";
11763
+ /** Lucene analyzer for Portuguese (Portugal). */
11764
+ KnownLexicalAnalyzerName["PtPtLucene"] = "pt-PT.lucene";
11765
+ /** Microsoft analyzer for Punjabi. */
11766
+ KnownLexicalAnalyzerName["PaMicrosoft"] = "pa.microsoft";
11767
+ /** Microsoft analyzer for Romanian. */
11768
+ KnownLexicalAnalyzerName["RoMicrosoft"] = "ro.microsoft";
11769
+ /** Lucene analyzer for Romanian. */
11770
+ KnownLexicalAnalyzerName["RoLucene"] = "ro.lucene";
11771
+ /** Microsoft analyzer for Russian. */
11772
+ KnownLexicalAnalyzerName["RuMicrosoft"] = "ru.microsoft";
11773
+ /** Lucene analyzer for Russian. */
11774
+ KnownLexicalAnalyzerName["RuLucene"] = "ru.lucene";
11775
+ /** Microsoft analyzer for Serbian (Cyrillic). */
11776
+ KnownLexicalAnalyzerName["SrCyrillicMicrosoft"] = "sr-cyrillic.microsoft";
11777
+ /** Microsoft analyzer for Serbian (Latin). */
11778
+ KnownLexicalAnalyzerName["SrLatinMicrosoft"] = "sr-latin.microsoft";
11779
+ /** Microsoft analyzer for Slovak. */
11780
+ KnownLexicalAnalyzerName["SkMicrosoft"] = "sk.microsoft";
11781
+ /** Microsoft analyzer for Slovenian. */
11782
+ KnownLexicalAnalyzerName["SlMicrosoft"] = "sl.microsoft";
11783
+ /** Microsoft analyzer for Spanish. */
11784
+ KnownLexicalAnalyzerName["EsMicrosoft"] = "es.microsoft";
11785
+ /** Lucene analyzer for Spanish. */
11786
+ KnownLexicalAnalyzerName["EsLucene"] = "es.lucene";
11787
+ /** Microsoft analyzer for Swedish. */
11788
+ KnownLexicalAnalyzerName["SvMicrosoft"] = "sv.microsoft";
11789
+ /** Lucene analyzer for Swedish. */
11790
+ KnownLexicalAnalyzerName["SvLucene"] = "sv.lucene";
11791
+ /** Microsoft analyzer for Tamil. */
11792
+ KnownLexicalAnalyzerName["TaMicrosoft"] = "ta.microsoft";
11793
+ /** Microsoft analyzer for Telugu. */
11794
+ KnownLexicalAnalyzerName["TeMicrosoft"] = "te.microsoft";
11795
+ /** Microsoft analyzer for Thai. */
11796
+ KnownLexicalAnalyzerName["ThMicrosoft"] = "th.microsoft";
11797
+ /** Lucene analyzer for Thai. */
11798
+ KnownLexicalAnalyzerName["ThLucene"] = "th.lucene";
11799
+ /** Microsoft analyzer for Turkish. */
11800
+ KnownLexicalAnalyzerName["TrMicrosoft"] = "tr.microsoft";
11801
+ /** Lucene analyzer for Turkish. */
11802
+ KnownLexicalAnalyzerName["TrLucene"] = "tr.lucene";
11803
+ /** Microsoft analyzer for Ukrainian. */
11804
+ KnownLexicalAnalyzerName["UkMicrosoft"] = "uk.microsoft";
11805
+ /** Microsoft analyzer for Urdu. */
11806
+ KnownLexicalAnalyzerName["UrMicrosoft"] = "ur.microsoft";
11807
+ /** Microsoft analyzer for Vietnamese. */
11808
+ KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
11809
+ /** Standard Lucene analyzer. */
11810
+ KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
11811
+ /** Standard ASCII Folding Lucene analyzer. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#Analyzers */
11812
+ KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
11813
+ /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordAnalyzer.html */
11814
+ KnownLexicalAnalyzerName["Keyword"] = "keyword";
11815
+ /** Flexibly separates text into terms via a regular expression pattern. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/PatternAnalyzer.html */
11816
+ KnownLexicalAnalyzerName["Pattern"] = "pattern";
11817
+ /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/SimpleAnalyzer.html */
11818
+ KnownLexicalAnalyzerName["Simple"] = "simple";
11819
+ /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html */
11820
+ KnownLexicalAnalyzerName["Stop"] = "stop";
11821
+ /** 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 */
11822
+ KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
11823
+ })(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
11824
+ (function (KnownLexicalNormalizerName) {
11825
+ /** 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 */
11826
+ KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
11827
+ /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
11828
+ KnownLexicalNormalizerName["Elision"] = "elision";
11829
+ /** Normalizes token text to lowercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
11830
+ KnownLexicalNormalizerName["Lowercase"] = "lowercase";
11831
+ /** Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
11832
+ KnownLexicalNormalizerName["Standard"] = "standard";
11833
+ /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
11834
+ KnownLexicalNormalizerName["Uppercase"] = "uppercase";
11835
+ })(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
11836
+ (function (KnownTokenFilterName) {
11837
+ /** 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 */
11838
+ KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
11839
+ /** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */
11840
+ KnownTokenFilterName["Apostrophe"] = "apostrophe";
11841
+ /** 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 */
11842
+ KnownTokenFilterName["AsciiFolding"] = "asciifolding";
11843
+ /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */
11844
+ KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
11845
+ /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html */
11846
+ KnownTokenFilterName["CjkWidth"] = "cjk_width";
11847
+ /** Removes English possessives, and dots from acronyms. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html */
11848
+ KnownTokenFilterName["Classic"] = "classic";
11849
+ /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html */
11850
+ KnownTokenFilterName["CommonGram"] = "common_grams";
11851
+ /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html */
11852
+ KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
11853
+ /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */
11854
+ KnownTokenFilterName["Elision"] = "elision";
11855
+ /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html */
11856
+ KnownTokenFilterName["GermanNormalization"] = "german_normalization";
11857
+ /** Normalizes text in Hindi to remove some differences in spelling variations. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html */
11858
+ KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
11859
+ /** Normalizes the Unicode representation of text in Indian languages. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html */
11860
+ KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
11861
+ /** Emits each incoming token twice, once as keyword and once as non-keyword. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html */
11862
+ KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
11863
+ /** A high-performance kstem filter for English. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html */
11864
+ KnownTokenFilterName["KStem"] = "kstem";
11865
+ /** Removes words that are too long or too short. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html */
11866
+ KnownTokenFilterName["Length"] = "length";
11867
+ /** Limits the number of tokens while indexing. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html */
11868
+ KnownTokenFilterName["Limit"] = "limit";
11869
+ /** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
11870
+ KnownTokenFilterName["Lowercase"] = "lowercase";
11871
+ /** Generates n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html */
11872
+ KnownTokenFilterName["NGram"] = "nGram_v2";
11873
+ /** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */
11874
+ KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
11875
+ /** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */
11876
+ KnownTokenFilterName["Phonetic"] = "phonetic";
11877
+ /** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */
11878
+ KnownTokenFilterName["PorterStem"] = "porter_stem";
11879
+ /** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
11880
+ KnownTokenFilterName["Reverse"] = "reverse";
11881
+ /** Normalizes use of the interchangeable Scandinavian characters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html */
11882
+ KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
11883
+ /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html */
11884
+ KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
11885
+ /** Creates combinations of tokens as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html */
11886
+ KnownTokenFilterName["Shingle"] = "shingle";
11887
+ /** A filter that stems words using a Snowball-generated stemmer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html */
11888
+ KnownTokenFilterName["Snowball"] = "snowball";
11889
+ /** Normalizes the Unicode representation of Sorani text. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html */
11890
+ KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
11891
+ /** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */
11892
+ KnownTokenFilterName["Stemmer"] = "stemmer";
11893
+ /** Removes stop words from a token stream. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html */
11894
+ KnownTokenFilterName["Stopwords"] = "stopwords";
11895
+ /** Trims leading and trailing whitespace from tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html */
11896
+ KnownTokenFilterName["Trim"] = "trim";
11897
+ /** Truncates the terms to a specific length. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html */
11898
+ KnownTokenFilterName["Truncate"] = "truncate";
11899
+ /** Filters out tokens with same text as the previous token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html */
11900
+ KnownTokenFilterName["Unique"] = "unique";
11901
+ /** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
11902
+ KnownTokenFilterName["Uppercase"] = "uppercase";
11903
+ /** Splits words into subwords and performs optional transformations on subword groups. */
11904
+ KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
11905
+ })(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
11906
+ (function (KnownCharFilterName) {
11907
+ /** 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 */
11908
+ KnownCharFilterName["HtmlStrip"] = "html_strip";
11909
+ })(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
11910
+ (function (KnownKeyPhraseExtractionSkillLanguage) {
11911
+ /** Danish */
11912
+ KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
11913
+ /** Dutch */
11914
+ KnownKeyPhraseExtractionSkillLanguage["Nl"] = "nl";
11915
+ /** English */
11916
+ KnownKeyPhraseExtractionSkillLanguage["En"] = "en";
11917
+ /** Finnish */
11918
+ KnownKeyPhraseExtractionSkillLanguage["Fi"] = "fi";
11919
+ /** French */
11920
+ KnownKeyPhraseExtractionSkillLanguage["Fr"] = "fr";
11921
+ /** German */
11922
+ KnownKeyPhraseExtractionSkillLanguage["De"] = "de";
11923
+ /** Italian */
11924
+ KnownKeyPhraseExtractionSkillLanguage["It"] = "it";
11925
+ /** Japanese */
11926
+ KnownKeyPhraseExtractionSkillLanguage["Ja"] = "ja";
11927
+ /** Korean */
11928
+ KnownKeyPhraseExtractionSkillLanguage["Ko"] = "ko";
11929
+ /** Norwegian (Bokmaal) */
11930
+ KnownKeyPhraseExtractionSkillLanguage["No"] = "no";
11931
+ /** Polish */
11932
+ KnownKeyPhraseExtractionSkillLanguage["Pl"] = "pl";
11933
+ /** Portuguese (Portugal) */
11934
+ KnownKeyPhraseExtractionSkillLanguage["PtPT"] = "pt-PT";
11935
+ /** Portuguese (Brazil) */
11936
+ KnownKeyPhraseExtractionSkillLanguage["PtBR"] = "pt-BR";
11937
+ /** Russian */
11938
+ KnownKeyPhraseExtractionSkillLanguage["Ru"] = "ru";
11939
+ /** Spanish */
11940
+ KnownKeyPhraseExtractionSkillLanguage["Es"] = "es";
11941
+ /** Swedish */
11942
+ KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
11943
+ })(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
11944
+ (function (KnownOcrSkillLanguage) {
11945
+ /** Chinese-Simplified */
11946
+ KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
11947
+ /** Chinese-Traditional */
11948
+ KnownOcrSkillLanguage["ZhHant"] = "zh-Hant";
11949
+ /** Czech */
11950
+ KnownOcrSkillLanguage["Cs"] = "cs";
11951
+ /** Danish */
11952
+ KnownOcrSkillLanguage["Da"] = "da";
11953
+ /** Dutch */
11954
+ KnownOcrSkillLanguage["Nl"] = "nl";
11955
+ /** English */
11956
+ KnownOcrSkillLanguage["En"] = "en";
11957
+ /** Finnish */
11958
+ KnownOcrSkillLanguage["Fi"] = "fi";
11959
+ /** French */
11960
+ KnownOcrSkillLanguage["Fr"] = "fr";
11961
+ /** German */
11962
+ KnownOcrSkillLanguage["De"] = "de";
11963
+ /** Greek */
11964
+ KnownOcrSkillLanguage["El"] = "el";
11965
+ /** Hungarian */
11966
+ KnownOcrSkillLanguage["Hu"] = "hu";
11967
+ /** Italian */
11968
+ KnownOcrSkillLanguage["It"] = "it";
11969
+ /** Japanese */
11970
+ KnownOcrSkillLanguage["Ja"] = "ja";
11971
+ /** Korean */
11972
+ KnownOcrSkillLanguage["Ko"] = "ko";
11973
+ /** Norwegian (Bokmaal) */
11974
+ KnownOcrSkillLanguage["Nb"] = "nb";
11975
+ /** Polish */
11976
+ KnownOcrSkillLanguage["Pl"] = "pl";
11977
+ /** Portuguese */
11978
+ KnownOcrSkillLanguage["Pt"] = "pt";
11979
+ /** Russian */
11980
+ KnownOcrSkillLanguage["Ru"] = "ru";
11981
+ /** Spanish */
11982
+ KnownOcrSkillLanguage["Es"] = "es";
11983
+ /** Swedish */
11984
+ KnownOcrSkillLanguage["Sv"] = "sv";
11985
+ /** Turkish */
11986
+ KnownOcrSkillLanguage["Tr"] = "tr";
11987
+ /** Arabic */
11988
+ KnownOcrSkillLanguage["Ar"] = "ar";
11989
+ /** Romanian */
11990
+ KnownOcrSkillLanguage["Ro"] = "ro";
11991
+ /** Serbian (Cyrillic, Serbia) */
11992
+ KnownOcrSkillLanguage["SrCyrl"] = "sr-Cyrl";
11993
+ /** Serbian (Latin, Serbia) */
11994
+ KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
11995
+ /** Slovak */
11996
+ KnownOcrSkillLanguage["Sk"] = "sk";
11997
+ })(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
11998
+ (function (KnownLineEnding) {
11999
+ /** Lines are separated by a single space character. */
12000
+ KnownLineEnding["Space"] = "space";
12001
+ /** Lines are separated by a carriage return ('\r') character. */
12002
+ KnownLineEnding["CarriageReturn"] = "carriageReturn";
12003
+ /** Lines are separated by a single line feed ('\n') character. */
12004
+ KnownLineEnding["LineFeed"] = "lineFeed";
12005
+ /** Lines are separated by a carriage return and a line feed ('\r\n') character. */
12006
+ KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
12007
+ })(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
12008
+ (function (KnownImageAnalysisSkillLanguage) {
12009
+ /** English */
12010
+ KnownImageAnalysisSkillLanguage["En"] = "en";
12011
+ /** Spanish */
12012
+ KnownImageAnalysisSkillLanguage["Es"] = "es";
12013
+ /** Japanese */
12014
+ KnownImageAnalysisSkillLanguage["Ja"] = "ja";
12015
+ /** Portuguese */
12016
+ KnownImageAnalysisSkillLanguage["Pt"] = "pt";
12017
+ /** Chinese */
12018
+ KnownImageAnalysisSkillLanguage["Zh"] = "zh";
12019
+ })(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
12020
+ (function (KnownVisualFeature) {
12021
+ /** Visual features recognized as adult persons. */
12022
+ KnownVisualFeature["Adult"] = "adult";
12023
+ /** Visual features recognized as commercial brands. */
12024
+ KnownVisualFeature["Brands"] = "brands";
12025
+ /** Categories. */
12026
+ KnownVisualFeature["Categories"] = "categories";
12027
+ /** Description. */
12028
+ KnownVisualFeature["Description"] = "description";
12029
+ /** Visual features recognized as people faces. */
12030
+ KnownVisualFeature["Faces"] = "faces";
12031
+ /** Visual features recognized as objects. */
12032
+ KnownVisualFeature["Objects"] = "objects";
12033
+ /** Tags. */
12034
+ KnownVisualFeature["Tags"] = "tags";
12035
+ })(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
12036
+ (function (KnownImageDetail) {
12037
+ /** Details recognized as celebrities. */
12038
+ KnownImageDetail["Celebrities"] = "celebrities";
12039
+ /** Details recognized as landmarks. */
12040
+ KnownImageDetail["Landmarks"] = "landmarks";
12041
+ })(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
12042
+ (function (KnownEntityCategory) {
12043
+ /** Entities describing a physical location. */
12044
+ KnownEntityCategory["Location"] = "location";
12045
+ /** Entities describing an organization. */
12046
+ KnownEntityCategory["Organization"] = "organization";
12047
+ /** Entities describing a person. */
12048
+ KnownEntityCategory["Person"] = "person";
12049
+ /** Entities describing a quantity. */
12050
+ KnownEntityCategory["Quantity"] = "quantity";
12051
+ /** Entities describing a date and time. */
12052
+ KnownEntityCategory["Datetime"] = "datetime";
12053
+ /** Entities describing a URL. */
12054
+ KnownEntityCategory["Url"] = "url";
12055
+ /** Entities describing an email address. */
12056
+ KnownEntityCategory["Email"] = "email";
12057
+ })(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
12058
+ (function (KnownEntityRecognitionSkillLanguage) {
12059
+ /** Arabic */
12060
+ KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
12061
+ /** Czech */
12062
+ KnownEntityRecognitionSkillLanguage["Cs"] = "cs";
12063
+ /** Chinese-Simplified */
12064
+ KnownEntityRecognitionSkillLanguage["ZhHans"] = "zh-Hans";
12065
+ /** Chinese-Traditional */
12066
+ KnownEntityRecognitionSkillLanguage["ZhHant"] = "zh-Hant";
12067
+ /** Danish */
12068
+ KnownEntityRecognitionSkillLanguage["Da"] = "da";
12069
+ /** Dutch */
12070
+ KnownEntityRecognitionSkillLanguage["Nl"] = "nl";
12071
+ /** English */
12072
+ KnownEntityRecognitionSkillLanguage["En"] = "en";
12073
+ /** Finnish */
12074
+ KnownEntityRecognitionSkillLanguage["Fi"] = "fi";
12075
+ /** French */
12076
+ KnownEntityRecognitionSkillLanguage["Fr"] = "fr";
12077
+ /** German */
12078
+ KnownEntityRecognitionSkillLanguage["De"] = "de";
12079
+ /** Greek */
12080
+ KnownEntityRecognitionSkillLanguage["El"] = "el";
12081
+ /** Hungarian */
12082
+ KnownEntityRecognitionSkillLanguage["Hu"] = "hu";
12083
+ /** Italian */
12084
+ KnownEntityRecognitionSkillLanguage["It"] = "it";
12085
+ /** Japanese */
12086
+ KnownEntityRecognitionSkillLanguage["Ja"] = "ja";
12087
+ /** Korean */
12088
+ KnownEntityRecognitionSkillLanguage["Ko"] = "ko";
12089
+ /** Norwegian (Bokmaal) */
12090
+ KnownEntityRecognitionSkillLanguage["No"] = "no";
12091
+ /** Polish */
12092
+ KnownEntityRecognitionSkillLanguage["Pl"] = "pl";
12093
+ /** Portuguese (Portugal) */
12094
+ KnownEntityRecognitionSkillLanguage["PtPT"] = "pt-PT";
12095
+ /** Portuguese (Brazil) */
12096
+ KnownEntityRecognitionSkillLanguage["PtBR"] = "pt-BR";
12097
+ /** Russian */
12098
+ KnownEntityRecognitionSkillLanguage["Ru"] = "ru";
12099
+ /** Spanish */
12100
+ KnownEntityRecognitionSkillLanguage["Es"] = "es";
12101
+ /** Swedish */
12102
+ KnownEntityRecognitionSkillLanguage["Sv"] = "sv";
12103
+ /** Turkish */
12104
+ KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
12105
+ })(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
12106
+ (function (KnownSentimentSkillLanguage) {
12107
+ /** Danish */
12108
+ KnownSentimentSkillLanguage["Da"] = "da";
12109
+ /** Dutch */
12110
+ KnownSentimentSkillLanguage["Nl"] = "nl";
12111
+ /** English */
12112
+ KnownSentimentSkillLanguage["En"] = "en";
12113
+ /** Finnish */
12114
+ KnownSentimentSkillLanguage["Fi"] = "fi";
12115
+ /** French */
12116
+ KnownSentimentSkillLanguage["Fr"] = "fr";
12117
+ /** German */
12118
+ KnownSentimentSkillLanguage["De"] = "de";
12119
+ /** Greek */
12120
+ KnownSentimentSkillLanguage["El"] = "el";
12121
+ /** Italian */
12122
+ KnownSentimentSkillLanguage["It"] = "it";
12123
+ /** Norwegian (Bokmaal) */
12124
+ KnownSentimentSkillLanguage["No"] = "no";
12125
+ /** Polish */
12126
+ KnownSentimentSkillLanguage["Pl"] = "pl";
12127
+ /** Portuguese (Portugal) */
12128
+ KnownSentimentSkillLanguage["PtPT"] = "pt-PT";
12129
+ /** Russian */
12130
+ KnownSentimentSkillLanguage["Ru"] = "ru";
12131
+ /** Spanish */
12132
+ KnownSentimentSkillLanguage["Es"] = "es";
12133
+ /** Swedish */
12134
+ KnownSentimentSkillLanguage["Sv"] = "sv";
12135
+ /** Turkish */
12136
+ KnownSentimentSkillLanguage["Tr"] = "tr";
12137
+ })(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
12138
+ (function (KnownPIIDetectionSkillMaskingMode) {
12139
+ /** No masking occurs and the maskedText output will not be returned. */
12140
+ KnownPIIDetectionSkillMaskingMode["None"] = "none";
12141
+ /** 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. */
12142
+ KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
12143
+ })(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
12144
+ (function (KnownSplitSkillLanguage) {
12145
+ /** Danish */
12146
+ KnownSplitSkillLanguage["Da"] = "da";
12147
+ /** German */
12148
+ KnownSplitSkillLanguage["De"] = "de";
12149
+ /** English */
12150
+ KnownSplitSkillLanguage["En"] = "en";
12151
+ /** Spanish */
12152
+ KnownSplitSkillLanguage["Es"] = "es";
12153
+ /** Finnish */
12154
+ KnownSplitSkillLanguage["Fi"] = "fi";
12155
+ /** French */
12156
+ KnownSplitSkillLanguage["Fr"] = "fr";
12157
+ /** Italian */
12158
+ KnownSplitSkillLanguage["It"] = "it";
12159
+ /** Korean */
12160
+ KnownSplitSkillLanguage["Ko"] = "ko";
12161
+ /** Portuguese */
12162
+ KnownSplitSkillLanguage["Pt"] = "pt";
12163
+ })(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
12164
+ (function (KnownTextSplitMode) {
12165
+ /** Split the text into individual pages. */
12166
+ KnownTextSplitMode["Pages"] = "pages";
12167
+ /** Split the text into individual sentences. */
12168
+ KnownTextSplitMode["Sentences"] = "sentences";
12169
+ })(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
12170
+ (function (KnownCustomEntityLookupSkillLanguage) {
12171
+ /** Danish */
12172
+ KnownCustomEntityLookupSkillLanguage["Da"] = "da";
12173
+ /** German */
12174
+ KnownCustomEntityLookupSkillLanguage["De"] = "de";
12175
+ /** English */
12176
+ KnownCustomEntityLookupSkillLanguage["En"] = "en";
12177
+ /** Spanish */
12178
+ KnownCustomEntityLookupSkillLanguage["Es"] = "es";
12179
+ /** Finnish */
12180
+ KnownCustomEntityLookupSkillLanguage["Fi"] = "fi";
12181
+ /** French */
12182
+ KnownCustomEntityLookupSkillLanguage["Fr"] = "fr";
12183
+ /** Italian */
12184
+ KnownCustomEntityLookupSkillLanguage["It"] = "it";
12185
+ /** Korean */
12186
+ KnownCustomEntityLookupSkillLanguage["Ko"] = "ko";
12187
+ /** Portuguese */
12188
+ KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
12189
+ })(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
12190
+ (function (KnownTextTranslationSkillLanguage) {
12191
+ /** Afrikaans */
12192
+ KnownTextTranslationSkillLanguage["Af"] = "af";
12193
+ /** Arabic */
12194
+ KnownTextTranslationSkillLanguage["Ar"] = "ar";
12195
+ /** Bangla */
12196
+ KnownTextTranslationSkillLanguage["Bn"] = "bn";
12197
+ /** Bosnian (Latin) */
12198
+ KnownTextTranslationSkillLanguage["Bs"] = "bs";
12199
+ /** Bulgarian */
12200
+ KnownTextTranslationSkillLanguage["Bg"] = "bg";
12201
+ /** Cantonese (Traditional) */
12202
+ KnownTextTranslationSkillLanguage["Yue"] = "yue";
12203
+ /** Catalan */
12204
+ KnownTextTranslationSkillLanguage["Ca"] = "ca";
12205
+ /** Chinese Simplified */
12206
+ KnownTextTranslationSkillLanguage["ZhHans"] = "zh-Hans";
12207
+ /** Chinese Traditional */
12208
+ KnownTextTranslationSkillLanguage["ZhHant"] = "zh-Hant";
12209
+ /** Croatian */
12210
+ KnownTextTranslationSkillLanguage["Hr"] = "hr";
12211
+ /** Czech */
12212
+ KnownTextTranslationSkillLanguage["Cs"] = "cs";
12213
+ /** Danish */
12214
+ KnownTextTranslationSkillLanguage["Da"] = "da";
12215
+ /** Dutch */
12216
+ KnownTextTranslationSkillLanguage["Nl"] = "nl";
12217
+ /** English */
12218
+ KnownTextTranslationSkillLanguage["En"] = "en";
12219
+ /** Estonian */
12220
+ KnownTextTranslationSkillLanguage["Et"] = "et";
12221
+ /** Fijian */
12222
+ KnownTextTranslationSkillLanguage["Fj"] = "fj";
12223
+ /** Filipino */
12224
+ KnownTextTranslationSkillLanguage["Fil"] = "fil";
12225
+ /** Finnish */
12226
+ KnownTextTranslationSkillLanguage["Fi"] = "fi";
12227
+ /** French */
12228
+ KnownTextTranslationSkillLanguage["Fr"] = "fr";
12229
+ /** German */
12230
+ KnownTextTranslationSkillLanguage["De"] = "de";
12231
+ /** Greek */
12232
+ KnownTextTranslationSkillLanguage["El"] = "el";
12233
+ /** Haitian Creole */
12234
+ KnownTextTranslationSkillLanguage["Ht"] = "ht";
12235
+ /** Hebrew */
12236
+ KnownTextTranslationSkillLanguage["He"] = "he";
12237
+ /** Hindi */
12238
+ KnownTextTranslationSkillLanguage["Hi"] = "hi";
12239
+ /** Hmong Daw */
12240
+ KnownTextTranslationSkillLanguage["Mww"] = "mww";
12241
+ /** Hungarian */
12242
+ KnownTextTranslationSkillLanguage["Hu"] = "hu";
12243
+ /** Icelandic */
12244
+ KnownTextTranslationSkillLanguage["Is"] = "is";
12245
+ /** Indonesian */
12246
+ KnownTextTranslationSkillLanguage["Id"] = "id";
12247
+ /** Italian */
12248
+ KnownTextTranslationSkillLanguage["It"] = "it";
12249
+ /** Japanese */
12250
+ KnownTextTranslationSkillLanguage["Ja"] = "ja";
12251
+ /** Kiswahili */
12252
+ KnownTextTranslationSkillLanguage["Sw"] = "sw";
12253
+ /** Klingon */
12254
+ KnownTextTranslationSkillLanguage["Tlh"] = "tlh";
12255
+ /** Klingon (Latin script) */
12256
+ KnownTextTranslationSkillLanguage["TlhLatn"] = "tlh-Latn";
12257
+ /** Klingon (Klingon script) */
12258
+ KnownTextTranslationSkillLanguage["TlhPiqd"] = "tlh-Piqd";
12259
+ /** Korean */
12260
+ KnownTextTranslationSkillLanguage["Ko"] = "ko";
12261
+ /** Latvian */
12262
+ KnownTextTranslationSkillLanguage["Lv"] = "lv";
12263
+ /** Lithuanian */
12264
+ KnownTextTranslationSkillLanguage["Lt"] = "lt";
12265
+ /** Malagasy */
12266
+ KnownTextTranslationSkillLanguage["Mg"] = "mg";
12267
+ /** Malay */
12268
+ KnownTextTranslationSkillLanguage["Ms"] = "ms";
12269
+ /** Maltese */
12270
+ KnownTextTranslationSkillLanguage["Mt"] = "mt";
12271
+ /** Norwegian */
12272
+ KnownTextTranslationSkillLanguage["Nb"] = "nb";
12273
+ /** Persian */
12274
+ KnownTextTranslationSkillLanguage["Fa"] = "fa";
12275
+ /** Polish */
12276
+ KnownTextTranslationSkillLanguage["Pl"] = "pl";
12277
+ /** Portuguese */
12278
+ KnownTextTranslationSkillLanguage["Pt"] = "pt";
12279
+ /** Portuguese (Brazil) */
12280
+ KnownTextTranslationSkillLanguage["PtBr"] = "pt-br";
12281
+ /** Portuguese (Portugal) */
12282
+ KnownTextTranslationSkillLanguage["PtPT"] = "pt-PT";
12283
+ /** Queretaro Otomi */
12284
+ KnownTextTranslationSkillLanguage["Otq"] = "otq";
12285
+ /** Romanian */
12286
+ KnownTextTranslationSkillLanguage["Ro"] = "ro";
12287
+ /** Russian */
12288
+ KnownTextTranslationSkillLanguage["Ru"] = "ru";
12289
+ /** Samoan */
12290
+ KnownTextTranslationSkillLanguage["Sm"] = "sm";
12291
+ /** Serbian (Cyrillic) */
12292
+ KnownTextTranslationSkillLanguage["SrCyrl"] = "sr-Cyrl";
12293
+ /** Serbian (Latin) */
12294
+ KnownTextTranslationSkillLanguage["SrLatn"] = "sr-Latn";
12295
+ /** Slovak */
12296
+ KnownTextTranslationSkillLanguage["Sk"] = "sk";
12297
+ /** Slovenian */
12298
+ KnownTextTranslationSkillLanguage["Sl"] = "sl";
12299
+ /** Spanish */
12300
+ KnownTextTranslationSkillLanguage["Es"] = "es";
12301
+ /** Swedish */
12302
+ KnownTextTranslationSkillLanguage["Sv"] = "sv";
12303
+ /** Tahitian */
12304
+ KnownTextTranslationSkillLanguage["Ty"] = "ty";
12305
+ /** Tamil */
12306
+ KnownTextTranslationSkillLanguage["Ta"] = "ta";
12307
+ /** Telugu */
12308
+ KnownTextTranslationSkillLanguage["Te"] = "te";
12309
+ /** Thai */
12310
+ KnownTextTranslationSkillLanguage["Th"] = "th";
12311
+ /** Tongan */
12312
+ KnownTextTranslationSkillLanguage["To"] = "to";
12313
+ /** Turkish */
12314
+ KnownTextTranslationSkillLanguage["Tr"] = "tr";
12315
+ /** Ukrainian */
12316
+ KnownTextTranslationSkillLanguage["Uk"] = "uk";
12317
+ /** Urdu */
12318
+ KnownTextTranslationSkillLanguage["Ur"] = "ur";
12319
+ /** Vietnamese */
12320
+ KnownTextTranslationSkillLanguage["Vi"] = "vi";
12321
+ /** Welsh */
12322
+ KnownTextTranslationSkillLanguage["Cy"] = "cy";
12323
+ /** Yucatec Maya */
12324
+ KnownTextTranslationSkillLanguage["Yua"] = "yua";
12325
+ /** Irish */
12326
+ KnownTextTranslationSkillLanguage["Ga"] = "ga";
12327
+ /** Kannada */
12328
+ KnownTextTranslationSkillLanguage["Kn"] = "kn";
12329
+ /** Maori */
12330
+ KnownTextTranslationSkillLanguage["Mi"] = "mi";
12331
+ /** Malayalam */
12332
+ KnownTextTranslationSkillLanguage["Ml"] = "ml";
12333
+ /** Punjabi */
12334
+ KnownTextTranslationSkillLanguage["Pa"] = "pa";
12335
+ })(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
12336
+ /** Known values of {@link LexicalTokenizerName} that the service accepts. */
12337
+ var KnownLexicalTokenizerName;
12338
+ (function (KnownLexicalTokenizerName) {
12339
+ /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html */
12340
+ KnownLexicalTokenizerName["Classic"] = "classic";
12341
+ /** Tokenizes the input from an edge into n-grams of the given size(s). See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html */
12342
+ KnownLexicalTokenizerName["EdgeNGram"] = "edgeNGram";
12343
+ /** Emits the entire input as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordTokenizer.html */
12344
+ KnownLexicalTokenizerName["Keyword"] = "keyword_v2";
12345
+ /** Divides text at non-letters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html */
12346
+ KnownLexicalTokenizerName["Letter"] = "letter";
12347
+ /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseTokenizer.html */
12348
+ KnownLexicalTokenizerName["Lowercase"] = "lowercase";
12349
+ /** Divides text using language-specific rules. */
12350
+ KnownLexicalTokenizerName["MicrosoftLanguageTokenizer"] = "microsoft_language_tokenizer";
12351
+ /** Divides text using language-specific rules and reduces words to their base forms. */
12352
+ KnownLexicalTokenizerName["MicrosoftLanguageStemmingTokenizer"] = "microsoft_language_stemming_tokenizer";
12353
+ /** Tokenizes the input into n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenizer.html */
12354
+ KnownLexicalTokenizerName["NGram"] = "nGram";
12355
+ /** Tokenizer for path-like hierarchies. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html */
12356
+ KnownLexicalTokenizerName["PathHierarchy"] = "path_hierarchy_v2";
12357
+ /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/pattern/PatternTokenizer.html */
12358
+ KnownLexicalTokenizerName["Pattern"] = "pattern";
12359
+ /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/StandardTokenizer.html */
12360
+ KnownLexicalTokenizerName["Standard"] = "standard_v2";
12361
+ /** Tokenizes urls and emails as one token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizer.html */
12362
+ KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
12363
+ /** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
12364
+ KnownLexicalTokenizerName["Whitespace"] = "whitespace";
12365
+ })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
12366
+ (function (KnownRegexFlags) {
12367
+ /** Enables canonical equivalence. */
12368
+ KnownRegexFlags["CanonEq"] = "CANON_EQ";
12369
+ /** Enables case-insensitive matching. */
12370
+ KnownRegexFlags["CaseInsensitive"] = "CASE_INSENSITIVE";
12371
+ /** Permits whitespace and comments in the pattern. */
12372
+ KnownRegexFlags["Comments"] = "COMMENTS";
12373
+ /** Enables dotall mode. */
12374
+ KnownRegexFlags["DotAll"] = "DOTALL";
12375
+ /** Enables literal parsing of the pattern. */
12376
+ KnownRegexFlags["Literal"] = "LITERAL";
12377
+ /** Enables multiline mode. */
12378
+ KnownRegexFlags["Multiline"] = "MULTILINE";
12379
+ /** Enables Unicode-aware case folding. */
12380
+ KnownRegexFlags["UnicodeCase"] = "UNICODE_CASE";
12381
+ /** Enables Unix lines mode. */
12382
+ KnownRegexFlags["UnixLines"] = "UNIX_LINES";
12383
+ })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
12384
+
11335
12385
  // Copyright (c) Microsoft Corporation.
11336
12386
  const readFileAsync = util.promisify(fs.readFile);
11337
12387
  /**