@azure/search-documents 12.0.0-alpha.20230331.2 → 12.0.0-alpha.20230505.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/index.js +63 -35
  2. package/dist/index.js.map +1 -1
  3. package/dist-esm/src/generated/data/searchClient.js +1 -1
  4. package/dist-esm/src/generated/data/searchClient.js.map +1 -1
  5. package/dist-esm/src/generated/service/models/index.js.map +1 -1
  6. package/dist-esm/src/generated/service/searchServiceClient.js +1 -1
  7. package/dist-esm/src/generated/service/searchServiceClient.js.map +1 -1
  8. package/dist-esm/src/indexModels.js.map +1 -1
  9. package/dist-esm/src/searchClient.js +25 -18
  10. package/dist-esm/src/searchClient.js.map +1 -1
  11. package/dist-esm/src/searchIndexClient.js +36 -15
  12. package/dist-esm/src/searchIndexClient.js.map +1 -1
  13. package/package.json +3 -2
  14. package/types/search-documents.d.ts +36 -26
  15. package/dist-esm/src/generated/data/models/documentsMappers.js +0 -9
  16. package/dist-esm/src/generated/data/models/documentsMappers.js.map +0 -1
  17. package/dist-esm/src/generated/data/searchClientContext.js +0 -49
  18. package/dist-esm/src/generated/data/searchClientContext.js.map +0 -1
  19. package/dist-esm/src/generated/service/models/dataSourcesMappers.js +0 -9
  20. package/dist-esm/src/generated/service/models/dataSourcesMappers.js.map +0 -1
  21. package/dist-esm/src/generated/service/models/indexersMappers.js +0 -9
  22. package/dist-esm/src/generated/service/models/indexersMappers.js.map +0 -1
  23. package/dist-esm/src/generated/service/models/indexesMappers.js +0 -9
  24. package/dist-esm/src/generated/service/models/indexesMappers.js.map +0 -1
  25. package/dist-esm/src/generated/service/models/skillsetsMappers.js +0 -9
  26. package/dist-esm/src/generated/service/models/skillsetsMappers.js.map +0 -1
  27. package/dist-esm/src/generated/service/models/synonymMapsMappers.js +0 -9
  28. package/dist-esm/src/generated/service/models/synonymMapsMappers.js.map +0 -1
  29. package/dist-esm/src/generated/service/searchServiceClientContext.js +0 -44
  30. package/dist-esm/src/generated/service/searchServiceClientContext.js.map +0 -1
@@ -109,17 +109,24 @@ export class SearchIndexClient {
109
109
  }
