@azure/search-documents 12.1.0 → 12.2.0-alpha.20241209.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/browser/base64-browser.d.mts.map +1 -0
- package/dist/browser/base64-browser.mjs.map +1 -0
- package/dist/browser/base64.d.ts +11 -0
- package/{dist-esm/src/base64.browser.js → dist/browser/base64.js} +2 -2
- package/dist/browser/errorModels.d.ts +50 -0
- package/dist/browser/errorModels.d.ts.map +1 -0
- package/dist/browser/errorModels.js +4 -0
- package/dist/browser/errorModels.js.map +1 -0
- package/dist/browser/generated/data/index.d.ts +4 -0
- package/dist/browser/generated/data/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/data/index.js +3 -3
- package/dist/browser/generated/data/index.js.map +1 -0
- package/dist/browser/generated/data/models/index.d.ts +1289 -0
- package/dist/browser/generated/data/models/index.d.ts.map +1 -0
- package/dist/browser/generated/data/models/index.js +286 -0
- package/dist/browser/generated/data/models/index.js.map +1 -0
- package/dist/browser/generated/data/models/mappers.d.ts +51 -0
- package/dist/browser/generated/data/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/data/models/mappers.js +481 -0
- package/dist/browser/generated/data/models/mappers.js.map +1 -0
- package/dist/browser/generated/data/models/parameters.d.ts +62 -0
- package/dist/browser/generated/data/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/data/models/parameters.js +52 -1
- package/dist/browser/generated/data/models/parameters.js.map +1 -0
- package/dist/browser/generated/data/operations/documents.d.ts +70 -0
- package/dist/browser/generated/data/operations/documents.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/data/operations/documents.js +7 -2
- package/dist/browser/generated/data/operations/documents.js.map +1 -0
- package/dist/browser/generated/data/operations/index.d.ts +2 -0
- package/dist/browser/generated/data/operations/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/data/operationsInterfaces → dist/browser/generated/data/operations}/index.js +1 -1
- package/dist/browser/generated/data/operations/index.js.map +1 -0
- package/dist/browser/generated/data/operationsInterfaces/documents.d.ts +62 -0
- package/dist/browser/generated/data/operationsInterfaces/documents.d.ts.map +1 -0
- package/dist/browser/generated/data/operationsInterfaces/documents.js.map +1 -0
- package/dist/browser/generated/data/operationsInterfaces/index.d.ts +2 -0
- package/dist/browser/generated/data/operationsInterfaces/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/data/operations → dist/browser/generated/data/operationsInterfaces}/index.js +1 -1
- package/dist/browser/generated/data/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/generated/data/searchClient.d.ts +21 -0
- package/dist/browser/generated/data/searchClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/data/searchClient.js +2 -2
- package/dist/browser/generated/data/searchClient.js.map +1 -0
- package/dist/browser/generated/service/index.d.ts +4 -0
- package/dist/browser/generated/service/index.d.ts.map +1 -0
- package/dist/browser/generated/service/index.js +11 -0
- package/dist/browser/generated/service/index.js.map +1 -0
- package/{types/search-documents.d.ts → dist/browser/generated/service/models/index.d.ts} +4327 -5965
- package/dist/browser/generated/service/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/models/index.js +210 -84
- package/dist/browser/generated/service/models/index.js.map +1 -0
- package/dist/browser/generated/service/models/mappers.d.ts +294 -0
- package/dist/browser/generated/service/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/models/mappers.js +815 -77
- package/dist/browser/generated/service/models/mappers.js.map +1 -0
- package/dist/browser/generated/service/models/parameters.d.ts +29 -0
- package/dist/browser/generated/service/models/parameters.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/models/parameters.js +51 -1
- package/dist/browser/generated/service/models/parameters.js.map +1 -0
- package/dist/browser/generated/service/operations/aliases.d.ts +44 -0
- package/dist/browser/generated/service/operations/aliases.d.ts.map +1 -0
- package/dist/browser/generated/service/operations/aliases.js +160 -0
- package/dist/browser/generated/service/operations/aliases.js.map +1 -0
- package/dist/browser/generated/service/operations/dataSources.d.ts +43 -0
- package/dist/browser/generated/service/operations/dataSources.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/operations/dataSources.js +6 -3
- package/dist/browser/generated/service/operations/dataSources.js.map +1 -0
- package/dist/browser/generated/service/operations/index.d.ts +7 -0
- package/dist/browser/generated/service/operations/index.d.ts.map +1 -0
- package/dist/browser/generated/service/operations/index.js +14 -0
- package/dist/browser/generated/service/operations/index.js.map +1 -0
- package/dist/browser/generated/service/operations/indexers.d.ts +67 -0
- package/dist/browser/generated/service/operations/indexers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/operations/indexers.js +31 -3
- package/dist/browser/generated/service/operations/indexers.js.map +1 -0
- package/dist/browser/generated/service/operations/indexes.d.ts +58 -0
- package/dist/browser/generated/service/operations/indexes.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/operations/indexes.js +2 -2
- package/dist/browser/generated/service/operations/indexes.js.map +1 -0
- package/dist/browser/generated/service/operations/skillsets.d.ts +50 -0
- package/dist/browser/generated/service/operations/skillsets.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/operations/skillsets.js +32 -3
- package/dist/browser/generated/service/operations/skillsets.js.map +1 -0
- package/dist/browser/generated/service/operations/synonymMaps.d.ts +43 -0
- package/dist/browser/generated/service/operations/synonymMaps.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/operations/synonymMaps.js +2 -2
- package/dist/browser/generated/service/operations/synonymMaps.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/aliases.d.ts +36 -0
- package/dist/browser/generated/service/operationsInterfaces/aliases.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/aliases.js +9 -0
- package/dist/browser/generated/service/operationsInterfaces/aliases.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/dataSources.d.ts +35 -0
- package/dist/browser/generated/service/operationsInterfaces/dataSources.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/dataSources.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/index.d.ts +7 -0
- package/dist/browser/generated/service/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/index.js +14 -0
- package/dist/browser/generated/service/operationsInterfaces/index.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/indexers.d.ts +59 -0
- package/dist/browser/generated/service/operationsInterfaces/indexers.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/indexers.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/indexes.d.ts +50 -0
- package/dist/browser/generated/service/operationsInterfaces/indexes.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/indexes.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/skillsets.d.ts +42 -0
- package/dist/browser/generated/service/operationsInterfaces/skillsets.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/skillsets.js.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/synonymMaps.d.ts +35 -0
- package/dist/browser/generated/service/operationsInterfaces/synonymMaps.d.ts.map +1 -0
- package/dist/browser/generated/service/operationsInterfaces/synonymMaps.js.map +1 -0
- package/dist/browser/generated/service/searchServiceClient.d.ts +29 -0
- package/dist/browser/generated/service/searchServiceClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/generated/service/searchServiceClient.js +5 -4
- package/dist/browser/generated/service/searchServiceClient.js.map +1 -0
- package/dist/browser/geographyPoint.d.ts +27 -0
- package/dist/browser/geographyPoint.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/geographyPoint.js +1 -1
- package/{dist-esm/src → dist/browser}/geographyPoint.js.map +1 -1
- package/dist/browser/index.d.ts +15 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/dist/browser/index.js +16 -0
- package/dist/browser/index.js.map +1 -0
- package/dist/browser/indexDocumentsBatch.d.ts +41 -0
- package/dist/browser/indexDocumentsBatch.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/indexDocumentsBatch.js +1 -1
- package/dist/browser/indexDocumentsBatch.js.map +1 -0
- package/dist/browser/indexModels.d.ts +821 -0
- package/dist/browser/indexModels.d.ts.map +1 -0
- package/dist/browser/indexModels.js +4 -0
- package/dist/browser/indexModels.js.map +1 -0
- package/dist/browser/logger.d.ts +5 -0
- package/dist/browser/logger.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/logger.js +1 -1
- package/{dist-esm/src → dist/browser}/logger.js.map +1 -1
- package/dist/browser/odata.d.ts +14 -0
- package/dist/browser/odata.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/odata.js +1 -1
- package/{dist-esm/src → dist/browser}/odata.js.map +1 -1
- package/dist/browser/odataMetadataPolicy.d.ts +9 -0
- package/dist/browser/odataMetadataPolicy.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/odataMetadataPolicy.js +1 -1
- package/dist/browser/odataMetadataPolicy.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/searchApiKeyCredentialPolicy.d.ts +8 -0
- package/dist/browser/searchApiKeyCredentialPolicy.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/searchApiKeyCredentialPolicy.js +1 -1
- package/dist/browser/searchApiKeyCredentialPolicy.js.map +1 -0
- package/dist/browser/searchAudience.d.ts +18 -0
- package/dist/browser/searchAudience.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/searchAudience.js +1 -1
- package/{dist-esm/src → dist/browser}/searchAudience.js.map +1 -1
- package/dist/browser/searchClient.d.ts +273 -0
- package/dist/browser/searchClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/searchClient.js +66 -22
- package/dist/browser/searchClient.js.map +1 -0
- package/dist/browser/searchIndexClient.d.ts +215 -0
- package/dist/browser/searchIndexClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/searchIndexClient.js +174 -22
- package/dist/browser/searchIndexClient.js.map +1 -0
- package/dist/browser/searchIndexerClient.d.ts +205 -0
- package/dist/browser/searchIndexerClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/searchIndexerClient.js +60 -9
- package/dist/browser/searchIndexerClient.js.map +1 -0
- package/dist/browser/searchIndexingBufferedSender.d.ts +193 -0
- package/dist/browser/searchIndexingBufferedSender.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/searchIndexingBufferedSender.js +5 -5
- package/dist/browser/searchIndexingBufferedSender.js.map +1 -0
- package/dist/browser/serialization.d.ts +3 -0
- package/dist/browser/serialization.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/serialization.js +3 -3
- package/dist/browser/serialization.js.map +1 -0
- package/dist/browser/serviceModels.d.ts +2419 -0
- package/dist/browser/serviceModels.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/serviceModels.js +1 -1
- package/dist/browser/serviceModels.js.map +1 -0
- package/dist/browser/serviceUtils.d.ts +36 -0
- package/dist/browser/serviceUtils.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/serviceUtils.js +113 -27
- package/dist/browser/serviceUtils.js.map +1 -0
- package/dist/browser/synonymMapHelper-browser.d.mts.map +1 -0
- package/dist/browser/synonymMapHelper-browser.mjs.map +1 -0
- package/dist/browser/synonymMapHelper.d.ts +11 -0
- package/{dist-esm/src/synonymMapHelper.browser.js → dist/browser/synonymMapHelper.js} +2 -2
- package/dist/browser/tracing.d.ts +7 -0
- package/dist/browser/tracing.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/tracing.js +1 -1
- package/{dist-esm/src → dist/browser}/tracing.js.map +1 -1
- package/dist/browser/walk.d.ts +2 -0
- package/dist/browser/walk.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/walk.js +1 -1
- package/{dist-esm/src → dist/browser}/walk.js.map +1 -1
- package/dist/commonjs/base64.d.ts +11 -0
- package/dist/commonjs/base64.d.ts.map +1 -0
- package/dist/commonjs/base64.js +21 -0
- package/dist/commonjs/base64.js.map +1 -0
- package/dist/commonjs/errorModels.d.ts +50 -0
- package/dist/commonjs/errorModels.d.ts.map +1 -0
- package/dist/commonjs/errorModels.js +5 -0
- package/dist/commonjs/errorModels.js.map +1 -0
- package/dist/commonjs/generated/data/index.d.ts +4 -0
- package/dist/commonjs/generated/data/index.d.ts.map +1 -0
- package/dist/commonjs/generated/data/index.js +16 -0
- package/dist/commonjs/generated/data/index.js.map +1 -0
- package/dist/commonjs/generated/data/models/index.d.ts +1289 -0
- package/dist/commonjs/generated/data/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/data/models/index.js +289 -0
- package/dist/commonjs/generated/data/models/index.js.map +1 -0
- package/dist/commonjs/generated/data/models/mappers.d.ts +51 -0
- package/dist/commonjs/generated/data/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/data/models/mappers.js +1438 -0
- package/dist/commonjs/generated/data/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/data/models/parameters.d.ts +62 -0
- package/dist/commonjs/generated/data/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/data/models/parameters.js +623 -0
- package/dist/commonjs/generated/data/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/data/operations/documents.d.ts +70 -0
- package/dist/commonjs/generated/data/operations/documents.d.ts.map +1 -0
- package/dist/commonjs/generated/data/operations/documents.js +317 -0
- package/dist/commonjs/generated/data/operations/documents.js.map +1 -0
- package/dist/commonjs/generated/data/operations/index.d.ts +2 -0
- package/dist/commonjs/generated/data/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/data/operations/index.js +12 -0
- package/dist/commonjs/generated/data/operations/index.js.map +1 -0
- package/dist/commonjs/generated/data/operationsInterfaces/documents.d.ts +62 -0
- package/dist/commonjs/generated/data/operationsInterfaces/documents.d.ts.map +1 -0
- package/dist/commonjs/generated/data/operationsInterfaces/documents.js +10 -0
- package/dist/commonjs/generated/data/operationsInterfaces/documents.js.map +1 -0
- package/dist/commonjs/generated/data/operationsInterfaces/index.d.ts +2 -0
- package/dist/commonjs/generated/data/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/data/operationsInterfaces/index.js +12 -0
- package/dist/commonjs/generated/data/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/data/searchClient.d.ts +21 -0
- package/dist/commonjs/generated/data/searchClient.d.ts.map +1 -0
- package/dist/commonjs/generated/data/searchClient.js +83 -0
- package/dist/commonjs/generated/data/searchClient.js.map +1 -0
- package/dist/commonjs/generated/service/index.d.ts +4 -0
- package/dist/commonjs/generated/service/index.d.ts.map +1 -0
- package/dist/commonjs/generated/service/index.js +16 -0
- package/dist/commonjs/generated/service/index.js.map +1 -0
- package/dist/commonjs/generated/service/models/index.d.ts +4737 -0
- package/dist/commonjs/generated/service/models/index.d.ts.map +1 -0
- package/dist/commonjs/generated/service/models/index.js +1509 -0
- package/dist/commonjs/generated/service/models/index.js.map +1 -0
- package/dist/commonjs/generated/service/models/mappers.d.ts +294 -0
- package/dist/commonjs/generated/service/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/generated/service/models/mappers.js +6189 -0
- package/dist/commonjs/generated/service/models/mappers.js.map +1 -0
- package/dist/commonjs/generated/service/models/parameters.d.ts +29 -0
- package/dist/commonjs/generated/service/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/generated/service/models/parameters.js +226 -0
- package/dist/commonjs/generated/service/models/parameters.js.map +1 -0
- package/dist/commonjs/generated/service/operations/aliases.d.ts +44 -0
- package/dist/commonjs/generated/service/operations/aliases.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/aliases.js +165 -0
- package/dist/commonjs/generated/service/operations/aliases.js.map +1 -0
- package/dist/commonjs/generated/service/operations/dataSources.d.ts +43 -0
- package/dist/commonjs/generated/service/operations/dataSources.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/dataSources.js +167 -0
- package/dist/commonjs/generated/service/operations/dataSources.js.map +1 -0
- package/dist/commonjs/generated/service/operations/index.d.ts +7 -0
- package/dist/commonjs/generated/service/operations/index.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/index.js +17 -0
- package/dist/commonjs/generated/service/operations/index.js.map +1 -0
- package/dist/commonjs/generated/service/operations/indexers.d.ts +67 -0
- package/dist/commonjs/generated/service/operations/indexers.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/indexers.js +260 -0
- package/dist/commonjs/generated/service/operations/indexers.js.map +1 -0
- package/dist/commonjs/generated/service/operations/indexes.d.ts +58 -0
- package/dist/commonjs/generated/service/operations/indexes.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/indexes.js +217 -0
- package/dist/commonjs/generated/service/operations/indexes.js.map +1 -0
- package/dist/commonjs/generated/service/operations/skillsets.d.ts +50 -0
- package/dist/commonjs/generated/service/operations/skillsets.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/skillsets.js +193 -0
- package/dist/commonjs/generated/service/operations/skillsets.js.map +1 -0
- package/dist/commonjs/generated/service/operations/synonymMaps.d.ts +43 -0
- package/dist/commonjs/generated/service/operations/synonymMaps.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operations/synonymMaps.js +164 -0
- package/dist/commonjs/generated/service/operations/synonymMaps.js.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/aliases.d.ts +36 -0
- package/dist/commonjs/generated/service/operationsInterfaces/aliases.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/aliases.js +10 -0
- package/dist/commonjs/generated/service/operationsInterfaces/aliases.js.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/dataSources.d.ts +35 -0
- package/dist/commonjs/generated/service/operationsInterfaces/dataSources.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/dataSources.js +10 -0
- package/dist/commonjs/generated/service/operationsInterfaces/dataSources.js.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/index.d.ts +7 -0
- package/dist/commonjs/generated/service/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/index.js +17 -0
- package/dist/commonjs/generated/service/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexers.d.ts +59 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexers.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexers.js +10 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexers.js.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexes.d.ts +50 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexes.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexes.js +10 -0
- package/dist/commonjs/generated/service/operationsInterfaces/indexes.js.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/skillsets.d.ts +42 -0
- package/dist/commonjs/generated/service/operationsInterfaces/skillsets.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/skillsets.js +10 -0
- package/{dist-esm/src → dist/commonjs}/generated/service/operationsInterfaces/skillsets.js.map +1 -1
- package/dist/commonjs/generated/service/operationsInterfaces/synonymMaps.d.ts +35 -0
- package/dist/commonjs/generated/service/operationsInterfaces/synonymMaps.d.ts.map +1 -0
- package/dist/commonjs/generated/service/operationsInterfaces/synonymMaps.js +10 -0
- package/dist/commonjs/generated/service/operationsInterfaces/synonymMaps.js.map +1 -0
- package/dist/commonjs/generated/service/searchServiceClient.d.ts +29 -0
- package/dist/commonjs/generated/service/searchServiceClient.d.ts.map +1 -0
- package/dist/commonjs/generated/service/searchServiceClient.js +111 -0
- package/dist/commonjs/generated/service/searchServiceClient.js.map +1 -0
- package/dist/commonjs/geographyPoint.d.ts +27 -0
- package/dist/commonjs/geographyPoint.d.ts.map +1 -0
- package/dist/commonjs/geographyPoint.js +31 -0
- package/dist/commonjs/geographyPoint.js.map +1 -0
- package/dist/commonjs/index.d.ts +15 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +93 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/indexDocumentsBatch.d.ts +41 -0
- package/dist/commonjs/indexDocumentsBatch.d.ts.map +1 -0
- package/dist/commonjs/indexDocumentsBatch.js +67 -0
- package/dist/commonjs/indexDocumentsBatch.js.map +1 -0
- package/dist/commonjs/indexModels.d.ts +821 -0
- package/dist/commonjs/indexModels.d.ts.map +1 -0
- package/dist/commonjs/indexModels.js +5 -0
- package/dist/commonjs/indexModels.js.map +1 -0
- package/dist/commonjs/logger.d.ts +5 -0
- package/dist/commonjs/logger.d.ts.map +1 -0
- package/dist/commonjs/logger.js +11 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/odata.d.ts +14 -0
- package/dist/commonjs/odata.d.ts.map +1 -0
- package/dist/commonjs/odata.js +50 -0
- package/dist/commonjs/odata.js.map +1 -0
- package/dist/commonjs/odataMetadataPolicy.d.ts +9 -0
- package/dist/commonjs/odataMetadataPolicy.d.ts.map +1 -0
- package/dist/commonjs/odataMetadataPolicy.js +21 -0
- package/dist/commonjs/odataMetadataPolicy.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/searchApiKeyCredentialPolicy.d.ts +8 -0
- package/dist/commonjs/searchApiKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/commonjs/searchApiKeyCredentialPolicy.js +23 -0
- package/dist/commonjs/searchApiKeyCredentialPolicy.js.map +1 -0
- package/dist/commonjs/searchAudience.d.ts +18 -0
- package/dist/commonjs/searchAudience.d.ts.map +1 -0
- package/dist/commonjs/searchAudience.js +24 -0
- package/dist/commonjs/searchAudience.js.map +1 -0
- package/dist/commonjs/searchClient.d.ts +273 -0
- package/dist/commonjs/searchClient.d.ts.map +1 -0
- package/dist/commonjs/searchClient.js +668 -0
- package/dist/commonjs/searchClient.js.map +1 -0
- package/dist/commonjs/searchIndexClient.d.ts +215 -0
- package/dist/commonjs/searchIndexClient.d.ts.map +1 -0
- package/dist/commonjs/searchIndexClient.js +663 -0
- package/dist/commonjs/searchIndexClient.js.map +1 -0
- package/dist/commonjs/searchIndexerClient.d.ts +205 -0
- package/dist/commonjs/searchIndexerClient.d.ts.map +1 -0
- package/dist/commonjs/searchIndexerClient.js +604 -0
- package/dist/commonjs/searchIndexerClient.js.map +1 -0
- package/dist/commonjs/searchIndexingBufferedSender.d.ts +193 -0
- package/dist/commonjs/searchIndexingBufferedSender.d.ts.map +1 -0
- package/dist/commonjs/searchIndexingBufferedSender.js +288 -0
- package/dist/commonjs/searchIndexingBufferedSender.js.map +1 -0
- package/dist/commonjs/serialization.d.ts +3 -0
- package/dist/commonjs/serialization.d.ts.map +1 -0
- package/dist/commonjs/serialization.js +149 -0
- package/dist/commonjs/serialization.js.map +1 -0
- package/dist/commonjs/serviceModels.d.ts +2419 -0
- package/dist/commonjs/serviceModels.d.ts.map +1 -0
- package/dist/commonjs/serviceModels.js +658 -0
- package/dist/commonjs/serviceModels.js.map +1 -0
- package/dist/commonjs/serviceUtils.d.ts +36 -0
- package/dist/commonjs/serviceUtils.d.ts.map +1 -0
- package/dist/commonjs/serviceUtils.js +549 -0
- package/dist/commonjs/serviceUtils.js.map +1 -0
- package/dist/commonjs/synonymMapHelper.d.ts +10 -0
- package/dist/commonjs/synonymMapHelper.d.ts.map +1 -0
- package/dist/commonjs/synonymMapHelper.js +28 -0
- package/dist/commonjs/synonymMapHelper.js.map +1 -0
- package/dist/commonjs/tracing.d.ts +7 -0
- package/dist/commonjs/tracing.d.ts.map +1 -0
- package/dist/commonjs/tracing.js +16 -0
- package/dist/commonjs/tracing.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -0
- package/dist/commonjs/walk.d.ts +2 -0
- package/dist/commonjs/walk.d.ts.map +1 -0
- package/dist/commonjs/walk.js +82 -0
- package/dist/commonjs/walk.js.map +1 -0
- package/dist/esm/base64.d.ts +11 -0
- package/dist/esm/base64.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/base64.js +1 -1
- package/{dist-esm/src → dist/esm}/base64.js.map +1 -1
- package/dist/esm/errorModels.d.ts +50 -0
- package/dist/esm/errorModels.d.ts.map +1 -0
- package/dist/esm/errorModels.js +4 -0
- package/dist/esm/errorModels.js.map +1 -0
- package/dist/esm/generated/data/index.d.ts +4 -0
- package/dist/esm/generated/data/index.d.ts.map +1 -0
- package/{dist-esm/src/generated/service → dist/esm/generated/data}/index.js +3 -3
- package/dist/esm/generated/data/index.js.map +1 -0
- package/dist/esm/generated/data/models/index.d.ts +1289 -0
- package/dist/esm/generated/data/models/index.d.ts.map +1 -0
- package/dist/esm/generated/data/models/index.js +286 -0
- package/dist/esm/generated/data/models/index.js.map +1 -0
- package/dist/esm/generated/data/models/mappers.d.ts +51 -0
- package/dist/esm/generated/data/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/data/models/mappers.js +1435 -0
- package/dist/esm/generated/data/models/mappers.js.map +1 -0
- package/dist/esm/generated/data/models/parameters.d.ts +62 -0
- package/dist/esm/generated/data/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/data/models/parameters.js +619 -0
- package/dist/esm/generated/data/models/parameters.js.map +1 -0
- package/dist/esm/generated/data/operations/documents.d.ts +70 -0
- package/dist/esm/generated/data/operations/documents.d.ts.map +1 -0
- package/dist/esm/generated/data/operations/documents.js +312 -0
- package/dist/esm/generated/data/operations/documents.js.map +1 -0
- package/dist/esm/generated/data/operations/index.d.ts +2 -0
- package/dist/esm/generated/data/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/data/operations/index.js +9 -0
- package/dist/esm/generated/data/operations/index.js.map +1 -0
- package/dist/esm/generated/data/operationsInterfaces/documents.d.ts +62 -0
- package/dist/esm/generated/data/operationsInterfaces/documents.d.ts.map +1 -0
- package/dist/esm/generated/data/operationsInterfaces/documents.js +9 -0
- package/dist/esm/generated/data/operationsInterfaces/documents.js.map +1 -0
- package/dist/esm/generated/data/operationsInterfaces/index.d.ts +2 -0
- package/dist/esm/generated/data/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/data/operationsInterfaces/index.js +9 -0
- package/dist/esm/generated/data/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/data/searchClient.d.ts +21 -0
- package/dist/esm/generated/data/searchClient.d.ts.map +1 -0
- package/dist/esm/generated/data/searchClient.js +78 -0
- package/dist/esm/generated/data/searchClient.js.map +1 -0
- package/dist/esm/generated/service/index.d.ts +4 -0
- package/dist/esm/generated/service/index.d.ts.map +1 -0
- package/dist/esm/generated/service/index.js +11 -0
- package/dist/esm/generated/service/index.js.map +1 -0
- package/dist/esm/generated/service/models/index.d.ts +4737 -0
- package/dist/esm/generated/service/models/index.d.ts.map +1 -0
- package/dist/esm/generated/service/models/index.js +1506 -0
- package/dist/esm/generated/service/models/index.js.map +1 -0
- package/dist/esm/generated/service/models/mappers.d.ts +294 -0
- package/dist/esm/generated/service/models/mappers.d.ts.map +1 -0
- package/dist/esm/generated/service/models/mappers.js +6183 -0
- package/dist/esm/generated/service/models/mappers.js.map +1 -0
- package/dist/esm/generated/service/models/parameters.d.ts +29 -0
- package/dist/esm/generated/service/models/parameters.d.ts.map +1 -0
- package/dist/esm/generated/service/models/parameters.js +223 -0
- package/dist/esm/generated/service/models/parameters.js.map +1 -0
- package/dist/esm/generated/service/operations/aliases.d.ts +44 -0
- package/dist/esm/generated/service/operations/aliases.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/aliases.js +160 -0
- package/dist/esm/generated/service/operations/aliases.js.map +1 -0
- package/dist/esm/generated/service/operations/dataSources.d.ts +43 -0
- package/dist/esm/generated/service/operations/dataSources.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/dataSources.js +162 -0
- package/dist/esm/generated/service/operations/dataSources.js.map +1 -0
- package/dist/esm/generated/service/operations/index.d.ts +7 -0
- package/dist/esm/generated/service/operations/index.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/index.js +14 -0
- package/dist/esm/generated/service/operations/index.js.map +1 -0
- package/dist/esm/generated/service/operations/indexers.d.ts +67 -0
- package/dist/esm/generated/service/operations/indexers.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/indexers.js +255 -0
- package/dist/esm/generated/service/operations/indexers.js.map +1 -0
- package/dist/esm/generated/service/operations/indexes.d.ts +58 -0
- package/dist/esm/generated/service/operations/indexes.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/indexes.js +212 -0
- package/dist/esm/generated/service/operations/indexes.js.map +1 -0
- package/dist/esm/generated/service/operations/skillsets.d.ts +50 -0
- package/dist/esm/generated/service/operations/skillsets.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/skillsets.js +188 -0
- package/dist/esm/generated/service/operations/skillsets.js.map +1 -0
- package/dist/esm/generated/service/operations/synonymMaps.d.ts +43 -0
- package/dist/esm/generated/service/operations/synonymMaps.d.ts.map +1 -0
- package/dist/esm/generated/service/operations/synonymMaps.js +159 -0
- package/dist/esm/generated/service/operations/synonymMaps.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/aliases.d.ts +36 -0
- package/dist/esm/generated/service/operationsInterfaces/aliases.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/aliases.js +9 -0
- package/dist/esm/generated/service/operationsInterfaces/aliases.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/dataSources.d.ts +35 -0
- package/dist/esm/generated/service/operationsInterfaces/dataSources.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/dataSources.js +9 -0
- package/dist/esm/generated/service/operationsInterfaces/dataSources.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/index.d.ts +7 -0
- package/dist/esm/generated/service/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/index.js +14 -0
- package/dist/esm/generated/service/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/indexers.d.ts +59 -0
- package/dist/esm/generated/service/operationsInterfaces/indexers.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/indexers.js +9 -0
- package/dist/esm/generated/service/operationsInterfaces/indexers.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/indexes.d.ts +50 -0
- package/dist/esm/generated/service/operationsInterfaces/indexes.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/indexes.js +9 -0
- package/dist/esm/generated/service/operationsInterfaces/indexes.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/skillsets.d.ts +42 -0
- package/dist/esm/generated/service/operationsInterfaces/skillsets.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/skillsets.js +9 -0
- package/dist/esm/generated/service/operationsInterfaces/skillsets.js.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/synonymMaps.d.ts +35 -0
- package/dist/esm/generated/service/operationsInterfaces/synonymMaps.d.ts.map +1 -0
- package/dist/esm/generated/service/operationsInterfaces/synonymMaps.js +9 -0
- package/dist/esm/generated/service/operationsInterfaces/synonymMaps.js.map +1 -0
- package/dist/esm/generated/service/searchServiceClient.d.ts +29 -0
- package/dist/esm/generated/service/searchServiceClient.d.ts.map +1 -0
- package/dist/esm/generated/service/searchServiceClient.js +106 -0
- package/dist/esm/generated/service/searchServiceClient.js.map +1 -0
- package/dist/esm/geographyPoint.d.ts +27 -0
- package/dist/esm/geographyPoint.d.ts.map +1 -0
- package/dist/esm/geographyPoint.js +28 -0
- package/dist/esm/geographyPoint.js.map +1 -0
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/dist/esm/index.js +16 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/indexDocumentsBatch.d.ts +41 -0
- package/dist/esm/indexDocumentsBatch.d.ts.map +1 -0
- package/dist/esm/indexDocumentsBatch.js +63 -0
- package/dist/esm/indexDocumentsBatch.js.map +1 -0
- package/dist/esm/indexModels.d.ts +821 -0
- package/dist/esm/indexModels.d.ts.map +1 -0
- package/dist/esm/indexModels.js +4 -0
- package/dist/esm/indexModels.js.map +1 -0
- package/dist/esm/logger.d.ts +5 -0
- package/dist/esm/logger.d.ts.map +1 -0
- package/dist/esm/logger.js +8 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/odata.d.ts +14 -0
- package/dist/esm/odata.d.ts.map +1 -0
- package/dist/esm/odata.js +47 -0
- package/dist/esm/odata.js.map +1 -0
- package/dist/esm/odataMetadataPolicy.d.ts +9 -0
- package/dist/esm/odataMetadataPolicy.d.ts.map +1 -0
- package/dist/esm/odataMetadataPolicy.js +18 -0
- package/dist/esm/odataMetadataPolicy.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/searchApiKeyCredentialPolicy.d.ts +8 -0
- package/dist/esm/searchApiKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/esm/searchApiKeyCredentialPolicy.js +20 -0
- package/dist/esm/searchApiKeyCredentialPolicy.js.map +1 -0
- package/dist/esm/searchAudience.d.ts +18 -0
- package/dist/esm/searchAudience.d.ts.map +1 -0
- package/dist/esm/searchAudience.js +21 -0
- package/dist/esm/searchAudience.js.map +1 -0
- package/dist/esm/searchClient.d.ts +273 -0
- package/dist/esm/searchClient.d.ts.map +1 -0
- package/dist/esm/searchClient.js +664 -0
- package/dist/esm/searchClient.js.map +1 -0
- package/dist/esm/searchIndexClient.d.ts +215 -0
- package/dist/esm/searchIndexClient.d.ts.map +1 -0
- package/dist/esm/searchIndexClient.js +659 -0
- package/dist/esm/searchIndexClient.js.map +1 -0
- package/dist/esm/searchIndexerClient.d.ts +205 -0
- package/dist/esm/searchIndexerClient.d.ts.map +1 -0
- package/dist/esm/searchIndexerClient.js +600 -0
- package/dist/esm/searchIndexerClient.js.map +1 -0
- package/dist/esm/searchIndexingBufferedSender.d.ts +193 -0
- package/dist/esm/searchIndexingBufferedSender.d.ts.map +1 -0
- package/dist/esm/searchIndexingBufferedSender.js +283 -0
- package/dist/esm/searchIndexingBufferedSender.js.map +1 -0
- package/dist/esm/serialization.d.ts +3 -0
- package/dist/esm/serialization.d.ts.map +1 -0
- package/dist/esm/serialization.js +144 -0
- package/dist/esm/serialization.js.map +1 -0
- package/dist/esm/serviceModels.d.ts +2419 -0
- package/dist/esm/serviceModels.d.ts.map +1 -0
- package/dist/esm/serviceModels.js +654 -0
- package/dist/esm/serviceModels.js.map +1 -0
- package/dist/esm/serviceUtils.d.ts +36 -0
- package/dist/esm/serviceUtils.d.ts.map +1 -0
- package/dist/esm/serviceUtils.js +518 -0
- package/dist/esm/serviceUtils.js.map +1 -0
- package/dist/esm/synonymMapHelper.d.ts +10 -0
- package/dist/esm/synonymMapHelper.d.ts.map +1 -0
- package/{dist-esm/src → dist/esm}/synonymMapHelper.js +3 -3
- package/dist/esm/synonymMapHelper.js.map +1 -0
- package/dist/esm/tracing.d.ts +7 -0
- package/dist/esm/tracing.d.ts.map +1 -0
- package/dist/esm/tracing.js +13 -0
- package/dist/esm/tracing.js.map +1 -0
- package/dist/esm/walk.d.ts +2 -0
- package/dist/esm/walk.d.ts.map +1 -0
- package/dist/esm/walk.js +79 -0
- package/dist/esm/walk.js.map +1 -0
- package/dist/react-native/base64.d.ts +11 -0
- package/dist/react-native/base64.d.ts.map +1 -0
- package/dist/react-native/base64.js +17 -0
- package/dist/react-native/base64.js.map +1 -0
- package/dist/react-native/errorModels.d.ts +50 -0
- package/dist/react-native/errorModels.d.ts.map +1 -0
- package/dist/react-native/errorModels.js +4 -0
- package/dist/react-native/errorModels.js.map +1 -0
- package/dist/react-native/generated/data/index.d.ts +4 -0
- package/dist/react-native/generated/data/index.d.ts.map +1 -0
- package/dist/react-native/generated/data/index.js +11 -0
- package/dist/react-native/generated/data/index.js.map +1 -0
- package/dist/react-native/generated/data/models/index.d.ts +1289 -0
- package/dist/react-native/generated/data/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/data/models/index.js +286 -0
- package/dist/react-native/generated/data/models/index.js.map +1 -0
- package/dist/react-native/generated/data/models/mappers.d.ts +51 -0
- package/dist/react-native/generated/data/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/data/models/mappers.js +1435 -0
- package/dist/react-native/generated/data/models/mappers.js.map +1 -0
- package/dist/react-native/generated/data/models/parameters.d.ts +62 -0
- package/dist/react-native/generated/data/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/data/models/parameters.js +619 -0
- package/dist/react-native/generated/data/models/parameters.js.map +1 -0
- package/dist/react-native/generated/data/operations/documents.d.ts +70 -0
- package/dist/react-native/generated/data/operations/documents.d.ts.map +1 -0
- package/dist/react-native/generated/data/operations/documents.js +312 -0
- package/dist/react-native/generated/data/operations/documents.js.map +1 -0
- package/dist/react-native/generated/data/operations/index.d.ts +2 -0
- package/dist/react-native/generated/data/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/data/operations/index.js +9 -0
- package/dist/react-native/generated/data/operations/index.js.map +1 -0
- package/dist/react-native/generated/data/operationsInterfaces/documents.d.ts +62 -0
- package/dist/react-native/generated/data/operationsInterfaces/documents.d.ts.map +1 -0
- package/dist/react-native/generated/data/operationsInterfaces/documents.js +9 -0
- package/dist/react-native/generated/data/operationsInterfaces/documents.js.map +1 -0
- package/dist/react-native/generated/data/operationsInterfaces/index.d.ts +2 -0
- package/dist/react-native/generated/data/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/data/operationsInterfaces/index.js +9 -0
- package/dist/react-native/generated/data/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/data/searchClient.d.ts +21 -0
- package/dist/react-native/generated/data/searchClient.d.ts.map +1 -0
- package/dist/react-native/generated/data/searchClient.js +78 -0
- package/dist/react-native/generated/data/searchClient.js.map +1 -0
- package/dist/react-native/generated/service/index.d.ts +4 -0
- package/dist/react-native/generated/service/index.d.ts.map +1 -0
- package/dist/react-native/generated/service/index.js +11 -0
- package/dist/react-native/generated/service/index.js.map +1 -0
- package/dist/react-native/generated/service/models/index.d.ts +4737 -0
- package/dist/react-native/generated/service/models/index.d.ts.map +1 -0
- package/dist/react-native/generated/service/models/index.js +1506 -0
- package/dist/react-native/generated/service/models/index.js.map +1 -0
- package/dist/react-native/generated/service/models/mappers.d.ts +294 -0
- package/dist/react-native/generated/service/models/mappers.d.ts.map +1 -0
- package/dist/react-native/generated/service/models/mappers.js +6183 -0
- package/dist/react-native/generated/service/models/mappers.js.map +1 -0
- package/dist/react-native/generated/service/models/parameters.d.ts +29 -0
- package/dist/react-native/generated/service/models/parameters.d.ts.map +1 -0
- package/dist/react-native/generated/service/models/parameters.js +223 -0
- package/dist/react-native/generated/service/models/parameters.js.map +1 -0
- package/dist/react-native/generated/service/operations/aliases.d.ts +44 -0
- package/dist/react-native/generated/service/operations/aliases.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/aliases.js +160 -0
- package/dist/react-native/generated/service/operations/aliases.js.map +1 -0
- package/dist/react-native/generated/service/operations/dataSources.d.ts +43 -0
- package/dist/react-native/generated/service/operations/dataSources.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/dataSources.js +162 -0
- package/dist/react-native/generated/service/operations/dataSources.js.map +1 -0
- package/dist/react-native/generated/service/operations/index.d.ts +7 -0
- package/dist/react-native/generated/service/operations/index.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/index.js +14 -0
- package/dist/react-native/generated/service/operations/index.js.map +1 -0
- package/dist/react-native/generated/service/operations/indexers.d.ts +67 -0
- package/dist/react-native/generated/service/operations/indexers.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/indexers.js +255 -0
- package/dist/react-native/generated/service/operations/indexers.js.map +1 -0
- package/dist/react-native/generated/service/operations/indexes.d.ts +58 -0
- package/dist/react-native/generated/service/operations/indexes.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/indexes.js +212 -0
- package/dist/react-native/generated/service/operations/indexes.js.map +1 -0
- package/dist/react-native/generated/service/operations/skillsets.d.ts +50 -0
- package/dist/react-native/generated/service/operations/skillsets.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/skillsets.js +188 -0
- package/dist/react-native/generated/service/operations/skillsets.js.map +1 -0
- package/dist/react-native/generated/service/operations/synonymMaps.d.ts +43 -0
- package/dist/react-native/generated/service/operations/synonymMaps.d.ts.map +1 -0
- package/dist/react-native/generated/service/operations/synonymMaps.js +159 -0
- package/dist/react-native/generated/service/operations/synonymMaps.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/aliases.d.ts +36 -0
- package/dist/react-native/generated/service/operationsInterfaces/aliases.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/aliases.js +9 -0
- package/dist/react-native/generated/service/operationsInterfaces/aliases.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/dataSources.d.ts +35 -0
- package/dist/react-native/generated/service/operationsInterfaces/dataSources.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/dataSources.js +9 -0
- package/dist/react-native/generated/service/operationsInterfaces/dataSources.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/index.d.ts +7 -0
- package/dist/react-native/generated/service/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/index.js +14 -0
- package/dist/react-native/generated/service/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexers.d.ts +59 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexers.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexers.js +9 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexers.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexes.d.ts +50 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexes.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexes.js +9 -0
- package/dist/react-native/generated/service/operationsInterfaces/indexes.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/skillsets.d.ts +42 -0
- package/dist/react-native/generated/service/operationsInterfaces/skillsets.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/skillsets.js +9 -0
- package/dist/react-native/generated/service/operationsInterfaces/skillsets.js.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/synonymMaps.d.ts +35 -0
- package/dist/react-native/generated/service/operationsInterfaces/synonymMaps.d.ts.map +1 -0
- package/dist/react-native/generated/service/operationsInterfaces/synonymMaps.js +9 -0
- package/dist/react-native/generated/service/operationsInterfaces/synonymMaps.js.map +1 -0
- package/dist/react-native/generated/service/searchServiceClient.d.ts +29 -0
- package/dist/react-native/generated/service/searchServiceClient.d.ts.map +1 -0
- package/dist/react-native/generated/service/searchServiceClient.js +106 -0
- package/dist/react-native/generated/service/searchServiceClient.js.map +1 -0
- package/dist/react-native/geographyPoint.d.ts +27 -0
- package/dist/react-native/geographyPoint.d.ts.map +1 -0
- package/dist/react-native/geographyPoint.js +28 -0
- package/dist/react-native/geographyPoint.js.map +1 -0
- package/dist/react-native/index.d.ts +15 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +16 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/indexDocumentsBatch.d.ts +41 -0
- package/dist/react-native/indexDocumentsBatch.d.ts.map +1 -0
- package/dist/react-native/indexDocumentsBatch.js +63 -0
- package/dist/react-native/indexDocumentsBatch.js.map +1 -0
- package/dist/react-native/indexModels.d.ts +821 -0
- package/dist/react-native/indexModels.d.ts.map +1 -0
- package/dist/react-native/indexModels.js +4 -0
- package/dist/react-native/indexModels.js.map +1 -0
- package/dist/react-native/logger.d.ts +5 -0
- package/dist/react-native/logger.d.ts.map +1 -0
- package/dist/react-native/logger.js +8 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/odata.d.ts +14 -0
- package/dist/react-native/odata.d.ts.map +1 -0
- package/dist/react-native/odata.js +47 -0
- package/dist/react-native/odata.js.map +1 -0
- package/dist/react-native/odataMetadataPolicy.d.ts +9 -0
- package/dist/react-native/odataMetadataPolicy.d.ts.map +1 -0
- package/dist/react-native/odataMetadataPolicy.js +18 -0
- package/dist/react-native/odataMetadataPolicy.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/searchApiKeyCredentialPolicy.d.ts +8 -0
- package/dist/react-native/searchApiKeyCredentialPolicy.d.ts.map +1 -0
- package/dist/react-native/searchApiKeyCredentialPolicy.js +20 -0
- package/dist/react-native/searchApiKeyCredentialPolicy.js.map +1 -0
- package/dist/react-native/searchAudience.d.ts +18 -0
- package/dist/react-native/searchAudience.d.ts.map +1 -0
- package/dist/react-native/searchAudience.js +21 -0
- package/dist/react-native/searchAudience.js.map +1 -0
- package/dist/react-native/searchClient.d.ts +273 -0
- package/dist/react-native/searchClient.d.ts.map +1 -0
- package/dist/react-native/searchClient.js +664 -0
- package/dist/react-native/searchClient.js.map +1 -0
- package/dist/react-native/searchIndexClient.d.ts +215 -0
- package/dist/react-native/searchIndexClient.d.ts.map +1 -0
- package/dist/react-native/searchIndexClient.js +659 -0
- package/dist/react-native/searchIndexClient.js.map +1 -0
- package/dist/react-native/searchIndexerClient.d.ts +205 -0
- package/dist/react-native/searchIndexerClient.d.ts.map +1 -0
- package/dist/react-native/searchIndexerClient.js +600 -0
- package/dist/react-native/searchIndexerClient.js.map +1 -0
- package/dist/react-native/searchIndexingBufferedSender.d.ts +193 -0
- package/dist/react-native/searchIndexingBufferedSender.d.ts.map +1 -0
- package/dist/react-native/searchIndexingBufferedSender.js +283 -0
- package/dist/react-native/searchIndexingBufferedSender.js.map +1 -0
- package/dist/react-native/serialization.d.ts +3 -0
- package/dist/react-native/serialization.d.ts.map +1 -0
- package/dist/react-native/serialization.js +144 -0
- package/dist/react-native/serialization.js.map +1 -0
- package/dist/react-native/serviceModels.d.ts +2419 -0
- package/dist/react-native/serviceModels.d.ts.map +1 -0
- package/dist/react-native/serviceModels.js +654 -0
- package/dist/react-native/serviceModels.js.map +1 -0
- package/dist/react-native/serviceUtils.d.ts +36 -0
- package/dist/react-native/serviceUtils.d.ts.map +1 -0
- package/dist/react-native/serviceUtils.js +518 -0
- package/dist/react-native/serviceUtils.js.map +1 -0
- package/dist/react-native/synonymMapHelper.d.ts +10 -0
- package/dist/react-native/synonymMapHelper.d.ts.map +1 -0
- package/dist/react-native/synonymMapHelper.js +24 -0
- package/dist/react-native/synonymMapHelper.js.map +1 -0
- package/dist/react-native/tracing.d.ts +7 -0
- package/dist/react-native/tracing.d.ts.map +1 -0
- package/dist/react-native/tracing.js +13 -0
- package/dist/react-native/tracing.js.map +1 -0
- package/dist/react-native/walk.d.ts +2 -0
- package/dist/react-native/walk.d.ts.map +1 -0
- package/dist/react-native/walk.js +79 -0
- package/dist/react-native/walk.js.map +1 -0
- package/package.json +79 -67
- package/dist/index.js +0 -13692
- package/dist/index.js.map +0 -1
- package/dist-esm/src/base64.browser.js.map +0 -1
- package/dist-esm/src/errorModels.js +0 -4
- package/dist-esm/src/errorModels.js.map +0 -1
- package/dist-esm/src/generated/data/index.js.map +0 -1
- package/dist-esm/src/generated/data/models/index.js +0 -72
- package/dist-esm/src/generated/data/models/index.js.map +0 -1
- package/dist-esm/src/generated/data/models/mappers.js.map +0 -1
- package/dist-esm/src/generated/data/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/data/operations/documents.js.map +0 -1
- package/dist-esm/src/generated/data/operations/index.js.map +0 -1
- package/dist-esm/src/generated/data/operationsInterfaces/documents.js.map +0 -1
- package/dist-esm/src/generated/data/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/data/searchClient.js.map +0 -1
- package/dist-esm/src/generated/service/index.js.map +0 -1
- package/dist-esm/src/generated/service/models/index.js.map +0 -1
- package/dist-esm/src/generated/service/models/mappers.js.map +0 -1
- package/dist-esm/src/generated/service/models/parameters.js.map +0 -1
- package/dist-esm/src/generated/service/operations/dataSources.js.map +0 -1
- package/dist-esm/src/generated/service/operations/index.js +0 -13
- package/dist-esm/src/generated/service/operations/index.js.map +0 -1
- package/dist-esm/src/generated/service/operations/indexers.js.map +0 -1
- package/dist-esm/src/generated/service/operations/indexes.js.map +0 -1
- package/dist-esm/src/generated/service/operations/skillsets.js.map +0 -1
- package/dist-esm/src/generated/service/operations/synonymMaps.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/dataSources.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/index.js +0 -13
- package/dist-esm/src/generated/service/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexers.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/indexes.js.map +0 -1
- package/dist-esm/src/generated/service/operationsInterfaces/synonymMaps.js.map +0 -1
- package/dist-esm/src/generated/service/searchServiceClient.js.map +0 -1
- package/dist-esm/src/index.js +0 -16
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/indexDocumentsBatch.js.map +0 -1
- package/dist-esm/src/indexModels.js +0 -4
- package/dist-esm/src/indexModels.js.map +0 -1
- package/dist-esm/src/odataMetadataPolicy.js.map +0 -1
- package/dist-esm/src/searchApiKeyCredentialPolicy.js.map +0 -1
- package/dist-esm/src/searchClient.js.map +0 -1
- package/dist-esm/src/searchIndexClient.js.map +0 -1
- package/dist-esm/src/searchIndexerClient.js.map +0 -1
- package/dist-esm/src/searchIndexingBufferedSender.js.map +0 -1
- package/dist-esm/src/serialization.js.map +0 -1
- package/dist-esm/src/serviceModels.js.map +0 -1
- package/dist-esm/src/serviceUtils.js.map +0 -1
- package/dist-esm/src/synonymMapHelper.browser.js.map +0 -1
- package/dist-esm/src/synonymMapHelper.js.map +0 -1
- /package/{dist-esm/src → dist/browser}/generated/data/operationsInterfaces/documents.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/service/operationsInterfaces/dataSources.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/service/operationsInterfaces/indexers.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/service/operationsInterfaces/indexes.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/service/operationsInterfaces/skillsets.js +0 -0
- /package/{dist-esm/src → dist/browser}/generated/service/operationsInterfaces/synonymMaps.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchIndexClient.js","sourceRoot":"","sources":["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,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;QACV,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAED;;;;;;;;OAQG;IACI,eAAe,CACpB,SAAiB,EACjB,OAAgC;QAEhC,OAAO,IAAI,YAAY,CACrB,IAAI,CAAC,QAAQ,EACb,SAAS,EACT,IAAI,CAAC,UAAU,EACf,OAAO,IAAI,IAAI,CAAC,OAAO,CACxB,CAAC;IACJ,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/// <reference lib=\"esnext.asynciterable\" />\n\nimport { isTokenCredential, KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { ExtendedCommonClientOptions } from \"@azure/core-http-compat\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { AnalyzeResult } from \"./generated/service/models\";\nimport { SearchServiceClient as GeneratedClient } from \"./generated/service/searchServiceClient\";\nimport { logger } from \"./logger\";\nimport { createOdataMetadataPolicy } from \"./odataMetadataPolicy\";\nimport { createSearchApiKeyCredentialPolicy } from \"./searchApiKeyCredentialPolicy\";\nimport { KnownSearchAudience } from \"./searchAudience\";\nimport { SearchClient, SearchClientOptions as GetSearchClientOptions } from \"./searchClient\";\nimport {\n AnalyzeTextOptions,\n CreateIndexOptions,\n CreateOrUpdateIndexOptions,\n CreateOrUpdateSynonymMapOptions,\n CreateSynonymMapOptions,\n DeleteIndexOptions,\n DeleteSynonymMapOptions,\n GetIndexOptions,\n GetIndexStatisticsOptions,\n GetServiceStatisticsOptions,\n GetSynonymMapsOptions,\n IndexIterator,\n IndexNameIterator,\n ListIndexesOptions,\n ListSynonymMapsOptions,\n SearchIndex,\n SearchIndexStatistics,\n SearchServiceStatistics,\n SynonymMap,\n} from \"./serviceModels\";\nimport * as utils from \"./serviceUtils\";\nimport { createSpan } from \"./tracing\";\n\n/**\n * Client options used to configure Cognitive Search API requests.\n */\nexport interface SearchIndexClientOptions extends ExtendedCommonClientOptions {\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n apiVersion?: string;\n\n /**\n * The service version to use when communicating with the service.\n */\n serviceVersion?: string;\n\n /**\n * The Audience to use for authentication with Azure Active Directory (AAD). The\n * audience is not considered when using a shared key.\n * {@link KnownSearchAudience} can be used interchangeably with audience\n */\n audience?: string;\n}\n\n/**\n * Class to perform operations to manage\n * (create, update, list/delete)\n * indexes, & synonymmaps.\n */\nexport class SearchIndexClient {\n /**\n * The API version to use when communicating with the service.\n */\n public readonly serviceVersion: string = utils.defaultServiceVersion;\n\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n public readonly apiVersion: string = utils.defaultServiceVersion;\n\n /**\n * The endpoint of the search service\n */\n public readonly endpoint: string;\n\n /**\n * @hidden\n * A reference to the auto-generated SearchServiceClient\n */\n private readonly client: GeneratedClient;\n\n /**\n * Used to authenticate requests to the service.\n */\n private readonly credential: KeyCredential | TokenCredential;\n\n /**\n * Used to configure the Search Index client.\n */\n private readonly options: SearchIndexClientOptions;\n\n /**\n * Creates an instance of SearchIndexClient.\n *\n * Example usage:\n * ```ts\n * const { SearchIndexClient, AzureKeyCredential } = require(\"@azure/search-documents\");\n *\n * const client = new SearchIndexClient(\n * \"<endpoint>\",\n * new AzureKeyCredential(\"<Admin Key>\");\n * );\n * ```\n * @param endpoint - The endpoint of the search service\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the Search Index client.\n */\n constructor(\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n options: SearchIndexClientOptions = {},\n ) {\n this.endpoint = endpoint;\n this.credential = credential;\n this.options = options;\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...this.options,\n ...{\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"elapsed-time\",\n \"Location\",\n \"OData-MaxVersion\",\n \"OData-Version\",\n \"Prefer\",\n \"throttle-reason\",\n ],\n },\n },\n };\n\n this.serviceVersion =\n this.options.serviceVersion ?? this.options.apiVersion ?? utils.defaultServiceVersion;\n this.apiVersion = this.serviceVersion;\n\n this.client = new GeneratedClient(\n this.endpoint,\n this.serviceVersion,\n internalClientPipelineOptions,\n );\n\n if (isTokenCredential(credential)) {\n const scope: string = this.options.audience\n ? `${this.options.audience}/.default`\n : `${KnownSearchAudience.AzurePublicCloud}/.default`;\n\n this.client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({ credential, scopes: scope }),\n );\n } else {\n this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));\n }\n\n this.client.pipeline.addPolicy(createOdataMetadataPolicy(\"minimal\"));\n }\n\n private async *listIndexesPage(\n options: ListIndexesOptions = {},\n ): AsyncIterableIterator<SearchIndex[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listIndexesPage\", options);\n try {\n const result = await this.client.indexes.list(updatedOptions);\n const mapped = result.indexes.map(utils.generatedIndexToPublicIndex);\n yield mapped;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listIndexesAll(\n options: ListIndexesOptions = {},\n ): AsyncIterableIterator<SearchIndex> {\n for await (const page of this.listIndexesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of existing indexes in the service.\n * @param options - Options to the list index operation.\n */\n public listIndexes(options: ListIndexesOptions = {}): IndexIterator {\n const iter = this.listIndexesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listIndexesPage(options);\n },\n };\n }\n\n private async *listIndexesNamesPage(\n options: ListIndexesOptions = {},\n ): AsyncIterableIterator<string[]> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listIndexesNamesPage\", options);\n try {\n const result = await this.client.indexes.list({\n ...updatedOptions,\n select: \"name\",\n });\n const mapped = result.indexes.map((idx) => idx.name);\n yield mapped;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n private async *listIndexesNamesAll(\n options: ListIndexesOptions = {},\n ): AsyncIterableIterator<string> {\n for await (const page of this.listIndexesNamesPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Retrieves a list of names of existing indexes in the service.\n * @param options - Options to the list index operation.\n */\n public listIndexesNames(options: ListIndexesOptions = {}): IndexNameIterator {\n const iter = this.listIndexesNamesAll(options);\n\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.listIndexesNamesPage(options);\n },\n };\n }\n\n /**\n * Retrieves a list of existing SynonymMaps in the service.\n * @param options - Options to the list SynonymMaps operation.\n */\n public async listSynonymMaps(options: ListSynonymMapsOptions = {}): Promise<Array<SynonymMap>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.list(updatedOptions);\n return result.synonymMaps.map(utils.generatedSynonymMapToPublicSynonymMap);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of names of existing SynonymMaps in the service.\n * @param options - Options to the list SynonymMaps operation.\n */\n public async listSynonymMapsNames(options: ListSynonymMapsOptions = {}): Promise<Array<string>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-listSynonymMapsNames\", options);\n try {\n const result = await this.client.synonymMaps.list({\n ...updatedOptions,\n select: \"name\",\n });\n return result.synonymMaps.map((sm) => sm.name);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about an index.\n * @param indexName - The name of the index.\n * @param options - Additional optional arguments.\n */\n public async getIndex(indexName: string, options: GetIndexOptions = {}): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getIndex\", options);\n try {\n const result = await this.client.indexes.get(indexName, updatedOptions);\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about a SynonymMap.\n * @param synonymMapName - The name of the SynonymMap.\n * @param options - Additional optional arguments.\n */\n public async getSynonymMap(\n synonymMapName: string,\n options: GetSynonymMapsOptions = {},\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.get(synonymMapName, updatedOptions);\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new index.\n * @param index - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createIndex(\n index: SearchIndex,\n options: CreateIndexOptions = {},\n ): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createIndex\", options);\n try {\n const result = await this.client.indexes.create(\n utils.publicIndexToGeneratedIndex(index),\n updatedOptions,\n );\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new SynonymMap in a search service.\n * @param synonymMap - The synonymMap definition to create in a search service.\n * @param options - Additional optional arguments.\n */\n public async createSynonymMap(\n synonymMap: SynonymMap,\n options: CreateSynonymMapOptions = {},\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createSynonymMaps\", options);\n try {\n const result = await this.client.synonymMaps.create(\n utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),\n updatedOptions,\n );\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new index or modifies an existing one.\n * @param index - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateIndex(\n index: SearchIndex,\n options: CreateOrUpdateIndexOptions = {},\n ): Promise<SearchIndex> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-createOrUpdateIndex\", options);\n try {\n const etag = options.onlyIfUnchanged ? index.etag : undefined;\n\n const result = await this.client.indexes.createOrUpdate(\n index.name,\n utils.publicIndexToGeneratedIndex(index),\n {\n ...updatedOptions,\n ifMatch: etag,\n },\n );\n return utils.generatedIndexToPublicIndex(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new SynonymMap or modifies an existing one.\n * @param synonymMap - The information describing the SynonymMap to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateSynonymMap(\n synonymMap: SynonymMap,\n options: CreateOrUpdateSynonymMapOptions = {},\n ): Promise<SynonymMap> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexClient-createOrUpdateSynonymMap\",\n options,\n );\n try {\n const etag = options.onlyIfUnchanged ? synonymMap.etag : undefined;\n\n const result = await this.client.synonymMaps.createOrUpdate(\n synonymMap.name,\n utils.publicSynonymMapToGeneratedSynonymMap(synonymMap),\n {\n ...updatedOptions,\n ifMatch: etag,\n },\n );\n return utils.generatedSynonymMapToPublicSynonymMap(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing index.\n * @param indexName - Index/Name of the index to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteIndex(\n index: string | SearchIndex,\n options: DeleteIndexOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-deleteIndex\", options);\n try {\n const indexName: string = typeof index === \"string\" ? index : index.name;\n const etag =\n typeof index === \"string\" ? undefined : options.onlyIfUnchanged ? index.etag : undefined;\n\n await this.client.indexes.delete(indexName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing SynonymMap.\n * @param synonymMapName - SynonymMap/Name of the synonymMap to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteSynonymMap(\n synonymMap: string | SynonymMap,\n options: DeleteSynonymMapOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-deleteSynonymMap\", options);\n try {\n const synonymMapName: string = typeof synonymMap === \"string\" ? synonymMap : synonymMap.name;\n const etag =\n typeof synonymMap === \"string\"\n ? undefined\n : options.onlyIfUnchanged\n ? synonymMap.etag\n : undefined;\n\n await this.client.synonymMaps.delete(synonymMapName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves statistics about an index, such as the count of documents and the size\n * of index storage.\n * @param indexName - The name of the index.\n * @param options - Additional optional arguments.\n */\n public async getIndexStatistics(\n indexName: string,\n options: GetIndexStatisticsOptions = {},\n ): Promise<SearchIndexStatistics> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getIndexStatistics\", options);\n try {\n const result = await this.client.indexes.getStatistics(indexName, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Calls an analyzer or tokenizer manually on provided text.\n * @param indexName - The name of the index that contains the field to analyze\n * @param text - The text to break into tokens.\n * @param options - Additional arguments\n */\n public async analyzeText(indexName: string, options: AnalyzeTextOptions): Promise<AnalyzeResult> {\n const {\n abortSignal,\n requestOptions,\n tracingOptions,\n analyzerName: analyzer,\n tokenizerName: tokenizer,\n ...restOptions\n } = options;\n\n const operationOptions = {\n abortSignal,\n requestOptions,\n tracingOptions,\n };\n\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-analyzeText\", operationOptions);\n\n try {\n const result = await this.client.indexes.analyze(\n indexName,\n { ...restOptions, analyzer, tokenizer },\n updatedOptions,\n );\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves statistics about the service, such as the count of documents, index, etc.\n * @param options - Additional optional arguments.\n */\n public async getServiceStatistics(\n options: GetServiceStatisticsOptions = {},\n ): Promise<SearchServiceStatistics> {\n const { span, updatedOptions } = createSpan(\"SearchIndexClient-getServiceStatistics\", options);\n try {\n const result = await this.client.getServiceStatistics(updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves the SearchClient corresponding to this SearchIndexClient\n * @param indexName - Name of the index\n * @param options - SearchClient Options\n * @typeParam TModel - An optional type that represents the documents stored in\n * the search index. For the best typing experience, all non-key fields should\n * be marked optional and nullable, and the key property should have the\n * non-nullable type `string`.\n */\n public getSearchClient<TModel extends object>(\n indexName: string,\n options?: GetSearchClientOptions,\n ): SearchClient<TModel> {\n return new SearchClient<TModel>(\n this.endpoint,\n indexName,\n this.credential,\n options || this.options,\n );\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchIndexerClient.js","sourceRoot":"","sources":["../../src/searchIndexerClient.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AAElC,OAAO,EAAE,iBAAiB,EAAkC,MAAM,kBAAkB,CAAC;AAGrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,2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EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,YAAY,CAAC,WAAmB,EAAE,UAA+B,EAAE;QAC9E,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;QACzF,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;QAChE,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;QACV,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;IACH,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,UAAU,CAAC,WAAmB,EAAE,UAA6B,EAAE;QAC1E,MAAM,EAAE,IAAI,EAAE,cAAc,EAAE,GAAG,UAAU,CAAC,gCAAgC,EAAE,OAAO,CAAC,CAAC;QACvF,IAAI,CAAC;YACH,MAAM,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;QAC9D,CAAC;QAAC,OAAO,CAAM,EAAE,CAAC;YAChB,IAAI,CAAC,SAAS,CAAC;gBACb,MAAM,EAAE,OAAO;gBACf,KAAK,EAAE,CAAC,CAAC,OAAO;aACjB,CAAC,CAAC;YACH,MAAM,CAAC,CAAC;QACV,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,GAAG,EAAE,CAAC;QACb,CAAC;IACH,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { isTokenCredential, KeyCredential, TokenCredential } from \"@azure/core-auth\";\nimport { InternalClientPipelineOptions } from \"@azure/core-client\";\nimport { ExtendedCommonClientOptions } from \"@azure/core-http-compat\";\nimport { bearerTokenAuthenticationPolicy } from \"@azure/core-rest-pipeline\";\nimport { SearchIndexerStatus } from \"./generated/service/models\";\nimport { SearchServiceClient as GeneratedClient } from \"./generated/service/searchServiceClient\";\nimport { logger } from \"./logger\";\nimport { createOdataMetadataPolicy } from \"./odataMetadataPolicy\";\nimport { createSearchApiKeyCredentialPolicy } from \"./searchApiKeyCredentialPolicy\";\nimport { KnownSearchAudience } from \"./searchAudience\";\nimport {\n CreateDataSourceConnectionOptions,\n CreateIndexerOptions,\n CreateorUpdateDataSourceConnectionOptions,\n CreateorUpdateIndexerOptions,\n CreateOrUpdateSkillsetOptions,\n CreateSkillsetOptions,\n DeleteDataSourceConnectionOptions,\n DeleteIndexerOptions,\n DeleteSkillsetOptions,\n GetDataSourceConnectionOptions,\n GetIndexerOptions,\n GetIndexerStatusOptions,\n GetSkillSetOptions,\n ListDataSourceConnectionsOptions,\n ListIndexersOptions,\n ListSkillsetsOptions,\n ResetIndexerOptions,\n RunIndexerOptions,\n SearchIndexer,\n SearchIndexerDataSourceConnection,\n SearchIndexerSkillset,\n} from \"./serviceModels\";\nimport * as utils from \"./serviceUtils\";\nimport { createSpan } from \"./tracing\";\n\n/**\n * Client options used to configure Cognitive Search API requests.\n */\nexport interface SearchIndexerClientOptions extends ExtendedCommonClientOptions {\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n apiVersion?: string;\n\n /**\n * The service version to use when communicating with the service.\n */\n serviceVersion?: string;\n\n /**\n * The Audience to use for authentication with Azure Active Directory (AAD). The\n * audience is not considered when using a shared key.\n * {@link KnownSearchAudience} can be used interchangeably with audience\n */\n audience?: string;\n}\n\n/**\n * Class to perform operations to manage\n * (create, update, list/delete)\n * indexers, datasources & skillsets.\n */\nexport class SearchIndexerClient {\n /**\n * The API version to use when communicating with the service.\n */\n public readonly serviceVersion: string = utils.defaultServiceVersion;\n\n /**\n * The API version to use when communicating with the service.\n * @deprecated use {@Link serviceVersion} instead\n */\n public readonly apiVersion: string = utils.defaultServiceVersion;\n\n /**\n * The endpoint of the search service\n */\n public readonly endpoint: string;\n\n /**\n * @hidden\n * A reference to the auto-generated SearchServiceClient\n */\n private readonly client: GeneratedClient;\n\n /**\n * Creates an instance of SearchIndexerClient.\n *\n * Example usage:\n * ```ts\n * const { SearchIndexerClient, AzureKeyCredential } = require(\"@azure/search-documents\");\n *\n * const client = new SearchIndexerClient(\n * \"<endpoint>\",\n * new AzureKeyCredential(\"<Admin Key>\");\n * );\n * ```\n * @param endpoint - The endpoint of the search service\n * @param credential - Used to authenticate requests to the service.\n * @param options - Used to configure the Search client.\n */\n constructor(\n endpoint: string,\n credential: KeyCredential | TokenCredential,\n options: SearchIndexerClientOptions = {},\n ) {\n this.endpoint = endpoint;\n\n const internalClientPipelineOptions: InternalClientPipelineOptions = {\n ...options,\n ...{\n loggingOptions: {\n logger: logger.info,\n additionalAllowedHeaderNames: [\n \"elapsed-time\",\n \"Location\",\n \"OData-MaxVersion\",\n \"OData-Version\",\n \"Prefer\",\n \"throttle-reason\",\n ],\n },\n },\n };\n\n this.serviceVersion =\n options.serviceVersion ?? options.apiVersion ?? utils.defaultServiceVersion;\n this.apiVersion = this.serviceVersion;\n\n this.client = new GeneratedClient(\n this.endpoint,\n this.serviceVersion,\n internalClientPipelineOptions,\n );\n\n if (isTokenCredential(credential)) {\n const scope: string = options.audience\n ? `${options.audience}/.default`\n : `${KnownSearchAudience.AzurePublicCloud}/.default`;\n\n this.client.pipeline.addPolicy(\n bearerTokenAuthenticationPolicy({ credential, scopes: scope }),\n );\n } else {\n this.client.pipeline.addPolicy(createSearchApiKeyCredentialPolicy(credential));\n }\n\n this.client.pipeline.addPolicy(createOdataMetadataPolicy(\"minimal\"));\n }\n\n /**\n * Retrieves a list of existing indexers in the service.\n * @param options - Options to the list indexers operation.\n */\n public async listIndexers(options: ListIndexersOptions = {}): Promise<Array<SearchIndexer>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-listIndexers\", options);\n try {\n const result = await this.client.indexers.list(updatedOptions);\n return result.indexers.map(utils.generatedSearchIndexerToPublicSearchIndexer);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of names of existing indexers in the service.\n * @param options - Options to the list indexers operation.\n */\n public async listIndexersNames(options: ListIndexersOptions = {}): Promise<Array<string>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-listIndexersNames\", options);\n try {\n const result = await this.client.indexers.list({\n ...updatedOptions,\n select: \"name\",\n });\n return result.indexers.map((idx) => idx.name);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of existing data sources in the service.\n * @param options - Options to the list indexers operation.\n */\n public async listDataSourceConnections(\n options: ListDataSourceConnectionsOptions = {},\n ): Promise<Array<SearchIndexerDataSourceConnection>> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-listDataSourceConnections\",\n options,\n );\n try {\n const result = await this.client.dataSources.list(updatedOptions);\n return result.dataSources.map(utils.generatedDataSourceToPublicDataSource);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of names of existing data sources in the service.\n * @param options - Options to the list indexers operation.\n */\n public async listDataSourceConnectionsNames(\n options: ListDataSourceConnectionsOptions = {},\n ): Promise<Array<string>> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-listDataSourceConnectionsNames\",\n options,\n );\n try {\n const result = await this.client.dataSources.list({\n ...updatedOptions,\n select: \"name\",\n });\n return result.dataSources.map((ds) => ds.name);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of existing Skillsets in the service.\n * @param options - Options to the list Skillsets operation.\n */\n public async listSkillsets(\n options: ListSkillsetsOptions = {},\n ): Promise<Array<SearchIndexerSkillset>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-listSkillsets\", options);\n try {\n const result = await this.client.skillsets.list(updatedOptions);\n return result.skillsets.map(utils.generatedSkillsetToPublicSkillset);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves a list of names of existing Skillsets in the service.\n * @param options - Options to the list Skillsets operation.\n */\n public async listSkillsetsNames(options: ListSkillsetsOptions = {}): Promise<Array<string>> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-listSkillsetsNames\", options);\n try {\n const result = await this.client.skillsets.list({\n ...updatedOptions,\n select: \"name\",\n });\n return result.skillsets.map((sks) => sks.name);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about an Indexer.\n * @param indexerName - The name of the Indexer.\n * @param options - Additional optional arguments.\n */\n public async getIndexer(\n indexerName: string,\n options: GetIndexerOptions = {},\n ): Promise<SearchIndexer> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-getIndexer\", options);\n try {\n const result = await this.client.indexers.get(indexerName, updatedOptions);\n return utils.generatedSearchIndexerToPublicSearchIndexer(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about a DataSource\n * @param dataSourceName - The name of the DataSource\n * @param options - Additional optional arguments\n */\n public async getDataSourceConnection(\n dataSourceConnectionName: string,\n options: GetDataSourceConnectionOptions = {},\n ): Promise<SearchIndexerDataSourceConnection> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-getDataSourceConnection\",\n options,\n );\n try {\n const result = await this.client.dataSources.get(dataSourceConnectionName, updatedOptions);\n return utils.generatedDataSourceToPublicDataSource(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Retrieves information about an Skillset.\n * @param indexName - The name of the Skillset.\n * @param options - Additional optional arguments.\n */\n public async getSkillset(\n skillsetName: string,\n options: GetSkillSetOptions = {},\n ): Promise<SearchIndexerSkillset> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-getSkillset\", options);\n try {\n const result = await this.client.skillsets.get(skillsetName, updatedOptions);\n return utils.generatedSkillsetToPublicSkillset(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new indexer in a search service.\n * @param indexer - The indexer definition to create in a search service.\n * @param options - Additional optional arguments.\n */\n public async createIndexer(\n indexer: SearchIndexer,\n options: CreateIndexerOptions = {},\n ): Promise<SearchIndexer> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-createIndexer\", options);\n try {\n const result = await this.client.indexers.create(\n utils.publicSearchIndexerToGeneratedSearchIndexer(indexer),\n updatedOptions,\n );\n return utils.generatedSearchIndexerToPublicSearchIndexer(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new dataSource in a search service.\n * @param dataSourceConnection - The dataSource definition to create in a search service.\n * @param options - Additional optional arguments.\n */\n public async createDataSourceConnection(\n dataSourceConnection: SearchIndexerDataSourceConnection,\n options: CreateDataSourceConnectionOptions = {},\n ): Promise<SearchIndexerDataSourceConnection> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-createDataSourceConnection\",\n options,\n );\n try {\n const result = await this.client.dataSources.create(\n utils.publicDataSourceToGeneratedDataSource(dataSourceConnection),\n updatedOptions,\n );\n return utils.generatedDataSourceToPublicDataSource(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new skillset in a search service.\n * @param skillset - The skillset containing one or more skills to create in a search service.\n * @param options - Additional optional arguments.\n */\n public async createSkillset(\n skillset: SearchIndexerSkillset,\n options: CreateSkillsetOptions = {},\n ): Promise<SearchIndexerSkillset> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-createSkillset\", options);\n try {\n const result = await this.client.skillsets.create(\n utils.publicSkillsetToGeneratedSkillset(skillset),\n updatedOptions,\n );\n return utils.generatedSkillsetToPublicSkillset(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new indexer or modifies an existing one.\n * @param indexer - The information describing the indexer to be created/updated.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateIndexer(\n indexer: SearchIndexer,\n options: CreateorUpdateIndexerOptions = {},\n ): Promise<SearchIndexer> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-createOrUpdateIndexer\",\n options,\n );\n\n const { onlyIfUnchanged, ...restOptions } = updatedOptions;\n try {\n const etag = onlyIfUnchanged ? indexer.etag : undefined;\n\n const result = await this.client.indexers.createOrUpdate(\n indexer.name,\n utils.publicSearchIndexerToGeneratedSearchIndexer(indexer),\n {\n ...restOptions,\n ifMatch: etag,\n },\n );\n return utils.generatedSearchIndexerToPublicSearchIndexer(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new datasource or modifies an existing one.\n * @param dataSourceConnection - The information describing the datasource to be created/updated.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateDataSourceConnection(\n dataSourceConnection: SearchIndexerDataSourceConnection,\n options: CreateorUpdateDataSourceConnectionOptions = {},\n ): Promise<SearchIndexerDataSourceConnection> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-createOrUpdateDataSourceConnection\",\n options,\n );\n try {\n const etag = options.onlyIfUnchanged ? dataSourceConnection.etag : undefined;\n\n const result = await this.client.dataSources.createOrUpdate(\n dataSourceConnection.name,\n utils.publicDataSourceToGeneratedDataSource(dataSourceConnection),\n {\n ...updatedOptions,\n ifMatch: etag,\n },\n );\n return utils.generatedDataSourceToPublicDataSource(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Creates a new Skillset or modifies an existing one.\n * @param skillset - The information describing the index to be created.\n * @param options - Additional optional arguments.\n */\n public async createOrUpdateSkillset(\n skillset: SearchIndexerSkillset,\n options: CreateOrUpdateSkillsetOptions = {},\n ): Promise<SearchIndexerSkillset> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-createOrUpdateSkillset\",\n options,\n );\n try {\n const etag = options.onlyIfUnchanged ? skillset.etag : undefined;\n\n const result = await this.client.skillsets.createOrUpdate(\n skillset.name,\n utils.publicSkillsetToGeneratedSkillset(skillset),\n {\n ...updatedOptions,\n ifMatch: etag,\n },\n );\n\n return utils.generatedSkillsetToPublicSkillset(result);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing indexer.\n * @param indexer - Indexer/Name of the indexer to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteIndexer(\n indexer: string | SearchIndexer,\n options: DeleteIndexerOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-deleteIndexer\", options);\n try {\n const indexerName: string = typeof indexer === \"string\" ? indexer : indexer.name;\n const etag =\n typeof indexer === \"string\"\n ? undefined\n : options.onlyIfUnchanged\n ? indexer.etag\n : undefined;\n\n await this.client.indexers.delete(indexerName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing datasource.\n * @param dataSource - Datasource/Name of the datasource to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteDataSourceConnection(\n dataSourceConnection: string | SearchIndexerDataSourceConnection,\n options: DeleteDataSourceConnectionOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexerClient-deleteDataSourceConnection\",\n options,\n );\n try {\n const dataSourceConnectionName: string =\n typeof dataSourceConnection === \"string\" ? dataSourceConnection : dataSourceConnection.name;\n const etag =\n typeof dataSourceConnection === \"string\"\n ? undefined\n : options.onlyIfUnchanged\n ? dataSourceConnection.etag\n : undefined;\n\n await this.client.dataSources.delete(dataSourceConnectionName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes an existing Skillset.\n * @param skillset - Skillset/Name of the Skillset to delete.\n * @param options - Additional optional arguments.\n */\n public async deleteSkillset(\n skillset: string | SearchIndexerSkillset,\n options: DeleteSkillsetOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-deleteSkillset\", options);\n try {\n const skillsetName: string = typeof skillset === \"string\" ? skillset : skillset.name;\n const etag =\n typeof skillset === \"string\"\n ? undefined\n : options.onlyIfUnchanged\n ? skillset.etag\n : undefined;\n\n await this.client.skillsets.delete(skillsetName, {\n ...updatedOptions,\n ifMatch: etag,\n });\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Returns the current status and execution history of an indexer.\n * @param indexerName - The name of the indexer.\n * @param options - Additional optional arguments.\n */\n public async getIndexerStatus(\n indexerName: string,\n options: GetIndexerStatusOptions = {},\n ): Promise<SearchIndexerStatus> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-getIndexerStatus\", options);\n try {\n const result = await this.client.indexers.getStatus(indexerName, updatedOptions);\n return result;\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Resets the change tracking state associated with an indexer.\n * @param indexerName - The name of the indexer to reset.\n * @param options - Additional optional arguments.\n */\n public async resetIndexer(indexerName: string, options: ResetIndexerOptions = {}): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-resetIndexer\", options);\n try {\n await this.client.indexers.reset(indexerName, updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Runs an indexer on-demand.\n * @param indexerName - The name of the indexer to run.\n * @param options - Additional optional arguments.\n */\n public async runIndexer(indexerName: string, options: RunIndexerOptions = {}): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexerClient-runIndexer\", options);\n try {\n await this.client.indexers.run(indexerName, updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"searchIndexingBufferedSender.js","sourceRoot":"","sources":["../../src/searchIndexingBufferedSender.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAIlC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,YAAY,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAW5D,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAmBvC;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAW,GAAG,CAAC;AAC9C;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAW,KAAK,CAAC;AAClD;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAW,CAAC,CAAC;AAC7C;;GAEG;AAC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AC,eAAe,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;gBAC/C,CAAC;YACH,CAAC;iBAAM,IAAI,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,YAAY,IAAI,IAAI,CAAC,mBAAmB,EAAE,CAAC;gBAChF,6CAA6C;gBAC7C,MAAM,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;gBAC9E,yCAAyC;gBACzC,MAAM,uBAAuB,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,CAAC;gBACxF,gFAAgF;gBAChF,mEAAmE;gBACnE,MAAM,eAAe,GACnB,uBAAuB,GAAG,CAAC,GAAG,yBAAyB,CAAC,CAAC,EAAE,uBAAuB,GAAG,CAAC,CAAC,CAAC;gBAC1F,MAAM,KAAK,CAAC,eAAe,CAAC,CAAC;gBAC7B,MAAM,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,OAAO,EAAE,YAAY,GAAG,CAAC,CAAC,CAAC;YACvE,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;gBACpC,MAAM,CAAC,CAAC;YACV,CAAC;QACH,CAAC;IACH,CAAC;IAEO,gBAAgB,CAAC,CAAM;QAC7B,OAAO,CAAC,CAAC,UAAU,IAAI,CAAC,CAAC,CAAC,UAAU,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,KAAK,GAAG,IAAI,CAAC,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC;IAChG,CAAC;CACF","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\nimport { delay } from \"@azure/core-util\";\nimport EventEmitter from \"events\";\nimport { IndexDocumentsResult } from \"./generated/data/models\";\nimport { IndexDocumentsBatch } from \"./indexDocumentsBatch\";\nimport {\n IndexDocumentsAction,\n IndexDocumentsOptions,\n SearchIndexingBufferedSenderDeleteDocumentsOptions,\n SearchIndexingBufferedSenderFlushDocumentsOptions,\n SearchIndexingBufferedSenderMergeDocumentsOptions,\n SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions,\n SearchIndexingBufferedSenderOptions,\n SearchIndexingBufferedSenderUploadDocumentsOptions,\n} from \"./indexModels\";\nimport { getRandomIntegerInclusive } from \"./serviceUtils\";\nimport { createSpan } from \"./tracing\";\n\n/**\n * Index Documents Client\n */\nexport interface IndexDocumentsClient<TModel extends object> {\n /**\n * Perform a set of index modifications (upload, merge, mergeOrUpload, delete)\n * for the given set of documents.\n *\n * @param batch - An array of actions to perform on the index.\n * @param options - Additional options.\n */\n indexDocuments(\n batch: IndexDocumentsBatch<TModel>,\n options: IndexDocumentsOptions,\n ): Promise<IndexDocumentsResult>;\n}\n\n/**\n * Default Batch Size\n */\nexport const DEFAULT_BATCH_SIZE: number = 512;\n/**\n * Default window flush interval\n */\nexport const DEFAULT_FLUSH_WINDOW: number = 60000;\n/**\n * Default number of times to retry.\n */\nexport const DEFAULT_RETRY_COUNT: number = 3;\n/**\n * Default Max Delay between retries.\n */\nconst DEFAULT_MAX_RETRY_DELAY: number = 60000;\n\n/**\n * Class used to perform buffered operations against a search index,\n * including adding, updating, and removing them.\n */\nexport class SearchIndexingBufferedSender<TModel extends object> {\n /**\n * Search Client used to call the underlying IndexBatch operations.\n */\n private client: IndexDocumentsClient<TModel>;\n /**\n * Indicates if autoFlush is enabled.\n */\n private autoFlush: boolean;\n /**\n * Interval between flushes (in milliseconds).\n */\n private flushWindowInMs: number;\n /**\n * Delay between retries\n */\n private throttlingDelayInMs: number;\n /**\n * Maximum number of Retries\n */\n private maxRetriesPerAction: number;\n /**\n * Max Delay between retries\n */\n private maxThrottlingDelayInMs: number;\n /**\n * Size of the batch.\n */\n private initialBatchActionCount: number;\n /**\n * Batch object used to complete the service call.\n */\n private batchObject: IndexDocumentsBatch<TModel>;\n /**\n * Clean up for the timer\n */\n private cleanupTimer?: () => void;\n /**\n * Event emitter/publisher used in the Buffered Sender\n */\n private readonly emitter = new EventEmitter();\n /**\n * Method to retrieve the document key\n */\n private documentKeyRetriever: (document: TModel) => string;\n\n /**\n * Creates a new instance of SearchIndexingBufferedSender.\n *\n * @param client - Search Client used to call the underlying IndexBatch operations.\n * @param options - Options to modify auto flush.\n *\n */\n constructor(\n client: IndexDocumentsClient<TModel>,\n documentKeyRetriever: (document: TModel) => string,\n options: SearchIndexingBufferedSenderOptions = {},\n ) {\n this.client = client;\n this.documentKeyRetriever = documentKeyRetriever;\n // General Configuration properties\n this.autoFlush = options.autoFlush ?? true;\n this.initialBatchActionCount = options.initialBatchActionCount ?? DEFAULT_BATCH_SIZE;\n this.flushWindowInMs = options.flushWindowInMs ?? DEFAULT_FLUSH_WINDOW;\n // Retry specific configuration properties\n this.throttlingDelayInMs = options.throttlingDelayInMs ?? DEFAULT_FLUSH_WINDOW;\n this.maxRetriesPerAction = options.maxRetriesPerAction ?? DEFAULT_RETRY_COUNT;\n this.maxThrottlingDelayInMs = options.maxThrottlingDelayInMs ?? DEFAULT_MAX_RETRY_DELAY;\n\n this.batchObject = new IndexDocumentsBatch<TModel>();\n if (this.autoFlush) {\n const interval = setInterval(() => this.flush(), this.flushWindowInMs);\n interval?.unref();\n this.cleanupTimer = () => {\n clearInterval(interval);\n };\n }\n }\n\n /**\n * Uploads the documents/Adds the documents to the upload queue.\n *\n * @param documents - Documents to be uploaded.\n * @param options - Upload options.\n */\n public async uploadDocuments(\n documents: TModel[],\n options: SearchIndexingBufferedSenderUploadDocumentsOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexingBufferedSender-uploadDocuments\",\n options,\n );\n try {\n this.batchObject.upload(documents);\n this.emitter.emit(\"batchAdded\", {\n action: \"upload\",\n documents,\n });\n return this.internalFlush(false, updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Merges the documents/Adds the documents to the merge queue.\n *\n * @param documents - Documents to be merged.\n * @param options - Upload options.\n */\n public async mergeDocuments(\n documents: TModel[],\n options: SearchIndexingBufferedSenderMergeDocumentsOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexingBufferedSender-mergeDocuments\",\n options,\n );\n try {\n this.batchObject.merge(documents);\n this.emitter.emit(\"batchAdded\", {\n action: \"merge\",\n documents,\n });\n return this.internalFlush(false, updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Merges/Uploads the documents/Adds the documents to the merge/upload queue.\n *\n * @param documents - Documents to be merged/uploaded.\n * @param options - Upload options.\n */\n public async mergeOrUploadDocuments(\n documents: TModel[],\n options: SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexingBufferedSender-mergeOrUploadDocuments\",\n options,\n );\n try {\n this.batchObject.mergeOrUpload(documents);\n this.emitter.emit(\"batchAdded\", {\n action: \"mergeOrUpload\",\n documents,\n });\n return this.internalFlush(false, updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes the documents/Adds the documents to the delete queue.\n *\n * @param documents - Documents to be deleted.\n * @param options - Upload options.\n */\n public async deleteDocuments(\n documents: TModel[],\n options: SearchIndexingBufferedSenderDeleteDocumentsOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\n \"SearchIndexingBufferedSender-deleteDocuments\",\n options,\n );\n try {\n this.batchObject.delete(documents);\n this.emitter.emit(\"batchAdded\", {\n action: \"delete\",\n documents,\n });\n return this.internalFlush(false, updatedOptions);\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * Flushes the queue manually.\n *\n * @param options - Flush options.\n */\n public async flush(\n options: SearchIndexingBufferedSenderFlushDocumentsOptions = {},\n ): Promise<void> {\n const { span, updatedOptions } = createSpan(\"SearchIndexingBufferedSender-flush\", options);\n try {\n if (this.batchObject.actions.length > 0) {\n return this.internalFlush(true, updatedOptions);\n }\n } catch (e: any) {\n span.setStatus({\n status: \"error\",\n error: e.message,\n });\n throw e;\n } finally {\n span.end();\n }\n }\n\n /**\n * If using autoFlush: true, call this to cleanup the autoflush timer.\n */\n public async dispose(): Promise<void> {\n if (this.batchObject.actions.length > 0) {\n await this.internalFlush(true);\n }\n if (this.cleanupTimer) {\n this.cleanupTimer();\n }\n }\n\n /**\n * Attach Batch Added Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public on(\n event: \"batchAdded\",\n listener: (e: { action: string; documents: TModel[] }) => void,\n ): void;\n /**\n * Attach Batch Sent Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public on(event: \"beforeDocumentSent\", listener: (e: IndexDocumentsAction<TModel>) => void): void;\n /**\n * Attach Batch Succeeded Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public on(event: \"batchSucceeded\", listener: (e: IndexDocumentsResult) => void): void;\n /**\n * Attach Batch Failed Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public on(event: \"batchFailed\", listener: (e: RestError) => void): void;\n public on(\n event: \"batchAdded\" | \"beforeDocumentSent\" | \"batchSucceeded\" | \"batchFailed\" | \"batchResizing\",\n listener: (e: any) => void,\n ): void {\n this.emitter.on(event, listener);\n }\n\n /**\n * Detach Batch Added Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public off(\n event: \"batchAdded\",\n listener: (e: { action: string; documents: TModel[] }) => void,\n ): void;\n /**\n * Detach Batch Sent Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public off(\n event: \"beforeDocumentSent\",\n listener: (e: IndexDocumentsAction<TModel>) => void,\n ): void;\n /**\n * Detach Batch Succeeded Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public off(event: \"batchSucceeded\", listener: (e: IndexDocumentsResult) => void): void;\n /**\n * Detach Batch Failed Event\n *\n * @param event - Event to be emitted\n * @param listener - Event Listener\n */\n public off(event: \"batchFailed\", listener: (e: RestError) => void): void;\n public off(\n event: \"batchAdded\" | \"beforeDocumentSent\" | \"batchSucceeded\" | \"batchFailed\",\n listener: (e: any) => void,\n ): void {\n this.emitter.removeListener(event, listener);\n }\n\n private isBatchReady(): boolean {\n return this.batchObject.actions.length >= this.initialBatchActionCount;\n }\n\n private async internalFlush(force: boolean, options: OperationOptions = {}): Promise<void> {\n if (force || (this.autoFlush && this.isBatchReady())) {\n // Split it\n const actions: IndexDocumentsAction<TModel>[] = this.batchObject.actions;\n this.batchObject = new IndexDocumentsBatch<TModel>();\n while (actions.length > 0) {\n const actionsToSend = actions.splice(0, this.initialBatchActionCount);\n const { batchToSubmit, submitLater } = this.pruneActions(actionsToSend);\n actions.unshift(...submitLater);\n await this.submitDocuments(batchToSubmit, options);\n }\n }\n }\n\n private pruneActions(batch: IndexDocumentsAction<TModel>[]): {\n batchToSubmit: IndexDocumentsAction<TModel>[];\n submitLater: IndexDocumentsAction<TModel>[];\n } {\n const hashSet: Set<string> = new Set<string>();\n const resultBatch: IndexDocumentsAction<TModel>[] = [];\n const pruned: IndexDocumentsAction<TModel>[] = [];\n\n for (const document of batch) {\n const key = this.documentKeyRetriever(document as unknown as TModel);\n if (hashSet.has(key)) {\n pruned.push(document);\n } else {\n hashSet.add(key);\n resultBatch.push(document);\n }\n }\n return { batchToSubmit: resultBatch, submitLater: pruned };\n }\n\n private async submitDocuments(\n actionsToSend: IndexDocumentsAction<TModel>[],\n options: OperationOptions,\n retryAttempt: number = 1,\n ): Promise<void> {\n try {\n for (const action of actionsToSend) {\n this.emitter.emit(\"beforeDocumentSent\", action);\n }\n const result = await this.client.indexDocuments(\n new IndexDocumentsBatch<TModel>(actionsToSend),\n options,\n );\n // raise success event\n this.emitter.emit(\"batchSucceeded\", result);\n } catch (e: any) {\n if (e.statusCode && e.statusCode === 413 && actionsToSend.length > 1) {\n // Cut the payload size to half\n const splitActionsArray = [\n actionsToSend.slice(0, actionsToSend.length / 2),\n actionsToSend.slice(actionsToSend.length / 2, actionsToSend.length),\n ];\n this.initialBatchActionCount = splitActionsArray[0].length; // So, we do not want 413 happening again and again\n for (const actions of splitActionsArray) {\n await this.submitDocuments(actions, options);\n }\n } else if (this.isRetryAbleError(e) && retryAttempt <= this.maxRetriesPerAction) {\n // Exponentially increase the delay each time\n const exponentialDelay = this.throttlingDelayInMs * Math.pow(2, retryAttempt);\n // Don't let the delay exceed the maximum\n const clampedExponentialDelay = Math.min(this.maxThrottlingDelayInMs, exponentialDelay);\n // Allow the final value to have some \"jitter\" (within 50% of the delay size) so\n // that retries across multiple clients don't occur simultaneously.\n const delayWithJitter =\n clampedExponentialDelay / 2 + getRandomIntegerInclusive(0, clampedExponentialDelay / 2);\n await delay(delayWithJitter);\n await this.submitDocuments(actionsToSend, options, retryAttempt + 1);\n } else {\n this.emitter.emit(\"batchFailed\", e);\n throw e;\n }\n }\n }\n\n private isRetryAbleError(e: any): boolean {\n return e.statusCode && (e.statusCode === 422 || e.statusCode === 409 || e.statusCode === 503);\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serialization.js","sourceRoot":"","sources":["../../src/serialization.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAE9B,MAAM,gBAAgB,GAAG,qDAAqD,CAAC;AAC/E,MAAM,oBAAoB,GAAG,OAAO,CAAC;AACrC,MAAM,uBAA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AAC;YACf,CAAC;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC;AAED,SAAS,aAAa,CACpB,GAAQ,EACR,UAGI,EAAE;IAEN,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;QAC5C,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAE9B,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;QACzB,KAAK,MAAM,WAAW,IAAI,OAAO,CAAC,YAAY,EAAE,CAAC;YAC/C,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBAChC,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;QAC9B,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE,CAAC;YACvB,IAAI,CAAC,OAAO,CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE,CAAC;gBACpC,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport GeographyPoint from \"./geographyPoint\";\nimport { walk } from \"./walk\";\n\nconst ISO8601DateRegex = /^\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d{1,3})?Z$/i;\nconst GeoJSONPointTypeName = \"Point\";\nconst WorldGeodeticSystem1984 = \"EPSG:4326\"; // See https://epsg.io/4326\n\nconst [serializeValue, deserializeValue] = [\n [serializeSpecialNumbers, serializeDates, serializeGeoPoint],\n [deserializeSpecialNumbers, deserializeDates, deserializeGeoPoint],\n].map(\n (fns) =>\n (value: unknown): unknown =>\n fns.reduceRight((acc, fn) => fn(acc), value),\n);\n\nexport function serialize<OutputT>(obj: unknown): OutputT {\n return walk(obj, serializeValue) as OutputT;\n}\n\nexport function deserialize<OutputT>(obj: unknown): OutputT {\n return walk(obj, deserializeValue) as OutputT;\n}\n\nfunction serializeSpecialNumbers(input: unknown): unknown {\n if (typeof input === \"number\" && isNaN(input)) {\n return \"NaN\";\n } else if (input === Infinity) {\n return \"INF\";\n } else if (input === -Infinity) {\n return \"-INF\";\n } else {\n return input;\n }\n}\n\nfunction serializeDates(input: unknown): string | unknown {\n return input instanceof Date ? input.toISOString() : input;\n}\n\nfunction serializeGeoPoint(input: unknown): object | unknown {\n return input instanceof GeographyPoint ? input.toJSON() : input;\n}\n\nfunction deserializeSpecialNumbers(input: unknown): unknown {\n switch (input) {\n case \"NaN\":\n return NaN;\n case \"-INF\":\n return -Infinity;\n case \"INF\":\n return Infinity;\n default:\n return input;\n }\n}\n\nfunction deserializeDates(input: unknown): Date | unknown {\n return typeof input === \"string\" && ISO8601DateRegex.test(input) ? new Date(input) : input;\n}\n\nfunction deserializeGeoPoint(input: unknown): GeographyPoint | unknown {\n if (isGeoJSONPoint(input)) {\n const [longitude, latitude] = input.coordinates;\n return new GeographyPoint({ longitude, latitude });\n }\n return input;\n}\n\ninterface GeoJSONPoint {\n type: \"Point\";\n coordinates: [number, number];\n crs: {\n type: \"name\";\n properties: {\n name: \"EPSG:4326\";\n };\n };\n}\n\nfunction isGeoJSONPoint(obj: any): obj is GeoJSONPoint {\n const requiredKeys = [\"type\", \"coordinates\"];\n return isValidObject(obj, {\n requiredKeys,\n propertyValidator: (key) => {\n switch (key) {\n case \"type\":\n return obj.type === GeoJSONPointTypeName;\n break;\n case \"coordinates\":\n return isCoordinateArray(obj.coordinates);\n break;\n case \"crs\":\n return isCrs(obj.crs);\n break;\n default:\n return false;\n }\n },\n });\n}\n\nfunction isCoordinateArray(maybeCoordinates: any): boolean {\n if (!Array.isArray(maybeCoordinates)) {\n return false;\n }\n if (maybeCoordinates.length !== 2) {\n return false;\n }\n if (typeof maybeCoordinates[0] !== \"number\" || typeof maybeCoordinates[1] !== \"number\") {\n return false;\n }\n return true;\n}\n\nfunction isCrs(maybeCrs: any): boolean {\n return isValidObject(maybeCrs, {\n requiredKeys: [\"type\", \"properties\"],\n propertyValidator: (key) => {\n switch (key) {\n case \"type\":\n return maybeCrs.type === \"name\";\n break;\n case \"properties\":\n return isCrsProperties(maybeCrs.properties);\n break;\n default:\n return false;\n }\n },\n });\n}\n\nfunction isCrsProperties(maybeProperties: any): boolean {\n return isValidObject(maybeProperties, {\n requiredKeys: [\"name\"],\n propertyValidator: (key) => {\n if (key === \"name\") {\n return maybeProperties.name === WorldGeodeticSystem1984;\n } else {\n return false;\n }\n },\n });\n}\n\nfunction isValidObject(\n obj: any,\n options: {\n requiredKeys?: string[];\n propertyValidator?: (keyName: string) => boolean;\n } = {},\n): boolean {\n if (typeof obj !== \"object\" || obj === null) {\n return false;\n }\n\n const keys = Object.keys(obj);\n\n if (options.requiredKeys) {\n for (const requiredKey of options.requiredKeys) {\n if (!keys.includes(requiredKey)) {\n return false;\n }\n }\n }\n\n if (options.propertyValidator) {\n for (const key of keys) {\n if (!options.propertyValidator(key)) {\n return false;\n }\n }\n }\n\n return true;\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceModels.js","sourceRoot":"","sources":["../../src/serviceModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAg9BlC,MAAM,UAAU,cAAc,CAAC,KAAkB;IAC/C,OAAO,KAAK,CAAC,IAAI,KAAK,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,6BAA6B,CAAC;AAC1F,CAAC;AA+UD;;;GAGG;AACH,MAAM,CAAN,IAAY,mBAmEX;AAnED,WAAY,mBAAmB;IAC7B;;;OAGG;IACH,0CAAmB,CAAA;IACnB;;;OAGG;IACH,8CAAuB,CAAA;IACvB;;;OAGG;IACH,6CAAsB,CAAA;IACtB;;;OAGG;IACH,wCAAiB,CAAA;IACjB;;;OAGG;IACH,8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AAA;AAC3B,CAAC,EApXW,kBAAkB,KAAlB,kBAAkB,QAoX7B;AAggBD,6CAA6C","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { OperationOptions } from \"@azure/core-client\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport {\n AsciiFoldingTokenFilter,\n AzureOpenAIModelName,\n BinaryQuantizationCompression,\n BM25Similarity,\n CharFilterName,\n CjkBigramTokenFilter,\n ClassicSimilarity,\n ClassicTokenizer,\n CognitiveServicesAccountKey,\n CommonGramTokenFilter,\n ConditionalSkill,\n CorsOptions,\n CustomEntity,\n DefaultCognitiveServicesAccount,\n DictionaryDecompounderTokenFilter,\n DistanceScoringFunction,\n DocumentExtractionSkill,\n EdgeNGramTokenFilterSide,\n EdgeNGramTokenizer,\n ElisionTokenFilter,\n EntityLinkingSkill,\n EntityRecognitionSkillV3,\n FieldMapping,\n FreshnessScoringFunction,\n HighWaterMarkChangeDetectionPolicy,\n IndexingSchedule,\n IndexProjectionMode,\n KeepTokenFilter,\n KeywordMarkerTokenFilter,\n KnownBlobIndexerDataToExtract,\n KnownBlobIndexerImageAction,\n KnownBlobIndexerParsingMode,\n KnownBlobIndexerPDFTextRotationAlgorithm,\n KnownCharFilterName,\n KnownCustomEntityLookupSkillLanguage,\n KnownEntityCategory,\n KnownEntityRecognitionSkillLanguage,\n KnownImageAnalysisSkillLanguage,\n KnownImageDetail,\n KnownIndexerExecutionEnvironment,\n KnownKeyPhraseExtractionSkillLanguage,\n KnownLexicalAnalyzerName,\n KnownLexicalTokenizerName,\n KnownOcrSkillLanguage,\n KnownPIIDetectionSkillMaskingMode,\n KnownRegexFlags,\n KnownSearchFieldDataType,\n KnownSearchIndexerDataSourceType,\n KnownSentimentSkillLanguage,\n KnownSplitSkillLanguage,\n KnownTextSplitMode,\n KnownTextTranslationSkillLanguage,\n KnownTokenFilterName,\n KnownVectorSearchAlgorithmKind,\n KnownVectorSearchAlgorithmMetric,\n KnownVisualFeature,\n LanguageDetectionSkill,\n LengthTokenFilter,\n LexicalAnalyzerName,\n LexicalTokenizerName,\n LimitTokenFilter,\n LuceneStandardAnalyzer,\n MagnitudeScoringFunction,\n MappingCharFilter,\n MergeSkill,\n MicrosoftLanguageStemmingTokenizer,\n MicrosoftLanguageTokenizer,\n NGramTokenizer,\n PathHierarchyTokenizerV2 as PathHierarchyTokenizer,\n PatternCaptureTokenFilter,\n PatternReplaceCharFilter,\n PatternReplaceTokenFilter,\n PhoneticTokenFilter,\n ScalarQuantizationCompression,\n ScoringFunctionAggregation,\n SearchIndexerDataContainer,\n SearchIndexerDataNoneIdentity,\n SearchIndexerDataUserAssignedIdentity,\n SearchIndexerIndexProjectionSelector,\n SearchIndexerKnowledgeStoreProjection,\n SearchIndexerSkill as BaseSearchIndexerSkill,\n SemanticSearch,\n SentimentSkillV3,\n ServiceCounters,\n ServiceLimits,\n ShaperSkill,\n ShingleTokenFilter,\n SnowballTokenFilter,\n SoftDeleteColumnDeletionDetectionPolicy,\n SqlIntegratedChangeTrackingPolicy,\n StemmerOverrideTokenFilter,\n StemmerTokenFilter,\n StopAnalyzer,\n StopwordsTokenFilter,\n Suggester as SearchSuggester,\n SynonymTokenFilter,\n TagScoringFunction,\n TextWeights,\n TokenFilterName,\n TruncateTokenFilter,\n UaxUrlEmailTokenizer,\n UniqueTokenFilter,\n VectorEncodingFormat,\n VectorSearchProfile,\n VectorSearchVectorizerKind,\n WordDelimiterTokenFilter,\n} from \"./generated/service/models\";\n\n/**\n * Options for a list skillsets operation.\n */\nexport type ListSkillsetsOptions = OperationOptions;\n\n/**\n * Options for a list synonymMaps operation.\n */\nexport type ListSynonymMapsOptions = OperationOptions;\n\n/**\n * Options for a list indexes operation.\n */\nexport type ListIndexesOptions = OperationOptions;\n\n/**\n * Options for a list indexers operation.\n */\nexport type ListIndexersOptions = OperationOptions;\n\n/**\n * Options for a list data sources operation.\n */\nexport type ListDataSourceConnectionsOptions = OperationOptions;\n\n/**\n * Options for get index operation.\n */\nexport type GetIndexOptions = OperationOptions;\n\n/**\n * Options for get skillset operation.\n */\nexport type GetSkillSetOptions = OperationOptions;\n\n/**\n * Options for get synonymmaps operation.\n */\nexport type GetSynonymMapsOptions = OperationOptions;\n\n/**\n * Options for get indexer operation.\n */\nexport type GetIndexerOptions = OperationOptions;\n\n/**\n * Options for get datasource operation.\n */\nexport type GetDataSourceConnectionOptions = OperationOptions;\n\n/**\n * Options for get index statistics operation.\n */\nexport type GetIndexStatisticsOptions = OperationOptions;\n\n/**\n * Statistics for a given index. Statistics are collected periodically and are not guaranteed to\n * always be up-to-date.\n */\nexport interface SearchIndexStatistics {\n /**\n * The number of documents in the index.\n * **NOTE: This property will not be serialized. It can only be populated by the server.**\n */\n readonly documentCount: number;\n /**\n * The amount of storage in bytes consumed by the index.\n * **NOTE: This property will not be serialized. It can only be populated by the server.**\n */\n readonly storageSize: number;\n /**\n * The amount of memory in bytes consumed by vectors in the index.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly vectorIndexSize: number;\n}\n\n/**\n * Response from a get service statistics request. If successful, it includes service level\n * counters and limits.\n */\nexport interface SearchServiceStatistics {\n /**\n * Service level resource counters.\n */\n counters: ServiceCounters;\n /**\n * Service level general limits.\n */\n limits: ServiceLimits;\n}\n\n/**\n * Options for get service statistics operation.\n */\nexport type GetServiceStatisticsOptions = OperationOptions;\n\n/**\n * Options for get indexer status operation.\n */\nexport type GetIndexerStatusOptions = OperationOptions;\n\n/**\n * Options for reset indexer operation.\n */\nexport type ResetIndexerOptions = OperationOptions;\n\n/**\n * Options for run indexer operation.\n */\nexport type RunIndexerOptions = OperationOptions;\n\n/**\n * Options for create index operation.\n */\nexport type CreateIndexOptions = OperationOptions;\n\n/**\n * Options for create skillset operation.\n */\nexport type CreateSkillsetOptions = OperationOptions;\n\n/**\n * Options for create alias operation.\n */\nexport type CreateAliasOptions = OperationOptions;\n\n/**\n * Options for create or update alias operation.\n */\nexport interface CreateOrUpdateAliasOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for delete alias operation.\n */\nexport interface DeleteAliasOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for get alias operation.\n */\nexport type GetAliasOptions = OperationOptions;\n\n/**\n * Options for list aliases operation.\n */\nexport type ListAliasesOptions = OperationOptions;\n\n/**\n * Options for create synonymmap operation.\n */\nexport type CreateSynonymMapOptions = OperationOptions;\n\n/**\n * Options for create indexer operation.\n */\nexport type CreateIndexerOptions = OperationOptions;\n\n/**\n * Options for create datasource operation.\n */\nexport type CreateDataSourceConnectionOptions = OperationOptions;\n\n/**\n * Options for create/update index operation.\n */\nexport interface CreateOrUpdateIndexOptions extends OperationOptions {\n /**\n * Allows new analyzers, tokenizers, token filters, or char filters to be added to an index by\n * taking the index offline for at least a few seconds. This temporarily causes indexing and\n * query requests to fail. Performance and write availability of the index can be impaired for\n * several minutes after the index is updated, or longer for very large indexes.\n */\n allowIndexDowntime?: boolean;\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for reset docs operation.\n */\nexport interface ResetDocumentsOptions extends OperationOptions {\n /** document keys to be reset */\n documentKeys?: string[];\n /** datasource document identifiers to be reset */\n datasourceDocumentIds?: string[];\n /** If false, keys or ids will be appended to existing ones. If true, only the keys or ids in this payload will be queued to be re-ingested. */\n overwrite?: boolean;\n}\n\n/**\n * Options for reset skills operation.\n */\nexport interface ResetSkillsOptions extends OperationOptions {\n /** the names of skills to be reset. */\n skillNames?: string[];\n}\n\n/**\n * Options for create/update skillset operation.\n */\nexport interface CreateOrUpdateSkillsetOptions extends OperationOptions {\n /**\n * If set to true, Resource will be updated only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for create/update synonymmap operation.\n */\nexport interface CreateOrUpdateSynonymMapOptions extends OperationOptions {\n /**\n * If set to true, Resource will be updated only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for create/update indexer operation.\n */\nexport interface CreateorUpdateIndexerOptions extends OperationOptions {\n /**\n * If set to true, Resource will be updated only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for create/update datasource operation.\n */\nexport interface CreateorUpdateDataSourceConnectionOptions extends OperationOptions {\n /**\n * If set to true, Resource will be updated only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for delete index operation.\n */\nexport interface DeleteIndexOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for delete skillset operaion.\n */\nexport interface DeleteSkillsetOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for delete synonymmap operation.\n */\nexport interface DeleteSynonymMapOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for delete indexer operation.\n */\nexport interface DeleteIndexerOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Options for delete datasource operation.\n */\nexport interface DeleteDataSourceConnectionOptions extends OperationOptions {\n /**\n * If set to true, Resource will be deleted only if the etag matches.\n */\n onlyIfUnchanged?: boolean;\n}\n\n/**\n * Specifies some text and analysis components used to break that text into tokens.\n */\nexport interface AnalyzeRequest {\n /**\n * The text to break into tokens.\n */\n text: string;\n /**\n * The name of the analyzer to use to break the given text. If this parameter is not specified,\n * you must specify a tokenizer instead. The tokenizer and analyzer parameters are mutually\n * exclusive. {@link KnownAnalyzerNames} is an enum containing built-in analyzer names.\n * NOTE: Either analyzerName or tokenizerName is required in an AnalyzeRequest.\n */\n analyzerName?: LexicalAnalyzerName;\n /**\n * The name of the tokenizer to use to break the given text. If this parameter is not specified,\n * you must specify an analyzer instead. The tokenizer and analyzer parameters are mutually\n * exclusive. {@link KnownTokenizerNames} is an enum containing built-in tokenizer names.\n * NOTE: Either analyzerName or tokenizerName is required in an AnalyzeRequest.\n */\n tokenizerName?: LexicalTokenizerName;\n /**\n * An optional list of token filters to use when breaking the given text. This parameter can only\n * be set when using the tokenizer parameter.\n */\n tokenFilters?: TokenFilterName[];\n /**\n * An optional list of character filters to use when breaking the given text. This parameter can\n * only be set when using the tokenizer parameter.\n */\n charFilters?: CharFilterName[];\n}\n\n/**\n * Options for analyze text operation.\n */\nexport type AnalyzeTextOptions = OperationOptions & AnalyzeRequest;\n\n// BEGIN manually modified generated interfaces\n//\n// This section is for places where we have to manually fix issues\n// with interfaces from the generated code.\n// One issue is that unions of discriminated types generated with\n// their abstract base class as a member.\n\n/**\n * Flexibly separates text into terms via a regular expression pattern. This analyzer is\n * implemented using Apache Lucene.\n */\nexport interface PatternAnalyzer {\n /**\n * Polymorphic Discriminator\n */\n odatatype: \"#Microsoft.Azure.Search.PatternAnalyzer\";\n /**\n * The name of the analyzer. It must only contain letters, digits, spaces, dashes or underscores,\n * can only start and end with alphanumeric characters, and is limited to 128 characters.\n */\n name: string;\n /**\n * A value indicating whether terms should be lower-cased. Default is true. Default value: true.\n */\n lowerCaseTerms?: boolean;\n /**\n * A regular expression pattern to match token separators. Default is an expression that matches\n * one or more whitespace characters. Default value: `\\W+`.\n */\n pattern?: string;\n /**\n * Regular expression flags. Possible values include: 'CANON_EQ', 'CASE_INSENSITIVE', 'COMMENTS',\n * 'DOTALL', 'LITERAL', 'MULTILINE', 'UNICODE_CASE', 'UNIX_LINES'\n */\n flags?: RegexFlags[];\n /**\n * A list of stopwords.\n */\n stopwords?: string[];\n}\n\n/**\n * Allows you to take control over the process of converting text into indexable/searchable tokens.\n * It's a user-defined configuration consisting of a single predefined tokenizer and one or more\n * filters. The tokenizer is responsible for breaking text into tokens, and the filters for\n * modifying tokens emitted by the tokenizer.\n */\nexport interface CustomAnalyzer {\n /**\n * Polymorphic Discriminator\n */\n odatatype: \"#Microsoft.Azure.Search.CustomAnalyzer\";\n /**\n * The name of the analyzer. It must only contain letters, digits, spaces, dashes or underscores,\n * can only start and end with alphanumeric characters, and is limited to 128 characters.\n */\n name: string;\n /**\n * The name of the tokenizer to use to divide continuous text into a sequence of tokens, such as\n * breaking a sentence into words. {@link KnownTokenizerNames} is an enum containing built-in tokenizer names.\n */\n tokenizerName: LexicalTokenizerName;\n /**\n * A list of token filters used to filter out or modify the tokens generated by a tokenizer. For\n * example, you can specify a lowercase filter that converts all characters to lowercase. The\n * filters are run in the order in which they are listed.\n */\n tokenFilters?: TokenFilterName[];\n /**\n * A list of character filters used to prepare input text before it is processed by the\n * tokenizer. For instance, they can replace certain characters or symbols. The filters are run\n * in the order in which they are listed.\n */\n charFilters?: CharFilterName[];\n}\n\n/**\n * Contains the possible cases for Analyzer.\n */\nexport type LexicalAnalyzer =\n | CustomAnalyzer\n | PatternAnalyzer\n | LuceneStandardAnalyzer\n | StopAnalyzer;\n\n/**\n * A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call\n * your custom code.\n */\nexport interface WebApiSkill extends BaseSearchIndexerSkill {\n /**\n * Polymorphic discriminator, which specifies the different types this object can be\n */\n odatatype: \"#Microsoft.Skills.Custom.WebApiSkill\";\n /**\n * The url for the Web API.\n */\n uri: string;\n /**\n * The headers required to make the http request.\n */\n httpHeaders?: { [propertyName: string]: string };\n /**\n * The method for the http request.\n */\n httpMethod?: string;\n /**\n * The desired timeout for the request. Default is 30 seconds.\n */\n timeout?: string;\n /**\n * The desired batch size which indicates number of documents.\n */\n batchSize?: number;\n /**\n * If set, the number of parallel calls that can be made to the Web API.\n */\n degreeOfParallelism?: number;\n /**\n * Applies to custom skills that connect to external code in an Azure function or some other\n * application that provides the transformations. This value should be the application ID\n * created for the function or app when it was registered with Azure Active Directory. When\n * specified, the custom skill connects to the function or app using a managed ID (either system\n * or user-assigned) of the search service and the access token of the function or app, using\n * this value as the resource id for creating the scope of the access token.\n */\n authResourceId?: string;\n /**\n * The user-assigned managed identity used for outbound connections. If an authResourceId is\n * provided and it's not specified, the system-assigned managed identity is used. On updates to\n * the indexer, if the identity is unspecified, the value remains unchanged. If undefined, the\n * value of this property is cleared.\n */\n authIdentity?: SearchIndexerDataIdentity;\n}\n\n/**\n * Contains the possible cases for Skill.\n */\nexport type SearchIndexerSkill =\n | AzureOpenAIEmbeddingSkill\n | ConditionalSkill\n | CustomEntityLookupSkill\n | DocumentExtractionSkill\n | EntityLinkingSkill\n | EntityRecognitionSkill\n | EntityRecognitionSkillV3\n | ImageAnalysisSkill\n | KeyPhraseExtractionSkill\n | LanguageDetectionSkill\n | MergeSkill\n | OcrSkill\n | PIIDetectionSkill\n | SentimentSkill\n | SentimentSkillV3\n | ShaperSkill\n | SplitSkill\n | TextTranslationSkill\n | WebApiSkill;\n\n/**\n * Contains the possible cases for CognitiveServicesAccount.\n */\nexport type CognitiveServicesAccount =\n | DefaultCognitiveServicesAccount\n | CognitiveServicesAccountKey;\n/**\n * Tokenizer that uses regex pattern matching to construct distinct tokens. This tokenizer is\n * implemented using Apache Lucene.\n */\nexport interface PatternTokenizer {\n /**\n * Polymorphic Discriminator\n */\n odatatype: \"#Microsoft.Azure.Search.PatternTokenizer\";\n /**\n * The name of the tokenizer. It must only contain letters, digits, spaces, dashes or\n * underscores, can only start and end with alphanumeric characters, and is limited to 128\n * characters.\n */\n name: string;\n /**\n * A regular expression pattern to match token separators. Default is an expression that matches\n * one or more whitespace characters. Default value: `\\W+`.\n */\n pattern?: string;\n /**\n * Regular expression flags. Possible values include: 'CANON_EQ', 'CASE_INSENSITIVE', 'COMMENTS',\n * 'DOTALL', 'LITERAL', 'MULTILINE', 'UNICODE_CASE', 'UNIX_LINES'\n */\n flags?: RegexFlags[];\n /**\n * The zero-based ordinal of the matching group in the regular expression pattern to extract into\n * tokens. Use -1 if you want to use the entire pattern to split the input into tokens,\n * irrespective of matching groups. Default is -1. Default value: -1.\n */\n group?: number;\n}\n/**\n * Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using\n * Apache Lucene.\n */\nexport interface LuceneStandardTokenizer {\n /**\n * Polymorphic Discriminator\n */\n odatatype:\n | \"#Microsoft.Azure.Search.StandardTokenizerV2\"\n | \"#Microsoft.Azure.Search.StandardTokenizer\";\n /**\n * The name of the tokenizer. It must only contain letters, digits, spaces, dashes or\n * underscores, can only start and end with alphanumeric characters, and is limited to 128\n * characters.\n */\n name: string;\n /**\n * The maximum token length. Default is 255. Tokens longer than the maximum length are split. The\n * maximum token length that can be used is 300 characters. Default value: 255.\n */\n maxTokenLength?: number;\n}\n\n/**\n * Generates n-grams of the given size(s) starting from the front or the back of an input token.\n * This token filter is implemented using Apache Lucene.\n */\nexport interface EdgeNGramTokenFilter {\n /**\n * Polymorphic Discriminator\n */\n odatatype:\n | \"#Microsoft.Azure.Search.EdgeNGramTokenFilterV2\"\n | \"#Microsoft.Azure.Search.EdgeNGramTokenFilter\";\n /**\n * The name of the token filter. It must only contain letters, digits, spaces, dashes or\n * underscores, can only start and end with alphanumeric characters, and is limited to 128\n * characters.\n */\n name: string;\n /**\n * The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of\n * maxGram. Default value: 1.\n */\n minGram?: number;\n /**\n * The maximum n-gram length. Default is 2. Maximum is 300. Default value: 2.\n */\n maxGram?: number;\n /**\n * Specifies which side of the input the n-gram should be generated from. Default is \"front\".\n * Possible values include: 'Front', 'Back'\n */\n side?: EdgeNGramTokenFilterSide;\n}\n\n/**\n * Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene.\n */\nexport interface KeywordTokenizer {\n /**\n * Polymorphic Discriminator\n */\n odatatype:\n | \"#Microsoft.Azure.Search.KeywordTokenizerV2\"\n | \"#Microsoft.Azure.Search.KeywordTokenizer\";\n /**\n * The name of the tokenizer. It must only contain letters, digits, spaces, dashes or\n * underscores, can only start and end with alphanumeric characters, and is limited to 128\n * characters.\n */\n name: string;\n /**\n * The maximum token length. Default is 256. Tokens longer than the maximum length are split. The\n * maximum token length that can be used is 300 characters. Default value: 256.\n */\n maxTokenLength?: number;\n}\n\n/**\n * Contains the possible cases for Tokenizer.\n */\nexport type LexicalTokenizer =\n | ClassicTokenizer\n | EdgeNGramTokenizer\n | KeywordTokenizer\n | MicrosoftLanguageTokenizer\n | MicrosoftLanguageStemmingTokenizer\n | NGramTokenizer\n | PathHierarchyTokenizer\n | PatternTokenizer\n | LuceneStandardTokenizer\n | UaxUrlEmailTokenizer;\n\n/**\n * Definition of additional projections to azure blob, table, or files, of enriched data.\n */\nexport interface SearchIndexerKnowledgeStore {\n /**\n * The connection string to the storage account projections will be stored in.\n */\n storageConnectionString: string;\n /**\n * A list of additional projections to perform during indexing.\n */\n projections: SearchIndexerKnowledgeStoreProjection[];\n /**\n * The user-assigned managed identity used for connections to Azure Storage when writing\n * knowledge store projections. If the connection string indicates an identity (ResourceId) and\n * it's not specified, the system-assigned managed identity is used. On updates to the indexer,\n * if the identity is unspecified, the value remains unchanged. If set to \"none\", the value of\n * this property is cleared.\n */\n identity?: SearchIndexerDataIdentity;\n}\n\n/**\n * Contains the possible cases for Similarity.\n */\nexport type SimilarityAlgorithm = ClassicSimilarity | BM25Similarity;\n\n/**\n * Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene.\n */\nexport interface NGramTokenFilter {\n /**\n * Polymorphic Discriminator\n */\n odatatype:\n | \"#Microsoft.Azure.Search.NGramTokenFilterV2\"\n | \"#Microsoft.Azure.Search.NGramTokenFilter\";\n /**\n * The name of the token filter. It must only contain letters, digits, spaces, dashes or\n * underscores, can only start and end with alphanumeric characters, and is limited to 128\n * characters.\n */\n name: string;\n /**\n * The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of\n * maxGram. Default value: 1.\n */\n minGram?: number;\n /**\n * The maximum n-gram length. Default is 2. Maximum is 300. Default value: 2.\n */\n maxGram?: number;\n}\n\n/**\n * Contains the possible cases for TokenFilter.\n */\nexport type TokenFilter =\n | AsciiFoldingTokenFilter\n | CjkBigramTokenFilter\n | CommonGramTokenFilter\n | DictionaryDecompounderTokenFilter\n | EdgeNGramTokenFilter\n | ElisionTokenFilter\n | KeepTokenFilter\n | KeywordMarkerTokenFilter\n | LengthTokenFilter\n | LimitTokenFilter\n | NGramTokenFilter\n | PatternCaptureTokenFilter\n | PatternReplaceTokenFilter\n | PhoneticTokenFilter\n | ShingleTokenFilter\n | SnowballTokenFilter\n | StemmerTokenFilter\n | StemmerOverrideTokenFilter\n | StopwordsTokenFilter\n | SynonymTokenFilter\n | TruncateTokenFilter\n | UniqueTokenFilter\n | WordDelimiterTokenFilter;\n\n/**\n * Contains the possible cases for CharFilter.\n */\nexport type CharFilter = MappingCharFilter | PatternReplaceCharFilter;\n\n/**\n * Contains the possible cases for ScoringFunction.\n */\nexport type ScoringFunction =\n | DistanceScoringFunction\n | FreshnessScoringFunction\n | MagnitudeScoringFunction\n | TagScoringFunction;\n\n/**\n * Defines values for ComplexDataType.\n * Possible values include: 'Edm.ComplexType', 'Collection(Edm.ComplexType)'\n * @readonly\n */\nexport type ComplexDataType = \"Edm.ComplexType\" | \"Collection(Edm.ComplexType)\";\n\n/**\n * Represents a field in an index definition, which describes the name, data type, and search\n * behavior of a field.\n */\nexport type SearchField = SimpleField | ComplexField;\n\n/**\n * Represents a field in an index definition, which describes the name, data type, and search\n * behavior of a field.\n */\nexport interface SimpleField {\n /**\n * The name of the field, which must be unique within the fields collection of the index or\n * parent field.\n */\n name: string;\n /**\n * The data type of the field.\n */\n type: SearchFieldDataType;\n /**\n * A value indicating whether the field uniquely identifies documents in the index. Exactly one\n * top-level field in each index must be chosen as the key field and it must be of type\n * Edm.String. Key fields can be used to look up documents directly and update or delete specific\n * documents. Default is false.\n */\n key?: boolean;\n /**\n * A value indicating whether the field can be returned in a search result. You can disable this\n * option if you want to use a field (for example, margin) as a filter, sorting, or scoring\n * mechanism but do not want the field to be visible to the end user. This property must be false\n * for key fields. This property can be changed on existing fields. Enabling this property does\n * not cause any increase in index storage requirements. Default is true for vector fields, false\n * otherwise.\n */\n hidden?: boolean;\n /**\n * An immutable value indicating whether the field will be persisted separately on disk to be\n * returned in a search result. You can disable this option if you don't plan to return the field\n * contents in a search response to save on storage overhead. This can only be set during index\n * creation and only for vector fields. This property cannot be changed for existing fields or set\n * as false for new fields. If this property is set as false, the property 'hidden' must be set to\n * 'true'. This property must be false or unset for key fields, for new fields, and for non-vector\n * fields. Disabling this property will reduce index storage requirements.\n */\n stored?: boolean;\n /**\n * A value indicating whether the field is full-text searchable. This means it will undergo\n * analysis such as word-breaking during indexing. If you set a searchable field to a value like\n * \"sunny day\", internally it will be split into the individual tokens \"sunny\" and \"day\". This\n * enables full-text searches for these terms. Fields of type Edm.String or Collection(Edm.String)\n * are searchable by default. This property must be false for simple fields of other non-string\n * data types. Note: searchable fields consume extra space\n * in your index to accommodate additional tokenized versions of the field value for full-text\n * searches. If you want to save space in your index and you don't need a field to be included in\n * searches, set searchable to false. Default is false.\n */\n searchable?: boolean;\n /**\n * A value indicating whether to enable the field to be referenced in $filter queries. filterable\n * differs from searchable in how strings are handled. Fields of type Edm.String or\n * Collection(Edm.String) that are filterable do not undergo word-breaking, so comparisons are for\n * exact matches only. For example, if you set such a field f to \"sunny day\", $filter=f eq 'sunny'\n * will find no matches, but $filter=f eq 'sunny day' will. Default is false.\n */\n filterable?: boolean;\n /**\n * A value indicating whether to enable the field to be referenced in $orderby expressions. By\n * default, the search engine sorts results by score, but in many experiences users will want to\n * sort by fields in the documents. A simple field can be sortable only if it is single-valued (it\n * has a single value in the scope of the parent document). Simple collection fields cannot be\n * sortable, since they are multi-valued. Simple sub-fields of complex collections are also\n * multi-valued, and therefore cannot be sortable. This is true whether it's an immediate parent\n * field, or an ancestor field, that's the complex collection. The default is false.\n *\n */\n sortable?: boolean;\n /**\n * A value indicating whether to enable the field to be referenced in facet queries. Typically\n * used in a presentation of search results that includes hit count by category (for example,\n * search for digital cameras and see hits by brand, by megapixels, by price, and so on). Fields\n * of type Edm.GeographyPoint or Collection(Edm.GeographyPoint) cannot be facetable. Default is\n * false.\n */\n facetable?: boolean;\n /**\n * The name of the analyzer to use for the field. This option can be used only with searchable\n * fields and it can't be set together with either searchAnalyzer or indexAnalyzer. Once the\n * analyzer is chosen, it cannot be changed for the field.\n */\n analyzerName?: LexicalAnalyzerName;\n /**\n * The name of the analyzer used at search time for the field. This option can be used only with\n * searchable fields. It must be set together with `indexAnalyzerName` and it cannot be set\n * together with the `analyzerName` option. This property cannot be set to the name of a language\n * analyzer; use the `analyzerName` property instead if you need a language analyzer. This\n * analyzer can be updated on an existing field.\n */\n searchAnalyzerName?: LexicalAnalyzerName;\n /**\n * The name of the analyzer used at indexing time for the field. This option can be used only\n * with searchable fields. It must be set together with searchAnalyzer and it cannot be set\n * together with the analyzer option. This property cannot be set to the name of a language\n * analyzer; use the analyzer property instead if you need a language analyzer. Once the analyzer\n * is chosen, it cannot be changed for the field.\n */\n indexAnalyzerName?: LexicalAnalyzerName;\n /**\n * A list of the names of synonym maps to associate with this field. This option can be used only\n * with searchable fields. Currently only one synonym map per field is supported. Assigning a\n * synonym map to a field ensures that query terms targeting that field are expanded at query-time\n * using the rules in the synonym map. This attribute can be changed on existing fields.\n */\n synonymMapNames?: string[];\n /**\n * The dimensionality of the vector field.\n */\n vectorSearchDimensions?: number;\n /**\n * The name of the vector search profile that specifies the algorithm and vectorizer to use when\n * searching the vector field.\n */\n vectorSearchProfileName?: string;\n /**\n * The encoding format to interpret the field contents.\n */\n vectorEncodingFormat?: VectorEncodingFormat;\n}\n\nexport function isComplexField(field: SearchField): field is ComplexField {\n return field.type === \"Edm.ComplexType\" || field.type === \"Collection(Edm.ComplexType)\";\n}\n\n/**\n * Represents a field in an index definition, which describes the name, data type, and search\n * behavior of a field.\n */\nexport interface ComplexField {\n /**\n * The name of the field, which must be unique within the fields collection of the index or\n * parent field.\n */\n name: string;\n /**\n * The data type of the field.\n * Possible values include: 'Edm.ComplexType','Collection(Edm.ComplexType)'\n */\n type: ComplexDataType;\n /**\n * A list of sub-fields.\n */\n fields?: SearchField[];\n}\n\n/**\n * Represents a synonym map definition.\n */\nexport interface SynonymMap {\n /**\n * The name of the synonym map.\n */\n name: string;\n /**\n * An array of synonym rules in the specified synonym map format.\n */\n synonyms: string[];\n /**\n * A description of an encryption key that you create in Azure Key Vault. This key is used to\n * provide an additional level of encryption-at-rest for your data when you want full assurance\n * that no one, not even Microsoft, can decrypt your data in Azure Cognitive Search. Once you\n * have encrypted your data, it will always remain encrypted. Azure Cognitive Search will ignore\n * attempts to set this property to null. You can change this property as needed if you want to\n * rotate your encryption key; Your data will be unaffected. Encryption with customer-managed\n * keys is not available for free search services, and is only available for paid services\n * created on or after January 1, 2019.\n */\n encryptionKey?: SearchResourceEncryptionKey;\n /**\n * The ETag of the synonym map.\n */\n etag?: string;\n}\n\n/**\n * An iterator for listing the indexes that exist in the Search service. Will make requests\n * as needed during iteration. Use .byPage() to make one request to the server\n * per iteration.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type IndexIterator = PagedAsyncIterableIterator<SearchIndex, SearchIndex[], {}>;\n\n/**\n * An iterator for listing the indexes that exist in the Search service. Will make requests\n * as needed during iteration. Use .byPage() to make one request to the server\n * per iteration.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport type IndexNameIterator = PagedAsyncIterableIterator<string, string[], {}>;\n\n/**\n * Represents a search index definition, which describes the fields and search behavior of an\n * index.\n */\nexport interface SearchIndex {\n /**\n * The name of the index.\n */\n name: string;\n /**\n * The fields of the index.\n */\n fields: SearchField[];\n /**\n * The scoring profiles for the index.\n */\n scoringProfiles?: ScoringProfile[];\n /**\n * The name of the scoring profile to use if none is specified in the query. If this property is\n * not set and no scoring profile is specified in the query, then default scoring (tf-idf) will\n * be used.\n */\n defaultScoringProfile?: string;\n /**\n * Options to control Cross-Origin Resource Sharing (CORS) for the index.\n */\n corsOptions?: CorsOptions;\n /**\n * The suggesters for the index.\n */\n suggesters?: SearchSuggester[];\n /**\n * The analyzers for the index.\n */\n analyzers?: LexicalAnalyzer[];\n /**\n * The tokenizers for the index.\n */\n tokenizers?: LexicalTokenizer[];\n /**\n * The token filters for the index.\n */\n tokenFilters?: TokenFilter[];\n /**\n * The character filters for the index.\n */\n charFilters?: CharFilter[];\n /**\n * A description of an encryption key that you create in Azure Key Vault. This key is used to\n * provide an additional level of encryption-at-rest for your data when you want full assurance\n * that no one, not even Microsoft, can decrypt your data in Azure Cognitive Search. Once you\n * have encrypted your data, it will always remain encrypted. Azure Cognitive Search will ignore\n * attempts to set this property to null. You can change this property as needed if you want to\n * rotate your encryption key; Your data will be unaffected. Encryption with customer-managed\n * keys is not available for free search services, and is only available for paid services\n * created on or after January 1, 2019.\n */\n encryptionKey?: SearchResourceEncryptionKey;\n /**\n * The type of similarity algorithm to be used when scoring and ranking the documents matching a\n * search query. The similarity algorithm can only be defined at index creation time and cannot\n * be modified on existing indexes. If null, the ClassicSimilarity algorithm is used.\n */\n similarity?: SimilarityAlgorithm;\n /**\n * Defines parameters for a search index that influence semantic capabilities.\n */\n semanticSearch?: SemanticSearch;\n /**\n * Contains configuration options related to vector search.\n */\n vectorSearch?: VectorSearch;\n /**\n * The ETag of the index.\n */\n etag?: string;\n}\n\nexport interface SearchIndexerCache {\n /**\n * The connection string to the storage account where the cache data will be persisted.\n */\n storageConnectionString?: string;\n /**\n * Specifies whether incremental reprocessing is enabled.\n */\n enableReprocessing?: boolean;\n /** The user-assigned managed identity used for connections to the enrichment cache. If the\n * connection string indicates an identity (ResourceId) and it's not specified, the\n * system-assigned managed identity is used. On updates to the indexer, if the identity is\n * unspecified, the value remains unchanged. If set to \"none\", the value of this property is\n * cleared.\n */\n identity?: SearchIndexerDataIdentity;\n}\n\n/**\n * Represents an indexer.\n */\nexport interface SearchIndexer {\n /**\n * The name of the indexer.\n */\n name: string;\n /**\n * The description of the indexer.\n */\n description?: string;\n /**\n * The name of the datasource from which this indexer reads data.\n */\n dataSourceName: string;\n /**\n * The name of the skillset executing with this indexer.\n */\n skillsetName?: string;\n /**\n * The name of the index to which this indexer writes data.\n */\n targetIndexName: string;\n /**\n * The schedule for this indexer.\n */\n schedule?: IndexingSchedule;\n /**\n * Parameters for indexer execution.\n */\n parameters?: IndexingParameters;\n /**\n * Defines mappings between fields in the data source and corresponding target fields in the\n * index.\n */\n fieldMappings?: FieldMapping[];\n /**\n * Output field mappings are applied after enrichment and immediately before indexing.\n */\n outputFieldMappings?: FieldMapping[];\n /**\n * A value indicating whether the indexer is disabled. Default is false. Default value: false.\n */\n isDisabled?: boolean;\n /**\n * The ETag of the indexer.\n */\n etag?: string;\n /**\n * A description of an encryption key that you create in Azure Key Vault. This key is used to\n * provide an additional level of encryption-at-rest for your indexer definition (as well as\n * indexer execution status) when you want full assurance that no one, not even Microsoft, can\n * decrypt them in Azure Cognitive Search. Once you have encrypted your indexer definition, it\n * will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property\n * to null. You can change this property as needed if you want to rotate your encryption key;\n * Your indexer definition (and indexer execution status) will be unaffected. Encryption with\n * customer-managed keys is not available for free search services, and is only available for\n * paid services created on or after January 1, 2019.\n */\n encryptionKey?: SearchResourceEncryptionKey;\n}\n\n/**\n * A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be\n * used to encrypt or decrypt data-at-rest in Azure Cognitive Search, such as indexes and synonym\n * maps.\n */\nexport interface SearchResourceEncryptionKey {\n /**\n * The name of your Azure Key Vault key to be used to encrypt your data at rest.\n */\n keyName: string;\n /**\n * The version of your Azure Key Vault key to be used to encrypt your data at rest.\n */\n keyVersion: string;\n /**\n * The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be\n * used to encrypt your data at rest. An example URI might be\n * https://my-keyvault-name.vault.azure.net.\n */\n vaultUrl: string;\n /**\n * An AAD Application ID that was granted the required access permissions to the Azure Key Vault\n * that is to be used when encrypting your data at rest. The Application ID should not be\n * confused with the Object ID for your AAD Application.\n */\n applicationId?: string;\n /**\n * The authentication key of the specified AAD application.\n */\n applicationSecret?: string;\n /**\n * An explicit managed identity to use for this encryption key. If not specified and the access\n * credentials property is null, the system-assigned managed identity is used. On update to the\n * resource, if the explicit identity is unspecified, it remains unchanged. If \"none\" is specified,\n * the value of this property is cleared.\n */\n identity?: SearchIndexerDataIdentity;\n}\n\n/**\n * A list of skills.\n */\nexport interface SearchIndexerSkillset {\n /**\n * The name of the skillset.\n */\n name: string;\n /**\n * The description of the skillset.\n */\n description?: string;\n /**\n * A list of skills in the skillset.\n */\n skills: SearchIndexerSkill[];\n /**\n * Details about cognitive services to be used when running skills.\n */\n cognitiveServicesAccount?: CognitiveServicesAccount;\n /**\n * Definition of additional projections to azure blob, table, or files, of enriched data.\n */\n knowledgeStore?: SearchIndexerKnowledgeStore;\n /**\n * Definition of additional projections to secondary search index(es).\n */\n indexProjection?: SearchIndexerIndexProjection;\n /**\n * The ETag of the skillset.\n */\n etag?: string;\n /**\n * A description of an encryption key that you create in Azure Key Vault. This key is used to\n * provide an additional level of encryption-at-rest for your skillset definition when you want\n * full assurance that no one, not even Microsoft, can decrypt your skillset definition in Azure\n * Cognitive Search. Once you have encrypted your skillset definition, it will always remain\n * encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can\n * change this property as needed if you want to rotate your encryption key; Your skillset\n * definition will be unaffected. Encryption with customer-managed keys is not available for free\n * search services, and is only available for paid services created on or after January 1, 2019.\n */\n encryptionKey?: SearchResourceEncryptionKey;\n}\n\n/**\n * Defines parameters for a search index that influence scoring in search queries.\n */\nexport interface ScoringProfile {\n /**\n * The name of the scoring profile.\n */\n name: string;\n /**\n * Parameters that boost scoring based on text matches in certain index fields.\n */\n textWeights?: TextWeights;\n /**\n * The collection of functions that influence the scoring of documents.\n */\n functions?: ScoringFunction[];\n /**\n * A value indicating how the results of individual scoring functions should be combined.\n * Defaults to \"Sum\". Ignored if there are no scoring functions. Possible values include: 'sum',\n * 'average', 'minimum', 'maximum', 'firstMatching'\n */\n functionAggregation?: ScoringFunctionAggregation;\n}\n\n/**\n * Defines values for TokenizerName.\n * @readonly\n */\nexport enum KnownTokenizerNames {\n /**\n * Grammar-based tokenizer that is suitable for processing most European-language documents. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html\n */\n Classic = \"classic\",\n /**\n * Tokenizes the input from an edge into n-grams of the given size(s). See\n * https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html\n */\n EdgeNGram = \"edgeNGram\",\n /**\n * Emits the entire input as a single token. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordTokenizer.html\n */\n Keyword = \"keyword_v2\",\n /**\n * Divides text at non-letters. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html\n */\n Letter = \"letter\",\n /**\n * Divides text at non-letters and converts them to lower case. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseTokenizer.html\n */\n Lowercase = \"lowercase\",\n /**\n * Divides text using language-specific rules.\n */\n // eslint-disable-next-line @typescript-eslint/no-shadow\n MicrosoftLanguageTokenizer = \"microsoft_language_tokenizer\",\n /**\n * Divides text using language-specific rules and reduces words to their base forms.\n */\n // eslint-disable-next-line @typescript-eslint/no-shadow\n MicrosoftLanguageStemmingTokenizer = \"microsoft_language_stemming_tokenizer\",\n /**\n * Tokenizes the input into n-grams of the given size(s). See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenizer.html\n */\n NGram = \"nGram\",\n /**\n * Tokenizer for path-like hierarchies. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html\n */\n PathHierarchy = \"path_hierarchy_v2\",\n /**\n * Tokenizer that uses regex pattern matching to construct distinct tokens. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/pattern/PatternTokenizer.html\n */\n Pattern = \"pattern\",\n /**\n * Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop\n * filter. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/StandardTokenizer.html\n */\n Standard = \"standard_v2\",\n /**\n * Tokenizes urls and emails as one token. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizer.html\n */\n UaxUrlEmail = \"uax_url_email\",\n /**\n * Divides text at whitespace. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html\n */\n Whitespace = \"whitespace\",\n}\n\n/**\n * Defines values for TokenFilterName.\n * @readonly\n */\nexport enum KnownTokenFilterNames {\n /**\n * A token filter that applies the Arabic normalizer to normalize the orthography. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html\n */\n ArabicNormalization = \"arabic_normalization\",\n /**\n * Strips all characters after an apostrophe (including the apostrophe itself). See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html\n */\n Apostrophe = \"apostrophe\",\n /**\n * Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127\n * ASCII characters (the \"Basic Latin\" Unicode block) into their ASCII equivalents, if such\n * equivalents exist. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html\n */\n AsciiFolding = \"asciifolding\",\n /**\n * Forms bigrams of CJK terms that are generated from StandardTokenizer. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html\n */\n CjkBigram = \"cjk_bigram\",\n /**\n * Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic\n * Latin, and half-width Katakana variants into the equivalent Kana. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html\n */\n CjkWidth = \"cjk_width\",\n /**\n * Removes English possessives, and dots from acronyms. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html\n */\n Classic = \"classic\",\n /**\n * Construct bigrams for frequently occurring terms while indexing. Single terms are still\n * indexed too, with bigrams overlaid. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html\n */\n CommonGram = \"common_grams\",\n /**\n * Generates n-grams of the given size(s) starting from the front or the back of an input token.\n * See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html\n */\n EdgeNGram = \"edgeNGram_v2\",\n /**\n * Removes elisions. For example, \"l'avion\" (the plane) will be converted to \"avion\" (plane). See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html\n */\n Elision = \"elision\",\n /**\n * Normalizes German characters according to the heuristics of the German2 snowball algorithm.\n * See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html\n */\n GermanNormalization = \"german_normalization\",\n /**\n * Normalizes text in Hindi to remove some differences in spelling variations. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html\n */\n HindiNormalization = \"hindi_normalization\",\n /**\n * Normalizes the Unicode representation of text in Indian languages. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html\n */\n IndicNormalization = \"indic_normalization\",\n /**\n * Emits each incoming token twice, once as keyword and once as non-keyword. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html\n */\n KeywordRepeat = \"keyword_repeat\",\n /**\n * A high-performance kstem filter for English. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html\n */\n KStem = \"kstem\",\n /**\n * Removes words that are too long or too short. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html\n */\n Length = \"length\",\n /**\n * Limits the number of tokens while indexing. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html\n */\n Limit = \"limit\",\n /**\n * Normalizes token text to lower case. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.htm\n */\n Lowercase = \"lowercase\",\n /**\n * Generates n-grams of the given size(s). See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html\n */\n NGram = \"nGram_v2\",\n /**\n * Applies normalization for Persian. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html\n */\n PersianNormalization = \"persian_normalization\",\n /**\n * Create tokens for phonetic matches. See\n * https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html\n */\n Phonetic = \"phonetic\",\n /**\n * Uses the Porter stemming algorithm to transform the token stream. See\n * http://tartarus.org/~martin/PorterStemmer\n */\n PorterStem = \"porter_stem\",\n /**\n * Reverses the token string. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html\n */\n Reverse = \"reverse\",\n /**\n * Normalizes use of the interchangeable Scandinavian characters. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html\n */\n ScandinavianNormalization = \"scandinavian_normalization\",\n /**\n * Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use\n * of double vowels aa, ae, ao, oe and oo, leaving just the first one. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html\n */\n ScandinavianFoldingNormalization = \"scandinavian_folding\",\n /**\n * Creates combinations of tokens as a single token. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html\n */\n Shingle = \"shingle\",\n /**\n * A filter that stems words using a Snowball-generated stemmer. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html\n */\n Snowball = \"snowball\",\n /**\n * Normalizes the Unicode representation of Sorani text. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html\n */\n SoraniNormalization = \"sorani_normalization\",\n /**\n * Language specific stemming filter. See\n * https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters\n */\n Stemmer = \"stemmer\",\n /**\n * Removes stop words from a token stream. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html\n */\n Stopwords = \"stopwords\",\n /**\n * Trims leading and trailing whitespace from tokens. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html\n */\n Trim = \"trim\",\n /**\n * Truncates the terms to a specific length. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html\n */\n Truncate = \"truncate\",\n /**\n * Filters out tokens with same text as the previous token. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html\n */\n Unique = \"unique\",\n /**\n * Normalizes token text to upper case. See\n * http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html\n */\n Uppercase = \"uppercase\",\n /**\n * Splits words into subwords and performs optional transformations on subword groups.\n */\n WordDelimiter = \"word_delimiter\",\n}\n\n/**\n * Defines values for CharFilterName.\n * @readonly\n */\nexport enum KnownCharFilterNames {\n /**\n * A character filter that attempts to strip out HTML constructs. See\n * https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html\n */\n HtmlStrip = \"html_strip\",\n}\n\n/**\n * Defines values for AnalyzerName.\n * See https://docs.microsoft.com/rest/api/searchservice/Language-support\n * @readonly\n */\nexport enum KnownAnalyzerNames {\n /**\n * Arabic\n */\n ArMicrosoft = \"ar.microsoft\",\n /**\n * Arabic\n */\n ArLucene = \"ar.lucene\",\n /**\n * Armenian\n */\n HyLucene = \"hy.lucene\",\n /**\n * Bangla\n */\n BnMicrosoft = \"bn.microsoft\",\n /**\n * Basque\n */\n EuLucene = \"eu.lucene\",\n /**\n * Bulgarian\n */\n BgMicrosoft = \"bg.microsoft\",\n /**\n * Bulgarian\n */\n BgLucene = \"bg.lucene\",\n /**\n * Catalan\n */\n CaMicrosoft = \"ca.microsoft\",\n /**\n * Catalan\n */\n CaLucene = \"ca.lucene\",\n /**\n * Chinese Simplified\n */\n ZhHansMicrosoft = \"zh-Hans.microsoft\",\n /**\n * Chinese Simplified\n */\n ZhHansLucene = \"zh-Hans.lucene\",\n /**\n * Chinese Traditional\n */\n ZhHantMicrosoft = \"zh-Hant.microsoft\",\n /**\n * Chinese Traditional\n */\n ZhHantLucene = \"zh-Hant.lucene\",\n /**\n * Croatian\n */\n HrMicrosoft = \"hr.microsoft\",\n /**\n * Czech\n */\n CsMicrosoft = \"cs.microsoft\",\n /**\n * Czech\n */\n CsLucene = \"cs.lucene\",\n /**\n * Danish\n */\n DaMicrosoft = \"da.microsoft\",\n /**\n * Danish\n */\n DaLucene = \"da.lucene\",\n /**\n * Dutch\n */\n NlMicrosoft = \"nl.microsoft\",\n /**\n * Dutch\n */\n NlLucene = \"nl.lucene\",\n /**\n * English\n */\n EnMicrosoft = \"en.microsoft\",\n /**\n * English\n */\n EnLucene = \"en.lucene\",\n /**\n * Estonian\n */\n EtMicrosoft = \"et.microsoft\",\n /**\n * Finnish\n */\n FiMicrosoft = \"fi.microsoft\",\n /**\n * Finnish\n */\n FiLucene = \"fi.lucene\",\n /**\n * French\n */\n FrMicrosoft = \"fr.microsoft\",\n /**\n * French\n */\n FrLucene = \"fr.lucene\",\n /**\n * Galician\n */\n GlLucene = \"gl.lucene\",\n /**\n * German\n */\n DeMicrosoft = \"de.microsoft\",\n /**\n * German\n */\n DeLucene = \"de.lucene\",\n /**\n * Greek\n */\n ElMicrosoft = \"el.microsoft\",\n /**\n * Greek\n */\n ElLucene = \"el.lucene\",\n /**\n * Gujarati\n */\n GuMicrosoft = \"gu.microsoft\",\n /**\n * Hebrew\n */\n HeMicrosoft = \"he.microsoft\",\n /**\n * Hindi\n */\n HiMicrosoft = \"hi.microsoft\",\n /**\n * Hindi\n */\n HiLucene = \"hi.lucene\",\n /**\n * Hungarian\n */\n HuMicrosoft = \"hu.microsoft\",\n /**\n * Hungarian\n */\n HuLucene = \"hu.lucene\",\n /**\n * Icelandic\n */\n IsMicrosoft = \"is.microsoft\",\n /**\n * Indonesian (Bahasa)\n */\n IdMicrosoft = \"id.microsoft\",\n /**\n * Indonesian (Bahasa)\n */\n IdLucene = \"id.lucene\",\n /**\n * Irish\n */\n GaLucene = \"ga.lucene\",\n /**\n * Italian\n */\n ItMicrosoft = \"it.microsoft\",\n /**\n * Italian\n */\n ItLucene = \"it.lucene\",\n /**\n * Japanese\n */\n JaMicrosoft = \"ja.microsoft\",\n /**\n * Japanese\n */\n JaLucene = \"ja.lucene\",\n /**\n * Kannada\n */\n KnMicrosoft = \"kn.microsoft\",\n /**\n * Korean\n */\n KoMicrosoft = \"ko.microsoft\",\n /**\n * Korean\n */\n KoLucene = \"ko.lucene\",\n /**\n * Latvian\n */\n LvMicrosoft = \"lv.microsoft\",\n /**\n * Latvian\n */\n LvLucene = \"lv.lucene\",\n /**\n * Lithuanian\n */\n LtMicrosoft = \"lt.microsoft\",\n /**\n * Malayalam\n */\n MlMicrosoft = \"ml.microsoft\",\n /**\n * Malay (Latin)\n */\n MsMicrosoft = \"ms.microsoft\",\n /**\n * Marathi\n */\n MrMicrosoft = \"mr.microsoft\",\n /**\n * Norwegian\n */\n NbMicrosoft = \"nb.microsoft\",\n /**\n * Norwegian\n */\n NoLucene = \"no.lucene\",\n /**\n * Persian\n */\n FaLucene = \"fa.lucene\",\n /**\n * Polish\n */\n PlMicrosoft = \"pl.microsoft\",\n /**\n * Polish\n */\n PlLucene = \"pl.lucene\",\n /**\n * Portuguese (Brazil)\n */\n PtBRMicrosoft = \"pt-BR.microsoft\",\n /**\n * Portuguese (Brazil)\n */\n PtBRLucene = \"pt-BR.lucene\",\n /**\n * Portuguese (Portugal)\n */\n PtPTMicrosoft = \"pt-PT.microsoft\",\n /**\n * Portuguese (Portugal)\n */\n PtPTLucene = \"pt-PT.lucene\",\n /**\n * Punjabi\n */ PaMicrosoft = \"pa.microsoft\",\n /**\n * Romanian\n */\n RoMicrosoft = \"ro.microsoft\",\n /**\n * Romanian\n */\n RoLucene = \"ro.lucene\",\n /**\n * Russian\n */\n RuMicrosoft = \"ru.microsoft\",\n /**\n * Russian\n */\n RuLucene = \"ru.lucene\",\n /**\n * Serbian (Cyrillic)\n */\n SrCyrillicMicrosoft = \"sr-cyrillic.microsoft\",\n /**\n * Serbian (Latin)\n */\n SrLatinMicrosoft = \"sr-latin.microsoft\",\n /**\n * Slovak\n */\n SkMicrosoft = \"sk.microsoft\",\n /**\n * Slovenian\n */\n SlMicrosoft = \"sl.microsoft\",\n /**\n * Spanish\n */\n EsMicrosoft = \"es.microsoft\",\n /**\n * Spanish\n */\n EsLucene = \"es.lucene\",\n /**\n * Swedish\n */\n SvMicrosoft = \"sv.microsoft\",\n /**\n * Swedish\n */\n SvLucene = \"sv.lucene\",\n /**\n * Tamil\n */\n TaMicrosoft = \"ta.microsoft\",\n /**\n * Telugu\n */\n TeMicrosoft = \"te.microsoft\",\n /**\n * Thai\n */\n ThMicrosoft = \"th.microsoft\",\n /**\n * Thai\n */\n ThLucene = \"th.lucene\",\n /**\n * Turkish\n */\n TrMicrosoft = \"tr.microsoft\",\n /**\n * Turkish\n */\n TrLucene = \"tr.lucene\",\n /**\n * Ukrainian\n */\n UkMicrosoft = \"uk.microsoft\",\n /**\n * Urdu\n */\n UrMicrosoft = \"ur.microsoft\",\n /**\n * Vietnamese\n */\n ViMicrosoft = \"vi.microsoft\",\n /**\n * See: https://lucene.apache.org/core/6_6_1/core/org/apache/lucene/analysis/standard/StandardAnalyzer.html\n */\n StandardLucene = \"standard.lucene\",\n /**\n * See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html\n */\n StandardAsciiFoldingLucene = \"standardasciifolding.lucene\",\n /**\n * Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names.\n */\n Keyword = \"keyword\",\n /**\n * Flexibly separates text into terms via a regular expression pattern.\n */\n Pattern = \"pattern\",\n /**\n * Divides text at non-letters and converts them to lower case.\n */\n Simple = \"simple\",\n /**\n * Divides text at non-letters; Applies the lowercase and stopword token filters.\n */\n Stop = \"stop\",\n /**\n * An analyzer that uses the whitespace tokenizer.\n */\n Whitespace = \"whitespace\",\n}\n\n/**\n * Contains the possible cases for DataChangeDetectionPolicy.\n */\nexport type DataChangeDetectionPolicy =\n | HighWaterMarkChangeDetectionPolicy\n | SqlIntegratedChangeTrackingPolicy;\n\n/**\n * Contains the possible cases for SearchIndexerDataIdentity.\n */\nexport type SearchIndexerDataIdentity =\n | SearchIndexerDataNoneIdentity\n | SearchIndexerDataUserAssignedIdentity;\n\n/**\n * Contains the possible cases for DataDeletionDetectionPolicy.\n */\nexport type DataDeletionDetectionPolicy = SoftDeleteColumnDeletionDetectionPolicy;\n\n/**\n * Represents a datasource definition, which can be used to configure an indexer.\n */\nexport interface SearchIndexerDataSourceConnection {\n /**\n * The name of the datasource.\n */\n name: string;\n /**\n * The description of the datasource.\n */\n description?: string;\n /**\n * The type of the datasource. Possible values include: 'AzureSql', 'CosmosDb', 'AzureBlob',\n * 'AzureTable', 'MySql', 'AdlsGen2'\n */\n type: SearchIndexerDataSourceType;\n /**\n * The connection string for the datasource.\n */\n connectionString?: string;\n /**\n * The data container for the datasource.\n */\n container: SearchIndexerDataContainer;\n /**\n * An explicit managed identity to use for this datasource. If not specified and the connection\n * string is a managed identity, the system-assigned managed identity is used. If not specified,\n * the value remains unchanged. If \"none\" is specified, the value of this property is cleared.\n */\n identity?: SearchIndexerDataIdentity;\n /**\n * The data change detection policy for the datasource.\n */\n dataChangeDetectionPolicy?: DataChangeDetectionPolicy;\n /**\n * The data deletion detection policy for the datasource.\n */\n dataDeletionDetectionPolicy?: DataDeletionDetectionPolicy;\n /**\n * The ETag of the DataSource.\n */\n etag?: string;\n /**\n * A description of an encryption key that you create in Azure Key Vault. This key is used to\n * provide an additional level of encryption-at-rest for your datasource definition when you want\n * full assurance that no one, not even Microsoft, can decrypt your data source definition in\n * Azure Cognitive Search. Once you have encrypted your data source definition, it will always\n * remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null.\n * You can change this property as needed if you want to rotate your encryption key; Your\n * datasource definition will be unaffected. Encryption with customer-managed keys is not\n * available for free search services, and is only available for paid services created on or\n * after January 1, 2019.\n */\n encryptionKey?: SearchResourceEncryptionKey;\n}\n\n/** Contains configuration options related to vector search. */\nexport interface VectorSearch {\n /** Defines combinations of configurations to use with vector search. */\n profiles?: VectorSearchProfile[];\n /** Contains configuration options specific to the algorithm used during indexing or querying. */\n algorithms?: VectorSearchAlgorithmConfiguration[];\n /** Contains configuration options on how to vectorize text vector queries. */\n vectorizers?: VectorSearchVectorizer[];\n /** Contains configuration options specific to the compression method used during indexing or querying. */\n compressions?: VectorSearchCompression[];\n}\n\n/** Contains configuration options specific to the algorithm used during indexing and/or querying. */\nexport type VectorSearchAlgorithmConfiguration =\n | HnswAlgorithmConfiguration\n | ExhaustiveKnnAlgorithmConfiguration;\n\n/** Contains configuration options specific to the algorithm used during indexing and/or querying. */\nexport interface BaseVectorSearchAlgorithmConfiguration {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: VectorSearchAlgorithmKind;\n /** The name to associate with this particular configuration. */\n name: string;\n}\n\n/**\n * Contains configuration options specific to the hnsw approximate nearest neighbors algorithm\n * used during indexing time.\n */\nexport type HnswAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & {\n /**\n * Polymorphic discriminator, which specifies the different types this object can be\n */\n kind: \"hnsw\";\n /**\n * Contains the parameters specific to hnsw algorithm.\n *\n */\n parameters?: HnswParameters;\n};\n\n/**\n * Contains the parameters specific to hnsw algorithm.\n */\nexport interface HnswParameters {\n /**\n * The number of bi-directional links created for every new element during construction.\n * Increasing this parameter value may improve recall and reduce retrieval times for datasets\n * with high intrinsic dimensionality at the expense of increased memory consumption and longer\n * indexing time.\n */\n m?: number;\n /**\n * The size of the dynamic list containing the nearest neighbors, which is used during index\n * time. Increasing this parameter may improve index quality, at the expense of increased\n * indexing time. At a certain point, increasing this parameter leads to diminishing returns.\n */\n efConstruction?: number;\n /**\n * The size of the dynamic list containing the nearest neighbors, which is used during search\n * time. Increasing this parameter may improve search results, at the expense of slower search.\n * Increasing this parameter leads to diminishing returns.\n */\n efSearch?: number;\n /**\n * The similarity metric to use for vector comparisons.\n */\n metric?: VectorSearchAlgorithmMetric;\n}\n\n/** Contains configuration options specific to the exhaustive KNN algorithm used during querying, which will perform brute-force search across the entire vector index. */\nexport type ExhaustiveKnnAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"exhaustiveKnn\";\n /** Contains the parameters specific to exhaustive KNN algorithm. */\n parameters?: ExhaustiveKnnParameters;\n};\n\n/** Contains the parameters specific to exhaustive KNN algorithm. */\nexport interface ExhaustiveKnnParameters {\n /** The similarity metric to use for vector comparisons. */\n metric?: VectorSearchAlgorithmMetric;\n}\n\n/** A dictionary of index projection-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */\nexport interface SearchIndexerIndexProjectionParameters {\n /** Describes unknown properties.*/\n [property: string]: unknown;\n /** Defines behavior of the index projections in relation to the rest of the indexer. */\n projectionMode?: IndexProjectionMode;\n}\n\n/** Definition of additional projections to secondary search indexes. */\nexport interface SearchIndexerIndexProjection {\n /** A list of projections to be performed to secondary search indexes. */\n selectors: SearchIndexerIndexProjectionSelector[];\n /** A dictionary of index projection-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */\n parameters?: SearchIndexerIndexProjectionParameters;\n}\n\n/** Contains specific details for a vectorization method to be used during query time. */\nexport interface BaseVectorSearchVectorizer {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: VectorSearchVectorizerKind;\n /** The name to associate with this particular vectorization method. */\n vectorizerName: string;\n}\n\n/** Contains the parameters specific to using an Azure Open AI service for vectorization at query time. */\nexport interface AzureOpenAIVectorizer extends BaseVectorSearchVectorizer {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"azureOpenAI\";\n /** Contains the parameters specific to Azure Open AI embedding vectorization. */\n parameters?: AzureOpenAIParameters;\n}\n\n/** Specifies a user-defined vectorizer for generating the vector embedding of a query string. Integration of an external vectorizer is achieved using the custom Web API interface of a skillset. */\nexport interface WebApiVectorizer extends BaseVectorSearchVectorizer {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n kind: \"customWebApi\";\n /** Specifies the properties of the user-defined vectorizer. */\n parameters?: WebApiParameters;\n}\n\n/** Specifies the properties for connecting to a user-defined vectorizer. */\nexport interface WebApiParameters {\n /** The URI of the Web API providing the vectorizer. */\n uri?: string;\n /** The headers required to make the HTTP request. */\n httpHeaders?: { [propertyName: string]: string };\n /** The method for the HTTP request. */\n httpMethod?: string;\n /** The desired timeout for the request. Default is 30 seconds. */\n timeout?: string;\n /** Applies to custom endpoints that connect to external code in an Azure function or some other application that provides the transformations. This value should be the application ID created for the function or app when it was registered with Azure Active Directory. When specified, the vectorization connects to the function or app using a managed ID (either system or user-assigned) of the search service and the access token of the function or app, using this value as the resource id for creating the scope of the access token. */\n authResourceId?: string;\n /** The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to \"none\", the value of this property is cleared. */\n authIdentity?: SearchIndexerDataIdentity;\n}\n\n/** Contains configuration options on how to vectorize text vector queries. */\nexport type VectorSearchVectorizer = AzureOpenAIVectorizer | WebApiVectorizer;\n\n/** Contains the parameters specific to using an Azure Open AI service for vectorization at query time. */\nexport interface AzureOpenAIParameters {\n /** The resource uri for your Azure Open AI resource. */\n resourceUrl?: string;\n /** ID of your Azure Open AI model deployment on the designated resource. */\n deploymentId?: string;\n /** API key for the designated Azure Open AI resource. */\n apiKey?: string;\n /** The user-assigned managed identity used for outbound connections. */\n authIdentity?: SearchIndexerDataIdentity;\n /** The name of the embedding model that is deployed at the provided deploymentId path. */\n modelName?: AzureOpenAIModelName;\n}\n\n/** Allows you to generate a vector embedding for a given text input using the Azure OpenAI resource. */\nexport interface AzureOpenAIEmbeddingSkill extends BaseSearchIndexerSkill, AzureOpenAIParameters {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill\";\n /** The number of dimensions the resulting output embeddings should have. Only supported in text-embedding-3 and later models. */\n dimensions?: number;\n}\n\n/** A dictionary of knowledge store-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */\nexport interface SearchIndexerKnowledgeStoreParameters {\n /** Describes unknown properties. The value of an unknown property can be of \"any\" type. */\n [property: string]: unknown;\n /** Whether or not projections should synthesize a generated key name if one isn't already present. */\n synthesizeGeneratedKeyName?: boolean;\n}\n\n/** A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */\nexport interface IndexingParametersConfiguration {\n /** Describes unknown properties. The value of an unknown property can be of \"any\" type. */\n [property: string]: any;\n /** Represents the parsing mode for indexing from an Azure blob data source. */\n parsingMode?: BlobIndexerParsingMode;\n /** Comma-delimited list of filename extensions to ignore when processing from Azure blob storage. For example, you could exclude \".png, .mp4\" to skip over those files during indexing. */\n excludedFileNameExtensions?: string;\n /** Comma-delimited list of filename extensions to select when processing from Azure blob storage. For example, you could focus indexing on specific application files \".docx, .pptx, .msg\" to specifically include those file types. */\n indexedFileNameExtensions?: string;\n /** For Azure blobs, set to false if you want to continue indexing when an unsupported content type is encountered, and you don't know all the content types (file extensions) in advance. */\n failOnUnsupportedContentType?: boolean;\n /** For Azure blobs, set to false if you want to continue indexing if a document fails indexing. */\n failOnUnprocessableDocument?: boolean;\n /** For Azure blobs, set this property to true to still index storage metadata for blob content that is too large to process. Oversized blobs are treated as errors by default. For limits on blob size, see https://docs.microsoft.com/azure/search/search-limits-quotas-capacity. */\n indexStorageMetadataOnlyForOversizedDocuments?: boolean;\n /** For CSV blobs, specifies a comma-delimited list of column headers, useful for mapping source fields to destination fields in an index. */\n delimitedTextHeaders?: string;\n /** For CSV blobs, specifies the end-of-line single-character delimiter for CSV files where each line starts a new document (for example, \"|\"). */\n delimitedTextDelimiter?: string;\n /** For CSV blobs, indicates that the first (non-blank) line of each blob contains headers. */\n firstLineContainsHeaders?: boolean;\n /** For JSON arrays, given a structured or semi-structured document, you can specify a path to the array using this property. */\n documentRoot?: string;\n /** Specifies the data to extract from Azure blob storage and tells the indexer which data to extract from image content when \"imageAction\" is set to a value other than \"none\". This applies to embedded image content in a .PDF or other application, or image files such as .jpg and .png, in Azure blobs. */\n dataToExtract?: BlobIndexerDataToExtract;\n /** Determines how to process embedded images and image files in Azure blob storage. Setting the \"imageAction\" configuration to any value other than \"none\" requires that a skillset also be attached to that indexer. */\n imageAction?: BlobIndexerImageAction;\n /** If true, will create a path //document//file_data that is an object representing the original file data downloaded from your blob data source. This allows you to pass the original file data to a custom skill for processing within the enrichment pipeline, or to the Document Extraction skill. */\n allowSkillsetToReadFileData?: boolean;\n /** Determines algorithm for text extraction from PDF files in Azure blob storage. */\n pdfTextRotationAlgorithm?: BlobIndexerPDFTextRotationAlgorithm;\n /** Specifies the environment in which the indexer should execute. */\n executionEnvironment?: IndexerExecutionEnvironment;\n /** Increases the timeout beyond the 5-minute default for Azure SQL database data sources, specified in the format \"hh:mm:ss\". */\n queryTimeout?: string;\n}\n\n/** Represents parameters for indexer execution. */\nexport interface IndexingParameters {\n /** The number of items that are read from the data source and indexed as a single batch in order to improve performance. The default depends on the data source type. */\n batchSize?: number;\n /** The maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0. */\n maxFailedItems?: number;\n /** The maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0. */\n maxFailedItemsPerBatch?: number;\n /** A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */\n configuration?: IndexingParametersConfiguration;\n}\n\n/** A skill looks for text from a custom, user-defined list of words and phrases. */\nexport interface CustomEntityLookupSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.CustomEntityLookupSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: CustomEntityLookupSkillLanguage;\n /** Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS. */\n entitiesDefinitionUri?: string;\n /** The inline CustomEntity definition. */\n inlineEntitiesDefinition?: CustomEntity[];\n /** A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value. */\n globalDefaultCaseSensitive?: boolean;\n /** A global flag for AccentSensitive. If AccentSensitive is not set in CustomEntity, this value will be the default value. */\n globalDefaultAccentSensitive?: boolean;\n /** A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value. */\n globalDefaultFuzzyEditDistance?: number;\n}\n\n/**\n * Text analytics entity recognition.\n *\n * @deprecated This skill has been deprecated.\n */\nexport interface EntityRecognitionSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.EntityRecognitionSkill\";\n /** A list of entity categories that should be extracted. */\n categories?: EntityCategory[];\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: EntityRecognitionSkillLanguage;\n /** Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced. */\n includeTypelessEntities?: boolean;\n /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */\n minimumPrecision?: number;\n}\n\n/** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */\nexport interface ImageAnalysisSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Vision.ImageAnalysisSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: ImageAnalysisSkillLanguage;\n /** A list of visual features. */\n visualFeatures?: VisualFeature[];\n /** A string indicating which domain-specific details to return. */\n details?: ImageDetail[];\n}\n\n/** A skill that uses text analytics for key phrase extraction. */\nexport interface KeyPhraseExtractionSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.KeyPhraseExtractionSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: KeyPhraseExtractionSkillLanguage;\n /** A number indicating how many key phrases to return. If absent, all identified key phrases will be returned. */\n maxKeyPhraseCount?: number;\n /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */\n modelVersion?: string;\n}\n\n/** A skill that extracts text from image files. */\nexport interface OcrSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Vision.OcrSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: OcrSkillLanguage;\n /** A value indicating to turn orientation detection on or not. Default is false. */\n shouldDetectOrientation?: boolean;\n}\n\n/** Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. */\nexport interface PIIDetectionSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.PIIDetectionSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: string;\n /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */\n minimumPrecision?: number;\n /** A parameter that provides various ways to mask the personal information detected in the input text. Default is 'none'. */\n maskingMode?: PIIDetectionSkillMaskingMode;\n /** The character used to mask the text if the maskingMode parameter is set to replace. Default is '*'. */\n maskingCharacter?: string;\n /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */\n modelVersion?: string;\n /** A list of PII entity categories that should be extracted and masked. */\n categories?: string[];\n /** If specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'phi', 'none'. Default is 'none'. */\n domain?: string;\n}\n\n/**\n * Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1.\n *\n * @deprecated This skill has been deprecated.\n */\nexport interface SentimentSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.SentimentSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: SentimentSkillLanguage;\n}\n\n/** A skill to split a string into chunks of text. */\nexport interface SplitSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.SplitSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: SplitSkillLanguage;\n /** A value indicating which split mode to perform. */\n textSplitMode?: TextSplitMode;\n /** The desired maximum page length. Default is 10000. */\n maxPageLength?: number;\n}\n\n/** A skill to translate text from one language to another. */\nexport interface TextTranslationSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Text.TranslationSkill\";\n /** The language code to translate documents into for documents that don't specify the to language explicitly. */\n defaultToLanguageCode: TextTranslationSkillLanguage;\n /** The language code to translate documents from for documents that don't specify the from language explicitly. */\n defaultFromLanguageCode?: TextTranslationSkillLanguage;\n /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en. */\n suggestedFrom?: TextTranslationSkillLanguage;\n}\n\n/** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */\nexport interface ImageAnalysisSkill extends BaseSearchIndexerSkill {\n /** Polymorphic discriminator, which specifies the different types this object can be */\n odatatype: \"#Microsoft.Skills.Vision.ImageAnalysisSkill\";\n /** A value indicating which language code to use. Default is en. */\n defaultLanguageCode?: ImageAnalysisSkillLanguage;\n /** A list of visual features. */\n visualFeatures?: VisualFeature[];\n /** A string indicating which domain-specific details to return. */\n details?: ImageDetail[];\n}\n\n/** Contains configuration options specific to the compression method used during indexing or querying. */\nexport type VectorSearchCompression = BinaryQuantizationCompression | ScalarQuantizationCompression;\n\nexport type AnalyzerNames = `${KnownLexicalAnalyzerName}`;\nexport type BlobIndexerDataToExtract = `${KnownBlobIndexerDataToExtract}`;\nexport type BlobIndexerImageAction = `${KnownBlobIndexerImageAction}`;\nexport type BlobIndexerParsingMode = `${KnownBlobIndexerParsingMode}`;\nexport type BlobIndexerPDFTextRotationAlgorithm = `${KnownBlobIndexerPDFTextRotationAlgorithm}`;\nexport type CharFilterNames = `${KnownCharFilterName}`;\nexport type CustomEntityLookupSkillLanguage = `${KnownCustomEntityLookupSkillLanguage}`;\nexport type EntityCategory = `${KnownEntityCategory}`;\nexport type EntityRecognitionSkillLanguage = `${KnownEntityRecognitionSkillLanguage}`;\nexport type ImageAnalysisSkillLanguage = `${KnownImageAnalysisSkillLanguage}`;\nexport type ImageDetail = `${KnownImageDetail}`;\nexport type IndexerExecutionEnvironment = `${KnownIndexerExecutionEnvironment}`;\nexport type KeyPhraseExtractionSkillLanguage = `${KnownKeyPhraseExtractionSkillLanguage}`;\nexport type OcrSkillLanguage = `${KnownOcrSkillLanguage}`;\nexport type PIIDetectionSkillMaskingMode = `${KnownPIIDetectionSkillMaskingMode}`;\nexport type RegexFlags = `${KnownRegexFlags}`;\n/**\n * Defines values for SearchFieldDataType.\n *\n * ### Known values supported by the service:\n *\n * **Edm.String**: Indicates that a field contains a string.\n *\n * **Edm.Int32**: Indicates that a field contains a 32-bit signed integer.\n *\n * **Edm.Int64**: Indicates that a field contains a 64-bit signed integer.\n *\n * **Edm.Double**: Indicates that a field contains an IEEE double-precision floating point number.\n *\n * **Edm.Boolean**: Indicates that a field contains a Boolean value (true or false).\n *\n * **Edm.DateTimeOffset**: Indicates that a field contains a date/time value, including timezone\n * information.\n *\n * **Edm.GeographyPoint**: Indicates that a field contains a geo-location in terms of longitude and\n * latitude.\n *\n * **Edm.ComplexType**: Indicates that a field contains one or more complex objects that in turn\n * have sub-fields of other types.\n *\n * **Edm.Single**: Indicates that a field contains a single-precision floating point number. This is\n * only valid when used as part of a collection type, i.e. Collection(Edm.Single).\n *\n * **Edm.Half**: Indicates that a field contains a half-precision floating point number. This is\n * only valid when used as part of a collection type, i.e. Collection(Edm.Half).\n *\n * **Edm.Int16**: Indicates that a field contains a 16-bit signed integer. This is only valid when\n * used as part of a collection type, i.e. Collection(Edm.Int16).\n *\n * **Edm.SByte**: Indicates that a field contains a 8-bit signed integer. This is only valid when\n * used as part of a collection type, i.e. Collection(Edm.SByte).\n *\n * **Edm.Byte**: Indicates that a field contains a 8-bit unsigned integer. This is only valid when\n * used as part of a collection type, i.e. Collection(Edm.Byte).\n */\nexport type SearchFieldDataType = Exclude<\n `${KnownSearchFieldDataType}` | `Collection(${KnownSearchFieldDataType})`,\n \"Edm.ComplexType\" | \"Edm.Byte\" | \"Edm.Half\" | \"Edm.Int16\" | \"Edm.SByte\" | \"Edm.Single\"\n>;\nexport type SearchIndexerDataSourceType = `${KnownSearchIndexerDataSourceType}`;\nexport type SentimentSkillLanguage = `${KnownSentimentSkillLanguage}`;\nexport type SplitSkillLanguage = `${KnownSplitSkillLanguage}`;\nexport type TextSplitMode = `${KnownTextSplitMode}`;\nexport type TextTranslationSkillLanguage = `${KnownTextTranslationSkillLanguage}`;\nexport type TokenFilterNames = `${KnownTokenFilterName}`;\nexport type TokenizerNames = `${KnownLexicalTokenizerName}`;\nexport type VectorSearchAlgorithmKind = `${KnownVectorSearchAlgorithmKind}`;\nexport type VectorSearchAlgorithmMetric = `${KnownVectorSearchAlgorithmMetric}`;\nexport type VisualFeature = `${KnownVisualFeature}`;\n\n// END manually modified generated interfaces\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serviceUtils.js","sourceRoot":"","sources":["../../src/serviceUtils.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;;AA8ClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAcL,cAAc,GA0Bf,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,MAAM,qBAAqB,GAAG,YAAY,CAAC;AAElD,MAAM,WAAW,GAA4D;IAC3E,sCAAsC,EAAE,IAAI;IAC5C,kDAAkD,EAAE,IAAI;IACxD,gDAAgD,EAAE,IAAI;IACtD,+CAA+C,EAAE,IAAI;IACrD,iDAAiD,EAAE,IAAI;IACvD,+CAA+C,EAAE,IAAI;IACrD,mCAAmC,EAAE,IAAI;IACzC,0CAA0C,EAAE,IAAI;IAChD,uCAAuC,EAAE,IAAI;IAC7C,mCAAmC,EAAE,IAAI;IACzC,yCAAyC,EAAE,IAAI;IAC/C,8CAA8C,EAAE,IAAI;IACpD,kDAAkD,EAAE,IAAI;IACxD,0CAA0C,EAAE,IAAI;IAChD,yCAAyC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BAA+D,CAAC;IACzE,CAAC;SAAM,CAAC;QACN,OAAO,yBAA8D,CAAC;IACxE,CAAC;AACH,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,2BAA8D;IAE9D,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACjC,OAAO,2BAA2B,CAAC;IACrC,CAAC;IAED,OAAO,2BAAsE,CAAC;AAChF,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,GAAW,EAAE,GAAW;IAChE,iCAAiC;IACjC,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACrB,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,2DAA2D;IAC3D,+EAA+E;IAC/E,yEAAyE;IACzE,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;IAC3D,OAAO,MAAM,GAAG,GAAG,CAAC;AACtB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport {\n SearchResult as GeneratedSearchResult,\n SuggestDocumentsResult as GeneratedSuggestDocumentsResult,\n} from \"./generated/data/models\";\nimport {\n AzureOpenAIVectorizer as GeneratedAzureOpenAIVectorizer,\n BM25Similarity,\n ClassicSimilarity,\n CognitiveServicesAccountKey,\n CognitiveServicesAccountUnion,\n CustomAnalyzer as BaseCustomAnalyzer,\n DataChangeDetectionPolicyUnion,\n DataDeletionDetectionPolicyUnion,\n DefaultCognitiveServicesAccount,\n ExhaustiveKnnAlgorithmConfiguration as GeneratedExhaustiveKnnAlgorithmConfiguration,\n HighWaterMarkChangeDetectionPolicy,\n HnswAlgorithmConfiguration as GeneratedHnswAlgorithmConfiguration,\n LexicalAnalyzerUnion,\n LexicalTokenizerUnion,\n LuceneStandardAnalyzer,\n PatternAnalyzer as GeneratedPatternAnalyzer,\n PatternTokenizer,\n SearchField as GeneratedSearchField,\n SearchIndex as GeneratedSearchIndex,\n SearchIndexer as GeneratedSearchIndexer,\n SearchIndexerDataIdentityUnion,\n SearchIndexerDataNoneIdentity,\n SearchIndexerDataSource as GeneratedSearchIndexerDataSourceConnection,\n SearchIndexerDataUserAssignedIdentity,\n SearchIndexerSkillset as GeneratedSearchIndexerSkillset,\n SearchIndexerSkillUnion,\n SearchResourceEncryptionKey as GeneratedSearchResourceEncryptionKey,\n SimilarityUnion,\n SoftDeleteColumnDeletionDetectionPolicy,\n SqlIntegratedChangeTrackingPolicy,\n StopAnalyzer,\n SynonymMap as GeneratedSynonymMap,\n TokenFilterUnion,\n VectorSearch as GeneratedVectorSearch,\n VectorSearchAlgorithmConfigurationUnion as GeneratedVectorSearchAlgorithmConfiguration,\n VectorSearchVectorizerUnion as GeneratedVectorSearchVectorizer,\n WebApiVectorizer as GeneratedWebAPIVectorizer,\n} from \"./generated/service/models\";\nimport { SearchResult, SelectFields, SuggestDocumentsResult, SuggestResult } from \"./indexModels\";\nimport { logger } from \"./logger\";\nimport {\n AzureOpenAIVectorizer,\n BlobIndexerDataToExtract,\n BlobIndexerImageAction,\n BlobIndexerParsingMode,\n BlobIndexerPDFTextRotationAlgorithm,\n CharFilter,\n CognitiveServicesAccount,\n ComplexField,\n DataChangeDetectionPolicy,\n DataDeletionDetectionPolicy,\n IndexerExecutionEnvironment,\n IndexingParameters,\n IndexingParametersConfiguration,\n isComplexField,\n LexicalAnalyzer,\n LexicalTokenizer,\n PatternAnalyzer,\n RegexFlags,\n ScoringProfile,\n SearchField,\n SearchFieldDataType,\n SearchIndex,\n SearchIndexer,\n SearchIndexerDataIdentity,\n SearchIndexerDataSourceConnection,\n SearchIndexerDataSourceType,\n SearchIndexerIndexProjection,\n SearchIndexerSkill,\n SearchIndexerSkillset,\n SearchResourceEncryptionKey,\n SimilarityAlgorithm,\n SimpleField,\n SynonymMap,\n TokenFilter,\n VectorSearch,\n VectorSearchAlgorithmConfiguration,\n VectorSearchAlgorithmMetric,\n VectorSearchVectorizer,\n WebApiVectorizer,\n} from \"./serviceModels\";\n\nexport const defaultServiceVersion = \"2024-07-01\";\n\nconst knownSkills: Record<`${SearchIndexerSkillUnion[\"odatatype\"]}`, true> = {\n \"#Microsoft.Skills.Custom.WebApiSkill\": true,\n \"#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill\": true,\n \"#Microsoft.Skills.Text.CustomEntityLookupSkill\": true,\n \"#Microsoft.Skills.Text.EntityRecognitionSkill\": true,\n \"#Microsoft.Skills.Text.KeyPhraseExtractionSkill\": true,\n \"#Microsoft.Skills.Text.LanguageDetectionSkill\": true,\n \"#Microsoft.Skills.Text.MergeSkill\": true,\n \"#Microsoft.Skills.Text.PIIDetectionSkill\": true,\n \"#Microsoft.Skills.Text.SentimentSkill\": true,\n \"#Microsoft.Skills.Text.SplitSkill\": true,\n \"#Microsoft.Skills.Text.TranslationSkill\": true,\n \"#Microsoft.Skills.Text.V3.EntityLinkingSkill\": true,\n \"#Microsoft.Skills.Text.V3.EntityRecognitionSkill\": true,\n \"#Microsoft.Skills.Text.V3.SentimentSkill\": true,\n \"#Microsoft.Skills.Util.ConditionalSkill\": true,\n \"#Microsoft.Skills.Util.DocumentExtractionSkill\": true,\n \"#Microsoft.Skills.Util.ShaperSkill\": true,\n \"#Microsoft.Skills.Vision.ImageAnalysisSkill\": true,\n \"#Microsoft.Skills.Vision.OcrSkill\": true,\n};\n\nexport function convertSkillsToPublic(skills: SearchIndexerSkillUnion[]): SearchIndexerSkill[] {\n if (!skills) {\n return skills;\n }\n\n // This validation has already GAed\n return skills.filter((skill): skill is SearchIndexerSkill => knownSkills[skill.odatatype]);\n}\n\nexport function convertCognitiveServicesAccountToGenerated(\n cognitiveServicesAccount?: CognitiveServicesAccount,\n): CognitiveServicesAccountUnion | undefined {\n if (!cognitiveServicesAccount) {\n return cognitiveServicesAccount;\n }\n\n return cognitiveServicesAccount as CognitiveServicesAccountUnion;\n}\n\nexport function convertCognitiveServicesAccountToPublic(\n cognitiveServicesAccount?: CognitiveServicesAccountUnion,\n): CognitiveServicesAccount | undefined {\n if (!cognitiveServicesAccount) {\n return cognitiveServicesAccount;\n }\n\n if (cognitiveServicesAccount.odatatype === \"#Microsoft.Azure.Search.DefaultCognitiveServices\") {\n return cognitiveServicesAccount as DefaultCognitiveServicesAccount;\n } else {\n return cognitiveServicesAccount as CognitiveServicesAccountKey;\n }\n}\n\nexport function convertTokenFiltersToGenerated(\n tokenFilters?: TokenFilter[],\n): TokenFilterUnion[] | undefined {\n if (!tokenFilters) {\n return tokenFilters;\n }\n\n const result: TokenFilterUnion[] = [];\n for (const filter of tokenFilters) {\n result.push(filter);\n }\n\n return result;\n}\n\nfunction convertAnalyzersToGenerated(\n analyzers?: LexicalAnalyzer[],\n): LexicalAnalyzerUnion[] | undefined {\n if (!analyzers) {\n return analyzers;\n }\n\n const result: LexicalAnalyzerUnion[] = [];\n for (const analyzer of analyzers) {\n switch (analyzer.odatatype) {\n case \"#Microsoft.Azure.Search.StandardAnalyzer\":\n case \"#Microsoft.Azure.Search.StopAnalyzer\":\n result.push(analyzer);\n break;\n case \"#Microsoft.Azure.Search.PatternAnalyzer\":\n result.push({\n ...analyzer,\n flags: analyzer.flags ? analyzer.flags.join(\"|\") : undefined,\n });\n break;\n case \"#Microsoft.Azure.Search.CustomAnalyzer\":\n result.push({\n ...analyzer,\n tokenizerName: analyzer.tokenizerName,\n });\n break;\n }\n }\n return result;\n}\n\nfunction convertAnalyzersToPublic(\n analyzers?: LexicalAnalyzerUnion[],\n): LexicalAnalyzer[] | undefined {\n if (!analyzers) {\n return analyzers;\n }\n\n const result: LexicalAnalyzer[] = [];\n for (const analyzer of analyzers) {\n switch (analyzer.odatatype) {\n case \"#Microsoft.Azure.Search.StandardAnalyzer\":\n result.push(analyzer as LuceneStandardAnalyzer);\n break;\n case \"#Microsoft.Azure.Search.StopAnalyzer\":\n result.push(analyzer as StopAnalyzer);\n break;\n case \"#Microsoft.Azure.Search.PatternAnalyzer\":\n result.push({\n ...analyzer,\n flags: (analyzer as GeneratedPatternAnalyzer).flags\n ? ((analyzer as GeneratedPatternAnalyzer).flags!.split(\"|\") as RegexFlags[])\n : undefined,\n } as PatternAnalyzer);\n break;\n case \"#Microsoft.Azure.Search.CustomAnalyzer\":\n result.push(analyzer as BaseCustomAnalyzer);\n break;\n }\n }\n return result;\n}\n\nexport function convertFieldsToPublic(fields: GeneratedSearchField[]): SearchField[] {\n if (!fields) {\n return fields;\n }\n\n return fields.map<SearchField>((field): SearchField => {\n if (field.type === \"Collection(Edm.ComplexType)\" || field.type === \"Edm.ComplexType\") {\n const result: ComplexField = {\n name: field.name,\n type: field.type,\n fields: convertFieldsToPublic(field.fields!),\n };\n return result;\n } else {\n const type: SearchFieldDataType = field.type as SearchFieldDataType;\n const synonymMapNames: string[] | undefined = field.synonymMaps;\n\n const { retrievable, analyzer, searchAnalyzer, indexAnalyzer, ...restField } = field;\n const hidden = typeof retrievable === \"boolean\" ? !retrievable : retrievable;\n\n const result: SimpleField = {\n ...restField,\n type,\n hidden,\n analyzerName: analyzer,\n searchAnalyzerName: searchAnalyzer,\n indexAnalyzerName: indexAnalyzer,\n synonymMapNames,\n };\n return result;\n }\n });\n}\n\nexport function convertFieldsToGenerated(fields: SearchField[]): GeneratedSearchField[] {\n return fields.map<GeneratedSearchField>((field) => {\n if (isComplexField(field)) {\n return {\n name: field.name,\n type: field.type,\n fields: field.fields ? convertFieldsToGenerated(field.fields) : field.fields,\n };\n } else {\n const { hidden, ...restField } = field;\n const retrievable = typeof hidden === \"boolean\" ? !hidden : hidden;\n return {\n ...restField,\n retrievable,\n // modify API defaults to use less storage for simple types\n searchable: field.searchable ?? false,\n filterable: field.filterable ?? false,\n facetable: field.facetable ?? false,\n sortable: field.sortable ?? false,\n analyzer: field.analyzerName,\n searchAnalyzer: field.searchAnalyzerName,\n indexAnalyzer: field.indexAnalyzerName,\n synonymMaps: field.synonymMapNames,\n };\n }\n });\n}\n\nfunction convertTokenizersToGenerated(\n tokenizers?: LexicalTokenizer[],\n): LexicalTokenizerUnion[] | undefined {\n if (!tokenizers) {\n return tokenizers;\n }\n\n const result: LexicalTokenizerUnion[] = [];\n for (const tokenizer of tokenizers) {\n if (tokenizer.odatatype === \"#Microsoft.Azure.Search.PatternTokenizer\") {\n result.push({\n ...tokenizer,\n flags: tokenizer.flags ? tokenizer.flags.join(\"|\") : undefined,\n });\n } else {\n result.push(tokenizer);\n }\n }\n return result;\n}\n\nfunction convertTokenizersToPublic(\n tokenizers?: LexicalTokenizerUnion[],\n): LexicalTokenizer[] | undefined {\n if (!tokenizers) {\n return tokenizers;\n }\n\n const result: LexicalTokenizer[] = [];\n for (const tokenizer of tokenizers) {\n if (tokenizer.odatatype === \"#Microsoft.Azure.Search.PatternTokenizer\") {\n const patternTokenizer = tokenizer as PatternTokenizer;\n const flags = patternTokenizer.flags?.split(\"|\") as RegexFlags[] | undefined;\n result.push({\n ...tokenizer,\n flags,\n });\n } else {\n result.push(tokenizer);\n }\n }\n return result;\n}\n\nexport function convertSimilarityToGenerated(\n similarity?: SimilarityAlgorithm,\n): SimilarityUnion | undefined {\n if (!similarity) {\n return similarity;\n }\n\n return similarity as SimilarityUnion;\n}\n\nexport function convertSimilarityToPublic(\n similarity?: SimilarityUnion,\n): SimilarityAlgorithm | undefined {\n if (!similarity) {\n return similarity;\n }\n\n if (similarity.odatatype === \"#Microsoft.Azure.Search.ClassicSimilarity\") {\n return similarity as ClassicSimilarity;\n } else {\n return similarity as BM25Similarity;\n }\n}\n\nfunction convertEncryptionKeyToPublic(\n encryptionKey?: GeneratedSearchResourceEncryptionKey,\n): SearchResourceEncryptionKey | undefined {\n if (!encryptionKey) {\n return encryptionKey;\n }\n\n const result: SearchResourceEncryptionKey = {\n keyName: encryptionKey.keyName,\n keyVersion: encryptionKey.keyVersion,\n vaultUrl: encryptionKey.vaultUri,\n };\n\n if (encryptionKey.accessCredentials) {\n result.applicationId = encryptionKey.accessCredentials.applicationId;\n result.applicationSecret = encryptionKey.accessCredentials.applicationSecret;\n }\n\n return result;\n}\n\nfunction convertEncryptionKeyToGenerated(\n encryptionKey?: SearchResourceEncryptionKey,\n): GeneratedSearchResourceEncryptionKey | undefined {\n if (!encryptionKey) {\n return encryptionKey;\n }\n\n const result: GeneratedSearchResourceEncryptionKey = {\n keyName: encryptionKey.keyName,\n keyVersion: encryptionKey.keyVersion,\n vaultUri: encryptionKey.vaultUrl,\n };\n\n if (encryptionKey.applicationId) {\n result.accessCredentials = {\n applicationId: encryptionKey.applicationId,\n applicationSecret: encryptionKey.applicationSecret,\n };\n }\n\n return result;\n}\n\nexport function generatedIndexToPublicIndex(generatedIndex: GeneratedSearchIndex): SearchIndex {\n return {\n name: generatedIndex.name,\n defaultScoringProfile: generatedIndex.defaultScoringProfile,\n corsOptions: generatedIndex.corsOptions,\n suggesters: generatedIndex.suggesters,\n encryptionKey: convertEncryptionKeyToPublic(generatedIndex.encryptionKey),\n etag: generatedIndex.etag,\n analyzers: convertAnalyzersToPublic(generatedIndex.analyzers),\n tokenizers: convertTokenizersToPublic(generatedIndex.tokenizers),\n tokenFilters: generatedIndex.tokenFilters as TokenFilter[],\n charFilters: generatedIndex.charFilters as CharFilter[],\n scoringProfiles: generatedIndex.scoringProfiles as ScoringProfile[],\n fields: convertFieldsToPublic(generatedIndex.fields),\n similarity: convertSimilarityToPublic(generatedIndex.similarity),\n semanticSearch: generatedIndex.semanticSearch,\n vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch),\n };\n}\n\nexport function generatedVectorSearchVectorizerToPublicVectorizer(): undefined;\nexport function generatedVectorSearchVectorizerToPublicVectorizer(\n generatedVectorizer: GeneratedVectorSearchVectorizer,\n): VectorSearchVectorizer;\nexport function generatedVectorSearchVectorizerToPublicVectorizer(\n generatedVectorizer?: GeneratedVectorSearchVectorizer,\n): VectorSearchVectorizer | undefined {\n if (!generatedVectorizer) {\n return generatedVectorizer;\n }\n\n switch (generatedVectorizer.kind) {\n case \"azureOpenAI\": {\n const { parameters } = generatedVectorizer as GeneratedAzureOpenAIVectorizer;\n const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters?.authIdentity);\n const vectorizer: AzureOpenAIVectorizer = {\n ...(generatedVectorizer as GeneratedAzureOpenAIVectorizer),\n parameters: { ...parameters, authIdentity },\n };\n return vectorizer;\n }\n case \"customWebApi\": {\n const { parameters } = generatedVectorizer as GeneratedWebAPIVectorizer;\n const authIdentity = convertSearchIndexerDataIdentityToPublic(parameters?.authIdentity);\n const vectorizer: WebApiVectorizer = {\n ...(generatedVectorizer as GeneratedWebAPIVectorizer),\n parameters: { ...parameters, authIdentity },\n };\n return vectorizer;\n }\n }\n logger.warning(`Unsupported vectorizer kind: ${(generatedVectorizer as any).kind}`);\n return generatedVectorizer as any;\n}\n\nexport function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(): undefined;\nexport function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(\n generatedAlgorithmConfiguration: GeneratedVectorSearchAlgorithmConfiguration,\n): VectorSearchAlgorithmConfiguration;\nexport function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(\n generatedAlgorithmConfiguration?: GeneratedVectorSearchAlgorithmConfiguration,\n): VectorSearchAlgorithmConfiguration | undefined {\n if (!generatedAlgorithmConfiguration) {\n return generatedAlgorithmConfiguration;\n }\n\n if ([\"hnsw\", \"exhaustiveKnn\"].includes(generatedAlgorithmConfiguration.kind)) {\n const algorithmConfiguration = generatedAlgorithmConfiguration as\n | GeneratedHnswAlgorithmConfiguration\n | GeneratedExhaustiveKnnAlgorithmConfiguration;\n const metric = algorithmConfiguration.parameters?.metric as VectorSearchAlgorithmMetric;\n return {\n ...algorithmConfiguration,\n parameters: { ...algorithmConfiguration.parameters, metric },\n };\n }\n\n throw Error(\"Unsupported algorithm configuration\");\n}\n\nexport function generatedVectorSearchToPublicVectorSearch(\n vectorSearch?: GeneratedVectorSearch,\n): VectorSearch | undefined {\n if (!vectorSearch) {\n return vectorSearch;\n }\n\n return {\n ...vectorSearch,\n algorithms: vectorSearch.algorithms?.map(\n generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration,\n ),\n vectorizers: vectorSearch.vectorizers?.map(generatedVectorSearchVectorizerToPublicVectorizer),\n };\n}\n\nexport function generatedSearchResultToPublicSearchResult<\n TModel extends object,\n TFields extends SelectFields<TModel>,\n>(results: GeneratedSearchResult[]): SearchResult<TModel, TFields>[] {\n const returnValues: SearchResult<TModel, TFields>[] = results.map<SearchResult<TModel, TFields>>(\n (result) => {\n const {\n _score: score,\n _highlights: highlights,\n _rerankerScore: rerankerScore,\n _captions: captions,\n ...restProps\n } = result;\n const obj = {\n score,\n highlights,\n rerankerScore,\n captions,\n document: restProps,\n };\n return obj as SearchResult<TModel, TFields>;\n },\n );\n return returnValues;\n}\n\nexport function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult<\n TModel extends object,\n TFields extends SelectFields<TModel>,\n>(searchDocumentsResult: GeneratedSuggestDocumentsResult): SuggestDocumentsResult<TModel, TFields> {\n const results = searchDocumentsResult.results.map<SuggestResult<TModel, TFields>>((element) => {\n const { _text, ...restProps } = element;\n\n const obj = {\n text: _text,\n document: restProps,\n };\n\n return obj as SuggestResult<TModel, TFields>;\n });\n\n const result: SuggestDocumentsResult<TModel, TFields> = {\n results: results,\n coverage: searchDocumentsResult.coverage,\n };\n\n return result;\n}\n\nexport function publicIndexToGeneratedIndex(index: SearchIndex): GeneratedSearchIndex {\n const { encryptionKey, tokenFilters, analyzers, tokenizers, fields, similarity } = index;\n\n return {\n ...index,\n encryptionKey: convertEncryptionKeyToGenerated(encryptionKey),\n tokenFilters: convertTokenFiltersToGenerated(tokenFilters),\n analyzers: convertAnalyzersToGenerated(analyzers),\n tokenizers: convertTokenizersToGenerated(tokenizers),\n fields: convertFieldsToGenerated(fields),\n similarity: convertSimilarityToGenerated(similarity),\n };\n}\n\nexport function generatedSkillsetToPublicSkillset(\n generatedSkillset: GeneratedSearchIndexerSkillset,\n): SearchIndexerSkillset {\n const { skills, cognitiveServicesAccount, encryptionKey, indexProjection, ...props } =\n generatedSkillset;\n return {\n ...props,\n skills: convertSkillsToPublic(skills),\n cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount),\n encryptionKey: convertEncryptionKeyToPublic(encryptionKey),\n indexProjection: indexProjection as SearchIndexerIndexProjection,\n };\n}\n\nexport function publicSkillsetToGeneratedSkillset(\n skillset: SearchIndexerSkillset,\n): GeneratedSearchIndexerSkillset {\n return {\n ...skillset,\n name: skillset.name,\n description: skillset.description,\n etag: skillset.etag,\n skills: skillset.skills,\n cognitiveServicesAccount: convertCognitiveServicesAccountToGenerated(\n skillset.cognitiveServicesAccount,\n ),\n knowledgeStore: skillset.knowledgeStore,\n encryptionKey: convertEncryptionKeyToGenerated(skillset.encryptionKey),\n };\n}\n\nexport function generatedSynonymMapToPublicSynonymMap(synonymMap: GeneratedSynonymMap): SynonymMap {\n const result: SynonymMap = {\n name: synonymMap.name,\n encryptionKey: convertEncryptionKeyToPublic(synonymMap.encryptionKey),\n etag: synonymMap.etag,\n synonyms: [],\n };\n\n if (synonymMap.synonyms) {\n result.synonyms = synonymMap.synonyms.split(\"\\n\");\n }\n\n return result;\n}\n\nexport function publicSynonymMapToGeneratedSynonymMap(synonymMap: SynonymMap): GeneratedSynonymMap {\n const result: GeneratedSynonymMap = {\n name: synonymMap.name,\n format: \"solr\",\n encryptionKey: convertEncryptionKeyToGenerated(synonymMap.encryptionKey),\n etag: synonymMap.etag,\n synonyms: synonymMap.synonyms.join(\"\\n\"),\n };\n\n result.encryptionKey = convertEncryptionKeyToGenerated(synonymMap.encryptionKey);\n\n return result;\n}\n\nexport function publicSearchIndexerToGeneratedSearchIndexer(\n indexer: SearchIndexer,\n): GeneratedSearchIndexer {\n return {\n ...indexer,\n encryptionKey: convertEncryptionKeyToGenerated(indexer.encryptionKey),\n };\n}\n\nexport function generatedSearchIndexerToPublicSearchIndexer(\n indexer: GeneratedSearchIndexer,\n): SearchIndexer {\n const {\n parsingMode,\n dataToExtract,\n imageAction,\n pdfTextRotationAlgorithm,\n executionEnvironment,\n } = indexer.parameters?.configuration ?? {};\n\n const configuration: IndexingParametersConfiguration | undefined = indexer.parameters\n ?.configuration && {\n ...indexer.parameters?.configuration,\n parsingMode: parsingMode as BlobIndexerParsingMode | undefined,\n dataToExtract: dataToExtract as BlobIndexerDataToExtract | undefined,\n imageAction: imageAction as BlobIndexerImageAction | undefined,\n pdfTextRotationAlgorithm: pdfTextRotationAlgorithm as\n | BlobIndexerPDFTextRotationAlgorithm\n | undefined,\n executionEnvironment: executionEnvironment as IndexerExecutionEnvironment | undefined,\n };\n const parameters: IndexingParameters = {\n ...indexer.parameters,\n configuration,\n };\n\n return {\n ...indexer,\n parameters,\n encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey),\n };\n}\n\nexport function publicDataSourceToGeneratedDataSource(\n dataSource: SearchIndexerDataSourceConnection,\n): GeneratedSearchIndexerDataSourceConnection {\n return {\n name: dataSource.name,\n description: dataSource.description,\n type: dataSource.type,\n credentials: {\n connectionString: dataSource.connectionString,\n },\n container: dataSource.container,\n etag: dataSource.etag,\n dataChangeDetectionPolicy: dataSource.dataChangeDetectionPolicy,\n dataDeletionDetectionPolicy: dataSource.dataDeletionDetectionPolicy,\n encryptionKey: convertEncryptionKeyToGenerated(dataSource.encryptionKey),\n };\n}\n\nexport function generatedDataSourceToPublicDataSource(\n dataSource: GeneratedSearchIndexerDataSourceConnection,\n): SearchIndexerDataSourceConnection {\n return {\n name: dataSource.name,\n description: dataSource.name,\n type: dataSource.type as SearchIndexerDataSourceType,\n connectionString: dataSource.credentials.connectionString,\n container: dataSource.container,\n etag: dataSource.etag,\n dataChangeDetectionPolicy: convertDataChangeDetectionPolicyToPublic(\n dataSource.dataChangeDetectionPolicy,\n ),\n dataDeletionDetectionPolicy: convertDataDeletionDetectionPolicyToPublic(\n dataSource.dataDeletionDetectionPolicy,\n ),\n encryptionKey: convertEncryptionKeyToPublic(dataSource.encryptionKey),\n };\n}\n\nexport function convertSearchIndexerDataIdentityToPublic(\n searchIndexerDataIdentity?: SearchIndexerDataIdentityUnion,\n): SearchIndexerDataIdentity | undefined {\n if (!searchIndexerDataIdentity) {\n return searchIndexerDataIdentity;\n }\n\n if (searchIndexerDataIdentity.odatatype === \"#Microsoft.Azure.Search.DataNoneIdentity\") {\n return searchIndexerDataIdentity as SearchIndexerDataNoneIdentity;\n } else {\n return searchIndexerDataIdentity as SearchIndexerDataUserAssignedIdentity;\n }\n}\n\nexport function convertDataChangeDetectionPolicyToPublic(\n dataChangeDetectionPolicy?: DataChangeDetectionPolicyUnion,\n): DataChangeDetectionPolicy | undefined {\n if (!dataChangeDetectionPolicy) {\n return dataChangeDetectionPolicy;\n }\n\n if (\n dataChangeDetectionPolicy.odatatype ===\n \"#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy\"\n ) {\n return dataChangeDetectionPolicy as HighWaterMarkChangeDetectionPolicy;\n } else {\n return dataChangeDetectionPolicy as SqlIntegratedChangeTrackingPolicy;\n }\n}\n\nexport function convertDataDeletionDetectionPolicyToPublic(\n dataDeletionDetectionPolicy?: DataDeletionDetectionPolicyUnion,\n): DataDeletionDetectionPolicy | undefined {\n if (!dataDeletionDetectionPolicy) {\n return dataDeletionDetectionPolicy;\n }\n\n return dataDeletionDetectionPolicy as SoftDeleteColumnDeletionDetectionPolicy;\n}\n\nexport function getRandomIntegerInclusive(min: number, max: number): number {\n // Make sure inputs are integers.\n min = Math.ceil(min);\n max = Math.floor(max);\n // Pick a random offset from zero to the size of the range.\n // Since Math.random() can never return 1, we have to make the range one larger\n // in order to be inclusive of the maximum value after we take the floor.\n const offset = Math.floor(Math.random() * (max - min + 1));\n return offset + min;\n}\n"]}
|