@azure/search-documents 11.3.0-alpha.20220128.3 → 11.3.0-alpha.20220217.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -4
- package/dist/index.js +58 -12
- package/dist/index.js.map +1 -1
- package/dist-esm/src/constants.js +1 -1
- package/dist-esm/src/constants.js.map +1 -1
- package/dist-esm/src/generated/data/models/index.js +2 -2
- package/dist-esm/src/generated/data/models/index.js.map +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js +1 -1
- package/dist-esm/src/generated/data/searchClientContext.js.map +1 -1
- package/dist-esm/src/generated/service/models/index.js +2 -7
- package/dist-esm/src/generated/service/models/index.js.map +1 -1
- package/dist-esm/src/generated/service/models/mappers.js +47 -0
- package/dist-esm/src/generated/service/models/mappers.js.map +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js +1 -1
- package/dist-esm/src/generated/service/searchServiceClientContext.js.map +1 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/serviceModels.js.map +1 -1
- package/dist-esm/src/serviceUtils.js +3 -0
- package/dist-esm/src/serviceUtils.js.map +1 -1
- package/package.json +1 -1
- package/types/search-documents.d.ts +30 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 11.3.0-beta.6 (
|
|
3
|
+
## 11.3.0-beta.6 (2022-02-08)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
### Bugs Fixed
|
|
7
|
+
- Added new type of SearchIndexer skill - `AzureMachineLearningSkill`. Please refer [#20183](https://github.com/Azure/azure-sdk-for-js/pull/20183) for further details.
|
|
10
8
|
|
|
11
9
|
### Other Changes
|
|
12
10
|
|
package/dist/index.js
CHANGED
|
@@ -1756,7 +1756,7 @@ class SearchClientContext extends coreClient__namespace.ServiceClient {
|
|
|
1756
1756
|
const defaults = {
|
|
1757
1757
|
requestContentType: "application/json; charset=utf-8"
|
|
1758
1758
|
};
|
|
1759
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
1759
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
|
|
1760
1760
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1761
1761
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1762
1762
|
: `${packageDetails}`;
|
|
@@ -1815,7 +1815,7 @@ function createSearchApiKeyCredentialPolicy(credential) {
|
|
|
1815
1815
|
|
|
1816
1816
|
// Copyright (c) Microsoft Corporation.
|
|
1817
1817
|
// Licensed under the MIT license.
|
|
1818
|
-
const SDK_VERSION = "11.3.0-beta.
|
|
1818
|
+
const SDK_VERSION = "11.3.0-beta.6";
|
|
1819
1819
|
|
|
1820
1820
|
// Copyright (c) Microsoft Corporation.
|
|
1821
1821
|
/**
|
|
@@ -2849,6 +2849,9 @@ function convertSkillsToPublic(skills) {
|
|
|
2849
2849
|
case "#Microsoft.Skills.Util.DocumentExtractionSkill":
|
|
2850
2850
|
result.push(skill);
|
|
2851
2851
|
break;
|
|
2852
|
+
case "#Microsoft.Skills.Custom.AmlSkill":
|
|
2853
|
+
result.push(skill);
|
|
2854
|
+
break;
|
|
2852
2855
|
}
|
|
2853
2856
|
}
|
|
2854
2857
|
return result;
|
|
@@ -7343,6 +7346,52 @@ const WebApiSkill = {
|
|
|
7343
7346
|
} })
|
|
7344
7347
|
}
|
|
7345
7348
|
};
|
|
7349
|
+
const AzureMachineLearningSkill = {
|
|
7350
|
+
serializedName: "#Microsoft.Skills.Custom.AmlSkill",
|
|
7351
|
+
type: {
|
|
7352
|
+
name: "Composite",
|
|
7353
|
+
className: "AzureMachineLearningSkill",
|
|
7354
|
+
uberParent: "SearchIndexerSkill",
|
|
7355
|
+
polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator,
|
|
7356
|
+
modelProperties: Object.assign(Object.assign({}, SearchIndexerSkill.type.modelProperties), { scoringUri: {
|
|
7357
|
+
serializedName: "uri",
|
|
7358
|
+
nullable: true,
|
|
7359
|
+
type: {
|
|
7360
|
+
name: "String"
|
|
7361
|
+
}
|
|
7362
|
+
}, authenticationKey: {
|
|
7363
|
+
serializedName: "key",
|
|
7364
|
+
nullable: true,
|
|
7365
|
+
type: {
|
|
7366
|
+
name: "String"
|
|
7367
|
+
}
|
|
7368
|
+
}, resourceId: {
|
|
7369
|
+
serializedName: "resourceId",
|
|
7370
|
+
nullable: true,
|
|
7371
|
+
type: {
|
|
7372
|
+
name: "String"
|
|
7373
|
+
}
|
|
7374
|
+
}, timeout: {
|
|
7375
|
+
serializedName: "timeout",
|
|
7376
|
+
nullable: true,
|
|
7377
|
+
type: {
|
|
7378
|
+
name: "TimeSpan"
|
|
7379
|
+
}
|
|
7380
|
+
}, region: {
|
|
7381
|
+
serializedName: "region",
|
|
7382
|
+
nullable: true,
|
|
7383
|
+
type: {
|
|
7384
|
+
name: "String"
|
|
7385
|
+
}
|
|
7386
|
+
}, degreeOfParallelism: {
|
|
7387
|
+
serializedName: "degreeOfParallelism",
|
|
7388
|
+
nullable: true,
|
|
7389
|
+
type: {
|
|
7390
|
+
name: "Number"
|
|
7391
|
+
}
|
|
7392
|
+
} })
|
|
7393
|
+
}
|
|
7394
|
+
};
|
|
7346
7395
|
const DefaultCognitiveServicesAccount = {
|
|
7347
7396
|
serializedName: "#Microsoft.Azure.Search.DefaultCognitiveServices",
|
|
7348
7397
|
type: {
|
|
@@ -9001,6 +9050,7 @@ let discriminators = {
|
|
|
9001
9050
|
"SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill,
|
|
9002
9051
|
"SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill,
|
|
9003
9052
|
"SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill,
|
|
9053
|
+
"SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill,
|
|
9004
9054
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount,
|
|
9005
9055
|
"CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey,
|
|
9006
9056
|
"ScoringFunction.distance": DistanceScoringFunction,
|
|
@@ -9149,6 +9199,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
|
|
|
9149
9199
|
TextTranslationSkill: TextTranslationSkill,
|
|
9150
9200
|
DocumentExtractionSkill: DocumentExtractionSkill,
|
|
9151
9201
|
WebApiSkill: WebApiSkill,
|
|
9202
|
+
AzureMachineLearningSkill: AzureMachineLearningSkill,
|
|
9152
9203
|
DefaultCognitiveServicesAccount: DefaultCognitiveServicesAccount,
|
|
9153
9204
|
CognitiveServicesAccountKey: CognitiveServicesAccountKey,
|
|
9154
9205
|
SearchIndexerKnowledgeStoreTableProjectionSelector: SearchIndexerKnowledgeStoreTableProjectionSelector,
|
|
@@ -10457,7 +10508,7 @@ class SearchServiceClientContext extends coreClient__namespace.ServiceClient {
|
|
|
10457
10508
|
const defaults = {
|
|
10458
10509
|
requestContentType: "application/json; charset=utf-8"
|
|
10459
10510
|
};
|
|
10460
|
-
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.
|
|
10511
|
+
const packageDetails = `azsdk-js-search-documents/11.3.0-beta.6`;
|
|
10461
10512
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
10462
10513
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
10463
10514
|
: `${packageDetails}`;
|
|
@@ -11753,9 +11804,9 @@ exports.KnownQueryLanguage = void 0;
|
|
|
11753
11804
|
KnownQueryLanguage["ArJo"] = "ar-jo";
|
|
11754
11805
|
/** Query language value for Danish (Denmark). */
|
|
11755
11806
|
KnownQueryLanguage["DaDk"] = "da-dk";
|
|
11756
|
-
/** Query language value for Norwegian (
|
|
11807
|
+
/** Query language value for Norwegian (Norway). */
|
|
11757
11808
|
KnownQueryLanguage["NoNo"] = "no-no";
|
|
11758
|
-
/** Query language value for Bulgarian (
|
|
11809
|
+
/** Query language value for Bulgarian (Bulgaria). */
|
|
11759
11810
|
KnownQueryLanguage["BgBg"] = "bg-bg";
|
|
11760
11811
|
/** Query language value for Croatian (Croatia). */
|
|
11761
11812
|
KnownQueryLanguage["HrHr"] = "hr-hr";
|
|
@@ -11881,13 +11932,6 @@ exports.KnownQueryCaptionType = void 0;
|
|
|
11881
11932
|
KnownQueryCaptionType["Extractive"] = "extractive";
|
|
11882
11933
|
})(exports.KnownQueryCaptionType || (exports.KnownQueryCaptionType = {}));
|
|
11883
11934
|
|
|
11884
|
-
/*
|
|
11885
|
-
* Copyright (c) Microsoft Corporation.
|
|
11886
|
-
* Licensed under the MIT License.
|
|
11887
|
-
*
|
|
11888
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
11889
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
11890
|
-
*/
|
|
11891
11935
|
/** Known values of {@link ApiVersion20210430Preview} that the service accepts. */
|
|
11892
11936
|
var KnownApiVersion20210430Preview;
|
|
11893
11937
|
(function (KnownApiVersion20210430Preview) {
|
|
@@ -12377,6 +12421,8 @@ exports.KnownOcrSkillLanguage = void 0;
|
|
|
12377
12421
|
KnownOcrSkillLanguage["SrLatn"] = "sr-Latn";
|
|
12378
12422
|
/** Slovak */
|
|
12379
12423
|
KnownOcrSkillLanguage["Sk"] = "sk";
|
|
12424
|
+
/** Unknown. If the language is explicitly set to "unk", the language will be auto-detected. */
|
|
12425
|
+
KnownOcrSkillLanguage["Unk"] = "unk";
|
|
12380
12426
|
})(exports.KnownOcrSkillLanguage || (exports.KnownOcrSkillLanguage = {}));
|
|
12381
12427
|
/** Known values of {@link LineEnding} that the service accepts. */
|
|
12382
12428
|
exports.KnownLineEnding = void 0;
|