110
110
  listIndexesAll(options = {}) {
111
111
  return __asyncGenerator(this, arguments, function* listIndexesAll_1() {
112
- var e_1, _a;
112
+ var _a, e_1, _b, _c;
113
113
  try {
114
- for (var _b = __asyncValues(this.listIndexesPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
115
- const page = _c.value;
116
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
114
+ for (var _d = true, _e = __asyncValues(this.listIndexesPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
115
+ _c = _f.value;
116
+ _d = false;
117
+ try {
118
+ const page = _c;
119
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
120
+ }
121
+ finally {
122
+ _d = true;
123
+ }
117
124
  }
118
125
  }
119
126
  catch (e_1_1) { e_1 = { error: e_1_1 }; }
120
127
  finally {
121
128
  try {
122
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
129
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
123
130
  }
124
131
  finally { if (e_1) throw e_1.error; }
125
132
  }
@@ -164,17 +171,24 @@ export class SearchIndexClient {
164
171
  }
165
172
  listAliasesAll(options = {}) {
166
173
  return __asyncGenerator(this, arguments, function* listAliasesAll_1() {
167
- var e_2, _a;
174
+ var _a, e_2, _b, _c;
168
175
  try {
169
- for (var _b = __asyncValues(this.listAliasesPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
170
- const page = _c.value;
171
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
176
+ for (var _d = true, _e = __asyncValues(this.listAliasesPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
177
+ _c = _f.value;
178
+ _d = false;
179
+ try {
180
+ const page = _c;
181
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
182
+ }
183
+ finally {
184
+ _d = true;
185
+ }
172
186
  }
173
187
  }
174
188
  catch (e_2_1) { e_2 = { error: e_2_1 }; }
175
189
  finally {
176
190
  try {
177
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
191
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
178
192
  }
179
193
  finally { if (e_2) throw e_2.error; }
180
194
  }
@@ -220,17 +234,24 @@ export class SearchIndexClient {
220
234
  }
221
235
  listIndexesNamesAll(options = {}) {
222
236
  return __asyncGenerator(this, arguments, function* listIndexesNamesAll_1() {
223
- var e_3, _a;
237
+ var _a, e_3, _b, _c;
224
238
  try {
225
- for (var _b = __asyncValues(this.listIndexesNamesPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
226
- const page = _c.value;
227
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
239
+ for (var _d = true, _e = __asyncValues(this.listIndexesNamesPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a;) {
240
+ _c = _f.value;
241
+ _d = false;
242
+ try {
243
+ const page = _c;
244
+ yield __await(yield* __asyncDelegator(__asyncValues(page)));
245
+ }
246
+ finally {
247
+ _d = true;
248
+ }
228
249
  }
229
250
  }
230
251
  catch (e_3_1) { e_3 = { error: e_3_1 }; }
231
252
  finally {
232
253
  try {
233
- if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
254
+ if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
234
255
  }
235
256
  finally { if (e_3) throw e_3.error; }
236
257
  }
@@ -1 +1 @@
1
- {"version":3,"file":"searchIndexClient.js","sourceRoot":"","sources":["../../src/searchIndexClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,4CAA4C;AAE5C,OAAO,EAAkC,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,mBAAmB,IA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AI,CAAC,MAAM,CAAC,OAAO,CAAC,OAAO,CAC9C,SAAS,kCAEJ,WAAW,KACd,QAAQ,EAAE,WAAW,CAAC,YAAY,EAClC,SAAS,EAAE,WAAW,CAAC,aAAa,EACpC,UAAU,EAAE,WAAW,CAAC,cAAc,KAExC,cAAc,CACf,CAAC;YACF,OAAO,MAAM,CAAC;SACf;QAAC,OAAO,CAAM,EAAE;YACf,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;SACT;gBAAS;YACR,IAAI,CAAC,GAAG,EAAE,CAAC;SACZ;IACH,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,oBAAoB,CAC/B,UAAuC,EAAE;QAEzC,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC;QAC/F,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;YACtE,OAAO,MAAM,CAAC;SACf;QAAC,OAAO,CAAM,EAAE;YACf,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;SACT;gBAAS;YACR,IAAI,CAAC,GAAG,EAAE,CAAC;SACZ;IACH,CAAC;IAED;;;;;;;;OAQG;IACI,eAAe,CACpB,SAAiB,EACjB,OAAgC;QAEhC,OAAO,IAAI,YAAY,CACrB,IAAI,CAAC,QAAQ,EACb,SAAS,EACT,IAAI,CAAC,UAAU,EACf,OAAO,IAAI,IAAI,CAAC,OAAO,CACxB,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { SDK_VERSION } from \"./constants\";\nimport { AnalyzeResult } from \"./generated/service/models\";\nimport { SearchServiceClient as GeneratedClient } from \"./generated/service/searchServiceClient\";\nimport { logger } from \"./logger\";\nimport { createSearchApiKeyCredentialPolicy } from \"./searchApiKeyCredentialPolicy\";\nimport {\n AliasIterator,\n AnalyzeTextOptions,\n CreateAliasOptions,\n CreateIndexOptions,\n CreateOrUpdateAliasOptions,\n CreateOrUpdateIndexOptions,\n CreateOrUpdateSynonymMapOptions,\n CreateSynonymMapOptions,\n DeleteAliasOptions,\n DeleteIndexOptions,\n DeleteSynonymMapOptions,\n GetAliasOptions,\n GetIndexOptions,\n GetIndexStatisticsOptions,\n GetServiceStatisticsOptions,\n GetSynonymMapsOptions,\n IndexIterator,\n IndexNameIterator,\n ListAliasesOptions,\n ListIndexesOptions,\n ListSynonymMapsOptions,\n SearchIndex,\n SearchIndexAlias,\n SearchIndexStatistics,\n SearchServiceStatistics,\n SynonymMap,\n} from \"./serviceModels\";\nimport * as utils from \"./serviceUtils\";\nimport { createSpan } from \"./tracing\";\nimport { createOdataMetadataPolicy } from \"./odataMetadataPolicy\";\nimport { SearchClientOptions as GetSearchClientOptions, SearchClient } from \"./searchClient\";\nimport { ExtendedCommonClientOptions } from \"@azure/core-http-compat\";\nimport { KnownSearchAudience } from \"./searchAudience\";\n\n/**\n * Client options used to configure Cognitive Search API requests.\n */\nexport interface SearchIndexClientOptions extends ExtendedCommonClientOptions {\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n apiVersion?: string;\n\n /**\n * The service version to use when communicating with the service.\n */\n serviceVersion?: string;\n\n /**\n * The Audience to use for authentication with Azure Active Directory (AAD). The\n * audience is not considered when using a shared key.\n * {@link KnownSearchAudience} can be used interchangeably with audience\n */\n audience?: string;\n}\n\n/**\n * Class to perform operations to manage\n * (create, update, list/delete)\n * indexes, & synonymmaps.\n */\nexport class SearchIndexClient {\n /**\n * The API version to use when communicating with the service.\n */\n public readonly serviceVersion: string = utils.defaultServiceVersion;\n\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n public readonly apiVersion: string = utils.defaultServiceVersion;\n\n /**\n * The endpoint of the search service\n */\n public readonly endpoint: string;\n\n /**\n * @internal\n * @hidden\n * A reference to the auto-generated SearchServiceClient\n */\n private readonly client: GeneratedClient;\n\n /**\n * Used to authenticate requests to the service.\n */\n private readonly credential: KeyCredential | TokenCredential;\n\n /**\n * Used to configure the Search Index client.\n */\n private readonly options: SearchIndexClientOptions;\n\n /**\n * Creates an instance of SearchIndexClient.\n *\n * Example usage:\n * ```ts\n * const { SearchIndexClient, AzureKeyCredential } = require(\"@azure/search-documents\");\n *\n * const client = new SearchIndexClient(\n * \"<endpoint>\",\n * new AzureKeyCredential(\"<Admin Key>\");\n * );\n * ```\n * @param endpoint - The endpoint of the search service\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the Search Index client.\n */\n constructor(\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n options: SearchIndexClientOptions = {}\n ) {\n this.endpoint = endpoint;\n this.credential = credential;\n this.options = options;\n\n const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;\n if (!options.userAgentOptions) {\n options.userAgentOptions = {};\n }\n if (options.userAgentOptions.userAgentPrefix) {\n options.userAgentOptions.userAgentPrefix = `${options.userAgentOptions.userAgentPrefix} ${libInfo}`;\n } else {\n options.userAgentOptions.userAgentPrefix = libInfo;\n }\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"elapsed-time\",\n \"Location\",\n \"OData-MaxVersion\",\n \"OData-Version\",\n \"Prefer\",\n \"throttle-reason\",\n ],\n },\n },\n };\n\n this.serviceVersion =\n options.serviceVersion ?? options.apiVersion ?? utils.defaultServiceVersion;\n this.apiVersion = this.serviceVersion;\n\n this.client = new GeneratedClient(\n this.endpoint,\n this.serviceVersion,\n internalClientPipelineOptions\n );\n\n if (isTokenCredential(credential)) {\n const scope: string = options.audience\n ? `${options.audience}/.default`\n : `${KnownSearchAudience.AzurePublicCloud}/.default`;\n\n this.client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({ credential, scopes: scope })\n );\n } else {\n this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));\n }\n\n this.client.pipeline.addPolicy(createOdataMetadataPolicy(\"minimal\"));\n }\n\n private async *listIndexesPage(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<SearchIndex[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listIndexesPage\", options);\n try {\n const result = await this.client.indexes.list(updatedOptions);\n const mapped = result.indexes.map(utils.generatedIndexToPublicIndex);\n yield mapped;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listIndexesAll(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<SearchIndex> {\n for await (const page of this.listIndexesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of existing indexes in the service.\n * @param options - Options to the list index operation.\n */\n public listIndexes(options: ListIndexesOptions = {}): IndexIterator {\n const iter = this.listIndexesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listIndexesPage(options);\n },\n };\n }\n\n private async *listAliasesPage(\n options: ListAliasesOptions = {}\n ): AsyncIterableIterator<SearchIndexAlias[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-listAliases\", options);\n try {\n const result = await this.client.aliases.list(updatedOptions);\n yield result.aliases;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listAliasesAll(\n options: ListAliasesOptions = {}\n ): AsyncIterableIterator<SearchIndexAlias> {\n for await (const page of this.listAliasesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all aliases available for a search service.\n * @param options - The options parameters.\n */\n public listAliases(options: ListAliasesOptions = {}): AliasIterator {\n const iter = this.listAliasesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listAliasesPage(options);\n },\n };\n }\n\n private async *listIndexesNamesPage(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<string[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listIndexesNamesPage\", options);\n try {\n const result = await this.client.indexes.list({\n ...updatedOptions,\n select: \"name\",\n });\n const mapped = result.indexes.map((idx) => idx.name);\n yield mapped;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listIndexesNamesAll(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<string> {\n for await (const page of this.listIndexesNamesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of names of existing indexes in the service.\n * @param options - Options to the list index operation.\n */\n public listIndexesNames(options: ListIndexesOptions = {}): IndexNameIterator {\n const iter = this.listIndexesNamesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listIndexesNamesPage(options);\n },\n };\n }\n\n /**\n * Retrieves a list of existing SynonymMaps in the service.\n * @param options - Options to the list SynonymMaps operation.\n */\n public async listSynonymMaps(options: ListSynonymMapsOptions = {}): Promise<Array<SynonymMap>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.list(updatedOptions);\n return result.synonymMaps.map(utils.generatedSynonymMapToPublicSynonymMap);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of names of existing SynonymMaps in the service.\n * @param options - Options to the list SynonymMaps operation.\n */\n public async listSynonymMapsNames(options: ListSynonymMapsOptions = {}): Promise<Array<string>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listSynonymMapsNames\", options);\n try {\n const result = await this.client.synonymMaps.list({\n ...updatedOptions,\n select: \"name\",\n });\n return result.synonymMaps.map((sm) => sm.name);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about an index.\n * @param indexName - The name of the index.\n * @param options - Additional optional arguments.\n */\n public async getIndex(indexName: string, options: GetIndexOptions = {}): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getIndex\", options);\n try {\n const result = await this.client.indexes.get(indexName, updatedOptions);\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about a SynonymMap.\n * @param synonymMapName - The name of the SynonymMap.\n * @param options - Additional optional arguments.\n */\n public async getSynonymMap(\n synonymMapName: string,\n options: GetSynonymMapsOptions = {}\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new index.\n * @param index - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createIndex(\n index: SearchIndex,\n options: CreateIndexOptions = {}\n ): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createIndex\", options);\n try {\n const result = await this.client.indexes.create(\n utils.publicIndexToGeneratedIndex(index),\n updatedOptions\n );\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new SynonymMap in a search service.\n * @param synonymMap - The synonymMap definition to create in a search service.\n * @param options - Additional optional arguments.\n */\n public async createSynonymMap(\n synonymMap: SynonymMap,\n options: CreateSynonymMapOptions = {}\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.create(\n utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),\n updatedOptions\n );\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new index or modifies an existing one.\n * @param index - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateIndex(\n index: SearchIndex,\n options: CreateOrUpdateIndexOptions = {}\n ): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createOrUpdateIndex\", options);\n try {\n const etag = options.onlyIfUnchanged ? index.etag : undefined;\n\n const result = await this.client.indexes.createOrUpdate(\n index.name,\n utils.publicIndexToGeneratedIndex(index),\n {\n ...updatedOptions,\n ifMatch: etag,\n }\n );\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new SynonymMap or modifies an existing one.\n * @param synonymMap - The information describing the SynonymMap to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateSynonymMap(\n synonymMap: SynonymMap,\n options: CreateOrUpdateSynonymMapOptions = {}\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexClient-createOrUpdateSynonymMap\",\n options\n );\n try {\n const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;\n\n const result = await this.client.synonymMaps.createOrUpdate(\n synonymMap.name,\n utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),\n {\n ...updatedOptions,\n ifMatch: etag,\n }\n );\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing index.\n * @param indexName - Index/Name of the index to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteIndex(\n index: string | SearchIndex,\n options: DeleteIndexOptions = {}\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-deleteIndex\", options);\n try {\n const indexName: string = typeof index === \"string\" ? index : index.name;\n const etag =\n typeof index === \"string\" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;\n\n await this.client.indexes.delete(indexName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing SynonymMap.\n * @param synonymMapName - SynonymMap/Name of the synonymMap to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteSynonymMap(\n synonymMap: string | SynonymMap,\n options: DeleteSynonymMapOptions = {}\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-deleteSynonymMap\", options);\n try {\n const synonymMapName: string = typeof synonymMap === \"string\" ? synonymMap : synonymMap.name;\n const etag =\n typeof synonymMap === \"string\"\n ? undefined\n : options.onlyIfUnchanged\n ? synonymMap.etag\n : undefined;\n\n await this.client.synonymMaps.delete(synonymMapName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new search alias or updates an alias if it already exists.\n * @param alias - The definition of the alias to create or update.\n * @param options - The options parameters.\n */\n public async createOrUpdateAlias(\n alias: SearchIndexAlias,\n options: CreateOrUpdateAliasOptions = {}\n ): Promise<SearchIndexAlias> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-createOrUpdateAlias\", options);\n try {\n const etag = options.onlyIfUnchanged ? alias.etag : undefined;\n\n const result = await this.client.aliases.createOrUpdate(alias.name, alias, {\n ...updatedOptions,\n ifMatch: etag,\n });\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new search alias.\n * @param alias - The definition of the alias to create.\n * @param options - The options parameters.\n */\n public async createAlias(\n alias: SearchIndexAlias,\n options: CreateAliasOptions = {}\n ): Promise<SearchIndexAlias> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-createAlias\", options);\n try {\n const result = await this.client.aliases.create(alias, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no\n * recovery option. The mapped index is untouched by this operation.\n * @param alias - Alias/Name name of the alias to delete.\n * @param options - The options parameters.\n */\n public async deleteAlias(\n alias: string | SearchIndexAlias,\n options: DeleteAliasOptions = {}\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-deleteAlias\", options);\n try {\n const aliasName: string = typeof alias === \"string\" ? alias : alias.name;\n const etag =\n typeof alias === \"string\" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;\n\n await this.client.aliases.delete(aliasName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves an alias definition.\n * @param aliasName - The name of the alias to retrieve.\n * @param options - The options parameters.\n */\n public async getAlias(\n aliasName: string,\n options: GetAliasOptions = {}\n ): Promise<SearchIndexAlias> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-getAlias\", options);\n try {\n const result = await this.client.aliases.get(aliasName, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves statistics about an index, such as the count of documents and the size\n * of index storage.\n * @param indexName - The name of the index.\n * @param options - Additional optional arguments.\n */\n public async getIndexStatistics(\n indexName: string,\n options: GetIndexStatisticsOptions = {}\n ): Promise<SearchIndexStatistics> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getIndexStatistics\", options);\n try {\n const result = await this.client.indexes.getStatistics(indexName, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Calls an analyzer or tokenizer manually on provided text.\n * @param indexName - The name of the index that contains the field to analyze\n * @param text - The text to break into tokens.\n * @param options - Additional arguments\n */\n public async analyzeText(indexName: string, options: AnalyzeTextOptions): Promise<AnalyzeResult> {\n const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options;\n const operationOptions = {\n abortSignal,\n requestOptions,\n tracingOptions,\n };\n\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-analyzeText\", operationOptions);\n try {\n const result = await this.client.indexes.analyze(\n indexName,\n {\n ...restOptions,\n analyzer: restOptions.analyzerName,\n tokenizer: restOptions.tokenizerName,\n normalizer: restOptions.normalizerName,\n },\n updatedOptions\n );\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves statistics about the service, such as the count of documents, index, etc.\n * @param options - Additional optional arguments.\n */\n public async getServiceStatistics(\n options: GetServiceStatisticsOptions = {}\n ): Promise<SearchServiceStatistics> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getServiceStatistics\", options);\n try {\n const result = await this.client.getServiceStatistics(updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves the SearchClient corresponding to this SearchIndexClient\n * @param indexName - Name of the index\n * @param options - SearchClient Options\n * @typeParam Model - An optional type that represents the documents stored in\n * the search index. For the best typing experience, all non-key fields should\n * be marked optional and nullable, and the key property should have the\n * non-nullable type `string`.\n */\n public getSearchClient<Model extends object>(\n indexName: string,\n options?: GetSearchClientOptions\n ): SearchClient<Model> {\n return new SearchClient<Model>(\n this.endpoint,\n indexName,\n this.credential,\n options || this.options\n );\n }\n}\n"]}
1
+ {"version":3,"file":"searchIndexClient.js","sourceRoot":"","sources":["../../src/searchIndexClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,4CAA4C;AAE5C,OAAO,EAAkC,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErF,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,OAAO,EAAE,mBAAmB,IAAI,eAAe,EAAE,MAAM,yCAAyC,CAAC;AACjG,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kCAAkC,EAAE,MAAM,gCAAgC,CAAC;AA6BpF,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAiD,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE7F,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAyBvD;;;;GAIG;AACH,MAAM,OAAO,iBAAiB;IAkC5B;;;;;;;;;;;;;;;OAeG;IACH,YACE,QAAgB,EAChB,UAA2C,EAC3C,UAAoC,EAAE;;QApDxC;;WAEG;Q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CAAC;SACZ;IACH,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,oBAAoB,CAC/B,UAAuC,EAAE;QAEzC,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,wCAAwC,EAAE,OAAO,CAAC,CAAC;QAC/F,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;YACtE,OAAO,MAAM,CAAC;SACf;QAAC,OAAO,CAAM,EAAE;YACf,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;SACT;gBAAS;YACR,IAAI,CAAC,GAAG,EAAE,CAAC;SACZ;IACH,CAAC;IAED;;;;;;;;OAQG;IACI,eAAe,CACpB,SAAiB,EACjB,OAAgC;QAEhC,OAAO,IAAI,YAAY,CACrB,IAAI,CAAC,QAAQ,EACb,SAAS,EACT,IAAI,CAAC,UAAU,EACf,OAAO,IAAI,IAAI,CAAC,OAAO,CACxB,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport { KeyCredential, TokenCredential, isTokenCredential } from \"@azure/core-auth\";\nimport { InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { SDK_VERSION } from \"./constants\";\nimport { AnalyzeResult } from \"./generated/service/models\";\nimport { SearchServiceClient as GeneratedClient } from \"./generated/service/searchServiceClient\";\nimport { logger } from \"./logger\";\nimport { createSearchApiKeyCredentialPolicy } from \"./searchApiKeyCredentialPolicy\";\nimport {\n AliasIterator,\n AnalyzeTextOptions,\n CreateAliasOptions,\n CreateIndexOptions,\n CreateOrUpdateAliasOptions,\n CreateOrUpdateIndexOptions,\n CreateOrUpdateSynonymMapOptions,\n CreateSynonymMapOptions,\n DeleteAliasOptions,\n DeleteIndexOptions,\n DeleteSynonymMapOptions,\n GetAliasOptions,\n GetIndexOptions,\n GetIndexStatisticsOptions,\n GetServiceStatisticsOptions,\n GetSynonymMapsOptions,\n IndexIterator,\n IndexNameIterator,\n ListAliasesOptions,\n ListIndexesOptions,\n ListSynonymMapsOptions,\n SearchIndex,\n SearchIndexAlias,\n SearchIndexStatistics,\n SearchServiceStatistics,\n SynonymMap,\n} from \"./serviceModels\";\nimport * as utils from \"./serviceUtils\";\nimport { createSpan } from \"./tracing\";\nimport { createOdataMetadataPolicy } from \"./odataMetadataPolicy\";\nimport { SearchClientOptions as GetSearchClientOptions, SearchClient } from \"./searchClient\";\nimport { ExtendedCommonClientOptions } from \"@azure/core-http-compat\";\nimport { KnownSearchAudience } from \"./searchAudience\";\n\n/**\n * Client options used to configure Cognitive Search API requests.\n */\nexport interface SearchIndexClientOptions extends ExtendedCommonClientOptions {\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n apiVersion?: string;\n\n /**\n * The service version to use when communicating with the service.\n */\n serviceVersion?: string;\n\n /**\n * The Audience to use for authentication with Azure Active Directory (AAD). The\n * audience is not considered when using a shared key.\n * {@link KnownSearchAudience} can be used interchangeably with audience\n */\n audience?: string;\n}\n\n/**\n * Class to perform operations to manage\n * (create, update, list/delete)\n * indexes, & synonymmaps.\n */\nexport class SearchIndexClient {\n /**\n * The API version to use when communicating with the service.\n */\n public readonly serviceVersion: string = utils.defaultServiceVersion;\n\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n public readonly apiVersion: string = utils.defaultServiceVersion;\n\n /**\n * The endpoint of the search service\n */\n public readonly endpoint: string;\n\n /**\n * @internal\n * @hidden\n * A reference to the auto-generated SearchServiceClient\n */\n private readonly client: GeneratedClient;\n\n /**\n * Used to authenticate requests to the service.\n */\n private readonly credential: KeyCredential | TokenCredential;\n\n /**\n * Used to configure the Search Index client.\n */\n private readonly options: SearchIndexClientOptions;\n\n /**\n * Creates an instance of SearchIndexClient.\n *\n * Example usage:\n * ```ts\n * const { SearchIndexClient, AzureKeyCredential } = require(\"@azure/search-documents\");\n *\n * const client = new SearchIndexClient(\n * \"<endpoint>\",\n * new AzureKeyCredential(\"<Admin Key>\");\n * );\n * ```\n * @param endpoint - The endpoint of the search service\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the Search Index client.\n */\n constructor(\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n options: SearchIndexClientOptions = {}\n ) {\n this.endpoint = endpoint;\n this.credential = credential;\n this.options = options;\n\n const libInfo = `azsdk-js-search-documents/${SDK_VERSION}`;\n if (!options.userAgentOptions) {\n options.userAgentOptions = {};\n }\n if (options.userAgentOptions.userAgentPrefix) {\n options.userAgentOptions.userAgentPrefix = `${options.userAgentOptions.userAgentPrefix} ${libInfo}`;\n } else {\n options.userAgentOptions.userAgentPrefix = libInfo;\n }\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"elapsed-time\",\n \"Location\",\n \"OData-MaxVersion\",\n \"OData-Version\",\n \"Prefer\",\n \"throttle-reason\",\n ],\n },\n },\n };\n\n this.serviceVersion =\n options.serviceVersion ?? options.apiVersion ?? utils.defaultServiceVersion;\n this.apiVersion = this.serviceVersion;\n\n this.client = new GeneratedClient(\n this.endpoint,\n this.serviceVersion,\n internalClientPipelineOptions\n );\n\n if (isTokenCredential(credential)) {\n const scope: string = options.audience\n ? `${options.audience}/.default`\n : `${KnownSearchAudience.AzurePublicCloud}/.default`;\n\n this.client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({ credential, scopes: scope })\n );\n } else {\n this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));\n }\n\n this.client.pipeline.addPolicy(createOdataMetadataPolicy(\"minimal\"));\n }\n\n private async *listIndexesPage(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<SearchIndex[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listIndexesPage\", options);\n try {\n const result = await this.client.indexes.list(updatedOptions);\n const mapped = result.indexes.map(utils.generatedIndexToPublicIndex);\n yield mapped;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listIndexesAll(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<SearchIndex> {\n for await (const page of this.listIndexesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of existing indexes in the service.\n * @param options - Options to the list index operation.\n */\n public listIndexes(options: ListIndexesOptions = {}): IndexIterator {\n const iter = this.listIndexesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listIndexesPage(options);\n },\n };\n }\n\n private async *listAliasesPage(\n options: ListAliasesOptions = {}\n ): AsyncIterableIterator<SearchIndexAlias[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-listAliases\", options);\n try {\n const result = await this.client.aliases.list(updatedOptions);\n yield result.aliases;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listAliasesAll(\n options: ListAliasesOptions = {}\n ): AsyncIterableIterator<SearchIndexAlias> {\n for await (const page of this.listAliasesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all aliases available for a search service.\n * @param options - The options parameters.\n */\n public listAliases(options: ListAliasesOptions = {}): AliasIterator {\n const iter = this.listAliasesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listAliasesPage(options);\n },\n };\n }\n\n private async *listIndexesNamesPage(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<string[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listIndexesNamesPage\", options);\n try {\n const result = await this.client.indexes.list({\n ...updatedOptions,\n select: \"name\",\n });\n const mapped = result.indexes.map((idx) => idx.name);\n yield mapped;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listIndexesNamesAll(\n options: ListIndexesOptions = {}\n ): AsyncIterableIterator<string> {\n for await (const page of this.listIndexesNamesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of names of existing indexes in the service.\n * @param options - Options to the list index operation.\n */\n public listIndexesNames(options: ListIndexesOptions = {}): IndexNameIterator {\n const iter = this.listIndexesNamesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listIndexesNamesPage(options);\n },\n };\n }\n\n /**\n * Retrieves a list of existing SynonymMaps in the service.\n * @param options - Options to the list SynonymMaps operation.\n */\n public async listSynonymMaps(options: ListSynonymMapsOptions = {}): Promise<Array<SynonymMap>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.list(updatedOptions);\n return result.synonymMaps.map(utils.generatedSynonymMapToPublicSynonymMap);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of names of existing SynonymMaps in the service.\n * @param options - Options to the list SynonymMaps operation.\n */\n public async listSynonymMapsNames(options: ListSynonymMapsOptions = {}): Promise<Array<string>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listSynonymMapsNames\", options);\n try {\n const result = await this.client.synonymMaps.list({\n ...updatedOptions,\n select: \"name\",\n });\n return result.synonymMaps.map((sm) => sm.name);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about an index.\n * @param indexName - The name of the index.\n * @param options - Additional optional arguments.\n */\n public async getIndex(indexName: string, options: GetIndexOptions = {}): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getIndex\", options);\n try {\n const result = await this.client.indexes.get(indexName, updatedOptions);\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about a SynonymMap.\n * @param synonymMapName - The name of the SynonymMap.\n * @param options - Additional optional arguments.\n */\n public async getSynonymMap(\n synonymMapName: string,\n options: GetSynonymMapsOptions = {}\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new index.\n * @param index - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createIndex(\n index: SearchIndex,\n options: CreateIndexOptions = {}\n ): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createIndex\", options);\n try {\n const result = await this.client.indexes.create(\n utils.publicIndexToGeneratedIndex(index),\n updatedOptions\n );\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new SynonymMap in a search service.\n * @param synonymMap - The synonymMap definition to create in a search service.\n * @param options - Additional optional arguments.\n */\n public async createSynonymMap(\n synonymMap: SynonymMap,\n options: CreateSynonymMapOptions = {}\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.create(\n utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),\n updatedOptions\n );\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new index or modifies an existing one.\n * @param index - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateIndex(\n index: SearchIndex,\n options: CreateOrUpdateIndexOptions = {}\n ): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createOrUpdateIndex\", options);\n try {\n const etag = options.onlyIfUnchanged ? index.etag : undefined;\n\n const result = await this.client.indexes.createOrUpdate(\n index.name,\n utils.publicIndexToGeneratedIndex(index),\n {\n ...updatedOptions,\n ifMatch: etag,\n }\n );\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new SynonymMap or modifies an existing one.\n * @param synonymMap - The information describing the SynonymMap to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateSynonymMap(\n synonymMap: SynonymMap,\n options: CreateOrUpdateSynonymMapOptions = {}\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexClient-createOrUpdateSynonymMap\",\n options\n );\n try {\n const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;\n\n const result = await this.client.synonymMaps.createOrUpdate(\n synonymMap.name,\n utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),\n {\n ...updatedOptions,\n ifMatch: etag,\n }\n );\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing index.\n * @param indexName - Index/Name of the index to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteIndex(\n index: string | SearchIndex,\n options: DeleteIndexOptions = {}\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-deleteIndex\", options);\n try {\n const indexName: string = typeof index === \"string\" ? index : index.name;\n const etag =\n typeof index === \"string\" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;\n\n await this.client.indexes.delete(indexName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing SynonymMap.\n * @param synonymMapName - SynonymMap/Name of the synonymMap to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteSynonymMap(\n synonymMap: string | SynonymMap,\n options: DeleteSynonymMapOptions = {}\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-deleteSynonymMap\", options);\n try {\n const synonymMapName: string = typeof synonymMap === \"string\" ? synonymMap : synonymMap.name;\n const etag =\n typeof synonymMap === \"string\"\n ? undefined\n : options.onlyIfUnchanged\n ? synonymMap.etag\n : undefined;\n\n await this.client.synonymMaps.delete(synonymMapName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new search alias or updates an alias if it already exists.\n * @param alias - The definition of the alias to create or update.\n * @param options - The options parameters.\n */\n public async createOrUpdateAlias(\n alias: SearchIndexAlias,\n options: CreateOrUpdateAliasOptions = {}\n ): Promise<SearchIndexAlias> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-createOrUpdateAlias\", options);\n try {\n const etag = options.onlyIfUnchanged ? alias.etag : undefined;\n\n const result = await this.client.aliases.createOrUpdate(alias.name, alias, {\n ...updatedOptions,\n ifMatch: etag,\n });\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new search alias.\n * @param alias - The definition of the alias to create.\n * @param options - The options parameters.\n */\n public async createAlias(\n alias: SearchIndexAlias,\n options: CreateAliasOptions = {}\n ): Promise<SearchIndexAlias> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-createAlias\", options);\n try {\n const result = await this.client.aliases.create(alias, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no\n * recovery option. The mapped index is untouched by this operation.\n * @param alias - Alias/Name name of the alias to delete.\n * @param options - The options parameters.\n */\n public async deleteAlias(\n alias: string | SearchIndexAlias,\n options: DeleteAliasOptions = {}\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-deleteAlias\", options);\n try {\n const aliasName: string = typeof alias === \"string\" ? alias : alias.name;\n const etag =\n typeof alias === \"string\" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;\n\n await this.client.aliases.delete(aliasName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves an alias definition.\n * @param aliasName - The name of the alias to retrieve.\n * @param options - The options parameters.\n */\n public async getAlias(\n aliasName: string,\n options: GetAliasOptions = {}\n ): Promise<SearchIndexAlias> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-getAlias\", options);\n try {\n const result = await this.client.aliases.get(aliasName, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves statistics about an index, such as the count of documents and the size\n * of index storage.\n * @param indexName - The name of the index.\n * @param options - Additional optional arguments.\n */\n public async getIndexStatistics(\n indexName: string,\n options: GetIndexStatisticsOptions = {}\n ): Promise<SearchIndexStatistics> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getIndexStatistics\", options);\n try {\n const result = await this.client.indexes.getStatistics(indexName, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Calls an analyzer or tokenizer manually on provided text.\n * @param indexName - The name of the index that contains the field to analyze\n * @param text - The text to break into tokens.\n * @param options - Additional arguments\n */\n public async analyzeText(indexName: string, options: AnalyzeTextOptions): Promise<AnalyzeResult> {\n const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options;\n const operationOptions = {\n abortSignal,\n requestOptions,\n tracingOptions,\n };\n\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-analyzeText\", operationOptions);\n try {\n const result = await this.client.indexes.analyze(\n indexName,\n {\n ...restOptions,\n analyzer: restOptions.analyzerName,\n tokenizer: restOptions.tokenizerName,\n normalizer: restOptions.normalizerName,\n },\n updatedOptions\n );\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves statistics about the service, such as the count of documents, index, etc.\n * @param options - Additional optional arguments.\n */\n public async getServiceStatistics(\n options: GetServiceStatisticsOptions = {}\n ): Promise<SearchServiceStatistics> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getServiceStatistics\", options);\n try {\n const result = await this.client.getServiceStatistics(updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves the SearchClient corresponding to this SearchIndexClient\n * @param indexName - Name of the index\n * @param options - SearchClient Options\n * @typeParam Model - An optional type that represents the documents stored in\n * the search index. For the best typing experience, all non-key fields should\n * be marked optional and nullable, and the key property should have the\n * non-nullable type `string`.\n */\n public getSearchClient<Model extends object>(\n indexName: string,\n options?: GetSearchClientOptions\n ): SearchClient<Model> {\n return new SearchClient<Model>(\n this.endpoint,\n indexName,\n this.credential,\n options || this.options\n );\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure/search-documents",
3
- "version": "12.0.0-alpha.20230331.2",
3
+ "version": "12.0.0-alpha.20230505.3",
4
4
  "description": "Azure client library to use Cognitive Search for node.js and browser.",
5
5
  "sdk-type": "client",
6
6
  "main": "dist/index.js",
@@ -18,6 +18,7 @@
18
18
  "clean": "rimraf dist dist-* temp types *.tgz *.log",
19
19
  "extract-api": "tsc -p . && api-extractor run --local",
20
20
  "format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"",
21
+ "generate:client": "autorest --typescript swagger/Service.md & autorest --typescript swagger/Data.md & wait",
21
22
  "integration-test:browser": "dev-tool run test:browser",
22
23
  "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'",
23
24
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
@@ -117,7 +118,7 @@
117
118
  "rimraf": "^3.0.0",
118
119
  "sinon": "^9.0.2",
119
120
  "ts-node": "^10.0.0",
120
- "typescript": "~4.8.0",
121
+ "typescript": "~5.0.0",
121
122
  "util": "^0.12.1"
122
123
  },
123
124
  "//sampleConfiguration": {
@@ -184,7 +184,7 @@ export declare interface AutocompleteRequest<Model extends object> {
184
184
  highlightPostTag?: string;
185
185
  /**
186
186
  * A string tag that is prepended to hit highlights. Must be set with highlightPostTag. If
187
- * omitted, hit highlighting is disabled.availability
187
+ * omitted, hit highlighting is disabled.
188
188
  */
189
189
  highlightPreTag?: string;
190
190
  /**
@@ -1002,7 +1002,12 @@ export declare type EntityLinkingSkill = BaseSearchIndexerSkill & {
1002
1002
  modelVersion?: string;
1003
1003
  };
1004
1004
 
1005
- /** Text analytics entity recognition. */
1005
+ /**
1006
+ * Text analytics entity recognition.
1007
+ *
1008
+ * @deprecated EntityRecognitionSkill has been deprecated. See
1009
+ * https://learn.microsoft.com/en-us/azure/search/cognitive-search-skill-deprecated
1010
+ */
1006
1011
  export declare type EntityRecognitionSkill = BaseSearchIndexerSkill & {
1007
1012
  /** Polymorphic discriminator, which specifies the different types this object can be */
1008
1013
  odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill";
@@ -4716,7 +4721,7 @@ export declare interface SearchAlias {
4716
4721
  * including querying documents in the index as well as
4717
4722
  * adding, updating, and removing them.
4718
4723
  */
4719
- export declare class SearchClient<Model extends object> implements IndexDocumentsClient<Model> {
4724
+ export declare class SearchClient<TModel extends object> implements IndexDocumentsClient<TModel> {
4720
4725
  /**
4721
4726
  * The service version to use when communicating with the service.
4722
4727
  */
@@ -4751,13 +4756,13 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4751
4756
  *
4752
4757
  * Optionally, the type of the model can be used to enable strong typing and type hints:
4753
4758
  * ```ts
4754
- * type Model = {
4759
+ * type TModel = {
4755
4760
  * keyName: string;
4756
4761
  * field1?: string | null;
4757
4762
  * field2?: { anotherField?: string | null } | null;
4758
4763
  * };
4759
4764
  *
4760
- * const client = new SearchClient<Model>(
4765
+ * const client = new SearchClient<TModel>(
4761
4766
  * ...
4762
4767
  * );
4763
4768
  * ```
@@ -4767,7 +4772,7 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4767
4772
  * @param credential - Used to authenticate requests to the service.
4768
4773
  * @param options - Used to configure the Search client.
4769
4774
  *
4770
- * @typeParam Model - An optional type that represents the documents stored in
4775
+ * @typeParam TModel - An optional type that represents the documents stored in
4771
4776
  * the search index. For the best typing experience, all non-key fields should
4772
4777
  * be marked optional and nullable, and the key property should have the
4773
4778
  * non-nullable type `string`.
@@ -4792,18 +4797,18 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4792
4797
  * SelectFields,
4793
4798
  * } from "@azure/search-documents";
4794
4799
  *
4795
- * type Model = {
4800
+ * type TModel = {
4796
4801
  * key: string;
4797
4802
  * azure?: { sdk: string | null } | null;
4798
4803
  * };
4799
4804
  *
4800
- * const client = new SearchClient<Model>(
4805
+ * const client = new SearchClient<TModel>(
4801
4806
  * "endpoint.azure",
4802
4807
  * "indexName",
4803
4808
  * new AzureKeyCredential("key")
4804
4809
  * );
4805
4810
  *
4806
- * const searchFields: SelectFields<Model>[] = ["azure/sdk"];
4811
+ * const searchFields: SelectFields<TModel>[] = ["azure/sdk"];
4807
4812
  *
4808
4813
  * const autocompleteResult = await client.autocomplete(
4809
4814
  * "searchText",
@@ -4812,7 +4817,7 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4812
4817
  * );
4813
4818
  * ```
4814
4819
  */
4815
- autocomplete(searchText: string, suggesterName: string, options?: AutocompleteOptions<Model>): Promise<AutocompleteResult>;
4820
+ autocomplete(searchText: string, suggesterName: string, options?: AutocompleteOptions<TModel>): Promise<AutocompleteResult>;
4816
4821
  private searchDocuments;
4817
4822
  private listSearchResultsPage;
4818
4823
  private listSearchResultsAll;
@@ -4830,19 +4835,19 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4830
4835
  * SelectFields,
4831
4836
  * } from "@azure/search-documents";
4832
4837
  *
4833
- * type Model = {
4838
+ * type TModel = {
4834
4839
  * key: string;
4835
4840
  * azure?: { sdk: string | null } | null;
4836
4841
  * };
4837
4842
  *
4838
- * const client = new SearchClient<Model>(
4843
+ * const client = new SearchClient<TModel>(
4839
4844
  * "endpoint.azure",
4840
4845
  * "indexName",
4841
4846
  * new AzureKeyCredential("key")
4842
4847
  * );
4843
4848
  *
4844
4849
  * const select = ["azure/sdk"] as const;
4845
- * const searchFields: SelectFields<Model>[] = ["azure/sdk"];
4850
+ * const searchFields: SelectFields<TModel>[] = ["azure/sdk"];
4846
4851
  *
4847
4852
  * const searchResult = await client.search("searchText", {
4848
4853
  * select,
@@ -4850,7 +4855,7 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4850
4855
  * });
4851
4856
  * ```
4852
4857
  */
4853
- search<Fields extends SelectFields<Model>>(searchText?: string, options?: SearchOptions<Model, Fields>): Promise<SearchDocumentsResult<Model, Fields>>;
4858
+ search<Fields extends SelectFields<TModel>>(searchText?: string, options?: SearchOptions<TModel, Fields>): Promise<SearchDocumentsResult<TModel, Fields>>;
4854
4859
  /**
4855
4860
  * Returns a short list of suggestions based on the searchText
4856
4861
  * and specified suggester.
@@ -4865,19 +4870,19 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4865
4870
  * SelectFields,
4866
4871
  * } from "@azure/search-documents";
4867
4872
  *
4868
- * type Model = {
4873
+ * type TModel = {
4869
4874
  * key: string;
4870
4875
  * azure?: { sdk: string | null } | null;
4871
4876
  * };
4872
4877
  *
4873
- * const client = new SearchClient<Model>(
4878
+ * const client = new SearchClient<TModel>(
4874
4879
  * "endpoint.azure",
4875
4880
  * "indexName",
4876
4881
  * new AzureKeyCredential("key")
4877
4882
  * );
4878
4883
  *
4879
4884
  * const select = ["azure/sdk"] as const;
4880
- * const searchFields: SelectFields<Model>[] = ["azure/sdk"];
4885
+ * const searchFields: SelectFields<TModel>[] = ["azure/sdk"];
4881
4886
  *
4882
4887
  * const suggestResult = await client.suggest("searchText", "suggesterName", {
4883
4888
  * select,
@@ -4885,13 +4890,13 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4885
4890
  * });
4886
4891
  * ```
4887
4892
  */
4888
- suggest<Fields extends SelectFields<Model> = never>(searchText: string, suggesterName: string, options?: SuggestOptions<Model, Fields>): Promise<SuggestDocumentsResult<Model, Fields>>;
4893
+ suggest<Fields extends SelectFields<TModel> = never>(searchText: string, suggesterName: string, options?: SuggestOptions<TModel, Fields>): Promise<SuggestDocumentsResult<TModel, Fields>>;
4889
4894
  /**
4890
4895
  * Retrieve a particular document from the index by key.
4891
4896
  * @param key - The primary key value of the document
4892
4897
  * @param options - Additional options
4893
4898
  */
4894
- getDocument<Fields extends SelectFields<Model>>(key: string, options?: GetDocumentOptions<Model, Fields>): Promise<NarrowedModel<Model, Fields>>;
4899
+ getDocument<Fields extends SelectFields<TModel>>(key: string, options?: GetDocumentOptions<TModel, Fields>): Promise<NarrowedModel<TModel, Fields>>;
4895
4900
  /**
4896
4901
  * Perform a set of index modifications (upload, merge, mergeOrUpload, delete)
4897
4902
  * for the given set of documents.
@@ -4902,40 +4907,40 @@ export declare class SearchClient<Model extends object> implements IndexDocument
4902
4907
  * @param batch - An array of actions to perform on the index.
4903
4908
  * @param options - Additional options.
4904
4909
  */
4905
- indexDocuments(batch: IndexDocumentsBatch<Model>, options?: IndexDocumentsOptions): Promise<IndexDocumentsResult>;
4910
+ indexDocuments(batch: IndexDocumentsBatch<TModel>, options?: IndexDocumentsOptions): Promise<IndexDocumentsResult>;
4906
4911
  /**
4907
4912
  * Upload an array of documents to the index.
4908
4913
  * @param documents - The documents to upload.
4909
4914
  * @param options - Additional options.
4910
4915
  */
4911
- uploadDocuments(documents: Model[], options?: UploadDocumentsOptions): Promise<IndexDocumentsResult>;
4916
+ uploadDocuments(documents: TModel[], options?: UploadDocumentsOptions): Promise<IndexDocumentsResult>;
4912
4917
  /**
4913
4918
  * Update a set of documents in the index.
4914
4919
  * For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents
4915
4920
  * @param documents - The updated documents.
4916
4921
  * @param options - Additional options.
4917
4922
  */
4918
- mergeDocuments(documents: Model[], options?: MergeDocumentsOptions): Promise<IndexDocumentsResult>;
4923
+ mergeDocuments(documents: TModel[], options?: MergeDocumentsOptions): Promise<IndexDocumentsResult>;
4919
4924
  /**
4920
4925
  * Update a set of documents in the index or upload them if they don't exist.
4921
4926
  * For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents
4922
4927
  * @param documents - The updated documents.
4923
4928
  * @param options - Additional options.
4924
4929
  */
4925
- mergeOrUploadDocuments(documents: Model[], options?: MergeOrUploadDocumentsOptions): Promise<IndexDocumentsResult>;
4930
+ mergeOrUploadDocuments(documents: TModel[], options?: MergeOrUploadDocumentsOptions): Promise<IndexDocumentsResult>;
4926
4931
  /**
4927
4932
  * Delete a set of documents.
4928
4933
  * @param documents - Documents to be deleted.
4929
4934
  * @param options - Additional options.
4930
4935
  */
4931
- deleteDocuments(documents: Model[], options?: DeleteDocumentsOptions): Promise<IndexDocumentsResult>;
4936
+ deleteDocuments(documents: TModel[], options?: DeleteDocumentsOptions): Promise<IndexDocumentsResult>;
4932
4937
  /**
4933
4938
  * Delete a set of documents.
4934
4939
  * @param keyName - The name of their primary key in the index.
4935
4940
  * @param keyValues - The primary key values of documents to delete.
4936
4941
  * @param options - Additional options.
4937
4942
  */
4938
- deleteDocuments(keyName: keyof Model, keyValues: string[], options?: DeleteDocumentsOptions): Promise<IndexDocumentsResult>;
4943
+ deleteDocuments(keyName: keyof TModel, keyValues: string[], options?: DeleteDocumentsOptions): Promise<IndexDocumentsResult>;
4939
4944
  private encodeContinuationToken;
4940
4945
  private decodeContinuationToken;
4941
4946
  private extractOperationOptions;
@@ -6567,7 +6572,12 @@ export declare interface SemanticSettings {
6567
6572
  configurations?: SemanticConfiguration[];
6568
6573
  }
6569
6574
 
6570
- /** Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1. */
6575
+ /**
6576
+ * Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1.
6577
+ *
6578
+ * @deprecated SentimentSkill has been deprecated. See
6579
+ * https://learn.microsoft.com/en-us/azure/search/cognitive-search-skill-deprecated
6580
+ */
6571
6581
  export declare type SentimentSkill = BaseSearchIndexerSkill & {
6572
6582
  /** Polymorphic discriminator, which specifies the different types this object can be */
6573
6583
  odatatype: "#Microsoft.Skills.Text.SentimentSkill";
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- export { AutocompleteItem, AutocompleteRequest, AutocompleteResult, FacetResult, IndexAction, IndexBatch, IndexDocumentsResult, IndexingResult, SearchDocumentsResult, SearchError, SearchRequest, SearchResult, SuggestDocumentsResult, SuggestRequest, SuggestResult } from "../models/mappers";
9
- //# sourceMappingURL=documentsMappers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"documentsMappers.js","sourceRoot":"","sources":["../../../../../src/generated/data/models/documentsMappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,gBAAgB,EAChB,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,cAAc,EACd,qBAAqB,EACrB,WAAW,EACX,aAAa,EACb,YAAY,EACZ,sBAAsB,EACtB,cAAc,EACd,aAAa,EACd,MAAM,mBAAmB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport {\n AutocompleteItem,\n AutocompleteRequest,\n AutocompleteResult,\n FacetResult,\n IndexAction,\n IndexBatch,\n IndexDocumentsResult,\n IndexingResult,\n SearchDocumentsResult,\n SearchError,\n SearchRequest,\n SearchResult,\n SuggestDocumentsResult,\n SuggestRequest,\n SuggestResult\n} from \"../models/mappers\";\n"]}
@@ -1,49 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation.
3
- * Licensed under the MIT License.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- import * as coreClient from "@azure/core-client";
9
- /** @internal */
10
- export class SearchClientContext extends coreClient.ServiceClient {
11
- /**
12
- * Initializes a new instance of the SearchClientContext class.
13
- * @param endpoint The endpoint URL of the search service.
14
- * @param indexName The name of the index.
15
- * @param apiVersion Api Version
16
- * @param options The parameter options
17
- */
18
- constructor(endpoint, indexName, apiVersion, options) {
19
- if (endpoint === undefined) {
20
- throw new Error("'endpoint' cannot be null");
21
- }
22
- if (indexName === undefined) {
23
- throw new Error("'indexName' cannot be null");
24
- }
25
- if (apiVersion === undefined) {
26
- throw new Error("'apiVersion' cannot be null");
27
- }
28
- // Initializing default values for options
29
- if (!options) {
30
- options = {};
31
- }
32
- const defaults = {
33
- requestContentType: "application/json; charset=utf-8"
34
- };
35
- const packageDetails = `azsdk-js-search-documents/11.3.0-beta.7`;
36
- const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
37
- ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
38
- : `${packageDetails}`;
39
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
- userAgentPrefix
41
- }, baseUri: options.endpoint || "{endpoint}/indexes('{indexName}')" });
42
- super(optionsWithDefaults);
43
- // Parameter assignments
44
- this.endpoint = endpoint;
45
- this.indexName = indexName;
46
- this.apiVersion = apiVersion;
47
- }
48
- }
49
- //# sourceMappingURL=searchClientContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"searchClientContext.js","sourceRoot":"","sources":["../../../../src/generated/data/searchClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAMjD,gBAAgB;AAChB,MAAM,OAAO,mBAAoB,SAAQ,UAAU,CAAC,aAAa;IAK/D;;;;;;OAMG;IACH,YACE,QAAgB,EAChB,SAAiB,EACjB,UAAqC,EACrC,OAAoC;QAEpC,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QACD,IAAI,SAAS,KAAK,SAAS,EAAE;YAC3B,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;SAC/C;QACD,IAAI,UAAU,KAAK,SAAS,EAAE;YAC5B,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;SAChD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA+B;YAC3C,kBAAkB,EAAE,iCAAiC;SACtD,CAAC;QAEF,MAAM,cAAc,GAAG,yCAAyC,CAAC;QACjE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,mCAAmC,GACjE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport {\n ApiVersion20210430Preview,\n SearchClientOptionalParams\n} from \"./models\";\n\n/** @internal */\nexport class SearchClientContext extends coreClient.ServiceClient {\n endpoint: string;\n indexName: string;\n apiVersion: ApiVersion20210430Preview;\n\n /**\n * Initializes a new instance of the SearchClientContext class.\n * @param endpoint The endpoint URL of the search service.\n * @param indexName The name of the index.\n * @param apiVersion Api Version\n * @param options The parameter options\n */\n constructor(\n endpoint: string,\n indexName: string,\n apiVersion: ApiVersion20210430Preview,\n options?: SearchClientOptionalParams\n ) {\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n if (indexName === undefined) {\n throw new Error(\"'indexName' cannot be null\");\n }\n if (apiVersion === undefined) {\n throw new Error(\"'apiVersion' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SearchClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\"\n };\n\n const packageDetails = `azsdk-js-search-documents/11.3.0-beta.7`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n baseUri: options.endpoint || \"{endpoint}/indexes('{indexName}')\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n this.indexName = indexName;\n this.apiVersion = apiVersion;\n }\n}\n"]}
@@ -1,9 +0,0 @@
1
- /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
4
- *
5
- * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
- */
8
- export { discriminators, AzureActiveDirectoryApplicationCredentials, DataChangeDetectionPolicy, DataDeletionDetectionPolicy, DataSourceCredentials, HighWaterMarkChangeDetectionPolicy, ListDataSourcesResult, SearchError, SearchIndexerDataContainer, SearchIndexerDataSource, SearchResourceEncryptionKey, SoftDeleteColumnDeletionDetectionPolicy, SqlIntegratedChangeTrackingPolicy } from "../models/mappers";
9
- //# sourceMappingURL=dataSourcesMappers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dataSourcesMappers.js","sourceRoot":"","sources":["../../../../../src/generated/service/models/dataSourcesMappers.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,EACd,0CAA0C,EAC1C,yBAAyB,EACzB,2BAA2B,EAC3B,qBAAqB,EACrB,kCAAkC,EAClC,qBAAqB,EACrB,WAAW,EACX,0BAA0B,EAC1B,uBAAuB,EACvB,2BAA2B,EAC3B,uCAAuC,EACvC,iCAAiC,EAClC,MAAM,mBAAmB,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport {\n discriminators,\n AzureActiveDirectoryApplicationCredentials,\n DataChangeDetectionPolicy,\n DataDeletionDetectionPolicy,\n DataSourceCredentials,\n HighWaterMarkChangeDetectionPolicy,\n ListDataSourcesResult,\n SearchError,\n SearchIndexerDataContainer,\n SearchIndexerDataSource,\n SearchResourceEncryptionKey,\n SoftDeleteColumnDeletionDetectionPolicy,\n SqlIntegratedChangeTrackingPolicy\n} from \"../models/mappers\";\n"]}