-
Notifications
You must be signed in to change notification settings - Fork 5.5k
[Components] taggun #10912 #18508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[Components] taggun #10912 #18508
Changes from 4 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c90e8e6
Added actions
lcaresia 19821e2
Added actions
lcaresia b4b10c4
Added actions
lcaresia dbe4fde
Merge branch 'master' into issue-10912
lcaresia 4b3098b
Added actions
lcaresia 8acf08a
Merge branch 'master' into issue-10912
lcaresia 87ded5c
Merge branch 'master' into issue-10912
lcaresia 7da1c16
Added actions
lcaresia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
components/taggun/actions/extract-data-from-url/extract-data-from-url.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| import app from "../../taggun.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "taggun-extract-data-from-url", | ||
| name: "Extract Data from URL", | ||
| description: "Provide a URL for a receipt or invoice to extract clear and basic data. [See the documentation](https://developers.taggun.io/reference/url-simple)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| app, | ||
| url: { | ||
| propDefinition: [ | ||
| app, | ||
| "url", | ||
| ], | ||
| }, | ||
| referenceId: { | ||
| propDefinition: [ | ||
| app, | ||
| "referenceId", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| refresh: { | ||
| propDefinition: [ | ||
| app, | ||
| "refresh", | ||
| ], | ||
| }, | ||
| near: { | ||
| propDefinition: [ | ||
| app, | ||
| "near", | ||
| ], | ||
| }, | ||
| language: { | ||
| propDefinition: [ | ||
| app, | ||
| "language", | ||
| ], | ||
| }, | ||
| incognito: { | ||
| propDefinition: [ | ||
| app, | ||
| "incognito", | ||
| ], | ||
| }, | ||
| verbose: { | ||
| propDefinition: [ | ||
| app, | ||
| "verbose", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.app.urlDataExtraction({ | ||
| $, | ||
| verbose: this.verbose, | ||
| data: { | ||
| url: this.url, | ||
| referenceId: this.referenceId, | ||
| refresh: this.refresh, | ||
| near: this.near, | ||
| language: this.language, | ||
| incognito: this.incognito, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully sent the image for processing"); | ||
| return response; | ||
| }, | ||
| }; |
56 changes: 56 additions & 0 deletions
56
components/taggun/actions/submit-feedback/submit-feedback.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import app from "../../taggun.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "taggun-submit-feedback", | ||
| name: "Submit Feedback", | ||
| description: "Add manually verified receipt data to a given receipt for feedback and training purposes. [See the documentation](https://developers.taggun.io/reference/improve-your-restuls)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| app, | ||
| referenceId: { | ||
| propDefinition: [ | ||
| app, | ||
| "referenceId", | ||
| ], | ||
| }, | ||
| totalAmount: { | ||
| propDefinition: [ | ||
| app, | ||
| "totalAmount", | ||
| ], | ||
| }, | ||
| taxAmount: { | ||
| propDefinition: [ | ||
| app, | ||
| "taxAmount", | ||
| ], | ||
| }, | ||
| merchantName: { | ||
| propDefinition: [ | ||
| app, | ||
| "merchantName", | ||
| ], | ||
| }, | ||
| currencyCode: { | ||
| propDefinition: [ | ||
| app, | ||
| "currencyCode", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.app.submitFeedback({ | ||
| $, | ||
| data: { | ||
| referenceId: this.referenceId, | ||
| totalAmount: this.totalAmount, | ||
| taxAmount: this.taxAmount, | ||
| merchantName: this.merchantName, | ||
| currencyCode: this.currencyCode, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully submitted feedback"); | ||
| return response; | ||
| }, | ||
| }; | ||
64 changes: 64 additions & 0 deletions
64
components/taggun/actions/url-data-extraction/url-data-extraction.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| import app from "../../taggun.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "taggun-url-data-extraction", | ||
| name: "URL Data Extraction", | ||
lcaresia marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| description: "Provide a URL for a receipt or invoice to extract clear and basic data. [See the documentation](https://developers.taggun.io/reference/url-simple)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| app, | ||
| url: { | ||
| propDefinition: [ | ||
| app, | ||
| "url", | ||
| ], | ||
| }, | ||
| referenceId: { | ||
| propDefinition: [ | ||
| app, | ||
| "referenceId", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| refresh: { | ||
| propDefinition: [ | ||
| app, | ||
| "refresh", | ||
| ], | ||
| }, | ||
| near: { | ||
| propDefinition: [ | ||
| app, | ||
| "near", | ||
| ], | ||
| }, | ||
| language: { | ||
| propDefinition: [ | ||
| app, | ||
| "language", | ||
| ], | ||
| }, | ||
| incognito: { | ||
| propDefinition: [ | ||
| app, | ||
| "incognito", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.app.urlDataExtraction({ | ||
| $, | ||
| data: { | ||
| url: this.url, | ||
| referenceId: this.referenceId, | ||
| refresh: this.refresh, | ||
| near: this.near, | ||
| language: this.language, | ||
| incognito: this.incognito, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully sent the image for processing"); | ||
| return response; | ||
| }, | ||
| }; | ||
64 changes: 64 additions & 0 deletions
64
components/taggun/actions/verbose-url-data-extraction/verbose-url-data-extraction.mjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| import app from "../../taggun.app.mjs"; | ||
|
|
||
| export default { | ||
| key: "taggun-verbose-url-data-extraction", | ||
| name: "Verbose URL Data Extraction", | ||
|
||
| description: "Provide a URL for a receipt or invoice to extract clear and comprehensive data. [See the documentation](https://developers.taggun.io/reference/url-verbose)", | ||
| version: "0.0.1", | ||
| type: "action", | ||
| props: { | ||
| app, | ||
| url: { | ||
| propDefinition: [ | ||
| app, | ||
| "url", | ||
| ], | ||
| }, | ||
| referenceId: { | ||
| propDefinition: [ | ||
| app, | ||
| "referenceId", | ||
| ], | ||
| optional: true, | ||
| }, | ||
| refresh: { | ||
| propDefinition: [ | ||
| app, | ||
| "refresh", | ||
| ], | ||
| }, | ||
| near: { | ||
| propDefinition: [ | ||
| app, | ||
| "near", | ||
| ], | ||
| }, | ||
| language: { | ||
| propDefinition: [ | ||
| app, | ||
| "language", | ||
| ], | ||
| }, | ||
| incognito: { | ||
| propDefinition: [ | ||
| app, | ||
| "incognito", | ||
| ], | ||
| }, | ||
| }, | ||
| async run({ $ }) { | ||
| const response = await this.app.verboseUrlDataExtraction({ | ||
| $, | ||
| data: { | ||
| url: this.url, | ||
| referenceId: this.referenceId, | ||
| refresh: this.refresh, | ||
| near: this.near, | ||
| language: this.language, | ||
| incognito: this.incognito, | ||
| }, | ||
| }); | ||
| $.export("$summary", "Successfully sent the image for processing"); | ||
| return response; | ||
| }, | ||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| export default { | ||
| LANGUAGE_OPTIONS: [ | ||
| "en", | ||
| "es", | ||
| "fr", | ||
| "jp", | ||
| "he", | ||
| "iw", | ||
| "et", | ||
| "lv", | ||
| "lt", | ||
| "fi", | ||
| "el", | ||
| "zh", | ||
| "th", | ||
| ], | ||
michelle0927 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| }; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "name": "@pipedream/taggun", | ||
| "version": "0.0.1", | ||
| "version": "0.1.0", | ||
| "description": "Pipedream Taggun Components", | ||
| "main": "taggun.app.mjs", | ||
| "keywords": [ | ||
|
|
@@ -11,5 +11,8 @@ | |
| "author": "Pipedream <[email protected]> (https://pipedream.com/)", | ||
| "publishConfig": { | ||
| "access": "public" | ||
| }, | ||
| "dependencies": { | ||
| "@pipedream/platform": "^3.1.0" | ||
| } | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.