@pipedream/linkedin 1.2.0 → 1.2.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.
- package/actions/create-comment/create-comment.mjs +1 -1
- package/actions/create-image-post-organization/create-image-post-organization.mjs +6 -2
- package/actions/create-image-post-user/create-image-post-user.mjs +10 -1
- package/actions/create-like-on-share/create-like-on-share.mjs +1 -1
- package/actions/create-text-post-organization/create-text-post-organization.mjs +9 -3
- package/actions/create-text-post-user/create-text-post-user.mjs +36 -16
- package/actions/delete-post/delete-post.mjs +1 -1
- package/actions/fetch-ad-account/fetch-ad-account.mjs +1 -1
- package/actions/get-current-member-profile/get-current-member-profile.mjs +1 -1
- package/actions/get-member-profile/get-member-profile.mjs +1 -1
- package/actions/get-multiple-member-profiles/get-multiple-member-profiles.mjs +1 -1
- package/actions/get-org-member-access/get-org-member-access.mjs +1 -1
- package/actions/get-organization-access-control/get-organization-access-control.mjs +1 -1
- package/actions/get-organization-administrators/get-organization-administrators.mjs +1 -1
- package/actions/get-profile-picture-fields/get-profile-picture-fields.mjs +1 -1
- package/actions/retrieve-comments-on-comments/retrieve-comments-on-comments.mjs +1 -1
- package/actions/retrieve-comments-shares/retrieve-comments-shares.mjs +1 -1
- package/actions/search-organization/search-organization.mjs +1 -1
- package/linkedin.app.mjs +1 -14
- package/package.json +1 -1
- package/sources/new-organization-post-created/new-organization-post-created.mjs +1 -1
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-create-comment",
|
|
5
5
|
name: "Create Comment",
|
|
6
6
|
description: "Create a comment on a share or user generated content post. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/network-update-social-actions#create-comment)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
key: "linkedin-create-image-post-organization",
|
|
8
8
|
name: "Create Image Post (Organization)",
|
|
9
9
|
description: "Create an image post on LinkedIn. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/images-api?view=li-lms-2023-09&tabs=http#uploading-an-image)",
|
|
10
|
-
version: "1.0.
|
|
10
|
+
version: "1.0.3",
|
|
11
11
|
type: "action",
|
|
12
12
|
props: {
|
|
13
13
|
linkedin,
|
|
@@ -87,7 +87,11 @@ export default {
|
|
|
87
87
|
|
|
88
88
|
await this.linkedin.createPost({
|
|
89
89
|
data: {
|
|
90
|
-
author: this.organizationId
|
|
90
|
+
author: `urn:li:organization:${this.organizationId}`,
|
|
91
|
+
lifecycleState: "PUBLISHED",
|
|
92
|
+
distribution: {
|
|
93
|
+
feedDistribution: "MAIN_FEED",
|
|
94
|
+
},
|
|
91
95
|
commentary: utils.escapeText(this.text),
|
|
92
96
|
visibility: "PUBLIC",
|
|
93
97
|
content: {
|
|
@@ -7,7 +7,7 @@ export default {
|
|
|
7
7
|
key: "linkedin-create-image-post-user",
|
|
8
8
|
name: "Create Image Post (User)",
|
|
9
9
|
description: "Create an image post on LinkedIn. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/images-api?view=li-lms-2023-09&tabs=http#uploading-an-image)",
|
|
10
|
-
version: "1.0.
|
|
10
|
+
version: "1.0.3",
|
|
11
11
|
type: "action",
|
|
12
12
|
props: {
|
|
13
13
|
linkedin,
|
|
@@ -85,8 +85,17 @@ export default {
|
|
|
85
85
|
|
|
86
86
|
await this.uploadImage(uploadUrl, formData);
|
|
87
87
|
|
|
88
|
+
const { id } = await this.linkedin.getCurrentMemberProfile({
|
|
89
|
+
$,
|
|
90
|
+
});
|
|
91
|
+
|
|
88
92
|
await this.linkedin.createPost({
|
|
89
93
|
data: {
|
|
94
|
+
author: `urn:li:person:${id}`,
|
|
95
|
+
lifecycleState: "PUBLISHED",
|
|
96
|
+
distribution: {
|
|
97
|
+
feedDistribution: "MAIN_FEED",
|
|
98
|
+
},
|
|
90
99
|
commentary: utils.escapeText(this.text),
|
|
91
100
|
visibility: this.visibility,
|
|
92
101
|
content: {
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-create-like-on-share",
|
|
5
5
|
name: "Create Like On Share",
|
|
6
6
|
description: "Creates a like on a share. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/network-update-social-actions#create-a-like-on-a-share)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "linkedin-create-text-post-organization",
|
|
6
6
|
name: "Create a Simple Post (Organization)",
|
|
7
7
|
description: "Create post on LinkedIn using text, URL or article. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/posts-api?view=li-lms-2022-11&tabs=http#create-organic-posts) for more information",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.8",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
linkedin,
|
|
@@ -30,9 +30,13 @@ export default {
|
|
|
30
30
|
},
|
|
31
31
|
async run({ $ }) {
|
|
32
32
|
const data = {
|
|
33
|
-
author: this.organizationId
|
|
33
|
+
author: `urn:li:organization:${this.organizationId}`,
|
|
34
34
|
commentary: utils.escapeText(this.text),
|
|
35
35
|
visibility: "PUBLIC",
|
|
36
|
+
lifecycleState: "PUBLISHED",
|
|
37
|
+
distribution: {
|
|
38
|
+
feedDistribution: "MAIN_FEED",
|
|
39
|
+
},
|
|
36
40
|
};
|
|
37
41
|
if (this.article) {
|
|
38
42
|
data.content = {
|
|
@@ -47,6 +51,8 @@ export default {
|
|
|
47
51
|
data,
|
|
48
52
|
});
|
|
49
53
|
$.export("$summary", "Successfully created a new Post as Organization");
|
|
50
|
-
return response
|
|
54
|
+
return response || {
|
|
55
|
+
success: true,
|
|
56
|
+
};
|
|
51
57
|
},
|
|
52
58
|
};
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "linkedin-create-text-post-user",
|
|
6
6
|
name: "Create a Simple Post (User)",
|
|
7
7
|
description: "Create post on LinkedIn using text, URL or article. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/posts-api?view=li-lms-2022-11&tabs=http#create-organic-posts) for more information",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.8",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
linkedin,
|
|
@@ -29,23 +29,43 @@ export default {
|
|
|
29
29
|
},
|
|
30
30
|
},
|
|
31
31
|
async run({ $ }) {
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
visibility
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
const response = await this.linkedin.createPost({
|
|
32
|
+
const {
|
|
33
|
+
linkedin,
|
|
34
|
+
visibility,
|
|
35
|
+
text,
|
|
36
|
+
article,
|
|
37
|
+
} = this;
|
|
38
|
+
|
|
39
|
+
const profile = await linkedin.getCurrentMemberProfile({
|
|
40
|
+
$,
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
const response = await linkedin.createPost({
|
|
45
44
|
$,
|
|
46
|
-
data
|
|
45
|
+
data: {
|
|
46
|
+
author: `urn:li:person:${profile?.id}`,
|
|
47
|
+
lifecycleState: "PUBLISHED",
|
|
48
|
+
distribution: {
|
|
49
|
+
feedDistribution: "MAIN_FEED",
|
|
50
|
+
},
|
|
51
|
+
commentary: utils.escapeText(text),
|
|
52
|
+
visibility,
|
|
53
|
+
...(article
|
|
54
|
+
? {
|
|
55
|
+
content: {
|
|
56
|
+
article: {
|
|
57
|
+
source: article,
|
|
58
|
+
title: article,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
}
|
|
62
|
+
: {}
|
|
63
|
+
),
|
|
64
|
+
},
|
|
47
65
|
});
|
|
48
66
|
$.export("$summary", "Successfully created a new Post as User");
|
|
49
|
-
return response
|
|
67
|
+
return response || {
|
|
68
|
+
success: true,
|
|
69
|
+
};
|
|
50
70
|
},
|
|
51
71
|
};
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-delete-post",
|
|
5
5
|
name: "Delete Post",
|
|
6
6
|
description: "Removes a post from user's wall. [See the docs](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/share-api?tabs=http#delete-shares) for more information",
|
|
7
|
-
version: "0.0.
|
|
7
|
+
version: "0.0.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-fetch-ad-account",
|
|
5
5
|
name: "Fetch Ad Account",
|
|
6
6
|
description: "Fetches an individual adAccount given its id. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/ads/account-structure/create-and-manage-accounts#fetch-ad-account)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-get-current-member-profile",
|
|
5
5
|
name: "Get Current Member Profile",
|
|
6
6
|
description: "Gets the profile of the current authenticated member. [See the docs here](https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api#retrieve-current-members-profile)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-get-member-profile",
|
|
5
5
|
name: "Get Member Profile",
|
|
6
6
|
description: "Gets another member's profile, given its person id. [See the docs here](https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api#retrieve-other-members-profile)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-get-multiple-member-profiles",
|
|
5
5
|
name: "Get Multiple Member Profiles",
|
|
6
6
|
description: "Gets multiple member profiles at once. [See the docs here](https://docs.microsoft.com/en-us/linkedin/shared/integrations/people/profile-api#retrieve-other-members-profile)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-get-org-member-access",
|
|
5
5
|
name: "Get Member's Organization Access Control Information",
|
|
6
6
|
description: "Gets the organization access control information of the current authenticated member. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/organization-access-control-by-role?view=li-lms-2025-01&tabs=http#find-a-members-organization-access-control-information)",
|
|
7
|
-
version: "1.0.
|
|
7
|
+
version: "1.0.3",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-get-organization-access-control",
|
|
5
5
|
name: "Gets Organization Access Control",
|
|
6
6
|
description: "Gets a selected organization's access control information. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/organization-access-control-by-role?view=li-lms-2025-01&tabs=http#find-organization-access-control)",
|
|
7
|
-
version: "0.2.
|
|
7
|
+
version: "0.2.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-get-organization-administrators",
|
|
5
5
|
name: "Get Organization Administrators",
|
|
6
6
|
description: "Gets the administrator members of a selected organization. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/organizations/organization-access-control-by-role?view=li-lms-2025-01&tabs=http#find-organization-administrators)",
|
|
7
|
-
version: "0.3.
|
|
7
|
+
version: "0.3.2",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -5,7 +5,7 @@ export default {
|
|
|
5
5
|
key: "linkedin-get-profile-picture-fields",
|
|
6
6
|
name: "Get Profile Picture Fields",
|
|
7
7
|
description: "Gets the authenticated user's profile picture data including display image and metadata. [See the documentation](https://learn.microsoft.com/en-us/linkedin/shared/references/v2/profile/profile-picture)",
|
|
8
|
-
version: "0.0.
|
|
8
|
+
version: "0.0.3",
|
|
9
9
|
type: "action",
|
|
10
10
|
props: {
|
|
11
11
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-retrieve-comments-on-comments",
|
|
5
5
|
name: "Retrieves Comments on Comments",
|
|
6
6
|
description: "Retrieves comments on comments, given the parent comment urn. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/network-update-social-actions#retrieve-comments-on-comments)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-retrieve-comments-shares",
|
|
5
5
|
name: "Retrieve Comments On Shares",
|
|
6
6
|
description: "Retrieve comments on shares given the share urn. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/network-update-social-actions#retrieve-comments-on-shares)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
|
@@ -4,7 +4,7 @@ export default {
|
|
|
4
4
|
key: "linkedin-search-organization",
|
|
5
5
|
name: "Search Organization",
|
|
6
6
|
description: "Searches for an organization by vanity name or email domain. [See the docs here](https://docs.microsoft.com/en-us/linkedin/marketing/integrations/community-management/organizations/organization-lookup-api)",
|
|
7
|
-
version: "0.1.
|
|
7
|
+
version: "0.1.8",
|
|
8
8
|
type: "action",
|
|
9
9
|
props: {
|
|
10
10
|
linkedin,
|
package/linkedin.app.mjs
CHANGED
|
@@ -157,23 +157,10 @@ export default {
|
|
|
157
157
|
...otherConfig,
|
|
158
158
|
});
|
|
159
159
|
},
|
|
160
|
-
|
|
161
|
-
data, ...args
|
|
162
|
-
}) {
|
|
163
|
-
data = {
|
|
164
|
-
...data,
|
|
165
|
-
author: `urn:li:${data?.author
|
|
166
|
-
? "organization"
|
|
167
|
-
: "person"}:${data.author || this.$auth.oauth_uid}`,
|
|
168
|
-
lifecycleState: "PUBLISHED",
|
|
169
|
-
distribution: {
|
|
170
|
-
feedDistribution: "MAIN_FEED",
|
|
171
|
-
},
|
|
172
|
-
};
|
|
160
|
+
createPost(args = {}) {
|
|
173
161
|
return this._makeRequest({
|
|
174
162
|
method: "POST",
|
|
175
163
|
path: "/posts",
|
|
176
|
-
data,
|
|
177
164
|
...args,
|
|
178
165
|
});
|
|
179
166
|
},
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
name: "New Organization Post Created",
|
|
10
10
|
description: "Emit new event when a new post is created by the organization. [See the documentation](https://learn.microsoft.com/en-us/linkedin/marketing/community-management/shares/posts-api?view=li-lms-2024-09&tabs=curl#find-posts-by-authors).",
|
|
11
11
|
type: "source",
|
|
12
|
-
version: "0.0.
|
|
12
|
+
version: "0.0.3",
|
|
13
13
|
dedupe: "unique",
|
|
14
14
|
props: {
|
|
15
15
|
...common.props,
|