@azure/search-documents 12.3.0-alpha.20260310.2 → 13.0.0
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/browser/base64.d.ts.map +1 -1
- package/dist/browser/base64.js +3 -2
- package/dist/browser/base64.js.map +1 -1
- package/dist/browser/index.d.ts +9 -7
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +3 -4
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/indexModels.d.ts +13 -112
- package/dist/browser/indexModels.d.ts.map +1 -1
- package/dist/browser/indexModels.js.map +1 -1
- package/dist/browser/knowledgeBaseModels.d.ts +4 -17
- package/dist/browser/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseModels.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.js +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/index.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +3 -3
- package/dist/browser/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/browser/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/operations.js +9 -8
- package/dist/browser/knowledgeBaseRetrieval/api/operations.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/browser/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/api/options.js.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +4 -4
- package/dist/browser/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +1 -1
- package/dist/browser/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/browser/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/browser/knowledgeRetrievalClient.js +4 -4
- package/dist/browser/knowledgeRetrievalClient.js.map +1 -1
- package/dist/browser/models/azure/search/documents/index.d.ts +2 -1
- package/dist/browser/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/index.js +1 -1
- package/dist/browser/models/azure/search/documents/index.js.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/browser/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/index.js +1 -1
- package/dist/browser/models/azure/search/documents/indexes/index.js.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/browser/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/indexes/models.js +40 -526
- package/dist/browser/models/azure/search/documents/indexes/models.js.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.js +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/index.js.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.js +131 -291
- package/dist/browser/models/azure/search/documents/knowledgeBases/models.js.map +1 -1
- package/dist/browser/models/azure/search/documents/models.d.ts +2 -466
- package/dist/browser/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/browser/models/azure/search/documents/models.js +1 -429
- package/dist/browser/models/azure/search/documents/models.js.map +1 -1
- package/dist/browser/models/index.d.ts +1 -0
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +3 -3
- package/dist/browser/models/models.d.ts.map +1 -1
- package/dist/browser/models/models.js +3 -3
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/search/api/index.d.ts +2 -1
- package/dist/browser/search/api/index.d.ts.map +1 -1
- package/dist/browser/search/api/index.js +1 -1
- package/dist/browser/search/api/index.js.map +1 -1
- package/dist/browser/search/api/operations.d.ts.map +1 -1
- package/dist/browser/search/api/operations.js +35 -54
- package/dist/browser/search/api/operations.js.map +1 -1
- package/dist/browser/search/api/options.d.ts +19 -31
- package/dist/browser/search/api/options.d.ts.map +1 -1
- package/dist/browser/search/api/options.js.map +1 -1
- package/dist/browser/search/api/searchContext.js +1 -1
- package/dist/browser/search/api/searchContext.js.map +1 -1
- package/dist/browser/searchClient.d.ts +0 -1
- package/dist/browser/searchClient.d.ts.map +1 -1
- package/dist/browser/searchClient.js +22 -39
- package/dist/browser/searchClient.js.map +1 -1
- package/dist/browser/searchIndex/api/index.d.ts +4 -3
- package/dist/browser/searchIndex/api/index.d.ts.map +1 -1
- package/dist/browser/searchIndex/api/index.js +2 -2
- package/dist/browser/searchIndex/api/index.js.map +1 -1
- package/dist/browser/searchIndex/api/operations.d.ts +2 -6
- package/dist/browser/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/browser/searchIndex/api/operations.js +186 -96
- package/dist/browser/searchIndex/api/operations.js.map +1 -1
- package/dist/browser/searchIndex/api/options.d.ts +60 -5
- package/dist/browser/searchIndex/api/options.d.ts.map +1 -1
- package/dist/browser/searchIndex/api/options.js.map +1 -1
- package/dist/browser/searchIndex/api/searchIndexContext.js +1 -1
- package/dist/browser/searchIndex/api/searchIndexContext.js.map +1 -1
- package/dist/browser/searchIndex/index.d.ts +1 -1
- package/dist/browser/searchIndex/index.d.ts.map +1 -1
- package/dist/browser/searchIndex/index.js.map +1 -1
- package/dist/browser/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/browser/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/browser/searchIndex/searchIndexClient.js +1 -5
- package/dist/browser/searchIndex/searchIndexClient.js.map +1 -1
- package/dist/browser/searchIndexClient.d.ts +2 -7
- package/dist/browser/searchIndexClient.d.ts.map +1 -1
- package/dist/browser/searchIndexClient.js +2 -9
- package/dist/browser/searchIndexClient.js.map +1 -1
- package/dist/browser/searchIndexer/api/index.d.ts +4 -3
- package/dist/browser/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/browser/searchIndexer/api/index.js +2 -2
- package/dist/browser/searchIndexer/api/index.js.map +1 -1
- package/dist/browser/searchIndexer/api/operations.d.ts +2 -14
- package/dist/browser/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/browser/searchIndexer/api/operations.js +112 -150
- package/dist/browser/searchIndexer/api/operations.js.map +1 -1
- package/dist/browser/searchIndexer/api/options.d.ts +36 -30
- package/dist/browser/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/browser/searchIndexer/api/options.js.map +1 -1
- package/dist/browser/searchIndexer/api/searchIndexerContext.js +1 -1
- package/dist/browser/searchIndexer/api/searchIndexerContext.js.map +1 -1
- package/dist/browser/searchIndexer/index.d.ts +1 -1
- package/dist/browser/searchIndexer/index.d.ts.map +1 -1
- package/dist/browser/searchIndexer/index.js.map +1 -1
- package/dist/browser/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/browser/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/browser/searchIndexer/searchIndexerClient.js +1 -13
- package/dist/browser/searchIndexer/searchIndexerClient.js.map +1 -1
- package/dist/browser/searchIndexerClient.d.ts +1 -14
- package/dist/browser/searchIndexerClient.d.ts.map +1 -1
- package/dist/browser/searchIndexerClient.js +0 -27
- package/dist/browser/searchIndexerClient.js.map +1 -1
- package/dist/browser/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/browser/searchIndexingBufferedSender.js +3 -7
- package/dist/browser/searchIndexingBufferedSender.js.map +1 -1
- package/dist/browser/serviceModels.d.ts +7 -191
- package/dist/browser/serviceModels.d.ts.map +1 -1
- package/dist/browser/serviceModels.js.map +1 -1
- package/dist/browser/serviceUtils.d.ts +3 -5
- package/dist/browser/serviceUtils.d.ts.map +1 -1
- package/dist/browser/serviceUtils.js +30 -87
- package/dist/browser/serviceUtils.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/{synonymMapHelper.d.ts → synonymMapHelper-browser.d.mts} +3 -3
- package/dist/browser/synonymMapHelper-browser.d.mts.map +1 -0
- package/dist/browser/{synonymMapHelper.js → synonymMapHelper-browser.mjs} +3 -3
- package/dist/browser/synonymMapHelper-browser.mjs.map +1 -0
- package/dist/browser/timers-browser.d.mts +8 -0
- package/dist/browser/timers-browser.d.mts.map +1 -0
- package/dist/browser/timers-browser.mjs +13 -0
- package/dist/browser/timers-browser.mjs.map +1 -0
- package/dist/browser/tracing.d.ts.map +1 -1
- package/dist/browser/walk.js +1 -1
- package/dist/browser/walk.js.map +1 -1
- package/dist/commonjs/base64.d.ts.map +1 -1
- package/dist/commonjs/base64.js +4 -2
- package/dist/commonjs/base64.js.map +3 -3
- package/dist/commonjs/geographyPoint.js +1 -0
- package/dist/commonjs/geographyPoint.js.map +1 -1
- package/dist/commonjs/index.d.ts +8 -6
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +1 -29
- package/dist/commonjs/index.js.map +3 -3
- package/dist/commonjs/indexDocumentsBatch.js +1 -0
- package/dist/commonjs/indexDocumentsBatch.js.map +1 -1
- package/dist/commonjs/indexModels.d.ts +13 -112
- package/dist/commonjs/indexModels.d.ts.map +1 -1
- package/dist/commonjs/indexModels.js +1 -0
- package/dist/commonjs/indexModels.js.map +2 -2
- package/dist/commonjs/knowledgeBaseModels.d.ts +4 -17
- package/dist/commonjs/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseModels.js +1 -0
- package/dist/commonjs/knowledgeBaseModels.js.map +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.js +1 -0
- package/dist/commonjs/knowledgeBaseRetrieval/api/index.js.map +3 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +4 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +3 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.js +9 -7
- package/dist/commonjs/knowledgeBaseRetrieval/api/operations.js.map +3 -3
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.js +1 -0
- package/dist/commonjs/knowledgeBaseRetrieval/api/options.js.map +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/index.js +1 -0
- package/dist/commonjs/knowledgeBaseRetrieval/index.js.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +5 -4
- package/dist/commonjs/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +3 -3
- package/dist/commonjs/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/commonjs/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/commonjs/knowledgeRetrievalClient.js +10 -4
- package/dist/commonjs/knowledgeRetrievalClient.js.map +3 -3
- package/dist/commonjs/logger.js +1 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/models/azure/search/documents/index.d.ts +2 -1
- package/dist/commonjs/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/index.js +3 -16
- package/dist/commonjs/models/azure/search/documents/index.js.map +3 -3
- package/dist/commonjs/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/commonjs/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/indexes/index.js +1 -18
- package/dist/commonjs/models/azure/search/documents/indexes/index.js.map +3 -3
- package/dist/commonjs/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/commonjs/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/indexes/models.js +40 -501
- package/dist/commonjs/models/azure/search/documents/indexes/models.js.map +4 -4
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.js +1 -2
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/index.js.map +3 -3
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.js +136 -335
- package/dist/commonjs/models/azure/search/documents/knowledgeBases/models.js.map +4 -4
- package/dist/commonjs/models/azure/search/documents/models.d.ts +2 -466
- package/dist/commonjs/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/commonjs/models/azure/search/documents/models.js +8 -354
- package/dist/commonjs/models/azure/search/documents/models.js.map +4 -4
- package/dist/commonjs/models/index.d.ts +1 -0
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +1 -0
- package/dist/commonjs/models/index.js.map +2 -2
- package/dist/commonjs/models/models.d.ts +3 -3
- package/dist/commonjs/models/models.d.ts.map +1 -1
- package/dist/commonjs/models/models.js +2 -1
- package/dist/commonjs/models/models.js.map +3 -3
- package/dist/commonjs/odata.js +1 -0
- package/dist/commonjs/odata.js.map +1 -1
- package/dist/commonjs/odataMetadataPolicy.js +1 -0
- package/dist/commonjs/odataMetadataPolicy.js.map +1 -1
- package/dist/commonjs/search/api/index.d.ts +2 -1
- package/dist/commonjs/search/api/index.d.ts.map +1 -1
- package/dist/commonjs/search/api/index.js +1 -0
- package/dist/commonjs/search/api/index.js.map +3 -3
- package/dist/commonjs/search/api/operations.d.ts.map +1 -1
- package/dist/commonjs/search/api/operations.js +22 -42
- package/dist/commonjs/search/api/operations.js.map +3 -3
- package/dist/commonjs/search/api/options.d.ts +19 -31
- package/dist/commonjs/search/api/options.d.ts.map +1 -1
- package/dist/commonjs/search/api/options.js +1 -0
- package/dist/commonjs/search/api/options.js.map +2 -2
- package/dist/commonjs/search/api/searchContext.js +2 -1
- package/dist/commonjs/search/api/searchContext.js.map +2 -2
- package/dist/commonjs/search/index.js +1 -0
- package/dist/commonjs/search/index.js.map +1 -1
- package/dist/commonjs/search/searchClient.js +1 -0
- package/dist/commonjs/search/searchClient.js.map +1 -1
- package/dist/commonjs/searchApiKeyCredentialPolicy.js +1 -0
- package/dist/commonjs/searchApiKeyCredentialPolicy.js.map +1 -1
- package/dist/commonjs/searchAudience.js +1 -0
- package/dist/commonjs/searchAudience.js.map +1 -1
- package/dist/commonjs/searchClient.d.ts +0 -1
- package/dist/commonjs/searchClient.d.ts.map +1 -1
- package/dist/commonjs/searchClient.js +24 -43
- package/dist/commonjs/searchClient.js.map +3 -3
- package/dist/commonjs/searchIndex/api/index.d.ts +4 -3
- package/dist/commonjs/searchIndex/api/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/api/index.js +1 -2
- package/dist/commonjs/searchIndex/api/index.js.map +3 -3
- package/dist/commonjs/searchIndex/api/operations.d.ts +2 -6
- package/dist/commonjs/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/api/operations.js +126 -108
- package/dist/commonjs/searchIndex/api/operations.js.map +3 -3
- package/dist/commonjs/searchIndex/api/options.d.ts +60 -5
- package/dist/commonjs/searchIndex/api/options.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/api/options.js +1 -0
- package/dist/commonjs/searchIndex/api/options.js.map +2 -2
- package/dist/commonjs/searchIndex/api/searchIndexContext.js +2 -1
- package/dist/commonjs/searchIndex/api/searchIndexContext.js.map +2 -2
- package/dist/commonjs/searchIndex/index.d.ts +1 -1
- package/dist/commonjs/searchIndex/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/index.js +1 -0
- package/dist/commonjs/searchIndex/index.js.map +2 -2
- package/dist/commonjs/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/commonjs/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndex/searchIndexClient.js +1 -4
- package/dist/commonjs/searchIndex/searchIndexClient.js.map +3 -3
- package/dist/commonjs/searchIndexClient.d.ts +2 -7
- package/dist/commonjs/searchIndexClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndexClient.js +3 -9
- package/dist/commonjs/searchIndexClient.js.map +3 -3
- package/dist/commonjs/searchIndexer/api/index.d.ts +4 -3
- package/dist/commonjs/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/api/index.js +1 -6
- package/dist/commonjs/searchIndexer/api/index.js.map +3 -3
- package/dist/commonjs/searchIndexer/api/operations.d.ts +2 -14
- package/dist/commonjs/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/api/operations.js +76 -168
- package/dist/commonjs/searchIndexer/api/operations.js.map +3 -3
- package/dist/commonjs/searchIndexer/api/options.d.ts +36 -30
- package/dist/commonjs/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/api/options.js +1 -0
- package/dist/commonjs/searchIndexer/api/options.js.map +2 -2
- package/dist/commonjs/searchIndexer/api/searchIndexerContext.js +2 -1
- package/dist/commonjs/searchIndexer/api/searchIndexerContext.js.map +2 -2
- package/dist/commonjs/searchIndexer/index.d.ts +1 -1
- package/dist/commonjs/searchIndexer/index.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/index.js +1 -0
- package/dist/commonjs/searchIndexer/index.js.map +2 -2
- package/dist/commonjs/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/commonjs/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndexer/searchIndexerClient.js +1 -12
- package/dist/commonjs/searchIndexer/searchIndexerClient.js.map +3 -3
- package/dist/commonjs/searchIndexerClient.d.ts +1 -14
- package/dist/commonjs/searchIndexerClient.d.ts.map +1 -1
- package/dist/commonjs/searchIndexerClient.js +1 -39
- package/dist/commonjs/searchIndexerClient.js.map +3 -3
- package/dist/commonjs/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/commonjs/searchIndexingBufferedSender.js +4 -7
- package/dist/commonjs/searchIndexingBufferedSender.js.map +3 -3
- package/dist/commonjs/serialization.js +1 -0
- package/dist/commonjs/serialization.js.map +1 -1
- package/dist/commonjs/serviceModels.d.ts +7 -191
- package/dist/commonjs/serviceModels.d.ts.map +1 -1
- package/dist/commonjs/serviceModels.js +1 -0
- package/dist/commonjs/serviceModels.js.map +3 -3
- package/dist/commonjs/serviceUtils.d.ts +3 -5
- package/dist/commonjs/serviceUtils.d.ts.map +1 -1
- package/dist/commonjs/serviceUtils.js +31 -89
- package/dist/commonjs/serviceUtils.js.map +3 -3
- package/dist/commonjs/static-helpers/pagingHelpers.js +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +2 -2
- package/dist/commonjs/static-helpers/serialization/build-csv-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/build-csv-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/build-newline-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/build-newline-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/build-pipe-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/build-pipe-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js +1 -0
- package/dist/commonjs/static-helpers/serialization/check-prop-undefined.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/parse-csv-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-csv-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/parse-newline-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-newline-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/parse-pipe-collection.js +1 -0
- package/dist/commonjs/static-helpers/serialization/parse-pipe-collection.js.map +1 -1
- package/dist/commonjs/static-helpers/serialization/serialize-record.js +1 -0
- package/dist/commonjs/static-helpers/serialization/serialize-record.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/synonymMapHelper.js +1 -0
- package/dist/commonjs/synonymMapHelper.js.map +1 -1
- package/dist/commonjs/timers.d.ts +9 -0
- package/dist/commonjs/timers.d.ts.map +1 -0
- package/dist/commonjs/{errorModels.js → timers.js} +19 -2
- package/dist/commonjs/timers.js.map +7 -0
- package/dist/commonjs/tracing.d.ts.map +1 -1
- package/dist/commonjs/tracing.js +1 -0
- package/dist/commonjs/tracing.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/commonjs/walk.js +2 -1
- package/dist/commonjs/walk.js.map +3 -3
- package/dist/esm/base64.d.ts.map +1 -1
- package/dist/esm/base64.js +16 -8
- package/dist/esm/base64.js.map +1 -7
- package/dist/esm/geographyPoint.js +35 -32
- package/dist/esm/geographyPoint.js.map +1 -7
- package/dist/esm/index.d.ts +8 -6
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +17 -190
- package/dist/esm/index.js.map +1 -7
- package/dist/esm/indexDocumentsBatch.js +78 -73
- package/dist/esm/indexDocumentsBatch.js.map +1 -7
- package/dist/esm/indexModels.d.ts +13 -112
- package/dist/esm/indexModels.d.ts.map +1 -1
- package/dist/esm/indexModels.js +4 -0
- package/dist/esm/indexModels.js.map +1 -7
- package/dist/esm/knowledgeBaseModels.d.ts +4 -17
- package/dist/esm/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseModels.js +4 -0
- package/dist/esm/knowledgeBaseModels.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/esm/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/index.js +5 -8
- package/dist/esm/knowledgeBaseRetrieval/api/index.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +22 -20
- package/dist/esm/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/esm/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/operations.js +39 -42
- package/dist/esm/knowledgeBaseRetrieval/api/operations.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/esm/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/api/options.js +4 -0
- package/dist/esm/knowledgeBaseRetrieval/api/options.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/index.js +4 -4
- package/dist/esm/knowledgeBaseRetrieval/index.js.map +1 -7
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +22 -20
- package/dist/esm/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +1 -7
- package/dist/esm/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/esm/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/esm/knowledgeRetrievalClient.js +89 -91
- package/dist/esm/knowledgeRetrievalClient.js.map +1 -7
- package/dist/esm/logger.js +7 -4
- package/dist/esm/logger.js.map +1 -7
- package/dist/esm/models/azure/search/documents/index.d.ts +2 -1
- package/dist/esm/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/index.js +4 -36
- package/dist/esm/models/azure/search/documents/index.js.map +1 -7
- package/dist/esm/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/esm/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/indexes/index.js +4 -130
- package/dist/esm/models/azure/search/documents/indexes/index.js.map +1 -7
- package/dist/esm/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/esm/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/indexes/models.js +6374 -6188
- package/dist/esm/models/azure/search/documents/indexes/models.js.map +1 -7
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.js +4 -16
- package/dist/esm/models/azure/search/documents/knowledgeBases/index.js.map +1 -7
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.js +592 -790
- package/dist/esm/models/azure/search/documents/knowledgeBases/models.js.map +1 -7
- package/dist/esm/models/azure/search/documents/models.d.ts +2 -466
- package/dist/esm/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/esm/models/azure/search/documents/models.js +591 -919
- package/dist/esm/models/azure/search/documents/models.js.map +1 -7
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +4 -4
- package/dist/esm/models/index.js.map +1 -7
- package/dist/esm/models/models.d.ts +3 -3
- package/dist/esm/models/models.d.ts.map +1 -1
- package/dist/esm/models/models.js +14 -13
- package/dist/esm/models/models.js.map +1 -7
- package/dist/esm/odata.js +43 -26
- package/dist/esm/odata.js.map +1 -7
- package/dist/esm/odataMetadataPolicy.js +15 -11
- package/dist/esm/odataMetadataPolicy.js.map +1 -7
- package/dist/esm/search/api/index.d.ts +2 -1
- package/dist/esm/search/api/index.d.ts.map +1 -1
- package/dist/esm/search/api/index.js +5 -26
- package/dist/esm/search/api/index.js.map +1 -7
- package/dist/esm/search/api/operations.d.ts.map +1 -1
- package/dist/esm/search/api/operations.js +418 -452
- package/dist/esm/search/api/operations.js.map +1 -7
- package/dist/esm/search/api/options.d.ts +19 -31
- package/dist/esm/search/api/options.d.ts.map +1 -1
- package/dist/esm/search/api/options.js +4 -0
- package/dist/esm/search/api/options.js.map +1 -7
- package/dist/esm/search/api/searchContext.js +22 -20
- package/dist/esm/search/api/searchContext.js.map +1 -7
- package/dist/esm/search/index.js +4 -4
- package/dist/esm/search/index.js.map +1 -7
- package/dist/esm/search/searchClient.js +55 -63
- package/dist/esm/search/searchClient.js.map +1 -7
- package/dist/esm/searchApiKeyCredentialPolicy.js +17 -13
- package/dist/esm/searchApiKeyCredentialPolicy.js.map +1 -7
- package/dist/esm/searchAudience.js +21 -9
- package/dist/esm/searchAudience.js.map +1 -7
- package/dist/esm/searchClient.d.ts +0 -1
- package/dist/esm/searchClient.d.ts.map +1 -1
- package/dist/esm/searchClient.js +539 -624
- package/dist/esm/searchClient.js.map +1 -7
- package/dist/esm/searchIndex/api/index.d.ts +4 -3
- package/dist/esm/searchIndex/api/index.d.ts.map +1 -1
- package/dist/esm/searchIndex/api/index.js +5 -70
- package/dist/esm/searchIndex/api/index.js.map +1 -7
- package/dist/esm/searchIndex/api/operations.d.ts +2 -6
- package/dist/esm/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/esm/searchIndex/api/operations.js +1087 -1177
- package/dist/esm/searchIndex/api/operations.js.map +1 -7
- package/dist/esm/searchIndex/api/options.d.ts +60 -5
- package/dist/esm/searchIndex/api/options.d.ts.map +1 -1
- package/dist/esm/searchIndex/api/options.js +4 -0
- package/dist/esm/searchIndex/api/options.js.map +1 -7
- package/dist/esm/searchIndex/api/searchIndexContext.js +22 -20
- package/dist/esm/searchIndex/api/searchIndexContext.js.map +1 -7
- package/dist/esm/searchIndex/index.d.ts +1 -1
- package/dist/esm/searchIndex/index.d.ts.map +1 -1
- package/dist/esm/searchIndex/index.js +4 -4
- package/dist/esm/searchIndex/index.js.map +1 -7
- package/dist/esm/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/esm/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/esm/searchIndex/searchIndexClient.js +139 -173
- package/dist/esm/searchIndex/searchIndexClient.js.map +1 -7
- package/dist/esm/searchIndexClient.d.ts +2 -7
- package/dist/esm/searchIndexClient.d.ts.map +1 -1
- package/dist/esm/searchIndexClient.js +448 -588
- package/dist/esm/searchIndexClient.js.map +1 -7
- package/dist/esm/searchIndexer/api/index.d.ts +4 -3
- package/dist/esm/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/esm/searchIndexer/api/index.js +5 -50
- package/dist/esm/searchIndexer/api/index.js.map +1 -7
- package/dist/esm/searchIndexer/api/operations.d.ts +2 -14
- package/dist/esm/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/esm/searchIndexer/api/operations.js +676 -809
- package/dist/esm/searchIndexer/api/operations.js.map +1 -7
- package/dist/esm/searchIndexer/api/options.d.ts +36 -30
- package/dist/esm/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/esm/searchIndexer/api/options.js +4 -0
- package/dist/esm/searchIndexer/api/options.js.map +1 -7
- package/dist/esm/searchIndexer/api/searchIndexerContext.js +22 -20
- package/dist/esm/searchIndexer/api/searchIndexerContext.js.map +1 -7
- package/dist/esm/searchIndexer/index.d.ts +1 -1
- package/dist/esm/searchIndexer/index.d.ts.map +1 -1
- package/dist/esm/searchIndexer/index.js +4 -4
- package/dist/esm/searchIndexer/index.js.map +1 -7
- package/dist/esm/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/esm/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/esm/searchIndexer/searchIndexerClient.js +91 -123
- package/dist/esm/searchIndexer/searchIndexerClient.js.map +1 -7
- package/dist/esm/searchIndexerClient.d.ts +1 -14
- package/dist/esm/searchIndexerClient.d.ts.map +1 -1
- package/dist/esm/searchIndexerClient.js +347 -473
- package/dist/esm/searchIndexerClient.js.map +1 -7
- package/dist/esm/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/esm/searchIndexingBufferedSender.js +302 -285
- package/dist/esm/searchIndexingBufferedSender.js.map +1 -7
- package/dist/esm/serialization.js +112 -111
- package/dist/esm/serialization.js.map +1 -7
- package/dist/esm/serviceModels.d.ts +7 -191
- package/dist/esm/serviceModels.d.ts.map +1 -1
- package/dist/esm/serviceModels.js +654 -162
- package/dist/esm/serviceModels.js.map +1 -7
- package/dist/esm/serviceUtils.d.ts +3 -5
- package/dist/esm/serviceUtils.d.ts.map +1 -1
- package/dist/esm/serviceUtils.js +776 -865
- package/dist/esm/serviceUtils.js.map +1 -7
- package/dist/esm/static-helpers/pagingHelpers.js +122 -98
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -7
- package/dist/esm/static-helpers/serialization/build-csv-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/build-csv-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/build-newline-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/build-newline-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/build-pipe-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/build-pipe-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js +15 -9
- package/dist/esm/static-helpers/serialization/check-prop-undefined.js.map +1 -7
- package/dist/esm/static-helpers/serialization/parse-csv-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/parse-csv-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/parse-newline-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/parse-newline-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/parse-pipe-collection.js +5 -5
- package/dist/esm/static-helpers/serialization/parse-pipe-collection.js.map +1 -7
- package/dist/esm/static-helpers/serialization/serialize-record.js +17 -16
- package/dist/esm/static-helpers/serialization/serialize-record.js.map +1 -7
- package/dist/esm/static-helpers/urlTemplate.js +169 -142
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -7
- package/dist/esm/synonymMapHelper.js +20 -9
- package/dist/esm/synonymMapHelper.js.map +1 -7
- package/dist/esm/timers.d.ts +9 -0
- package/dist/esm/timers.d.ts.map +1 -0
- package/dist/esm/timers.js +15 -0
- package/dist/esm/timers.js.map +1 -0
- package/dist/esm/tracing.d.ts.map +1 -1
- package/dist/esm/tracing.js +11 -8
- package/dist/esm/tracing.js.map +1 -7
- package/dist/esm/walk.js +64 -52
- package/dist/esm/walk.js.map +1 -7
- package/dist/react-native/base64.d.ts.map +1 -1
- package/dist/react-native/base64.js +3 -2
- package/dist/react-native/base64.js.map +1 -1
- package/dist/react-native/index.d.ts +9 -7
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +3 -4
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/indexModels.d.ts +13 -112
- package/dist/react-native/indexModels.d.ts.map +1 -1
- package/dist/react-native/indexModels.js.map +1 -1
- package/dist/react-native/knowledgeBaseModels.d.ts +4 -17
- package/dist/react-native/knowledgeBaseModels.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseModels.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.d.ts +2 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.js +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/index.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts +3 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js +3 -3
- package/dist/react-native/knowledgeBaseRetrieval/api/knowledgeBaseRetrievalContext.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.d.ts +2 -2
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.js +9 -8
- package/dist/react-native/knowledgeBaseRetrieval/api/operations.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/options.d.ts +2 -2
- package/dist/react-native/knowledgeBaseRetrieval/api/options.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/api/options.js.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts +2 -2
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.d.ts.map +1 -1
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js +4 -4
- package/dist/react-native/knowledgeBaseRetrieval/knowledgeBaseRetrievalClient.js.map +1 -1
- package/dist/react-native/knowledgeRetrievalClient.d.ts +2 -2
- package/dist/react-native/knowledgeRetrievalClient.d.ts.map +1 -1
- package/dist/react-native/knowledgeRetrievalClient.js +4 -4
- package/dist/react-native/knowledgeRetrievalClient.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/index.d.ts +2 -1
- package/dist/react-native/models/azure/search/documents/index.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/index.js +1 -1
- package/dist/react-native/models/azure/search/documents/index.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.d.ts +2 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.js +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/index.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/models.d.ts +50 -477
- package/dist/react-native/models/azure/search/documents/indexes/models.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/indexes/models.js +40 -526
- package/dist/react-native/models/azure/search/documents/indexes/models.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.d.ts +2 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.js +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/index.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.d.ts +135 -242
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.js +131 -291
- package/dist/react-native/models/azure/search/documents/knowledgeBases/models.js.map +1 -1
- package/dist/react-native/models/azure/search/documents/models.d.ts +2 -466
- package/dist/react-native/models/azure/search/documents/models.d.ts.map +1 -1
- package/dist/react-native/models/azure/search/documents/models.js +1 -429
- package/dist/react-native/models/azure/search/documents/models.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1 -0
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +3 -3
- package/dist/react-native/models/models.d.ts.map +1 -1
- package/dist/react-native/models/models.js +3 -3
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/search/api/index.d.ts +2 -1
- package/dist/react-native/search/api/index.d.ts.map +1 -1
- package/dist/react-native/search/api/index.js +1 -1
- package/dist/react-native/search/api/index.js.map +1 -1
- package/dist/react-native/search/api/operations.d.ts.map +1 -1
- package/dist/react-native/search/api/operations.js +35 -54
- package/dist/react-native/search/api/operations.js.map +1 -1
- package/dist/react-native/search/api/options.d.ts +19 -31
- package/dist/react-native/search/api/options.d.ts.map +1 -1
- package/dist/react-native/search/api/options.js.map +1 -1
- package/dist/react-native/search/api/searchContext.js +1 -1
- package/dist/react-native/search/api/searchContext.js.map +1 -1
- package/dist/react-native/searchClient.d.ts +0 -1
- package/dist/react-native/searchClient.d.ts.map +1 -1
- package/dist/react-native/searchClient.js +22 -39
- package/dist/react-native/searchClient.js.map +1 -1
- package/dist/react-native/searchIndex/api/index.d.ts +4 -3
- package/dist/react-native/searchIndex/api/index.d.ts.map +1 -1
- package/dist/react-native/searchIndex/api/index.js +2 -2
- package/dist/react-native/searchIndex/api/index.js.map +1 -1
- package/dist/react-native/searchIndex/api/operations.d.ts +2 -6
- package/dist/react-native/searchIndex/api/operations.d.ts.map +1 -1
- package/dist/react-native/searchIndex/api/operations.js +186 -96
- package/dist/react-native/searchIndex/api/operations.js.map +1 -1
- package/dist/react-native/searchIndex/api/options.d.ts +60 -5
- package/dist/react-native/searchIndex/api/options.d.ts.map +1 -1
- package/dist/react-native/searchIndex/api/options.js.map +1 -1
- package/dist/react-native/searchIndex/api/searchIndexContext.js +1 -1
- package/dist/react-native/searchIndex/api/searchIndexContext.js.map +1 -1
- package/dist/react-native/searchIndex/index.d.ts +1 -1
- package/dist/react-native/searchIndex/index.d.ts.map +1 -1
- package/dist/react-native/searchIndex/index.js.map +1 -1
- package/dist/react-native/searchIndex/searchIndexClient.d.ts +2 -4
- package/dist/react-native/searchIndex/searchIndexClient.d.ts.map +1 -1
- package/dist/react-native/searchIndex/searchIndexClient.js +1 -5
- package/dist/react-native/searchIndex/searchIndexClient.js.map +1 -1
- package/dist/react-native/searchIndexClient.d.ts +2 -7
- package/dist/react-native/searchIndexClient.d.ts.map +1 -1
- package/dist/react-native/searchIndexClient.js +2 -9
- package/dist/react-native/searchIndexClient.js.map +1 -1
- package/dist/react-native/searchIndexer/api/index.d.ts +4 -3
- package/dist/react-native/searchIndexer/api/index.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/api/index.js +2 -2
- package/dist/react-native/searchIndexer/api/index.js.map +1 -1
- package/dist/react-native/searchIndexer/api/operations.d.ts +2 -14
- package/dist/react-native/searchIndexer/api/operations.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/api/operations.js +112 -150
- package/dist/react-native/searchIndexer/api/operations.js.map +1 -1
- package/dist/react-native/searchIndexer/api/options.d.ts +36 -30
- package/dist/react-native/searchIndexer/api/options.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/api/options.js.map +1 -1
- package/dist/react-native/searchIndexer/api/searchIndexerContext.js +1 -1
- package/dist/react-native/searchIndexer/api/searchIndexerContext.js.map +1 -1
- package/dist/react-native/searchIndexer/index.d.ts +1 -1
- package/dist/react-native/searchIndexer/index.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/index.js.map +1 -1
- package/dist/react-native/searchIndexer/searchIndexerClient.d.ts +2 -8
- package/dist/react-native/searchIndexer/searchIndexerClient.d.ts.map +1 -1
- package/dist/react-native/searchIndexer/searchIndexerClient.js +1 -13
- package/dist/react-native/searchIndexer/searchIndexerClient.js.map +1 -1
- package/dist/react-native/searchIndexerClient.d.ts +1 -14
- package/dist/react-native/searchIndexerClient.d.ts.map +1 -1
- package/dist/react-native/searchIndexerClient.js +0 -27
- package/dist/react-native/searchIndexerClient.js.map +1 -1
- package/dist/react-native/searchIndexingBufferedSender.d.ts.map +1 -1
- package/dist/react-native/searchIndexingBufferedSender.js +3 -7
- package/dist/react-native/searchIndexingBufferedSender.js.map +1 -1
- package/dist/react-native/serviceModels.d.ts +7 -191
- package/dist/react-native/serviceModels.d.ts.map +1 -1
- package/dist/react-native/serviceModels.js.map +1 -1
- package/dist/react-native/serviceUtils.d.ts +3 -5
- package/dist/react-native/serviceUtils.d.ts.map +1 -1
- package/dist/react-native/serviceUtils.js +30 -87
- package/dist/react-native/serviceUtils.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/{synonymMapHelper.d.ts → synonymMapHelper-browser.d.mts} +4 -3
- package/dist/react-native/synonymMapHelper-browser.d.mts.map +1 -0
- package/dist/react-native/synonymMapHelper-browser.mjs +14 -0
- package/dist/react-native/synonymMapHelper-browser.mjs.map +1 -0
- package/dist/react-native/synonymMapHelper-react-native.d.mts +2 -0
- package/dist/react-native/synonymMapHelper-react-native.d.mts.map +1 -0
- package/dist/react-native/synonymMapHelper-react-native.mjs +4 -0
- package/dist/react-native/synonymMapHelper-react-native.mjs.map +1 -0
- package/dist/react-native/timers-browser.d.mts +8 -0
- package/dist/react-native/timers-browser.d.mts.map +1 -0
- package/dist/react-native/timers-browser.mjs +13 -0
- package/dist/react-native/timers-browser.mjs.map +1 -0
- package/dist/react-native/timers-react-native.d.mts +2 -0
- package/dist/react-native/timers-react-native.d.mts.map +1 -0
- package/dist/react-native/timers-react-native.mjs +4 -0
- package/dist/react-native/timers-react-native.mjs.map +1 -0
- package/dist/react-native/tracing.d.ts.map +1 -1
- package/dist/react-native/walk.js +1 -1
- package/dist/react-native/walk.js.map +1 -1
- package/package.json +33 -20
- package/dist/browser/errorModels.d.ts +0 -56
- package/dist/browser/errorModels.d.ts.map +0 -1
- package/dist/browser/errorModels.js +0 -4
- package/dist/browser/errorModels.js.map +0 -1
- package/dist/browser/synonymMapHelper.d.ts.map +0 -1
- package/dist/browser/synonymMapHelper.js.map +0 -1
- package/dist/commonjs/errorModels.d.ts +0 -56
- package/dist/commonjs/errorModels.d.ts.map +0 -1
- package/dist/commonjs/errorModels.js.map +0 -7
- package/dist/esm/errorModels.d.ts +0 -56
- package/dist/esm/errorModels.d.ts.map +0 -1
- package/dist/esm/errorModels.js +0 -0
- package/dist/esm/errorModels.js.map +0 -7
- package/dist/react-native/errorModels.d.ts +0 -56
- package/dist/react-native/errorModels.d.ts.map +0 -1
- package/dist/react-native/errorModels.js +0 -4
- package/dist/react-native/errorModels.js.map +0 -1
- package/dist/react-native/synonymMapHelper.d.ts.map +0 -1
- package/dist/react-native/synonymMapHelper.js +0 -24
- package/dist/react-native/synonymMapHelper.js.map +0 -1
|
@@ -1,8 +1,7 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
1
3
|
import { isTokenCredential } from "@azure/core-auth";
|
|
2
|
-
import {
|
|
3
|
-
bearerTokenAuthenticationPolicy,
|
|
4
|
-
bearerTokenAuthenticationPolicyName
|
|
5
|
-
} from "@azure/core-rest-pipeline";
|
|
4
|
+
import { bearerTokenAuthenticationPolicy, bearerTokenAuthenticationPolicyName, } from "@azure/core-rest-pipeline";
|
|
6
5
|
import { SearchIndexClient as GeneratedClient } from "./searchIndex/searchIndexClient.js";
|
|
7
6
|
import { KnowledgeRetrievalClient } from "./knowledgeRetrievalClient.js";
|
|
8
7
|
import { logger } from "./logger.js";
|
|
@@ -12,595 +11,456 @@ import { KnownSearchAudience } from "./searchAudience.js";
|
|
|
12
11
|
import { SearchClient } from "./searchClient.js";
|
|
13
12
|
import * as utils from "./serviceUtils.js";
|
|
14
13
|
import { tracingClient } from "./tracing.js";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Class to perform operations to manage
|
|
16
|
+
* (create, update, list/delete)
|
|
17
|
+
* indexes, & synonymmaps.
|
|
18
|
+
*/
|
|
19
|
+
export class SearchIndexClient {
|
|
20
|
+
/**
|
|
21
|
+
* The API version to use when communicating with the service.
|
|
22
|
+
*/
|
|
23
|
+
serviceVersion = utils.defaultServiceVersion;
|
|
24
|
+
/**
|
|
25
|
+
* The API version to use when communicating with the service.
|
|
26
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
27
|
+
*/
|
|
28
|
+
apiVersion = utils.defaultServiceVersion;
|
|
29
|
+
/**
|
|
30
|
+
* The endpoint of the search service
|
|
31
|
+
*/
|
|
32
|
+
endpoint;
|
|
33
|
+
/**
|
|
34
|
+
* @hidden
|
|
35
|
+
* A reference to the auto-generated SearchServiceClient
|
|
36
|
+
*/
|
|
37
|
+
client;
|
|
38
|
+
/**
|
|
39
|
+
* A reference to the internal HTTP pipeline for use with raw requests
|
|
40
|
+
*/
|
|
41
|
+
pipeline;
|
|
42
|
+
/**
|
|
43
|
+
* Used to authenticate requests to the service.
|
|
44
|
+
*/
|
|
45
|
+
credential;
|
|
46
|
+
/**
|
|
47
|
+
* Used to configure the Search Index client.
|
|
48
|
+
*/
|
|
49
|
+
options;
|
|
50
|
+
/**
|
|
51
|
+
* Creates an instance of SearchIndexClient.
|
|
52
|
+
*
|
|
53
|
+
* Example usage:
|
|
54
|
+
* ```ts snippet:ReadmeSampleSearchIndexClient
|
|
55
|
+
* import { SearchIndexClient, AzureKeyCredential } from "@azure/search-documents";
|
|
56
|
+
*
|
|
57
|
+
* const indexClient = new SearchIndexClient("<endpoint>", new AzureKeyCredential("<apiKey>"));
|
|
58
|
+
* ```
|
|
59
|
+
* @param endpoint - The endpoint of the search service
|
|
60
|
+
* @param credential - Used to authenticate requests to the service.
|
|
61
|
+
* @param options - Used to configure the Search Index client.
|
|
62
|
+
*/
|
|
63
|
+
constructor(endpoint, credential, options = {}) {
|
|
64
|
+
this.endpoint = endpoint;
|
|
65
|
+
this.credential = credential;
|
|
66
|
+
this.options = options;
|
|
67
|
+
this.serviceVersion =
|
|
68
|
+
this.options.serviceVersion ?? this.options.apiVersion ?? utils.defaultServiceVersion;
|
|
69
|
+
this.apiVersion = this.serviceVersion;
|
|
70
|
+
const internalClientPipelineOptions = {
|
|
71
|
+
...this.options,
|
|
72
|
+
apiVersion: this.serviceVersion,
|
|
73
|
+
...{
|
|
74
|
+
loggingOptions: {
|
|
75
|
+
logger: logger.info,
|
|
76
|
+
additionalAllowedHeaderNames: [
|
|
77
|
+
"elapsed-time",
|
|
78
|
+
"Location",
|
|
79
|
+
"OData-MaxVersion",
|
|
80
|
+
"OData-Version",
|
|
81
|
+
"Prefer",
|
|
82
|
+
"throttle-reason",
|
|
83
|
+
],
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
this.client = new GeneratedClient(this.endpoint, credential, internalClientPipelineOptions);
|
|
88
|
+
this.pipeline = this.client.pipeline;
|
|
89
|
+
// Replaced with a custom policy below
|
|
90
|
+
this.pipeline.removePolicy({ name: bearerTokenAuthenticationPolicyName });
|
|
91
|
+
if (isTokenCredential(credential)) {
|
|
92
|
+
const scope = this.options.audience
|
|
93
|
+
? `${this.options.audience}/.default`
|
|
94
|
+
: `${KnownSearchAudience.AzurePublicCloud}/.default`;
|
|
95
|
+
this.client.pipeline.addPolicy(bearerTokenAuthenticationPolicy({ credential, scopes: scope }));
|
|
79
96
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
97
|
+
else {
|
|
98
|
+
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
99
|
+
}
|
|
100
|
+
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Retrieves a list of existing indexes in the service.
|
|
104
|
+
* @param options - Options to the list index operation.
|
|
105
|
+
*/
|
|
106
|
+
listIndexes(options = {}) {
|
|
107
|
+
return utils.mapPagedAsyncIterable(this.client.listIndexes(options), utils.generatedIndexToPublicIndex);
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Lists all aliases available for a search service.
|
|
111
|
+
* @param options - The options parameters.
|
|
112
|
+
*/
|
|
113
|
+
listAliases(options = {}) {
|
|
114
|
+
return this.client.listAliases(options);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Retrieves a list of names of existing indexes in the service.
|
|
118
|
+
* @param options - Options to the list index operation.
|
|
119
|
+
*/
|
|
120
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
121
|
+
listIndexesNames(options = {}) {
|
|
122
|
+
return utils.mapPagedAsyncIterable(this.client.listIndexesWithSelectedProperties({ ...options, select: "name" }), (idx) => idx.name);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves a list of existing SynonymMaps in the service.
|
|
126
|
+
* @param options - Options to the list SynonymMaps operation.
|
|
127
|
+
*/
|
|
128
|
+
async listSynonymMaps(options = {}) {
|
|
129
|
+
return tracingClient.withSpan("SearchIndexClient-listSynonymMaps", options, async (updatedOptions) => {
|
|
130
|
+
const result = await this.client.getSynonymMaps(updatedOptions);
|
|
131
|
+
return result.synonymMaps.map(utils.generatedSynonymMapToPublicSynonymMap);
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Retrieves a list of names of existing SynonymMaps in the service.
|
|
136
|
+
* @param options - Options to the list SynonymMaps operation.
|
|
137
|
+
*/
|
|
138
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
139
|
+
async listSynonymMapsNames(options = {}) {
|
|
140
|
+
return tracingClient.withSpan("SearchIndexClient-listSynonymMapsNames", options, async (updatedOptions) => {
|
|
141
|
+
const result = await this.client.getSynonymMaps({
|
|
142
|
+
...updatedOptions,
|
|
143
|
+
select: "name",
|
|
144
|
+
});
|
|
145
|
+
return result.synonymMaps.map((sm) => sm.name);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Retrieves information about an index.
|
|
150
|
+
* @param indexName - The name of the index.
|
|
151
|
+
* @param options - Additional optional arguments.
|
|
152
|
+
*/
|
|
153
|
+
async getIndex(indexName, options = {}) {
|
|
154
|
+
return tracingClient.withSpan("SearchIndexClient-getIndex", options, async (updatedOptions) => {
|
|
155
|
+
const result = await this.client.getIndex(indexName, updatedOptions);
|
|
156
|
+
return utils.generatedIndexToPublicIndex(result);
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* Retrieves information about a SynonymMap.
|
|
161
|
+
* @param synonymMapName - The name of the SynonymMap.
|
|
162
|
+
* @param options - Additional optional arguments.
|
|
163
|
+
*/
|
|
164
|
+
async getSynonymMap(synonymMapName,
|
|
165
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
166
|
+
options = {}) {
|
|
167
|
+
return tracingClient.withSpan("SearchIndexClient-getSynonymMap", options, async (updatedOptions) => {
|
|
168
|
+
const result = await this.client.getSynonymMap(synonymMapName, updatedOptions);
|
|
169
|
+
return utils.generatedSynonymMapToPublicSynonymMap(result);
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* Creates a new index.
|
|
174
|
+
* @param index - The information describing the index to be created.
|
|
175
|
+
* @param options - Additional optional arguments.
|
|
176
|
+
*/
|
|
177
|
+
async createIndex(index, options = {}) {
|
|
178
|
+
return tracingClient.withSpan("SearchIndexClient-createIndex", options, async (updatedOptions) => {
|
|
179
|
+
const result = await this.client.createIndex(utils.publicIndexToGeneratedIndex(index), updatedOptions);
|
|
180
|
+
this.client.pipeline.removePolicy({ name: "debugPolicy" });
|
|
181
|
+
return utils.generatedIndexToPublicIndex(result);
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Creates a new SynonymMap in a search service.
|
|
186
|
+
* @param synonymMap - The synonymMap definition to create in a search service.
|
|
187
|
+
* @param options - Additional optional arguments.
|
|
188
|
+
*/
|
|
189
|
+
async createSynonymMap(synonymMap, options = {}) {
|
|
190
|
+
return tracingClient.withSpan("SearchIndexClient-createSynonymMaps", options, async (updatedOptions) => {
|
|
191
|
+
const result = await this.client.createSynonymMap(utils.publicSynonymMapToGeneratedSynonymMap(synonymMap), updatedOptions);
|
|
192
|
+
return utils.generatedSynonymMapToPublicSynonymMap(result);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Creates a new index or modifies an existing one.
|
|
197
|
+
* @param index - The information describing the index to be created.
|
|
198
|
+
* @param options - Additional optional arguments.
|
|
199
|
+
*/
|
|
200
|
+
async createOrUpdateIndex(index, options = {}) {
|
|
201
|
+
return tracingClient.withSpan("SearchIndexClient-createOrUpdateIndex", options, async (updatedOptions) => {
|
|
202
|
+
const etag = options.onlyIfUnchanged ? index.etag : undefined;
|
|
203
|
+
const result = await this.client.createOrUpdateIndex(utils.publicIndexToGeneratedIndex(index), index.name, { ...updatedOptions, ifMatch: etag });
|
|
204
|
+
return utils.generatedIndexToPublicIndex(result);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Creates a new SynonymMap or modifies an existing one.
|
|
209
|
+
* @param synonymMap - The information describing the SynonymMap to be created.
|
|
210
|
+
* @param options - Additional optional arguments.
|
|
211
|
+
*/
|
|
212
|
+
async createOrUpdateSynonymMap(synonymMap, options = {}) {
|
|
213
|
+
return tracingClient.withSpan("SearchIndexClient-createOrUpdateSynonymMap", options, async (updatedOptions) => {
|
|
214
|
+
const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;
|
|
215
|
+
const result = await this.client.createOrUpdateSynonymMap(utils.publicSynonymMapToGeneratedSynonymMap(synonymMap), synonymMap.name, {
|
|
216
|
+
...updatedOptions,
|
|
217
|
+
ifMatch: etag,
|
|
218
|
+
});
|
|
219
|
+
return utils.generatedSynonymMapToPublicSynonymMap(result);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
async deleteIndex(index, options = {}) {
|
|
223
|
+
return tracingClient.withSpan("SearchIndexClient-deleteIndex", options, async (updatedOptions) => {
|
|
224
|
+
const indexName = typeof index === "string" ? index : index.name;
|
|
225
|
+
const etag = typeof index === "string" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;
|
|
226
|
+
await this.client.deleteIndex(indexName, {
|
|
227
|
+
...updatedOptions,
|
|
228
|
+
ifMatch: etag,
|
|
229
|
+
});
|
|
150
230
|
});
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
* @param options - Additional optional arguments.
|
|
170
|
-
*/
|
|
171
|
-
async getSynonymMap(synonymMapName, options = {}) {
|
|
172
|
-
return tracingClient.withSpan(
|
|
173
|
-
"SearchIndexClient-getSynonymMap",
|
|
174
|
-
options,
|
|
175
|
-
async (updatedOptions) => {
|
|
176
|
-
const result = await this.client.getSynonymMap(synonymMapName, updatedOptions);
|
|
177
|
-
return utils.generatedSynonymMapToPublicSynonymMap(result);
|
|
178
|
-
}
|
|
179
|
-
);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Creates a new index.
|
|
183
|
-
* @param index - The information describing the index to be created.
|
|
184
|
-
* @param options - Additional optional arguments.
|
|
185
|
-
*/
|
|
186
|
-
async createIndex(index, options = {}) {
|
|
187
|
-
return tracingClient.withSpan(
|
|
188
|
-
"SearchIndexClient-createIndex",
|
|
189
|
-
options,
|
|
190
|
-
async (updatedOptions) => {
|
|
191
|
-
const result = await this.client.createIndex(
|
|
192
|
-
utils.publicIndexToGeneratedIndex(index),
|
|
193
|
-
updatedOptions
|
|
194
|
-
);
|
|
195
|
-
this.client.pipeline.removePolicy({ name: "debugPolicy" });
|
|
196
|
-
return utils.generatedIndexToPublicIndex(result);
|
|
197
|
-
}
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
/**
|
|
201
|
-
* Creates a new SynonymMap in a search service.
|
|
202
|
-
* @param synonymMap - The synonymMap definition to create in a search service.
|
|
203
|
-
* @param options - Additional optional arguments.
|
|
204
|
-
*/
|
|
205
|
-
async createSynonymMap(synonymMap, options = {}) {
|
|
206
|
-
return tracingClient.withSpan(
|
|
207
|
-
"SearchIndexClient-createSynonymMaps",
|
|
208
|
-
options,
|
|
209
|
-
async (updatedOptions) => {
|
|
210
|
-
const result = await this.client.createSynonymMap(
|
|
211
|
-
utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),
|
|
212
|
-
updatedOptions
|
|
213
|
-
);
|
|
214
|
-
return utils.generatedSynonymMapToPublicSynonymMap(result);
|
|
215
|
-
}
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Creates a new index or modifies an existing one.
|
|
220
|
-
* @param index - The information describing the index to be created.
|
|
221
|
-
* @param options - Additional optional arguments.
|
|
222
|
-
*/
|
|
223
|
-
async createOrUpdateIndex(index, options = {}) {
|
|
224
|
-
return tracingClient.withSpan(
|
|
225
|
-
"SearchIndexClient-createOrUpdateIndex",
|
|
226
|
-
options,
|
|
227
|
-
async (updatedOptions) => {
|
|
228
|
-
const etag = options.onlyIfUnchanged ? index.etag : void 0;
|
|
229
|
-
const result = await this.client.createOrUpdateIndex(
|
|
230
|
-
utils.publicIndexToGeneratedIndex(index),
|
|
231
|
-
index.name,
|
|
232
|
-
{ ...updatedOptions, ifMatch: etag }
|
|
233
|
-
);
|
|
234
|
-
return utils.generatedIndexToPublicIndex(result);
|
|
235
|
-
}
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* Creates a new SynonymMap or modifies an existing one.
|
|
240
|
-
* @param synonymMap - The information describing the SynonymMap to be created.
|
|
241
|
-
* @param options - Additional optional arguments.
|
|
242
|
-
*/
|
|
243
|
-
async createOrUpdateSynonymMap(synonymMap, options = {}) {
|
|
244
|
-
return tracingClient.withSpan(
|
|
245
|
-
"SearchIndexClient-createOrUpdateSynonymMap",
|
|
246
|
-
options,
|
|
247
|
-
async (updatedOptions) => {
|
|
248
|
-
const etag = options.onlyIfUnchanged ? synonymMap.etag : void 0;
|
|
249
|
-
const result = await this.client.createOrUpdateSynonymMap(
|
|
250
|
-
utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),
|
|
251
|
-
synonymMap.name,
|
|
252
|
-
{
|
|
253
|
-
...updatedOptions,
|
|
254
|
-
ifMatch: etag
|
|
255
|
-
}
|
|
256
|
-
);
|
|
257
|
-
return utils.generatedSynonymMapToPublicSynonymMap(result);
|
|
258
|
-
}
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
async deleteIndex(index, options = {}) {
|
|
262
|
-
return tracingClient.withSpan(
|
|
263
|
-
"SearchIndexClient-deleteIndex",
|
|
264
|
-
options,
|
|
265
|
-
async (updatedOptions) => {
|
|
266
|
-
const indexName = typeof index === "string" ? index : index.name;
|
|
267
|
-
const etag = typeof index === "string" ? void 0 : options.onlyIfUnchanged ? index.etag : void 0;
|
|
268
|
-
await this.client.deleteIndex(indexName, {
|
|
269
|
-
...updatedOptions,
|
|
270
|
-
ifMatch: etag
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* Deletes an existing SynonymMap.
|
|
234
|
+
* @param synonymMapName - SynonymMap/Name of the synonymMap to delete.
|
|
235
|
+
* @param options - Additional optional arguments.
|
|
236
|
+
*/
|
|
237
|
+
async deleteSynonymMap(synonymMap, options = {}) {
|
|
238
|
+
return tracingClient.withSpan("SearchIndexClient-deleteSynonymMap", options, async (updatedOptions) => {
|
|
239
|
+
const synonymMapName = typeof synonymMap === "string" ? synonymMap : synonymMap.name;
|
|
240
|
+
const etag = typeof synonymMap === "string"
|
|
241
|
+
? undefined
|
|
242
|
+
: options.onlyIfUnchanged
|
|
243
|
+
? synonymMap.etag
|
|
244
|
+
: undefined;
|
|
245
|
+
await this.client.deleteSynonymMap(synonymMapName, {
|
|
246
|
+
...updatedOptions,
|
|
247
|
+
ifMatch: etag,
|
|
248
|
+
});
|
|
271
249
|
});
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
const synonymMapName = typeof synonymMap === "string" ? synonymMap : synonymMap.name;
|
|
286
|
-
const etag = typeof synonymMap === "string" ? void 0 : options.onlyIfUnchanged ? synonymMap.etag : void 0;
|
|
287
|
-
await this.client.deleteSynonymMap(synonymMapName, {
|
|
288
|
-
...updatedOptions,
|
|
289
|
-
ifMatch: etag
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Creates a new search alias or updates an alias if it already exists.
|
|
253
|
+
* @param alias - The definition of the alias to create or update.
|
|
254
|
+
* @param options - The options parameters.
|
|
255
|
+
*/
|
|
256
|
+
async createOrUpdateAlias(alias, options = {}) {
|
|
257
|
+
return tracingClient.withSpan("SearchIndexClient-createOrUpdateAlias", options, async (updatedOptions) => {
|
|
258
|
+
const etag = options.onlyIfUnchanged ? alias.etag : undefined;
|
|
259
|
+
return this.client.createOrUpdateAlias(alias, alias.name, {
|
|
260
|
+
...updatedOptions,
|
|
261
|
+
ifMatch: etag,
|
|
262
|
+
});
|
|
290
263
|
});
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
return tracingClient.withSpan(
|
|
301
|
-
"SearchIndexClient-createOrUpdateAlias",
|
|
302
|
-
options,
|
|
303
|
-
async (updatedOptions) => {
|
|
304
|
-
const etag = options.onlyIfUnchanged ? alias.etag : void 0;
|
|
305
|
-
return this.client.createOrUpdateAlias(alias, alias.name, {
|
|
306
|
-
...updatedOptions,
|
|
307
|
-
ifMatch: etag
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Creates a new search alias.
|
|
267
|
+
* @param alias - The definition of the alias to create.
|
|
268
|
+
* @param options - The options parameters.
|
|
269
|
+
*/
|
|
270
|
+
async createAlias(alias, options = {}) {
|
|
271
|
+
return tracingClient.withSpan("SearchIndexClient-createAlias", options, async (updatedOptions) => {
|
|
272
|
+
return this.client.createAlias(alias, updatedOptions);
|
|
308
273
|
});
|
|
309
|
-
|
|
310
|
-
)
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
return tracingClient.withSpan(
|
|
319
|
-
"SearchIndexClient-createAlias",
|
|
320
|
-
options,
|
|
321
|
-
async (updatedOptions) => {
|
|
322
|
-
return this.client.createAlias(alias, updatedOptions);
|
|
323
|
-
}
|
|
324
|
-
);
|
|
325
|
-
}
|
|
326
|
-
async deleteAlias(alias, options = {}) {
|
|
327
|
-
return tracingClient.withSpan(
|
|
328
|
-
"SearchIndexClient-deleteAlias",
|
|
329
|
-
options,
|
|
330
|
-
async (updatedOptions) => {
|
|
331
|
-
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
332
|
-
const etag = typeof alias === "string" ? void 0 : options.onlyIfUnchanged ? alias.etag : void 0;
|
|
333
|
-
await this.client.deleteAlias(aliasName, {
|
|
334
|
-
...updatedOptions,
|
|
335
|
-
ifMatch: etag
|
|
274
|
+
}
|
|
275
|
+
async deleteAlias(alias, options = {}) {
|
|
276
|
+
return tracingClient.withSpan("SearchIndexClient-deleteAlias", options, async (updatedOptions) => {
|
|
277
|
+
const aliasName = typeof alias === "string" ? alias : alias.name;
|
|
278
|
+
const etag = typeof alias === "string" ? undefined : options.onlyIfUnchanged ? alias.etag : undefined;
|
|
279
|
+
await this.client.deleteAlias(aliasName, {
|
|
280
|
+
...updatedOptions,
|
|
281
|
+
ifMatch: etag,
|
|
282
|
+
});
|
|
336
283
|
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
return tracingClient.withSpan(
|
|
358
|
-
"SearchIndexClient-getIndexStatistics",
|
|
359
|
-
options,
|
|
360
|
-
async (updatedOptions) => {
|
|
361
|
-
return this.client.getIndexStatistics(indexName, updatedOptions);
|
|
362
|
-
}
|
|
363
|
-
);
|
|
364
|
-
}
|
|
365
|
-
/**
|
|
366
|
-
* Calls an analyzer or tokenizer manually on provided text.
|
|
367
|
-
* @param indexName - The name of the index that contains the field to analyze
|
|
368
|
-
* @param text - The text to break into tokens.
|
|
369
|
-
* @param options - Additional arguments
|
|
370
|
-
*/
|
|
371
|
-
async analyzeText(indexName, options) {
|
|
372
|
-
const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options;
|
|
373
|
-
const operationOptions = {
|
|
374
|
-
abortSignal,
|
|
375
|
-
requestOptions,
|
|
376
|
-
tracingOptions
|
|
377
|
-
};
|
|
378
|
-
return tracingClient.withSpan(
|
|
379
|
-
"SearchIndexClient-analyzeText",
|
|
380
|
-
operationOptions,
|
|
381
|
-
async (updatedOptions) => {
|
|
382
|
-
return this.client.analyzeText({ ...restOptions }, indexName, updatedOptions);
|
|
383
|
-
}
|
|
384
|
-
);
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Retrieves statistics about the service, such as the count of documents, index, etc.
|
|
388
|
-
* @param options - Additional optional arguments.
|
|
389
|
-
*/
|
|
390
|
-
async getServiceStatistics(options = {}) {
|
|
391
|
-
return tracingClient.withSpan(
|
|
392
|
-
"SearchIndexClient-getServiceStatistics",
|
|
393
|
-
options,
|
|
394
|
-
async (updatedOptions) => {
|
|
395
|
-
return this.client.getServiceStatistics(updatedOptions);
|
|
396
|
-
}
|
|
397
|
-
);
|
|
398
|
-
}
|
|
399
|
-
/**
|
|
400
|
-
* Retrieves a list of existing indexes in the service.
|
|
401
|
-
* @param options - Options to the list index operation.
|
|
402
|
-
*/
|
|
403
|
-
getIndexStatsSummary(options = {}) {
|
|
404
|
-
return this.client.listIndexStatsSummary(options);
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* Creates a new knowledgebase.
|
|
408
|
-
* @param knowledgeBase - definition of the knowledgebase to create.
|
|
409
|
-
* @param options - options parameters.
|
|
410
|
-
*/
|
|
411
|
-
async createKnowledgeBase(knowledgeBase, options = {}) {
|
|
412
|
-
return tracingClient.withSpan(
|
|
413
|
-
"SearchIndexClient-createKnowledgeBase",
|
|
414
|
-
options,
|
|
415
|
-
async (updatedOptions) => {
|
|
416
|
-
const result = await this.client.createKnowledgeBase(
|
|
417
|
-
utils.convertKnowledgeBaseToGenerated(knowledgeBase),
|
|
418
|
-
updatedOptions
|
|
419
|
-
);
|
|
420
|
-
return utils.convertKnowledgeBaseToPublic(result);
|
|
421
|
-
}
|
|
422
|
-
);
|
|
423
|
-
}
|
|
424
|
-
/**
|
|
425
|
-
* Creates a new knowledge base or updates a knowledge base if it already exists.
|
|
426
|
-
* @param knowledgeBaseName - name of the knowledge base to create or update.
|
|
427
|
-
* @param knowledgeBase - definition of the knowledge base to create or update.
|
|
428
|
-
* @param options - options parameters.
|
|
429
|
-
*/
|
|
430
|
-
async createOrUpdateKnowledgeBase(knowledgeBaseName, knowledgeBase, options = {}) {
|
|
431
|
-
return tracingClient.withSpan(
|
|
432
|
-
"SearchIndexClient-createOrUpdateKnowledgeBase",
|
|
433
|
-
options,
|
|
434
|
-
async (updatedOptions) => {
|
|
435
|
-
const etag = options.onlyIfUnchanged ? knowledgeBase.etag : void 0;
|
|
436
|
-
const result = await this.client.createOrUpdateKnowledgeBase(
|
|
437
|
-
utils.convertKnowledgeBaseToGenerated(knowledgeBase),
|
|
438
|
-
knowledgeBaseName,
|
|
439
|
-
{
|
|
440
|
-
...updatedOptions,
|
|
441
|
-
ifMatch: etag
|
|
442
|
-
}
|
|
443
|
-
);
|
|
444
|
-
return utils.convertKnowledgeBaseToPublic(result);
|
|
445
|
-
}
|
|
446
|
-
);
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Retrieves a knowledge base definition.
|
|
450
|
-
* @param knowledgeBaseName - name of the knowledge base to retrieve.
|
|
451
|
-
* @param options - options parameters.
|
|
452
|
-
*/
|
|
453
|
-
async getKnowledgeBase(knowledgeBaseName, options = {}) {
|
|
454
|
-
return tracingClient.withSpan(
|
|
455
|
-
"SearchIndexClient-getKnowledgeBase",
|
|
456
|
-
options,
|
|
457
|
-
async (updatedOptions) => {
|
|
458
|
-
const result = await this.client.getKnowledgeBase(knowledgeBaseName, updatedOptions);
|
|
459
|
-
return utils.convertKnowledgeBaseToPublic(result);
|
|
460
|
-
}
|
|
461
|
-
);
|
|
462
|
-
}
|
|
463
|
-
/**
|
|
464
|
-
* Retrieves a list of existing KnowledgeBases in the service.
|
|
465
|
-
* @param options - Options to the list knowledge bases operation.
|
|
466
|
-
*/
|
|
467
|
-
listKnowledgeBases(options = {}) {
|
|
468
|
-
return utils.mapPagedAsyncIterable(
|
|
469
|
-
this.client.listKnowledgeBases(options),
|
|
470
|
-
utils.convertKnowledgeBaseToPublic
|
|
471
|
-
);
|
|
472
|
-
}
|
|
473
|
-
async deleteKnowledgeBase(knowledgeBase, options = {}) {
|
|
474
|
-
return tracingClient.withSpan(
|
|
475
|
-
"SearchIndexClient-deleteKnowledgeBase",
|
|
476
|
-
options,
|
|
477
|
-
async (updatedOptions) => {
|
|
478
|
-
const knowledgeBaseName = typeof knowledgeBase === "string" ? knowledgeBase : knowledgeBase.name;
|
|
479
|
-
const etag = typeof knowledgeBase !== "string" && options.onlyIfUnchanged ? knowledgeBase.etag : void 0;
|
|
480
|
-
const result = await this.client.deleteKnowledgeBase(knowledgeBaseName, {
|
|
481
|
-
...updatedOptions,
|
|
482
|
-
ifMatch: etag
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Retrieves an alias definition.
|
|
287
|
+
* @param aliasName - The name of the alias to retrieve.
|
|
288
|
+
* @param options - The options parameters.
|
|
289
|
+
*/
|
|
290
|
+
async getAlias(aliasName, options = {}) {
|
|
291
|
+
return tracingClient.withSpan("SearchIndexClient-getAlias", options, async (updatedOptions) => {
|
|
292
|
+
return this.client.getAlias(aliasName, updatedOptions);
|
|
293
|
+
});
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Retrieves statistics about an index, such as the count of documents and the size
|
|
297
|
+
* of index storage.
|
|
298
|
+
* @param indexName - The name of the index.
|
|
299
|
+
* @param options - Additional optional arguments.
|
|
300
|
+
*/
|
|
301
|
+
async getIndexStatistics(indexName, options = {}) {
|
|
302
|
+
return tracingClient.withSpan("SearchIndexClient-getIndexStatistics", options, async (updatedOptions) => {
|
|
303
|
+
return this.client.getIndexStatistics(indexName, updatedOptions);
|
|
483
304
|
});
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
const
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
return
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
)
|
|
602
|
-
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Calls an analyzer or tokenizer manually on provided text.
|
|
308
|
+
* @param indexName - The name of the index that contains the field to analyze
|
|
309
|
+
* @param text - The text to break into tokens.
|
|
310
|
+
* @param options - Additional arguments
|
|
311
|
+
*/
|
|
312
|
+
async analyzeText(indexName, options) {
|
|
313
|
+
const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options;
|
|
314
|
+
const operationOptions = {
|
|
315
|
+
abortSignal,
|
|
316
|
+
requestOptions,
|
|
317
|
+
tracingOptions,
|
|
318
|
+
};
|
|
319
|
+
return tracingClient.withSpan("SearchIndexClient-analyzeText", operationOptions, async (updatedOptions) => {
|
|
320
|
+
return this.client.analyzeText({ ...restOptions }, indexName, updatedOptions);
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Retrieves statistics about the service, such as the count of documents, index, etc.
|
|
325
|
+
* @param options - Additional optional arguments.
|
|
326
|
+
*/
|
|
327
|
+
async getServiceStatistics(options = {}) {
|
|
328
|
+
return tracingClient.withSpan("SearchIndexClient-getServiceStatistics", options, async (updatedOptions) => {
|
|
329
|
+
return this.client.getServiceStatistics(updatedOptions);
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* Creates a new knowledgebase.
|
|
334
|
+
* @param knowledgeBase - definition of the knowledgebase to create.
|
|
335
|
+
* @param options - options parameters.
|
|
336
|
+
*/
|
|
337
|
+
async createKnowledgeBase(knowledgeBase, options = {}) {
|
|
338
|
+
return tracingClient.withSpan("SearchIndexClient-createKnowledgeBase", options, async (updatedOptions) => {
|
|
339
|
+
const result = await this.client.createKnowledgeBase(utils.convertKnowledgeBaseToGenerated(knowledgeBase), updatedOptions);
|
|
340
|
+
return utils.convertKnowledgeBaseToPublic(result);
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Creates a new knowledge base or updates a knowledge base if it already exists.
|
|
345
|
+
* @param knowledgeBaseName - name of the knowledge base to create or update.
|
|
346
|
+
* @param knowledgeBase - definition of the knowledge base to create or update.
|
|
347
|
+
* @param options - options parameters.
|
|
348
|
+
*/
|
|
349
|
+
async createOrUpdateKnowledgeBase(knowledgeBaseName, knowledgeBase, options = {}) {
|
|
350
|
+
return tracingClient.withSpan("SearchIndexClient-createOrUpdateKnowledgeBase", options, async (updatedOptions) => {
|
|
351
|
+
const etag = options.onlyIfUnchanged ? knowledgeBase.etag : undefined;
|
|
352
|
+
const result = await this.client.createOrUpdateKnowledgeBase(utils.convertKnowledgeBaseToGenerated(knowledgeBase), knowledgeBaseName, {
|
|
353
|
+
...updatedOptions,
|
|
354
|
+
ifMatch: etag,
|
|
355
|
+
});
|
|
356
|
+
return utils.convertKnowledgeBaseToPublic(result);
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Retrieves a knowledge base definition.
|
|
361
|
+
* @param knowledgeBaseName - name of the knowledge base to retrieve.
|
|
362
|
+
* @param options - options parameters.
|
|
363
|
+
*/
|
|
364
|
+
async getKnowledgeBase(knowledgeBaseName, options = {}) {
|
|
365
|
+
return tracingClient.withSpan("SearchIndexClient-getKnowledgeBase", options, async (updatedOptions) => {
|
|
366
|
+
const result = await this.client.getKnowledgeBase(knowledgeBaseName, updatedOptions);
|
|
367
|
+
return utils.convertKnowledgeBaseToPublic(result);
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Retrieves a list of existing KnowledgeBases in the service.
|
|
372
|
+
* @param options - Options to the list knowledge bases operation.
|
|
373
|
+
*/
|
|
374
|
+
listKnowledgeBases(options = {}) {
|
|
375
|
+
return utils.mapPagedAsyncIterable(this.client.listKnowledgeBases(options), utils.convertKnowledgeBaseToPublic);
|
|
376
|
+
}
|
|
377
|
+
async deleteKnowledgeBase(knowledgeBase, options = {}) {
|
|
378
|
+
return tracingClient.withSpan("SearchIndexClient-deleteKnowledgeBase", options, async (updatedOptions) => {
|
|
379
|
+
const knowledgeBaseName = typeof knowledgeBase === "string" ? knowledgeBase : knowledgeBase.name;
|
|
380
|
+
const etag = typeof knowledgeBase !== "string" && options.onlyIfUnchanged
|
|
381
|
+
? knowledgeBase.etag
|
|
382
|
+
: undefined;
|
|
383
|
+
const result = await this.client.deleteKnowledgeBase(knowledgeBaseName, {
|
|
384
|
+
...updatedOptions,
|
|
385
|
+
ifMatch: etag,
|
|
386
|
+
});
|
|
387
|
+
return result;
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
async createOrUpdateKnowledgeSource(knowledgeSource, options = {}) {
|
|
391
|
+
return tracingClient.withSpan("SearchIndexClient-createOrUpdateKnowledgeSource", options, async (updatedOptions) => {
|
|
392
|
+
const etag = options.onlyIfUnchanged ? knowledgeSource.etag : undefined;
|
|
393
|
+
const result = await this.client.createOrUpdateKnowledgeSource(utils.convertKnowledgeSourceToGenerated(knowledgeSource), knowledgeSource.name, {
|
|
394
|
+
...updatedOptions,
|
|
395
|
+
ifMatch: etag,
|
|
396
|
+
});
|
|
397
|
+
return utils.convertKnowledgeSourceToPublic(result);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
async deleteKnowledgeSource(source, options = {}) {
|
|
401
|
+
return tracingClient.withSpan("SearchIndexClient-deleteKnowledgeSource", options, async (updatedOptions) => {
|
|
402
|
+
const sourceName = typeof source === "string" ? source : source.name;
|
|
403
|
+
const etag = typeof source !== "string" && options.onlyIfUnchanged ? source.etag : undefined;
|
|
404
|
+
return this.client.deleteKnowledgeSource(sourceName, { ...updatedOptions, ifMatch: etag });
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Retrieves a knowledge source definition.
|
|
409
|
+
* @param sourceName - The name of the knowledge source to retrieve.
|
|
410
|
+
* @param options - The options parameters.
|
|
411
|
+
*/
|
|
412
|
+
async getKnowledgeSource(sourceName, options = {}) {
|
|
413
|
+
return tracingClient.withSpan("SearchIndexClient-getKnowledgeSource", options, async (updatedOptions) => {
|
|
414
|
+
const result = await this.client.getKnowledgeSource(sourceName, updatedOptions);
|
|
415
|
+
return utils.convertKnowledgeSourceToPublic(result);
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* Retrieves a list of existing KnowledgeSources in the service.
|
|
420
|
+
* @param options - Options to the list knowledge sources operation.
|
|
421
|
+
*/
|
|
422
|
+
listKnowledgeSources(options = {}) {
|
|
423
|
+
return utils.mapPagedAsyncIterable(this.client.listKnowledgeSources(options), (ks) => utils.convertKnowledgeSourceToPublic(ks));
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Creates a new knowledge source.
|
|
427
|
+
* @param knowledgeSource - The definition of the knowledge source to create.
|
|
428
|
+
* @param options - The options parameters.
|
|
429
|
+
*/
|
|
430
|
+
async createKnowledgeSource(knowledgeSource, options = {}) {
|
|
431
|
+
return tracingClient.withSpan("SearchIndexClient-createKnowledgeSource", options, async (updatedOptions) => {
|
|
432
|
+
const result = await this.client.createKnowledgeSource(utils.convertKnowledgeSourceToGenerated(knowledgeSource), updatedOptions);
|
|
433
|
+
return utils.convertKnowledgeSourceToPublic(result);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* Returns the current status and synchronization history of a knowledge source.
|
|
438
|
+
* @param sourceName - The name of the knowledge source for which to retrieve status.
|
|
439
|
+
* @param options - The options parameters.
|
|
440
|
+
*/
|
|
441
|
+
async getKnowledgeSourceStatus(sourceName, options = {}) {
|
|
442
|
+
return tracingClient.withSpan("SearchIndexClient-getKnowledgeSourceStatus", options, async (updatedOptions) => {
|
|
443
|
+
return this.client.getKnowledgeSourceStatus(sourceName, updatedOptions);
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Retrieves the SearchClient corresponding to this SearchIndexClient
|
|
448
|
+
* @param indexName - Name of the index
|
|
449
|
+
* @param options - SearchClient Options
|
|
450
|
+
* @typeParam TModel - An optional type that represents the documents stored in the search index.
|
|
451
|
+
* For the best typing experience, all non-key fields should be marked optional and nullable, and
|
|
452
|
+
* the key property should have the non-nullable type `string`.
|
|
453
|
+
*/
|
|
454
|
+
getSearchClient(indexName, options) {
|
|
455
|
+
return new SearchClient(this.endpoint, indexName, this.credential, options || this.options);
|
|
456
|
+
}
|
|
457
|
+
/**
|
|
458
|
+
* Retrieves the KnowledgeRetrievalClient corresponding to this SearchIndexClient
|
|
459
|
+
* @param knowledgeBaseName - Name of the knowledge base
|
|
460
|
+
* @param options - KnowledgeRetrievalClient Options
|
|
461
|
+
*/
|
|
462
|
+
getKnowledgeRetrievalClient(knowledgeBaseName, options) {
|
|
463
|
+
return new KnowledgeRetrievalClient(this.endpoint, knowledgeBaseName, this.credential, options || this.options);
|
|
464
|
+
}
|
|
603
465
|
}
|
|
604
|
-
|
|
605
|
-
SearchIndexClient
|
|
606
|
-
};
|
|
466
|
+
//# sourceMappingURL=searchIndexClient.js.map
|