Skip to content

Commit 6dec631

Browse files
committed
fix: use Record instead of Map type for classifier update
1 parent 2ed1100 commit 6dec631

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

visual-recognition/v3.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ class VisualRecognitionV3 extends BaseService {
443443
});
444444
});
445445
}
446-
446+
447447
const query = {
448448
'verbose': _params.verbose
449449
};
@@ -482,7 +482,7 @@ class VisualRecognitionV3 extends BaseService {
482482
*
483483
* @param {Object} params - The parameters to send to the service.
484484
* @param {string} params.classifier_id - The ID of the classifier.
485-
* @param {Map<string, NodeJS.ReadableStream|FileObject|Buffer>} [params.positive_examples] - A dictionary that
485+
* @param {Record<string, NodeJS.ReadableStream|NodeJS.ReadStream|FileObject|Buffer>} [params.positive_examples] - A dictionary that
486486
* contains the value for each classname. The value is a .zip file of images that depict the visual subject of a class
487487
* in the classifier. The positive examples create or update classes in the classifier. You can include more than one
488488
* positive example file in a call.
@@ -494,7 +494,7 @@ class VisualRecognitionV3 extends BaseService {
494494
* maximum number of images is 10,000 images or 100 MB per .zip file.
495495
*
496496
* Encode special characters in the file name in UTF-8.
497-
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.negative_examples] - A .zip file of images that do not
497+
* @param {NodeJS.ReadableStream|NodeJS.ReadStream|FileObject|Buffer} [params.negative_examples] - A .zip file of images that do not
498498
* depict the visual subject of any of the classes of the new classifier. Must contain a minimum of 10 images.
499499
*
500500
* Encode special characters in the file name in UTF-8.
@@ -654,7 +654,7 @@ class VisualRecognitionV3 extends BaseService {
654654
if (missingParams) {
655655
return _callback(missingParams);
656656
}
657-
657+
658658
const query = {
659659
'customer_id': _params.customer_id
660660
};
@@ -848,9 +848,9 @@ namespace VisualRecognitionV3 {
848848
/** The ID of the classifier. */
849849
classifier_id: string;
850850
/** A dictionary that contains the value for each classname. The value is a .zip file of images that depict the visual subject of a class in the classifier. The positive examples create or update classes in the classifier. You can include more than one positive example file in a call. Specify the parameter name by appending `_positive_examples` to the class name. For example, `goldenretriever_positive_examples` creates the class `goldenretriever`. Include at least 10 images in .jpg or .png format. The minimum recommended image resolution is 32X32 pixels. The maximum number of images is 10,000 images or 100 MB per .zip file. Encode special characters in the file name in UTF-8. */
851-
positive_examples?: Map<string, NodeJS.ReadableStream|FileObject|Buffer>;
851+
positive_examples?: Record<string, NodeJS.ReadableStream|NodeJS.ReadStream|FileObject|Buffer>;
852852
/** A .zip file of images that do not depict the visual subject of any of the classes of the new classifier. Must contain a minimum of 10 images. Encode special characters in the file name in UTF-8. */
853-
negative_examples?: NodeJS.ReadableStream|FileObject|Buffer;
853+
negative_examples?: NodeJS.ReadableStream|NodeJS.ReadStream|FileObject|Buffer;
854854
/** The filename for negative_examples. */
855855
negative_examples_filename?: string;
856856
headers?: OutgoingHttpHeaders;

0 commit comments

Comments
 (0)