@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,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.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0 .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,229 +0,0 @@
1
- {
2
- "openapi": "3.1.1",
3
- "info": {
4
- "title": "Publer Posts Publish API",
5
- "description": "Post publishing endpoints for Publer API including immediate publishing.",
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
- "MediaAttachment": {
29
- "type": "object",
30
- "description": "Media attachment for a post",
31
- "properties": {
32
- "id": {
33
- "type": "string",
34
- "description": "Media asset ID from upload"
35
- },
36
- "type": {
37
- "type": "string",
38
- "enum": ["photo", "video", "document"],
39
- "description": "Media type"
40
- },
41
- "caption": {
42
- "type": "string",
43
- "description": "Media caption"
44
- },
45
- "alt_text": {
46
- "type": "string",
47
- "description": "Alt text for accessibility"
48
- }
49
- }
50
- },
51
- "NetworkPostContent": {
52
- "type": "object",
53
- "description": "Per-network post configuration",
54
- "properties": {
55
- "type": {
56
- "type": "string",
57
- "enum": [
58
- "status",
59
- "photo",
60
- "video",
61
- "link",
62
- "carousel",
63
- "story",
64
- "reel",
65
- "gif",
66
- "poll",
67
- "document",
68
- "event",
69
- "offer"
70
- ],
71
- "description": "Content type",
72
- "example": "status"
73
- },
74
- "text": {
75
- "type": "string",
76
- "description": "Post text content",
77
- "example": "Hello world!"
78
- },
79
- "media": {
80
- "type": "array",
81
- "description": "Media attachments (required for photo, video, carousel, story, reel, gif types)",
82
- "items": {
83
- "$ref": "#/components/schemas/MediaAttachment"
84
- }
85
- },
86
- "url": {
87
- "type": "string",
88
- "description": "URL for link posts (required when type=link)",
89
- "example": "https://publer.com"
90
- }
91
- }
92
- },
93
- "TargetAccount": {
94
- "type": "object",
95
- "description": "Target social media account",
96
- "required": ["id"],
97
- "properties": {
98
- "id": {
99
- "type": "string",
100
- "description": "Account ID",
101
- "example": "647a0edddb2797b89044e2c1"
102
- }
103
- }
104
- },
105
- "PostToPublish": {
106
- "type": "object",
107
- "description": "Post data for publishing",
108
- "required": ["networks", "accounts"],
109
- "properties": {
110
- "networks": {
111
- "type": "object",
112
- "description": "Network-specific post content",
113
- "additionalProperties": {
114
- "$ref": "#/components/schemas/NetworkPostContent"
115
- }
116
- },
117
- "accounts": {
118
- "type": "array",
119
- "description": "Target social media accounts",
120
- "items": {
121
- "$ref": "#/components/schemas/TargetAccount"
122
- }
123
- }
124
- }
125
- },
126
- "BulkPublishConfig": {
127
- "type": "object",
128
- "description": "Bulk publishing configuration",
129
- "required": ["state", "posts"],
130
- "properties": {
131
- "state": {
132
- "type": "string",
133
- "enum": ["published"],
134
- "description": "Must be 'published' for immediate publishing",
135
- "example": "published"
136
- },
137
- "posts": {
138
- "type": "array",
139
- "description": "Posts to publish",
140
- "items": {
141
- "$ref": "#/components/schemas/PostToPublish"
142
- }
143
- }
144
- }
145
- },
146
- "PublishPostRequest": {
147
- "type": "object",
148
- "description": "Request body for publishing posts immediately",
149
- "required": ["bulk"],
150
- "properties": {
151
- "bulk": {
152
- "$ref": "#/components/schemas/BulkPublishConfig"
153
- }
154
- }
155
- },
156
- "PublishPostResponse": {
157
- "type": "object",
158
- "description": "Response after publishing posts",
159
- "properties": {
160
- "success": {
161
- "type": "boolean",
162
- "description": "Whether the publish was successful"
163
- },
164
- "published": {
165
- "type": "array",
166
- "description": "List of published post IDs",
167
- "items": {
168
- "type": "string"
169
- }
170
- }
171
- },
172
- "required": ["published"]
173
- }
174
- }
175
- },
176
- "tags": [
177
- {
178
- "name": "POSTS > PUBLISHING"
179
- }
180
- ],
181
- "paths": {
182
- "/posts/schedule/publish": {
183
- "post": {
184
- "tags": ["POSTS > PUBLISHING"],
185
- "summary": "Publish immediately",
186
- "description": "Publish a post immediately. Supports text, photo, video, link, carousel, story, reel, and gif content types.",
187
- "operationId": "publish_post_immediately",
188
- "requestBody": {
189
- "required": true,
190
- "content": {
191
- "application/json": {
192
- "schema": {
193
- "$ref": "#/components/schemas/PublishPostRequest"
194
- }
195
- }
196
- }
197
- },
198
- "parameters": [
199
- {
200
- "name": "Publer-Workspace-Id",
201
- "in": "header",
202
- "schema": {
203
- "type": "string"
204
- },
205
- "example": "{{workspace_id}}",
206
- "required": true,
207
- "description": "Workspace ID to publish posts in"
208
- }
209
- ],
210
- "responses": {
211
- "200": {
212
- "description": "Successful response",
213
- "content": {
214
- "application/json": {
215
- "schema": {
216
- "$ref": "#/components/schemas/PublishPostResponse"
217
- },
218
- "example": {
219
- "success": true,
220
- "published": ["post123", "post456"]
221
- }
222
- }
223
- }
224
- }
225
- }
226
- }
227
- }
228
- }
229
- }
@@ -1,4 +0,0 @@
1
- import { INodeType, INodeTypeDescription } from "n8n-workflow";
2
- export declare class PublerPostsSchedule 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.PublerPostsSchedule = 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 PublerPostsSchedule {
43
- constructor() {
44
- this.description = {
45
- displayName: "Publer Posts Schedule",
46
- name: "publerPostsSchedule",
47
- icon: "file:logo.svg",
48
- group: ["transform"],
49
- version: 1,
50
- subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
51
- description: "Interact with Publer Posts Schedule API - Schedule and publish posts",
52
- defaults: {
53
- name: "Publer Posts Schedule",
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.PublerPostsSchedule = PublerPostsSchedule;
75
- //# sourceMappingURL=PublerPostsSchedule.node.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublerPostsSchedule.node.js","sourceRoot":"","sources":["../../../nodes/PublerPostsSchedule/PublerPostsSchedule.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,mBAAmB;IAAhC;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,uBAAuB;YACpC,IAAI,EAAE,qBAAqB;YAC3B,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE;gBACR,IAAI,EAAE,uBAAuB;aAC9B;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,kDA6BC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const PublerPostsSchedule_node_1 = require("./PublerPostsSchedule.node");
4
- test("PublerPostsSchedule", () => {
5
- const node = new PublerPostsSchedule_node_1.PublerPostsSchedule();
6
- expect(node.description.properties).toBeDefined();
7
- });
8
- //# sourceMappingURL=PublerPostsSchedule.spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PublerPostsSchedule.spec.js","sourceRoot":"","sources":["../../../nodes/PublerPostsSchedule/PublerPostsSchedule.spec.ts"],"names":[],"mappings":";;AAAA,yEAAgE;AAEhE,IAAI,CAAC,qBAAqB,EAAE,GAAG,EAAE;IAC/B,MAAM,IAAI,GAAG,IAAI,8CAAmB,EAAE,CAAA;IACtC,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 .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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,235 +0,0 @@
1
- {
2
- "openapi": "3.1.1",
3
- "info": {
4
- "title": "Publer Posts Schedule API",
5
- "description": "Post scheduling endpoints for Publer API - Schedule posts for future publishing.",
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
- "ScheduledMediaAttachment": {
29
- "type": "object",
30
- "description": "Media attachment for a scheduled post",
31
- "properties": {
32
- "id": {
33
- "type": "string",
34
- "description": "Media asset ID from upload"
35
- },
36
- "type": {
37
- "type": "string",
38
- "enum": ["photo", "video", "document"],
39
- "description": "Media type"
40
- },
41
- "caption": {
42
- "type": "string",
43
- "description": "Media caption"
44
- },
45
- "alt_text": {
46
- "type": "string",
47
- "description": "Alt text for accessibility"
48
- }
49
- }
50
- },
51
- "ScheduledNetworkContent": {
52
- "type": "object",
53
- "description": "Per-network post configuration for scheduling",
54
- "properties": {
55
- "type": {
56
- "type": "string",
57
- "enum": [
58
- "status",
59
- "photo",
60
- "video",
61
- "link",
62
- "carousel",
63
- "story",
64
- "reel",
65
- "gif",
66
- "poll",
67
- "document",
68
- "event",
69
- "offer"
70
- ],
71
- "description": "Content type",
72
- "example": "status"
73
- },
74
- "text": {
75
- "type": "string",
76
- "description": "Post text content",
77
- "example": "Hello world!"
78
- },
79
- "media": {
80
- "type": "array",
81
- "description": "Media attachments (required for photo, video, carousel, story, reel, gif types)",
82
- "items": {
83
- "$ref": "#/components/schemas/ScheduledMediaAttachment"
84
- }
85
- },
86
- "url": {
87
- "type": "string",
88
- "description": "URL for link posts (required when type=link)",
89
- "example": "https://publer.com"
90
- }
91
- }
92
- },
93
- "ScheduledTargetAccount": {
94
- "type": "object",
95
- "description": "Target account for scheduled post",
96
- "required": ["id"],
97
- "properties": {
98
- "id": {
99
- "type": "string",
100
- "description": "Account ID",
101
- "example": "647a0edddb2797b89044e2c1"
102
- },
103
- "scheduled_at": {
104
- "type": "string",
105
- "format": "date-time",
106
- "description": "ISO 8601 scheduled time",
107
- "example": "2025-06-14T10:21:00+02:00"
108
- }
109
- }
110
- },
111
- "PostToSchedule": {
112
- "type": "object",
113
- "description": "Post data for scheduling",
114
- "required": ["networks", "accounts"],
115
- "properties": {
116
- "networks": {
117
- "type": "object",
118
- "description": "Network-specific post content",
119
- "additionalProperties": {
120
- "$ref": "#/components/schemas/ScheduledNetworkContent"
121
- }
122
- },
123
- "accounts": {
124
- "type": "array",
125
- "description": "Target social media accounts",
126
- "items": {
127
- "$ref": "#/components/schemas/ScheduledTargetAccount"
128
- }
129
- }
130
- }
131
- },
132
- "BulkScheduleConfig": {
133
- "type": "object",
134
- "description": "Bulk scheduling configuration",
135
- "required": ["state", "posts"],
136
- "properties": {
137
- "state": {
138
- "type": "string",
139
- "enum": ["scheduled", "draft", "draft_private", "draft_public", "recurring"],
140
- "description": "Post state",
141
- "example": "scheduled"
142
- },
143
- "posts": {
144
- "type": "array",
145
- "description": "Posts to create",
146
- "items": {
147
- "$ref": "#/components/schemas/PostToSchedule"
148
- }
149
- }
150
- }
151
- },
152
- "SchedulePostRequest": {
153
- "type": "object",
154
- "description": "Request body for scheduling posts",
155
- "required": ["bulk"],
156
- "properties": {
157
- "bulk": {
158
- "$ref": "#/components/schemas/BulkScheduleConfig"
159
- }
160
- }
161
- },
162
- "SchedulePostResponse": {
163
- "type": "object",
164
- "description": "Response after scheduling posts",
165
- "properties": {
166
- "success": {
167
- "type": "boolean",
168
- "description": "Whether the scheduling was successful"
169
- },
170
- "scheduled": {
171
- "type": "array",
172
- "description": "List of scheduled post IDs",
173
- "items": {
174
- "type": "string"
175
- }
176
- }
177
- },
178
- "required": ["scheduled"]
179
- }
180
- }
181
- },
182
- "tags": [
183
- {
184
- "name": "POSTS > SCHEDULING"
185
- }
186
- ],
187
- "paths": {
188
- "/posts/schedule": {
189
- "post": {
190
- "tags": ["POSTS > SCHEDULING"],
191
- "summary": "Schedule post",
192
- "description": "Schedule a post. Supports text, photo, video, link, carousel, story, reel, and gif content types.",
193
- "operationId": "schedule_post",
194
- "requestBody": {
195
- "required": true,
196
- "content": {
197
- "application/json": {
198
- "schema": {
199
- "$ref": "#/components/schemas/SchedulePostRequest"
200
- }
201
- }
202
- }
203
- },
204
- "parameters": [
205
- {
206
- "name": "Publer-Workspace-Id",
207
- "in": "header",
208
- "schema": {
209
- "type": "string"
210
- },
211
- "example": "{{workspace_id}}",
212
- "required": true,
213
- "description": "Workspace ID to schedule posts in"
214
- }
215
- ],
216
- "responses": {
217
- "200": {
218
- "description": "Successful response",
219
- "content": {
220
- "application/json": {
221
- "schema": {
222
- "$ref": "#/components/schemas/SchedulePostResponse"
223
- },
224
- "example": {
225
- "success": true,
226
- "scheduled": ["post123", "post456"]
227
- }
228
- }
229
- }
230
- }
231
- }
232
- }
233
- }
234
- }
235
- }