From 0887bbe243bac3690e749aa370d7bd75ac5aff91 Mon Sep 17 00:00:00 2001 From: Gintautas Miselis Date: Fri, 6 Oct 2017 18:03:04 +0100 Subject: [PATCH] [watson-develop-cloud] new methods and version dates (#20330) --- types/watson-developer-cloud/index.d.ts | 45 ++++++++++++++++--------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/types/watson-developer-cloud/index.d.ts b/types/watson-developer-cloud/index.d.ts index 08494f74d7..4d90296e10 100644 --- a/types/watson-developer-cloud/index.d.ts +++ b/types/watson-developer-cloud/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for watson-developer-cloud 2.31 +// Type definitions for watson-developer-cloud 2.40 // Project: https://github.com/watson-developer-cloud/node-sdk#readme // Definitions by: Roy Wallace +// Gintautas Miselis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -55,20 +56,6 @@ export class AlchemyLanguageV1 { static URL: string; } -export class AlchemyVisionV1 { - constructor(options: any); - - getImageKeywords(_params: any, callback: any): any; - - getImageLinks(_params: any, callback: any): any; - - getImageSceneText(_params: any, callback: any): any; - - recognizeFaces(_params: any, callback: any): any; - - static URL: string; -} - export class AuthorizationV1 { constructor(options: any); @@ -82,6 +69,8 @@ export class ConversationV1 { createCounterExample(params: any, callback: any): any; + createDialogNode(params: any, callback: any): any; + createEntity(params: any, callback: any): any; createExample(params: any, callback: any): any; @@ -96,6 +85,8 @@ export class ConversationV1 { deleteCounterExample(params: any, callback: any): any; + deleteDialogNode(params: any, callback: any): any; + deleteEntity(params: any, callback: any): any; deleteExample(params: any, callback: any): any; @@ -112,6 +103,10 @@ export class ConversationV1 { getCounterExamples(params: any, callback: any): any; + getDialogNode(params: any, callback: any): any; + + getDialogNodes(params: any, callback: any): any; + getEntities(params: any, callback: any): any; getEntity(params: any, callback: any): any; @@ -142,6 +137,8 @@ export class ConversationV1 { updateCounterExample(params: any, callback: any): any; + updateDialogNode(params: any, callback: any): any; + updateEntity(params: any, callback: any): any; updateExample(params: any, callback: any): any; @@ -165,6 +162,8 @@ export class ConversationV1 { static VERSION_DATE_2017_02_03: string; static VERSION_DATE_2017_04_21: string; + + static VERSION_DATE_2017_05_26: string; } export class ConversationV1Experimental { @@ -206,8 +205,12 @@ export class DiscoveryV1 { addDocument(params: any, callback: any): any; + addJsonDocument(params: any, callback: any): any; + createCollection(params: any, callback: any): any; + createConfiguration(params: any, callback: any): any; + createEnvironment(params: any, callback: any): any; deleteCollection(params: any, callback: any): any; @@ -218,6 +221,8 @@ export class DiscoveryV1 { getCollection(params: any, callback: any): any; + getCollectionFields(params: any, callback: any): any; + getCollections(params: any, callback: any): any; getConfiguration(params: any, callback: any): any; @@ -230,8 +235,14 @@ export class DiscoveryV1 { query(params: any, callback: any): any; + updateCollection(params: any, callback: any): any; + + updateConfiguration(params: any, callback: any): any; + updateDocument(params: any, callback: any): any; + updateJsonDocument(params: any, callback: any): any; + updateEnvironment(params: any, callback: any): any; static URL: string; @@ -239,6 +250,8 @@ export class DiscoveryV1 { static VERSION_DATE_2016_12_15: string; static VERSION_DATE_2017_04_27: string; + + static VERSION_DATE_2017_08_01: string; } export class DiscoveryV1Experimental { @@ -615,4 +628,6 @@ export class VisualRecognitionV3 { setImageMetadata(params: any, callback: any): any; static URL: string; + + static VERSION_DATE_2016_05_20: string; }