@adaptive-ds/n8n-nodes-publer 1.1.8 → 1.1.10

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 (75) hide show
  1. package/dist/credentials/PublerApi.credentials.d.ts +2 -2
  2. package/dist/credentials/PublerApi.credentials.js +16 -16
  3. package/dist/credentials/PublerApi.credentials.js.map +1 -1
  4. package/dist/nodes/PublerAnalytics/PublerAnalytics.node.d.ts +4 -0
  5. package/dist/nodes/PublerAnalytics/PublerAnalytics.node.js +75 -0
  6. package/dist/nodes/PublerAnalytics/PublerAnalytics.node.js.map +1 -0
  7. package/dist/nodes/PublerAnalytics/PublerAnalytics.spec.js +8 -0
  8. package/dist/nodes/PublerAnalytics/PublerAnalytics.spec.js.map +1 -0
  9. package/dist/nodes/PublerAnalytics/logo.svg +44 -0
  10. package/dist/nodes/PublerAnalytics/openapi.json +777 -0
  11. package/dist/nodes/{Publer/Publer.node.d.ts → PublerBasic/PublerBasic.node.d.ts} +1 -1
  12. package/dist/nodes/PublerBasic/PublerBasic.node.js +75 -0
  13. package/dist/nodes/PublerBasic/PublerBasic.node.js.map +1 -0
  14. package/dist/nodes/PublerBasic/PublerBasic.spec.d.ts +1 -0
  15. package/dist/nodes/PublerBasic/PublerBasic.spec.js +8 -0
  16. package/dist/nodes/PublerBasic/PublerBasic.spec.js.map +1 -0
  17. package/dist/nodes/PublerBasic/logo.svg +44 -0
  18. package/dist/nodes/PublerBasic/openapi.json +507 -0
  19. package/dist/nodes/PublerCompetitors/PublerCompetitors.node.d.ts +4 -0
  20. package/dist/nodes/PublerCompetitors/PublerCompetitors.node.js +75 -0
  21. package/dist/nodes/PublerCompetitors/PublerCompetitors.node.js.map +1 -0
  22. package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.d.ts +1 -0
  23. package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.js +8 -0
  24. package/dist/nodes/PublerCompetitors/PublerCompetitors.spec.js.map +1 -0
  25. package/dist/nodes/PublerCompetitors/logo.svg +44 -0
  26. package/dist/nodes/PublerCompetitors/openapi.json +264 -0
  27. package/dist/nodes/PublerLocations/PublerLocations.node.d.ts +4 -0
  28. package/dist/nodes/PublerLocations/PublerLocations.node.js +75 -0
  29. package/dist/nodes/PublerLocations/PublerLocations.node.js.map +1 -0
  30. package/dist/nodes/PublerLocations/PublerLocations.spec.d.ts +1 -0
  31. package/dist/nodes/PublerLocations/PublerLocations.spec.js +8 -0
  32. package/dist/nodes/PublerLocations/PublerLocations.spec.js.map +1 -0
  33. package/dist/nodes/PublerLocations/logo.svg +44 -0
  34. package/dist/nodes/PublerLocations/openapi.json +205 -0
  35. package/dist/nodes/PublerMedia/PublerMedia.node.d.ts +4 -0
  36. package/dist/nodes/{Publer/Publer.node.js → PublerMedia/PublerMedia.node.js} +8 -8
  37. package/dist/nodes/PublerMedia/PublerMedia.node.js.map +1 -0
  38. package/dist/nodes/PublerMedia/PublerMedia.spec.d.ts +1 -0
  39. package/dist/nodes/PublerMedia/PublerMedia.spec.js +8 -0
  40. package/dist/nodes/PublerMedia/PublerMedia.spec.js.map +1 -0
  41. package/dist/nodes/PublerMedia/logo.svg +44 -0
  42. package/dist/nodes/PublerMedia/openapi.json +346 -0
  43. package/dist/nodes/PublerPosts/PublerPosts.node.d.ts +4 -0
  44. package/dist/nodes/PublerPosts/PublerPosts.node.js +75 -0
  45. package/dist/nodes/PublerPosts/PublerPosts.node.js.map +1 -0
  46. package/dist/nodes/PublerPosts/PublerPosts.spec.d.ts +1 -0
  47. package/dist/nodes/PublerPosts/PublerPosts.spec.js +8 -0
  48. package/dist/nodes/PublerPosts/PublerPosts.spec.js.map +1 -0
  49. package/dist/nodes/PublerPosts/logo.svg +44 -0
  50. package/dist/nodes/PublerPosts/openapi.json +536 -0
  51. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.d.ts +4 -0
  52. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.js +75 -0
  53. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.node.js.map +1 -0
  54. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.d.ts +1 -0
  55. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.js +8 -0
  56. package/dist/nodes/PublerPostsPublish/PublerPostsPublish.spec.js.map +1 -0
  57. package/dist/nodes/PublerPostsPublish/logo.svg +44 -0
  58. package/dist/nodes/PublerPostsPublish/openapi.json +229 -0
  59. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.d.ts +4 -0
  60. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.js +75 -0
  61. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.node.js.map +1 -0
  62. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.d.ts +1 -0
  63. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.js +8 -0
  64. package/dist/nodes/PublerPostsSchedule/PublerPostsSchedule.spec.js.map +1 -0
  65. package/dist/nodes/PublerPostsSchedule/logo.svg +44 -0
  66. package/dist/nodes/PublerPostsSchedule/openapi.json +235 -0
  67. package/dist/package.json +27 -6
  68. package/package.json +27 -6
  69. package/dist/nodes/Publer/Publer.node.js.map +0 -1
  70. package/dist/nodes/Publer/Publer.node.json +0 -18
  71. package/dist/nodes/Publer/Publer.spec.js +0 -8
  72. package/dist/nodes/Publer/Publer.spec.js.map +0 -1
  73. package/dist/nodes/Publer/logo.svg +0 -1
  74. package/dist/nodes/Publer/openapi.json +0 -1527
  75. /package/dist/nodes/{Publer/Publer.spec.d.ts → PublerAnalytics/PublerAnalytics.spec.d.ts} +0 -0
