@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 { SearchIndexerClient as GeneratedClient } from "./searchIndexer/searchIndexerClient.js";
|
|
7
6
|
import { logger } from "./logger.js";
|
|
8
7
|
import { createOdataMetadataPolicy } from "./odataMetadataPolicy.js";
|
|
@@ -10,482 +9,357 @@ import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPoli
|
|
|
10
9
|
import { KnownSearchAudience } from "./searchAudience.js";
|
|
11
10
|
import * as utils from "./serviceUtils.js";
|
|
12
11
|
import { tracingClient } from "./tracing.js";
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Class to perform operations to manage
|
|
14
|
+
* (create, update, list/delete)
|
|
15
|
+
* indexers, datasources & skillsets.
|
|
16
|
+
*/
|
|
17
|
+
export class SearchIndexerClient {
|
|
18
|
+
/**
|
|
19
|
+
* The API version to use when communicating with the service.
|
|
20
|
+
*/
|
|
21
|
+
serviceVersion = utils.defaultServiceVersion;
|
|
22
|
+
/**
|
|
23
|
+
* The API version to use when communicating with the service.
|
|
24
|
+
* @deprecated use {@Link serviceVersion} instead
|
|
25
|
+
*/
|
|
26
|
+
apiVersion = utils.defaultServiceVersion;
|
|
27
|
+
/**
|
|
28
|
+
* The endpoint of the search service
|
|
29
|
+
*/
|
|
30
|
+
endpoint;
|
|
31
|
+
/**
|
|
32
|
+
* @hidden
|
|
33
|
+
* A reference to the auto-generated SearchServiceClient
|
|
34
|
+
*/
|
|
35
|
+
client;
|
|
36
|
+
/**
|
|
37
|
+
* A reference to the internal HTTP pipeline for use with raw requests
|
|
38
|
+
*/
|
|
39
|
+
pipeline;
|
|
40
|
+
/**
|
|
41
|
+
* Creates an instance of SearchIndexerClient.
|
|
42
|
+
*
|
|
43
|
+
* Example usage:
|
|
44
|
+
* ```ts snippet:ReadmeSampleSearchIndexerClient
|
|
45
|
+
* import { SearchIndexerClient, AzureKeyCredential } from "@azure/search-documents";
|
|
46
|
+
*
|
|
47
|
+
* const indexerClient = new SearchIndexerClient("<endpoint>", new AzureKeyCredential("<apiKey>"));
|
|
48
|
+
* ```
|
|
49
|
+
* @param endpoint - The endpoint of the search service
|
|
50
|
+
* @param credential - Used to authenticate requests to the service.
|
|
51
|
+
* @param options - Used to configure the Search client.
|
|
52
|
+
*/
|
|
53
|
+
constructor(endpoint, credential, options = {}) {
|
|
54
|
+
this.endpoint = endpoint;
|
|
55
|
+
const internalClientPipelineOptions = {
|
|
56
|
+
...options,
|
|
57
|
+
apiVersion: options.serviceVersion ?? options.apiVersion ?? utils.defaultServiceVersion,
|
|
58
|
+
...{
|
|
59
|
+
loggingOptions: {
|
|
60
|
+
logger: logger.info,
|
|
61
|
+
additionalAllowedHeaderNames: [
|
|
62
|
+
"elapsed-time",
|
|
63
|
+
"Location",
|
|
64
|
+
"OData-MaxVersion",
|
|
65
|
+
"OData-Version",
|
|
66
|
+
"Prefer",
|
|
67
|
+
"throttle-reason",
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
this.serviceVersion =
|
|
73
|
+
options.serviceVersion ?? options.apiVersion ?? utils.defaultServiceVersion;
|
|
74
|
+
this.apiVersion = this.serviceVersion;
|
|
75
|
+
this.client = new GeneratedClient(this.endpoint, credential, internalClientPipelineOptions);
|
|
76
|
+
this.pipeline = this.client.pipeline;
|
|
77
|
+
// Replaced with a custom policy below
|
|
78
|
+
this.pipeline.removePolicy({ name: bearerTokenAuthenticationPolicyName });
|
|
79
|
+
if (isTokenCredential(credential)) {
|
|
80
|
+
const scope = options.audience
|
|
81
|
+
? `${options.audience}/.default`
|
|
82
|
+
: `${KnownSearchAudience.AzurePublicCloud}/.default`;
|
|
83
|
+
this.client.pipeline.addPolicy(bearerTokenAuthenticationPolicy({ credential, scopes: scope }));
|
|
65
84
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
85
|
+
else {
|
|
86
|
+
this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));
|
|
87
|
+
}
|
|
88
|
+
this.client.pipeline.addPolicy(createOdataMetadataPolicy("minimal"));
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves a list of existing indexers in the service.
|
|
92
|
+
* @param options - Options to the list indexers operation.
|
|
93
|
+
*/
|
|
94
|
+
async listIndexers(options = {}) {
|
|
95
|
+
return tracingClient.withSpan("SearchIndexerClient-listIndexers", options, async (updatedOptions) => {
|
|
96
|
+
const result = await this.client.getIndexers(updatedOptions);
|
|
97
|
+
return result.indexers.map(utils.generatedSearchIndexerToPublicSearchIndexer);
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Retrieves a list of names of existing indexers in the service.
|
|
102
|
+
* @param options - Options to the list indexers operation.
|
|
103
|
+
*/
|
|
104
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
105
|
+
async listIndexersNames(options = {}) {
|
|
106
|
+
return tracingClient.withSpan("SearchIndexerClient-listIndexersNames", options, async (updatedOptions) => {
|
|
107
|
+
const result = await this.client.getIndexers({
|
|
108
|
+
...updatedOptions,
|
|
109
|
+
select: "name",
|
|
110
|
+
});
|
|
111
|
+
return result.indexers.map((idx) => idx.name);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Retrieves a list of existing data sources in the service.
|
|
116
|
+
* @param options - Options to the list indexers operation.
|
|
117
|
+
*/
|
|
118
|
+
async listDataSourceConnections(options = {}) {
|
|
119
|
+
return tracingClient.withSpan("SearchIndexerClient-listDataSourceConnections", options, async (updatedOptions) => {
|
|
120
|
+
const result = await this.client.getDataSourceConnections(updatedOptions);
|
|
121
|
+
return result.dataSources.map(utils.generatedDataSourceToPublicDataSource);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Retrieves a list of names of existing data sources in the service.
|
|
126
|
+
* @param options - Options to the list indexers operation.
|
|
127
|
+
*/
|
|
128
|
+
async listDataSourceConnectionsNames(
|
|
129
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
130
|
+
options = {}) {
|
|
131
|
+
return tracingClient.withSpan("SearchIndexerClient-listDataSourceConnectionsNames", options, async (updatedOptions) => {
|
|
132
|
+
const result = await this.client.getDataSourceConnections({
|
|
133
|
+
...updatedOptions,
|
|
134
|
+
select: "name",
|
|
135
|
+
});
|
|
136
|
+
return result.dataSources.map((ds) => ds.name);
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Retrieves a list of existing Skillsets in the service.
|
|
141
|
+
* @param options - Options to the list Skillsets operation.
|
|
142
|
+
*/
|
|
143
|
+
async listSkillsets(options = {}) {
|
|
144
|
+
return tracingClient.withSpan("SearchIndexerClient-listSkillsets", options, async (updatedOptions) => {
|
|
145
|
+
const result = await this.client.getSkillsets(updatedOptions);
|
|
146
|
+
return result.skillsets.map(utils.generatedSkillsetToPublicSkillset);
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Retrieves a list of names of existing Skillsets in the service.
|
|
151
|
+
* @param options - Options to the list Skillsets operation.
|
|
152
|
+
*/
|
|
153
|
+
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
154
|
+
async listSkillsetsNames(options = {}) {
|
|
155
|
+
return tracingClient.withSpan("SearchIndexerClient-listSkillsetsNames", options, async (updatedOptions) => {
|
|
156
|
+
const result = await this.client.getSkillsets({
|
|
157
|
+
...updatedOptions,
|
|
158
|
+
select: "name",
|
|
159
|
+
});
|
|
160
|
+
return result.skillsets.map((sks) => sks.name);
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Retrieves information about an Indexer.
|
|
165
|
+
* @param indexerName - The name of the Indexer.
|
|
166
|
+
* @param options - Additional optional arguments.
|
|
167
|
+
*/
|
|
168
|
+
async getIndexer(indexerName, options = {}) {
|
|
169
|
+
return tracingClient.withSpan("SearchIndexerClient-getIndexer", options, async (updatedOptions) => {
|
|
170
|
+
const result = await this.client.getIndexer(indexerName, updatedOptions);
|
|
171
|
+
return utils.generatedSearchIndexerToPublicSearchIndexer(result);
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Retrieves information about a DataSource
|
|
176
|
+
* @param dataSourceName - The name of the DataSource
|
|
177
|
+
* @param options - Additional optional arguments
|
|
178
|
+
*/
|
|
179
|
+
async getDataSourceConnection(dataSourceConnectionName, options = {}) {
|
|
180
|
+
return tracingClient.withSpan("SearchIndexerClient-getDataSourceConnection", options, async (updatedOptions) => {
|
|
181
|
+
const result = await this.client.getDataSourceConnection(dataSourceConnectionName, updatedOptions);
|
|
182
|
+
return utils.generatedDataSourceToPublicDataSource(result);
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves information about an Skillset.
|
|
187
|
+
* @param indexName - The name of the Skillset.
|
|
188
|
+
* @param options - Additional optional arguments.
|
|
189
|
+
*/
|
|
190
|
+
async getSkillset(skillsetName, options = {}) {
|
|
191
|
+
return tracingClient.withSpan("SearchIndexerClient-getSkillset", options, async (updatedOptions) => {
|
|
192
|
+
const result = await this.client.getSkillset(skillsetName, updatedOptions);
|
|
193
|
+
return utils.generatedSkillsetToPublicSkillset(result);
|
|
194
|
+
});
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Creates a new indexer in a search service.
|
|
198
|
+
* @param indexer - The indexer definition to create in a search service.
|
|
199
|
+
* @param options - Additional optional arguments.
|
|
200
|
+
*/
|
|
201
|
+
async createIndexer(indexer, options = {}) {
|
|
202
|
+
return tracingClient.withSpan("SearchIndexerClient-createIndexer", options, async (updatedOptions) => {
|
|
203
|
+
const result = await this.client.createIndexer(utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), updatedOptions);
|
|
204
|
+
return utils.generatedSearchIndexerToPublicSearchIndexer(result);
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Creates a new dataSource in a search service.
|
|
209
|
+
* @param dataSourceConnection - The dataSource definition to create in a search service.
|
|
210
|
+
* @param options - Additional optional arguments.
|
|
211
|
+
*/
|
|
212
|
+
async createDataSourceConnection(dataSourceConnection, options = {}) {
|
|
213
|
+
return tracingClient.withSpan("SearchIndexerClient-createDataSourceConnection", options, async (updatedOptions) => {
|
|
214
|
+
const result = await this.client.createDataSourceConnection(utils.publicDataSourceToGeneratedDataSource(dataSourceConnection), updatedOptions);
|
|
215
|
+
return utils.generatedDataSourceToPublicDataSource(result);
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Creates a new skillset in a search service.
|
|
220
|
+
* @param skillset - The skillset containing one or more skills to create in a search service.
|
|
221
|
+
* @param options - Additional optional arguments.
|
|
222
|
+
*/
|
|
223
|
+
async createSkillset(skillset, options = {}) {
|
|
224
|
+
return tracingClient.withSpan("SearchIndexerClient-createSkillset", options, async (updatedOptions) => {
|
|
225
|
+
const result = await this.client.createSkillset(utils.publicSkillsetToGeneratedSkillset(skillset), updatedOptions);
|
|
226
|
+
return utils.generatedSkillsetToPublicSkillset(result);
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Creates a new indexer or modifies an existing one.
|
|
231
|
+
* @param indexer - The information describing the indexer to be created/updated.
|
|
232
|
+
* @param options - Additional optional arguments.
|
|
233
|
+
*/
|
|
234
|
+
async createOrUpdateIndexer(indexer, options = {}) {
|
|
235
|
+
return tracingClient.withSpan("SearchIndexerClient-createOrUpdateIndexer", options, async (updatedOptions) => {
|
|
236
|
+
const { onlyIfUnchanged, ...restOptions } = updatedOptions;
|
|
237
|
+
const etag = onlyIfUnchanged ? indexer.etag : undefined;
|
|
238
|
+
const result = await this.client.createOrUpdateIndexer(utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), indexer.name, {
|
|
239
|
+
...restOptions,
|
|
240
|
+
ifMatch: etag,
|
|
241
|
+
});
|
|
242
|
+
return utils.generatedSearchIndexerToPublicSearchIndexer(result);
|
|
243
|
+
});
|
|
80
244
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Retrieves a list of names of existing indexers in the service.
|
|
99
|
-
* @param options - Options to the list indexers operation.
|
|
100
|
-
*/
|
|
101
|
-
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
102
|
-
async listIndexersNames(options = {}) {
|
|
103
|
-
return tracingClient.withSpan(
|
|
104
|
-
"SearchIndexerClient-listIndexersNames",
|
|
105
|
-
options,
|
|
106
|
-
async (updatedOptions) => {
|
|
107
|
-
const result = await this.client.getIndexers({
|
|
108
|
-
...updatedOptions,
|
|
109
|
-
select: "name"
|
|
245
|
+
/**
|
|
246
|
+
* Creates a new datasource or modifies an existing one.
|
|
247
|
+
* @param dataSourceConnection - The information describing the datasource to be created/updated.
|
|
248
|
+
* @param options - Additional optional arguments.
|
|
249
|
+
*/
|
|
250
|
+
async createOrUpdateDataSourceConnection(dataSourceConnection, options = {}) {
|
|
251
|
+
return tracingClient.withSpan("SearchIndexerClient-createOrUpdateDataSourceConnection", options, async (updatedOptions) => {
|
|
252
|
+
const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;
|
|
253
|
+
const result = await this.client.createOrUpdateDataSourceConnection(utils.publicDataSourceToGeneratedDataSource(dataSourceConnection), dataSourceConnection.name, {
|
|
254
|
+
...updatedOptions,
|
|
255
|
+
ifMatch: etag,
|
|
256
|
+
});
|
|
257
|
+
return utils.generatedDataSourceToPublicDataSource(result);
|
|
110
258
|
});
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
return result.dataSources.map(utils.generatedDataSourceToPublicDataSource);
|
|
126
|
-
}
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Retrieves a list of names of existing data sources in the service.
|
|
131
|
-
* @param options - Options to the list indexers operation.
|
|
132
|
-
*/
|
|
133
|
-
async listDataSourceConnectionsNames(options = {}) {
|
|
134
|
-
return tracingClient.withSpan(
|
|
135
|
-
"SearchIndexerClient-listDataSourceConnectionsNames",
|
|
136
|
-
options,
|
|
137
|
-
async (updatedOptions) => {
|
|
138
|
-
const result = await this.client.getDataSourceConnections({
|
|
139
|
-
...updatedOptions,
|
|
140
|
-
select: "name"
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Creates a new Skillset or modifies an existing one.
|
|
262
|
+
* @param skillset - The information describing the index to be created.
|
|
263
|
+
* @param options - Additional optional arguments.
|
|
264
|
+
*/
|
|
265
|
+
async createOrUpdateSkillset(skillset, options = {}) {
|
|
266
|
+
return tracingClient.withSpan("SearchIndexerClient-createOrUpdateSkillset", options, async (updatedOptions) => {
|
|
267
|
+
const etag = options.onlyIfUnchanged ? skillset.etag : undefined;
|
|
268
|
+
const result = await this.client.createOrUpdateSkillset(utils.publicSkillsetToGeneratedSkillset(skillset), skillset.name, {
|
|
269
|
+
...updatedOptions,
|
|
270
|
+
ifMatch: etag,
|
|
271
|
+
});
|
|
272
|
+
return utils.generatedSkillsetToPublicSkillset(result);
|
|
141
273
|
});
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Retrieves a list of names of existing Skillsets in the service.
|
|
162
|
-
* @param options - Options to the list Skillsets operation.
|
|
163
|
-
*/
|
|
164
|
-
// eslint-disable-next-line @azure/azure-sdk/ts-naming-options
|
|
165
|
-
async listSkillsetsNames(options = {}) {
|
|
166
|
-
return tracingClient.withSpan(
|
|
167
|
-
"SearchIndexerClient-listSkillsetsNames",
|
|
168
|
-
options,
|
|
169
|
-
async (updatedOptions) => {
|
|
170
|
-
const result = await this.client.getSkillsets({
|
|
171
|
-
...updatedOptions,
|
|
172
|
-
select: "name"
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Deletes an existing indexer.
|
|
277
|
+
* @param indexer - Indexer/Name of the indexer to delete.
|
|
278
|
+
* @param options - Additional optional arguments.
|
|
279
|
+
*/
|
|
280
|
+
async deleteIndexer(indexer, options = {}) {
|
|
281
|
+
return tracingClient.withSpan("SearchIndexerClient-deleteIndexer", options, async (updatedOptions) => {
|
|
282
|
+
const indexerName = typeof indexer === "string" ? indexer : indexer.name;
|
|
283
|
+
const etag = typeof indexer === "string"
|
|
284
|
+
? undefined
|
|
285
|
+
: options.onlyIfUnchanged
|
|
286
|
+
? indexer.etag
|
|
287
|
+
: undefined;
|
|
288
|
+
await this.client.deleteIndexer(indexerName, {
|
|
289
|
+
...updatedOptions,
|
|
290
|
+
ifMatch: etag,
|
|
291
|
+
});
|
|
173
292
|
});
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
* Retrieves information about a DataSource
|
|
195
|
-
* @param dataSourceName - The name of the DataSource
|
|
196
|
-
* @param options - Additional optional arguments
|
|
197
|
-
*/
|
|
198
|
-
async getDataSourceConnection(dataSourceConnectionName, options = {}) {
|
|
199
|
-
return tracingClient.withSpan(
|
|
200
|
-
"SearchIndexerClient-getDataSourceConnection",
|
|
201
|
-
options,
|
|
202
|
-
async (updatedOptions) => {
|
|
203
|
-
const result = await this.client.getDataSourceConnection(
|
|
204
|
-
dataSourceConnectionName,
|
|
205
|
-
updatedOptions
|
|
206
|
-
);
|
|
207
|
-
return utils.generatedDataSourceToPublicDataSource(result);
|
|
208
|
-
}
|
|
209
|
-
);
|
|
210
|
-
}
|
|
211
|
-
/**
|
|
212
|
-
* Retrieves information about an Skillset.
|
|
213
|
-
* @param indexName - The name of the Skillset.
|
|
214
|
-
* @param options - Additional optional arguments.
|
|
215
|
-
*/
|
|
216
|
-
async getSkillset(skillsetName, options = {}) {
|
|
217
|
-
return tracingClient.withSpan(
|
|
218
|
-
"SearchIndexerClient-getSkillset",
|
|
219
|
-
options,
|
|
220
|
-
async (updatedOptions) => {
|
|
221
|
-
const result = await this.client.getSkillset(skillsetName, updatedOptions);
|
|
222
|
-
return utils.generatedSkillsetToPublicSkillset(result);
|
|
223
|
-
}
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Creates a new indexer in a search service.
|
|
228
|
-
* @param indexer - The indexer definition to create in a search service.
|
|
229
|
-
* @param options - Additional optional arguments.
|
|
230
|
-
*/
|
|
231
|
-
async createIndexer(indexer, options = {}) {
|
|
232
|
-
return tracingClient.withSpan(
|
|
233
|
-
"SearchIndexerClient-createIndexer",
|
|
234
|
-
options,
|
|
235
|
-
async (updatedOptions) => {
|
|
236
|
-
const result = await this.client.createIndexer(
|
|
237
|
-
utils.publicSearchIndexerToGeneratedSearchIndexer(indexer),
|
|
238
|
-
updatedOptions
|
|
239
|
-
);
|
|
240
|
-
return utils.generatedSearchIndexerToPublicSearchIndexer(result);
|
|
241
|
-
}
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* Creates a new dataSource in a search service.
|
|
246
|
-
* @param dataSourceConnection - The dataSource definition to create in a search service.
|
|
247
|
-
* @param options - Additional optional arguments.
|
|
248
|
-
*/
|
|
249
|
-
async createDataSourceConnection(dataSourceConnection, options = {}) {
|
|
250
|
-
return tracingClient.withSpan(
|
|
251
|
-
"SearchIndexerClient-createDataSourceConnection",
|
|
252
|
-
options,
|
|
253
|
-
async (updatedOptions) => {
|
|
254
|
-
const result = await this.client.createDataSourceConnection(
|
|
255
|
-
utils.publicDataSourceToGeneratedDataSource(dataSourceConnection),
|
|
256
|
-
updatedOptions
|
|
257
|
-
);
|
|
258
|
-
return utils.generatedDataSourceToPublicDataSource(result);
|
|
259
|
-
}
|
|
260
|
-
);
|
|
261
|
-
}
|
|
262
|
-
/**
|
|
263
|
-
* Creates a new skillset in a search service.
|
|
264
|
-
* @param skillset - The skillset containing one or more skills to create in a search service.
|
|
265
|
-
* @param options - Additional optional arguments.
|
|
266
|
-
*/
|
|
267
|
-
async createSkillset(skillset, options = {}) {
|
|
268
|
-
return tracingClient.withSpan(
|
|
269
|
-
"SearchIndexerClient-createSkillset",
|
|
270
|
-
options,
|
|
271
|
-
async (updatedOptions) => {
|
|
272
|
-
const result = await this.client.createSkillset(
|
|
273
|
-
utils.publicSkillsetToGeneratedSkillset(skillset),
|
|
274
|
-
updatedOptions
|
|
275
|
-
);
|
|
276
|
-
return utils.generatedSkillsetToPublicSkillset(result);
|
|
277
|
-
}
|
|
278
|
-
);
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Creates a new indexer or modifies an existing one.
|
|
282
|
-
* @param indexer - The information describing the indexer to be created/updated.
|
|
283
|
-
* @param options - Additional optional arguments.
|
|
284
|
-
*/
|
|
285
|
-
async createOrUpdateIndexer(indexer, options = {}) {
|
|
286
|
-
return tracingClient.withSpan(
|
|
287
|
-
"SearchIndexerClient-createOrUpdateIndexer",
|
|
288
|
-
options,
|
|
289
|
-
async (updatedOptions) => {
|
|
290
|
-
const { onlyIfUnchanged, ...restOptions } = updatedOptions;
|
|
291
|
-
const etag = onlyIfUnchanged ? indexer.etag : void 0;
|
|
292
|
-
const result = await this.client.createOrUpdateIndexer(
|
|
293
|
-
utils.publicSearchIndexerToGeneratedSearchIndexer(indexer),
|
|
294
|
-
indexer.name,
|
|
295
|
-
{
|
|
296
|
-
...restOptions,
|
|
297
|
-
ifMatch: etag
|
|
298
|
-
}
|
|
299
|
-
);
|
|
300
|
-
return utils.generatedSearchIndexerToPublicSearchIndexer(result);
|
|
301
|
-
}
|
|
302
|
-
);
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Creates a new datasource or modifies an existing one.
|
|
306
|
-
* @param dataSourceConnection - The information describing the datasource to be created/updated.
|
|
307
|
-
* @param options - Additional optional arguments.
|
|
308
|
-
*/
|
|
309
|
-
async createOrUpdateDataSourceConnection(dataSourceConnection, options = {}) {
|
|
310
|
-
return tracingClient.withSpan(
|
|
311
|
-
"SearchIndexerClient-createOrUpdateDataSourceConnection",
|
|
312
|
-
options,
|
|
313
|
-
async (updatedOptions) => {
|
|
314
|
-
const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : void 0;
|
|
315
|
-
const result = await this.client.createOrUpdateDataSourceConnection(
|
|
316
|
-
utils.publicDataSourceToGeneratedDataSource(dataSourceConnection),
|
|
317
|
-
dataSourceConnection.name,
|
|
318
|
-
{
|
|
319
|
-
...updatedOptions,
|
|
320
|
-
ifMatch: etag
|
|
321
|
-
}
|
|
322
|
-
);
|
|
323
|
-
return utils.generatedDataSourceToPublicDataSource(result);
|
|
324
|
-
}
|
|
325
|
-
);
|
|
326
|
-
}
|
|
327
|
-
/**
|
|
328
|
-
* Creates a new Skillset or modifies an existing one.
|
|
329
|
-
* @param skillset - The information describing the index to be created.
|
|
330
|
-
* @param options - Additional optional arguments.
|
|
331
|
-
*/
|
|
332
|
-
async createOrUpdateSkillset(skillset, options = {}) {
|
|
333
|
-
return tracingClient.withSpan(
|
|
334
|
-
"SearchIndexerClient-createOrUpdateSkillset",
|
|
335
|
-
options,
|
|
336
|
-
async (updatedOptions) => {
|
|
337
|
-
const etag = options.onlyIfUnchanged ? skillset.etag : void 0;
|
|
338
|
-
const result = await this.client.createOrUpdateSkillset(
|
|
339
|
-
utils.publicSkillsetToGeneratedSkillset(skillset),
|
|
340
|
-
skillset.name,
|
|
341
|
-
{
|
|
342
|
-
...updatedOptions,
|
|
343
|
-
ifMatch: etag
|
|
344
|
-
}
|
|
345
|
-
);
|
|
346
|
-
return utils.generatedSkillsetToPublicSkillset(result);
|
|
347
|
-
}
|
|
348
|
-
);
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Deletes an existing indexer.
|
|
352
|
-
* @param indexer - Indexer/Name of the indexer to delete.
|
|
353
|
-
* @param options - Additional optional arguments.
|
|
354
|
-
*/
|
|
355
|
-
async deleteIndexer(indexer, options = {}) {
|
|
356
|
-
return tracingClient.withSpan(
|
|
357
|
-
"SearchIndexerClient-deleteIndexer",
|
|
358
|
-
options,
|
|
359
|
-
async (updatedOptions) => {
|
|
360
|
-
const indexerName = typeof indexer === "string" ? indexer : indexer.name;
|
|
361
|
-
const etag = typeof indexer === "string" ? void 0 : options.onlyIfUnchanged ? indexer.etag : void 0;
|
|
362
|
-
await this.client.deleteIndexer(indexerName, {
|
|
363
|
-
...updatedOptions,
|
|
364
|
-
ifMatch: etag
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Deletes an existing datasource.
|
|
296
|
+
* @param dataSource - Datasource/Name of the datasource to delete.
|
|
297
|
+
* @param options - Additional optional arguments.
|
|
298
|
+
*/
|
|
299
|
+
async deleteDataSourceConnection(dataSourceConnection, options = {}) {
|
|
300
|
+
return tracingClient.withSpan("SearchIndexerClient-deleteDataSourceConnection", options, async (updatedOptions) => {
|
|
301
|
+
const dataSourceConnectionName = typeof dataSourceConnection === "string"
|
|
302
|
+
? dataSourceConnection
|
|
303
|
+
: dataSourceConnection.name;
|
|
304
|
+
const etag = typeof dataSourceConnection === "string"
|
|
305
|
+
? undefined
|
|
306
|
+
: options.onlyIfUnchanged
|
|
307
|
+
? dataSourceConnection.etag
|
|
308
|
+
: undefined;
|
|
309
|
+
await this.client.deleteDataSourceConnection(dataSourceConnectionName, {
|
|
310
|
+
...updatedOptions,
|
|
311
|
+
ifMatch: etag,
|
|
312
|
+
});
|
|
365
313
|
});
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Deletes an existing Skillset.
|
|
317
|
+
* @param skillset - Skillset/Name of the Skillset to delete.
|
|
318
|
+
* @param options - Additional optional arguments.
|
|
319
|
+
*/
|
|
320
|
+
async deleteSkillset(skillset, options = {}) {
|
|
321
|
+
return tracingClient.withSpan("SearchIndexerClient-deleteSkillset", options, async (updatedOptions) => {
|
|
322
|
+
const skillsetName = typeof skillset === "string" ? skillset : skillset.name;
|
|
323
|
+
const etag = typeof skillset === "string"
|
|
324
|
+
? undefined
|
|
325
|
+
: options.onlyIfUnchanged
|
|
326
|
+
? skillset.etag
|
|
327
|
+
: undefined;
|
|
328
|
+
await this.client.deleteSkillset(skillsetName, {
|
|
329
|
+
...updatedOptions,
|
|
330
|
+
ifMatch: etag,
|
|
331
|
+
});
|
|
384
332
|
});
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return tracingClient.withSpan(
|
|
395
|
-
"SearchIndexerClient-deleteSkillset",
|
|
396
|
-
options,
|
|
397
|
-
async (updatedOptions) => {
|
|
398
|
-
const skillsetName = typeof skillset === "string" ? skillset : skillset.name;
|
|
399
|
-
const etag = typeof skillset === "string" ? void 0 : options.onlyIfUnchanged ? skillset.etag : void 0;
|
|
400
|
-
await this.client.deleteSkillset(skillsetName, {
|
|
401
|
-
...updatedOptions,
|
|
402
|
-
ifMatch: etag
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Returns the current status and execution history of an indexer.
|
|
336
|
+
* @param indexerName - The name of the indexer.
|
|
337
|
+
* @param options - Additional optional arguments.
|
|
338
|
+
*/
|
|
339
|
+
async getIndexerStatus(indexerName, options = {}) {
|
|
340
|
+
return tracingClient.withSpan("SearchIndexerClient-getIndexerStatus", options, async (updatedOptions) => {
|
|
341
|
+
return this.client.getIndexerStatus(indexerName, updatedOptions);
|
|
403
342
|
});
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
* @param indexerName - The name of the indexer to reset.
|
|
424
|
-
* @param options - Additional optional arguments.
|
|
425
|
-
*/
|
|
426
|
-
async resetIndexer(indexerName, options = {}) {
|
|
427
|
-
return tracingClient.withSpan(
|
|
428
|
-
"SearchIndexerClient-resetIndexer",
|
|
429
|
-
options,
|
|
430
|
-
async (updatedOptions) => {
|
|
431
|
-
await this.client.resetIndexer(indexerName, updatedOptions);
|
|
432
|
-
}
|
|
433
|
-
);
|
|
434
|
-
}
|
|
435
|
-
/**
|
|
436
|
-
* Runs an indexer on-demand.
|
|
437
|
-
* @param indexerName - The name of the indexer to run.
|
|
438
|
-
* @param options - Additional optional arguments.
|
|
439
|
-
*/
|
|
440
|
-
async runIndexer(indexerName, options = {}) {
|
|
441
|
-
return tracingClient.withSpan(
|
|
442
|
-
"SearchIndexerClient-runIndexer",
|
|
443
|
-
options,
|
|
444
|
-
async (updatedOptions) => {
|
|
445
|
-
await this.client.runIndexer(indexerName, updatedOptions);
|
|
446
|
-
}
|
|
447
|
-
);
|
|
448
|
-
}
|
|
449
|
-
/**
|
|
450
|
-
* Resets specific documents in the datasource to be selectively re-ingested by the indexer.
|
|
451
|
-
* @param indexerName - The name of the indexer to reset documents for.
|
|
452
|
-
* @param options - Additional optional arguments.
|
|
453
|
-
*/
|
|
454
|
-
async resetDocuments(indexerName, options = {}) {
|
|
455
|
-
return tracingClient.withSpan(
|
|
456
|
-
"SearchIndexerClient-resetDocs",
|
|
457
|
-
options,
|
|
458
|
-
async (updatedOptions) => {
|
|
459
|
-
await this.client.resetDocuments(indexerName, {
|
|
460
|
-
...updatedOptions,
|
|
461
|
-
keysOrIds: {
|
|
462
|
-
documentKeys: updatedOptions.documentKeys,
|
|
463
|
-
datasourceDocumentIds: updatedOptions.datasourceDocumentIds
|
|
464
|
-
}
|
|
343
|
+
}
|
|
344
|
+
/**
|
|
345
|
+
* Resets the change tracking state associated with an indexer.
|
|
346
|
+
* @param indexerName - The name of the indexer to reset.
|
|
347
|
+
* @param options - Additional optional arguments.
|
|
348
|
+
*/
|
|
349
|
+
async resetIndexer(indexerName, options = {}) {
|
|
350
|
+
return tracingClient.withSpan("SearchIndexerClient-resetIndexer", options, async (updatedOptions) => {
|
|
351
|
+
await this.client.resetIndexer(indexerName, updatedOptions);
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Runs an indexer on-demand.
|
|
356
|
+
* @param indexerName - The name of the indexer to run.
|
|
357
|
+
* @param options - Additional optional arguments.
|
|
358
|
+
*/
|
|
359
|
+
async runIndexer(indexerName, options = {}) {
|
|
360
|
+
return tracingClient.withSpan("SearchIndexerClient-runIndexer", options, async (updatedOptions) => {
|
|
361
|
+
await this.client.runIndexer(indexerName, updatedOptions);
|
|
465
362
|
});
|
|
466
|
-
|
|
467
|
-
);
|
|
468
|
-
}
|
|
469
|
-
/**
|
|
470
|
-
* Reset an existing skillset in a search service.
|
|
471
|
-
* @param skillsetName - The name of the skillset to reset.
|
|
472
|
-
* @param skillNames - The names of skills to reset.
|
|
473
|
-
* @param options - The options parameters.
|
|
474
|
-
*/
|
|
475
|
-
async resetSkills(skillsetName, options = {}) {
|
|
476
|
-
return tracingClient.withSpan(
|
|
477
|
-
"SearchIndexerClient-resetSkills",
|
|
478
|
-
options,
|
|
479
|
-
async (updatedOptions) => {
|
|
480
|
-
await this.client.resetSkills(
|
|
481
|
-
{ skillNames: options.skillNames },
|
|
482
|
-
skillsetName,
|
|
483
|
-
updatedOptions
|
|
484
|
-
);
|
|
485
|
-
}
|
|
486
|
-
);
|
|
487
|
-
}
|
|
363
|
+
}
|
|
488
364
|
}
|
|
489
|
-
|
|
490
|
-
SearchIndexerClient
|
|
491
|
-
};
|
|
365
|
+
//# sourceMappingURL=searchIndexerClient.js.map
|