Skip to content

Commit 3afd891

Browse files
authored
Configure file stash sync: Adobe PDF Services-Guru (#17361)
* Add dir props to relevant components for apps starting with 'A' to 'G' The 'dir' prop indicates that a stash ID should be passed when running these actions via the Connect API. This allows files written to the ephemeral /tmp directory in one action to be read by another, separately executed action since both can sync /tmp with the same File Stash directory. * Add loader for component app prop check When a component imported a package with pinned version, the "Check component app prop" PR check failed because Node.js was unable to resolve the package version correctly. This commit adds a custom loader that strips the version from the imported package, allowing the check to pass. For example, if the component imports `got@13.0.0`, the loader will transform the import to `got`.
1 parent b4cfd53 commit 3afd891

File tree

145 files changed

+636
-156
lines changed

Some content is hidden

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

145 files changed

+636
-156
lines changed

.github/workflows/pull-request-checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ jobs:
101101
- name: Check component keys
102102
run: node scripts/findBadKeys.js ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
103103
- name: Check component app prop
104-
run: node scripts/checkComponentAppProp.js ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
104+
run: node --experimental-loader ./scripts/version-strip-loader.mjs scripts/checkComponentAppProp.js ${{ steps.changed_files.outputs.added_modified }} ${{ steps.changed_files.outputs.renamed }}
105105
- name: Check for duplicate component keys
106106
run: node scripts/findDuplicateKeys.js

components/adobe_pdf_services/actions/extract-text-and-tables/extract-text-and-tables.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "adobe_pdf_services-extract-text-and-tables",
55
name: "Extract Text and Tables From PDF",
66
description: "Extracts text and table element information from a PDF document and returns a JSON file along with table data in XLSX format within a .zip file saved to the `/tmp` directory. [See the documentation](https://developer.adobe.com/document-services/docs/overview/pdf-extract-api/howtos/extract-api/#extract-text-and-tables)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
adobe,
@@ -20,6 +20,11 @@ export default {
2020
"filename",
2121
],
2222
},
23+
syncDir: {
24+
type: "dir",
25+
accessMode: "read-write",
26+
sync: true,
27+
},
2328
},
2429
async run({ $ }) {
2530
await this.adobe.extractPDF(this.filePath, "tables", this.filename);

components/adobe_pdf_services/actions/extract-text-from-pdf/extract-text-from-pdf.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
key: "adobe_pdf_services-extract-text-from-pdf",
55
name: "Extract Text From PDF",
66
description: "Extracts text element information from a PDF document and returns a JSON file within a .zip file saved to the `/tmp` directory. [See the documentation](https://developer.adobe.com/document-services/docs/overview/pdf-extract-api/howtos/extract-api/#extract-text-from-a-pdf)",
7-
version: "0.0.2",
7+
version: "0.0.3",
88
type: "action",
99
props: {
1010
adobe,
@@ -20,6 +20,11 @@ export default {
2020
"filename",
2121
],
2222
},
23+
syncDir: {
24+
type: "dir",
25+
accessMode: "read-write",
26+
sync: true,
27+
},
2328
},
2429
async run({ $ }) {
2530
await this.adobe.extractPDF(this.filePath, "text", this.filename);

components/adobe_pdf_services/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/adobe_pdf_services",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Pipedream Adobe PDF Services Components",
55
"main": "adobe_pdf_services.app.mjs",
66
"keywords": [

components/airparser/actions/upload-document-parse/upload-document-parse.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default {
66
key: "airparser-upload-document-parse",
77
name: "Upload Document and Parse",
88
description: "Uploads a document into the inbox for data extraction. [See the documentation](https://help.airparser.com/public-api/public-api)",
9-
version: "0.1.0",
9+
version: "0.1.1",
1010
type: "action",
1111
props: {
1212
airparser,
@@ -27,6 +27,12 @@ export default {
2727
description: "The user-defined extraction schema for data extraction",
2828
optional: true,
2929
},
30+
syncDir: {
31+
type: "dir",
32+
accessMode: "read",
33+
sync: true,
34+
optional: true,
35+
},
3036
},
3137
async run({ $ }) {
3238
const {

components/airparser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/airparser",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Pipedream Airparser Components",
55
"main": "airparser.app.mjs",
66
"keywords": [

components/akeneo/actions/create-a-new-product-media-file/create-a-new-product-media-file.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import FormData from "form-data";
77
export default {
88
type: "action",
99
key: "akeneo-create-a-new-product-media-file",
10-
version: "0.1.1",
10+
version: "0.1.2",
1111
name: "Create A New Product Media File",
1212
description: "Allows you to create a new media file and associate it to an attribute value of a given product or product model. [See the docs](https://api.akeneo.com/api-reference.html#post_media_files)",
1313
props: {
@@ -35,6 +35,12 @@ export default {
3535
label: "File Path or URL",
3636
description: "The file to be uploaded. Provide either a file URL or a path to a file in the `/tmp` directory (for example, `/tmp/myFile.txt`)",
3737
},
38+
syncDir: {
39+
type: "dir",
40+
accessMode: "read",
41+
sync: true,
42+
optional: true,
43+
},
3844
},
3945
async run ({ $ }) {
4046
if (!this.productId && !this.productModelCode) {

components/akeneo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/akeneo",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Pipedream Akeneo Components",
55
"main": "akeneo.app.mjs",
66
"keywords": [

components/alttext_ai/actions/generate-alt-text/generate-alt-text.mjs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
name: "Generate Alt Text",
1010
description:
1111
"Generates a descriptive alt text for a given image. [See the documentation](https://alttext.ai/apidocs#tag/Images/operation/create-image)",
12-
version: "0.1.0",
12+
version: "0.1.1",
1313
type: "action",
1414
props: {
1515
alttextAi,
@@ -61,6 +61,12 @@ export default {
6161
default: "en",
6262
optional: true,
6363
},
64+
syncDir: {
65+
type: "dir",
66+
accessMode: "read",
67+
sync: true,
68+
optional: true,
69+
},
6470
},
6571
async run({ $ }) {
6672
const {

components/alttext_ai/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/alttext_ai",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "Pipedream AltText.ai Components",
55
"main": "alttext_ai.app.mjs",
66
"keywords": [

0 commit comments

Comments
 (0)