@azure/search-documents 11.3.0-alpha.20211001.3 → 11.3.0-alpha.20211104.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Release History
2
2
 
3
- ## 11.3.0-beta.4 (2021-10-05)
3
+ ## 11.3.0-beta.5 (2021-11-09)
4
+
5
+ ### Breaking Changes
6
+
7
+ - Renamed `IndexerCurrentState` property to `IndexerState` property.
8
+ - Renamed `AllDocsInitialChangeTrackingState` property to `AllDocumentsInitialChangeTrackingState` property.
9
+ - Renamed `AllDocsFinalChangeTrackingState` property to `AllDocumentsFinalChangeTrackingState` property.
10
+ - Renamed `ResetDocsInitialChangeTrackingState` property to `ResetDocumentsInitialChangeTrackingState` property.
11
+ - Renamed `ResetDocsFinalChangeTrackingState` property to `ResetDocumentsFinalChangeTrackingState` property.
12
+ - Renamed `SkillNames` property to `ResetSkillsOptions` (with a `SkillNames` property)
13
+ - Renamed `ResetDocs` method to `ResetDocuments` in the SDK client.
4
14
 
5
15
  ### Features Added
6
16
 
package/dist/index.js CHANGED
@@ -1777,7 +1777,7 @@ function createSearchApiKeyCredentialPolicy(credential) {
1777
1777
 
1778
1778
  // Copyright (c) Microsoft Corporation.
1779
1779
  // Licensed under the MIT license.
1780
- const SDK_VERSION = "11.3.0-beta.4";
1780
+ const SDK_VERSION = "11.3.0-beta.5";
1781
1781
 
1782
1782
  // Copyright (c) Microsoft Corporation.
1783
1783
  /**
@@ -4747,7 +4747,7 @@ const IndexerExecutionResult = {
4747
4747
  serializedName: "currentState",
4748
4748
  type: {
4749
4749
  name: "Composite",
4750
- className: "IndexerCurrentState"
4750
+ className: "IndexerState"
4751
4751
  }
4752
4752
  },
4753
4753
  errorMessage: {
@@ -4833,10 +4833,10 @@ const IndexerExecutionResult = {
4833
4833
  }
4834
4834
  }
4835
4835
  };
4836
- const IndexerCurrentState = {
4836
+ const IndexerState = {
4837
4837
  type: {
4838
4838
  name: "Composite",
4839
- className: "IndexerCurrentState",
4839
+ className: "IndexerState",
4840
4840
  modelProperties: {
4841
4841
  mode: {
4842
4842
  serializedName: "mode",
@@ -4845,28 +4845,28 @@ const IndexerCurrentState = {
4845
4845
  name: "String"
4846
4846
  }
4847
4847
  },
4848
- allDocsInitialChangeTrackingState: {
4848
+ allDocumentsInitialChangeTrackingState: {
4849
4849
  serializedName: "allDocsInitialChangeTrackingState",
4850
4850
  readOnly: true,
4851
4851
  type: {
4852
4852
  name: "String"
4853
4853
  }
4854
4854
  },
4855
- allDocsFinalChangeTrackingState: {
4855
+ allDocumentsFinalChangeTrackingState: {
4856
4856
  serializedName: "allDocsFinalChangeTrackingState",
4857
4857
  readOnly: true,
4858
4858
  type: {
4859
4859
  name: "String"
4860
4860
  }
4861
4861
  },
4862
- resetDocsInitialChangeTrackingState: {
4862
+ resetDocumentsInitialChangeTrackingState: {
4863
4863
  serializedName: "resetDocsInitialChangeTrackingState",
4864
4864
  readOnly: true,
4865
4865
  type: {
4866
4866
  name: "String"
4867
4867
  }
4868
4868
  },
4869
- resetDocsFinalChangeTrackingState: {
4869
+ resetDocumentsFinalChangeTrackingState: {
4870
4870
  serializedName: "resetDocsFinalChangeTrackingState",
4871
4871
  readOnly: true,
4872
4872
  type: {
@@ -8901,7 +8901,7 @@ var Mappers$1 = /*#__PURE__*/Object.freeze({
8901
8901
  ListIndexersResult: ListIndexersResult,
8902
8902
  SearchIndexerStatus: SearchIndexerStatus,
8903
8903
  IndexerExecutionResult: IndexerExecutionResult,
8904
- IndexerCurrentState: IndexerCurrentState,
8904
+ IndexerState: IndexerState,
8905
8905
  SearchIndexerError: SearchIndexerError,
8906
8906
  SearchIndexerWarning: SearchIndexerWarning,
8907
8907
  SearchIndexerLimits: SearchIndexerLimits,
@@ -10276,7 +10276,7 @@ class SearchServiceClientContext extends coreClient.ServiceClient {
10276
10276
  const defaults = {
10277
10277
  requestContentType: "application/json; charset=utf-8"
10278
10278
  };
10279
- const packageDetails = `azsdk-js-search-documents/11.3.0-beta.4`;
10279
+ const packageDetails = `azsdk-js-search-documents/11.3.0-beta.5`;
10280
10280
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
10281
10281
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
10282
10282
  : `${packageDetails}`;
@@ -11376,7 +11376,7 @@ class SearchIndexerClient {
11376
11376
  * @param indexerName - The name of the indexer to reset documents for.
11377
11377
  * @param options - Additional optional arguments.
11378
11378
  */
11379
- async resetDocs(indexerName, options = {}) {
11379
+ async resetDocuments(indexerName, options = {}) {
11380
11380
  const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
11381
11381
  try {
11382
11382
  await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
@@ -11401,10 +11401,10 @@ class SearchIndexerClient {
11401
11401
  * @param skillNames - The names of skills to reset.
11402
11402
  * @param options - The options parameters.
11403
11403
  */
11404
- async resetSkills(skillsetName, skillNames, options = {}) {
11404
+ async resetSkills(skillsetName, options = {}) {
11405
11405
  const { span, updatedOptions } = createSpan("SearchIndexerClient-resetSkills", options);
11406
11406
  try {
11407
- await this.client.skillsets.resetSkills(skillsetName, { skillNames }, updatedOptions);
11407
+ await this.client.skillsets.resetSkills(skillsetName, { skillNames: options.skillNames }, updatedOptions);
11408
11408
  }
11409
11409
  catch (e) {
11410
11410
  span.setStatus({