@azure/search-documents 11.3.0-beta.1 → 11.3.0-beta.5

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 (79) hide show
  1. package/CHANGELOG.md +62 -1
  2. package/dist/index.js +1794 -407
  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/index.js +1 -0
  7. package/dist-esm/src/generated/data/index.js.map +1 -1
  8. package/dist-esm/src/generated/data/models/index.js +202 -1
  9. package/dist-esm/src/generated/data/models/index.js.map +1 -1
  10. package/dist-esm/src/generated/data/models/mappers.js +6 -0
  11. package/dist-esm/src/generated/data/models/mappers.js.map +1 -1
  12. package/dist-esm/src/generated/data/models/parameters.js +21 -13
  13. package/dist-esm/src/generated/data/models/parameters.js.map +1 -1
  14. package/dist-esm/src/generated/data/operations/documents.js +17 -50
  15. package/dist-esm/src/generated/data/operations/documents.js.map +1 -1
  16. package/dist-esm/src/generated/data/operationsInterfaces/documents.js +9 -0
  17. package/dist-esm/src/generated/data/operationsInterfaces/documents.js.map +1 -0
  18. package/dist-esm/src/generated/data/operationsInterfaces/index.js +9 -0
  19. package/dist-esm/src/generated/data/operationsInterfaces/index.js.map +1 -0
  20. package/dist-esm/src/generated/data/searchClient.js +2 -2
  21. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  22. package/dist-esm/src/generated/data/searchClientContext.js +13 -11
  23. package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
  24. package/dist-esm/src/generated/service/index.js +1 -0
  25. package/dist-esm/src/generated/service/index.js.map +1 -1
  26. package/dist-esm/src/generated/service/models/index.js +902 -1
  27. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  28. package/dist-esm/src/generated/service/models/mappers.js +316 -13
  29. package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
  30. package/dist-esm/src/generated/service/models/parameters.js +37 -1
  31. package/dist-esm/src/generated/service/models/parameters.js.map +1 -1
  32. package/dist-esm/src/generated/service/operations/dataSources.js +13 -30
  33. package/dist-esm/src/generated/service/operations/dataSources.js.map +1 -1
  34. package/dist-esm/src/generated/service/operations/indexers.js +45 -45
  35. package/dist-esm/src/generated/service/operations/indexers.js.map +1 -1
  36. package/dist-esm/src/generated/service/operations/indexes.js +11 -40
  37. package/dist-esm/src/generated/service/operations/indexes.js.map +1 -1
  38. package/dist-esm/src/generated/service/operations/skillsets.js +43 -30
  39. package/dist-esm/src/generated/service/operations/skillsets.js.map +1 -1
  40. package/dist-esm/src/generated/service/operations/synonymMaps.js +9 -29
  41. package/dist-esm/src/generated/service/operations/synonymMaps.js.map +1 -1
  42. package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js +9 -0
  43. package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js.map +1 -0
  44. package/dist-esm/src/generated/service/operationsInterfaces/index.js +13 -0
  45. package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +1 -0
  46. package/dist-esm/src/generated/service/operationsInterfaces/indexers.js +9 -0
  47. package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +1 -0
  48. package/dist-esm/src/generated/service/operationsInterfaces/indexes.js +9 -0
  49. package/dist-esm/src/generated/service/operationsInterfaces/indexes.js.map +1 -0
  50. package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js +9 -0
  51. package/dist-esm/src/generated/service/operationsInterfaces/skillsets.js.map +1 -0
  52. package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js +9 -0
  53. package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js.map +1 -0
  54. package/dist-esm/src/generated/service/searchServiceClient.js +9 -12
  55. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  56. package/dist-esm/src/generated/service/searchServiceClientContext.js +13 -11
  57. package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
  58. package/dist-esm/src/index.js +2 -0
  59. package/dist-esm/src/index.js.map +1 -1
  60. package/dist-esm/src/indexModels.js.map +1 -1
  61. package/dist-esm/src/odataMetadataPolicy.js +6 -14
  62. package/dist-esm/src/odataMetadataPolicy.js.map +1 -1
  63. package/dist-esm/src/searchApiKeyCredentialPolicy.js +7 -20
  64. package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +1 -1
  65. package/dist-esm/src/searchClient.js +35 -24
  66. package/dist-esm/src/searchClient.js.map +1 -1
  67. package/dist-esm/src/searchIndexClient.js +34 -29
  68. package/dist-esm/src/searchIndexClient.js.map +1 -1
  69. package/dist-esm/src/searchIndexerClient.js +79 -33
  70. package/dist-esm/src/searchIndexerClient.js.map +1 -1
  71. package/dist-esm/src/searchIndexingBufferedSender.js +1 -1
  72. package/dist-esm/src/searchIndexingBufferedSender.js.map +1 -1
  73. package/dist-esm/src/serialization.js +1 -1
  74. package/dist-esm/src/serialization.js.map +1 -1
  75. package/dist-esm/src/serviceModels.js.map +1 -1
  76. package/dist-esm/src/serviceUtils.js +26 -19
  77. package/dist-esm/src/serviceUtils.js.map +1 -1
  78. package/package.json +26 -14
  79. package/types/search-documents.d.ts +661 -194
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');
@@ -285,6 +286,12 @@ const SearchRequest = {
285
286
  name: "String"
286
287
  }
287
288
  },
289
+ semanticConfiguration: {
290
+ serializedName: "semanticConfiguration",
291
+ type: {
292
+ name: "String"
293
+ }
294
+ },
288
295
  searchText: {
289
296
  serializedName: "search",
290
297
  type: {
@@ -884,7 +891,7 @@ const facets = {
884
891
  }
885
892
  }
886
893
  },
887
- collectionFormat: coreHttp.QueryCollectionFormat.Multi
894
+ collectionFormat: "Multi"
888
895
  };
889
896
  const filter = {
890
897
  parameterPath: ["options", "searchOptions", "filter"],
@@ -908,7 +915,7 @@ const highlightFields = {
908
915
  }
909
916
  }
910
917
  },
911
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
918
+ collectionFormat: "CSV"
912
919
  };
913
920
  const highlightPostTag = {
914
921
  parameterPath: ["options", "searchOptions", "highlightPostTag"],
@@ -950,7 +957,7 @@ const orderBy = {
950
957
  }
951
958
  }
952
959
  },
953
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
960
+ collectionFormat: "CSV"
954
961
  };
955
962
  const queryType = {
956
963
  parameterPath: ["options", "searchOptions", "queryType"],
@@ -975,7 +982,7 @@ const scoringParameters = {
975
982
  }
976
983
  }
977
984
  },
978
- collectionFormat: coreHttp.QueryCollectionFormat.Multi
985
+ collectionFormat: "Multi"
979
986
  };
980
987
  const scoringProfile = {
981
988
  parameterPath: ["options", "searchOptions", "scoringProfile"],
@@ -986,6 +993,15 @@ const scoringProfile = {
986
993
  }
987
994
  }
988
995
  };
996
+ const semanticConfiguration = {
997
+ parameterPath: ["options", "searchOptions", "semanticConfiguration"],
998
+ mapper: {
999
+ serializedName: "semanticConfiguration",
1000
+ type: {
1001
+ name: "String"
1002
+ }
1003
+ }
1004
+ };
989
1005
  const searchFields = {
990
1006
  parameterPath: ["options", "searchOptions", "searchFields"],
991
1007
  mapper: {
@@ -999,7 +1015,7 @@ const searchFields = {
999
1015
  }
1000
1016
  }
1001
1017
  },
1002
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1018
+ collectionFormat: "CSV"
1003
1019
  };
1004
1020
  const queryLanguage = {
1005
1021
  parameterPath: ["options", "searchOptions", "queryLanguage"],
@@ -1070,7 +1086,7 @@ const select = {
1070
1086
  }
1071
1087
  }
1072
1088
  },
1073
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1089
+ collectionFormat: "CSV"
1074
1090
  };
1075
1091
  const skip = {
1076
1092
  parameterPath: ["options", "searchOptions", "skip"],
@@ -1112,7 +1128,7 @@ const semanticFields = {
1112
1128
  }
1113
1129
  }
1114
1130
  },
1115
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1131
+ collectionFormat: "CSV"
1116
1132
  };
1117
1133
  const contentType = {
1118
1134
  parameterPath: ["options", "contentType"],
@@ -1152,7 +1168,7 @@ const selectedFields = {
1152
1168
  }
1153
1169
  }
1154
1170
  },
1155
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1171
+ collectionFormat: "CSV"
1156
1172
  };
1157
1173
  const searchText1 = {
1158
1174
  parameterPath: "searchText",
@@ -1232,7 +1248,7 @@ const orderBy1 = {
1232
1248
  }
1233
1249
  }
1234
1250
  },
1235
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1251
+ collectionFormat: "CSV"
1236
1252
  };
1237
1253
  const searchFields1 = {
1238
1254
  parameterPath: ["options", "suggestOptions", "searchFields"],
@@ -1247,7 +1263,7 @@ const searchFields1 = {
1247
1263
  }
1248
1264
  }
1249
1265
  },
1250
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1266
+ collectionFormat: "CSV"
1251
1267
  };
1252
1268
  const select1 = {
1253
1269
  parameterPath: ["options", "suggestOptions", "select"],
@@ -1262,7 +1278,7 @@ const select1 = {
1262
1278
  }
1263
1279
  }
1264
1280
  },
1265
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1281
+ collectionFormat: "CSV"
1266
1282
  };
1267
1283
  const top1 = {
1268
1284
  parameterPath: ["options", "suggestOptions", "top"],
@@ -1349,7 +1365,7 @@ const searchFields2 = {
1349
1365
  }
1350
1366
  }
1351
1367
  },
1352
- collectionFormat: coreHttp.QueryCollectionFormat.Csv
1368
+ collectionFormat: "CSV"
1353
1369
  };
