@activepieces/piece-feedhive 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -12
- package/src/index.js +40 -47
- package/src/index.d.ts +0 -4
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/create-label.d.ts +0 -4
- package/src/lib/actions/create-label.d.ts.map +0 -1
- package/src/lib/actions/create-label.js +0 -39
- package/src/lib/actions/create-label.js.map +0 -1
- package/src/lib/actions/create-post.d.ts +0 -10
- package/src/lib/actions/create-post.d.ts.map +0 -1
- package/src/lib/actions/create-post.js +0 -80
- package/src/lib/actions/create-post.js.map +0 -1
- package/src/lib/actions/delete-post.d.ts +0 -4
- package/src/lib/actions/delete-post.d.ts.map +0 -1
- package/src/lib/actions/delete-post.js +0 -30
- package/src/lib/actions/delete-post.js.map +0 -1
- package/src/lib/actions/fire-workflow-trigger.d.ts +0 -12
- package/src/lib/actions/fire-workflow-trigger.d.ts.map +0 -1
- package/src/lib/actions/fire-workflow-trigger.js +0 -95
- package/src/lib/actions/fire-workflow-trigger.js.map +0 -1
- package/src/lib/actions/get-post.d.ts +0 -4
- package/src/lib/actions/get-post.d.ts.map +0 -1
- package/src/lib/actions/get-post.js +0 -30
- package/src/lib/actions/get-post.js.map +0 -1
- package/src/lib/actions/list-posts.d.ts +0 -6
- package/src/lib/actions/list-posts.d.ts.map +0 -1
- package/src/lib/actions/list-posts.js +0 -60
- package/src/lib/actions/list-posts.js.map +0 -1
- package/src/lib/actions/update-post.d.ts +0 -11
- package/src/lib/actions/update-post.d.ts.map +0 -1
- package/src/lib/actions/update-post.js +0 -80
- package/src/lib/actions/update-post.js.map +0 -1
- package/src/lib/common/auth.d.ts +0 -2
- package/src/lib/common/auth.d.ts.map +0 -1
- package/src/lib/common/auth.js +0 -33
- package/src/lib/common/auth.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -18
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -144
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/comment-notification.d.ts +0 -11
- package/src/lib/triggers/comment-notification.d.ts.map +0 -1
- package/src/lib/triggers/comment-notification.js +0 -96
- package/src/lib/triggers/comment-notification.js.map +0 -1
- package/src/lib/triggers/post-notification.d.ts +0 -15
- package/src/lib/triggers/post-notification.d.ts.map +0 -1
- package/src/lib/triggers/post-notification.js +0 -119
- package/src/lib/triggers/post-notification.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-post.js","sourceRoot":"","sources":["../../../../src/lib/actions/create-post.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE9B,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,wTAAwT,EAAE,UAAU,EAAE,KAAK,EAAE;IACxW,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtB,WAAW,EAAE,WAAW;YACxB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,kFAAkF;YAC/F,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,OAAO;YACrB,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE;oBAClC,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBAC3C;aACF;SACF,CAAC;QACF,YAAY,EAAE,2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AE,IAAI,CAAC,oBAAoB,CAAC,GAAG,kBAAkB,CAAC;YAEtF,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,OAAO,CAAoC;gBAC/E,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAC/B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,uBAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxD,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const deletePostAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
post_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=delete-post.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-post.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/delete-post.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;EAmB3B,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deletePostAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.deletePostAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.feedhiveAuth,
|
|
11
|
-
name: 'delete_post',
|
|
12
|
-
displayName: 'Delete Post',
|
|
13
|
-
description: 'Deletes a post from FeedHive. This action cannot be undone.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Permanently deletes a FeedHive post by its post ID; this cannot be undone. Use to remove a draft or scheduled post you no longer want. Idempotent: once the post is gone, repeating the call leaves it deleted with no further effect.', idempotent: true },
|
|
16
|
-
props: {
|
|
17
|
-
post_id: common_1.feedhiveCommon.postDropdown,
|
|
18
|
-
},
|
|
19
|
-
run(context) {
|
|
20
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
yield common_1.feedhiveCommon.apiCall({
|
|
22
|
-
token: context.auth.secret_text,
|
|
23
|
-
method: pieces_common_1.HttpMethod.DELETE,
|
|
24
|
-
path: `/posts/${context.propsValue.post_id}`,
|
|
25
|
-
});
|
|
26
|
-
return { success: true, deleted_post_id: context.propsValue.post_id };
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=delete-post.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-post.js","sourceRoot":"","sources":["../../../../src/lib/actions/delete-post.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE9B,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,wOAAwO,EAAE,UAAU,EAAE,IAAI,EAAE;IACvR,KAAK,EAAE;QACL,OAAO,EAAE,uBAAc,CAAC,YAAY;KACrC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,uBAAc,CAAC,OAAO,CAAC;gBAC3B,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAC/B,MAAM,EAAE,0BAAU,CAAC,MAAM;gBACzB,IAAI,EAAE,UAAU,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE;aAC7C,CAAC,CAAC;YAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE,CAAC;QACxE,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const fireWorkflowTriggerAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
setup_instructions: import("@activepieces/pieces-framework/dist/src/lib/property/input/markdown-property").MarkDownProperty;
|
|
3
|
-
trigger_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
text: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
5
|
-
prompt: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
6
|
-
scheduled: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
7
|
-
media_urls: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
8
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
link: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
template_variables: import("@activepieces/pieces-framework").ObjectProperty<false>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=fire-workflow-trigger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fire-workflow-trigger.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/fire-workflow-trigger.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,yBAAyB;;;;;;;;;;EAgFpC,CAAC"}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.fireWorkflowTriggerAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.fireWorkflowTriggerAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.feedhiveAuth,
|
|
11
|
-
name: 'fire_workflow_trigger',
|
|
12
|
-
displayName: 'Create Post via Trigger',
|
|
13
|
-
description: 'Fires a FeedHive Workflow Trigger to create a post. The workflow defines which accounts to post to, the AI model to use, and any default content.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Fires a pre-configured FeedHive workflow trigger (identified by its Trigger ID) to create a post, letting the workflow decide accounts, AI model, and defaults; you can optionally override with explicit text, an AI prompt, schedule, media URLs, title/link, or template variables that fill [[placeholder]] tokens in the workflow template. Use when posting through an existing FeedHive workflow rather than building the post directly. Not idempotent: each call fires the workflow and creates a new post.', idempotent: false },
|
|
16
|
-
props: {
|
|
17
|
-
setup_instructions: pieces_framework_1.Property.MarkDown({
|
|
18
|
-
value: `### How to find your Trigger ID
|
|
19
|
-
|
|
20
|
-
1. In FeedHive, open the **Workflows** section in the sidebar.
|
|
21
|
-
2. Open the workflow you want to fire.
|
|
22
|
-
3. In the workflow settings, copy the **Trigger ID** (a short alphanumeric code).
|
|
23
|
-
|
|
24
|
-
**Note:** You can also pass custom template variables — if your workflow content contains placeholders like \`[[first_name]]\`, add them in the **Template Variables** field below.`,
|
|
25
|
-
}),
|
|
26
|
-
trigger_id: pieces_framework_1.Property.ShortText({
|
|
27
|
-
displayName: 'Trigger ID',
|
|
28
|
-
description: 'The ID of your FeedHive workflow trigger. Found in FeedHive → Workflows → your workflow settings.',
|
|
29
|
-
required: true,
|
|
30
|
-
}),
|
|
31
|
-
text: pieces_framework_1.Property.LongText({
|
|
32
|
-
displayName: 'Post Text',
|
|
33
|
-
description: 'The content of the post. Leave empty to let your workflow generate or use a template.',
|
|
34
|
-
required: false,
|
|
35
|
-
}),
|
|
36
|
-
prompt: pieces_framework_1.Property.LongText({
|
|
37
|
-
displayName: 'AI Prompt',
|
|
38
|
-
description: 'Ask FeedHive AI to generate the post content. Only used if your workflow is configured for AI generation.',
|
|
39
|
-
required: false,
|
|
40
|
-
}),
|
|
41
|
-
scheduled: pieces_framework_1.Property.DateTime({
|
|
42
|
-
displayName: 'Scheduled Date & Time',
|
|
43
|
-
description: 'When to publish the post. Leave empty to use the schedule defined in the workflow.',
|
|
44
|
-
required: false,
|
|
45
|
-
}),
|
|
46
|
-
media_urls: pieces_framework_1.Property.Array({
|
|
47
|
-
displayName: 'Media URLs',
|
|
48
|
-
description: 'Public URLs of images or videos to include in the post (e.g. https://example.com/photo.jpg).',
|
|
49
|
-
required: false,
|
|
50
|
-
}),
|
|
51
|
-
title: pieces_framework_1.Property.ShortText({
|
|
52
|
-
displayName: 'Title',
|
|
53
|
-
description: 'Post title — only applicable for YouTube, Google My Business, and Pinterest posts.',
|
|
54
|
-
required: false,
|
|
55
|
-
}),
|
|
56
|
-
link: pieces_framework_1.Property.ShortText({
|
|
57
|
-
displayName: 'Link URL',
|
|
58
|
-
description: 'A URL to attach to the post — only applicable for YouTube, Google My Business, and Pinterest posts.',
|
|
59
|
-
required: false,
|
|
60
|
-
}),
|
|
61
|
-
template_variables: pieces_framework_1.Property.Object({
|
|
62
|
-
displayName: 'Template Variables',
|
|
63
|
-
description: 'If your workflow template uses placeholders like [[first_name]], provide them here as key-value pairs (e.g. first_name → John). Each key maps directly to a [[placeholder]] in your template.',
|
|
64
|
-
required: false,
|
|
65
|
-
}),
|
|
66
|
-
},
|
|
67
|
-
run(context) {
|
|
68
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
69
|
-
var _a;
|
|
70
|
-
const { trigger_id, text, prompt, scheduled, media_urls, title, link, template_variables } = context.propsValue;
|
|
71
|
-
// Template variables are applied first so explicit fields always take precedence
|
|
72
|
-
const body = Object.assign({}, (template_variables !== null && template_variables !== void 0 ? template_variables : {}));
|
|
73
|
-
if (text)
|
|
74
|
-
body['text'] = text;
|
|
75
|
-
if (prompt)
|
|
76
|
-
body['prompt'] = prompt;
|
|
77
|
-
if (scheduled)
|
|
78
|
-
body['scheduled'] = scheduled;
|
|
79
|
-
if (media_urls && media_urls.length > 0)
|
|
80
|
-
body['media_urls'] = media_urls;
|
|
81
|
-
if (title)
|
|
82
|
-
body['title'] = title;
|
|
83
|
-
if (link)
|
|
84
|
-
body['link'] = link;
|
|
85
|
-
const response = yield common_1.feedhiveCommon.apiCall({
|
|
86
|
-
token: context.auth.secret_text,
|
|
87
|
-
method: pieces_common_1.HttpMethod.POST,
|
|
88
|
-
path: `/triggers/${trigger_id}`,
|
|
89
|
-
body,
|
|
90
|
-
});
|
|
91
|
-
return { success: (_a = response.body.success) !== null && _a !== void 0 ? _a : true };
|
|
92
|
-
});
|
|
93
|
-
},
|
|
94
|
-
});
|
|
95
|
-
//# sourceMappingURL=fire-workflow-trigger.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fire-workflow-trigger.js","sourceRoot":"","sources":["../../../../src/lib/actions/fire-workflow-trigger.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE9B,QAAA,yBAAyB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,uBAAuB;IAC7B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,mJAAmJ;IAChK,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,sfAAsf,EAAE,UAAU,EAAE,KAAK,EAAE;IACtiB,KAAK,EAAE;QACL,kBAAkB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACpC,KAAK,EAAE;;;;;;oLAMuK;SAC/K,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACz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AAkB,cAAlB,kBAAkB,GAAI,EAAE,CAAC,CAAE,CAAC;YACxE,IAAI,IAAI;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAC9B,IAAI,MAAM;gBAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC;YACpC,IAAI,SAAS;gBAAE,IAAI,CAAC,WAAW,CAAC,GAAG,SAAS,CAAC;YAC7C,IAAI,UAAU,IAAK,UAAuB,CAAC,MAAM,GAAG,CAAC;gBAAE,IAAI,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC;YACvF,IAAI,KAAK;gBAAE,IAAI,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC;YACjC,IAAI,IAAI;gBAAE,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAE9B,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,OAAO,CAAuB;gBAClE,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAC/B,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,IAAI,EAAE,aAAa,UAAU,EAAE;gBAC/B,IAAI;aACL,CAAC,CAAC;YAEH,OAAO,EAAE,OAAO,EAAE,MAAA,QAAQ,CAAC,IAAI,CAAC,OAAO,mCAAI,IAAI,EAAE,CAAC;QACpD,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getPostAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
post_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-post.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-post.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-post.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;EAmBxB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getPostAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.getPostAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.feedhiveAuth,
|
|
11
|
-
name: 'get_post',
|
|
12
|
-
displayName: 'Get Post',
|
|
13
|
-
description: 'Retrieves the details of a specific post.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Fetches the full details of a single FeedHive post by its post ID. Use to read a post\'s current content, status, schedule, accounts, and labels before acting on it. Read-only and idempotent.', idempotent: true },
|
|
16
|
-
props: {
|
|
17
|
-
post_id: common_1.feedhiveCommon.postDropdown,
|
|
18
|
-
},
|
|
19
|
-
run(context) {
|
|
20
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const response = yield common_1.feedhiveCommon.apiCall({
|
|
22
|
-
token: context.auth.secret_text,
|
|
23
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
24
|
-
path: `/posts/${context.propsValue.post_id}`,
|
|
25
|
-
});
|
|
26
|
-
return common_1.feedhiveCommon.flattenPost(response.body.data);
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
//# sourceMappingURL=get-post.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-post.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-post.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE9B,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,UAAU;IAChB,WAAW,EAAE,UAAU;IACvB,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,iMAAiM,EAAE,UAAU,EAAE,IAAI,EAAE;IAChP,KAAK,EAAE;QACL,OAAO,EAAE,uBAAc,CAAC,YAAY;KACrC;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,QAAQ,GAAG,MAAM,uBAAc,CAAC,OAAO,CAAoC;gBAC/E,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,WAAW;gBAC/B,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,IAAI,EAAE,UAAU,OAAO,CAAC,UAAU,CAAC,OAAO,EAAE;aAC7C,CAAC,CAAC;YAEH,OAAO,uBAAc,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACxD,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const listPostsAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
3
|
-
labels: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
-
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
|
-
}>;
|
|
6
|
-
//# sourceMappingURL=list-posts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-posts.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-posts.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe;;;;EAkD1B,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listPostsAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.listPostsAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.feedhiveAuth,
|
|
11
|
-
name: 'list_posts',
|
|
12
|
-
displayName: 'List Posts',
|
|
13
|
-
description: 'Returns a list of posts, optionally filtered by status or labels.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Lists FeedHive posts, optionally narrowed by status (draft, scheduled, publishing, published, failed) and/or labels; leaving both filters empty returns all posts up to the result limit (max 100). Use to discover post IDs or survey the content queue. Read-only and idempotent.', idempotent: true },
|
|
16
|
-
props: {
|
|
17
|
-
status: pieces_framework_1.Property.StaticDropdown({
|
|
18
|
-
displayName: 'Filter by Status',
|
|
19
|
-
description: 'Only return posts with this status. Leave empty to return all posts.',
|
|
20
|
-
required: false,
|
|
21
|
-
options: {
|
|
22
|
-
options: [
|
|
23
|
-
{ label: 'Draft', value: 'draft' },
|
|
24
|
-
{ label: 'Scheduled', value: 'scheduled' },
|
|
25
|
-
{ label: 'Publishing', value: 'publishing' },
|
|
26
|
-
{ label: 'Published', value: 'published' },
|
|
27
|
-
{ label: 'Failed', value: 'failed' },
|
|
28
|
-
],
|
|
29
|
-
},
|
|
30
|
-
}),
|
|
31
|
-
labels: common_1.feedhiveCommon.labelsMultiDropdown,
|
|
32
|
-
limit: pieces_framework_1.Property.Number({
|
|
33
|
-
displayName: 'Maximum Results',
|
|
34
|
-
description: 'Maximum number of posts to return. Between 1 and 100.',
|
|
35
|
-
required: false,
|
|
36
|
-
defaultValue: 20,
|
|
37
|
-
}),
|
|
38
|
-
},
|
|
39
|
-
run(context) {
|
|
40
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
const { status, labels, limit } = context.propsValue;
|
|
43
|
-
const queryParams = {
|
|
44
|
-
limit: String(Math.min(limit !== null && limit !== void 0 ? limit : 20, 100)),
|
|
45
|
-
};
|
|
46
|
-
if (status)
|
|
47
|
-
queryParams['status'] = status;
|
|
48
|
-
if (labels && labels.length > 0)
|
|
49
|
-
queryParams['labels'] = labels.join(',');
|
|
50
|
-
const response = yield common_1.feedhiveCommon.apiCall({
|
|
51
|
-
token: context.auth.secret_text,
|
|
52
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
53
|
-
path: '/posts',
|
|
54
|
-
queryParams,
|
|
55
|
-
});
|
|
56
|
-
return ((_b = (_a = response.body.data) === null || _a === void 0 ? void 0 : _a.items) !== null && _b !== void 0 ? _b : []).map((p) => common_1.feedhiveCommon.flattenPost(p));
|
|
57
|
-
});
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=list-posts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-posts.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-posts.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,yCAA8C;AAC9C,sCAA2C;AAE9B,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,mBAAY;IAClB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,mEAAmE;IAChF,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,qRAAqR,EAAE,UAAU,EAAE,IAAI,EAAE;IACpU,KAAK,EAAE;QACL,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC9B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,sEAAsE;YACnF,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAA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A,QAAQ,CAAC,IAAI,CAAC,IAAI,0CAAE,KAAK,mCAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,uBAAc,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;QACrF,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare const updatePostAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
post_id: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
3
|
-
text: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
4
|
-
status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
5
|
-
scheduled_at: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
6
|
-
accounts: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
7
|
-
labels: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
8
|
-
notes: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
9
|
-
short_link_enabled: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
10
|
-
}>;
|
|
11
|
-
//# sourceMappingURL=update-post.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-post.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-post.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;;;;;;EAkE3B,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.updatePostAction = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
const auth_1 = require("../common/auth");
|
|
8
|
-
const common_1 = require("../common");
|
|
9
|
-
exports.updatePostAction = (0, pieces_framework_1.createAction)({
|
|
10
|
-
auth: auth_1.feedhiveAuth,
|
|
11
|
-
name: 'update_post',
|
|
12
|
-
displayName: 'Update Post',
|
|
13
|
-
description: 'Updates an existing post in FeedHive. Only the fields you fill in will be changed.',
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: { description: 'Updates an existing FeedHive post identified by its post ID; only the fields you supply (text, status, schedule, accounts, labels, notes) are changed, leaving the rest intact. Use to edit or reschedule a draft or scheduled post. Idempotent: applying the same field values repeatedly leaves the post in the same state.', idempotent: true },
|
|
16
|
-
props: {
|
|
17
|
-
post_id: common_1.feedhiveCommon.postDropdown,
|
|
18
|
-
text: pieces_framework_1.Property.LongText({
|
|
19
|
-
displayName: 'Post Text',
|
|
20
|
-
description: 'The new content of the post. Leave empty to keep the current text.',
|
|
21
|
-
required: false,
|
|
22
|
-
}),
|
|
23
|
-
status: pieces_framework_1.Property.StaticDropdown({
|
|
24
|
-
displayName: 'Status',
|
|
25
|
-
description: 'Change the post status. Leave empty to keep the current status.',
|
|
26
|
-
required: false,
|
|
27
|
-
options: {
|
|
28
|
-
options: [
|
|
29
|
-
{ label: 'Draft', value: 'draft' },
|
|
30
|
-
{ label: 'Scheduled', value: 'scheduled' },
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
}),
|
|
34
|
-
scheduled_at: pieces_framework_1.Property.DateTime({
|
|
35
|
-
displayName: 'Scheduled Date & Time',
|
|
36
|
-
description: 'Update the scheduled publish date and time.',
|
|
37
|
-
required: false,
|
|
38
|
-
}),
|
|
39
|
-
accounts: common_1.feedhiveCommon.socialsMultiDropdown,
|
|
40
|
-
labels: common_1.feedhiveCommon.labelsMultiDropdown,
|
|
41
|
-
notes: pieces_framework_1.Property.LongText({
|
|
42
|
-
displayName: 'Internal Notes',
|
|
43
|
-
description: 'Update the private notes for this post.',
|
|
44
|
-
required: false,
|
|
45
|
-
}),
|
|
46
|
-
short_link_enabled: pieces_framework_1.Property.Checkbox({
|
|
47
|
-
displayName: 'Enable Short Links',
|
|
48
|
-
description: 'Automatically shorten URLs in the post text.',
|
|
49
|
-
required: false,
|
|
50
|
-
}),
|
|
51
|
-
},
|
|
52
|
-
run(context) {
|
|
53
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
54
|
-
const { post_id, text, status, scheduled_at, accounts, labels, notes, short_link_enabled } = context.propsValue;
|
|
55
|
-
const body = {};
|
|
56
|
-
if (text)
|
|
57
|
-
body['text'] = text;
|
|
58
|
-
if (status)
|
|
59
|
-
body['status'] = status;
|
|
60
|
-
if (scheduled_at)
|
|
61
|
-
body['scheduled_at'] = scheduled_at;
|
|
62
|
-
if (accounts && accounts.length > 0)
|
|
63
|
-
body['accounts'] = accounts;
|
|
64
|
-
if (labels !== undefined)
|
|
65
|
-
body['labels'] = labels !== null && labels !== void 0 ? labels : [];
|
|
66
|
-
if (notes)
|
|
67
|
-
body['notes'] = notes;
|
|
68
|
-
if (short_link_enabled !== undefined && short_link_enabled !== null)
|
|
69
|
-
body['short_link_enabled'] = short_link_enabled;
|
|
70
|
-
const response = yield common_1.feedhiveCommon.apiCall({
|
|
71
|
-
token: context.auth.secret_text,
|
|
72
|
-
method: pieces_common_1.HttpMethod.PATCH,
|
|
73
|
-
path: `/posts/${post_id}`,
|
|
74
|
-
body,
|
|
75
|
-
});
|
|
76
|
-
return common_1.feedhiveCommon.flattenPost(response.body.data);
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
//# sourceMappingURL=update-post.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-post.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-post.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,+DAAyD;AACzD,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
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY,mEAwBvB,CAAC"}
|
package/src/lib/common/auth.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.feedhiveAuth = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
7
|
-
exports.feedhiveAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
8
|
-
displayName: 'API Key',
|
|
9
|
-
description: `To get your FeedHive API key:
|
|
10
|
-
1. Log in to your FeedHive account.
|
|
11
|
-
2. Go to **Settings** → **Account** (or **Workspace**).
|
|
12
|
-
3. Find the **API Key** section and copy your key.
|
|
13
|
-
|
|
14
|
-
Your key starts with \`fh_\`.`,
|
|
15
|
-
required: true,
|
|
16
|
-
validate: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
17
|
-
try {
|
|
18
|
-
yield pieces_common_1.httpClient.sendRequest({
|
|
19
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
20
|
-
url: 'https://api.feedhive.com/status',
|
|
21
|
-
authentication: { type: pieces_common_1.AuthenticationType.BEARER_TOKEN, token: auth },
|
|
22
|
-
});
|
|
23
|
-
return { valid: true };
|
|
24
|
-
}
|
|
25
|
-
catch (_b) {
|
|
26
|
-
return {
|
|
27
|
-
valid: false,
|
|
28
|
-
error: 'Invalid API key. Make sure you copied it correctly from FeedHive Settings.',
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
}),
|
|
32
|
-
});
|
|
33
|
-
//# sourceMappingURL=auth.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../src/lib/common/auth.ts"],"names":[],"mappings":";;;;AAAA,qEAA2D;AAC3D,+DAAyF;AAE5E,QAAA,YAAY,GAAG,4BAAS,CAAC,UAAU,CAAC;IAC/C,WAAW,EAAE,SAAS;IACtB,WAAW,EAAE;;;;;8BAKe;IAC5B,QAAQ,EAAE,IAAI;IACd,QAAQ,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;QACvB,IAAI,CAAC;YACH,MAAM,0BAAU,CAAC,WAAW,CAAC;gBAC3B,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,GAAG,EAAE,iCAAiC;gBACtC,cAAc,EAAE,EAAE,IAAI,EAAE,kCAAkB,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE;aACvE,CAAC,CAAC;YACH,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACzB,CAAC;QAAC,WAAM,CAAC;YACP,OAAO;gBACL,KAAK,EAAE,KAAK;gBACZ,KAAK,EAAE,4EAA4E;aACpF,CAAC;QACJ,CAAC;IACH,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { HttpMessageBody, HttpMethod, HttpResponse } from '@activepieces/pieces-common';
|
|
2
|
-
export declare const feedhiveCommon: {
|
|
3
|
-
socialsMultiDropdown: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
4
|
-
labelsMultiDropdown: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
5
|
-
postDropdown: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").SecretTextProperty<true>>;
|
|
6
|
-
apiCall: typeof apiCall;
|
|
7
|
-
flattenPost: typeof flattenPost;
|
|
8
|
-
};
|
|
9
|
-
declare function apiCall<T extends HttpMessageBody>({ token, method, path, body, queryParams, }: {
|
|
10
|
-
token: string;
|
|
11
|
-
method: HttpMethod;
|
|
12
|
-
path: string;
|
|
13
|
-
body?: unknown;
|
|
14
|
-
queryParams?: Record<string, string>;
|
|
15
|
-
}): Promise<HttpResponse<T>>;
|
|
16
|
-
declare function flattenPost(post: Record<string, unknown>): Record<string, unknown>;
|
|
17
|
-
export {};
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,eAAe,EACf,UAAU,EACV,YAAY,EACb,MAAM,6BAA6B,CAAC;AAkGrC,eAAO,MAAM,cAAc;;;;;;CAM1B,CAAC;AAEF,iBAAe,OAAO,CAAC,CAAC,SAAS,eAAe,EAAE,EAChD,KAAK,EACL,MAAM,EACN,IAAI,EACJ,IAAI,EACJ,WAAW,GACZ,EAAE;IACD,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAQ3B;AAED,iBAAS,WAAW,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4B3E"}
|
package/src/lib/common/index.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.feedhiveCommon = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
-
const auth_1 = require("./auth");
|
|
8
|
-
const BASE_URL = 'https://api.feedhive.com';
|
|
9
|
-
const socialsMultiDropdown = pieces_framework_1.Property.MultiSelectDropdown({
|
|
10
|
-
displayName: 'Social Accounts',
|
|
11
|
-
description: 'Select the social media accounts to publish this post to.',
|
|
12
|
-
refreshers: [],
|
|
13
|
-
required: false,
|
|
14
|
-
auth: auth_1.feedhiveAuth,
|
|
15
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
16
|
-
var _b;
|
|
17
|
-
if (!auth) {
|
|
18
|
-
return { disabled: true, options: [], placeholder: 'Please connect your account first' };
|
|
19
|
-
}
|
|
20
|
-
try {
|
|
21
|
-
const response = yield apiCall({ token: auth.secret_text, method: pieces_common_1.HttpMethod.GET, path: '/socials' });
|
|
22
|
-
return {
|
|
23
|
-
disabled: false,
|
|
24
|
-
options: ((_b = response.body.data) !== null && _b !== void 0 ? _b : [])
|
|
25
|
-
.filter((a) => a.status === 'active')
|
|
26
|
-
.map((a) => ({
|
|
27
|
-
label: `${a.display_name} (@${a.handle}) — ${a.platform}`,
|
|
28
|
-
value: a.id,
|
|
29
|
-
})),
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
catch (_c) {
|
|
33
|
-
return {
|
|
34
|
-
disabled: true,
|
|
35
|
-
options: [],
|
|
36
|
-
placeholder: 'Failed to load social accounts. Check your connection.',
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
}),
|
|
40
|
-
});
|
|
41
|
-
const labelsMultiDropdown = pieces_framework_1.Property.MultiSelectDropdown({
|
|
42
|
-
displayName: 'Labels',
|
|
43
|
-
description: 'Optionally assign labels to organise this post in FeedHive.',
|
|
44
|
-
refreshers: [],
|
|
45
|
-
required: false,
|
|
46
|
-
auth: auth_1.feedhiveAuth,
|
|
47
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
48
|
-
var _b, _c;
|
|
49
|
-
if (!auth) {
|
|
50
|
-
return { disabled: true, options: [], placeholder: 'Please connect your account first' };
|
|
51
|
-
}
|
|
52
|
-
try {
|
|
53
|
-
const response = yield apiCall({ token: auth.secret_text, method: pieces_common_1.HttpMethod.GET, path: '/labels' });
|
|
54
|
-
return {
|
|
55
|
-
disabled: false,
|
|
56
|
-
options: ((_c = (_b = response.body.data) === null || _b === void 0 ? void 0 : _b.items) !== null && _c !== void 0 ? _c : []).map((l) => ({
|
|
57
|
-
label: l.title,
|
|
58
|
-
value: l.id,
|
|
59
|
-
})),
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
catch (_d) {
|
|
63
|
-
return { disabled: true, options: [], placeholder: 'Failed to load labels. Check your connection.' };
|
|
64
|
-
}
|
|
65
|
-
}),
|
|
66
|
-
});
|
|
67
|
-
const postDropdown = pieces_framework_1.Property.Dropdown({
|
|
68
|
-
displayName: 'Post',
|
|
69
|
-
description: 'Select the post you want to act on.',
|
|
70
|
-
refreshers: [],
|
|
71
|
-
required: true,
|
|
72
|
-
auth: auth_1.feedhiveAuth,
|
|
73
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
|
|
74
|
-
var _b, _c;
|
|
75
|
-
if (!auth) {
|
|
76
|
-
return { disabled: true, options: [], placeholder: 'Please connect your account first' };
|
|
77
|
-
}
|
|
78
|
-
try {
|
|
79
|
-
const response = yield apiCall({
|
|
80
|
-
token: auth.secret_text,
|
|
81
|
-
method: pieces_common_1.HttpMethod.GET,
|
|
82
|
-
path: '/posts',
|
|
83
|
-
queryParams: { limit: '100' },
|
|
84
|
-
});
|
|
85
|
-
return {
|
|
86
|
-
disabled: false,
|
|
87
|
-
options: ((_c = (_b = response.body.data) === null || _b === void 0 ? void 0 : _b.items) !== null && _c !== void 0 ? _c : []).map((p) => {
|
|
88
|
-
const preview = p.text ? p.text.slice(0, 60) + (p.text.length > 60 ? '…' : '') : '(no text)';
|
|
89
|
-
return { label: `${preview} [${p.status}]`, value: p.id };
|
|
90
|
-
}),
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
catch (_d) {
|
|
94
|
-
return { disabled: true, options: [], placeholder: 'Failed to load posts. Check your connection.' };
|
|
95
|
-
}
|
|
96
|
-
}),
|
|
97
|
-
});
|
|
98
|
-
exports.feedhiveCommon = {
|
|
99
|
-
socialsMultiDropdown,
|
|
100
|
-
labelsMultiDropdown,
|
|
101
|
-
postDropdown,
|
|
102
|
-
apiCall,
|
|
103
|
-
flattenPost,
|
|
104
|
-
};
|
|
105
|
-
function apiCall(_a) {
|
|
106
|
-
return tslib_1.__awaiter(this, arguments, void 0, function* ({ token, method, path, body, queryParams, }) {
|
|
107
|
-
return pieces_common_1.httpClient.sendRequest({
|
|
108
|
-
method,
|
|
109
|
-
url: `${BASE_URL}${path}`,
|
|
110
|
-
authentication: { type: pieces_common_1.AuthenticationType.BEARER_TOKEN, token },
|
|
111
|
-
queryParams,
|
|
112
|
-
body,
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
function flattenPost(post) {
|
|
117
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
118
|
-
const approval = post['approval'];
|
|
119
|
-
return {
|
|
120
|
-
id: (_a = post['id']) !== null && _a !== void 0 ? _a : null,
|
|
121
|
-
status: (_b = post['status']) !== null && _b !== void 0 ? _b : null,
|
|
122
|
-
text: (_c = post['text']) !== null && _c !== void 0 ? _c : null,
|
|
123
|
-
accounts: Array.isArray(post['accounts']) && post['accounts'].length > 0
|
|
124
|
-
? post['accounts'].join(', ')
|
|
125
|
-
: null,
|
|
126
|
-
labels: Array.isArray(post['labels']) && post['labels'].length > 0
|
|
127
|
-
? post['labels'].join(', ')
|
|
128
|
-
: null,
|
|
129
|
-
media: Array.isArray(post['media']) && post['media'].length > 0
|
|
130
|
-
? post['media'].join(', ')
|
|
131
|
-
: null,
|
|
132
|
-
notes: (_d = post['notes']) !== null && _d !== void 0 ? _d : null,
|
|
133
|
-
short_link_enabled: (_e = post['short_link_enabled']) !== null && _e !== void 0 ? _e : null,
|
|
134
|
-
scheduled_at: (_f = post['scheduled_at']) !== null && _f !== void 0 ? _f : null,
|
|
135
|
-
published_at: (_g = post['published_at']) !== null && _g !== void 0 ? _g : null,
|
|
136
|
-
slot_id: (_h = post['slot_id']) !== null && _h !== void 0 ? _h : null,
|
|
137
|
-
approval_status: (_j = approval === null || approval === void 0 ? void 0 : approval.status) !== null && _j !== void 0 ? _j : null,
|
|
138
|
-
approval_is_approved: (_k = approval === null || approval === void 0 ? void 0 : approval.is_approved) !== null && _k !== void 0 ? _k : null,
|
|
139
|
-
approval_approved_at: (_l = approval === null || approval === void 0 ? void 0 : approval.approved_at) !== null && _l !== void 0 ? _l : null,
|
|
140
|
-
created_at: (_m = post['created_at']) !== null && _m !== void 0 ? _m : null,
|
|
141
|
-
updated_at: (_o = post['updated_at']) !== null && _o !== void 0 ? _o : null,
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+DAMqC;AACrC,qEAA0D;AAC1D,iCAAsC;AAEtC,MAAM,QAAQ,GAAG,0BAA0B,CAAC;AAE5C,MAAM,oBAAoB,GAAG,2BAAQ,CAAC,mBAAmB,CAAC;IACxD,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,2DAA2D;IACxE,UAAU,EAAE,EAAE;IACd,QAAQ,EAAE,KAAK;IACf,IAAI,EAAE,mBAAY;IAClB,OAAO,EAAE,KAAiB,EAAE,oDAAZ,EAAE,IAAI,EAAE;;QACtB,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;QAC3F,CAAC;QAC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