-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into connect/workflow-sd…
…k-docs
- Loading branch information
Showing
85 changed files
with
3,291 additions
and
153 deletions.
There are no files selected for viewing
8 changes: 3 additions & 5 deletions
8
components/wati/app/wati.app.ts → ...nts/ai_textraction/ai_textraction.app.mjs
This file contains 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,13 +1,11 @@ | ||
import { defineApp } from "@pipedream/types"; | ||
|
||
export default defineApp({ | ||
export default { | ||
type: "app", | ||
app: "wati", | ||
app: "ai_textraction", | ||
propDefinitions: {}, | ||
methods: { | ||
// this.$auth contains connected account data | ||
authKeys() { | ||
console.log(Object.keys(this.$auth)); | ||
}, | ||
}, | ||
}); | ||
}; |
This file contains 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,15 @@ | ||
{ | ||
"name": "@pipedream/ai_textraction", | ||
"version": "0.0.1", | ||
"description": "Pipedream AI Textraction Components", | ||
"main": "ai_textraction.app.mjs", | ||
"keywords": [ | ||
"pipedream", | ||
"ai_textraction" | ||
], | ||
"homepage": "https://pipedream.com/apps/ai_textraction", | ||
"author": "Pipedream <[email protected]> (https://pipedream.com/)", | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
components/suitedash/app/suitedash.app.ts → components/attractwell/attractwell.app.mjs
This file contains 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,13 +1,11 @@ | ||
import { defineApp } from "@pipedream/types"; | ||
|
||
export default defineApp({ | ||
export default { | ||
type: "app", | ||
app: "suitedash", | ||
app: "attractwell", | ||
propDefinitions: {}, | ||
methods: { | ||
// this.$auth contains connected account data | ||
authKeys() { | ||
console.log(Object.keys(this.$auth)); | ||
}, | ||
}, | ||
}); | ||
}; |
This file contains 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,15 @@ | ||
{ | ||
"name": "@pipedream/attractwell", | ||
"version": "0.0.1", | ||
"description": "Pipedream AttractWell Components", | ||
"main": "attractwell.app.mjs", | ||
"keywords": [ | ||
"pipedream", | ||
"attractwell" | ||
], | ||
"homepage": "https://pipedream.com/apps/attractwell", | ||
"author": "Pipedream <[email protected]> (https://pipedream.com/)", | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
8 changes: 3 additions & 5 deletions
8
components/paperform/app/paperform.app.ts → components/deepimage/deepimage.app.mjs
This file contains 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,13 +1,11 @@ | ||
import { defineApp } from "@pipedream/types"; | ||
|
||
export default defineApp({ | ||
export default { | ||
type: "app", | ||
app: "paperform", | ||
app: "deepimage", | ||
propDefinitions: {}, | ||
methods: { | ||
// this.$auth contains connected account data | ||
authKeys() { | ||
console.log(Object.keys(this.$auth)); | ||
}, | ||
}, | ||
}); | ||
}; |
This file contains 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,15 @@ | ||
{ | ||
"name": "@pipedream/deepimage", | ||
"version": "0.0.1", | ||
"description": "Pipedream DeepImage Components", | ||
"main": "deepimage.app.mjs", | ||
"keywords": [ | ||
"pipedream", | ||
"deepimage" | ||
], | ||
"homepage": "https://pipedream.com/apps/deepimage", | ||
"author": "Pipedream <[email protected]> (https://pipedream.com/)", | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
} |
49 changes: 49 additions & 0 deletions
49
components/fakturoid/actions/cancel-uncancel-invoice/cancel-uncancel-invoice.mjs
This file contains 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,49 @@ | ||
import constants from "../../common/constants.mjs"; | ||
import fakturoid from "../../fakturoid.app.mjs"; | ||
|
||
export default { | ||
key: "fakturoid-cancel-uncancel-invoice", | ||
name: "Cancel or Uncancel Invoice", | ||
description: "Cancels an existing invoice or revokes previous cancellation. [See the documentation](https://www.fakturoid.cz/api/v3)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
fakturoid, | ||
accountSlug: { | ||
propDefinition: [ | ||
fakturoid, | ||
"accountSlug", | ||
], | ||
}, | ||
invoiceId: { | ||
propDefinition: [ | ||
fakturoid, | ||
"invoiceId", | ||
({ accountSlug }) => ({ | ||
accountSlug, | ||
}), | ||
], | ||
}, | ||
action: { | ||
type: "string", | ||
label: "Action", | ||
description: "The action to perform on the invoice (cancel or uncancel)", | ||
options: constants.ACTION_OPTIONS, | ||
}, | ||
}, | ||
async run({ $ }) { | ||
const response = await this.fakturoid.fireInvoice({ | ||
$, | ||
accountSlug: this.accountSlug, | ||
invoiceId: this.invoiceId, | ||
params: { | ||
event: this.action, | ||
}, | ||
}); | ||
|
||
$.export("$summary", `${this.action === "cancel" | ||
? "Cancelled" | ||
: "Uncancelled"} invoice with ID ${this.invoiceId}`); | ||
return response; | ||
}, | ||
}; |
139 changes: 139 additions & 0 deletions
139
components/fakturoid/actions/create-invoice/create-invoice.mjs
This file contains 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,139 @@ | ||
import constants, { parseObject } from "../../common/constants.mjs"; | ||
import fakturoid from "../../fakturoid.app.mjs"; | ||
|
||
export default { | ||
key: "fakturoid-create-invoice", | ||
name: "Create Invoice", | ||
description: "Creates a new invoice. [See the documentation](https://www.fakturoid.cz/api/v3/invoices)", | ||
version: "0.0.1", | ||
type: "action", | ||
props: { | ||
fakturoid, | ||
accountSlug: { | ||
propDefinition: [ | ||
fakturoid, | ||
"accountSlug", | ||
], | ||
}, | ||
customId: { | ||
type: "string", | ||
label: "Custom Id", | ||
description: "Identifier in your application", | ||
optional: true, | ||
}, | ||
documentType: { | ||
type: "string", | ||
label: "Document Type", | ||
description: "Type of document", | ||
options: constants.DOCUMENT_TYPE_OPTIONS, | ||
reloadProps: true, | ||
optional: true, | ||
}, | ||
subjectId: { | ||
propDefinition: [ | ||
fakturoid, | ||
"subjectId", | ||
({ accountSlug }) => ({ | ||
accountSlug, | ||
}), | ||
], | ||
}, | ||
orderNumber: { | ||
type: "string", | ||
label: "Order Number", | ||
description: "Order number in your application", | ||
optional: true, | ||
}, | ||
note: { | ||
type: "string", | ||
label: "Note", | ||
description: "Additional notes for the invoice", | ||
optional: true, | ||
}, | ||
due: { | ||
type: "string", | ||
label: "Due", | ||
description: "Invoice due date in number of days from today", | ||
optional: true, | ||
}, | ||
issuedOn: { | ||
type: "string", | ||
label: "Issued On", | ||
description: "Date of issue. **Format: YYYY-MM-DD**", | ||
optional: true, | ||
}, | ||
taxableFulfillmentDue: { | ||
type: "string", | ||
label: "Taxable Fulfillment Due", | ||
description: "Chargeable event date.", | ||
optional: true, | ||
}, | ||
tags: { | ||
type: "string[]", | ||
label: "Tags", | ||
description: "List of tags", | ||
optional: true, | ||
}, | ||
roundTotal: { | ||
type: "boolean", | ||
label: "Round Total", | ||
description: "Round total amount (VAT included)", | ||
optional: true, | ||
}, | ||
subtotal: { | ||
type: "string", | ||
label: "Subtotal", | ||
description: "Total without VAT", | ||
optional: true, | ||
}, | ||
total: { | ||
type: "string", | ||
label: "Total", | ||
description: "Total with VAT", | ||
optional: true, | ||
}, | ||
lines: { | ||
type: "string[]", | ||
label: "Lines", | ||
description: "List of object lines to invoice. [See the documentation](https://www.fakturoid.cz/api/v3/invoices#attributes). **Example: {\"name\": \"Hard work\",\"quantity\": \"1.0\",\"unit_name\": \"h\",\"unit_price\": \"40000\",\"vat_rate\": \"21\"}**", | ||
}, | ||
}, | ||
async additionalProps() { | ||
const props = {}; | ||
if (this.documentType === "proforma") { | ||
props.proformaFollowupDocument = { | ||
type: "string", | ||
label: "Proforma Followup Document", | ||
description: "What to issue after a proforma is paid.", | ||
options: constants.PROFORMA_OPTIONS, | ||
optional: true, | ||
}; | ||
} | ||
return props; | ||
}, | ||
async run({ $ }) { | ||
const response = await this.fakturoid.createInvoice({ | ||
$, | ||
accountSlug: this.accountSlug, | ||
data: { | ||
custom_id: this.customId, | ||
document_type: this.documentType, | ||
proforma_followup_document: this.proformaFollowupDocument, | ||
subject_id: this.subjectId, | ||
order_number: this.orderNumber, | ||
note: this.note, | ||
due: this.due, | ||
issued_on: this.issuedOn, | ||
taxable_fulfillment_due: this.taxableFulfillmentDue, | ||
tags: parseObject(this.tags), | ||
round_total: this.roundTotal, | ||
subtotal: this.subtotal && parseFloat(this.subtotal), | ||
total: this.total && parseFloat(this.total), | ||
lines: parseObject(this.lines), | ||
}, | ||
}); | ||
|
||
$.export("$summary", `Successfully created invoice with ID ${response.id}`); | ||
return response; | ||
}, | ||
}; |
Oops, something went wrong.