@activepieces/piece-lead-connector 0.2.4 → 0.2.6

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 (50) hide show
  1. package/package.json +7 -24
  2. package/src/index.js +48 -89
  3. package/README.md +0 -7
  4. package/src/index.d.ts +0 -2
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/add-contact-to-campaign.d.ts +0 -4
  7. package/src/lib/actions/add-contact-to-campaign.js +0 -68
  8. package/src/lib/actions/add-contact-to-campaign.js.map +0 -1
  9. package/src/lib/actions/add-contact-to-workflow.d.ts +0 -4
  10. package/src/lib/actions/add-contact-to-workflow.js +0 -68
  11. package/src/lib/actions/add-contact-to-workflow.js.map +0 -1
  12. package/src/lib/actions/add-note-to-contact.d.ts +0 -5
  13. package/src/lib/actions/add-note-to-contact.js +0 -74
  14. package/src/lib/actions/add-note-to-contact.js.map +0 -1
  15. package/src/lib/actions/create-contact.d.ts +0 -16
  16. package/src/lib/actions/create-contact.js +0 -151
  17. package/src/lib/actions/create-contact.js.map +0 -1
  18. package/src/lib/actions/create-opportunity.d.ts +0 -10
  19. package/src/lib/actions/create-opportunity.js +0 -155
  20. package/src/lib/actions/create-opportunity.js.map +0 -1
  21. package/src/lib/actions/create-task.d.ts +0 -8
  22. package/src/lib/actions/create-task.js +0 -91
  23. package/src/lib/actions/create-task.js.map +0 -1
  24. package/src/lib/actions/search-contacts.d.ts +0 -3
  25. package/src/lib/actions/search-contacts.js +0 -29
  26. package/src/lib/actions/search-contacts.js.map +0 -1
  27. package/src/lib/actions/update-contact.d.ts +0 -17
  28. package/src/lib/actions/update-contact.js +0 -156
  29. package/src/lib/actions/update-contact.js.map +0 -1
  30. package/src/lib/actions/update-opportunity.d.ts +0 -11
  31. package/src/lib/actions/update-opportunity.js +0 -181
  32. package/src/lib/actions/update-opportunity.js.map +0 -1
  33. package/src/lib/actions/update-task.d.ts +0 -9
  34. package/src/lib/actions/update-task.js +0 -119
  35. package/src/lib/actions/update-task.js.map +0 -1
  36. package/src/lib/common/index.d.ts +0 -128
  37. package/src/lib/common/index.js +0 -442
  38. package/src/lib/common/index.js.map +0 -1
  39. package/src/lib/triggers/contact-updated.d.ts +0 -2
  40. package/src/lib/triggers/contact-updated.js +0 -65
  41. package/src/lib/triggers/contact-updated.js.map +0 -1
  42. package/src/lib/triggers/new-contact.d.ts +0 -2
  43. package/src/lib/triggers/new-contact.js +0 -55
  44. package/src/lib/triggers/new-contact.js.map +0 -1
  45. package/src/lib/triggers/new-form-submission.d.ts +0 -10
  46. package/src/lib/triggers/new-form-submission.js +0 -86
  47. package/src/lib/triggers/new-form-submission.js.map +0 -1
  48. package/src/lib/triggers/new-opportunity.d.ts +0 -10
  49. package/src/lib/triggers/new-opportunity.js +0 -89
  50. package/src/lib/triggers/new-opportunity.js.map +0 -1