@@ -0,0 +1,4 @@
1
+ import { INodeType, INodeTypeDescription } from "n8n-workflow";
2
+ export declare class PublerPostsPublish implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,75 @@
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.PublerPostsPublish = 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 PublerPostsPublish {
43
+ constructor() {
44
+ this.description = {
45
+ displayName: "Publer Posts Publish",
46
+ name: "publerPostsPublish",
47
+ icon: "file:logo.svg",
48
+ group: ["transform"],
49
+ version: 1,
50
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
51
+ description: "Interact with Publer Posts Publish API - Publish posts immediately",
52
+ defaults: {
53
+ name: "Publer Posts Publish",
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.PublerPostsPublish = PublerPostsPublish;
75
+ //# sourceMappingURL=PublerPostsPublish.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublerPostsPublish.node.js","sourceRoot":"","sources":["../../../nodes/PublerPostsPublish/PublerPostsPublish.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,kBAAkB;IAA/B;QACE,gBAAW,GAAyB;YAClC,WAAW,EAAE,sBAAsB;YACnC,IAAI,EAAE,oBAAoB;YAC1B,IAAI,EAAE,eAAe;YACrB,KAAK,EAAE,CAAC,WAAW,CAAC;YACpB,OAAO,EAAE,CAAC;YACV,QAAQ,EAAE,8DAA8D;YACxE,WAAW,EAAE,oEAAoE;YACjF,QAAQ,EAAE;gBACR,IAAI,EAAE,sBAAsB;aAC7B;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,gDA6BC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const PublerPostsPublish_node_1 = require("./PublerPostsPublish.node");
4
+ test("PublerPostsPublish", () => {
5
+ const node = new PublerPostsPublish_node_1.PublerPostsPublish();
6
+ expect(node.description.properties).toBeDefined();
7
+ });
8
+ //# sourceMappingURL=PublerPostsPublish.spec.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PublerPostsPublish.spec.js","sourceRoot":"","sources":["../../../nodes/PublerPostsPublish/PublerPostsPublish.spec.ts"],"names":[],"mappings":";;AAAA,uEAA8D;AAE9D,IAAI,CAAC,oBAAoB,EAAE,GAAG,EAAE;IAC9B,MAAM,IAAI,GAAG,IAAI,4CAAkB,EAAE,CAAA;IACrC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,CAAA;AACnD,CAAC,CAAC,CAAA"}
@@ -0,0 +1,44 @@
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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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>
@@ -0,0 +1,229 @@
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
+ "BearerApiAuth": []
16
+ }
17
+ ],
18
+ "components": {
19
+ "securitySchemes": {
20
+ "BearerApiAuth": {
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
+ }
@@ -0,0 +1,4 @@
1
+ import { INodeType, INodeTypeDescription } from "n8n-workflow";
2
+ export declare class PublerPostsSchedule implements INodeType {
3
+ description: INodeTypeDescription;
4
+ }
@@ -0,0 +1,75 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,8 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,44 @@
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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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>