Skip to content

Commit 4f6c319

Browse files
authored
Merge branch 'master' into issue-13394
2 parents 52882b8 + 96cb5f7 commit 4f6c319

File tree

187 files changed

+5422
-3690
lines changed

Some content is hidden

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

187 files changed

+5422
-3690
lines changed

components/airtable_oauth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/airtable_oauth",
3-
"version": "0.4.0",
3+
"version": "0.4.1",
44
"description": "Pipedream Airtable (OAuth) Components",
55
"main": "airtable_oauth.app.mjs",
66
"keywords": [

components/airtable_oauth/sources/new-or-modified-records-in-view/new-or-modified-records-in-view.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ export default {
66
name: "New or Modified Records in View",
77
description: "Emit new event for each new or modified record in a view",
88
key: "airtable_oauth-new-or-modified-records-in-view",
9-
version: "0.0.8",
9+
version: "0.0.9",
1010
type: "source",
11-
dedupe: "unique",
1211
props: {
1312
...base.props,
1413
tableId: {

components/data_stores/actions/delete-single-record/delete-single-record.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "data_stores-delete-single-record",
55
name: "Delete a single record",
66
description: "Delete a single record in your [Pipedream Data Store](https://pipedream.com/data-stores/).",
7-
version: "0.0.9",
7+
version: "0.0.10",
88
type: "action",
99
props: {
1010
app,
@@ -31,9 +31,11 @@ export default {
3131
if (record) {
3232
await this.dataStore.delete(this.key);
3333
$.export("$summary", `Successfully deleted the record for key, \`${this.key}\`.`);
34+
$.export("key", this.key);
3435
return record;
3536
}
3637

3738
$.export("$summary", `No record found for key, \`${this.key}\`. No data was deleted.`);
39+
$.export("key", this.key);
3840
},
3941
};

components/data_stores/actions/get-record-or-create/get-record-or-create.mjs

Lines changed: 28 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "data_stores-get-record-or-create",
55
name: "Get record (or create one if not found)",
66
description: "Get a single record in your [Pipedream Data Store](https://pipedream.com/data-stores/) or create one if it doesn't exist.",
7-
version: "0.0.11",
7+
version: "0.0.13",
88
type: "action",
99
props: {
1010
app,
@@ -46,37 +46,41 @@ export default {
4646
},
4747
async run({ $ }) {
4848
const record = await this.dataStore.get(this.key);
49+
let summary, response;
4950

5051
if (record !== undefined) {
51-
$.export("$summary", `Found data for the key, \`${this.key}\`.`);
52-
return record;
52+
summary = `Found data for the key, \`${this.key}\`.`;
53+
response = record;
5354
}
54-
55-
if (!this.app.shouldAddRecord(this.addRecordIfNotFound)) {
56-
$.export("$summary", `No data found for key, \`${this.key}\`.`);
57-
return;
55+
else if (!this.app.shouldAddRecord(this.addRecordIfNotFound)) {
56+
summary = `No data found for key, \`${this.key}\`.`;
5857
}
58+
else {
59+
const parsedValue = this.app.parseValue(this.value);
5960

60-
const parsedValue = this.app.parseValue(this.value);
61+
if (this.ttl) {
62+
await this.dataStore.set(this.key, parsedValue, {
63+
ttl: this.ttl,
64+
});
65+
summary = `Successfully added a new record with the key, \`${this.key}\` (expires in ${this.app.formatTtl(this.ttl)}).`;
66+
} else {
67+
await this.dataStore.set(this.key, parsedValue);
68+
summary = `Successfully added a new record with the key, \`${this.key}\`.`;
69+
}
6170

62-
if (this.ttl) {
63-
await this.dataStore.set(this.key, parsedValue, {
64-
ttl: this.ttl,
65-
});
66-
$.export("$summary", `Successfully added a new record with the key, \`${this.key}\` (expires in ${this.app.formatTtl(this.ttl)}).`);
67-
} else {
68-
await this.dataStore.set(this.key, parsedValue);
69-
$.export("$summary", `Successfully added a new record with the key, \`${this.key}\`.`);
70-
}
71+
response = parsedValue;
7172

72-
// Include TTL information in the return value if it was set
73-
if (this.ttl) {
74-
return {
75-
value: parsedValue,
76-
ttl: this.ttl,
77-
};
73+
// Include TTL information in the return value if it was set
74+
if (this.ttl) {
75+
response = {
76+
value: parsedValue,
77+
ttl: this.ttl,
78+
};
79+
}
7880
}
7981

80-
return parsedValue;
82+
$.export("$summary", summary);
83+
$.export("key", this.key);
84+
return response;
8185
},
8286
};

components/data_stores/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/data_stores",
3-
"version": "0.1.6",
3+
"version": "0.1.8",
44
"description": "Pipedream Data Stores Components",
55
"main": "data_stores.app.js",
66
"keywords": [
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: "taxjar",
3+
app: "extracta_ai",
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/extracta_ai",
3+
"version": "0.0.1",
4+
"description": "Pipedream Extracta.ai Components",
5+
"main": "extracta_ai.app.mjs",
6+
"keywords": [
7+
"pipedream",
8+
"extracta_ai"
9+
],
10+
"homepage": "https://pipedream.com/apps/extracta_ai",
11+
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
12+
"publishConfig": {
13+
"access": "public"
14+
}
15+
}

0 commit comments

Comments
 (0)