Skip to content

Commit e320141

Browse files
authored
Close - Bug Fix (#16841)
* updates, fix paths * pnpm-lock.yaml * fix typo
1 parent 3a7588b commit e320141

File tree

11 files changed

+38
-36
lines changed

11 files changed

+38
-36
lines changed

components/close/actions/create-lead/create-lead.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import utils from "../../common/utils.mjs";
44
export default {
55
type: "action",
66
key: "close-create-lead",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
name: "Create Lead",
9-
description: "Creates a lead, [See the docs](https://developer.close.com/resources/leads/#create-a-new-lead)",
9+
description: "Creates a lead. [See the documentation](https://developer.close.com/resources/leads/#create-a-new-lead)",
1010
props: {
1111
close,
1212
name: {

components/close/actions/custom-action/custom-action.mjs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import utils from "../../common/utils.mjs";
44
export default {
55
key: "close-custom-action",
66
name: "Custom Action",
7-
description: "Makes an aribitrary call to Close API, [See](https://developer.close.com/) for all options.",
8-
version: "0.1.0",
7+
description: "Makes an arbitrary call to the Close API. [See the documentation](https://developer.close.com/) for all options.",
8+
version: "0.1.1",
99
type: "action",
1010
props: {
1111
close,
1212
requestMethod: {
1313
type: "string",
1414
label: "Request Method",
15-
description: "Http method to use in the request.",
15+
description: "Http method to use in the request",
1616
options: [
1717
"GET",
1818
"POST",
@@ -24,24 +24,24 @@ export default {
2424
relativeUrl: {
2525
type: "string",
2626
label: "Relative url",
27-
description: "A path relative to Close API, to send the request against, e.g. `/lead`",
27+
description: "A path relative to Close API to send the request against. e.g. `/lead`",
2828
},
2929
queryString: {
3030
type: "string",
3131
label: "Query string",
32-
description: "Query string of the request.",
32+
description: "Query string of the request",
3333
optional: true,
3434
},
3535
headers: {
3636
type: "object",
3737
label: "Headers",
38-
description: "Headers to be sent in the request.",
38+
description: "Headers to be sent in the request",
3939
optional: true,
4040
},
4141
requestBody: {
4242
type: "object",
4343
label: "Request body",
44-
description: "Body of the request.",
44+
description: "Body of the request",
4545
optional: true,
4646
},
4747
},

components/close/actions/search-leads/search-leads.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import utils from "../../common/utils.mjs";
44
export default {
55
type: "action",
66
key: "close-search-leads",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
name: "Search Leads",
9-
description: "Searching leads with a given field and word, [See the docs](https://developer.close.com/resources/advanced-filtering/)",
9+
description: "Search leads with a given field and word. [See the documentation](https://developer.close.com/resources/advanced-filtering/)",
1010
props: {
1111
close,
1212
field: {
1313
label: "Field",
14-
description: "Field name which will be searched in, e.g. 'name'",
14+
description: "Field name which will be searched. e.g. 'name'",
1515
type: "string",
1616
},
1717
text: {
@@ -57,7 +57,9 @@ export default {
5757
},
5858
},
5959
});
60-
$.export("$summary", `${response.data.data.length} Leads has been found.`);
60+
$.export("$summary", `${response.data.data.length} Lead${response.data.data.length === 1
61+
? " has"
62+
: "s have"} been found.`);
6163
return response.data;
6264
},
6365
};

components/close/actions/update-lead/update-lead.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import utils from "../../common/utils.mjs";
44
export default {
55
type: "action",
66
key: "close-update-lead",
7-
version: "0.1.0",
7+
version: "0.1.1",
88
name: "Update Lead",
9-
description: "Updates a lead, [See the docs](https://developer.close.com/resources/leads/#update-an-existing-lead)",
9+
description: "Updates a lead. [See the documentation](https://developer.close.com/resources/leads/#update-an-existing-lead)",
1010
props: {
1111
close,
1212
lead: {

components/close/close.app.mjs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
},
2020
contacts: {
2121
label: "Contacts",
22-
description: "Please provide an object structure for each row like e.g.:, \n\
22+
description: "Please provide an object structure for each row. e.g.:, \n\
2323
{ \n\
2424
\"name\": \"Gob\",\n\
2525
\"title\": \"Sr. Vice President\",\n\
@@ -31,7 +31,7 @@ export default {
3131
},
3232
addresses: {
3333
label: "Addresses",
34-
description: "Please provide an object structure for each row like e.g.:,\n\
34+
description: "Please provide an object structure for each row. e.g.:,\n\
3535
{\n\
3636
\"label\": \"business\",\n\
3737
\"address_1\": \"747 Howard St\",\n\
@@ -46,7 +46,7 @@ export default {
4646
},
4747
moreFields: {
4848
label: "More Fields",
49-
description: "Additional properties not listed as a prop",
49+
description: "Additional properties not listed as props",
5050
type: "object",
5151
optional: true,
5252
},
@@ -104,7 +104,7 @@ export default {
104104
async createHook(args = {}) {
105105
return this._makeRequest({
106106
method: "POST",
107-
path: "/webhook",
107+
path: "/webhook/",
108108
...args,
109109
});
110110
},
@@ -114,28 +114,28 @@ export default {
114114
} = {}) {
115115
return this._makeRequest({
116116
method: "DELETE",
117-
path: `/webhook/${hookId}`,
117+
path: `/webhook/${hookId}/`,
118118
...args,
119119
});
120120
},
121121
async listLeads(args = {}) {
122122
return this._makeRequest({
123123
method: "GET",
124-
path: "/lead",
124+
path: "/lead/",
125125
...args,
126126
});
127127
},
128128
async listLeadStatus(args = {}) {
129129
return this._makeRequest({
130130
method: "GET",
131-
path: "/status/lead",
131+
path: "/status/lead/",
132132
...args,
133133
});
134134
},
135135
async createLead(args = {}) {
136136
return this._makeRequest({
137137
method: "POST",
138-
path: "/lead",
138+
path: "/lead/",
139139
...args,
140140
});
141141
},
@@ -145,7 +145,7 @@ export default {
145145
} = {}) {
146146
return this._makeRequest({
147147
method: "PUT",
148-
path: `/lead/${leadId}`,
148+
path: `/lead/${leadId}/`,
149149
...args,
150150
});
151151
},

components/close/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/close",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Close Components",
55
"main": "close.app.mjs",
66
"keywords": [
@@ -10,11 +10,11 @@
1010
],
1111
"homepage": "https://pipedream.com/apps/close",
1212
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
13-
"dependencies": {
14-
"@pipedream/platform": "^1.4.0"
15-
},
1613
"gitHead": "e12480b94cc03bed4808ebc6b13e7fdb3a1ba535",
1714
"publishConfig": {
1815
"access": "public"
16+
},
17+
"dependencies": {
18+
"@pipedream/platform": "^3.0.3"
1919
}
2020
}

components/close/sources/custom-event/custom-event.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default {
44
...common,
55
key: "close-custom-event",
66
name: "New Custom Event",
7-
description: "Emit new event when configured type of events triggered, [See all possibilities](https://developer.close.com/resources/event-log/list-of-events/)",
8-
version: "0.1.0",
7+
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/)",
8+
version: "0.1.1",
99
type: "source",
1010
dedupe: "unique",
1111
props: {

components/close/sources/lead-status-changed/lead-status-changed.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ export default {
44
...common,
55
key: "close-lead-status-changed",
66
name: "New Lead Status Change",
7-
description: "Emit new event when a Lead status is changed",
8-
version: "0.1.0",
7+
description: "Emit new event when a Lead's status is changed",
8+
version: "0.1.1",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

components/close/sources/new-lead/new-lead.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "close-new-lead",
66
name: "New Lead",
77
description: "Emit new event when a new Lead is created",
8-
version: "0.1.0",
8+
version: "0.1.1",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

components/close/sources/new-opportunity/new-opportunity.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "close-new-opportunity",
66
name: "New Opportunity",
77
description: "Emit new event when a new Opportunity is created",
8-
version: "0.1.0",
8+
version: "0.1.1",
99
type: "source",
1010
dedupe: "unique",
1111
methods: {

pnpm-lock.yaml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)