n8n-nodes-substack 0.7.0 → 0.7.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.
- package/dist/nodes/Substack/Comment.fields.js.map +1 -0
- package/dist/nodes/{Comment.operations.d.ts → Substack/Comment.operations.d.ts} +1 -1
- package/dist/nodes/{Comment.operations.js → Substack/Comment.operations.js} +1 -1
- package/dist/nodes/Substack/Comment.operations.js.map +1 -0
- package/dist/nodes/{Note.fields.js → Substack/Note.fields.js} +0 -14
- package/dist/nodes/Substack/Note.fields.js.map +1 -0
- package/dist/nodes/{Note.operations.d.ts → Substack/Note.operations.d.ts} +1 -2
- package/dist/nodes/{Note.operations.js → Substack/Note.operations.js} +13 -51
- package/dist/nodes/Substack/Note.operations.js.map +1 -0
- package/dist/nodes/Substack/Post.fields.js.map +1 -0
- package/dist/nodes/{Post.operations.d.ts → Substack/Post.operations.d.ts} +1 -1
- package/dist/nodes/{Post.operations.js → Substack/Post.operations.js} +17 -5
- package/dist/nodes/Substack/Post.operations.js.map +1 -0
- package/dist/nodes/Substack/Profile.fields.js.map +1 -0
- package/dist/nodes/{Profile.operations.d.ts → Substack/Profile.operations.d.ts} +1 -1
- package/dist/nodes/{Profile.operations.js → Substack/Profile.operations.js} +1 -1
- package/dist/nodes/Substack/Profile.operations.js.map +1 -0
- package/dist/nodes/Substack/Substack.node.d.ts +1 -2
- package/dist/nodes/Substack/Substack.node.js +8 -18
- package/dist/nodes/Substack/Substack.node.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/dist/nodes/Comment.fields.js.map +0 -1
- package/dist/nodes/Comment.operations.js.map +0 -1
- package/dist/nodes/Follow.fields.d.ts +0 -2
- package/dist/nodes/Follow.fields.js +0 -50
- package/dist/nodes/Follow.fields.js.map +0 -1
- package/dist/nodes/Follow.operations.d.ts +0 -8
- package/dist/nodes/Follow.operations.js +0 -83
- package/dist/nodes/Follow.operations.js.map +0 -1
- package/dist/nodes/Note.fields.js.map +0 -1
- package/dist/nodes/Note.operations.js.map +0 -1
- package/dist/nodes/Post.fields.js.map +0 -1
- package/dist/nodes/Post.operations.js.map +0 -1
- package/dist/nodes/Profile.fields.js.map +0 -1
- package/dist/nodes/Profile.operations.js.map +0 -1
- package/dist/nodes/Substack/CommentOperations.d.ts +0 -6
- package/dist/nodes/Substack/CommentOperations.js +0 -53
- package/dist/nodes/Substack/CommentOperations.js.map +0 -1
- package/dist/nodes/Substack/FollowOperations.d.ts +0 -6
- package/dist/nodes/Substack/FollowOperations.js +0 -57
- package/dist/nodes/Substack/FollowOperations.js.map +0 -1
- package/dist/nodes/Substack/NoteOperations.d.ts +0 -7
- package/dist/nodes/Substack/NoteOperations.js +0 -90
- package/dist/nodes/Substack/NoteOperations.js.map +0 -1
- package/dist/nodes/Substack/PostOperations.d.ts +0 -6
- package/dist/nodes/Substack/PostOperations.js +0 -56
- package/dist/nodes/Substack/PostOperations.js.map +0 -1
- package/dist/nodes/Substack/SubstackDescription.d.ts +0 -9
- package/dist/nodes/Substack/SubstackDescription.js +0 -242
- package/dist/nodes/Substack/SubstackDescription.js.map +0 -1
- /package/dist/nodes/{Comment.fields.d.ts → Substack/Comment.fields.d.ts} +0 -0
- /package/dist/nodes/{Comment.fields.js → Substack/Comment.fields.js} +0 -0
- /package/dist/nodes/{Note.fields.d.ts → Substack/Note.fields.d.ts} +0 -0
- /package/dist/nodes/{Post.fields.d.ts → Substack/Post.fields.d.ts} +0 -0
- /package/dist/nodes/{Post.fields.js → Substack/Post.fields.js} +0 -0
- /package/dist/nodes/{Profile.fields.d.ts → Substack/Profile.fields.d.ts} +0 -0
- /package/dist/nodes/{Profile.fields.js → Substack/Profile.fields.js} +0 -0
- /package/dist/nodes/{Substack.node.json → Substack/Substack.node.json} +0 -0
|
@@ -1,242 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.followFields = exports.followOperations = exports.noteFields = exports.commentFields = exports.postFields = exports.noteOperations = exports.commentOperations = exports.postOperations = void 0;
|
|
4
|
-
exports.postOperations = [
|
|
5
|
-
{
|
|
6
|
-
displayName: 'Operation',
|
|
7
|
-
name: 'operation',
|
|
8
|
-
type: 'options',
|
|
9
|
-
noDataExpression: true,
|
|
10
|
-
displayOptions: {
|
|
11
|
-
show: {
|
|
12
|
-
resource: ['post'],
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
options: [
|
|
16
|
-
{
|
|
17
|
-
name: 'Get Many',
|
|
18
|
-
value: 'getAll',
|
|
19
|
-
description: 'Get many posts from the publication',
|
|
20
|
-
action: 'Get many posts',
|
|
21
|
-
},
|
|
22
|
-
],
|
|
23
|
-
default: 'getAll',
|
|
24
|
-
},
|
|
25
|
-
];
|
|
26
|
-
exports.commentOperations = [
|
|
27
|
-
{
|
|
28
|
-
displayName: 'Operation',
|
|
29
|
-
name: 'operation',
|
|
30
|
-
type: 'options',
|
|
31
|
-
noDataExpression: true,
|
|
32
|
-
displayOptions: {
|
|
33
|
-
show: {
|
|
34
|
-
resource: ['comment'],
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
options: [
|
|
38
|
-
{
|
|
39
|
-
name: 'Get Many',
|
|
40
|
-
value: 'getAll',
|
|
41
|
-
description: 'Get comments for a specific post',
|
|
42
|
-
action: 'Get many comments',
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
default: 'getAll',
|
|
46
|
-
},
|
|
47
|
-
];
|
|
48
|
-
exports.noteOperations = [
|
|
49
|
-
{
|
|
50
|
-
displayName: 'Operation',
|
|
51
|
-
name: 'operation',
|
|
52
|
-
type: 'options',
|
|
53
|
-
noDataExpression: true,
|
|
54
|
-
displayOptions: {
|
|
55
|
-
show: {
|
|
56
|
-
resource: ['note'],
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
options: [
|
|
60
|
-
{
|
|
61
|
-
name: 'Create',
|
|
62
|
-
value: 'create',
|
|
63
|
-
description: 'Create a new Substack note',
|
|
64
|
-
action: 'Create a note',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: 'Get',
|
|
68
|
-
value: 'get',
|
|
69
|
-
description: 'Retrieve notes from the publication',
|
|
70
|
-
action: 'Get notes',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
default: 'create',
|
|
74
|
-
},
|
|
75
|
-
];
|
|
76
|
-
const getAllOperation = [
|
|
77
|
-
{
|
|
78
|
-
displayName: 'Limit',
|
|
79
|
-
name: 'limit',
|
|
80
|
-
type: 'number',
|
|
81
|
-
default: '',
|
|
82
|
-
description: 'Max number of results to return. Defaults to 100 if not specified.',
|
|
83
|
-
displayOptions: {
|
|
84
|
-
show: {
|
|
85
|
-
resource: ['post'],
|
|
86
|
-
operation: ['getAll'],
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
typeOptions: {
|
|
90
|
-
minValue: 1,
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
];
|
|
94
|
-
exports.postFields = [
|
|
95
|
-
...getAllOperation,
|
|
96
|
-
];
|
|
97
|
-
const getCommentsOperation = [
|
|
98
|
-
{
|
|
99
|
-
displayName: 'Post ID',
|
|
100
|
-
name: 'postId',
|
|
101
|
-
type: 'number',
|
|
102
|
-
default: '',
|
|
103
|
-
description: 'The ID of the post to get comments for',
|
|
104
|
-
displayOptions: {
|
|
105
|
-
show: {
|
|
106
|
-
resource: ['comment'],
|
|
107
|
-
operation: ['getAll'],
|
|
108
|
-
},
|
|
109
|
-
},
|
|
110
|
-
required: true,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
displayName: 'Limit',
|
|
114
|
-
name: 'limit',
|
|
115
|
-
type: 'number',
|
|
116
|
-
default: '',
|
|
117
|
-
description: 'Max number of results to return. Defaults to 100 if not specified.',
|
|
118
|
-
displayOptions: {
|
|
119
|
-
show: {
|
|
120
|
-
resource: ['comment'],
|
|
121
|
-
operation: ['getAll'],
|
|
122
|
-
},
|
|
123
|
-
},
|
|
124
|
-
typeOptions: {
|
|
125
|
-
minValue: 1,
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
];
|
|
129
|
-
exports.commentFields = [
|
|
130
|
-
...getCommentsOperation,
|
|
131
|
-
];
|
|
132
|
-
const createOperation = [
|
|
133
|
-
{
|
|
134
|
-
displayName: 'Body',
|
|
135
|
-
name: 'body',
|
|
136
|
-
type: 'string',
|
|
137
|
-
typeOptions: {
|
|
138
|
-
rows: 5,
|
|
139
|
-
},
|
|
140
|
-
default: '',
|
|
141
|
-
placeholder: 'Note content...',
|
|
142
|
-
description: 'The content of the note (plain text or HTML)',
|
|
143
|
-
displayOptions: {
|
|
144
|
-
show: {
|
|
145
|
-
resource: ['note'],
|
|
146
|
-
operation: ['create'],
|
|
147
|
-
},
|
|
148
|
-
},
|
|
149
|
-
required: true,
|
|
150
|
-
},
|
|
151
|
-
];
|
|
152
|
-
const getOperation = [
|
|
153
|
-
{
|
|
154
|
-
displayName: 'Limit',
|
|
155
|
-
name: 'limit',
|
|
156
|
-
type: 'number',
|
|
157
|
-
default: '',
|
|
158
|
-
description: 'Max number of results to return. Defaults to 100 if not specified.',
|
|
159
|
-
displayOptions: {
|
|
160
|
-
show: {
|
|
161
|
-
resource: ['note'],
|
|
162
|
-
operation: ['get'],
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
typeOptions: {
|
|
166
|
-
minValue: 1,
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
];
|
|
170
|
-
exports.noteFields = [
|
|
171
|
-
...createOperation,
|
|
172
|
-
...getOperation,
|
|
173
|
-
];
|
|
174
|
-
exports.followOperations = [
|
|
175
|
-
{
|
|
176
|
-
displayName: 'Operation',
|
|
177
|
-
name: 'operation',
|
|
178
|
-
type: 'options',
|
|
179
|
-
noDataExpression: true,
|
|
180
|
-
displayOptions: {
|
|
181
|
-
show: {
|
|
182
|
-
resource: ['follow'],
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
options: [
|
|
186
|
-
{
|
|
187
|
-
name: 'Get Following',
|
|
188
|
-
value: 'getFollowing',
|
|
189
|
-
description: 'Get users that you follow',
|
|
190
|
-
action: 'Get following',
|
|
191
|
-
},
|
|
192
|
-
],
|
|
193
|
-
default: 'getFollowing',
|
|
194
|
-
},
|
|
195
|
-
];
|
|
196
|
-
const getFollowingOperation = [
|
|
197
|
-
{
|
|
198
|
-
displayName: 'Return Type',
|
|
199
|
-
name: 'returnType',
|
|
200
|
-
type: 'options',
|
|
201
|
-
options: [
|
|
202
|
-
{
|
|
203
|
-
name: 'Full Profiles',
|
|
204
|
-
value: 'profiles',
|
|
205
|
-
description: 'Return complete profile information',
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
name: 'User IDs Only',
|
|
209
|
-
value: 'ids',
|
|
210
|
-
description: 'Return only user IDs',
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
default: 'profiles',
|
|
214
|
-
description: 'Choose what information to return about the users you follow',
|
|
215
|
-
displayOptions: {
|
|
216
|
-
show: {
|
|
217
|
-
resource: ['follow'],
|
|
218
|
-
operation: ['getFollowing'],
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
displayName: 'Limit',
|
|
224
|
-
name: 'limit',
|
|
225
|
-
type: 'number',
|
|
226
|
-
default: '',
|
|
227
|
-
description: 'Max number of results to return. Defaults to 100 if not specified.',
|
|
228
|
-
displayOptions: {
|
|
229
|
-
show: {
|
|
230
|
-
resource: ['follow'],
|
|
231
|
-
operation: ['getFollowing'],
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
typeOptions: {
|
|
235
|
-
minValue: 1,
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
];
|
|
239
|
-
exports.followFields = [
|
|
240
|
-
...getFollowingOperation,
|
|
241
|
-
];
|
|
242
|
-
//# sourceMappingURL=SubstackDescription.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SubstackDescription.js","sourceRoot":"","sources":["../../../nodes/Substack/SubstackDescription.ts"],"names":[],"mappings":";;;AAGa,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,qCAAqC;gBAClD,MAAM,EAAE,gBAAgB;aACxB;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAGW,QAAA,iBAAiB,GAAsB;IACnD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,SAAS,CAAC;aACrB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,kCAAkC;gBAC/C,MAAM,EAAE,mBAAmB;aAC3B;SACD;QACD,OAAO,EAAE,QAAQ;KACjB;CACD,CAAC;AAGW,QAAA,cAAc,GAAsB;IAChD;QACC,WAAW,EAAE,WAAW;QACxB,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,gBAAgB,EAAE,IAAI;QACtB,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,MAAM,CAAC;aAClB;SACD;QACD,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,4BAA4B;gBACzC,M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;IAChD;QACC,WAAW,EAAE,aAAa;QAC1B,IAAI,EAAE,YAAY;QAClB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE;YACR;gBACC,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,qCAAqC;aAClD;YACD;gBACC,IAAI,EAAE,eAAe;gBACrB,KAAK,EAAE,KAAK;gBACZ,WAAW,EAAE,sBAAsB;aACnC;SACD;QACD,OAAO,EAAE,UAAU;QACnB,WAAW,EAAE,8DAA8D;QAC3E,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;KACD;IACD;QACC,WAAW,EAAE,OAAO;QACpB,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,QAAQ;QAEd,OAAO,EAAE,EAAE;QAEX,WAAW,EAAE,oEAAoE;QACjF,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,QAAQ,EAAE,CAAC,QAAQ,CAAC;gBACpB,SAAS,EAAE,CAAC,cAAc,CAAC;aAC3B;SACD;QACD,WAAW,EAAE;YACZ,QAAQ,EAAE,CAAC;SACX;KACD;CACD,CAAC;AAEW,QAAA,YAAY,GAAsB;IAI9C,GAAG,qBAAqB;CACxB,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|