@activepieces/piece-pipedrive 0.8.7 → 0.8.8

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 (197) hide show
  1. package/package.json +8 -14
  2. package/src/index.js +13 -117
  3. package/src/index.d.ts +0 -2
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/add-follower.d.ts +0 -6
  7. package/src/lib/actions/add-follower.d.ts.map +0 -1
  8. package/src/lib/actions/add-follower.js +0 -88
  9. package/src/lib/actions/add-follower.js.map +0 -1
  10. package/src/lib/actions/add-label-to-person.d.ts +0 -5
  11. package/src/lib/actions/add-label-to-person.d.ts.map +0 -1
  12. package/src/lib/actions/add-label-to-person.js +0 -48
  13. package/src/lib/actions/add-label-to-person.js.map +0 -1
  14. package/src/lib/actions/add-product-to-deal.d.ts +0 -13
  15. package/src/lib/actions/add-product-to-deal.d.ts.map +0 -1
  16. package/src/lib/actions/add-product-to-deal.js +0 -111
  17. package/src/lib/actions/add-product-to-deal.js.map +0 -1
  18. package/src/lib/actions/attach-file.d.ts +0 -10
  19. package/src/lib/actions/attach-file.d.ts.map +0 -1
  20. package/src/lib/actions/attach-file.js +0 -67
  21. package/src/lib/actions/attach-file.js.map +0 -1
  22. package/src/lib/actions/create-activity.d.ts +0 -17
  23. package/src/lib/actions/create-activity.d.ts.map +0 -1
  24. package/src/lib/actions/create-activity.js +0 -61
  25. package/src/lib/actions/create-activity.js.map +0 -1
  26. package/src/lib/actions/create-deal.d.ts +0 -18
  27. package/src/lib/actions/create-deal.d.ts.map +0 -1
  28. package/src/lib/actions/create-deal.js +0 -74
  29. package/src/lib/actions/create-deal.js.map +0 -1
  30. package/src/lib/actions/create-lead.d.ts +0 -14
  31. package/src/lib/actions/create-lead.d.ts.map +0 -1
  32. package/src/lib/actions/create-lead.js +0 -80
  33. package/src/lib/actions/create-lead.js.map +0 -1
  34. package/src/lib/actions/create-note.d.ts +0 -12
  35. package/src/lib/actions/create-note.d.ts.map +0 -1
  36. package/src/lib/actions/create-note.js +0 -75
  37. package/src/lib/actions/create-note.js.map +0 -1
  38. package/src/lib/actions/create-organization.d.ts +0 -9
  39. package/src/lib/actions/create-organization.d.ts.map +0 -1
  40. package/src/lib/actions/create-organization.js +0 -66
  41. package/src/lib/actions/create-organization.js.map +0 -1
  42. package/src/lib/actions/create-person.d.ts +0 -14
  43. package/src/lib/actions/create-person.d.ts.map +0 -1
  44. package/src/lib/actions/create-person.js +0 -91
  45. package/src/lib/actions/create-person.js.map +0 -1
  46. package/src/lib/actions/create-product.d.ts +0 -16
  47. package/src/lib/actions/create-product.d.ts.map +0 -1
  48. package/src/lib/actions/create-product.js +0 -112
  49. package/src/lib/actions/create-product.js.map +0 -1
  50. package/src/lib/actions/find-activity.d.ts +0 -9
  51. package/src/lib/actions/find-activity.d.ts.map +0 -1
  52. package/src/lib/actions/find-activity.js +0 -101
  53. package/src/lib/actions/find-activity.js.map +0 -1
  54. package/src/lib/actions/find-deal.d.ts +0 -5
  55. package/src/lib/actions/find-deal.d.ts.map +0 -1
  56. package/src/lib/actions/find-deal.js +0 -111
  57. package/src/lib/actions/find-deal.js.map +0 -1
  58. package/src/lib/actions/find-deals-associated-with-person.d.ts +0 -4
  59. package/src/lib/actions/find-deals-associated-with-person.d.ts.map +0 -1
  60. package/src/lib/actions/find-deals-associated-with-person.js +0 -64
  61. package/src/lib/actions/find-deals-associated-with-person.js.map +0 -1
  62. package/src/lib/actions/find-leads.d.ts +0 -5
  63. package/src/lib/actions/find-leads.d.ts.map +0 -1
  64. package/src/lib/actions/find-leads.js +0 -73
  65. package/src/lib/actions/find-leads.js.map +0 -1
  66. package/src/lib/actions/find-notes.d.ts +0 -5
  67. package/src/lib/actions/find-notes.d.ts.map +0 -1
  68. package/src/lib/actions/find-notes.js +0 -76
  69. package/src/lib/actions/find-notes.js.map +0 -1
  70. package/src/lib/actions/find-organization.d.ts +0 -5
  71. package/src/lib/actions/find-organization.d.ts.map +0 -1
  72. package/src/lib/actions/find-organization.js +0 -111
  73. package/src/lib/actions/find-organization.js.map +0 -1
  74. package/src/lib/actions/find-person.d.ts +0 -5
  75. package/src/lib/actions/find-person.d.ts.map +0 -1
  76. package/src/lib/actions/find-person.js +0 -109
  77. package/src/lib/actions/find-person.js.map +0 -1
  78. package/src/lib/actions/find-product.d.ts +0 -4
  79. package/src/lib/actions/find-product.d.ts.map +0 -1
  80. package/src/lib/actions/find-product.js +0 -65
  81. package/src/lib/actions/find-product.js.map +0 -1
  82. package/src/lib/actions/find-products.d.ts +0 -5
  83. package/src/lib/actions/find-products.d.ts.map +0 -1
  84. package/src/lib/actions/find-products.js +0 -86
  85. package/src/lib/actions/find-products.js.map +0 -1
  86. package/src/lib/actions/find-user.d.ts +0 -5
  87. package/src/lib/actions/find-user.d.ts.map +0 -1
  88. package/src/lib/actions/find-user.js +0 -59
  89. package/src/lib/actions/find-user.js.map +0 -1
  90. package/src/lib/actions/get-note.d.ts +0 -4
  91. package/src/lib/actions/get-note.d.ts.map +0 -1
  92. package/src/lib/actions/get-note.js +0 -45
  93. package/src/lib/actions/get-note.js.map +0 -1
  94. package/src/lib/actions/get-product.d.ts +0 -4
  95. package/src/lib/actions/get-product.d.ts.map +0 -1
  96. package/src/lib/actions/get-product.js +0 -52
  97. package/src/lib/actions/get-product.js.map +0 -1
  98. package/src/lib/actions/update-activity.d.ts +0 -18
  99. package/src/lib/actions/update-activity.d.ts.map +0 -1
  100. package/src/lib/actions/update-activity.js +0 -65
  101. package/src/lib/actions/update-activity.js.map +0 -1
  102. package/src/lib/actions/update-deal.d.ts +0 -19
  103. package/src/lib/actions/update-deal.d.ts.map +0 -1
  104. package/src/lib/actions/update-deal.js +0 -73
  105. package/src/lib/actions/update-deal.js.map +0 -1
  106. package/src/lib/actions/update-lead.d.ts +0 -15
  107. package/src/lib/actions/update-lead.d.ts.map +0 -1
  108. package/src/lib/actions/update-lead.js +0 -77
  109. package/src/lib/actions/update-lead.js.map +0 -1
  110. package/src/lib/actions/update-organization.d.ts +0 -10
  111. package/src/lib/actions/update-organization.d.ts.map +0 -1
  112. package/src/lib/actions/update-organization.js +0 -63
  113. package/src/lib/actions/update-organization.js.map +0 -1
  114. package/src/lib/actions/update-person.d.ts +0 -15
  115. package/src/lib/actions/update-person.d.ts.map +0 -1
  116. package/src/lib/actions/update-person.js +0 -84
  117. package/src/lib/actions/update-person.js.map +0 -1
  118. package/src/lib/actions/update-product.d.ts +0 -17
  119. package/src/lib/actions/update-product.d.ts.map +0 -1
  120. package/src/lib/actions/update-product.js +0 -119
  121. package/src/lib/actions/update-product.js.map +0 -1
  122. package/src/lib/auth.d.ts +0 -2
  123. package/src/lib/auth.d.ts.map +0 -1
  124. package/src/lib/auth.js +0 -22
  125. package/src/lib/auth.js.map +0 -1
  126. package/src/lib/common/constants.d.ts +0 -4
  127. package/src/lib/common/constants.d.ts.map +0 -1
  128. package/src/lib/common/constants.js +0 -64
  129. package/src/lib/common/constants.js.map +0 -1
  130. package/src/lib/common/index.d.ts +0 -25
  131. package/src/lib/common/index.d.ts.map +0 -1
  132. package/src/lib/common/index.js +0 -260
  133. package/src/lib/common/index.js.map +0 -1
  134. package/src/lib/common/props.d.ts +0 -144
  135. package/src/lib/common/props.d.ts.map +0 -1
  136. package/src/lib/common/props.js +0 -893
  137. package/src/lib/common/props.js.map +0 -1
  138. package/src/lib/common/types.d.ts +0 -370
  139. package/src/lib/common/types.d.ts.map +0 -1
  140. package/src/lib/common/types.js +0 -3
  141. package/src/lib/common/types.js.map +0 -1
  142. package/src/lib/trigger/activity-matching-filter.d.ts +0 -11
  143. package/src/lib/trigger/activity-matching-filter.d.ts.map +0 -1
  144. package/src/lib/trigger/activity-matching-filter.js +0 -182
  145. package/src/lib/trigger/activity-matching-filter.js.map +0 -1
  146. package/src/lib/trigger/deal-matching-filter.d.ts +0 -15
  147. package/src/lib/trigger/deal-matching-filter.d.ts.map +0 -1
  148. package/src/lib/trigger/deal-matching-filter.js +0 -247
  149. package/src/lib/trigger/deal-matching-filter.js.map +0 -1
  150. package/src/lib/trigger/new-activity.d.ts +0 -3
  151. package/src/lib/trigger/new-activity.d.ts.map +0 -1
  152. package/src/lib/trigger/new-activity.js +0 -134
  153. package/src/lib/trigger/new-activity.js.map +0 -1
  154. package/src/lib/trigger/new-deal.d.ts +0 -3
  155. package/src/lib/trigger/new-deal.d.ts.map +0 -1
  156. package/src/lib/trigger/new-deal.js +0 -141
  157. package/src/lib/trigger/new-deal.js.map +0 -1
  158. package/src/lib/trigger/new-lead.d.ts +0 -3
  159. package/src/lib/trigger/new-lead.d.ts.map +0 -1
  160. package/src/lib/trigger/new-lead.js +0 -129
  161. package/src/lib/trigger/new-lead.js.map +0 -1
  162. package/src/lib/trigger/new-note.d.ts +0 -3
  163. package/src/lib/trigger/new-note.d.ts.map +0 -1
  164. package/src/lib/trigger/new-note.js +0 -81
  165. package/src/lib/trigger/new-note.js.map +0 -1
  166. package/src/lib/trigger/new-organization.d.ts +0 -3
  167. package/src/lib/trigger/new-organization.d.ts.map +0 -1
  168. package/src/lib/trigger/new-organization.js +0 -116
  169. package/src/lib/trigger/new-organization.js.map +0 -1
  170. package/src/lib/trigger/new-person.d.ts +0 -3
  171. package/src/lib/trigger/new-person.d.ts.map +0 -1
  172. package/src/lib/trigger/new-person.js +0 -126
  173. package/src/lib/trigger/new-person.js.map +0 -1
  174. package/src/lib/trigger/organization-matching-filter.d.ts +0 -11
  175. package/src/lib/trigger/organization-matching-filter.d.ts.map +0 -1
  176. package/src/lib/trigger/organization-matching-filter.js +0 -154
  177. package/src/lib/trigger/organization-matching-filter.js.map +0 -1
  178. package/src/lib/trigger/person-matching-filter.d.ts +0 -11
  179. package/src/lib/trigger/person-matching-filter.d.ts.map +0 -1
  180. package/src/lib/trigger/person-matching-filter.js +0 -161
  181. package/src/lib/trigger/person-matching-filter.js.map +0 -1
  182. package/src/lib/trigger/updated-deal-stage.d.ts +0 -11
  183. package/src/lib/trigger/updated-deal-stage.d.ts.map +0 -1
  184. package/src/lib/trigger/updated-deal-stage.js +0 -226
  185. package/src/lib/trigger/updated-deal-stage.js.map +0 -1
  186. package/src/lib/trigger/updated-deal.d.ts +0 -19
  187. package/src/lib/trigger/updated-deal.d.ts.map +0 -1
  188. package/src/lib/trigger/updated-deal.js +0 -325
  189. package/src/lib/trigger/updated-deal.js.map +0 -1
  190. package/src/lib/trigger/updated-organization.d.ts +0 -3
  191. package/src/lib/trigger/updated-organization.d.ts.map +0 -1
  192. package/src/lib/trigger/updated-organization.js +0 -113
  193. package/src/lib/trigger/updated-organization.js.map +0 -1
  194. package/src/lib/trigger/updated-person.d.ts +0 -3
  195. package/src/lib/trigger/updated-person.d.ts.map +0 -1
  196. package/src/lib/trigger/updated-person.js +0 -123
  197. package/src/lib/trigger/updated-person.js.map +0 -1
