@docbrasil/api-systemmanager 1.0.108 → 1.0.109

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/api/external.js CHANGED
@@ -149,11 +149,11 @@ class External {
149
149
  * ];
150
150
  * const retDocs = await api.external.getUploadDocumentsSignedUrl(docs, authorization);
151
151
  */
152
- async getUploadDocumentSignedUrl(docs, authorization) {
152
+ async getUploadDocumentsSignedUrl(docs, authorization) {
153
153
  const self = this;
154
154
 
155
155
  try {
156
- Joi.assert(docs, Joi.string().array().error(new Error('docs is required')));
156
+ Joi.assert(docs, Joi.array().required().error(new Error('docs is required')));
157
157
  Joi.assert(authorization, Joi.string().required().error(new Error('authorization is required')));
158
158
 
159
159
  const apiCall = self._client
package/dist/bundle.cjs CHANGED
@@ -11770,11 +11770,11 @@ class External {
11770
11770
  * ];
11771
11771
  * const retDocs = await api.external.getUploadDocumentsSignedUrl(docs, authorization);
11772
11772
  */
11773
- async getUploadDocumentSignedUrl(docs, authorization) {
11773
+ async getUploadDocumentsSignedUrl(docs, authorization) {
11774
11774
  const self = this;
11775
11775
 
11776
11776
  try {
11777
- Joi__default["default"].assert(docs, Joi__default["default"].string().array().error(new Error('docs is required')));
11777
+ Joi__default["default"].assert(docs, Joi__default["default"].array().required().error(new Error('docs is required')));
11778
11778
  Joi__default["default"].assert(authorization, Joi__default["default"].string().required().error(new Error('authorization is required')));
11779
11779
 
11780
11780
  const apiCall = self._client