Skip to content

Commit 04e1ae7

Browse files
authored
Merge branch 'master' into issue-15178
2 parents 858cd19 + a8ede75 commit 04e1ae7

File tree

54 files changed

+2027
-205
lines changed

Some content is hidden

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

54 files changed

+2027
-205
lines changed

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",
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: "klipfolio",
3+
app: "battle_net",
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/battle_net/package.json

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

components/dovetail/package.json

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

components/klipfolio/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import app from "../../klipfolio.app.mjs";
2+
3+
export default {
4+
key: "klipfolio-create-datasource",
5+
name: "Create Datasource",
6+
description: "Create a data source. [See the documentation](https://apidocs.klipfolio.com/reference/data-sources#post-datasources)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
name: {
12+
propDefinition: [
13+
app,
14+
"name",
15+
],
16+
},
17+
description: {
18+
propDefinition: [
19+
app,
20+
"description",
21+
],
22+
},
23+
format: {
24+
propDefinition: [
25+
app,
26+
"format",
27+
],
28+
},
29+
connector: {
30+
propDefinition: [
31+
app,
32+
"connector",
33+
],
34+
},
35+
refreshInterval: {
36+
propDefinition: [
37+
app,
38+
"refreshInterval",
39+
],
40+
},
41+
endpointUrl: {
42+
propDefinition: [
43+
app,
44+
"endpointUrl",
45+
],
46+
},
47+
method: {
48+
propDefinition: [
49+
app,
50+
"method",
51+
],
52+
},
53+
additionalProperties: {
54+
propDefinition: [
55+
app,
56+
"additionalProperties",
57+
],
58+
},
59+
},
60+
61+
async run({ $ }) {
62+
const response = await this.app.createDatasource({
63+
$,
64+
data: {
65+
name: this.name,
66+
description: this.description,
67+
format: this.format,
68+
connector: this.connector,
69+
refresh_interval: parseInt(this.refreshInterval, 10),
70+
properties: {
71+
endpoint_url: this.endpointUrl,
72+
method: this.method,
73+
...this.additionalProperties,
74+
},
75+
},
76+
});
77+
78+
$.export("$summary", `Successfully created Datasource named '${this.name}'`);
79+
80+
return response;
81+
},
82+
};
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import app from "../../klipfolio.app.mjs";
2+
3+
export default {
4+
key: "klipfolio-delete-datasource",
5+
name: "Delete Datasource",
6+
description: "Delete the data source associated with a specific data source ID. [See the documentation](https://apidocs.klipfolio.com/reference/data-sources#delete-datasourcesid)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
datasourceId: {
12+
propDefinition: [
13+
app,
14+
"datasourceId",
15+
],
16+
},
17+
},
18+
19+
async run({ $ }) {
20+
const response = await this.app.deleteDatasource({
21+
$,
22+
datasourceId: this.datasourceId,
23+
});
24+
25+
$.export("$summary", `Successfully deleted datasource with ID: ${this.datasourceId}`);
26+
27+
return response;
28+
},
29+
};
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import app from "../../klipfolio.app.mjs";
2+
3+
export default {
4+
key: "klipfolio-update-datasource",
5+
name: "Update Datasource",
6+
description: "Update the specified data source. [See the documentation](https://apidocs.klipfolio.com/reference/data-sources#put-datasourcesid)",
7+
version: "0.0.1",
8+
type: "action",
9+
props: {
10+
app,
11+
datasourceId: {
12+
propDefinition: [
13+
app,
14+
"datasourceId",
15+
],
16+
},
17+
name: {
18+
propDefinition: [
19+
app,
20+
"name",
21+
],
22+
},
23+
description: {
24+
propDefinition: [
25+
app,
26+
"description",
27+
],
28+
},
29+
refreshInterval: {
30+
propDefinition: [
31+
app,
32+
"refreshInterval",
33+
],
34+
},
35+
},
36+
37+
async run({ $ }) {
38+
const response = await this.app.updateDatasource({
39+
$,
40+
datasourceId: this.datasourceId,
41+
data: {
42+
name: this.name,
43+
description: this.description,
44+
refresh_interval: parseInt(this.refreshInterval, 10),
45+
},
46+
});
47+
48+
$.export("$summary", `Successfully updated Datasource named '${this.name}'`);
49+
50+
return response;
51+
},
52+
};

0 commit comments

Comments
 (0)