1354
1370
  const top2 = {
1355
1371
  parameterPath: ["options", "autocompleteOptions", "top"],
@@ -1372,8 +1388,8 @@ const autocompleteRequest = {
1372
1388
  * Code generated by Microsoft (R) AutoRest Code Generator.
1373
1389
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1374
1390
  */
1375
- /** Class representing a Documents. */
1376
- class Documents {
1391
+ /** Class containing Documents operations. */
1392
+ class DocumentsImpl {
1377
1393
  /**
1378
1394
  * Initialize a new instance of the class Documents class.
1379
1395
  * @param client Reference to the service client
@@ -1386,20 +1402,14 @@ class Documents {
1386
1402
  * @param options The options parameters.
1387
1403
  */
1388
1404
  count(options) {
1389
- const operationArguments = {
1390
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1391
- };
1392
- return this.client.sendOperationRequest(operationArguments, countOperationSpec);
1405
+ return this.client.sendOperationRequest({ options }, countOperationSpec);
1393
1406
  }
1394
1407
  /**
1395
1408
  * Searches for documents in the index.
1396
1409
  * @param options The options parameters.
1397
1410
  */
1398
1411
  searchGet(options) {
1399
- const operationArguments = {
1400
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1401
- };
1402
- return this.client.sendOperationRequest(operationArguments, searchGetOperationSpec);
1412
+ return this.client.sendOperationRequest({ options }, searchGetOperationSpec);
1403
1413
  }
1404
1414
  /**
1405
1415
  * Searches for documents in the index.
@@ -1407,11 +1417,7 @@ class Documents {
1407
1417
  * @param options The options parameters.
1408
1418
  */
1409
1419
  searchPost(searchRequest, options) {
1410
- const operationArguments = {
1411
- searchRequest,
1412
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1413
- };
1414
- return this.client.sendOperationRequest(operationArguments, searchPostOperationSpec);
1420
+ return this.client.sendOperationRequest({ searchRequest, options }, searchPostOperationSpec);
1415
1421
  }
1416
1422
  /**
1417
1423
  * Retrieves a document from the index.
@@ -1419,11 +1425,7 @@ class Documents {
1419
1425
  * @param options The options parameters.
1420
1426
  */
1421
1427
  get(key, options) {
1422
- const operationArguments = {
1423
- key,
1424
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1425
- };
1426
- return this.client.sendOperationRequest(operationArguments, getOperationSpec);
1428
+ return this.client.sendOperationRequest({ key, options }, getOperationSpec);
1427
1429
  }
1428
1430
  /**
1429
1431
  * Suggests documents in the index that match the given partial query text.
@@ -1434,12 +1436,7 @@ class Documents {
1434
1436
  * @param options The options parameters.
1435
1437
  */
1436
1438
  suggestGet(searchText, suggesterName, options) {
1437
- const operationArguments = {
1438
- searchText,
1439
- suggesterName,
1440
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1441
- };
1442
- return this.client.sendOperationRequest(operationArguments, suggestGetOperationSpec);
1439
+ return this.client.sendOperationRequest({ searchText, suggesterName, options }, suggestGetOperationSpec);
1443
1440
  }
1444
1441
  /**
1445
1442
  * Suggests documents in the index that match the given partial query text.
@@ -1447,11 +1444,7 @@ class Documents {
1447
1444
  * @param options The options parameters.
1448
1445
  */
1449
1446
  suggestPost(suggestRequest, options) {
1450
- const operationArguments = {
1451
- suggestRequest,
1452
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1453
- };
1454
- return this.client.sendOperationRequest(operationArguments, suggestPostOperationSpec);
1447
+ return this.client.sendOperationRequest({ suggestRequest, options }, suggestPostOperationSpec);
1455
1448
  }
1456
1449
  /**
1457
1450
  * Sends a batch of document write actions to the index.
@@ -1459,11 +1452,7 @@ class Documents {
1459
1452
  * @param options The options parameters.
1460
1453
  */
1461
1454
  index(batch, options) {
1462
- const operationArguments = {
1463
- batch,
1464
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1465
- };
1466
- return this.client.sendOperationRequest(operationArguments, indexOperationSpec);
1455
+ return this.client.sendOperationRequest({ batch, options }, indexOperationSpec);
1467
1456
  }
1468
1457
  /**
1469
1458
  * Autocompletes incomplete query terms based on input text and matching terms in the index.
@@ -1473,12 +1462,7 @@ class Documents {
1473
1462
  * @param options The options parameters.
1474
1463
  */
1475
1464
  autocompleteGet(searchText, suggesterName, options) {
1476
- const operationArguments = {
1477
- searchText,
1478
- suggesterName,
1479
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1480
- };
1481
- return this.client.sendOperationRequest(operationArguments, autocompleteGetOperationSpec);
1465
+ return this.client.sendOperationRequest({ searchText, suggesterName, options }, autocompleteGetOperationSpec);
1482
1466
  }
1483
1467
  /**
1484
1468
  * Autocompletes incomplete query terms based on input text and matching terms in the index.
@@ -1486,15 +1470,11 @@ class Documents {
1486
1470
  * @param options The options parameters.
1487
1471
  */
1488
1472
  autocompletePost(autocompleteRequest, options) {
1489
- const operationArguments = {
1490
- autocompleteRequest,
1491
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
1492
- };
1493
- return this.client.sendOperationRequest(operationArguments, autocompletePostOperationSpec);
1473
+ return this.client.sendOperationRequest({ autocompleteRequest, options }, autocompletePostOperationSpec);
1494
1474
  }
1495
1475
  }
1496
1476
  // Operation Specifications
1497
- const serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);
1477
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
1498
1478
  const countOperationSpec = {
1499
1479
  path: "/docs/$count",
1500
1480
  httpMethod: "GET",
@@ -1536,6 +1516,7 @@ const searchGetOperationSpec = {
1536
1516
  queryType,
1537
1517
  scoringParameters,
1538
1518
  scoringProfile,
1519
+ semanticConfiguration,
1539
1520
  searchFields,
1540
1521
  queryLanguage,
1541
1522
  speller,
@@ -1580,7 +1561,9 @@ const getOperationSpec = {
1580
1561
  httpMethod: "GET",
1581
1562
  responses: {
1582
1563
  200: {
1583
- bodyMapper: { type: { name: "any" } }
1564
+ bodyMapper: {
1565
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
1566
+ }
1584
1567
  },
1585
1568
  default: {
1586
1569
  bodyMapper: SearchError
@@ -1725,10 +1708,8 @@ const autocompletePostOperationSpec = {
1725
1708
  * Code generated by Microsoft (R) AutoRest Code Generator.
1726
1709
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
1727
1710
  */
1728
- const packageName = "@azure/search-documents";
1729
- const packageVersion = "11.3.0-beta.1";
1730
1711
  /** @internal */
1731
- class SearchClientContext extends coreHttp.ServiceClient {
1712
+ class SearchClientContext extends coreClient.ServiceClient {
1732
1713
  /**
1733
1714
  * Initializes a new instance of the SearchClientContext class.
1734
1715
  * @param endpoint The endpoint URL of the search service.
@@ -1750,13 +1731,17 @@ class SearchClientContext extends coreHttp.ServiceClient {
1750
1731
  if (!options) {
1751
1732
  options = {};
1752
1733
  }
1753
- if (!options.userAgent) {
1754
- const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
1755
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
1756
- }
1757
- super(undefined, options);
1758
- this.requestContentType = "application/json; charset=utf-8";
1759
- this.baseUri = options.endpoint || "{endpoint}/indexes('{indexName}')";
1734
+ const defaults = {
1735
+ requestContentType: "application/json; charset=utf-8"
1736
+ };
1737
+ const packageDetails = `azsdk-js-search-documents/11.3.0-beta.5`;
1738
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1739
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1740
+ : `${packageDetails}`;
1741
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1742
+ userAgentPrefix
1743
+ }, baseUri: options.endpoint || "{endpoint}/indexes('{indexName}')" });
1744
+ super(optionsWithDefaults);
1760
1745
  // Parameter assignments
1761
1746
  this.endpoint = endpoint;
1762
1747
  this.indexName = indexName;
@@ -1782,44 +1767,33 @@ class SearchClient extends SearchClientContext {
1782
1767
  */
1783
1768
  constructor(endpoint, indexName, apiVersion, options) {
1784
1769
  super(endpoint, indexName, apiVersion, options);
1785
- this.documents = new Documents(this);
1770
+ this.documents = new DocumentsImpl(this);
1786
1771
  }
1787
1772
  }
1788
1773
 
1789
1774
  // Copyright (c) Microsoft Corporation.
1775
+ // Licensed under the MIT license.
1790
1776
  const API_KEY_HEADER_NAME = "api-key";
1777
+ const searchApiKeyCredentialPolicy = "SearchApiKeyCredentialPolicy";
1791
1778
  /**
1792
1779
  * Create an HTTP pipeline policy to authenticate a request
1793
1780
  * using an `AzureKeyCredential` for Azure Cognitive Search
1794
1781
  */
1795
1782
  function createSearchApiKeyCredentialPolicy(credential) {
1796
1783
  return {
1797
- create: (nextPolicy, options) => {
1798
- return new SearchApiKeyCredentialPolicy(nextPolicy, options, credential);
1784
+ name: searchApiKeyCredentialPolicy,
1785
+ async sendRequest(request, next) {
1786
+ if (!request.headers.has(API_KEY_HEADER_NAME)) {
1787
+ request.headers.set(API_KEY_HEADER_NAME, credential.key);
1788
+ }
1789
+ return next(request);
1799
1790
  }
1800
1791
  };
1801
1792
  }
1802
- /**
1803
- * A concrete implementation of an AzureKeyCredential policy
1804
- * using the appropriate header for Azure Cognitive Search
1805
- */
1806
- class SearchApiKeyCredentialPolicy extends coreHttp.BaseRequestPolicy {
1807
- constructor(nextPolicy, options, credential) {
1808
- super(nextPolicy, options);
1809
- this.credential = credential;
1810
- }
1811
- async sendRequest(webResource) {
1812
- if (!webResource) {
1813
- throw new Error("webResource cannot be null or undefined");
1814
- }
1815
- webResource.headers.set(API_KEY_HEADER_NAME, this.credential.key);
1816
- return this._nextPolicy.sendRequest(webResource);
1817
- }
1818
- }
1819
1793
 
1820
1794
  // Copyright (c) Microsoft Corporation.
1821
1795
  // Licensed under the MIT license.
1822
- const SDK_VERSION = "11.3.0-beta.1";
1796
+ const SDK_VERSION = "11.3.0-beta.5";
1823
1797
 
1824
1798
  // Copyright (c) Microsoft Corporation.
1825
1799
  /**
@@ -1894,7 +1868,7 @@ function walk(start, mapper) {
1894
1868
  const current = queue.shift();
1895
1869
  if (typeof current.value === "object" && current.value !== null) {
1896
1870
  if (seenMarker.has(current.value)) {
1897
- throw new Error("Cannot map a recusive structure.");
1871
+ continue;
1898
1872
  }
1899
1873
  else {
1900
1874
  seenMarker.set(current.value, true);
@@ -2039,28 +2013,22 @@ function isValidObject(obj, options = {}) {
2039
2013
  }
2040
2014
 
2041
2015
  // Copyright (c) Microsoft Corporation.
2016
+ // Licensed under the MIT license.
2042
2017
  const AcceptHeaderName = "Accept";
2018
+ const odataMetadataPolicy = "OdataMetadataPolicy";
2043
2019
  /**
2044
2020
  * A policy factory for setting the Accept header to ignore odata metadata
2045
2021
  * @internal
2046
2022
  */
2047
- function odataMetadataPolicy(metadataLevel) {
2023
+ function createOdataMetadataPolicy(metadataLevel) {
2048
2024
  return {
2049
- create: (nextPolicy, options) => {
2050
- return new OdataMetadataPolicy(nextPolicy, options, { metadataLevel });
2025
+ name: odataMetadataPolicy,
2026
+ async sendRequest(request, next) {
2027
+ request.headers.set(AcceptHeaderName, `application/json;odata.metadata=${metadataLevel}`);
2028
+ return next(request);
2051
2029
  }
2052
2030
  };
2053
2031
  }
2054
- class OdataMetadataPolicy extends coreHttp.BaseRequestPolicy {
2055
- constructor(nextPolicy, options, policyOptions) {
2056
- super(nextPolicy, options);
2057
- this.metadataLevel = policyOptions.metadataLevel;
2058
- }
2059
- async sendRequest(webResource) {
2060
- webResource.headers.set(AcceptHeaderName, `application/json;odata.metadata=${this.metadataLevel}`);
2061
- return this._nextPolicy.sendRequest(webResource);
2062
- }
2063
- }
2064
2032
 
2065
2033
  // Copyright (c) Microsoft Corporation.
2066
2034
  // Licensed under the MIT license.
@@ -2922,22 +2890,26 @@ function convertFieldsToPublic(fields) {
2922
2890
  return fields.map((field) => {
2923
2891
  let result;
2924
2892
  if (field.type === "Collection(Edm.ComplexType)" || field.type === "Edm.ComplexType") {
2925
- result = field;
2893
+ return {
2894
+ name: field.name,
2895
+ type: field.type,
2896
+ fields: convertFieldsToPublic(field.fields)
2897
+ };
2926
2898
  }
2927
2899
  else {
2928
- const anayzerName = field.analyzer;
2900
+ const analyzerName = field.analyzer;
2929
2901
  const searchAnalyzerName = field.searchAnalyzer;
2930
2902
  const indexAnalyzerName = field.indexAnalyzer;
2931
2903
  const synonymMapNames = field.synonymMaps;
2932
- const normalizerNames = field.normalizer;
2904
+ const normalizerName = field.normalizer;
2933
2905
  const { retrievable } = field, restField = tslib.__rest(field, ["retrievable"]);
2934
2906
  const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
2935
2907
  result = Object.assign(Object.assign({}, restField), { hidden,
2936
- anayzerName,
2908
+ analyzerName,
2937
2909
  searchAnalyzerName,
2938
2910
  indexAnalyzerName,
2939
2911
  synonymMapNames,
2940
- normalizerNames });
2912
+ normalizerName });
2941
2913
  }
2942
2914
  return result;
2943
2915
  });
@@ -2946,7 +2918,11 @@ function convertFieldsToGenerated(fields) {
2946
2918
  return fields.map((field) => {
2947
2919
  var _a, _b, _c, _d;
2948
2920
  if (isComplexField(field)) {
2949
- return field;
2921
+ return {
2922
+ name: field.name,
2923
+ type: field.type,
2924
+ fields: convertFieldsToGenerated(field.fields)
2925
+ };
2950
2926
  }
2951
2927
  else {
2952
2928
  const { hidden } = field, restField = tslib.__rest(field, ["hidden"]);
@@ -3006,17 +2982,6 @@ function convertSimilarityToPublic(similarity) {
3006
2982
  return similarity;
3007
2983
  }
3008
2984
  }
3009
- function extractOperationOptions(obj) {
3010
- const { abortSignal, requestOptions, tracingOptions } = obj, restOptions = tslib.__rest(obj, ["abortSignal", "requestOptions", "tracingOptions"]);
3011
- return {
3012
- operationOptions: {
3013
- abortSignal,
3014
- requestOptions,
3015
- tracingOptions
3016
- },
3017
- restOptions
3018
- };
3019
- }
3020
2985
  function convertEncryptionKeyToPublic(encryptionKey) {
3021
2986
  if (!encryptionKey) {
3022
2987
  return encryptionKey;
@@ -3066,7 +3031,8 @@ function generatedIndexToPublicIndex(generatedIndex) {
3066
3031
  normalizers: generatedIndex.normalizers,
3067
3032
  scoringProfiles: generatedIndex.scoringProfiles,
3068
3033
  fields: convertFieldsToPublic(generatedIndex.fields),
3069
- similarity: convertSimilarityToPublic(generatedIndex.similarity)
3034
+ similarity: convertSimilarityToPublic(generatedIndex.similarity),
3035
+ semanticSettings: generatedIndex.semanticSettings
3070
3036
  };
3071
3037
  }
3072
3038
  function generatedSearchResultToPublicSearchResult(results) {
@@ -3115,7 +3081,8 @@ function publicIndexToGeneratedIndex(index) {
3115
3081
  analyzers: convertAnalyzersToGenerated(index.analyzers),
3116
3082
  tokenizers: convertTokenizersToGenerated(index.tokenizers),
3117
3083
  fields: convertFieldsToGenerated(index.fields),
3118
- similarity: convertSimilarityToGenerated(index.similarity)
3084
+ similarity: convertSimilarityToGenerated(index.similarity),
3085
+ semanticSettings: index.semanticSettings
3119
3086
  };
3120
3087
  }
3121
3088
  function generatedSkillsetToPublicSkillset(generatedSkillset) {
@@ -3238,6 +3205,14 @@ function getRandomIntegerInclusive(min, max) {
3238
3205
  const offset = Math.floor(Math.random() * (max - min + 1));
3239
3206
  return offset + min;
3240
3207
  }
3208
+ /**
3209
+ * A wrapper for setTimeout that resolves a promise after timeInMs milliseconds.
3210
+ * @param timeInMs - The number of milliseconds to be delayed.
3211
+ * @returns Promise that is resolved after timeInMs
3212
+ */
3213
+ function delay(timeInMs) {
3214
+ return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
3215
+ }
3241
3216
 
3242
3217
  // Copyright (c) Microsoft Corporation.
3243
3218
  /**
@@ -3283,10 +3258,10 @@ class SearchClient$1 {
3283
3258
  else {
3284
3259
  options.userAgentOptions.userAgentPrefix = libInfo;
3285
3260
  }
3286
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
3261
+ const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
3287
3262
  loggingOptions: {
3288
3263
  logger: logger.info,
3289
- allowedHeaderNames: [
3264
+ additionalAllowedHeaderNames: [
3290
3265
  "elapsed-time",
3291
3266
  "Location",
3292
3267
  "OData-MaxVersion",
@@ -3296,13 +3271,6 @@ class SearchClient$1 {
3296
3271
  ]
3297
3272
  }
3298
3273
  });
3299
- const requestPolicyFactory = coreAuth.isTokenCredential(credential)
3300
- ? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
3301
- : createSearchApiKeyCredentialPolicy(credential);
3302
- const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
3303
- if (Array.isArray(pipeline.requestPolicyFactories)) {
3304
- pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("none"));
3305
- }
3306
3274
  let apiVersion = this.apiVersion;
3307
3275
  if (options.apiVersion) {
3308
3276
  if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
@@ -3310,7 +3278,14 @@ class SearchClient$1 {
3310
3278
  }
3311
3279
  apiVersion = options.apiVersion;
3312
3280
  }
3313
- this.client = new SearchClient(this.endpoint, this.indexName, apiVersion, pipeline);
3281
+ this.client = new SearchClient(this.endpoint, this.indexName, apiVersion, internalClientPipelineOptions);
3282
+ if (coreAuth.isTokenCredential(credential)) {
3283
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
3284
+ }
3285
+ else {
3286
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
3287
+ }
3288
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("none"));
3314
3289
  }
3315
3290
  /**
3316
3291
  * Retrieves the number of documents in the index.
@@ -3319,8 +3294,11 @@ class SearchClient$1 {
3319
3294
  async getDocumentsCount(options = {}) {
3320
3295
  const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
3321
3296
  try {
3322
- const result = await this.client.documents.count(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3323
- return Number(result._response.bodyAsText);
3297
+ let documentsCount = 0;
3298
+ await this.client.documents.count(Object.assign(Object.assign({}, updatedOptions), { onResponse: (response) => {
3299
+ documentsCount = Number(response.bodyAsText);
3300
+ } }));
3301
+ return documentsCount;
3324
3302
  }
3325
3303
  catch (e) {
3326
3304
  span.setStatus({
@@ -3352,7 +3330,7 @@ class SearchClient$1 {
3352
3330
  }
3353
3331
  const { span, updatedOptions } = createSpan("SearchClient-autocomplete", operationOptions);
3354
3332
  try {
3355
- const result = await this.client.documents.autocompletePost(fullOptions, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3333
+ const result = await this.client.documents.autocompletePost(fullOptions, updatedOptions);
3356
3334
  return result;
3357
3335
  }
3358
3336
  catch (e) {
@@ -3368,11 +3346,11 @@ class SearchClient$1 {
3368
3346
  }
3369
3347
  async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
3370
3348
  const { operationOptions, restOptions } = this.extractOperationOptions(Object.assign({}, options));
3371
- const { select, searchFields, orderBy } = restOptions, nonFieldOptions = tslib.__rest(restOptions, ["select", "searchFields", "orderBy"]);
3372
- const fullOptions = Object.assign(Object.assign({ searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions), nextPageParameters);
3349
+ const { select, searchFields, orderBy, semanticFields } = restOptions, nonFieldOptions = tslib.__rest(restOptions, ["select", "searchFields", "orderBy", "semanticFields"]);
3350
+ const fullOptions = Object.assign(Object.assign({ searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions), nextPageParameters);
3373
3351
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", operationOptions);
3374
3352
  try {
3375
- const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3353
+ const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { includeTotalResultCount: fullOptions.includeTotalCount, searchText: searchText }), updatedOptions);
3376
3354
  const { results, count, coverage, facets, answers, nextLink } = result;
3377
3355
  const modifiedResults = generatedSearchResultToPublicSearchResult(results);
3378
3356
  const converted = {
@@ -3496,7 +3474,7 @@ class SearchClient$1 {
3496
3474
  }
3497
3475
  const { span, updatedOptions } = createSpan("SearchClient-suggest", operationOptions);
3498
3476
  try {
3499
- const result = await this.client.documents.suggestPost(fullOptions, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3477
+ const result = await this.client.documents.suggestPost(fullOptions, updatedOptions);
3500
3478
  const modifiedResult = generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(result);
3501
3479
  return deserialize(modifiedResult);
3502
3480
  }
@@ -3519,8 +3497,8 @@ class SearchClient$1 {
3519
3497
  async getDocument(key, options = {}) {
3520
3498
  const { span, updatedOptions } = createSpan("SearchClient-getDocument", options);
3521
3499
  try {
3522
- const result = await this.client.documents.get(key, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3523
- return deserialize(result.body);
3500
+ const result = await this.client.documents.get(key, updatedOptions);
3501
+ return deserialize(result);
3524
3502
  }
3525
3503
  catch (e) {
3526
3504
  span.setStatus({
@@ -3548,8 +3526,11 @@ class SearchClient$1 {
3548
3526
  batch, options = {}) {
3549
3527
  const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options);
3550
3528
  try {
3551
- const result = await this.client.documents.index({ actions: serialize(batch.actions) }, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
3552
- if (options.throwOnAnyFailure && result._response.status === 207) {
3529
+ let status = 0;
3530
+ const result = await this.client.documents.index({ actions: serialize(batch.actions) }, Object.assign(Object.assign({}, updatedOptions), { onResponse: (response) => {
3531
+ status = response.status;
3532
+ } }));
3533
+ if (options.throwOnAnyFailure && status === 207) {
3553
3534
  throw result;
3554
3535
  }
3555
3536
  return result;
@@ -3713,6 +3694,12 @@ class SearchClient$1 {
3713
3694
  }
3714
3695
  return searchFields;
3715
3696
  }
3697
+ convertSemanticFields(semanticFields) {
3698
+ if (semanticFields) {
3699
+ return semanticFields.join(",");
3700
+ }
3701
+ return semanticFields;
3702
+ }
3716
3703
  convertOrderBy(orderBy) {
3717
3704
  if (orderBy) {
3718
3705
  return orderBy.join(",");
@@ -3984,7 +3971,7 @@ class SearchIndexingBufferedSender {
3984
3971
  // Allow the final value to have some "jitter" (within 50% of the delay size) so
3985
3972
  // that retries across multiple clients don't occur simultaneously.
3986
3973
  const delayWithJitter = clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);
3987
- await coreHttp.delay(delayWithJitter);
3974
+ await delay(delayWithJitter);
3988
3975
  await this.submitDocuments(actionsToSend, options, retryAttempt + 1);
3989
3976
  }
3990
3977
  else {
@@ -4123,7 +4110,7 @@ const SearchIndexerDataIdentity = {
4123
4110
  uberParent: "SearchIndexerDataIdentity",
4124
4111
  polymorphicDiscriminator: {
4125
4112
  serializedName: "@odata\\.type",
4126
- clientName: "@odata\\.type"
4113
+ clientName: "odatatype"
4127
4114
  },
4128
4115
  modelProperties: {
4129
4116
  odatatype: {
@@ -4143,7 +4130,7 @@ const DataChangeDetectionPolicy = {
4143
4130
  uberParent: "DataChangeDetectionPolicy",
4144
4131
  polymorphicDiscriminator: {
4145
4132
  serializedName: "@odata\\.type",
4146
- clientName: "@odata\\.type"
4133
+ clientName: "odatatype"
4147
4134
  },
4148
4135
  modelProperties: {
4149
4136
  odatatype: {
@@ -4163,7 +4150,7 @@ const DataDeletionDetectionPolicy = {
4163
4150
  uberParent: "DataDeletionDetectionPolicy",
4164
4151
  polymorphicDiscriminator: {
4165
4152
  serializedName: "@odata\\.type",
4166
- clientName: "@odata\\.type"
4153
+ clientName: "odatatype"
4167
4154
  },
4168
4155
  modelProperties: {
4169
4156
  odatatype: {
@@ -4298,6 +4285,36 @@ const ListDataSourcesResult = {
4298
4285
  }
4299
4286
  }
4300
4287
  };
4288
+ const DocumentKeysOrIds = {
4289
+ type: {
4290
+ name: "Composite",
4291
+ className: "DocumentKeysOrIds",
4292
+ modelProperties: {
4293
+ documentKeys: {
4294
+ serializedName: "documentKeys",
4295
+ type: {
4296
+ name: "Sequence",
4297
+ element: {
4298
+ type: {
4299
+ name: "String"
4300
+ }
4301
+ }
4302
+ }
4303
+ },
4304
+ datasourceDocumentIds: {
4305
+ serializedName: "datasourceDocumentIds",
4306
+ type: {
4307
+ name: "Sequence",
4308
+ element: {
4309
+ type: {
4310
+ name: "String"
4311
+ }
4312
+ }
4313
+ }
4314
+ }
4315
+ }
4316
+ }
4317
+ };
4301
4318
  const SearchIndexer = {
4302
4319
  type: {
4303
4320
  name: "Composite",
@@ -4375,6 +4392,7 @@ const SearchIndexer = {
4375
4392
  }
4376
4393
  },
4377
4394
  isDisabled: {
4395
+ defaultValue: false,
4378
4396
  serializedName: "disabled",
4379
4397
  nullable: true,
4380
4398
  type: {
@@ -4393,6 +4411,13 @@ const SearchIndexer = {
4393
4411
  name: "Composite",
4394
4412
  className: "SearchResourceEncryptionKey"
4395
4413
  }
4414
+ },
4415
+ cache: {
4416
+ serializedName: "cache",
4417
+ type: {
4418
+ name: "Composite",
4419
+ className: "SearchIndexerCache"
4420
+ }
4396
4421
  }
4397
4422
  }
4398
4423
  }
@@ -4431,6 +4456,7 @@ const IndexingParameters = {
4431
4456
  }
4432
4457
  },
4433
4458
  maxFailedItems: {
4459
+ defaultValue: 0,
4434
4460
  serializedName: "maxFailedItems",
4435
4461
  nullable: true,
4436
4462
  type: {
@@ -4438,6 +4464,7 @@ const IndexingParameters = {
4438
4464
  }
4439
4465
  },
4440
4466
  maxFailedItemsPerBatch: {
4467
+ defaultValue: 0,
4441
4468
  serializedName: "maxFailedItemsPerBatch",
4442
4469
  nullable: true,
4443
4470
  type: {
@@ -4468,30 +4495,35 @@ const IndexingParametersConfiguration = {
4468
4495
  }
4469
4496
  },
4470
4497
  excludedFileNameExtensions: {
4498
+ defaultValue: "",
4471
4499
  serializedName: "excludedFileNameExtensions",
4472
4500
  type: {
4473
4501
  name: "String"
4474
4502
  }
4475
4503
  },
4476
4504
  indexedFileNameExtensions: {
4505
+ defaultValue: "",
4477
4506
  serializedName: "indexedFileNameExtensions",
4478
4507
  type: {
4479
4508
  name: "String"
4480
4509
  }
4481
4510
  },
4482
4511
  failOnUnsupportedContentType: {
4512
+ defaultValue: false,
4483
4513
  serializedName: "failOnUnsupportedContentType",
4484
4514
  type: {
4485
4515
  name: "Boolean"
4486
4516
  }
4487
4517
  },
4488
4518
  failOnUnprocessableDocument: {
4519
+ defaultValue: false,
4489
4520
  serializedName: "failOnUnprocessableDocument",
4490
4521
  type: {
4491
4522
  name: "Boolean"
4492
4523
  }
4493
4524
  },
4494
4525
  indexStorageMetadataOnlyForOversizedDocuments: {
4526
+ defaultValue: false,
4495
4527
  serializedName: "indexStorageMetadataOnlyForOversizedDocuments",
4496
4528
  type: {
4497
4529
  name: "Boolean"
@@ -4537,6 +4569,7 @@ const IndexingParametersConfiguration = {
4537
4569
  }
4538
4570
  },
4539
4571
  allowSkillsetToReadFileData: {
4572
+ defaultValue: false,
4540
4573
  serializedName: "allowSkillsetToReadFileData",
4541
4574
  type: {
4542
4575
  name: "Boolean"
@@ -4608,9 +4641,33 @@ const FieldMappingFunction = {
4608
4641
  },
4609
4642
  parameters: {
4610
4643
  serializedName: "parameters",
4644
+ nullable: true,
4611
4645
  type: {
4612
4646
  name: "Dictionary",
4613
- value: { type: { name: "any" } }
4647
+ value: {
4648
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
4649
+ }
4650
+ }
4651
+ }
4652
+ }
4653
+ }
4654
+ };
4655
+ const SearchIndexerCache = {
4656
+ type: {
4657
+ name: "Composite",
4658
+ className: "SearchIndexerCache",
4659
+ modelProperties: {
4660
+ storageConnectionString: {
4661
+ serializedName: "storageConnectionString",
4662
+ type: {
4663
+ name: "String"
4664
+ }
4665
+ },
4666
+ enableReprocessing: {
4667
+ serializedName: "enableReprocessing",
4668
+ nullable: true,
4669
+ type: {
4670
+ name: "Boolean"
4614
4671
  }
4615
4672
  }
4616
4673
  }
@@ -4697,6 +4754,20 @@ const IndexerExecutionResult = {
4697
4754
  allowedValues: ["transientFailure", "success", "inProgress", "reset"]
4698
4755
  }
4699
4756
  },
4757
+ statusDetail: {
4758
+ serializedName: "statusDetail",
4759
+ readOnly: true,
4760
+ type: {
4761
+ name: "String"
4762
+ }
4763
+ },
4764
+ currentState: {
4765
+ serializedName: "currentState",
4766
+ type: {
4767
+ name: "Composite",
4768
+ className: "IndexerState"
4769
+ }
4770
+ },
4700
4771
  errorMessage: {
4701
4772
  serializedName: "errorMessage",
4702
4773
  readOnly: true,
@@ -4780,6 +4851,73 @@ const IndexerExecutionResult = {
4780
4851
  }
4781
4852
  }
4782
4853
  };
4854
+ const IndexerState = {
4855
+ type: {
4856
+ name: "Composite",
4857
+ className: "IndexerState",
4858
+ modelProperties: {
4859
+ mode: {
4860
+ serializedName: "mode",
4861
+ readOnly: true,
4862
+ type: {
4863
+ name: "String"
4864
+ }
4865
+ },
4866
+ allDocumentsInitialChangeTrackingState: {
4867
+ serializedName: "allDocsInitialChangeTrackingState",
4868
+ readOnly: true,
4869
+ type: {
4870
+ name: "String"
4871
+ }
4872
+ },
4873
+ allDocumentsFinalChangeTrackingState: {
4874
+ serializedName: "allDocsFinalChangeTrackingState",
4875
+ readOnly: true,
4876
+ type: {
4877
+ name: "String"
4878
+ }
4879
+ },
4880
+ resetDocumentsInitialChangeTrackingState: {
4881
+ serializedName: "resetDocsInitialChangeTrackingState",
4882
+ readOnly: true,
4883
+ type: {
4884
+ name: "String"
4885
+ }
4886
+ },
4887
+ resetDocumentsFinalChangeTrackingState: {
4888
+ serializedName: "resetDocsFinalChangeTrackingState",
4889
+ readOnly: true,
4890
+ type: {
4891
+ name: "String"
4892
+ }
4893
+ },
4894
+ resetDocumentKeys: {
4895
+ serializedName: "resetDocumentKeys",
4896
+ readOnly: true,
4897
+ type: {
4898
+ name: "Sequence",
4899
+ element: {
4900
+ type: {
4901
+ name: "String"
4902
+ }
4903
+ }
4904
+ }
4905
+ },
4906
+ resetDatasourceDocumentIds: {
4907
+ serializedName: "resetDatasourceDocumentIds",
4908
+ readOnly: true,
4909
+ type: {
4910
+ name: "Sequence",
4911
+ element: {
4912
+ type: {
4913
+ name: "String"
4914
+ }
4915
+ }
4916
+ }
4917
+ }
4918
+ }
4919
+ }
4920
+ };
4783
4921
  const SearchIndexerError = {
4784
4922
  type: {
4785
4923
  name: "Composite",
@@ -4973,7 +5111,7 @@ const SearchIndexerSkill = {
4973
5111
  uberParent: "SearchIndexerSkill",
4974
5112
  polymorphicDiscriminator: {
4975
5113
  serializedName: "@odata\\.type",
4976
- clientName: "@odata\\.type"
5114
+ clientName: "odatatype"
4977
5115
  },
4978
5116
  modelProperties: {
4979
5117
  odatatype: {
@@ -5097,7 +5235,7 @@ const CognitiveServicesAccount = {
5097
5235
  uberParent: "CognitiveServicesAccount",
5098
5236
  polymorphicDiscriminator: {
5099
5237
  serializedName: "@odata\\.type",
5100
- clientName: "@odata\\.type"
5238
+ clientName: "odatatype"
5101
5239
  },
5102
5240
  modelProperties: {
5103
5241
  odatatype: {
@@ -5254,6 +5392,25 @@ const ListSkillsetsResult = {
5254
5392
  }
5255
5393
  }
5256
5394
  };
5395
+ const SkillNames = {
5396
+ type: {
5397
+ name: "Composite",
5398
+ className: "SkillNames",
5399
+ modelProperties: {
5400
+ skillNames: {
5401
+ serializedName: "skillNames",
5402
+ type: {
5403
+ name: "Sequence",
5404
+ element: {
5405
+ type: {
5406
+ name: "String"
5407
+ }
5408
+ }
5409
+ }
5410
+ }
5411
+ }
5412
+ }
5413
+ };
5257
5414
  const SynonymMap = {
5258
5415
  type: {
5259
5416
  name: "Composite",
@@ -5455,6 +5612,13 @@ const SearchIndex = {
5455
5612
  className: "Similarity"
5456
5613
  }
5457
5614
  },
5615
+ semanticSettings: {
5616
+ serializedName: "semantic",
5617
+ type: {
5618
+ name: "Composite",
5619
+ className: "SemanticSettings"
5620
+ }
5621
+ },
5458
5622
  etag: {
5459
5623
  serializedName: "@odata\\.etag",
5460
5624
  type: {
@@ -5746,7 +5910,7 @@ const LexicalAnalyzer = {
5746
5910
  uberParent: "LexicalAnalyzer",
5747
5911
  polymorphicDiscriminator: {
5748
5912
  serializedName: "@odata\\.type",
5749
- clientName: "@odata\\.type"
5913
+ clientName: "odatatype"
5750
5914
  },
5751
5915
  modelProperties: {
5752
5916
  odatatype: {
@@ -5773,7 +5937,7 @@ const LexicalTokenizer = {
5773
5937
  uberParent: "LexicalTokenizer",
5774
5938
  polymorphicDiscriminator: {
5775
5939
  serializedName: "@odata\\.type",
5776
- clientName: "@odata\\.type"
5940
+ clientName: "odatatype"
5777
5941
  },
5778
5942
  modelProperties: {
5779
5943
  odatatype: {
@@ -5800,7 +5964,7 @@ const TokenFilter = {
5800
5964
  uberParent: "TokenFilter",
5801
5965
  polymorphicDiscriminator: {
5802
5966
  serializedName: "@odata\\.type",
5803
- clientName: "@odata\\.type"
5967
+ clientName: "odatatype"
5804
5968
  },
5805
5969
  modelProperties: {
5806
5970
  odatatype: {
@@ -5827,7 +5991,7 @@ const CharFilter = {
5827
5991
  uberParent: "CharFilter",
5828
5992
  polymorphicDiscriminator: {
5829
5993
  serializedName: "@odata\\.type",
5830
- clientName: "@odata\\.type"
5994
+ clientName: "odatatype"
5831
5995
  },
5832
5996
  modelProperties: {
5833
5997
  odatatype: {
@@ -5854,7 +6018,7 @@ const LexicalNormalizer = {
5854
6018
  uberParent: "LexicalNormalizer",
5855
6019
  polymorphicDiscriminator: {
5856
6020
  serializedName: "@odata\\.type",
5857
- clientName: "@odata\\.type"
6021
+ clientName: "odatatype"
5858
6022
  },
5859
6023
  modelProperties: {
5860
6024
  odatatype: {
@@ -5881,7 +6045,7 @@ const Similarity = {
5881
6045
  uberParent: "Similarity",
5882
6046
  polymorphicDiscriminator: {
5883
6047
  serializedName: "@odata\\.type",
5884
- clientName: "@odata\\.type"
6048
+ clientName: "odatatype"
5885
6049
  },
5886
6050
  modelProperties: {
5887
6051
  odatatype: {
@@ -5894,6 +6058,101 @@ const Similarity = {
5894
6058
  }
5895
6059
  }
5896
6060
  };
6061
+ const SemanticSettings = {
6062
+ type: {
6063
+ name: "Composite",
6064
+ className: "SemanticSettings",
6065
+ modelProperties: {
6066
+ configurations: {
6067
+ serializedName: "configurations",
6068
+ type: {
6069
+ name: "Sequence",
6070
+ element: {
6071
+ type: {
6072
+ name: "Composite",
6073
+ className: "SemanticConfiguration"
6074
+ }
6075
+ }
6076
+ }
6077
+ }
6078
+ }
6079
+ }
6080
+ };
6081
+ const SemanticConfiguration = {
6082
+ type: {
6083
+ name: "Composite",
6084
+ className: "SemanticConfiguration",
6085
+ modelProperties: {
6086
+ name: {
6087
+ serializedName: "name",
6088
+ required: true,
6089
+ type: {
6090
+ name: "String"
6091
+ }
6092
+ },
6093
+ prioritizedFields: {
6094
+ serializedName: "prioritizedFields",
6095
+ type: {
6096
+ name: "Composite",
6097
+ className: "PrioritizedFields"
6098
+ }
6099
+ }
6100
+ }
6101
+ }
6102
+ };
6103
+ const PrioritizedFields = {
6104
+ type: {
6105
+ name: "Composite",
6106
+ className: "PrioritizedFields",
6107
+ modelProperties: {
6108
+ titleField: {
6109
+ serializedName: "titleField",
6110
+ type: {
6111
+ name: "Composite",
6112
+ className: "SemanticField"
6113
+ }
6114
+ },
6115
+ prioritizedContentFields: {
6116
+ serializedName: "prioritizedContentFields",
6117
+ type: {
6118
+ name: "Sequence",
6119
+ element: {
6120
+ type: {
6121
+ name: "Composite",
6122
+ className: "SemanticField"
6123
+ }
6124
+ }
6125
+ }
6126
+ },
6127
+ prioritizedKeywordsFields: {
6128
+ serializedName: "prioritizedKeywordsFields",
6129
+ type: {
6130
+ name: "Sequence",
6131
+ element: {
6132
+ type: {
6133
+ name: "Composite",
6134
+ className: "SemanticField"
6135
+ }
6136
+ }
6137
+ }
6138
+ }
6139
+ }
6140
+ }
6141
+ };
6142
+ const SemanticField = {
6143
+ type: {
6144
+ name: "Composite",
6145
+ className: "SemanticField",
6146
+ modelProperties: {
6147
+ name: {
6148
+ serializedName: "fieldName",
6149
+ type: {
6150
+ name: "String"
6151
+ }
6152
+ }
6153
+ }
6154
+ }
6155
+ };
5897
6156
  const ListIndexesResult = {
5898
6157
  type: {
5899
6158
  name: "Composite",
@@ -5964,6 +6223,12 @@ const AnalyzeRequest = {
5964
6223
  name: "String"
5965
6224
  }
5966
6225
  },
6226
+ normalizer: {
6227
+ serializedName: "normalizer",
6228
+ type: {
6229
+ name: "String"
6230
+ }
6231
+ },
5967
6232
  tokenFilters: {
5968
6233
  serializedName: "tokenFilters",
5969
6234
  type: {
@@ -6523,6 +6788,7 @@ const OcrSkill = {
6523
6788
  name: "String"
6524
6789
  }
6525
6790
  }, shouldDetectOrientation: {
6791
+ defaultValue: false,
6526
6792
  serializedName: "detectOrientation",
6527
6793
  type: {
6528
6794
  name: "Boolean"
@@ -6690,6 +6956,7 @@ const SentimentSkillV3 = {
6690
6956
  name: "String"
6691
6957
  }
6692
6958
  }, includeOpinionMining: {
6959
+ defaultValue: false,
6693
6960
  serializedName: "includeOpinionMining",
6694
6961
  type: {
6695
6962
  name: "Boolean"
@@ -6968,7 +7235,9 @@ const DocumentExtractionSkill = {
6968
7235
  nullable: true,
6969
7236
  type: {
6970
7237
  name: "Dictionary",
6971
- value: { type: { name: "any" } }
7238
+ value: {
7239
+ type: { name: "Dictionary", value: { type: { name: "any" } } }
7240
+ }
6972
7241
  }
6973
7242
  } })
6974
7243
  }
@@ -7371,6 +7640,7 @@ const MicrosoftLanguageTokenizer = {
7371
7640
  name: "Number"
7372
7641
  }
7373
7642
  }, isSearchTokenizer: {
7643
+ defaultValue: false,
7374
7644
  serializedName: "isSearchTokenizer",
7375
7645
  type: {
7376
7646
  name: "Boolean"
@@ -7444,6 +7714,7 @@ const MicrosoftLanguageStemmingTokenizer = {
7444
7714
  name: "Number"
7445
7715
  }
7446
7716
  }, isSearchTokenizer: {
7717
+ defaultValue: false,
7447
7718
  serializedName: "isSearchTokenizer",
7448
7719
  type: {
7449
7720
  name: "Boolean"
@@ -7577,11 +7848,13 @@ const PathHierarchyTokenizerV2 = {
7577
7848
  name: "Number"
7578
7849
  }
7579
7850
  }, reverseTokenOrder: {
7851
+ defaultValue: false,
7580
7852
  serializedName: "reverse",
7581
7853
  type: {
7582
7854
  name: "Boolean"
7583
7855
  }
7584
7856
  }, numberOfTokensToSkip: {
7857
+ defaultValue: 0,
7585
7858
  serializedName: "skip",
7586
7859
  type: {
7587
7860
  name: "Number"
@@ -7678,6 +7951,7 @@ const AsciiFoldingTokenFilter = {
7678
7951
  uberParent: "TokenFilter",
7679
7952
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
7680
7953
  modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { preserveOriginal: {
7954
+ defaultValue: false,
7681
7955
  serializedName: "preserveOriginal",
7682
7956
  type: {
7683
7957
  name: "Boolean"
@@ -7704,6 +7978,7 @@ const CjkBigramTokenFilter = {
7704
7978
  }
7705
7979
  }
7706
7980
  }, outputUnigrams: {
7981
+ defaultValue: false,
7707
7982
  serializedName: "outputUnigrams",
7708
7983
  type: {
7709
7984
  name: "Boolean"
@@ -7730,11 +8005,13 @@ const CommonGramTokenFilter = {
7730
8005
  }
7731
8006
  }
7732
8007
  }, ignoreCase: {
8008
+ defaultValue: false,
7733
8009
  serializedName: "ignoreCase",
7734
8010
  type: {
7735
8011
  name: "Boolean"
7736
8012
  }
7737
8013
  }, useQueryMode: {
8014
+ defaultValue: false,
7738
8015
  serializedName: "queryMode",
7739
8016
  type: {
7740
8017
  name: "Boolean"
@@ -7788,6 +8065,7 @@ const DictionaryDecompounderTokenFilter = {
7788
8065
  name: "Number"
7789
8066
  }
7790
8067
  }, onlyLongestMatch: {
8068
+ defaultValue: false,
7791
8069
  serializedName: "onlyLongestMatch",
7792
8070
  type: {
7793
8071
  name: "Boolean"
@@ -7896,6 +8174,7 @@ const KeepTokenFilter = {
7896
8174
  }
7897
8175
  }
7898
8176
  }, lowerCaseKeepWords: {
8177
+ defaultValue: false,
7899
8178
  serializedName: "keepWordsCase",
7900
8179
  type: {
7901
8180
  name: "Boolean"
@@ -7922,6 +8201,7 @@ const KeywordMarkerTokenFilter = {
7922
8201
  }
7923
8202
  }
7924
8203
  }, ignoreCase: {
8204
+ defaultValue: false,
7925
8205
  serializedName: "ignoreCase",
7926
8206
  type: {
7927
8207
  name: "Boolean"
@@ -7937,6 +8217,7 @@ const LengthTokenFilter = {
7937
8217
  uberParent: "TokenFilter",
7938
8218
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
7939
8219
  modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minLength: {
8220
+ defaultValue: 0,
7940
8221
  constraints: {
7941
8222
  InclusiveMaximum: 300
7942
8223
  },
@@ -7970,6 +8251,7 @@ const LimitTokenFilter = {
7970
8251
  name: "Number"
7971
8252
  }
7972
8253
  }, consumeAllTokens: {
8254
+ defaultValue: false,
7973
8255
  serializedName: "consumeAllTokens",
7974
8256
  type: {
7975
8257
  name: "Boolean"
@@ -8142,6 +8424,7 @@ const ShingleTokenFilter = {
8142
8424
  name: "Boolean"
8143
8425
  }
8144
8426
  }, outputUnigramsIfNoShingles: {
8427
+ defaultValue: false,
8145
8428
  serializedName: "outputUnigramsIfNoShingles",
8146
8429
  type: {
8147
8430
  name: "Boolean"
@@ -8350,6 +8633,7 @@ const StopwordsTokenFilter = {
8350
8633
  ]
8351
8634
  }
8352
8635
  }, ignoreCase: {
8636
+ defaultValue: false,
8353
8637
  serializedName: "ignoreCase",
8354
8638
  type: {
8355
8639
  name: "Boolean"
@@ -8382,6 +8666,7 @@ const SynonymTokenFilter = {
8382
8666
  }
8383
8667
  }
8384
8668
  }, ignoreCase: {
8669
+ defaultValue: false,
8385
8670
  serializedName: "ignoreCase",
8386
8671
  type: {
8387
8672
  name: "Boolean"
@@ -8422,6 +8707,7 @@ const UniqueTokenFilter = {
8422
8707
  uberParent: "TokenFilter",
8423
8708
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
8424
8709
  modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { onlyOnSamePosition: {
8710
+ defaultValue: false,
8425
8711
  serializedName: "onlyOnSamePosition",
8426
8712
  type: {
8427
8713
  name: "Boolean"
@@ -8449,16 +8735,19 @@ const WordDelimiterTokenFilter = {
8449
8735
  name: "Boolean"
8450
8736
  }
8451
8737
  }, catenateWords: {
8738
+ defaultValue: false,
8452
8739
  serializedName: "catenateWords",
8453
8740
  type: {
8454
8741
  name: "Boolean"
8455
8742
  }
8456
8743
  }, catenateNumbers: {
8744
+ defaultValue: false,
8457
8745
  serializedName: "catenateNumbers",
8458
8746
  type: {
8459
8747
  name: "Boolean"
8460
8748
  }
8461
8749
  }, catenateAll: {
8750
+ defaultValue: false,
8462
8751
  serializedName: "catenateAll",
8463
8752
  type: {
8464
8753
  name: "Boolean"
@@ -8470,6 +8759,7 @@ const WordDelimiterTokenFilter = {
8470
8759
  name: "Boolean"
8471
8760
  }
8472
8761
  }, preserveOriginal: {
8762
+ defaultValue: false,
8473
8763
  serializedName: "preserveOriginal",
8474
8764
  type: {
8475
8765
  name: "Boolean"
@@ -8720,15 +9010,18 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8720
9010
  AzureActiveDirectoryApplicationCredentials: AzureActiveDirectoryApplicationCredentials,
8721
9011
  SearchError: SearchError$1,
8722
9012
  ListDataSourcesResult: ListDataSourcesResult,
9013
+ DocumentKeysOrIds: DocumentKeysOrIds,
8723
9014
  SearchIndexer: SearchIndexer,
8724
9015
  IndexingSchedule: IndexingSchedule,
8725
9016
  IndexingParameters: IndexingParameters,
8726
9017
  IndexingParametersConfiguration: IndexingParametersConfiguration,
8727
9018
  FieldMapping: FieldMapping,
8728
9019
  FieldMappingFunction: FieldMappingFunction,
9020
+ SearchIndexerCache: SearchIndexerCache,
8729
9021
  ListIndexersResult: ListIndexersResult,
8730
9022
  SearchIndexerStatus: SearchIndexerStatus,
8731
9023
  IndexerExecutionResult: IndexerExecutionResult,
9024
+ IndexerState: IndexerState,
8732
9025
  SearchIndexerError: SearchIndexerError,
8733
9026
  SearchIndexerWarning: SearchIndexerWarning,
8734
9027
  SearchIndexerLimits: SearchIndexerLimits,
@@ -8741,6 +9034,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8741
9034
  SearchIndexerKnowledgeStoreProjection: SearchIndexerKnowledgeStoreProjection,
8742
9035
  SearchIndexerKnowledgeStoreProjectionSelector: SearchIndexerKnowledgeStoreProjectionSelector,
8743
9036
  ListSkillsetsResult: ListSkillsetsResult,
9037
+ SkillNames: SkillNames,
8744
9038
  SynonymMap: SynonymMap,
8745
9039
  ListSynonymMapsResult: ListSynonymMapsResult,
8746
9040
  SearchIndex: SearchIndex,
@@ -8756,6 +9050,10 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8756
9050
  CharFilter: CharFilter,
8757
9051
  LexicalNormalizer: LexicalNormalizer,
8758
9052
  Similarity: Similarity,
9053
+ SemanticSettings: SemanticSettings,
9054
+ SemanticConfiguration: SemanticConfiguration,
9055
+ PrioritizedFields: PrioritizedFields,
9056
+ SemanticField: SemanticField,
8759
9057
  ListIndexesResult: ListIndexesResult,
8760
9058
  GetIndexStatisticsResult: GetIndexStatisticsResult,
8761
9059
  AnalyzeRequest: AnalyzeRequest,
@@ -8955,6 +9253,15 @@ const apiVersion$1 = {
8955
9253
  }
8956
9254
  }
8957
9255
  };
9256
+ const skipIndexerResetRequirementForCache = {
9257
+ parameterPath: ["options", "skipIndexerResetRequirementForCache"],
9258
+ mapper: {
9259
+ serializedName: "ignoreResetRequirements",
9260
+ type: {
9261
+ name: "Boolean"
9262
+ }
9263
+ }
9264
+ };
8958
9265
  const select$1 = {
8959
9266
  parameterPath: ["options", "select"],
8960
9267
  mapper: {
@@ -8974,10 +9281,33 @@ const indexerName = {
8974
9281
  }
8975
9282
  }
8976
9283
  };
9284
+ const keysOrIds = {
9285
+ parameterPath: ["options", "keysOrIds"],
9286
+ mapper: DocumentKeysOrIds
9287
+ };
9288
+ const overwrite = {
9289
+ parameterPath: ["options", "overwrite"],
9290
+ mapper: {
9291
+ defaultValue: false,
9292
+ serializedName: "overwrite",
9293
+ type: {
9294
+ name: "Boolean"
9295
+ }
9296
+ }
9297
+ };
8977
9298
  const indexer = {
8978
9299
  parameterPath: "indexer",
8979
9300
  mapper: SearchIndexer
8980
9301
  };
9302
+ const disableCacheReprocessingChangeDetection = {
9303
+ parameterPath: ["options", "disableCacheReprocessingChangeDetection"],
9304
+ mapper: {
9305
+ serializedName: "disableCacheReprocessingChangeDetection",
9306
+ type: {
9307
+ name: "Boolean"
9308
+ }
9309
+ }
9310
+ };
8981
9311
  const skillset = {
8982
9312
  parameterPath: "skillset",
8983
9313
  mapper: SearchIndexerSkillset
@@ -8992,6 +9322,10 @@ const skillsetName = {
8992
9322
  }
8993
9323
  }
8994
9324
  };
9325
+ const skillNames = {
9326
+ parameterPath: "skillNames",
9327
+ mapper: SkillNames
9328
+ };
8995
9329
  const synonymMap = {
8996
9330
  parameterPath: "synonymMap",
8997
9331
  mapper: SynonymMap
@@ -9041,8 +9375,8 @@ const request = {
9041
9375
  * Code generated by Microsoft (R) AutoRest Code Generator.
9042
9376
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9043
9377
  */
9044
- /** Class representing a DataSources. */
9045
- class DataSources {
9378
+ /** Class containing DataSources operations. */
9379
+ class DataSourcesImpl {
9046
9380
  /**
9047
9381
  * Initialize a new instance of the class DataSources class.
9048
9382
  * @param client Reference to the service client
@@ -9057,12 +9391,7 @@ class DataSources {
9057
9391
  * @param options The options parameters.
9058
9392
  */
9059
9393
  createOrUpdate(dataSourceName, dataSource, options) {
9060
- const operationArguments = {
9061
- dataSourceName,
9062
- dataSource,
9063
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9064
- };
9065
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec);
9394
+ return this.client.sendOperationRequest({ dataSourceName, dataSource, options }, createOrUpdateOperationSpec);
9066
9395
  }
9067
9396
  /**
9068
9397
  * Deletes a datasource.
@@ -9070,11 +9399,7 @@ class DataSources {
9070
9399
  * @param options The options parameters.
9071
9400
  */
9072
9401
  delete(dataSourceName, options) {
9073
- const operationArguments = {
9074
- dataSourceName,
9075
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9076
- };
9077
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec);
9402
+ return this.client.sendOperationRequest({ dataSourceName, options }, deleteOperationSpec);
9078
9403
  }
9079
9404
  /**
9080
9405
  * Retrieves a datasource definition.
@@ -9082,21 +9407,14 @@ class DataSources {
9082
9407
  * @param options The options parameters.
9083
9408
  */
9084
9409
  get(dataSourceName, options) {
9085
- const operationArguments = {
9086
- dataSourceName,
9087
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9088
- };
9089
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$1);
9410
+ return this.client.sendOperationRequest({ dataSourceName, options }, getOperationSpec$1);
9090
9411
  }
9091
9412
  /**
9092
9413
  * Lists all datasources available for a search service.
9093
9414
  * @param options The options parameters.
9094
9415
  */
9095
9416
  list(options) {
9096
- const operationArguments = {
9097
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9098
- };
9099
- return this.client.sendOperationRequest(operationArguments, listOperationSpec);
9417
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
9100
9418
  }
9101
9419
  /**
9102
9420
  * Creates a new datasource.
@@ -9104,15 +9422,11 @@ class DataSources {
9104
9422
  * @param options The options parameters.
9105
9423
  */
9106
9424
  create(dataSource, options) {
9107
- const operationArguments = {
9108
- dataSource,
9109
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9110
- };
9111
- return this.client.sendOperationRequest(operationArguments, createOperationSpec);
9425
+ return this.client.sendOperationRequest({ dataSource, options }, createOperationSpec);
9112
9426
  }
9113
9427
  }
9114
9428
  // Operation Specifications
9115
- const serializer$1 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9429
+ const serializer$1 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9116
9430
  const createOrUpdateOperationSpec = {
9117
9431
  path: "/datasources('{dataSourceName}')",
9118
9432
  httpMethod: "PUT",
@@ -9128,7 +9442,10 @@ const createOrUpdateOperationSpec = {
9128
9442
  }
9129
9443
  },
9130
9444
  requestBody: dataSource,
9131
- queryParameters: [apiVersion$1],
9445
+ queryParameters: [
9446
+ apiVersion$1,
9447
+ skipIndexerResetRequirementForCache
9448
+ ],
9132
9449
  urlParameters: [endpoint$1, dataSourceName],
9133
9450
  headerParameters: [
9134
9451
  contentType$1,
@@ -9223,8 +9540,8 @@ const createOperationSpec = {
9223
9540
  * Code generated by Microsoft (R) AutoRest Code Generator.
9224
9541
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9225
9542
  */
9226
- /** Class representing a Indexers. */
9227
- class Indexers {
9543
+ /** Class containing Indexers operations. */
9544
+ class IndexersImpl {
9228
9545
  /**
9229
9546
  * Initialize a new instance of the class Indexers class.
9230
9547
  * @param client Reference to the service client
@@ -9238,11 +9555,15 @@ class Indexers {
9238
9555
  * @param options The options parameters.
9239
9556
  */
9240
9557
  reset(indexerName, options) {
9241
- const operationArguments = {
9242
- indexerName,
9243
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9244
- };
9245
- return this.client.sendOperationRequest(operationArguments, resetOperationSpec);
9558
+ return this.client.sendOperationRequest({ indexerName, options }, resetOperationSpec);
9559
+ }
9560
+ /**
9561
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
9562
+ * @param indexerName The name of the indexer to reset documents for.
9563
+ * @param options The options parameters.
9564
+ */
9565
+ resetDocs(indexerName, options) {
9566
+ return this.client.sendOperationRequest({ indexerName, options }, resetDocsOperationSpec);
9246
9567
  }
9247
9568
  /**
9248
9569
  * Runs an indexer on-demand.
@@ -9250,11 +9571,7 @@ class Indexers {
9250
9571
  * @param options The options parameters.
9251
9572
  */
9252
9573
  run(indexerName, options) {
9253
- const operationArguments = {
9254
- indexerName,
9255
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9256
- };
9257
- return this.client.sendOperationRequest(operationArguments, runOperationSpec);
9574
+ return this.client.sendOperationRequest({ indexerName, options }, runOperationSpec);
9258
9575
  }
9259
9576
  /**
9260
9577
  * Creates a new indexer or updates an indexer if it already exists.
@@ -9263,12 +9580,7 @@ class Indexers {
9263
9580
  * @param options The options parameters.
9264
9581
  */
9265
9582
  createOrUpdate(indexerName, indexer, options) {
9266
- const operationArguments = {
9267
- indexerName,
9268
- indexer,
9269
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9270
- };
9271
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$1);
9583
+ return this.client.sendOperationRequest({ indexerName, indexer, options }, createOrUpdateOperationSpec$1);
9272
9584
  }
9273
9585
  /**
9274
9586
  * Deletes an indexer.
@@ -9276,11 +9588,7 @@ class Indexers {
9276
9588
  * @param options The options parameters.
9277
9589
  */
9278
9590
  delete(indexerName, options) {
9279
- const operationArguments = {
9280
- indexerName,
9281
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9282
- };
9283
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$1);
9591
+ return this.client.sendOperationRequest({ indexerName, options }, deleteOperationSpec$1);
9284
9592
  }
9285
9593
  /**
9286
9594
  * Retrieves an indexer definition.
@@ -9288,21 +9596,14 @@ class Indexers {
9288
9596
  * @param options The options parameters.
9289
9597
  */
9290
9598
  get(indexerName, options) {
9291
- const operationArguments = {
9292
- indexerName,
9293
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9294
- };
9295
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$2);
9599
+ return this.client.sendOperationRequest({ indexerName, options }, getOperationSpec$2);
9296
9600
  }
9297
9601
  /**
9298
9602
  * Lists all indexers available for a search service.
9299
9603
  * @param options The options parameters.
9300
9604
  */
9301
9605
  list(options) {
9302
- const operationArguments = {
9303
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9304
- };
9305
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$1);
9606
+ return this.client.sendOperationRequest({ options }, listOperationSpec$1);
9306
9607
  }
9307
9608
  /**
9308
9609
  * Creates a new indexer.
@@ -9310,11 +9611,7 @@ class Indexers {
9310
9611
  * @param options The options parameters.
9311
9612
  */
9312
9613
  create(indexer, options) {
9313
- const operationArguments = {
9314
- indexer,
9315
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9316
- };
9317
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$1);
9614
+ return this.client.sendOperationRequest({ indexer, options }, createOperationSpec$1);
9318
9615
  }
9319
9616
  /**
9320
9617
  * Returns the current status and execution history of an indexer.
@@ -9322,15 +9619,11 @@ class Indexers {
9322
9619
  * @param options The options parameters.
9323
9620
  */
9324
9621
  getStatus(indexerName, options) {
9325
- const operationArguments = {
9326
- indexerName,
9327
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9328
- };
9329
- return this.client.sendOperationRequest(operationArguments, getStatusOperationSpec);
9622
+ return this.client.sendOperationRequest({ indexerName, options }, getStatusOperationSpec);
9330
9623
  }
9331
9624
  }
9332
9625
  // Operation Specifications
9333
- const serializer$2 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9626
+ const serializer$2 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9334
9627
  const resetOperationSpec = {
9335
9628
  path: "/indexers('{indexerName}')/search.reset",
9336
9629
  httpMethod: "POST",
@@ -9345,6 +9638,26 @@ const resetOperationSpec = {
9345
9638
  headerParameters: [accept$1, xMsClientRequestId$1],
9346
9639
  serializer: serializer$2
9347
9640
  };
9641
+ const resetDocsOperationSpec = {
9642
+ path: "/indexers('{indexerName}')/search.resetdocs",
9643
+ httpMethod: "POST",
9644
+ responses: {
9645
+ 204: {},
9646
+ default: {
9647
+ bodyMapper: SearchError$1
9648
+ }
9649
+ },
9650
+ requestBody: keysOrIds,
9651
+ queryParameters: [apiVersion$1, overwrite],
9652
+ urlParameters: [endpoint$1, indexerName],
9653
+ headerParameters: [
9654
+ contentType$1,
9655
+ accept$1,
9656
+ xMsClientRequestId$1
9657
+ ],
9658
+ mediaType: "json",
9659
+ serializer: serializer$2
9660
+ };
9348
9661
  const runOperationSpec = {
9349
9662
  path: "/indexers('{indexerName}')/search.run",
9350
9663
  httpMethod: "POST",
@@ -9374,7 +9687,11 @@ const createOrUpdateOperationSpec$1 = {
9374
9687
  }
9375
9688
  },
9376
9689
  requestBody: indexer,
9377
- queryParameters: [apiVersion$1],
9690
+ queryParameters: [
9691
+ apiVersion$1,
9692
+ skipIndexerResetRequirementForCache,
9693
+ disableCacheReprocessingChangeDetection
9694
+ ],
9378
9695
  urlParameters: [endpoint$1, indexerName],
9379
9696
  headerParameters: [
9380
9697
  contentType$1,
@@ -9485,8 +9802,8 @@ const getStatusOperationSpec = {
9485
9802
  * Code generated by Microsoft (R) AutoRest Code Generator.
9486
9803
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9487
9804
  */
9488
- /** Class representing a Skillsets. */
9489
- class Skillsets {
9805
+ /** Class containing Skillsets operations. */
9806
+ class SkillsetsImpl {
9490
9807
  /**
9491
9808
  * Initialize a new instance of the class Skillsets class.
9492
9809
  * @param client Reference to the service client
@@ -9501,12 +9818,7 @@ class Skillsets {
9501
9818
  * @param options The options parameters.
9502
9819
  */
9503
9820
  createOrUpdate(skillsetName, skillset, options) {
9504
- const operationArguments = {
9505
- skillsetName,
9506
- skillset,
9507
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9508
- };
9509
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$2);
9821
+ return this.client.sendOperationRequest({ skillsetName, skillset, options }, createOrUpdateOperationSpec$2);
9510
9822
  }
9511
9823
  /**
9512
9824
  * Deletes a skillset in a search service.
@@ -9514,11 +9826,7 @@ class Skillsets {
9514
9826
  * @param options The options parameters.
9515
9827
  */
9516
9828
  delete(skillsetName, options) {
9517
- const operationArguments = {
9518
- skillsetName,
9519
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9520
- };
9521
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$2);
9829
+ return this.client.sendOperationRequest({ skillsetName, options }, deleteOperationSpec$2);
9522
9830
  }
9523
9831
  /**
9524
9832
  * Retrieves a skillset in a search service.
@@ -9526,21 +9834,14 @@ class Skillsets {
9526
9834
  * @param options The options parameters.
9527
9835
  */
9528
9836
  get(skillsetName, options) {
9529
- const operationArguments = {
9530
- skillsetName,
9531
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9532
- };
9533
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$3);
9837
+ return this.client.sendOperationRequest({ skillsetName, options }, getOperationSpec$3);
9534
9838
  }
9535
9839
  /**
9536
9840
  * List all skillsets in a search service.
9537
9841
  * @param options The options parameters.
9538
9842
  */
9539
9843
  list(options) {
9540
- const operationArguments = {
9541
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9542
- };
9543
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$2);
9844
+ return this.client.sendOperationRequest({ options }, listOperationSpec$2);
9544
9845
  }
9545
9846
  /**
9546
9847
  * Creates a new skillset in a search service.
@@ -9548,15 +9849,20 @@ class Skillsets {
9548
9849
  * @param options The options parameters.
9549
9850
  */
9550
9851
  create(skillset, options) {
9551
- const operationArguments = {
9552
- skillset,
9553
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9554
- };
9555
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$2);
9852
+ return this.client.sendOperationRequest({ skillset, options }, createOperationSpec$2);
9853
+ }
9854
+ /**
9855
+ * Reset an existing skillset in a search service.
9856
+ * @param skillsetName The name of the skillset to reset.
9857
+ * @param skillNames The names of skills to reset.
9858
+ * @param options The options parameters.
9859
+ */
9860
+ resetSkills(skillsetName, skillNames, options) {
9861
+ return this.client.sendOperationRequest({ skillsetName, skillNames, options }, resetSkillsOperationSpec);
9556
9862
  }
9557
9863
  }
9558
9864
  // Operation Specifications
9559
- const serializer$3 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
9865
+ const serializer$3 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9560
9866
  const createOrUpdateOperationSpec$2 = {
9561
9867
  path: "/skillsets('{skillsetName}')",
9562
9868
  httpMethod: "PUT",
@@ -9572,7 +9878,11 @@ const createOrUpdateOperationSpec$2 = {
9572
9878
  }
9573
9879
  },
9574
9880
  requestBody: skillset,
9575
- queryParameters: [apiVersion$1],
9881
+ queryParameters: [
9882
+ apiVersion$1,
9883
+ skipIndexerResetRequirementForCache,
9884
+ disableCacheReprocessingChangeDetection
9885
+ ],
9576
9886
  urlParameters: [endpoint$1, skillsetName],
9577
9887
  headerParameters: [
9578
9888
  contentType$1,
@@ -9659,6 +9969,26 @@ const createOperationSpec$2 = {
9659
9969
  mediaType: "json",
9660
9970
  serializer: serializer$3
9661
9971
  };
9972
+ const resetSkillsOperationSpec = {
9973
+ path: "/skillsets('{skillsetName}')/search.resetskills",
9974
+ httpMethod: "POST",
9975
+ responses: {
9976
+ 204: {},
9977
+ default: {
9978
+ bodyMapper: SearchError$1
9979
+ }
9980
+ },
9981
+ requestBody: skillNames,
9982
+ queryParameters: [apiVersion$1],
9983
+ urlParameters: [endpoint$1, skillsetName],
9984
+ headerParameters: [
9985
+ contentType$1,
9986
+ accept$1,
9987
+ xMsClientRequestId$1
9988
+ ],
9989
+ mediaType: "json",
9990
+ serializer: serializer$3
9991
+ };
9662
9992
 
9663
9993
  /*
9664
9994
  * Copyright (c) Microsoft Corporation.
@@ -9667,8 +9997,8 @@ const createOperationSpec$2 = {
9667
9997
  * Code generated by Microsoft (R) AutoRest Code Generator.
9668
9998
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9669
9999
  */
9670
- /** Class representing a SynonymMaps. */
9671
- class SynonymMaps {
10000
+ /** Class containing SynonymMaps operations. */
10001
+ class SynonymMapsImpl {
9672
10002
  /**
9673
10003
  * Initialize a new instance of the class SynonymMaps class.
9674
10004
  * @param client Reference to the service client
@@ -9683,12 +10013,7 @@ class SynonymMaps {
9683
10013
  * @param options The options parameters.
9684
10014
  */
9685
10015
  createOrUpdate(synonymMapName, synonymMap, options) {
9686
- const operationArguments = {
9687
- synonymMapName,
9688
- synonymMap,
9689
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9690
- };
9691
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$3);
10016
+ return this.client.sendOperationRequest({ synonymMapName, synonymMap, options }, createOrUpdateOperationSpec$3);
9692
10017
  }
9693
10018
  /**
9694
10019
  * Deletes a synonym map.
@@ -9696,11 +10021,7 @@ class SynonymMaps {
9696
10021
  * @param options The options parameters.
9697
10022
  */
9698
10023
  delete(synonymMapName, options) {
9699
- const operationArguments = {
9700
- synonymMapName,
9701
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9702
- };
9703
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$3);
10024
+ return this.client.sendOperationRequest({ synonymMapName, options }, deleteOperationSpec$3);
9704
10025
  }
9705
10026
  /**
9706
10027
  * Retrieves a synonym map definition.
@@ -9708,21 +10029,14 @@ class SynonymMaps {
9708
10029
  * @param options The options parameters.
9709
10030
  */
9710
10031
  get(synonymMapName, options) {
9711
- const operationArguments = {
9712
- synonymMapName,
9713
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9714
- };
9715
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$4);
10032
+ return this.client.sendOperationRequest({ synonymMapName, options }, getOperationSpec$4);
9716
10033
  }
9717
10034
  /**
9718
10035
  * Lists all synonym maps available for a search service.
9719
10036
  * @param options The options parameters.
9720
10037
  */
9721
10038
  list(options) {
9722
- const operationArguments = {
9723
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9724
- };
9725
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$3);
10039
+ return this.client.sendOperationRequest({ options }, listOperationSpec$3);
9726
10040
  }
9727
10041
  /**
9728
10042
  * Creates a new synonym map.
@@ -9730,15 +10044,11 @@ class SynonymMaps {
9730
10044
  * @param options The options parameters.
9731
10045
  */
9732
10046
  create(synonymMap, options) {
9733
- const operationArguments = {
9734
- synonymMap,
9735
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9736
- };
9737
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$3);
10047
+ return this.client.sendOperationRequest({ synonymMap, options }, createOperationSpec$3);
9738
10048
  }
9739
10049
  }
9740
10050
  // Operation Specifications
9741
- const serializer$4 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
10051
+ const serializer$4 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9742
10052
  const createOrUpdateOperationSpec$3 = {
9743
10053
  path: "/synonymmaps('{synonymMapName}')",
9744
10054
  httpMethod: "PUT",
@@ -9849,8 +10159,8 @@ const createOperationSpec$3 = {
9849
10159
  * Code generated by Microsoft (R) AutoRest Code Generator.
9850
10160
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
9851
10161
  */
9852
- /** Class representing a Indexes. */
9853
- class Indexes {
10162
+ /** Class containing Indexes operations. */
10163
+ class IndexesImpl {
9854
10164
  /**
9855
10165
  * Initialize a new instance of the class Indexes class.
9856
10166
  * @param client Reference to the service client
@@ -9864,21 +10174,14 @@ class Indexes {
9864
10174
  * @param options The options parameters.
9865
10175
  */
9866
10176
  create(index, options) {
9867
- const operationArguments = {
9868
- index,
9869
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9870
- };
9871
- return this.client.sendOperationRequest(operationArguments, createOperationSpec$4);
10177
+ return this.client.sendOperationRequest({ index, options }, createOperationSpec$4);
9872
10178
  }
9873
10179
  /**
9874
10180
  * Lists all indexes available for a search service.
9875
10181
  * @param options The options parameters.
9876
10182
  */
9877
10183
  list(options) {
9878
- const operationArguments = {
9879
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9880
- };
9881
- return this.client.sendOperationRequest(operationArguments, listOperationSpec$4);
10184
+ return this.client.sendOperationRequest({ options }, listOperationSpec$4);
9882
10185
  }
9883
10186
  /**
9884
10187
  * Creates a new search index or updates an index if it already exists.
@@ -9887,12 +10190,7 @@ class Indexes {
9887
10190
  * @param options The options parameters.
9888
10191
  */
9889
10192
  createOrUpdate(indexName, index, options) {
9890
- const operationArguments = {
9891
- indexName,
9892
- index,
9893
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9894
- };
9895
- return this.client.sendOperationRequest(operationArguments, createOrUpdateOperationSpec$4);
10193
+ return this.client.sendOperationRequest({ indexName, index, options }, createOrUpdateOperationSpec$4);
9896
10194
  }
9897
10195
  /**
9898
10196
  * Deletes a search index and all the documents it contains. This operation is permanent, with no
@@ -9902,11 +10200,7 @@ class Indexes {
9902
10200
  * @param options The options parameters.
9903
10201
  */
9904
10202
  delete(indexName, options) {
9905
- const operationArguments = {
9906
- indexName,
9907
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9908
- };
9909
- return this.client.sendOperationRequest(operationArguments, deleteOperationSpec$4);
10203
+ return this.client.sendOperationRequest({ indexName, options }, deleteOperationSpec$4);
9910
10204
  }
9911
10205
  /**
9912
10206
  * Retrieves an index definition.
@@ -9914,11 +10208,7 @@ class Indexes {
9914
10208
  * @param options The options parameters.
9915
10209
  */
9916
10210
  get(indexName, options) {
9917
- const operationArguments = {
9918
- indexName,
9919
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9920
- };
9921
- return this.client.sendOperationRequest(operationArguments, getOperationSpec$5);
10211
+ return this.client.sendOperationRequest({ indexName, options }, getOperationSpec$5);
9922
10212
  }
9923
10213
  /**
9924
10214
  * Returns statistics for the given index, including a document count and storage usage.
@@ -9926,11 +10216,7 @@ class Indexes {
9926
10216
  * @param options The options parameters.
9927
10217
  */
9928
10218
  getStatistics(indexName, options) {
9929
- const operationArguments = {
9930
- indexName,
9931
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9932
- };
9933
- return this.client.sendOperationRequest(operationArguments, getStatisticsOperationSpec);
10219
+ return this.client.sendOperationRequest({ indexName, options }, getStatisticsOperationSpec);
9934
10220
  }
9935
10221
  /**
9936
10222
  * Shows how an analyzer breaks text into tokens.
@@ -9939,16 +10225,11 @@ class Indexes {
9939
10225
  * @param options The options parameters.
9940
10226
  */
9941
10227
  analyze(indexName, request, options) {
9942
- const operationArguments = {
9943
- indexName,
9944
- request,
9945
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
9946
- };
9947
- return this.client.sendOperationRequest(operationArguments, analyzeOperationSpec);
10228
+ return this.client.sendOperationRequest({ indexName, request, options }, analyzeOperationSpec);
9948
10229
  }
9949
10230
  }
9950
10231
  // Operation Specifications
9951
- const serializer$5 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
10232
+ const serializer$5 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
9952
10233
  const createOperationSpec$4 = {
9953
10234
  path: "/indexes",
9954
10235
  httpMethod: "POST",
@@ -10097,10 +10378,8 @@ const analyzeOperationSpec = {
10097
10378
  * Code generated by Microsoft (R) AutoRest Code Generator.
10098
10379
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
10099
10380
  */
10100
- const packageName$1 = "@azure/search-documents";
10101
- const packageVersion$1 = "11.3.0-beta.1";
10102
10381
  /** @internal */
10103
- class SearchServiceClientContext extends coreHttp.ServiceClient {
10382
+ class SearchServiceClientContext extends coreClient.ServiceClient {
10104
10383
  /**
10105
10384
  * Initializes a new instance of the SearchServiceClientContext class.
10106
10385
  * @param endpoint The endpoint URL of the search service.
@@ -10118,13 +10397,17 @@ class SearchServiceClientContext extends coreHttp.ServiceClient {
10118
10397
  if (!options) {
10119
10398
  options = {};
10120
10399
  }
10121
- if (!options.userAgent) {
10122
- const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
10123
- options.userAgent = `${packageName$1}/${packageVersion$1} ${defaultUserAgent}`;
10124
- }
10125
- super(undefined, options);
10126
- this.requestContentType = "application/json; charset=utf-8";
10127
- this.baseUri = options.endpoint || "{endpoint}";
10400
+ const defaults = {
10401
+ requestContentType: "application/json; charset=utf-8"
10402
+ };
10403
+ const packageDetails = `azsdk-js-search-documents/11.3.0-beta.5`;
10404
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10405
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10406
+ : `${packageDetails}`;
10407
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
10408
+ userAgentPrefix
10409
+ }, baseUri: options.endpoint || "{endpoint}" });
10410
+ super(optionsWithDefaults);
10128
10411
  // Parameter assignments
10129
10412
  this.endpoint = endpoint;
10130
10413
  this.apiVersion = apiVersion;
@@ -10148,25 +10431,22 @@ class SearchServiceClient extends SearchServiceClientContext {
10148
10431
  */
10149
10432
  constructor(endpoint, apiVersion, options) {
10150
10433
  super(endpoint, apiVersion, options);
10151
- this.dataSources = new DataSources(this);
10152
- this.indexers = new Indexers(this);
10153
- this.skillsets = new Skillsets(this);
10154
- this.synonymMaps = new SynonymMaps(this);
10155
- this.indexes = new Indexes(this);
10434
+ this.dataSources = new DataSourcesImpl(this);
10435
+ this.indexers = new IndexersImpl(this);
10436
+ this.skillsets = new SkillsetsImpl(this);
10437
+ this.synonymMaps = new SynonymMapsImpl(this);
10438
+ this.indexes = new IndexesImpl(this);
10156
10439
  }
10157
10440
  /**
10158
10441
  * Gets service level statistics for a search service.
10159
10442
  * @param options The options parameters.
10160
10443
  */
10161
10444
  getServiceStatistics(options) {
10162
- const operationArguments = {
10163
- options: coreHttp.operationOptionsToRequestOptionsBase(options || {})
10164
- };
10165
- return this.sendOperationRequest(operationArguments, getServiceStatisticsOperationSpec);
10445
+ return this.sendOperationRequest({ options }, getServiceStatisticsOperationSpec);
10166
10446
  }
10167
10447
  }
10168
10448
  // Operation Specifications
10169
- const serializer$6 = new coreHttp.Serializer(Mappers$1, /* isXml */ false);
10449
+ const serializer$6 = coreClient.createSerializer(Mappers$1, /* isXml */ false);
10170
10450
  const getServiceStatisticsOperationSpec = {
10171
10451
  path: "/servicestats",
10172
10452
  httpMethod: "GET",
@@ -10225,10 +10505,10 @@ class SearchIndexClient {
10225
10505
  else {
10226
10506
  options.userAgentOptions.userAgentPrefix = libInfo;
10227
10507
  }
10228
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
10508
+ const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
10229
10509
  loggingOptions: {
10230
10510
  logger: logger.info,
10231
- allowedHeaderNames: [
10511
+ additionalAllowedHeaderNames: [
10232
10512
  "elapsed-time",
10233
10513
  "Location",
10234
10514
  "OData-MaxVersion",
@@ -10238,13 +10518,6 @@ class SearchIndexClient {
10238
10518
  ]
10239
10519
  }
10240
10520
  });
10241
- const requestPolicyFactory = coreAuth.isTokenCredential(credential)
10242
- ? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
10243
- : createSearchApiKeyCredentialPolicy(credential);
10244
- const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
10245
- if (Array.isArray(pipeline.requestPolicyFactories)) {
10246
- pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal"));
10247
- }
10248
10521
  let apiVersion = this.apiVersion;
10249
10522
  if (options.apiVersion) {
10250
10523
  if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
@@ -10252,13 +10525,20 @@ class SearchIndexClient {
10252
10525
  }
10253
10526
  apiVersion = options.apiVersion;
10254
10527
  }
10255
- this.client = new SearchServiceClient(this.endpoint, apiVersion, pipeline);
10528
+ this.client = new SearchServiceClient(this.endpoint, apiVersion, internalClientPipelineOptions);
10529
+ if (coreAuth.isTokenCredential(credential)) {
10530
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
10531
+ }
10532
+ else {
10533
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
10534
+ }
10535
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
10256
10536
  }
10257
10537
  listIndexesPage(options = {}) {
10258
10538
  return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
10259
10539
  const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
10260
10540
  try {
10261
- const result = yield tslib.__await(this.client.indexes.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)));
10541
+ const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
10262
10542
  const mapped = result.indexes.map(generatedIndexToPublicIndex);
10263
10543
  yield yield tslib.__await(mapped);
10264
10544
  }
@@ -10314,7 +10594,7 @@ class SearchIndexClient {
10314
10594
  return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
10315
10595
  const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
10316
10596
  try {
10317
- const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" })));
10597
+ const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" })));
10318
10598
  const mapped = result.indexes.map((idx) => idx.name);
10319
10599
  yield yield tslib.__await(mapped);
10320
10600
  }
@@ -10373,7 +10653,7 @@ class SearchIndexClient {
10373
10653
  async listSynonymMaps(options = {}) {
10374
10654
  const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMaps", options);
10375
10655
  try {
10376
- const result = await this.client.synonymMaps.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10656
+ const result = await this.client.synonymMaps.list(updatedOptions);
10377
10657
  return result.synonymMaps.map(generatedSynonymMapToPublicSynonymMap);
10378
10658
  }
10379
10659
  catch (e) {
@@ -10394,7 +10674,7 @@ class SearchIndexClient {
10394
10674
  async listSynonymMapsNames(options = {}) {
10395
10675
  const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
10396
10676
  try {
10397
- const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
10677
+ const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10398
10678
  return result.synonymMaps.map((sm) => sm.name);
10399
10679
  }
10400
10680
  catch (e) {
@@ -10416,7 +10696,7 @@ class SearchIndexClient {
10416
10696
  async getIndex(indexName, options = {}) {
10417
10697
  const { span, updatedOptions } = createSpan("SearchIndexClient-getIndex", options);
10418
10698
  try {
10419
- const result = await this.client.indexes.get(indexName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10699
+ const result = await this.client.indexes.get(indexName, updatedOptions);
10420
10700
  return generatedIndexToPublicIndex(result);
10421
10701
  }
10422
10702
  catch (e) {
@@ -10438,7 +10718,7 @@ class SearchIndexClient {
10438
10718
  async getSynonymMap(synonymMapName, options = {}) {
10439
10719
  const { span, updatedOptions } = createSpan("SearchIndexClient-getSynonymMaps", options);
10440
10720
  try {
10441
- const result = await this.client.synonymMaps.get(synonymMapName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10721
+ const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);
10442
10722
  return generatedSynonymMapToPublicSynonymMap(result);
10443
10723
  }
10444
10724
  catch (e) {
@@ -10460,7 +10740,7 @@ class SearchIndexClient {
10460
10740
  async createIndex(index, options = {}) {
10461
10741
  const { span, updatedOptions } = createSpan("SearchIndexClient-createIndex", options);
10462
10742
  try {
10463
- const result = await this.client.indexes.create(publicIndexToGeneratedIndex(index), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10743
+ const result = await this.client.indexes.create(publicIndexToGeneratedIndex(index), updatedOptions);
10464
10744
  return generatedIndexToPublicIndex(result);
10465
10745
  }
10466
10746
  catch (e) {
@@ -10482,7 +10762,7 @@ class SearchIndexClient {
10482
10762
  async createSynonymMap(synonymMap, options = {}) {
10483
10763
  const { span, updatedOptions } = createSpan("SearchIndexClient-createSynonymMaps", options);
10484
10764
  try {
10485
- const result = await this.client.synonymMaps.create(publicSynonymMapToGeneratedSynonymMap(synonymMap), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10765
+ const result = await this.client.synonymMaps.create(publicSynonymMapToGeneratedSynonymMap(synonymMap), updatedOptions);
10486
10766
  return generatedSynonymMapToPublicSynonymMap(result);
10487
10767
  }
10488
10768
  catch (e) {
@@ -10505,7 +10785,7 @@ class SearchIndexClient {
10505
10785
  const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateIndex", options);
10506
10786
  try {
10507
10787
  const etag = options.onlyIfUnchanged ? index.etag : undefined;
10508
- const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10788
+ const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10509
10789
  return generatedIndexToPublicIndex(result);
10510
10790
  }
10511
10791
  catch (e) {
@@ -10528,7 +10808,7 @@ class SearchIndexClient {
10528
10808
  const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateSynonymMap", options);
10529
10809
  try {
10530
10810
  const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;
10531
- const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10811
+ const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10532
10812
  return generatedSynonymMapToPublicSynonymMap(result);
10533
10813
  }
10534
10814
  catch (e) {
@@ -10552,7 +10832,7 @@ class SearchIndexClient {
10552
10832
  try {
10553
10833
  const indexName = typeof index === "string" ? index : index.name;
10554
10834
  const etag = typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;
10555
- await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10835
+ await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10556
10836
  }
10557
10837
  catch (e) {
10558
10838
  span.setStatus({
@@ -10579,7 +10859,7 @@ class SearchIndexClient {
10579
10859
  : options.onlyIfUnchanged
10580
10860
  ? synonymMap.etag
10581
10861
  : undefined;
10582
- await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
10862
+ await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
10583
10863
  }
10584
10864
  catch (e) {
10585
10865
  span.setStatus({
@@ -10601,7 +10881,7 @@ class SearchIndexClient {
10601
10881
  async getIndexStatistics(indexName, options = {}) {
10602
10882
  const { span, updatedOptions } = createSpan("SearchIndexClient-getIndexStatistics", options);
10603
10883
  try {
10604
- const result = await this.client.indexes.getStatistics(indexName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10884
+ const result = await this.client.indexes.getStatistics(indexName, updatedOptions);
10605
10885
  return result;
10606
10886
  }
10607
10887
  catch (e) {
@@ -10622,10 +10902,15 @@ class SearchIndexClient {
10622
10902
  * @param options - Additional arguments
10623
10903
  */
10624
10904
  async analyzeText(indexName, options) {
10625
- const { operationOptions, restOptions } = extractOperationOptions(options);
10905
+ const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
10906
+ const operationOptions = {
10907
+ abortSignal,
10908
+ requestOptions,
10909
+ tracingOptions
10910
+ };
10626
10911
  const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
10627
10912
  try {
10628
- const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName }), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10913
+ const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), updatedOptions);
10629
10914
  return result;
10630
10915
  }
10631
10916
  catch (e) {
@@ -10646,7 +10931,7 @@ class SearchIndexClient {
10646
10931
  async getServiceStatistics(options = {}) {
10647
10932
  const { span, updatedOptions } = createSpan("SearchIndexClient-getServiceStatistics", options);
10648
10933
  try {
10649
- const result = await this.client.getServiceStatistics(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
10934
+ const result = await this.client.getServiceStatistics(updatedOptions);
10650
10935
  return result;
10651
10936
  }
10652
10937
  catch (e) {
@@ -10709,10 +10994,10 @@ class SearchIndexerClient {
10709
10994
  else {
10710
10995
  options.userAgentOptions.userAgentPrefix = libInfo;
10711
10996
  }
10712
- const internalPipelineOptions = Object.assign(Object.assign({}, options), {
10997
+ const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
10713
10998
  loggingOptions: {
10714
10999
  logger: logger.info,
10715
- allowedHeaderNames: [
11000
+ additionalAllowedHeaderNames: [
10716
11001
  "elapsed-time",
10717
11002
  "Location",
10718
11003
  "OData-MaxVersion",
@@ -10722,13 +11007,6 @@ class SearchIndexerClient {
10722
11007
  ]
10723
11008
  }
10724
11009
  });
10725
- const requestPolicyFactory = coreAuth.isTokenCredential(credential)
10726
- ? coreHttp.bearerTokenAuthenticationPolicy(credential, DEFAULT_SEARCH_SCOPE)
10727
- : createSearchApiKeyCredentialPolicy(credential);
10728
- const pipeline = coreHttp.createPipelineFromOptions(internalPipelineOptions, requestPolicyFactory);
10729
- if (Array.isArray(pipeline.requestPolicyFactories)) {
10730
- pipeline.requestPolicyFactories.unshift(odataMetadataPolicy("minimal"));
10731
- }
10732
11010
  let apiVersion = this.apiVersion;
10733
11011
  if (options.apiVersion) {
10734
11012
  if (!["2020-06-30", "2021-04-30-Preview"].includes(options.apiVersion)) {
@@ -10736,7 +11014,14 @@ class SearchIndexerClient {
10736
11014
  }
10737
11015
  apiVersion = options.apiVersion;
10738
11016
  }
10739
- this.client = new SearchServiceClient(this.endpoint, apiVersion, pipeline);
11017
+ this.client = new SearchServiceClient(this.endpoint, apiVersion, internalClientPipelineOptions);
11018
+ if (coreAuth.isTokenCredential(credential)) {
11019
+ this.client.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SEARCH_SCOPE }));
11020
+ }
11021
+ else {
11022
+ this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
11023
+ }
11024
+ this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
10740
11025
  }
10741
11026
  /**
10742
11027
  * Retrieves a list of existing indexers in the service.
@@ -10745,7 +11030,7 @@ class SearchIndexerClient {
10745
11030
  async listIndexers(options = {}) {
10746
11031
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexers", options);
10747
11032
  try {
10748
- const result = await this.client.indexers.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11033
+ const result = await this.client.indexers.list(updatedOptions);
10749
11034
  return result.indexers.map(generatedSearchIndexerToPublicSearchIndexer);
10750
11035
  }
10751
11036
  catch (e) {
@@ -10766,7 +11051,7 @@ class SearchIndexerClient {
10766
11051
  async listIndexersNames(options = {}) {
10767
11052
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
10768
11053
  try {
10769
- const result = await this.client.indexers.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
11054
+ const result = await this.client.indexers.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10770
11055
  return result.indexers.map((idx) => idx.name);
10771
11056
  }
10772
11057
  catch (e) {
@@ -10787,7 +11072,7 @@ class SearchIndexerClient {
10787
11072
  async listDataSourceConnections(options = {}) {
10788
11073
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnections", options);
10789
11074
  try {
10790
- const result = await this.client.dataSources.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11075
+ const result = await this.client.dataSources.list(updatedOptions);
10791
11076
  return result.dataSources.map(generatedDataSourceToPublicDataSource);
10792
11077
  }
10793
11078
  catch (e) {
@@ -10808,7 +11093,7 @@ class SearchIndexerClient {
10808
11093
  async listDataSourceConnectionsNames(options = {}) {
10809
11094
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
10810
11095
  try {
10811
- const result = await this.client.dataSources.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
11096
+ const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10812
11097
  return result.dataSources.map((ds) => ds.name);
10813
11098
  }
10814
11099
  catch (e) {
@@ -10829,7 +11114,7 @@ class SearchIndexerClient {
10829
11114
  async listSkillsets(options = {}) {
10830
11115
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsets", options);
10831
11116
  try {
10832
- const result = await this.client.skillsets.list(coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11117
+ const result = await this.client.skillsets.list(updatedOptions);
10833
11118
  return result.skillsets.map(generatedSkillsetToPublicSkillset);
10834
11119
  }
10835
11120
  catch (e) {
@@ -10850,7 +11135,7 @@ class SearchIndexerClient {
10850
11135
  async listSkillsetsNames(options = {}) {
10851
11136
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
10852
11137
  try {
10853
- const result = await this.client.skillsets.list(Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { select: "name" }));
11138
+ const result = await this.client.skillsets.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
10854
11139
  return result.skillsets.map((sks) => sks.name);
10855
11140
  }
10856
11141
  catch (e) {
@@ -10872,7 +11157,7 @@ class SearchIndexerClient {
10872
11157
  async getIndexer(indexerName, options = {}) {
10873
11158
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexer", options);
10874
11159
  try {
10875
- const result = await this.client.indexers.get(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11160
+ const result = await this.client.indexers.get(indexerName, updatedOptions);
10876
11161
  return generatedSearchIndexerToPublicSearchIndexer(result);
10877
11162
  }
10878
11163
  catch (e) {
@@ -10894,7 +11179,7 @@ class SearchIndexerClient {
10894
11179
  async getDataSourceConnection(dataSourceConnectionName, options = {}) {
10895
11180
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getDataSourceConnection", options);
10896
11181
  try {
10897
- const result = await this.client.dataSources.get(dataSourceConnectionName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11182
+ const result = await this.client.dataSources.get(dataSourceConnectionName, updatedOptions);
10898
11183
  return generatedDataSourceToPublicDataSource(result);
10899
11184
  }
10900
11185
  catch (e) {
@@ -10916,7 +11201,7 @@ class SearchIndexerClient {
10916
11201
  async getSkillset(skillsetName, options = {}) {
10917
11202
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getSkillset", options);
10918
11203
  try {
10919
- const result = await this.client.skillsets.get(skillsetName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11204
+ const result = await this.client.skillsets.get(skillsetName, updatedOptions);
10920
11205
  return generatedSkillsetToPublicSkillset(result);
10921
11206
  }
10922
11207
  catch (e) {
@@ -10938,7 +11223,7 @@ class SearchIndexerClient {
10938
11223
  async createIndexer(indexer, options = {}) {
10939
11224
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createIndexer", options);
10940
11225
  try {
10941
- const result = await this.client.indexers.create(publicSearchIndexerToGeneratedSearchIndexer(indexer), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11226
+ const result = await this.client.indexers.create(publicSearchIndexerToGeneratedSearchIndexer(indexer), updatedOptions);
10942
11227
  return generatedSearchIndexerToPublicSearchIndexer(result);
10943
11228
  }
10944
11229
  catch (e) {
@@ -10960,7 +11245,7 @@ class SearchIndexerClient {
10960
11245
  async createDataSourceConnection(dataSourceConnection, options = {}) {
10961
11246
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createDataSourceConnection", options);
10962
11247
  try {
10963
- const result = await this.client.dataSources.create(publicDataSourceToGeneratedDataSource(dataSourceConnection), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11248
+ const result = await this.client.dataSources.create(publicDataSourceToGeneratedDataSource(dataSourceConnection), updatedOptions);
10964
11249
  return generatedDataSourceToPublicDataSource(result);
10965
11250
  }
10966
11251
  catch (e) {
@@ -10982,7 +11267,7 @@ class SearchIndexerClient {
10982
11267
  async createSkillset(skillset, options = {}) {
10983
11268
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createSkillset", options);
10984
11269
  try {
10985
- const result = await this.client.skillsets.create(publicSkillsetToGeneratedSkillset(skillset), coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11270
+ const result = await this.client.skillsets.create(publicSkillsetToGeneratedSkillset(skillset), updatedOptions);
10986
11271
  return generatedSkillsetToPublicSkillset(result);
10987
11272
  }
10988
11273
  catch (e) {
@@ -11005,7 +11290,7 @@ class SearchIndexerClient {
11005
11290
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
11006
11291
  try {
11007
11292
  const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
11008
- const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11293
+ const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11009
11294
  return generatedSearchIndexerToPublicSearchIndexer(result);
11010
11295
  }
11011
11296
  catch (e) {
@@ -11028,7 +11313,7 @@ class SearchIndexerClient {
11028
11313
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
11029
11314
  try {
11030
11315
  const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
11031
- const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11316
+ const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache }));
11032
11317
  return generatedDataSourceToPublicDataSource(result);
11033
11318
  }
11034
11319
  catch (e) {
@@ -11051,7 +11336,7 @@ class SearchIndexerClient {
11051
11336
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
11052
11337
  try {
11053
11338
  const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
11054
- const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11339
+ const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
11055
11340
  return generatedSkillsetToPublicSkillset(result);
11056
11341
  }
11057
11342
  catch (e) {
@@ -11079,7 +11364,7 @@ class SearchIndexerClient {
11079
11364
  : options.onlyIfUnchanged
11080
11365
  ? indexer.etag
11081
11366
  : undefined;
11082
- await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11367
+ await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
11083
11368
  }
11084
11369
  catch (e) {
11085
11370
  span.setStatus({
@@ -11106,7 +11391,7 @@ class SearchIndexerClient {
11106
11391
  : options.onlyIfUnchanged
11107
11392
  ? dataSourceConnection.etag
11108
11393
  : undefined;
11109
- await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11394
+ await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
11110
11395
  }
11111
11396
  catch (e) {
11112
11397
  span.setStatus({
@@ -11133,7 +11418,7 @@ class SearchIndexerClient {
11133
11418
  : options.onlyIfUnchanged
11134
11419
  ? skillset.etag
11135
11420
  : undefined;
11136
- await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions)), { ifMatch: etag }));
11421
+ await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
11137
11422
  }
11138
11423
  catch (e) {
11139
11424
  span.setStatus({
@@ -11154,7 +11439,7 @@ class SearchIndexerClient {
11154
11439
  async getIndexerStatus(indexerName, options = {}) {
11155
11440
  const { span, updatedOptions } = createSpan("SearchIndexerClient-getIndexerStatus", options);
11156
11441
  try {
11157
- const result = await this.client.indexers.getStatus(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11442
+ const result = await this.client.indexers.getStatus(indexerName, updatedOptions);
11158
11443
  return result;
11159
11444
  }
11160
11445
  catch (e) {
@@ -11176,7 +11461,7 @@ class SearchIndexerClient {
11176
11461
  async resetIndexer(indexerName, options = {}) {
11177
11462
  const { span, updatedOptions } = createSpan("SearchIndexerClient-resetIndexer", options);
11178
11463
  try {
11179
- await this.client.indexers.reset(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11464
+ await this.client.indexers.reset(indexerName, updatedOptions);
11180
11465
  }
11181
11466
  catch (e) {
11182
11467
  span.setStatus({
@@ -11197,7 +11482,53 @@ class SearchIndexerClient {
11197
11482
  async runIndexer(indexerName, options = {}) {
11198
11483
  const { span, updatedOptions } = createSpan("SearchIndexerClient-runIndexer", options);
11199
11484
  try {
11200
- await this.client.indexers.run(indexerName, coreHttp.operationOptionsToRequestOptionsBase(updatedOptions));
11485
+ await this.client.indexers.run(indexerName, updatedOptions);
11486
+ }
11487
+ catch (e) {
11488
+ span.setStatus({
11489
+ code: coreTracing.SpanStatusCode.ERROR,
11490
+ message: e.message
11491
+ });
11492
+ throw e;
11493
+ }
11494
+ finally {
11495
+ span.end();
11496
+ }
11497
+ }
11498
+ /**
11499
+ * Resets specific documents in the datasource to be selectively re-ingested by the indexer.
11500
+ * @param indexerName - The name of the indexer to reset documents for.
11501
+ * @param options - Additional optional arguments.
11502
+ */
11503
+ async resetDocuments(indexerName, options = {}) {
11504
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
11505
+ try {
11506
+ await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
11507
+ documentKeys: updatedOptions.documentKeys,
11508
+ datasourceDocumentIds: updatedOptions.datasourceDocumentIds
11509
+ } }));
11510
+ }
11511
+ catch (e) {
11512
+ span.setStatus({
11513
+ code: coreTracing.SpanStatusCode.ERROR,
11514
+ message: e.message
11515
+ });
11516
+ throw e;
11517
+ }
11518
+ finally {
11519
+ span.end();
11520
+ }
11521
+ }
11522
+ /**
11523
+ * Reset an existing skillset in a search service.
11524
+ * @param skillsetName - The name of the skillset to reset.
11525
+ * @param skillNames - The names of skills to reset.
11526
+ * @param options - The options parameters.
11527
+ */
11528
+ async resetSkills(skillsetName, options = {}) {
11529
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
11530
+ try {
11531
+ await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
11201
11532
  }
11202
11533
  catch (e) {
11203
11534
  span.setStatus({
@@ -11259,6 +11590,1062 @@ function odata(strings, ...values) {
11259
11590
  return results.join("");
11260
11591
  }
11261
11592
 
11593
+ /*
11594
+ * Copyright (c) Microsoft Corporation.
11595
+ * Licensed under the MIT License.
11596
+ *
11597
+ * Code generated by Microsoft (R) AutoRest Code Generator.
11598
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11599
+ */
11600
+ /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
11601
+ var KnownApiVersion20210430Preview;
11602
+ (function (KnownApiVersion20210430Preview) {
11603
+ /** Api Version '2021-04-30-Preview' */
11604
+ KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
11605
+ })(KnownApiVersion20210430Preview || (KnownApiVersion20210430Preview = {}));
11606
+ (function (KnownQueryLanguage) {
11607
+ /** Query language not specified. */
11608
+ KnownQueryLanguage["None"] = "none";
11609
+ /** Query language value for English (United States). */
11610
+ KnownQueryLanguage["EnUs"] = "en-us";
11611
+ /** Query language value for English (Great Britain). */
11612
+ KnownQueryLanguage["EnGb"] = "en-gb";
11613
+ /** Query language value for English (India). */
11614
+ KnownQueryLanguage["EnIn"] = "en-in";
11615
+ /** Query language value for English (Canada). */
11616
+ KnownQueryLanguage["EnCa"] = "en-ca";
11617
+ /** Query language value for English (Australia). */
11618
+ KnownQueryLanguage["EnAu"] = "en-au";
11619
+ /** Query language value for French (France). */
11620
+ KnownQueryLanguage["FrFr"] = "fr-fr";
11621
+ /** Query language value for French (Canada). */
11622
+ KnownQueryLanguage["FrCa"] = "fr-ca";
11623
+ /** Query language value for German (Germany). */
11624
+ KnownQueryLanguage["DeDe"] = "de-de";
11625
+ /** Query language value for Spanish (Spain). */
11626
+ KnownQueryLanguage["EsEs"] = "es-es";
11627
+ /** Query language value for Spanish (Mexico). */
11628
+ KnownQueryLanguage["EsMx"] = "es-mx";
11629
+ /** Query language value for Chinese (China). */
11630
+ KnownQueryLanguage["ZhCn"] = "zh-cn";
11631
+ /** Query language value for Chinese (Taiwan). */
11632
+ KnownQueryLanguage["ZhTw"] = "zh-tw";
11633
+ /** Query language value for Portuguese (Brazil). */
11634
+ KnownQueryLanguage["PtBr"] = "pt-br";
11635
+ /** Query language value for Portuguese (Portugal). */
11636
+ KnownQueryLanguage["PtPt"] = "pt-pt";
11637
+ /** Query language value for Italian (Italy). */
11638
+ KnownQueryLanguage["ItIt"] = "it-it";
11639
+ /** Query language value for Japanese (Japan). */
11640
+ KnownQueryLanguage["JaJp"] = "ja-jp";
11641
+ /** Query language value for Korean (Korea). */
11642
+ KnownQueryLanguage["KoKr"] = "ko-kr";
11643
+ /** Query language value for Russian (Russia). */
11644
+ KnownQueryLanguage["RuRu"] = "ru-ru";
11645
+ /** Query language value for Czech (Czech Republic). */
11646
+ KnownQueryLanguage["CsCz"] = "cs-cz";
11647
+ /** Query language value for Dutch (Belgium). */
11648
+ KnownQueryLanguage["NlBe"] = "nl-be";
11649
+ /** Query language value for Dutch (Netherlands). */
11650
+ KnownQueryLanguage["NlNl"] = "nl-nl";
11651
+ /** Query language value for Hungarian (Hungary). */
11652
+ KnownQueryLanguage["HuHu"] = "hu-hu";
11653
+ /** Query language value for Polish (Poland). */
11654
+ KnownQueryLanguage["PlPl"] = "pl-pl";
11655
+ /** Query language value for Swedish (Sweden). */
11656
+ KnownQueryLanguage["SvSe"] = "sv-se";
11657
+ /** Query language value for Turkish (Turkey). */
11658
+ KnownQueryLanguage["TrTr"] = "tr-tr";
11659
+ /** Query language value for Hindi (India). */
11660
+ KnownQueryLanguage["HiIn"] = "hi-in";
11661
+ /** Query language value for Arabic (Saudi Arabia). */
11662
+ KnownQueryLanguage["ArSa"] = "ar-sa";
11663
+ /** Query language value for Arabic (Egypt). */
11664
+ KnownQueryLanguage["ArEg"] = "ar-eg";
11665
+ /** Query language value for Arabic (Morocco). */
11666
+ KnownQueryLanguage["ArMa"] = "ar-ma";
11667
+ /** Query language value for Arabic (Kuwait). */
11668
+ KnownQueryLanguage["ArKw"] = "ar-kw";
11669
+ /** Query language value for Arabic (Jordan). */
11670
+ KnownQueryLanguage["ArJo"] = "ar-jo";
11671
+ /** Query language value for Danish (Denmark). */
11672
+ KnownQueryLanguage["DaDk"] = "da-dk";
11673
+ /** Query language value for Norwegian (Normway). */
11674
+ KnownQueryLanguage["NoNo"] = "no-no";
11675
+ /** Query language value for Bulgarian (Bulgary). */
11676
+ KnownQueryLanguage["BgBg"] = "bg-bg";
11677
+ /** Query language value for Croatian (Croatia). */
11678
+ KnownQueryLanguage["HrHr"] = "hr-hr";
11679
+ /** Query language value for Croatian (Bosnia and Herzegovina). */
11680
+ KnownQueryLanguage["HrBa"] = "hr-ba";
11681
+ /** Query language value for Malay (Malaysia). */
11682
+ KnownQueryLanguage["MsMy"] = "ms-my";
11683
+ /** Query language value for Malay (Brunei Darussalam). */
11684
+ KnownQueryLanguage["MsBn"] = "ms-bn";
11685
+ /** Query language value for Slovenian (Slovenia). */
11686
+ KnownQueryLanguage["SlSl"] = "sl-sl";
11687
+ /** Query language value for Tamil (India). */
11688
+ KnownQueryLanguage["TaIn"] = "ta-in";
11689
+ /** Query language value for Vietnamese (Viet Nam). */
11690
+ KnownQueryLanguage["ViVn"] = "vi-vn";
11691
+ /** Query language value for Greek (Greece). */
11692
+ KnownQueryLanguage["ElGr"] = "el-gr";
11693
+ /** Query language value for Romanian (Romania). */
11694
+ KnownQueryLanguage["RoRo"] = "ro-ro";
11695
+ /** Query language value for Icelandic (Iceland). */
11696
+ KnownQueryLanguage["IsIs"] = "is-is";
11697
+ /** Query language value for Indonesian (Indonesia). */
11698
+ KnownQueryLanguage["IdId"] = "id-id";
11699
+ /** Query language value for Thai (Thailand). */
11700
+ KnownQueryLanguage["ThTh"] = "th-th";
11701
+ /** Query language value for Lithuanian (Lithuania). */
11702
+ KnownQueryLanguage["LtLt"] = "lt-lt";
11703
+ /** Query language value for Ukrainian (Ukraine). */
11704
+ KnownQueryLanguage["UkUa"] = "uk-ua";
11705
+ /** Query language value for Latvian (Latvia). */
11706
+ KnownQueryLanguage["LvLv"] = "lv-lv";
11707
+ /** Query language value for Estonian (Estonia). */
11708
+ KnownQueryLanguage["EtEe"] = "et-ee";
11709
+ /** Query language value for Catalan (Spain). */
11710
+ KnownQueryLanguage["CaEs"] = "ca-es";
11711
+ /** Query language value for Finnish (Finland). */
11712
+ KnownQueryLanguage["FiFi"] = "fi-fi";
11713
+ /** Query language value for Serbian (Bosnia and Herzegovina). */
11714
+ KnownQueryLanguage["SrBa"] = "sr-ba";
11715
+ /** Query language value for Serbian (Montenegro). */
11716
+ KnownQueryLanguage["SrMe"] = "sr-me";
11717
+ /** Query language value for Serbian (Serbia). */
11718
+ KnownQueryLanguage["SrRs"] = "sr-rs";
11719
+ /** Query language value for Slovak (Slovakia). */
11720
+ KnownQueryLanguage["SkSk"] = "sk-sk";
11721
+ /** Query language value for Norwegian (Norway). */
11722
+ KnownQueryLanguage["NbNo"] = "nb-no";
11723
+ /** Query language value for Armenian (Armenia). */
11724
+ KnownQueryLanguage["HyAm"] = "hy-am";
11725
+ /** Query language value for Bengali (India). */
11726
+ KnownQueryLanguage["BnIn"] = "bn-in";
11727
+ /** Query language value for Basque (Spain). */
11728
+ KnownQueryLanguage["EuEs"] = "eu-es";
11729
+ /** Query language value for Galician (Spain). */
11730
+ KnownQueryLanguage["GlEs"] = "gl-es";
11731
+ /** Query language value for Gujarati (India). */
11732
+ KnownQueryLanguage["GuIn"] = "gu-in";
11733
+ /** Query language value for Hebrew (Israel). */
11734
+ KnownQueryLanguage["HeIl"] = "he-il";
11735
+ /** Query language value for Irish (Ireland). */
11736
+ KnownQueryLanguage["GaIe"] = "ga-ie";
11737
+ /** Query language value for Kannada (India). */
11738
+ KnownQueryLanguage["KnIn"] = "kn-in";
11739
+ /** Query language value for Malayalam (India). */
11740
+ KnownQueryLanguage["MlIn"] = "ml-in";
11741
+ /** Query language value for Marathi (India). */
11742
+ KnownQueryLanguage["MrIn"] = "mr-in";
11743
+ /** Query language value for Persian (U.A.E.). */
11744
+ KnownQueryLanguage["FaAe"] = "fa-ae";
11745
+ /** Query language value for Punjabi (India). */
11746
+ KnownQueryLanguage["PaIn"] = "pa-in";
11747
+ /** Query language value for Telugu (India). */
11748
+ KnownQueryLanguage["TeIn"] = "te-in";
11749
+ /** Query language value for Urdu (Pakistan). */
11750
+ KnownQueryLanguage["UrPk"] = "ur-pk";
11751
+ })(exports.KnownQueryLanguage || (exports.KnownQueryLanguage = {}));
11752
+ (function (KnownSpeller) {
11753
+ /** Speller not enabled. */
11754
+ KnownSpeller["None"] = "none";
11755
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
11756
+ KnownSpeller["Lexicon"] = "lexicon";
11757
+ })(exports.KnownSpeller || (exports.KnownSpeller = {}));
11758
+ (function (KnownAnswers) {
11759
+ /** Do not return answers for the query. */
11760
+ KnownAnswers["None"] = "none";
11761
+ /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
11762
+ KnownAnswers["Extractive"] = "extractive";
11763
+ })(exports.KnownAnswers || (exports.KnownAnswers = {}));
11764
+ /** Known values of {@link Captions} that the service accepts. */
11765
+ var KnownCaptions;
11766
+ (function (KnownCaptions) {
11767
+ /** Do not return captions for the query. */
11768
+ KnownCaptions["None"] = "none";
11769
+ /** Extracts captions from the matching documents that contain passages relevant to the search query. */
11770
+ KnownCaptions["Extractive"] = "extractive";
11771
+ })(KnownCaptions || (KnownCaptions = {}));
11772
+ (function (KnownQuerySpellerType) {
11773
+ /** Speller not enabled. */
11774
+ KnownQuerySpellerType["None"] = "none";
11775
+ /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */
11776
+ KnownQuerySpellerType["Lexicon"] = "lexicon";
11777
+ })(exports.KnownQuerySpellerType || (exports.KnownQuerySpellerType = {}));
11778
+ (function (KnownQueryAnswerType) {
11779
+ /** Do not return answers for the query. */
11780
+ KnownQueryAnswerType["None"] = "none";
11781
+ /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */
11782
+ KnownQueryAnswerType["Extractive"] = "extractive";
11783
+ })(exports.KnownQueryAnswerType || (exports.KnownQueryAnswerType = {}));
11784
+ (function (KnownQueryCaptionType) {
11785
+ /** Do not return captions for the query. */
11786
+ KnownQueryCaptionType["None"] = "none";
11787
+ /** Extracts captions from the matching documents that contain passages relevant to the search query. */
11788
+ KnownQueryCaptionType["Extractive"] = "extractive";
11789
+ })(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
11790
+
11791
+ /*
11792
+ * Copyright (c) Microsoft Corporation.
11793
+ * Licensed under the MIT License.
11794
+ *
11795
+ * Code generated by Microsoft (R) AutoRest Code Generator.
11796
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
11797
+ */
11798
+ /** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
11799
+ var KnownApiVersion20210430Preview$1;
11800
+ (function (KnownApiVersion20210430Preview) {
11801
+ /** Api Version '2021-04-30-Preview' */
11802
+ KnownApiVersion20210430Preview["TwoThousandTwentyOne0430Preview"] = "2021-04-30-Preview";
11803
+ })(KnownApiVersion20210430Preview$1 || (KnownApiVersion20210430Preview$1 = {}));
11804
+ (function (KnownSearchIndexerDataSourceType) {
11805
+ /** Indicates an Azure SQL datasource. */
11806
+ KnownSearchIndexerDataSourceType["AzureSql"] = "azuresql";
11807
+ /** Indicates a CosmosDB datasource. */
11808
+ KnownSearchIndexerDataSourceType["CosmosDb"] = "cosmosdb";
11809
+ /** Indicates an Azure Blob datasource. */
11810
+ KnownSearchIndexerDataSourceType["AzureBlob"] = "azureblob";
11811
+ /** Indicates an Azure Table datasource. */
11812
+ KnownSearchIndexerDataSourceType["AzureTable"] = "azuretable";
11813
+ /** Indicates a MySql datasource. */
11814
+ KnownSearchIndexerDataSourceType["MySql"] = "mysql";
11815
+ /** Indicates an ADLS Gen2 datasource. */
11816
+ KnownSearchIndexerDataSourceType["AdlsGen2"] = "adlsgen2";
11817
+ })(exports.KnownSearchIndexerDataSourceType || (exports.KnownSearchIndexerDataSourceType = {}));
11818
+ (function (KnownBlobIndexerParsingMode) {
11819
+ /** Set to default for normal file processing. */
11820
+ KnownBlobIndexerParsingMode["Default"] = "default";
11821
+ /** Set to text to improve indexing performance on plain text files in blob storage. */
11822
+ KnownBlobIndexerParsingMode["Text"] = "text";
11823
+ /** Set to delimitedText when blobs are plain CSV files. */
11824
+ KnownBlobIndexerParsingMode["DelimitedText"] = "delimitedText";
11825
+ /** Set to json to extract structured content from JSON files. */
11826
+ KnownBlobIndexerParsingMode["Json"] = "json";
11827
+ /** Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. */
11828
+ KnownBlobIndexerParsingMode["JsonArray"] = "jsonArray";
11829
+ /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */
11830
+ KnownBlobIndexerParsingMode["JsonLines"] = "jsonLines";
11831
+ })(exports.KnownBlobIndexerParsingMode || (exports.KnownBlobIndexerParsingMode = {}));
11832
+ (function (KnownBlobIndexerDataToExtract) {
11833
+ /** Indexes just the standard blob properties and user-specified metadata. */
11834
+ KnownBlobIndexerDataToExtract["StorageMetadata"] = "storageMetadata";
11835
+ /** 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). */
11836
+ KnownBlobIndexerDataToExtract["AllMetadata"] = "allMetadata";
11837
+ /** Extracts all metadata and textual content from each blob. */
11838
+ KnownBlobIndexerDataToExtract["ContentAndMetadata"] = "contentAndMetadata";
11839
+ })(exports.KnownBlobIndexerDataToExtract || (exports.KnownBlobIndexerDataToExtract = {}));
11840
+ (function (KnownBlobIndexerImageAction) {
11841
+ /** Ignores embedded images or image files in the data set. This is the default. */
11842
+ KnownBlobIndexerImageAction["None"] = "none";
11843
+ /** 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. */
11844
+ KnownBlobIndexerImageAction["GenerateNormalizedImages"] = "generateNormalizedImages";
11845
+ /** 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. */
11846
+ KnownBlobIndexerImageAction["GenerateNormalizedImagePerPage"] = "generateNormalizedImagePerPage";
11847
+ })(exports.KnownBlobIndexerImageAction || (exports.KnownBlobIndexerImageAction = {}));
11848
+ (function (KnownBlobIndexerPDFTextRotationAlgorithm) {
11849
+ /** Leverages normal text extraction. This is the default. */
11850
+ KnownBlobIndexerPDFTextRotationAlgorithm["None"] = "none";
11851
+ /** 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. */
11852
+ KnownBlobIndexerPDFTextRotationAlgorithm["DetectAngles"] = "detectAngles";
11853
+ })(exports.KnownBlobIndexerPDFTextRotationAlgorithm || (exports.KnownBlobIndexerPDFTextRotationAlgorithm = {}));
11854
+ /** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */
11855
+ var KnownIndexerExecutionEnvironment;
11856
+ (function (KnownIndexerExecutionEnvironment) {
11857
+ /** 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. */
11858
+ KnownIndexerExecutionEnvironment["Standard"] = "standard";
11859
+ /** 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. */
11860
+ KnownIndexerExecutionEnvironment["Private"] = "private";
11861
+ })(KnownIndexerExecutionEnvironment || (KnownIndexerExecutionEnvironment = {}));
11862
+ (function (KnownIndexerExecutionStatusDetail) {
11863
+ /** Indicates that the reset that occurred was for a call to ResetDocs. */
11864
+ KnownIndexerExecutionStatusDetail["ResetDocs"] = "resetDocs";
11865
+ })(exports.KnownIndexerExecutionStatusDetail || (exports.KnownIndexerExecutionStatusDetail = {}));
11866
+ (function (KnownIndexingMode) {
11867
+ /** The indexer is indexing all documents in the datasource. */
11868
+ KnownIndexingMode["IndexingAllDocs"] = "indexingAllDocs";
11869
+ /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */
11870
+ KnownIndexingMode["IndexingResetDocs"] = "indexingResetDocs";
11871
+ })(exports.KnownIndexingMode || (exports.KnownIndexingMode = {}));
11872
+ /** Known values of {@link SearchFieldDataType} that the service accepts. */
11873
+ var KnownSearchFieldDataType;
11874
+ (function (KnownSearchFieldDataType) {
11875
+ /** Indicates that a field contains a string. */
11876
+ KnownSearchFieldDataType["String"] = "Edm.String";
11877
+ /** Indicates that a field contains a 32-bit signed integer. */
11878
+ KnownSearchFieldDataType["Int32"] = "Edm.Int32";
11879
+ /** Indicates that a field contains a 64-bit signed integer. */
11880
+ KnownSearchFieldDataType["Int64"] = "Edm.Int64";
11881
+ /** Indicates that a field contains an IEEE double-precision floating point number. */
11882
+ KnownSearchFieldDataType["Double"] = "Edm.Double";
11883
+ /** Indicates that a field contains a Boolean value (true or false). */
11884
+ KnownSearchFieldDataType["Boolean"] = "Edm.Boolean";
11885
+ /** Indicates that a field contains a date/time value, including timezone information. */
11886
+ KnownSearchFieldDataType["DateTimeOffset"] = "Edm.DateTimeOffset";
11887
+ /** Indicates that a field contains a geo-location in terms of longitude and latitude. */
11888
+ KnownSearchFieldDataType["GeographyPoint"] = "Edm.GeographyPoint";
11889
+ /** Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. */
11890
+ KnownSearchFieldDataType["Complex"] = "Edm.ComplexType";
11891
+ KnownSearchFieldDataType["CollectionEdmString"] = "Collection(Edm.String)";
11892
+ KnownSearchFieldDataType["CollectionEdmInt32"] = "Collection(Edm.Int32)";
11893
+ KnownSearchFieldDataType["CollectionEdmInt64"] = "Collection(Edm.Int64)";
11894
+ KnownSearchFieldDataType["CollectionEdmDouble"] = "Collection(Edm.Double)";
11895
+ KnownSearchFieldDataType["CollectionEdmBoolean"] = "Collection(Edm.Boolean)";
11896
+ KnownSearchFieldDataType["CollectionEdmDateTimeOffset"] = "Collection(Edm.DateTimeOffset)";
11897
+ KnownSearchFieldDataType["CollectionEdmGeographyPoint"] = "Collection(Edm.GeographyPoint)";
11898
+ KnownSearchFieldDataType["CollectionEdmComplexType"] = "Collection(Edm.ComplexType)";
11899
+ })(KnownSearchFieldDataType || (KnownSearchFieldDataType = {}));
11900
+ (function (KnownLexicalAnalyzerName) {
11901
+ /** Microsoft analyzer for Arabic. */
11902
+ KnownLexicalAnalyzerName["ArMicrosoft"] = "ar.microsoft";
11903
+ /** Lucene analyzer for Arabic. */
11904
+ KnownLexicalAnalyzerName["ArLucene"] = "ar.lucene";
11905
+ /** Lucene analyzer for Armenian. */
11906
+ KnownLexicalAnalyzerName["HyLucene"] = "hy.lucene";
11907
+ /** Microsoft analyzer for Bangla. */
11908
+ KnownLexicalAnalyzerName["BnMicrosoft"] = "bn.microsoft";
11909
+ /** Lucene analyzer for Basque. */
11910
+ KnownLexicalAnalyzerName["EuLucene"] = "eu.lucene";
11911
+ /** Microsoft analyzer for Bulgarian. */
11912
+ KnownLexicalAnalyzerName["BgMicrosoft"] = "bg.microsoft";
11913
+ /** Lucene analyzer for Bulgarian. */
11914
+ KnownLexicalAnalyzerName["BgLucene"] = "bg.lucene";
11915
+ /** Microsoft analyzer for Catalan. */
11916
+ KnownLexicalAnalyzerName["CaMicrosoft"] = "ca.microsoft";
11917
+ /** Lucene analyzer for Catalan. */
11918
+ KnownLexicalAnalyzerName["CaLucene"] = "ca.lucene";
11919
+ /** Microsoft analyzer for Chinese (Simplified). */
11920
+ KnownLexicalAnalyzerName["ZhHansMicrosoft"] = "zh-Hans.microsoft";
11921
+ /** Lucene analyzer for Chinese (Simplified). */
11922
+ KnownLexicalAnalyzerName["ZhHansLucene"] = "zh-Hans.lucene";
11923
+ /** Microsoft analyzer for Chinese (Traditional). */
11924
+ KnownLexicalAnalyzerName["ZhHantMicrosoft"] = "zh-Hant.microsoft";
11925
+ /** Lucene analyzer for Chinese (Traditional). */
11926
+ KnownLexicalAnalyzerName["ZhHantLucene"] = "zh-Hant.lucene";
11927
+ /** Microsoft analyzer for Croatian. */
11928
+ KnownLexicalAnalyzerName["HrMicrosoft"] = "hr.microsoft";
11929
+ /** Microsoft analyzer for Czech. */
11930
+ KnownLexicalAnalyzerName["CsMicrosoft"] = "cs.microsoft";
11931
+ /** Lucene analyzer for Czech. */
11932
+ KnownLexicalAnalyzerName["CsLucene"] = "cs.lucene";
11933
+ /** Microsoft analyzer for Danish. */
11934
+ KnownLexicalAnalyzerName["DaMicrosoft"] = "da.microsoft";
11935
+ /** Lucene analyzer for Danish. */
11936
+ KnownLexicalAnalyzerName["DaLucene"] = "da.lucene";
11937
+ /** Microsoft analyzer for Dutch. */
11938
+ KnownLexicalAnalyzerName["NlMicrosoft"] = "nl.microsoft";
11939
+ /** Lucene analyzer for Dutch. */
11940
+ KnownLexicalAnalyzerName["NlLucene"] = "nl.lucene";
11941
+ /** Microsoft analyzer for English. */
11942
+ KnownLexicalAnalyzerName["EnMicrosoft"] = "en.microsoft";
11943
+ /** Lucene analyzer for English. */
11944
+ KnownLexicalAnalyzerName["EnLucene"] = "en.lucene";
11945
+ /** Microsoft analyzer for Estonian. */
11946
+ KnownLexicalAnalyzerName["EtMicrosoft"] = "et.microsoft";
11947
+ /** Microsoft analyzer for Finnish. */
11948
+ KnownLexicalAnalyzerName["FiMicrosoft"] = "fi.microsoft";
11949
+ /** Lucene analyzer for Finnish. */
11950
+ KnownLexicalAnalyzerName["FiLucene"] = "fi.lucene";
11951
+ /** Microsoft analyzer for French. */
11952
+ KnownLexicalAnalyzerName["FrMicrosoft"] = "fr.microsoft";
11953
+ /** Lucene analyzer for French. */
11954
+ KnownLexicalAnalyzerName["FrLucene"] = "fr.lucene";
11955
+ /** Lucene analyzer for Galician. */
11956
+ KnownLexicalAnalyzerName["GlLucene"] = "gl.lucene";
11957
+ /** Microsoft analyzer for German. */
11958
+ KnownLexicalAnalyzerName["DeMicrosoft"] = "de.microsoft";
11959
+ /** Lucene analyzer for German. */
11960
+ KnownLexicalAnalyzerName["DeLucene"] = "de.lucene";
11961
+ /** Microsoft analyzer for Greek. */
11962
+ KnownLexicalAnalyzerName["ElMicrosoft"] = "el.microsoft";
11963
+ /** Lucene analyzer for Greek. */
11964
+ KnownLexicalAnalyzerName["ElLucene"] = "el.lucene";
11965
+ /** Microsoft analyzer for Gujarati. */
11966
+ KnownLexicalAnalyzerName["GuMicrosoft"] = "gu.microsoft";
11967
+ /** Microsoft analyzer for Hebrew. */
11968
+ KnownLexicalAnalyzerName["HeMicrosoft"] = "he.microsoft";
11969
+ /** Microsoft analyzer for Hindi. */
11970
+ KnownLexicalAnalyzerName["HiMicrosoft"] = "hi.microsoft";
11971
+ /** Lucene analyzer for Hindi. */
11972
+ KnownLexicalAnalyzerName["HiLucene"] = "hi.lucene";
11973
+ /** Microsoft analyzer for Hungarian. */
11974
+ KnownLexicalAnalyzerName["HuMicrosoft"] = "hu.microsoft";
11975
+ /** Lucene analyzer for Hungarian. */
11976
+ KnownLexicalAnalyzerName["HuLucene"] = "hu.lucene";
11977
+ /** Microsoft analyzer for Icelandic. */
11978
+ KnownLexicalAnalyzerName["IsMicrosoft"] = "is.microsoft";
11979
+ /** Microsoft analyzer for Indonesian (Bahasa). */
11980
+ KnownLexicalAnalyzerName["IdMicrosoft"] = "id.microsoft";
11981
+ /** Lucene analyzer for Indonesian. */
11982
+ KnownLexicalAnalyzerName["IdLucene"] = "id.lucene";
11983
+ /** Lucene analyzer for Irish. */
11984
+ KnownLexicalAnalyzerName["GaLucene"] = "ga.lucene";
11985
+ /** Microsoft analyzer for Italian. */
11986
+ KnownLexicalAnalyzerName["ItMicrosoft"] = "it.microsoft";
11987
+ /** Lucene analyzer for Italian. */
11988
+ KnownLexicalAnalyzerName["ItLucene"] = "it.lucene";
11989
+ /** Microsoft analyzer for Japanese. */
11990
+ KnownLexicalAnalyzerName["JaMicrosoft"] = "ja.microsoft";
11991
+ /** Lucene analyzer for Japanese. */
11992
+ KnownLexicalAnalyzerName["JaLucene"] = "ja.lucene";
11993
+ /** Microsoft analyzer for Kannada. */
11994
+ KnownLexicalAnalyzerName["KnMicrosoft"] = "kn.microsoft";
11995
+ /** Microsoft analyzer for Korean. */
11996
+ KnownLexicalAnalyzerName["KoMicrosoft"] = "ko.microsoft";
11997
+ /** Lucene analyzer for Korean. */
11998
+ KnownLexicalAnalyzerName["KoLucene"] = "ko.lucene";
11999
+ /** Microsoft analyzer for Latvian. */
12000
+ KnownLexicalAnalyzerName["LvMicrosoft"] = "lv.microsoft";
12001
+ /** Lucene analyzer for Latvian. */
12002
+ KnownLexicalAnalyzerName["LvLucene"] = "lv.lucene";
12003
+ /** Microsoft analyzer for Lithuanian. */
12004
+ KnownLexicalAnalyzerName["LtMicrosoft"] = "lt.microsoft";
12005
+ /** Microsoft analyzer for Malayalam. */
12006
+ KnownLexicalAnalyzerName["MlMicrosoft"] = "ml.microsoft";
12007
+ /** Microsoft analyzer for Malay (Latin). */
12008
+ KnownLexicalAnalyzerName["MsMicrosoft"] = "ms.microsoft";
12009
+ /** Microsoft analyzer for Marathi. */
12010
+ KnownLexicalAnalyzerName["MrMicrosoft"] = "mr.microsoft";
12011
+ /** Microsoft analyzer for Norwegian (Bokmål). */
12012
+ KnownLexicalAnalyzerName["NbMicrosoft"] = "nb.microsoft";
12013
+ /** Lucene analyzer for Norwegian. */
12014
+ KnownLexicalAnalyzerName["NoLucene"] = "no.lucene";
12015
+ /** Lucene analyzer for Persian. */
12016
+ KnownLexicalAnalyzerName["FaLucene"] = "fa.lucene";
12017
+ /** Microsoft analyzer for Polish. */
12018
+ KnownLexicalAnalyzerName["PlMicrosoft"] = "pl.microsoft";
12019
+ /** Lucene analyzer for Polish. */
12020
+ KnownLexicalAnalyzerName["PlLucene"] = "pl.lucene";
12021
+ /** Microsoft analyzer for Portuguese (Brazil). */
12022
+ KnownLexicalAnalyzerName["PtBrMicrosoft"] = "pt-BR.microsoft";
12023
+ /** Lucene analyzer for Portuguese (Brazil). */
12024
+ KnownLexicalAnalyzerName["PtBrLucene"] = "pt-BR.lucene";
12025
+ /** Microsoft analyzer for Portuguese (Portugal). */
12026
+ KnownLexicalAnalyzerName["PtPtMicrosoft"] = "pt-PT.microsoft";
12027
+ /** Lucene analyzer for Portuguese (Portugal). */
12028
+ KnownLexicalAnalyzerName["PtPtLucene"] = "pt-PT.lucene";
12029
+ /** Microsoft analyzer for Punjabi. */
12030
+ KnownLexicalAnalyzerName["PaMicrosoft"] = "pa.microsoft";
12031
+ /** Microsoft analyzer for Romanian. */
12032
+ KnownLexicalAnalyzerName["RoMicrosoft"] = "ro.microsoft";
12033
+ /** Lucene analyzer for Romanian. */
12034
+ KnownLexicalAnalyzerName["RoLucene"] = "ro.lucene";
12035
+ /** Microsoft analyzer for Russian. */
12036
+ KnownLexicalAnalyzerName["RuMicrosoft"] = "ru.microsoft";
12037
+ /** Lucene analyzer for Russian. */
12038
+ KnownLexicalAnalyzerName["RuLucene"] = "ru.lucene";
12039
+ /** Microsoft analyzer for Serbian (Cyrillic). */
12040
+ KnownLexicalAnalyzerName["SrCyrillicMicrosoft"] = "sr-cyrillic.microsoft";
12041
+ /** Microsoft analyzer for Serbian (Latin). */
12042
+ KnownLexicalAnalyzerName["SrLatinMicrosoft"] = "sr-latin.microsoft";
12043
+ /** Microsoft analyzer for Slovak. */
12044
+ KnownLexicalAnalyzerName["SkMicrosoft"] = "sk.microsoft";
12045
+ /** Microsoft analyzer for Slovenian. */
12046
+ KnownLexicalAnalyzerName["SlMicrosoft"] = "sl.microsoft";
12047
+ /** Microsoft analyzer for Spanish. */
12048
+ KnownLexicalAnalyzerName["EsMicrosoft"] = "es.microsoft";
12049
+ /** Lucene analyzer for Spanish. */
12050
+ KnownLexicalAnalyzerName["EsLucene"] = "es.lucene";
12051
+ /** Microsoft analyzer for Swedish. */
12052
+ KnownLexicalAnalyzerName["SvMicrosoft"] = "sv.microsoft";
12053
+ /** Lucene analyzer for Swedish. */
12054
+ KnownLexicalAnalyzerName["SvLucene"] = "sv.lucene";
12055
+ /** Microsoft analyzer for Tamil. */
12056
+ KnownLexicalAnalyzerName["TaMicrosoft"] = "ta.microsoft";
12057
+ /** Microsoft analyzer for Telugu. */
12058
+ KnownLexicalAnalyzerName["TeMicrosoft"] = "te.microsoft";
12059
+ /** Microsoft analyzer for Thai. */
12060
+ KnownLexicalAnalyzerName["ThMicrosoft"] = "th.microsoft";
12061
+ /** Lucene analyzer for Thai. */
12062
+ KnownLexicalAnalyzerName["ThLucene"] = "th.lucene";
12063
+ /** Microsoft analyzer for Turkish. */
12064
+ KnownLexicalAnalyzerName["TrMicrosoft"] = "tr.microsoft";
12065
+ /** Lucene analyzer for Turkish. */
12066
+ KnownLexicalAnalyzerName["TrLucene"] = "tr.lucene";
12067
+ /** Microsoft analyzer for Ukrainian. */
12068
+ KnownLexicalAnalyzerName["UkMicrosoft"] = "uk.microsoft";
12069
+ /** Microsoft analyzer for Urdu. */
12070
+ KnownLexicalAnalyzerName["UrMicrosoft"] = "ur.microsoft";
12071
+ /** Microsoft analyzer for Vietnamese. */
12072
+ KnownLexicalAnalyzerName["ViMicrosoft"] = "vi.microsoft";
12073
+ /** Standard Lucene analyzer. */
12074
+ KnownLexicalAnalyzerName["StandardLucene"] = "standard.lucene";
12075
+ /** Standard ASCII Folding Lucene analyzer. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#Analyzers */
12076
+ KnownLexicalAnalyzerName["StandardAsciiFoldingLucene"] = "standardasciifolding.lucene";
12077
+ /** 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 */
12078
+ KnownLexicalAnalyzerName["Keyword"] = "keyword";
12079
+ /** 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 */
12080
+ KnownLexicalAnalyzerName["Pattern"] = "pattern";
12081
+ /** 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 */
12082
+ KnownLexicalAnalyzerName["Simple"] = "simple";
12083
+ /** 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 */
12084
+ KnownLexicalAnalyzerName["Stop"] = "stop";
12085
+ /** 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 */
12086
+ KnownLexicalAnalyzerName["Whitespace"] = "whitespace";
12087
+ })(exports.KnownLexicalAnalyzerName || (exports.KnownLexicalAnalyzerName = {}));
12088
+ (function (KnownLexicalNormalizerName) {
12089
+ /** 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 */
12090
+ KnownLexicalNormalizerName["AsciiFolding"] = "asciifolding";
12091
+ /** 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 */
12092
+ KnownLexicalNormalizerName["Elision"] = "elision";
12093
+ /** Normalizes token text to lowercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
12094
+ KnownLexicalNormalizerName["Lowercase"] = "lowercase";
12095
+ /** 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 */
12096
+ KnownLexicalNormalizerName["Standard"] = "standard";
12097
+ /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
12098
+ KnownLexicalNormalizerName["Uppercase"] = "uppercase";
12099
+ })(exports.KnownLexicalNormalizerName || (exports.KnownLexicalNormalizerName = {}));
12100
+ (function (KnownTokenFilterName) {
12101
+ /** 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 */
12102
+ KnownTokenFilterName["ArabicNormalization"] = "arabic_normalization";
12103
+ /** 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 */
12104
+ KnownTokenFilterName["Apostrophe"] = "apostrophe";
12105
+ /** 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 */
12106
+ KnownTokenFilterName["AsciiFolding"] = "asciifolding";
12107
+ /** 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 */
12108
+ KnownTokenFilterName["CjkBigram"] = "cjk_bigram";
12109
+ /** 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 */
12110
+ KnownTokenFilterName["CjkWidth"] = "cjk_width";
12111
+ /** 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 */
12112
+ KnownTokenFilterName["Classic"] = "classic";
12113
+ /** 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 */
12114
+ KnownTokenFilterName["CommonGram"] = "common_grams";
12115
+ /** 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 */
12116
+ KnownTokenFilterName["EdgeNGram"] = "edgeNGram_v2";
12117
+ /** 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 */
12118
+ KnownTokenFilterName["Elision"] = "elision";
12119
+ /** 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 */
12120
+ KnownTokenFilterName["GermanNormalization"] = "german_normalization";
12121
+ /** 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 */
12122
+ KnownTokenFilterName["HindiNormalization"] = "hindi_normalization";
12123
+ /** 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 */
12124
+ KnownTokenFilterName["IndicNormalization"] = "indic_normalization";
12125
+ /** 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 */
12126
+ KnownTokenFilterName["KeywordRepeat"] = "keyword_repeat";
12127
+ /** 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 */
12128
+ KnownTokenFilterName["KStem"] = "kstem";
12129
+ /** 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 */
12130
+ KnownTokenFilterName["Length"] = "length";
12131
+ /** 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 */
12132
+ KnownTokenFilterName["Limit"] = "limit";
12133
+ /** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */
12134
+ KnownTokenFilterName["Lowercase"] = "lowercase";
12135
+ /** 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 */
12136
+ KnownTokenFilterName["NGram"] = "nGram_v2";
12137
+ /** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */
12138
+ KnownTokenFilterName["PersianNormalization"] = "persian_normalization";
12139
+ /** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */
12140
+ KnownTokenFilterName["Phonetic"] = "phonetic";
12141
+ /** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */
12142
+ KnownTokenFilterName["PorterStem"] = "porter_stem";
12143
+ /** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */
12144
+ KnownTokenFilterName["Reverse"] = "reverse";
12145
+ /** 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 */
12146
+ KnownTokenFilterName["ScandinavianNormalization"] = "scandinavian_normalization";
12147
+ /** 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 */
12148
+ KnownTokenFilterName["ScandinavianFoldingNormalization"] = "scandinavian_folding";
12149
+ /** 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 */
12150
+ KnownTokenFilterName["Shingle"] = "shingle";
12151
+ /** 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 */
12152
+ KnownTokenFilterName["Snowball"] = "snowball";
12153
+ /** 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 */
12154
+ KnownTokenFilterName["SoraniNormalization"] = "sorani_normalization";
12155
+ /** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */
12156
+ KnownTokenFilterName["Stemmer"] = "stemmer";
12157
+ /** 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 */
12158
+ KnownTokenFilterName["Stopwords"] = "stopwords";
12159
+ /** 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 */
12160
+ KnownTokenFilterName["Trim"] = "trim";
12161
+ /** 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 */
12162
+ KnownTokenFilterName["Truncate"] = "truncate";
12163
+ /** 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 */
12164
+ KnownTokenFilterName["Unique"] = "unique";
12165
+ /** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */
12166
+ KnownTokenFilterName["Uppercase"] = "uppercase";
12167
+ /** Splits words into subwords and performs optional transformations on subword groups. */
12168
+ KnownTokenFilterName["WordDelimiter"] = "word_delimiter";
12169
+ })(exports.KnownTokenFilterName || (exports.KnownTokenFilterName = {}));
12170
+ (function (KnownCharFilterName) {
12171
+ /** 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 */
12172
+ KnownCharFilterName["HtmlStrip"] = "html_strip";
12173
+ })(exports.KnownCharFilterName || (exports.KnownCharFilterName = {}));
12174
+ (function (KnownKeyPhraseExtractionSkillLanguage) {
12175
+ /** Danish */
12176
+ KnownKeyPhraseExtractionSkillLanguage["Da"] = "da";
12177
+ /** Dutch */
12178
+ KnownKeyPhraseExtractionSkillLanguage["Nl"] = "nl";
12179
+ /** English */
12180
+ KnownKeyPhraseExtractionSkillLanguage["En"] = "en";
12181
+ /** Finnish */
12182
+ KnownKeyPhraseExtractionSkillLanguage["Fi"] = "fi";
12183
+ /** French */
12184
+ KnownKeyPhraseExtractionSkillLanguage["Fr"] = "fr";
12185
+ /** German */
12186
+ KnownKeyPhraseExtractionSkillLanguage["De"] = "de";
12187
+ /** Italian */
12188
+ KnownKeyPhraseExtractionSkillLanguage["It"] = "it";
12189
+ /** Japanese */
12190
+ KnownKeyPhraseExtractionSkillLanguage["Ja"] = "ja";
12191
+ /** Korean */
12192
+ KnownKeyPhraseExtractionSkillLanguage["Ko"] = "ko";
12193
+ /** Norwegian (Bokmaal) */
12194
+ KnownKeyPhraseExtractionSkillLanguage["No"] = "no";
12195
+ /** Polish */
12196
+ KnownKeyPhraseExtractionSkillLanguage["Pl"] = "pl";
12197
+ /** Portuguese (Portugal) */
12198
+ KnownKeyPhraseExtractionSkillLanguage["PtPT"] = "pt-PT";
12199
+ /** Portuguese (Brazil) */
12200
+ KnownKeyPhraseExtractionSkillLanguage["PtBR"] = "pt-BR";
12201
+ /** Russian */
12202
+ KnownKeyPhraseExtractionSkillLanguage["Ru"] = "ru";
12203
+ /** Spanish */
12204
+ KnownKeyPhraseExtractionSkillLanguage["Es"] = "es";
12205
+ /** Swedish */
12206
+ KnownKeyPhraseExtractionSkillLanguage["Sv"] = "sv";
12207
+ })(exports.KnownKeyPhraseExtractionSkillLanguage || (exports.KnownKeyPhraseExtractionSkillLanguage = {}));
12208
+ (function (KnownOcrSkillLanguage) {
12209
+ /** Chinese-Simplified */
12210
+ KnownOcrSkillLanguage["ZhHans"] = "zh-Hans";
12211
+ /** Chinese-Traditional */
12212
+ KnownOcrSkillLanguage["ZhHant"] = "zh-Hant";
12213
+ /** Czech */
12214
+ KnownOcrSkillLanguage["Cs"] = "cs";
12215
+ /** Danish */
12216
+ KnownOcrSkillLanguage["Da"] = "da";
12217
+ /** Dutch */
12218
+ KnownOcrSkillLanguage["Nl"] = "nl";
12219
+ /** English */
12220
+ KnownOcrSkillLanguage["En"] = "en";
12221
+ /** Finnish */
12222
+ KnownOcrSkillLanguage["Fi"] = "fi";
12223
+ /** French */
12224
+ KnownOcrSkillLanguage["Fr"] = "fr";
12225
+ /** German */
12226
+ KnownOcrSkillLanguage["De"] = "de";
12227
+ /** Greek */
12228
+ KnownOcrSkillLanguage["El"] = "el";
12229
+ /** Hungarian */
12230
+ KnownOcrSkillLanguage["Hu"] = "hu";
12231
+ /** Italian */
12232
+ KnownOcrSkillLanguage["It"] = "it";
12233
+ /** Japanese */
12234
+ KnownOcrSkillLanguage["Ja"] = "ja";
12235
+ /** Korean */
12236
+ KnownOcrSkillLanguage["Ko"] = "ko";
12237
+ /** Norwegian (Bokmaal) */
12238
+ KnownOcrSkillLanguage["Nb"] = "nb";
12239
+ /** Polish */
12240
+ KnownOcrSkillLanguage["Pl"] = "pl";
12241
+ /** Portuguese */
12242
+ KnownOcrSkillLanguage["Pt"] = "pt";
12243
+ /** Russian */
12244
+ KnownOcrSkillLanguage["Ru"] = "ru";
12245
+ /** Spanish */
12246
+ KnownOcrSkillLanguage["Es"] = "es";
12247
+ /** Swedish */
12248
+ KnownOcrSkillLanguage["Sv"] = "sv";
12249
+ /** Turkish */
12250
+ KnownOcrSkillLanguage["Tr"] = "tr";
12251
+ /** Arabic */
12252
+ KnownOcrSkillLanguage["Ar"] = "ar";
12253
+ /** Romanian */
12254
+ KnownOcrSkillLanguage["Ro"] = "ro";
12255
+ /** Serbian (Cyrillic, Serbia) */
12256
+ KnownOcrSkillLanguage["SrCyrl"] = "sr-Cyrl";
12257
+ /** Serbian (Latin, Serbia) */
12258
+ KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
12259
+ /** Slovak */
12260
+ KnownOcrSkillLanguage["Sk"] = "sk";
12261
+ })(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
12262
+ (function (KnownLineEnding) {
12263
+ /** Lines are separated by a single space character. */
12264
+ KnownLineEnding["Space"] = "space";
12265
+ /** Lines are separated by a carriage return ('\r') character. */
12266
+ KnownLineEnding["CarriageReturn"] = "carriageReturn";
12267
+ /** Lines are separated by a single line feed ('\n') character. */
12268
+ KnownLineEnding["LineFeed"] = "lineFeed";
12269
+ /** Lines are separated by a carriage return and a line feed ('\r\n') character. */
12270
+ KnownLineEnding["CarriageReturnLineFeed"] = "carriageReturnLineFeed";
12271
+ })(exports.KnownLineEnding || (exports.KnownLineEnding = {}));
12272
+ (function (KnownImageAnalysisSkillLanguage) {
12273
+ /** English */
12274
+ KnownImageAnalysisSkillLanguage["En"] = "en";
12275
+ /** Spanish */
12276
+ KnownImageAnalysisSkillLanguage["Es"] = "es";
12277
+ /** Japanese */
12278
+ KnownImageAnalysisSkillLanguage["Ja"] = "ja";
12279
+ /** Portuguese */
12280
+ KnownImageAnalysisSkillLanguage["Pt"] = "pt";
12281
+ /** Chinese */
12282
+ KnownImageAnalysisSkillLanguage["Zh"] = "zh";
12283
+ })(exports.KnownImageAnalysisSkillLanguage || (exports.KnownImageAnalysisSkillLanguage = {}));
12284
+ (function (KnownVisualFeature) {
12285
+ /** Visual features recognized as adult persons. */
12286
+ KnownVisualFeature["Adult"] = "adult";
12287
+ /** Visual features recognized as commercial brands. */
12288
+ KnownVisualFeature["Brands"] = "brands";
12289
+ /** Categories. */
12290
+ KnownVisualFeature["Categories"] = "categories";
12291
+ /** Description. */
12292
+ KnownVisualFeature["Description"] = "description";
12293
+ /** Visual features recognized as people faces. */
12294
+ KnownVisualFeature["Faces"] = "faces";
12295
+ /** Visual features recognized as objects. */
12296
+ KnownVisualFeature["Objects"] = "objects";
12297
+ /** Tags. */
12298
+ KnownVisualFeature["Tags"] = "tags";
12299
+ })(exports.KnownVisualFeature || (exports.KnownVisualFeature = {}));
12300
+ (function (KnownImageDetail) {
12301
+ /** Details recognized as celebrities. */
12302
+ KnownImageDetail["Celebrities"] = "celebrities";
12303
+ /** Details recognized as landmarks. */
12304
+ KnownImageDetail["Landmarks"] = "landmarks";
12305
+ })(exports.KnownImageDetail || (exports.KnownImageDetail = {}));
12306
+ (function (KnownEntityCategory) {
12307
+ /** Entities describing a physical location. */
12308
+ KnownEntityCategory["Location"] = "location";
12309
+ /** Entities describing an organization. */
12310
+ KnownEntityCategory["Organization"] = "organization";
12311
+ /** Entities describing a person. */
12312
+ KnownEntityCategory["Person"] = "person";
12313
+ /** Entities describing a quantity. */
12314
+ KnownEntityCategory["Quantity"] = "quantity";
12315
+ /** Entities describing a date and time. */
12316
+ KnownEntityCategory["Datetime"] = "datetime";
12317
+ /** Entities describing a URL. */
12318
+ KnownEntityCategory["Url"] = "url";
12319
+ /** Entities describing an email address. */
12320
+ KnownEntityCategory["Email"] = "email";
12321
+ })(exports.KnownEntityCategory || (exports.KnownEntityCategory = {}));
12322
+ (function (KnownEntityRecognitionSkillLanguage) {
12323
+ /** Arabic */
12324
+ KnownEntityRecognitionSkillLanguage["Ar"] = "ar";
12325
+ /** Czech */
12326
+ KnownEntityRecognitionSkillLanguage["Cs"] = "cs";
12327
+ /** Chinese-Simplified */
12328
+ KnownEntityRecognitionSkillLanguage["ZhHans"] = "zh-Hans";
12329
+ /** Chinese-Traditional */
12330
+ KnownEntityRecognitionSkillLanguage["ZhHant"] = "zh-Hant";
12331
+ /** Danish */
12332
+ KnownEntityRecognitionSkillLanguage["Da"] = "da";
12333
+ /** Dutch */
12334
+ KnownEntityRecognitionSkillLanguage["Nl"] = "nl";
12335
+ /** English */
12336
+ KnownEntityRecognitionSkillLanguage["En"] = "en";
12337
+ /** Finnish */
12338
+ KnownEntityRecognitionSkillLanguage["Fi"] = "fi";
12339
+ /** French */
12340
+ KnownEntityRecognitionSkillLanguage["Fr"] = "fr";
12341
+ /** German */
12342
+ KnownEntityRecognitionSkillLanguage["De"] = "de";
12343
+ /** Greek */
12344
+ KnownEntityRecognitionSkillLanguage["El"] = "el";
12345
+ /** Hungarian */
12346
+ KnownEntityRecognitionSkillLanguage["Hu"] = "hu";
12347
+ /** Italian */
12348
+ KnownEntityRecognitionSkillLanguage["It"] = "it";
12349
+ /** Japanese */
12350
+ KnownEntityRecognitionSkillLanguage["Ja"] = "ja";
12351
+ /** Korean */
12352
+ KnownEntityRecognitionSkillLanguage["Ko"] = "ko";
12353
+ /** Norwegian (Bokmaal) */
12354
+ KnownEntityRecognitionSkillLanguage["No"] = "no";
12355
+ /** Polish */
12356
+ KnownEntityRecognitionSkillLanguage["Pl"] = "pl";
12357
+ /** Portuguese (Portugal) */
12358
+ KnownEntityRecognitionSkillLanguage["PtPT"] = "pt-PT";
12359
+ /** Portuguese (Brazil) */
12360
+ KnownEntityRecognitionSkillLanguage["PtBR"] = "pt-BR";
12361
+ /** Russian */
12362
+ KnownEntityRecognitionSkillLanguage["Ru"] = "ru";
12363
+ /** Spanish */
12364
+ KnownEntityRecognitionSkillLanguage["Es"] = "es";
12365
+ /** Swedish */
12366
+ KnownEntityRecognitionSkillLanguage["Sv"] = "sv";
12367
+ /** Turkish */
12368
+ KnownEntityRecognitionSkillLanguage["Tr"] = "tr";
12369
+ })(exports.KnownEntityRecognitionSkillLanguage || (exports.KnownEntityRecognitionSkillLanguage = {}));
12370
+ (function (KnownSentimentSkillLanguage) {
12371
+ /** Danish */
12372
+ KnownSentimentSkillLanguage["Da"] = "da";
12373
+ /** Dutch */
12374
+ KnownSentimentSkillLanguage["Nl"] = "nl";
12375
+ /** English */
12376
+ KnownSentimentSkillLanguage["En"] = "en";
12377
+ /** Finnish */
12378
+ KnownSentimentSkillLanguage["Fi"] = "fi";
12379
+ /** French */
12380
+ KnownSentimentSkillLanguage["Fr"] = "fr";
12381
+ /** German */
12382
+ KnownSentimentSkillLanguage["De"] = "de";
12383
+ /** Greek */
12384
+ KnownSentimentSkillLanguage["El"] = "el";
12385
+ /** Italian */
12386
+ KnownSentimentSkillLanguage["It"] = "it";
12387
+ /** Norwegian (Bokmaal) */
12388
+ KnownSentimentSkillLanguage["No"] = "no";
12389
+ /** Polish */
12390
+ KnownSentimentSkillLanguage["Pl"] = "pl";
12391
+ /** Portuguese (Portugal) */
12392
+ KnownSentimentSkillLanguage["PtPT"] = "pt-PT";
12393
+ /** Russian */
12394
+ KnownSentimentSkillLanguage["Ru"] = "ru";
12395
+ /** Spanish */
12396
+ KnownSentimentSkillLanguage["Es"] = "es";
12397
+ /** Swedish */
12398
+ KnownSentimentSkillLanguage["Sv"] = "sv";
12399
+ /** Turkish */
12400
+ KnownSentimentSkillLanguage["Tr"] = "tr";
12401
+ })(exports.KnownSentimentSkillLanguage || (exports.KnownSentimentSkillLanguage = {}));
12402
+ (function (KnownPIIDetectionSkillMaskingMode) {
12403
+ /** No masking occurs and the maskedText output will not be returned. */
12404
+ KnownPIIDetectionSkillMaskingMode["None"] = "none";
12405
+ /** 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. */
12406
+ KnownPIIDetectionSkillMaskingMode["Replace"] = "replace";
12407
+ })(exports.KnownPIIDetectionSkillMaskingMode || (exports.KnownPIIDetectionSkillMaskingMode = {}));
12408
+ (function (KnownSplitSkillLanguage) {
12409
+ /** Danish */
12410
+ KnownSplitSkillLanguage["Da"] = "da";
12411
+ /** German */
12412
+ KnownSplitSkillLanguage["De"] = "de";
12413
+ /** English */
12414
+ KnownSplitSkillLanguage["En"] = "en";
12415
+ /** Spanish */
12416
+ KnownSplitSkillLanguage["Es"] = "es";
12417
+ /** Finnish */
12418
+ KnownSplitSkillLanguage["Fi"] = "fi";
12419
+ /** French */
12420
+ KnownSplitSkillLanguage["Fr"] = "fr";
12421
+ /** Italian */
12422
+ KnownSplitSkillLanguage["It"] = "it";
12423
+ /** Korean */
12424
+ KnownSplitSkillLanguage["Ko"] = "ko";
12425
+ /** Portuguese */
12426
+ KnownSplitSkillLanguage["Pt"] = "pt";
12427
+ })(exports.KnownSplitSkillLanguage || (exports.KnownSplitSkillLanguage = {}));
12428
+ (function (KnownTextSplitMode) {
12429
+ /** Split the text into individual pages. */
12430
+ KnownTextSplitMode["Pages"] = "pages";
12431
+ /** Split the text into individual sentences. */
12432
+ KnownTextSplitMode["Sentences"] = "sentences";
12433
+ })(exports.KnownTextSplitMode || (exports.KnownTextSplitMode = {}));
12434
+ (function (KnownCustomEntityLookupSkillLanguage) {
12435
+ /** Danish */
12436
+ KnownCustomEntityLookupSkillLanguage["Da"] = "da";
12437
+ /** German */
12438
+ KnownCustomEntityLookupSkillLanguage["De"] = "de";
12439
+ /** English */
12440
+ KnownCustomEntityLookupSkillLanguage["En"] = "en";
12441
+ /** Spanish */
12442
+ KnownCustomEntityLookupSkillLanguage["Es"] = "es";
12443
+ /** Finnish */
12444
+ KnownCustomEntityLookupSkillLanguage["Fi"] = "fi";
12445
+ /** French */
12446
+ KnownCustomEntityLookupSkillLanguage["Fr"] = "fr";
12447
+ /** Italian */
12448
+ KnownCustomEntityLookupSkillLanguage["It"] = "it";
12449
+ /** Korean */
12450
+ KnownCustomEntityLookupSkillLanguage["Ko"] = "ko";
12451
+ /** Portuguese */
12452
+ KnownCustomEntityLookupSkillLanguage["Pt"] = "pt";
12453
+ })(exports.KnownCustomEntityLookupSkillLanguage || (exports.KnownCustomEntityLookupSkillLanguage = {}));
12454
+ (function (KnownTextTranslationSkillLanguage) {
12455
+ /** Afrikaans */
12456
+ KnownTextTranslationSkillLanguage["Af"] = "af";
12457
+ /** Arabic */
12458
+ KnownTextTranslationSkillLanguage["Ar"] = "ar";
12459
+ /** Bangla */
12460
+ KnownTextTranslationSkillLanguage["Bn"] = "bn";
12461
+ /** Bosnian (Latin) */
12462
+ KnownTextTranslationSkillLanguage["Bs"] = "bs";
12463
+ /** Bulgarian */
12464
+ KnownTextTranslationSkillLanguage["Bg"] = "bg";
12465
+ /** Cantonese (Traditional) */
12466
+ KnownTextTranslationSkillLanguage["Yue"] = "yue";
12467
+ /** Catalan */
12468
+ KnownTextTranslationSkillLanguage["Ca"] = "ca";
12469
+ /** Chinese Simplified */
12470
+ KnownTextTranslationSkillLanguage["ZhHans"] = "zh-Hans";
12471
+ /** Chinese Traditional */
12472
+ KnownTextTranslationSkillLanguage["ZhHant"] = "zh-Hant";
12473
+ /** Croatian */
12474
+ KnownTextTranslationSkillLanguage["Hr"] = "hr";
12475
+ /** Czech */
12476
+ KnownTextTranslationSkillLanguage["Cs"] = "cs";
12477
+ /** Danish */
12478
+ KnownTextTranslationSkillLanguage["Da"] = "da";
12479
+ /** Dutch */
12480
+ KnownTextTranslationSkillLanguage["Nl"] = "nl";
12481
+ /** English */
12482
+ KnownTextTranslationSkillLanguage["En"] = "en";
12483
+ /** Estonian */
12484
+ KnownTextTranslationSkillLanguage["Et"] = "et";
12485
+ /** Fijian */
12486
+ KnownTextTranslationSkillLanguage["Fj"] = "fj";
12487
+ /** Filipino */
12488
+ KnownTextTranslationSkillLanguage["Fil"] = "fil";
12489
+ /** Finnish */
12490
+ KnownTextTranslationSkillLanguage["Fi"] = "fi";
12491
+ /** French */
12492
+ KnownTextTranslationSkillLanguage["Fr"] = "fr";
12493
+ /** German */
12494
+ KnownTextTranslationSkillLanguage["De"] = "de";
12495
+ /** Greek */
12496
+ KnownTextTranslationSkillLanguage["El"] = "el";
12497
+ /** Haitian Creole */
12498
+ KnownTextTranslationSkillLanguage["Ht"] = "ht";
12499
+ /** Hebrew */
12500
+ KnownTextTranslationSkillLanguage["He"] = "he";
12501
+ /** Hindi */
12502
+ KnownTextTranslationSkillLanguage["Hi"] = "hi";
12503
+ /** Hmong Daw */
12504
+ KnownTextTranslationSkillLanguage["Mww"] = "mww";
12505
+ /** Hungarian */
12506
+ KnownTextTranslationSkillLanguage["Hu"] = "hu";
12507
+ /** Icelandic */
12508
+ KnownTextTranslationSkillLanguage["Is"] = "is";
12509
+ /** Indonesian */
12510
+ KnownTextTranslationSkillLanguage["Id"] = "id";
12511
+ /** Italian */
12512
+ KnownTextTranslationSkillLanguage["It"] = "it";
12513
+ /** Japanese */
12514
+ KnownTextTranslationSkillLanguage["Ja"] = "ja";
12515
+ /** Kiswahili */
12516
+ KnownTextTranslationSkillLanguage["Sw"] = "sw";
12517
+ /** Klingon */
12518
+ KnownTextTranslationSkillLanguage["Tlh"] = "tlh";
12519
+ /** Klingon (Latin script) */
12520
+ KnownTextTranslationSkillLanguage["TlhLatn"] = "tlh-Latn";
12521
+ /** Klingon (Klingon script) */
12522
+ KnownTextTranslationSkillLanguage["TlhPiqd"] = "tlh-Piqd";
12523
+ /** Korean */
12524
+ KnownTextTranslationSkillLanguage["Ko"] = "ko";
12525
+ /** Latvian */
12526
+ KnownTextTranslationSkillLanguage["Lv"] = "lv";
12527
+ /** Lithuanian */
12528
+ KnownTextTranslationSkillLanguage["Lt"] = "lt";
12529
+ /** Malagasy */
12530
+ KnownTextTranslationSkillLanguage["Mg"] = "mg";
12531
+ /** Malay */
12532
+ KnownTextTranslationSkillLanguage["Ms"] = "ms";
12533
+ /** Maltese */
12534
+ KnownTextTranslationSkillLanguage["Mt"] = "mt";
12535
+ /** Norwegian */
12536
+ KnownTextTranslationSkillLanguage["Nb"] = "nb";
12537
+ /** Persian */
12538
+ KnownTextTranslationSkillLanguage["Fa"] = "fa";
12539
+ /** Polish */
12540
+ KnownTextTranslationSkillLanguage["Pl"] = "pl";
12541
+ /** Portuguese */
12542
+ KnownTextTranslationSkillLanguage["Pt"] = "pt";
12543
+ /** Portuguese (Brazil) */
12544
+ KnownTextTranslationSkillLanguage["PtBr"] = "pt-br";
12545
+ /** Portuguese (Portugal) */
12546
+ KnownTextTranslationSkillLanguage["PtPT"] = "pt-PT";
12547
+ /** Queretaro Otomi */
12548
+ KnownTextTranslationSkillLanguage["Otq"] = "otq";
12549
+ /** Romanian */
12550
+ KnownTextTranslationSkillLanguage["Ro"] = "ro";
12551
+ /** Russian */
12552
+ KnownTextTranslationSkillLanguage["Ru"] = "ru";
12553
+ /** Samoan */
12554
+ KnownTextTranslationSkillLanguage["Sm"] = "sm";
12555
+ /** Serbian (Cyrillic) */
12556
+ KnownTextTranslationSkillLanguage["SrCyrl"] = "sr-Cyrl";
12557
+ /** Serbian (Latin) */
12558
+ KnownTextTranslationSkillLanguage["SrLatn"] = "sr-Latn";
12559
+ /** Slovak */
12560
+ KnownTextTranslationSkillLanguage["Sk"] = "sk";
12561
+ /** Slovenian */
12562
+ KnownTextTranslationSkillLanguage["Sl"] = "sl";
12563
+ /** Spanish */
12564
+ KnownTextTranslationSkillLanguage["Es"] = "es";
12565
+ /** Swedish */
12566
+ KnownTextTranslationSkillLanguage["Sv"] = "sv";
12567
+ /** Tahitian */
12568
+ KnownTextTranslationSkillLanguage["Ty"] = "ty";
12569
+ /** Tamil */
12570
+ KnownTextTranslationSkillLanguage["Ta"] = "ta";
12571
+ /** Telugu */
12572
+ KnownTextTranslationSkillLanguage["Te"] = "te";
12573
+ /** Thai */
12574
+ KnownTextTranslationSkillLanguage["Th"] = "th";
12575
+ /** Tongan */
12576
+ KnownTextTranslationSkillLanguage["To"] = "to";
12577
+ /** Turkish */
12578
+ KnownTextTranslationSkillLanguage["Tr"] = "tr";
12579
+ /** Ukrainian */
12580
+ KnownTextTranslationSkillLanguage["Uk"] = "uk";
12581
+ /** Urdu */
12582
+ KnownTextTranslationSkillLanguage["Ur"] = "ur";
12583
+ /** Vietnamese */
12584
+ KnownTextTranslationSkillLanguage["Vi"] = "vi";
12585
+ /** Welsh */
12586
+ KnownTextTranslationSkillLanguage["Cy"] = "cy";
12587
+ /** Yucatec Maya */
12588
+ KnownTextTranslationSkillLanguage["Yua"] = "yua";
12589
+ /** Irish */
12590
+ KnownTextTranslationSkillLanguage["Ga"] = "ga";
12591
+ /** Kannada */
12592
+ KnownTextTranslationSkillLanguage["Kn"] = "kn";
12593
+ /** Maori */
12594
+ KnownTextTranslationSkillLanguage["Mi"] = "mi";
12595
+ /** Malayalam */
12596
+ KnownTextTranslationSkillLanguage["Ml"] = "ml";
12597
+ /** Punjabi */
12598
+ KnownTextTranslationSkillLanguage["Pa"] = "pa";
12599
+ })(exports.KnownTextTranslationSkillLanguage || (exports.KnownTextTranslationSkillLanguage = {}));
12600
+ /** Known values of {@link LexicalTokenizerName} that the service accepts. */
12601
+ var KnownLexicalTokenizerName;
12602
+ (function (KnownLexicalTokenizerName) {
12603
+ /** 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 */
12604
+ KnownLexicalTokenizerName["Classic"] = "classic";
12605
+ /** 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 */
12606
+ KnownLexicalTokenizerName["EdgeNGram"] = "edgeNGram";
12607
+ /** 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 */
12608
+ KnownLexicalTokenizerName["Keyword"] = "keyword_v2";
12609
+ /** Divides text at non-letters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html */
12610
+ KnownLexicalTokenizerName["Letter"] = "letter";
12611
+ /** 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 */
12612
+ KnownLexicalTokenizerName["Lowercase"] = "lowercase";
12613
+ /** Divides text using language-specific rules. */
12614
+ KnownLexicalTokenizerName["MicrosoftLanguageTokenizer"] = "microsoft_language_tokenizer";
12615
+ /** Divides text using language-specific rules and reduces words to their base forms. */
12616
+ KnownLexicalTokenizerName["MicrosoftLanguageStemmingTokenizer"] = "microsoft_language_stemming_tokenizer";
12617
+ /** 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 */
12618
+ KnownLexicalTokenizerName["NGram"] = "nGram";
12619
+ /** Tokenizer for path-like hierarchies. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html */
12620
+ KnownLexicalTokenizerName["PathHierarchy"] = "path_hierarchy_v2";
12621
+ /** 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 */
12622
+ KnownLexicalTokenizerName["Pattern"] = "pattern";
12623
+ /** 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 */
12624
+ KnownLexicalTokenizerName["Standard"] = "standard_v2";
12625
+ /** 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 */
12626
+ KnownLexicalTokenizerName["UaxUrlEmail"] = "uax_url_email";
12627
+ /** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */
12628
+ KnownLexicalTokenizerName["Whitespace"] = "whitespace";
12629
+ })(KnownLexicalTokenizerName || (KnownLexicalTokenizerName = {}));
12630
+ (function (KnownRegexFlags) {
12631
+ /** Enables canonical equivalence. */
12632
+ KnownRegexFlags["CanonEq"] = "CANON_EQ";
12633
+ /** Enables case-insensitive matching. */
12634
+ KnownRegexFlags["CaseInsensitive"] = "CASE_INSENSITIVE";
12635
+ /** Permits whitespace and comments in the pattern. */
12636
+ KnownRegexFlags["Comments"] = "COMMENTS";
12637
+ /** Enables dotall mode. */
12638
+ KnownRegexFlags["DotAll"] = "DOTALL";
12639
+ /** Enables literal parsing of the pattern. */
12640
+ KnownRegexFlags["Literal"] = "LITERAL";
12641
+ /** Enables multiline mode. */
12642
+ KnownRegexFlags["Multiline"] = "MULTILINE";
12643
+ /** Enables Unicode-aware case folding. */
12644
+ KnownRegexFlags["UnicodeCase"] = "UNICODE_CASE";
12645
+ /** Enables Unix lines mode. */
12646
+ KnownRegexFlags["UnixLines"] = "UNIX_LINES";
12647
+ })(exports.KnownRegexFlags || (exports.KnownRegexFlags = {}));
12648
+
11262
12649
  // Copyright (c) Microsoft Corporation.
11263
12650
  const readFileAsync = util.promisify(fs.readFile);
11264
12651
  /**