File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -379,6 +379,7 @@ namespace DialogV1 {
379
379
dialog_id : string ;
380
380
/** A client ID obtained from /dialog. **/
381
381
client_id : string ;
382
+ name : string | Array < string > ;
382
383
}
383
384
384
385
export interface UpdateProfileParams {
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ export import NaturalLanguageClassifierV1 = require('./natural-language-classifi
32
32
33
33
export import NaturalLanguageUnderstandingV1 = require ( './natural-language-understanding/v1' ) ;
34
34
35
+ export import PersonalityInsightsV2 = require ( './personality-insights/v2' ) ;
36
+
35
37
export import PersonalityInsightsV3 = require ( './personality-insights/v3' ) ;
36
38
37
39
export import SpeechToTextV1 = require ( './speech-to-text/v1' ) ;
@@ -42,11 +44,6 @@ export import ToneAnalyzerV3 = require('./tone-analyzer/v3');
42
44
43
45
export import VisualRecognitionV3 = require ( './visual-recognition/v3' ) ;
44
46
45
- // js service files need to be imported this way as
46
- // a hack to supress compiler warnings about using
47
- // a .js file with the es6 import construct
48
- export const PersonalityInsightsV2 = require ( './personality-insights/v2' ) ;
49
-
50
47
// adding shim constructors for backwards compatibility
51
48
52
49
// 2-d map of snake_case service names & version => constructor function
Original file line number Diff line number Diff line change @@ -225,6 +225,14 @@ export function createRequest(parameters, _callback) {
225
225
226
226
// Query params
227
227
if ( options . qs && Object . keys ( options . qs ) . length > 0 ) {
228
+ // dialog doesn't like qs params joined with a `,`
229
+ if ( ! parameters . defaultOptions . url . match ( / d i a l o g \/ a p i / ) ) {
230
+ Object . keys ( options . qs ) . forEach (
231
+ key =>
232
+ Array . isArray ( options . qs [ key ] ) &&
233
+ ( options . qs [ key ] = options . qs [ key ] . join ( ',' ) )
234
+ ) ;
235
+ }
228
236
options . useQuerystring = true ;
229
237
}
230
238
You can’t perform that action at this time.
0 commit comments