@activepieces/piece-pipedrive 0.4.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -8
- package/src/lib/actions/add-follower.d.ts +1 -1
- package/src/lib/actions/add-follower.js +2 -38
- package/src/lib/actions/add-follower.js.map +1 -1
- package/src/lib/actions/add-label-to-person.d.ts +1 -1
- package/src/lib/actions/add-product-to-deal.d.ts +2 -2
- package/src/lib/actions/attach-file.d.ts +4 -4
- package/src/lib/actions/create-activity.d.ts +4 -4
- package/src/lib/actions/create-deal.d.ts +2 -2
- package/src/lib/actions/create-lead.d.ts +2 -2
- package/src/lib/actions/create-note.d.ts +4 -4
- package/src/lib/actions/create-person.d.ts +1 -1
- package/src/lib/actions/find-deals-associated-with-person.d.ts +1 -1
- package/src/lib/actions/find-notes.d.ts +1 -1
- package/src/lib/actions/find-notes.js +4 -3
- package/src/lib/actions/find-notes.js.map +1 -1
- package/src/lib/actions/find-products.js +1 -1
- package/src/lib/actions/update-activity.d.ts +4 -4
- package/src/lib/actions/update-deal.d.ts +3 -3
- package/src/lib/actions/update-lead.d.ts +3 -3
- package/src/lib/actions/update-organization.d.ts +1 -1
- package/src/lib/actions/update-person.d.ts +2 -2
- package/src/lib/common/index.js +2 -2
- package/src/lib/common/index.js.map +1 -1
- package/src/lib/common/props.d.ts +14 -18
- package/src/lib/common/props.js +18 -182
- package/src/lib/common/props.js.map +1 -1
- package/src/lib/trigger/new-lead.js +67 -68
- package/src/lib/trigger/new-lead.js.map +1 -1
- package/src/lib/trigger/new-note.js +30 -59
- package/src/lib/trigger/new-note.js.map +1 -1
- package/src/lib/trigger/new-organization.js +48 -69
- package/src/lib/trigger/new-organization.js.map +1 -1
- package/src/lib/trigger/updated-organization.js +48 -69
- package/src/lib/trigger/updated-organization.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@activepieces/piece-pipedrive",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@anthropic-ai/sdk": "0.
|
|
5
|
+
"@anthropic-ai/sdk": "0.39.0",
|
|
6
6
|
"@sinclair/typebox": "0.34.11",
|
|
7
|
-
"axios": "1.8.
|
|
7
|
+
"axios": "1.8.3",
|
|
8
8
|
"axios-retry": "4.4.1",
|
|
9
9
|
"dayjs": "1.11.9",
|
|
10
10
|
"deepmerge-ts": "7.1.0",
|
|
11
|
+
"fast-glob": "3.3.3",
|
|
11
12
|
"form-data": "4.0.0",
|
|
12
13
|
"mime-types": "2.1.35",
|
|
13
14
|
"nanoid": "3.3.8",
|
|
14
15
|
"openai": "4.67.1",
|
|
15
16
|
"replicate": "0.34.1",
|
|
16
17
|
"semver": "7.6.0",
|
|
17
|
-
"zod": "3.
|
|
18
|
-
"@activepieces/pieces-common": "0.4.
|
|
19
|
-
"@activepieces/pieces-framework": "0.
|
|
20
|
-
"@activepieces/shared": "0.
|
|
18
|
+
"zod": "3.25.48",
|
|
19
|
+
"@activepieces/pieces-common": "0.4.8",
|
|
20
|
+
"@activepieces/pieces-framework": "0.14.0",
|
|
21
|
+
"@activepieces/shared": "0.12.0",
|
|
21
22
|
"tslib": "1.14.1"
|
|
22
23
|
},
|
|
23
24
|
"overrides": {
|
|
24
|
-
"cross-spawn": "7.0.6",
|
|
25
25
|
"@tryfabric/martian": {
|
|
26
26
|
"@notionhq/client": "$@notionhq/client"
|
|
27
27
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const addFollowerAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
followerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
3
3
|
entity: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
entityId: import("@activepieces/pieces-framework").
|
|
4
|
+
entityId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
5
|
}>;
|
|
@@ -40,46 +40,10 @@ exports.addFollowerAction = (0, pieces_framework_1.createAction)({
|
|
|
40
40
|
],
|
|
41
41
|
},
|
|
42
42
|
}),
|
|
43
|
-
entityId: pieces_framework_1.Property.
|
|
43
|
+
entityId: pieces_framework_1.Property.ShortText({
|
|
44
44
|
displayName: 'Target Object ID',
|
|
45
45
|
description: 'ID of the object to add the follower to.',
|
|
46
|
-
|
|
47
|
-
required: true,
|
|
48
|
-
options: (_a) => tslib_1.__awaiter(void 0, [_a], void 0, function* ({ auth, entity }) {
|
|
49
|
-
if (!auth) {
|
|
50
|
-
return {
|
|
51
|
-
disabled: true,
|
|
52
|
-
options: [],
|
|
53
|
-
placeholder: 'Please connect your account.',
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
|
-
if (!entity)
|
|
57
|
-
return {
|
|
58
|
-
disabled: true,
|
|
59
|
-
options: [],
|
|
60
|
-
placeholder: 'Please select entity type.',
|
|
61
|
-
};
|
|
62
|
-
const authValue = auth;
|
|
63
|
-
let options;
|
|
64
|
-
switch (entity) {
|
|
65
|
-
case 'deal':
|
|
66
|
-
options = yield (0, props_1.fetchDealsOptions)(authValue);
|
|
67
|
-
break;
|
|
68
|
-
case 'person':
|
|
69
|
-
options = yield (0, props_1.fetchPersonsOptions)(authValue);
|
|
70
|
-
break;
|
|
71
|
-
case 'organization':
|
|
72
|
-
options = yield (0, props_1.fetchOrganizationsOptions)(authValue);
|
|
73
|
-
break;
|
|
74
|
-
case 'product':
|
|
75
|
-
options = yield (0, props_1.fetchProductsOptions)(authValue);
|
|
76
|
-
break;
|
|
77
|
-
}
|
|
78
|
-
return {
|
|
79
|
-
disabled: false,
|
|
80
|
-
options: options !== null && options !== void 0 ? options : [],
|
|
81
|
-
};
|
|
82
|
-
}),
|
|
46
|
+
required: true
|
|
83
47
|
}),
|
|
84
48
|
},
|
|
85
49
|
run(context) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-follower.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-follower.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"add-follower.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/add-follower.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,2CAA8C;AAC9C,sCAA6C;AAC7C,+DAAyD;AAE5C,QAAA,iBAAiB,GAAG,IAAA,+BAAY,EAAC;IAC7C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,cAAc;IAC3B,WAAW,EAAE,6DAA6D;IAC1E,KAAK,EAAE;QACN,UAAU,EAAE,IAAA,mBAAW,EAAC,UAAU,EAAE,IAAI,CAAC;QACzC,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;YAC/B,WAAW,EAAE,eAAe;YAC5B,WAAW,EAAE,wCAAwC;YACrD,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR;wBACC,KAAK,EAAE,MAAM;wBACb,KAAK,EAAE,MAAM;qBACb;oBACD;wBACC,KAAK,EAAE,QAAQ;wBACf,KAAK,EAAE,QAAQ;qBACf;oBACD;wBACC,KAAK,EAAE,cAAc;wBACrB,KAAK,EAAE,cAAc;qBACrB;oBACD;wBACC,KAAK,EAAE,SAAS;wBAChB,KAAK,EAAE,SAAS;qBAChB;iBACD;aACD;SACD,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;YAC5B,WAAW,EAAE,kBAAkB;YAC/B,WAAW,EAAE,0CAA0C;YACvD,QAAQ,EAAC,IAAI;SACb,CAAC;KACF;IACK,GAAG,CAAC,OAAO;;YAChB,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC;YAE5D,IAAI,QAAQ,GAAG,EAAE,CAAC;YAElB,QAAQ,MAAM,EAAE,CAAC;gBAChB,KAAK,MAAM;oBACV,QAAQ,GAAG,UAAU,QAAQ,YAAY,CAAC;oBAC1C,MAAM;gBACP,KAAK,cAAc;oBAClB,QAAQ,GAAG,kBAAkB,QAAQ,YAAY,CAAC;oBAClD,MAAM;gBACP,KAAK,QAAQ;oBACZ,QAAQ,GAAG,YAAY,QAAQ,YAAY,CAAC;oBAC5C,MAAM;gBACP,KAAK,SAAS;oBACb,QAAQ,GAAG,aAAa,QAAQ,YAAY,CAAC;oBAC7C,MAAM;YACR,CAAC;YAEK,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACZ,MAAM,IAAI,KAAK,CAAC,wBAAwB,MAAM,EAAE,CAAC,CAAC;YACtD,CAAC;YAEP,MAAM,QAAQ,GAAG,MAAM,IAAA,yBAAgB,EAAC;gBACvC,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,YAAY;gBACtC,SAAS,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC;gBAC1C,MAAM,EAAE,0BAAU,CAAC,IAAI;gBACvB,WAAW,EAAE,QAAQ;gBACrB,IAAI,EAAE;oBACL,OAAO,EAAE,UAAU;iBACnB;aACD,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC;QACjB,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const addLabelToPersonAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
personId: import("@activepieces/pieces-framework").
|
|
2
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
3
3
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
4
4
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const addProductToDealAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
dealId: import("@activepieces/pieces-framework").
|
|
3
|
-
productId: import("@activepieces/pieces-framework").
|
|
2
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
3
|
+
productId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
4
4
|
price: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
5
5
|
quantity: import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
6
6
|
discount: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const attachFileAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
file: import("@activepieces/pieces-framework").FileProperty<true>;
|
|
3
3
|
fileName: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
|
-
dealId: import("@activepieces/pieces-framework").
|
|
5
|
-
personId: import("@activepieces/pieces-framework").
|
|
6
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
7
|
-
productId: import("@activepieces/pieces-framework").
|
|
4
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
5
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
6
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
7
|
+
productId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
8
8
|
activityId: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
9
9
|
}>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const createActivityAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
3
|
-
personId: import("@activepieces/pieces-framework").
|
|
4
|
-
dealId: import("@activepieces/pieces-framework").
|
|
5
|
-
leadId: import("@activepieces/pieces-framework").
|
|
2
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
3
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
4
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
5
|
+
leadId: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
6
|
assignTo: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
7
7
|
type: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
8
8
|
dueDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
@@ -4,8 +4,8 @@ export declare const createDealAction: import("@activepieces/pieces-framework").
|
|
|
4
4
|
stageId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
5
5
|
pipelineId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
6
6
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
7
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
8
|
-
personId: import("@activepieces/pieces-framework").
|
|
7
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
8
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
9
9
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
10
10
|
probability: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
11
11
|
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const createLeadAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
3
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
4
|
-
personId: import("@activepieces/pieces-framework").
|
|
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
5
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
|
|
6
6
|
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
7
7
|
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const createNoteAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
content: import("@activepieces/pieces-framework").LongTextProperty<true>;
|
|
3
|
-
dealId: import("@activepieces/pieces-framework").
|
|
3
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
4
4
|
pinnedToDeal: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
-
personId: import("@activepieces/pieces-framework").
|
|
5
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
6
6
|
pinnedToPerson: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
7
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
8
8
|
pinnedToOrganization: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
|
-
leadId: import("@activepieces/pieces-framework").
|
|
9
|
+
leadId: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
10
10
|
pinnedToLead: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
11
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const createPersonAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
3
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
3
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
4
4
|
email: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
5
5
|
phone: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
6
6
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const findDealsAssociatedWithPersonAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
personId: import("@activepieces/pieces-framework").
|
|
2
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
3
3
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const findNotesAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
objectType: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
3
|
-
objectId: import("@activepieces/pieces-framework").
|
|
3
|
+
objectId: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
4
4
|
}>;
|
|
@@ -38,7 +38,7 @@ exports.findNotesAction = (0, pieces_framework_1.createAction)({
|
|
|
38
38
|
],
|
|
39
39
|
},
|
|
40
40
|
}),
|
|
41
|
-
objectId: pieces_framework_1.Property.
|
|
41
|
+
objectId: pieces_framework_1.Property.ShortText({
|
|
42
42
|
displayName: 'ID',
|
|
43
43
|
required: true,
|
|
44
44
|
}),
|
|
@@ -52,16 +52,17 @@ exports.findNotesAction = (0, pieces_framework_1.createAction)({
|
|
|
52
52
|
resourceUri: `/notes`,
|
|
53
53
|
query: {
|
|
54
54
|
sort: 'update_time DESC',
|
|
55
|
+
[context.propsValue.objectType]: context.propsValue.objectId
|
|
55
56
|
},
|
|
56
57
|
});
|
|
57
|
-
if ((0, shared_1.isNil)(response)) {
|
|
58
|
+
if ((0, shared_1.isNil)(response) || response.length === 0) {
|
|
58
59
|
return {
|
|
59
60
|
found: false,
|
|
60
61
|
data: [],
|
|
61
62
|
};
|
|
62
63
|
}
|
|
63
64
|
return {
|
|
64
|
-
found:
|
|
65
|
+
found: response.length > 0,
|
|
65
66
|
data: response,
|
|
66
67
|
};
|
|
67
68
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-notes.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/find-notes.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,sCAAsD;AACtD,+DAAyD;AACzD,iDAA6C;AAEhC,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,sDAAsD;IACnE,KAAK,EAAE;QACN,UAAU,EAAE,2BAAQ,CAAC,cAAc,CAAC;YACnC,WAAW,EAAE,WAAW;YACxB,QAAQ,EAAE,IAAI;YACd,OAAO,EAAE;gBACR,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE;oBACR;wBACC,KAAK,EAAE,MAAM;wBACb,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,KAAK,EAAE,MAAM;wBACb,KAAK,EAAE,SAAS;qBAChB;oBACD;wBACC,KAAK,EAAE,QAAQ;wBACf,KAAK,EAAE,WAAW;qBAClB;oBACD;wBACC,KAAK,EAAE,cAAc;wBACrB,KAAK,EAAE,QAAQ;qBACf;iBACD;aACD;SACD,CAAC;QACF,QAAQ,EAAE,2BAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"find-notes.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/actions/find-notes.ts"],"names":[],"mappings":";;;;AAAA,uCAA4C;AAC5C,qEAAwE;AACxE,sCAAsD;AACtD,+DAAyD;AACzD,iDAA6C;AAEhC,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,qBAAa;IACnB,IAAI,EAAE,YAAY;IAClB,WAAW,EAAE,YAAY;IACzB,WAAW,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AI,EAAE,QAAQ;aACd,CAAC;QACH,CAAC;KAAA;CACD,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const updateActivityAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
3
|
-
personId: import("@activepieces/pieces-framework").
|
|
4
|
-
dealId: import("@activepieces/pieces-framework").
|
|
5
|
-
leadId: import("@activepieces/pieces-framework").
|
|
2
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
3
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
4
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
5
|
+
leadId: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
6
6
|
assignTo: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
7
7
|
type: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
8
8
|
dueDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
@@ -4,8 +4,8 @@ export declare const updateDealAction: import("@activepieces/pieces-framework").
|
|
|
4
4
|
stageId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
5
5
|
pipelineId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
6
6
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
7
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
8
|
-
personId: import("@activepieces/pieces-framework").
|
|
7
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
8
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
9
9
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
10
10
|
probability: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
11
11
|
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
@@ -13,6 +13,6 @@ export declare const updateDealAction: import("@activepieces/pieces-framework").
|
|
|
13
13
|
dealValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
14
|
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
15
15
|
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
16
|
-
dealId: import("@activepieces/pieces-framework").
|
|
16
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
17
17
|
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
18
18
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const updateLeadAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
3
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
4
|
-
personId: import("@activepieces/pieces-framework").
|
|
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
5
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
|
|
6
6
|
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
7
7
|
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
@@ -9,6 +9,6 @@ export declare const updateLeadAction: import("@activepieces/pieces-framework").
|
|
|
9
9
|
leadValue: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
10
10
|
leadValueCurrency: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
11
11
|
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
12
|
-
leadId: import("@activepieces/pieces-framework").
|
|
12
|
+
leadId: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
13
13
|
title: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
14
|
}>;
|
|
@@ -4,6 +4,6 @@ export declare const updateOrganizationAction: import("@activepieces/pieces-fram
|
|
|
4
4
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
5
5
|
address: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
6
6
|
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
7
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
7
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
8
8
|
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
9
9
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const updatePersonAction: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").OAuth2Property<import("@activepieces/pieces-framework").OAuth2Props>, {
|
|
2
2
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
3
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
3
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
4
4
|
email: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
5
5
|
phone: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
6
6
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
@@ -9,6 +9,6 @@ export declare const updatePersonAction: import("@activepieces/pieces-framework"
|
|
|
9
9
|
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
10
10
|
marketing_status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
11
11
|
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
12
|
-
personId: import("@activepieces/pieces-framework").
|
|
12
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
13
13
|
name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
14
|
}>;
|
package/src/lib/common/index.js
CHANGED
|
@@ -16,7 +16,7 @@ exports.pipedriveCommon = {
|
|
|
16
16
|
event_object: object,
|
|
17
17
|
event_action: action,
|
|
18
18
|
subscription_url: webhookUrl,
|
|
19
|
-
version: '1.0'
|
|
19
|
+
version: '1.0',
|
|
20
20
|
},
|
|
21
21
|
authentication: {
|
|
22
22
|
type: pieces_common_1.AuthenticationType.BEARER_TOKEN,
|
|
@@ -87,7 +87,7 @@ function pipedrivePaginatedApiCall(_a) {
|
|
|
87
87
|
return tslib_1.__awaiter(this, arguments, void 0, function* ({ accessToken, apiDomain, method, resourceUri, query, body, }) {
|
|
88
88
|
const qs = query ? query : {};
|
|
89
89
|
qs.start = 0;
|
|
90
|
-
qs.limit =
|
|
90
|
+
qs.limit = 500;
|
|
91
91
|
const resultData = [];
|
|
92
92
|
let hasMoreItems = true;
|
|
93
93
|
do {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/common/index.ts"],"names":[],"mappings":";;;AA+DA,4CAiDC;AAED,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/pieces/community/pipedrive/src/lib/common/index.ts"],"names":[],"mappings":";;;AA+DA,4CAiDC;AAED,8DAoCC;AAED,wEAiCC;;AAzLD,+DAQqC;AAErC,iDAA6C;AAEhC,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;gBAC5B,OAAO,EAAE,KAAK;aACd;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,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AAA,CAAA,MAAA,MAAA,KAAK,CAAC,OAAO,0CAAE,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,0CAAE,KAAK,KAAI,IAAI,CAAA,EAAA,CACvF,CAAC;YACH,CAAC;iBAAM,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"}
|
|
@@ -2,14 +2,10 @@ import { pipedriveAuth } from '../../index';
|
|
|
2
2
|
import { DropdownOption, DynamicPropsValue, PiecePropValueSchema } from '@activepieces/pieces-framework';
|
|
3
3
|
import { GetField } from './types';
|
|
4
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
5
|
export declare function fetchActivityTypesOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<string>[]>;
|
|
9
6
|
export declare function fetchPipelinesOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
10
7
|
export declare function fetchPersonsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
11
8
|
export declare function fetchOwnersOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
12
|
-
export declare function fetchOrganizationsOptions(auth: PiecePropValueSchema<typeof pipedriveAuth>): Promise<DropdownOption<number>[]>;
|
|
13
9
|
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
10
|
export declare function retrieveObjectCustomProperties(auth: PiecePropValueSchema<typeof pipedriveAuth>, objectType: string): Promise<DynamicPropsValue>;
|
|
15
11
|
export declare const searchFieldProp: (objectType: string) => import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
@@ -17,16 +13,16 @@ export declare const searchFieldValueProp: (objectType: string) => import("@acti
|
|
|
17
13
|
export declare const customFieldsProp: (objectType: string) => import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
18
14
|
export declare const ownerIdProp: (displayName: string, required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
19
15
|
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").
|
|
16
|
+
export declare const organizationIdProp: (required?: boolean) => import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
21
17
|
export declare const dealPipelineIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
22
18
|
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").
|
|
19
|
+
export declare const personIdProp: (required?: boolean) => import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
24
20
|
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
21
|
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").
|
|
27
|
-
export declare const productIdProp: (required?: boolean) => import("@activepieces/pieces-framework").
|
|
22
|
+
export declare const dealIdProp: (required?: boolean) => import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
23
|
+
export declare const productIdProp: (required?: boolean) => import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
28
24
|
export declare const visibleToProp: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
29
|
-
export declare const leadIdProp: (required?: boolean) => import("@activepieces/pieces-framework").
|
|
25
|
+
export declare const leadIdProp: (required?: boolean) => import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
30
26
|
export declare const activityTypeIdProp: (required?: boolean) => import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
31
27
|
export declare const dealCommonProps: {
|
|
32
28
|
creationTime: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
@@ -34,8 +30,8 @@ export declare const dealCommonProps: {
|
|
|
34
30
|
stageId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
35
31
|
pipelineId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
36
32
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
37
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
38
|
-
personId: import("@activepieces/pieces-framework").
|
|
33
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
34
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
39
35
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
40
36
|
probability: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
41
37
|
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
@@ -46,8 +42,8 @@ export declare const dealCommonProps: {
|
|
|
46
42
|
};
|
|
47
43
|
export declare const leadCommonProps: {
|
|
48
44
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
49
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
50
|
-
personId: import("@activepieces/pieces-framework").
|
|
45
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
46
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
51
47
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<string, true>;
|
|
52
48
|
expectedCloseDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
53
49
|
visibleTo: import("@activepieces/pieces-framework").StaticDropdownProperty<number, false>;
|
|
@@ -65,7 +61,7 @@ export declare const organizationCommonProps: {
|
|
|
65
61
|
};
|
|
66
62
|
export declare const personCommonProps: {
|
|
67
63
|
ownerId: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
68
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
64
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
69
65
|
email: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
70
66
|
phone: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
71
67
|
labelIds: import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, false> | import("@activepieces/pieces-framework").MultiSelectDropdownProperty<number, true>;
|
|
@@ -76,10 +72,10 @@ export declare const personCommonProps: {
|
|
|
76
72
|
customfields: import("@activepieces/pieces-framework").DynamicProperties<false>;
|
|
77
73
|
};
|
|
78
74
|
export declare const activityCommonProps: {
|
|
79
|
-
organizationId: import("@activepieces/pieces-framework").
|
|
80
|
-
personId: import("@activepieces/pieces-framework").
|
|
81
|
-
dealId: import("@activepieces/pieces-framework").
|
|
82
|
-
leadId: import("@activepieces/pieces-framework").
|
|
75
|
+
organizationId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
76
|
+
personId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
77
|
+
dealId: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
78
|
+
leadId: import("@activepieces/pieces-framework").ShortTextProperty<false> | import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
83
79
|
assignTo: import("@activepieces/pieces-framework").DropdownProperty<number, false> | import("@activepieces/pieces-framework").DropdownProperty<number, true>;
|
|
84
80
|
type: import("@activepieces/pieces-framework").DropdownProperty<string, false> | import("@activepieces/pieces-framework").DropdownProperty<string, true>;
|
|
85
81
|
dueDate: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|