@azure/search-documents 12.0.0-alpha.20240110.1 → 12.0.0-alpha.20240112.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
@@ -2,7 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var tslib = require('tslib');
6
5
  var coreRestPipeline = require('@azure/core-rest-pipeline');
7
6
  var coreHttpCompat = require('@azure/core-http-compat');
8
7
  var coreClient = require('@azure/core-client');
@@ -1033,7 +1032,9 @@ const RawVectorQuery = {
1033
1032
  className: "RawVectorQuery",
1034
1033
  uberParent: "VectorQuery",
1035
1034
  polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
1036
- modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { vector: {
1035
+ modelProperties: {
1036
+ ...VectorQuery.type.modelProperties,
1037
+ vector: {
1037
1038
  serializedName: "vector",
1038
1039
  type: {
1039
1040
  name: "Sequence",
@@ -1043,7 +1044,8 @@ const RawVectorQuery = {
1043
1044
  }
1044
1045
  }
1045
1046
  }
1046
- } })
1047
+ }
1048
+ }
1047
1049
  }
1048
1050
  };
1049
1051
  const VectorizableTextQuery = {
@@ -1053,12 +1055,15 @@ const VectorizableTextQuery = {
1053
1055
  className: "VectorizableTextQuery",
1054
1056
  uberParent: "VectorQuery",
1055
1057
  polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator,
1056
- modelProperties: Object.assign(Object.assign({}, VectorQuery.type.modelProperties), { text: {
1058
+ modelProperties: {
1059
+ ...VectorQuery.type.modelProperties,
1060
+ text: {
1057
1061
  serializedName: "text",
1058
1062
  type: {
1059
1063
  name: "String"
1060
1064
  }
1061
- } })
1065
+ }
1066
+ }
1062
1067
  }
1063
1068
  };
1064
1069
  let discriminators$1 = {
@@ -2030,7 +2035,6 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
2030
2035
  * @param options The parameter options
2031
2036
  */
2032
2037
  constructor(endpoint, indexName, apiVersion, options) {
2033
- var _a, _b;
2034
2038
  if (endpoint === undefined) {
2035
2039
  throw new Error("'endpoint' cannot be null");
2036
2040
  }
@@ -2051,9 +2055,16 @@ let SearchClient$1 = class SearchClient extends coreHttpCompat__namespace.Extend
2051
2055
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
2052
2056
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
2053
2057
  : `${packageDetails}`;
2054
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
2058
+ const optionsWithDefaults = {
2059
+ ...defaults,
2060
+ ...options,
2061
+ userAgentOptions: {
2055
2062
  userAgentPrefix
2056
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}/indexes('{indexName}')" });
2063
+ },
2064
+ baseUri: options.endpoint ??
2065
+ options.baseUri ??
2066
+ "{endpoint}/indexes('{indexName}')"
2067
+ };
2057
2068
  super(optionsWithDefaults);
2058
2069
  // Parameter assignments
2059
2070
  this.endpoint = endpoint;
@@ -2167,7 +2178,7 @@ function walk(start, mapper) {
2167
2178
  }
2168
2179
  }
2169
2180
  const mapped = mapper(current.value);
2170
- if ((current === null || current === void 0 ? void 0 : current.parent) && current.key) {
2181
+ if (current?.parent && current.key) {
2171
2182
  current.parent[current.key] = mapped;
2172
2183
  }
2173
2184
  if (typeof mapped === "object" && mapped !== null) {
@@ -2338,7 +2349,10 @@ class IndexDocumentsBatch {
2338
2349
  */
2339
2350
  upload(documents) {
2340
2351
  const batch = documents.map((doc) => {
2341
- return Object.assign(Object.assign({}, doc), { __actionType: "upload" });
2352
+ return {
2353
+ ...doc,
2354
+ __actionType: "upload",
2355
+ };
2342
2356
  });
2343
2357
  this.actions.push(...batch);
2344
2358
  }
@@ -2349,7 +2363,10 @@ class IndexDocumentsBatch {
2349
2363
  */
2350
2364
  merge(documents) {
2351
2365
  const batch = documents.map((doc) => {
2352
- return Object.assign(Object.assign({}, doc), { __actionType: "merge" });
2366
+ return {
2367
+ ...doc,
2368
+ __actionType: "merge",
2369
+ };
2353
2370
  });
2354
2371
  this.actions.push(...batch);
2355
2372
  }
@@ -2360,7 +2377,10 @@ class IndexDocumentsBatch {
2360
2377
  */
2361
2378
  mergeOrUpload(documents) {
2362
2379
  const batch = documents.map((doc) => {
2363
- return Object.assign(Object.assign({}, doc), { __actionType: "mergeOrUpload" });
2380
+ return {
2381
+ ...doc,
2382
+ __actionType: "mergeOrUpload",
2383
+ };
2364
2384
  });
2365
2385
  this.actions.push(...batch);
2366
2386
  }
@@ -2378,7 +2398,10 @@ class IndexDocumentsBatch {
2378
2398
  else {
2379
2399
  const documents = keyNameOrDocuments;
2380
2400
  const batch = documents.map((document) => {
2381
- return Object.assign({ __actionType: "delete" }, document);
2401
+ return {
2402
+ __actionType: "delete",
2403
+ ...document,
2404
+ };
2382
2405
  });
2383
2406
  this.actions.push(...batch);
2384
2407
  }
@@ -3165,10 +3188,16 @@ function convertAnalyzersToGenerated(analyzers) {
3165
3188
  result.push(analyzer);
3166
3189
  break;
3167
3190
  case "#Microsoft.Azure.Search.PatternAnalyzer":
3168
- result.push(Object.assign(Object.assign({}, analyzer), { flags: analyzer.flags ? analyzer.flags.join("|") : undefined }));
3191
+ result.push({
3192
+ ...analyzer,
3193
+ flags: analyzer.flags ? analyzer.flags.join("|") : undefined,
3194
+ });
3169
3195
  break;
3170
3196
  case "#Microsoft.Azure.Search.CustomAnalyzer":
3171
- result.push(Object.assign(Object.assign({}, analyzer), { tokenizerName: analyzer.tokenizerName }));
3197
+ result.push({
3198
+ ...analyzer,
3199
+ tokenizerName: analyzer.tokenizerName,
3200
+ });
3172
3201
  break;
3173
3202
  }
3174
3203
  }
@@ -3188,12 +3217,18 @@ function convertAnalyzersToPublic(analyzers) {
3188
3217
  result.push(analyzer);
3189
3218
  break;
3190
3219
  case "#Microsoft.Azure.Search.PatternAnalyzer":
3191
- result.push(Object.assign(Object.assign({}, analyzer), { flags: analyzer.flags
3220
+ result.push({
3221
+ ...analyzer,
3222
+ flags: analyzer.flags
3192
3223
  ? analyzer.flags.split("|")
3193
- : undefined }));
3224
+ : undefined,
3225
+ });
3194
3226
  break;
3195
3227
  case "#Microsoft.Azure.Search.CustomAnalyzer":
3196
- result.push(Object.assign(Object.assign({}, analyzer), { tokenizerName: analyzer.tokenizerName }));
3228
+ result.push({
3229
+ ...analyzer,
3230
+ tokenizerName: analyzer.tokenizerName,
3231
+ });
3197
3232
  break;
3198
3233
  }
3199
3234
  }
@@ -3219,22 +3254,24 @@ function convertFieldsToPublic(fields) {
3219
3254
  const indexAnalyzerName = field.indexAnalyzer;
3220
3255
  const synonymMapNames = field.synonymMaps;
3221
3256
  const normalizerName = field.normalizer;
3222
- const { retrievable } = field, restField = tslib.__rest(field, ["retrievable"]);
3257
+ const { retrievable, ...restField } = field;
3223
3258
  const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable;
3224
- const result = Object.assign(Object.assign({}, restField), { type,
3259
+ const result = {
3260
+ ...restField,
3261
+ type,
3225
3262
  hidden,
3226
3263
  analyzerName,
3227
3264
  searchAnalyzerName,
3228
3265
  indexAnalyzerName,
3229
3266
  synonymMapNames,
3230
- normalizerName });
3267
+ normalizerName,
3268
+ };
3231
3269
  return result;
3232
3270
  }
3233
3271
  });
3234
3272
  }
3235
3273
  function convertFieldsToGenerated(fields) {
3236
3274
  return fields.map((field) => {
3237
- var _a, _b, _c, _d;
3238
3275
  if (isComplexField(field)) {
3239
3276
  return {
3240
3277
  name: field.name,
@@ -3243,11 +3280,22 @@ function convertFieldsToGenerated(fields) {
3243
3280
  };
3244
3281
  }
3245
3282
  else {
3246
- const { hidden } = field, restField = tslib.__rest(field, ["hidden"]);
3283
+ const { hidden, ...restField } = field;
3247
3284
  const retrievable = typeof hidden === "boolean" ? !hidden : hidden;
3248
- return Object.assign(Object.assign({}, restField), { retrievable,
3285
+ return {
3286
+ ...restField,
3287
+ retrievable,
3249
3288
  // modify API defaults to use less storage for simple types
3250
- searchable: (_a = field.searchable) !== null && _a !== void 0 ? _a : false, filterable: (_b = field.filterable) !== null && _b !== void 0 ? _b : false, facetable: (_c = field.facetable) !== null && _c !== void 0 ? _c : false, sortable: (_d = field.sortable) !== null && _d !== void 0 ? _d : false, analyzer: field.analyzerName, searchAnalyzer: field.searchAnalyzerName, indexAnalyzer: field.indexAnalyzerName, synonymMaps: field.synonymMapNames, normalizer: field.normalizerName });
3289
+ searchable: field.searchable ?? false,
3290
+ filterable: field.filterable ?? false,
3291
+ facetable: field.facetable ?? false,
3292
+ sortable: field.sortable ?? false,
3293
+ analyzer: field.analyzerName,
3294
+ searchAnalyzer: field.searchAnalyzerName,
3295
+ indexAnalyzer: field.indexAnalyzerName,
3296
+ synonymMaps: field.synonymMapNames,
3297
+ normalizer: field.normalizerName,
3298
+ };
3251
3299
  }
3252
3300
  });
3253
3301
  }
@@ -3258,7 +3306,10 @@ function convertTokenizersToGenerated(tokenizers) {
3258
3306
  const result = [];
3259
3307
  for (const tokenizer of tokenizers) {
3260
3308
  if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") {
3261
- result.push(Object.assign(Object.assign({}, tokenizer), { flags: tokenizer.flags ? tokenizer.flags.join("|") : undefined }));
3309
+ result.push({
3310
+ ...tokenizer,
3311
+ flags: tokenizer.flags ? tokenizer.flags.join("|") : undefined,
3312
+ });
3262
3313
  }
3263
3314
  else {
3264
3315
  result.push(tokenizer);
@@ -3273,9 +3324,12 @@ function convertTokenizersToPublic(tokenizers) {
3273
3324
  const result = [];
3274
3325
  for (const tokenizer of tokenizers) {
3275
3326
  if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") {
3276
- result.push(Object.assign(Object.assign({}, tokenizer), { flags: tokenizer.flags
3327
+ result.push({
3328
+ ...tokenizer,
3329
+ flags: tokenizer.flags
3277
3330
  ? tokenizer.flags.split("|")
3278
- : undefined }));
3331
+ : undefined,
3332
+ });
3279
3333
  }
3280
3334
  else {
3281
3335
  result.push(tokenizer);
@@ -3360,41 +3414,54 @@ function generatedVectorSearchVectorizerToPublicVectorizer(generatedVectorizer)
3360
3414
  }
3361
3415
  if (generatedVectorizer.kind === "azureOpenAI") {
3362
3416
  const { azureOpenAIParameters } = generatedVectorizer;
3363
- const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters === null || azureOpenAIParameters === void 0 ? void 0 : azureOpenAIParameters.authIdentity);
3364
- const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { azureOpenAIParameters: Object.assign(Object.assign({}, azureOpenAIParameters), { authIdentity }) });
3417
+ const authIdentity = convertSearchIndexerDataIdentityToPublic(azureOpenAIParameters?.authIdentity);
3418
+ const vectorizer = {
3419
+ ...generatedVectorizer,
3420
+ azureOpenAIParameters: { ...azureOpenAIParameters, authIdentity },
3421
+ };
3365
3422
  return vectorizer;
3366
3423
  }
3367
3424
  if (generatedVectorizer.kind === "customWebApi") {
3368
3425
  const { customVectorizerParameters } = generatedVectorizer;
3369
- const authIdentity = convertSearchIndexerDataIdentityToPublic(customVectorizerParameters === null || customVectorizerParameters === void 0 ? void 0 : customVectorizerParameters.authIdentity);
3370
- const vectorizer = Object.assign(Object.assign({}, generatedVectorizer), { customVectorizerParameters: Object.assign(Object.assign({}, customVectorizerParameters), { authIdentity }) });
3426
+ const authIdentity = convertSearchIndexerDataIdentityToPublic(customVectorizerParameters?.authIdentity);
3427
+ const vectorizer = {
3428
+ ...generatedVectorizer,
3429
+ customVectorizerParameters: { ...customVectorizerParameters, authIdentity },
3430
+ };
3371
3431
  return vectorizer;
3372
3432
  }
3373
3433
  throw Error("Unsupported vectorizer");
3374
3434
  }
3375
3435
  function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(generatedAlgorithmConfiguration) {
3376
- var _a;
3377
3436
  if (!generatedAlgorithmConfiguration) {
3378
3437
  return generatedAlgorithmConfiguration;
3379
3438
  }
3380
3439
  if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) {
3381
3440
  const algorithmConfiguration = generatedAlgorithmConfiguration;
3382
- const metric = (_a = algorithmConfiguration.parameters) === null || _a === void 0 ? void 0 : _a.metric;
3383
- return Object.assign(Object.assign({}, algorithmConfiguration), { parameters: Object.assign(Object.assign({}, algorithmConfiguration.parameters), { metric }) });
3441
+ const metric = algorithmConfiguration.parameters?.metric;
3442
+ return {
3443
+ ...algorithmConfiguration,
3444
+ parameters: { ...algorithmConfiguration.parameters, metric },
3445
+ };
3384
3446
  }
3385
3447
  throw Error("Unsupported algorithm configuration");
3386
3448
  }
3387
3449
  function generatedVectorSearchToPublicVectorSearch(vectorSearch) {
3388
- var _a, _b;
3389
3450
  if (!vectorSearch) {
3390
3451
  return vectorSearch;
3391
3452
  }
3392
- return Object.assign(Object.assign({}, vectorSearch), { algorithms: (_a = vectorSearch.algorithms) === null || _a === void 0 ? void 0 : _a.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration), vectorizers: (_b = vectorSearch.vectorizers) === null || _b === void 0 ? void 0 : _b.map(generatedVectorSearchVectorizerToPublicVectorizer) });
3453
+ return {
3454
+ ...vectorSearch,
3455
+ algorithms: vectorSearch.algorithms?.map(generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration),
3456
+ vectorizers: vectorSearch.vectorizers?.map(generatedVectorSearchVectorizerToPublicVectorizer),
3457
+ };
3393
3458
  }
