@activepieces/piece-pipedrive 0.3.5 → 0.4.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.
Files changed (66) hide show
  1. package/package.json +8 -6
  2. package/src/index.js +39 -5
  3. package/src/index.js.map +1 -1
  4. package/src/lib/actions/add-label-to-person.d.ts +4 -0
  5. package/src/lib/actions/add-label-to-person.js +46 -0
  6. package/src/lib/actions/add-label-to-person.js.map +1 -0
  7. package/src/lib/actions/add-product-to-deal.d.ts +12 -0
  8. package/src/lib/actions/add-product-to-deal.js +106 -0
  9. package/src/lib/actions/add-product-to-deal.js.map +1 -0
  10. package/src/lib/actions/create-deal.d.ts +17 -0
  11. package/src/lib/actions/create-deal.js +66 -0
  12. package/src/lib/actions/create-deal.js.map +1 -0
  13. package/src/lib/actions/create-lead.d.ts +13 -0
  14. package/src/lib/actions/create-lead.js +72 -0
  15. package/src/lib/actions/create-lead.js.map +1 -0
  16. package/src/lib/actions/create-organization.d.ts +8 -0
  17. package/src/lib/actions/create-organization.js +57 -0
  18. package/src/lib/actions/create-organization.js.map +1 -0
  19. package/src/lib/actions/create-person.d.ts +13 -0
  20. package/src/lib/actions/create-person.js +68 -0
  21. package/src/lib/actions/create-person.js.map +1 -0
  22. package/src/lib/actions/create-product.d.ts +15 -0
  23. package/src/lib/actions/create-product.js +109 -0
  24. package/src/lib/actions/create-product.js.map +1 -0
  25. package/src/lib/actions/update-deal.d.ts +18 -0
  26. package/src/lib/actions/update-deal.js +66 -0
  27. package/src/lib/actions/update-deal.js.map +1 -0
  28. package/src/lib/actions/update-lead.d.ts +14 -0
  29. package/src/lib/actions/update-lead.js +69 -0
  30. package/src/lib/actions/update-lead.js.map +1 -0
  31. package/src/lib/actions/update-organization.d.ts +9 -0
  32. package/src/lib/actions/update-organization.js +58 -0
  33. package/src/lib/actions/update-organization.js.map +1 -0
  34. package/src/lib/actions/update-person.d.ts +14 -0
  35. package/src/lib/actions/update-person.js +68 -0
  36. package/src/lib/actions/update-person.js.map +1 -0
  37. package/src/lib/common/index.d.ts +13 -0
  38. package/src/lib/common/index.js +92 -0
  39. package/src/lib/common/index.js.map +1 -1
  40. package/src/lib/common/props.d.ts +69 -0
  41. package/src/lib/common/props.js +738 -0
  42. package/src/lib/common/props.js.map +1 -0
  43. package/src/lib/common/types.d.ts +44 -3
  44. package/src/lib/trigger/new-deal.js +34 -18
  45. package/src/lib/trigger/new-deal.js.map +1 -1
  46. package/src/lib/trigger/new-lead.d.ts +2 -0
  47. package/src/lib/trigger/new-lead.js +124 -0
  48. package/src/lib/trigger/new-lead.js.map +1 -0
  49. package/src/lib/trigger/new-organization.d.ts +2 -0
  50. package/src/lib/trigger/new-organization.js +160 -0
  51. package/src/lib/trigger/new-organization.js.map +1 -0
  52. package/src/lib/trigger/new-person.js +35 -11
  53. package/src/lib/trigger/new-person.js.map +1 -1
  54. package/src/lib/trigger/updated-deal-stage.d.ts +8 -0
  55. package/src/lib/trigger/updated-deal-stage.js +288 -0
  56. package/src/lib/trigger/updated-deal-stage.js.map +1 -0
  57. package/src/lib/trigger/updated-deal.js +47 -20
  58. package/src/lib/trigger/updated-deal.js.map +1 -1
  59. package/src/lib/trigger/updated-organization.d.ts +2 -0
  60. package/src/lib/trigger/updated-organization.js +160 -0
  61. package/src/lib/trigger/updated-organization.js.map +1 -0
  62. package/src/lib/trigger/updated-person.js +35 -11
  63. package/src/lib/trigger/updated-person.js.map +1 -1
  64. package/src/lib/actions/add-person.action/add-person.action.d.ts +0 -8
  65. package/src/lib/actions/add-person.action/add-person.action.js +0 -179
  66. package/src/lib/actions/add-person.action/add-person.action.js.map +0 -1