@@ -1,2 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newContact: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {}>;
@@ -1,55 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newContact = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_framework_2 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const __1 = require("../..");
9
- const common_1 = require("../common");
10
- const polling = {
11
- strategy: pieces_common_1.DedupeStrategy.LAST_ITEM,
12
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, lastItemId }) {
13
- var _b;
14
- const currentValues = (_b = (yield (0, common_1.getContacts)(auth, {
15
- startAfterId: lastItemId,
16
- sortOrder: 'asc',
17
- }))) !== null && _b !== void 0 ? _b : [];
18
- return currentValues.map((contact) => {
19
- return {
20
- id: contact.id,
21
- data: contact,
22
- };
23
- });
24
- }),
25
- };
26
- exports.newContact = (0, pieces_framework_1.createTrigger)({
27
- auth: __1.leadConnectorAuth,
28
- name: 'new_contact',
29
- displayName: 'New Contact',
30
- description: 'Trigger when a new contact is added.',
31
- props: {},
32
- type: pieces_framework_2.TriggerStrategy.POLLING,
33
- sampleData: {},
34
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
35
- yield pieces_common_1.pollingHelper.onEnable(polling, {
36
- auth: context.auth,
37
- store: context.store,
38
- propsValue: context.propsValue,
39
- });
40
- }),
41
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
42
- yield pieces_common_1.pollingHelper.onDisable(polling, {
43
- auth: context.auth,
44
- store: context.store,
45
- propsValue: context.propsValue,
46
- });
47
- }),
48
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
49
- return yield pieces_common_1.pollingHelper.poll(polling, context);
50
- }),
51
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
52
- return yield pieces_common_1.pollingHelper.test(polling, context);
53
- }),
54
- });
55
- //# sourceMappingURL=new-contact.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-contact.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/lead-connector/src/lib/triggers/new-contact.ts"],"names":[],"mappings":";;;;AAAA,qEAAuH;AACvH,qEAAiE;AACjE,+DAIqC;AACrC,6BAA0C;AAC1C,sCAAwC;AAExC,MAAM,OAAO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O,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC,CAAA;IACD,IAAI,EAAE,CAAO,OAAO,EAAE,EAAE;QACtB,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newFormSubmission: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
3
- form: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
5
- form: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
7
- form: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
9
- form: import("@activepieces/pieces-framework").DropdownProperty<string, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- }>;
@@ -1,86 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newFormSubmission = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_framework_2 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const __1 = require("../..");
9
- const common_1 = require("../common");
10
- const polling = {
11
- strategy: pieces_common_1.DedupeStrategy.LAST_ITEM,
12
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue }) {
13
- var _b;
14
- const currentValues = (_b = (yield (0, common_1.getFormSubmissions)(auth, propsValue.form))) !== null && _b !== void 0 ? _b : [];
15
- return currentValues.map((submission) => {
16
- return {
17
- id: submission.id,
18
- data: submission,
19
- };
20
- });
21
- }),
22
- };
23
- exports.newFormSubmission = (0, pieces_framework_1.createTrigger)({
24
- auth: __1.leadConnectorAuth,
25
- name: 'new_form_submission',
26
- displayName: 'New Form Submission',
27
- description: 'Trigger when a form is submitted.',
28
- props: {
29
- form: pieces_framework_1.Property.Dropdown({
30
- auth: __1.leadConnectorAuth,
31
- displayName: 'Form',
32
- description: 'The form you want to use.',
33
- required: true,
34
- refreshers: [],
35
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
36
- if (!auth)
37
- return {
38
- disabled: true,
39
- options: [],
40
- };
41
- const forms = yield (0, common_1.getForms)(auth);
42
- return {
43
- options: forms.map((form) => {
44
- return {
45
- label: form.name,
46
- value: form.id,
47
- };
48
- }),
49
- };
50
- }),
51
- }),
52
- },
53
- type: pieces_framework_2.TriggerStrategy.POLLING,
54
- sampleData: {},
55
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
56
- yield pieces_common_1.pollingHelper.onEnable(polling, {
57
- auth: context.auth,
58
- store: context.store,
59
- propsValue: context.propsValue,
60
- });
61
- }),
62
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
63
- yield pieces_common_1.pollingHelper.onDisable(polling, {
64
- auth: context.auth,
65
- store: context.store,
66
- propsValue: context.propsValue,
67
- });
68
- }),
69
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
70
- return yield pieces_common_1.pollingHelper.poll(polling, {
71
- auth: context.auth,
72
- store: context.store,
73
- propsValue: context.propsValue,
74
- files: context.files,
75
- });
76
- }),
77
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
78
- return yield pieces_common_1.pollingHelper.test(polling, {
79
- auth: context.auth,
80
- store: context.store,
81
- propsValue: context.propsValue,
82
- files: context.files,
83
- });
84
- }),
85
- });
86
- //# sourceMappingURL=new-form-submission.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-form-submission.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/lead-connector/src/lib/triggers/new-form-submission.ts"],"names":[],"mappings":";;;;AAAA,qEAAiI;AACjI,qEAAiE;AACjE,+DAIqC;AACrC,6BAA0C;AAC1C,sCAAyD;AAEzD,MAAM,OAAO,GAA2F;IACtG,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAA6B,EAAE,oDAAxB,EAAE,IAAI,EAAE,UAAU,EAAE;;QAChC,MAAM,aAAa,GACjB,MAAA,CAAC,MAAM,IAAA,2BAAkB,EAAC,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,mCAAI,EAAE,CAAC;QAE1D,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;YACtC,OAAO;gBACL,EAAE,EAAE,UAAU,CAAC,EAAE;gBACjB,IAAI,EAAE,UAAU;aACjB,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAA;CACF,CAAC;AAEW,QAAA,iBAAiB,GAAG,IAAA,gCAAa,EAAC;IAC7C,IAAI,EAAE,qBAAiB;IACvB,IAAI,EAAE,qBAAqB;IAC3B,WAAW,EAAE,qBAAqB;IAClC,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC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vC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;IACL,CAAC,CAAA;IACD,IAAI,EAAE,CAAO,OAAO,EAAE,EAAE;QACtB,OAAO,MAAM,6BAAa,CAAC,IAAI,CAAC,OAAO,EAAE;YACvC,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,KAAK,EAAE,OAAO,CAAC,KAAK;YACpB,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;IACL,CAAC,CAAA;CACF,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { TriggerStrategy } from '@activepieces/pieces-framework';
2
- export declare const newOpportunity: import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
3
- pipeline: import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
4
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.POLLING, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
5
- pipeline: import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
6
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.MANUAL, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
7
- pipeline: import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
8
- }> | import("@activepieces/pieces-framework").ITrigger<TriggerStrategy.APP_WEBHOOK, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
9
- pipeline: import("@activepieces/pieces-framework").DropdownProperty<any, true, import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>>;
10
- }>;
@@ -1,89 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.newOpportunity = void 0;
4
- const tslib_1 = require("tslib");
5
- const pieces_framework_1 = require("@activepieces/pieces-framework");
6
- const pieces_framework_2 = require("@activepieces/pieces-framework");
7
- const pieces_common_1 = require("@activepieces/pieces-common");
8
- const __1 = require("../..");
9
- const common_1 = require("../common");
10
- const polling = {
11
- strategy: pieces_common_1.DedupeStrategy.LAST_ITEM,
12
- items: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, propsValue, lastItemId }) {
13
- var _b;
14
- const currentValues = (_b = (yield (0, common_1.getOpportunities)(auth, propsValue.pipeline, {
15
- startAfterId: lastItemId,
16
- }))) !== null && _b !== void 0 ? _b : [];
17
- return currentValues.map((opportunity) => {
18
- return {
19
- id: opportunity.id,
20
- data: opportunity,
21
- };
22
- });
23
- }),
24
- };
25
- exports.newOpportunity = (0, pieces_framework_1.createTrigger)({
26
- auth: __1.leadConnectorAuth,
27
- name: 'new_opportunity',
28
- displayName: 'New Opportunity',
29
- description: 'Trigger when a new opportunity is added.',
30
- props: {
31
- pipeline: pieces_framework_1.Property.Dropdown({
32
- auth: __1.leadConnectorAuth,
33
- displayName: 'Pipeline',
34
- description: 'The ID of the pipeline to use.',
35
- required: true,
36
- refreshers: [],
37
- options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth }) {
38
- if (!auth) {
39
- return {
40
- disabled: true,
41
- options: [],
42
- };
43
- }
44
- const pipelines = yield (0, common_1.getPipelines)(auth);
45
- return {
46
- options: pipelines.map((pipeline) => {
47
- return {
48
- label: pipeline.name,
49
- value: pipeline.id,
50
- };
51
- }),
52
- };
53
- }),
54
- }),
55
- },
56
- type: pieces_framework_2.TriggerStrategy.POLLING,
57
- sampleData: {},
58
- onEnable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
59
- yield pieces_common_1.pollingHelper.onEnable(polling, {
60
- auth: context.auth,
61
- store: context.store,
62
- propsValue: context.propsValue,
63
- });
64
- }),
65
- onDisable: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
66
- yield pieces_common_1.pollingHelper.onDisable(polling, {
67
- auth: context.auth,
68
- store: context.store,
69
- propsValue: context.propsValue,
70
- });
71
- }),
72
- run: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
73
- return yield pieces_common_1.pollingHelper.poll(polling, {
74
- auth: context.auth,
75
- store: context.store,
76
- propsValue: context.propsValue,
77
- files: context.files,
78
- });
79
- }),
80
- test: (context) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
81
- return yield pieces_common_1.pollingHelper.test(polling, {
82
- auth: context.auth,
83
- store: context.store,
84
- propsValue: context.propsValue,
85
- files: context.files,
86
- });
87
- }),
88
- });
89
- //# sourceMappingURL=new-opportunity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"new-opportunity.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/lead-connector/src/lib/triggers/new-opportunity.ts"],"names":[],"mappings":";;;;AAAA,qEAAiI;AACjI,qEAAiE;AACjE,+DAIqC;AACrC,6BAA0C;AAC1C,sCAA2D;AAE3D,MAAM,OAAO,GAA+F;IAC1G,QAAQ,EAAE,8BAAc,CAAC,SAAS;IAClC,KAAK,EAAE,KAAyC,EAAE,oDAApC,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE;;QAC5C,MAAM,aAAa,GACjB,MAAA,CAAC,MAAM,IAAA,yBAAgB,EAAC,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE;YACjD,YAAY,EAAE,UAAgC;SAC/C,CAAC,CAAC,mCAAI,EAAE,CAAC;QAEZ,OAAO,aAAa,CAAC,GAAG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