n8n-nodes-late
Version:
n8n community node for LATE API - Schedule and manage social media posts across Twitter/X, Instagram, Facebook, LinkedIn, TikTok, YouTube, and Threads
47 lines • 1.7 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.accountsResource = void 0;
const commonFields_1 = require("../utils/commonFields");
exports.accountsResource = {
operations: [
{
name: "List",
value: "list",
action: "List social accounts",
routing: {
request: {
method: "GET",
url: "/accounts",
qs: {
profileId: "={{ $parameter.profileId || undefined }}",
},
},
},
},
{
name: "Delete",
value: "delete",
action: "Disconnect account",
routing: {
request: {
method: "DELETE",
url: "=/accounts/{{ $parameter.accountId }}",
},
},
},
],
fields: [
// Profile ID for filtering (optional)
{
...(0, commonFields_1.buildProfileIdField)("accounts", ["list"], false),
description: "Optional: Filter accounts by a specific profile ID. Leave empty to see all connected accounts across all profiles.",
placeholder: "profile_123_abc",
},
// Account ID for deletion
{
...(0, commonFields_1.buildAccountIdField)("accounts", ["delete"]),
description: "The unique ID of the social media account to disconnect. You can get this from the 'List' operation. Disconnecting removes the account from your profile but doesn't delete the actual social media account.",
},
],
};
//# sourceMappingURL=accounts.js.map