n8n-nodes-postdaily 0.0.0-stage → 0.1.1

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 (29) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +125 -2
  3. package/dist/credentials/PostDailyApi.credentials.d.ts +10 -0
  4. package/dist/credentials/PostDailyApi.credentials.js +61 -0
  5. package/dist/credentials/PostDailyApi.credentials.js.map +1 -0
  6. package/dist/nodes/PostDaily/GenericFunctions.d.ts +7 -0
  7. package/dist/nodes/PostDaily/GenericFunctions.js +112 -0
  8. package/dist/nodes/PostDaily/GenericFunctions.js.map +1 -0
  9. package/dist/nodes/PostDaily/PostDaily.node.d.ts +11 -0
  10. package/dist/nodes/PostDaily/PostDaily.node.js +302 -0
  11. package/dist/nodes/PostDaily/PostDaily.node.js.map +1 -0
  12. package/dist/nodes/PostDaily/PostDaily.node.json +18 -0
  13. package/dist/nodes/PostDaily/descriptions/ChannelDescription.d.ts +3 -0
  14. package/dist/nodes/PostDaily/descriptions/ChannelDescription.js +35 -0
  15. package/dist/nodes/PostDaily/descriptions/ChannelDescription.js.map +1 -0
  16. package/dist/nodes/PostDaily/descriptions/MediaDescription.d.ts +3 -0
  17. package/dist/nodes/PostDaily/descriptions/MediaDescription.js +62 -0
  18. package/dist/nodes/PostDaily/descriptions/MediaDescription.js.map +1 -0
  19. package/dist/nodes/PostDaily/descriptions/PostDescription.d.ts +3 -0
  20. package/dist/nodes/PostDaily/descriptions/PostDescription.js +362 -0
  21. package/dist/nodes/PostDaily/descriptions/PostDescription.js.map +1 -0
  22. package/dist/nodes/PostDaily/descriptions/shared.d.ts +2 -0
  23. package/dist/nodes/PostDaily/descriptions/shared.js +12 -0
  24. package/dist/nodes/PostDaily/descriptions/shared.js.map +1 -0
  25. package/dist/nodes/PostDaily/postdaily.dark.svg +29 -0
  26. package/dist/nodes/PostDaily/postdaily.svg +29 -0
  27. package/dist/package.json +66 -0
  28. package/dist/tsconfig.tsbuildinfo +1 -0
  29. package/package.json +64 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 mehedihasan2810
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,126 @@
1
- # Temporary Holding Version
1
+ # n8n-nodes-postdaily
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An [n8n](https://n8n.io) community node for [PostDaily](https://www.postdaily.app).
4
+ Use it to draft, queue and schedule social media posts from your workflows.
5
+ It posts to Instagram, Facebook, TikTok, YouTube, LinkedIn, X, Threads,
6
+ Pinterest, Bluesky and Mastodon.
7
+
8
+ PostDaily checks each post against each network's rules before it goes out. It
9
+ retries failed publishes and tells you when a channel needs reconnecting.
10
+
11
+ [Installation](#installation) · [Credentials](#credentials) · [Operations](#operations) · [Using it safely](#using-it-safely) · [Example workflows](#example-workflows) · [Compatibility](#compatibility) · [Resources](#resources)
12
+
13
+ ## Installation
14
+
15
+ Follow the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/)
16
+ and install `n8n-nodes-postdaily`.
17
+
18
+ ## Credentials
19
+
20
+ The node uses a **PostDaily API key**.
21
+
22
+ 1. In PostDaily, open **Settings → AI agents** and select **API key**.
23
+ 2. Name the key after the workflow, for example "n8n blog to drafts".
24
+ 3. Choose what the key can do:
25
+ - **Drafts only**: create and edit drafts. It can never schedule or
26
+ publish. Best for anything that runs with nobody watching.
27
+ - **Full access**: also add to the queue, schedule, publish, delete and
28
+ retry.
29
+ - **Read only**: list channels and posts.
30
+ 4. Pick the workspace the workflow should use.
31
+ 5. Copy the key. PostDaily shows it only once.
32
+ 6. In n8n, create a **PostDaily API** credential and paste the key. Leave
33
+ **Server URL** as it is.
34
+
35
+ When you save the credential, n8n tests it by listing your workspaces. To
36
+ revoke a key, go to **Settings → AI agents** in PostDaily. A key also stops
37
+ working when it expires, or when you change your PostDaily password.
38
+
39
+ ## Operations
40
+
41
+ | Resource | Operation | What it does |
42
+ |---|---|---|
43
+ | Post | Create | Creates a post on one or more channels: as a draft, added to the queue, scheduled, or published now. Each channel becomes its own post. |
44
+ | Post | Get | Gets a post with each channel's status and link. |
45
+ | Post | Get Many | Finds posts by status, channel, text or date. |
46
+ | Post | Update | Edits a draft's text, title, media, channels or tags. |
47
+ | Post | Delete | Deletes a post from PostDaily. A published post stays live on the network. |
48
+ | Post | Retry | Publishes the failed channels of a post again. |
49
+ | Media | Upload | Uploads a file from an earlier step (binary data) to your media library. |
50
+ | Media | Import From URL | Adds an image, video or PDF from a public URL. |
51
+ | Channel | Get Many | Lists connected channels, their limits, and whether each can post now. |
52
+
53
+ To attach media to a post, use either way:
54
+ - put the `media.mediaId` from **Upload** or **Import From URL** in **Media IDs**;
55
+ - put public URLs in **Media URLs**.
56
+
57
+ ## Using it safely
58
+
59
+ A workflow runs with nobody checking each post, so the node is careful by
60
+ default:
61
+
62
+ - **Mode** defaults to **Draft**.
63
+ - **Publish Now** does nothing unless you also turn on **Confirm Publish
64
+ Now**.
65
+ - **Retry** publishes again only with **Confirm Retry** on. Without it, it
66
+ lists the channels it would retry.
67
+ - **Problems keep the post as a draft.**
68
+ - With Add to Queue, Schedule or Publish Now, a post is kept as a draft
69
+ when it breaks a network rule (for example text over X's limit), or when
70
+ PostDaily asks for its warnings to be accepted. The item fails with
71
+ PostDaily's message.
72
+ - To go ahead despite warnings, turn on **Continue Despite Warnings**.
73
+ - Draft mode always saves. Its warnings are listed in `validation.warnings`.
74
+ - **No double posts.** Every create sends an idempotency key. By default the
75
+ key is built from the execution, node and item, so a retried step returns
76
+ the first result. For a key that holds across executions, set
77
+ **Idempotency Key** to something stable, such as an article URL.
78
+ - **Use one key per workflow, for one workspace.** A key that covers several
79
+ workspaces may be asked to confirm before it writes in a second one. The
80
+ node never sends that confirmation itself.
81
+
82
+ To keep going past a failed item, use n8n's **On Error → Continue** setting.
83
+ PostDaily's message ends up in the item's `error` field.
84
+
85
+ ## Example workflows
86
+
87
+ - **Blog post to drafts:**
88
+ 1. **RSS Feed Trigger**.
89
+ 2. **PostDaily: Post → Create**, with **Mode** set to Draft.
90
+ 3. In the Create step, set **Media URLs** to the article image and
91
+ **Idempotency Key** to `{{ $json.link }}`.
92
+
93
+ A ready-made version of this workflow, with images and duplicate checks, is
94
+ linked from [PostDaily's n8n guide](https://www.postdaily.app/help/connect-with-an-api-key#start-from-a-ready-made-n8n-workflow).
95
+ - **Video folder to TikTok and YouTube:**
96
+ 1. **Google Drive Trigger**, then **Google Drive: Download**.
97
+ 2. **PostDaily: Media → Upload**.
98
+ 3. **PostDaily: Post → Create** with **Media IDs** set to `{{ $json.media.mediaId }}`.
99
+ - **Spreadsheet to queue:**
100
+ 1. **Google Sheets** rows.
101
+ 2. **PostDaily: Post → Create**, with **Mode** set to Add to Queue. This
102
+ needs a Full access key.
103
+ - **Failed post alert:**
104
+ 1. **Schedule Trigger**.
105
+ 2. **PostDaily: Post → Get Many**, with Statuses set to Failed.
106
+ 3. **Slack**.
107
+
108
+ ## Compatibility
109
+
110
+ Tested with n8n 2.48.7, the current stable release.
111
+
112
+ How it talks to PostDaily:
113
+ - It calls PostDaily's API-key endpoint (`https://mcp.postdaily.app/key/mcp`)
114
+ with one request per action.
115
+ - It has no runtime dependencies.
116
+ - It sends `User-Agent: n8n-nodes-postdaily/<version>`.
117
+
118
+ ## Resources
119
+
120
+ - [PostDaily](https://www.postdaily.app)
121
+ - [Connect n8n with an API key](https://www.postdaily.app/help/connect-with-an-api-key)
122
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
123
+
124
+ ## Licence
125
+
126
+ [MIT](LICENSE)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class PostDailyApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostDailyApi = void 0;
4
+ class PostDailyApi {
5
+ constructor() {
6
+ this.name = 'postDailyApi';
7
+ this.displayName = 'PostDaily API';
8
+ this.icon = {
9
+ light: 'file:../nodes/PostDaily/postdaily.svg',
10
+ dark: 'file:../nodes/PostDaily/postdaily.dark.svg',
11
+ };
12
+ this.documentationUrl = 'https://www.postdaily.app/help/connect-with-an-api-key';
13
+ this.properties = [
14
+ {
15
+ displayName: 'API Key',
16
+ name: 'apiKey',
17
+ type: 'string',
18
+ typeOptions: { password: true },
19
+ required: true,
20
+ default: '',
21
+ placeholder: 'pd_live_...',
22
+ description: 'Create one in PostDaily under Settings → AI agents → API key. A Drafts only key can create and edit drafts but never schedule or publish.',
23
+ },
24
+ {
25
+ displayName: 'Server URL',
26
+ name: 'serverUrl',
27
+ type: 'string',
28
+ required: true,
29
+ default: 'https://mcp.postdaily.app/key/mcp',
30
+ description: 'Leave as it is unless PostDaily support gives you another address',
31
+ },
32
+ ];
33
+ this.authenticate = {
34
+ type: 'generic',
35
+ properties: {
36
+ headers: {
37
+ Authorization: '=Bearer {{$credentials.apiKey}}',
38
+ },
39
+ },
40
+ };
41
+ this.test = {
42
+ request: {
43
+ method: 'POST',
44
+ url: '={{$credentials.serverUrl}}',
45
+ headers: {
46
+ Accept: 'application/json, text/event-stream',
47
+ 'Content-Type': 'application/json',
48
+ 'MCP-Protocol-Version': '2025-11-25',
49
+ },
50
+ body: {
51
+ jsonrpc: '2.0',
52
+ id: 1,
53
+ method: 'tools/call',
54
+ params: { name: 'list_workspaces', arguments: {} },
55
+ },
56
+ },
57
+ };
58
+ }
59
+ }
60
+ exports.PostDailyApi = PostDailyApi;
61
+ //# sourceMappingURL=PostDailyApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PostDailyApi.credentials.js","sourceRoot":"","sources":["../../credentials/PostDailyApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,YAAY;IAAzB;QACC,SAAI,GAAG,cAAc,CAAC;QAEtB,gBAAW,GAAG,eAAe,CAAC;QAE9B,SAAI,GAAS;YACZ,KAAK,EAAE,uCAAuC;YAC9C,IAAI,EAAE,4CAA4C;SAClD,CAAC;QAEF,qBAAgB,GAAG,wDAAwD,CAAC;QAE5E,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,aAAa;gBAC1B,WAAW,EACV,2IAA2I;aAC5I;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,mCAAmC;gBAC5C,WAAW,EAAE,mEAAmE;aAChF;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,aAAa,EAAE,iCAAiC;iBAChD;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,6BAA6B;gBAClC,OAAO,EAAE;oBACR,MAAM,EAAE,qCAAqC;oBAC7C,cAAc,EAAE,kBAAkB;oBAClC,sBAAsB,EAAE,YAAY;iBACpC;gBACD,IAAI,EAAE;oBACL,OAAO,EAAE,KAAK;oBACd,EAAE,EAAE,CAAC;oBACL,MAAM,EAAE,YAAY;oBACpB,MAAM,EAAE,EAAE,IAAI,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE;iBAClD;aACD;SACD,CAAC;IACH,CAAC;CAAA;AA5DD,oCA4DC"}
@@ -0,0 +1,7 @@
1
+ import type { IDataObject, IExecuteFunctions, ILoadOptionsFunctions } from 'n8n-workflow';
2
+ export declare const NODE_VERSION = "0.1.1";
3
+ type PostDailyContext = IExecuteFunctions | ILoadOptionsFunctions;
4
+ export declare function callPostDaily(this: PostDailyContext, tool: string, args: IDataObject, itemIndex?: number): Promise<IDataObject>;
5
+ export declare function splitList(value: unknown): string[];
6
+ export declare function defaultIdempotencyKey(executionId: string, nodeId: string, args: IDataObject): string;
7
+ export {};
@@ -0,0 +1,112 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NODE_VERSION = void 0;
4
+ exports.callPostDaily = callPostDaily;
5
+ exports.splitList = splitList;
6
+ exports.defaultIdempotencyKey = defaultIdempotencyKey;
7
+ const n8n_workflow_1 = require("n8n-workflow");
8
+ exports.NODE_VERSION = '0.1.1';
9
+ const MCP_PROTOCOL_VERSION = '2025-11-25';
10
+ function readReply(body) {
11
+ if (typeof body === 'object' && body !== null) {
12
+ return body;
13
+ }
14
+ const text = String(body !== null && body !== void 0 ? body : '');
15
+ const dataLine = text
16
+ .split('\n')
17
+ .filter((line) => line.startsWith('data:'))
18
+ .pop();
19
+ return JSON.parse(dataLine ? dataLine.slice(5) : text);
20
+ }
21
+ function dataFromText(result) {
22
+ var _a, _b, _c;
23
+ const text = (_c = (_b = (_a = result.content) === null || _a === void 0 ? void 0 : _a.find((part) => part.type === 'text')) === null || _b === void 0 ? void 0 : _b.text) !== null && _c !== void 0 ? _c : '';
24
+ const start = text.indexOf('{');
25
+ if (start === -1) {
26
+ return { summary: text };
27
+ }
28
+ try {
29
+ return JSON.parse(text.slice(start));
30
+ }
31
+ catch {
32
+ return { summary: text };
33
+ }
34
+ }
35
+ function accessLevelMessage(text) {
36
+ const match = text.match(/Tool (\w+) not found/);
37
+ if (!match) {
38
+ return null;
39
+ }
40
+ return {
41
+ message: `This API key's access level does not allow ${match[1]}`,
42
+ description: 'Drafts only keys can create and edit drafts; Read only keys can only read. Scheduling, publishing, deleting and retrying need a Full access key, created in PostDaily under Settings → AI agents → API key.',
43
+ };
44
+ }
45
+ async function callPostDaily(tool, args, itemIndex = 0) {
46
+ var _a, _b, _c, _d, _e, _f, _g, _h;
47
+ const credentials = await this.getCredentials('postDailyApi');
48
+ const options = {
49
+ method: 'POST',
50
+ url: credentials.serverUrl,
51
+ headers: {
52
+ Accept: 'application/json, text/event-stream',
53
+ 'Content-Type': 'application/json',
54
+ 'MCP-Protocol-Version': MCP_PROTOCOL_VERSION,
55
+ 'User-Agent': `n8n-nodes-postdaily/${exports.NODE_VERSION}`,
56
+ },
57
+ body: JSON.stringify({
58
+ jsonrpc: '2.0',
59
+ id: `${tool}-${itemIndex}`,
60
+ method: 'tools/call',
61
+ params: { name: tool, arguments: args },
62
+ }),
63
+ json: false,
64
+ };
65
+ let reply;
66
+ try {
67
+ reply = readReply(await this.helpers.httpRequestWithAuthentication.call(this, 'postDailyApi', options));
68
+ }
69
+ catch (error) {
70
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex });
71
+ }
72
+ if (reply.error) {
73
+ const access = accessLevelMessage(reply.error.message);
74
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), reply.error, {
75
+ itemIndex,
76
+ message: (_a = access === null || access === void 0 ? void 0 : access.message) !== null && _a !== void 0 ? _a : reply.error.message,
77
+ description: access === null || access === void 0 ? void 0 : access.description,
78
+ });
79
+ }
80
+ const result = (_b = reply.result) !== null && _b !== void 0 ? _b : {};
81
+ if (result.isError) {
82
+ const text = (_e = (_d = (_c = result.content) === null || _c === void 0 ? void 0 : _c.find((part) => part.type === 'text')) === null || _d === void 0 ? void 0 : _d.text) !== null && _e !== void 0 ? _e : 'PostDaily refused the request.';
83
+ const [first, ...rest] = text.split('\n');
84
+ const access = accessLevelMessage(text);
85
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), { message: text }, {
86
+ itemIndex,
87
+ message: (_f = access === null || access === void 0 ? void 0 : access.message) !== null && _f !== void 0 ? _f : first,
88
+ description: (_g = access === null || access === void 0 ? void 0 : access.description) !== null && _g !== void 0 ? _g : (rest.join('\n').trim() || undefined),
89
+ });
90
+ }
91
+ return (_h = result.structuredContent) !== null && _h !== void 0 ? _h : dataFromText(result);
92
+ }
93
+ function splitList(value) {
94
+ return String(value !== null && value !== void 0 ? value : '')
95
+ .split(',')
96
+ .map((part) => part.trim())
97
+ .filter(Boolean);
98
+ }
99
+ function fingerprint(text) {
100
+ let a = 0x811c9dc5;
101
+ let b = 0x01000193 ^ text.length;
102
+ for (let index = 0; index < text.length; index++) {
103
+ const code = text.charCodeAt(index);
104
+ a = Math.imul(a ^ code, 0x01000193) >>> 0;
105
+ b = Math.imul(b ^ code, 0x5bd1e995) >>> 0;
106
+ }
107
+ return a.toString(16).padStart(8, '0') + b.toString(16).padStart(8, '0');
108
+ }
109
+ function defaultIdempotencyKey(executionId, nodeId, args) {
110
+ return `n8n-${executionId}-${nodeId}-${fingerprint(JSON.stringify(args))}`.slice(0, 200);
111
+ }
112
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/PostDaily/GenericFunctions.ts"],"names":[],"mappings":";;;AAqFA,sCA8DC;AAGD,8BAKC;AAuBD,sDAMC;AAjLD,+CAA4C;AAG/B,QAAA,YAAY,GAAG,OAAO,CAAC;AAEpC,MAAM,oBAAoB,GAAG,YAAY,CAAC;AAoB1C,SAAS,SAAS,CAAC,IAAa;IAC/B,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC/C,OAAO,IAAgB,CAAC;IACzB,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,aAAJ,IAAI,cAAJ,IAAI,GAAI,EAAE,CAAC,CAAC;IAChC,MAAM,QAAQ,GAAG,IAAI;SACnB,KAAK,CAAC,IAAI,CAAC;SACX,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;SAC1C,GAAG,EAAE,CAAC;IAER,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAa,CAAC;AACpE,CAAC;AAGD,SAAS,YAAY,CAAC,MAAkB;;IACvC,MAAM,IAAI,GAAG,MAAA,MAAA,MAAA,MAAM,CAAC,OAAO,0CAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,0CAAE,IAAI,mCAAI,EAAE,CAAC;IAC9E,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhC,IAAI,KAAK,KAAK,C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AC,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC1E,CAAC;AASD,SAAgB,qBAAqB,CACpC,WAAmB,EACnB,MAAc,EACd,IAAiB;IAEjB,OAAO,OAAO,WAAW,IAAI,MAAM,IAAI,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;AAC1F,CAAC"}
@@ -0,0 +1,11 @@
1
+ import type { IExecuteFunctions, ILoadOptionsFunctions, INodeExecutionData, INodePropertyOptions, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class PostDaily implements INodeType {
3
+ description: INodeTypeDescription;
4
+ methods: {
5
+ loadOptions: {
6
+ getWorkspaces(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
7
+ getChannels(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]>;
8
+ };
9
+ };
10
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
11
+ }