@activepieces/piece-pipedrive 0.3.6 → 0.4.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 +6 -4
- package/src/index.js +89 -5
- package/src/index.js.map +1 -1
- package/src/lib/actions/add-follower.d.ts +5 -0
- package/src/lib/actions/add-follower.js +119 -0
- package/src/lib/actions/add-follower.js.map +1 -0
- package/src/lib/actions/add-label-to-person.d.ts +4 -0
- package/src/lib/actions/add-label-to-person.js +46 -0
- package/src/lib/actions/add-label-to-person.js.map +1 -0
- package/src/lib/actions/add-product-to-deal.d.ts +12 -0
- package/src/lib/actions/add-product-to-deal.js +106 -0
- package/src/lib/actions/add-product-to-deal.js.map +1 -0
- package/src/lib/actions/attach-file.d.ts +9 -0
- package/src/lib/actions/attach-file.js +62 -0
- package/src/lib/actions/attach-file.js.map +1 -0
- package/src/lib/actions/create-activity.d.ts +16 -0
- package/src/lib/actions/create-activity.js +54 -0
- package/src/lib/actions/create-activity.js.map +1 -0
- package/src/lib/actions/create-deal.d.ts +17 -0
- package/src/lib/actions/create-deal.js +69 -0
- package/src/lib/actions/create-deal.js.map +1 -0
- package/src/lib/actions/create-lead.d.ts +13 -0
- package/src/lib/actions/create-lead.js +75 -0
- package/src/lib/actions/create-lead.js.map +1 -0
- package/src/lib/actions/create-note.d.ts +11 -0
- package/src/lib/actions/create-note.js +73 -0
- package/src/lib/actions/create-note.js.map +1 -0
- package/src/lib/actions/create-organization.d.ts +8 -0
- package/src/lib/actions/create-organization.js +57 -0
- package/src/lib/actions/create-organization.js.map +1 -0
- package/src/lib/actions/create-person.d.ts +13 -0
- package/src/lib/actions/create-person.js +68 -0
- package/src/lib/actions/create-person.js.map +1 -0
- package/src/lib/actions/create-product.d.ts +15 -0
- package/src/lib/actions/create-product.js +109 -0
- package/src/lib/actions/create-product.js.map +1 -0
- package/src/lib/actions/find-activity.d.ts +8 -0
- package/src/lib/actions/find-activity.js +85 -0
- package/src/lib/actions/find-activity.js.map +1 -0
- package/src/lib/actions/find-deal.d.ts +4 -0
- package/src/lib/actions/find-deal.js +104 -0
- package/src/lib/actions/find-deal.js.map +1 -0
- package/src/lib/actions/find-deals-associated-with-person.d.ts +3 -0
- package/src/lib/actions/find-deals-associated-with-person.js +53 -0
- package/src/lib/actions/find-deals-associated-with-person.js.map +1 -0
- package/src/lib/actions/find-notes.d.ts +4 -0
- package/src/lib/actions/find-notes.js +70 -0
- package/src/lib/actions/find-notes.js.map +1 -0
- package/src/lib/actions/find-organization.d.ts +4 -0
- package/src/lib/actions/find-organization.js +104 -0
- package/src/lib/actions/find-organization.js.map +1 -0
- package/src/lib/actions/find-person.d.ts +4 -0
- package/src/lib/actions/find-person.js +104 -0
- package/src/lib/actions/find-person.js.map +1 -0
- package/src/lib/actions/find-product.d.ts +3 -0
- package/src/lib/actions/find-product.js +59 -0
- package/src/lib/actions/find-product.js.map +1 -0
- package/src/lib/actions/find-products.d.ts +4 -0
- package/src/lib/actions/find-products.js +73 -0
- package/src/lib/actions/find-products.js.map +1 -0
- package/src/lib/actions/find-user.d.ts +4 -0
- package/src/lib/actions/find-user.js +57 -0
- package/src/lib/actions/find-user.js.map +1 -0
- package/src/lib/actions/get-note.d.ts +3 -0
- package/src/lib/actions/get-note.js +39 -0
- package/src/lib/actions/get-note.js.map +1 -0
- package/src/lib/actions/get-product.d.ts +3 -0
- package/src/lib/actions/get-product.js +50 -0
- package/src/lib/actions/get-product.js.map +1 -0
- package/src/lib/actions/update-activity.d.ts +17 -0
- package/src/lib/actions/update-activity.js +57 -0
- package/src/lib/actions/update-activity.js.map +1 -0
- package/src/lib/actions/update-deal.d.ts +18 -0
- package/src/lib/actions/update-deal.js +69 -0
- package/src/lib/actions/update-deal.js.map +1 -0
- package/src/lib/actions/update-lead.d.ts +14 -0
- package/src/lib/actions/update-lead.js +72 -0
- package/src/lib/actions/update-lead.js.map +1 -0
- package/src/lib/actions/update-organization.d.ts +9 -0
- package/src/lib/actions/update-organization.js +58 -0
- package/src/lib/actions/update-organization.js.map +1 -0
- package/src/lib/actions/update-person.d.ts +14 -0
- package/src/lib/actions/update-person.js +68 -0
- package/src/lib/actions/update-person.js.map +1 -0
- package/src/lib/common/index.js +26 -3
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/common/props.d.ts +92 -0
- package/src/lib/common/props.js +988 -0
- package/src/lib/common/props.js.map +1 -0
- package/src/lib/common/types.d.ts +24 -2
- package/src/lib/trigger/activity-matching-filter.d.ts +8 -0
- package/src/lib/trigger/activity-matching-filter.js +178 -0
- package/src/lib/trigger/activity-matching-filter.js.map +1 -0
- package/src/lib/trigger/deal-matching-filter.d.ts +11 -0
- package/src/lib/trigger/deal-matching-filter.js +287 -0
- package/src/lib/trigger/deal-matching-filter.js.map +1 -0
- package/src/lib/trigger/new-deal.js +1 -1
- package/src/lib/trigger/new-deal.js.map +1 -1
- package/src/lib/trigger/new-lead.d.ts +2 -0
- package/src/lib/trigger/new-lead.js +124 -0
- package/src/lib/trigger/new-lead.js.map +1 -0
- package/src/lib/trigger/new-note.d.ts +2 -0
- package/src/lib/trigger/new-note.js +113 -0
- package/src/lib/trigger/new-note.js.map +1 -0
- package/src/lib/trigger/new-organization.d.ts +2 -0
- package/src/lib/trigger/new-organization.js +160 -0
- package/src/lib/trigger/new-organization.js.map +1 -0
- package/src/lib/trigger/new-person.js.map +1 -1
- package/src/lib/trigger/organization-matching-filter.d.ts +8 -0
- package/src/lib/trigger/organization-matching-filter.js +174 -0
- package/src/lib/trigger/organization-matching-filter.js.map +1 -0
- package/src/lib/trigger/person-matching-filter.d.ts +8 -0
- package/src/lib/trigger/person-matching-filter.js +203 -0
- package/src/lib/trigger/person-matching-filter.js.map +1 -0
- package/src/lib/trigger/updated-deal-stage.d.ts +8 -0
- package/src/lib/trigger/updated-deal-stage.js +288 -0
- package/src/lib/trigger/updated-deal-stage.js.map +1 -0
- package/src/lib/trigger/updated-organization.d.ts +2 -0
- package/src/lib/trigger/updated-organization.js +160 -0
- package/src/lib/trigger/updated-organization.js.map +1 -0
- package/src/lib/trigger/updated-person.js.map +1 -1
- package/src/lib/actions/add-person.action/add-person.action.d.ts +0 -8
- package/src/lib/actions/add-person.action/add-person.action.js +0 -179
- package/src/lib/actions/add-person.action/add-person.action.js.map +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateOrganizationAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const index_1 = require("../../index");
|
|
6
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
+
const props_1 = require("../common/props");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
10
|
+
exports.updateOrganizationAction = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: index_1.pipedriveAuth,
|
|
12
|
+
name: 'update-organization',
|
|
13
|
+
displayName: 'Update Organization',
|
|
14
|
+
description: 'Updates an existing organization.',
|
|
15
|
+
props: Object.assign({ organizationId: (0, props_1.organizationIdProp)(true), name: pieces_framework_1.Property.ShortText({
|
|
16
|
+
displayName: 'Name',
|
|
17
|
+
required: false,
|
|
18
|
+
}) }, props_1.organizationCommonProps),
|
|
19
|
+
run(context) {
|
|
20
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const { name, ownerId, address, visibleTo, organizationId } = context.propsValue;
|
|
23
|
+
const labelIds = (_a = context.propsValue.labelIds) !== null && _a !== void 0 ? _a : [];
|
|
24
|
+
const customFields = (_b = context.propsValue.customfields) !== null && _b !== void 0 ? _b : {};
|
|
25
|
+
const organizationDefaultFields = {
|
|
26
|
+
name: name,
|
|
27
|
+
owner_id: ownerId,
|
|
28
|
+
visible_to: visibleTo,
|
|
29
|
+
address: address,
|
|
30
|
+
};
|
|
31
|
+
if (labelIds.length > 0) {
|
|
32
|
+
organizationDefaultFields.label_ids = labelIds;
|
|
33
|
+
}
|
|
34
|
+
const organizationCustomFields = {};
|
|
35
|
+
Object.entries(customFields).forEach(([key, value]) => {
|
|
36
|
+
// Format values if they are arrays
|
|
37
|
+
organizationCustomFields[key] =
|
|
38
|
+
Array.isArray(value) && value.length > 0 ? value.join(',') : value;
|
|
39
|
+
});
|
|
40
|
+
const updatedOrganizationResponse = yield (0, common_1.pipedriveApiCall)({
|
|
41
|
+
accessToken: context.auth.access_token,
|
|
42
|
+
apiDomain: context.auth.data['api_domain'],
|
|
43
|
+
method: pieces_common_1.HttpMethod.PUT,
|
|
44
|
+
resourceUri: `/organizations/${organizationId}`,
|
|
45
|
+
body: Object.assign(Object.assign({}, organizationDefaultFields), organizationCustomFields),
|
|
46
|
+
});
|
|
47
|
+
const customFieldsResponse = yield (0, common_1.pipedrivePaginatedApiCall)({
|
|
48
|
+
accessToken: context.auth.access_token,
|
|
49
|
+
apiDomain: context.auth.data['api_domain'],
|
|
50
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
51
|
+
resourceUri: '/organizationFields',
|
|
52
|
+
});
|
|
53
|
+
const updatedOrganizationProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedOrganizationResponse.data);
|
|
54
|
+
return Object.assign(Object.assign({}, updatedOrganizationResponse), { data: updatedOrganizationProperties });
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=update-organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-organization.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/update-organization.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAA8E;AAC9E,sCAImB;AAEnB,+DAAyD;AAE5C,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,qBAAqB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A6B;gBACtF,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,kBAAkB,cAAc,EAAE;gBAC/C,IAAI,kCACA,yBAAyB,GACzB,wBAAwB,CAC3B;aACD,CAAC,CAAC;YAEH,MAAM,oBAAoB,GAAG,MAAM,IAAA,kCAAyB,EAAW;gBACtE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,qBAAqB;aAClC,CAAC,CAAC;YAEH,MAAM,6BAA6B,GAAG,IAAA,uCAA8B,EACnE,oBAAoB,EACpB,2BAA2B,CAAC,IAAI,CAChC,CAAC;YAEF,uCACI,2BAA2B,KAC9B,IAAI,EAAE,6BAA6B,IAClC;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const updatePersonAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
+
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
3
|
+
organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
4
|
+
email: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
5
|
+
phone: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
6
|
+
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
7
|
+
firstName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
8
|
+
lastName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
|
+
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
10
|
+
marketing_status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
11
|
+
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
12
|
+
personId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
13
|
+
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
+
}>;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePersonAction = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const index_1 = require("../../index");
|
|
6
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
7
|
+
const props_1 = require("../common/props");
|
|
8
|
+
const common_1 = require("../common");
|
|
9
|
+
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
10
|
+
exports.updatePersonAction = (0, pieces_framework_1.createAction)({
|
|
11
|
+
auth: index_1.pipedriveAuth,
|
|
12
|
+
name: 'update-person',
|
|
13
|
+
displayName: 'Update Person',
|
|
14
|
+
description: 'Updates an existing person.',
|
|
15
|
+
props: Object.assign({ personId: (0, props_1.personIdProp)(true), name: pieces_framework_1.Property.ShortText({
|
|
16
|
+
displayName: 'Name',
|
|
17
|
+
required: false,
|
|
18
|
+
}) }, props_1.personCommonProps),
|
|
19
|
+
run(context) {
|
|
20
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
var _a, _b, _c, _d;
|
|
22
|
+
const { name, ownerId, personId, organizationId, marketing_status, visibleTo, firstName, lastName, } = context.propsValue;
|
|
23
|
+
const phone = (_a = context.propsValue.phone) !== null && _a !== void 0 ? _a : [];
|
|
24
|
+
const email = (_b = context.propsValue.email) !== null && _b !== void 0 ? _b : [];
|
|
25
|
+
const labelIds = (_c = context.propsValue.labelIds) !== null && _c !== void 0 ? _c : [];
|
|
26
|
+
const customFields = (_d = context.propsValue.customfields) !== null && _d !== void 0 ? _d : {};
|
|
27
|
+
const personDefaultFields = {
|
|
28
|
+
name: name,
|
|
29
|
+
owner_id: ownerId,
|
|
30
|
+
org_id: organizationId,
|
|
31
|
+
marketing_status: marketing_status,
|
|
32
|
+
visible_to: visibleTo,
|
|
33
|
+
first_name: firstName,
|
|
34
|
+
last_name: lastName,
|
|
35
|
+
};
|
|
36
|
+
if (phone.length > 0) {
|
|
37
|
+
personDefaultFields.phone = phone;
|
|
38
|
+
}
|
|
39
|
+
if (email.length > 0) {
|
|
40
|
+
personDefaultFields.email = email;
|
|
41
|
+
}
|
|
42
|
+
if (labelIds.length > 0) {
|
|
43
|
+
personDefaultFields.label_ids = labelIds;
|
|
44
|
+
}
|
|
45
|
+
const personCustomFields = {};
|
|
46
|
+
Object.entries(customFields).forEach(([key, value]) => {
|
|
47
|
+
// Format values if they are arrays
|
|
48
|
+
personCustomFields[key] = Array.isArray(value) && value.length > 0 ? value.join(',') : value;
|
|
49
|
+
});
|
|
50
|
+
const updatedPersonResponse = yield (0, common_1.pipedriveApiCall)({
|
|
51
|
+
accessToken: context.auth.access_token,
|
|
52
|
+
apiDomain: context.auth.data['api_domain'],
|
|
53
|
+
method: pieces_common_1.HttpMethod.PUT,
|
|
54
|
+
resourceUri: `/persons/${personId}`,
|
|
55
|
+
body: Object.assign(Object.assign({}, personDefaultFields), personCustomFields),
|
|
56
|
+
});
|
|
57
|
+
const customFieldsResponse = yield (0, common_1.pipedrivePaginatedApiCall)({
|
|
58
|
+
accessToken: context.auth.access_token,
|
|
59
|
+
apiDomain: context.auth.data['api_domain'],
|
|
60
|
+
method: pieces_common_1.HttpMethod.GET,
|
|
61
|
+
resourceUri: '/personFields',
|
|
62
|
+
});
|
|
63
|
+
const updatedPersonProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedPersonResponse.data);
|
|
64
|
+
return Object.assign(Object.assign({}, updatedPersonResponse), { data: updatedPersonProperties });
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
//# sourceMappingURL=update-person.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-person.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/update-person.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAAkE;AAClE,sCAImB;AAEnB,+DAAyD;AAE5C,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,6BAA6B;IAC1C,KAAK,kBACJ,QAAQ,EAAE,IAAA,oBAAY,EAAC,IAAI,CAAC,EAC5B,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SACf,CAAC,IACC,yBAAiB,CACpB;IACK,GAAG,CAAC,OAAO;;;YAChB,MAAM,EACL,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,cAAc,EACd,gBAAgB,EAChB,SAAS,EACT,SAAS,EACT,QAAQ,GACR,GAAG,OAAO,CAAC,UAAU,CAAC;YACvB,MAAM,KAAK,GAAG,MAAC,OAAO,CAAC,UAAU,CAAC,KAAkB,mCAAI,EAAE,CAAC;YAC3D,MAAM,KAAK,GAAG,MAAC,OAAO,CAAC,UAAU,CAAC,KAAkB,mCAAI,EAAE,CAAC;YAC3D,MAAM,QAAQ,GAAG,MAAC,OAAO,CAAC,UAAU,CAAC,QAAqB,mCAAI,EAAE,CAAC;YACjE,MAAM,YAAY,GAAG,MAAA,O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AAQ,EAAE;gBACnC,IAAI,kCACA,mBAAmB,GACnB,kBAAkB,CACrB;aACD,CAAC,CAAC;YAEH,MAAM,oBAAoB,GAAG,MAAM,IAAA,kCAAyB,EAAW;gBACtE,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,GAAG;gBACtB,WAAW,EAAE,eAAe;aAC5B,CAAC,CAAC;YAEH,MAAM,uBAAuB,GAAG,IAAA,uCAA8B,EAC7D,oBAAoB,EACpB,qBAAqB,CAAC,IAAI,CAC1B,CAAC;YAEF,uCACI,qBAAqB,KACxB,IAAI,EAAE,uBAAuB,IAC5B;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
|
package/src/lib/common/index.js
CHANGED
|
@@ -6,6 +6,7 @@ exports.pipedrivePaginatedApiCall = pipedrivePaginatedApiCall;
|
|
|
6
6
|
exports.pipedriveTransformCustomFields = pipedriveTransformCustomFields;
|
|
7
7
|
const tslib_1 = require("tslib");
|
|
8
8
|
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
9
|
+
const shared_1 = require("@activepieces/shared");
|
|
9
10
|
exports.pipedriveCommon = {
|
|
10
11
|
subscribeWebhook: (object, action, webhookUrl, apiDomain, accessToken) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
12
|
const request = {
|
|
@@ -41,6 +42,7 @@ function pipedriveApiCall(_a) {
|
|
|
41
42
|
return tslib_1.__awaiter(this, arguments, void 0, function* ({ accessToken, apiDomain, method, resourceUri, query, body, }) {
|
|
42
43
|
const baseUrl = `${apiDomain}/api/v1`;
|
|
43
44
|
const qs = {};
|
|
45
|
+
let data;
|
|
44
46
|
if (query) {
|
|
45
47
|
for (const [key, value] of Object.entries(query)) {
|
|
46
48
|
if (value !== null && value !== undefined) {
|
|
@@ -48,6 +50,14 @@ function pipedriveApiCall(_a) {
|
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
}
|
|
53
|
+
if (body) {
|
|
54
|
+
data = Object.entries(body).reduce((acc, [key, value]) => {
|
|
55
|
+
if (!(0, shared_1.isNil)(value)) {
|
|
56
|
+
acc[key] = value;
|
|
57
|
+
}
|
|
58
|
+
return acc;
|
|
59
|
+
}, {});
|
|
60
|
+
}
|
|
51
61
|
const request = {
|
|
52
62
|
method,
|
|
53
63
|
url: baseUrl + resourceUri,
|
|
@@ -56,10 +66,20 @@ function pipedriveApiCall(_a) {
|
|
|
56
66
|
token: accessToken,
|
|
57
67
|
},
|
|
58
68
|
queryParams: qs,
|
|
59
|
-
body,
|
|
69
|
+
body: data,
|
|
60
70
|
};
|
|
61
|
-
|
|
62
|
-
|
|
71
|
+
try {
|
|
72
|
+
const response = yield pieces_common_1.httpClient.sendRequest(request);
|
|
73
|
+
return response.body;
|
|
74
|
+
}
|
|
75
|
+
catch (error) {
|
|
76
|
+
if (error instanceof pieces_common_1.HttpError) {
|
|
77
|
+
if (error.response.status === 403) {
|
|
78
|
+
throw new Error('Please reconnect your Pipedrive account.');
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
throw error;
|
|
82
|
+
}
|
|
63
83
|
});
|
|
64
84
|
}
|
|
65
85
|
function pipedrivePaginatedApiCall(_a) {
|
|
@@ -78,6 +98,9 @@ function pipedrivePaginatedApiCall(_a) {
|
|
|
78
98
|
query: qs,
|
|
79
99
|
body,
|
|
80
100
|
});
|
|
101
|
+
if ((0, shared_1.isNil)(response.data)) {
|
|
102
|
+
break;
|
|
103
|
+
}
|
|
81
104
|
resultData.push(...response.data);
|
|
82
105
|
qs.start = response.additional_data.pagination.next_start;
|
|
83
106
|
hasMoreItems = response.additional_data.pagination.more_items_in_collection;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/common/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/common/index.ts"],"names":[],"mappings":";;;AA8DA,4CAiDC;AAED,8DAkCC;AAED,wEAiCC;;AAtLD,+DAQqC;AAErC,iDAAqD;AAExC,QAAA,eAAe,GAAG;IAC9B,gBAAgB,EAAE,CACjB,MAAc,EACd,MAAc,EACd,UAAkB,EAClB,SAAiB,EACjB,WAAmB,EAClB,EAAE;QACH,MAAM,OAAO,GAAgB;YAC5B,MAAM,EAAE,0BAAU,CAAC,IAAI;YACvB,GAAG,EAAE,GAAG,SAAS,kBAAkB;YACnC,IAAI,EAAE;gBACL,YAAY,EAAE,MAAM;gBACpB,YAAY,EAAE,MAAM;gBACpB,gBAAgB,EAAE,UAAU;aAC5B;YACD,cAAc,EAAE;gBACf,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,WAAW;aAClB;YACD,WAAW,EAAE,EAAE;SACf,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,0BAAU,CAAC,WAAW,CAEnD,OAAO,CAAC,CAAC;QACZ,OAAO,OAAO,CAAC;IAChB,CAAC,CAAA;IACD,kBAAkB,EAAE,CAAO,SAAiB,EAAE,SAAiB,EAAE,WAAmB,EAAE,EAAE;QACvF,MAAM,OAAO,GAAgB;YAC5B,MAAM,EAAE,0BAAU,CAAC,MAAM;YACzB,GAAG,EAAE,GAAG,SAAS,oBAAoB,SAAS,EAAE;YAChD,cAAc,EAAE;gBACf,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,WAAW;aAClB;SACD,CAAC;QACF,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC,CAAA;CACD,CAAC;AAWF,SAAsB,gBAAgB;iEAA4B,EACjE,WAAW,EACX,SAAS,EACT,MAAM,EACN,WAAW,EACX,KAAK,EACL,IAAI,GACoB;Q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AmB,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;IACF,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { pipedriveAuth } from '../../index';
|
|
2
|
+
import { DropdownOption, DynamicPropsValue, PiecePropValueSchema } from '@activepieces/pieces-framework';
|
|
3
|
+
import { GetField } from './types';
|
|
4
|
+
export declare function fetchFiltersOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>, type: string): Promise<DropdownOption<number>[]>;
|
|
5
|
+
export declare function fetchProductsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
6
|
+
export declare function fetchDealsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
7
|
+
export declare function fetchLeadsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
8
|
+
export declare function fetchActivityTypesOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<string>[]>;
|
|
9
|
+
export declare function fetchPipelinesOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
10
|
+
export declare function fetchPersonsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
11
|
+
export declare function fetchOwnersOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
12
|
+
export declare function fetchOrganizationsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
13
|
+
export declare function createPropertyDefinition(property: GetField): import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").LongTextProperty<false> | import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").DateTimeProperty<false> | null;
|
|
14
|
+
export declare function retrieveObjectCustomProperties(auth: PiecePropValueSchema<typeof pipedriveAuth>, objectType: string): Promise<DynamicPropsValue>;
|
|
15
|
+
export declare const searchFieldProp: (objectType: string) => import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
16
|
+
export declare const searchFieldValueProp: (objectType: string) => import("@activepieces/pieces-framework").DynamicProperties<true>;
|
|
17
|
+
export declare const customFieldsProp: (objectType: string) => import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
18
|
+
export declare const ownerIdProp: (displayName: string, required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
19
|
+
export declare const filterIdProp: (type: string, required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
20
|
+
export declare const organizationIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
21
|
+
export declare const dealPipelineIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
22
|
+
export declare const dealStageIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
23
|
+
export declare const personIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
24
|
+
export declare const labelIdsProp: (objectType: string, labelFieldName: string, required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
25
|
+
export declare const leadlabeIdsProp: (required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
|
|
26
|
+
export declare const dealIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
27
|
+
export declare const productIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
28
|
+
export declare const visibleToProp: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
29
|
+
export declare const leadIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
30
|
+
export declare const activityTypeIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
31
|
+
export declare const dealCommonProps: {
|
|
32
|
+
creationTime: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
33
|
+
status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
34
|
+
stageId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
35
|
+
pipelineId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
36
|
+
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
37
|
+
organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
38
|
+
personId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
39
|
+
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
40
|
+
probability: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
41
|
+
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
42
|
+
dealValue: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
43
|
+
dealValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
44
|
+
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
45
|
+
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
46
|
+
};
|
|
47
|
+
export declare const leadCommonProps: {
|
|
48
|
+
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
49
|
+
organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
50
|
+
personId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
51
|
+
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
|
|
52
|
+
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
53
|
+
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
54
|
+
channel: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false>;
|
|
55
|
+
leadValue: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
56
|
+
leadValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
57
|
+
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
58
|
+
};
|
|
59
|
+
export declare const organizationCommonProps: {
|
|
60
|
+
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
61
|
+
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
62
|
+
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
63
|
+
address: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
64
|
+
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
65
|
+
};
|
|
66
|
+
export declare const personCommonProps: {
|
|
67
|
+
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
68
|
+
organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
69
|
+
email: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
70
|
+
phone: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
71
|
+
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
72
|
+
firstName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
73
|
+
lastName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
74
|
+
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
75
|
+
marketing_status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
76
|
+
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
77
|
+
};
|
|
78
|
+
export declare const activityCommonProps: {
|
|
79
|
+
organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
80
|
+
personId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
81
|
+
dealId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
82
|
+
leadId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
83
|
+
assignTo: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
84
|
+
type: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
85
|
+
dueDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
86
|
+
dueTime: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
87
|
+
duration: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
88
|
+
idDone: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
89
|
+
isBusy: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
90
|
+
note: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
91
|
+
publicDescription: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
92
|
+
};
|