argous 1.2.196 → 1.2.198

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.
@@ -10,6 +10,7 @@ export function validaToken(): Promise<any>;
10
10
  export function getMenu(): Promise<any>;
11
11
  export function getPostsTimeline(data: any): Promise<any>;
12
12
  export function addCommentPost(data: any): Promise<any>;
13
+ export function removeCommentPost(data: any): Promise<any>;
13
14
  export function getPostPublicacao(data: any): Promise<any>;
14
15
  export function getProgram(data: any): Promise<any>;
15
16
  export function agGet(data: any): object;
@@ -30,6 +31,7 @@ export function recebeInfoEstatisticas(): Promise<any>;
30
31
  export function toggleLikePost(data: any): Promise<any>;
31
32
  export function publicaTimeline(data: any): Promise<any>;
32
33
  export function removePostTimeLine(data: any): Promise<any>;
34
+ export function fixTimelinePost(data: any): Promise<any>;
33
35
  export function enviaCompartilhamentoDePrograma(data: any): Promise<any>;
34
36
  export function inicFileUpload(data: any): Promise<any>;
35
37
  export function sendFilePart(data: any): Promise<any>;
package/dist/api/index.js CHANGED
@@ -47,7 +47,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
47
47
  }
48
48
  };
49
49
  Object.defineProperty(exports, "__esModule", { value: true });
50
- exports.getPublicDoc = exports.sendWidgets = exports.getWidgetInfo = exports.getWidgets = exports.scanDocument = exports.getLink = exports.getFileFromLink = exports.createDocument = exports.prepareFile = exports.getDocsUrl = exports.searchUsers = exports.getFileInfo = exports.cancelFileUpload = exports.endFileUpload = exports.sendFilePart = exports.inicFileUpload = exports.enviaCompartilhamentoDePrograma = exports.removePostTimeLine = exports.publicaTimeline = exports.toggleLikePost = exports.recebeInfoEstatisticas = exports.recebeInfoLoginsAtivos = exports.recebeThreadsUsuario = exports.recebeInfoThread = exports.recebeThread = exports.readNotificacao = exports.readNotificacoes = exports.getNotificacoes = exports.callProgram = exports.toggleFavorite = exports.getFavorites = exports.method = exports.action = exports.agSet = exports.agGet = exports.getProgram = exports.getPostPublicacao = exports.addCommentPost = exports.getPostsTimeline = exports.getMenu = exports.validaToken = exports.logout = exports.login = exports.fetchToArgous = exports.headers = exports.api = exports.server = void 0;
50
+ exports.getPublicDoc = exports.sendWidgets = exports.getWidgetInfo = exports.getWidgets = exports.scanDocument = exports.getLink = exports.getFileFromLink = exports.createDocument = exports.prepareFile = exports.getDocsUrl = exports.searchUsers = exports.getFileInfo = exports.cancelFileUpload = exports.endFileUpload = exports.sendFilePart = exports.inicFileUpload = exports.enviaCompartilhamentoDePrograma = exports.fixTimelinePost = exports.removePostTimeLine = exports.publicaTimeline = exports.toggleLikePost = exports.recebeInfoEstatisticas = exports.recebeInfoLoginsAtivos = exports.recebeThreadsUsuario = exports.recebeInfoThread = exports.recebeThread = exports.readNotificacao = exports.readNotificacoes = exports.getNotificacoes = exports.callProgram = exports.toggleFavorite = exports.getFavorites = exports.method = exports.action = exports.agSet = exports.agGet = exports.getProgram = exports.getPostPublicacao = exports.removeCommentPost = exports.addCommentPost = exports.getPostsTimeline = exports.getMenu = exports.validaToken = exports.logout = exports.login = exports.fetchToArgous = exports.headers = exports.api = exports.server = void 0;
51
51
  var utils_1 = require("../utils");
52
52
  var config_1 = require("../utils/config");
