@azure/search-documents 12.0.0-alpha.20230306.2 → 12.0.0-alpha.20230331.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +12 -43
- package/dist/index.js.map +1 -1
- package/dist-esm/src/searchClient.js +4 -14
- package/dist-esm/src/searchClient.js.map +1 -1
- package/dist-esm/src/searchIndexClient.js +4 -14
- package/dist-esm/src/searchIndexClient.js.map +1 -1
- package/dist-esm/src/searchIndexerClient.js +4 -14
- package/dist-esm/src/searchIndexerClient.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -3216,7 +3216,6 @@ function getRandomIntegerInclusive(min, max) {
|
|
|
3216
3216
|
function delay(timeInMs) {
|
|
3217
3217
|
return new Promise((resolve) => setTimeout(() => resolve(), timeInMs));
|
|
3218
3218
|
}
|
|
3219
|
-
const serviceVersions = ["2020-06-30", "2021-04-30-Preview"];
|
|
3220
3219
|
const defaultServiceVersion = "2021-04-30-Preview";
|
|
3221
3220
|
|
|
3222
3221
|
// Copyright (c) Microsoft Corporation.
|
|
@@ -3285,6 +3284,7 @@ class SearchClient {
|
|
|
3285
3284
|
* non-nullable type `string`.
|
|
3286
3285
|
*/
|
|
3287
3286
|
constructor(endpoint, indexName, credential, options = {}) {
|
|
3287
|
+
var _a, _b;
|
|
3288
3288
|
/// Maintenance note: when updating supported API versions,
|
|
3289
3289
|
/// the ContinuationToken logic will need to be updated below.
|
|
3290
3290
|
/**
|
|
@@ -3321,20 +3321,9 @@ class SearchClient {
|
|
|
3321
3321
|
],
|
|
3322
3322
|
},
|
|
3323
3323
|
});
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
}
|
|
3328
|
-
this.serviceVersion = options.apiVersion;
|
|
3329
|
-
this.apiVersion = options.apiVersion;
|
|
3330
|
-
}
|
|
3331
|
-
if (options.serviceVersion) {
|
|
3332
|
-
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
3333
|
-
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
3334
|
-
}
|
|
3335
|
-
this.serviceVersion = options.serviceVersion;
|
|
3336
|
-
this.apiVersion = options.serviceVersion;
|
|
3337
|
-
}
|
|
3324
|
+
this.serviceVersion =
|
|
3325
|
+
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
3326
|
+
this.apiVersion = this.serviceVersion;
|
|
3338
3327
|
this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
|
|
3339
3328
|
if (coreAuth.isTokenCredential(credential)) {
|
|
3340
3329
|
const scope = options.audience
|
|
@@ -10849,6 +10838,7 @@ class SearchIndexClient {
|
|
|
10849
10838
|
* @param options - Used to configure the Search Index client.
|
|
10850
10839
|
*/
|
|
10851
10840
|
constructor(endpoint, credential, options = {}) {
|
|
10841
|
+
var _a, _b;
|
|
10852
10842
|
/**
|
|
10853
10843
|
* The API version to use when communicating with the service.
|
|
10854
10844
|
*/
|
|
@@ -10884,20 +10874,9 @@ class SearchIndexClient {
|
|
|
10884
10874
|
],
|
|
10885
10875
|
},
|
|
10886
10876
|
});
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
}
|
|
10891
|
-
this.serviceVersion = options.apiVersion;
|
|
10892
|
-
this.apiVersion = options.apiVersion;
|
|
10893
|
-
}
|
|
10894
|
-
if (options.serviceVersion) {
|
|
10895
|
-
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
10896
|
-
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
10897
|
-
}
|
|
10898
|
-
this.serviceVersion = options.serviceVersion;
|
|
10899
|
-
this.apiVersion = options.serviceVersion;
|
|
10900
|
-
}
|
|
10877
|
+
this.serviceVersion =
|
|
10878
|
+
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
10879
|
+
this.apiVersion = this.serviceVersion;
|
|
10901
10880
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
10902
10881
|
if (coreAuth.isTokenCredential(credential)) {
|
|
10903
10882
|
const scope = options.audience
|
|
@@ -11505,6 +11484,7 @@ class SearchIndexerClient {
|
|
|
11505
11484
|
* @param options - Used to configure the Search client.
|
|
11506
11485
|
*/
|
|
11507
11486
|
constructor(endpoint, credential, options = {}) {
|
|
11487
|
+
var _a, _b;
|
|
11508
11488
|
/**
|
|
11509
11489
|
* The API version to use when communicating with the service.
|
|
11510
11490
|
*/
|
|
@@ -11538,20 +11518,9 @@ class SearchIndexerClient {
|
|
|
11538
11518
|
],
|
|
11539
11519
|
},
|
|
11540
11520
|
});
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
}
|
|
11545
|
-
this.serviceVersion = options.apiVersion;
|
|
11546
|
-
this.apiVersion = options.apiVersion;
|
|
11547
|
-
}
|
|
11548
|
-
if (options.serviceVersion) {
|
|
11549
|
-
if (!serviceVersions.includes(options.serviceVersion)) {
|
|
11550
|
-
throw new Error(`Invalid Service Version: ${options.serviceVersion}`);
|
|
11551
|
-
}
|
|
11552
|
-
this.serviceVersion = options.serviceVersion;
|
|
11553
|
-
this.apiVersion = options.serviceVersion;
|
|
11554
|
-
}
|
|
11521
|
+
this.serviceVersion =
|
|
11522
|
+
(_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
|
|
11523
|
+
this.apiVersion = this.serviceVersion;
|
|
11555
11524
|
this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
|
|
11556
11525
|
if (coreAuth.isTokenCredential(credential)) {
|
|
11557
11526
|
const scope = options.audience
|