3394
3459
  function generatedSearchResultToPublicSearchResult(results) {
3395
3460
  const returnValues = results.map((result) => {
3396
- const { _score, _highlights, rerankerScore, captions, documentDebugInfo } = result, restProps = tslib.__rest(result, ["_score", "_highlights", "rerankerScore", "captions", "documentDebugInfo"]);
3397
- const doc = Object.assign({}, restProps);
3461
+ const { _score, _highlights, rerankerScore, captions, documentDebugInfo, ...restProps } = result;
3462
+ const doc = {
3463
+ ...restProps,
3464
+ };
3398
3465
  const obj = {
3399
3466
  score: _score,
3400
3467
  highlights: _highlights,
@@ -3409,8 +3476,10 @@ function generatedSearchResultToPublicSearchResult(results) {
3409
3476
  }
3410
3477
  function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDocumentsResult) {
3411
3478
  const results = searchDocumentsResult.results.map((element) => {
3412
- const { _text } = element, restProps = tslib.__rest(element, ["_text"]);
3413
- const doc = Object.assign({}, restProps);
3479
+ const { _text, ...restProps } = element;
3480
+ const doc = {
3481
+ ...restProps,
3482
+ };
3414
3483
  const obj = {
3415
3484
  text: _text,
3416
3485
  document: doc,
@@ -3425,7 +3494,15 @@ function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult(searchDoc
3425
3494
  }
3426
3495
  function publicIndexToGeneratedIndex(index) {
3427
3496
  const { encryptionKey, tokenFilters, analyzers, tokenizers, fields, similarity } = index;
3428
- return Object.assign(Object.assign({}, index), { encryptionKey: convertEncryptionKeyToGenerated(encryptionKey), tokenFilters: convertTokenFiltersToGenerated(tokenFilters), analyzers: convertAnalyzersToGenerated(analyzers), tokenizers: convertTokenizersToGenerated(tokenizers), fields: convertFieldsToGenerated(fields), similarity: convertSimilarityToGenerated(similarity) });
3497
+ return {
3498
+ ...index,
3499
+ encryptionKey: convertEncryptionKeyToGenerated(encryptionKey),
3500
+ tokenFilters: convertTokenFiltersToGenerated(tokenFilters),
3501
+ analyzers: convertAnalyzersToGenerated(analyzers),
3502
+ tokenizers: convertTokenizersToGenerated(tokenizers),
3503
+ fields: convertFieldsToGenerated(fields),
3504
+ similarity: convertSimilarityToGenerated(similarity),
3505
+ };
3429
3506
  }
3430
3507
  function generatedSkillsetToPublicSkillset(generatedSkillset) {
3431
3508
  return {
@@ -3473,14 +3550,29 @@ function publicSynonymMapToGeneratedSynonymMap(synonymMap) {
3473
3550
  return result;
3474
3551
  }
3475
3552
  function publicSearchIndexerToGeneratedSearchIndexer(indexer) {
3476
- return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey) });
3553
+ return {
3554
+ ...indexer,
3555
+ encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey),
3556
+ };
3477
3557
  }
3478
3558
  function generatedSearchIndexerToPublicSearchIndexer(indexer) {
3479
- return Object.assign(Object.assign({}, indexer), { encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache) });
3559
+ return {
3560
+ ...indexer,
3561
+ encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey),
3562
+ cache: convertSearchIndexerCacheToPublic(indexer.cache),
3563
+ };
3480
3564
  }
3481
3565
  function generatedSearchRequestToPublicSearchRequest(request) {
3482
- const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode } = request, props = tslib.__rest(request, ["semanticErrorHandling", "debug", "vectorQueries", "vectorFilterMode"]);
3483
- const publicRequest = Object.assign({ semanticErrorHandlingMode: semanticErrorHandling, debugMode: debug, vectorFilterMode: vectorFilterMode, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map((convertVectorQueryToPublic)).filter((v) => v !== undefined) }, props);
3566
+ const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode, ...props } = request;
3567
+ const publicRequest = {
3568
+ semanticErrorHandlingMode: semanticErrorHandling,
3569
+ debugMode: debug,
3570
+ vectorFilterMode: vectorFilterMode,
3571
+ vectorQueries: vectorQueries
3572
+ ?.map((convertVectorQueryToPublic))
3573
+ .filter((v) => v !== undefined),
3574
+ ...props,
3575
+ };
3484
3576
  return publicRequest;
3485
3577
  }
3486
3578
  function publicDataSourceToGeneratedDataSource(dataSource) {
@@ -3543,12 +3635,11 @@ function convertDataDeletionDetectionPolicyToPublic(dataDeletionDetectionPolicy)
3543
3635
  return dataDeletionDetectionPolicy;
3544
3636
  }
3545
3637
  function convertVectorQueryToPublic(vector) {
3546
- var _a;
3547
3638
  if (!vector) {
3548
3639
  return vector;
3549
3640
  }
3550
- const fields = (_a = vector.fields) === null || _a === void 0 ? void 0 : _a.split(",");
3551
- return Object.assign(Object.assign({}, vector), { fields });
3641
+ const fields = vector.fields?.split(",");
3642
+ return { ...vector, fields };
3552
3643
  }
3553
3644
  function getRandomIntegerInclusive(min, max) {
3554
3645
  // Make sure inputs are integers.
@@ -3573,13 +3664,19 @@ function convertKnowledgeStoreToPublic(knowledgeStore) {
3573
3664
  if (!knowledgeStore) {
3574
3665
  return knowledgeStore;
3575
3666
  }
3576
- return Object.assign(Object.assign({}, knowledgeStore), { identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity) });
3667
+ return {
3668
+ ...knowledgeStore,
3669
+ identity: convertSearchIndexerDataIdentityToPublic(knowledgeStore.identity),
3670
+ };
3577
3671
  }
3578
3672
  function convertSearchIndexerCacheToPublic(cache) {
3579
3673
  if (!cache) {
3580
3674
  return cache;
3581
3675
  }
3582
- return Object.assign(Object.assign({}, cache), { identity: convertSearchIndexerDataIdentityToPublic(cache.identity) });
3676
+ return {
3677
+ ...cache,
3678
+ identity: convertSearchIndexerDataIdentityToPublic(cache.identity),
3679
+ };
3583
3680
  }
3584
3681
 
3585
3682
  // Copyright (c) Microsoft Corporation.
@@ -3649,7 +3746,6 @@ class SearchClient {
3649
3746
  * non-nullable type `string`.
3650
3747
  */
3651
3748
  constructor(endpoint, indexName, credential, options = {}) {
3652
- var _a, _b;
3653
3749
  /// Maintenance note: when updating supported API versions,
3654
3750
  /// the ContinuationToken logic will need to be updated below.
3655
3751
  /**
@@ -3663,21 +3759,24 @@ class SearchClient {
3663
3759
  this.apiVersion = defaultServiceVersion;
3664
3760
  this.endpoint = endpoint;
3665
3761
  this.indexName = indexName;
3666
- const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
3667
- loggingOptions: {
3668
- logger: logger.info,
3669
- additionalAllowedHeaderNames: [
3670
- "elapsed-time",
3671
- "Location",
3672
- "OData-MaxVersion",
3673
- "OData-Version",
3674
- "Prefer",
3675
- "throttle-reason",
3676
- ],
3762
+ const internalClientPipelineOptions = {
3763
+ ...options,
3764
+ ...{
3765
+ loggingOptions: {
3766
+ logger: logger.info,
3767
+ additionalAllowedHeaderNames: [
3768
+ "elapsed-time",
3769
+ "Location",
3770
+ "OData-MaxVersion",
3771
+ "OData-Version",
3772
+ "Prefer",
3773
+ "throttle-reason",
3774
+ ],
3775
+ },
3677
3776
  },
3678
- });
3777
+ };
3679
3778
  this.serviceVersion =
3680
- (_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
3779
+ options.serviceVersion ?? options.apiVersion ?? defaultServiceVersion;
3681
3780
  this.apiVersion = this.serviceVersion;
3682
3781
  this.client = new SearchClient$1(this.endpoint, this.indexName, this.serviceVersion, internalClientPipelineOptions);
3683
3782
  if (coreAuth.isTokenCredential(credential)) {
@@ -3699,12 +3798,15 @@ class SearchClient {
3699
3798
  const { span, updatedOptions } = createSpan("SearchClient-getDocumentsCount", options);
3700
3799
  try {
3701
3800
  let documentsCount = 0;
3702
- await this.client.documents.count(Object.assign(Object.assign({}, updatedOptions), { onResponse: (rawResponse, flatResponse) => {
3801
+ await this.client.documents.count({
3802
+ ...updatedOptions,
3803
+ onResponse: (rawResponse, flatResponse) => {
3703
3804
  documentsCount = Number(rawResponse.bodyAsText);
3704
3805
  if (updatedOptions.onResponse) {
3705
3806
  updatedOptions.onResponse(rawResponse, flatResponse);
3706
3807
  }
3707
- } }));
3808
+ },
3809
+ });
3708
3810
  return documentsCount;
3709
3811
  }
3710
3812
  catch (e) {
@@ -3753,8 +3855,13 @@ class SearchClient {
3753
3855
  * ```
3754
3856
  */
3755
3857
  async autocomplete(searchText, suggesterName, options = {}) {
3756
- const { searchFields } = options, nonFieldOptions = tslib.__rest(options, ["searchFields"]);
3757
- const fullOptions = Object.assign({ searchText: searchText, suggesterName: suggesterName, searchFields: this.convertSearchFields(searchFields) }, nonFieldOptions);
3858
+ const { searchFields, ...nonFieldOptions } = options;
3859
+ const fullOptions = {
3860
+ searchText: searchText,
3861
+ suggesterName: suggesterName,
3862
+ searchFields: this.convertSearchFields(searchFields),
3863
+ ...nonFieldOptions,
3864
+ };
3758
3865
  if (!fullOptions.searchText) {
3759
3866
  throw new RangeError("searchText must be provided.");
3760
3867
  }
@@ -3778,16 +3885,37 @@ class SearchClient {
3778
3885
  }
3779
3886
  }
3780
3887
  async searchDocuments(searchText, options = {}, nextPageParameters = {}) {
3781
- const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectorQueries, answers, semanticErrorHandlingMode, debugMode } = options, restOptions = tslib.__rest(options, ["searchFields", "semanticFields", "select", "orderBy", "includeTotalCount", "vectorQueries", "answers", "semanticErrorHandlingMode", "debugMode"]);
3782
- const fullOptions = Object.assign(Object.assign(Object.assign({}, restOptions), nextPageParameters), { searchFields: this.convertSearchFields(searchFields), semanticFields: this.convertSemanticFields(semanticFields), select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, vectorQueries: vectorQueries === null || vectorQueries === void 0 ? void 0 : vectorQueries.map(this.convertVectorQuery.bind(this)), answers: this.convertAnswers(answers), semanticErrorHandling: semanticErrorHandlingMode, debug: debugMode });
3888
+ const { searchFields, semanticFields, select, orderBy, includeTotalCount, vectorQueries, answers, semanticErrorHandlingMode, debugMode, ...restOptions } = options;
3889
+ const fullOptions = {
3890
+ ...restOptions,
3891
+ ...nextPageParameters,
3892
+ searchFields: this.convertSearchFields(searchFields),
3893
+ semanticFields: this.convertSemanticFields(semanticFields),
3894
+ select: this.convertSelect(select) || "*",
3895
+ orderBy: this.convertOrderBy(orderBy),
3896
+ includeTotalResultCount: includeTotalCount,
3897
+ vectorQueries: vectorQueries?.map(this.convertVectorQuery.bind(this)),
3898
+ answers: this.convertAnswers(answers),
3899
+ semanticErrorHandling: semanticErrorHandlingMode,
3900
+ debug: debugMode,
3901
+ };
3783
3902
  const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options);
3784
3903
  try {
3785
- const result = await this.client.documents.searchPost(Object.assign(Object.assign({}, fullOptions), { searchText: searchText }), updatedOptions);
3786
- const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason, semanticPartialResponseType } = result, restResult = tslib.__rest(result, ["results", "nextLink", "nextPageParameters", "semanticPartialResponseReason", "semanticPartialResponseType"]);
3904
+ const result = await this.client.documents.searchPost({
3905
+ ...fullOptions,
3906
+ searchText: searchText,
3907
+ }, updatedOptions);
3908
+ const { results, nextLink, nextPageParameters: resultNextPageParameters, semanticPartialResponseReason, semanticPartialResponseType, ...restResult } = result;
3787
3909
  const modifiedResults = generatedSearchResultToPublicSearchResult(results);
3788
- const converted = Object.assign(Object.assign({}, restResult), { results: modifiedResults, semanticPartialResponseReason: semanticPartialResponseReason, semanticPartialResponseType: semanticPartialResponseType, continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters
3910
+ const converted = {
3911
+ ...restResult,
3912
+ results: modifiedResults,
3913
+ semanticPartialResponseReason: semanticPartialResponseReason,
3914
+ semanticPartialResponseType: semanticPartialResponseType,
3915
+ continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters
3789
3916
  ? generatedSearchRequestToPublicSearchRequest(resultNextPageParameters)
3790
- : resultNextPageParameters) });
3917
+ : resultNextPageParameters),
3918
+ };
3791
3919
  return deserialize(converted);
3792
3920
  }
3793
3921
  catch (e) {
@@ -3801,44 +3929,27 @@ class SearchClient {
3801
3929
  span.end();
3802
3930
  }
3803
3931
  }
3804
- listSearchResultsPage(searchText, options = {}, settings = {}) {
3805
- return tslib.__asyncGenerator(this, arguments, function* listSearchResultsPage_1() {
3806
- let decodedContinuation = this.decodeContinuationToken(settings.continuationToken);
3807
- let result = yield tslib.__await(this.searchDocuments(searchText, options, decodedContinuation === null || decodedContinuation === void 0 ? void 0 : decodedContinuation.nextPageParameters));
3808
- yield yield tslib.__await(result);
3809
- // Technically, we should also leverage nextLink, but the generated code
3810
- // doesn't support this yet.
3811
- while (result.continuationToken) {
3812
- decodedContinuation = this.decodeContinuationToken(result.continuationToken);
3813
- result = yield tslib.__await(this.searchDocuments(searchText, options, decodedContinuation === null || decodedContinuation === void 0 ? void 0 : decodedContinuation.nextPageParameters));
3814
- yield yield tslib.__await(result);
3815
- }
3816
- });
3932
+ async *listSearchResultsPage(searchText, options = {}, settings = {}) {
3933
+ let decodedContinuation = this.decodeContinuationToken(settings.continuationToken);
3934
+ let result = await this.searchDocuments(searchText, options, decodedContinuation?.nextPageParameters);
3935
+ yield result;
3936
+ // Technically, we should also leverage nextLink, but the generated code
3937
+ // doesn't support this yet.
3938
+ while (result.continuationToken) {
3939
+ decodedContinuation = this.decodeContinuationToken(result.continuationToken);
3940
+ result = await this.searchDocuments(searchText, options, decodedContinuation?.nextPageParameters);
3941
+ yield result;
3942
+ }
3817
3943
  }
3818
- listSearchResultsAll(firstPage, searchText, options = {}) {
3819
- return tslib.__asyncGenerator(this, arguments, function* listSearchResultsAll_1() {
3820
- var _a, e_1, _b, _c;
3821
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(firstPage.results)));
3822
- if (firstPage.continuationToken) {
3823
- try {
3824
- for (var _d = true, _e = tslib.__asyncValues(this.listSearchResultsPage(searchText, options, {
3825
- continuationToken: firstPage.continuationToken,
3826
- })), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
3827
- _c = _f.value;
3828
- _d = false;
3829
- const page = _c;
3830
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page.results)));
3831
- }
3832
- }
3833
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3834
- finally {
3835
- try {
3836
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
3837
- }
3838
- finally { if (e_1) throw e_1.error; }
3839
- }
3944
+ async *listSearchResultsAll(firstPage, searchText, options = {}) {
3945
+ yield* firstPage.results;
3946
+ if (firstPage.continuationToken) {
3947
+ for await (const page of this.listSearchResultsPage(searchText, options, {
3948
+ continuationToken: firstPage.continuationToken,
3949
+ })) {
3950
+ yield* page.results;
3840
3951
  }
3841
- });
3952
+ }
3842
3953
  }
