File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,13 @@ class ConversationV1 extends GeneratedConversationV1 {
38
38
const _options = extend ( { } , options ) ;
39
39
_options . version = _options . version_date || _options . version ;
40
40
super ( _options ) ;
41
+ if ( ! options [ 'silent' ] ) {
42
+ // eslint-disable-next-line no-console
43
+ console . warn (
44
+ 'WARNING: Conversation V1 is deprecated and will be removed in the next major release of the SDK. Use Assistant V1 or Assistant V2.' +
45
+ ' Set {silent: true} to disable this message.'
46
+ ) ;
47
+ }
41
48
}
42
49
43
50
workspaceStatus ( params , callback ) {
Original file line number Diff line number Diff line change @@ -21,6 +21,13 @@ import GeneratedLanguageTranslatorV2 = require('./v2-generated');
21
21
class LanguageTranslatorV2 extends GeneratedLanguageTranslatorV2 {
22
22
constructor ( options ) {
23
23
super ( options ) ;
24
+ if ( ! options [ 'silent' ] ) {
25
+ // eslint-disable-next-line no-console
26
+ console . warn (
27
+ 'WARNING: Language Translator V2 is deprecated and will be removed in the next major release of the SDK. Use Language Translator V3.' +
28
+ ' Set {silent: true} to disable this message.'
29
+ ) ;
30
+ }
24
31
}
25
32
26
33
getModels ( params , callback ) {
You can’t perform that action at this time.
0 commit comments