@activepieces/piece-pipedrive 0.6.2 → 0.7.0
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 +9 -7
- package/src/index.js +1 -1
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-follower.js +1 -1
- package/src/lib/actions/add-follower.js.map +1 -1
- package/src/lib/actions/add-label-to-person.js +10 -10
- package/src/lib/actions/add-label-to-person.js.map +1 -1
- package/src/lib/actions/add-product-to-deal.js +3 -3
- package/src/lib/actions/add-product-to-deal.js.map +1 -1
- package/src/lib/actions/create-activity.d.ts +2 -2
- package/src/lib/actions/create-activity.js +13 -11
- package/src/lib/actions/create-activity.js.map +1 -1
- package/src/lib/actions/create-deal.js +19 -19
- package/src/lib/actions/create-deal.js.map +1 -1
- package/src/lib/actions/create-lead.d.ts +1 -1
- package/src/lib/actions/create-lead.js +5 -5
- package/src/lib/actions/create-lead.js.map +1 -1
- package/src/lib/actions/create-note.js +4 -4
- package/src/lib/actions/create-note.js.map +1 -1
- package/src/lib/actions/create-organization.js +21 -17
- package/src/lib/actions/create-organization.js.map +1 -1
- package/src/lib/actions/create-person.d.ts +1 -1
- package/src/lib/actions/create-person.js +47 -29
- package/src/lib/actions/create-person.js.map +1 -1
- package/src/lib/actions/create-product.js +18 -17
- package/src/lib/actions/create-product.js.map +1 -1
- package/src/lib/actions/find-activity.js +24 -10
- package/src/lib/actions/find-activity.js.map +1 -1
- package/src/lib/actions/find-deal.js +12 -10
- package/src/lib/actions/find-deal.js.map +1 -1
- package/src/lib/actions/find-deals-associated-with-person.js +12 -6
- package/src/lib/actions/find-deals-associated-with-person.js.map +1 -1
- package/src/lib/actions/find-notes.js +3 -3
- package/src/lib/actions/find-notes.js.map +1 -1
- package/src/lib/actions/find-organization.js +9 -7
- package/src/lib/actions/find-organization.js.map +1 -1
- package/src/lib/actions/find-person.js +9 -6
- package/src/lib/actions/find-person.js.map +1 -1
- package/src/lib/actions/find-product.js +14 -10
- package/src/lib/actions/find-product.js.map +1 -1
- package/src/lib/actions/find-products.js +20 -12
- package/src/lib/actions/find-products.js.map +1 -1
- package/src/lib/actions/find-user.js +4 -4
- package/src/lib/actions/find-user.js.map +1 -1
- package/src/lib/actions/get-note.js +6 -5
- package/src/lib/actions/get-note.js.map +1 -1
- package/src/lib/actions/get-product.js +5 -5
- package/src/lib/actions/get-product.js.map +1 -1
- package/src/lib/actions/update-activity.d.ts +2 -2
- package/src/lib/actions/update-activity.js +15 -12
- package/src/lib/actions/update-activity.js.map +1 -1
- package/src/lib/actions/update-deal.js +19 -20
- package/src/lib/actions/update-deal.js.map +1 -1
- package/src/lib/actions/update-lead.d.ts +1 -1
- package/src/lib/actions/update-lead.js +5 -5
- package/src/lib/actions/update-lead.js.map +1 -1
- package/src/lib/actions/update-organization.js +21 -18
- package/src/lib/actions/update-organization.js.map +1 -1
- package/src/lib/actions/update-person.js +37 -26
- package/src/lib/actions/update-person.js.map +1 -1
- package/src/lib/common/constants.d.ts +3 -0
- package/src/lib/common/constants.js +64 -0
- package/src/lib/common/constants.js.map +1 -0
- package/src/lib/common/index.d.ts +5 -2
- package/src/lib/common/index.js +127 -10
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/common/props.d.ts +62 -7
- package/src/lib/common/props.js +138 -81
- package/src/lib/common/props.js.map +1 -1
- package/src/lib/common/types.d.ts +319 -36
- package/src/lib/trigger/activity-matching-filter.js +10 -9
- package/src/lib/trigger/activity-matching-filter.js.map +1 -1
- package/src/lib/trigger/deal-matching-filter.js +15 -58
- package/src/lib/trigger/deal-matching-filter.js.map +1 -1
- package/src/lib/trigger/new-activity.js +51 -62
- package/src/lib/trigger/new-activity.js.map +1 -1
- package/src/lib/trigger/new-deal.js +37 -113
- package/src/lib/trigger/new-deal.js.map +1 -1
- package/src/lib/trigger/new-lead.js +13 -10
- package/src/lib/trigger/new-lead.js.map +1 -1
- package/src/lib/trigger/new-note.js +17 -23
- package/src/lib/trigger/new-note.js.map +1 -1
- package/src/lib/trigger/new-organization.js +35 -61
- package/src/lib/trigger/new-organization.js.map +1 -1
- package/src/lib/trigger/new-person.js +34 -81
- package/src/lib/trigger/new-person.js.map +1 -1
- package/src/lib/trigger/organization-matching-filter.js +46 -69
- package/src/lib/trigger/organization-matching-filter.js.map +1 -1
- package/src/lib/trigger/person-matching-filter.js +39 -84
- package/src/lib/trigger/person-matching-filter.js.map +1 -1
- package/src/lib/trigger/updated-deal-stage.js +50 -123
- package/src/lib/trigger/updated-deal-stage.js.map +1 -1
- package/src/lib/trigger/updated-deal.js +38 -128
- package/src/lib/trigger/updated-deal.js.map +1 -1
- package/src/lib/trigger/updated-organization.js +39 -68
- package/src/lib/trigger/updated-organization.js.map +1 -1
- package/src/lib/trigger/updated-person.js +39 -89
- package/src/lib/trigger/updated-person.js.map +1 -1
|
@@ -1,86 +1,369 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface PipedriveDealV2 {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
creator_user_id: number;
|
|
5
|
+
owner_id: number;
|
|
6
|
+
person_id: number | null;
|
|
7
|
+
org_id: number | null;
|
|
8
|
+
stage_id: number;
|
|
9
|
+
pipeline_id: number;
|
|
10
|
+
value: number;
|
|
11
|
+
currency: string;
|
|
12
|
+
add_time: string;
|
|
13
|
+
update_time: string;
|
|
14
|
+
stage_change_time: string;
|
|
15
|
+
is_deleted: boolean;
|
|
16
|
+
status: 'open' | 'won' | 'lost';
|
|
17
|
+
probability: number | null;
|
|
18
|
+
lost_reason: string | null;
|
|
19
|
+
visible_to: number;
|
|
20
|
+
close_time: string | null;
|
|
21
|
+
won_time: string | null;
|
|
22
|
+
first_won_time?: string;
|
|
23
|
+
lost_time: string | null;
|
|
24
|
+
products_count?: number;
|
|
25
|
+
files_count?: number;
|
|
26
|
+
notes_count?: number;
|
|
27
|
+
followers_count?: number;
|
|
28
|
+
email_messages_count?: number;
|
|
29
|
+
activities_count?: number;
|
|
30
|
+
done_activities_count?: number;
|
|
31
|
+
undone_activities_count?: number;
|
|
32
|
+
participants_count?: number;
|
|
33
|
+
expected_close_date: string | null;
|
|
34
|
+
last_incoming_mail_time?: string;
|
|
35
|
+
last_outgoing_mail_time?: string;
|
|
36
|
+
label_ids: number[];
|
|
37
|
+
rotten_time: string | null;
|
|
38
|
+
smart_bcc_email?: string;
|
|
39
|
+
acv?: number;
|
|
40
|
+
arr?: number;
|
|
41
|
+
mrr?: number;
|
|
42
|
+
custom_fields: Record<string, unknown>;
|
|
43
|
+
}
|
|
44
|
+
export interface PipedriveActivityV2 {
|
|
45
|
+
id: number;
|
|
46
|
+
subject: string;
|
|
47
|
+
owner_id: number;
|
|
48
|
+
type: string;
|
|
49
|
+
is_deleted: boolean;
|
|
50
|
+
done: boolean;
|
|
51
|
+
conference_meeting_client: string | null;
|
|
52
|
+
conference_meeting_url: string | null;
|
|
53
|
+
conference_meeting_id: string | null;
|
|
54
|
+
due_date: string;
|
|
55
|
+
due_time: string;
|
|
56
|
+
duration: string;
|
|
57
|
+
busy: boolean;
|
|
58
|
+
add_time: string;
|
|
59
|
+
update_time: string;
|
|
60
|
+
marked_as_done_time: string | null;
|
|
61
|
+
public_description: string | null;
|
|
62
|
+
location: {
|
|
63
|
+
value: string | null;
|
|
64
|
+
street_number: string | null;
|
|
65
|
+
route: string | null;
|
|
66
|
+
sublocality: string | null;
|
|
67
|
+
locality: string | null;
|
|
68
|
+
admin_area_level_1: string | null;
|
|
69
|
+
admin_area_level_2: string | null;
|
|
70
|
+
country: string | null;
|
|
71
|
+
postal_code: string | null;
|
|
72
|
+
formatted_address: string | null;
|
|
73
|
+
} | null;
|
|
74
|
+
org_id: number | null;
|
|
75
|
+
person_id: number | null;
|
|
76
|
+
deal_id: number | null;
|
|
77
|
+
lead_id: string | null;
|
|
78
|
+
project_id: number | null;
|
|
79
|
+
private: boolean;
|
|
80
|
+
priority: number;
|
|
81
|
+
note: string | null;
|
|
82
|
+
creator_user_id: number;
|
|
83
|
+
attendees?: {
|
|
84
|
+
email_address: string;
|
|
85
|
+
name: string;
|
|
86
|
+
status: string;
|
|
87
|
+
is_organizer: number;
|
|
88
|
+
person_id: number | null;
|
|
89
|
+
user_id: number | null;
|
|
90
|
+
}[];
|
|
91
|
+
participants?: {
|
|
92
|
+
person_id: number;
|
|
93
|
+
primary: boolean;
|
|
94
|
+
}[];
|
|
95
|
+
}
|
|
96
|
+
export interface PipedrivePersonV2 {
|
|
97
|
+
id: number;
|
|
98
|
+
name: string;
|
|
99
|
+
first_name: string | null;
|
|
100
|
+
last_name: string | null;
|
|
101
|
+
owner_id: number;
|
|
102
|
+
org_id: number | null;
|
|
103
|
+
picture_id: number | null;
|
|
104
|
+
add_time: string;
|
|
105
|
+
update_time: string;
|
|
106
|
+
is_deleted: boolean;
|
|
107
|
+
visible_to: number;
|
|
108
|
+
phones: {
|
|
109
|
+
value: string;
|
|
110
|
+
primary: boolean;
|
|
111
|
+
label: string;
|
|
112
|
+
}[];
|
|
113
|
+
emails: {
|
|
114
|
+
value: string;
|
|
115
|
+
primary: boolean;
|
|
116
|
+
label: string;
|
|
117
|
+
}[];
|
|
118
|
+
label_ids: number[];
|
|
119
|
+
custom_fields: Record<string, unknown>;
|
|
120
|
+
next_activity_id?: number | null;
|
|
121
|
+
last_activity_id?: number | null;
|
|
122
|
+
open_deals_count?: number;
|
|
123
|
+
related_open_deals_count?: number;
|
|
124
|
+
closed_deals_count?: number;
|
|
125
|
+
related_closed_deals_count?: number;
|
|
126
|
+
participant_open_deals_count?: number;
|
|
127
|
+
participant_closed_deals_count?: number;
|
|
128
|
+
email_messages_count?: number;
|
|
129
|
+
activities_count?: number;
|
|
130
|
+
done_activities_count?: number;
|
|
131
|
+
undone_activities_count?: number;
|
|
132
|
+
files_count?: number;
|
|
133
|
+
notes_count?: number;
|
|
134
|
+
followers_count?: number;
|
|
135
|
+
won_deals_count?: number;
|
|
136
|
+
related_won_deals_count?: number;
|
|
137
|
+
lost_deals_count?: number;
|
|
138
|
+
related_lost_deals_count?: number;
|
|
139
|
+
last_incoming_mail_time?: string | null;
|
|
140
|
+
last_outgoing_mail_time?: string | null;
|
|
141
|
+
marketing_status?: string;
|
|
142
|
+
doi_status?: string;
|
|
143
|
+
}
|
|
144
|
+
export interface PipedriveOrganizationV2 {
|
|
145
|
+
id: number;
|
|
146
|
+
name: string;
|
|
147
|
+
owner_id: number;
|
|
148
|
+
add_time: string;
|
|
149
|
+
update_time: string;
|
|
150
|
+
is_deleted: boolean;
|
|
151
|
+
visible_to: number;
|
|
152
|
+
picture_id: number | null;
|
|
153
|
+
label_ids: number[];
|
|
154
|
+
address: {
|
|
155
|
+
value: string | null;
|
|
156
|
+
street_number: string | null;
|
|
157
|
+
route: string | null;
|
|
158
|
+
sublocality: string | null;
|
|
159
|
+
locality: string | null;
|
|
160
|
+
admin_area_level_1: string | null;
|
|
161
|
+
admin_area_level_2: string | null;
|
|
162
|
+
country: string | null;
|
|
163
|
+
postal_code: string | null;
|
|
164
|
+
formatted_address: string | null;
|
|
165
|
+
} | null;
|
|
166
|
+
custom_fields: Record<string, unknown>;
|
|
167
|
+
next_activity_id?: number | null;
|
|
168
|
+
last_activity_id?: number | null;
|
|
169
|
+
open_deals_count?: number;
|
|
170
|
+
related_open_deals_count?: number;
|
|
171
|
+
closed_deals_count?: number;
|
|
172
|
+
related_closed_deals_count?: number;
|
|
173
|
+
participant_open_deals_count?: number;
|
|
174
|
+
participant_closed_deals_count?: number;
|
|
175
|
+
email_messages_count?: number;
|
|
176
|
+
activities_count?: number;
|
|
177
|
+
done_activities_count?: number;
|
|
178
|
+
undone_activities_count?: number;
|
|
179
|
+
files_count?: number;
|
|
180
|
+
notes_count?: number;
|
|
181
|
+
followers_count?: number;
|
|
182
|
+
won_deals_count?: number;
|
|
183
|
+
related_won_deals_count?: number;
|
|
184
|
+
lost_deals_count?: number;
|
|
185
|
+
related_lost_deals_count?: number;
|
|
186
|
+
last_incoming_mail_time?: string | null;
|
|
187
|
+
last_outgoing_mail_time?: string | null;
|
|
188
|
+
marketing_status?: string;
|
|
189
|
+
doi_status?: string;
|
|
190
|
+
}
|
|
191
|
+
export interface PipedriveLeadV2 {
|
|
2
192
|
id: string;
|
|
193
|
+
title: string;
|
|
194
|
+
owner_id: number;
|
|
195
|
+
creator_id: number;
|
|
196
|
+
label_ids: string[];
|
|
197
|
+
value: number | null;
|
|
198
|
+
expected_close_date: string | null;
|
|
199
|
+
person_id: number | null;
|
|
200
|
+
organization_id: number | null;
|
|
201
|
+
is_archived: boolean;
|
|
202
|
+
source_name: string;
|
|
203
|
+
origin: string;
|
|
204
|
+
origin_id: string | null;
|
|
205
|
+
channel: number | null;
|
|
206
|
+
channel_id: string | null;
|
|
207
|
+
was_seen: boolean;
|
|
208
|
+
next_activity_id: number | null;
|
|
209
|
+
add_time: string;
|
|
210
|
+
update_time: string;
|
|
211
|
+
visible_to: number;
|
|
212
|
+
custom_fields?: Record<string, unknown>;
|
|
213
|
+
}
|
|
214
|
+
export interface PipedriveNoteV2 {
|
|
215
|
+
id: number;
|
|
216
|
+
user_id: number;
|
|
217
|
+
deal_id: number | null;
|
|
218
|
+
person_id: number | null;
|
|
219
|
+
org_id: number | null;
|
|
220
|
+
lead_id: string | null;
|
|
221
|
+
content: string;
|
|
222
|
+
add_time: string;
|
|
223
|
+
update_time: string;
|
|
224
|
+
is_deleted: boolean;
|
|
225
|
+
last_update_user_id: number | null;
|
|
226
|
+
}
|
|
227
|
+
export interface PipedriveProductV2 {
|
|
228
|
+
id: number;
|
|
229
|
+
name: string;
|
|
230
|
+
code: string | null;
|
|
231
|
+
description: string | null;
|
|
232
|
+
unit: string | null;
|
|
233
|
+
tax: number | null;
|
|
234
|
+
prices: Array<{
|
|
235
|
+
id?: number;
|
|
236
|
+
product_id?: number;
|
|
237
|
+
price: number;
|
|
238
|
+
currency: string;
|
|
239
|
+
cost?: number;
|
|
240
|
+
direct_cost?: number;
|
|
241
|
+
overhead_cost?: number;
|
|
242
|
+
}>;
|
|
243
|
+
owner_id: number;
|
|
244
|
+
add_time: string;
|
|
245
|
+
update_time: string;
|
|
246
|
+
is_deleted: boolean;
|
|
247
|
+
visible_to: number;
|
|
248
|
+
custom_fields?: Record<string, unknown>;
|
|
249
|
+
}
|
|
250
|
+
export type GetField = {
|
|
251
|
+
id: number;
|
|
3
252
|
name: string;
|
|
4
253
|
key: string;
|
|
5
254
|
edit_flag: boolean;
|
|
6
|
-
|
|
255
|
+
is_subfield: boolean;
|
|
256
|
+
id_suffix: string;
|
|
257
|
+
field_type: "varchar" | "text" | "enum" | "set" | "varchar_auto" | "double" | "monetary" | "user" | "org" | "people" | "phone" | "time" | "int" | "timerange" | "date" | "daterange" | "address" | "lead_label";
|
|
7
258
|
options?: Array<{
|
|
8
259
|
id: number;
|
|
9
260
|
label: string;
|
|
10
261
|
}>;
|
|
11
262
|
};
|
|
12
|
-
type
|
|
13
|
-
start
|
|
14
|
-
limit
|
|
263
|
+
type PaginationInfoV2 = {
|
|
264
|
+
start?: number;
|
|
265
|
+
limit?: number;
|
|
15
266
|
more_items_in_collection: boolean;
|
|
267
|
+
next_cursor?: string;
|
|
268
|
+
};
|
|
269
|
+
type AdditionalDataV2 = {
|
|
270
|
+
pagination?: PaginationInfoV2;
|
|
271
|
+
};
|
|
272
|
+
export type PaginatedV2Response<T> = {
|
|
273
|
+
success: boolean;
|
|
274
|
+
data: T[];
|
|
275
|
+
additional_data?: {
|
|
276
|
+
next_cursor?: string;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
export type PaginatedV1Response<T> = {
|
|
280
|
+
success: boolean;
|
|
281
|
+
data: T[];
|
|
282
|
+
additional_data: {
|
|
283
|
+
pagination: {
|
|
284
|
+
start: number;
|
|
285
|
+
limit: number;
|
|
286
|
+
more_items_in_collection: boolean;
|
|
287
|
+
next_start: number;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
16
290
|
};
|
|
17
291
|
export type FieldsResponse = {
|
|
18
292
|
success: boolean;
|
|
19
293
|
data: GetField[];
|
|
20
|
-
additional_data
|
|
294
|
+
additional_data?: AdditionalDataV2;
|
|
21
295
|
};
|
|
22
296
|
export type StageWithPipelineInfo = {
|
|
23
297
|
id: number;
|
|
24
298
|
name: string;
|
|
25
299
|
pipeline_id: number;
|
|
26
|
-
pipeline_name: string;
|
|
27
300
|
};
|
|
28
301
|
export type GetStagesResponse = {
|
|
29
302
|
success: boolean;
|
|
30
303
|
data: StageWithPipelineInfo[];
|
|
304
|
+
additional_data?: AdditionalDataV2;
|
|
31
305
|
};
|
|
32
306
|
export type ListDealsResponse = {
|
|
33
307
|
success: boolean;
|
|
34
|
-
data:
|
|
35
|
-
additional_data
|
|
308
|
+
data: PipedriveDealV2[];
|
|
309
|
+
additional_data?: AdditionalDataV2;
|
|
36
310
|
};
|
|
37
311
|
export type GetDealResponse = {
|
|
38
312
|
success: boolean;
|
|
39
|
-
data:
|
|
40
|
-
additional_data
|
|
313
|
+
data: PipedriveDealV2;
|
|
314
|
+
additional_data?: AdditionalDataV2;
|
|
41
315
|
};
|
|
42
316
|
export type ListActivitiesResponse = {
|
|
43
317
|
success: boolean;
|
|
44
|
-
data:
|
|
45
|
-
additional_data
|
|
318
|
+
data: PipedriveActivityV2[];
|
|
319
|
+
additional_data?: AdditionalDataV2;
|
|
46
320
|
};
|
|
47
321
|
export type PersonListResponse = {
|
|
48
322
|
success: boolean;
|
|
49
|
-
data:
|
|
50
|
-
additional_data
|
|
323
|
+
data: PipedrivePersonV2[];
|
|
324
|
+
additional_data?: AdditionalDataV2;
|
|
51
325
|
};
|
|
52
|
-
export type
|
|
326
|
+
export type GetPersonResponse = {
|
|
53
327
|
success: boolean;
|
|
54
|
-
data:
|
|
55
|
-
additional_data
|
|
328
|
+
data: PipedrivePersonV2;
|
|
329
|
+
additional_data?: AdditionalDataV2;
|
|
56
330
|
};
|
|
57
|
-
export type
|
|
331
|
+
export type OrganizationListResponse = {
|
|
58
332
|
success: boolean;
|
|
59
|
-
data:
|
|
60
|
-
additional_data
|
|
333
|
+
data: PipedriveOrganizationV2[];
|
|
334
|
+
additional_data?: AdditionalDataV2;
|
|
61
335
|
};
|
|
62
|
-
export type
|
|
336
|
+
export type GetOrganizationResponse = {
|
|
63
337
|
success: boolean;
|
|
64
|
-
data:
|
|
65
|
-
additional_data
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
338
|
+
data: PipedriveOrganizationV2;
|
|
339
|
+
additional_data?: AdditionalDataV2;
|
|
340
|
+
};
|
|
341
|
+
export type LeadListResponse = {
|
|
342
|
+
success: boolean;
|
|
343
|
+
data: PipedriveLeadV2[];
|
|
344
|
+
additional_data?: AdditionalDataV2;
|
|
345
|
+
};
|
|
346
|
+
export type GetLeadResponse = {
|
|
347
|
+
success: boolean;
|
|
348
|
+
data: PipedriveLeadV2;
|
|
349
|
+
additional_data?: AdditionalDataV2;
|
|
350
|
+
};
|
|
351
|
+
export type GetNoteResponse = {
|
|
352
|
+
success: boolean;
|
|
353
|
+
data: PipedriveNoteV2;
|
|
354
|
+
additional_data?: AdditionalDataV2;
|
|
73
355
|
};
|
|
74
|
-
export type RequestParams = Record<string, string | number | string[] | undefined>;
|
|
75
356
|
export type WebhookCreateResponse = {
|
|
76
|
-
status
|
|
357
|
+
status?: string;
|
|
77
358
|
success: boolean;
|
|
78
359
|
data: {
|
|
79
|
-
id:
|
|
360
|
+
id: string;
|
|
80
361
|
};
|
|
81
362
|
};
|
|
82
|
-
export type
|
|
363
|
+
export type GetProductResponse = {
|
|
83
364
|
success: boolean;
|
|
84
|
-
data:
|
|
365
|
+
data: PipedriveProductV2;
|
|
366
|
+
additional_data?: AdditionalDataV2;
|
|
85
367
|
};
|
|
368
|
+
export type RequestParams = Record<string, string | number | boolean | string[] | number[] | null | undefined>;
|
|
86
369
|
export {};
|
|
@@ -20,12 +20,12 @@ exports.activityMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
20
20
|
onEnable(context) {
|
|
21
21
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
22
22
|
const ids = [];
|
|
23
|
-
const response = yield (0, common_1.
|
|
23
|
+
const response = yield (0, common_1.pipedrivePaginatedV2ApiCall)({
|
|
24
24
|
accessToken: context.auth.access_token,
|
|
25
25
|
apiDomain: context.auth.data['api_domain'],
|
|
26
26
|
method: pieces_common_1.HttpMethod.GET,
|
|
27
|
-
resourceUri: '/activities
|
|
28
|
-
query: {
|
|
27
|
+
resourceUri: '/v2/activities',
|
|
28
|
+
query: { filter_id: context.propsValue.filterId },
|
|
29
29
|
});
|
|
30
30
|
if (!(0, shared_1.isNil)(response)) {
|
|
31
31
|
response.forEach((activity) => {
|
|
@@ -47,12 +47,13 @@ exports.activityMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
47
47
|
accessToken: context.auth.access_token,
|
|
48
48
|
apiDomain: context.auth.data['api_domain'],
|
|
49
49
|
method: pieces_common_1.HttpMethod.GET,
|
|
50
|
-
resourceUri: '/activities',
|
|
50
|
+
resourceUri: '/v2/activities',
|
|
51
51
|
query: {
|
|
52
52
|
limit: 10,
|
|
53
|
-
sort: 'update_time DESC',
|
|
54
53
|
filter_id: context.propsValue.filterId,
|
|
55
|
-
|
|
54
|
+
sort_by: 'update_time',
|
|
55
|
+
sort_direction: 'desc',
|
|
56
|
+
include_fields: 'attendees'
|
|
56
57
|
},
|
|
57
58
|
});
|
|
58
59
|
if ((0, shared_1.isNil)(response.data)) {
|
|
@@ -69,12 +70,12 @@ exports.activityMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
69
70
|
var _a;
|
|
70
71
|
const existingIds = (_a = (yield context.store.get('activities'))) !== null && _a !== void 0 ? _a : '[]';
|
|
71
72
|
const parsedExistingIds = JSON.parse(existingIds);
|
|
72
|
-
const response = yield (0, common_1.
|
|
73
|
+
const response = yield (0, common_1.pipedrivePaginatedV2ApiCall)({
|
|
73
74
|
accessToken: context.auth.access_token,
|
|
74
75
|
apiDomain: context.auth.data['api_domain'],
|
|
75
76
|
method: pieces_common_1.HttpMethod.GET,
|
|
76
|
-
resourceUri: '/activities',
|
|
77
|
-
query: {
|
|
77
|
+
resourceUri: '/v2/activities',
|
|
78
|
+
query: { filter_id: context.propsValue.filterId, include_fields: 'attendees' },
|
|
78
79
|
});
|
|
79
80
|
if ((0, shared_1.isNil)(response) || response.length === 0) {
|
|
80
81
|
return [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-matching-filter.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/trigger/activity-matching-filter.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,+DAAyD;AACzD,qEAAgF;AAChF,2CAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"activity-matching-filter.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/trigger/activity-matching-filter.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,+DAAyD;AACzD,qEAAgF;AAChF,2CAA+C;AAC/C,sCAA0E;AAE1E,iDAA6C;AAEhC,QAAA,6BAA6B,GAAG,IAAA,gCAAa,EAAC;IAC1D,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,0BAA0B;IAChC,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,+EAA+E;IAC5F,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACN,QAAQ,EAAE,IAAA,oBAAY,EAAC,UAAU,EAAE,IAAI,CAAC;KACxC;IACK,QAAQ,CAAC,OAAO;;YACrB,MAAM,GAAG,GAAa,EAAE,CAAC;YAEzB,MAAM,QAAQ,GAAG,MAAM,IAAA,oCAA2B,EAAiB;gBAClE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAA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,EAAE;QACvB,sBAAsB,EAAE,GAAG;QAC3B,cAAc,EAAE,cAAc;QAC9B,oBAAoB,EAAE,WAAW;QACjC,iBAAiB,EAAE,SAAS;QAC5B,2BAA2B,EAAE,eAAe;QAC5C,2BAA2B,EAAE,EAAE;QAC/B,gBAAgB,EAAE,SAAS;QAC3B,oBAAoB,EAAE,OAAO;QAC7B,0BAA0B,EAAE,wCAAwC;QACpE,SAAS,EAAE;YACV;gBACC,aAAa,EAAE,4BAA4B;gBAC3C,YAAY,EAAE,CAAC;gBACf,IAAI,EAAE,UAAU;gBAChB,SAAS,EAAE,KAAK;gBAChB,MAAM,EAAE,SAAS;gBACjB,OAAO,EAAE,IAAI;aACb;SACD;QACD,YAAY,EAAE;YACb;gBACC,SAAS,EAAE,KAAK;gBAChB,YAAY,EAAE,KAAK;aACnB;YACD;gBACC,SAAS,EAAE,IAAI;gBACf,YAAY,EAAE,IAAI;aAClB;SACD;QACD,QAAQ,EAAE,cAAc;QACxB,WAAW,EAAE,QAAQ;QACrB,UAAU,EAAE,MAAM;QAClB,UAAU,EAAE,SAAS;QACrB,kBAAkB,EAAE,2BAA2B;QAC/C,gBAAgB,EAAE,mCAAmC;QACrD,mBAAmB,EAAE,IAAI;QACzB,IAAI,EAAE;YACL,EAAE,EAAE,SAAS;YACb,UAAU,EAAE,oBAAoB;YAChC,GAAG,EAAE,wEAAwE;SAC7E;KACD;CACD,CAAC,CAAC"}
|
|
@@ -8,6 +8,7 @@ const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
|
8
8
|
const props_1 = require("../common/props");
|
|
9
9
|
const common_1 = require("../common");
|
|
10
10
|
const shared_1 = require("@activepieces/shared");
|
|
11
|
+
const constants_1 = require("../common/constants");
|
|
11
12
|
exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
12
13
|
auth: index_1.pipedriveAuth,
|
|
13
14
|
name: 'deal-matching-filter',
|
|
@@ -50,13 +51,12 @@ exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
50
51
|
onEnable(context) {
|
|
51
52
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
52
53
|
const ids = [];
|
|
53
|
-
const response = yield (0, common_1.
|
|
54
|
+
const response = yield (0, common_1.pipedrivePaginatedV2ApiCall)({
|
|
54
55
|
accessToken: context.auth.access_token,
|
|
55
56
|
apiDomain: context.auth.data['api_domain'],
|
|
56
57
|
method: pieces_common_1.HttpMethod.GET,
|
|
57
|
-
resourceUri: '/deals
|
|
58
|
+
resourceUri: '/v2/deals',
|
|
58
59
|
query: {
|
|
59
|
-
sort: 'update_time DESC',
|
|
60
60
|
filter_id: context.propsValue.filterId,
|
|
61
61
|
status: context.propsValue.status,
|
|
62
62
|
},
|
|
@@ -81,12 +81,12 @@ exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
81
81
|
accessToken: context.auth.access_token,
|
|
82
82
|
apiDomain: context.auth.data['api_domain'],
|
|
83
83
|
method: pieces_common_1.HttpMethod.GET,
|
|
84
|
-
resourceUri: '/deals',
|
|
84
|
+
resourceUri: '/v2/deals',
|
|
85
85
|
query: {
|
|
86
86
|
limit: 10,
|
|
87
|
-
sort: 'update_time DESC',
|
|
88
87
|
filter_id: context.propsValue.filterId,
|
|
89
88
|
status: context.propsValue.status,
|
|
89
|
+
include_fields: constants_1.DEAL_OPTIONAL_FIELDS.join(','),
|
|
90
90
|
},
|
|
91
91
|
});
|
|
92
92
|
if ((0, shared_1.isNil)(response.data)) {
|
|
@@ -95,11 +95,11 @@ exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
95
95
|
for (const deal of response.data) {
|
|
96
96
|
deals.push(deal);
|
|
97
97
|
}
|
|
98
|
-
const customFieldsResponse = yield (0, common_1.
|
|
98
|
+
const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
|
|
99
99
|
accessToken: context.auth.access_token,
|
|
100
100
|
apiDomain: context.auth.data['api_domain'],
|
|
101
101
|
method: pieces_common_1.HttpMethod.GET,
|
|
102
|
-
resourceUri: '/dealFields',
|
|
102
|
+
resourceUri: '/v1/dealFields',
|
|
103
103
|
});
|
|
104
104
|
const result = [];
|
|
105
105
|
for (const deal of deals) {
|
|
@@ -114,15 +114,15 @@ exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
114
114
|
var _a;
|
|
115
115
|
const existingIds = (_a = (yield context.store.get('deals'))) !== null && _a !== void 0 ? _a : '[]';
|
|
116
116
|
const parsedExistingIds = JSON.parse(existingIds);
|
|
117
|
-
const response = yield (0, common_1.
|
|
117
|
+
const response = yield (0, common_1.pipedrivePaginatedV2ApiCall)({
|
|
118
118
|
accessToken: context.auth.access_token,
|
|
119
119
|
apiDomain: context.auth.data['api_domain'],
|
|
120
120
|
method: pieces_common_1.HttpMethod.GET,
|
|
121
|
-
resourceUri: '/deals',
|
|
121
|
+
resourceUri: '/v2/deals',
|
|
122
122
|
query: {
|
|
123
|
-
sort: 'update_time DESC',
|
|
124
123
|
filter_id: context.propsValue.filterId,
|
|
125
124
|
status: context.propsValue.status,
|
|
125
|
+
include_fields: constants_1.DEAL_OPTIONAL_FIELDS.join(','),
|
|
126
126
|
},
|
|
127
127
|
});
|
|
128
128
|
if ((0, shared_1.isNil)(response) || response.length === 0) {
|
|
@@ -136,11 +136,11 @@ exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
136
136
|
}
|
|
137
137
|
// Store new IDs
|
|
138
138
|
yield context.store.put('deals', JSON.stringify([...newIds, ...parsedExistingIds]));
|
|
139
|
-
const customFieldsResponse = yield (0, common_1.
|
|
139
|
+
const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
|
|
140
140
|
accessToken: context.auth.access_token,
|
|
141
141
|
apiDomain: context.auth.data['api_domain'],
|
|
142
142
|
method: pieces_common_1.HttpMethod.GET,
|
|
143
|
-
resourceUri: '/dealFields',
|
|
143
|
+
resourceUri: '/v1/dealFields',
|
|
144
144
|
});
|
|
145
145
|
const result = [];
|
|
146
146
|
// Transform valid deal fields
|
|
@@ -153,52 +153,9 @@ exports.dealMatchingFilterTrigger = (0, pieces_framework_1.createTrigger)({
|
|
|
153
153
|
},
|
|
154
154
|
sampleData: {
|
|
155
155
|
id: 1,
|
|
156
|
-
creator_user_id:
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
email: 'john.doe@pipedrive.com',
|
|
160
|
-
has_pic: false,
|
|
161
|
-
pic_hash: null,
|
|
162
|
-
active_flag: true,
|
|
163
|
-
value: 8877,
|
|
164
|
-
},
|
|
165
|
-
user_id: {
|
|
166
|
-
id: 8877,
|
|
167
|
-
name: 'Creator',
|
|
168
|
-
email: 'john.doe@pipedrive.com',
|
|
169
|
-
has_pic: false,
|
|
170
|
-
pic_hash: null,
|
|
171
|
-
active_flag: true,
|
|
172
|
-
value: 8877,
|
|
173
|
-
},
|
|
174
|
-
person_id: {
|
|
175
|
-
active_flag: true,
|
|
176
|
-
name: 'Person',
|
|
177
|
-
email: [
|
|
178
|
-
{
|
|
179
|
-
label: 'work',
|
|
180
|
-
value: 'person@pipedrive.com',
|
|
181
|
-
primary: true,
|
|
182
|
-
},
|
|
183
|
-
],
|
|
184
|
-
phone: [
|
|
185
|
-
{
|
|
186
|
-
label: 'work',
|
|
187
|
-
value: '37244499911',
|
|
188
|
-
primary: true,
|
|
189
|
-
},
|
|
190
|
-
],
|
|
191
|
-
value: 1101,
|
|
192
|
-
},
|
|
193
|
-
org_id: {
|
|
194
|
-
name: 'Organization',
|
|
195
|
-
people_count: 2,
|
|
196
|
-
owner_id: 8877,
|
|
197
|
-
address: '',
|
|
198
|
-
active_flag: true,
|
|
199
|
-
cc_email: 'org@pipedrivemail.com',
|
|
200
|
-
value: 5,
|
|
201
|
-
},
|
|
156
|
+
creator_user_id: 22701301,
|
|
157
|
+
person_id: 1101,
|
|
158
|
+
org_id: 5,
|
|
202
159
|
stage_id: 2,
|
|
203
160
|
title: 'Deal One',
|
|
204
161
|
value: 5000,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deal-matching-filter.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/trigger/deal-matching-filter.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,+DAAyD;AACzD,qEAA0F;AAC1F,2CAA+C;AAC/C,
|
|
1
|
+
{"version":3,"file":"deal-matching-filter.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/trigger/deal-matching-filter.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,+DAAyD;AACzD,qEAA0F;AAC1F,2CAA+C;AAC/C,sCAKmB;AAEnB,iDAA6C;AAC7C,mDAA2D;AAE9C,QAAA,yBAAyB,GAAG,IAAA,gCAAa,EAAC;IACtD,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,sBAAsB;IACnC,WAAW,EAAE,0EAA0E;IACvF,IAAI,EAAE,kCAAe,CAAC,OAAO;IAC7B,KAAK,EAAE;QACN,QAAQ,EAAE,IAAA,oBAAY,EAAC,OAAO,EAAE,IAAI,CAAC;QACrC,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,QAAQ;YACrB,QAAQ,EAAE,KAAK;YACf,YAAY,EAAE,iBAAiB;YAC/B,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR;wBACC,KAAK,EAAE,MAAM;wBACb,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,KAAK,EAAE,KAAK;wBACZ,KAAK,EAAE,KAAK;qBACZ;oBACD;wBACC,KAAK,EAAE,MAAM;wBACb,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,KAAK,EAAE,kBAAkB;wBACzB,KAAK,EA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