@azure/search-documents 11.3.0-alpha.20220110.2 → 11.3.0-alpha.20220112.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3283,12 +3283,14 @@ class SearchClient$1 {
3283
3283
  throw new Error(`Invalid Api Version: ${options.apiVersion}`);
3284
3284
  }
3285
3285
  this.serviceVersion = options.apiVersion;
3286
+ this.apiVersion = options.apiVersion;
3286
3287
  }
3287
3288
  if (options.serviceVersion) {
3288
3289
  if (!serviceVersions.includes(options.serviceVersion)) {
3289
3290
  throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
3290
3291
  }
3291
3292
  this.serviceVersion = options.serviceVersion;
3293
+ this.apiVersion = options.serviceVersion;
3292
3294
  }
3293
3295
  this.client = new SearchClient(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
3294
3296
  if (coreAuth.isTokenCredential(credential)) {
@@ -10540,12 +10542,14 @@ class SearchIndexClient {
10540
10542
  throw new Error(`Invalid Api Version: ${options.apiVersion}`);
10541
10543
  }
10542
10544
  this.serviceVersion = options.apiVersion;
10545
+ this.apiVersion = options.apiVersion;
10543
10546
  }
10544
10547
  if (options.serviceVersion) {
10545
10548
  if (!serviceVersions.includes(options.serviceVersion)) {
10546
10549
  throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
10547
10550
  }
10548
10551
  this.serviceVersion = options.serviceVersion;
10552
+ this.apiVersion = options.serviceVersion;
10549
10553
  }
10550
10554
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
10551
10555
  if (coreAuth.isTokenCredential(credential)) {
@@ -11039,12 +11043,14 @@ class SearchIndexerClient {
11039
11043
  throw new Error(`Invalid Api Version: ${options.apiVersion}`);
11040
11044
  }
11041
11045
  this.serviceVersion = options.apiVersion;
11046
+ this.apiVersion = options.apiVersion;
11042
11047
  }
11043
11048
  if (options.serviceVersion) {
11044
11049
  if (!serviceVersions.includes(options.serviceVersion)) {
11045
11050
  throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
11046
11051
  }
11047
11052
  this.serviceVersion = options.serviceVersion;
11053
+ this.apiVersion = options.serviceVersion;
11048
11054
  }
11049
11055
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
11050
11056
  if (coreAuth.isTokenCredential(credential)) {