53
53
  var server = function () { return "://" + config_1.getConfig()[/^[a-z]+.+\.com\.br$/.test(window.location.host) ? 'ip' : 'ip'] + "/" + (config_1.getConfig().path ? config_1.getConfig().path : 'jUniIII') + "/"; };
@@ -179,6 +179,23 @@ var addCommentPost = function (data) { return __awaiter(void 0, void 0, void 0,
179
179
  });
180
180
  }); };
181
181
  exports.addCommentPost = addCommentPost;
182
+ var removeCommentPost = function (data) { return __awaiter(void 0, void 0, void 0, function () {
183
+ var res;
184
+ return __generator(this, function (_a) {
185
+ switch (_a.label) {
186
+ case 0: return [4 /*yield*/, fetch(exports.api() + "agrmcomentario.rslvr", {
187
+ method: 'POST',
188
+ body: JSON.stringify(data),
189
+ headers: exports.headers()
190
+ })];
191
+ case 1:
192
+ res = _a.sent();
193
+ return [4 /*yield*/, res.json()];
194
+ case 2: return [2 /*return*/, _a.sent()];
195
+ }
196
+ });
197
+ }); };
198
+ exports.removeCommentPost = removeCommentPost;
182
199
  var getPostPublicacao = function (data) { return __awaiter(void 0, void 0, void 0, function () {
183
200
  var res;
184
201
  return __generator(this, function (_a) {
@@ -537,6 +554,23 @@ var removePostTimeLine = function (data) { return __awaiter(void 0, void 0, void
537
554
  });
538
555
  }); };
539
556
  exports.removePostTimeLine = removePostTimeLine;
557
+ var fixTimelinePost = function (data) { return __awaiter(void 0, void 0, void 0, function () {
558
+ var res;
559
+ return __generator(this, function (_a) {
560
+ switch (_a.label) {
561
+ case 0: return [4 /*yield*/, fetch(exports.api() + "agfixapost.rslvr", {
562
+ method: 'POST',
563
+ body: JSON.stringify(data),
564
+ headers: exports.headers()
565
+ })];
566
+ case 1:
567
+ res = _a.sent();
568
+ return [4 /*yield*/, res.json()];
569
+ case 2: return [2 /*return*/, _a.sent()];
570
+ }
571
+ });
572
+ }); };
573
+ exports.fixTimelinePost = fixTimelinePost;
540
574
  var enviaCompartilhamentoDePrograma = function (data) { return __awaiter(void 0, void 0, void 0, function () {
541
575
  var res;
542
576
  return __generator(this, function (_a) {
package/lib/api/index.js CHANGED
@@ -74,6 +74,15 @@ export const addCommentPost = async (data) => {
74
74
  return await res.json();
75
75
  };
76
76
 
77
+ export const removeCommentPost = async (data) => {
78
+ const res = await fetch(`${api()}agrmcomentario.rslvr`, {
79
+ method: 'POST',
80
+ body: JSON.stringify(data),
81
+ headers: headers()
82
+ });
83
+ return await res.json();
84
+ };
85
+
77
86
  export const getPostPublicacao = async (data) => {
78
87
  const res = await fetch(`${api()}aggetpost.rslvr`, {
79
88
  method: 'POST',
@@ -272,6 +281,15 @@ export const removePostTimeLine = async (data) => {
272
281
  return await res.json();
273
282
  };
274
283
 
284
+ export const fixTimelinePost = async (data) => {
285
+ const res = await fetch(`${api()}agfixapost.rslvr`, {
286
+ method: 'POST',
287
+ body: JSON.stringify(data),
288
+ headers: headers()
289
+ });
290
+ return await res.json();
291
+ };
292
+
275
293
  export const enviaCompartilhamentoDePrograma = async (data) => {
276
294
  const res = await fetch(`${api()}agsharepost.rslvr`, {
277
295
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "argous",
3
- "version": "1.2.196",
3
+ "version": "1.2.198",
4
4
  "description": "Argous.",
5
5
  "main": "lib/index.js",
6
6
  "author": "Carlos Schneider",