Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 components/taggun/actions/submit-feedback/submit-feedback.mjs
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;
},
};
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",
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;
},
};
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",
Comment on lines +4 to +5
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't "verbose" be a boolean option in the "Extract Data from URL" component, therefore eliminating the need for this separate component, since it seems to have the same props?

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;
},
};
17 changes: 17 additions & 0 deletions components/taggun/common/constants.mjs
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",
],
};
5 changes: 4 additions & 1 deletion components/taggun/package.json
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": [
Expand All @@ -11,5 +11,8 @@
"author": "Pipedream <[email protected]> (https://pipedream.com/)",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@pipedream/platform": "^3.1.0"
}
}
Loading
Loading