@cuehq/n8n-nodes-cue 0.1.3 → 0.1.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Cue.node.d.ts","sourceRoot":"","sources":["../../../src/nodes/Cue/Cue.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACT,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAEtB,qBAAa,GAAI,YAAW,SAAS;IACnC,WAAW,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"Cue.node.d.ts","sourceRoot":"","sources":["../../../src/nodes/Cue/Cue.node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACrB,SAAS,EACT,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAEtB,qBAAa,GAAI,YAAW,SAAS;IACnC,WAAW,EAAE,oBAAoB,CAyc/B;IAEF,OAAO;;8BAEqB,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;oCAuBhD,qBAAqB,GAAG,OAAO,CAAC,qBAAqB,CAAC;;MAyBtF;CACH"}
|
|
@@ -78,6 +78,7 @@ export class Cue {
|
|
|
78
78
|
const profileId = typeof profileIdParam === "string" ? profileIdParam : profileIdParam.value;
|
|
79
79
|
const platforms = this.getNodeParameter("platforms.platform", []);
|
|
80
80
|
const scheduledAt = this.getNodeParameter("scheduledAt", "");
|
|
81
|
+
const autoSchedule = this.getNodeParameter("autoSchedule", false);
|
|
81
82
|
const publishNow = this.getNodeParameter("publishNow", false);
|
|
82
83
|
// Build V2 format body
|
|
83
84
|
const platformsObj = {};
|
|
@@ -94,6 +95,7 @@ export class Cue {
|
|
|
94
95
|
profileId,
|
|
95
96
|
platforms: platformsObj,
|
|
96
97
|
...(scheduledAt && { scheduledAt }),
|
|
98
|
+
...(autoSchedule && { autoSchedule }),
|
|
97
99
|
...(publishNow && { publishNow }),
|
|
98
100
|
};
|
|
99
101
|
return requestOptions;
|
|
@@ -316,6 +318,20 @@ export class Cue {
|
|
|
316
318
|
],
|
|
317
319
|
description: "The platforms to post to with their content",
|
|
318
320
|
},
|
|
321
|
+
// Auto Schedule - must be defined before fields that reference it in displayOptions
|
|
322
|
+
{
|
|
323
|
+
displayName: "Auto-Schedule",
|
|
324
|
+
name: "autoSchedule",
|
|
325
|
+
type: "boolean",
|
|
326
|
+
default: false,
|
|
327
|
+
displayOptions: {
|
|
328
|
+
show: {
|
|
329
|
+
resource: ["post"],
|
|
330
|
+
operation: ["create"],
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
description: "Automatically schedule each platform for optimal posting times based on engagement windows",
|
|
334
|
+
},
|
|
319
335
|
// Scheduled At
|
|
320
336
|
{
|
|
321
337
|
displayName: "Scheduled At",
|
|
@@ -327,6 +343,7 @@ export class Cue {
|
|
|
327
343
|
show: {
|
|
328
344
|
resource: ["post"],
|
|
329
345
|
operation: ["create"],
|
|
346
|
+
autoSchedule: [false],
|
|
330
347
|
},
|
|
331
348
|
},
|
|
332
349
|
description: "When to publish the post (ISO 8601 format). Leave empty for draft.",
|
|
@@ -341,6 +358,7 @@ export class Cue {
|
|
|
341
358
|
show: {
|
|
342
359
|
resource: ["post"],
|
|
343
360
|
operation: ["create"],
|
|
361
|
+
autoSchedule: [false],
|
|
344
362
|
},
|
|
345
363
|
},
|
|
346
364
|
description: "Whether to publish the post immediately instead of scheduling",
|
|
@@ -398,7 +416,6 @@ export class Cue {
|
|
|
398
416
|
options: [
|
|
399
417
|
{ name: "Draft", value: "draft" },
|
|
400
418
|
{ name: "Scheduled", value: "scheduled" },
|
|
401
|
-
{ name: "Queued", value: "queued" },
|
|
402
419
|
{ name: "Publishing", value: "publishing" },
|
|
403
420
|
{ name: "Published", value: "published" },
|
|
404
421
|
{ name: "Failed", value: "failed" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cuehq/n8n-nodes-cue",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "n8n community node for Cue - Social media scheduling API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"n8n-community-node-package",
|
|
@@ -17,6 +17,12 @@
|
|
|
17
17
|
},
|
|
18
18
|
"main": "dist/nodes/Cue/Cue.node.js",
|
|
19
19
|
"type": "module",
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc && pnpm copy-assets",
|
|
22
|
+
"copy-assets": "shx cp src/nodes/Cue/cue.svg dist/nodes/Cue/ && shx cp src/nodes/Cue/Cue.node.json dist/nodes/Cue/",
|
|
23
|
+
"typecheck": "tsc --noEmit",
|
|
24
|
+
"prepublishOnly": "pnpm build"
|
|
25
|
+
},
|
|
20
26
|
"files": [
|
|
21
27
|
"dist"
|
|
22
28
|
],
|
|
@@ -33,10 +39,5 @@
|
|
|
33
39
|
"n8n-workflow": "^1.0.0",
|
|
34
40
|
"shx": "0.4.0",
|
|
35
41
|
"typescript": "^5.7.2"
|
|
36
|
-
},
|
|
37
|
-
"scripts": {
|
|
38
|
-
"build": "tsc && pnpm copy-assets",
|
|
39
|
-
"copy-assets": "shx cp src/nodes/Cue/cue.svg dist/nodes/Cue/ && shx cp src/nodes/Cue/Cue.node.json dist/nodes/Cue/",
|
|
40
|
-
"typecheck": "tsc --noEmit"
|
|
41
42
|
}
|
|
42
|
-
}
|
|
43
|
+
}
|