@@ -1,73 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateDealAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
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
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
11
- const shared_1 = require("@activepieces/shared");
12
- exports.updateDealAction = (0, pieces_framework_1.createAction)({
13
- auth: auth_1.pipedriveAuth,
14
- name: 'update-deal',
15
- displayName: 'Update Deal',
16
- description: 'Updates an existing deal.',
17
- audience: 'both',
18
- aiMetadata: {
19
- description: 'Updates fields on an existing deal identified by its deal ID, such as title, value, stage, status, owner, or linked person/organization; only supplied fields are changed. Use to modify a deal you already know the ID of (use Create Deal to add a new one, or Find Deal to locate one first). Idempotent: repeating the same update converges to the same deal state.',
20
- idempotent: true,
21
- },
22
- props: Object.assign({ dealId: (0, props_1.dealIdProp)(true), title: pieces_framework_1.Property.ShortText({
23
- displayName: 'Title',
24
- required: false,
25
- }) }, props_1.dealCommonProps),
26
- run(context) {
27
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
28
- var _a, _b;
29
- const { dealId, title, dealValue, dealValueCurrency, expectedCloseDate, visibleTo, probability, stageId, status, pipelineId, ownerId, organizationId, personId, } = context.propsValue;
30
- const labelIds = (_a = context.propsValue.labelIds) !== null && _a !== void 0 ? _a : [];
31
- const customFields = (_b = context.propsValue.customfields) !== null && _b !== void 0 ? _b : {};
32
- const dealPayload = {
33
- title,
34
- pipeline_id: pipelineId,
35
- stage_id: stageId,
36
- status,
37
- probability,
38
- visible_to: visibleTo,
39
- owner_id: ownerId,
40
- org_id: organizationId,
41
- person_id: personId,
42
- value: dealValue,
43
- currency: dealValueCurrency,
44
- };
45
- if (labelIds.length > 0) {
46
- dealPayload.label_ids = labelIds;
47
- }
48
- if (expectedCloseDate) {
49
- dealPayload.expected_close_date = (0, dayjs_1.default)(expectedCloseDate).format('YYYY-MM-DD');
50
- }
51
- const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
52
- accessToken: context.auth.access_token,
53
- apiDomain: context.auth.data['api_domain'],
54
- method: pieces_common_1.HttpMethod.GET,
55
- resourceUri: '/v1/dealFields',
56
- });
57
- const personCustomFields = (0, common_1.pipedriveParseCustomFields)(customFieldsResponse, customFields);
58
- if (!(0, shared_1.isEmpty)(personCustomFields)) {
59
- dealPayload.custom_fields = personCustomFields;
60
- }
61
- const updatedDealResponse = yield (0, common_1.pipedriveApiCall)({
62
- accessToken: context.auth.access_token,
63
- apiDomain: context.auth.data['api_domain'],
64
- method: pieces_common_1.HttpMethod.PATCH,
65
- resourceUri: `/v2/deals/${dealId}`,
66
- body: dealPayload,
67
- });
68
- const transformedDealProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedDealResponse.data);
69
- return Object.assign(Object.assign({}, updatedDealResponse), { data: transformedDealProperties });
70
- });
71
- },
72
- });
73
- //# sourceMappingURL=update-deal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-deal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 +0,0 @@
1
- export declare const updateLeadAction: 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").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
4
- personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
5
- labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
7
- visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
8
- channel: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
9
- leadValue: import("@activepieces/pieces-framework").NumberProperty<false>;
10
- leadValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
- customfields: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
12
- leadId: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
13
- title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
- }>;
15
- //# sourceMappingURL=update-lead.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-lead.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-lead.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;EAkG3B,CAAC"}
@@ -1,77 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateLeadAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
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
- const dayjs_1 = tslib_1.__importDefault(require("dayjs"));
11
- exports.updateLeadAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.pipedriveAuth,
13
- name: 'update-lead',
14
- displayName: 'Update Lead',
15
- description: 'Updates an existing lead.',
16
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Updates fields on an existing lead identified by its lead ID, such as title, owner, value, channel, or linked person/organization; only supplied fields change. Use to modify a lead you have the ID for (use Create Lead to add one, or Find Lead to locate it). Idempotent: repeating the same update converges to the same lead state.',
19
- idempotent: true,
20
- },
21
- props: Object.assign({ leadId: (0, props_1.leadIdProp)(true), title: pieces_framework_1.Property.ShortText({
22
- displayName: 'Title',
23
- required: false,
24
- }) }, props_1.leadCommonProps),
25
- run(context) {
26
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- var _a, _b;
28
- const { title, ownerId, leadId, channel, organizationId, personId, expectedCloseDate, visibleTo, leadValue, leadValueCurrency, } = context.propsValue;
29
- const labelIds = (_a = context.propsValue.labelIds) !== null && _a !== void 0 ? _a : [];
30
- const customFields = (_b = context.propsValue.customfields) !== null && _b !== void 0 ? _b : {};
31
- const leadDefaultFields = {
32
- title,
33
- owner_id: ownerId,
34
- organization_id: organizationId,
35
- person_id: personId,
36
- channel: channel,
37
- visible_to: visibleTo,
38
- };
39
- if (labelIds.length > 0) {
40
- leadDefaultFields.label_ids = labelIds;
41
- }
42
- if (expectedCloseDate) {
43
- leadDefaultFields.expected_close_date = (0, dayjs_1.default)(expectedCloseDate).format('YYYY-MM-DD');
44
- }
45
- if (leadValue) {
46
- if (!leadValueCurrency) {
47
- throw new Error('lead Value Currency is required when lead Value is provided');
48
- }
49
- leadDefaultFields.value = {
50
- amount: leadValue,
51
- currency: leadValueCurrency,
52
- };
53
- }
54
- const leadCustomFields = {};
55
- Object.entries(customFields).forEach(([key, value]) => {
56
- // Format values if they are arrays
57
- leadCustomFields[key] = Array.isArray(value) && value.length > 0 ? value.join(',') : value;
58
- });
59
- const updatedLeadResponse = yield (0, common_1.pipedriveApiCall)({
60
- accessToken: context.auth.access_token,
61
- apiDomain: context.auth.data['api_domain'],
62
- method: pieces_common_1.HttpMethod.PATCH,
63
- resourceUri: `/v1/leads/${leadId}`,
64
- body: Object.assign(Object.assign({}, leadDefaultFields), leadCustomFields),
65
- });
66
- const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
67
- accessToken: context.auth.access_token,
68
- apiDomain: context.auth.data['api_domain'],
69
- method: pieces_common_1.HttpMethod.GET,
70
- resourceUri: '/v1/dealFields',
71
- });
72
- const transformedLeadProperties = (0, common_1.pipedriveTransformV1CustomFields)(customFieldsResponse, updatedLeadResponse.data);
73
- return Object.assign(Object.assign({}, updatedLeadResponse), { data: transformedLeadProperties });
74
- });
75
- },
76
- });
77
- //# sourceMappingURL=update-lead.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-lead.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-lead.ts"],"names":[],"mappings":";;;;AAAA,kCAAwC;AACxC,qEAAwE;AACxE,2CAA8D;AAC9D,sCAImB;AACnB,+DAAyD;AAEzD,0DAA0B;AAEb,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,aAAa;IACnB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,2BAA2B;IACxC,QAAQ,EAAE,MAAM;IAChB,UA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ationAction: 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").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
4
- labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
5
- address: import("@activepieces/pieces-framework").LongTextProperty<false>;
6
- customfields: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
7
- organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
8
- name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
9
- }>;
10
- //# sourceMappingURL=update-organization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-organization.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-organization.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,wBAAwB;;;;;;;;EAoEnC,CAAC"}
@@ -1,63 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateOrganizationAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
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
- const shared_1 = require("@activepieces/shared");
11
- exports.updateOrganizationAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.pipedriveAuth,
13
- name: 'update-organization',
14
- displayName: 'Update Organization',
15
- description: 'Updates an existing organization.',
16
- audience: 'both',
17
- aiMetadata: { description: 'Update fields on an existing organization identified by ID (name, owner, address, visibility, labels, and custom fields). Pick this to modify a known organization; only supplied fields are changed. Re-running with the same inputs yields the same final state.', idempotent: true },
18
- props: Object.assign({ organizationId: (0, props_1.organizationIdProp)(true), name: pieces_framework_1.Property.ShortText({
19
- displayName: 'Name',
20
- required: false,
21
- }) }, props_1.organizationCommonProps),
22
- run(context) {
23
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
24
- var _a, _b;
25
- const { name, ownerId, address, visibleTo, organizationId } = context.propsValue;
26
- const labelIds = (_a = context.propsValue.labelIds) !== null && _a !== void 0 ? _a : [];
27
- const customFields = (_b = context.propsValue.customfields) !== null && _b !== void 0 ? _b : {};
28
- const organizationPayload = {
29
- name: name,
30
- owner_id: ownerId,
31
- visible_to: visibleTo,
32
- };
33
- if (address) {
34
- if (typeof address === 'string') {
35
- organizationPayload.address = { value: address };
36
- }
37
- }
38
- if (labelIds.length > 0) {
39
- organizationPayload.label_ids = labelIds;
40
- }
41
- const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
42
- accessToken: context.auth.access_token,
43
- apiDomain: context.auth.data['api_domain'],
44
- method: pieces_common_1.HttpMethod.GET,
45
- resourceUri: '/v1/organizationFields',
46
- });
47
- const orgCustomFields = (0, common_1.pipedriveParseCustomFields)(customFieldsResponse, customFields);
48
- if (!(0, shared_1.isEmpty)(orgCustomFields)) {
49
- organizationPayload.custom_fields = orgCustomFields;
50
- }
51
- const updatedOrganizationResponse = yield (0, common_1.pipedriveApiCall)({
52
- accessToken: context.auth.access_token,
53
- apiDomain: context.auth.data['api_domain'],
54
- method: pieces_common_1.HttpMethod.PATCH,
55
- resourceUri: `/v2/organizations/${organizationId}`,
56
- body: organizationPayload,
57
- });
58
- const transformedOrganizationProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedOrganizationResponse.data);
59
- return Object.assign(Object.assign({}, updatedOrganizationResponse), { data: transformedOrganizationProperties });
60
- });
61
- },
62
- });
63
- //# sourceMappingURL=update-organization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-organization.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-organization.ts"],"names":[],"mappings":";;;;AAAA,kCAAwC;AACxC,qEAAwE;AACxE,2CAA8E;AAC9E,sCAKmB;AAEnB,+DAAyD;AACzD,iDAA+C;AAElC,QAAA,wBAAwB,GAAG,IAAA,+BAAY,EAAC;IACpD,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,mCAAmC;IAChD,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE,EAAE,WAAW,EAAE,oQAAoQ,EAAE,UAAU,EAAE,IAAI,EAAE;IACnT,KAAK,kBACJ,cAAc,EAAE,IAAA,0BAAkB,EAAC,IAAI,CAAC,EACxC,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACxB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SACf,CAAC,IACC,+BAAuB,CAC1B;IACK,GAAG,CAAC,OAAO;;;YAChB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAEjF,MAAM,QAAQ,GAAG,MAAC,OAAO,CAAC,UAAU,CAAC,QAAqB,mCAAI,EAAE,CAAC;YACjE,MAAM,YAAY,GAAG,MAAA,OAAO,CAAC,UAAU,CAAC,YAAY,mCAAI,EAAE,CAAC;YAE3D,MAAM,mBAAmB,GAAwB;gBAChD,IAAI,EAAE,IAAI;gBACV,QAAQ,EAAE,OAAO;gBACjB,UAAU,EAAE,SAAS;aACrB,CAAC;YAEF,IAAI,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are 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").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
3
- organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<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").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
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, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
12
- personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
13
- name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
14
- }>;
15
- //# sourceMappingURL=update-person.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-person.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-person.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;EAoG7B,CAAC"}
@@ -1,84 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updatePersonAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
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
- const shared_1 = require("@activepieces/shared");
11
- exports.updatePersonAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.pipedriveAuth,
13
- name: 'update-person',
14
- displayName: 'Update Person',
15
- description: 'Updates an existing person.',
16
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Updates fields on an existing person identified by their person ID, such as name, emails, phones, owner, organization, and custom fields; only supplied fields change. Use to edit a contact you have the ID for (use Create Person to add one, or Find Person to locate it). Idempotent: repeating the same update converges to the same person state.',
19
- idempotent: true,
20
- },
21
- props: Object.assign({ personId: (0, props_1.personIdProp)(true), name: pieces_framework_1.Property.ShortText({
22
- displayName: 'Name',
23
- required: false,
24
- }) }, props_1.personCommonProps),
25
- run(context) {
26
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
27
- var _a, _b, _c, _d;
28
- const { name, ownerId, personId, organizationId, marketing_status, visibleTo, firstName, lastName, } = context.propsValue;
29
- const rawPhones = (_a = context.propsValue.phone) !== null && _a !== void 0 ? _a : [];
30
- const rawEmails = (_b = context.propsValue.email) !== null && _b !== void 0 ? _b : [];
31
- const labelIds = (_c = context.propsValue.labelIds) !== null && _c !== void 0 ? _c : [];
32
- const customFields = (_d = context.propsValue.customfields) !== null && _d !== void 0 ? _d : {};
33
- if ((firstName && !lastName) || (!firstName && lastName)) {
34
- throw new Error('If First Name is provided, Last Name must be provided as well.');
35
- }
36
- const phones = rawPhones.map((value, index) => ({
37
- value,
38
- label: 'work',
39
- primary: index === 0,
40
- }));
41
- const emails = rawEmails.map((value, index) => ({
42
- value,
43
- label: 'work',
44
- primary: index === 0,
45
- }));
46
- const personPayload = {
47
- name: name,
48
- owner_id: ownerId,
49
- org_id: organizationId,
50
- marketing_status: marketing_status,
51
- visible_to: visibleTo,
52
- first_name: firstName,
53
- last_name: lastName,
54
- };
55
- // Phones and emails
56
- if (phones.length)
57
- personPayload.phones = phones;
58
- if (emails.length)
59
- personPayload.emails = emails;
60
- if (labelIds.length)
61
- personPayload.label_ids = labelIds;
62
- const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
63
- accessToken: context.auth.access_token,
64
- apiDomain: context.auth.data['api_domain'],
65
- method: pieces_common_1.HttpMethod.GET,
66
- resourceUri: '/v1/personFields',
67
- });
68
- const personCustomFields = (0, common_1.pipedriveParseCustomFields)(customFieldsResponse, customFields);
69
- if (!(0, shared_1.isEmpty)(personCustomFields)) {
70
- personPayload.custom_fields = personCustomFields;
71
- }
72
- const updatedPersonResponse = yield (0, common_1.pipedriveApiCall)({
73
- accessToken: context.auth.access_token,
74
- apiDomain: context.auth.data['api_domain'],
75
- method: pieces_common_1.HttpMethod.PATCH,
76
- resourceUri: `/v2/persons/${personId}`,
77
- body: personPayload,
78
- });
79
- const transformedPersonProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedPersonResponse.data);
80
- return Object.assign(Object.assign({}, updatedPersonResponse), { data: transformedPersonProperties });
81
- });
82
- },
83
- });
84
- //# sourceMappingURL=update-person.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-person.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-person.ts"],"names":[],"mappings":";;;;AAAA,kCAAwC;AACxC,qEAAwE;AACxE,2CAAoF;AACpF,sCAKmB;AAEnB,+DAAyD;AACzD,iDAA+C;AAElC,QAAA,kBAAkB,GAAG,IAAA,+BAAY,EAAC;IAC9C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,6BAA6B;IAC1C,QAAQ,EAAE,MA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eAAe,QAAQ,EAAE;gBACtC,IAAI,EAAE,aAAa;aACnB,CAAC,CAAC;YAEH,MAAM,2BAA2B,GAAG,IAAA,uCAA8B,EACjE,oBAAoB,EACpB,qBAAqB,CAAC,IAAI,CAC1B,CAAC;YAEF,uCACI,qBAAqB,KACxB,IAAI,EAAE,2BAA2B,IAChC;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
@@ -1,17 +0,0 @@
1
- export declare const updateProductAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
2
- id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
3
- name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
4
- code: import("@activepieces/pieces-framework").ShortTextProperty<false>;
5
- description: import("@activepieces/pieces-framework").LongTextProperty<false>;
6
- unit: import("@activepieces/pieces-framework").ShortTextProperty<false>;
7
- tax: import("@activepieces/pieces-framework").NumberProperty<false>;
8
- isActive: import("@activepieces/pieces-framework").CheckboxProperty<false>;
9
- ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>> | import("@activepieces/pieces-framework").DropdownProperty<number, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- currency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
11
- price: import("@activepieces/pieces-framework").NumberProperty<false>;
12
- cost: import("@activepieces/pieces-framework").NumberProperty<false>;
13
- overheadCost: import("@activepieces/pieces-framework").NumberProperty<false>;
14
- visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
15
- customfields: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
16
- }>;
17
- //# sourceMappingURL=update-product.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-product.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/update-product.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAsI9B,CAAC"}
@@ -1,119 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateProductAction = void 0;
4
- const tslib_1 = require("tslib");
5
- const auth_1 = require("../auth");
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
- const shared_1 = require("@activepieces/shared");
11
- exports.updateProductAction = (0, pieces_framework_1.createAction)({
12
- auth: auth_1.pipedriveAuth,
13
- name: 'update-product',
14
- displayName: 'Update Product',
15
- description: 'Updates an existing product.',
16
- audience: 'both',
17
- aiMetadata: {
18
- description: 'Updates fields on an existing product identified by its product ID, such as name, code, pricing, tax, owner, active state, and custom fields; only supplied fields change. Use to edit a product you have the ID for (use Find Products to locate it first). Idempotent: repeating the same update converges to the same product state.',
19
- idempotent: true,
20
- },
21
- props: {
22
- id: pieces_framework_1.Property.ShortText({
23
- displayName: 'Product ID',
24
- required: true,
25
- }),
26
- name: pieces_framework_1.Property.ShortText({
27
- displayName: 'Name',
28
- required: false,
29
- }),
30
- code: pieces_framework_1.Property.ShortText({
31
- displayName: 'Code',
32
- required: false,
33
- }),
34
- description: pieces_framework_1.Property.LongText({
35
- displayName: 'Description',
36
- required: false,
37
- }),
38
- unit: pieces_framework_1.Property.ShortText({
39
- displayName: 'Unit',
40
- required: false,
41
- }),
42
- tax: pieces_framework_1.Property.Number({
43
- displayName: 'Tax percentage',
44
- required: false,
45
- }),
46
- isActive: pieces_framework_1.Property.Checkbox({
47
- displayName: 'Is Active ?',
48
- required: false,
49
- defaultValue: true,
50
- }),
51
- ownerId: (0, props_1.ownerIdProp)('Owner', false),
52
- currency: pieces_framework_1.Property.ShortText({
53
- displayName: 'Currency',
54
- required: false,
55
- description: 'Please enter currency code (e.g., "USD", "EUR").',
56
- }),
57
- price: pieces_framework_1.Property.Number({
58
- displayName: 'Price',
59
- required: false,
60
- }),
61
- cost: pieces_framework_1.Property.Number({
62
- displayName: 'Cost',
63
- required: false,
64
- }),
65
- overheadCost: pieces_framework_1.Property.Number({
66
- displayName: 'Overhead Cost',
67
- required: false,
68
- }),
69
- visibleTo: props_1.visibleToProp,
70
- customfields: (0, props_1.customFieldsProp)('product'),
71
- },
72
- run(context) {
73
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
74
- var _a;
75
- const { id, name, code, description, unit, tax, isActive, ownerId, currency, price, cost, overheadCost, visibleTo, } = context.propsValue;
76
- const customFields = (_a = context.propsValue.customfields) !== null && _a !== void 0 ? _a : {};
77
- const productPayload = {
78
- name,
79
- code,
80
- description,
81
- unit,
82
- tax,
83
- is_deleted: !isActive,
84
- prices: [
85
- {
86
- price: price !== null && price !== void 0 ? price : 0,
87
- currency: currency !== null && currency !== void 0 ? currency : 'USD',
88
- cost: cost !== null && cost !== void 0 ? cost : 0,
89
- direct_cost: overheadCost !== null && overheadCost !== void 0 ? overheadCost : 0,
90
- },
91
- ],
92
- visible_to: visibleTo,
93
- };
94
- if (ownerId) {
95
- productPayload.owner_id = ownerId;
96
- }
97
- const customFieldsResponse = yield (0, common_1.pipedrivePaginatedV1ApiCall)({
98
- accessToken: context.auth.access_token,
99
- apiDomain: context.auth.data['api_domain'],
100
- method: pieces_common_1.HttpMethod.GET,
101
- resourceUri: '/v1/productFields',
102
- });
103
- const productCustomFields = (0, common_1.pipedriveParseCustomFields)(customFieldsResponse, customFields);
104
- if (!(0, shared_1.isEmpty)(productCustomFields)) {
105
- productPayload.custom_fields = productCustomFields;
106
- }
107
- const updatedProductResponse = yield (0, common_1.pipedriveApiCall)({
108
- accessToken: context.auth.access_token,
109
- apiDomain: context.auth.data['api_domain'],
110
- method: pieces_common_1.HttpMethod.PATCH,
111
- resourceUri: '/v2/products/' + id,
112
- body: productPayload,
113
- });
114
- const updatedProductProperties = (0, common_1.pipedriveTransformCustomFields)(customFieldsResponse, updatedProductResponse.data);
115
- return Object.assign(Object.assign({}, updatedProductResponse), { data: updatedProductProperties });
116
- });
117
- },
118
- });
119
- //# sourceMappingURL=update-product.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"update-product.js","sourceRoot":"","sources":["../../../../src/lib/actions/update-product.ts"],"names":[],"mappings":";;;;AAAA,kCAAwC;AACxC,qEAAwE;AACxE,2CAA+E;AAC/E,sCAKmB;AAEnB,+DAAyD;AACzD,iDAA+C;AAElC,QAAA,mBAAmB,GAAG,IAAA,+BAAY,EAAC;IAC5C,IAAI,EAAE,oBAAa;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACR,WAAW,EACP,yUAAyU;QAC7U,UAAU,EAAE,IAAI;KACnB;IACD,KAAK,EAAE;QACH,EAAE,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACnB,WAAW,EAAE,YAAY;YACzB,QAAQ,EAAE,IAAI;SACjB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,WAAW,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC3B,WAAW,EAAE,aAAa;YAC1B,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,IAAI,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrB,WAAW,EAAE,MAAM;YACnB,QAAQ,EAAE,KAAK;SAClB,CAAC;QACF,GAAG,EAAE,2BAAQ,CAAC,MAAM,CAAC;YACjB,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,KAAK;SAClB,CAAC;Q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AC;KAAA;CACJ,CAAC,CAAC"}
package/src/lib/auth.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const pipedriveAuth: import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>;
2
- //# sourceMappingURL=auth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,+GAgBxB,CAAC"}
package/src/lib/auth.js DELETED
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.pipedriveAuth = void 0;
4
- const pieces_framework_1 = require("@activepieces/pieces-framework");
5
- exports.pipedriveAuth = pieces_framework_1.PieceAuth.OAuth2({
6
- description: '',
7
- authUrl: 'https://oauth.pipedrive.com/oauth/authorize',
8
- tokenUrl: 'https://oauth.pipedrive.com/oauth/token',
9
- required: true,
10
- scope: [
11
- 'base',
12
- 'admin',
13
- 'contacts:full',
14
- 'users:read',
15
- 'deals:full',
16
- 'activities:full',
17
- 'leads:full',
18
- 'products:full',
19
- 'webhooks:full'
20
- ],
21
- });
22
- //# sourceMappingURL=auth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/lib/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAE9C,QAAA,aAAa,GAAG,4BAAS,CAAC,MAAM,CAAC;IAC7C,WAAW,EAAE,EAAE;IACf,OAAO,EAAE,6CAA6C;IACtD,QAAQ,EAAE,yCAAyC;IACnD,QAAQ,EAAE,IAAI;IACd,KAAK,EAAE;QACN,MAAM;QACN,OAAO;QACP,eAAe;QACf,YAAY;QACZ,YAAY;QACZ,iBAAiB;QACjB,YAAY;QACZ,eAAe;QACf,eAAe;KACf;CACD,CAAC,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const PERSON_OPTIONAL_FIELDS: string[];
2
- export declare const DEAL_OPTIONAL_FIELDS: string[];
3
- export declare const ORGANIZATION_OPTIONAL_FIELDS: string[];
4
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/lib/common/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,UAsBlC,CAAC;AAEF,eAAO,MAAM,oBAAoB,UAgBhC,CAAC;AAEF,eAAO,MAAM,4BAA4B,UAmBxC,CAAC"}