@activepieces/piece-linkupapi 0.0.2 → 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 +13 -56
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/check-invitation-status.d.ts +0 -5
- package/src/lib/actions/check-invitation-status.d.ts.map +0 -1
- package/src/lib/actions/check-invitation-status.js +0 -29
- package/src/lib/actions/check-invitation-status.js.map +0 -1
- package/src/lib/actions/get-account.d.ts +0 -4
- package/src/lib/actions/get-account.d.ts.map +0 -1
- package/src/lib/actions/get-account.js +0 -26
- package/src/lib/actions/get-account.js.map +0 -1
- package/src/lib/actions/get-company.d.ts +0 -5
- package/src/lib/actions/get-company.d.ts.map +0 -1
- package/src/lib/actions/get-company.js +0 -29
- package/src/lib/actions/get-company.js.map +0 -1
- package/src/lib/actions/get-conversation.d.ts +0 -8
- package/src/lib/actions/get-conversation.d.ts.map +0 -1
- package/src/lib/actions/get-conversation.js +0 -47
- package/src/lib/actions/get-conversation.js.map +0 -1
- package/src/lib/actions/get-my-profile.d.ts +0 -4
- package/src/lib/actions/get-my-profile.d.ts.map +0 -1
- package/src/lib/actions/get-my-profile.js +0 -21
- package/src/lib/actions/get-my-profile.js.map +0 -1
- package/src/lib/actions/get-profile.d.ts +0 -7
- package/src/lib/actions/get-profile.d.ts.map +0 -1
- package/src/lib/actions/get-profile.js +0 -41
- package/src/lib/actions/get-profile.js.map +0 -1
- package/src/lib/actions/list-accounts.d.ts +0 -5
- package/src/lib/actions/list-accounts.d.ts.map +0 -1
- package/src/lib/actions/list-accounts.js +0 -36
- package/src/lib/actions/list-accounts.js.map +0 -1
- package/src/lib/actions/search-companies.d.ts +0 -12
- package/src/lib/actions/search-companies.d.ts.map +0 -1
- package/src/lib/actions/search-companies.js +0 -47
- package/src/lib/actions/search-companies.js.map +0 -1
- package/src/lib/actions/search-people.d.ts +0 -21
- package/src/lib/actions/search-people.d.ts.map +0 -1
- package/src/lib/actions/search-people.js +0 -94
- package/src/lib/actions/search-people.js.map +0 -1
- package/src/lib/actions/send-connection-request.d.ts +0 -7
- package/src/lib/actions/send-connection-request.d.ts.map +0 -1
- package/src/lib/actions/send-connection-request.js +0 -41
- package/src/lib/actions/send-connection-request.js.map +0 -1
- package/src/lib/actions/send-message.d.ts +0 -7
- package/src/lib/actions/send-message.d.ts.map +0 -1
- package/src/lib/actions/send-message.js +0 -41
- package/src/lib/actions/send-message.js.map +0 -1
- package/src/lib/common/index.d.ts +0 -16
- package/src/lib/common/index.d.ts.map +0 -1
- package/src/lib/common/index.js +0 -110
- package/src/lib/common/index.js.map +0 -1
- package/src/lib/triggers/invitation-accepted.d.ts +0 -11
- package/src/lib/triggers/invitation-accepted.d.ts.map +0 -1
- package/src/lib/triggers/invitation-accepted.js +0 -57
- package/src/lib/triggers/invitation-accepted.js.map +0 -1
- package/src/lib/triggers/new-message-received.d.ts +0 -11
- package/src/lib/triggers/new-message-received.d.ts.map +0 -1
- package/src/lib/triggers/new-message-received.js +0 -57
- package/src/lib/triggers/new-message-received.js.map +0 -1
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getConversation = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.getConversation = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'get_conversation',
|
|
10
|
-
displayName: 'Get Conversation',
|
|
11
|
-
description: 'Retrieve the message history of a LinkedIn conversation, by conversation ID or profile URL.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
conversationId: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Conversation ID',
|
|
16
|
-
description: 'Provide this OR a Profile URL',
|
|
17
|
-
required: false,
|
|
18
|
-
}),
|
|
19
|
-
profileUrl: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Profile URL',
|
|
21
|
-
description: 'Profile URL of the other participant',
|
|
22
|
-
required: false,
|
|
23
|
-
}),
|
|
24
|
-
count: pieces_framework_1.Property.Number({
|
|
25
|
-
displayName: 'Count',
|
|
26
|
-
description: 'Number of messages to retrieve',
|
|
27
|
-
required: false,
|
|
28
|
-
}),
|
|
29
|
-
cursor: pieces_framework_1.Property.ShortText({
|
|
30
|
-
displayName: 'Cursor',
|
|
31
|
-
description: 'Pagination cursor from a previous response',
|
|
32
|
-
required: false,
|
|
33
|
-
}),
|
|
34
|
-
},
|
|
35
|
-
run(context) {
|
|
36
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
const { accountId, conversationId, profileUrl, count, cursor } = context.propsValue;
|
|
38
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'messages', 'get_conversation', accountId, {
|
|
39
|
-
conversation_id: conversationId,
|
|
40
|
-
profile_url: profileUrl,
|
|
41
|
-
count,
|
|
42
|
-
cursor,
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=get-conversation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-conversation.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-conversation.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAoE;AAEvD,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,6FAA6F;IAC1G,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;QACxB,cAAc,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACjC,WAAW,EAAE,iBAAiB;YAC9B,WAAW,EAAE,+BAA+B;YAC5C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,sCAAsC;YACnD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,gCAAgC;YAC7C,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACzB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,4CAA4C;YACzD,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YACpF,OAAO,IAAA,qBAAY,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,SAAS,EAAE;gBACvF,eAAe,EAAE,cAAc;gBAC/B,WAAW,EAAE,UAAU;gBACvB,KAAK;gBACL,MAAM;aACP,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getMyProfile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
accountId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-my-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-my-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-my-profile.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;EAgBvB,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getMyProfile = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.getMyProfile = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'get_my_profile',
|
|
10
|
-
displayName: 'Get My Profile',
|
|
11
|
-
description: 'Retrieve the profile of the connected LinkedIn account.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
},
|
|
15
|
-
run(context) {
|
|
16
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'profiles', 'get_me', context.propsValue.accountId);
|
|
18
|
-
});
|
|
19
|
-
},
|
|
20
|
-
});
|
|
21
|
-
//# sourceMappingURL=get-my-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-my-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-my-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,sCAAoE;AAEvD,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,yDAAyD;IACtE,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;KACzB;IACK,GAAG,CAAC,OAAO;;YACf,OAAO,IAAA,qBAAY,EACjB,OAAO,CAAC,IAAI,CAAC,WAAW,EACxB,UAAU,EACV,QAAQ,EACR,OAAO,CAAC,UAAU,CAAC,SAAS,CAC7B,CAAC;QACJ,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const getProfile: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
accountId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
profileUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
identifier: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
profileUrn: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=get-profile.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-profile.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/get-profile.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;;;EA+BrB,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getProfile = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.getProfile = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'get_profile',
|
|
10
|
-
displayName: 'Get Profile Info',
|
|
11
|
-
description: 'Retrieve detailed information about a LinkedIn profile by URL, public identifier, or URN.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
profileUrl: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Profile URL',
|
|
16
|
-
description: 'Full LinkedIn profile URL (provide this OR Identifier OR URN)',
|
|
17
|
-
required: false,
|
|
18
|
-
}),
|
|
19
|
-
identifier: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Identifier',
|
|
21
|
-
description: 'Public identifier (e.g. "john-doe")',
|
|
22
|
-
required: false,
|
|
23
|
-
}),
|
|
24
|
-
profileUrn: pieces_framework_1.Property.ShortText({
|
|
25
|
-
displayName: 'Profile URN',
|
|
26
|
-
description: 'LinkedIn profile URN',
|
|
27
|
-
required: false,
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
run(context) {
|
|
31
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const { accountId, profileUrl, identifier, profileUrn } = context.propsValue;
|
|
33
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'profiles', 'get', accountId, {
|
|
34
|
-
profile_url: profileUrl,
|
|
35
|
-
identifier,
|
|
36
|
-
profile_urn: profileUrn,
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=get-profile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-profile.js","sourceRoot":"","sources":["../../../../src/lib/actions/get-profile.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAoE;AAEvD,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,2FAA2F;IACxG,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;QACxB,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,+DAA+D;YAC5E,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC7E,OAAO,IAAA,qBAAY,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE;gBAC1E,WAAW,EAAE,UAAU;gBACvB,UAAU;gBACV,WAAW,EAAE,UAAU;aACxB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export declare const listAccounts: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
3
|
-
offset: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
4
|
-
}>;
|
|
5
|
-
//# sourceMappingURL=list-accounts.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-accounts.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/list-accounts.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;EA0BvB,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listAccounts = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.listAccounts = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'list_accounts',
|
|
10
|
-
displayName: 'List Accounts',
|
|
11
|
-
description: 'List all connected LinkedIn accounts linked to your API key. Free (0 credits). Use the returned account_id in other actions.',
|
|
12
|
-
props: {
|
|
13
|
-
limit: pieces_framework_1.Property.Number({
|
|
14
|
-
displayName: 'Limit',
|
|
15
|
-
description: 'Max accounts to return per page (1-500)',
|
|
16
|
-
required: false,
|
|
17
|
-
defaultValue: 50,
|
|
18
|
-
}),
|
|
19
|
-
offset: pieces_framework_1.Property.Number({
|
|
20
|
-
displayName: 'Offset',
|
|
21
|
-
description: 'Number of accounts to skip (for pagination)',
|
|
22
|
-
required: false,
|
|
23
|
-
defaultValue: 0,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const { limit, offset } = context.propsValue;
|
|
29
|
-
return (0, common_1.linkupGet)(context.auth.secret_text, '/accounts', {
|
|
30
|
-
limit: String(limit !== null && limit !== void 0 ? limit : 50),
|
|
31
|
-
offset: String(offset !== null && offset !== void 0 ? offset : 0),
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=list-accounts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-accounts.js","sourceRoot":"","sources":["../../../../src/lib/actions/list-accounts.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAkD;AAErC,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,8HAA8H;IAC3I,KAAK,EAAE;QACL,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACrB,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,yCAAyC;YACtD,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,MAAM,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACtB,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,CAAC;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC7C,OAAO,IAAA,kBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,WAAW,EAAE;gBACtD,KAAK,EAAE,MAAM,CAAC,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;gBAC1B,MAAM,EAAE,MAAM,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,CAAC,CAAC;aAC5B,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export declare const searchCompanies: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
accountId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
keyword: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
location: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
sector: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
companySize: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
totalResults: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
8
|
-
resultsPerPage: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
9
|
-
startPage: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
10
|
-
endPage: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
11
|
-
}>;
|
|
12
|
-
//# sourceMappingURL=search-companies.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-companies.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-companies.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;;;;;;;;;EAqC1B,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchCompanies = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.searchCompanies = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'search_companies',
|
|
10
|
-
displayName: 'Search Companies',
|
|
11
|
-
description: 'Search LinkedIn companies by keyword, location, sector and company size.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
keyword: pieces_framework_1.Property.ShortText({ displayName: 'Keyword', required: false }),
|
|
15
|
-
location: pieces_framework_1.Property.ShortText({ displayName: 'Location', required: false }),
|
|
16
|
-
sector: pieces_framework_1.Property.ShortText({ displayName: 'Sector', required: false }),
|
|
17
|
-
companySize: pieces_framework_1.Property.ShortText({
|
|
18
|
-
displayName: 'Company Size',
|
|
19
|
-
description: 'e.g. "11-50", "201-500"',
|
|
20
|
-
required: false,
|
|
21
|
-
}),
|
|
22
|
-
totalResults: pieces_framework_1.Property.Number({
|
|
23
|
-
displayName: 'Total Results',
|
|
24
|
-
required: false,
|
|
25
|
-
defaultValue: 10,
|
|
26
|
-
}),
|
|
27
|
-
resultsPerPage: pieces_framework_1.Property.Number({ displayName: 'Results Per Page', required: false }),
|
|
28
|
-
startPage: pieces_framework_1.Property.Number({ displayName: 'Start Page', required: false }),
|
|
29
|
-
endPage: pieces_framework_1.Property.Number({ displayName: 'End Page', required: false }),
|
|
30
|
-
},
|
|
31
|
-
run(context) {
|
|
32
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const p = context.propsValue;
|
|
34
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'profiles', 'search_companies', p.accountId, {
|
|
35
|
-
keyword: p.keyword,
|
|
36
|
-
location: p.location,
|
|
37
|
-
sector: p.sector,
|
|
38
|
-
company_size: p.companySize,
|
|
39
|
-
total_results: p.totalResults,
|
|
40
|
-
results_per_page: p.resultsPerPage,
|
|
41
|
-
start_page: p.startPage,
|
|
42
|
-
end_page: p.endPage,
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
//# sourceMappingURL=search-companies.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-companies.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-companies.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAoE;AAEvD,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE,0EAA0E;IACvF,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;QACxB,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACxE,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC1E,MAAM,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACtE,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC9B,WAAW,EAAE,cAAc;YAC3B,WAAW,EAAE,yBAAyB;YACtC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,eAAe;YAC5B,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,cAAc,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACrF,SAAS,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC1E,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KACvE;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;YAC7B,OAAO,IAAA,qBAAY,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC,CAAC,SAAS,EAAE;gBACzF,OAAO,EAAE,CAAC,CAAC,OAAO;gBAClB,QAAQ,EAAE,CAAC,CAAC,QAAQ;gBACpB,MAAM,EAAE,CAAC,CAAC,MAAM;gBAChB,YAAY,EAAE,CAAC,CAAC,WAAW;gBAC3B,aAAa,EAAE,CAAC,CAAC,YAAY;gBAC7B,gBAAgB,EAAE,CAAC,CAAC,cAAc;gBAClC,UAAU,EAAE,CAAC,CAAC,SAAS;gBACvB,QAAQ,EAAE,CAAC,CAAC,OAAO;aACpB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare const searchPeople: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
accountId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
keyword: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
firstName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
lastName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
-
companyName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
-
companyUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
-
pastCompany: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
10
|
-
location: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
|
-
schoolUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
-
industry: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
-
network: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
14
|
-
connectionOf: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
-
followerOf: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
-
fetchInvitationState: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
17
|
-
totalResults: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
18
|
-
startPage: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
19
|
-
endPage: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
20
|
-
}>;
|
|
21
|
-
//# sourceMappingURL=search-people.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-people.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/search-people.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;EAoFvB,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchPeople = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.searchPeople = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'search_people',
|
|
10
|
-
displayName: 'Search People',
|
|
11
|
-
description: 'Search LinkedIn profiles by keyword, company, title, location, school, industry and more. Returns the LinkedIn URL of each match.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
keyword: pieces_framework_1.Property.ShortText({ displayName: 'Keyword', required: false }),
|
|
15
|
-
firstName: pieces_framework_1.Property.ShortText({ displayName: 'First Name', required: false }),
|
|
16
|
-
lastName: pieces_framework_1.Property.ShortText({ displayName: 'Last Name', required: false }),
|
|
17
|
-
title: pieces_framework_1.Property.ShortText({ displayName: 'Current Job Title', required: false }),
|
|
18
|
-
companyName: pieces_framework_1.Property.ShortText({ displayName: 'Current Company Name', required: false }),
|
|
19
|
-
companyUrl: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Company URL',
|
|
21
|
-
description: 'LinkedIn company page URL',
|
|
22
|
-
required: false,
|
|
23
|
-
}),
|
|
24
|
-
pastCompany: pieces_framework_1.Property.ShortText({ displayName: 'Past Company', required: false }),
|
|
25
|
-
location: pieces_framework_1.Property.ShortText({
|
|
26
|
-
displayName: 'Location',
|
|
27
|
-
description: 'e.g. "San Francisco"',
|
|
28
|
-
required: false,
|
|
29
|
-
}),
|
|
30
|
-
schoolUrl: pieces_framework_1.Property.ShortText({ displayName: 'School URL', required: false }),
|
|
31
|
-
industry: pieces_framework_1.Property.ShortText({ displayName: 'Industry', required: false }),
|
|
32
|
-
network: pieces_framework_1.Property.StaticDropdown({
|
|
33
|
-
displayName: 'Network',
|
|
34
|
-
description: 'Connection degree relative to the account',
|
|
35
|
-
required: false,
|
|
36
|
-
options: {
|
|
37
|
-
options: [
|
|
38
|
-
{ label: '1st degree (F)', value: 'F' },
|
|
39
|
-
{ label: '2nd degree (S)', value: 'S' },
|
|
40
|
-
{ label: '3rd+ degree (O)', value: 'O' },
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
}),
|
|
44
|
-
connectionOf: pieces_framework_1.Property.ShortText({
|
|
45
|
-
displayName: 'Connection Of',
|
|
46
|
-
description: 'Show connections of a specific profile (URL or identifier)',
|
|
47
|
-
required: false,
|
|
48
|
-
}),
|
|
49
|
-
followerOf: pieces_framework_1.Property.ShortText({
|
|
50
|
-
displayName: 'Follower Of',
|
|
51
|
-
description: 'Show followers of a specific company or profile',
|
|
52
|
-
required: false,
|
|
53
|
-
}),
|
|
54
|
-
fetchInvitationState: pieces_framework_1.Property.Checkbox({
|
|
55
|
-
displayName: 'Fetch Invitation State',
|
|
56
|
-
description: 'Include the connection invitation state for each result',
|
|
57
|
-
required: false,
|
|
58
|
-
defaultValue: true,
|
|
59
|
-
}),
|
|
60
|
-
totalResults: pieces_framework_1.Property.Number({
|
|
61
|
-
displayName: 'Total Results',
|
|
62
|
-
description: 'Number of results to return (1 credit per 10 results)',
|
|
63
|
-
required: false,
|
|
64
|
-
defaultValue: 10,
|
|
65
|
-
}),
|
|
66
|
-
startPage: pieces_framework_1.Property.Number({ displayName: 'Start Page', required: false }),
|
|
67
|
-
endPage: pieces_framework_1.Property.Number({ displayName: 'End Page', required: false }),
|
|
68
|
-
},
|
|
69
|
-
run(context) {
|
|
70
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
71
|
-
const p = context.propsValue;
|
|
72
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'profiles', 'search_people', p.accountId, {
|
|
73
|
-
keyword: p.keyword,
|
|
74
|
-
first_name: p.firstName,
|
|
75
|
-
last_name: p.lastName,
|
|
76
|
-
title: p.title,
|
|
77
|
-
company_name: p.companyName,
|
|
78
|
-
company_url: p.companyUrl,
|
|
79
|
-
past_company: p.pastCompany,
|
|
80
|
-
location: p.location,
|
|
81
|
-
school_url: p.schoolUrl,
|
|
82
|
-
industry: p.industry,
|
|
83
|
-
network: p.network,
|
|
84
|
-
connection_of: p.connectionOf,
|
|
85
|
-
follower_of: p.followerOf,
|
|
86
|
-
fetch_invitation_state: p.fetchInvitationState,
|
|
87
|
-
total_results: p.totalResults,
|
|
88
|
-
start_page: p.startPage,
|
|
89
|
-
end_page: p.endPage,
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
});
|
|
94
|
-
//# sourceMappingURL=search-people.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-people.js","sourceRoot":"","sources":["../../../../src/lib/actions/search-people.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAoE;AAEvD,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,mIAAmI;IAChJ,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;QACxB,OAAO,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACxE,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC7E,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC3E,KAAK,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAChF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACzF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,2BAA2B;YACxC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACjF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC3B,WAAW,EAAE,UAAU;YACvB,WAAW,EAAE,sBAAsB;YACnC,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC7E,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC1E,OAAO,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,2CAA2C;YACxD,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE;oBACP,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,EAAE;oBACvC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,GAAG,EAAE;oBACvC,EAAE,KAAK,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,EAAE;iBACzC;aACF;SACF,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,4DAA4D;YACzE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,iDAAiD;YAC9D,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,oBAAoB,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACtC,WAAW,EAAE,wBAAwB;YACrC,WAAW,EAAE,yDAAyD;YACtE,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,IAAI;SACnB,CAAC;QACF,YAAY,EAAE,2BAAQ,CAAC,MAAM,CAAC;YAC5B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,uDAAuD;YACpE,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,EAAE;SACjB,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QAC1E,OAAO,EAAE,2BAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;KACvE;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC;YAC7B,OAAO,IAAA,qBAAY,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,CAAC,SAAS,EAAE;gBACtF,OAAO,EAAE,CAAC,CAAC,OAAO;gBAClB,UAAU,EAAE,CAAC,CAAC,SAAS;gBACvB,SAAS,EAAE,CAAC,CAAC,QAAQ;gBACrB,KAAK,EAAE,CAAC,CAAC,KAAK;gBACd,YAAY,EAAE,CAAC,CAAC,WAAW;gBAC3B,WAAW,EAAE,CAAC,CAAC,UAAU;gBACzB,YAAY,EAAE,CAAC,CAAC,WAAW;gBAC3B,QAAQ,EAAE,CAAC,CAAC,QAAQ;gBACpB,UAAU,EAAE,CAAC,CAAC,SAAS;gBACvB,QAAQ,EAAE,CAAC,CAAC,QAAQ;gBACpB,OAAO,EAAE,CAAC,CAAC,OAAO;gBAClB,aAAa,EAAE,CAAC,CAAC,YAAY;gBAC7B,WAAW,EAAE,CAAC,CAAC,UAAU;gBACzB,sBAAsB,EAAE,CAAC,CAAC,oBAAoB;gBAC9C,aAAa,EAAE,CAAC,CAAC,YAAY;gBAC7B,UAAU,EAAE,CAAC,CAAC,SAAS;gBACvB,QAAQ,EAAE,CAAC,CAAC,OAAO;aACpB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const sendConnectionRequest: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
accountId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
profileUrl: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
4
|
-
identifier: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
message: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=send-connection-request.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-connection-request.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-connection-request.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB;;;;;EA+BhC,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendConnectionRequest = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.sendConnectionRequest = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'send_connection_request',
|
|
10
|
-
displayName: 'Send Connection Request',
|
|
11
|
-
description: 'Send a LinkedIn connection invitation to a profile, with an optional note.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
profileUrl: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Profile URL',
|
|
16
|
-
description: 'LinkedIn profile URL (provide this OR Identifier)',
|
|
17
|
-
required: false,
|
|
18
|
-
}),
|
|
19
|
-
identifier: pieces_framework_1.Property.ShortText({
|
|
20
|
-
displayName: 'Identifier',
|
|
21
|
-
description: 'Public identifier (e.g. "john-doe")',
|
|
22
|
-
required: false,
|
|
23
|
-
}),
|
|
24
|
-
message: pieces_framework_1.Property.LongText({
|
|
25
|
-
displayName: 'Note',
|
|
26
|
-
description: 'Optional note to include with the invitation',
|
|
27
|
-
required: false,
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
run(context) {
|
|
31
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const { accountId, profileUrl, identifier, message } = context.propsValue;
|
|
33
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'network', 'invite', accountId, {
|
|
34
|
-
profile_url: profileUrl,
|
|
35
|
-
identifier,
|
|
36
|
-
message,
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=send-connection-request.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-connection-request.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-connection-request.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAoE;AAEvD,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,4EAA4E;IACzF,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;QACxB,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,mDAAmD;YAChE,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,qCAAqC;YAClD,QAAQ,EAAE,KAAK;SAChB,CAAC;QACF,OAAO,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YACzB,WAAW,EAAE,MAAM;YACnB,WAAW,EAAE,8CAA8C;YAC3D,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC1E,OAAO,IAAA,qBAAY,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE;gBAC5E,WAAW,EAAE,UAAU;gBACvB,UAAU;gBACV,OAAO;aACR,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare const sendMessage: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
accountId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
profileUrl: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
messageText: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
5
|
-
mediaLink: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
-
}>;
|
|
7
|
-
//# sourceMappingURL=send-message.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/send-message.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW;;;;;EA+BtB,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendMessage = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const common_1 = require("../common");
|
|
7
|
-
exports.sendMessage = (0, pieces_framework_1.createAction)({
|
|
8
|
-
auth: common_1.linkupAuth,
|
|
9
|
-
name: 'send_message',
|
|
10
|
-
displayName: 'Send Message',
|
|
11
|
-
description: 'Send a LinkedIn message to a profile, optionally with a media attachment.',
|
|
12
|
-
props: {
|
|
13
|
-
accountId: common_1.accountIdProp,
|
|
14
|
-
profileUrl: pieces_framework_1.Property.ShortText({
|
|
15
|
-
displayName: 'Profile URL',
|
|
16
|
-
description: 'LinkedIn profile URL of the recipient',
|
|
17
|
-
required: true,
|
|
18
|
-
}),
|
|
19
|
-
messageText: pieces_framework_1.Property.LongText({
|
|
20
|
-
displayName: 'Message',
|
|
21
|
-
description: 'The text of the message to send',
|
|
22
|
-
required: true,
|
|
23
|
-
}),
|
|
24
|
-
mediaLink: pieces_framework_1.Property.ShortText({
|
|
25
|
-
displayName: 'Media Link',
|
|
26
|
-
description: 'Optional URL of a media file to attach',
|
|
27
|
-
required: false,
|
|
28
|
-
}),
|
|
29
|
-
},
|
|
30
|
-
run(context) {
|
|
31
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
const { accountId, profileUrl, messageText, mediaLink } = context.propsValue;
|
|
33
|
-
return (0, common_1.linkupAction)(context.auth.secret_text, 'messages', 'send', accountId, {
|
|
34
|
-
profile_url: profileUrl,
|
|
35
|
-
message_text: messageText,
|
|
36
|
-
media_link: mediaLink,
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
},
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=send-message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"send-message.js","sourceRoot":"","sources":["../../../../src/lib/actions/send-message.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,sCAAoE;AAEvD,QAAA,WAAW,GAAG,IAAA,+BAAY,EAAC;IACtC,IAAI,EAAE,mBAAU;IAChB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,2EAA2E;IACxF,KAAK,EAAE;QACL,SAAS,EAAE,sBAAa;QACxB,UAAU,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC7B,WAAW,EAAE,aAAa;YAC1B,WAAW,EAAE,uCAAuC;YACpD,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC7B,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,iCAAiC;YAC9C,QAAQ,EAAE,IAAI;SACf,CAAC;QACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,KAAK;SAChB,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAC7E,OAAO,IAAA,qBAAY,EAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE;gBAC3E,WAAW,EAAE,UAAU;gBACvB,YAAY,EAAE,WAAW;gBACzB,UAAU,EAAE,SAAS;aACtB,CAAC,CAAC;QACL,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { QueryParams } from '@activepieces/pieces-common';
|
|
2
|
-
export declare const LINKUPAPI_BASE_URL = "https://api.linkupapi.com/v2";
|
|
3
|
-
export declare const linkupAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
|
4
|
-
export declare const accountIdProp: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
/**
|
|
6
|
-
* V2 action-based endpoint: POST /v2/<category> with body { account_id, action, params }.
|
|
7
|
-
* `params` is cleaned of empty/undefined values before sending.
|
|
8
|
-
*/
|
|
9
|
-
export declare function linkupAction<T = unknown>(apiKey: string, category: string, action: string, accountId: string, params?: Record<string, unknown>): Promise<T>;
|
|
10
|
-
/** Raw POST to a V2 path (used for endpoints that don't follow the action/params shape, e.g. /webhooks). */
|
|
11
|
-
export declare function linkupPost<T = unknown>(apiKey: string, path: string, body: Record<string, unknown>): Promise<T>;
|
|
12
|
-
export declare function linkupGet<T = unknown>(apiKey: string, path: string, queryParams?: QueryParams): Promise<T>;
|
|
13
|
-
export declare function linkupDelete<T = unknown>(apiKey: string, path: string): Promise<T>;
|
|
14
|
-
/** Drop null / undefined / empty-string values so optional props aren't sent. */
|
|
15
|
-
export declare function cleanParams(params: Record<string, unknown>): Record<string, unknown>;
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/index.ts"],"names":[],"mappings":"AACA,OAAO,EAA0B,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAElF,eAAO,MAAM,kBAAkB,iCAAiC,CAAC;AAIjE,eAAO,MAAM,UAAU,mEA8BrB,CAAC;AAIH,eAAO,MAAM,aAAa,kEAKxB,CAAC;AAIH;;;GAGG;AACH,wBAAsB,YAAY,CAAC,CAAC,GAAG,OAAO,EAC5C,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GACnC,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,4GAA4G;AAC5G,wBAAsB,UAAU,CAAC,CAAC,GAAG,OAAO,EAC1C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC5B,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,wBAAsB,SAAS,CAAC,CAAC,GAAG,OAAO,EACzC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,WAAW,GAAE,WAAgB,GAC5B,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED,wBAAsB,YAAY,CAAC,CAAC,GAAG,OAAO,EAC5C,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,CAAC,CAAC,CAOZ;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAQzB"}
|