@docbrasil/api-systemmanager 1.0.50 → 1.0.51

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.
@@ -499,7 +499,7 @@ class Documents {
499
499
  /**
500
500
  * Uploads the file
501
501
  * @param {object} params Params to upload document
502
- * @param {string|buffer} params.content The content of the file (base64 or Buffer)
502
+ * @param {buffer} params.content The content of the file (Buffer)
503
503
  * @param {string} params.signedUrl The signed URL
504
504
  * @param {string} params.type The file mime type
505
505
  * @return {Promise<boolean>} True if success
@@ -522,7 +522,7 @@ class Documents {
522
522
  async uploadSignedDocument(params) {
523
523
  const { content, signedUrl, type } = params;
524
524
  Joi.assert(params, Joi.object().required());
525
- Joi.assert(params.content, Joi.string().required());
525
+ Joi.assert(params.content, Joi.required());
526
526
  Joi.assert(params.signedUrl, Joi.string().required());
527
527
  Joi.assert(params.type, Joi.string().required());
528
528
 
@@ -174,16 +174,6 @@ class Organization {
174
174
  }
175
175
 
176
176
  /**
177
- * @author Augusto Pissarra <abernardo.br@gmail.com>
178
- * @description Call URL internal
179
- * @param {!object} params Params to call fectch (URL internal)
180
- * @param {!string} params.url URL to call
181
- * @param {!string} [params.method=POST] Fetch Method
182
- * @param {string} params.payload Payload to send
183
- * @returns {promise}
184
- * @public
185
- * @async
186
- /**
187
177
  * @author Thiago Anselmo <thiagoo.anselmoo@gmail.com>
188
178
  * @description Call URL internal, need auth JWT (session)
189
179
  * @param {!object} params Params to call fectch (URL internal)
@@ -1,5 +1,5 @@
1
- imnport _ from 'lodash';
2
- imnport Boom from '@hapi/boom';
1
+ import _ from 'lodash';
2
+ import Boom from '@hapi/boom';
3
3
 
4
4
  class ThePromise {
5
5
 
package/bundleRollup.js CHANGED
@@ -107,13 +107,13 @@ class BuildRollup {
107
107
 
108
108
  try {
109
109
  const bundle = await rollup.rollup(config.entry);
110
- self.log('Bundle genered');
110
+ self.log('Bundle generated');
111
111
 
112
112
  await bundle.write(config.output);
113
- self.log('Bundle write');
113
+ self.log('Bundle writen');
114
114
 
115
115
  await bundle.close();
116
- self.log('Bundle finish\n');
116
+ self.log('Bundle finished\n');
117
117
 
118
118
  } catch (ex) {
119
119
  throw ex;
package/dist/bundle.cjs CHANGED
@@ -1020,7 +1020,7 @@ class Documents {
1020
1020
  /**
1021
1021
  * Uploads the file
1022
1022
  * @param {object} params Params to upload document
1023
- * @param {string|buffer} params.content The content of the file (base64 or Buffer)
1023
+ * @param {buffer} params.content The content of the file (Buffer)
1024
1024
  * @param {string} params.signedUrl The signed URL
1025
1025
  * @param {string} params.type The file mime type
1026
1026
  * @return {Promise<boolean>} True if success
@@ -1043,7 +1043,7 @@ class Documents {
1043
1043
  async uploadSignedDocument(params) {
1044
1044
  const { content, signedUrl, type } = params;
1045
1045
  Joi__default["default"].assert(params, Joi__default["default"].object().required());
1046
- Joi__default["default"].assert(params.content, Joi__default["default"].string().required());
1046
+ Joi__default["default"].assert(params.content, Joi__default["default"].required());
1047
1047
  Joi__default["default"].assert(params.signedUrl, Joi__default["default"].string().required());
1048
1048
  Joi__default["default"].assert(params.type, Joi__default["default"].string().required());
1049
1049
 
@@ -1232,16 +1232,6 @@ class Organization {
1232
1232
  }
1233
1233
 
1234
1234
  /**
1235
- * @author Augusto Pissarra <abernardo.br@gmail.com>
1236
- * @description Call URL internal
1237
- * @param {!object} params Params to call fectch (URL internal)
1238
- * @param {!string} params.url URL to call
1239
- * @param {!string} [params.method=POST] Fetch Method
1240
- * @param {string} params.payload Payload to send
1241
- * @returns {promise}
1242
- * @public
1243
- * @async
1244
- /**
1245
1235
  * @author Thiago Anselmo <thiagoo.anselmoo@gmail.com>
1246
1236
  * @description Call URL internal, need auth JWT (session)
1247
1237
  * @param {!object} params Params to call fectch (URL internal)