3843
3954
  listSearchResults(firstPage, searchText, options = {}) {
3844
3955
  const iter = this.listSearchResultsAll(firstPage, searchText, options);
@@ -3891,7 +4002,10 @@ class SearchClient {
3891
4002
  const { span, updatedOptions } = createSpan("SearchClient-search", options);
3892
4003
  try {
3893
4004
  const pageResult = await this.searchDocuments(searchText, updatedOptions);
3894
- return Object.assign(Object.assign({}, pageResult), { results: this.listSearchResults(pageResult, searchText, updatedOptions) });
4005
+ return {
4006
+ ...pageResult,
4007
+ results: this.listSearchResults(pageResult, searchText, updatedOptions),
4008
+ };
3895
4009
  }
3896
4010
  catch (e) {
3897
4011
  span.setStatus({
@@ -3939,8 +4053,15 @@ class SearchClient {
3939
4053
  * ```
3940
4054
  */
3941
4055
  async suggest(searchText, suggesterName, options = {}) {
3942
- const { select, searchFields, orderBy } = options, nonFieldOptions = tslib.__rest(options, ["select", "searchFields", "orderBy"]);
3943
- const fullOptions = Object.assign({ searchText: searchText, suggesterName: suggesterName, searchFields: this.convertSearchFields(searchFields), select: this.convertSelect(select), orderBy: this.convertOrderBy(orderBy) }, nonFieldOptions);
4056
+ const { select, searchFields, orderBy, ...nonFieldOptions } = options;
4057
+ const fullOptions = {
4058
+ searchText: searchText,
4059
+ suggesterName: suggesterName,
4060
+ searchFields: this.convertSearchFields(searchFields),
4061
+ select: this.convertSelect(select),
4062
+ orderBy: this.convertOrderBy(orderBy),
4063
+ ...nonFieldOptions,
4064
+ };
3944
4065
  if (!fullOptions.searchText) {
3945
4066
  throw new RangeError("searchText must be provided.");
3946
4067
  }
@@ -3972,7 +4093,10 @@ class SearchClient {
3972
4093
  async getDocument(key, options = {}) {
3973
4094
  const { span, updatedOptions } = createSpan("SearchClient-getDocument", options);
3974
4095
  try {
3975
- const result = await this.client.documents.get(key, Object.assign(Object.assign({}, updatedOptions), { selectedFields: updatedOptions.selectedFields }));
4096
+ const result = await this.client.documents.get(key, {
4097
+ ...updatedOptions,
4098
+ selectedFields: updatedOptions.selectedFields,
4099
+ });
3976
4100
  return deserialize(result);
3977
4101
  }
3978
4102
  catch (e) {
@@ -4002,12 +4126,15 @@ class SearchClient {
4002
4126
  const { span, updatedOptions } = createSpan("SearchClient-indexDocuments", options);
4003
4127
  try {
4004
4128
  let status = 0;
4005
- const result = await this.client.documents.index({ actions: serialize(batch.actions) }, Object.assign(Object.assign({}, updatedOptions), { onResponse: (rawResponse, flatResponse) => {
4129
+ const result = await this.client.documents.index({ actions: serialize(batch.actions) }, {
4130
+ ...updatedOptions,
4131
+ onResponse: (rawResponse, flatResponse) => {
4006
4132
  status = rawResponse.status;
4007
4133
  if (updatedOptions.onResponse) {
4008
4134
  updatedOptions.onResponse(rawResponse, flatResponse);
4009
4135
  }
4010
- } }));
4136
+ },
4137
+ });
4011
4138
  if (options.throwOnAnyFailure && status === 207) {
4012
4139
  throw result;
4013
4140
  }
@@ -4202,7 +4329,7 @@ class SearchClient {
4202
4329
  if (!vectorQuery) {
4203
4330
  return vectorQuery;
4204
4331
  }
4205
- return Object.assign(Object.assign({}, vectorQuery), { fields: this.convertVectorQueryFields(vectorQuery === null || vectorQuery === void 0 ? void 0 : vectorQuery.fields) });
4332
+ return { ...vectorQuery, fields: this.convertVectorQueryFields(vectorQuery?.fields) };
4206
4333
  }
4207
4334
  }
4208
4335
 
@@ -4237,7 +4364,6 @@ class SearchIndexingBufferedSender {
4237
4364
  *
4238
4365
  */
4239
4366
  constructor(client, documentKeyRetriever, options = {}) {
4240
- var _a, _b, _c, _d, _e, _f;
4241
4367
  /**
4242
4368
  * Event emitter/publisher used in the Buffered Sender
4243
4369
  */
@@ -4245,17 +4371,17 @@ class SearchIndexingBufferedSender {
4245
4371
  this.client = client;
4246
4372
  this.documentKeyRetriever = documentKeyRetriever;
4247
4373
  // General Configuration properties
4248
- this.autoFlush = (_a = options.autoFlush) !== null && _a !== void 0 ? _a : true;
4249
- this.initialBatchActionCount = (_b = options.initialBatchActionCount) !== null && _b !== void 0 ? _b : DEFAULT_BATCH_SIZE;
4250
- this.flushWindowInMs = (_c = options.flushWindowInMs) !== null && _c !== void 0 ? _c : DEFAULT_FLUSH_WINDOW;
4374
+ this.autoFlush = options.autoFlush ?? true;
4375
+ this.initialBatchActionCount = options.initialBatchActionCount ?? DEFAULT_BATCH_SIZE;
4376
+ this.flushWindowInMs = options.flushWindowInMs ?? DEFAULT_FLUSH_WINDOW;
4251
4377
  // Retry specific configuration properties
4252
- this.throttlingDelayInMs = (_d = options.throttlingDelayInMs) !== null && _d !== void 0 ? _d : DEFAULT_FLUSH_WINDOW;
4253
- this.maxRetriesPerAction = (_e = options.maxRetriesPerAction) !== null && _e !== void 0 ? _e : DEFAULT_RETRY_COUNT;
4254
- this.maxThrottlingDelayInMs = (_f = options.maxThrottlingDelayInMs) !== null && _f !== void 0 ? _f : DEFAULT_MAX_RETRY_DELAY;
4378
+ this.throttlingDelayInMs = options.throttlingDelayInMs ?? DEFAULT_FLUSH_WINDOW;
4379
+ this.maxRetriesPerAction = options.maxRetriesPerAction ?? DEFAULT_RETRY_COUNT;
4380
+ this.maxThrottlingDelayInMs = options.maxThrottlingDelayInMs ?? DEFAULT_MAX_RETRY_DELAY;
4255
4381
  this.batchObject = new IndexDocumentsBatch();
4256
4382
  if (this.autoFlush) {
4257
4383
  const interval = setInterval(() => this.flush(), this.flushWindowInMs);
4258
- interval === null || interval === void 0 ? void 0 : interval.unref();
4384
+ interval?.unref();
4259
4385
  this.cleanupTimer = () => {
4260
4386
  clearInterval(interval);
4261
4387
  };
@@ -7679,7 +7805,9 @@ const SearchIndexerDataNoneIdentity = {
7679
7805
  className: "SearchIndexerDataNoneIdentity",
7680
7806
  uberParent: "SearchIndexerDataIdentity",
7681
7807
  polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
7682
- modelProperties: Object.assign({}, SearchIndexerDataIdentity.type.modelProperties)
7808
+ modelProperties: {
7809
+ ...SearchIndexerDataIdentity.type.modelProperties
7810
+ }
7683
7811
  }
7684
7812
  };
7685
7813
  const SearchIndexerDataUserAssignedIdentity = {
@@ -7689,13 +7817,16 @@ const SearchIndexerDataUserAssignedIdentity = {
7689
7817
  className: "SearchIndexerDataUserAssignedIdentity",
7690
7818
  uberParent: "SearchIndexerDataIdentity",
7691
7819
  polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator,
7692
- modelProperties: Object.assign(Object.assign({}, SearchIndexerDataIdentity.type.modelProperties), { userAssignedIdentity: {
7820
+ modelProperties: {
7821
+ ...SearchIndexerDataIdentity.type.modelProperties,
7822
+ userAssignedIdentity: {
7693
7823
  serializedName: "userAssignedIdentity",
7694
7824
  required: true,
7695
7825
  type: {
7696
7826
  name: "String"
7697
7827
  }
7698
- } })
7828
+ }
7829
+ }
7699
7830
  }
7700
7831
  };
7701
7832
  const HighWaterMarkChangeDetectionPolicy = {
@@ -7705,13 +7836,16 @@ const HighWaterMarkChangeDetectionPolicy = {
7705
7836
  className: "HighWaterMarkChangeDetectionPolicy",
7706
7837
  uberParent: "DataChangeDetectionPolicy",
7707
7838
  polymorphicDiscriminator: DataChangeDetectionPolicy.type.polymorphicDiscriminator,
7708
- modelProperties: Object.assign(Object.assign({}, DataChangeDetectionPolicy.type.modelProperties), { highWaterMarkColumnName: {
7839
+ modelProperties: {
7840
+ ...DataChangeDetectionPolicy.type.modelProperties,
7841
+ highWaterMarkColumnName: {
7709
7842
  serializedName: "highWaterMarkColumnName",
7710
7843
  required: true,
7711
7844
  type: {
7712
7845
  name: "String"
7713
7846
  }
7714
- } })
7847
+ }
7848
+ }
7715
7849
  }
7716
7850
  };
7717
7851
  const SqlIntegratedChangeTrackingPolicy = {
@@ -7721,7 +7855,9 @@ const SqlIntegratedChangeTrackingPolicy = {
7721
7855
  className: "SqlIntegratedChangeTrackingPolicy",
7722
7856
  uberParent: "DataChangeDetectionPolicy",
7723
7857
  polymorphicDiscriminator: DataChangeDetectionPolicy.type.polymorphicDiscriminator,
7724
- modelProperties: Object.assign({}, DataChangeDetectionPolicy.type.modelProperties)
7858
+ modelProperties: {
7859
+ ...DataChangeDetectionPolicy.type.modelProperties
7860
+ }
7725
7861
  }
7726
7862
  };
7727
7863
  const SoftDeleteColumnDeletionDetectionPolicy = {
@@ -7731,17 +7867,21 @@ const SoftDeleteColumnDeletionDetectionPolicy = {
7731
7867
  className: "SoftDeleteColumnDeletionDetectionPolicy",
7732
7868
  uberParent: "DataDeletionDetectionPolicy",
7733
7869
  polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
7734
- modelProperties: Object.assign(Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties), { softDeleteColumnName: {
7870
+ modelProperties: {
7871
+ ...DataDeletionDetectionPolicy.type.modelProperties,
7872
+ softDeleteColumnName: {
7735
7873
  serializedName: "softDeleteColumnName",
7736
7874
  type: {
7737
7875
  name: "String"
7738
7876
  }
7739
- }, softDeleteMarkerValue: {
7877
+ },
7878
+ softDeleteMarkerValue: {
7740
7879
  serializedName: "softDeleteMarkerValue",
7741
7880
  type: {
7742
7881
  name: "String"
7743
7882
  }
7744
- } })
7883
+ }
7884
+ }
7745
7885
  }
7746
7886
  };
7747
7887
  const NativeBlobSoftDeleteDeletionDetectionPolicy = {
@@ -7751,7 +7891,9 @@ const NativeBlobSoftDeleteDeletionDetectionPolicy = {
7751
7891
  className: "NativeBlobSoftDeleteDeletionDetectionPolicy",
7752
7892
  uberParent: "DataDeletionDetectionPolicy",
7753
7893
  polymorphicDiscriminator: DataDeletionDetectionPolicy.type.polymorphicDiscriminator,
7754
- modelProperties: Object.assign({}, DataDeletionDetectionPolicy.type.modelProperties)
7894
+ modelProperties: {
7895
+ ...DataDeletionDetectionPolicy.type.modelProperties
7896
+ }
7755
7897
  }
7756
7898
  };
7757
7899
  const ConditionalSkill = {
@@ -7761,7 +7903,9 @@ const ConditionalSkill = {
7761
7903
  className: "ConditionalSkill",
7762
7904
  uberParent: "SearchIndexerSkill",
7763
7905
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7764
- modelProperties: Object.assign({}, SearchIndexerSkill.type.modelProperties)
7906
+ modelProperties: {
7907
+ ...SearchIndexerSkill.type.modelProperties
7908
+ }
7765
7909
  }
7766
7910
  };
7767
7911
  const KeyPhraseExtractionSkill = {
@@ -7771,24 +7915,29 @@ const KeyPhraseExtractionSkill = {
7771
7915
  className: "KeyPhraseExtractionSkill",
7772
7916
  uberParent: "SearchIndexerSkill",
7773
7917
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7774
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
7918
+ modelProperties: {
7919
+ ...SearchIndexerSkill.type.modelProperties,
7920
+ defaultLanguageCode: {
7775
7921
  serializedName: "defaultLanguageCode",
7776
7922
  type: {
7777
7923
  name: "String"
7778
7924
  }
7779
- }, maxKeyPhraseCount: {
7925
+ },
7926
+ maxKeyPhraseCount: {
7780
7927
  serializedName: "maxKeyPhraseCount",
7781
7928
  nullable: true,
7782
7929
  type: {
7783
7930
  name: "Number"
7784
7931
  }
7785
- }, modelVersion: {
7932
+ },
7933
+ modelVersion: {
7786
7934
  serializedName: "modelVersion",
7787
7935
  nullable: true,
7788
7936
  type: {
7789
7937
  name: "String"
7790
7938
  }
7791
- } })
7939
+ }
7940
+ }
7792
7941
  }
7793
7942
  };
7794
7943
  const OcrSkill = {
@@ -7798,23 +7947,28 @@ const OcrSkill = {
7798
7947
  className: "OcrSkill",
7799
7948
  uberParent: "SearchIndexerSkill",
7800
7949
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7801
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
7950
+ modelProperties: {
7951
+ ...SearchIndexerSkill.type.modelProperties,
7952
+ defaultLanguageCode: {
7802
7953
  serializedName: "defaultLanguageCode",
7803
7954
  type: {
7804
7955
  name: "String"
7805
7956
  }
7806
- }, shouldDetectOrientation: {
7957
+ },
7958
+ shouldDetectOrientation: {
7807
7959
  defaultValue: false,
7808
7960
  serializedName: "detectOrientation",
7809
7961
  type: {
7810
7962
  name: "Boolean"
7811
7963
  }
7812
- }, lineEnding: {
7964
+ },
7965
+ lineEnding: {
7813
7966
  serializedName: "lineEnding",
7814
7967
  type: {
7815
7968
  name: "String"
7816
7969
  }
7817
- } })
7970
+ }
7971
+ }
7818
7972
  }
7819
7973
  };
7820
7974
  const ImageAnalysisSkill = {
@@ -7824,12 +7978,15 @@ const ImageAnalysisSkill = {
7824
7978
  className: "ImageAnalysisSkill",
7825
7979
  uberParent: "SearchIndexerSkill",
7826
7980
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7827
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
7981
+ modelProperties: {
7982
+ ...SearchIndexerSkill.type.modelProperties,
7983
+ defaultLanguageCode: {
7828
7984
  serializedName: "defaultLanguageCode",
7829
7985
  type: {
7830
7986
  name: "String"
7831
7987
  }
7832
- }, visualFeatures: {
7988
+ },
7989
+ visualFeatures: {
7833
7990
  serializedName: "visualFeatures",
7834
7991
  type: {
7835
7992
  name: "Sequence",
@@ -7839,7 +7996,8 @@ const ImageAnalysisSkill = {
7839
7996
  }
7840
7997
  }
7841
7998
  }
7842
- }, details: {
7999
+ },
8000
+ details: {
7843
8001
  serializedName: "details",
7844
8002
  type: {
7845
8003
  name: "Sequence",
@@ -7849,7 +8007,8 @@ const ImageAnalysisSkill = {
7849
8007
  }
7850
8008
  }
7851
8009
  }
7852
- } })
8010
+ }
8011
+ }
7853
8012
  }
7854
8013
  };
7855
8014
  const LanguageDetectionSkill = {
@@ -7859,19 +8018,23 @@ const LanguageDetectionSkill = {
7859
8018
  className: "LanguageDetectionSkill",
7860
8019
  uberParent: "SearchIndexerSkill",
7861
8020
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7862
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultCountryHint: {
8021
+ modelProperties: {
8022
+ ...SearchIndexerSkill.type.modelProperties,
8023
+ defaultCountryHint: {
7863
8024
  serializedName: "defaultCountryHint",
7864
8025
  nullable: true,
7865
8026
  type: {
7866
8027
  name: "String"
7867
8028
  }
7868
- }, modelVersion: {
8029
+ },
8030
+ modelVersion: {
7869
8031
  serializedName: "modelVersion",
7870
8032
  nullable: true,
7871
8033
  type: {
7872
8034
  name: "String"
7873
8035
  }
7874
- } })
8036
+ }
8037
+ }
7875
8038
  }
7876
8039
  };
7877
8040
  const ShaperSkill = {
@@ -7881,7 +8044,9 @@ const ShaperSkill = {
7881
8044
  className: "ShaperSkill",
7882
8045
  uberParent: "SearchIndexerSkill",
7883
8046
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7884
- modelProperties: Object.assign({}, SearchIndexerSkill.type.modelProperties)
8047
+ modelProperties: {
8048
+ ...SearchIndexerSkill.type.modelProperties
8049
+ }
7885
8050
  }
7886
8051
  };
7887
8052
  const MergeSkill = {
@@ -7891,19 +8056,23 @@ const MergeSkill = {
7891
8056
  className: "MergeSkill",
7892
8057
  uberParent: "SearchIndexerSkill",
7893
8058
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7894
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { insertPreTag: {
8059
+ modelProperties: {
8060
+ ...SearchIndexerSkill.type.modelProperties,
8061
+ insertPreTag: {
7895
8062
  defaultValue: " ",
7896
8063
  serializedName: "insertPreTag",
7897
8064
  type: {
7898
8065
  name: "String"
7899
8066
  }
7900
- }, insertPostTag: {
8067
+ },
8068
+ insertPostTag: {
7901
8069
  defaultValue: " ",
7902
8070
  serializedName: "insertPostTag",
7903
8071
  type: {
7904
8072
  name: "String"
7905
8073
  }
7906
- } })
8074
+ }
8075
+ }
7907
8076
  }
7908
8077
  };
7909
8078
  const EntityRecognitionSkill = {
@@ -7913,7 +8082,9 @@ const EntityRecognitionSkill = {
7913
8082
  className: "EntityRecognitionSkill",
7914
8083
  uberParent: "SearchIndexerSkill",
7915
8084
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7916
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { categories: {
8085
+ modelProperties: {
8086
+ ...SearchIndexerSkill.type.modelProperties,
8087
+ categories: {
7917
8088
  serializedName: "categories",
7918
8089
  type: {
7919
8090
  name: "Sequence",
@@ -7923,24 +8094,28 @@ const EntityRecognitionSkill = {
7923
8094
  }
7924
8095
  }
7925
8096
  }
7926
- }, defaultLanguageCode: {
8097
+ },
8098
+ defaultLanguageCode: {
7927
8099
  serializedName: "defaultLanguageCode",
7928
8100
  type: {
7929
8101
  name: "String"
7930
8102
  }
7931
- }, includeTypelessEntities: {
8103
+ },
8104
+ includeTypelessEntities: {
7932
8105
  serializedName: "includeTypelessEntities",
7933
8106
  nullable: true,
7934
8107
  type: {
7935
8108
  name: "Boolean"
7936
8109
  }
7937
- }, minimumPrecision: {
8110
+ },
8111
+ minimumPrecision: {
7938
8112
  serializedName: "minimumPrecision",
7939
8113
  nullable: true,
7940
8114
  type: {
7941
8115
  name: "Number"
7942
8116
  }
7943
- } })
8117
+ }
8118
+ }
7944
8119
  }
7945
8120
  };
7946
8121
  const SentimentSkill = {
@@ -7950,12 +8125,15 @@ const SentimentSkill = {
7950
8125
  className: "SentimentSkill",
7951
8126
  uberParent: "SearchIndexerSkill",
7952
8127
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7953
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
8128
+ modelProperties: {
8129
+ ...SearchIndexerSkill.type.modelProperties,
8130
+ defaultLanguageCode: {
7954
8131
  serializedName: "defaultLanguageCode",
7955
8132
  type: {
7956
8133
  name: "String"
7957
8134
  }
7958
- } })
8135
+ }
8136
+ }
7959
8137
  }
7960
8138
  };
7961
8139
  const SentimentSkillV3 = {
@@ -7965,25 +8143,30 @@ const SentimentSkillV3 = {
7965
8143
  className: "SentimentSkillV3",
7966
8144
  uberParent: "SearchIndexerSkill",
7967
8145
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7968
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
8146
+ modelProperties: {
8147
+ ...SearchIndexerSkill.type.modelProperties,
8148
+ defaultLanguageCode: {
7969
8149
  serializedName: "defaultLanguageCode",
7970
8150
  nullable: true,
7971
8151
  type: {
7972
8152
  name: "String"
7973
8153
  }
7974
- }, includeOpinionMining: {
8154
+ },
8155
+ includeOpinionMining: {
7975
8156
  defaultValue: false,
7976
8157
  serializedName: "includeOpinionMining",
7977
8158
  type: {
7978
8159
  name: "Boolean"
7979
8160
  }
7980
- }, modelVersion: {
8161
+ },
8162
+ modelVersion: {
7981
8163
  serializedName: "modelVersion",
7982
8164
  nullable: true,
7983
8165
  type: {
7984
8166
  name: "String"
7985
8167
  }
7986
- } })
8168
+ }
8169
+ }
7987
8170
  }
7988
8171
  };
7989
8172
  const EntityLinkingSkill = {
@@ -7993,13 +8176,16 @@ const EntityLinkingSkill = {
7993
8176
  className: "EntityLinkingSkill",
7994
8177
  uberParent: "SearchIndexerSkill",
7995
8178
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
7996
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
8179
+ modelProperties: {
8180
+ ...SearchIndexerSkill.type.modelProperties,
8181
+ defaultLanguageCode: {
7997
8182
  serializedName: "defaultLanguageCode",
7998
8183
  nullable: true,
7999
8184
  type: {
8000
8185
  name: "String"
8001
8186
  }
8002
- }, minimumPrecision: {
8187
+ },
8188
+ minimumPrecision: {
8003
8189
  constraints: {
8004
8190
  InclusiveMaximum: 1,
8005
8191
  InclusiveMinimum: 0
@@ -8009,13 +8195,15 @@ const EntityLinkingSkill = {
8009
8195
  type: {
8010
8196
  name: "Number"
8011
8197
  }
8012
- }, modelVersion: {
8198
+ },
8199
+ modelVersion: {
8013
8200
  serializedName: "modelVersion",
8014
8201
  nullable: true,
8015
8202
  type: {
8016
8203
  name: "String"
8017
8204
  }
8018
- } })
8205
+ }
8206
+ }
8019
8207
  }
8020
8208
  };
8021
8209
  const EntityRecognitionSkillV3 = {
@@ -8025,7 +8213,9 @@ const EntityRecognitionSkillV3 = {
8025
8213
  className: "EntityRecognitionSkillV3",
8026
8214
  uberParent: "SearchIndexerSkill",
8027
8215
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8028
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { categories: {
8216
+ modelProperties: {
8217
+ ...SearchIndexerSkill.type.modelProperties,
8218
+ categories: {
8029
8219
  serializedName: "categories",
8030
8220
  type: {
8031
8221
  name: "Sequence",
@@ -8035,13 +8225,15 @@ const EntityRecognitionSkillV3 = {
8035
8225
  }
8036
8226
  }
8037
8227
  }
8038
- }, defaultLanguageCode: {
8228
+ },
8229
+ defaultLanguageCode: {
8039
8230
  serializedName: "defaultLanguageCode",
8040
8231
  nullable: true,
8041
8232
  type: {
8042
8233
  name: "String"
8043
8234
  }
8044
- }, minimumPrecision: {
8235
+ },
8236
+ minimumPrecision: {
8045
8237
  constraints: {
8046
8238
  InclusiveMaximum: 1,
8047
8239
  InclusiveMinimum: 0
@@ -8051,13 +8243,15 @@ const EntityRecognitionSkillV3 = {
8051
8243
  type: {
8052
8244
  name: "Number"
8053
8245
  }
8054
- }, modelVersion: {
8246
+ },
8247
+ modelVersion: {
8055
8248
  serializedName: "modelVersion",
8056
8249
  nullable: true,
8057
8250
  type: {
8058
8251
  name: "String"
8059
8252
  }
8060
- } })
8253
+ }
8254
+ }
8061
8255
  }
8062
8256
  };
8063
8257
  const PIIDetectionSkill = {
@@ -8067,13 +8261,16 @@ const PIIDetectionSkill = {
8067
8261
  className: "PIIDetectionSkill",
8068
8262
  uberParent: "SearchIndexerSkill",
8069
8263
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8070
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
8264
+ modelProperties: {
8265
+ ...SearchIndexerSkill.type.modelProperties,
8266
+ defaultLanguageCode: {
8071
8267
  serializedName: "defaultLanguageCode",
8072
8268
  nullable: true,
8073
8269
  type: {
8074
8270
  name: "String"
8075
8271
  }
8076
- }, minimumPrecision: {
8272
+ },
8273
+ minimumPrecision: {
8077
8274
  constraints: {
8078
8275
  InclusiveMaximum: 1,
8079
8276
  InclusiveMinimum: 0
@@ -8083,12 +8280,14 @@ const PIIDetectionSkill = {
8083
8280
  type: {
8084
8281
  name: "Number"
8085
8282
  }
8086
- }, maskingMode: {
8283
+ },
8284
+ maskingMode: {
8087
8285
  serializedName: "maskingMode",
8088
8286
  type: {
8089
8287
  name: "String"
8090
8288
  }
8091
- }, maskingCharacter: {
8289
+ },
8290
+ maskingCharacter: {
8092
8291
  constraints: {
8093
8292
  MaxLength: 1
8094
8293
  },
@@ -8097,13 +8296,15 @@ const PIIDetectionSkill = {
8097
8296
  type: {
8098
8297
  name: "String"
8099
8298
  }
8100
- }, modelVersion: {
8299
+ },
8300
+ modelVersion: {
8101
8301
  serializedName: "modelVersion",
8102
8302
  nullable: true,
8103
8303
  type: {
8104
8304
  name: "String"
8105
8305
  }
8106
- }, piiCategories: {
8306
+ },
8307
+ piiCategories: {
8107
8308
  serializedName: "piiCategories",
8108
8309
  type: {
8109
8310
  name: "Sequence",
@@ -8113,13 +8314,15 @@ const PIIDetectionSkill = {
8113
8314
  }
8114
8315
  }
8115
8316
  }
8116
- }, domain: {
8317
+ },
8318
+ domain: {
8117
8319
  serializedName: "domain",
8118
8320
  nullable: true,
8119
8321
  type: {
8120
8322
  name: "String"
8121
8323
  }
8122
- } })
8324
+ }
8325
+ }
8123
8326
  }
8124
8327
  };
8125
8328
  const SplitSkill = {
@@ -8129,35 +8332,42 @@ const SplitSkill = {
8129
8332
  className: "SplitSkill",
8130
8333
  uberParent: "SearchIndexerSkill",
8131
8334
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8132
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
8335
+ modelProperties: {
8336
+ ...SearchIndexerSkill.type.modelProperties,
8337
+ defaultLanguageCode: {
8133
8338
  serializedName: "defaultLanguageCode",
8134
8339
  type: {
8135
8340
  name: "String"
8136
8341
  }
8137
- }, textSplitMode: {
8342
+ },
8343
+ textSplitMode: {
8138
8344
  serializedName: "textSplitMode",
8139
8345
  type: {
8140
8346
  name: "String"
8141
8347
  }
8142
- }, maxPageLength: {
8348
+ },
8349
+ maxPageLength: {
8143
8350
  serializedName: "maximumPageLength",
8144
8351
  nullable: true,
8145
8352
  type: {
8146
8353
  name: "Number"
8147
8354
  }
8148
- }, pageOverlapLength: {
8355
+ },
8356
+ pageOverlapLength: {
8149
8357
  serializedName: "pageOverlapLength",
8150
8358
  nullable: true,
8151
8359
  type: {
8152
8360
  name: "Number"
8153
8361
  }
8154
- }, maximumPagesToTake: {
8362
+ },
8363
+ maximumPagesToTake: {
8155
8364
  serializedName: "maximumPagesToTake",
8156
8365
  nullable: true,
8157
8366
  type: {
8158
8367
  name: "Number"
8159
8368
  }
8160
- } })
8369
+ }
8370
+ }
8161
8371
  }
8162
8372
  };
8163
8373
  const CustomEntityLookupSkill = {
@@ -8167,19 +8377,23 @@ const CustomEntityLookupSkill = {
8167
8377
  className: "CustomEntityLookupSkill",
8168
8378
  uberParent: "SearchIndexerSkill",
8169
8379
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8170
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultLanguageCode: {
8380
+ modelProperties: {
8381
+ ...SearchIndexerSkill.type.modelProperties,
8382
+ defaultLanguageCode: {
8171
8383
  serializedName: "defaultLanguageCode",
8172
8384
  nullable: true,
8173
8385
  type: {
8174
8386
  name: "String"
8175
8387
  }
8176
- }, entitiesDefinitionUri: {
8388
+ },
8389
+ entitiesDefinitionUri: {
8177
8390
  serializedName: "entitiesDefinitionUri",
8178
8391
  nullable: true,
8179
8392
  type: {
8180
8393
  name: "String"
8181
8394
  }
8182
- }, inlineEntitiesDefinition: {
8395
+ },
8396
+ inlineEntitiesDefinition: {
8183
8397
  serializedName: "inlineEntitiesDefinition",
8184
8398
  nullable: true,
8185
8399
  type: {
@@ -8191,25 +8405,29 @@ const CustomEntityLookupSkill = {
8191
8405
  }
8192
8406
  }
8193
8407
  }
8194
- }, globalDefaultCaseSensitive: {
8408
+ },
8409
+ globalDefaultCaseSensitive: {
8195
8410
  serializedName: "globalDefaultCaseSensitive",
8196
8411
  nullable: true,
8197
8412
  type: {
8198
8413
  name: "Boolean"
8199
8414
  }
8200
- }, globalDefaultAccentSensitive: {
8415
+ },
8416
+ globalDefaultAccentSensitive: {
8201
8417
  serializedName: "globalDefaultAccentSensitive",
8202
8418
  nullable: true,
8203
8419
  type: {
8204
8420
  name: "Boolean"
8205
8421
  }
8206
- }, globalDefaultFuzzyEditDistance: {
8422
+ },
8423
+ globalDefaultFuzzyEditDistance: {
8207
8424
  serializedName: "globalDefaultFuzzyEditDistance",
8208
8425
  nullable: true,
8209
8426
  type: {
8210
8427
  name: "Number"
8211
8428
  }
8212
- } })
8429
+ }
8430
+ }
8213
8431
  }
8214
8432
  };
8215
8433
  const TextTranslationSkill = {
@@ -8219,24 +8437,29 @@ const TextTranslationSkill = {
8219
8437
  className: "TextTranslationSkill",
8220
8438
  uberParent: "SearchIndexerSkill",
8221
8439
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8222
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { defaultToLanguageCode: {
8440
+ modelProperties: {
8441
+ ...SearchIndexerSkill.type.modelProperties,
8442
+ defaultToLanguageCode: {
8223
8443
  serializedName: "defaultToLanguageCode",
8224
8444
  required: true,
8225
8445
  type: {
8226
8446
  name: "String"
8227
8447
  }
8228
- }, defaultFromLanguageCode: {
8448
+ },
8449
+ defaultFromLanguageCode: {
8229
8450
  serializedName: "defaultFromLanguageCode",
8230
8451
  type: {
8231
8452
  name: "String"
8232
8453
  }
8233
- }, suggestedFrom: {
8454
+ },
8455
+ suggestedFrom: {
8234
8456
  serializedName: "suggestedFrom",
8235
8457
  nullable: true,
8236
8458
  type: {
8237
8459
  name: "String"
8238
8460
  }
8239
- } })
8461
+ }
8462
+ }
8240
8463
  }
8241
8464
  };
8242
8465
  const DocumentExtractionSkill = {
@@ -8246,26 +8469,31 @@ const DocumentExtractionSkill = {
8246
8469
  className: "DocumentExtractionSkill",
8247
8470
  uberParent: "SearchIndexerSkill",
8248
8471
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8249
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { parsingMode: {
8472
+ modelProperties: {
8473
+ ...SearchIndexerSkill.type.modelProperties,
8474
+ parsingMode: {
8250
8475
  serializedName: "parsingMode",
8251
8476
  nullable: true,
8252
8477
  type: {
8253
8478
  name: "String"
8254
8479
  }
8255
- }, dataToExtract: {
8480
+ },
8481
+ dataToExtract: {
8256
8482
  serializedName: "dataToExtract",
8257
8483
  nullable: true,
8258
8484
  type: {
8259
8485
  name: "String"
8260
8486
  }
8261
- }, configuration: {
8487
+ },
8488
+ configuration: {
8262
8489
  serializedName: "configuration",
8263
8490
  nullable: true,
8264
8491
  type: {
8265
8492
  name: "Dictionary",
8266
8493
  value: { type: { name: "any" } }
8267
8494
  }
8268
- } })
8495
+ }
8496
+ }
8269
8497
  }
8270
8498
  };
8271
8499
  const WebApiSkill = {
@@ -8275,53 +8503,63 @@ const WebApiSkill = {
8275
8503
  className: "WebApiSkill",
8276
8504
  uberParent: "SearchIndexerSkill",
8277
8505
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8278
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { uri: {
8506
+ modelProperties: {
8507
+ ...SearchIndexerSkill.type.modelProperties,
8508
+ uri: {
8279
8509
  serializedName: "uri",
8280
8510
  required: true,
8281
8511
  type: {
8282
8512
  name: "String"
8283
8513
  }
8284
- }, httpHeaders: {
8514
+ },
8515
+ httpHeaders: {
8285
8516
  serializedName: "httpHeaders",
8286
8517
  type: {
8287
8518
  name: "Dictionary",
8288
8519
  value: { type: { name: "String" } }
8289
8520
  }
8290
- }, httpMethod: {
8521
+ },
8522
+ httpMethod: {
8291
8523
  serializedName: "httpMethod",
8292
8524
  type: {
8293
8525
  name: "String"
8294
8526
  }
8295
- }, timeout: {
8527
+ },
8528
+ timeout: {
8296
8529
  serializedName: "timeout",
8297
8530
  type: {
8298
8531
  name: "TimeSpan"
8299
8532
  }
8300
- }, batchSize: {
8533
+ },
8534
+ batchSize: {
8301
8535
  serializedName: "batchSize",
8302
8536
  nullable: true,
8303
8537
  type: {
8304
8538
  name: "Number"
8305
8539
  }
8306
- }, degreeOfParallelism: {
8540
+ },
8541
+ degreeOfParallelism: {
8307
8542
  serializedName: "degreeOfParallelism",
8308
8543
  nullable: true,
8309
8544
  type: {
8310
8545
  name: "Number"
8311
8546
  }
8312
- }, authResourceId: {
8547
+ },
8548
+ authResourceId: {
8313
8549
  serializedName: "authResourceId",
8314
8550
  nullable: true,
8315
8551
  type: {
8316
8552
  name: "String"
8317
8553
  }
8318
- }, authIdentity: {
8554
+ },
8555
+ authIdentity: {
8319
8556
  serializedName: "authIdentity",
8320
8557
  type: {
8321
8558
  name: "Composite",
8322
8559
  className: "SearchIndexerDataIdentity"
8323
8560
  }
8324
- } })
8561
+ }
8562
+ }
8325
8563
  }
8326
8564
  };
8327
8565
  const AzureMachineLearningSkill = {
@@ -8331,43 +8569,51 @@ const AzureMachineLearningSkill = {
8331
8569
  className: "AzureMachineLearningSkill",
8332
8570
  uberParent: "SearchIndexerSkill",
8333
8571
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8334
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
8572
+ modelProperties: {
8573
+ ...SearchIndexerSkill.type.modelProperties,
8574
+ scoringUri: {
8335
8575
  serializedName: "uri",
8336
8576
  nullable: true,
8337
8577
  type: {
8338
8578
  name: "String"
8339
8579
  }
8340
- }, authenticationKey: {
8580
+ },
8581
+ authenticationKey: {
8341
8582
  serializedName: "key",
8342
8583
  nullable: true,
8343
8584
  type: {
8344
8585
  name: "String"
8345
8586
  }
8346
- }, resourceId: {
8587
+ },
8588
+ resourceId: {
8347
8589
  serializedName: "resourceId",
8348
8590
  nullable: true,
8349
8591
  type: {
8350
8592
  name: "String"
8351
8593
  }
8352
- }, timeout: {
8594
+ },
8595
+ timeout: {
8353
8596
  serializedName: "timeout",
8354
8597
  nullable: true,
8355
8598
  type: {
8356
8599
  name: "TimeSpan"
8357
8600
  }
8358
- }, region: {
8601
+ },
8602
+ region: {
8359
8603
  serializedName: "region",
8360
8604
  nullable: true,
8361
8605
  type: {
8362
8606
  name: "String"
8363
8607
  }
8364
- }, degreeOfParallelism: {
8608
+ },
8609
+ degreeOfParallelism: {
8365
8610
  serializedName: "degreeOfParallelism",
8366
8611
  nullable: true,
8367
8612
  type: {
8368
8613
  name: "Number"
8369
8614
  }
8370
- } })
8615
+ }
8616
+ }
8371
8617
  }
8372
8618
  };
8373
8619
  const AzureOpenAIEmbeddingSkill = {
@@ -8377,28 +8623,34 @@ const AzureOpenAIEmbeddingSkill = {
8377
8623
  className: "AzureOpenAIEmbeddingSkill",
8378
8624
  uberParent: "SearchIndexerSkill",
8379
8625
  polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
8380
- modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { resourceUri: {
8626
+ modelProperties: {
8627
+ ...SearchIndexerSkill.type.modelProperties,
8628
+ resourceUri: {
8381
8629
  serializedName: "resourceUri",
8382
8630
  type: {
8383
8631
  name: "String"
8384
8632
  }
8385
- }, deploymentId: {
8633
+ },
8634
+ deploymentId: {
8386
8635
  serializedName: "deploymentId",
8387
8636
  type: {
8388
8637
  name: "String"
8389
8638
  }
8390
- }, apiKey: {
8639
+ },
8640
+ apiKey: {
8391
8641
  serializedName: "apiKey",
8392
8642
  type: {
8393
8643
  name: "String"
8394
8644
  }
8395
- }, authIdentity: {
8645
+ },
8646
+ authIdentity: {
8396
8647
  serializedName: "authIdentity",
8397
8648
  type: {
8398
8649
  name: "Composite",
8399
8650
  className: "SearchIndexerDataIdentity"
8400
8651
  }
8401
- } })
8652
+ }
8653
+ }
8402
8654
  }
8403
8655
  };
8404
8656
  const DefaultCognitiveServicesAccount = {
@@ -8408,7 +8660,9 @@ const DefaultCognitiveServicesAccount = {
8408
8660
  className: "DefaultCognitiveServicesAccount",
8409
8661
  uberParent: "CognitiveServicesAccount",
8410
8662
  polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
8411
- modelProperties: Object.assign({}, CognitiveServicesAccount.type.modelProperties)
8663
+ modelProperties: {
8664
+ ...CognitiveServicesAccount.type.modelProperties
8665
+ }
8412
8666
  }
8413
8667
  };
8414
8668
  const CognitiveServicesAccountKey = {
@@ -8418,39 +8672,48 @@ const CognitiveServicesAccountKey = {
8418
8672
  className: "CognitiveServicesAccountKey",
8419
8673
  uberParent: "CognitiveServicesAccount",
8420
8674
  polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator,
8421
- modelProperties: Object.assign(Object.assign({}, CognitiveServicesAccount.type.modelProperties), { key: {
8675
+ modelProperties: {
8676
+ ...CognitiveServicesAccount.type.modelProperties,
8677
+ key: {
8422
8678
  serializedName: "key",
8423
8679
  required: true,
8424
8680
  type: {
8425
8681
  name: "String"
8426
8682
  }
8427
- } })
8683
+ }
8684
+ }
8428
8685
  }
8429
8686
  };
8430
8687
  const SearchIndexerKnowledgeStoreTableProjectionSelector = {
8431
8688
  type: {
8432
8689
  name: "Composite",
8433
8690
  className: "SearchIndexerKnowledgeStoreTableProjectionSelector",
8434
- modelProperties: Object.assign(Object.assign({}, SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties), { tableName: {
8691
+ modelProperties: {
8692
+ ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties,
8693
+ tableName: {
8435
8694
  serializedName: "tableName",
8436
8695
  required: true,
8437
8696
  type: {
8438
8697
  name: "String"
8439
8698
  }
8440
- } })
8699
+ }
8700
+ }
8441
8701
  }
8442
8702
  };
8443
8703
  const SearchIndexerKnowledgeStoreBlobProjectionSelector = {
8444
8704
  type: {
8445
8705
  name: "Composite",
8446
8706
  className: "SearchIndexerKnowledgeStoreBlobProjectionSelector",
8447
- modelProperties: Object.assign(Object.assign({}, SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties), { storageContainer: {
8707
+ modelProperties: {
8708
+ ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties,
8709
+ storageContainer: {
8448
8710
  serializedName: "storageContainer",
8449
8711
  required: true,
8450
8712
  type: {
8451
8713
  name: "String"
8452
8714
  }
8453
- } })
8715
+ }
8716
+ }
8454
8717
  }
8455
8718
  };
8456
8719
  const DistanceScoringFunction = {
@@ -8460,13 +8723,16 @@ const DistanceScoringFunction = {
8460
8723
  className: "DistanceScoringFunction",
8461
8724
  uberParent: "ScoringFunction",
8462
8725
  polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
8463
- modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
8726
+ modelProperties: {
8727
+ ...ScoringFunction.type.modelProperties,
8728
+ parameters: {
8464
8729
  serializedName: "distance",
8465
8730
  type: {
8466
8731
  name: "Composite",
8467
8732
  className: "DistanceScoringParameters"
8468
8733
  }
8469
- } })
8734
+ }
8735
+ }
8470
8736
  }
8471
8737
  };
8472
8738
  const FreshnessScoringFunction = {
@@ -8476,13 +8742,16 @@ const FreshnessScoringFunction = {
8476
8742
  className: "FreshnessScoringFunction",
8477
8743
  uberParent: "ScoringFunction",
8478
8744
  polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
8479
- modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
8745
+ modelProperties: {
8746
+ ...ScoringFunction.type.modelProperties,
8747
+ parameters: {
8480
8748
  serializedName: "freshness",
8481
8749
  type: {
8482
8750
  name: "Composite",
8483
8751
  className: "FreshnessScoringParameters"
8484
8752
  }
8485
- } })
8753
+ }
8754
+ }
8486
8755
  }
8487
8756
  };
8488
8757
  const MagnitudeScoringFunction = {
@@ -8492,13 +8761,16 @@ const MagnitudeScoringFunction = {
8492
8761
  className: "MagnitudeScoringFunction",
8493
8762
  uberParent: "ScoringFunction",
8494
8763
  polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
8495
- modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
8764
+ modelProperties: {
8765
+ ...ScoringFunction.type.modelProperties,
8766
+ parameters: {
8496
8767
  serializedName: "magnitude",
8497
8768
  type: {
8498
8769
  name: "Composite",
8499
8770
  className: "MagnitudeScoringParameters"
8500
8771
  }
8501
- } })
8772
+ }
8773
+ }
8502
8774
  }
8503
8775
  };
8504
8776
  const TagScoringFunction = {
@@ -8508,13 +8780,16 @@ const TagScoringFunction = {
8508
8780
  className: "TagScoringFunction",
8509
8781
  uberParent: "ScoringFunction",
8510
8782
  polymorphicDiscriminator: ScoringFunction.type.polymorphicDiscriminator,
8511
- modelProperties: Object.assign(Object.assign({}, ScoringFunction.type.modelProperties), { parameters: {
8783
+ modelProperties: {
8784
+ ...ScoringFunction.type.modelProperties,
8785
+ parameters: {
8512
8786
  serializedName: "tag",
8513
8787
  type: {
8514
8788
  name: "Composite",
8515
8789
  className: "TagScoringParameters"
8516
8790
  }
8517
- } })
8791
+ }
8792
+ }
8518
8793
  }
8519
8794
  };
8520
8795
  const CustomAnalyzer = {
@@ -8524,13 +8799,16 @@ const CustomAnalyzer = {
8524
8799
  className: "CustomAnalyzer",
8525
8800
  uberParent: "LexicalAnalyzer",
8526
8801
  polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
8527
- modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { tokenizerName: {
8802
+ modelProperties: {
8803
+ ...LexicalAnalyzer.type.modelProperties,
8804
+ tokenizerName: {
8528
8805
  serializedName: "tokenizer",
8529
8806
  required: true,
8530
8807
  type: {
8531
8808
  name: "String"
8532
8809
  }
8533
- }, tokenFilters: {
8810
+ },
8811
+ tokenFilters: {
8534
8812
  serializedName: "tokenFilters",
8535
8813
  type: {
8536
8814
  name: "Sequence",
@@ -8540,7 +8818,8 @@ const CustomAnalyzer = {
8540
8818
  }
8541
8819
  }
8542
8820
  }
8543
- }, charFilters: {
8821
+ },
8822
+ charFilters: {
8544
8823
  serializedName: "charFilters",
8545
8824
  type: {
8546
8825
  name: "Sequence",
@@ -8550,7 +8829,8 @@ const CustomAnalyzer = {
8550
8829
  }
8551
8830
  }
8552
8831
  }
8553
- } })
8832
+ }
8833
+ }
8554
8834
  }
8555
8835
  };
8556
8836
  const PatternAnalyzer = {
@@ -8560,24 +8840,29 @@ const PatternAnalyzer = {
8560
8840
  className: "PatternAnalyzer",
8561
8841
  uberParent: "LexicalAnalyzer",
8562
8842
  polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
8563
- modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { lowerCaseTerms: {
8843
+ modelProperties: {
8844
+ ...LexicalAnalyzer.type.modelProperties,
8845
+ lowerCaseTerms: {
8564
8846
  defaultValue: true,
8565
8847
  serializedName: "lowercase",
8566
8848
  type: {
8567
8849
  name: "Boolean"
8568
8850
  }
8569
- }, pattern: {
8851
+ },
8852
+ pattern: {
8570
8853
  defaultValue: "W+",
8571
8854
  serializedName: "pattern",
8572
8855
  type: {
8573
8856
  name: "String"
8574
8857
  }
8575
- }, flags: {
8858
+ },
8859
+ flags: {
8576
8860
  serializedName: "flags",
8577
8861
  type: {
8578
8862
  name: "String"
8579
8863
  }
8580
- }, stopwords: {
8864
+ },
8865
+ stopwords: {
8581
8866
  serializedName: "stopwords",
8582
8867
  type: {
8583
8868
  name: "Sequence",
@@ -8587,7 +8872,8 @@ const PatternAnalyzer = {
8587
8872
  }
8588
8873
  }
8589
8874
  }
8590
- } })
8875
+ }
8876
+ }
8591
8877
  }
8592
8878
  };
8593
8879
  const LuceneStandardAnalyzer = {
@@ -8597,7 +8883,9 @@ const LuceneStandardAnalyzer = {
8597
8883
  className: "LuceneStandardAnalyzer",
8598
8884
  uberParent: "LexicalAnalyzer",
8599
8885
  polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
8600
- modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { maxTokenLength: {
8886
+ modelProperties: {
8887
+ ...LexicalAnalyzer.type.modelProperties,
8888
+ maxTokenLength: {
8601
8889
  defaultValue: 255,
8602
8890
  constraints: {
8603
8891
  InclusiveMaximum: 300
@@ -8606,7 +8894,8 @@ const LuceneStandardAnalyzer = {
8606
8894
  type: {
8607
8895
  name: "Number"
8608
8896
  }
8609
- }, stopwords: {
8897
+ },
8898
+ stopwords: {
8610
8899
  serializedName: "stopwords",
8611
8900
  type: {
8612
8901
  name: "Sequence",
@@ -8616,8 +8905,9 @@ const LuceneStandardAnalyzer = {
8616
8905
  }
8617
8906
  }
8618
8907
  }
8619
- } })
8620
- }
8908
+ }
8909
+ }
8910
+ }
8621
8911
  };
8622
8912
  const StopAnalyzer = {
8623
8913
  serializedName: "#Microsoft.Azure.Search.StopAnalyzer",
@@ -8626,7 +8916,9 @@ const StopAnalyzer = {
8626
8916
  className: "StopAnalyzer",
8627
8917
  uberParent: "LexicalAnalyzer",
8628
8918
  polymorphicDiscriminator: LexicalAnalyzer.type.polymorphicDiscriminator,
8629
- modelProperties: Object.assign(Object.assign({}, LexicalAnalyzer.type.modelProperties), { stopwords: {
8919
+ modelProperties: {
8920
+ ...LexicalAnalyzer.type.modelProperties,
8921
+ stopwords: {
8630
8922
  serializedName: "stopwords",
8631
8923
  type: {
8632
8924
  name: "Sequence",
@@ -8636,7 +8928,8 @@ const StopAnalyzer = {
8636
8928
  }
8637
8929
  }
8638
8930
  }
8639
- } })
8931
+ }
8932
+ }
8640
8933
  }
8641
8934
  };
8642
8935
  const ClassicTokenizer = {
@@ -8646,7 +8939,9 @@ const ClassicTokenizer = {
8646
8939
  className: "ClassicTokenizer",
8647
8940
  uberParent: "LexicalTokenizer",
8648
8941
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8649
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
8942
+ modelProperties: {
8943
+ ...LexicalTokenizer.type.modelProperties,
8944
+ maxTokenLength: {
8650
8945
  defaultValue: 255,
8651
8946
  constraints: {
8652
8947
  InclusiveMaximum: 300
@@ -8655,7 +8950,8 @@ const ClassicTokenizer = {
8655
8950
  type: {
8656
8951
  name: "Number"
8657
8952
  }
8658
- } })
8953
+ }
8954
+ }
8659
8955
  }
8660
8956
  };
8661
8957
  const EdgeNGramTokenizer = {
@@ -8665,7 +8961,9 @@ const EdgeNGramTokenizer = {
8665
8961
  className: "EdgeNGramTokenizer",
8666
8962
  uberParent: "LexicalTokenizer",
8667
8963
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8668
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { minGram: {
8964
+ modelProperties: {
8965
+ ...LexicalTokenizer.type.modelProperties,
8966
+ minGram: {
8669
8967
  defaultValue: 1,
8670
8968
  constraints: {
8671
8969
  InclusiveMaximum: 300
@@ -8674,7 +8972,8 @@ const EdgeNGramTokenizer = {
8674
8972
  type: {
8675
8973
  name: "Number"
8676
8974
  }
8677
- }, maxGram: {
8975
+ },
8976
+ maxGram: {
8678
8977
  defaultValue: 2,
8679
8978
  constraints: {
8680
8979
  InclusiveMaximum: 300
@@ -8683,7 +8982,8 @@ const EdgeNGramTokenizer = {
8683
8982
  type: {
8684
8983
  name: "Number"
8685
8984
  }
8686
- }, tokenChars: {
8985
+ },
8986
+ tokenChars: {
8687
8987
  serializedName: "tokenChars",
8688
8988
  type: {
8689
8989
  name: "Sequence",
@@ -8700,7 +9000,8 @@ const EdgeNGramTokenizer = {
8700
9000
  }
8701
9001
  }
8702
9002
  }
8703
- } })
9003
+ }
9004
+ }
8704
9005
  }
8705
9006
  };
8706
9007
  const KeywordTokenizer = {
@@ -8710,13 +9011,16 @@ const KeywordTokenizer = {
8710
9011
  className: "KeywordTokenizer",
8711
9012
  uberParent: "LexicalTokenizer",
8712
9013
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8713
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { bufferSize: {
9014
+ modelProperties: {
9015
+ ...LexicalTokenizer.type.modelProperties,
9016
+ bufferSize: {
8714
9017
  defaultValue: 256,
8715
9018
  serializedName: "bufferSize",
8716
9019
  type: {
8717
9020
  name: "Number"
8718
9021
  }
8719
- } })
9022
+ }
9023
+ }
8720
9024
  }
8721
9025
  };
8722
9026
  const KeywordTokenizerV2 = {
@@ -8726,7 +9030,9 @@ const KeywordTokenizerV2 = {
8726
9030
  className: "KeywordTokenizerV2",
8727
9031
  uberParent: "LexicalTokenizer",
8728
9032
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8729
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
9033
+ modelProperties: {
9034
+ ...LexicalTokenizer.type.modelProperties,
9035
+ maxTokenLength: {
8730
9036
  defaultValue: 256,
8731
9037
  constraints: {
8732
9038
  InclusiveMaximum: 300
@@ -8735,7 +9041,8 @@ const KeywordTokenizerV2 = {
8735
9041
  type: {
8736
9042
  name: "Number"
8737
9043
  }
8738
- } })
9044
+ }
9045
+ }
8739
9046
  }
8740
9047
  };
8741
9048
  const MicrosoftLanguageTokenizer = {
@@ -8745,7 +9052,9 @@ const MicrosoftLanguageTokenizer = {
8745
9052
  className: "MicrosoftLanguageTokenizer",
8746
9053
  uberParent: "LexicalTokenizer",
8747
9054
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8748
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
9055
+ modelProperties: {
9056
+ ...LexicalTokenizer.type.modelProperties,
9057
+ maxTokenLength: {
8749
9058
  defaultValue: 255,
8750
9059
  constraints: {
8751
9060
  InclusiveMaximum: 300
@@ -8754,13 +9063,15 @@ const MicrosoftLanguageTokenizer = {
8754
9063
  type: {
8755
9064
  name: "Number"
8756
9065
  }
8757
- }, isSearchTokenizer: {
9066
+ },
9067
+ isSearchTokenizer: {
8758
9068
  defaultValue: false,
8759
9069
  serializedName: "isSearchTokenizer",
8760
9070
  type: {
8761
9071
  name: "Boolean"
8762
9072
  }
8763
- }, language: {
9073
+ },
9074
+ language: {
8764
9075
  serializedName: "language",
8765
9076
  type: {
8766
9077
  name: "Enum",
@@ -8809,7 +9120,8 @@ const MicrosoftLanguageTokenizer = {
8809
9120
  "vietnamese"
8810
9121
  ]
8811
9122
  }
8812
- } })
9123
+ }
9124
+ }
8813
9125
  }
8814
9126
  };
8815
9127
  const MicrosoftLanguageStemmingTokenizer = {
@@ -8819,7 +9131,9 @@ const MicrosoftLanguageStemmingTokenizer = {
8819
9131
  className: "MicrosoftLanguageStemmingTokenizer",
8820
9132
  uberParent: "LexicalTokenizer",
8821
9133
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8822
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
9134
+ modelProperties: {
9135
+ ...LexicalTokenizer.type.modelProperties,
9136
+ maxTokenLength: {
8823
9137
  defaultValue: 255,
8824
9138
  constraints: {
8825
9139
  InclusiveMaximum: 300
@@ -8828,13 +9142,15 @@ const MicrosoftLanguageStemmingTokenizer = {
8828
9142
  type: {
8829
9143
  name: "Number"
8830
9144
  }
8831
- }, isSearchTokenizer: {
9145
+ },
9146
+ isSearchTokenizer: {
8832
9147
  defaultValue: false,
8833
9148
  serializedName: "isSearchTokenizer",
8834
9149
  type: {
8835
9150
  name: "Boolean"
8836
9151
  }
8837
- }, language: {
9152
+ },
9153
+ language: {
8838
9154
  serializedName: "language",
8839
9155
  type: {
8840
9156
  name: "Enum",
@@ -8886,7 +9202,8 @@ const MicrosoftLanguageStemmingTokenizer = {
8886
9202
  "urdu"
8887
9203
  ]
8888
9204
  }
8889
- } })
9205
+ }
9206
+ }
8890
9207
  }
8891
9208
  };
8892
9209
  const NGramTokenizer = {
@@ -8896,7 +9213,9 @@ const NGramTokenizer = {
8896
9213
  className: "NGramTokenizer",
8897
9214
  uberParent: "LexicalTokenizer",
8898
9215
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8899
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { minGram: {
9216
+ modelProperties: {
9217
+ ...LexicalTokenizer.type.modelProperties,
9218
+ minGram: {
8900
9219
  defaultValue: 1,
8901
9220
  constraints: {
8902
9221
  InclusiveMaximum: 300
@@ -8905,7 +9224,8 @@ const NGramTokenizer = {
8905
9224
  type: {
8906
9225
  name: "Number"
8907
9226
  }
8908
- }, maxGram: {
9227
+ },
9228
+ maxGram: {
8909
9229
  defaultValue: 2,
8910
9230
  constraints: {
8911
9231
  InclusiveMaximum: 300
@@ -8914,7 +9234,8 @@ const NGramTokenizer = {
8914
9234
  type: {
8915
9235
  name: "Number"
8916
9236
  }
8917
- }, tokenChars: {
9237
+ },
9238
+ tokenChars: {
8918
9239
  serializedName: "tokenChars",
8919
9240
  type: {
8920
9241
  name: "Sequence",
@@ -8931,7 +9252,8 @@ const NGramTokenizer = {
8931
9252
  }
8932
9253
  }
8933
9254
  }
8934
- } })
9255
+ }
9256
+ }
8935
9257
  }
8936
9258
  };
8937
9259
  const PathHierarchyTokenizerV2 = {
@@ -8941,19 +9263,23 @@ const PathHierarchyTokenizerV2 = {
8941
9263
  className: "PathHierarchyTokenizerV2",
8942
9264
  uberParent: "LexicalTokenizer",
8943
9265
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8944
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { delimiter: {
9266
+ modelProperties: {
9267
+ ...LexicalTokenizer.type.modelProperties,
9268
+ delimiter: {
8945
9269
  defaultValue: "/",
8946
9270
  serializedName: "delimiter",
8947
9271
  type: {
8948
9272
  name: "String"
8949
9273
  }
8950
- }, replacement: {
9274
+ },
9275
+ replacement: {
8951
9276
  defaultValue: "/",
8952
9277
  serializedName: "replacement",
8953
9278
  type: {
8954
9279
  name: "String"
8955
9280
  }
8956
- }, maxTokenLength: {
9281
+ },
9282
+ maxTokenLength: {
8957
9283
  defaultValue: 300,
8958
9284
  constraints: {
8959
9285
  InclusiveMaximum: 300
@@ -8962,19 +9288,22 @@ const PathHierarchyTokenizerV2 = {
8962
9288
  type: {
8963
9289
  name: "Number"
8964
9290
  }
8965
- }, reverseTokenOrder: {
9291
+ },
9292
+ reverseTokenOrder: {
8966
9293
  defaultValue: false,
8967
9294
  serializedName: "reverse",
8968
9295
  type: {
8969
9296
  name: "Boolean"
8970
9297
  }
8971
- }, numberOfTokensToSkip: {
9298
+ },
9299
+ numberOfTokensToSkip: {
8972
9300
  defaultValue: 0,
8973
9301
  serializedName: "skip",
8974
9302
  type: {
8975
9303
  name: "Number"
8976
9304
  }
8977
- } })
9305
+ }
9306
+ }
8978
9307
  }
8979
9308
  };
8980
9309
  const PatternTokenizer = {
@@ -8984,24 +9313,29 @@ const PatternTokenizer = {
8984
9313
  className: "PatternTokenizer",
8985
9314
  uberParent: "LexicalTokenizer",
8986
9315
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
8987
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { pattern: {
9316
+ modelProperties: {
9317
+ ...LexicalTokenizer.type.modelProperties,
9318
+ pattern: {
8988
9319
  defaultValue: "W+",
8989
9320
  serializedName: "pattern",
8990
9321
  type: {
8991
9322
  name: "String"
8992
9323
  }
8993
- }, flags: {
9324
+ },
9325
+ flags: {
8994
9326
  serializedName: "flags",
8995
9327
  type: {
8996
9328
  name: "String"
8997
9329
  }
8998
- }, group: {
9330
+ },
9331
+ group: {
8999
9332
  defaultValue: -1,
9000
9333
  serializedName: "group",
9001
9334
  type: {
9002
9335
  name: "Number"
9003
9336
  }
9004
- } })
9337
+ }
9338
+ }
9005
9339
  }
9006
9340
  };
9007
9341
  const LuceneStandardTokenizer = {
@@ -9011,13 +9345,16 @@ const LuceneStandardTokenizer = {
9011
9345
  className: "LuceneStandardTokenizer",
9012
9346
  uberParent: "LexicalTokenizer",
9013
9347
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
9014
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
9348
+ modelProperties: {
9349
+ ...LexicalTokenizer.type.modelProperties,
9350
+ maxTokenLength: {
9015
9351
  defaultValue: 255,
9016
9352
  serializedName: "maxTokenLength",
9017
9353
  type: {
9018
9354
  name: "Number"
9019
9355
  }
9020
- } })
9356
+ }
9357
+ }
9021
9358
  }
9022
9359
  };
9023
9360
  const LuceneStandardTokenizerV2 = {
@@ -9027,7 +9364,9 @@ const LuceneStandardTokenizerV2 = {
9027
9364
  className: "LuceneStandardTokenizerV2",
9028
9365
  uberParent: "LexicalTokenizer",
9029
9366
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
9030
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
9367
+ modelProperties: {
9368
+ ...LexicalTokenizer.type.modelProperties,
9369
+ maxTokenLength: {
9031
9370
  defaultValue: 255,
9032
9371
  constraints: {
9033
9372
  InclusiveMaximum: 300
@@ -9036,7 +9375,8 @@ const LuceneStandardTokenizerV2 = {
9036
9375
  type: {
9037
9376
  name: "Number"
9038
9377
  }
9039
- } })
9378
+ }
9379
+ }
9040
9380
  }
9041
9381
  };
9042
9382
  const UaxUrlEmailTokenizer = {
@@ -9046,7 +9386,9 @@ const UaxUrlEmailTokenizer = {
9046
9386
  className: "UaxUrlEmailTokenizer",
9047
9387
  uberParent: "LexicalTokenizer",
9048
9388
  polymorphicDiscriminator: LexicalTokenizer.type.polymorphicDiscriminator,
9049
- modelProperties: Object.assign(Object.assign({}, LexicalTokenizer.type.modelProperties), { maxTokenLength: {
9389
+ modelProperties: {
9390
+ ...LexicalTokenizer.type.modelProperties,
9391
+ maxTokenLength: {
9050
9392
  defaultValue: 255,
9051
9393
  constraints: {
9052
9394
  InclusiveMaximum: 300
@@ -9055,7 +9397,8 @@ const UaxUrlEmailTokenizer = {
9055
9397
  type: {
9056
9398
  name: "Number"
9057
9399
  }
9058
- } })
9400
+ }
9401
+ }
9059
9402
  }
9060
9403
  };
9061
9404
  const AsciiFoldingTokenFilter = {
@@ -9065,13 +9408,16 @@ const AsciiFoldingTokenFilter = {
9065
9408
  className: "AsciiFoldingTokenFilter",
9066
9409
  uberParent: "TokenFilter",
9067
9410
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9068
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { preserveOriginal: {
9411
+ modelProperties: {
9412
+ ...TokenFilter.type.modelProperties,
9413
+ preserveOriginal: {
9069
9414
  defaultValue: false,
9070
9415
  serializedName: "preserveOriginal",
9071
9416
  type: {
9072
9417
  name: "Boolean"
9073
9418
  }
9074
- } })
9419
+ }
9420
+ }
9075
9421
  }
9076
9422
  };
9077
9423
  const CjkBigramTokenFilter = {
@@ -9081,7 +9427,9 @@ const CjkBigramTokenFilter = {
9081
9427
  className: "CjkBigramTokenFilter",
9082
9428
  uberParent: "TokenFilter",
9083
9429
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9084
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { ignoreScripts: {
9430
+ modelProperties: {
9431
+ ...TokenFilter.type.modelProperties,
9432
+ ignoreScripts: {
9085
9433
  serializedName: "ignoreScripts",
9086
9434
  type: {
9087
9435
  name: "Sequence",
@@ -9092,13 +9440,15 @@ const CjkBigramTokenFilter = {
9092
9440
  }
9093
9441
  }
9094
9442
  }
9095
- }, outputUnigrams: {
9443
+ },
9444
+ outputUnigrams: {
9096
9445
  defaultValue: false,
9097
9446
  serializedName: "outputUnigrams",
9098
9447
  type: {
9099
9448
  name: "Boolean"
9100
9449
  }
9101
- } })
9450
+ }
9451
+ }
9102
9452
  }
9103
9453
  };
9104
9454
  const CommonGramTokenFilter = {
@@ -9108,7 +9458,9 @@ const CommonGramTokenFilter = {
9108
9458
  className: "CommonGramTokenFilter",
9109
9459
  uberParent: "TokenFilter",
9110
9460
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9111
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { commonWords: {
9461
+ modelProperties: {
9462
+ ...TokenFilter.type.modelProperties,
9463
+ commonWords: {
9112
9464
  serializedName: "commonWords",
9113
9465
  required: true,
9114
9466
  type: {
@@ -9119,19 +9471,22 @@ const CommonGramTokenFilter = {
9119
9471
  }
9120
9472
  }
9121
9473
  }
9122
- }, ignoreCase: {
9474
+ },
9475
+ ignoreCase: {
9123
9476
  defaultValue: false,
9124
9477
  serializedName: "ignoreCase",
9125
9478
  type: {
9126
9479
  name: "Boolean"
9127
9480
  }
9128
- }, useQueryMode: {
9481
+ },
9482
+ useQueryMode: {
9129
9483
  defaultValue: false,
9130
9484
  serializedName: "queryMode",
9131
9485
  type: {
9132
9486
  name: "Boolean"
9133
9487
  }
9134
- } })
9488
+ }
9489
+ }
9135
9490
  }
9136
9491
  };
9137
9492
  const DictionaryDecompounderTokenFilter = {
@@ -9141,7 +9496,9 @@ const DictionaryDecompounderTokenFilter = {
9141
9496
  className: "DictionaryDecompounderTokenFilter",
9142
9497
  uberParent: "TokenFilter",
9143
9498
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9144
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { wordList: {
9499
+ modelProperties: {
9500
+ ...TokenFilter.type.modelProperties,
9501
+ wordList: {
9145
9502
  serializedName: "wordList",
9146
9503
  required: true,
9147
9504
  type: {
@@ -9152,7 +9509,8 @@ const DictionaryDecompounderTokenFilter = {
9152
9509
  }
9153
9510
  }
9154
9511
  }
9155
- }, minWordSize: {
9512
+ },
9513
+ minWordSize: {
9156
9514
  defaultValue: 5,
9157
9515
  constraints: {
9158
9516
  InclusiveMaximum: 300
@@ -9161,7 +9519,8 @@ const DictionaryDecompounderTokenFilter = {
9161
9519
  type: {
9162
9520
  name: "Number"
9163
9521
  }
9164
- }, minSubwordSize: {
9522
+ },
9523
+ minSubwordSize: {
9165
9524
  defaultValue: 2,
9166
9525
  constraints: {
9167
9526
  InclusiveMaximum: 300
@@ -9170,7 +9529,8 @@ const DictionaryDecompounderTokenFilter = {
9170
9529
  type: {
9171
9530
  name: "Number"
9172
9531
  }
9173
- }, maxSubwordSize: {
9532
+ },
9533
+ maxSubwordSize: {
9174
9534
  defaultValue: 15,
9175
9535
  constraints: {
9176
9536
  InclusiveMaximum: 300
@@ -9179,13 +9539,15 @@ const DictionaryDecompounderTokenFilter = {
9179
9539
  type: {
9180
9540
  name: "Number"
9181
9541
  }
9182
- }, onlyLongestMatch: {
9542
+ },
9543
+ onlyLongestMatch: {
9183
9544
  defaultValue: false,
9184
9545
  serializedName: "onlyLongestMatch",
9185
9546
  type: {
9186
9547
  name: "Boolean"
9187
9548
  }
9188
- } })
9549
+ }
9550
+ }
9189
9551
  }
9190
9552
  };
9191
9553
  const EdgeNGramTokenFilter = {
@@ -9195,25 +9557,30 @@ const EdgeNGramTokenFilter = {
9195
9557
  className: "EdgeNGramTokenFilter",
9196
9558
  uberParent: "TokenFilter",
9197
9559
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9198
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
9560
+ modelProperties: {
9561
+ ...TokenFilter.type.modelProperties,
9562
+ minGram: {
9199
9563
  defaultValue: 1,
9200
9564
  serializedName: "minGram",
9201
9565
  type: {
9202
9566
  name: "Number"
9203
9567
  }
9204
- }, maxGram: {
9568
+ },
9569
+ maxGram: {
9205
9570
  defaultValue: 2,
9206
9571
  serializedName: "maxGram",
9207
9572
  type: {
9208
9573
  name: "Number"
9209
9574
  }
9210
- }, side: {
9575
+ },
9576
+ side: {
9211
9577
  serializedName: "side",
9212
9578
  type: {
9213
9579
  name: "Enum",
9214
9580
  allowedValues: ["front", "back"]
9215
9581
  }
9216
- } })
9582
+ }
9583
+ }
9217
9584
  }
9218
9585
  };
9219
9586
  const EdgeNGramTokenFilterV2 = {
@@ -9223,7 +9590,9 @@ const EdgeNGramTokenFilterV2 = {
9223
9590
  className: "EdgeNGramTokenFilterV2",
9224
9591
  uberParent: "TokenFilter",
9225
9592
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9226
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
9593
+ modelProperties: {
9594
+ ...TokenFilter.type.modelProperties,
9595
+ minGram: {
9227
9596
  defaultValue: 1,
9228
9597
  constraints: {
9229
9598
  InclusiveMaximum: 300
@@ -9232,7 +9601,8 @@ const EdgeNGramTokenFilterV2 = {
9232
9601
  type: {
9233
9602
  name: "Number"
9234
9603
  }
9235
- }, maxGram: {
9604
+ },
9605
+ maxGram: {
9236
9606
  defaultValue: 2,
9237
9607
  constraints: {
9238
9608
  InclusiveMaximum: 300
@@ -9241,13 +9611,15 @@ const EdgeNGramTokenFilterV2 = {
9241
9611
  type: {
9242
9612
  name: "Number"
9243
9613
  }
9244
- }, side: {
9614
+ },
9615
+ side: {
9245
9616
  serializedName: "side",
9246
9617
  type: {
9247
9618
  name: "Enum",
9248
9619
  allowedValues: ["front", "back"]
9249
9620
  }
9250
- } })
9621
+ }
9622
+ }
9251
9623
  }
9252
9624
  };
9253
9625
  const ElisionTokenFilter = {
@@ -9257,7 +9629,9 @@ const ElisionTokenFilter = {
9257
9629
  className: "ElisionTokenFilter",
9258
9630
  uberParent: "TokenFilter",
9259
9631
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9260
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { articles: {
9632
+ modelProperties: {
9633
+ ...TokenFilter.type.modelProperties,
9634
+ articles: {
9261
9635
  serializedName: "articles",
9262
9636
  type: {
9263
9637
  name: "Sequence",
@@ -9267,7 +9641,8 @@ const ElisionTokenFilter = {
9267
9641
  }
9268
9642
  }
9269
9643
  }
9270
- } })
9644
+ }
9645
+ }
9271
9646
  }
9272
9647
  };
9273
9648
  const KeepTokenFilter = {
@@ -9277,7 +9652,9 @@ const KeepTokenFilter = {
9277
9652
  className: "KeepTokenFilter",
9278
9653
  uberParent: "TokenFilter",
9279
9654
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9280
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { keepWords: {
9655
+ modelProperties: {
9656
+ ...TokenFilter.type.modelProperties,
9657
+ keepWords: {
9281
9658
  serializedName: "keepWords",
9282
9659
  required: true,
9283
9660
  type: {
@@ -9288,13 +9665,15 @@ const KeepTokenFilter = {
9288
9665
  }
9289
9666
  }
9290
9667
  }
9291
- }, lowerCaseKeepWords: {
9668
+ },
9669
+ lowerCaseKeepWords: {
9292
9670
  defaultValue: false,
9293
9671
  serializedName: "keepWordsCase",
9294
9672
  type: {
9295
9673
  name: "Boolean"
9296
9674
  }
9297
- } })
9675
+ }
9676
+ }
9298
9677
  }
9299
9678
  };
9300
9679
  const KeywordMarkerTokenFilter = {
@@ -9304,7 +9683,9 @@ const KeywordMarkerTokenFilter = {
9304
9683
  className: "KeywordMarkerTokenFilter",
9305
9684
  uberParent: "TokenFilter",
9306
9685
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9307
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { keywords: {
9686
+ modelProperties: {
9687
+ ...TokenFilter.type.modelProperties,
9688
+ keywords: {
9308
9689
  serializedName: "keywords",
9309
9690
  required: true,
9310
9691
  type: {
@@ -9315,13 +9696,15 @@ const KeywordMarkerTokenFilter = {
9315
9696
  }
9316
9697
  }
9317
9698
  }
9318
- }, ignoreCase: {
9699
+ },
9700
+ ignoreCase: {
9319
9701
  defaultValue: false,
9320
9702
  serializedName: "ignoreCase",
9321
9703
  type: {
9322
9704
  name: "Boolean"
9323
9705
  }
9324
- } })
9706
+ }
9707
+ }
9325
9708
  }
9326
9709
  };
9327
9710
  const LengthTokenFilter = {
@@ -9331,7 +9714,9 @@ const LengthTokenFilter = {
9331
9714
  className: "LengthTokenFilter",
9332
9715
  uberParent: "TokenFilter",
9333
9716
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9334
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minLength: {
9717
+ modelProperties: {
9718
+ ...TokenFilter.type.modelProperties,
9719
+ minLength: {
9335
9720
  defaultValue: 0,
9336
9721
  constraints: {
9337
9722
  InclusiveMaximum: 300
@@ -9340,7 +9725,8 @@ const LengthTokenFilter = {
9340
9725
  type: {
9341
9726
  name: "Number"
9342
9727
  }
9343
- }, maxLength: {
9728
+ },
9729
+ maxLength: {
9344
9730
  defaultValue: 300,
9345
9731
  constraints: {
9346
9732
  InclusiveMaximum: 300
@@ -9349,7 +9735,8 @@ const LengthTokenFilter = {
9349
9735
  type: {
9350
9736
  name: "Number"
9351
9737
  }
9352
- } })
9738
+ }
9739
+ }
9353
9740
  }
9354
9741
  };
9355
9742
  const LimitTokenFilter = {
@@ -9359,19 +9746,23 @@ const LimitTokenFilter = {
9359
9746
  className: "LimitTokenFilter",
9360
9747
  uberParent: "TokenFilter",
9361
9748
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9362
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { maxTokenCount: {
9749
+ modelProperties: {
9750
+ ...TokenFilter.type.modelProperties,
9751
+ maxTokenCount: {
9363
9752
  defaultValue: 1,
9364
9753
  serializedName: "maxTokenCount",
9365
9754
  type: {
9366
9755
  name: "Number"
9367
9756
  }
9368
- }, consumeAllTokens: {
9757
+ },
9758
+ consumeAllTokens: {
9369
9759
  defaultValue: false,
9370
9760
  serializedName: "consumeAllTokens",
9371
9761
  type: {
9372
9762
  name: "Boolean"
9373
9763
  }
9374
- } })
9764
+ }
9765
+ }
9375
9766
  }
9376
9767
  };
9377
9768
  const NGramTokenFilter = {
@@ -9381,19 +9772,23 @@ const NGramTokenFilter = {
9381
9772
  className: "NGramTokenFilter",
9382
9773
  uberParent: "TokenFilter",
9383
9774
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9384
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
9775
+ modelProperties: {
9776
+ ...TokenFilter.type.modelProperties,
9777
+ minGram: {
9385
9778
  defaultValue: 1,
9386
9779
  serializedName: "minGram",
9387
9780
  type: {
9388
9781
  name: "Number"
9389
9782
  }
9390
- }, maxGram: {
9783
+ },
9784
+ maxGram: {
9391
9785
  defaultValue: 2,
9392
9786
  serializedName: "maxGram",
9393
9787
  type: {
9394
9788
  name: "Number"
9395
9789
  }
9396
- } })
9790
+ }
9791
+ }
9397
9792
  }
9398
9793
  };
9399
9794
  const NGramTokenFilterV2 = {
@@ -9403,7 +9798,9 @@ const NGramTokenFilterV2 = {
9403
9798
  className: "NGramTokenFilterV2",
9404
9799
  uberParent: "TokenFilter",
9405
9800
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9406
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { minGram: {
9801
+ modelProperties: {
9802
+ ...TokenFilter.type.modelProperties,
9803
+ minGram: {
9407
9804
  defaultValue: 1,
9408
9805
  constraints: {
9409
9806
  InclusiveMaximum: 300
@@ -9412,7 +9809,8 @@ const NGramTokenFilterV2 = {
9412
9809
  type: {
9413
9810
  name: "Number"
9414
9811
  }
9415
- }, maxGram: {
9812
+ },
9813
+ maxGram: {
9416
9814
  defaultValue: 2,
9417
9815
  constraints: {
9418
9816
  InclusiveMaximum: 300
@@ -9421,7 +9819,8 @@ const NGramTokenFilterV2 = {
9421
9819
  type: {
9422
9820
  name: "Number"
9423
9821
  }
9424
- } })
9822
+ }
9823
+ }
9425
9824
  }
9426
9825
  };
9427
9826
  const PatternCaptureTokenFilter = {
@@ -9431,7 +9830,9 @@ const PatternCaptureTokenFilter = {
9431
9830
  className: "PatternCaptureTokenFilter",
9432
9831
  uberParent: "TokenFilter",
9433
9832
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9434
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { patterns: {
9833
+ modelProperties: {
9834
+ ...TokenFilter.type.modelProperties,
9835
+ patterns: {
9435
9836
  serializedName: "patterns",
9436
9837
  required: true,
9437
9838
  type: {
@@ -9442,13 +9843,15 @@ const PatternCaptureTokenFilter = {
9442
9843
  }
9443
9844
  }
9444
9845
  }
9445
- }, preserveOriginal: {
9846
+ },
9847
+ preserveOriginal: {
9446
9848
  defaultValue: true,
9447
9849
  serializedName: "preserveOriginal",
9448
9850
  type: {
9449
9851
  name: "Boolean"
9450
9852
  }
9451
- } })
9853
+ }
9854
+ }
9452
9855
  }
9453
9856
  };
9454
9857
  const PatternReplaceTokenFilter = {
@@ -9458,19 +9861,23 @@ const PatternReplaceTokenFilter = {
9458
9861
  className: "PatternReplaceTokenFilter",
9459
9862
  uberParent: "TokenFilter",
9460
9863
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9461
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { pattern: {
9864
+ modelProperties: {
9865
+ ...TokenFilter.type.modelProperties,
9866
+ pattern: {
9462
9867
  serializedName: "pattern",
9463
9868
  required: true,
9464
9869
  type: {
9465
9870
  name: "String"
9466
9871
  }
9467
- }, replacement: {
9872
+ },
9873
+ replacement: {
9468
9874
  serializedName: "replacement",
9469
9875
  required: true,
9470
9876
  type: {
9471
9877
  name: "String"
9472
9878
  }
9473
- } })
9879
+ }
9880
+ }
9474
9881
  }
9475
9882
  };
9476
9883
  const PhoneticTokenFilter = {
@@ -9480,7 +9887,9 @@ const PhoneticTokenFilter = {
9480
9887
  className: "PhoneticTokenFilter",
9481
9888
  uberParent: "TokenFilter",
9482
9889
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9483
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { encoder: {
9890
+ modelProperties: {
9891
+ ...TokenFilter.type.modelProperties,
9892
+ encoder: {
9484
9893
  serializedName: "encoder",
9485
9894
  type: {
9486
9895
  name: "Enum",
@@ -9498,13 +9907,15 @@ const PhoneticTokenFilter = {
9498
9907
  "beiderMorse"
9499
9908
  ]
9500
9909
  }
9501
- }, replaceOriginalTokens: {
9910
+ },
9911
+ replaceOriginalTokens: {
9502
9912
  defaultValue: true,
9503
9913
  serializedName: "replace",
9504
9914
  type: {
9505
9915
  name: "Boolean"
9506
9916
  }
9507
- } })
9917
+ }
9918
+ }
9508
9919
  }
9509
9920
  };
9510
9921
  const ShingleTokenFilter = {
@@ -9514,7 +9925,9 @@ const ShingleTokenFilter = {
9514
9925
  className: "ShingleTokenFilter",
9515
9926
  uberParent: "TokenFilter",
9516
9927
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9517
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { maxShingleSize: {
9928
+ modelProperties: {
9929
+ ...TokenFilter.type.modelProperties,
9930
+ maxShingleSize: {
9518
9931
  defaultValue: 2,
9519
9932
  constraints: {
9520
9933
  InclusiveMinimum: 2
@@ -9523,7 +9936,8 @@ const ShingleTokenFilter = {
9523
9936
  type: {
9524
9937
  name: "Number"
9525
9938
  }
9526
- }, minShingleSize: {
9939
+ },
9940
+ minShingleSize: {
9527
9941
  defaultValue: 2,
9528
9942
  constraints: {
9529
9943
  InclusiveMinimum: 2
@@ -9532,31 +9946,36 @@ const ShingleTokenFilter = {
9532
9946
  type: {
9533
9947
  name: "Number"
9534
9948
  }
9535
- }, outputUnigrams: {
9949
+ },
9950
+ outputUnigrams: {
9536
9951
  defaultValue: true,
9537
9952
  serializedName: "outputUnigrams",
9538
9953
  type: {
9539
9954
  name: "Boolean"
9540
9955
  }
9541
- }, outputUnigramsIfNoShingles: {
9956
+ },
9957
+ outputUnigramsIfNoShingles: {
9542
9958
  defaultValue: false,
9543
9959
  serializedName: "outputUnigramsIfNoShingles",
9544
9960
  type: {
9545
9961
  name: "Boolean"
9546
9962
  }
9547
- }, tokenSeparator: {
9963
+ },
9964
+ tokenSeparator: {
9548
9965
  defaultValue: " ",
9549
9966
  serializedName: "tokenSeparator",
9550
9967
  type: {
9551
9968
  name: "String"
9552
9969
  }
9553
- }, filterToken: {
9970
+ },
9971
+ filterToken: {
9554
9972
  defaultValue: "_",
9555
9973
  serializedName: "filterToken",
9556
9974
  type: {
9557
9975
  name: "String"
9558
9976
  }
9559
- } })
9977
+ }
9978
+ }
9560
9979
  }
9561
9980
  };
9562
9981
  const SnowballTokenFilter = {
@@ -9566,7 +9985,9 @@ const SnowballTokenFilter = {
9566
9985
  className: "SnowballTokenFilter",
9567
9986
  uberParent: "TokenFilter",
9568
9987
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9569
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { language: {
9988
+ modelProperties: {
9989
+ ...TokenFilter.type.modelProperties,
9990
+ language: {
9570
9991
  serializedName: "language",
9571
9992
  required: true,
9572
9993
  type: {
@@ -9596,7 +10017,8 @@ const SnowballTokenFilter = {
9596
10017
  "turkish"
9597
10018
  ]
9598
10019
  }
9599
- } })
10020
+ }
10021
+ }
9600
10022
  }
9601
10023
  };
9602
10024
  const StemmerTokenFilter = {
@@ -9606,7 +10028,9 @@ const StemmerTokenFilter = {
9606
10028
  className: "StemmerTokenFilter",
9607
10029
  uberParent: "TokenFilter",
9608
10030
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9609
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { language: {
10031
+ modelProperties: {
10032
+ ...TokenFilter.type.modelProperties,
10033
+ language: {
9610
10034
  serializedName: "language",
9611
10035
  required: true,
9612
10036
  type: {
@@ -9668,7 +10092,8 @@ const StemmerTokenFilter = {
9668
10092
  "turkish"
9669
10093
  ]
9670
10094
  }
9671
- } })
10095
+ }
10096
+ }
9672
10097
  }
9673
10098
  };
9674
10099
  const StemmerOverrideTokenFilter = {
@@ -9678,7 +10103,9 @@ const StemmerOverrideTokenFilter = {
9678
10103
  className: "StemmerOverrideTokenFilter",
9679
10104
  uberParent: "TokenFilter",
9680
10105
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9681
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { rules: {
10106
+ modelProperties: {
10107
+ ...TokenFilter.type.modelProperties,
10108
+ rules: {
9682
10109
  serializedName: "rules",
9683
10110
  required: true,
9684
10111
  type: {
@@ -9689,7 +10116,8 @@ const StemmerOverrideTokenFilter = {
9689
10116
  }
9690
10117
  }
9691
10118
  }
9692
- } })
10119
+ }
10120
+ }
9693
10121
  }
9694
10122
  };
9695
10123
  const StopwordsTokenFilter = {
@@ -9699,7 +10127,9 @@ const StopwordsTokenFilter = {
9699
10127
  className: "StopwordsTokenFilter",
9700
10128
  uberParent: "TokenFilter",
9701
10129
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9702
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { stopwords: {
10130
+ modelProperties: {
10131
+ ...TokenFilter.type.modelProperties,
10132
+ stopwords: {
9703
10133
  serializedName: "stopwords",
9704
10134
  type: {
9705
10135
  name: "Sequence",
@@ -9709,7 +10139,8 @@ const StopwordsTokenFilter = {
9709
10139
  }
9710
10140
  }
9711
10141
  }
9712
- }, stopwordsList: {
10142
+ },
10143
+ stopwordsList: {
9713
10144
  serializedName: "stopwordsList",
9714
10145
  type: {
9715
10146
  name: "Enum",
@@ -9747,19 +10178,22 @@ const StopwordsTokenFilter = {
9747
10178
  "turkish"
9748
10179
  ]
9749
10180
  }
9750
- }, ignoreCase: {
10181
+ },
10182
+ ignoreCase: {
9751
10183
  defaultValue: false,
9752
10184
  serializedName: "ignoreCase",
9753
10185
  type: {
9754
10186
  name: "Boolean"
9755
10187
  }
9756
- }, removeTrailingStopWords: {
10188
+ },
10189
+ removeTrailingStopWords: {
9757
10190
  defaultValue: true,
9758
10191
  serializedName: "removeTrailing",
9759
10192
  type: {
9760
10193
  name: "Boolean"
9761
10194
  }
9762
- } })
10195
+ }
10196
+ }
9763
10197
  }
9764
10198
  };
9765
10199
  const SynonymTokenFilter = {
@@ -9769,7 +10203,9 @@ const SynonymTokenFilter = {
9769
10203
  className: "SynonymTokenFilter",
9770
10204
  uberParent: "TokenFilter",
9771
10205
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9772
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { synonyms: {
10206
+ modelProperties: {
10207
+ ...TokenFilter.type.modelProperties,
10208
+ synonyms: {
9773
10209
  serializedName: "synonyms",
9774
10210
  required: true,
9775
10211
  type: {
@@ -9780,19 +10216,22 @@ const SynonymTokenFilter = {
9780
10216
  }
9781
10217
  }
9782
10218
  }
9783
- }, ignoreCase: {
10219
+ },
10220
+ ignoreCase: {
9784
10221
  defaultValue: false,
9785
10222
  serializedName: "ignoreCase",
9786
10223
  type: {
9787
10224
  name: "Boolean"
9788
10225
  }
9789
- }, expand: {
10226
+ },
10227
+ expand: {
9790
10228
  defaultValue: true,
9791
10229
  serializedName: "expand",
9792
10230
  type: {
9793
10231
  name: "Boolean"
9794
10232
  }
9795
- } })
10233
+ }
10234
+ }
9796
10235
  }
9797
10236
  };
9798
10237
  const TruncateTokenFilter = {
@@ -9802,7 +10241,9 @@ const TruncateTokenFilter = {
9802
10241
  className: "TruncateTokenFilter",
9803
10242
  uberParent: "TokenFilter",
9804
10243
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9805
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { length: {
10244
+ modelProperties: {
10245
+ ...TokenFilter.type.modelProperties,
10246
+ length: {
9806
10247
  defaultValue: 300,
9807
10248
  constraints: {
9808
10249
  InclusiveMaximum: 300
@@ -9811,7 +10252,8 @@ const TruncateTokenFilter = {
9811
10252
  type: {
9812
10253
  name: "Number"
9813
10254
  }
9814
- } })
10255
+ }
10256
+ }
9815
10257
  }
9816
10258
  };
9817
10259
  const UniqueTokenFilter = {
@@ -9821,13 +10263,16 @@ const UniqueTokenFilter = {
9821
10263
  className: "UniqueTokenFilter",
9822
10264
  uberParent: "TokenFilter",
9823
10265
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9824
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { onlyOnSamePosition: {
10266
+ modelProperties: {
10267
+ ...TokenFilter.type.modelProperties,
10268
+ onlyOnSamePosition: {
9825
10269
  defaultValue: false,
9826
10270
  serializedName: "onlyOnSamePosition",
9827
10271
  type: {
9828
10272
  name: "Boolean"
9829
10273
  }
9830
- } })
10274
+ }
10275
+ }
9831
10276
  }
9832
10277
  };
9833
10278
  const WordDelimiterTokenFilter = {
@@ -9837,61 +10282,72 @@ const WordDelimiterTokenFilter = {
9837
10282
  className: "WordDelimiterTokenFilter",
9838
10283
  uberParent: "TokenFilter",
9839
10284
  polymorphicDiscriminator: TokenFilter.type.polymorphicDiscriminator,
9840
- modelProperties: Object.assign(Object.assign({}, TokenFilter.type.modelProperties), { generateWordParts: {
10285
+ modelProperties: {
10286
+ ...TokenFilter.type.modelProperties,
10287
+ generateWordParts: {
9841
10288
  defaultValue: true,
9842
10289
  serializedName: "generateWordParts",
9843
10290
  type: {
9844
10291
  name: "Boolean"
9845
10292
  }
9846
- }, generateNumberParts: {
10293
+ },
10294
+ generateNumberParts: {
9847
10295
  defaultValue: true,
9848
10296
  serializedName: "generateNumberParts",
9849
10297
  type: {
9850
10298
  name: "Boolean"
9851
10299
  }
9852
- }, catenateWords: {
10300
+ },
10301
+ catenateWords: {
9853
10302
  defaultValue: false,
9854
10303
  serializedName: "catenateWords",
9855
10304
  type: {
9856
10305
  name: "Boolean"
9857
10306
  }
9858
- }, catenateNumbers: {
10307
+ },
10308
+ catenateNumbers: {
9859
10309
  defaultValue: false,
9860
10310
  serializedName: "catenateNumbers",
9861
10311
  type: {
9862
10312
  name: "Boolean"
9863
10313
  }
9864
- }, catenateAll: {
10314
+ },
10315
+ catenateAll: {
9865
10316
  defaultValue: false,
9866
10317
  serializedName: "catenateAll",
9867
10318
  type: {
9868
10319
  name: "Boolean"
9869
10320
  }
9870
- }, splitOnCaseChange: {
10321
+ },
10322
+ splitOnCaseChange: {
9871
10323
  defaultValue: true,
9872
10324
  serializedName: "splitOnCaseChange",
9873
10325
  type: {
9874
10326
  name: "Boolean"
9875
10327
  }
9876
- }, preserveOriginal: {
10328
+ },
10329
+ preserveOriginal: {
9877
10330
  defaultValue: false,
9878
10331
  serializedName: "preserveOriginal",
9879
10332
  type: {
9880
10333
  name: "Boolean"
9881
10334
  }
9882
- }, splitOnNumerics: {
10335
+ },
10336
+ splitOnNumerics: {
9883
10337
  defaultValue: true,
9884
10338
  serializedName: "splitOnNumerics",
9885
10339
  type: {
9886
10340
  name: "Boolean"
9887
10341
  }
9888
- }, stemEnglishPossessive: {
10342
+ },
10343
+ stemEnglishPossessive: {
9889
10344
  defaultValue: true,
9890
10345
  serializedName: "stemEnglishPossessive",
9891
10346
  type: {
9892
10347
  name: "Boolean"
9893
10348
  }
9894
- }, protectedWords: {
10349
+ },
10350
+ protectedWords: {
9895
10351
  serializedName: "protectedWords",
9896
10352
  type: {
9897
10353
  name: "Sequence",
@@ -9901,7 +10357,8 @@ const WordDelimiterTokenFilter = {
9901
10357
  }
9902
10358
  }
9903
10359
  }
9904
- } })
10360
+ }
10361
+ }
9905
10362
  }
9906
10363
  };
9907
10364
  const MappingCharFilter = {
@@ -9911,7 +10368,9 @@ const MappingCharFilter = {
9911
10368
  className: "MappingCharFilter",
9912
10369
  uberParent: "CharFilter",
9913
10370
  polymorphicDiscriminator: CharFilter.type.polymorphicDiscriminator,
9914
- modelProperties: Object.assign(Object.assign({}, CharFilter.type.modelProperties), { mappings: {
10371
+ modelProperties: {
10372
+ ...CharFilter.type.modelProperties,
10373
+ mappings: {
9915
10374
  serializedName: "mappings",
9916
10375
  required: true,
9917
10376
  type: {
@@ -9922,7 +10381,8 @@ const MappingCharFilter = {
9922
10381
  }
9923
10382
  }
9924
10383
  }
9925
- } })
10384
+ }
10385
+ }
9926
10386
  }
9927
10387
  };
9928
10388
  const PatternReplaceCharFilter = {
@@ -9932,19 +10392,23 @@ const PatternReplaceCharFilter = {
9932
10392
  className: "PatternReplaceCharFilter",
9933
10393
  uberParent: "CharFilter",
9934
10394
  polymorphicDiscriminator: CharFilter.type.polymorphicDiscriminator,
9935
- modelProperties: Object.assign(Object.assign({}, CharFilter.type.modelProperties), { pattern: {
10395
+ modelProperties: {
10396
+ ...CharFilter.type.modelProperties,
10397
+ pattern: {
9936
10398
  serializedName: "pattern",
9937
10399
  required: true,
9938
10400
  type: {
9939
10401
  name: "String"
9940
10402
  }
9941
- }, replacement: {
10403
+ },
10404
+ replacement: {
9942
10405
  serializedName: "replacement",
9943
10406
  required: true,
9944
10407
  type: {
9945
10408
  name: "String"
9946
10409
  }
9947
- } })
10410
+ }
10411
+ }
9948
10412
  }
9949
10413
  };
9950
10414
  const CustomNormalizer = {
@@ -9954,7 +10418,9 @@ const CustomNormalizer = {
9954
10418
  className: "CustomNormalizer",
9955
10419
  uberParent: "LexicalNormalizer",
9956
10420
  polymorphicDiscriminator: LexicalNormalizer.type.polymorphicDiscriminator,
9957
- modelProperties: Object.assign(Object.assign({}, LexicalNormalizer.type.modelProperties), { tokenFilters: {
10421
+ modelProperties: {
10422
+ ...LexicalNormalizer.type.modelProperties,
10423
+ tokenFilters: {
9958
10424
  serializedName: "tokenFilters",
9959
10425
  type: {
9960
10426
  name: "Sequence",
@@ -9964,7 +10430,8 @@ const CustomNormalizer = {
9964
10430
  }
9965
10431
  }
9966
10432
  }
9967
- }, charFilters: {
10433
+ },
10434
+ charFilters: {
9968
10435
  serializedName: "charFilters",
9969
10436
  type: {
9970
10437
  name: "Sequence",
@@ -9974,7 +10441,8 @@ const CustomNormalizer = {
9974
10441
  }
9975
10442
  }
9976
10443
  }
9977
- } })
10444
+ }
10445
+ }
9978
10446
  }
9979
10447
  };
9980
10448
  const ClassicSimilarity = {
@@ -9984,7 +10452,9 @@ const ClassicSimilarity = {
9984
10452
  className: "ClassicSimilarity",
9985
10453
  uberParent: "Similarity",
9986
10454
  polymorphicDiscriminator: Similarity.type.polymorphicDiscriminator,
9987
- modelProperties: Object.assign({}, Similarity.type.modelProperties)
10455
+ modelProperties: {
10456
+ ...Similarity.type.modelProperties
10457
+ }
9988
10458
  }
9989
10459
  };
9990
10460
  const BM25Similarity = {
@@ -9994,19 +10464,23 @@ const BM25Similarity = {
9994
10464
  className: "BM25Similarity",
9995
10465
  uberParent: "Similarity",
9996
10466
  polymorphicDiscriminator: Similarity.type.polymorphicDiscriminator,
9997
- modelProperties: Object.assign(Object.assign({}, Similarity.type.modelProperties), { k1: {
10467
+ modelProperties: {
10468
+ ...Similarity.type.modelProperties,
10469
+ k1: {
9998
10470
  serializedName: "k1",
9999
10471
  nullable: true,
10000
10472
  type: {
10001
10473
  name: "Number"
10002
10474
  }
10003
- }, b: {
10475
+ },
10476
+ b: {
10004
10477
  serializedName: "b",
10005
10478
  nullable: true,
10006
10479
  type: {
10007
10480
  name: "Number"
10008
10481
  }
10009
- } })
10482
+ }
10483
+ }
10010
10484
  }
10011
10485
  };
10012
10486
  const HnswVectorSearchAlgorithmConfiguration = {
@@ -10016,13 +10490,16 @@ const HnswVectorSearchAlgorithmConfiguration = {
10016
10490
  className: "HnswVectorSearchAlgorithmConfiguration",
10017
10491
  uberParent: "VectorSearchAlgorithmConfiguration",
10018
10492
  polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
10019
- modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
10493
+ modelProperties: {
10494
+ ...VectorSearchAlgorithmConfiguration.type.modelProperties,
10495
+ parameters: {
10020
10496
  serializedName: "hnswParameters",
10021
10497
  type: {
10022
10498
  name: "Composite",
10023
10499
  className: "HnswParameters"
10024
10500
  }
10025
- } })
10501
+ }
10502
+ }
10026
10503
  }
10027
10504
  };
10028
10505
  const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
@@ -10032,13 +10509,16 @@ const ExhaustiveKnnVectorSearchAlgorithmConfiguration = {
10032
10509
  className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration",
10033
10510
  uberParent: "VectorSearchAlgorithmConfiguration",
10034
10511
  polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator,
10035
- modelProperties: Object.assign(Object.assign({}, VectorSearchAlgorithmConfiguration.type.modelProperties), { parameters: {
10512
+ modelProperties: {
10513
+ ...VectorSearchAlgorithmConfiguration.type.modelProperties,
10514
+ parameters: {
10036
10515
  serializedName: "exhaustiveKnnParameters",
10037
10516
  type: {
10038
10517
  name: "Composite",
10039
10518
  className: "ExhaustiveKnnParameters"
10040
10519
  }
10041
- } })
10520
+ }
10521
+ }
10042
10522
  }
10043
10523
  };
10044
10524
  const AzureOpenAIVectorizer = {
@@ -10048,13 +10528,16 @@ const AzureOpenAIVectorizer = {
10048
10528
  className: "AzureOpenAIVectorizer",
10049
10529
  uberParent: "VectorSearchVectorizer",
10050
10530
  polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
10051
- modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { azureOpenAIParameters: {
10531
+ modelProperties: {
10532
+ ...VectorSearchVectorizer.type.modelProperties,
10533
+ azureOpenAIParameters: {
10052
10534
  serializedName: "azureOpenAIParameters",
10053
10535
  type: {
10054
10536
  name: "Composite",
10055
10537
  className: "AzureOpenAIParameters"
10056
10538
  }
10057
- } })
10539
+ }
10540
+ }
10058
10541
  }
10059
10542
  };
10060
10543
  const CustomVectorizer = {
@@ -10064,27 +10547,34 @@ const CustomVectorizer = {
10064
10547
  className: "CustomVectorizer",
10065
10548
  uberParent: "VectorSearchVectorizer",
10066
10549
  polymorphicDiscriminator: VectorSearchVectorizer.type.polymorphicDiscriminator,
10067
- modelProperties: Object.assign(Object.assign({}, VectorSearchVectorizer.type.modelProperties), { customVectorizerParameters: {
10550
+ modelProperties: {
10551
+ ...VectorSearchVectorizer.type.modelProperties,
10552
+ customVectorizerParameters: {
10068
10553
  serializedName: "customVectorizerParameters",
10069
10554
  type: {
10070
10555
  name: "Composite",
10071
10556
  className: "CustomVectorizerParameters"
10072
10557
  }
10073
- } })
10558
+ }
10559
+ }
10074
10560
  }
10075
10561
  };
10076
10562
  const SearchIndexerKnowledgeStoreObjectProjectionSelector = {
10077
10563
  type: {
10078
10564
  name: "Composite",
10079
10565
  className: "SearchIndexerKnowledgeStoreObjectProjectionSelector",
10080
- modelProperties: Object.assign({}, SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties)
10566
+ modelProperties: {
10567
+ ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties
10568
+ }
10081
10569
  }
10082
10570
  };
10083
10571
  const SearchIndexerKnowledgeStoreFileProjectionSelector = {
10084
10572
  type: {
10085
10573
  name: "Composite",
10086
10574
  className: "SearchIndexerKnowledgeStoreFileProjectionSelector",
10087
- modelProperties: Object.assign({}, SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties)
10575
+ modelProperties: {
10576
+ ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties
10577
+ }
10088
10578
  }
10089
10579
  };
10090
10580
  let discriminators = {
@@ -11716,7 +12206,6 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11716
12206
  * @param options The parameter options
11717
12207
  */
11718
12208
  constructor(endpoint, apiVersion, options) {
11719
- var _a, _b;
11720
12209
  if (endpoint === undefined) {
11721
12210
  throw new Error("'endpoint' cannot be null");
11722
12211
  }
@@ -11734,9 +12223,14 @@ class SearchServiceClient extends coreHttpCompat__namespace.ExtendedServiceClien
11734
12223
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
11735
12224
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
11736
12225
  : `${packageDetails}`;
11737
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
12226
+ const optionsWithDefaults = {
12227
+ ...defaults,
12228
+ ...options,
12229
+ userAgentOptions: {
11738
12230
  userAgentPrefix
11739
- }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
12231
+ },
12232
+ baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}"
12233
+ };
11740
12234
  super(optionsWithDefaults);
11741
12235
  // Parameter assignments
11742
12236
  this.endpoint = endpoint;
@@ -11777,6 +12271,7 @@ const getServiceStatisticsOperationSpec = {
11777
12271
 
11778
12272
  // Copyright (c) Microsoft Corporation.
11779
12273
  // Licensed under the MIT license.
12274
+ /// <reference lib="esnext.asynciterable" />
11780
12275
  /**
11781
12276
  * Class to perform operations to manage
11782
12277
  * (create, update, list/delete)
@@ -11800,7 +12295,6 @@ class SearchIndexClient {
11800
12295
  * @param options - Used to configure the Search Index client.
11801
12296
  */
11802
12297
  constructor(endpoint, credential, options = {}) {
11803
- var _a, _b;
11804
12298
  /**
11805
12299
  * The API version to use when communicating with the service.
11806
12300
  */
@@ -11813,21 +12307,24 @@ class SearchIndexClient {
11813
12307
  this.endpoint = endpoint;
11814
12308
  this.credential = credential;
11815
12309
  this.options = options;
11816
- const internalClientPipelineOptions = Object.assign(Object.assign({}, this.options), {
11817
- loggingOptions: {
11818
- logger: logger.info,
11819
- additionalAllowedHeaderNames: [
11820
- "elapsed-time",
11821
- "Location",
11822
- "OData-MaxVersion",
11823
- "OData-Version",
11824
- "Prefer",
11825
- "throttle-reason",
11826
- ],
12310
+ const internalClientPipelineOptions = {
12311
+ ...this.options,
12312
+ ...{
12313
+ loggingOptions: {
12314
+ logger: logger.info,
12315
+ additionalAllowedHeaderNames: [
12316
+ "elapsed-time",
12317
+ "Location",
12318
+ "OData-MaxVersion",
12319
+ "OData-Version",
12320
+ "Prefer",
12321
+ "throttle-reason",
12322
+ ],
12323
+ },
11827
12324
  },
11828
- });
12325
+ };
11829
12326
  this.serviceVersion =
11830
- (_b = (_a = this.options.serviceVersion) !== null && _a !== void 0 ? _a : this.options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
12327
+ this.options.serviceVersion ?? this.options.apiVersion ?? defaultServiceVersion;
11831
12328
  this.apiVersion = this.serviceVersion;
11832
12329
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
11833
12330
  if (coreAuth.isTokenCredential(credential)) {
@@ -11841,45 +12338,28 @@ class SearchIndexClient {
11841
12338
  }
11842
12339
  this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
11843
12340
  }
11844
- listIndexesPage(options = {}) {
11845
- return tslib.__asyncGenerator(this, arguments, function* listIndexesPage_1() {
11846
- const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
11847
- try {
11848
- const result = yield tslib.__await(this.client.indexes.list(updatedOptions));
11849
- const mapped = result.indexes.map(generatedIndexToPublicIndex);
11850
- yield yield tslib.__await(mapped);
11851
- }
11852
- catch (e) {
11853
- span.setStatus({
11854
- status: "error",
11855
- error: e.message,
11856
- });
11857
- throw e;
11858
- }
11859
- finally {
11860
- span.end();
11861
- }
11862
- });
12341
+ async *listIndexesPage(options = {}) {
12342
+ const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesPage", options);
12343
+ try {
12344
+ const result = await this.client.indexes.list(updatedOptions);
12345
+ const mapped = result.indexes.map(generatedIndexToPublicIndex);
12346
+ yield mapped;
12347
+ }
12348
+ catch (e) {
12349
+ span.setStatus({
12350
+ status: "error",
12351
+ error: e.message,
12352
+ });
12353
+ throw e;
12354
+ }
12355
+ finally {
12356
+ span.end();
12357
+ }
11863
12358
  }
11864
- listIndexesAll(options = {}) {
11865
- return tslib.__asyncGenerator(this, arguments, function* listIndexesAll_1() {
11866
- var _a, e_1, _b, _c;
11867
- try {
11868
- for (var _d = true, _e = tslib.__asyncValues(this.listIndexesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
11869
- _c = _f.value;
11870
- _d = false;
11871
- const page = _c;
11872
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
11873
- }
11874
- }
11875
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
11876
- finally {
11877
- try {
11878
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
11879
- }
11880
- finally { if (e_1) throw e_1.error; }
11881
- }
11882
- });
12359
+ async *listIndexesAll(options = {}) {
12360
+ for await (const page of this.listIndexesPage(options)) {
12361
+ yield* page;
12362
+ }
11883
12363
  }
11884
12364
  /**
11885
12365
  * Retrieves a list of existing indexes in the service.
@@ -11899,44 +12379,27 @@ class SearchIndexClient {
11899
12379
  },
11900
12380
  };
11901
12381
  }
11902
- listAliasesPage(options = {}) {
11903
- return tslib.__asyncGenerator(this, arguments, function* listAliasesPage_1() {
11904
- const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options);
11905
- try {
11906
- const result = yield tslib.__await(this.client.aliases.list(updatedOptions));
11907
- yield yield tslib.__await(result.aliases);
11908
- }
11909
- catch (e) {
11910
- span.setStatus({
11911
- status: "error",
11912
- error: e.message,
11913
- });
11914
- throw e;
11915
- }
11916
- finally {
11917
- span.end();
11918
- }
11919
- });
12382
+ async *listAliasesPage(options = {}) {
12383
+ const { span, updatedOptions } = createSpan("SearchIndexerClient-listAliases", options);
12384
+ try {
12385
+ const result = await this.client.aliases.list(updatedOptions);
12386
+ yield result.aliases;
12387
+ }
12388
+ catch (e) {
12389
+ span.setStatus({
12390
+ status: "error",
12391
+ error: e.message,
12392
+ });
12393
+ throw e;
12394
+ }
12395
+ finally {
12396
+ span.end();
12397
+ }
11920
12398
  }
11921
- listAliasesAll(options = {}) {
11922
- return tslib.__asyncGenerator(this, arguments, function* listAliasesAll_1() {
11923
- var _a, e_2, _b, _c;
11924
- try {
11925
- for (var _d = true, _e = tslib.__asyncValues(this.listAliasesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
11926
- _c = _f.value;
11927
- _d = false;
11928
- const page = _c;
11929
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
11930
- }
11931
- }
11932
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
11933
- finally {
11934
- try {
11935
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
11936
- }
11937
- finally { if (e_2) throw e_2.error; }
11938
- }
11939
- });
12399
+ async *listAliasesAll(options = {}) {
12400
+ for await (const page of this.listAliasesPage(options)) {
12401
+ yield* page;
12402
+ }
11940
12403
  }
11941
12404
  /**
11942
12405
  * Lists all aliases available for a search service.
@@ -11956,45 +12419,31 @@ class SearchIndexClient {
11956
12419
  },
11957
12420
  };
11958
12421
  }
11959
- listIndexesNamesPage(options = {}) {
11960
- return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesPage_1() {
11961
- const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
11962
- try {
11963
- const result = yield tslib.__await(this.client.indexes.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" })));
11964
- const mapped = result.indexes.map((idx) => idx.name);
11965
- yield yield tslib.__await(mapped);
11966
- }
11967
- catch (e) {
11968
- span.setStatus({
11969
- status: "error",
11970
- error: e.message,
11971
- });
11972
- throw e;
11973
- }
11974
- finally {
11975
- span.end();
11976
- }
11977
- });
12422
+ async *listIndexesNamesPage(options = {}) {
12423
+ const { span, updatedOptions } = createSpan("SearchIndexClient-listIndexesNamesPage", options);
12424
+ try {
12425
+ const result = await this.client.indexes.list({
12426
+ ...updatedOptions,
12427
+ select: "name",
12428
+ });
12429
+ const mapped = result.indexes.map((idx) => idx.name);
12430
+ yield mapped;
12431
+ }
12432
+ catch (e) {
12433
+ span.setStatus({
12434
+ status: "error",
12435
+ error: e.message,
12436
+ });
12437
+ throw e;
12438
+ }
12439
+ finally {
12440
+ span.end();
12441
+ }
11978
12442
  }
11979
- listIndexesNamesAll(options = {}) {
11980
- return tslib.__asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
11981
- var _a, e_3, _b, _c;
11982
- try {
11983
- for (var _d = true, _e = tslib.__asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
11984
- _c = _f.value;
11985
- _d = false;
11986
- const page = _c;
11987
- yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
11988
- }
11989
- }
11990
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
11991
- finally {
11992
- try {
11993
- if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
11994
- }
11995
- finally { if (e_3) throw e_3.error; }
11996
- }
11997
- });
12443
+ async *listIndexesNamesAll(options = {}) {
12444
+ for await (const page of this.listIndexesNamesPage(options)) {
12445
+ yield* page;
12446
+ }
11998
12447
  }
11999
12448
  /**
12000
12449
  * Retrieves a list of names of existing indexes in the service.
@@ -12042,7 +12491,10 @@ class SearchIndexClient {
12042
12491
  async listSynonymMapsNames(options = {}) {
12043
12492
  const { span, updatedOptions } = createSpan("SearchIndexClient-listSynonymMapsNames", options);
12044
12493
  try {
12045
- const result = await this.client.synonymMaps.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
12494
+ const result = await this.client.synonymMaps.list({
12495
+ ...updatedOptions,
12496
+ select: "name",
12497
+ });
12046
12498
  return result.synonymMaps.map((sm) => sm.name);
12047
12499
  }
12048
12500
  catch (e) {
@@ -12153,7 +12605,10 @@ class SearchIndexClient {
12153
12605
  const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateIndex", options);
12154
12606
  try {
12155
12607
  const etag = options.onlyIfUnchanged ? index.etag : undefined;
12156
- const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12608
+ const result = await this.client.indexes.createOrUpdate(index.name, publicIndexToGeneratedIndex(index), {
12609
+ ...updatedOptions,
12610
+ ifMatch: etag,
12611
+ });
12157
12612
  return generatedIndexToPublicIndex(result);
12158
12613
  }
12159
12614
  catch (e) {
@@ -12176,7 +12631,10 @@ class SearchIndexClient {
12176
12631
  const { span, updatedOptions } = createSpan("SearchIndexClient-createOrUpdateSynonymMap", options);
12177
12632
  try {
12178
12633
  const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;
12179
- const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12634
+ const result = await this.client.synonymMaps.createOrUpdate(synonymMap.name, publicSynonymMapToGeneratedSynonymMap(synonymMap), {
12635
+ ...updatedOptions,
12636
+ ifMatch: etag,
12637
+ });
12180
12638
  return generatedSynonymMapToPublicSynonymMap(result);
12181
12639
  }
12182
12640
  catch (e) {
@@ -12200,7 +12658,10 @@ class SearchIndexClient {
12200
12658
  try {
12201
12659
  const indexName = typeof index === "string" ? index : index.name;
12202
12660
  const etag = typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;
12203
- await this.client.indexes.delete(indexName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12661
+ await this.client.indexes.delete(indexName, {
12662
+ ...updatedOptions,
12663
+ ifMatch: etag,
12664
+ });
12204
12665
  }
12205
12666
  catch (e) {
12206
12667
  span.setStatus({
@@ -12227,7 +12688,10 @@ class SearchIndexClient {
12227
12688
  : options.onlyIfUnchanged
12228
12689
  ? synonymMap.etag
12229
12690
  : undefined;
12230
- await this.client.synonymMaps.delete(synonymMapName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12691
+ await this.client.synonymMaps.delete(synonymMapName, {
12692
+ ...updatedOptions,
12693
+ ifMatch: etag,
12694
+ });
12231
12695
  }
12232
12696
  catch (e) {
12233
12697
  span.setStatus({
@@ -12249,7 +12713,10 @@ class SearchIndexClient {
12249
12713
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateAlias", options);
12250
12714
  try {
12251
12715
  const etag = options.onlyIfUnchanged ? alias.etag : undefined;
12252
- const result = await this.client.aliases.createOrUpdate(alias.name, alias, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12716
+ const result = await this.client.aliases.createOrUpdate(alias.name, alias, {
12717
+ ...updatedOptions,
12718
+ ifMatch: etag,
12719
+ });
12253
12720
  return result;
12254
12721
  }
12255
12722
  catch (e) {
@@ -12296,7 +12763,10 @@ class SearchIndexClient {
12296
12763
  try {
12297
12764
  const aliasName = typeof alias === "string" ? alias : alias.name;
12298
12765
  const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
12299
- await this.client.aliases.delete(aliasName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
12766
+ await this.client.aliases.delete(aliasName, {
12767
+ ...updatedOptions,
12768
+ ifMatch: etag,
12769
+ });
12300
12770
  }
12301
12771
  catch (e) {
12302
12772
  span.setStatus({
@@ -12361,7 +12831,7 @@ class SearchIndexClient {
12361
12831
  * @param options - Additional arguments
12362
12832
  */
12363
12833
  async analyzeText(indexName, options) {
12364
- const { abortSignal, requestOptions, tracingOptions } = options, restOptions = tslib.__rest(options, ["abortSignal", "requestOptions", "tracingOptions"]);
12834
+ const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options;
12365
12835
  const operationOptions = {
12366
12836
  abortSignal,
12367
12837
  requestOptions,
@@ -12369,7 +12839,12 @@ class SearchIndexClient {
12369
12839
  };
12370
12840
  const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions);
12371
12841
  try {
12372
- const result = await this.client.indexes.analyze(indexName, Object.assign(Object.assign({}, restOptions), { analyzer: restOptions.analyzerName, tokenizer: restOptions.tokenizerName, normalizer: restOptions.normalizerName }), updatedOptions);
12842
+ const result = await this.client.indexes.analyze(indexName, {
12843
+ ...restOptions,
12844
+ analyzer: restOptions.analyzerName,
12845
+ tokenizer: restOptions.tokenizerName,
12846
+ normalizer: restOptions.normalizerName,
12847
+ }, updatedOptions);
12373
12848
  return result;
12374
12849
  }
12375
12850
  catch (e) {
@@ -12443,7 +12918,6 @@ class SearchIndexerClient {
12443
12918
  * @param options - Used to configure the Search client.
12444
12919
  */
12445
12920
  constructor(endpoint, credential, options = {}) {
12446
- var _a, _b;
12447
12921
  /**
12448
12922
  * The API version to use when communicating with the service.
12449
12923
  */
@@ -12454,21 +12928,24 @@ class SearchIndexerClient {
12454
12928
  */
12455
12929
  this.apiVersion = defaultServiceVersion;
12456
12930
  this.endpoint = endpoint;
12457
- const internalClientPipelineOptions = Object.assign(Object.assign({}, options), {
12458
- loggingOptions: {
12459
- logger: logger.info,
12460
- additionalAllowedHeaderNames: [
12461
- "elapsed-time",
12462
- "Location",
12463
- "OData-MaxVersion",
12464
- "OData-Version",
12465
- "Prefer",
12466
- "throttle-reason",
12467
- ],
12931
+ const internalClientPipelineOptions = {
12932
+ ...options,
12933
+ ...{
12934
+ loggingOptions: {
12935
+ logger: logger.info,
12936
+ additionalAllowedHeaderNames: [
12937
+ "elapsed-time",
12938
+ "Location",
12939
+ "OData-MaxVersion",
12940
+ "OData-Version",
12941
+ "Prefer",
12942
+ "throttle-reason",
12943
+ ],
12944
+ },
12468
12945
  },
12469
- });
12946
+ };
12470
12947
  this.serviceVersion =
12471
- (_b = (_a = options.serviceVersion) !== null && _a !== void 0 ? _a : options.apiVersion) !== null && _b !== void 0 ? _b : defaultServiceVersion;
12948
+ options.serviceVersion ?? options.apiVersion ?? defaultServiceVersion;
12472
12949
  this.apiVersion = this.serviceVersion;
12473
12950
  this.client = new SearchServiceClient(this.endpoint, this.serviceVersion, internalClientPipelineOptions);
12474
12951
  if (coreAuth.isTokenCredential(credential)) {
@@ -12510,7 +12987,10 @@ class SearchIndexerClient {
12510
12987
  async listIndexersNames(options = {}) {
12511
12988
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listIndexersNames", options);
12512
12989
  try {
12513
- const result = await this.client.indexers.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
12990
+ const result = await this.client.indexers.list({
12991
+ ...updatedOptions,
12992
+ select: "name",
12993
+ });
12514
12994
  return result.indexers.map((idx) => idx.name);
12515
12995
  }
12516
12996
  catch (e) {
@@ -12552,7 +13032,10 @@ class SearchIndexerClient {
12552
13032
  async listDataSourceConnectionsNames(options = {}) {
12553
13033
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listDataSourceConnectionsNames", options);
12554
13034
  try {
12555
- const result = await this.client.dataSources.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
13035
+ const result = await this.client.dataSources.list({
13036
+ ...updatedOptions,
13037
+ select: "name",
13038
+ });
12556
13039
  return result.dataSources.map((ds) => ds.name);
12557
13040
  }
12558
13041
  catch (e) {
@@ -12594,7 +13077,10 @@ class SearchIndexerClient {
12594
13077
  async listSkillsetsNames(options = {}) {
12595
13078
  const { span, updatedOptions } = createSpan("SearchIndexerClient-listSkillsetsNames", options);
12596
13079
  try {
12597
- const result = await this.client.skillsets.list(Object.assign(Object.assign({}, updatedOptions), { select: "name" }));
13080
+ const result = await this.client.skillsets.list({
13081
+ ...updatedOptions,
13082
+ select: "name",
13083
+ });
12598
13084
  return result.skillsets.map((sks) => sks.name);
12599
13085
  }
12600
13086
  catch (e) {
@@ -12749,7 +13235,12 @@ class SearchIndexerClient {
12749
13235
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateIndexer", options);
12750
13236
  try {
12751
13237
  const etag = options.onlyIfUnchanged ? indexer.etag : undefined;
12752
- const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
13238
+ const result = await this.client.indexers.createOrUpdate(indexer.name, publicSearchIndexerToGeneratedSearchIndexer(indexer), {
13239
+ ...updatedOptions,
13240
+ ifMatch: etag,
13241
+ skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache,
13242
+ disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection,
13243
+ });
12753
13244
  return generatedSearchIndexerToPublicSearchIndexer(result);
12754
13245
  }
12755
13246
  catch (e) {
@@ -12772,7 +13263,11 @@ class SearchIndexerClient {
12772
13263
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options);
12773
13264
  try {
12774
13265
  const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
12775
- const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache }));
13266
+ const result = await this.client.dataSources.createOrUpdate(dataSourceConnection.name, publicDataSourceToGeneratedDataSource(dataSourceConnection), {
13267
+ ...updatedOptions,
13268
+ ifMatch: etag,
13269
+ skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache,
13270
+ });
12776
13271
  return generatedDataSourceToPublicDataSource(result);
12777
13272
  }
12778
13273
  catch (e) {
@@ -12795,7 +13290,12 @@ class SearchIndexerClient {
12795
13290
  const { span, updatedOptions } = createSpan("SearchIndexerClient-createOrUpdateSkillset", options);
12796
13291
  try {
12797
13292
  const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
12798
- const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag, skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection }));
13293
+ const result = await this.client.skillsets.createOrUpdate(skillset.name, publicSkillsetToGeneratedSkillset(skillset), {
13294
+ ...updatedOptions,
13295
+ ifMatch: etag,
13296
+ skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache,
13297
+ disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection,
13298
+ });
12799
13299
  return generatedSkillsetToPublicSkillset(result);
12800
13300
  }
12801
13301
  catch (e) {
@@ -12823,7 +13323,10 @@ class SearchIndexerClient {
12823
13323
  : options.onlyIfUnchanged
12824
13324
  ? indexer.etag
12825
13325
  : undefined;
12826
- await this.client.indexers.delete(indexerName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
13326
+ await this.client.indexers.delete(indexerName, {
13327
+ ...updatedOptions,
13328
+ ifMatch: etag,
13329
+ });
12827
13330
  }
12828
13331
  catch (e) {
12829
13332
  span.setStatus({
@@ -12850,7 +13353,10 @@ class SearchIndexerClient {
12850
13353
  : options.onlyIfUnchanged
12851
13354
  ? dataSourceConnection.etag
12852
13355
  : undefined;
12853
- await this.client.dataSources.delete(dataSourceConnectionName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
13356
+ await this.client.dataSources.delete(dataSourceConnectionName, {
13357
+ ...updatedOptions,
13358
+ ifMatch: etag,
13359
+ });
12854
13360
  }
12855
13361
  catch (e) {
12856
13362
  span.setStatus({
@@ -12877,7 +13383,10 @@ class SearchIndexerClient {
12877
13383
  : options.onlyIfUnchanged
12878
13384
  ? skillset.etag
12879
13385
  : undefined;
12880
- await this.client.skillsets.delete(skillsetName, Object.assign(Object.assign({}, updatedOptions), { ifMatch: etag }));
13386
+ await this.client.skillsets.delete(skillsetName, {
13387
+ ...updatedOptions,
13388
+ ifMatch: etag,
13389
+ });
12881
13390
  }
12882
13391
  catch (e) {
12883
13392
  span.setStatus({
@@ -12962,10 +13471,13 @@ class SearchIndexerClient {
12962
13471
  async resetDocuments(indexerName, options = {}) {
12963
13472
  const { span, updatedOptions } = createSpan("SearchIndexerClient-resetDocs", options);
12964
13473
  try {
12965
- await this.client.indexers.resetDocs(indexerName, Object.assign(Object.assign({}, updatedOptions), { keysOrIds: {
13474
+ await this.client.indexers.resetDocs(indexerName, {
13475
+ ...updatedOptions,
13476
+ keysOrIds: {
12966
13477
  documentKeys: updatedOptions.documentKeys,
12967
13478
  datasourceDocumentIds: updatedOptions.datasourceDocumentIds,
12968
- } }));
13479
+ },
13480
+ });
12969
13481
  }
12970
13482
  catch (e) {
12971
13483
  span.setStatus({