@cuehq/n8n-nodes-cue 0.1.3 → 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.
|
@@ -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;
|
|
@@ -327,10 +329,25 @@ export class Cue {
|
|
|
327
329
|
show: {
|
|
328
330
|
resource: ["post"],
|
|
329
331
|
operation: ["create"],
|
|
332
|
+
autoSchedule: [false],
|
|
330
333
|
},
|
|
331
334
|
},
|
|
332
335
|
description: "When to publish the post (ISO 8601 format). Leave empty for draft.",
|
|
333
336
|
},
|
|
337
|
+
// Auto Schedule
|
|
338
|
+
{
|
|
339
|
+
displayName: "Auto-Schedule",
|
|
340
|
+
name: "autoSchedule",
|
|
341
|
+
type: "boolean",
|
|
342
|
+
default: false,
|
|
343
|
+
displayOptions: {
|
|
344
|
+
show: {
|
|
345
|
+
resource: ["post"],
|
|
346
|
+
operation: ["create"],
|
|
347
|
+
},
|
|
348
|
+
},
|
|
349
|
+
description: "Automatically schedule each platform for optimal posting times based on engagement windows",
|
|
350
|
+
},
|
|
334
351
|
// Publish Now
|
|
335
352
|
{
|
|
336
353
|
displayName: "Publish Immediately",
|
|
@@ -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.4",
|
|
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
|
+
}
|