n8n-nodes-redlib 0.1.1 → 1.0.0
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/README.md +101 -201
- package/dist/credentials/RedlibApi.credentials.d.ts +10 -0
- package/dist/credentials/RedlibApi.credentials.js +80 -0
- package/dist/credentials/RedlibApi.credentials.js.map +1 -0
- package/dist/icons/redlib.dark.svg +11 -0
- package/dist/icons/redlib.svg +11 -0
- package/dist/nodes/Redlib/Redlib.node.d.ts +5 -0
- package/dist/nodes/Redlib/Redlib.node.js +322 -0
- package/dist/nodes/Redlib/Redlib.node.js.map +1 -0
- package/dist/nodes/Redlib/Redlib.node.json +18 -0
- package/dist/nodes/Redlib/resources/post/get.d.ts +2 -0
- package/dist/nodes/Redlib/resources/post/get.js +31 -0
- package/dist/nodes/Redlib/resources/post/get.js.map +1 -0
- package/dist/nodes/Redlib/resources/post/getAll.d.ts +2 -0
- package/dist/nodes/Redlib/resources/post/getAll.js +60 -0
- package/dist/nodes/Redlib/resources/post/getAll.js.map +1 -0
- package/dist/nodes/Redlib/resources/post/index.d.ts +2 -0
- package/dist/nodes/Redlib/resources/post/index.js +67 -0
- package/dist/nodes/Redlib/resources/post/index.js.map +1 -0
- package/dist/nodes/Redlib/resources/post/search.d.ts +2 -0
- package/dist/nodes/Redlib/resources/post/search.js +113 -0
- package/dist/nodes/Redlib/resources/post/search.js.map +1 -0
- package/dist/nodes/Redlib/resources/postComment/get.d.ts +2 -0
- package/dist/nodes/Redlib/resources/postComment/get.js +44 -0
- package/dist/nodes/Redlib/resources/postComment/get.js.map +1 -0
- package/dist/nodes/Redlib/resources/postComment/getAll.d.ts +2 -0
- package/dist/nodes/Redlib/resources/postComment/getAll.js +44 -0
- package/dist/nodes/Redlib/resources/postComment/getAll.js.map +1 -0
- package/dist/nodes/Redlib/resources/postComment/index.d.ts +2 -0
- package/dist/nodes/Redlib/resources/postComment/index.js +67 -0
- package/dist/nodes/Redlib/resources/postComment/index.js.map +1 -0
- package/dist/nodes/Redlib/resources/postComment/search.d.ts +2 -0
- package/dist/nodes/Redlib/resources/postComment/search.js +44 -0
- package/dist/nodes/Redlib/resources/postComment/search.js.map +1 -0
- package/dist/nodes/Redlib/resources/subreddit/get.d.ts +2 -0
- package/dist/nodes/Redlib/resources/subreddit/get.js +19 -0
- package/dist/nodes/Redlib/resources/subreddit/get.js.map +1 -0
- package/dist/nodes/Redlib/resources/subreddit/getAll.d.ts +2 -0
- package/dist/nodes/Redlib/resources/subreddit/getAll.js +29 -0
- package/dist/nodes/Redlib/resources/subreddit/getAll.js.map +1 -0
- package/dist/nodes/Redlib/resources/subreddit/index.d.ts +2 -0
- package/dist/nodes/Redlib/resources/subreddit/index.js +67 -0
- package/dist/nodes/Redlib/resources/subreddit/index.js.map +1 -0
- package/dist/nodes/Redlib/resources/subreddit/search.d.ts +2 -0
- package/dist/nodes/Redlib/resources/subreddit/search.js +32 -0
- package/dist/nodes/Redlib/resources/subreddit/search.js.map +1 -0
- package/dist/nodes/Redlib/shared/utils.d.ts +85 -0
- package/dist/nodes/Redlib/shared/utils.js +313 -0
- package/dist/nodes/Redlib/shared/utils.js.map +1 -0
- package/dist/package.json +8 -7
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -7
- package/dist/credentials/GithubIssuesApi.credentials.d.ts +0 -10
- package/dist/credentials/GithubIssuesApi.credentials.js +0 -37
- package/dist/credentials/GithubIssuesApi.credentials.js.map +0 -1
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.d.ts +0 -9
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js +0 -54
- package/dist/credentials/GithubIssuesOAuth2Api.credentials.js.map +0 -1
- package/dist/icons/github.dark.svg +0 -3
- package/dist/icons/github.svg +0 -3
- package/dist/nodes/Example/Example.node.d.ts +0 -5
- package/dist/nodes/Example/Example.node.js +0 -61
- package/dist/nodes/Example/Example.node.js.map +0 -1
- package/dist/nodes/Example/Example.node.json +0 -18
- package/dist/nodes/Example/example.dark.svg +0 -13
- package/dist/nodes/Example/example.svg +0 -13
- package/dist/nodes/GithubIssues/GithubIssues.node.d.ts +0 -14
- package/dist/nodes/GithubIssues/GithubIssues.node.js +0 -101
- package/dist/nodes/GithubIssues/GithubIssues.node.js.map +0 -1
- package/dist/nodes/GithubIssues/GithubIssues.node.json +0 -18
- package/dist/nodes/GithubIssues/listSearch/getIssues.d.ts +0 -2
- package/dist/nodes/GithubIssues/listSearch/getIssues.js +0 -28
- package/dist/nodes/GithubIssues/listSearch/getIssues.js.map +0 -1
- package/dist/nodes/GithubIssues/listSearch/getRepositories.d.ts +0 -2
- package/dist/nodes/GithubIssues/listSearch/getRepositories.js +0 -31
- package/dist/nodes/GithubIssues/listSearch/getRepositories.js.map +0 -1
- package/dist/nodes/GithubIssues/listSearch/getUsers.d.ts +0 -2
- package/dist/nodes/GithubIssues/listSearch/getUsers.js +0 -29
- package/dist/nodes/GithubIssues/listSearch/getUsers.js.map +0 -1
- package/dist/nodes/GithubIssues/resources/issue/create.d.ts +0 -2
- package/dist/nodes/GithubIssues/resources/issue/create.js +0 -75
- package/dist/nodes/GithubIssues/resources/issue/create.js.map +0 -1
- package/dist/nodes/GithubIssues/resources/issue/get.d.ts +0 -2
- package/dist/nodes/GithubIssues/resources/issue/get.js +0 -15
- package/dist/nodes/GithubIssues/resources/issue/get.js.map +0 -1
- package/dist/nodes/GithubIssues/resources/issue/getAll.d.ts +0 -2
- package/dist/nodes/GithubIssues/resources/issue/getAll.js +0 -125
- package/dist/nodes/GithubIssues/resources/issue/getAll.js.map +0 -1
- package/dist/nodes/GithubIssues/resources/issue/index.d.ts +0 -2
- package/dist/nodes/GithubIssues/resources/issue/index.js +0 -76
- package/dist/nodes/GithubIssues/resources/issue/index.js.map +0 -1
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.d.ts +0 -2
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.js +0 -66
- package/dist/nodes/GithubIssues/resources/issueComment/getAll.js.map +0 -1
- package/dist/nodes/GithubIssues/resources/issueComment/index.d.ts +0 -2
- package/dist/nodes/GithubIssues/resources/issueComment/index.js +0 -48
- package/dist/nodes/GithubIssues/resources/issueComment/index.js.map +0 -1
- package/dist/nodes/GithubIssues/shared/descriptions.d.ts +0 -4
- package/dist/nodes/GithubIssues/shared/descriptions.js +0 -151
- package/dist/nodes/GithubIssues/shared/descriptions.js.map +0 -1
- package/dist/nodes/GithubIssues/shared/transport.d.ts +0 -2
- package/dist/nodes/GithubIssues/shared/transport.js +0 -16
- package/dist/nodes/GithubIssues/shared/transport.js.map +0 -1
- package/dist/nodes/GithubIssues/shared/utils.d.ts +0 -3
- package/dist/nodes/GithubIssues/shared/utils.js +0 -17
- package/dist/nodes/GithubIssues/shared/utils.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/post/search.ts"],"names":[],"mappings":";;;AAEA,MAAM,qBAAqB,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;AAE/D,QAAA,qBAAqB,GAAsB;IACvD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,qBAAqB;SAC1B;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,qDAAqD;KAClE;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,qBAAqB;SAC1B;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,gBAAgB;QAC7B,WAAW,EAAE,2BAA2B;KACxC;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACb,QAAQ,EAAE,CAAC;SACV;QACD,cAAc,EAAE;YAChB,IAAI,EAAE,qBAAqB;SAC1B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YAChB,IAAI,EAAE,qBAAqB;SAC1B;QACD,OAAO,EAAE;YACT;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;aACjB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACZ;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACZ;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;aAClB;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACZ;SACA;QACD,OAAO,EAAE,WAAW;KACpB;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YAChB,IAAI,EAAE;gBACL,GAAG,qBAAqB;gBACxB,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC;aAC5B;SACA;QACD,OAAO,EAAE;YACT;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,KAAK;aACZ;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACZ;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;YACD;gBACC,IAAI,EAAE,OAAO;gBACb,KAAK,EAAE,OAAO;aACd;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;YACD;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;aACb;SACA;QACD,OAAO,EAAE,KAAK;KACd;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postCommentGetDescription = void 0;
|
|
4
|
+
const showOnlyForPostCommentGet = { operation: ['get'], resource: ['postComment'] };
|
|
5
|
+
exports.postCommentGetDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Subreddit',
|
|
8
|
+
name: 'subreddit',
|
|
9
|
+
type: 'string',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: showOnlyForPostCommentGet,
|
|
12
|
+
},
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: 'SaaS',
|
|
16
|
+
description: 'The subreddit containing the post',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Post ID',
|
|
20
|
+
name: 'postId',
|
|
21
|
+
type: 'string',
|
|
22
|
+
displayOptions: {
|
|
23
|
+
show: showOnlyForPostCommentGet,
|
|
24
|
+
},
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
placeholder: '1pudg98',
|
|
28
|
+
description: 'The Reddit post ID',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Limit',
|
|
32
|
+
name: 'limit',
|
|
33
|
+
type: 'number',
|
|
34
|
+
typeOptions: {
|
|
35
|
+
minValue: 1,
|
|
36
|
+
},
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: showOnlyForPostCommentGet,
|
|
39
|
+
},
|
|
40
|
+
default: 50,
|
|
41
|
+
description: 'Max number of results to return',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/postComment/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,yBAAyB,GAAG,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AAEvE,QAAA,yBAAyB,GAAsB;IAC3D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,yBAAyB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,mCAAmC;KAChD;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,yBAAyB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,SAAS;QACtB,WAAW,EAAE,oBAAoB;KACjC;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YAChB,IAAI,EAAE,yBAAyB;SAC9B;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postCommentGetManyDescription = void 0;
|
|
4
|
+
const showOnlyForPostCommentGetAll = { operation: ['getAll'], resource: ['postComment'] };
|
|
5
|
+
exports.postCommentGetManyDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Subreddit',
|
|
8
|
+
name: 'subreddit',
|
|
9
|
+
type: 'string',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: showOnlyForPostCommentGetAll,
|
|
12
|
+
},
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: 'SaaS',
|
|
16
|
+
description: 'The subreddit containing the posts',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Post IDs',
|
|
20
|
+
name: 'postIds',
|
|
21
|
+
type: 'string',
|
|
22
|
+
displayOptions: {
|
|
23
|
+
show: showOnlyForPostCommentGetAll,
|
|
24
|
+
},
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
placeholder: '1pudg98, 1puf3qa, 1pu8mi9',
|
|
28
|
+
description: 'Comma-separated list of Reddit post IDs',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Limit per Post',
|
|
32
|
+
name: 'limit',
|
|
33
|
+
type: 'number',
|
|
34
|
+
typeOptions: {
|
|
35
|
+
minValue: 1,
|
|
36
|
+
},
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: showOnlyForPostCommentGetAll,
|
|
39
|
+
},
|
|
40
|
+
default: 50,
|
|
41
|
+
description: 'Max number of results to return',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/postComment/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AAE7E,QAAA,6BAA6B,GAAsB;IAC/D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,4BAA4B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,oCAAoC;KACjD;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,4BAA4B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,2BAA2B;QACxC,WAAW,EAAE,yCAAyC;KACtD;IACD;QACC,WAAW,EAAE,gBAAgB;QAC7B,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YAChB,IAAI,EAAE,4BAA4B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postCommentDescription = void 0;
|
|
4
|
+
const search_1 = require("./search");
|
|
5
|
+
const get_1 = require("./get");
|
|
6
|
+
const getAll_1 = require("./getAll");
|
|
7
|
+
const showOnlyForPostComment = { resource: ['postComment'] };
|
|
8
|
+
exports.postCommentDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Resource',
|
|
11
|
+
name: 'resource',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Post',
|
|
17
|
+
value: 'post',
|
|
18
|
+
description: 'Reddit posts',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Post Comment',
|
|
22
|
+
value: 'postComment',
|
|
23
|
+
description: 'Comments on posts',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Subreddit',
|
|
27
|
+
value: 'subreddit',
|
|
28
|
+
description: 'Subreddit information',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
default: 'post',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Operation',
|
|
35
|
+
name: 'operation',
|
|
36
|
+
type: 'options',
|
|
37
|
+
noDataExpression: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: showOnlyForPostComment,
|
|
40
|
+
},
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Search',
|
|
44
|
+
value: 'search',
|
|
45
|
+
description: 'Search for comments',
|
|
46
|
+
action: 'Search for comments',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Get',
|
|
50
|
+
value: 'get',
|
|
51
|
+
description: 'Get comments from a post',
|
|
52
|
+
action: 'Get comments from a post',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Get Many',
|
|
56
|
+
value: 'getAll',
|
|
57
|
+
description: 'Get multiple comments',
|
|
58
|
+
action: 'Get multiple comments',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
default: 'get',
|
|
62
|
+
},
|
|
63
|
+
...search_1.postCommentSearchDescription,
|
|
64
|
+
...get_1.postCommentGetDescription,
|
|
65
|
+
...getAll_1.postCommentGetManyDescription,
|
|
66
|
+
];
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/postComment/index.ts"],"names":[],"mappings":";;;AACA,qCAAwD;AACxD,+BAAkD;AAClD,qCAAyD;AAEzD,MAAM,sBAAsB,GAAG,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AAEhD,QAAA,sBAAsB,GAAsB;IACxD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACT;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,cAAc;aAC3B;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,mBAAmB;aAChC;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,uBAAuB;aACpC;SACA;QACD,OAAO,EAAE,MAAM;KACf;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YAChB,IAAI,EAAE,sBAAsB;SAC3B;QACD,OAAO,EAAE;YACT;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qBAAqB;gBAClC,MAAM,EAAE,qBAAqB;aAC7B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,0BAA0B;gBACvC,MAAM,EAAE,0BAA0B;aAClC;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,uBAAuB;aAC/B;SACA;QACD,OAAO,EAAE,KAAK;KACd;IACD,GAAG,qCAA4B;IAC/B,GAAG,+BAAyB;IAC5B,GAAG,sCAA6B;CAChC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.postCommentSearchDescription = void 0;
|
|
4
|
+
const showOnlyForPostCommentSearch = { operation: ['search'], resource: ['postComment'] };
|
|
5
|
+
exports.postCommentSearchDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Subreddit',
|
|
8
|
+
name: 'subreddit',
|
|
9
|
+
type: 'string',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: showOnlyForPostCommentSearch,
|
|
12
|
+
},
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: 'SaaS',
|
|
16
|
+
description: 'The subreddit to search in',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Keyword',
|
|
20
|
+
name: 'keyword',
|
|
21
|
+
type: 'string',
|
|
22
|
+
displayOptions: {
|
|
23
|
+
show: showOnlyForPostCommentSearch,
|
|
24
|
+
},
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
placeholder: 'marketing',
|
|
28
|
+
description: 'The keyword to search for in comments',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
displayName: 'Limit',
|
|
32
|
+
name: 'limit',
|
|
33
|
+
type: 'number',
|
|
34
|
+
typeOptions: {
|
|
35
|
+
minValue: 1,
|
|
36
|
+
},
|
|
37
|
+
displayOptions: {
|
|
38
|
+
show: showOnlyForPostCommentSearch,
|
|
39
|
+
},
|
|
40
|
+
default: 50,
|
|
41
|
+
description: 'Max number of results to return',
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/postComment/search.ts"],"names":[],"mappings":";;;AAEA,MAAM,4BAA4B,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,aAAa,CAAC,EAAE,CAAC;AAE7E,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,4BAA4B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,4BAA4B;KACzC;IACD;QACC,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,4BAA4B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,WAAW;QACxB,WAAW,EAAE,uCAAuC;KACpD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YAChB,IAAI,EAAE,4BAA4B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subredditGetDescription = void 0;
|
|
4
|
+
const showOnlyForSubredditGet = { operation: ['get'], resource: ['subreddit'] };
|
|
5
|
+
exports.subredditGetDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Subreddit',
|
|
8
|
+
name: 'subreddit',
|
|
9
|
+
type: 'string',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: showOnlyForSubredditGet,
|
|
12
|
+
},
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: 'SaaS',
|
|
16
|
+
description: 'The subreddit name (without r/)',
|
|
17
|
+
},
|
|
18
|
+
];
|
|
19
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/subreddit/get.ts"],"names":[],"mappings":";;;AAEA,MAAM,uBAAuB,GAAG,EAAE,SAAS,EAAE,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAEnE,QAAA,uBAAuB,GAAsB;IACzD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YAChB,IAAI,EAAE,uBAAuB;SAC5B;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,MAAM;QACnB,WAAW,EAAE,iCAAiC;KAC9C;CACD,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subredditGetManyDescription = void 0;
|
|
4
|
+
const showOnlyForSubredditGetAll = { operation: ['getAll'], resource: ['subreddit'] };
|
|
5
|
+
exports.subredditGetManyDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Subreddits',
|
|
8
|
+
name: 'subreddits',
|
|
9
|
+
type: 'string',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: showOnlyForSubredditGetAll,
|
|
12
|
+
},
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: 'SaaS, technology, startups',
|
|
16
|
+
description: 'Comma-separated list of subreddit names (without r/)',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Trending Only',
|
|
20
|
+
name: 'trending',
|
|
21
|
+
type: 'boolean',
|
|
22
|
+
displayOptions: {
|
|
23
|
+
show: showOnlyForSubredditGetAll,
|
|
24
|
+
},
|
|
25
|
+
default: false,
|
|
26
|
+
description: 'Whether filter to only trending subreddits',
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
//# sourceMappingURL=getAll.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getAll.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/subreddit/getAll.ts"],"names":[],"mappings":";;;AAEA,MAAM,0BAA0B,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAEzE,QAAA,2BAA2B,GAAsB;IAC5D;QACE,WAAW,EAAE,YAAY;QACzB,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACd,IAAI,EAAE,0BAA0B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,4BAA4B;QACzC,WAAW,EAAE,sDAAsD;KACpE;IACD;QACE,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,cAAc,EAAE;YACd,IAAI,EAAE,0BAA0B;SACjC;QACD,OAAO,EAAE,KAAK;QACd,WAAW,EAAE,4CAA4C;KAC1D;CACF,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subredditDescription = void 0;
|
|
4
|
+
const search_1 = require("./search");
|
|
5
|
+
const get_1 = require("./get");
|
|
6
|
+
const getAll_1 = require("./getAll");
|
|
7
|
+
const showOnlyForSubreddit = { resource: ['subreddit'] };
|
|
8
|
+
exports.subredditDescription = [
|
|
9
|
+
{
|
|
10
|
+
displayName: 'Resource',
|
|
11
|
+
name: 'resource',
|
|
12
|
+
type: 'options',
|
|
13
|
+
noDataExpression: true,
|
|
14
|
+
options: [
|
|
15
|
+
{
|
|
16
|
+
name: 'Post',
|
|
17
|
+
value: 'post',
|
|
18
|
+
description: 'Reddit posts',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
name: 'Post Comment',
|
|
22
|
+
value: 'postComment',
|
|
23
|
+
description: 'Comments on posts',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'Subreddit',
|
|
27
|
+
value: 'subreddit',
|
|
28
|
+
description: 'Subreddit information',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
default: 'post',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
displayName: 'Operation',
|
|
35
|
+
name: 'operation',
|
|
36
|
+
type: 'options',
|
|
37
|
+
noDataExpression: true,
|
|
38
|
+
displayOptions: {
|
|
39
|
+
show: showOnlyForSubreddit,
|
|
40
|
+
},
|
|
41
|
+
options: [
|
|
42
|
+
{
|
|
43
|
+
name: 'Search',
|
|
44
|
+
value: 'search',
|
|
45
|
+
description: 'Search for subreddits',
|
|
46
|
+
action: 'Search for subreddits',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'Get',
|
|
50
|
+
value: 'get',
|
|
51
|
+
description: 'Get subreddit info',
|
|
52
|
+
action: 'Get subreddit info',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'Get Many',
|
|
56
|
+
value: 'getAll',
|
|
57
|
+
description: 'Get multiple subreddits',
|
|
58
|
+
action: 'Get multiple subreddits',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
default: 'get',
|
|
62
|
+
},
|
|
63
|
+
...search_1.subredditSearchDescription,
|
|
64
|
+
...get_1.subredditGetDescription,
|
|
65
|
+
...getAll_1.subredditGetManyDescription,
|
|
66
|
+
];
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/subreddit/index.ts"],"names":[],"mappings":";;;AACA,qCAAsD;AACtD,+BAAgD;AAChD,qCAAuD;AAEvD,MAAM,oBAAoB,GAAG,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAE5C,QAAA,oBAAoB,GAAsB;IACtD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,UAAU;QAChB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,OAAO,EAAE;YACT;gBACC,IAAI,EAAE,MAAM;gBACZ,KAAK,EAAE,MAAM;gBACb,WAAW,EAAE,cAAc;aAC3B;YACD;gBACC,IAAI,EAAE,cAAc;gBACpB,KAAK,EAAE,aAAa;gBACpB,WAAW,EAAE,mBAAmB;aAChC;YACD;gBACC,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,uBAAuB;aACpC;SACA;QACD,OAAO,EAAE,MAAM;KACf;IACD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YAChB,IAAI,EAAE,oBAAoB;SACzB;QACD,OAAO,EAAE;YACT;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,uBAAuB;gBACpC,MAAM,EAAE,uBAAuB;aAC/B;YACD;gBACC,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,oBAAoB;gBACjC,MAAM,EAAE,oBAAoB;aAC5B;YACD;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,yBAAyB;gBACtC,MAAM,EAAE,yBAAyB;aACjC;SACA;QACD,OAAO,EAAE,KAAK;KACd;IACD,GAAG,mCAA0B;IAC7B,GAAG,6BAAuB;IAC1B,GAAG,oCAA2B;CAC9B,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.subredditSearchDescription = void 0;
|
|
4
|
+
const showOnlyForSubredditSearch = { operation: ['search'], resource: ['subreddit'] };
|
|
5
|
+
exports.subredditSearchDescription = [
|
|
6
|
+
{
|
|
7
|
+
displayName: 'Keyword',
|
|
8
|
+
name: 'keyword',
|
|
9
|
+
type: 'string',
|
|
10
|
+
displayOptions: {
|
|
11
|
+
show: showOnlyForSubredditSearch,
|
|
12
|
+
},
|
|
13
|
+
default: '',
|
|
14
|
+
required: true,
|
|
15
|
+
placeholder: 'technology',
|
|
16
|
+
description: 'The keyword to search for',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
displayName: 'Limit',
|
|
20
|
+
name: 'limit',
|
|
21
|
+
type: 'number',
|
|
22
|
+
typeOptions: {
|
|
23
|
+
minValue: 1,
|
|
24
|
+
},
|
|
25
|
+
displayOptions: {
|
|
26
|
+
show: showOnlyForSubredditSearch,
|
|
27
|
+
},
|
|
28
|
+
default: 50,
|
|
29
|
+
description: 'Max number of results to return',
|
|
30
|
+
},
|
|
31
|
+
];
|
|
32
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../../../nodes/Redlib/resources/subreddit/search.ts"],"names":[],"mappings":";;;AAEA,MAAM,0BAA0B,GAAG,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,CAAC,WAAW,CAAC,EAAE,CAAC;AAEzE,QAAA,0BAA0B,GAAsB;IAC3D;QACE,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,cAAc,EAAE;YACd,IAAI,EAAE,0BAA0B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,YAAY;QACzB,WAAW,EAAE,2BAA2B;KACzC;IACD;QACE,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;QACD,cAAc,EAAE;YACd,IAAI,EAAE,0BAA0B;SACjC;QACD,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,iCAAiC;KAC/C;CACF,CAAC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { IDataObject } from 'n8n-workflow';
|
|
2
|
+
export declare class HTMLParser {
|
|
3
|
+
private html;
|
|
4
|
+
constructor(html: string);
|
|
5
|
+
findAll(selector: string): HTMLElement[];
|
|
6
|
+
findFirst(selector: string): HTMLElement | null;
|
|
7
|
+
}
|
|
8
|
+
declare class HTMLElement {
|
|
9
|
+
private element;
|
|
10
|
+
private fullHtml;
|
|
11
|
+
constructor(element: string, fullHtml: string);
|
|
12
|
+
attr(name: string): string | null;
|
|
13
|
+
text(): string;
|
|
14
|
+
html(): string;
|
|
15
|
+
find(selector: string): HTMLElement[];
|
|
16
|
+
findFirst(selector: string): HTMLElement | null;
|
|
17
|
+
each(callback: (index: number, element: HTMLElement) => void | boolean): void;
|
|
18
|
+
}
|
|
19
|
+
export interface RedditPost {
|
|
20
|
+
kind: string;
|
|
21
|
+
data: {
|
|
22
|
+
id: string;
|
|
23
|
+
title: string;
|
|
24
|
+
author: string;
|
|
25
|
+
subreddit: string;
|
|
26
|
+
selftext: string;
|
|
27
|
+
score: number;
|
|
28
|
+
num_comments: number;
|
|
29
|
+
created_utc: number;
|
|
30
|
+
permalink: string;
|
|
31
|
+
url: string;
|
|
32
|
+
link_flair_text?: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export interface RedditComment {
|
|
36
|
+
kind: string;
|
|
37
|
+
data: {
|
|
38
|
+
id: string;
|
|
39
|
+
author: string;
|
|
40
|
+
body: string;
|
|
41
|
+
score: number;
|
|
42
|
+
created_utc: number;
|
|
43
|
+
depth?: number;
|
|
44
|
+
replies?: RedditCommentListing;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
export interface RedditCommentListing {
|
|
48
|
+
kind: string;
|
|
49
|
+
data: {
|
|
50
|
+
children: RedditComment[];
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export interface RedditListing {
|
|
54
|
+
kind: string;
|
|
55
|
+
data: {
|
|
56
|
+
children: Array<{
|
|
57
|
+
kind: string;
|
|
58
|
+
data: IDataObject;
|
|
59
|
+
}>;
|
|
60
|
+
after?: string;
|
|
61
|
+
before?: string;
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export interface RedditSubreddit {
|
|
65
|
+
kind: string;
|
|
66
|
+
data: {
|
|
67
|
+
display_name: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
subscribers: number;
|
|
71
|
+
active_users: number;
|
|
72
|
+
over18: boolean;
|
|
73
|
+
public_description: string;
|
|
74
|
+
subreddit_type: string;
|
|
75
|
+
subscribers_known: number;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
export declare function parseTimestamp(timestamp: string): number;
|
|
79
|
+
export declare function parseScore(scoreText: string): number;
|
|
80
|
+
export declare function parseComments(commentsText: string): number;
|
|
81
|
+
export declare function parseSubscribers(subscribersText: string): number;
|
|
82
|
+
export declare function parsePostElement($: HTMLParser, element: HTMLElement): IDataObject;
|
|
83
|
+
export declare function parseCommentElement($: HTMLParser, element: HTMLElement, depth?: number): IDataObject;
|
|
84
|
+
export declare function parseSubredditInfo($: HTMLParser): IDataObject;
|
|
85
|
+
export {};
|