From 356d2ee84e3d830ce0cdd31a04324b8093f90b87 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Thu, 6 Oct 2022 15:50:29 +0000 Subject: [PATCH] Automatic build --- dist/src/controllers/api/personal.js | 17 ++++++++++++++++- dist/src/controllers/api/personal.js.map | 2 +- dist/src/controllers/index.js | 1 + dist/src/controllers/index.js.map | 2 +- dist/src/utils/people.js | 23 ++++++++++++++++++++++- dist/src/utils/people.js.map | 2 +- 6 files changed, 42 insertions(+), 5 deletions(-) diff --git a/dist/src/controllers/api/personal.js b/dist/src/controllers/api/personal.js index 8a0257e36..bae23f7b2 100644 --- a/dist/src/controllers/api/personal.js +++ b/dist/src/controllers/api/personal.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.claimOnLiquid = exports.refreshJWT = exports.uploadPublicPic = exports.deletePersonProfile = exports.createPeopleProfile = void 0; +exports.claimOnLiquid = exports.refreshJWT = exports.uploadPublicPic = exports.deleteTicketByAdmin = exports.deletePersonProfile = exports.createPeopleProfile = void 0; const meme = require("../../utils/meme"); const FormData = require("form-data"); const node_fetch_1 = require("node-fetch"); @@ -83,6 +83,21 @@ function deletePersonProfile(req, res) { }); } exports.deletePersonProfile = deletePersonProfile; +function deleteTicketByAdmin(req, res) { + return __awaiter(this, void 0, void 0, function* () { + if (!req.owner) + return (0, res_1.failure)(res, 'no owner'); + try { + const { host, pubkey, created } = req.body; + const person = yield people.deleteTicketByAdmin(host || config.tribes_host, pubkey, created, req.owner.publicKey); + (0, res_1.success)(res, person); + } + catch (e) { + (0, res_1.failure)(res, e); + } + }); +} +exports.deleteTicketByAdmin = deleteTicketByAdmin; function uploadPublicPic(req, res) { return __awaiter(this, void 0, void 0, function* () { if (!req.owner) diff --git a/dist/src/controllers/api/personal.js.map b/dist/src/controllers/api/personal.js.map index 88042b2cb..60af34479 100644 --- a/dist/src/controllers/api/personal.js.map +++ b/dist/src/controllers/api/personal.js.map @@ -1 +1 @@ -{"version":3,"file":"personal.js","sourceRoot":"","sources":["../../../../src/controllers/api/personal.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAwC;AACxC,sCAAqC;AACrC,2CAA8B;AAC9B,6CAA4C;AAC5C,yCAA8C;AAC9C,8CAA6C;AAC7C,yCAAkD;AAClD,+CAA+C;AAC/C,yCAAmD;AAEnD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAC3B,2CAA2C;AAC3C,uDAAuD;AACvD,SAAsB,mBAAmB,CAAC,GAAG,EAAE,GAAG;;QAChD,IAAI,CAAC,GAAG,CAAC,KAAK;YAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;QAEnC,MAAM,WAAW,GAAG,GAAG,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,CAAA;QAE/C,IAAI;YACF,MAAM,KAAK,GAAY,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACnD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;aACjC,CAAC,CAAY,CAAA;YACd,MAAM,EACJ,EAAE,EACF,IAAI,EACJ,WAAW,EACX,WAAW,EACX,GAAG,EACH,IAAI,EACJ,MAAM,EACN,eAAe,GAChB,GAAG,GAAG,CAAC,IAAI,CAAA;YAEZ,oCAAoC;YACpC,sCAAsC;YACtC,WAAW;YACX,IAAI;YAEJ,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,kBAAkB,CAC5C;gBACE,IAAI,EAAE,IAAI,IAAI,MAAM,CAAC,WAAW;gBAChC,WAAW,EAAE,WAAW,IAAI,KAAK,CAAC,KAAK;gBACvC,WAAW,EAAE,WAAW,IAAI,EAAE;gBAC9B,GAAG,EAAE,GAAG,IAAI,KAAK,CAAC,QAAQ;gBAC1B,IAAI,E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A;QAC5B,MAAM,GAAG,GAAG,IAAA,eAAS,EAAC,GAAG,CAAC,KAAK,CAAC,SAAS,EAAE,EAAE,EAAE,KAAK,CAAC,CAAA,CAAC,WAAW;QACjE,IAAA,aAAO,EAAC,GAAG,EAAE;YACX,GAAG,EAAE,GAAG;SACT,CAAC,CAAA;IACJ,CAAC;CAAA;AAPD,gCAOC;AAED,SAAsB,aAAa,CAAC,GAAG,EAAE,GAAG;;QAC1C,IAAI,CAAC,GAAG,CAAC,KAAK;YAAE,OAAO,IAAA,aAAO,EAAC,GAAG,EAAE,UAAU,CAAC,CAAA;QAC/C,MAAM,MAAM,GAAW,GAAG,CAAC,KAAK,CAAC,EAAE,CAAA;QAEnC,IAAI;YACF,MAAM,KAAK,GAAY,CAAC,MAAM,eAAM,CAAC,OAAO,CAAC,OAAO,CAAC;gBACnD,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;aACjC,CAAC,CAAY,CAAA;YACd,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC,IAAI,CAAA;YAE5C,MAAM,CAAC,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC;gBACnC,IAAI,EAAE,oBAAoB;gBAC1B,KAAK;gBACL,EAAE;gBACF,MAAM;gBACN,IAAI;gBACJ,YAAY,EAAE,KAAK,CAAC,SAAS;aAC9B,CAAC,CAAA;YAEF,IAAA,aAAO,EAAC,GAAG,EAAE,CAAC,CAAC,CAAA;SAChB;QAAC,OAAO,CAAC,EAAE;YACV,IAAA,aAAO,EAAC,GAAG,EAAE,CAAC,CAAC,CAAA;SAChB;IACH,CAAC;CAAA;AAvBD,sCAuBC"} \ No newline at end of file +{"version":3,"file":"personal.js","sourceRoot":"","sources":["../../../../src/controllers/api/personal.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAwC;AACxC,sCAAqC;AACrC,2CAA8B;AAC9B,6CAA4C;AAC5C,yCAA8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KAAK,CAAC,SAAS;aAC9B,CAAC,CAAA;YAEF,IAAA,aAAO,EAAC,GAAG,EAAE,CAAC,CAAC,CAAA;SAChB;QAAC,OAAO,CAAC,EAAE;YACV,IAAA,aAAO,EAAC,GAAG,EAAE,CAAC,CAAC,CAAA;SAChB;IACH,CAAC;CAAA;AAvBD,sCAuBC"} \ No newline at end of file diff --git a/dist/src/controllers/index.js b/dist/src/controllers/index.js index 5ef73bf69..fd2aaf1aa 100644 --- a/dist/src/controllers/index.js +++ b/dist/src/controllers/index.js @@ -78,6 +78,7 @@ function set(app) { app.get('/hmac_key', contacts.getHmacKey); app.post('/profile', personal.createPeopleProfile); app.delete('/profile', personal.deletePersonProfile); + app.post('/delete_ticket', personal.deleteTicketByAdmin); app.post('/public_pic', personal.uploadPublicPic); app.get('/refresh_jwt', personal.refreshJWT); app.post('/claim_on_liquid', personal.claimOnLiquid); diff --git a/dist/src/controllers/index.js.map b/dist/src/controllers/index.js.map index edf504191..b4c4e26d7 100644 --- a/dist/src/controllers/index.js.map +++ b/dist/src/controllers/index.js.map @@ -1 +1 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controllers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAA2C;AAC3C,iCAAgC;AAChC,2CAA0C;AAC1C,+BAA8B;AAC9B,qCAAoC;AACpC,uCAAsC;AACtC,qCAAoC;AACpC,uCAAsC;AACtC,iCAAgC;AAChC,uCAAsC;AACtC,sCAAqC;AACrC,gDAA+C;AAC/C,qCAAoC;AACpC,iDAAgD;AAChD,oCAAmC;AACnC,qCAAoC;AACpC,4CAA2C;AAC3C,0CAAyC;AACzC,0CAAyC;AACzC,4CAAoC;AACpC,+BAA8B;AAC9B,sCAAsC;AACtC,+BAA8B;AAC9B,2CAA0C;AAC1C,iCAAgC;AAGhC,SAAsB,GAAG,CAAC,GAAG;;QAC3B,WAAW,CAAC,IAAI,EAAE,CAAA;QAElB,IAAI,eAAM,IAAI,eAAM,CAAC,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IAAI,CAAC,iBAAiB;IAC9C,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,aAAa;IACtC,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,aAAa,CAAC,gBAAgB;IACpD,CAAC,QAAQ,CAAC,sBAAsB,CAAC,EAAE,aAAa,CAAC,4BAA4B;IAC7E,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,QAAQ,CAAC,YAAY;IACvC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,YAAY;IACtC,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC,oBAAoB;CACxD,CAAA"} \ No newline at end of file diff --git a/dist/src/utils/people.js b/dist/src/utils/people.js index 30ab9b38e..6739add6b 100644 --- a/dist/src/utils/people.js +++ b/dist/src/utils/people.js @@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge }); }; Object.defineProperty(exports, "__esModule", { value: true }); -exports.claimOnLiquid = exports.deletePerson = exports.createOrEditPerson = void 0; +exports.claimOnLiquid = exports.deleteTicketByAdmin = exports.deletePerson = exports.createOrEditPerson = void 0; const config_1 = require("./config"); const tribes_1 = require("./tribes"); const node_fetch_1 = require("node-fetch"); @@ -68,6 +68,27 @@ function deletePerson(host, id, owner_pubkey) { }); } exports.deletePerson = deletePerson; +function deleteTicketByAdmin(host, pubkey, created, owner_pubkey) { + return __awaiter(this, void 0, void 0, function* () { + try { + const token = yield (0, tribes_1.genSignedTimestamp)(owner_pubkey); + let protocol = 'https'; + if (config.tribes_insecure) + protocol = 'http'; + const r = yield (0, node_fetch_1.default)(`${protocol}://${host}/ticket/${pubkey}/${created}?token=${token}`, { + method: 'DELETE' + }); + if (!r.ok) { + throw 'failed to delete ticket by admin' + r.status; + } + } + catch (e) { + logger_1.sphinxLogger.error(`unauthorized to delete ticket by admin`, logger_1.logging.Tribes); + throw e; + } + }); +} +exports.deleteTicketByAdmin = deleteTicketByAdmin; function claimOnLiquid({ host, asset, to, amount, memo, owner_pubkey, }) { return __awaiter(this, void 0, void 0, function* () { try { diff --git a/dist/src/utils/people.js.map b/dist/src/utils/people.js.map index a20ba6dd7..a6a0ed698 100644 --- a/dist/src/utils/people.js.map +++ b/dist/src/utils/people.js.map @@ -1 +1 @@ -{"version":3,"file":"people.js","sourceRoot":"","sources":["../../../src/utils/people.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,qCAA6C;AAC7C,2CAA8B;AAC9B,qCAAgD;AAEhD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,SAAsB,kBAAkB,CACtC,EACE,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,GAAG,EACH,IAAI,EACJ,aAAa,EACb,MAAM,EACN,eAAe,GAChB,EACD,EAAW;;QAEX,IAAI;YACF,MAAM,KAAK,GAAG,MAAM,IAAA,2BAAkB,EAAC,YAAY,CAAC,CAAA;YACpD,IAAI,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EAAC,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,gBAAgB,GAAG,KAAK,EAAE;gBACxE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,CAAC,SAAS,iCACf,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,KAAE,4BAA4B;oBAC/C,WAAW;oBACX,YAAY;oBACZ,gBAAgB;oBAChB,iBAAiB;oBACjB,WAAW;oBACX,GAAG,EACH,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,aAAa,EAAE,aAAa,IAAI,CAAC,EACjC,MAAM,EAAE,MAAM,IAAI,EAAE,EACp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AI;YACF,MAAM,KAAK,GAAG,MAAM,IAAA,2BAAkB,EAAC,YAAY,CAAC,CAAA;YACpD,IAAI,QAAQ,GAAG,OAAO,CAAA;YACtB,IAAI,MAAM,CAAC,eAAe;gBAAE,QAAQ,GAAG,MAAM,CAAA;YAC7C,MAAM,CAAC,GAAG,MAAM,IAAA,oBAAK,EACnB,QAAQ,GAAG,KAAK,GAAG,IAAI,GAAG,kBAAkB,GAAG,KAAK,EACpD;gBACE,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;oBACnB,KAAK;oBACL,EAAE;oBACF,MAAM;oBACN,IAAI;iBACL,CAAC;gBACF,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE;aAChD,CACF,CAAA;YACD,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;gBACT,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAA;aACjD;YACD,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,CAAA;YAC1B,OAAO,GAAG,CAAA;SACX;QAAC,OAAO,CAAC,EAAE;YACV,qBAAY,CAAC,KAAK,CAAC,qCAAqC,EAAE,CAAC,CAAC,CAAA;YAC5D,MAAM,CAAC,CAAA;SACR;IACH,CAAC;CAAA;AAlCD,sCAkCC"} \ No newline at end of file +{"version":3,"file":"people.js","sourceRoot":"","sources":["../../../src/utils/people.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAqC;AACrC,qCAA6C;AAC7C,2CAA8B;AAC9B,qCAAgD;AAEhD,MAAM,MAAM,GAAG,IAAA,mBAAU,GAAE,CAAA;AAE3B,SAAsB,kBAAkB,CACtC,EACE,IAAI,EACJ,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,GAAG,EACH,IAAI,EACJ,aAAa,EACb,MAAM,EACN,eAAe,GAChB,EACD,EAAW;;QAEX,IAAI;YACF,MAAM,KAAK,GAAG,MAAM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