@pipedream/highlevel_oauth 0.2.0 → 0.3.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/actions/add-contact-to-campaign/add-contact-to-campaign.mjs +7 -2
- package/actions/common/common-contacts.mjs +1 -1
- package/actions/create-contact/create-contact.mjs +7 -2
- package/actions/list-businesses/list-businesses.mjs +38 -0
- package/actions/update-contact/update-contact.mjs +7 -2
- package/actions/upsert-contact/upsert-contact.mjs +7 -2
- package/highlevel_oauth.app.mjs +6 -0
- package/package.json +2 -2
- package/sources/new-contact-created/new-contact-created.mjs +2 -2
- package/sources/new-form-submission/new-form-submission.mjs +2 -2
|
@@ -4,8 +4,13 @@ export default {
|
|
|
4
4
|
...common,
|
|
5
5
|
key: "highlevel_oauth-add-contact-to-campaign",
|
|
6
6
|
name: "Add Contact to Campaign",
|
|
7
|
-
description: "Adds an existing contact to a campaign. [See the documentation](https://
|
|
8
|
-
version: "0.0.
|
|
7
|
+
description: "Adds an existing contact to a campaign. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/contacts/add-contact-to-campaign)",
|
|
8
|
+
version: "0.0.3",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: true,
|
|
11
|
+
openWorldHint: true,
|
|
12
|
+
readOnlyHint: false,
|
|
13
|
+
},
|
|
9
14
|
type: "action",
|
|
10
15
|
props: {
|
|
11
16
|
...common.props,
|
|
@@ -27,7 +27,7 @@ export default {
|
|
|
27
27
|
type: "object",
|
|
28
28
|
label: "Additional Options",
|
|
29
29
|
description:
|
|
30
|
-
"Additional parameters to send in the request. [See the documentation](https://
|
|
30
|
+
"Additional parameters to send in the request. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/contacts/create-contact) for available parameters. Values will be parsed as JSON where applicable.",
|
|
31
31
|
optional: true,
|
|
32
32
|
},
|
|
33
33
|
},
|
|
@@ -10,8 +10,13 @@ export default {
|
|
|
10
10
|
...common,
|
|
11
11
|
key: "highlevel_oauth-create-contact",
|
|
12
12
|
name: "Create Contact",
|
|
13
|
-
description: "Creates a new contact on HighLevel. [See the documentation](https://
|
|
14
|
-
version: "0.0.
|
|
13
|
+
description: "Creates a new contact on HighLevel. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/contacts/create-contact)",
|
|
14
|
+
version: "0.0.4",
|
|
15
|
+
annotations: {
|
|
16
|
+
destructiveHint: true,
|
|
17
|
+
openWorldHint: true,
|
|
18
|
+
readOnlyHint: false,
|
|
19
|
+
},
|
|
15
20
|
type: "action",
|
|
16
21
|
props: {
|
|
17
22
|
app,
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import common from "../../common/base.mjs";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
...common,
|
|
5
|
+
key: "highlevel_oauth-list-businesses",
|
|
6
|
+
name: "List Businesses",
|
|
7
|
+
description: "Retrieves all businesses for a location in HighLevel. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/businesses/get-businesses-by-location)",
|
|
8
|
+
version: "0.0.1",
|
|
9
|
+
annotations: {
|
|
10
|
+
destructiveHint: false,
|
|
11
|
+
openWorldHint: false,
|
|
12
|
+
readOnlyHint: true,
|
|
13
|
+
},
|
|
14
|
+
type: "action",
|
|
15
|
+
props: {
|
|
16
|
+
...common.props,
|
|
17
|
+
locationId: {
|
|
18
|
+
propDefinition: [
|
|
19
|
+
common.props.app,
|
|
20
|
+
"locationId",
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
async run({ $ }) {
|
|
25
|
+
const response = await this.app.listBusinesses({
|
|
26
|
+
$,
|
|
27
|
+
params: {
|
|
28
|
+
locationId: this.locationId ?? this.app.getLocationId(),
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const count = response?.businesses?.length ?? 0;
|
|
33
|
+
$.export("$summary", `Successfully retrieved ${count} business${count === 1
|
|
34
|
+
? ""
|
|
35
|
+
: "es"}`);
|
|
36
|
+
return response;
|
|
37
|
+
},
|
|
38
|
+
};
|
|
@@ -10,8 +10,13 @@ export default {
|
|
|
10
10
|
...common,
|
|
11
11
|
key: "highlevel_oauth-update-contact",
|
|
12
12
|
name: "Update Contact",
|
|
13
|
-
description: "Updates a selected contact on HighLevel. [See the documentation](https://
|
|
14
|
-
version: "0.0.
|
|
13
|
+
description: "Updates a selected contact on HighLevel. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/contacts/update-contact)",
|
|
14
|
+
version: "0.0.4",
|
|
15
|
+
annotations: {
|
|
16
|
+
destructiveHint: true,
|
|
17
|
+
openWorldHint: true,
|
|
18
|
+
readOnlyHint: false,
|
|
19
|
+
},
|
|
15
20
|
type: "action",
|
|
16
21
|
props: {
|
|
17
22
|
app,
|
|
@@ -10,8 +10,13 @@ export default {
|
|
|
10
10
|
...common,
|
|
11
11
|
key: "highlevel_oauth-upsert-contact",
|
|
12
12
|
name: "Upsert Contact",
|
|
13
|
-
description: "Creates or updates a contact on HighLevel. [See the documentation](https://
|
|
14
|
-
version: "0.0.
|
|
13
|
+
description: "Creates or updates a contact on HighLevel. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/contacts/upsert-contact)",
|
|
14
|
+
version: "0.0.4",
|
|
15
|
+
annotations: {
|
|
16
|
+
destructiveHint: true,
|
|
17
|
+
openWorldHint: true,
|
|
18
|
+
readOnlyHint: false,
|
|
19
|
+
},
|
|
15
20
|
type: "action",
|
|
16
21
|
props: {
|
|
17
22
|
app,
|
package/highlevel_oauth.app.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pipedream/highlevel_oauth",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Pipedream HighLevel (OAuth) Components",
|
|
5
5
|
"main": "highlevel_oauth.app.mjs",
|
|
6
6
|
"keywords": [
|
|
@@ -13,6 +13,6 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@pipedream/platform": "^3.
|
|
16
|
+
"@pipedream/platform": "^3.1.1"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
@@ -5,8 +5,8 @@ export default {
|
|
|
5
5
|
...common,
|
|
6
6
|
key: "highlevel_oauth-new-contact-created",
|
|
7
7
|
name: "New Contact Created",
|
|
8
|
-
description: "Emit new event when a new contact is created. [See the documentation](https://
|
|
9
|
-
version: "0.0.
|
|
8
|
+
description: "Emit new event when a new contact is created. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/contacts/get-contacts)",
|
|
9
|
+
version: "0.0.2",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
methods: {
|
|
@@ -5,8 +5,8 @@ export default {
|
|
|
5
5
|
...common,
|
|
6
6
|
key: "highlevel_oauth-new-form-submission",
|
|
7
7
|
name: "New Form Submission",
|
|
8
|
-
description: "Emit new event when a new form submission is created. [See the documentation](https://
|
|
9
|
-
version: "0.0.
|
|
8
|
+
description: "Emit new event when a new form submission is created. [See the documentation](https://marketplace.gohighlevel.com/docs/ghl/forms/get-forms-submissions)",
|
|
9
|
+
version: "0.0.2",
|
|
10
10
|
type: "source",
|
|
11
11
|
dedupe: "unique",
|
|
12
12
|
methods: {
|