@activepieces/piece-pipedrive 0.2.2 → 0.3.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/package.json +11 -8
- package/src/index.d.ts +2 -1
- package/src/index.js +22 -3
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-person.action/add-person.action.d.ts +8 -1
- package/src/lib/actions/add-person.action/add-person.action.js +56 -133
- package/src/lib/actions/add-person.action/add-person.action.js.map +1 -1
- package/src/lib/common/index.d.ts +0 -1
- package/src/lib/common/index.js +1 -10
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/trigger/new-activity.d.ts +2 -1
- package/src/lib/trigger/new-activity.js +85 -84
- package/src/lib/trigger/new-activity.js.map +1 -1
- package/src/lib/trigger/new-deal.d.ts +2 -1
- package/src/lib/trigger/new-deal.js +127 -132
- package/src/lib/trigger/new-deal.js.map +1 -1
- package/src/lib/trigger/new-person.d.ts +2 -1
- package/src/lib/trigger/new-person.js +86 -85
- package/src/lib/trigger/new-person.js.map +1 -1
- package/src/lib/trigger/updated-deal.d.ts +2 -1
- package/src/lib/trigger/updated-deal.js +126 -131
- package/src/lib/trigger/updated-deal.js.map +1 -1
- package/src/lib/trigger/updated-person.d.ts +2 -1
- package/src/lib/trigger/updated-person.js +86 -85
- package/src/lib/trigger/updated-person.js.map +1 -1
|
@@ -5,20 +5,20 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_framework_2 = require("@activepieces/pieces-framework");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
+
const __1 = require("../..");
|
|
8
9
|
exports.newPerson = (0, pieces_framework_1.createTrigger)({
|
|
10
|
+
auth: __1.pipedriveAuth,
|
|
9
11
|
name: 'new_person',
|
|
10
12
|
displayName: 'New Person',
|
|
11
13
|
description: 'Triggers when a new person is created',
|
|
12
|
-
props: {
|
|
13
|
-
authentication: common_1.pipedriveCommon.authentication,
|
|
14
|
-
},
|
|
14
|
+
props: {},
|
|
15
15
|
type: pieces_framework_2.TriggerStrategy.WEBHOOK,
|
|
16
16
|
onEnable(context) {
|
|
17
17
|
var _a;
|
|
18
18
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const webhook = yield common_1.pipedriveCommon.subscribeWebhook('person', 'added', context.webhookUrl, context.
|
|
19
|
+
const webhook = yield common_1.pipedriveCommon.subscribeWebhook('person', 'added', context.webhookUrl, context.auth.data['api_domain'], context.auth.access_token);
|
|
20
20
|
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_new_person_trigger', {
|
|
21
|
-
webhookId: webhook.data.id
|
|
21
|
+
webhookId: webhook.data.id,
|
|
22
22
|
}));
|
|
23
23
|
});
|
|
24
24
|
},
|
|
@@ -27,102 +27,103 @@ exports.newPerson = (0, pieces_framework_1.createTrigger)({
|
|
|
27
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_new_person_trigger'));
|
|
29
29
|
if (response !== null && response !== undefined) {
|
|
30
|
-
yield common_1.pipedriveCommon.unsubscribeWebhook(response.webhookId, context.
|
|
30
|
+
yield common_1.pipedriveCommon.unsubscribeWebhook(response.webhookId, context.auth.data['api_domain'], context.auth.access_token);
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
34
|
run(context) {
|
|
35
35
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
// Pipedrive will always return a list of Persons even if we are looking up a specific person
|
|
37
|
-
|
|
37
|
+
const payloadBody = context.payload.body;
|
|
38
|
+
return [payloadBody.current];
|
|
38
39
|
});
|
|
39
40
|
},
|
|
40
41
|
sampleData: {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
42
|
+
id: 1,
|
|
43
|
+
company_id: 12,
|
|
44
|
+
owner_id: {
|
|
45
|
+
id: 123,
|
|
46
|
+
name: 'Jane Doe',
|
|
47
|
+
email: 'jane@pipedrive.com',
|
|
48
|
+
has_pic: 1,
|
|
49
|
+
pic_hash: '2611ace8ac6a3afe2f69ed56f9e08c6b',
|
|
50
|
+
active_flag: true,
|
|
51
|
+
value: 123,
|
|
51
52
|
},
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
53
|
+
org_id: {
|
|
54
|
+
name: 'Org Name',
|
|
55
|
+
people_count: 1,
|
|
56
|
+
owner_id: 123,
|
|
57
|
+
address: 'Mustamäe tee 3a, 10615 Tallinn',
|
|
58
|
+
active_flag: true,
|
|
59
|
+
cc_email: 'org@pipedrivemail.com',
|
|
60
|
+
value: 1234,
|
|
60
61
|
},
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
62
|
+
name: 'Will Smith',
|
|
63
|
+
first_name: 'Will',
|
|
64
|
+
last_name: 'Smith',
|
|
65
|
+
open_deals_count: 2,
|
|
66
|
+
related_open_deals_count: 2,
|
|
67
|
+
closed_deals_count: 3,
|
|
68
|
+
related_closed_deals_count: 3,
|
|
69
|
+
participant_open_deals_count: 1,
|
|
70
|
+
participant_closed_deals_count: 1,
|
|
71
|
+
email_messages_count: 1,
|
|
72
|
+
activities_count: 1,
|
|
73
|
+
done_activities_count: 1,
|
|
74
|
+
undone_activities_count: 2,
|
|
75
|
+
files_count: 2,
|
|
76
|
+
notes_count: 2,
|
|
77
|
+
followers_count: 3,
|
|
78
|
+
won_deals_count: 3,
|
|
79
|
+
related_won_deals_count: 3,
|
|
80
|
+
lost_deals_count: 1,
|
|
81
|
+
related_lost_deals_count: 1,
|
|
82
|
+
active_flag: true,
|
|
83
|
+
phone: [
|
|
83
84
|
{
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
85
|
+
value: '12345',
|
|
86
|
+
primary: true,
|
|
87
|
+
label: 'work',
|
|
88
|
+
},
|
|
88
89
|
],
|
|
89
|
-
|
|
90
|
+
email: [
|
|
90
91
|
{
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
92
|
+
value: '12345@email.com',
|
|
93
|
+
primary: true,
|
|
94
|
+
label: 'work',
|
|
95
|
+
},
|
|
95
96
|
],
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
97
|
+
primary_email: '12345@email.com',
|
|
98
|
+
first_char: 'w',
|
|
99
|
+
update_time: '2020-05-08 05:30:20',
|
|
100
|
+
add_time: '2017-10-18 13:23:07',
|
|
101
|
+
visible_to: '3',
|
|
102
|
+
marketing_status: 'no_consent',
|
|
103
|
+
picture_id: {
|
|
104
|
+
item_type: 'person',
|
|
105
|
+
item_id: 25,
|
|
106
|
+
active_flag: true,
|
|
107
|
+
add_time: '2020-09-08 08:17:52',
|
|
108
|
+
update_time: '0000-00-00 00:00:00',
|
|
109
|
+
added_by_user_id: 967055,
|
|
110
|
+
pictures: {
|
|
111
|
+
'128': 'https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb4ac8f269_128.jpg',
|
|
112
|
+
'512': 'https://pipedrive-profile-pics.s3.example.com/f8893852574273f2747bf6ef09d11cfb4ac8f269_512.jpg',
|
|
112
113
|
},
|
|
113
|
-
|
|
114
|
+
value: 4,
|
|
114
115
|
},
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
116
|
+
next_activity_date: '2019-11-29',
|
|
117
|
+
next_activity_time: '11:30:00',
|
|
118
|
+
next_activity_id: 128,
|
|
119
|
+
last_activity_id: 34,
|
|
120
|
+
last_activity_date: '2019-11-28',
|
|
121
|
+
last_incoming_mail_time: '2019-05-29 18:21:42',
|
|
122
|
+
last_outgoing_mail_time: '2019-05-30 03:45:35',
|
|
123
|
+
label: 1,
|
|
124
|
+
org_name: 'Organization name',
|
|
125
|
+
owner_name: 'Jane Doe',
|
|
126
|
+
cc_email: 'org@pipedrivemail.com',
|
|
127
|
+
},
|
|
127
128
|
});
|
|
128
129
|
//# sourceMappingURL=new-person.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"new-person.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"new-person.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/trigger/new-person.ts"],"names":[],"mappings":";;;;AAAA,qEAA+D;AAC/D,qEAAiE;AACjE,sCAA4C;AAC5C,6BAAsC;AAEzB,QAAA,SAAS,GAAG,IAAA,gCAAa,EAAC;IACrC,IAAI,EAAE,iBAAa;IACnB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,uCAAuC;IACpD,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,kCAAe,CAAC,OAAO;IACvB,QAAQ,CAAC,OAAO;;;YACpB,MAAM,OAAO,GAAG,MAAM,wBAAe,CAAC,gBAAgB,CACpD,QAAQ,EACR,OAAO,EACP,OAAO,CAAC,UAAW,EACnB,OAAO,CAAC,IAA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;QAC9B,gBAAgB,EAAE,GAAG;QACrB,gBAAgB,EAAE,EAAE;QACpB,kBAAkB,EAAE,YAAY;QAChC,uBAAuB,EAAE,qBAAqB;QAC9C,uBAAuB,EAAE,qBAAqB;QAC9C,KAAK,EAAE,CAAC;QACR,QAAQ,EAAE,mBAAmB;QAC7B,UAAU,EAAE,UAAU;QACtB,QAAQ,EAAE,uBAAuB;KAClC;CACF,CAAC,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
+
export declare const updatedDeal: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|
|
@@ -5,20 +5,20 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
6
|
const pieces_framework_2 = require("@activepieces/pieces-framework");
|
|
7
7
|
const common_1 = require("../common");
|
|
8
|
+
const __1 = require("../..");
|
|
8
9
|
exports.updatedDeal = (0, pieces_framework_1.createTrigger)({
|
|
10
|
+
auth: __1.pipedriveAuth,
|
|
9
11
|
name: 'updated_deal',
|
|
10
12
|
displayName: 'Updated Deal',
|
|
11
13
|
description: 'Triggers when a deal is updated',
|
|
12
|
-
props: {
|
|
13
|
-
authentication: common_1.pipedriveCommon.authentication,
|
|
14
|
-
},
|
|
14
|
+
props: {},
|
|
15
15
|
type: pieces_framework_2.TriggerStrategy.WEBHOOK,
|
|
16
16
|
onEnable(context) {
|
|
17
17
|
var _a;
|
|
18
18
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
19
|
-
const webhook = yield common_1.pipedriveCommon.subscribeWebhook('deal', 'updated', context.webhookUrl, context.
|
|
19
|
+
const webhook = yield common_1.pipedriveCommon.subscribeWebhook('deal', 'updated', context.webhookUrl, context.auth.data['api_domain'], context.auth.access_token);
|
|
20
20
|
yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.put('_updated_deal_trigger', {
|
|
21
|
-
webhookId: webhook.data.id
|
|
21
|
+
webhookId: webhook.data.id,
|
|
22
22
|
}));
|
|
23
23
|
});
|
|
24
24
|
},
|
|
@@ -27,152 +27,147 @@ exports.updatedDeal = (0, pieces_framework_1.createTrigger)({
|
|
|
27
27
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
28
|
const response = yield ((_a = context.store) === null || _a === void 0 ? void 0 : _a.get('_updated_deal_trigger'));
|
|
29
29
|
if (response !== null && response !== undefined) {
|
|
30
|
-
yield common_1.pipedriveCommon.unsubscribeWebhook(response.webhookId, context.
|
|
30
|
+
yield common_1.pipedriveCommon.unsubscribeWebhook(response.webhookId, context.auth.data['api_domain'], context.auth.access_token);
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
},
|
|
34
34
|
run(context) {
|
|
35
35
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
|
|
36
|
+
const payloadBody = context.payload.body;
|
|
37
|
+
return [payloadBody.current];
|
|
37
38
|
});
|
|
38
39
|
},
|
|
39
40
|
sampleData: {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
id: 1,
|
|
42
|
+
creator_user_id: {
|
|
43
|
+
id: 8877,
|
|
44
|
+
name: 'Creator',
|
|
45
|
+
email: 'john.doe@pipedrive.com',
|
|
46
|
+
has_pic: false,
|
|
47
|
+
pic_hash: null,
|
|
48
|
+
active_flag: true,
|
|
49
|
+
value: 8877,
|
|
49
50
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
51
|
+
user_id: {
|
|
52
|
+
id: 8877,
|
|
53
|
+
name: 'Creator',
|
|
54
|
+
email: 'john.doe@pipedrive.com',
|
|
55
|
+
has_pic: false,
|
|
56
|
+
pic_hash: null,
|
|
57
|
+
active_flag: true,
|
|
58
|
+
value: 8877,
|
|
58
59
|
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
60
|
+
person_id: {
|
|
61
|
+
active_flag: true,
|
|
62
|
+
name: 'Person',
|
|
63
|
+
email: [
|
|
63
64
|
{
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
65
|
+
label: 'work',
|
|
66
|
+
value: 'person@pipedrive.com',
|
|
67
|
+
primary: true,
|
|
68
|
+
},
|
|
68
69
|
],
|
|
69
|
-
|
|
70
|
+
phone: [
|
|
70
71
|
{
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
72
|
+
label: 'work',
|
|
73
|
+
value: '37244499911',
|
|
74
|
+
primary: true,
|
|
75
|
+
},
|
|
75
76
|
],
|
|
76
|
-
|
|
77
|
+
value: 1101,
|
|
77
78
|
},
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
79
|
+
org_id: {
|
|
80
|
+
name: 'Organization',
|
|
81
|
+
people_count: 2,
|
|
82
|
+
owner_id: 8877,
|
|
83
|
+
address: '',
|
|
84
|
+
active_flag: true,
|
|
85
|
+
cc_email: 'org@pipedrivemail.com',
|
|
86
|
+
value: 5,
|
|
86
87
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
88
|
+
stage_id: 2,
|
|
89
|
+
title: 'Deal One',
|
|
90
|
+
value: 5000,
|
|
91
|
+
currency: 'EUR',
|
|
92
|
+
add_time: '2019-05-29 04:21:51',
|
|
93
|
+
update_time: '2019-11-28 16:19:50',
|
|
94
|
+
stage_change_time: '2019-11-28 15:41:22',
|
|
95
|
+
active: true,
|
|
96
|
+
deleted: false,
|
|
97
|
+
status: 'open',
|
|
98
|
+
probability: null,
|
|
99
|
+
next_activity_date: '2019-11-29',
|
|
100
|
+
next_activity_time: '11:30:00',
|
|
101
|
+
next_activity_id: 128,
|
|
102
|
+
last_activity_id: null,
|
|
103
|
+
last_activity_date: null,
|
|
104
|
+
lost_reason: null,
|
|
105
|
+
visible_to: '1',
|
|
106
|
+
close_time: null,
|
|
107
|
+
pipeline_id: 1,
|
|
108
|
+
won_time: '2019-11-27 11:40:36',
|
|
109
|
+
first_won_time: '2019-11-27 11:40:36',
|
|
110
|
+
lost_time: '',
|
|
111
|
+
products_count: 0,
|
|
112
|
+
files_count: 0,
|
|
113
|
+
notes_count: 2,
|
|
114
|
+
followers_count: 0,
|
|
115
|
+
email_messages_count: 4,
|
|
116
|
+
activities_count: 1,
|
|
117
|
+
done_activities_count: 0,
|
|
118
|
+
undone_activities_count: 1,
|
|
119
|
+
participants_count: 1,
|
|
120
|
+
expected_close_date: '2019-06-29',
|
|
121
|
+
last_incoming_mail_time: '2019-05-29 18:21:42',
|
|
122
|
+
last_outgoing_mail_time: '2019-05-30 03:45:35',
|
|
123
|
+
label: 11,
|
|
124
|
+
stage_order_nr: 2,
|
|
125
|
+
person_name: 'Person',
|
|
126
|
+
org_name: 'Organization',
|
|
127
|
+
next_activity_subject: 'Call',
|
|
128
|
+
next_activity_type: 'call',
|
|
129
|
+
next_activity_duration: '00:30:00',
|
|
130
|
+
next_activity_note: 'Note content',
|
|
131
|
+
formatted_value: '€5,000',
|
|
132
|
+
weighted_value: 5000,
|
|
133
|
+
formatted_weighted_value: '€5,000',
|
|
134
|
+
weighted_value_currency: 'EUR',
|
|
135
|
+
rotten_time: null,
|
|
136
|
+
owner_name: 'Creator',
|
|
137
|
+
cc_email: 'company+deal1@pipedrivemail.com',
|
|
138
|
+
org_hidden: false,
|
|
139
|
+
person_hidden: false,
|
|
140
|
+
average_time_to_won: {
|
|
141
|
+
y: 0,
|
|
142
|
+
m: 0,
|
|
143
|
+
d: 0,
|
|
144
|
+
h: 0,
|
|
145
|
+
i: 20,
|
|
146
|
+
s: 49,
|
|
147
|
+
total_seconds: 1249,
|
|
147
148
|
},
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
149
|
+
average_stage_progress: 4.99,
|
|
150
|
+
age: {
|
|
151
|
+
y: 0,
|
|
152
|
+
m: 6,
|
|
153
|
+
d: 14,
|
|
154
|
+
h: 8,
|
|
155
|
+
i: 57,
|
|
156
|
+
s: 26,
|
|
157
|
+
total_seconds: 17139446,
|
|
157
158
|
},
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
stay_in_pipeline_stages: {
|
|
160
|
+
times_in_stages: {
|
|
161
|
+
'1': 15721267,
|
|
162
|
+
'2': 1288449,
|
|
163
|
+
'3': 4368,
|
|
164
|
+
'4': 3315,
|
|
165
|
+
'5': 26460,
|
|
165
166
|
},
|
|
166
|
-
|
|
167
|
-
1,
|
|
168
|
-
2,
|
|
169
|
-
3,
|
|
170
|
-
4,
|
|
171
|
-
5
|
|
172
|
-
]
|
|
167
|
+
order_of_stages: [1, 2, 3, 4, 5],
|
|
173
168
|
},
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
last_activity: null,
|
|
170
|
+
next_activity: null,
|
|
176
171
|
},
|
|
177
172
|
});
|
|
178
173
|
//# sourceMappingURL=updated-deal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updated-deal.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"updated-deal.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/trigger/updated-deal.ts"],"names":[],"mappings":";;;;AAAA,qEAA+D;AAC/D,qEAAiE;AACjE,sCAA4C;AAC5C,6BAAsC;AAEzB,QAAA,WAAW,GAAG,IAAA,gCAAa,EAAC;IACvC,IAAI,EAAE,iBAAa;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,iCAAiC;IAC9C,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,kCAAe,CAAC,OAAO;IACvB,QAAQ,CAAC,OAAO;;;YACpB,MAAM,OAAO,GAAG,MAAM,wBAAe,CAAC,gBAAgB,CACpD,MAAM,EACN,SAAS,EACT,OAAO,CAAC,UAAW,EACnB,OAAO,CAAC,IAAI,CAAC,IAAI,C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E,IAAI;KACpB;CACF,CAAC,CAAC"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { TriggerStrategy } from '@activepieces/pieces-framework';
|
|
2
|
+
export declare const updatedPerson: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
|