Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/close/actions/create-lead/create-lead.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import utils from "../../common/utils.mjs";
export default {
type: "action",
key: "close-create-lead",
version: "0.1.0",
version: "0.1.1",
name: "Create Lead",
description: "Creates a lead, [See the docs](https://developer.close.com/resources/leads/#create-a-new-lead)",
description: "Creates a lead. [See the documentation](https://developer.close.com/resources/leads/#create-a-new-lead)",
props: {
close,
name: {
Expand Down
14 changes: 7 additions & 7 deletions components/close/actions/custom-action/custom-action.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import utils from "../../common/utils.mjs";
export default {
key: "close-custom-action",
name: "Custom Action",
description: "Makes an aribitrary call to Close API, [See](https://developer.close.com/) for all options.",
version: "0.1.0",
description: "Makes an arbitrary call to the Close API. [See the documentation](https://developer.close.com/) for all options.",
version: "0.1.1",
type: "action",
props: {
close,
requestMethod: {
type: "string",
label: "Request Method",
description: "Http method to use in the request.",
description: "Http method to use in the request",
options: [
"GET",
"POST",
Expand All @@ -24,24 +24,24 @@ export default {
relativeUrl: {
type: "string",
label: "Relative url",
description: "A path relative to Close API, to send the request against, e.g. `/lead`",
description: "A path relative to Close API to send the request against. e.g. `/lead`",
},
queryString: {
type: "string",
label: "Query string",
description: "Query string of the request.",
description: "Query string of the request",
optional: true,
},
headers: {
type: "object",
label: "Headers",
description: "Headers to be sent in the request.",
description: "Headers to be sent in the request",
optional: true,
},
requestBody: {
type: "object",
label: "Request body",
description: "Body of the request.",
description: "Body of the request",
optional: true,
},
},
Expand Down
10 changes: 6 additions & 4 deletions components/close/actions/search-leads/search-leads.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ import utils from "../../common/utils.mjs";
export default {
type: "action",
key: "close-search-leads",
version: "0.1.0",
version: "0.1.1",
name: "Search Leads",
description: "Searching leads with a given field and word, [See the docs](https://developer.close.com/resources/advanced-filtering/)",
description: "Search leads with a given field and word. [See the documentation](https://developer.close.com/resources/advanced-filtering/)",
props: {
close,
field: {
label: "Field",
description: "Field name which will be searched in, e.g. 'name'",
description: "Field name which will be searched. e.g. 'name'",
type: "string",
},
text: {
Expand Down Expand Up @@ -57,7 +57,9 @@ export default {
},
},
});
$.export("$summary", `${response.data.data.length} Leads has been found.`);
$.export("$summary", `${response.data.data.length} Lead${response.data.data.length === 1
? " has"
: "s have"} been found.`);
return response.data;
},
};
4 changes: 2 additions & 2 deletions components/close/actions/update-lead/update-lead.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import utils from "../../common/utils.mjs";
export default {
type: "action",
key: "close-update-lead",
version: "0.1.0",
version: "0.1.1",
name: "Update Lead",
description: "Updates a lead, [See the docs](https://developer.close.com/resources/leads/#update-an-existing-lead)",
description: "Updates a lead. [See the documentation](https://developer.close.com/resources/leads/#update-an-existing-lead)",
props: {
close,
lead: {
Expand Down
18 changes: 9 additions & 9 deletions components/close/close.app.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
},
contacts: {
label: "Contacts",
description: "Please provide an object structure for each row like e.g.:, \n\
description: "Please provide an object structure for each row. e.g.:, \n\
{ \n\
\"name\": \"Gob\",\n\
\"title\": \"Sr. Vice President\",\n\
Expand All @@ -31,7 +31,7 @@ export default {
},
addresses: {
label: "Addresses",
description: "Please provide an object structure for each row like e.g.:,\n\
description: "Please provide an object structure for each row. e.g.:,\n\
{\n\
\"label\": \"business\",\n\
\"address_1\": \"747 Howard St\",\n\
Expand All @@ -46,7 +46,7 @@ export default {
},
moreFields: {
label: "More Fields",
description: "Additional properties not listed as a prop",
description: "Additional properties not listed as props",
type: "object",
optional: true,
},
Expand Down Expand Up @@ -104,7 +104,7 @@ export default {
async createHook(args = {}) {
return this._makeRequest({
method: "POST",
path: "/webhook",
path: "/webhook/",
...args,
});
},
Expand All @@ -114,28 +114,28 @@ export default {
} = {}) {
return this._makeRequest({
method: "DELETE",
path: `/webhook/${hookId}`,
path: `/webhook/${hookId}/`,
...args,
});
},
async listLeads(args = {}) {
return this._makeRequest({
method: "GET",
path: "/lead",
path: "/lead/",
...args,
});
},
async listLeadStatus(args = {}) {
return this._makeRequest({
method: "GET",
path: "/status/lead",
path: "/status/lead/",
...args,
});
},
async createLead(args = {}) {
return this._makeRequest({
method: "POST",
path: "/lead",
path: "/lead/",
...args,
});
},
Expand All @@ -145,7 +145,7 @@ export default {
} = {}) {
return this._makeRequest({
method: "PUT",
path: `/lead/${leadId}`,
path: `/lead/${leadId}/`,
...args,
});
},
Expand Down
8 changes: 4 additions & 4 deletions components/close/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipedream/close",
"version": "0.1.0",
"version": "0.1.1",
"description": "Pipedream Close Components",
"main": "close.app.mjs",
"keywords": [
Expand All @@ -10,11 +10,11 @@
],
"homepage": "https://pipedream.com/apps/close",
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"dependencies": {
"@pipedream/platform": "^1.4.0"
},
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.0.3"
}
}
4 changes: 2 additions & 2 deletions components/close/sources/custom-event/custom-event.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
...common,
key: "close-custom-event",
name: "New Custom Event",
description: "Emit new event when configured type of events triggered, [See all possibilities](https://developer.close.com/resources/event-log/list-of-events/)",
version: "0.1.0",
description: "Emit new event when the configured types of events are triggered. [See all possibilities](https://developer.close.com/resources/event-log/list-of-events/)",
version: "0.1.1",
type: "source",
dedupe: "unique",
props: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ export default {
...common,
key: "close-lead-status-changed",
name: "New Lead Status Change",
description: "Emit new event when a Lead status is changed",
version: "0.1.0",
description: "Emit new event when a Lead's status is changed",
version: "0.1.1",
type: "source",
dedupe: "unique",
methods: {
Expand Down
2 changes: 1 addition & 1 deletion components/close/sources/new-lead/new-lead.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "close-new-lead",
name: "New Lead",
description: "Emit new event when a new Lead is created",
version: "0.1.0",
version: "0.1.1",
type: "source",
dedupe: "unique",
methods: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
key: "close-new-opportunity",
name: "New Opportunity",
description: "Emit new event when a new Opportunity is created",
version: "0.1.0",
version: "0.1.1",
type: "source",
dedupe: "unique",
methods: {
Expand Down
7 changes: 3 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading