Skip to content

Commit 6cd5675

Browse files
Merge branch 'master' into danny/connect-docs-update
2 parents 224943d + cf980fd commit 6cd5675

File tree

220 files changed

+6680
-405
lines changed

Some content is hidden

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

220 files changed

+6680
-405
lines changed
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: "messagebird",
3+
app: "alteryx_analytics_cloud",
64
propDefinitions: {},
75
methods: {
86
// this.$auth contains connected account data
97
authKeys() {
108
console.log(Object.keys(this.$auth));
119
},
1210
},
13-
});
11+
};
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pipedream/alteryx_analytics_cloud",
3+
"version": "0.0.1",
4+
"description": "Pipedream Alteryx Analytics Cloud Components",
5+
"main": "alteryx_analytics_cloud.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"alteryx_analytics_cloud"
9+
],
10+
"homepage": "https://pipedream.com/apps/alteryx_analytics_cloud",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

components/apaleo/apaleo.app.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "apaleo",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/apaleo/package.json

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

components/aws/actions/s3-download-file-to-tmp/s3-download-file-to-tmp.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ import { pipeline } from "stream/promises";
22
import fs from "fs";
33
import common from "../../common/common-s3.mjs";
44
import { toSingleLineString } from "../../common/utils.mjs";
5+
import "@aws-sdk/signature-v4-crt";
56

67
export default {
78
...common,
89
key: "aws-s3-download-file-to-tmp",
910
name: "S3 - Download File to /tmp",
1011
description: toSingleLineString(`
1112
Downloads a file from S3 to the /tmp directory.
12-
[See the docs](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html)
13+
[See the documentation](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html)
1314
`),
14-
version: "0.0.1",
15+
version: "0.0.2",
1516
type: "action",
1617
props: {
1718
aws: common.props.aws,

components/aws/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/aws",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Pipedream Aws Components",
55
"main": "aws.app.mjs",
66
"keywords": [
@@ -26,6 +26,7 @@
2626
"@aws-sdk/client-ssm": "^3.58.0",
2727
"@aws-sdk/client-sts": "^3.58.0",
2828
"@aws-sdk/s3-request-presigner": "^3.609.0",
29+
"@aws-sdk/signature-v4-crt": "^3.731.0",
2930
"@pipedream/helper_functions": "^0.3.6",
3031
"@pipedream/platform": "^1.6.3",
3132
"adm-zip": "^0.5.10",

components/bluesky/actions/create-post/create-post.mjs

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
key: "bluesky-create-post",
66
name: "Create Post",
77
description: "Creates a new post on Bluesky. [See the documentation](https://docs.bsky.app/docs/api/com-atproto-repo-create-record).",
8-
version: "0.0.1",
8+
version: "0.0.2",
99
type: "action",
1010
props: {
1111
app,
@@ -15,6 +15,40 @@ export default {
1515
description: "The text content of the post.",
1616
},
1717
},
18+
methods: {
19+
parseUrls(text) {
20+
const spans = [];
21+
const urlRegex = /(?:[$|\W])(https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*[-a-zA-Z0-9@%_+~#//=])?)/g;
22+
23+
let match;
24+
while ((match = urlRegex.exec(text)) !== null) {
25+
spans.push({
26+
start: match.index + 1,
27+
end: urlRegex.lastIndex,
28+
url: match[1],
29+
});
30+
}
31+
return spans;
32+
},
33+
parseFacets(text) {
34+
const facets = [];
35+
for (const link of this.parseUrls(text)) {
36+
facets.push({
37+
index: {
38+
byteStart: link["start"],
39+
byteEnd: link["end"],
40+
},
41+
features: [
42+
{
43+
["$type"]: "app.bsky.richtext.facet#link",
44+
uri: link["url"],
45+
},
46+
],
47+
});
48+
}
49+
return facets;
50+
},
51+
},
1852
async run({ $ }) {
1953
const {
2054
app,
@@ -28,6 +62,7 @@ export default {
2862
record: {
2963
["$type"]: constants.RESOURCE_TYPE.POST,
3064
text,
65+
facets: this.parseFacets(text),
3166
createdAt: new Date().toISOString(),
3267
},
3368
},

components/bluesky/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/bluesky",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Pipedream Bluesky Components",
55
"main": "bluesky.app.mjs",
66
"keywords": [
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
export default {
2+
type: "app",
3+
app: "bluesnap",
4+
propDefinitions: {},
5+
methods: {
6+
// this.$auth contains connected account data
7+
authKeys() {
8+
console.log(Object.keys(this.$auth));
9+
},
10+
},
11+
};

components/bluesnap/package.json

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

0 commit comments

Comments
 (0)