@docbrasil/api-systemmanager 1.0.75 → 1.0.77

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.
@@ -47,30 +47,6 @@ class AdminNotification {
47
47
  };
48
48
  }
49
49
 
50
- /**
51
- * @description Send real time notification
52
- * @param {object} params Params to send notification
53
- * @param {string} params.userIds Users to send notification
54
- * @param {object} params.message Object with data to send user
55
- * @param {object} session Session, token JWT
56
- * @returns {Promise<*>}
57
- */
58
- async realTime(params, session) {
59
- const self = this;
60
-
61
- try {
62
- Joi.assert(params, Joi.object().required(), 'Object with params to add notifications');
63
- Joi.assert(params.userIds, Joi.array().required(), 'OrgId of the user SU');
64
- Joi.assert(params.message, Joi.object().required(), 'Object with data to send user');
65
- Joi.assert(session, Joi.string().required(), 'Session, token JWT');
66
-
67
- const apiCall = self.client.post(`/admin/send/notifications`, params, self._setHeader(session));
68
- return self._returnData(await apiCall);
69
- } catch (ex) {
70
- throw ex;
71
- }
72
- }
73
-
74
50
  /**
75
51
  * @author CloudBrasil <abernardo.br@gmail.com>
76
52
  * @description Create notification
@@ -612,7 +612,9 @@ class Documents {
612
612
  const reqOpts = {
613
613
  headers: {
614
614
  'Content-Type': type
615
- }
615
+ },
616
+ maxContentLength: Infinity,
617
+ maxBodyLength: Infinity
616
618
  };
617
619
 
618
620
  const onUploadProgress = params.onUploadProgress;
@@ -57,10 +57,10 @@ class Process {
57
57
  _setMaxContentHeader(session) {
58
58
  return {
59
59
  headers: {
60
- authorization: session,
61
- maxContentLength: Infinity,
62
- maxBodyLength: Infinity
63
- }
60
+ authorization: session
61
+ },
62
+ maxContentLength: Infinity,
63
+ maxBodyLength: Infinity
64
64
  };
65
65
  }
66
66
 
package/dist/bundle.cjs CHANGED
@@ -1164,7 +1164,9 @@ class Documents {
1164
1164
  const reqOpts = {
1165
1165
  headers: {
1166
1166
  'Content-Type': type
1167
- }
1167
+ },
1168
+ maxContentLength: Infinity,
1169
+ maxBodyLength: Infinity
1168
1170
  };
1169
1171
 
1170
1172
  const onUploadProgress = params.onUploadProgress;
@@ -1460,10 +1462,10 @@ class Process {
1460
1462
  _setMaxContentHeader(session) {
1461
1463
  return {
1462
1464
  headers: {
1463
- authorization: session,
1464
- maxContentLength: Infinity,
1465
- maxBodyLength: Infinity
1466
- }
1465
+ authorization: session
1466
+ },
1467
+ maxContentLength: Infinity,
1468
+ maxBodyLength: Infinity
1467
1469
  };
1468
1470
  }
1469
1471
 
@@ -9597,30 +9599,6 @@ class AdminNotification {
9597
9599
  };
9598
9600
  }
9599
9601
 
9600
- /**
9601
- * @description Send real time notification
9602
- * @param {object} params Params to send notification
9603
- * @param {string} params.userIds Users to send notification
9604
- * @param {object} params.message Object with data to send user
9605
- * @param {object} session Session, token JWT
9606
- * @returns {Promise<*>}
9607
- */
9608
- async realTime(params, session) {
9609
- const self = this;
9610
-
9611
- try {
9612
- Joi__default["default"].assert(params, Joi__default["default"].object().required(), 'Object with params to add notifications');
9613
- Joi__default["default"].assert(params.userIds, Joi__default["default"].array().required(), 'OrgId of the user SU');
9614
- Joi__default["default"].assert(params.message, Joi__default["default"].object().required(), 'Object with data to send user');
9615
- Joi__default["default"].assert(session, Joi__default["default"].string().required(), 'Session, token JWT');
9616
-
9617
- const apiCall = self.client.post(`/admin/send/notifications`, params, self._setHeader(session));
9618
- return self._returnData(await apiCall);
9619
- } catch (ex) {
9620
- throw ex;
9621
- }
9622
- }
9623
-
9624
9602
  /**
9625
9603
  * @author CloudBrasil <abernardo.br@gmail.com>
9626
9604
  * @description Create notification