@@ -1,6 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.pipedriveCommon = void 0;
4
+ exports.pipedriveApiCall = pipedriveApiCall;
5
+ exports.pipedrivePaginatedApiCall = pipedrivePaginatedApiCall;
6
+ exports.pipedriveTransformCustomFields = pipedriveTransformCustomFields;
4
7
  const tslib_1 = require("tslib");
5
8
  const pieces_common_1 = require("@activepieces/pieces-common");
6
9
  exports.pipedriveCommon = {
@@ -34,4 +37,93 @@ exports.pipedriveCommon = {
34
37
  return yield pieces_common_1.httpClient.sendRequest(request);
35
38
  }),
36
39
  };
40
+ function pipedriveApiCall(_a) {
41
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ accessToken, apiDomain, method, resourceUri, query, body, }) {
42
+ const baseUrl = `${apiDomain}/api/v1`;
43
+ const qs = {};
44
+ if (query) {
45
+ for (const [key, value] of Object.entries(query)) {
46
+ if (value !== null && value !== undefined) {
47
+ qs[key] = String(value);
48
+ }
49
+ }
50
+ }
51
+ const request = {
52
+ method,
53
+ url: baseUrl + resourceUri,
54
+ authentication: {
55
+ type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
56
+ token: accessToken,
57
+ },
58
+ queryParams: qs,
59
+ body,
60
+ };
61
+ try {
62
+ const response = yield pieces_common_1.httpClient.sendRequest(request);
63
+ return response.body;
64
+ }
65
+ catch (error) {
66
+ if (error instanceof pieces_common_1.HttpError) {
67
+ if (error.response.status === 403) {
68
+ throw new Error("Please reconnect your Pipedrive account.");
69
+ }
70
+ }
71
+ throw error;
72
+ }
73
+ });
74
+ }
75
+ function pipedrivePaginatedApiCall(_a) {
76
+ return tslib_1.__awaiter(this, arguments, void 0, function* ({ accessToken, apiDomain, method, resourceUri, query, body, }) {
77
+ const qs = query ? query : {};
78
+ qs.start = 0;
79
+ qs.limit = 100;
80
+ const resultData = [];
81
+ let hasMoreItems = true;
82
+ do {
83
+ const response = yield pipedriveApiCall({
84
+ accessToken,
85
+ apiDomain,
86
+ method,
87
+ resourceUri,
88
+ query: qs,
89
+ body,
90
+ });
91
+ resultData.push(...response.data);
92
+ qs.start = response.additional_data.pagination.next_start;
93
+ hasMoreItems = response.additional_data.pagination.more_items_in_collection;
94
+ } while (hasMoreItems);
95
+ return resultData;
96
+ });
97
+ }
98
+ function pipedriveTransformCustomFields(CustomFields, responseData) {
99
+ var _a, _b;
100
+ const updatedResponseData = Object.assign({}, responseData);
101
+ for (const field of CustomFields) {
102
+ if (!field.edit_flag) {
103
+ continue;
104
+ }
105
+ const oldKey = field.key;
106
+ const newKey = field.name;
107
+ const fieldType = field.field_type;
108
+ if (oldKey in responseData) {
109
+ if (responseData[oldKey] === null || responseData[oldKey] === undefined) {
110
+ updatedResponseData[newKey] = null;
111
+ }
112
+ else if (fieldType === 'enum') {
113
+ updatedResponseData[newKey] =
114
+ ((_b = (_a = field.options) === null || _a === void 0 ? void 0 : _a.find((option) => option.id.toString() === responseData[oldKey])) === null || _b === void 0 ? void 0 : _b.label) ||
115
+ null;
116
+ }
117
+ else if (fieldType === 'set') {
118
+ const values = responseData[oldKey].split(',');
119
+ updatedResponseData[newKey] = values.map((item) => { var _a, _b; return ((_b = (_a = field.options) === null || _a === void 0 ? void 0 : _a.find((option) => option.id.toString() === item)) === null || _b === void 0 ? void 0 : _b.label) || null; });
120
+ }
121
+ else {
122
+ updatedResponseData[newKey] = responseData[oldKey];
123
+ }
124
+ delete updatedResponseData[oldKey];
125
+ }
126
+ }
127
+ return updatedResponseData;
128
+ }
37
129
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/common/index.ts"],"names":[],"mappings":";;;;AAAA,+DAKqC;AAExB,QAAA,eAAe,GAAG;IAC7B,gBAAgB,EAAE,CAChB,MAAc,EACd,MAAc,EACd,UAAkB,EAClB,SAAiB,EACjB,WAAmB,EACnB,EAAE;QACF,MAAM,OAAO,GAAgB;YAC3B,MAAM,EAAE,0BAAU,CAAC,IAAI;YACvB,GAAG,EAAE,GAAG,SAAS,kBAAkB;YACnC,IAAI,EAAE;gBACJ,YAAY,EAAE,MAAM;gBACpB,YAAY,EAAE,MAAM;gBACpB,gBAAgB,EAAE,UAAU;aAC7B;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,WAAW;aACnB;YACD,WAAW,EAAE,EAAE;SAChB,CAAC;QAEF,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,MAAM,0BAAU,CAAC,WAAW,CAEnD,OAAO,CAAC,CAAC;QACZ,OAAO,OAAO,CAAC;IACjB,CAAC,CAAA;IACD,kBAAkB,EAAE,CAClB,SAAiB,EACjB,SAAiB,EACjB,WAAmB,EACnB,EAAE;QACF,MAAM,OAAO,GAAgB;YAC3B,MAAM,EAAE,0BAAU,CAAC,MAAM;YACzB,GAAG,EAAE,GAAG,SAAS,oBAAoB,SAAS,EAAE;YAChD,cAAc,EAAE;gBACd,IAAI,EAAE,kCAAkB,CAAC,YAAY;gBACrC,KAAK,EAAE,WAAW;aACnB;SACF,CAAC;QACF,OAAO,MAAM,0BAAU,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC,CAAA;CACF,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/common/index.ts"],"names":[],"mappings":";;;AA6DA,4CA+CC;AAED,8DA+BC;AAED,wEAiCC;;AAhLD,+DAQqC;AAGxB,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,EA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,CAAC;gBACP,mBAAmB,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,CAAC;YACpD,CAAC;YACD,OAAO,mBAAmB,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;IACF,CAAC;IACD,OAAO,mBAAmB,CAAC;AAC5B,CAAC"}
@@ -0,0 +1,69 @@
1
+ import { pipedriveAuth } from '../../index';
2
+ import { DropdownOption, DynamicPropsValue, PiecePropValueSchema } from '@activepieces/pieces-framework';
3
+ export declare function fetchProductsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
4
+ export declare function fetchDealsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
5
+ export declare function fetchLeadsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
6
+ export declare function fetchPipelinesOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
7
+ export declare function fetchPersonsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
8
+ export declare function fetchOwnersOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
9
+ export declare function fetchOrganizationsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
10
+ export declare function retriveObjectCustomProperties(auth: PiecePropValueSchema<typeof pipedriveAuth>, objectType: string): Promise<DynamicPropsValue>;
11
+ export declare const customFieldsProp: (objectType: string) => import("@activepieces/pieces-framework").DynamicProperties<false>;
12
+ export declare const ownerIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
13
+ export declare const organizationIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
14
+ export declare const dealPipelineIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
15
+ export declare const dealStageIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
16
+ export declare const personIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
17
+ export declare const labelIdsProp: (objectType: string, labelFieldName: string, required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
18
+ export declare const leadLableIdsProp: (required?: boolean) => import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
19
+ export declare const dealIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
20
+ export declare const productIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
21
+ export declare const visibleToProp: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
22
+ export declare const leadIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
23
+ export declare const dealCommonProps: {
24
+ creationTime: import("@activepieces/pieces-framework").DateTimeProperty<false>;
25
+ status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
26
+ stageId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
27
+ pipelineId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
28
+ ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
29
+ organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
30
+ personId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
31
+ labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
32
+ probability: import("@activepieces/pieces-framework").NumberProperty<false>;
33
+ expectedCloseDate: import("@activepieces/pieces-framework").ShortTextProperty<false>;
34
+ dealValue: import("@activepieces/pieces-framework").NumberProperty<false>;
35
+ dealValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
36
+ visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
37
+ customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
38
+ };
39
+ export declare const leadCommonProps: {
40
+ ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
41
+ organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
42
+ personId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
43
+ labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
44
+ expectedCloseDate: import("@activepieces/pieces-framework").ShortTextProperty<false>;
45
+ visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
46
+ channel: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false>;
47
+ leadValue: import("@activepieces/pieces-framework").NumberProperty<false>;
48
+ leadValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
49
+ customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
50
+ };
51
+ export declare const organizationCommonProps: {
52
+ ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
53
+ visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
54
+ labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
55
+ address: import("@activepieces/pieces-framework").LongTextProperty<false>;
56
+ customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
57
+ };
58
+ export declare const personCommonProps: {
59
+ ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
60
+ organizationId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
61
+ email: import("@activepieces/pieces-framework").ArrayProperty<false>;
62
+ phone: import("@activepieces/pieces-framework").ArrayProperty<false>;
63
+ labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
64
+ firstName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
65
+ lastName: import("@activepieces/pieces-framework").ShortTextProperty<false>;
66
+ visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
67
+ marketing_status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
68
+ customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
69
+ };