n8n-nodes-planvortex 0.1.2 → 0.1.4
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 +27 -20
- package/dist/nodes/PlanVortex/PlanVortex.node.d.ts +2 -1
- package/dist/nodes/PlanVortex/PlanVortex.node.js +1 -0
- package/dist/nodes/PlanVortex/PlanVortex.node.js.map +1 -1
- package/dist/nodes/PlanVortex/methods/loadOptions.d.ts +1 -0
- package/dist/nodes/PlanVortex/methods/loadOptions.js +17 -0
- package/dist/nodes/PlanVortex/methods/loadOptions.js.map +1 -1
- package/dist/nodes/PlanVortex/resources/publication/create.js +121 -1
- package/dist/nodes/PlanVortex/resources/publication/create.js.map +1 -1
- package/dist/nodes/PlanVortex/transport/errors.generated.d.ts +2 -2
- package/dist/nodes/PlanVortex/transport/errors.generated.js +5 -3
- package/dist/nodes/PlanVortex/transport/errors.generated.js.map +1 -1
- package/dist/nodes/PlanVortex/transport/errors.js +9 -0
- package/dist/nodes/PlanVortex/transport/errors.js.map +1 -1
- package/dist/package.json +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
# n8n-nodes-planvortex
|
|
2
2
|
|
|
3
|
-
An n8n community node for [PlanVortex](https://planvortex.com/en). It lets an n8n
|
|
4
|
-
to social networks, upload media, read and reply to comments, and hand a client a
|
|
5
|
-
their own accounts.
|
|
3
|
+
An n8n community node for [PlanVortex](https://planvortex.com/en), verified by n8n. It lets an n8n
|
|
4
|
+
workflow publish to social networks, upload media, read and reply to comments, and hand a client a
|
|
5
|
+
link to connect their own accounts.
|
|
6
6
|
|
|
7
|
-
PlanVortex manages
|
|
8
|
-
TikTok, X,
|
|
9
|
-
naming here are the last three: announcing a release on LinkedIn, dropping it in a customer
|
|
10
|
-
and posting it to an internal Slack channel is normally three separate integrations.
|
|
7
|
+
PlanVortex manages social networks from one API, among them Facebook, Instagram, Threads,
|
|
8
|
+
LinkedIn, TikTok, X, YouTube, Bluesky, Pinterest, Discord, Telegram and Slack. The ones worth
|
|
9
|
+
naming here are the last three: announcing a release on LinkedIn, dropping it in a customer
|
|
10
|
+
Discord and posting it to an internal Slack channel is normally three separate integrations.
|
|
11
11
|
|
|
12
12
|
[n8n](https://n8n.io/) is a [fair-code licensed](https://docs.n8n.io/sustainable-use-license/)
|
|
13
13
|
workflow automation platform.
|
|
14
14
|
|
|
15
|
-
> **Status: verification by n8n pending.** Until n8n verifies this node it can be installed on a
|
|
16
|
-
> **self-hosted** n8n only, not on n8n Cloud. On Cloud, in the meantime, PlanVortex works through
|
|
17
|
-
> the `HTTP Request` node against the [REST API](https://planvortex.com/en/developers).
|
|
18
|
-
|
|
19
15
|
## Installation
|
|
20
16
|
|
|
17
|
+
**n8n Cloud:** this is a verified community node, so it installs from the nodes panel: search for
|
|
18
|
+
**PlanVortex** and install it. Only the instance **owner or an admin** can do that; nobody else on
|
|
19
|
+
the instance can.
|
|
20
|
+
|
|
21
21
|
**Self-hosted n8n:** go to **Settings → Community Nodes**, choose **Install** and enter
|
|
22
22
|
`n8n-nodes-planvortex`. The [installation
|
|
23
23
|
guide](https://docs.n8n.io/integrations/community-nodes/installation/) covers the other ways,
|
|
24
24
|
including the command line.
|
|
25
25
|
|
|
26
|
-
**n8n Cloud:** once n8n has verified the node, the instance **owner or an admin** installs it from
|
|
27
|
-
the nodes panel. Nobody else on the instance can.
|
|
28
|
-
|
|
29
26
|
## Operations
|
|
30
27
|
|
|
31
28
|
| Resource | Operation | What it does |
|
|
32
29
|
| --- | --- | --- |
|
|
33
|
-
| Publication | Create | Publishes now or schedules a post on one connected account |
|
|
30
|
+
| Publication | Create | Publishes now or schedules a post on one connected account, a Pinterest pin with its board and link included |
|
|
34
31
|
| Media | Upload | Puts an image or a video in the organization's library, ready to attach |
|
|
35
32
|
| Account | Get Many | Lists the connected accounts, with a filter for what their network can do |
|
|
36
33
|
| Account | Create Connect Link | Mints a single-use link for a person to connect one of their own accounts |
|
|
@@ -45,7 +42,7 @@ Seven operations, not one hundred and thirty-five. Anything else the API does is
|
|
|
45
42
|
node away, using the same credential — see the [PlanVortex API
|
|
46
43
|
documentation](https://planvortex.com/en/developers).
|
|
47
44
|
|
|
48
|
-
|
|
45
|
+
Five things are worth knowing before you build on them:
|
|
49
46
|
|
|
50
47
|
- **Connecting a social account cannot be automated.** It is an OAuth flow with a person clicking
|
|
51
48
|
"authorize" on the network's own screen, and app credentials are refused outright. *Create
|
|
@@ -55,10 +52,20 @@ Four things are worth knowing before you build on them:
|
|
|
55
52
|
inside it, and answers 200 — so a workflow that only watches for exceptions would report a post
|
|
56
53
|
that never went out as sent. *Create* has a **Fail on Publication Errors** toggle, on by default,
|
|
57
54
|
that turns it into a real failure.
|
|
58
|
-
- **Not every network does everything.**
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
- **Not every network does everything.** WhatsApp has no feed, and Slack and Pinterest publish
|
|
56
|
+
but have no comment inbox. *Get Capabilities* is how a workflow finds that out once instead of
|
|
57
|
+
one network at a time, in production. The account dropdown for publishing already hides the
|
|
58
|
+
accounts that cannot publish.
|
|
59
|
+
- **On TikTok, a person chooses who sees the post.** TikTok's content sharing guidelines forbid
|
|
60
|
+
a default, so *Create* has a **Visibility** field and the boxes **Allow Comments**, **Allow
|
|
61
|
+
Duet**, **Allow Stitch**, **Promotes Own Brand** and **Branded Content** (all in Additional
|
|
62
|
+
Fields). Which visibilities an account allows depends on the account: a private one has
|
|
63
|
+
Followers instead of Public, and a value it does not allow fails with error 2505 listing the
|
|
64
|
+
ones it does. A paid partnership cannot be private (error 2504).
|
|
65
|
+
- **On Pinterest, a pin goes to a board.** Choosing the account does not choose where the pin
|
|
66
|
+
comes out, so *Create* has a **Destination** field (in Additional Fields) listing the account's
|
|
67
|
+
boards, and a pin without one fails with error 987. The URL the pin leads to goes in **Link**,
|
|
68
|
+
not in the text. Every other network ignores both fields.
|
|
62
69
|
- **Comments and replies need a paid plan.** The rest of this node works on the free one.
|
|
63
70
|
|
|
64
71
|
## Credentials
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { type IExecuteFunctions, type INodeExecutionData, type INodeType, type INodeTypeDescription } from 'n8n-workflow';
|
|
2
|
-
import { getAccounts as loadAccountOptions, getCommentNetworks, getOrganizations, getPublishingAccounts, getSocialNetworks } from './methods/loadOptions';
|
|
2
|
+
import { getAccounts as loadAccountOptions, getCommentNetworks, getDestinations, getOrganizations, getPublishingAccounts, getSocialNetworks } from './methods/loadOptions';
|
|
3
3
|
export declare class PlanVortex implements INodeType {
|
|
4
4
|
description: INodeTypeDescription;
|
|
5
5
|
methods: {
|
|
6
6
|
loadOptions: {
|
|
7
7
|
getAccounts: typeof loadAccountOptions;
|
|
8
8
|
getCommentNetworks: typeof getCommentNetworks;
|
|
9
|
+
getDestinations: typeof getDestinations;
|
|
9
10
|
getOrganizations: typeof getOrganizations;
|
|
10
11
|
getPublishingAccounts: typeof getPublishingAccounts;
|
|
11
12
|
getSocialNetworks: typeof getSocialNetworks;
|
|
@@ -90,6 +90,7 @@ class PlanVortex {
|
|
|
90
90
|
loadOptions: {
|
|
91
91
|
getAccounts: loadOptions_1.getAccounts,
|
|
92
92
|
getCommentNetworks: loadOptions_1.getCommentNetworks,
|
|
93
|
+
getDestinations: loadOptions_1.getDestinations,
|
|
93
94
|
getOrganizations: loadOptions_1.getOrganizations,
|
|
94
95
|
getPublishingAccounts: loadOptions_1.getPublishingAccounts,
|
|
95
96
|
getSocialNetworks: loadOptions_1.getSocialNetworks,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlanVortex.node.js","sourceRoot":"","sources":["../../../nodes/PlanVortex/PlanVortex.node.ts"],"names":[],"mappings":";;;AAAA,+CASsB;AACtB,
|
|
1
|
+
{"version":3,"file":"PlanVortex.node.js","sourceRoot":"","sources":["../../../nodes/PlanVortex/PlanVortex.node.ts"],"names":[],"mappings":";;;A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ionsFunctions): Promise<INodePropertyOptions[]>;
|
|
3
3
|
export declare function getAccounts(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
4
4
|
export declare function getPublishingAccounts(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
5
|
+
export declare function getDestinations(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
5
6
|
export declare function getSocialNetworks(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
6
7
|
export declare function getCommentNetworks(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getOrganizations = getOrganizations;
|
|
4
4
|
exports.getAccounts = getAccounts;
|
|
5
5
|
exports.getPublishingAccounts = getPublishingAccounts;
|
|
6
|
+
exports.getDestinations = getDestinations;
|
|
6
7
|
exports.getSocialNetworks = getSocialNetworks;
|
|
7
8
|
exports.getCommentNetworks = getCommentNetworks;
|
|
8
9
|
const transport_1 = require("../transport");
|
|
@@ -50,6 +51,22 @@ async function loadAccounts(context, qs = {}) {
|
|
|
50
51
|
});
|
|
51
52
|
}));
|
|
52
53
|
}
|
|
54
|
+
async function getDestinations() {
|
|
55
|
+
var _a, _b, _c;
|
|
56
|
+
const organizationId = String((_a = this.getCurrentNodeParameter('organizationId')) !== null && _a !== void 0 ? _a : '').trim();
|
|
57
|
+
const accountId = String((_b = this.getCurrentNodeParameter('accountId')) !== null && _b !== void 0 ? _b : '').trim();
|
|
58
|
+
if (organizationId === '' || accountId === '')
|
|
59
|
+
return [];
|
|
60
|
+
const response = (await transport_1.planVortexApiRequest.call(this, 'GET', `/organizations/${organizationId}/accounts/${accountId}/destinations`));
|
|
61
|
+
return sorted(((_c = response === null || response === void 0 ? void 0 : response.destinations) !== null && _c !== void 0 ? _c : []).map((destination) => {
|
|
62
|
+
var _a;
|
|
63
|
+
const name = String((_a = destination.name) !== null && _a !== void 0 ? _a : destination.id);
|
|
64
|
+
return {
|
|
65
|
+
name: destination.privacy === 'SECRET' ? `${name} (secret)` : name,
|
|
66
|
+
value: String(destination.id),
|
|
67
|
+
};
|
|
68
|
+
}));
|
|
69
|
+
}
|
|
53
70
|
async function getSocialNetworks() {
|
|
54
71
|
const networks = (await transport_1.planVortexApiRequest.call(this, 'GET', '/social_networks'));
|
|
55
72
|
return sorted((networks !== null && networks !== void 0 ? networks : []).map((network) => ({ name: (0, helpers_1.networkLabel)(network), value: network })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loadOptions.js","sourceRoot":"","sources":["../../../../nodes/PlanVortex/methods/loadOptions.ts"],"names":[],"mappings":";;AA0BA,4CAuBC;AASD,kCAEC;AAUD,sDAIC;
|
|
1
|
+
{"version":3,"file":"loadOptions.js","sourceRoot":"","sources":["../../../../nodes/PlanVortex/methods/loadOptions.ts"],"names":[],"mappings":";;AA0BA,4CAuBC;AASD,kCAEC;AAUD,sDAIC;AAqCD,0CAwBC;AAGD,8CAOC;AAQD,gDAaC;AArKD,4CAAkF;AAClF,kDAAoD;AAapD,SAAS,MAAM,CAAC,OAA+B;IAC9C,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;AAC7D,CAAC;AASM,KAAK,UAAU,gBAAgB;;IAGrC,MAAM,QAAQ,GAAG,CAAC,MAAM,gCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE;QACnG,KAAK,EAAE,GAAG;QACV,kBAAkB,EAAE,GAAG;KACvB,CAAC,CAAgC,CAAC;IAEnC,MAAM,OAAO,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,mCAAI,EAAE,CAAC;IACxC,MAAM,OAAO,GAA2B,EAAE,CAAC;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AAC,WAAW,CAAC,EAAE,CAAC;SAC7B,CAAC;IACH,CAAC,CAAC,CACF,CAAC;AACH,CAAC;AAGM,KAAK,UAAU,iBAAiB;IAGtC,MAAM,QAAQ,GAAG,CAAC,MAAM,gCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAa,CAAC;IAChG,OAAO,MAAM,CACZ,CAAC,QAAQ,aAAR,QAAQ,cAAR,QAAQ,GAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAA,sBAAY,EAAC,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CACpF,CAAC;AACH,CAAC;AAQM,KAAK,UAAU,kBAAkB;IAGvC,MAAM,YAAY,GAAG,CAAC,MAAM,gCAAoB,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,sBAAsB,CAAC,CAGzF,CAAC;IAEF,OAAO,MAAM,CACZ,MAAM,CAAC,OAAO,CAAC,YAAY,aAAZ,YAAY,cAAZ,YAAY,GAAI,EAAE,CAAC;SAChC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,MAAK,IAAI,CAAC;SACjD,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAA,sBAAY,EAAC,OAAO,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CACvE,CAAC;AACH,CAAC"}
|
|
@@ -57,6 +57,52 @@ exports.publicationCreateDescription = [
|
|
|
57
57
|
default: {},
|
|
58
58
|
displayOptions: { show: showOnlyForPublicationCreate },
|
|
59
59
|
options: [
|
|
60
|
+
{
|
|
61
|
+
displayName: 'Allow Comments',
|
|
62
|
+
name: 'allowComments',
|
|
63
|
+
type: 'boolean',
|
|
64
|
+
default: false,
|
|
65
|
+
description: "Whether the audience can comment. TikTok only: TikTok's content sharing guidelines ask that a person decides it, so add it and leave it off unless they said yes. Left out, TikTok's default applies (allowed). If the creator turned comments off in the TikTok app, they stay off.",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
displayName: 'Allow Duet',
|
|
69
|
+
name: 'allowDuet',
|
|
70
|
+
type: 'boolean',
|
|
71
|
+
default: false,
|
|
72
|
+
description: 'Whether the audience can make a Duet with the video. TikTok videos only; ignored on photo posts and on every other network.',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
displayName: 'Allow Stitch',
|
|
76
|
+
name: 'allowStitch',
|
|
77
|
+
type: 'boolean',
|
|
78
|
+
default: false,
|
|
79
|
+
description: 'Whether the audience can make a Stitch with the video. TikTok videos only; ignored on photo posts and on every other network.',
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
displayName: 'Branded Content',
|
|
83
|
+
name: 'brandedContent',
|
|
84
|
+
type: 'boolean',
|
|
85
|
+
default: false,
|
|
86
|
+
description: 'Whether the post is a paid partnership promoting a third party. TikTok only: it is labeled "Paid partnership", and it cannot be private (Visibility must be Public or Friends, or the publication is stored with error 2504).',
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
displayName: 'Destination Name or ID',
|
|
90
|
+
name: 'destinationId',
|
|
91
|
+
type: 'options',
|
|
92
|
+
typeOptions: {
|
|
93
|
+
loadOptionsMethod: 'getDestinations',
|
|
94
|
+
loadOptionsDependsOn: ['organizationId', 'accountId'],
|
|
95
|
+
},
|
|
96
|
+
default: '',
|
|
97
|
+
description: 'Where the post goes inside the account, on the networks where the account alone does not say. Required on Pinterest, where it is the board; every other network ignores it. Choose from the list, or specify an ID using an <a href="https://docs.n8n.io/code/expressions/">expression</a>.',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
displayName: 'Destination Section ID',
|
|
101
|
+
name: 'destinationSectionId',
|
|
102
|
+
type: 'string',
|
|
103
|
+
default: '',
|
|
104
|
+
description: 'Optional, and Pinterest only: the section of the board picked in Destination. GET /organizations/{ID}/accounts/{ID}/destinations/{board} lists the sections of a board.',
|
|
105
|
+
},
|
|
60
106
|
{
|
|
61
107
|
displayName: 'Internal Name',
|
|
62
108
|
name: 'name',
|
|
@@ -64,6 +110,28 @@ exports.publicationCreateDescription = [
|
|
|
64
110
|
default: '',
|
|
65
111
|
description: 'A label for your own use. It is never shown on the social network; it is there to group publications.',
|
|
66
112
|
},
|
|
113
|
+
{
|
|
114
|
+
displayName: 'Link',
|
|
115
|
+
name: 'link',
|
|
116
|
+
type: 'string',
|
|
117
|
+
default: '',
|
|
118
|
+
placeholder: 'https://example.com/product',
|
|
119
|
+
description: "Where the post leads when someone opens it. Only Pinterest has this field, as the pin's destination link, and every other network ignores it: there, a link goes inside the text.",
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Made for Kids',
|
|
123
|
+
name: 'made_for_kids',
|
|
124
|
+
type: 'boolean',
|
|
125
|
+
default: false,
|
|
126
|
+
description: 'Whether the video is made for kids (COPPA). YouTube only, and the law makes it the channel owner\'s call: a video directed at children has to be uploaded with this on. Every other network ignores it.',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
displayName: 'Promotes Own Brand',
|
|
130
|
+
name: 'yourBrand',
|
|
131
|
+
type: 'boolean',
|
|
132
|
+
default: false,
|
|
133
|
+
description: 'Whether the post promotes the creator or their own business. TikTok only: it is labeled "Promotional content". Every other network ignores it.',
|
|
134
|
+
},
|
|
67
135
|
{
|
|
68
136
|
displayName: 'Publication Type',
|
|
69
137
|
name: 'publication_type',
|
|
@@ -102,9 +170,52 @@ exports.publicationCreateDescription = [
|
|
|
102
170
|
default: '',
|
|
103
171
|
description: 'Only some networks have a title field: it is optional on LinkedIn and required on YouTube, where it is the video title and cannot exceed 100 characters',
|
|
104
172
|
},
|
|
173
|
+
{
|
|
174
|
+
displayName: 'Visibility',
|
|
175
|
+
name: 'visibility',
|
|
176
|
+
type: 'options',
|
|
177
|
+
default: 'public',
|
|
178
|
+
options: [
|
|
179
|
+
{ name: 'Followers (TikTok, Private Accounts)', value: 'followers' },
|
|
180
|
+
{ name: 'Friends (TikTok)', value: 'friends' },
|
|
181
|
+
{ name: 'Only Me', value: 'private' },
|
|
182
|
+
{ name: 'Public', value: 'public' },
|
|
183
|
+
{ name: 'Unlisted (YouTube)', value: 'unlisted' },
|
|
184
|
+
],
|
|
185
|
+
description: "Who can see the post. YouTube and TikTok only; every other network ignores it. On TikTok it should be a person's choice (its content sharing guidelines forbid a default), and which values an account allows depends on the account: a private one has Followers instead of Public. A value the account does not allow when the post goes out stores it with error 2505 and the values it does allow.",
|
|
186
|
+
},
|
|
105
187
|
],
|
|
106
188
|
},
|
|
107
189
|
];
|
|
190
|
+
function buildDestination(context, index, destinationId, sectionId) {
|
|
191
|
+
const board = destinationId.trim();
|
|
192
|
+
const section = sectionId.trim();
|
|
193
|
+
if (board === '') {
|
|
194
|
+
if (section !== '') {
|
|
195
|
+
throw new n8n_workflow_1.NodeOperationError(context.getNode(), 'A section was given without its board', {
|
|
196
|
+
itemIndex: index,
|
|
197
|
+
description: 'A section belongs to a board. Pick the board in Destination as well, or leave Destination Section ID empty.',
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
return undefined;
|
|
201
|
+
}
|
|
202
|
+
return section === '' ? { id: board } : { id: board, section_id: section };
|
|
203
|
+
}
|
|
204
|
+
function buildInteractions(comments, duet, stitch) {
|
|
205
|
+
const chosen = {};
|
|
206
|
+
if (typeof comments === 'boolean')
|
|
207
|
+
chosen.comments = comments;
|
|
208
|
+
if (typeof duet === 'boolean')
|
|
209
|
+
chosen.duet = duet;
|
|
210
|
+
if (typeof stitch === 'boolean')
|
|
211
|
+
chosen.stitch = stitch;
|
|
212
|
+
return Object.keys(chosen).length > 0 ? chosen : undefined;
|
|
213
|
+
}
|
|
214
|
+
function buildCommercialContent(yourBrand, brandedContent) {
|
|
215
|
+
if (typeof yourBrand !== 'boolean' && typeof brandedContent !== 'boolean')
|
|
216
|
+
return undefined;
|
|
217
|
+
return { your_brand: yourBrand === true, branded_content: brandedContent === true };
|
|
218
|
+
}
|
|
108
219
|
const createPublication = async function (index, run) {
|
|
109
220
|
var _a, _b, _c, _d, _e;
|
|
110
221
|
const organizationId = (0, helpers_1.getOrganizationId)(this, index);
|
|
@@ -113,13 +224,22 @@ const createPublication = async function (index, run) {
|
|
|
113
224
|
const fileIds = this.getNodeParameter('fileIds', index, '');
|
|
114
225
|
const failOnPublicationErrors = this.getNodeParameter('failOnPublicationErrors', index, true);
|
|
115
226
|
const additionalFields = this.getNodeParameter('additionalFields', index, {});
|
|
227
|
+
const { destinationId = '', destinationSectionId = '', link = '', allowComments, allowDuet, allowStitch, yourBrand, brandedContent, ...fields } = additionalFields;
|
|
228
|
+
const interactions = buildInteractions(allowComments, allowDuet, allowStitch);
|
|
229
|
+
const commercialContent = buildCommercialContent(yourBrand, brandedContent);
|
|
230
|
+
const destination = buildDestination(this, index, String(destinationId), String(destinationSectionId));
|
|
231
|
+
const trimmedLink = String(link).trim();
|
|
116
232
|
const account = await (0, helpers_1.getAccountOnce)(this, index, organizationId, accountId, run);
|
|
117
233
|
const files = (0, helpers_1.splitIds)(fileIds);
|
|
118
234
|
const body = {
|
|
119
235
|
social_network: account.social_network,
|
|
120
236
|
...(text === '' ? {} : { text }),
|
|
121
237
|
...(files.length > 0 ? { files } : {}),
|
|
122
|
-
...
|
|
238
|
+
...fields,
|
|
239
|
+
...(destination ? { destination } : {}),
|
|
240
|
+
...(trimmedLink === '' ? {} : { link: trimmedLink }),
|
|
241
|
+
...(interactions ? { interactions } : {}),
|
|
242
|
+
...(commercialContent ? { commercial_content: commercialContent } : {}),
|
|
123
243
|
};
|
|
124
244
|
const response = (await transport_1.planVortexApiRequest.call(this, 'POST', `/organizations/${organizationId}/accounts/${accountId}/publish`, body));
|
|
125
245
|
const publication = (_a = response === null || response === void 0 ? void 0 : response.publication) !== null && _a !== void 0 ? _a : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/PlanVortex/resources/publication/create.ts"],"names":[],"mappings":";;;AACA,+
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../../../nodes/PlanVortex/resources/publication/create.ts"],"names":[],"mappings":";;;AACA,+CAAgE;AAChE,+CAAuD;AACvD,mDAA0D;AAC1D,wCAMoB;AAEpB,MAAM,4BAA4B,GAAG;IACpC,QAAQ,EAAE,CAAC,aAAa,CAAC;IACzB,SAAS,EAAE,CAAC,QAAQ,CAAC;CACrB,CAAC;AAEW,QAAA,4BAA4B,GAAsB;IAC9D;QACC,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;QACf,WAAW,EAAE;YACZ,iBAAiB,EAAE,uBAAuB;YAC1C,oBAAoB,EAAE,CAAC,gBAAgB,CAAC;SACxC;QACD,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE;QACtD,WAAW,EAAE,2LAA2L;KACxM;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;QACxB,OAAO,EAAE,EAAE;QACX,cAAc,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE;QACtD,WAAW,EACV,4LAA4L;KAC7L;IACD;QACC,WAAW,EAAE,UAAU;QACvB,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,mDAAmD;QAChE,cAAc,EAAE,EAAE,IAAI,EAAE,4BAA4B,EAAE;QACtD,WAAW,EACV,4JAA4J;KAC7J;IACD;QACC,WAAW,EAAE,4BAA4B;QACzC,IAAI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AC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;YACtE,IAAI,EAAE,KAAK,CAAC,IAA+B;SAC3C,CAAC,CAAC;QACH,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,WAAoC,EAAE;YAC5E,OAAO,EAAE,SAAS,CAAC,OAAO;YAC1B,WAAW,EAAE,GAAG,SAAS,CAAC,WAAW,oCAAoC,MAAM,CAAC,MAAA,WAAW,CAAC,KAAK,mCAAI,EAAE,CAAC,sFAAsF;YAC9L,SAAS,EAAE,KAAK;SAChB,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,CAAC,WAAW,CAAC,CAAC;AACtB,CAAC,CAAC;AAlFW,QAAA,iBAAiB,qBAkF5B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export type PlanVortexErrorFamily = 'auth' | 'user' | 'social_accounts' | 'files' | 'publications' | 'general' | 'organizations' | 'roles' | 'client_plan' | 'organization_plan' | 'messaging' | 'contacts' | 'payments' | 'products' | 'ai_plans' | 'integrations' | 'comments';
|
|
1
|
+
export type PlanVortexErrorFamily = 'auth' | 'user' | 'social_accounts' | 'files' | 'publications' | 'general' | 'organizations' | 'roles' | 'client_plan' | 'organization_plan' | 'messaging' | 'contacts' | 'payments' | 'products' | 'ai_plans' | 'integrations' | 'publication_fields' | 'comments';
|
|
2
2
|
export interface PlanVortexErrorRange {
|
|
3
3
|
readonly from: number;
|
|
4
4
|
readonly to: number;
|
|
5
5
|
readonly family: PlanVortexErrorFamily;
|
|
6
6
|
}
|
|
7
7
|
export declare const PLANVORTEX_ERROR_RANGES: readonly PlanVortexErrorRange[];
|
|
8
|
-
export declare const PLANVORTEX_ERROR_CODES: readonly [500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 601, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 700, 701, 702, 703, 704, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1300, 1301, 1303, 1304, 1305, 1306, 1307, 1308, 1400, 1402, 1403, 1404, 1405, 1406, 1407, 1408, 1500, 1501, 1502, 1503, 1504, 1505, 1506, 1507, 1508, 1509, 1510, 1511, 1512, 1600, 1601, 1900, 1901, 1902, 1903, 1904, 1905, 1906, 2000, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2300, 2400, 2500, 2501, 2600];
|
|
8
|
+
export declare const PLANVORTEX_ERROR_CODES: readonly [500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514, 515, 516, 517, 518, 519, 520, 521, 522, 523, 524, 525, 526, 527, 528, 529, 530, 531, 532, 533, 534, 535, 536, 537, 538, 539, 540, 541, 542, 543, 544, 545, 546, 547, 548, 549, 550, 551, 552, 553, 554, 601, 603, 604, 605, 606, 607, 608, 609, 610, 611, 612, 700, 701, 702, 703, 704, 706, 707, 708, 709, 710, 711, 712, 713, 714, 715, 716, 800, 801, 802, 803, 804, 805, 806, 807, 808, 809, 810, 900, 901, 902, 903, 904, 905, 906, 907, 908, 909, 910, 911, 912, 913, 914, 915, 916, 917, 918, 919, 920, 921, 922, 923, 925, 926, 927, 928, 929, 930, 931, 932, 933, 934, 935, 936, 937, 938, 939, 940, 941, 942, 943, 944, 945, 946, 947, 948, 949, 950, 951, 952, 953, 954, 955, 956, 957, 958, 959, 960, 961, 962, 963, 964, 965, 966, 967, 968, 969, 970, 971, 972, 973, 974, 975, 976, 977, 978, 979, 980, 981, 982, 983, 984, 985, 986, 987, 988, 989, 990, 991, 992, 993, 994, 995, 996, 997, 998, 999, 1000, 1001, 1002, 1003, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109, 1110, 1111, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1300, 1301, 1303, 1304, 1305, 1306, 1307, 1308, 1400, 1402, 1403, 1404, 1405, 1406, 1407, 1408, 1500, 1501, 1502, 1503, 1504, 1505, 1506, 1507, 1508, 1509, 1510, 1511, 1512, 1600, 1601, 1900, 1901, 1902, 1903, 1904, 1905, 1906, 1907, 1908, 1909, 2000, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111, 2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2200, 2201, 2202, 2203, 2204, 2205, 2206, 2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2300, 2400, 2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2600];
|
|
9
9
|
export type PlanVortexErrorCode = (typeof PLANVORTEX_ERROR_CODES)[number];
|
|
10
10
|
export declare const RATE_LIMITED_ERROR_CODES: readonly number[];
|
|
11
11
|
export declare const NON_ENGLISH_ERROR_CODES: readonly [919];
|
|
@@ -19,6 +19,7 @@ exports.PLANVORTEX_ERROR_RANGES = [
|
|
|
19
19
|
{ from: 2000, to: 2099, family: 'products' },
|
|
20
20
|
{ from: 2100, to: 2199, family: 'ai_plans' },
|
|
21
21
|
{ from: 2200, to: 2299, family: 'integrations' },
|
|
22
|
+
{ from: 2500, to: 2599, family: 'publication_fields' },
|
|
22
23
|
{ from: 2600, to: 2699, family: 'comments' },
|
|
23
24
|
];
|
|
24
25
|
exports.PLANVORTEX_ERROR_CODES = [
|
|
@@ -36,9 +37,10 @@ exports.PLANVORTEX_ERROR_CODES = [
|
|
|
36
37
|
1110, 1111, 1200, 1201, 1202, 1203, 1204, 1205, 1206, 1207, 1300, 1301, 1303, 1304, 1305, 1306,
|
|
37
38
|
1307, 1308, 1400, 1402, 1403, 1404, 1405, 1406, 1407, 1408, 1500, 1501, 1502, 1503, 1504, 1505,
|
|
38
39
|
1506, 1507, 1508, 1509, 1510, 1511, 1512, 1600, 1601, 1900, 1901, 1902, 1903, 1904, 1905, 1906,
|
|
39
|
-
2000, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111,
|
|
40
|
-
2115, 2116, 2117, 2118, 2119, 2120, 2200, 2201, 2202, 2203, 2204, 2205, 2206,
|
|
41
|
-
2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2300, 2400,
|
|
40
|
+
1907, 1908, 1909, 2000, 2100, 2101, 2102, 2103, 2104, 2105, 2106, 2107, 2108, 2109, 2110, 2111,
|
|
41
|
+
2112, 2113, 2114, 2115, 2116, 2117, 2118, 2119, 2120, 2200, 2201, 2202, 2203, 2204, 2205, 2206,
|
|
42
|
+
2207, 2208, 2209, 2210, 2211, 2212, 2213, 2214, 2215, 2216, 2217, 2218, 2219, 2220, 2300, 2400,
|
|
43
|
+
2500, 2501, 2502, 2503, 2504, 2505, 2506, 2507, 2508, 2600,
|
|
42
44
|
];
|
|
43
45
|
exports.RATE_LIMITED_ERROR_CODES = [545, 926, 978, 979, 991];
|
|
44
46
|
exports.NON_ENGLISH_ERROR_CODES = [919];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.generated.js","sourceRoot":"","sources":["../../../../nodes/PlanVortex/transport/errors.generated.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"errors.generated.js","sourceRoot":"","sources":["../../../../nodes/PlanVortex/transport/errors.generated.ts"],"names":[],"mappings":";;;AA0HA,kCASC;AAtFY,QAAA,uBAAuB,GAAoC;IACvE,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE;IACtC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE;IACtC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,iBAAiB,EAAE;IACjD,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE;IACvC,EAAE,IAAI,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE;IAC9C,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE;IAC3C,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,eAAe,EAAE;IACjD,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE;IACzC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE;IAC/C,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE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CAAC,CAAC;QAChD,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI;YAAE,OAAO,SAAS,CAAC;QACxC,MAAM,OAAO,GAAG,IAAI,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC;QAC9D,IAAI,IAAI,IAAI,OAAO;YAAE,OAAO,KAAK,CAAC,MAAM,CAAC;IAC1C,CAAC;IACD,OAAO,SAAS,CAAC;AAClB,CAAC"}
|
|
@@ -47,6 +47,14 @@ const CODE_ADVICE = {
|
|
|
47
47
|
980: 'The PlanVortex app is not in that Slack channel, and nothing about the post is wrong. Somebody with access has to type `/invite @PlanVortex` inside the channel — on a private channel that is the only way, because Slack has no API for an app to join one.',
|
|
48
48
|
984: 'Slack is rate limiting this workspace and the retry window ran out. It is temporary and it has nothing to do with the post, but Slack counts per workspace, so other channels of the same workspace will hit it too. Space the messages out or schedule them.',
|
|
49
49
|
985: 'That Slack channel is archived or no longer exists, so nothing can be published to it. Somebody has to unarchive it, or the account has to be reconnected to a different channel.',
|
|
50
|
+
987: 'A Pinterest pin goes to a board, and this one came without it. Pick the board in Additional Fields > Destination: the list is read from the account itself.',
|
|
51
|
+
992: "That account's network has no destinations: the account itself is where its posts go. Only Pinterest takes a Destination, so leave it out for this one.",
|
|
52
|
+
994: 'The Link is not a valid http(s) URL, or it is too long. Pinterest would reject it at publishing time, so PlanVortex stops it now instead.',
|
|
53
|
+
2500: 'That Visibility is not one this network has. Unlisted is YouTube only; Friends and Followers are TikTok only.',
|
|
54
|
+
2504: 'A paid partnership (Branded Content) cannot be private on TikTok. Set Visibility to Public or Friends, or turn Branded Content off.',
|
|
55
|
+
2505: 'This TikTok account no longer allows the chosen Visibility (it may have gone from public to private since the post was scheduled). The message lists the ones it allows; PlanVortex never swaps it for another.',
|
|
56
|
+
2506: 'The video is longer than this TikTok account is allowed to post. Trim it, or post it from an account that allows longer videos.',
|
|
57
|
+
2507: 'TikTok is not taking posts from this account right now, usually because it hit its daily posting limit. It is temporary: schedule the post for later.',
|
|
50
58
|
1101: 'That organization does not exist. Pick one from the Organization dropdown, which lists exactly the organizations this credential reaches.',
|
|
51
59
|
1110: 'That organization has been deleted. Pick another one from the Organization dropdown.',
|
|
52
60
|
1400: 'The organization has no account slots left in its plan. Retrying will fail the same way: a connected account has to go, or the plan has to grow.',
|
|
@@ -70,6 +78,7 @@ const FAMILY_ADVICE = {
|
|
|
70
78
|
products: "This is about a product catalogue, which this node does not manage. The message above is the API's own.",
|
|
71
79
|
ai_plans: "This is about an AI content plan, which this node does not create. The message above is the API's own.",
|
|
72
80
|
integrations: 'The integration is not usable. Connecting or repairing one is done by a person in the PlanVortex panel.',
|
|
81
|
+
publication_fields: 'One of the publication settings was rejected: who can see it, whether it is made for kids, what the audience can do with it, or whether it is commercial content. The message above says which one and what the account allows. Sending it again unchanged will fail the same way.',
|
|
73
82
|
comments: 'There are no comments to read here. On LinkedIn only pages have a comment inbox: a personal profile publishes, but LinkedIn does not let any app read its comments. Retrying will fail the same way.',
|
|
74
83
|
};
|
|
75
84
|
const RATE_LIMIT_ADVICE = 'This one is temporary: nothing is wrong with the request and waiting fixes it. Retry after the seconds the Retry-After header asks for, and space the calls out if it keeps happening.';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../nodes/PlanVortex/transport/errors.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../nodes/PlanVortex/transport/errors.ts"],"names":[],"mappings":";;AAyMA,4CAQC;AAhND,yDAM4B;AA4C5B,MAAM,gBAAgB,GAA6D;IAClF,GAAG,EAAE,kFAAkF;CACvF,CAAC;AAUF,MAAM,WAAW,GAAiD;IAEjE,GAAG,EAAE,gMAAgM;IACrM,GAAG,EAAE,iMAAiM;IACtM,GAAG,EAAE,2GAA2G;IAChH,GAAG,EAAE,4JAA4J;IACjK,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GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrE,CAAC;IACD,OAAO,GAAG,CAAC;AACZ,CAAC"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-planvortex",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "n8n community node for PlanVortex: publish to social networks, upload media, read and reply to comments, and create account connect links.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://planvortex.com/en/developers",
|