Skip to content

Commit 78a8442

Browse files
authored
Merge branch 'master' into issue-12524
2 parents 2b13f6a + 6ab6cae commit 78a8442

File tree

157 files changed

+6408
-1204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+6408
-1204
lines changed

components/aws/actions/eventbridge-send-event/eventbridge-send-event.mjs

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
import aws from "../../aws.app.mjs";
22
import common from "../../common/common-eventbridge.mjs";
3-
import { toSingleLineString } from "../../common/utils.mjs";
43

54
export default {
65
...common,
76
key: "aws-eventbridge-send-event",
8-
name: "EventBridge - Send event to Event Bus",
9-
description: toSingleLineString(`
10-
Sends an event to an EventBridge event bus.
11-
[See docs](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-eventbridge/classes/puteventscommand.html)
12-
`),
13-
version: "0.4.1",
7+
name: "EventBridge - Send Event to Event Bus",
8+
description: "Sends an event to an EventBridge event bus. [See documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/eventbridge/command/PutEventsCommand/)",
9+
version: "0.4.2",
1410
type: "action",
1511
props: {
1612
aws: common.props.aws,
@@ -23,13 +19,19 @@ export default {
2319
],
2420
optional: false,
2521
},
22+
detailType: {
23+
type: "string",
24+
label: "Detail Type",
25+
description: "Free-form string, with a maximum of 128 characters, used to decide what fields to expect in the event detail. Detail, DetailType, and Source are required for EventBridge to successfully send an event to an event bus. If you include event entries in a request that does not include each of those properties, EventBridge fails that entry. If you submit a request in which none of the entries have each of these properties, EventBridge fails the entire request.",
26+
optional: true,
27+
},
2628
},
2729
async run({ $ }) {
2830
const params = {
2931
Entries: [
3032
{
3133
Detail: JSON.stringify(this.eventData),
32-
DetailType: Object.keys(this.eventData).join(" "),
34+
DetailType: this.detailType || Object.keys(this.eventData).join(" "),
3335
EventBusName: this.eventBusName,
3436
Source: "pipedream",
3537
},

components/aws/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/aws",
3-
"version": "0.7.8",
3+
"version": "0.7.9",
44
"description": "Pipedream Aws Components",
55
"main": "aws.app.mjs",
66
"keywords": [
@@ -29,7 +29,7 @@
2929
"@aws-sdk/s3-request-presigner": "^3.609.0",
3030
"@aws-sdk/signature-v4-crt": "^3.731.0",
3131
"@pipedream/helper_functions": "^0.3.6",
32-
"@pipedream/platform": "^1.6.3",
32+
"@pipedream/platform": "^3.0.3",
3333
"adm-zip": "^0.5.10",
3434
"dedent": "^1.5.1",
3535
"mailparser": "^3.6.6",

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: {

0 commit comments

Comments
 (0)