@adaptive-ds/n8n-nodes-publer 1.1.11 → 1.1.13

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.
Files changed (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -50
  3. package/dist/credentials/PublerApi.credentials.d.ts +0 -1
  4. package/dist/credentials/PublerApi.credentials.js +0 -8
  5. package/dist/credentials/PublerApi.credentials.js.map +1 -1
  6. package/dist/nodes/PublerAccounts/PublerAccounts.node.d.ts +5 -0
  7. package/dist/nodes/PublerAccounts/PublerAccounts.node.js +121 -0
  8. package/dist/nodes/PublerAccounts/PublerAccounts.node.js.map +1 -0
  9. package/dist/nodes/PublerAccounts/PublerAccounts.spec.js +9 -0
  10. package/dist/nodes/PublerAccounts/PublerAccounts.spec.js.map +1 -0
  11. package/dist/nodes/PublerCompetitorAnalysis/PublerCompetitorAnalysis.node.d.ts +5 -0
  12. package/dist/nodes/PublerCompetitorAnalysis/PublerCompetitorAnalysis.node.js +219 -0
  13. package/dist/nodes/PublerCompetitorAnalysis/PublerCompetitorAnalysis.node.js.map +1 -0
  14. package/dist/nodes/PublerCompetitorAnalysis/PublerCompetitorAnalysis.spec.js +9 -0
  15. package/dist/nodes/PublerCompetitorAnalysis/PublerCompetitorAnalysis.spec.js.map +1 -0
  16. package/dist/nodes/PublerCompetitorList/PublerCompetitorList.node.d.ts +5 -0
  17. package/dist/nodes/PublerCompetitorList/PublerCompetitorList.node.js +131 -0
  18. package/dist/nodes/PublerCompetitorList/PublerCompetitorList.node.js.map +1 -0
  19. package/dist/nodes/PublerCompetitorList/PublerCompetitorList.spec.js +9 -0
  20. package/dist/nodes/PublerCompetitorList/PublerCompetitorList.spec.js.map +1 -0
  21. package/dist/nodes/PublerJobStatus/PublerJobStatus.node.d.ts +5 -0
  22. package/dist/nodes/PublerJobStatus/PublerJobStatus.node.js +131 -0
  23. package/dist/nodes/PublerJobStatus/PublerJobStatus.node.js.map +1 -0
  24. package/dist/nodes/PublerJobStatus/PublerJobStatus.spec.js +9 -0
  25. package/dist/nodes/PublerJobStatus/PublerJobStatus.spec.js.map +1 -0
  26. package/dist/nodes/PublerMe/PublerMe.node.js +30 -51
  27. package/dist/nodes/PublerMe/PublerMe.node.js.map +1 -1
  28. package/dist/nodes/PublerMe/PublerMe.spec.js +3 -2
  29. package/dist/nodes/PublerMe/PublerMe.spec.js.map +1 -1
  30. package/dist/nodes/PublerMediaImportFromUrl/PublerMediaImportFromUrl.node.d.ts +5 -0
  31. package/dist/nodes/PublerMediaImportFromUrl/PublerMediaImportFromUrl.node.js +194 -0
  32. package/dist/nodes/PublerMediaImportFromUrl/PublerMediaImportFromUrl.node.js.map +1 -0
  33. package/dist/nodes/PublerMediaImportFromUrl/PublerMediaImportFromUrl.spec.js +9 -0
  34. package/dist/nodes/PublerMediaImportFromUrl/PublerMediaImportFromUrl.spec.js.map +1 -0
  35. package/dist/nodes/PublerPostSchedule/PublerPostSchedule.node.d.ts +5 -0
  36. package/dist/nodes/PublerPostSchedule/PublerPostSchedule.node.js +259 -0
  37. package/dist/nodes/PublerPostSchedule/PublerPostSchedule.node.js.map +1 -0
  38. package/dist/nodes/PublerPostSchedule/PublerPostSchedule.spec.js +9 -0
  39. package/dist/nodes/PublerPostSchedule/PublerPostSchedule.spec.js.map +1 -0
  40. package/dist/nodes/PublerPostScheduleText/PublerPostScheduleText.node.d.ts +5 -0
  41. package/dist/nodes/PublerPostScheduleText/PublerPostScheduleText.node.js +176 -0
  42. package/dist/nodes/PublerPostScheduleText/PublerPostScheduleText.node.js.map +1 -0
  43. package/dist/nodes/PublerPostScheduleText/PublerPostScheduleText.spec.js +9 -0
  44. package/dist/nodes/PublerPostScheduleText/PublerPostScheduleText.spec.js.map +1 -0
  45. package/dist/nodes/PublerWorkspaceList/PublerWorkspaceList.node.d.ts +5 -0
  46. package/dist/nodes/PublerWorkspaceList/PublerWorkspaceList.node.js +99 -0
  47. package/dist/nodes/PublerWorkspaceList/PublerWorkspaceList.node.js.map +1 -0
  48. package/dist/nodes/PublerWorkspaceList/PublerWorkspaceList.spec.js +9 -0
  49. package/dist/nodes/PublerWorkspaceList/PublerWorkspaceList.spec.js.map +1 -0
  50. package/dist/package.json +38 -55
  51. package/package.json +38 -55
  52. package/dist/nodes/PublerAnalytics/PublerAnalytics.node.d.ts +0 -4
  53. package/dist/nodes/PublerAnalytics/PublerAnalytics.node.js +0 -75
  54. package/dist/nodes/PublerAnalytics/PublerAnalytics.node.js.map +0 -1
  55. package/dist/nodes/PublerAnalytics/PublerAnalytics.spec.js +0 -8
  56. package/dist/nodes/PublerAnalytics/PublerAnalytics.spec.js.map +0 -1
  57. package/dist/nodes/PublerAnalytics/logo.svg +0 -44
  58. package/dist/nodes/PublerAnalytics/openapi.json +0 -777
  59. package/dist/nodes/PublerBasic/PublerBasic.node.d.ts +0 -4
  60. package/dist/nodes/PublerBasic/PublerBasic.node.js +0 -75
  61. package/dist/nodes/PublerBasic/PublerBasic.node.js.map +0 -1
  62. package/dist/nodes/PublerBasic/PublerBasic.spec.js +0 -8
  63. package/dist/nodes/PublerBasic/PublerBasic.spec.js.map +0 -1
  64. package/dist/nodes/PublerBasic/logo.svg +0 -44
  65. package/dist/nodes/PublerBasic/openapi.json +0 -507
  66. package/dist/nodes/PublerCompetitors/PublerCompetitors.node.d.ts +0 -4
  67. package/dist/nodes/PublerCompetitors/PublerCompetitors.node.js +0 -75
  68. package/dist/nodes/PublerCompetitors/PublerCompetitors.node.js.map +0 -1
  69. package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.js +0 -8
  70. package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.js.map +0 -1
  71. package/dist/nodes/PublerCompetitors/logo.svg +0 -44
  72. package/dist/nodes/PublerCompetitors/openapi.json +0 -264
  73. package/dist/nodes/PublerLocations/PublerLocations.node.d.ts +0 -4
  74. package/dist/nodes/PublerLocations/PublerLocations.node.js +0 -75
  75. package/dist/nodes/PublerLocations/PublerLocations.node.js.map +0 -1
  76. package/dist/nodes/PublerLocations/PublerLocations.spec.js +0 -8
  77. package/dist/nodes/PublerLocations/PublerLocations.spec.js.map +0 -1
  78. package/dist/nodes/PublerLocations/logo.svg +0 -44
  79. package/dist/nodes/PublerLocations/openapi.json +0 -205
  80. package/dist/nodes/PublerMe/logo.svg +0 -44
  81. package/dist/nodes/PublerMedia/PublerMedia.node.d.ts +0 -4
  82. package/dist/nodes/PublerMedia/PublerMedia.node.js +0 -75
  83. package/dist/nodes/PublerMedia/PublerMedia.node.js.map +0 -1
  84. package/dist/nodes/PublerMedia/PublerMedia.spec.js +0 -8
  85. package/dist/nodes/PublerMedia/PublerMedia.spec.js.map +0 -1
  86. package/dist/nodes/PublerMedia/logo.svg +0 -44
  87. package/dist/nodes/PublerMedia/openapi.json +0 -346
  88. package/dist/nodes/PublerPosts/PublerPosts.node.d.ts +0 -4
  89. package/dist/nodes/PublerPosts/PublerPosts.node.js +0 -75
  90. package/dist/nodes/PublerPosts/PublerPosts.node.js.map +0 -1
  91. package/dist/nodes/PublerPosts/PublerPosts.spec.js +0 -8
  92. package/dist/nodes/PublerPosts/PublerPosts.spec.js.map +0 -1
  93. package/dist/nodes/PublerPosts/logo.svg +0 -44
  94. package/dist/nodes/PublerPosts/openapi.json +0 -536
  95. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.d.ts +0 -4
  96. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.js +0 -75
  97. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.js.map +0 -1
  98. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.js +0 -8
  99. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.js.map +0 -1
  100. package/dist/nodes/PublerPostsPublish/logo.svg +0 -44
  101. package/dist/nodes/PublerPostsPublish/openapi.json +0 -229
  102. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.d.ts +0 -4
  103. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.js +0 -75
  104. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.js.map +0 -1
  105. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.js +0 -8
  106. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.js.map +0 -1
  107. package/dist/nodes/PublerPostsSchedule/logo.svg +0 -44
  108. package/dist/nodes/PublerPostsSchedule/openapi.json +0 -235
  109. /package/dist/nodes/{PublerAnalytics/PublerAnalytics.spec.d.ts → PublerAccounts/PublerAccounts.spec.d.ts} +0 -0
  110. /package/dist/nodes/{PublerBasic/PublerBasic.spec.d.ts → PublerCompetitorAnalysis/PublerCompetitorAnalysis.spec.d.ts} +0 -0
  111. /package/dist/nodes/{PublerCompetitors/PublerCompetitors.spec.d.ts → PublerCompetitorList/PublerCompetitorList.spec.d.ts} +0 -0
  112. /package/dist/nodes/{PublerLocations/PublerLocations.spec.d.ts → PublerJobStatus/PublerJobStatus.spec.d.ts} +0 -0
  113. /package/dist/nodes/{PublerMedia/PublerMedia.spec.d.ts → PublerMediaImportFromUrl/PublerMediaImportFromUrl.spec.d.ts} +0 -0
  114. /package/dist/nodes/{PublerPosts/PublerPosts.spec.d.ts → PublerPostSchedule/PublerPostSchedule.spec.d.ts} +0 -0
  115. /package/dist/nodes/{PublerPostsPublish/PublerPostsPublish.spec.d.ts → PublerPostScheduleText/PublerPostScheduleText.spec.d.ts} +0 -0
  116. /package/dist/nodes/{PublerPostsSchedule/PublerPostsSchedule.spec.d.ts → PublerWorkspaceList/PublerWorkspaceList.spec.d.ts} +0 -0
@@ -1,4 +0,0 @@
1
- import { INodeType, INodeTypeDescription } from "n8n-workflow";
2
- export declare class PublerBasic implements INodeType {
3
- description: INodeTypeDescription;
4
- }
@@ -1,75 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.PublerBasic = void 0;
37
- const n8n_openapi_node_1 = require("@devlikeapro/n8n-openapi-node");
38
- const doc = __importStar(require("./openapi.json"));
39
- const config = {};
40
- const parser = new n8n_openapi_node_1.N8NPropertiesBuilder(doc, config);
41
- const properties = parser.build();
42
- class PublerBasic {
43
- constructor() {
44
- this.description = {
45
- displayName: "Publer Basic",
46
- name: "publerBasic",
47
- icon: "file:logo.svg",
48
- group: ["transform"],
49
- version: 1,
50
- subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
51
- description: "Interact with Publer Basic API - Users, Workspaces, Accounts, Job Status",
52
- defaults: {
53
- name: "Publer Basic",
54
- },
55
- inputs: ["main"],
56
- outputs: ["main"],
57
- credentials: [
58
- {
59
- name: "publerApi",
60
- required: true,
61
- },
62
- ],
63
- requestDefaults: {
64
- headers: {
65
- Accept: "application/json",
66
- "Content-Type": "application/json",
67
- },
68
- baseURL: "https://app.publer.com",
69
- },
70
- properties: properties,
71
- };
72
- }
73
- }
74
- exports.PublerBasic = PublerBasic;
75
- //# sourceMappingURL=PublerBasic.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublerBasic.node.js","sourceRoot":"","sources":["../../../nodes/PublerBasic/PublerBasic.node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,oEAAgG;AAChG,oDAAqC;AAErC,MAAM,MAAM,GAA+B,EAAE,CAAA;AAC7C,MAAM,MAAM,GAAG,IAAI,uCAAoB,CAAC,GAAG,EAAE,MAAM,CAAC,CAAA;AACpD,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,EAAE,CAAA;AAEjC,MAAa,WAAW;IAAxB;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,cAAc;YAC3B,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,0EAA0E;YACvF,QAAQ,EAAE;gBACR,IAAI,EAAE,cAAc;aACrB;YACD,MAAM,EAAE,CAAC,MAAM,CAAC;YAChB,OAAO,EAAE,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE;gBACX;oBACE,IAAI,EAAE,WAAW;oBACjB,QAAQ,EAAE,IAAI;iBACf;aACF;YACD,eAAe,EAAE;gBACf,OAAO,EAAE;oBACP,MAAM,EAAE,kBAAkB;oBAC1B,cAAc,EAAE,kBAAkB;iBACnC;gBACD,OAAO,EAAE,wBAAwB;aAClC;YACD,UAAU,EAAE,UAAU;SACvB,CAAA;IACH,CAAC;CAAA;AA7BD,kCA6BC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const PublerBasic_node_1 = require("./PublerBasic.node");
4
- test("PublerBasic", () => {
5
- const node = new PublerBasic_node_1.PublerBasic();
6
- expect(node.description.properties).toBeDefined();
7
- });
8
- //# sourceMappingURL=PublerBasic.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublerBasic.spec.js","sourceRoot":"","sources":["../../../nodes/PublerBasic/PublerBasic.spec.ts"],"names":[],"mappings":";;AAAA,yDAAgD;AAEhD,IAAI,CAAC,aAAa,EAAE,GAAG,EAAE;IACvB,MAAM,IAAI,GAAG,IAAI,8BAAW,EAAE,CAAA;IAC9B,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAA;AACnD,CAAC,CAAC,CAAA"}
@@ -1,44 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 115 38" height='38' width="115">
2
- <path
3
- fill="#113A54"
4
- d="M43.6 31V13.4h7.7c1 0 1.8.1 2.6.4.6.3 1.1.7 1.5 1.2.4.6.7 1.2.8 1.9a14 14 0 0 1 0 4.7c-.1.6-.4 1.3-.8 1.8-.3.6-.9 1-1.5 1.2-.8.3-1.7.4-2.6.4H47v6h-3.5Zm3.5-8.8h2.8c.5 0 1.1 0 1.6-.2.4 0 .7-.2 1-.4l.3-.9.2-1.5c0-.5 0-1-.2-1.4l-.3-.9c-.3-.2-.6-.4-.9-.4l-1.6-.1h-3v5.8ZM63 31.1c-.7 0-1.4 0-2-.3-.5-.2-.9-.5-1.2-1-.3-.4-.5-1-.5-1.5A14 14 0 0 1 59 26v-8h3.2v6.8l.1 1.9c0 .4.1.7.3 1 .2.2.4.4.7.4l1.1.1c.4 0 .9 0 1.3-.2.3 0 .5-.3.7-.6l.2-1V18H70v13h-3l-.1-1.6h-.2a3 3 0 0 1-.9 1c-.3.3-.8.5-1.2.6-.6.1-1.1.2-1.7.1Zm17.4 0-1.5-.1-1.2-.5a3 3 0 0 1-1-1.2h-.2l-.1 1.7h-3V12h3.2v7.4h.2a2 2 0 0 1 1-1c.3-.3.7-.4 1.1-.5a7.3 7.3 0 0 1 3.4.2c.5.2 1 .6 1.3 1.1.4.6.6 1.3.7 2a18.9 18.9 0 0 1 0 6.5c0 .8-.3 1.5-.7 2-.3.6-.8 1-1.3 1.2-.6.2-1.3.3-2 .2ZM79 28.2h1.3c.3-.1.5-.3.7-.6.2-.3.3-.7.3-1v-4.2a2 2 0 0 0-.3-1.1c-.2-.3-.4-.4-.7-.5a5 5 0 0 0-1.3-.1 4 4 0 0 0-1.2.1 1.1 1.1 0 0 0-.7.6l-.4 1.2a15.5 15.5 0 0 0 0 3.6c0 .5.2.9.4 1.2.1.3.4.5.7.6.4.2.8.2 1.2.2Zm8.6 2.8V12h3.2v19h-3.2Zm12.2.1c-1 0-1.8 0-2.7-.2a4 4 0 0 1-1.8-.7c-.4-.3-.7-.8-1-1.3-.2-.6-.3-1.2-.3-1.9l-.1-2.5.1-3c.1-.8.4-1.5.7-2.1.5-.6 1-1 1.7-1.2 1-.3 2-.4 3-.4s1.8 0 2.6.2c.6.2 1 .4 1.5.8.4.3.7.8.9 1.3.2.6.3 1.2.3 1.9v3.5H97l.1 1.6c0 .3.2.6.4.9l1 .4h4.5l1.3-.2v2.5l-1.3.2-1.7.2h-1.5Zm1.9-7.3v-.4l-.1-1.6c0-.3-.2-.6-.4-.9l-.7-.4h-2.3c-.3.1-.6.2-.8.5l-.3.9v1.5h5l-.4.4Zm6.1 7.2V18h3v2.2h.2c.2-.6.5-1.1.9-1.5.3-.4.8-.7 1.3-.8l1.8-.1V21a5 5 0 0 0-2.4.5c-.6.3-1 .8-1.3 1.5-.3.9-.4 1.8-.3 2.8V31h-3.2Z"
5
- />
6
- <path
7
- fill="url(#publer_logo_letter)"
8
- d="m31 34.4 7.1-28.8a4.3 4.3 0 0 0-.4-3.1A4 4 0 0 0 35.3.6l-1-.1H3.8a3.7 3.7 0 0 0-2.7 1.2A4 4 0 0 0 0 4.6l.1 1 7 28.8a4 4 0 0 0 1.4 2.2c.7.6 1.5.9 2.4.9h16.4c.9 0 1.7-.3 2.4-.9.7-.5 1.1-1.3 1.4-2.2Z"
9
- />
10
- <path
11
- fill="#fff"
12
- d="M30.6 5.5h-23a2 2 0 0 0-1.5.7 2.3 2.3 0 0 0-.6 2.1L11 30.8c.1.5.4 1 .8 1.2.3.3.8.5 1.3.5h2.5a2 2 0 0 0 1.5-.7 2.3 2.3 0 0 0 .6-1.6v-.5l-1-4.6-2.4-1.6h13c.5 0 1-.2 1.3-.5.4-.3.7-.7.8-1.2l3.3-13.5a2.4 2.4 0 0 0-.3-1.7 2.2 2.2 0 0 0-1.3-1 2 2 0 0 0-.5 0Z"
13
- />
14
- <path
15
- fill="url(#publer_logo_text)"
16
- d="m11.3 12 2.4 1.9.5 2.1c0 .3.2.5.4.7.2.2.5.3.7.3H24c.2 0 .5 0 .7-.3.2-.1.4-.4.5-.7l.6-4H11.3Z"
17
- />
18
- <defs>
19
- <linearGradient
20
- id="publer_logo_letter"
21
- x1="-11.6"
22
- x2="37"
23
- y1="52.6"
24
- y2="-1.9"
25
- gradientUnits="userSpaceOnUse"
26
- >
27
- <stop offset=".5" stop-color="#00C2FF" />
28
- <stop offset=".8" stop-color="#00E2CE" />
29
- <stop offset="1" stop-color="#00FAA8" />
30
- </linearGradient>
31
- <linearGradient
32
- id="publer_logo_text"
33
- x1="-141.9"
34
- x2="-26.2"
35
- y1="-38.3"
36
- y2="348.4"
37
- gradientUnits="userSpaceOnUse"
38
- >
39
- <stop offset=".5" stop-color="#00C2FF" />
40
- <stop offset=".8" stop-color="#00E2CE" />
41
- <stop offset="1" stop-color="#00FAA8" />
42
- </linearGradient>
43
- </defs>
44
- </svg>
@@ -1,507 +0,0 @@
1
- {
2
- "openapi": "3.1.1",
3
- "info": {
4
- "title": "Publer Basic API",
5
- "description": "Basic endpoints for Publer API including users, workspaces, accounts, and job status.",
6
- "version": "1.0.0"
7
- },
8
- "servers": [
9
- {
10
- "url": "https://app.publer.com/api/v1"
11
- }
12
- ],
13
- "security": [
14
- {
15
- "publerApi": []
16
- }
17
- ],
18
- "components": {
19
- "securitySchemes": {
20
- "publerApi": {
21
- "type": "apiKey",
22
- "name": "Authorization",
23
- "in": "header",
24
- "description": "API key authentication. Format: \"Bearer-API YOUR_API_KEY\""
25
- }
26
- },
27
- "schemas": {
28
- "User": {
29
- "type": "object",
30
- "description": "User information",
31
- "required": ["id", "email"],
32
- "properties": {
33
- "id": {
34
- "type": "string",
35
- "description": "Unique identifier for the user"
36
- },
37
- "email": {
38
- "type": "string",
39
- "format": "email",
40
- "description": "Email address of the user"
41
- },
42
- "name": {
43
- "type": "string",
44
- "description": "Full name of the user"
45
- },
46
- "first_name": {
47
- "type": "string",
48
- "description": "First name of the user"
49
- },
50
- "picture": {
51
- "type": "string",
52
- "description": "URL to the profile picture of the user"
53
- }
54
- }
55
- },
56
- "Workspace": {
57
- "type": "object",
58
- "description": "Workspace information",
59
- "required": ["id", "name", "members"],
60
- "properties": {
61
- "id": {
62
- "type": "string",
63
- "description": "Unique identifier for the workspace"
64
- },
65
- "owner": {
66
- "$ref": "#/components/schemas/WorkspaceOwner"
67
- },
68
- "name": {
69
- "type": "string",
70
- "description": "The workspace's display name"
71
- },
72
- "members": {
73
- "type": "array",
74
- "description": "List of users with access to the workspace",
75
- "minItems": 0,
76
- "maxItems": 1000,
77
- "items": {
78
- "type": "object",
79
- "additionalProperties": true
80
- }
81
- },
82
- "plan": {
83
- "type": "string",
84
- "description": "Subscription plan of the workspace"
85
- },
86
- "picture": {
87
- "type": "string",
88
- "description": "URL to the workspace's logo"
89
- }
90
- }
91
- },
92
- "Account": {
93
- "type": "object",
94
- "description": "Social media account information",
95
- "required": ["id", "provider", "type"],
96
- "properties": {
97
- "id": {
98
- "type": "string",
99
- "description": "Unique identifier for the account",
100
- "minLength": 1,
101
- "maxLength": 255,
102
- "pattern": "^[a-zA-Z0-9_-]+$"
103
- },
104
- "provider": {
105
- "type": "string",
106
- "description": "The social network provider",
107
- "enum": [
108
- "bluesky",
109
- "facebook",
110
- "instagram",
111
- "linkedin",
112
- "twitter",
113
- "tiktok",
114
- "youtube",
115
- "pinterest",
116
- "google",
117
- "wordpress_basic",
118
- "wordpress_oauth",
119
- "telegram",
120
- "mastodon",
121
- "threads"
122
- ]
123
- },
124
- "name": {
125
- "type": "string",
126
- "description": "The display name of the social media account",
127
- "minLength": 1,
128
- "maxLength": 255
129
- },
130
- "social_id": {
131
- "type": "string",
132
- "description": "Unique identifier for the account on the social media platform",
133
- "minLength": 1,
134
- "maxLength": 255
135
- },
136
- "picture": {
137
- "type": "string",
138
- "description": "URL to the account's avatar/logo",
139
- "minLength": 1,
140
- "maxLength": 2048,
141
- "format": "url"
142
- },
143
- "type": {
144
- "type": "string",
145
- "description": "Account type",
146
- "enum": ["page", "profile", "group", "business", "channel", "location", "blog"]
147
- }
148
- }
149
- },
150
- "AccountsResponse": {
151
- "type": "object",
152
- "description": "Wrapper object for accounts list response",
153
- "required": ["accounts"],
154
- "properties": {
155
- "accounts": {
156
- "type": "array",
157
- "description": "List of social media accounts",
158
- "minItems": 0,
159
- "maxItems": 1000,
160
- "items": {
161
- "$ref": "#/components/schemas/Account"
162
- }
163
- }
164
- }
165
- },
166
- "WorkspacesResponse": {
167
- "type": "object",
168
- "description": "Wrapper object for workspaces list response",
169
- "required": ["workspaces"],
170
- "properties": {
171
- "workspaces": {
172
- "type": "array",
173
- "description": "List of workspaces",
174
- "minItems": 0,
175
- "maxItems": 1000,
176
- "items": {
177
- "$ref": "#/components/schemas/Workspace"
178
- }
179
- }
180
- }
181
- },
182
- "SignaturesResponse": {
183
- "type": "object",
184
- "description": "Response object for signatures endpoint",
185
- "required": ["signatures"],
186
- "properties": {
187
- "signatures": {
188
- "type": "array",
189
- "description": "List of signatures",
190
- "minItems": 0,
191
- "maxItems": 1000,
192
- "items": {
193
- "type": "object",
194
- "additionalProperties": true
195
- }
196
- }
197
- }
198
- },
199
- "MediaOptionsResponse": {
200
- "type": "object",
201
- "description": "Response object for media options endpoint",
202
- "properties": {
203
- "media_options": {
204
- "type": "object",
205
- "description": "Media options configuration",
206
- "additionalProperties": true
207
- }
208
- }
209
- },
210
- "JobStatusResponse": {
211
- "type": "object",
212
- "description": "Response object for job status endpoint",
213
- "properties": {
214
- "status": {
215
- "type": "string",
216
- "description": "Current status of the job"
217
- }
218
- }
219
- },
220
- "WorkspaceOwner": {
221
- "type": "object",
222
- "description": "Information about the workspace owner",
223
- "properties": {
224
- "id": {
225
- "type": "string",
226
- "description": "Unique identifier for the owner"
227
- },
228
- "email": {
229
- "type": "string",
230
- "description": "Email address of the owner"
231
- },
232
- "name": {
233
- "type": "string",
234
- "description": "Username of the owner"
235
- },
236
- "first_name": {
237
- "type": "string",
238
- "description": "First name of the owner"
239
- },
240
- "picture": {
241
- "type": "string",
242
- "description": "URL to the owner's profile picture"
243
- }
244
- }
245
- }
246
- }
247
- },
248
- "tags": [
249
- {
250
- "name": "USERS"
251
- },
252
- {
253
- "name": "WORKSPACES"
254
- },
255
- {
256
- "name": "ACCOUNTS"
257
- },
258
- {
259
- "name": "JOB STATUS"
260
- }
261
- ],
262
- "paths": {
263
- "/users/me": {
264
- "get": {
265
- "tags": ["USERS"],
266
- "summary": "Me",
267
- "description": "Retrieve the current authenticated user's information",
268
- "operationId": "get_current_user",
269
- "responses": {
270
- "200": {
271
- "description": "Successful response",
272
- "content": {
273
- "application/json": {
274
- "schema": {
275
- "$ref": "#/components/schemas/User"
276
- },
277
- "example": {
278
- "id": "12345",
279
- "email": "user@example.com",
280
- "name": "John Doe",
281
- "first_name": "John",
282
- "picture": "https://example.com/picture.jpg"
283
- }
284
- }
285
- }
286
- }
287
- }
288
- }
289
- },
290
- "/workspaces": {
291
- "get": {
292
- "tags": ["WORKSPACES"],
293
- "summary": "Fetch workspaces",
294
- "description": "Retrieve all workspaces accessible to the current user",
295
- "operationId": "list_workspaces",
296
- "responses": {
297
- "200": {
298
- "description": "Successful response",
299
- "content": {
300
- "application/json": {
301
- "schema": {
302
- "$ref": "#/components/schemas/WorkspacesResponse"
303
- },
304
- "example": {
305
- "workspaces": [
306
- {
307
- "id": "ws_123",
308
- "name": "My Workspace",
309
- "members": []
310
- }
311
- ]
312
- }
313
- }
314
- }
315
- }
316
- }
317
- }
318
- },
319
- "/workspaces/{workspace_id}/signatures": {
320
- "get": {
321
- "tags": ["WORKSPACES"],
322
- "summary": "Fetch signatures",
323
- "description": "Retrieve signatures for the specified workspace and accounts",
324
- "operationId": "get_signatures",
325
- "parameters": [
326
- {
327
- "name": "workspace_id",
328
- "in": "path",
329
- "description": "The unique identifier of the workspace",
330
- "schema": {
331
- "type": "string",
332
- "minLength": 1,
333
- "maxLength": 255
334
- },
335
- "required": true
336
- },
337
- {
338
- "name": "accounts",
339
- "in": "query",
340
- "description": "Array of account IDs to fetch signatures for",
341
- "schema": {
342
- "type": "string",
343
- "minLength": 1,
344
- "maxLength": 255
345
- },
346
- "example": "647a0edddb2797b89044e2c1"
347
- }
348
- ],
349
- "responses": {
350
- "200": {
351
- "description": "Successful response",
352
- "content": {
353
- "application/json": {
354
- "schema": {
355
- "$ref": "#/components/schemas/SignaturesResponse"
356
- },
357
- "example": {
358
- "signatures": []
359
- }
360
- }
361
- }
362
- }
363
- }
364
- }
365
- },
366
- "/workspaces/{workspace_id}/media_options": {
367
- "get": {
368
- "tags": ["WORKSPACES"],
369
- "summary": "Fetch media options",
370
- "description": "Retrieve media options for the specified workspace and accounts",
371
- "operationId": "get_media_options",
372
- "parameters": [
373
- {
374
- "name": "workspace_id",
375
- "in": "path",
376
- "description": "The unique identifier of the workspace",
377
- "schema": {
378
- "type": "string",
379
- "minLength": 1,
380
- "maxLength": 255
381
- },
382
- "required": true
383
- },
384
- {
385
- "name": "accounts",
386
- "in": "query",
387
- "description": "Array of account IDs to fetch media options for",
388
- "schema": {
389
- "type": "string",
390
- "minLength": 1,
391
- "maxLength": 255
392
- },
393
- "example": "661ce240db2797a7148a6b49",
394
- "required": true
395
- }
396
- ],
397
- "responses": {
398
- "200": {
399
- "description": "Successful response",
400
- "content": {
401
- "application/json": {
402
- "schema": {
403
- "$ref": "#/components/schemas/MediaOptionsResponse"
404
- },
405
- "example": {
406
- "media_options": {}
407
- }
408
- }
409
- }
410
- }
411
- }
412
- }
413
- },
414
- "/accounts": {
415
- "get": {
416
- "tags": ["ACCOUNTS"],
417
- "summary": "List Accounts",
418
- "description": "Retrieve all social media accounts for the specified workspace",
419
- "operationId": "list_accounts",
420
- "parameters": [
421
- {
422
- "name": "Publer-Workspace-Id",
423
- "in": "header",
424
- "description": "The unique identifier of the workspace",
425
- "schema": {
426
- "type": "string",
427
- "minLength": 1,
428
- "maxLength": 255
429
- },
430
- "example": "{{workspace_id}}",
431
- "required": true
432
- }
433
- ],
434
- "responses": {
435
- "200": {
436
- "description": "Successful response",
437
- "content": {
438
- "application/json": {
439
- "schema": {
440
- "$ref": "#/components/schemas/AccountsResponse"
441
- },
442
- "example": {
443
- "accounts": [
444
- {
445
- "id": "acc_123",
446
- "provider": "facebook",
447
- "type": "page",
448
- "name": "My Page"
449
- }
450
- ]
451
- }
452
- }
453
- }
454
- }
455
- }
456
- }
457
- },
458
- "/job_status/{job_id}": {
459
- "get": {
460
- "tags": ["JOB STATUS"],
461
- "summary": "Job status",
462
- "description": "Check the status of an asynchronous job",
463
- "operationId": "get_job_status",
464
- "parameters": [
465
- {
466
- "name": "job_id",
467
- "in": "path",
468
- "description": "The unique identifier of the job",
469
- "schema": {
470
- "type": "string",
471
- "minLength": 1,
472
- "maxLength": 255
473
- },
474
- "required": true
475
- },
476
- {
477
- "name": "Publer-Workspace-Id",
478
- "in": "header",
479
- "description": "The unique identifier of the workspace",
480
- "schema": {
481
- "type": "string",
482
- "minLength": 1,
483
- "maxLength": 255
484
- },
485
- "example": "{{workspace_id}}",
486
- "required": true
487
- }
488
- ],
489
- "responses": {
490
- "200": {
491
- "description": "Successful response",
492
- "content": {
493
- "application/json": {
494
- "schema": {
495
- "$ref": "#/components/schemas/JobStatusResponse"
496
- },
497
- "example": {
498
- "status": "completed"
499
- }
500
- }
501
- }
502
- }
503
- }
504
- }
505
- }
506
- }
507
- }
@@ -1,4 +0,0 @@
1
- import { INodeType, INodeTypeDescription } from "n8n-workflow";
2
- export declare class PublerCompetitors implements INodeType {
3
- description: INodeTypeDescription;
4
- }