podverse-orm 5.0.1 → 5.0.2
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.
|
@@ -15,7 +15,13 @@ export declare class FeedService {
|
|
|
15
15
|
private repository;
|
|
16
16
|
get(id: number): Promise<Feed | null>;
|
|
17
17
|
getAll(): Promise<Feed[]>;
|
|
18
|
-
|
|
18
|
+
getByUrlAndPodcastIndexId({ url, podcast_index_id }: {
|
|
19
|
+
url: string;
|
|
20
|
+
podcast_index_id: number;
|
|
21
|
+
}): Promise<Feed | null>;
|
|
22
|
+
getByPodcastIndexId({ podcast_index_id }: {
|
|
23
|
+
podcast_index_id: number;
|
|
24
|
+
}): Promise<Feed | null>;
|
|
19
25
|
getOrCreate({ url, podcast_index_id }: FeedCreateDto): Promise<Feed>;
|
|
20
26
|
create({ url, podcast_index_id }: FeedCreateDto): Promise<Feed>;
|
|
21
27
|
update(id: number, dto: FeedUpdateDto): Promise<Feed>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../src/services/feed/feed.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAQ/C,KAAK,aAAa,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,KAAK,aAAa,GAAG;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,qBAAqB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B,CAAA;AAED,qBAAa,WAAW;IACtB,OAAO,CAAC,UAAU,CAAqC;IAEjD,GAAG,CAAC,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CAAC,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IAyB/D,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;CAW5D"}
|
|
@@ -33,7 +33,7 @@ class FeedService {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
|
|
36
|
+
getByUrlAndPodcastIndexId(_a) {
|
|
37
37
|
return __awaiter(this, arguments, void 0, function* ({ url, podcast_index_id }) {
|
|
38
38
|
return this.repository.findOne({
|
|
39
39
|
where: {
|
|
@@ -45,6 +45,17 @@ class FeedService {
|
|
|
45
45
|
});
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
getByPodcastIndexId(_a) {
|
|
49
|
+
return __awaiter(this, arguments, void 0, function* ({ podcast_index_id }) {
|
|
50
|
+
return this.repository.findOne({
|
|
51
|
+
where: {
|
|
52
|
+
channel: {
|
|
53
|
+
podcast_index_id
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
48
59
|
getOrCreate(_a) {
|
|
49
60
|
return __awaiter(this, arguments, void 0, function* ({ url, podcast_index_id }) {
|
|
50
61
|
const feed = yield this.repository.findOne({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podverse-orm",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"dist/**/*"
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
|
-
"dev:watch": "nodemon --watch 'src' --watch $(realpath node_modules/podverse-
|
|
11
|
+
"dev:watch": "nodemon --watch 'src' --watch $(realpath node_modules/podverse-helpers) --delay 500ms -x \"npm run build\"",
|
|
12
12
|
"build": "tsc",
|
|
13
13
|
"lint": "eslint ./src --ext .ts",
|
|
14
14
|
"prepare": "npm run build",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"@eslint/js": "^9.8.0",
|
|
31
31
|
"@types/node": "^22.1.0",
|
|
32
32
|
"eslint": "^9.9.0",
|
|
33
|
+
"nodemon": "^3.1.4",
|
|
33
34
|
"ts-node": "^10.9.2",
|
|
34
35
|
"typescript": "^5.5.4",
|
|
35
36
|
"typescript-eslint": "^8.0.1"
|