podverse-mq 5.1.3-develop
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/LICENSE +661 -0
- package/README.md +37 -0
- package/dist/functions/queue/rss/add.d.ts +9 -0
- package/dist/functions/queue/rss/add.d.ts.map +1 -0
- package/dist/functions/queue/rss/add.js +26 -0
- package/dist/functions/queue/rss/addAll.d.ts +6 -0
- package/dist/functions/queue/rss/addAll.d.ts.map +1 -0
- package/dist/functions/queue/rss/addAll.js +31 -0
- package/dist/functions/queue/rss/addRecentlyUpdatedFeedsFromPodcastIndex.d.ts +9 -0
- package/dist/functions/queue/rss/addRecentlyUpdatedFeedsFromPodcastIndex.d.ts.map +1 -0
- package/dist/functions/queue/rss/addRecentlyUpdatedFeedsFromPodcastIndex.js +36 -0
- package/dist/functions/queue/rss/addTrendingPodcastsFromPodcastIndex.d.ts +9 -0
- package/dist/functions/queue/rss/addTrendingPodcastsFromPodcastIndex.d.ts.map +1 -0
- package/dist/functions/queue/rss/addTrendingPodcastsFromPodcastIndex.js +36 -0
- package/dist/functions/queue/rss/runParser.d.ts +3 -0
- package/dist/functions/queue/rss/runParser.d.ts.map +1 -0
- package/dist/functions/queue/rss/runParser.js +33 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +16 -0
- package/dist/module-alias-config.d.ts +2 -0
- package/dist/module-alias-config.d.ts.map +1 -0
- package/dist/module-alias-config.js +7 -0
- package/dist/services/activeMQArtemis/index.d.ts +44 -0
- package/dist/services/activeMQArtemis/index.d.ts.map +1 -0
- package/dist/services/activeMQArtemis/index.js +230 -0
- package/dist/services/activeMQArtemis/requestService.d.ts +11 -0
- package/dist/services/activeMQArtemis/requestService.d.ts.map +1 -0
- package/dist/services/activeMQArtemis/requestService.js +43 -0
- package/dist/types/mq.d.ts +5 -0
- package/dist/types/mq.d.ts.map +1 -0
- package/dist/types/mq.js +2 -0
- package/package.json +37 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ActiveMQArtemisRequestService = void 0;
|
|
13
|
+
const podverse_helpers_1 = require("podverse-helpers");
|
|
14
|
+
class ActiveMQArtemisRequestService {
|
|
15
|
+
constructor({ protocol, host, username, password, port }) {
|
|
16
|
+
this.protocol = protocol;
|
|
17
|
+
this.host = host;
|
|
18
|
+
this.username = username;
|
|
19
|
+
this.password = password;
|
|
20
|
+
this.port = port;
|
|
21
|
+
}
|
|
22
|
+
request(path) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
if (!this.username || !this.password) {
|
|
25
|
+
throw new Error('ActiveMQArtemis username and password are required');
|
|
26
|
+
}
|
|
27
|
+
const managementUri = `${this.protocol}://${this.host}:${this.port}/api${path}`;
|
|
28
|
+
const auth = {
|
|
29
|
+
username: this.username,
|
|
30
|
+
password: this.password
|
|
31
|
+
};
|
|
32
|
+
const response = yield (0, podverse_helpers_1.request)(managementUri, { auth });
|
|
33
|
+
const data = response.data;
|
|
34
|
+
if (typeof data === 'string') {
|
|
35
|
+
return JSON.parse(data);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
return data;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.ActiveMQArtemisRequestService = ActiveMQArtemisRequestService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mq.d.ts","sourceRoot":"","sources":["../../src/types/mq.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAA"}
|
package/dist/types/mq.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "podverse-mq",
|
|
3
|
+
"version": "5.1.3-develop",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist/**/*"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build:watch": "nodemon --watch 'src' --watch $(realpath node_modules/podverse-external-services) --watch $(realpath node_modules/podverse-helpers) --watch $(realpath node_modules/podverse-orm) --watch $(realpath node_modules/podverse-parser) --delay 500ms -x \"npm run build\"",
|
|
12
|
+
"build": "tsc",
|
|
13
|
+
"lint": "eslint ./src --ext .ts",
|
|
14
|
+
"start": "ts-node ./src/index.ts"
|
|
15
|
+
},
|
|
16
|
+
"author": "",
|
|
17
|
+
"license": "AGPLv3",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"module-alias": "^2.2.3",
|
|
20
|
+
"podverse-external-services": "^5.0.3",
|
|
21
|
+
"podverse-helpers": "^5.1.0",
|
|
22
|
+
"podverse-orm": "^5.0.5",
|
|
23
|
+
"podverse-parser": "^5.0.9",
|
|
24
|
+
"rhea": "^2.0.6"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@eslint/config-array": "^0.21.0",
|
|
28
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
29
|
+
"@eslint/js": "^9.35.0",
|
|
30
|
+
"@types/node": "^24.4.0",
|
|
31
|
+
"eslint": "^9.35.0",
|
|
32
|
+
"nodemon": "^3.1.10",
|
|
33
|
+
"ts-node": "^10.9.2",
|
|
34
|
+
"typescript": "^5.9.2",
|
|
35
|
+
"typescript-eslint": "^8.44.0"
|
|
36
|
+
}
|
|
37
|
+
}
|