Skip to content

Commit bb694e8

Browse files
committed
Merge remote-tracking branch 'origin/master' into connect/workflow-sdk-docs
2 parents b83ada2 + 31906cf commit bb694e8

File tree

114 files changed

+3323
-158
lines changed

Some content is hidden

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

114 files changed

+3323
-158
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
import aiTextraction from "../../ai_textraction.app.mjs";
2+
3+
export default {
4+
key: "ai_textraction-extract-data",
5+
name: "Extract Data",
6+
description: "Extract custom data from text using AI Textraction. [See the documentation](https://rapidapi.com/textractionai/api/ai-textraction)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
aiTextraction,
11+
text: {
12+
type: "string",
13+
label: "Text",
14+
description: "The text to extract entities from",
15+
},
16+
entities: {
17+
type: "string[]",
18+
label: "Entities",
19+
description: "An array of entity names to extract from the text. Example: `first_name`",
20+
reloadProps: true,
21+
},
22+
},
23+
async additionalProps() {
24+
const props = {};
25+
if (!this.entities?.length) {
26+
return props;
27+
}
28+
for (const entity of this.entities) {
29+
props[`${entity}_type`] = {
30+
type: "string",
31+
label: `${entity} - Type`,
32+
description: `The type of results to return for ${entity}`,
33+
options: [
34+
"string",
35+
"integer",
36+
"array[string]",
37+
"array[integer]",
38+
],
39+
};
40+
props[`${entity}_description`] = {
41+
type: "string",
42+
label: `${entity} - Description`,
43+
description: `Description of the entity ${entity}. Example: \`First name of the person\``,
44+
};
45+
}
46+
return props;
47+
},
48+
async run({ $ }) {
49+
const entities = this.entities.map((entity) => ({
50+
var_name: entity,
51+
type: this[`${entity}_type`],
52+
description: this[`${entity}_description`],
53+
}));
54+
55+
const response = await this.aiTextraction.extractData({
56+
$,
57+
data: {
58+
text: this.text,
59+
entities,
60+
},
61+
});
62+
63+
$.export("$summary", "Successfully extracted data from text");
64+
return response;
65+
},
66+
};
Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,32 @@
1+
import { axios } from "@pipedream/platform";
2+
13
export default {
24
type: "app",
35
app: "ai_textraction",
4-
propDefinitions: {},
56
methods: {
6-
// this.$auth contains connected account data
7-
authKeys() {
8-
console.log(Object.keys(this.$auth));
7+
_baseUrl() {
8+
return "https://ai-textraction.p.rapidapi.com";
9+
},
10+
_makeRequest({
11+
$ = this,
12+
path,
13+
...opts
14+
}) {
15+
return axios($, {
16+
url: `${this._baseUrl()}${path}`,
17+
headers: {
18+
"x-rapidapi-host": "ai-textraction.p.rapidapi.com",
19+
"x-rapidapi-key": `${this.$auth.rapid_key}`,
20+
},
21+
...opts,
22+
});
23+
},
24+
extractData(opts = {}) {
25+
return this._makeRequest({
26+
method: "POST",
27+
path: "/textraction",
28+
...opts,
29+
});
930
},
1031
},
1132
};

components/ai_textraction/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/ai_textraction",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "Pipedream AI Textraction Components",
55
"main": "ai_textraction.app.mjs",
66
"keywords": [
@@ -11,5 +11,8 @@
1111
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
1212
"publishConfig": {
1313
"access": "public"
14+
},
15+
"dependencies": {
16+
"@pipedream/platform": "^3.0.3"
1417
}
15-
}
18+
}
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
import { defineApp } from "@pipedream/types";
2-
3-
export default defineApp({
1+
export default {
42
type: "app",
5-
app: "niceboard",
3+
app: "bippybox",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};

components/bippybox/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/bippybox",
3+
"version": "0.0.1",
4+
"description": "Pipedream BippyBox Components",
5+
"main": "bippybox.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"bippybox"
9+
],
10+
"homepage": "https://pipedream.com/apps/bippybox",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/calendly_v2/actions/create-invitee-no-show/create-invitee-no-show.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "calendly_v2-create-invitee-no-show",
66
name: "Create Invitee No Show",
77
description: "Marks an Invitee as a No Show in Calendly. [See the documentation](https://calendly.stoplight.io/docs/api-docs/cebd8c3170790-create-invitee-no-show).",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
calendly,

components/calendly_v2/actions/create-scheduling-link/create-scheduling-link.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import calendly from "../../calendly_v2.app.mjs";
33
export default {
44
key: "calendly_v2-create-scheduling-link",
55
name: "Create a Scheduling Link",
6-
description: "Creates a single-use scheduling link. [See the docs](https://calendly.stoplight.io/docs/api-docs/b3A6MzQyNTM0OQ-create-single-use-scheduling-link)",
7-
version: "0.0.3",
6+
description: "Creates a single-use scheduling link. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6MzQyNTM0OQ-create-single-use-scheduling-link)",
7+
version: "0.0.4",
88
type: "action",
99
props: {
1010
calendly,

components/calendly_v2/actions/get-event/get-event.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import calendly from "../../calendly_v2.app.mjs";
55
export default {
66
key: "calendly_v2-get-event",
77
name: "Get Event",
8-
description: "Gets information about an Event associated with a URI. [See docs here](https://developer.calendly.com/api-docs/e2f95ebd44914-get-event).",
9-
version: "0.1.3",
8+
description: "Gets information about an Event associated with a URI. [See the documentation](https://developer.calendly.com/api-docs/e2f95ebd44914-get-event).",
9+
version: "0.1.4",
1010
type: "action",
1111
props: {
1212
calendly,

components/calendly_v2/actions/list-event-invitees/list-event-invitees.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import calendly from "../../calendly_v2.app.mjs";
33
export default {
44
key: "calendly_v2-list-event-invitees",
55
name: "List Event Invitees",
6-
description: "List invitees for an event. [See the docs](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEx-list-event-invitees)",
7-
version: "0.0.3",
6+
description: "List invitees for an event. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEx-list-event-invitees)",
7+
version: "0.0.4",
88
type: "action",
99
props: {
1010
calendly,

components/calendly_v2/actions/list-events/list-events.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import calendly from "../../calendly_v2.app.mjs";
33
export default {
44
key: "calendly_v2-list-events",
55
name: "List Events",
6-
description: "List events for an user. [See the docs](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEy-list-events)",
7-
version: "0.0.3",
6+
description: "List events for an user. [See the documentation](https://calendly.stoplight.io/docs/api-docs/b3A6NTkxNDEy-list-events)",
7+
version: "0.0.4",
88
type: "action",
99
props: {
1010
calendly,
@@ -22,7 +22,7 @@ export default {
2222
organization: c.organization,
2323
}),
2424
],
25-
description: "Returns events for a specified user, or leave blank for your own events",
25+
description: "Returns events for a specified user",
2626
optional: true,
2727
},
2828
inviteeEmail: {
@@ -52,7 +52,9 @@ export default {
5252
},
5353
},
5454
async run({ $ }) {
55-
const params = {};
55+
const params = {
56+
organization: this.organization,
57+
};
5658
if (this.inviteeEmail) params.invitee_email = this.inviteeEmail;
5759
if (this.status) params.status = this.status;
5860
if (this.paginate) params.paginate = this.paginate;

0 commit comments

Comments
 (0)